/* ==========================================================================
   css/game.css — Titanforge Deadzone (`tactical_angled_steel` UI Vault Edition)
   HARD INVARIANTS:
     - ZERO `backdrop-filter: blur(...)` & ZERO external font requests
     - Genuine 45° Chamfered Gunmetal & Tactical-Amber 9-Slice Kit (`vault_tactical_angled_steel`)
     - WCAG AA/AAA Contrast (`#10141E` dark ink on `#F89F0F` amber; `#FFFFFF` on `#0E64AB` active tab & `#282C2F` steel)
     - `overflow: visible !important` on all buttons/pills for `.notify-badge` & pop-out icons
     - `flex-wrap: nowrap` HUD at 1920x1080 & 1280x720, HUD text >= 13px, 0 overflow across 9 langs
   ========================================================================== */

:root {
  --bg-dark: #0D131D;
  --bg-asphalt: #161D28;
  --steel-mid: #3A4658;
  --slate-panel: #1B222C;
  --gunmetal-fill: #282C2F;
  --hazard-orange: #F89F0F;
  --fiery-orange: #EB6A18;
  --tactical-cyan: #2089E4;
  --cyan-bright: #58C7FF;
  --emerald-plasma: #3EE68A;
  --cyber-mint: #4BE5A3;
  --crimson-alert: #E13436;
  --amber-gold: #F5B841;
  --ink-dark: #10141E;
  --text-white: #FFFFFF;
  --text-muted: #CBD5E1;
  --font-display: 'Bahnschrift', 'Franklin Gothic Medium', 'Segoe UI', sans-serif;
  --font-hud: 'Bahnschrift', 'Segoe UI Semibold', 'Segoe UI', sans-serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html, body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: var(--bg-dark);
  color: var(--text-white);
  font-family: var(--font-body);
}

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

.is-locked {
  opacity: 0.72;
  position: relative;
  overflow: visible;
}

.lock-stage-badge {
  position: absolute;
  top: -7px;
  right: -6px;
  z-index: 9;
  padding: 1px 5px;
  font-family: var(--font-hud);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  color: #FFF3D1;
  background: #2B1F14;
  border: 1px solid #F08A24;
  border-radius: 3px;
  pointer-events: none;
  white-space: nowrap;
}

.screen-layer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* ==========================================================================
   GENUINE 45° CHAMFERED TACTICAL ANGLED STEEL 9-SLICE CHROME (`>= 25` REGIONS)
   ========================================================================== */

/* 1. Large Modal Frame (`frame_modal.png`: #1B222C, 16.01:1 vs #FFFFFF) */
.panel-9slice {
  background-color: #1B222C;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-radius: 0;
  box-shadow: none;
  border-width: 16px 16px 16px 16px;
  border-image: url('../assets/ui/vault_tactical_angled_steel/frame_modal.png') 41 41 42 41 fill / 16px 16px 16px 16px / 0 stretch;
  color: #FFFFFF;
}

/* 2. Tactical Subpanel (`frame_subpanel.png`: #282C2F, 14.08:1 vs #FFFFFF) */
.subpanel-9slice {
  background-color: #282C2F;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-radius: 0;
  box-shadow: none;
  border-width: 14px 14px 14px 14px;
  border-image: url('../assets/ui/vault_tactical_angled_steel/frame_subpanel.png') 100 91 98 88 fill / 14px 14px 14px 14px / 0 stretch;
  color: #FFFFFF;
}

/* 3. Tactical HUD Pill (`hud_pill.png`: #282C2F, 14.08:1 vs #FFFFFF) */
.hud-pill-9slice {
  position: relative;
  overflow: visible !important;
  background-color: #282C2F;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-radius: 0;
  box-shadow: none;
  border-width: 9px 12px 9px 12px;
  border-image: url('../assets/ui/vault_tactical_angled_steel/hud_pill.png') 54 56 54 57 fill / 9px 12px 9px 12px / 0 stretch;
  color: #FFFFFF;
}

.subpanel-row {
  background-color: #232B36;
  border: 1px solid #46576E;
  border-left: 3px solid var(--hazard-orange);
  color: #FFFFFF;
}

/* 4. Bottom Combat Deck Dock (`frame_subpanel.png`) */
.slot-dock-9slice {
  background-color: #252A30;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-radius: 0;
  box-shadow: none;
  border-width: 12px 14px 12px 14px;
  border-image: url('../assets/ui/vault_tactical_angled_steel/frame_subpanel.png') 100 91 98 88 fill / 12px 14px 12px 14px / 0 stretch;
  color: #FFFFFF;
}

