/* Stormblade: Horde Survivors — UI Vault indigo_arcade_gloss + Round 5 Spatial Law
 * Offline MSIX safe: ZERO external Google Fonts imports, ZERO backdrop-filter blur.
 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #18153B;
  color: #F8FAFC;
  font-family: var(--uiv-font-body, 'Segoe UI', system-ui, sans-serif);
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

/* ==================== BOOT LOADING OVERLAY ==================== */
#boot-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: radial-gradient(circle at 50% 40%, #2B246D 0%, #18153B 75%);
  transition: opacity 0.35s ease;
}
#boot-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.boot-title {
  font-family: var(--uiv-font-display, 'Segoe UI', sans-serif);
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 900;
  color: #FFE14D;
  -webkit-text-stroke: 2px #151136;
  text-shadow: 0 5px 0 #151136;
  letter-spacing: 0.04em;
}
.boot-bar-wrap {
  width: min(420px, 78vw);
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}
#boot-bar-fill {
  height: 100%;
  width: 8%;
  background: linear-gradient(180deg, #4ADE80 0%, #22C55E 65%, #15803D 100%);
  border-radius: 10px;
  transition: width 0.16s ease;
}
#boot-pct {
  font-size: 16px;
  font-weight: 800;
  color: #E2E8F0;
}

/* ==================== GAME CANVAS LAYERS ==================== */
#stage-root {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #18153B;
}
#game-canvas {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 1;
}
#vfx-3d-canvas {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 4;
  pointer-events: none;
  display: none;
}
#diegetic-canvas {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 5;
  pointer-events: none;
  display: none;
}
#ui-vfx-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 800;
  pointer-events: none;
  display: none;
}
#cutin-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 700;
  pointer-events: none;
  display: none;
}

/* ==================== HEROIC NO-BOX TITLE SCREEN ==================== */
#title-screen {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: clamp(18px, 2.6vh, 34px) clamp(20px, 3vw, 44px) clamp(24px, 3.6vh, 44px);
  background: #18153B url('../assets/art/title_bg.jpg') center center / cover no-repeat;
  overflow: hidden;
}
#title-screen.is-hidden {
  display: none !important;
}

/* Top bar on Title screen: clean transparent utility corner controls */
.title-topbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 6;
  pointer-events: none;
}
.title-topbar > * {
  pointer-events: auto;
}
.title-top-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Heroic Title Lockup — STRICTLY NO BOX, NO BACKGROUND, NO BORDER wrapping h1! */
.title-hero-lockup {
  position: relative;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: transparent;
  border: none;
  margin-top: -1vh;
  pointer-events: none;
}
.title-hero-lockup h1 {
  font-family: var(--uiv-font-display, 'Segoe UI', sans-serif);
  font-size: clamp(46px, 5.6vw, 84px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0.03em;
  color: #FFE14D;
  -webkit-text-stroke: 3px #151136;
  text-shadow: 0 7px 0 #151136, 0 12px 24px rgba(15, 10, 40, 0.55);
}
.title-sub-line {
  margin-top: 6px;
  font-family: var(--uiv-font-display, 'Segoe UI', sans-serif);
  font-size: clamp(18px, 2.1vw, 30px);
  font-weight: 900;
  letter-spacing: 0.09em;
  color: #FFFFFF;
  -webkit-text-stroke: 1.6px #151136;
  text-shadow: 0 4px 0 #151136, 0 6px 14px rgba(15, 10, 40, 0.55);
}

/* Live Portrait Showcase Wings on Title (disposed on Play!) */
.title-portraits {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.title-portrait-wing {
  position: absolute;
  bottom: 2.5vh;
  width: clamp(160px, 14.5vw, 235px);
  height: clamp(160px, 14.5vw, 235px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.title-portrait-left { left: 2.5vw; }
.title-portrait-right { right: 2.5vw; }
.title-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(15, 10, 40, 0.45));
}

/* Bottom Center CTA & Quick Meta Strip */
.title-bottom-dock {
  position: relative;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
#btn-title-play {
  min-width: clamp(230px, 20vw, 310px);
  min-height: 68px;
  padding: 6px 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #151136;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
  overflow: visible;
}
.title-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

/* ==================== GAMEPLAY FLOATING CORNER HUD ==================== */
#hud-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 16px 14px;
}
#hud-overlay.is-active {
  display: flex;
}

