/* css/style.css — Bannerclash: Tiny Legions (UI Vault: vibrant_popout_tycoon · Offline MSIX Safe)
 * ZERO external Google Fonts · ZERO CSS blur filters · Overflow-safe popout badges & 9-slice frames
 */

:root {
  --ink: #181C2E;
  --cream: #FFFDF5;
  --gold: #FFD52E;
  --gold-deep: #F59E0B;
  --meadow: #AAC945;
  --mint: #6FD4A4;
  --slate-teal: #2C515B;
  --grass: #75C262;
  --crimson: #FF4B5C;
  --sky: #26B6FF;
  --purple: #9B4DFF;
  --font-display: 'Arial Rounded MT Bold', 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Segoe UI', 'Trebuchet MS', system-ui, sans-serif;
}

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

html, body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #1A2236;
  font-family: var(--font-body);
  color: var(--ink);
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

/* ============================================================================
 * 1. HEROIC NO-BOX TITLE SCREEN (Full-Bleed Key Art + Living Portrait + Clean PLAY CTA)
 * ============================================================================ */
#title-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.title-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.title-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.04) 24%, rgba(24, 28, 46, 0.42) 100%);
  pointer-events: none;
}

.title-corner-dock {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 10px;
}

.title-mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 46px;
  height: 46px;
  padding: 0 12px;
  font-size: 14px;
  font-family: var(--font-display);
  font-weight: 800;
  color: #FFFFFF;
  text-shadow: 0 2px 0 var(--ink);
  overflow: visible;
}

.title-mini-btn img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  pointer-events: none;
}

/* Floating Hero & Rival Portraits standing directly in the sunlit scene (NO box!) */
.title-hero-wrap {
  position: absolute;
  left: 6vw;
  bottom: 4vh;
  width: clamp(190px, 23vw, 340px);
  height: clamp(220px, 38vh, 410px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  z-index: 3;
}

.title-hero-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 14px rgba(24, 28, 46, 0.45));
}

.title-rival-wrap {
  position: absolute;
  right: 5vw;
  bottom: 4vh;
  width: clamp(200px, 24vw, 360px);
  height: clamp(210px, 36vh, 390px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  z-index: 3;
}

.title-rival-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 14px rgba(24, 28, 46, 0.45));
}

/* Center Title Emblem — STRICTLY NO background/border container (Heroic No-Box Law!) */
.title-center-stage {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 5vh 24px 8vh;
  pointer-events: none;
}

.title-emblem {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(46px, 5.6vw, 84px);
  line-height: 0.96;
  letter-spacing: 2px;
  color: #FFE14D;
  -webkit-text-stroke: 3px #181C2E;
  text-shadow: 0 7px 0 #181C2E, 0 12px 22px rgba(24, 28, 46, 0.48);
}

.title-sub {
  display: block;
  margin-top: 6px;
  font-size: clamp(22px, 2.5vw, 38px);
  letter-spacing: 4px;
  color: #FFFFFF;
  -webkit-text-stroke: 2px #181C2E;
  text-shadow: 0 4px 0 #181C2E;
}

.title-cta-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  pointer-events: auto;
}

#btn-title-play {
  min-width: 264px;
  height: 76px;
  padding: 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  letter-spacing: 2px;
  color: #181C2E;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.55);
  filter: drop-shadow(0 8px 14px rgba(24, 28, 46, 0.45));
  overflow: visible;
}

.title-version-tag {
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(24, 28, 46, 0.72);
  border: 2px solid rgba(255, 225, 77, 0.85);
  color: #FFFDF5;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.6px;
  text-shadow: 0 1.5px 0 #181C2E;
  pointer-events: none;
}