/* 5. Header Ribbon (`ribbon_header.png`: #282D2F + Gold Endcaps, 13.94:1 vs #FFFFFF) */
.ribbon-9slice {
  display: inline-flex;
  align-items: center;
  padding: 3px 16px;
  background-color: #282D2F;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-radius: 0;
  box-shadow: none;
  border-width: 10px 20px 10px 20px;
  border-image: url('../assets/ui/vault_tactical_angled_steel/ribbon_header.png') 59 92 58 92 fill / 10px 20px 10px 20px / 0 stretch;
  color: #F8FAFC !important;
  text-shadow: 0 2px 0 #090D16;
  font-family: var(--font-hud);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* 6-9. 4 Rarity Cards (`card_common`, `card_rare`, `card_epic`, `card_legendary`) */
.card-9slice-common,
.card-9slice-dark {
  background-color: #293038;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-radius: 0;
  box-shadow: none;
  border-width: 12px 12px 14px 12px;
  border-image: url('../assets/ui/vault_tactical_angled_steel/card_common.png') 96 90 119 87 fill / 12px 12px 14px 12px / 0 stretch;
  color: #FFFFFF;
}

.card-9slice-rare {
  background-color: #282F37;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-radius: 0;
  box-shadow: none;
  border-width: 12px 12px 12px 12px;
  border-image: url('../assets/ui/vault_tactical_angled_steel/card_rare.png') 95 95 89 84 fill / 12px 12px 12px 12px / 0 stretch;
  color: #FFFFFF;
}

.card-9slice-epic {
  background-color: #293038;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-radius: 0;
  box-shadow: none;
  border-width: 12px 12px 12px 12px;
  border-image: url('../assets/ui/vault_tactical_angled_steel/card_epic.png') 95 95 96 88 fill / 12px 12px 12px 12px / 0 stretch;
  color: #FFFFFF;
}

.card-9slice-legendary {
  background-color: #293038;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-radius: 0;
  box-shadow: none;
  border-width: 12px 12px 15px 12px;
  border-image: url('../assets/ui/vault_tactical_angled_steel/card_legendary.png') 91 89 132 87 fill / 12px 12px 15px 12px / 0 stretch;
  color: #FFFFFF;
}

/* 10. Active & Inactive Tactical Tabs (`tab_active.png` = #0E64AB w/ Amber Top Bar, 6.12:1 vs #FFFFFF!) */
.tab-9slice-active {
  background-color: #0E64AB;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-radius: 0;
  box-shadow: none;
  border-width: 12px 16px 4px 16px;
  border-image: url('../assets/ui/vault_tactical_angled_steel/tab_active.png') 61 87 11 89 fill / 12px 16px 4px 16px / 0 stretch;
  color: #FFFFFF !important;
  text-shadow: 0 2px 0 #041224;
  font-family: var(--font-hud);
  font-weight: 800;
  font-size: 14px;
  padding: 3px 12px 5px;
  min-height: 40px;
}

.tab-9slice-inactive {
  background-color: #282C2F;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-radius: 0;
  box-shadow: none;
  border-width: 9px 14px 9px 14px;
  border-image: url('../assets/ui/vault_tactical_angled_steel/hud_pill.png') 54 56 54 57 fill / 9px 14px 9px 14px / 0 stretch;
  color: #DCE6F5 !important;
  text-shadow: 0 1px 0 #090D16;
  font-family: var(--font-hud);
  font-weight: 700;
  font-size: 13px;
  padding: 3px 10px;
  min-height: 38px;
}

/* BUTTONS — `overflow: visible !important` so `.notify-badge` & popouts NEVER clip! */
button {
  position: relative;
  overflow: visible !important;
  cursor: pointer;
  font-family: var(--font-hud);
  font-weight: 700;
  font-size: clamp(13px, 0.9vw, 15px);
  line-height: 1.15;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  transition: transform 0.12s ease, filter 0.12s ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.07);
}

button:active:not(:disabled) {
  transform: translateY(2px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.78;
}

.btn-label {
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  text-align: center;
}

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

/* 11. Primary & Alt Tactical Hazard-Amber CTA (`btn_primary.png`: #F89F0F vs #10141E = 8.95:1 WCAG AAA!) */
.btn-9slice-primary,
.btn-9slice-alt {
  background-color: #F89F0F;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-radius: 0;
  box-shadow: none;
  border-width: 13px 12px 10px 13px;
  border-image: url('../assets/ui/vault_tactical_angled_steel/btn_primary.png') 97 54 58 75 fill / 13px 12px 10px 13px / 0 stretch;
  color: #10141E !important;
  text-shadow: 0 1px 0 rgba(255, 244, 210, 0.55);
  -webkit-text-stroke: 0;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 3px 12px;
}

/* 12. Secondary Tactical Cobalt-Steel CTA (`btn_secondary.png`: #2089E4 w/ crisp outlined #FFFFFF) */
.btn-9slice-secondary {
  background-color: #1E82DB;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-radius: 0;
  box-shadow: none;
  border-width: 10px 13px 10px 13px;
  border-image: url('../assets/ui/vault_tactical_angled_steel/btn_secondary.png') 56 66 59 66 fill / 10px 13px 10px 13px / 0 stretch;
  color: #FFFFFF !important;
  text-shadow: 0 2px 0 #061529, -1px -1px 0 #061529, 1px -1px 0 #061529, -1px 1px 0 #061529, 1px 1px 0 #061529;
  -webkit-text-stroke: 0.4px #061529;
  font-weight: 800;
  padding: 3px 10px;
}

/* 13. Danger Tactical Crimson CTA (`btn_danger.png`: #E13436, 4.42:1 vs #FFFFFF) */
.btn-9slice-danger {
  background-color: #D93234;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-radius: 0;
  box-shadow: none;
  border-width: 10px 13px 10px 13px;
  border-image: url('../assets/ui/vault_tactical_angled_steel/btn_danger.png') 57 71 57 64 fill / 10px 13px 10px 13px / 0 stretch;
  color: #FFFFFF !important;
  text-shadow: 0 2px 0 #1C0506;
  font-weight: 800;
  padding: 3px 10px;
}

/* 14. Disabled Gunmetal Slate CTA (`btn_disabled.png`: #505964, 7.11:1 vs #FFFFFF) */
.btn-9slice-disabled {
  background-color: #505964;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-radius: 0;
  box-shadow: none;
  border-width: 10px 13px 10px 13px;
  border-image: url('../assets/ui/vault_tactical_angled_steel/btn_disabled.png') 56 69 57 69 fill / 10px 13px 10px 13px / 0 stretch;
  color: #F1F5F9 !important;
  text-shadow: 0 1px 0 #161B22;
  font-weight: 800;
  padding: 3px 10px;
}

/* 15. Modal Close Octagonal Crimson X (`btn_close.png` — UI_STYLE_BIBLE Lesson #15) */
.modal-close {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  background: url('../assets/ui/vault_tactical_angled_steel/btn_close.png') center / contain no-repeat !important;
  border: none !important;
  border-image: none !important;
  box-shadow: none !important;
  flex-shrink: 0;
}

.modal-close .btn-label {
  display: none !important;
}

.hud-num {
  font-family: var(--font-hud);
  font-weight: 700;
  color: var(--cyber-mint);
  font-variant-numeric: tabular-nums;
}

.notify-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  z-index: 35;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--crimson-alert);
  border: 2px solid #FFFFFF;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* ==========================================================================
   PILLAR 1: HEROIC NO-BOX FULL-BLEED TITLE SCREEN (`0 BOXED_LOGIN_TITLE_SCREEN`)
   ========================================================================== */