#hud-top {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
  pointer-events: none;
}

.hud-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  pointer-events: none;
}
.hud-cluster button,
.hud-cluster .hud-interactive {
  pointer-events: auto;
}

/* Left Corner: Hero Vitals + Currency */
.hud-left-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}
.hud-hero-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}
.hud-avatar-chip {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 2.5px solid #3B5BDB;
  background: #18153B;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hud-avatar-chip img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.hud-bars-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: clamp(148px, 13.5vw, 200px);
}
.hud-bar-box {
  position: relative;
  height: 20px;
  background: #141030;
  border: 2px solid #3B5BDB;
  border-radius: 999px;
  overflow: hidden;
}
.hud-bar-fill {
  height: 100%;
  width: 100%;
  transition: width 0.12s linear;
}
.hud-hp-fill {
  background: linear-gradient(180deg, #4ADE80 0%, #16A34A 100%);
}
.hud-xp-fill {
  background: linear-gradient(180deg, #38BDF8 0%, #2563EB 100%);
}
.hud-bar-txt {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #FFFFFF;
  text-shadow: 0 1.5px 0 #120E2D;
  line-height: 1;
}

.hud-currency-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}
.hud-pill-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 2px 10px;
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
  white-space: nowrap;
  cursor: default;
}
.hud-pill-stat img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Center Top: Timer + Wave + Kills + Boss Bar */
.hud-center-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}
.hud-timer-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}
#hud-timer-pill {
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: #FFE14D;
  min-width: 96px;
  justify-content: center;
}
#hud-boss-bar-wrap {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: min(360px, 34vw);
  pointer-events: none;
}
#hud-boss-bar-wrap.is-visible {
  display: flex;
}
.boss-bar-label {
  font-size: 13px;
  font-weight: 900;
  color: #FFE14D;
  background: rgba(21, 17, 54, 0.88);
  border: 1.5px solid #EF4444;
  padding: 1px 12px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}
.boss-bar-shell {
  width: 100%;
  height: 18px;
  background: #1A102E;
  border: 2px solid #EF4444;
  border-radius: 999px;
  overflow: hidden;
}
#hud-boss-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(180deg, #F87171 0%, #DC2626 100%);
}
#hud-goldrush-banner {
  display: none;
  padding: 4px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #FDE047 0%, #F59E0B 100%);
  border: 2px solid #151136;
  color: #151136;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.05em;
}
#hud-goldrush-banner.is-visible {
  display: inline-flex;
}

/* Right Corner: Compact Utility Buttons */
.hud-util-btn {
  position: relative;
  overflow: visible;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 42px;
  padding: 2px 10px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
}
.hud-util-btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
  pointer-events: none;
}
.btn-label {
  display: inline-block;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.15;
}
.notify-badge {
  position: absolute;
  top: calc(-1 * var(--uiv-bw-top, 6px) - 7px);
  right: calc(-1 * var(--uiv-bw-right, 14px) - 7px);
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #EF4444;
  border: 2px solid #FFFFFF;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 900;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 30;
  pointer-events: none;
}

/* ==================== BOTTOM FLOATING SKILL DOCK (ROUND 5 RATIOS) ==================== */
#hud-bottom {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  pointer-events: none;
}
.hud-weapons-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}
.hud-weapon-slot {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  cursor: default;
}
.hud-weapon-slot img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.hud-weapon-lv {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: #151136;
  border: 1.5px solid #FACC15;
  color: #FFE14D;
  font-size: 11px;
  font-weight: 900;
  padding: 0 4px;
  border-radius: 6px;
  line-height: 1.2;
}

.hud-skill-dock {
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}
/* Round 5 Sweet Spot: 78x78 compact booster/skill button, 48x48 icon = 61.5% height! */
.skill-btn {
  position: relative;
  width: 78px;
  height: 78px;
  padding: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: visible !important;
  pointer-events: auto;
}
.skill-btn img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  pointer-events: none;
}
.skill-btn .tool-count {
  position: absolute;
  top: -7px;
  left: -6px;
  min-width: 24px;
  height: 22px;
  padding: 0 5px;
  border-radius: 7px;
  background: #151136;
  border: 2px solid #38BDF8;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 6;
}
.skill-btn .badge {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  padding: 1px 7px;
  border-radius: 999px;
  background: #151136;
  border: 1.5px solid #FACC15;
  color: #FFE14D;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  pointer-events: none;
  z-index: 6;
}
.skill-btn.is-cooling {
  filter: saturate(0.45) brightness(0.75);
}

