/* Aegisline Mecha Bulwark — Tactical Angled Steel Daylight Battlefield UI
 * Zero Google Fonts, Zero backdrop-filter: blur, Zero 720p/1080p 9-language overflow! */

:root {
  --font-display: 'Bahnschrift', 'Segoe UI Black', 'Trebuchet MS', system-ui, sans-serif;
  --font-body: 'Segoe UI', 'Trebuchet MS', system-ui, -apple-system, sans-serif;
  --amber: #F59E0B;
  --amber-hot: #FDE68A;
  --cyan: #38BDF8;
  --cyan-hot: #BAE6FD;
  --steel-dark: #111824;
  --steel-mid: #1D2736;
  --steel-edge: #64748B;
  --danger: #EF4444;
  --emerald: #10B981;
  --text-light: #F8FAFC;
  --text-muted: #CBD5E1;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #141B26;
  color: var(--text-light);
  font-family: var(--font-body);
  user-select: none;
  -webkit-user-select: none;
}

.is-hidden {
  display: none !important;
}

/* ============================================================================
   FULL-BLEED 100vw x 100vh BATTLEFIELD STAGE
   ============================================================================ */
#game-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
}

#game-canvas,
#vfx3d-canvas,
#diegetic-canvas,
#cutin-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#game-canvas { z-index: 1; cursor: crosshair; }
#vfx3d-canvas { z-index: 3; pointer-events: none; }
#diegetic-canvas { z-index: 4; pointer-events: none; }
#cutin-canvas { z-index: 75; pointer-events: none; display: none; }

#sky-bonus-layer {
  position: absolute;
  left: 16%;
  right: 6%;
  top: 13%;
  height: 28%;
  z-index: 45;
  pointer-events: none;
}

.sky-drone-btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 2px solid var(--amber);
  border-radius: 6px;
  background: rgba(17, 24, 36, 0.92);
  color: var(--amber-hot);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  overflow: visible;
  white-space: nowrap;
}
.sky-drone-btn img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* ============================================================================
   HEROIC NO-BOX TITLE SCREEN
   ============================================================================ */
#title-screen {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 6vw 24px 5vw;
  overflow: hidden;
}

#title-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.title-sun-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(95deg, rgba(11, 18, 30, 0.16) 0%, rgba(11, 18, 30, 0.25) 44%, rgba(11, 18, 30, 0.68) 78%, rgba(11, 18, 30, 0.80) 100%);
  pointer-events: none;
}

.title-top-bar {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 10;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}

#title-hero-wrap {
  position: relative;
  z-index: 4;
  width: min(44vw, 540px);
  height: min(86vh, 760px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

#title-hero-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: 92%;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(8, 12, 22, 0.55));
}