.title-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.title-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.title-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(9, 13, 21, 0.88) 0%, rgba(13, 19, 29, 0.52) 52%, rgba(13, 19, 29, 0.22) 100%);
}

.title-top-bar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  gap: 12px;
}

.title-studio-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-hud);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.cyber-dot {
  width: 9px;
  height: 9px;
  background: var(--hazard-orange);
  transform: rotate(45deg);
}

.title-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.lang-pill {
  padding: 1px 6px;
}

.lang-pill select,
.cyber-select {
  background: #141B26;
  color: #FFFFFF;
  border: 1px solid var(--hazard-orange);
  font-family: var(--font-hud);
  font-weight: 700;
  font-size: 13px;
  padding: 5px 10px;
  cursor: pointer;
}

.title-main-grid {
  position: relative;
  z-index: 4;
  height: calc(100vh - 86px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  padding: 0 5vw 24px 5vw;
  gap: 28px;
  background: transparent !important;
  border: none !important;
}

/* Strictly NO box/background/border around `.title-left-copy` -> Heroic Floating Typography! */
.title-left-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 680px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.game-display-title {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(44px, 4.8vw, 74px);
  line-height: 0.96;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #FFFFFF;
  -webkit-text-stroke: 2px #090D16;
  text-shadow: 0 6px 0 #090D16, 0 12px 28px rgba(0, 0, 0, 0.75);
}

.accent-hazard {
  color: var(--hazard-orange);
}

.title-tagline {
  margin: 0;
  font-size: clamp(15px, 1.25vw, 19px);
  font-weight: 600;
  line-height: 1.4;
  color: #E2ECF8;
  text-shadow: 0 2px 4px #070B14, 0 1px 0 #070B14;
}

/* 16. Boot Preloader Bar (`bar_track.png` + `bar_fill_primary.png`) */
.loading-box {
  width: min(460px, 100%);
  padding: 6px 12px;
}

.loading-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.bar-track-wrap {
  width: 100%;
  height: 18px;
  background-color: #1D2228;
  border-style: solid;
  border-color: transparent;
  border-width: 4px 6px 4px 6px;
  border-image: url('../assets/ui/vault_tactical_angled_steel/bar_track.png') 36 39 40 40 fill / 4px 6px 4px 6px / 0 stretch;
  overflow: hidden;
}

.bar-fill-emerald {
  height: 100%;
  background: linear-gradient(90deg, var(--hazard-orange), var(--emerald-plasma));
  transition: width 0.14s ease-out;
}

.title-cta-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.cta-sub-meta {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  background: rgba(14, 19, 31, 0.85);
  border: 1px solid rgba(75, 229, 163, 0.55);
  color: #4BE5A3;
  font-family: var(--font-hud);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  vertical-align: middle;
}

.btn-cta-giant {
  min-width: 248px;
  min-height: 62px;
  border-width: 15px 16px 12px 16px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(20px, 1.6vw, 26px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.title-right-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.hero-portrait-stage {
  position: relative;
  width: min(480px, 40vw);
  height: min(500px, 66vh);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-portrait-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform-origin: 50% 94%;
}

/* ==========================================================================
   PILLAR 2: 16:9 FULL-BLEED ARENA & FLOATING TACTICAL COMMAND HUD (`>= 13px`)
   ========================================================================== */

.arena-stage {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
}

#arena-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.overlay-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 8;
}

#cutin-canvas {
  z-index: 60;
}

.flying-bonus-layer {
  position: absolute;
  left: 0;
  right: 0;
  top: 24%;
  height: 20%;
  z-index: 45;
  pointer-events: none;
}

.supply-drone-bonus {
  position: absolute;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background-color: #282C2F;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 8px 10px;
  border-image: url('../assets/ui/vault_tactical_angled_steel/hud_pill.png') 54 56 54 57 fill / 8px 10px / 0 stretch;
  color: #FFFFFF;
  font-family: var(--font-hud);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}

.supply-drone-bonus img {
  width: 28px;
  height: 28px;
}

/* TOP TACTICAL STRIP — STRICT `flex-wrap: nowrap` AT 1920x1080 & 1280x720 */
.top-hud {
  position: fixed;
  top: 6px;
  left: 8px;
  right: 8px;
  max-width: calc(100vw - 16px);
  box-sizing: border-box;
  z-index: 30;
  display: flex;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  pointer-events: none;
  transform: translateZ(0);
}

.hud-cluster {
  display: flex;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 5px;
  min-width: 0;
  pointer-events: auto;
}

.hud-left {
  flex: 0 1 auto;
}

.hud-center {
  flex: 0 0 auto;
  flex-direction: column;
  gap: 2px;
}

.hud-right {
  flex: 0 1 auto;
  justify-content: flex-end;
}

.vitals-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 162px;
  padding: 1px 6px;
}

