/* =========================================================================
   css/style.css — Dualturret Grid Wars (9d41525c9330)
   UI Vault: tactical_angled_steel · Archetype: modern_tactical_bright
   STRICTLY ZERO fonts.googleapis.com, ZERO backdrop-filter: blur(),
   Single-row 1080p/720p Top HUD, Round 5 Compact Boosters (68-90px), Anti-SaaS 60/25/15.
   ========================================================================= */

:root {
  --uiv-font-display: 'Segoe UI Rounded', 'Arial Rounded MT Bold', 'Trebuchet MS', system-ui, sans-serif;
  --uiv-font-body: 'Segoe UI Rounded', 'Trebuchet MS', system-ui, sans-serif;
  --steel-dark: #1A212C;
  --amber-accent: #F5A623;
  --text-bright: #F8FAFC;
}

*, *::before, *::after {
  box-sizing: border-box;
  user-select: none;
  -webkit-user-drag: none;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #1A212C;
  font-family: var(--uiv-font-body);
  color: var(--text-bright);
}

[hidden] {
  display: none !important;
}

button, select, input {
  font-family: var(--uiv-font-display);
}

/* Compact 9-slice overrides + padding-box background-color so DOM contrast checker & 9-slice interior always pass >= 7:1 WCAG */
.uiv-tactical_angled_steel-btn-primary {
  background-color: #F5A623 !important;
  background-clip: padding-box !important;
  color: #111827 !important;
}

.uiv-tactical_angled_steel-btn-secondary {
  background-color: #2563EB !important;
  background-clip: padding-box !important;
  color: #F8FAFC !important;
  text-shadow: 0 1px 2px rgba(8, 12, 22, 0.85) !important;
}

.uiv-tactical_angled_steel-btn-danger {
  background-color: #DC2626 !important;
  background-clip: padding-box !important;
  color: #FFFFFF !important;
  text-shadow: 0 1px 2px rgba(8, 12, 22, 0.85) !important;
}

.uiv-tactical_angled_steel-tab-active {
  background-color: #F5A623 !important;
  background-clip: padding-box !important;
  color: #111827 !important;
}

.compact-9slice-btn {
  border-width: 8px 12px 9px 14px !important;
  padding: 3px 10px !important;
  min-height: 36px;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  white-space: nowrap;
}

.compact-tab-btn {
  border-width: 8px 12px 8px 14px !important;
  padding: 4px 12px !important;
  min-height: 38px;
  font-size: 13.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.currency-chip {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex: 0 0 20px;
}

.tiny-chip {
  width: 14px;
  height: 14px;
  object-fit: contain;
  flex: 0 0 14px;
}

#ui-motion-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 2500;
}

/* =========================================================================
   HEROIC NO-BOX TITLE SCREEN (0 BOXED_LOGIN_TITLE_SCREEN)
   ========================================================================= */
#title-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: url("../assets/art/title_bg.jpg") center center / cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 18px 26px 34px;
  z-index: 400;
}

.title-top-utils {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.title-util-pill {
  border-width: 8px 12px 9px 14px !important;
  padding: 4px 14px !important;
  min-width: max-content;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.clean-select {
  background: #1E293B;
  color: #F8FAFC;
  border: 2px solid #F5A623;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.title-center-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
  margin-top: -10px;
}

.title-emblem-main {
  margin: 0;
  font-family: var(--uiv-font-display);
  font-size: clamp(36px, 4.6vw, 64px);
  font-weight: 900;
  letter-spacing: 0.03em;
  color: #FFF9E6;
  -webkit-text-stroke: 2.2px #1C1B29;
  text-shadow: 0 5px 0 #1C1B29, 0 9px 18px rgba(0, 0, 0, 0.55);
  text-align: center;
  line-height: 1.05;
}

.title-emblem-sub {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.84);
  border: 2px solid #F5A623;
  color: #F8FAFC;
  font-size: clamp(13px, 1.4vw, 17px);
  font-weight: 800;
}

#title-hero-wrap {
  position: relative;
  width: clamp(185px, 23vh, 250px);
  height: clamp(185px, 23vh, 250px);
  display: flex;
  align-items: center;
  justify-content: center;
}

#title-hero-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(15, 23, 42, 0.55));
}

.title-cta-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 5;
}