.title-cta-stack {
  position: relative;
  z-index: 6;
  width: min(44vw, 540px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.title-crest {
  border-width: 10px 20px !important;
  border-image-width: 10px 20px !important;
  padding: 2px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.title-kicker {
  font-family: var(--font-display);
  font-size: clamp(12px, 1.15vw, 15px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-hot);
}

.title-logo-wordmark {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.96;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
}

.logo-line-top {
  font-size: clamp(44px, 5.4vw, 76px);
  letter-spacing: 0.06em;
  color: #FFF9E6;
  -webkit-text-stroke: 2px #0F172A;
  text-shadow: 0 5px 0 #0F172A, 0 8px 18px rgba(0, 0, 0, 0.52);
}

.logo-line-sub {
  font-size: clamp(22px, 2.7vw, 38px);
  letter-spacing: 0.16em;
  color: var(--amber);
  -webkit-text-stroke: 1.4px #0F172A;
  text-shadow: 0 3px 0 #0F172A;
  margin-top: 4px;
}

.boot-loader-wrap {
  width: min(360px, 84%);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.boot-loader-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-light);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
}

.boot-bar-track {
  border-width: 5px 7px !important;
  border-image-width: 5px 7px !important;
  height: 22px;
  padding: 2px;
}

.boot-bar-fill {
  border-width: 3px 5px !important;
  border-image-width: 3px 5px !important;
  height: 100%;
  transition: width 140ms ease;
}

.title-play-wrap {
  margin-top: 8px;
}

.title-play-btn {
  border-width: 12px 16px !important;
  border-image-width: 12px 16px !important;
  min-width: 240px;
  padding: 8px 42px;
  font-size: clamp(22px, 2.2vw, 30px) !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow: visible !important;
}

/* ============================================================================
   SLIM FLOATING TOP TACTICAL BAR (ZERO 720p/1080p OVERFLOW ACROSS 9 LANGUAGES)
   ============================================================================ */
#hud-root {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
}

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

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

.hud-pill-compact {
  border-width: 7px !important;
  border-image-width: 7px !important;
  padding: 2px 8px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: clamp(12px, 0.95vw, 14px);
  overflow: visible;
}

.hud-sector-text {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.hud-strong {
  color: #FFFFFF;
  font-weight: 800;
}

.sector-subtitle {
  color: var(--cyan-hot);
  font-size: 12px;
  font-weight: 700;
}

.hud-sep {
  opacity: 0.45;
  margin: 0 2px;
}

.hud-amber { color: var(--amber-hot); font-weight: 800; }
.hud-cyan { color: var(--cyan-hot); font-weight: 800; }

.hud-chip-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.hud-wall-pill {
  gap: 7px;
}

.hud-wall-bar-wrap {
  position: relative;
  width: 112px;
  height: 18px;
  display: flex;
  align-items: center;
}

.hud-wall-track {
  border-width: 4px !important;
  border-image-width: 4px !important;
  width: 100%;
  height: 100%;
  padding: 0;
}

.hud-wall-fill {
  border-width: 2px 4px !important;
  border-image-width: 2px 4px !important;
  height: 100%;
  transition: width 120ms linear;
}

.hud-wall-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: #FFFFFF;
  text-shadow: 0 1px 2px #000000;
  pointer-events: none;
}

.hud-cur-pill {
  padding: 2px 7px;
  gap: 5px;
}

.hud-clickable {
  cursor: pointer;
}

.hud-num {
  font-weight: 800;
  font-size: 13px;
}

/* CRITICAL 9-Language Zero-Truncation HUD Action Buttons */
.hud-action-btn {
  border-width: 7px !important;
  border-image-width: 7px !important;
  max-width: none !important;
  width: auto;
  height: 40px;
  padding: 2px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
  font-size: clamp(12px, 0.94vw, 14px) !important;
  line-height: 1.15;
  white-space: nowrap;
  position: relative;
  overflow: visible !important;
}

.hud-action-btn > span:not(.notify-badge) {
  display: inline-block;
  white-space: nowrap;
}

.hud-icon-pill {
  padding: 2px 8px;
  min-width: 38px;
}

.hud-shop-btn {
  color: #111824 !important;
}

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

/* Red-Dot Notification Badge (NEVER clipped!) */
.notify-badge {
  position: absolute;
  top: -8px;
  right: -7px;
  z-index: 30;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #EF4444;
  border: 2px solid #FFF7ED;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 900;
  line-height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.45);
}

/* Sub-HUD Objective & Target Lock Strip */
#hud-sub-strip {
  position: fixed;
  top: 54px;
  left: 12px;
  z-index: 32;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.hud-obj-chip {
  padding: 4px 10px;
  gap: 7px;
  font-size: 12px;
  color: #F8FAFC;
  background: rgba(17, 24, 36, 0.84);
  border-color: rgba(245, 158, 11, 0.65);
}

.hud-mini-ico {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.hud-obj-stars {
  color: var(--amber-hot);
  font-size: 11px;
  font-weight: 700;
  opacity: 0.92;
}

.hud-lock-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(153, 27, 27, 0.92);
  border: 1.5px solid #FCA5A5;
  color: #FFF1F2;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
}

.lock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FDE047;
}

.hud-trap-hint {
  padding: 4px 12px;
  border-radius: 4px;
  background: rgba(14, 116, 144, 0.92);
  border: 1.5px solid var(--cyan-hot);
  color: #ECFEFF;
  font-size: 12px;
  font-weight: 800;
}

/* Boss HP Bar */
#hud-boss-bar {
  position: fixed;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  width: min(440px, 40vw);
  z-index: 34;
  background: rgba(15, 23, 42, 0.90);
  border: 2px solid #EF4444;
  border-radius: 6px;
  padding: 5px 10px 7px;
  pointer-events: none;
}

.hud-boss-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 4px;
}

.hud-boss-ico {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

#hud-boss-hp-txt {
  margin-left: auto;
  color: #FCA5A5;
  font-size: 12px;
}

.hud-boss-track {
  position: relative;
  border-width: 4px !important;
  border-image-width: 4px !important;
  height: 15px;
  padding: 0;
  overflow: hidden;
}

.hud-boss-hp-fill {
  height: 100%;
  background: linear-gradient(90deg, #DC2626 0%, #F97316 100%);
  transition: width 90ms linear;
}

.hud-boss-shield-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(56, 189, 248, 0.72);
  transition: width 90ms linear;
}

/* ============================================================================
   COMPACT BOTTOM TACTICAL DECK (ROUND 5 SPATIAL LAW: 70-74px SLOTS, 60% ICON)
   ============================================================================ */
#hud-bottom {
  position: fixed;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 35;
  pointer-events: auto;
  overflow: visible;
}

.deck-shell {
  border-width: 10px 14px !important;
  border-image-width: 10px 14px !important;
  padding: 4px 10px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  overflow: visible !important;
}

