/* Apex Ledger: Global Tycoon — Cyber PCB Terminal Precision UI
 * Strict Rules:
 * - Zero external Google Fonts network requests (offline MSIX)
 * - Zero backdrop-filter: blur(...) over WebGL/Canvas
 * - overflow: visible on badged/pop-out buttons
 * - Flex-scroll .modal-card (max-height: 90vh) for 1280x720 safety
 * - Anti-SaaS 60/25/15 visual cards with minmax(0, 1fr) grids
 */

:root {
  --al-bg: #04070A;
  --al-surface: #0B1117;
  --al-surface-2: #111A23;
  --al-emerald: #46E08A;
  --al-cyan: #63D3DC;
  --al-gold: #FFB23E;
  --al-danger: #FF4F4F;
  --al-ink: #060B0F;
  --al-text: #E8F6F2;
  --al-muted: #98B5B0;
  --al-font-display: 'Chakra Petch', 'Bahnschrift', 'Segoe UI', sans-serif;
  --al-font-mono: 'JetBrains Mono', 'Cascadia Mono', 'Consolas', monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: var(--al-bg);
  color: var(--al-text);
  font-family: var(--al-font-display);
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

.tabular {
  font-family: var(--al-font-mono);
  font-variant-numeric: tabular-nums;
}

/* ============================================================================
   FULL-BLEED INTERACTIVE GAMEPLAY CANVAS (100% VIEWPORT)
   ============================================================================ */
#game-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 1;
  background: #05090D;
  cursor: pointer;
}

#cutin-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 80;
  display: none;
}

/* ============================================================================
   HEROIC NO-BOX TITLE SCREEN (PILLAR 1: ZERO LOGIN CARD WRAPPER!)
   ============================================================================ */
#title-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 50;
  overflow: hidden;
  background: #04070A url('../assets/art/title_bg.jpg') center center / cover no-repeat;
}

#title-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 32% 45%, rgba(4, 9, 14, 0.22) 0%, rgba(4, 7, 10, 0.62) 60%, rgba(3, 6, 9, 0.88) 100%);
  pointer-events: none;
}

.title-corner-top {
  position: absolute;
  top: 16px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 12;
  flex-wrap: nowrap;
}

.title-corner-left {
  position: absolute;
  top: 16px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 12;
  flex-wrap: nowrap;
}

.title-hero-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

.title-emblem-zone {
  position: absolute;
  left: clamp(44px, 6vw, 110px);
  top: 50%;
  transform: translateY(-52%);
  max-width: min(640px, 52vw);
  z-index: 10;
  pointer-events: auto;
  /* Explicitly transparent & borderless — Heroic No-Box Law! */
  background: transparent;
  border: none;
}

.title-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  font-family: var(--al-font-mono);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--al-emerald);
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.title-main-h1 {
  margin: 4px 0 0;
  font-family: var(--al-font-display);
  font-size: clamp(46px, 5.4vw, 82px);
  font-weight: 800;
  font-style: italic;
  line-height: 0.96;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  text-shadow: 0 5px 0 #07131A, 0 0 26px rgba(70, 224, 138, 0.48);
}

.title-sub-h2 {
  margin: 6px 0 18px;
  font-family: var(--al-font-display);
  font-size: clamp(20px, 2.2vw, 32px);
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--al-cyan);
  text-shadow: 0 3px 0 #061016, 0 0 16px rgba(99, 211, 220, 0.42);
}

.title-hub-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.title-hub-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--al-muted);
  margin-right: 4px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

.hub-choice-btn {
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--al-text);
  cursor: pointer;
  overflow: visible !important;
  transition: transform 0.14s ease, filter 0.14s ease;
}

.hub-choice-btn.active {
  color: var(--al-emerald);
  filter: drop-shadow(0 0 8px rgba(70, 224, 138, 0.55));
}

.title-loader-wrap {
  width: min(400px, 44vw);
  margin-top: 8px;
}

.title-loader-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-family: var(--al-font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--al-emerald);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