.vital-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
}

.vital-tag {
  min-width: 34px;
  font-size: 12px;
  color: var(--text-muted);
}

.vital-bar {
  flex: 1;
  min-width: 48px;
  height: 9px;
  background: #11161F;
  border: 1px solid #4B5B73;
  transform: skewX(-8deg);
  overflow: hidden;
}

.vital-fill {
  height: 100%;
  transition: width 0.1s linear;
}

.fill-hazard { background: linear-gradient(90deg, var(--fiery-orange), var(--hazard-orange)); }
.fill-emerald { background: linear-gradient(90deg, #1E9E68, var(--cyber-mint)); }

/* Pop-out Silhouette Currency Pills (`UI_STYLE_BIBLE` §1.3 & Lesson #16) */
.currency-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1px 8px 1px 6px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.currency-pill img {
  width: 24px;
  height: 24px;
  margin: -4px 2px -4px -8px;
  object-fit: contain;
  flex-shrink: 0;
}

.clickable-pill {
  cursor: pointer;
}

.plus-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: var(--hazard-orange);
  color: #10141E;
  font-weight: 900;
  font-size: 13px;
}

.wave-telemetry {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 1px 10px;
  font-family: var(--font-hud);
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
}

.swarm-badge {
  color: var(--hazard-orange);
  font-weight: 800;
}

.xp-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 196px;
}

.xp-bar-track {
  flex: 1;
  height: 9px;
  background: #121822;
  border: 1px solid var(--hazard-orange);
  transform: skewX(-8deg);
  overflow: hidden;
}

.xp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--hazard-orange), var(--emerald-plasma));
}

.xp-lvl {
  font-family: var(--font-hud);
  font-size: 13px;
  font-weight: 800;
  color: var(--amber-gold);
  white-space: nowrap;
}

.meta-hud-btn {
  min-height: 38px;
  padding: 2px 9px 2px 8px;
  font-size: 13px;
  white-space: nowrap;
}

.meta-hud-btn .btn-label {
  white-space: nowrap;
}

.meta-hud-btn img {
  width: 20px;
  height: 20px;
  margin-left: -3px;
  margin-right: 2px;
  object-fit: contain;
  flex-shrink: 0;
}

.util-hud-btn {
  min-width: 40px;
  min-height: 38px;
  border-width: 8px 10px 8px 10px;
  padding: 2px 6px;
  font-size: 13px;
  flex-shrink: 0;
  white-space: nowrap;
}

.util-hud-btn .btn-label {
  white-space: nowrap !important;
  word-break: keep-all;
}

.compact-hud-btn {
  min-height: 38px;
  border-width: 9px 11px 8px 11px;
  padding: 2px 9px;
  font-size: 13px;
  white-space: nowrap;
}

.hotkey-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 5px;
  background: #111622;
  border: 1px solid var(--hazard-orange);
  color: var(--hazard-orange);
  font-family: var(--font-hud);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
}

/* BOSS HUD (`frame_subpanel.png`) — compact centered strip cleanly separated from edge-docked toasts */
.boss-hud {
  position: fixed;
  top: 62px;
  left: 50%;
  transform: translateX(-50%);
  width: min(500px, 44vw);
  z-index: 28;
  padding: 4px 12px;
  pointer-events: none;
  background-color: #282C2F;
  background-clip: padding-box;
  border-width: 10px 12px;
  border-image: url('../assets/ui/vault_tactical_angled_steel/frame_subpanel.png') 100 91 98 88 fill / 10px 12px / 0 stretch;
  transition: filter 0.08s ease;
}

.boss-hud.boss-hit-pulse {
  filter: brightness(1.28);
}

.boss-hud.boss-hit-pulse .boss-hp-track {
  border-color: #FFE066;
}

.boss-hud-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: #FF6B6B;
  margin-bottom: 4px;
}