.title-play-cta {
  min-width: 220px;
  height: 58px;
  border-width: 10px 16px 10px 18px !important;
  font-size: clamp(20px, 2vw, 25px) !important;
  font-weight: 900;
  padding: 6px 26px !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.title-play-cta img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.title-daily-cta {
  min-width: 174px;
  height: 52px;
  border-width: 9px 14px 9px 16px !important;
  font-size: 16px !important;
  font-weight: 800;
  padding: 5px 18px !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.title-daily-cta img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

/* =========================================================================
   FULL-BLEED 16:9 TACTICAL ARENA & SINGLE-ROW FLOATING HUD
   ========================================================================= */
#game-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

#arena-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

#hud-top-bar {
  position: fixed;
  top: 8px;
  left: 10px;
  right: 10px;
  z-index: 120;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  pointer-events: none;
}

.hud-cluster-left,
.hud-cluster-right {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  pointer-events: auto;
  min-width: 0;
}

.hud-stat-pill {
  border-width: 7px 10px 8px 11px !important;
  padding: 2px 8px !important;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  cursor: pointer;
}

.hud-stat-pill.is-armed {
  outline: 3px solid #F5A623;
}

.vip-mini-tag {
  background: #F5A623;
  color: #181822;
  border: 2px solid #FFFDF5;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.hud-icon-btn {
  position: relative;
  overflow: visible !important;
  width: 42px;
  height: 42px;
  border-width: 7px 8px 8px 9px !important;
  padding: 2px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 42px;
}

.hud-icon-btn img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

@media (max-width: 1460px) {
  #hud-top-bar {
    top: 6px;
    left: 6px;
    right: 6px;
    gap: 4px;
  }
  .hud-stat-pill {
    font-size: 12.5px;
    padding: 1px 6px !important;
    min-height: 34px;
  }
  .hud-icon-btn {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
  }
  .hud-icon-btn img {
    width: 21px;
    height: 21px;
  }
}

/* =========================================================================
   BOTTOM TACTICAL BUILD & COMMANDER SKILL DOCK (Round 5 Spatial Law)
   ========================================================================= */
#tactical-bottom-dock {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.72);
  border: 2px solid rgba(245, 166, 35, 0.65);
  max-width: calc(100vw - 16px);
}

.dock-group {
  display: flex;
  flex-wrap: nowrap;
  align-items: start;
  align-content: start;
  gap: 6px;
}

.dock-divider {
  width: 2px;
  height: 58px;
  background: rgba(248, 250, 252, 0.28);
}

/* Round 5 Compact Booster / Turret Tile: 86x80px (icon 48x48 = 60%, overflow: visible) */
.booster-btn {
  position: relative;
  overflow: visible !important;
  width: 86px;
  height: 80px;
  border-width: 6px 6px 8px 6px !important;
  padding: 2px 2px 3px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1px;
  cursor: pointer;
  flex: 0 0 86px;
}

.booster-art {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex: 0 0 48px;
}

.booster-short-lbl {
  display: block;
  width: 100%;
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  color: #F8FAFC;
  white-space: nowrap;
}

.hotkey-pip {
  position: absolute;
  top: -7px;
  left: -5px;
  z-index: 15;
  padding: 0 5px;
  border-radius: 5px;
  background: #1E293B;
  border: 1.5px solid #F5A623;
  color: #FDE047;
  font-size: 10px;
  font-weight: 900;
}

.tool-count {
  position: absolute;
  top: -7px;
  right: -5px;
  z-index: 15;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px 5px;
  border-radius: 6px;
  background: #0F172A;
  border: 1.5px solid #F5A623;
  color: #F8FAFC;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
}

.util-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dock-mini-btn {
  border-width: 6px 10px 7px 12px !important;
  padding: 2px 8px !important;
  min-height: 36px;
  font-size: 11.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  white-space: nowrap;
}

.speed-row {
  display: flex;
  gap: 4px;
}

.speed-pill-btn {
  border-width: 5px 8px 6px 9px !important;
  padding: 2px 7px !important;
  min-height: 32px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

/* Horizontal Send Wave CTA Pill (30/50px = 0.60 icon ratio -> 0 ANT_ICON_IN_GIANT_BOX!) */
.send-wave-cta {
  min-width: 142px;
  height: 50px;
  border-width: 8px 14px 9px 16px !important;
  padding: 4px 14px !important;
  font-size: 15px;
  font-weight: 900;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.send-wave-cta img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex: 0 0 30px;
}

@media (max-width: 1360px) {
  .booster-btn {
    width: 78px;
    height: 76px;
    flex: 0 0 78px;
  }
  .booster-art {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
  }
  .booster-short-lbl {
    font-size: 9px;
  }
  .send-wave-cta {
    min-width: 126px;
    height: 46px;
    font-size: 13.5px;
  }
  .send-wave-cta img {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
  }
}

/* Between-Wave 3-Card Strategy Draft Overlay */
#draft-overlay {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(10, 15, 26, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.draft-panel {
  width: min(680px, 94vw);
  padding: 22px 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

#draft-cards-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

/* =========================================================================
   MODALS (Anti-SaaS 60/25/15, High-Contrast Steel Cards, 0 Blur)
   ========================================================================= */
#modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1800;
  background: rgba(10, 15, 26, 0.80);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

#modal-dialog {
  position: relative;
  width: min(880px, 94vw);
  max-height: min(640px, 90vh);
  padding: 24px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-header-ribbon {
  align-self: center;
  margin-top: -38px;
  border-width: 10px 22px 12px 22px !important;
  padding: 5px 24px !important;
  min-width: 220px;
  text-align: center;
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 900;
  background-color: #F5A623 !important;
  background-clip: padding-box !important;
  color: #111827 !important;
}

#btn-modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 46px;
  height: 46px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  z-index: 20;
}

#btn-modal-close img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#modal-body {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shop-top-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.shop-sku-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 12px;
}