.boot-loader {
  width: min(380px, 72vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.boot-bar-track {
  width: 100%;
  height: 36px;
  padding: 4px;
  position: relative;
  display: flex;
  align-items: center;
}

.boot-bar-fill {
  height: 100%;
  width: 5%;
  min-width: 24px;
  transition: width 120ms ease-out;
}

.boot-bar-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 15px;
  color: #FFFFFF;
  text-shadow: 0 2px 0 #181C2E;
}

.boot-bar-msg {
  font-family: var(--font-display);
  font-size: 14px;
  color: #FFFFFF;
  text-shadow: 0 2px 0 #181C2E;
}

/* ============================================================================
 * 2. FULL-BLEED 100vw x 100vh BATTLEFIELD CANVAS & OVERLAYS
 * ============================================================================ */
#game-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

#battle-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 1;
  cursor: crosshair;
}

#vfx3d-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 15;
  display: none;
}

#cutin-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 105;
  display: none;
}

/* Unobstructed Sky Bonus Corridor (z-index 45: above HUD, below Modals!) */
#sky-bonus-layer {
  position: fixed;
  left: 0;
  right: 0;
  top: 15%;
  height: 18%;
  pointer-events: none;
  z-index: 45;
  overflow: hidden;
}

@keyframes skyGlide {
  0%   { transform: translateX(3vw) translateY(0px); opacity: 0; }
  8%   { opacity: 1; }
  50%  { transform: translateX(46vw) translateY(-10px); opacity: 1; }
  92%  { opacity: 1; }
  100% { transform: translateX(84vw) translateY(2px); opacity: 0; }
}

.sky-balloon-btn {
  position: absolute;
  top: 12px;
  left: 0;
  pointer-events: auto;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: transparent;
  border: 0;
  cursor: pointer;
  animation: skyGlide 12.2s linear forwards;
}

.sky-balloon-btn img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 6px 8px rgba(24, 28, 46, 0.4));
}

.sky-balloon-pill {
  padding: 2px 8px;
  border-radius: 999px;
  background: #FFE14D;
  border: 2px solid #181C2E;
  font-family: var(--font-display);
  font-size: 13px;
  color: #181C2E;
  white-space: nowrap;
}

/* ============================================================================
 * 3. FLOATING TOP HUD (flex-wrap: nowrap @ 1280x720, >= 13px font, overflow: visible!)
 * ============================================================================ */
#hud-top {
  position: fixed;
  top: 10px;
  left: 12px;
  right: 12px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 8px;
  pointer-events: none;
  overflow: visible;
}

.hud-cluster {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 7px;
  pointer-events: auto;
  overflow: visible;
}

.currency-pill {
  height: 44px;
  min-width: 96px;
  padding: 0 12px 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: visible;
}

.currency-pill img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: 0 0 auto;
}

.hud-center-bar {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  pointer-events: auto;
}

.mode-pill-btn {
  height: 44px;
  padding: 0 8px;
  border-width: 10px 10px 14px 10px !important;
  border-image-width: 10px 10px 14px 10px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  white-space: nowrap;
  overflow: visible;
}

.mode-pill-btn span {
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tug-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 256px;
}

.tug-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 6px;
  gap: 8px;
}

.stage-tag {
  font-family: var(--font-display);
  font-size: 13px;
  color: #FFFFFF;
  text-shadow: 0 2px 0 #181C2E;
  white-space: nowrap;
}

.timer-tag {
  font-family: var(--font-display);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: #FFE14D;
  text-shadow: 0 2px 0 #181C2E;
  white-space: nowrap;
}

.pause-pill {
  padding: 1px 7px;
  border-radius: 999px;
  background: #FF4B5C;
  border: 2px solid #181C2E;
  font-family: var(--font-display);
  font-size: 12px;
  color: #FFFFFF;
}

.tug-bar-shell {
  width: 256px;
  height: 24px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
  border: 3px solid #181C2E;
  background: #FF4B5C;
}