.hud-objective-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 800;
  color: #FFFFFF;
  white-space: nowrap;
  cursor: default;
}
.hud-objective-chip img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* ==================== FTUE VISUAL SPOTLIGHT & HAND (NON-BLOCKING) ==================== */
#ftue-cue {
  position: fixed;
  bottom: 112px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 110;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(24, 21, 59, 0.90);
  border: 2px solid #FACC15;
  color: #FFE14D;
  font-size: 14px;
  font-weight: 800;
  pointer-events: none !important;
}
#ftue-cue.is-visible {
  display: inline-flex;
}
.tut-spotlight {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid #38BDF8;
  animation: tutPulse 1.1s ease-in-out infinite;
  pointer-events: none;
}
.tut-hand {
  font-size: 18px;
  animation: tutBob 0.9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes tutPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.22); opacity: 1; }
}
@keyframes tutBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ==================== FLEX-SCROLL ANTI-SAAS MODALS ==================== */
#modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(12, 9, 34, 0.78);
}
.modal-card {
  display: flex;
  flex-direction: column;
  width: min(860px, 94vw);
  max-height: 90vh;
  overflow: hidden;
  padding: 10px 14px 12px;
  cursor: default;
}
.modal-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 6px 10px;
  border-bottom: 2px solid rgba(59, 91, 219, 0.45);
}
#modal-title {
  font-family: var(--uiv-font-display, 'Segoe UI', sans-serif);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 900;
  color: #FFE14D;
  text-shadow: 0 2px 0 #151136;
}
.modal-close-x {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.modal-close-x img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  padding: 12px 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
}
.modal-tab {
  min-height: 40px;
  padding: 2px 16px;
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  cursor: pointer;
}

/* Strict Grid Containment Law: minmax(0, 1fr) + min-width: 0 + slot-border bleed padding */
.vf-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: 6px 16px;
}
.vf-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: 6px 16px;
}
.vf-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: 6px 16px;
}
.vf-grid-2 > *, .vf-grid-3 > *, .vf-grid-4 > * {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Visual-First 60/25/15 Game Card */
.vf-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 8px 10px;
  min-height: 204px;
  text-align: center;
  overflow: visible;
}
.vf-card-tall {
  min-height: 248px;
}
.vf-art {
  width: 100%;
  height: 102px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 5px 8px rgba(10, 8, 30, 0.45));
}
.vf-art-tall {
  height: 138px;
}
.vf-title {
  font-size: 15px;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.15;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vf-sub {
  font-size: 13px;
  font-weight: 700;
  color: #CBD5E1;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vf-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.vf-btn {
  width: 100%;
  min-height: 40px;
  padding: 2px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  overflow: visible;
}
.cur-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 900;
}
.cur-ico {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.card-corner-badge, .vf-badge-tag {
  position: absolute;
  top: 4px;
  right: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #FACC15;
  border: 2px solid #151136;
  color: #151136;
  font-size: 12px;
  font-weight: 900;
  z-index: 8;
  pointer-events: none;
}

/* Settings, Pause, Exit, Result Layouts */
.opt-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 8px;
}
.opt-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(24, 21, 59, 0.72);
  border: 1.5px solid rgba(59, 91, 219, 0.55);
}
.opt-lbl {
  font-size: 15px;
  font-weight: 800;
  color: #F8FAFC;
  min-width: 84px;
}
.opt-line input[type="range"] {
  flex: 1 1 auto;
  accent-color: #22C55E;
  cursor: pointer;
}
.opt-toggle {
  min-width: 72px;
  min-height: 36px;
  padding: 2px 12px;
  font-size: 13px;
}
.opt-lang-head {
  font-size: 15px;
  font-weight: 900;
  color: #FFE14D;
  margin-top: 4px;
}
.opt-lang-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.opt-lang-btn {
  min-height: 40px;
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pause-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px 18px;
}
.modal-cta-btn {
  min-height: 52px;
  padding: 4px 18px;
  font-size: 16px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.exit-lead {
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  color: #F8FAFC;
}
.exit-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}
.exit-clean-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px;
}
.exit-clean-art {
  width: 96px;
  height: 96px;
  object-fit: contain;
}
.exit-clean-msg {
  font-size: 16px;
  font-weight: 800;
  color: #E2E8F0;
}
.exit-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 6px;
}