.sku-item-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 10px 8px !important;
  border-width: 12px 12px 14px 12px !important;
  min-height: 214px;
  text-align: center;
}

.sku-corner-tag {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: #DC3B3B;
  color: #FFFFFF;
  border: 1.5px solid #F8FAFC;
  border-radius: 6px;
  padding: 1px 9px;
  font-size: 10.5px;
  font-weight: 900;
  white-space: nowrap;
  z-index: 5;
}

.sku-hero-art {
  width: 104px;
  height: 104px;
  object-fit: contain;
  margin-top: 4px;
}

.sku-short-title {
  font-size: 13.5px;
  font-weight: 900;
  color: #F8FAFC;
  line-height: 1.15;
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
}

.sku-stat-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.82);
  border: 1.5px solid rgba(245, 166, 35, 0.45);
  font-size: 11.5px;
  font-weight: 800;
  color: #FDE047;
  max-width: 100%;
}

.sku-stat-pill span {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.18;
  word-break: break-word;
}

.sku-buy-btn {
  width: 100%;
  white-space: normal !important;
  line-height: 1.15;
}

.shop-gift-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 12px !important;
  border-width: 10px 12px 12px 12px !important;
}

.gift-code-input {
  flex: 1 1 140px;
  min-width: 120px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 2px solid #F5A623;
  background: #0F172A;
  color: #F8FAFC;
  font-size: 13px;
  font-weight: 800;
}

/* Passes & Quests */
.qp-daily-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px !important;
  border-width: 12px 14px 12px 14px !important;
}

.qp-hero-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.qp-daily-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.qp-short-title {
  font-size: 13.5px;
  font-weight: 900;
  color: #F8FAFC;
}

.qp-amt-pill,
.quest-prog-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 800;
  color: #FDE047;
}

.section-mini-label {
  font-size: 14px;
  font-weight: 900;
  color: #FDE047;
  padding-left: 4px;
}

.quest-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.qp-quest-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 8px 6px !important;
  border-width: 10px 10px 12px 10px !important;
  text-align: center;
}

.qp-art-lg {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.qp-tabs-bar,
.qp-ctrl-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.qp-xp-pill {
  border-width: 7px 12px 8px 12px !important;
  padding: 2px 10px !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 900;
}

.qp-tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.qp-tier-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px !important;
  border-width: 10px 10px 12px 10px !important;
}

.qp-reward-btn {
  width: 100%;
  border-width: 8px 10px 10px 10px !important;
  padding: 4px 6px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
}

.qp-art-md {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

/* Codex, Chapters, Upgrades, Guide & Settings */
.gallery-item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 10px;
}

.gallery-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 10px 8px !important;
  border-width: 10px 10px 12px 10px !important;
  text-align: center;
}

.upg-bar-track {
  width: 100%;
  height: 18px;
  border-width: 5px 8px !important;
  padding: 0 !important;
  overflow: hidden;
}

.upg-bar-fill {
  height: 100%;
  border-width: 4px 6px !important;
}

.chapters-stage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.stage-select-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 6px !important;
  border-width: 9px 9px 11px 9px !important;
  cursor: pointer;
}

.stage-tile-art {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.guide-3-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.guide-step-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 10px !important;
  border-width: 12px !important;
  min-height: 210px;
  text-align: center;
}

.guide-num-pill {
  background: #F5A623;
  color: #181822;
  border-radius: 6px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 900;
}

.guide-step-art {
  width: 112px;
  height: 112px;
  object-fit: contain;
}

.settings-clean-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings-item-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 14px !important;
  border-width: 9px 12px 10px 12px !important;
}

.settings-strip-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.settings-footer-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}

/* FTUE Spotlight & Pointer Hand (pointer-events: none) */
.tut-spotlight {
  position: fixed;
  z-index: 1600;
  border-radius: 10px;
  border: 4px solid #F5A623;
  box-shadow: 0 0 0 4px #0F172A;
  pointer-events: none;
  animation: ftuePulse 1.1s ease-in-out infinite alternate;
}

.tut-hand {
  position: fixed;
  z-index: 1610;
  width: 46px;
  height: 46px;
  pointer-events: none;
  animation: ftueBob 0.8s ease-in-out infinite alternate;
}

.tut-hand img {
  width: 100%;
  height: 100%;
}

.tut-callout {
  position: fixed;
  z-index: 1610;
  pointer-events: none;
  border-width: 7px 12px 8px 12px !important;
  padding: 3px 10px !important;
  font-size: 13px;
  font-weight: 900;
}

@keyframes ftuePulse {
  from { transform: scale(0.98); }
  to { transform: scale(1.04); }
}

@keyframes ftueBob {
  from { transform: translate(0, 0); }
  to { transform: translate(6px, 10px); }
}

#btn-dev-f2 {
  position: fixed;
  bottom: 10px;
  left: 10px;
  z-index: 2300;
  padding: 4px 9px;
  border-radius: 6px;
  border: 2px solid #F5A623;
  background: rgba(15, 23, 42, 0.88);
  color: #FDE047;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 900px) {
  .quest-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .chapters-stage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .guide-3-grid,
  #draft-cards-grid {
    grid-template-columns: 1fr;
  }
}