.tug-blue-fill {
  height: 100%;
  width: 50%;
  background: linear-gradient(180deg, #4FD1FF 0%, #0183FC 100%);
  transition: width 140ms ease-out;
}

.tug-nums {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  font-family: var(--font-display);
  font-size: 13px;
  color: #FFFFFF;
  text-shadow: 0 1.5px 0 #181C2E;
  pointer-events: none;
}

/* Floating Nav Buttons (compact 9-slice border-width + overflow: visible so .notify-badge NEVER clips!) */
.hud-nav-btn {
  position: relative;
  height: 46px;
  padding: 0 8px 0 6px;
  border-width: 10px 10px 14px 10px !important;
  border-image-width: 10px 10px 14px 10px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 13px;
  color: #FFFFFF !important;
  text-shadow: 0 2px 0 #181C2E, 1px 0 0 #181C2E, -1px 0 0 #181C2E, 0 -1px 0 #181C2E;
  overflow: visible !important;
}

.hud-nav-btn img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex: 0 0 auto;
  pointer-events: none;
}

.hud-nav-btn > span.hud-btn-label {
  display: inline-block;
  max-width: 94px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hud-icon-only {
  width: 46px;
  min-width: 46px;
  height: 46px;
  padding: 0;
  border-width: 8px 8px 12px 8px !important;
  border-image-width: 8px 8px 12px 8px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible !important;
}

.hud-icon-only img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  pointer-events: none;
}

.hud-nav-btn.is-preview-locked {
  opacity: 0.88;
  filter: grayscale(0.25);
}

.hud-lock-pill {
  position: absolute;
  bottom: -10px;
  right: -6px;
  z-index: 33;
  padding: 1px 6px;
  border-radius: 999px;
  background: #181C2E;
  border: 2px solid #FFE14D;
  color: #FFE14D;
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 14px;
  pointer-events: none;
  white-space: nowrap;
}

.season-toast-pill {
  position: fixed;
  top: 66px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 160;
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(24, 28, 46, 0.94);
  border: 3px solid #FFE14D;
  color: #FFFDF5;
  font-family: var(--font-display);
  font-size: 15px;
  pointer-events: none;
  white-space: nowrap;
}

.notify-badge {
  position: absolute;
  top: -17px;
  right: -15px;
  z-index: 32;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: #FF3B5C;
  border: 2px solid #FFFFFF;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  pointer-events: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

/* Compact Floating Counter Legend (top-left, non-intrusive) */
.counter-pill-float {
  position: fixed;
  top: 62px;
  left: 14px;
  z-index: 25;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(24, 28, 46, 0.78);
  border: 2px solid #FFE14D;
  font-family: var(--font-display);
  font-size: 13px;
  color: #FFFDF5;
  pointer-events: none;
  white-space: nowrap;
}

/* ============================================================================
 * 4. FLOATING BOTTOM COMMAND DOCK (Round 5 Ratios: 74px Skills + 46px Icons!)
 * ============================================================================ */
#hud-bottom {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 10px;
  z-index: 30;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 10px;
  pointer-events: none;
  overflow: visible;
}

.dock-group {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 7px;
  pointer-events: auto;
  overflow: visible;
}

.preset-btn {
  width: 46px;
  height: 46px;
  padding: 0;
  border-width: 8px 8px 12px 8px !important;
  border-image-width: 8px 8px 12px 8px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #FFFFFF !important;
  text-shadow: 0 2px 0 #181C2E, 1px 0 0 #181C2E, -1px 0 0 #181C2E, 0 -1px 0 #181C2E;
  overflow: visible;
}

.preset-btn.is-selected {
  filter: brightness(1.15) drop-shadow(0 0 6px rgba(255, 225, 77, 0.9));
  transform: translateY(-2px);
}

.stance-btn, .speed-btn, .form-btn {
  height: 46px;
  padding: 0 10px;
  border-width: 10px 10px 14px 10px !important;
  border-image-width: 10px 10px 14px 10px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #FFFFFF !important;
  text-shadow: 0 2px 0 #181C2E, 1px 0 0 #181C2E, -1px 0 0 #181C2E, 0 -1px 0 #181C2E;
  white-space: nowrap;
  overflow: visible;
}

.stance-btn.is-rush {
  filter: hue-rotate(-35deg) saturate(1.25);
}

/* 4 Compact Tactical Commander Skills (76x76px, 46px icons = 61% height ratio!) */
.skills-dock {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  overflow: visible;
}