.boss-hp-track {
  width: 100%;
  height: 12px;
  background: #160A0C;
  border: 2px solid var(--crimson-alert);
  transform: skewX(-8deg);
  overflow: hidden;
}

.boss-hp-fill {
  height: 100%;
  background: linear-gradient(90deg, #9E1F28, var(--crimson-alert), var(--hazard-orange));
}

/* ==========================================================================
   LEFT COLLAPSIBLE 330px MODULAR HANGAR DOCK (`frame_subpanel.png` + Icons)
   ========================================================================== */

.hangar-dock {
  position: fixed;
  top: 62px;
  left: 10px;
  bottom: 98px;
  width: min(356px, 31vw);
  z-index: 48;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background-color: #282C2F;
  background-clip: padding-box;
  border-width: 14px 14px 14px 14px;
  border-image: url('../assets/ui/vault_tactical_angled_steel/frame_subpanel.png') 100 91 98 88 fill / 14px / 0 stretch;
}

.hangar-dock.collapsed {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.hangar-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  flex-shrink: 0;
}

.hangar-tab-btn {
  min-height: 32px;
  padding: 2px 4px;
  background: #1A2331;
  border: 1px solid #44566F;
  color: #DCE6F5;
  font-family: var(--font-hud);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.hangar-tab-btn.active {
  background: var(--hazard-orange);
  border-color: #FFF0C2;
  color: #10141E !important;
}

.hangar-sector-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.hangar-sector-btn {
  min-height: 36px !important;
  padding: 4px 6px !important;
  font-size: 11.5px !important;
  gap: 4px !important;
}

.hangar-sector-btn .btn-label {
  text-align: left;
  font-size: 11.5px;
  line-height: 1.15;
}

.dock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dock-header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--hazard-orange);
}

.dock-header-btns {
  display: flex;
  gap: 6px;
}

.help-mini-btn,
.close-mini-btn {
  position: relative;
  z-index: 2;
  min-height: 30px;
  min-width: 30px;
  padding: 2px 7px;
  background: #182230;
  border: 1px solid var(--hazard-orange);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.budget-box {
  background: #1B212A;
  border: 1px solid #48566A;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.budget-row,
.dps-preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}

.budget-track {
  flex: 1;
  height: 9px;
  background: #0F141D;
  border: 1px solid #4A5B73;
  overflow: hidden;
}

.budget-fill {
  height: 100%;
}

.synergy-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.syn-chip {
  font-size: 12px;
  font-weight: 800;
  padding: 2px 6px;
  background: #132826;
  border: 1px solid var(--emerald-plasma);
  color: var(--emerald-plasma);
}

.hangar-scroll-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 4px;
}

.hangar-sec-title {
  font-family: var(--font-hud);
  font-size: 12px;
  font-weight: 800;
  color: var(--amber-gold);
  margin: 4px 0 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hangar-item-btn {
  width: 100%;
  justify-content: space-between;
  text-align: left;
  padding: 4px 8px;
  background: #1B232F;
  border: 1px solid #415168;
  color: #FFFFFF;
  min-height: 36px;
  font-size: 13px;
  gap: 7px;
  flex-shrink: 0;
}

.hangar-item-left {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.hangar-item-ico {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.hangar-item-tag {
  font-family: var(--font-hud);
  font-size: 12px;
  font-weight: 800;
  color: var(--amber-gold);
  white-space: nowrap;
}

.hangar-item-btn.equipped {
  border-color: var(--emerald-plasma);
  background: #152B2A;
}

.full-w-btn {
  width: 100%;
}

/* ==========================================================================
   ROUND 5 COMPACT TACTICAL SKILL DECK (`68–92px` Square/Squircle + `slot_tile.png`)
   ========================================================================== */

.bottom-skill-bar {
  position: fixed;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%) translateZ(0);
  z-index: 29;
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 3px 10px;
  border-width: 10px 12px 10px 12px;
  border-image-width: 10px 12px 10px 12px;
  max-width: calc(100vw - 16px);
}

.deck-slot-btn {
  width: auto;
  min-width: clamp(94px, 7.6vw, 108px);
  height: 64px;
  min-height: 64px;
  padding: 3px 8px 3px;
  background-color: #272B2E;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 7px 7px 7px 7px;
  border-image: url('../assets/ui/vault_tactical_angled_steel/slot_tile.png') 95 95 98 95 fill / 7px / 0 stretch;
  color: #FFFFFF;
  font-family: var(--font-hud);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  gap: 2px;
}

.deck-slot-btn.slot-ult {
  outline: 1px solid var(--hazard-orange);
}

.deck-slot-btn.boost-active {
  outline: 2px solid var(--emerald-plasma);
  background-color: #14322B;
}

.deck-move-hint {
  display: inline-flex;
  align-items: center;
  position: relative;
  cursor: default;
  opacity: 0.94;
}

.deck-slot-btn .hotkey-tag {
  position: absolute;
  top: -11px;
  left: -6px;
  z-index: 8;
  font-size: 11px;
  padding: 1px 5px;
}

.deck-slot-btn img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.slot-lbl {
  display: block;
  font-family: var(--font-hud);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  color: #FFFFFF;
  white-space: nowrap;
  text-align: center;
  flex-shrink: 0;
}

/* ==========================================================================
   MODALS — ZERO `backdrop-filter`, ANTI-SAAS `60/25/15` VISUAL CARDS
   ========================================================================== */

.modal-scrim {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6, 10, 18, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.modal-card {
  width: min(600px, 94vw);
  max-height: 89vh;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 6px;
}

.modal-wide {
  width: min(900px, 95vw);
}

.modal-xl {
  width: min(1060px, 96vw);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.modal-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-title {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(19px, 1.65vw, 25px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #FFFFFF;
  text-shadow: 0 3px 0 #070B16;
}

.modal-foot-center {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
}

/* UNIVERSAL ANTI-SAAS `60/25/15` VISUAL CARD SYSTEM (Seasons, Workshop, Shop, Passes, Quests, Codex, Draft) */
.vf-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.vf-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

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

.vf-grid-3 > *,
.vf-grid-2 > *,
.vf-grid-4 > *,
.draft-cards-grid > *,
.shop-pack-grid > *,
.workshop-grid > *,
.codex-grid > *,
.sh-hub-grid > *,
.pass-tiers-row > * {
  min-width: 0;
  max-width: 100%;
}

/* OVERCLOCK 3-CARD DRAFT (`60/25/15`) */
.draft-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.draft-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 10px;
  cursor: pointer;
  text-align: center;
}

.draft-art-stage {
  width: 100%;
  height: 92px;
  background: rgba(11, 16, 25, 0.78);
  border: 1px solid #3C4D66;
  display: flex;
  align-items: center;
  justify-content: center;
}

.draft-art-stage img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.draft-card h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--hazard-orange);
}

.draft-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.3;
  color: #E2ECF8;
}

.dps-delta-pill {
  font-family: var(--font-hud);
  font-size: 12px;
  font-weight: 800;
  color: var(--emerald-plasma);
}

/* SHOP PACK GRID (`3x3` Balanced 9-SKU Grid — `60/25/15` Visual Cards) */
.shop-pack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.shop-pack-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 6px 8px;
  text-align: center;
}