.title-loader-track {
  position: relative;
  width: 100%;
  height: 28px;
  padding: 0;
  display: flex;
  align-items: center;
}

.title-loader-fill {
  height: 100%;
  width: 0%;
  min-width: 18px;
  transition: width 0.15s ease-out;
}

.title-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

#btn-title-play {
  min-width: 240px;
  height: 62px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #07140D;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55));
  overflow: visible !important;
}

#btn-title-play:hover {
  filter: drop-shadow(0 0 14px rgba(70, 224, 138, 0.65));
}

.title-portrait-wrap {
  position: absolute;
  right: clamp(32px, 6vw, 110px);
  bottom: 0;
  width: clamp(300px, 31vw, 500px);
  height: clamp(340px, 64vh, 620px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  z-index: 6;
}

#title-hero-portrait {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ============================================================================
   GAMEPLAY FLOATING CORNER HUD (0 FULL-HEIGHT SIDEBARS, 100% PLAYFIELD)
   ============================================================================ */
#hud-layer {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

/* Top Telemetry Bar — Single row, flex-wrap: nowrap, safe at 1280x720 in all 9 langs */
#hud-top {
  position: absolute;
  top: 8px;
  left: 10px;
  right: 10px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
  pointer-events: none;
}

.hud-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  min-width: 0;
  pointer-events: auto;
}

.hud-pill {
  height: 44px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  overflow: visible !important;
  cursor: pointer;
}

img.pill-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
  pointer-events: none;
}

.hud-kpi-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.hud-kpi-val {
  font-family: var(--al-font-mono);
  font-size: 16px;
  font-weight: 800;
  color: #FFFFFF;
}

.hud-kpi-sub {
  font-family: var(--al-font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--al-emerald);
}

.hud-bank-badge {
  height: 44px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--al-gold);
  white-space: nowrap;
  cursor: pointer;
  overflow: visible !important;
}

.hud-event-chip {
  height: 44px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--al-cyan);
  white-space: nowrap;
  cursor: pointer;
  overflow: visible !important;
}

.hud-event-chip .txt-clip {
  white-space: nowrap;
}

.hud-event-timer {
  font-family: var(--al-font-mono);
  font-size: 13px;
  color: var(--al-gold);
}

.hud-top-btn {
  position: relative;
  height: 42px;
  min-width: 42px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 800;
  color: var(--al-text);
  cursor: pointer;
  overflow: visible !important;
  flex-shrink: 0;
}

.hud-top-btn img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  pointer-events: none;
  flex-shrink: 0;
}

.hud-top-btn .btn-lbl {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 112px;
}

.hud-top-btn.icon-only {
  width: 44px;
  padding: 0;
}

/* Compact Floating Left-Top Objective Tracker (height ~84px, NEVER a full sidebar!) */
#hud-objective-chip {
  position: absolute;
  top: 68px;
  left: 12px;
  width: 236px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
  cursor: pointer;
  overflow: visible !important;
}

#hud-objective-chip img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.obj-text-col {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.obj-head {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--al-emerald);
}

.obj-desc {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.obj-bar-outer {
  width: 100%;
  height: 7px;
  background: rgba(6, 12, 18, 0.85);
  border: 1px solid rgba(70, 224, 138, 0.35);
  overflow: hidden;
}

.obj-bar-inner {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #46E08A, #63D3DC);
  transition: width 0.2s ease;
}

/* Compact Floating Right-Bottom Live Market Mini-Strip (height ~108px, NOT a sidebar!) */
#hud-market-mini {
  position: absolute;
  right: 12px;
  bottom: 14px;
  width: 244px;
  padding: 8px 10px;
  pointer-events: auto;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mini-mkt-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
  color: var(--al-cyan);
}

.mini-mkt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--al-font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--al-text);
}

.mini-mkt-up { color: var(--al-emerald); }
.mini-mkt-dn { color: var(--al-danger); }

/* Floating Bottom Command Dock (Compact 74px tiles, 42-44px icons, overflow: visible) */
#hud-bottom-dock {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
  pointer-events: auto;
  z-index: 25;
}