.skill-booster-btn {
  position: relative;
  width: 76px;
  height: 76px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible !important;
}

.skill-booster-btn img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 3px 2px rgba(24, 28, 46, 0.35));
}

.skill-hotkey {
  position: absolute;
  top: -8px;
  left: -8px;
  z-index: 8;
  min-width: 34px;
  height: 22px;
  padding: 0 5px;
  border-radius: 8px;
  background: #FFE14D;
  border: 2px solid #181C2E;
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 18px;
  color: #181C2E;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

.skill-cd-mask {
  position: absolute;
  inset: 4px;
  z-index: 6;
  border-radius: 10px;
  background: rgba(24, 28, 46, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 17px;
  color: #FFE14D;
  pointer-events: none;
}

.class-chip-btn {
  width: 48px;
  height: 48px;
  padding: 0;
  border-width: 7px 7px 11px 7px !important;
  border-image-width: 7px 7px 11px 7px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible !important;
}

.class-chip-btn img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  pointer-events: none;
}

.class-chip-btn.is-selected {
  transform: translateY(-3px);
  filter: drop-shadow(0 0 6px #FFE14D);
}

.pause-clash-btn {
  min-width: 112px;
  height: 50px;
  padding: 0 14px;
  border-width: 10px 10px 14px 10px !important;
  border-image-width: 10px 10px 14px 10px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #FFFFFF !important;
  text-shadow: 0 2px 0 #181C2E, 1px 0 0 #181C2E, -1px 0 0 #181C2E, 0 -1px 0 #181C2E;
  white-space: nowrap;
  overflow: visible;
}

/* ============================================================================
 * 5. FLEX-SCROLLABLE ANTI-SAAS 60/25/15 MODALS (Zero Cutoff @ 1280x720, Zero blur!)
 * ============================================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(16, 22, 38, 0.74);
}

.modal-card {
  display: flex;
  flex-direction: column;
  width: min(940px, 94vw);
  max-height: 90vh;
  overflow: hidden;
  padding: 4px 10px 10px;
  cursor: default;
}

.modal-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 4px 8px;
}

.modal-ribbon {
  min-width: 220px;
  height: 48px;
  padding: 0 18px;
  border-width: 12px 22px 12px 22px !important;
  border-image-width: 12px 22px 12px 22px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 1px;
  text-shadow: 0 2px 0 #181C2E;
  cursor: default;
}

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

.modal-icon-btn, .modal-close-x {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-icon-btn img, .modal-close-x img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.modal-tabs {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 7px;
  padding: 0 6px 8px;
}

.modal-tab-btn {
  min-width: 98px;
  height: 42px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  white-space: nowrap;
  overflow: visible;
}

.modal-tab-btn.is-active {
  color: #FFFFFF;
  text-shadow: 0 2px 0 #181C2E;
}

.modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px 8px 10px;
}

.modal-footer {
  flex: 0 0 auto;
}

/* Anti-SaaS 60/25/15 Responsive Card Grids (minmax(0, 1fr) containment law!) */
.vf-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

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

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

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

.vf-grid-4 > *, .vf-grid-shop > *, .vf-grid-3 > *, .vf-grid-3-compact > * {
  min-width: 0;
  max-width: 100%;
}

.vf-grid-3-compact .season-card,
.vf-grid-3-compact .vf-medal-tile {
  min-height: 156px;
  padding: 3px 6px 5px;
  gap: 3px;
}

.vf-grid-3-compact .vf-art-wrap {
  height: 60px;
}

.vf-grid-3-compact .vf-art-img {
  width: 56px;
  height: 56px;
}

.vf-grid-3-compact .vf-action-btn {
  height: 38px;
}

.upgrade-card, .shop-card, .quest-card, .season-card, .vf-medal-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 4px 6px 6px;
  min-height: 184px;
  cursor: default;
  overflow: visible;
}

.vf-lv-pill {
  position: absolute;
  top: -8px;
  left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #181C2E;
  color: #FFE14D;
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 1.2;
}

.vf-badge-tag {
  position: absolute;
  top: -9px;
  right: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #FF4B5C;
  border: 2px solid #181C2E;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 1.2;
}

.vf-art-wrap {
  width: 100%;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vf-art-shop {
  height: 80px;
}

.vf-art-img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  filter: drop-shadow(0 4px 5px rgba(24, 28, 46, 0.25));
}

.vf-card-title {
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.15;
  text-align: center;
  color: #181C2E;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vf-stat-pill, .vf-perk-chip {
  font-family: var(--font-display);
  font-size: 14px;
  color: #2C515B;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

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

.cur-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: #181C2E;
}

.cur-chip-ico {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.vf-action-btn {
  width: 100%;
  height: 44px;
  padding: 0 8px;
  border-width: 9px 10px 13px 10px !important;
  border-image-width: 9px 10px 13px 10px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 14px;
}

.vf-action-btn:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

/* Season Hero Banner */
.season-hero-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding: 2px 10px;
}

.season-banner-portrait {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex: 0 0 auto;
}

.season-banner-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.season-banner-title {
  font-family: var(--font-display);
  font-size: 17px;
  color: #181C2E;
}

.season-banner-prog {
  font-family: var(--font-display);
  font-size: 13px;
  color: #2C515B;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.season-banner-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: nowrap;
}

.season-chip-btn {
  height: 38px;
  padding: 0 11px;
  border-width: 8px 9px 11px 9px !important;
  border-image-width: 8px 9px 11px 9px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 13px;
  color: #FFFFFF !important;
  text-shadow: 0 2px 0 #181C2E;
  white-space: nowrap;
  overflow: visible;
}

.season-chip-ico {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Settings Panel */
.settings-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.settings-ctrl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 10px;
  cursor: default;
}

.settings-ico {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex: 0 0 auto;
}

.settings-label {
  font-family: var(--font-display);
  font-size: 15px;
  color: #181C2E;
  min-width: 108px;
}

.settings-slider {
  flex: 1 1 auto;
  accent-color: #6CE21C;
  height: 10px;
  cursor: pointer;
}

.settings-toggle {
  min-width: 72px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.settings-select {
  flex: 1 1 auto;
  height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  border: 3px solid #181C2E;
  background: #FFFDF5;
  font-family: var(--font-display);
  font-size: 15px;
  color: #181C2E;
}

.settings-btn {
  height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.settings-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 0;
}

.settings-saved-pill {
  font-family: var(--font-display);
  font-size: 14px;
  color: #1FB580;
}

/* 3-Icon Visual Guide Modal */
.guide-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

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

.guide-ico {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.guide-lbl {
  font-family: var(--font-display);
  font-size: 15px;
  text-align: center;
  color: #181C2E;
}

.guide-arrow {
  font-family: var(--font-display);
  font-size: 28px;
  color: #181C2E;
}

.guide-counter-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 2px 10px;
}

.guide-mini-ico {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.guide-counter-txt {
  font-family: var(--font-display);
  font-size: 17px;
  color: #181C2E;
}

.guide-cta-wrap {
  display: flex;
  justify-content: center;
}

.guide-ok-btn {
  min-width: 190px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* Victory / Defeat / Chest / Exit Modals */
.result-celebration, .chest-stage, .exit-retention-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 6px;
}

.result-hero-img {
  width: 124px;
  height: 124px;
  object-fit: contain;
  filter: drop-shadow(0 6px 8px rgba(24, 28, 46, 0.3));
}

.result-stars {
  font-size: 38px;
  color: #FFD52E;
  -webkit-text-stroke: 2px #181C2E;
  letter-spacing: 6px;
}

.result-loot-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.result-loot-chip {
  min-width: 126px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.result-actions, .exit-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
}

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

.defeat-powerup-grid > * {
  min-width: 0;
  max-width: 100%;
}

.result-cta, .exit-cta {
  min-width: 150px;
  height: 52px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.chest-img-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.chest-big-img {
  width: 148px;
  height: 148px;
  object-fit: contain;
}

.exit-headline {
  font-family: var(--font-display);
  font-size: 20px;
  color: #181C2E;
  text-align: center;
}

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

.exit-reward-grid > * {
  min-width: 0;
  max-width: 100%;
}

.exit-jump-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px;
}

.exit-jump-icon {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.exit-jump-title {
  font-family: var(--font-display);
  font-size: 14px;
  text-align: center;
  color: #181C2E;
}

.exit-jump-pill {
  padding: 2px 8px;
  border-radius: 999px;
  background: #FF4B5C;
  color: #FFFFFF;
  font-size: 13px;
}

.exit-saved-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
}

.exit-saved-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.exit-saved-copy {
  font-family: var(--font-display);
  font-size: 16px;
}

/* ============================================================================
 * 6. VISUAL SPOTLIGHT + ANIMATED POINTER-HAND FTUE (Never blocks target click!)
 * ============================================================================ */
.ftue-layer {
  position: fixed;
  inset: 0;
  z-index: 95;
  pointer-events: none;
}

@keyframes tutPulse {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50%      { transform: scale(1.07); opacity: 1; }
}

@keyframes tutBob {
  0%, 100% { transform: translateY(0px); }
  50%      { transform: translateY(-9px); }
}

.tut-spotlight {
  position: fixed;
  border-radius: 16px;
  border: 4px solid #FFE14D;
  box-shadow: 0 0 0 3px #181C2E;
  pointer-events: none;
  animation: tutPulse 1.1s ease-in-out infinite;
}

.tut-hand {
  position: fixed;
  pointer-events: none;
  animation: tutBob 0.85s ease-in-out infinite;
  filter: drop-shadow(0 4px 5px rgba(24, 28, 46, 0.55));
}

.tut-callout {
  position: fixed;
  min-width: 220px;
  max-width: 340px;
  height: 44px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #FFE14D;
  pointer-events: none;
  text-align: center;
  white-space: nowrap;
}

.royal-track-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.royal-claim-all-btn {
  height: 38px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.ftue-skip-btn {
  position: fixed;
  top: 64px;
  right: 16px;
  height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  pointer-events: auto;
}

/* ============================================================================
 * 7. PREVIEW-ONLY [DEV F2] PANEL (Never mounted in ReleaseHost!)
 * ============================================================================ */
.dev-f2-pill {
  position: fixed;
  left: 10px;
  top: 98px;
  z-index: 80;
  padding: 4px 9px;
  border-radius: 8px;
  background: rgba(24, 28, 46, 0.85);
  border: 2px solid #6FD4A4;
  color: #6FD4A4;
  font-family: monospace;
  font-size: 12px;
  cursor: pointer;
}

.dev-debug-panel {
  position: fixed;
  left: 10px;
  top: 132px;
  z-index: 150;
  width: 224px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(20, 24, 42, 0.96);
  border: 2px solid #6FD4A4;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dev-title {
  color: #FFE14D;
  font-family: monospace;
  font-size: 12px;
  font-weight: 700;
}

.dev-debug-panel button {
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #6FD4A4;
  background: #2C515B;
  color: #FFFFFF;
  font-size: 12px;
  cursor: pointer;
  text-align: left;
}

/* Compact responsiveness @ 1280x720 and narrow windows */
@media (max-width: 1360px) {
  .hud-nav-btn {
    padding: 0 6px 0 5px;
    font-size: 13px;
  }
  .hud-nav-btn > span.hud-btn-label {
    max-width: 82px;
  }
  .tug-widget {
    min-width: 212px;
  }
  .tug-bar-shell {
    width: 212px;
  }
  .skill-booster-btn {
    width: 72px;
    height: 72px;
  }
  .skill-booster-btn img {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 960px) {
  .hud-nav-btn > span.hud-btn-label {
    display: none;
  }
  .vf-grid-4, .vf-grid-shop, .vf-grid-3, .vf-grid-3-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