.shop-badge {
  position: absolute;
  top: -6px;
  right: 6px;
  z-index: 8;
  padding: 2px 8px;
  background: var(--hazard-orange);
  border: 1px solid #10141E;
  color: #10141E;
  font-family: var(--font-hud);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.shop-art-wrap {
  width: 100%;
  height: 92px;
  background: rgba(12, 17, 26, 0.65);
  border: 1px solid #3A4B63;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.shop-art-wrap img {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.shop-card-title {
  margin: 0;
  font-family: var(--font-hud);
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
}

.shop-chips-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  width: 100%;
}

.shop-buy-btn {
  width: 100%;
  min-height: 38px;
}

/* WORKSHOP (`3x2` = 6 cards, ZERO orphan row!), QUESTS (`2x2` = 4 cards!), CODEX (`3x3` / `4x2`), PASSES */
.workshop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.quests-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

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

.passes-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.pass-tabs-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pass-banner-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 10px;
}

.pass-banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.pass-tiers-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ws-card,
.quest-row,
.pass-tier-card {
  position: relative;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  text-align: center;
}

/* ==========================================================================
   PILLAR 6: TACTICAL ICON SETTINGS & 3-STAR VICTORY SUMMARY
   ========================================================================== */

.settings-modal-card {
  width: min(560px, 94vw);
}

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

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 10px;
  font-size: 14px;
  font-weight: 700;
}

.setting-label-wrap {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.setting-row-ico {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.setting-svg-badge {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #16202E;
  border: 1px solid var(--hazard-orange);
  color: var(--hazard-orange);
  flex-shrink: 0;
}

.slider-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tactical-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 136px;
  height: 10px;
  background: #131923;
  border: 1px solid #52647C;
  outline: none;
  cursor: pointer;
}

.tactical-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 22px;
  background: var(--hazard-orange);
  border: 2px solid #10141E;
  cursor: pointer;
}

/* Clean Chamfered Tactical Toggle Switch (NO purple boxes!) */
.tactical-switch {
  min-width: 78px;
  min-height: 34px;
  padding: 3px 8px;
  background: #171E29;
  border: 2px solid #52647C;
  color: #CBD5E1 !important;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
}

.tactical-switch .switch-knob {
  width: 14px;
  height: 14px;
  background: #64748B;
  transition: transform 0.14s ease, background 0.14s ease;
}

.tactical-switch.is-on {
  background: #142B24;
  border-color: var(--emerald-plasma);
  color: var(--emerald-plasma) !important;
}

.tactical-switch.is-on .switch-knob {
  background: var(--emerald-plasma);
  transform: translateX(2px);
}

.settings-actions-grid,
.powerup-strip,
.result-stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.settings-actions-grid > *,
.powerup-strip > *,
.result-stats-row > * {
  min-width: 0;
  max-width: 100%;
}

/* VICTORY 3-STAR & RESULT SUMMARY */
.result-banner-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.victory-stars-canvas {
  width: 280px;
  height: 92px;
  display: block;
  margin: 0 auto;
  align-self: center;
  pointer-events: none;
}

.stat-box {
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 800;
}

.stat-box-ico {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.stat-box strong {
  font-size: 18px;
}

.result-dps-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dps-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.dps-bar-fill-wrap {
  flex: 1;
  height: 10px;
  background: #0F1520;
  border: 1px solid #485A73;
}

.dps-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--hazard-orange), var(--emerald-plasma));
}