.dock-btn {
  position: relative;
  width: 100px;
  height: 84px;
  padding: 1px 2px 2px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  overflow: visible !important;
  flex-shrink: 0;
  transition: transform 0.12s ease;
}

.dock-btn img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  pointer-events: none;
  flex-shrink: 0;
}

.dock-btn .dock-lbl {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  color: #FFFFFF;
  white-space: nowrap;
}

.dock-btn.primary-tap {
  width: 118px;
  height: 88px;
  padding: 0 3px;
}

.dock-btn.primary-tap img {
  width: 38px;
  height: 38px;
}

.dock-btn.primary-tap .dock-lbl {
  color: #07140D;
  font-size: 12px;
}

.hotkey-chip {
  position: absolute;
  top: -7px;
  left: -5px;
  min-width: 20px;
  height: 18px;
  padding: 0 5px;
  background: #060D14;
  border: 1px solid var(--al-cyan);
  color: var(--al-cyan);
  font-family: var(--al-font-mono);
  font-size: 11px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
  pointer-events: none;
  z-index: 8;
}

.notify-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: #FF3B5C;
  border: 2px solid #060B0F;
  color: #FFFFFF;
  font-family: var(--al-font-mono);
  font-size: 11px;
  font-weight: 900;
  line-height: 16px;
  text-align: center;
  pointer-events: none;
  z-index: 30;
  display: none;
}

.notify-badge.active {
  display: inline-block;
}

/* Combo & Active Surge Banner floating cleanly above Bottom Dock */
#hud-combo-strip {
  position: absolute;
  left: 50%;
  bottom: 98px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 14px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
}

#hud-combo-strip.visible {
  opacity: 1;
}

.combo-mult-txt {
  font-family: var(--al-font-mono);
  font-size: 18px;
  font-weight: 900;
  color: var(--al-gold);
}

.combo-bar-mini {
  width: 110px;
  height: 8px;
  background: rgba(4, 9, 14, 0.85);
  border: 1px solid rgba(255, 178, 62, 0.45);
  overflow: hidden;
}

.combo-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #46E08A, #FFB23E);
}

/* Floating Toast Notice */
#hud-toast {
  position: fixed;
  top: 66px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  padding: 8px 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
  z-index: 95;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

#hud-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

#hud-toast img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* ============================================================================
   MODAL SYSTEM — FLEX SCROLL 90VH SAFE AT 1280x720 + ANTI-SAAS 60/25/15
   ============================================================================ */
#modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 11, 0.78);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  width: min(1040px, 95vw);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  color: var(--al-text);
}

.modal-card.compact {
  width: min(580px, 92vw);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px 10px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(70, 224, 138, 0.22);
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.modal-title-wrap img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.modal-title {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.modal-help-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  color: #07140D;
  cursor: pointer;
}

.modal-close-x {
  width: 38px;
  height: 38px;
  padding: 0;
  background: transparent url('../assets/ui/vault_cyber_pcb_terminal/btn_close.png') center / contain no-repeat;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.modal-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 4px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.modal-tab-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.modal-tab-btn {
  position: relative;
  height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--al-muted);
  cursor: pointer;
  overflow: visible !important;
}

.modal-tab-btn.active {
  color: #FFFFFF;
}

.modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 6px 10px;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 6px 2px;
  flex-shrink: 0;
  border-top: 1px solid rgba(70, 224, 138, 0.22);
}

/* Modal Card Grids — Strict minmax(0, 1fr) containment law! */
.vf-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.vf-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.vf-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.vf-grid-4 > *, .vf-grid-3 > *, .vf-grid-2 > * {
  min-width: 0;
  max-width: 100%;
}

/* Visual-First 60/25/15 Game Card */
.vf-card-portrait {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 6px 8px;
  min-height: 214px;
  text-align: center;
  overflow: visible !important;
}