.deck-group {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 7px;
  overflow: visible;
}

.deck-divider {
  width: 2px;
  height: 54px;
  background: rgba(148, 163, 184, 0.45);
  margin: 0 2px;
}

.deck-slot {
  position: relative;
  width: 72px;
  height: 72px;
  border-width: 9px !important;
  border-image-width: 9px !important;
  padding: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: visible !important;
  flex-shrink: 0;
}

.deck-slot.is-selected {
  outline: 2.5px solid var(--cyan);
  outline-offset: 2px;
  filter: brightness(1.16);
}

.deck-slot.is-ready-ult {
  outline: 2.5px solid var(--amber);
  outline-offset: 2px;
  filter: brightness(1.14);
}

.deck-slot.is-cooldown {
  filter: grayscale(0.45) brightness(0.76);
}

.slot-hotkey {
  position: absolute;
  top: -7px;
  left: -6px;
  z-index: 10;
  padding: 1px 5px;
  border-radius: 3px;
  background: #0F172A;
  border: 1.5px solid var(--amber);
  color: var(--amber-hot);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 900;
  line-height: 12px;
  pointer-events: none;
}

.slot-lv-tag {
  position: absolute;
  top: -7px;
  right: -6px;
  z-index: 10;
  padding: 1px 5px;
  border-radius: 3px;
  background: #0369A1;
  border: 1.5px solid var(--cyan-hot);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 900;
  line-height: 12px;
  pointer-events: none;
}

.slot-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  pointer-events: none;
  margin-top: -4px;
}

.slot-cost {
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(245, 158, 11, 0.72);
  color: #FFFBEB;
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
  pointer-events: none;
}

.slot-cost img {
  width: 12px;
  height: 12px;
  object-fit: contain;
}

.slot-cd-veil {
  position: absolute;
  inset: 4px;
  background: rgba(10, 15, 28, 0.70);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-hot);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  pointer-events: none;
  z-index: 6;
}

.deck-ult-btn {
  width: 82px;
  height: 72px;
}

.ult-charge-bar {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 8px;
  height: 5px;
  background: rgba(15, 23, 42, 0.85);
  border-radius: 2px;
  overflow: hidden;
  pointer-events: none;
}

.ult-charge-fill {
  height: 100%;
  background: linear-gradient(90deg, #38BDF8 0%, #F59E0B 100%);
  transition: width 120ms linear;
}

/* ============================================================================
   MODALS, DRAFT & CELEBRATIONS (ZERO backdrop-filter: blur, ANTI-SAAS 60/25/15)
   ============================================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(7, 11, 20, 0.74);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-shell {
  width: min(920px, 94vw);
  max-height: min(680px, 90vh);
  display: flex;
  flex-direction: column;
  padding: 8px 14px 14px;
  overflow: visible;
}

.modal-header-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 10px;
}

.modal-ribbon {
  border-width: 10px 24px !important;
  border-image-width: 10px 24px !important;
  padding: 2px 26px;
  text-align: center;
}

.modal-ribbon h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 24px);
  letter-spacing: 0.05em;
  color: #FFF9E6;
  text-transform: uppercase;
}

.modal-close-btn {
  position: absolute;
  right: -6px;
  top: -6px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

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

.modal-body {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2px 4px 6px;
  flex: 1 1 auto;
}

.modal-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 12px;
}

.modal-tab-btn {
  flex: 1 1 0;
  min-width: 0;
  border-width: 8px 12px !important;
  border-image-width: 8px 12px !important;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: clamp(12px, 1.05vw, 15px) !important;
  overflow: visible !important;
}

.modal-tab-btn > span:not(.notify-badge) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-btn-compact {
  border-width: 7px 12px !important;
  border-image-width: 7px 12px !important;
  padding: 4px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: clamp(12px, 0.98vw, 14px) !important;
  min-width: 0;
  overflow: visible !important;
}

/* Grid Containment Law: ALWAYS repeat(N, minmax(0, 1fr)) + min-width: 0 */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}
.grid-4 > *, .grid-3 > *, .grid-2 > *, .grid-5 > * {
  min-width: 0;
  max-width: 100%;
}

/* Visual-First 60/25/15 Boxes (Armory, Shop, Passes, Draft, Exit) */
.arm-box,
.season-card,
.sku-box,
.aug-box,
.ev-tier-box,
.draft-box,
.exit-jump-box,
.guide-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px;
  text-align: center;
  border-width: 12px !important;
  border-image-width: 12px !important;
  overflow: visible !important;
}

.box-art-stage {
  width: 100%;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 55%, rgba(56, 189, 248, 0.16) 0%, rgba(15, 23, 42, 0.42) 78%);
  border-radius: 4px;
  overflow: hidden;
  padding: 6px;
}

.box-art-stage.art-tall {
  height: 132px;
}