.btn-res-next {
  min-height: 48px;
  font-size: 16px;
}

/* CHEST MODAL */
.chest-modal-card {
  align-items: center;
  text-align: center;
}

.chest-hero-img {
  width: 128px;
  height: 128px;
  object-fit: contain;
  cursor: pointer;
}

.chest-beat-anticipate {
  animation: chestPulse 0.32s infinite alternate ease-in-out;
}

@keyframes chestPulse {
  from { transform: scale(0.95) rotate(-3deg); }
  to { transform: scale(1.07) rotate(3deg); }
}

.chest-reward-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.chest-reward-item {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.chest-reward-item img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

/* ==========================================================================
   PILLAR 3: VISUAL SPOTLIGHT RING + ANIMATED `tut-hand` & 3-ICON FLOW STRIP
   ========================================================================== */

.tut-spotlight-ring {
  position: fixed;
  z-index: 54;
  pointer-events: none;
  border: 3px solid var(--hazard-orange);
  outline: 2px solid var(--tactical-cyan);
  box-shadow: none;
  transform: translateZ(0);
}

.tut-hand {
  position: absolute;
  right: -24px;
  bottom: -28px;
  width: 36px;
  height: 36px;
  pointer-events: none;
  will-change: transform;
  animation: tutHandBounce 0.78s infinite alternate ease-in-out;
}

.sw-gl .tut-hand {
  animation: none;
}

.tut-spotlight-ring.hand-below .tut-hand {
  right: 50%;
  bottom: -38px;
  transform: translateX(50%);
}

@keyframes tutHandBounce {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-5px, -7px) scale(0.93); }
}

.tutorial-banner {
  position: fixed;
  bottom: 112px;
  left: 50%;
  transform: translateX(-50%) translateZ(0);
  width: min(620px, 90vw);
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 10px;
}

.tut-badge {
  padding: 3px 8px;
  background: var(--hazard-orange);
  color: #10141E;
  font-family: var(--font-hud);
  font-weight: 900;
  font-size: 12px;
  white-space: nowrap;
}

.tut-step-ico {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.tut-text {
  margin: 0;
  flex: 1;
  font-family: var(--font-hud);
  font-size: 15px;
  font-weight: 800;
  color: #FFFFFF;
}

.tut-btns {
  display: flex;
  gap: 8px;
}

.ftue-highlight-target {
  outline: 3px solid var(--hazard-orange) !important;
  outline-offset: 3px;
}

/* 3-Icon Visual Tactical Flow Strip (`[Icon 1] -> [Icon 2] -> [Icon 3]`, <= 4 words/step) */
.guide-modal-card {
  width: min(640px, 94vw);
}

.guide-flow-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 2px;
}

.guide-flow-step {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 8px;
  text-align: center;
}

.guide-flow-step img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.guide-flow-step strong {
  font-family: var(--font-hud);
  font-size: 13px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
}

.guide-flow-arrow {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--hazard-orange);
  flex-shrink: 0;
}

/* FLYING CURRENCY & TOASTS */
.flying-currency-icon {
  position: fixed;
  width: 24px;
  height: 24px;
  z-index: 200;
  pointer-events: none;
}

.toast-stack {
  position: fixed;
  top: auto;
  bottom: 88px;
  right: 12px;
  max-width: 276px;
  z-index: 180;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 6px;
  pointer-events: none;
}

.cyber-toast {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 276px;
  padding: 4px 10px;
  background-color: #282C2F;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 6px 9px;
  border-image: url('../assets/ui/vault_tactical_angled_steel/hud_pill.png') 54 56 54 57 fill / 6px 9px / 0 stretch;
  color: #FFFFFF;
  font-family: var(--font-hud);
  font-weight: 800;
  font-size: 12px;
  line-height: 1.2;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.cyber-toast img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.cyber-toast.toast-hide {
  opacity: 0;
  transform: translateX(24px);
}

/* PREVIEW-ONLY `[DEV F2]` PILL & PANEL */
.dev-f2-pill {
  position: fixed;
  bottom: 10px;
  right: 10px;
  z-index: 250;
  min-height: 28px;
  padding: 2px 8px;
  background: #171D28;
  border: 1px solid var(--amber-gold);
  color: var(--amber-gold);
  font-size: 12px;
}

.dev-debug-panel {
  position: fixed;
  bottom: 44px;
  right: 10px;
  width: min(420px, 92vw);
  z-index: 251;
  background: #121824;
  border: 2px solid var(--amber-gold);
  padding: 10px;
}

.dev-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--amber-gold);
}

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

.dev-grid button {
  background: #1C2638;
  border: 1px solid #4A5F88;
  color: #FFFFFF;
  font-size: 12px;
  min-height: 32px;
  padding: 4px 6px;
}

/* ==========================================================================
   SEASONS & MODES ANTI-SAAS VISUAL HUB (`60/25/15` Visual Law)
   ========================================================================== */

.sh-status-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.sh-tabs-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 2px solid #334155;
  padding-bottom: 4px;
}

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

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

.season-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 6px 8px;
  text-align: center;
}