.vf-badge {
  position: absolute;
  top: -10px;
  right: 6px;
  padding: 2px 8px;
  background: var(--al-gold);
  color: #071014;
  font-family: var(--al-font-mono);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  z-index: 6;
  pointer-events: none;
}

.vf-badge.emerald { background: var(--al-emerald); }
.vf-badge.cyan { background: var(--al-cyan); }

.vf-art-stage {
  width: 100%;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.vf-art-stage img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  display: block;
}

.vf-title {
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.15;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vf-stat-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.vf-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  background: rgba(6, 13, 20, 0.84);
  border: 1px solid rgba(99, 211, 220, 0.35);
  font-family: var(--al-font-mono);
  font-size: 12px;
  font-weight: 800;
  color: var(--al-emerald);
  white-space: nowrap;
}

.vf-chip.gold { color: var(--al-gold); border-color: rgba(255, 178, 62, 0.4); }
.vf-chip.cyan { color: var(--al-cyan); }
.vf-chip.danger { color: var(--al-danger); border-color: rgba(255, 79, 79, 0.45); }

.vf-chip img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.vf-cta {
  width: 100%;
  height: 40px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  overflow: visible !important;
}

.vf-cta img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.vf-cta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Stock Exchange Cards */
.stock-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 8px;
  min-height: 178px;
}

.stock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.stock-id-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.stock-id-wrap img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.stock-ticker {
  font-family: var(--al-font-mono);
  font-size: 16px;
  font-weight: 900;
  color: #FFFFFF;
}

.stock-price-col {
  text-align: right;
  font-family: var(--al-font-mono);
}

.stock-price {
  font-size: 16px;
  font-weight: 900;
  color: var(--al-emerald);
}

.stock-delta {
  font-size: 12px;
  font-weight: 800;
}

.stock-spark-wrap {
  width: 100%;
  height: 44px;
  background: rgba(4, 10, 16, 0.82);
  border: 1px solid rgba(99, 211, 220, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
}

.stock-spark-wrap svg {
  width: 100%;
  height: 38px;
  display: block;
}

.stock-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.stock-act-btn {
  height: 34px;
  padding: 0 2px;
  border-width: 7px 6px 7px 6px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
}

.stock-act-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Interactive 3D-Flipping VIP Bank Card Banner */
.vip-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  margin-bottom: 10px;
}

.vip-bank-3d {
  width: 224px;
  height: 112px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #0D1924 0%, #192E3B 55%, #0B1218 100%);
  border: 2px solid var(--al-emerald);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  flex-shrink: 0;
}

.vip-bank-3d.flipped {
  transform: rotateY(180deg);
}

.vip-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--al-font-mono);
  font-size: 12px;
  font-weight: 900;
  color: var(--al-gold);
}

.vip-mid {
  font-family: var(--al-font-mono);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #FFFFFF;
}

.vip-bot {
  display: flex;
  justify-content: space-between;
  font-family: var(--al-font-mono);
  font-size: 12px;
  color: var(--al-emerald);
}

/* Season Horizontal Milestone Track */
.season-hero-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  margin-bottom: 10px;
}

.season-hero-banner img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.season-bar {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.season-nodes-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.season-node-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #0D1822;
  border: 2px solid rgba(99, 211, 220, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--al-font-mono);
  font-size: 12px;
  font-weight: 800;
  color: var(--al-muted);
}

.season-node-dot.reached {
  background: var(--al-emerald);
  border-color: #FFFFFF;
  color: #06100A;
}

/* Settings Clean Controls */
.settings-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.settings-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(8, 16, 24, 0.85);
  border: 1px solid rgba(70, 224, 138, 0.24);
}

.settings-lbl {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
}

.settings-lbl img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.settings-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.settings-slider {
  width: 140px;
  accent-color: var(--al-emerald);
  cursor: pointer;
}

.settings-select {
  height: 36px;
  padding: 0 10px;
  background: #08121B;
  border: 1px solid var(--al-cyan);
  color: #FFFFFF;
  font-family: var(--al-font-display);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.settings-toggle-btn {
  min-width: 74px;
  height: 34px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

/* Visual FTUE Spotlight & Pointer Hand */
#tut-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
}

.tut-dim {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 11, 0.42);
  pointer-events: none;
}