.result-banner-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.result-hero-art {
  width: 112px;
  height: 112px;
  object-fit: contain;
}
.result-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.result-stat {
  min-height: 40px;
  padding: 4px 14px;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==================== PREVIEW-ONLY [DEV F2] DEBUG BAR ==================== */
#dev-f2-pill {
  position: fixed;
  bottom: 66px;
  right: 16px;
  z-index: 900;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(24, 21, 59, 0.92);
  border: 1.5px solid #FACC15;
  color: #FFE14D;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
#debug-panel {
  position: fixed;
  bottom: 102px;
  right: 16px;
  z-index: 910;
  width: 244px;
  padding: 10px;
  border-radius: 12px;
  background: #18153B;
  border: 2px solid #3B5BDB;
  display: none;
  flex-direction: column;
  gap: 6px;
}
#debug-panel.is-open {
  display: flex;
}
#debug-panel button {
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #3B5BDB;
  background: #242053;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}
#debug-panel button:hover {
  background: #3B5BDB;
}

/* ==================== SEASON EXPANSION HUB & NON-BLOCKING GUIDES (v1.1-v1.3) ==================== */
.ver-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(24, 21, 59, 0.85);
  border: 1.5px solid #FACC15;
  color: #FFE14D;
  font-size: 12px;
  font-weight: 900;
  vertical-align: middle;
}
.sm-head-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap;
  margin-bottom: 10px;
}
.sm-head-bar .modal-tabs {
  margin-bottom: 0;
  flex: 1 1 auto;
  overflow-x: auto;
  flex-wrap: nowrap;
}
.sm-wallet-strip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.sm-wallet-chip {
  min-height: 36px;
  padding: 2px 10px;
  display: inline-flex;
  align-items: center;
}
.sm-help-btn {
  min-width: 36px;
  min-height: 36px;
  padding: 2px 10px;
  font-size: 15px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.season-card {
  overflow: visible;
}
.sm-pass-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
  margin-bottom: 4px;
}
.sm-pass-pill {
  min-height: 32px;
  padding: 2px 12px;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow: visible;
}
.draft-reroll-bar {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}
#feature-guide-banner {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translate(-50%, -14px);
  z-index: 950;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 14px;
  background: rgba(24, 21, 59, 0.96);
  border: 2px solid #FACC15;
  color: #FFFFFF;
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none !important;
}
#feature-guide-banner.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.fg-banner-ico {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex: 0 0 auto;
}
.fg-banner-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fg-banner-title {
  font-size: 14px;
  font-weight: 900;
  color: #FFE14D;
  line-height: 1.15;
}
.fg-banner-sub {
  font-size: 12px;
  font-weight: 700;
  color: #E2E8F0;
  line-height: 1.15;
}

/* Compact 720p safeguards */
@media (max-width: 1360px), (max-height: 760px) {
  #hud-overlay { padding: 8px 12px 10px; }
  .hud-util-btn { min-height: 38px; padding: 2px 8px; font-size: 13px; }
  .hud-util-btn img { width: 18px; height: 18px; }
  .hud-pill-stat { min-height: 34px; padding: 2px 8px; font-size: 13px; }
  .skill-btn { width: 70px; height: 70px; }
  .skill-btn img { width: 42px; height: 42px; }
  .modal-card { max-height: 90vh; }
  .vf-card { min-height: 172px; padding: 6px; }
  .season-card { min-height: 162px; padding: 5px 6px; gap: 3px; }
  .season-card .vf-art { height: 74px; }
  .season-card .vf-btn { min-height: 34px; font-size: 13px; }
  .sm-head-bar { margin-bottom: 6px; }
  .sm-pass-strip { margin-bottom: 2px; gap: 6px; }
  .sm-pass-pill { min-height: 28px; padding: 1px 10px; font-size: 12px; }
  .vf-card-tall { min-height: 210px; }
  .vf-art { height: 84px; }
  .vf-art-tall { height: 110px; }
}