.sh-art-stage {
  position: relative;
  width: 100%;
  height: 112px;
  background: rgba(11, 16, 25, 0.76);
  border: 1px solid #3A4C66;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sh-art-hero {
  width: 100%;
  height: 104px;
  object-fit: contain;
  display: block;
}

.sh-art-badge {
  position: absolute;
  bottom: 4px;
  right: 6px;
  width: 30px;
  height: 30px;
  object-fit: contain;
  background: rgba(12, 18, 28, 0.9);
  border: 1px solid var(--hazard-orange);
  padding: 3px;
}

.sh-title {
  margin: 0;
  font-family: var(--font-hud);
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
}

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

.sh-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  background: rgba(13, 19, 30, 0.92);
  border: 1px solid #435673;
  font-family: var(--font-hud);
  font-size: 12px;
  font-weight: 700;
  color: var(--cyber-mint);
}

.sh-chip img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.sh-action-btn {
  width: 100%;
  min-height: 38px;
}

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

.hangar-preset-pill {
  min-height: 34px;
  padding: 2px 4px;
  background: #1A2332;
  border: 1px solid #41536E;
  color: #FFFFFF;
  font-size: 12px;
}

.hangar-preset-pill.active {
  border-color: var(--emerald-plasma);
  background: #142B2A;
}

/* COMPACT DESKTOP `<= 1520px` (incl. `1280x720`) — ZERO WRAP, ZERO CLIP, >= 13px READABLE HUD! */
@media (max-width: 1520px) {
  .top-hud {
    left: 4px;
    right: 4px;
    max-width: calc(100vw - 8px);
    gap: 4px;
  }
  .hud-cluster {
    gap: 3px;
  }
  .vitals-box {
    min-width: 118px;
    border-width: 7px 9px;
    padding: 1px 4px;
  }
  .vital-row {
    font-size: 13px;
    gap: 4px;
  }
  .vital-tag,
  .curr-lbl {
    display: none;
  }
  .currency-pill {
    padding: 1px 6px 1px 5px;
    border-width: 7px 8px;
    font-size: 13px;
  }
  .currency-pill img {
    width: 20px;
    height: 20px;
    margin: -3px 1px -3px -5px;
  }
  .wave-telemetry {
    padding: 1px 7px;
    border-width: 7px 9px;
    font-size: 13px;
    gap: 4px;
  }
  .xp-strip {
    width: 118px;
  }
  .meta-hud-btn {
    min-height: 35px;
    border-width: 7px 8px 7px 8px;
    padding: 1px 5px;
    font-size: 13px;
    gap: 3px;
  }
  .meta-hud-btn img {
    width: 16px;
    height: 16px;
    margin-left: -2px;
    margin-right: 1px;
  }
  .util-hud-btn {
    min-width: 36px;
    min-height: 35px;
    border-width: 7px 8px 7px 8px;
    padding: 1px 4px;
    font-size: 13px;
    flex-shrink: 0;
  }
  .compact-hud-btn {
    min-height: 35px;
    border-width: 8px 9px 7px 9px;
    padding: 1px 6px;
    font-size: 13px;
  }
}

/* ULTRA-DENSE 720p (`<= 1380px`) — ZERO TOUCH EVEN WHEN ALL 6 STAGE-8 META BUTTONS ARE UNLOCKED! */
@media (max-width: 1380px) {
  .vitals-box {
    min-width: 94px;
    border-width: 6px 7px;
    padding: 1px 3px;
  }
  .vital-bar {
    min-width: 30px;
  }
  .currency-pill {
    border-width: 6px 6px;
    padding: 1px 4px;
    gap: 3px;
  }
  .currency-pill img {
    width: 17px;
    height: 17px;
    margin: -2px 0 -2px -3px;
  }
  .wave-telemetry {
    border-width: 6px 7px;
    padding: 1px 5px;
    gap: 3px;
  }
  .xp-strip {
    width: 96px;
  }
  .meta-hud-btn {
    border-width: 6px 6px 6px 6px;
    padding: 1px 3px;
    gap: 2px;
  }
  .meta-hud-btn img {
    width: 14px;
    height: 14px;
    margin-left: 0;
    margin-right: 0;
  }
  .util-hud-btn {
    min-width: 34px;
    border-width: 6px 6px 6px 6px;
    padding: 1px 3px;
  }
  .compact-hud-btn {
    border-width: 6px 7px 6px 7px;
    padding: 1px 4px;
  }
  .bottom-skill-bar {
    gap: 6px;
    padding: 2px 8px;
  }
  .deck-slot-btn {
    min-width: 90px;
    height: 62px;
    min-height: 62px;
    padding: 3px 7px 2px;
  }
  .deck-slot-btn img {
    width: 26px;
    height: 26px;
  }
  .slot-lbl {
    font-size: 11.5px;
  }
}

/* RESPONSIVE `< 900px` STACK */
@media (max-width: 900px) {
  .title-main-grid {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
    padding: 12px 18px;
  }
  .title-left-copy {
    align-items: center;
  }
  .hero-portrait-stage {
    height: 32vh;
  }
  .shop-pack-grid,
  .workshop-grid,
  .codex-grid,
  .draft-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hangar-dock {
    width: min(300px, 86vw);
  }
}