.tut-spotlight {
  position: absolute;
  border: 3px solid var(--al-emerald);
  box-shadow: 0 0 0 9999px rgba(3, 7, 11, 0.42), 0 0 18px rgba(70, 224, 138, 0.8);
  pointer-events: none;
  transition: all 0.25s ease;
}

.tut-hand {
  position: absolute;
  width: 44px;
  height: 44px;
  pointer-events: none;
  z-index: 125;
  animation: tut-bob 0.85s ease-in-out infinite alternate;
}

@keyframes tut-bob {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-6px, -10px) scale(1.08); }
}

.tut-pill {
  position: absolute;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 900;
  color: #FFFFFF;
  pointer-events: auto;
  z-index: 126;
}

#btn-tut-skip {
  position: fixed;
  top: 68px;
  right: 16px;
  height: 38px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 800;
  pointer-events: auto;
  z-index: 128;
  cursor: pointer;
}

/* 3-Icon Visual Feature Guide Strip */
#feature-guide-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 11, 0.72);
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-strip-card {
  width: min(560px, 92vw);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.guide-steps-row {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.guide-step-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 6px;
  text-align: center;
}

.guide-step-tile img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.guide-step-tile span {
  font-size: 13px;
  font-weight: 800;
  color: #FFFFFF;
}

/* Preview-Only [DEV F2] Panel (NEVER mounted when __MS_RELEASE__ === true) */
#dev-f2-pill {
  position: fixed;
  left: 12px;
  bottom: 14px;
  height: 32px;
  padding: 0 10px;
  background: rgba(10, 18, 28, 0.9);
  border: 1px solid var(--al-gold);
  color: var(--al-gold);
  font-family: var(--al-font-mono);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  z-index: 70;
}

#debug-panel {
  position: fixed;
  left: 12px;
  bottom: 52px;
  width: 260px;
  padding: 10px;
  background: rgba(7, 13, 20, 0.96);
  border: 2px solid var(--al-gold);
  z-index: 140;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#debug-panel button {
  height: 30px;
  background: #142230;
  border: 1px solid var(--al-cyan);
  color: #E8F6F2;
  font-family: var(--al-font-mono);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* ============================================================================
   SEASON v1.1-v1.3 TERMINAL THEMES & PROGRESSIVE LOCK CHIP
   ============================================================================ */
:root[data-terminal-theme="gold"] {
  --al-emerald: #FFB23E;
  --al-cyan: #FDE68A;
}

:root[data-terminal-theme="cyan"] {
  --al-emerald: #38BDF8;
  --al-cyan: #46E08A;
}

.lock-chip {
  position: absolute;
  top: -6px;
  right: -5px;
  padding: 1px 5px;
  background: #060D14;
  border: 1px solid var(--al-gold);
  color: var(--al-gold);
  font-family: var(--al-font-mono);
  font-size: 10px;
  font-weight: 900;
  line-height: 14px;
  pointer-events: none;
  z-index: 28;
}

.is-locked-preview {
  opacity: 0.72;
}

.season-locked-card {
  justify-content: center;
  gap: 10px;
}

/* ============================================================================
   RESPONSIVE 1280x720 & <900px SAFE ADAPTATIONS
   ============================================================================ */
@media (max-width: 1360px) {
  .hud-top-btn .btn-lbl { display: none; }
  #hud-market-mini { width: 224px; }
  #hud-objective-chip { width: 212px; }
  .dock-btn { width: 92px; height: 82px; }
  .dock-btn img { width: 34px; height: 34px; }
  .dock-btn.primary-tap { width: 108px; height: 86px; }
}

@media (max-width: 900px) {
  #hud-market-mini, #hud-objective-chip { display: none; }
  .vf-grid-4, .vf-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .title-portrait-wrap { opacity: 0.35; }
}