.box-art-stage img {
  max-width: 92%;
  max-height: 92%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.45));
}

.box-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(13px, 1.05vw, 15px);
  color: #FFFFFF;
  line-height: 1.15;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.box-meta {
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan-hot);
  line-height: 1.2;
}

.box-badge {
  position: absolute;
  top: -9px;
  right: 6px;
  z-index: 8;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--amber);
  color: #111824;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.box-badge.badge-cyan {
  background: var(--cyan);
}

.chip-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(100, 116, 139, 0.55);
  font-size: 12px;
  font-weight: 800;
  color: #FFFBEB;
  white-space: nowrap;
}

.chip-inline img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.chips-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.sn-btn-pair {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
}

.sn-btn-pair > button {
  padding: 4px 8px !important;
  flex: 0 1 auto;
}

.settings-ver-foot {
  margin-top: 8px;
  text-align: right;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  opacity: 0.85;
}

/* Timed Pass Header & Tier Grid */
.ev-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  margin-bottom: 10px;
  border-width: 10px !important;
  border-image-width: 10px !important;
}

.ev-banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ev-banner-art {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}

.ev-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Settings Controls */
.cfg-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cfg-box {
  border-width: 10px !important;
  border-image-width: 10px !important;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cfg-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 14px;
}

.cfg-head img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.cfg-slider-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cfg-slider-line input[type="range"] {
  flex: 1;
  accent-color: var(--amber);
}

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

.lang-btn {
  border-width: 6px !important;
  border-image-width: 6px !important;
  padding: 4px 6px;
  font-size: 12px !important;
}

/* Giftcode & Studio Strip */
.gift-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gift-input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 2px solid var(--steel-edge);
  border-radius: 4px;
  background: #0F172A;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Synergy Draft Modal */
.draft-panel {
  width: min(760px, 92vw);
  padding: 10px 16px 16px;
  text-align: center;
}

.draft-sub {
  margin: 6px 0 12px;
  color: var(--cyan-hot);
  font-weight: 700;
  font-size: 14px;
}

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

.draft-footer {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

/* Celebrations Shell */
.celebration-shell {
  width: min(560px, 92vw);
  padding: 14px 18px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.celeb-stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.celeb-star-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.celeb-star-img.star-dim {
  opacity: 0.25;
  filter: grayscale(1);
}

.celeb-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin-top: 6px;
}

.celeb-actions.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.celeb-actions > * {
  min-width: 0;
  max-width: 100%;
}

/* Stage 1 Visual Spotlight FTUE */
.tut-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}

.tut-spotlight {
  position: fixed;
  pointer-events: none;
}

.tut-hand {
  position: fixed;
  pointer-events: none;
}

.tut-banner {
  position: fixed;
  bottom: 108px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px !important;
  border-image-width: 8px !important;
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
  z-index: 82;
  max-width: 90vw;
}

/* Floating Toast Host */
#toast-host {
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.toast-pill {
  padding: 6px 16px;
  border-radius: 5px;
  background: rgba(15, 23, 42, 0.94);
  border: 2px solid var(--amber);
  color: #FFFBEB;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
}

/* Preview-Only [DEV F2] Panel (mounted ONLY when window.DEBUG && !window.__MS_RELEASE__) */
#dev-f2-pill {
  position: fixed;
  left: 10px;
  bottom: 10px;
  z-index: 130;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.92);
  border: 1.5px solid #38BDF8;
  color: #38BDF8;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

#debug-panel {
  position: fixed;
  left: 10px;
  bottom: 44px;
  z-index: 131;
  width: 260px;
  padding: 10px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.96);
  border: 2px solid #38BDF8;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dev-btn {
  padding: 5px 8px;
  border-radius: 4px;
  border: 1px solid #475569;
  background: #1E293B;
  color: #F8FAFC;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}
.dev-btn:hover { background: #334155; }

/* ============================================================================
   RESPONSIVE 720p & <1460px GUARDS (ZERO OVERFLOW IN GERMAN / RUSSIAN!)
   ============================================================================ */
@media (max-width: 1460px) {
  .sector-subtitle { display: none !important; }
  .hud-obj-stars { display: none !important; }
  .hud-wall-bar-wrap { width: 88px; }
  .hud-left-cluster, .hud-right-cluster { gap: 4px; }
  .hud-pill-compact { padding: 2px 6px; gap: 4px; height: 36px; font-size: 12px; }
  .hud-action-btn { padding: 2px 7px; gap: 4px; height: 36px; font-size: 12px !important; }
  .btn-chip-ico, .hud-chip-img { width: 17px; height: 17px; }
}

@media (max-width: 1160px) {
  .deck-slot { width: 64px; height: 64px; }
  .deck-ult-btn { width: 72px; height: 64px; }
  .slot-icon { width: 38px; height: 38px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
