/* Glimmerpit: Goblin Merge Mine — Indigo Arcade Gloss + Play Store Vibrant Cartoon CSS
 * Strict Invariants:
 *  - Zero external Google Fonts @import (100% offline MSIX safe)
 *  - Zero backdrop-filter: blur() over canvas
 *  - Flex-scroll modal law (max-height: 88vh; overflow: hidden; .modal-body flex: 1 1 auto; min-height: 0; overflow-y: auto)
 *  - overflow: visible on all badged buttons (never clip .notify-badge or hotkey chips)
 *  - All HUD text >= 13px; button icons 54-62% button height; grids minmax(0, 1fr)
 */

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --font-display: 'Trebuchet MS', 'Segoe UI Rounded', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Segoe UI', 'Trebuchet MS', system-ui, sans-serif;
  --ink: #151136;
  --indigo-deep: #18153B;
  --indigo-mid: #242053;
  --cyan-glow: #58CFB8;
  --cyan-bright: #38F2D6;
  --lime-goblin: #9BD348;
  --gold-bright: #FFE14D;
  --gold-accent: #FACC15;
  --text-light: #F8FAFC;
  --text-soft: #CBD5E1;
}

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

.hidden {
  display: none !important;
}

/* ================= HEROIC NO-BOX TITLE SCREEN ================= */
#title-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px 34px;
  background: var(--indigo-deep);
  overflow: hidden;
}

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

.title-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(24, 21, 59, 0.08) 30%, rgba(15, 11, 40, 0.68) 100%);
}

.title-corner-dock {
  position: relative;
  z-index: 5;
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.title-corner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 46px;
  min-width: 48px;
  padding: 0 12px !important;
  font-size: 14px;
  color: #FFFFFF !important;
  overflow: visible !important;
  position: relative;
}

.title-corner-btn img,
.title-corner-btn svg {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Transparent hero stage directly over key art (NO boxed login card!) */
.title-hero-stage {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: transparent;
  border: none;
  box-shadow: none;
  text-align: center;
  flex: 1 1 auto;
}

.title-logo {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(46px, 5.6vw, 84px);
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1.02;
  color: var(--gold-bright);
  -webkit-text-stroke: 3px var(--ink);
  text-shadow: 0 6px 0 var(--ink), 0 10px 24px rgba(0, 0, 0, 0.55);
}

.title-subtitle {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--cyan-bright);
  -webkit-text-stroke: 1.5px var(--ink);
  text-shadow: 0 3px 0 var(--ink);
}

.title-portrait-wrap {
  position: relative;
  width: clamp(150px, 20vh, 220px);
  height: clamp(150px, 20vh, 220px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0;
}

#title-hero-portrait {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 16px rgba(10, 8, 30, 0.55));
}

.title-cta-area {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-height: 76px;
}

#title-loader-wrap {
  width: min(360px, 78vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.loader-label-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
  text-shadow: 0 2px 0 var(--ink);
}

.loader-track {
  width: 100%;
  height: 22px;
  border-radius: 12px;
  background: rgba(18, 15, 52, 0.9);
  border: 2.5px solid #3B5BDB;
  padding: 2px;
  overflow: hidden;
}

#title-loader-fill {
  height: 100%;
  width: 0%;
  border-radius: 8px;
  background: linear-gradient(90deg, #22C55E 0%, #38F2D6 100%);
  transition: width 120ms ease-out;
}

#btn-title-play {
  min-width: 248px;
  height: 68px;
  padding: 0 34px !important;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #FFFFFF !important;
  text-shadow: 0 2.5px 0 #151136, 0 -1px 0 #151136, 1.5px 0 0 #151136, -1.5px 0 0 #151136;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  filter: drop-shadow(0 6px 0 rgba(10, 8, 30, 0.5));
  overflow: visible !important;
}

/* ================= FULL-BLEED GAMEPLAY SCREEN ================= */
#game-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

#game-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  touch-action: none;
  z-index: 1;
}

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

#cutin-banner {
  position: fixed;
  left: 0;
  right: 0;
  top: 38%;
  height: 120px;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: linear-gradient(90deg, rgba(24, 21, 59, 0.1) 0%, rgba(30, 27, 94, 0.96) 22%, rgba(30, 27, 94, 0.96) 78%, rgba(24, 21, 59, 0.1) 100%);
  border-top: 4px solid var(--gold-bright);
  border-bottom: 4px solid var(--cyan-bright);
  pointer-events: none;
}

#cutin-banner img {
  height: 98px;
  width: 98px;
  object-fit: contain;
}

#cutin-banner-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 52px);
  font-weight: 900;
  color: var(--gold-bright);
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 0 4px 0 var(--ink);
}

/* ================= TOP FLOATING HUD BAR (FLEX-WRAP: NOWRAP AT 720p) ================= */
#top-hud {
  position: fixed;
  top: 6px;
  left: 8px;
  right: 8px;
  height: 52px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: nowrap;
  pointer-events: none;
}

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

.hud-pill {
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-width: 9px 10px 9px 10px !important;
  padding: 0 6px !important;
  white-space: nowrap;
  cursor: default !important;
  font-variant-numeric: tabular-nums;
}

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

.hud-pill-val {
  font-size: 14px;
  font-weight: 900;
  color: #FFFFFF;
  text-shadow: 0 1.5px 0 var(--ink);
}

.hud-pill-sub {
  font-size: 13px;
  font-weight: 800;
  color: var(--lime-goblin);
  text-shadow: 0 1.5px 0 var(--ink);
}

#hud-mine-pill {
  max-width: 230px;
}

#hud-mine-title {
  font-size: 13px;
  font-weight: 900;
  color: var(--gold-bright);
  white-space: nowrap;
}

.hud-nav-btn {
  height: 44px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-width: 9px 10px 9px 10px !important;
  padding: 0 6px !important;
  position: relative;
  overflow: visible !important;
  flex-shrink: 0;
}

.hud-nav-btn img,
.hud-nav-btn svg {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.hud-nav-btn > span:not(.notify-badge) {
  font-size: 13px;
  font-weight: 900;
  color: #FFFFFF !important;
  text-shadow: 0 1.5px 0 var(--ink), 0 -1px 0 var(--ink), 1px 0 0 var(--ink), -1px 0 0 var(--ink);
  white-space: nowrap;
}

.hud-icon-only {
  width: 44px;
  padding: 0 !important;
}

.is-muted {
  opacity: 0.6;
}

/* Red-Dot Notification Badge (NEVER clipped!) */
.notify-badge {
  position: absolute;
  top: -8px;
  right: -7px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: #EF4444;
  border: 2px solid #FFFFFF;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 900;
  line-height: 18px;
  text-align: center;
  z-index: 30;
  pointer-events: none;
}

/* ================= COMPACT RIGHT COMMAND DOCK (<= 24% WIDTH, ZERO DEAD VOID!) ================= */
#command-dock {
  position: fixed;
  top: 64px;
  right: 10px;
  bottom: auto;
  max-height: calc(100vh - 76px);
  width: clamp(296px, 23vw, 352px);
  z-index: 18;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(7px, 1.1vh, 13px);
  border-width: 12px 13px 13px 13px !important;
  padding: clamp(7px, 1vh, 11px) 9px !important;
  cursor: default !important;
  overflow: visible !important;
}

.dock-section-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cyan-bright);
  text-align: center;
  margin: 0;
  text-shadow: 0 2px 0 var(--ink);
}

/* Primary Cannon Button (compact 76px height, 42px icon = 55% fill!) */
#btn-action-cannon {
  width: 100%;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-width: 9px 11px 10px 11px !important;
  padding: 0 8px !important;
  position: relative;
  overflow: visible !important;
}

#btn-action-cannon .btn-main-ic {
  width: 50px;
  height: 50px;
  object-fit: contain;
  flex-shrink: 0;
}

.cannon-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.cannon-title {
  font-size: 14px;
  font-weight: 900;
  color: #FFFFFF;
  text-shadow: 0 1.5px 0 var(--ink), 0 -1px 0 var(--ink), 1px 0 0 var(--ink), -1px 0 0 var(--ink);
  white-space: nowrap;
}

.cannon-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 900;
  color: #FFFFFF;
  text-shadow: 0 1.5px 0 var(--ink);
}

.cannon-meta img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.cannon-timer-pill {
  padding: 3px 7px;
  border-radius: 8px;
  background: rgba(21, 17, 54, 0.88);
  color: var(--gold-bright);
  font-size: 13px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

/* Compact Live Crew & Gate Progress Strip inside Command Dock */
.dock-status-box {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 7px 9px;
  border-radius: 12px;
  background: rgba(15, 13, 46, 0.78);
  border: 2px solid rgba(59, 91, 219, 0.75);
}

.dock-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 800;
  color: #E2E8F0;
}

.dock-stat-val {
  color: var(--gold-bright);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.dock-gate-track {
  width: 100%;
  height: 11px;
  border-radius: 6px;
  background: #0F172A;
  border: 1.5px solid #3B5BDB;
  overflow: hidden;
}

#dock-gate-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #FACC15 0%, #38F2D6 100%);
  transition: width 150ms ease-out;
}

/* 2x2 Tactile Tool & Booster Grids (vertical icon-over-label = ZERO text clipping!) */
.dock-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  width: 100%;
}

.dock-grid-2x2 > * {
  min-width: 0;
  max-width: 100%;
}

.tool-btn,
.booster-btn {
  height: clamp(76px, 8vh, 86px);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-width: 8px 9px 9px 9px !important;
  padding: 2px 4px !important;
  position: relative;
  overflow: visible !important;
}

.tool-btn img,
.booster-btn img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}

.tool-label {
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
  color: #FFFFFF !important;
  text-shadow: 0 1.5px 0 var(--ink), 0 -1px 0 var(--ink), 1px 0 0 var(--ink), -1px 0 0 var(--ink);
  white-space: nowrap;
}

.tool-sub-chip {
  position: absolute;
  top: -7px;
  right: 6px;
  padding: 1px 6px;
  border-radius: 6px;
  background: #151136;
  border: 1.5px solid var(--gold-accent);
  color: var(--gold-bright);
  font-size: 11px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  z-index: 8;
  pointer-events: none;
}

.tool-btn.has-badge .tool-sub-chip {
  right: auto;
  left: 26px;
}

.hotkey-chip {
  position: absolute;
  top: -7px;
  left: -5px;
  padding: 1px 6px;
  border-radius: 6px;
  background: #151136;
  border: 1.5px solid var(--cyan-bright);
  color: var(--cyan-bright);
  font-size: 11px;
  font-weight: 900;
  z-index: 8;
  pointer-events: none;
}

.tool-btn.active-mode {
  filter: drop-shadow(0 0 8px #EF4444);
}

.tool-btn.ready-glow {
  filter: drop-shadow(0 0 8px #FACC15);
}

/* ================= FLEX-SCROLL ANTI-SAAS MODALS (NO BACKDROP BLUR!) ================= */
.modal-scrim {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 8, 30, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  width: min(920px, 94vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: default !important;
  padding: 10px 14px !important;
}

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

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

.modal-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 900;
  letter-spacing: 0.4px;
  color: #FFF8E7 !important;
  -webkit-text-stroke: 0;
  text-shadow: 0 2px 0 #151136, 0 -1px 0 #151136, 1.5px 0 0 #151136, -1.5px 0 0 #151136, 0 4px 10px rgba(0, 0, 0, 0.48);
}

.modal-title * {
  -webkit-text-stroke: 0 !important;
}

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

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

.modal-tabs {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px 10px;
  flex-wrap: nowrap;
}

.modal-tab-btn {
  flex: 1 1 0;
  min-width: 0;
  height: 44px;
  padding: 0 12px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  color: #FFF8E7 !important;
  text-shadow: 0 1.5px 0 #151136, 0 -1px 0 #151136, 1px 0 0 #151136, -1px 0 0 #151136 !important;
}

.modal-tab-btn > span {
  color: #FFF8E7 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 4px;
}

/* Visual-First 60/25/15 Grids & Cards */
.vf-grid {
  display: grid;
  gap: 10px;
  width: 100%;
}

.vf-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vf-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vf-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

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

.shop-card,
.upgrade-card,
.quest-card,
.season-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 6px !important;
  text-align: center;
  min-height: 205px;
  cursor: default !important;
  overflow: visible !important;
}

.vf-badge-ribbon {
  position: absolute;
  top: -8px;
  right: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--gold-accent);
  border: 2px solid var(--ink);
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  z-index: 6;
}

.vf-art-wrap {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vf-art-img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.35));
}

.vf-title {
  font-size: 14px;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.15;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vf-stat-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--cyan-bright);
}

.vf-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 13px;
  font-weight: 900;
  color: var(--gold-bright);
}

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

.vf-cta {
  width: 100%;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-width: 9px 10px 9px 10px !important;
  padding: 0 6px !important;
  font-size: 14px;
  font-weight: 900;
  color: #FFFFFF !important;
  text-shadow: 0 1.5px 0 var(--ink), 0 -1px 0 var(--ink);
}

.vf-cta > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vf-cta-big {
  min-width: 210px;
  height: 54px;
  padding: 0 24px !important;
  font-size: 18px;
  font-weight: 900;
  color: #FFFFFF !important;
  text-shadow: 0 2px 0 var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Settings Controls */
.settings-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 6px 4px;
}

.set-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(18, 15, 52, 0.82);
  border: 2px solid #3B5BDB;
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 800;
  color: #FFF8E7;
  text-shadow: 0 1.5px 0 #151136;
}

.set-line label {
  color: #FFF8E7;
  font-weight: 900;
}

.set-line input[type="range"] {
  flex: 1 1 auto;
  max-width: 260px;
  accent-color: #38F2D6;
}

.set-pill {
  min-width: 74px;
  height: 38px;
  padding: 0 10px !important;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFF8E7 !important;
  text-shadow: 0 1.5px 0 #151136, 0 -1px 0 #151136, 1px 0 0 #151136, -1px 0 0 #151136 !important;
}

.set-pill > span {
  color: #FFF8E7 !important;
}

.set-select {
  min-width: 190px;
  height: 38px;
  border-radius: 10px;
  border: 2px solid #38F2D6;
  background: #18153B;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 800;
  padding: 0 10px;
}

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

/* Celebration & Guide & Exit */
.celeb-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  text-align: center;
}

.celeb-hero-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.celeb-loot-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.guide-flow-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.guide-step-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px !important;
  text-align: center;
}

.guide-step-tile img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.guide-step-tile span {
  font-size: 14px;
  font-weight: 900;
  color: #FFFFFF;
}

.exit-jump-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.exit-jump-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 8px !important;
  position: relative;
  overflow: visible !important;
}

.exit-jump-card img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.exit-jump-name {
  font-size: 13px;
  font-weight: 900;
  color: #FFFFFF;
}

.exit-jump-pill {
  position: absolute;
  top: -7px;
  right: -5px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #EF4444;
  border: 2px solid #FFFFFF;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 900;
}

.exit-note {
  margin: 0 0 14px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--cyan-bright);
}

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

/* ================= VISUAL SPOTLIGHT + POINTER-HAND FTUE ================= */
#tut-overlay {
  position: fixed;
  inset: 0;
  z-index: 75;
  pointer-events: none;
}

#tut-spotlight {
  position: fixed;
  border-radius: 18px;
  border: 4px solid var(--gold-bright);
  box-shadow: 0 0 0 4px rgba(56, 242, 214, 0.45);
  pointer-events: none;
  transition: all 220ms ease-out;
}

#tut-hand {
  position: fixed;
  transform: translate(-100%, -50%);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  animation: tutBounceX 0.9s ease-in-out infinite;
}

@keyframes tutBounceX {
  0%, 100% { transform: translate(-100%, -50%); }
  50% { transform: translate(-108%, -50%); }
}

.tut-pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: #18153B;
  border: 2.5px solid var(--gold-bright);
  color: var(--gold-bright);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.tut-arrow-svg {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 3px 0 var(--ink));
}

#btn-tut-skip {
  position: fixed;
  top: 66px;
  left: 14px;
  height: 40px;
  padding: 0 14px !important;
  font-size: 13px;
  font-weight: 900;
  pointer-events: auto;
  z-index: 78;
}

/* ================= PREVIEW-ONLY [DEV F2] ================= */
.dev-f2-pill {
  position: fixed;
  left: 10px;
  bottom: 10px;
  z-index: 120;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid #38BDF8;
  color: #38BDF8;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.dev-panel {
  position: fixed;
  left: 10px;
  bottom: 48px;
  z-index: 120;
  width: 220px;
  padding: 10px;
  border-radius: 12px;
  background: #0F172A;
  border: 2px solid #38BDF8;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dev-panel-title {
  font-size: 12px;
  font-weight: 900;
  color: #FACC15;
}

.dev-panel button {
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #334155;
  background: #1E293B;
  color: #F8FAFC;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.season-card-compact {
  min-height: 162px !important;
  gap: 4px !important;
  padding: 6px !important;
}

.vf-art-compact {
  width: 68px !important;
  height: 64px !important;
}

.vf-art-compact .vf-art-img {
  width: 60px !important;
  height: 60px !important;
}

.season-head-chip {
  margin-left: 6px;
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(12, 16, 48, 0.88);
  border: 1.5px solid rgba(56, 242, 214, 0.65);
  color: #FFF8E7 !important;
  font-size: 14px;
  font-weight: 900;
  -webkit-text-stroke: 0 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85) !important;
}

.season-head-chip b {
  color: #FFF8E7 !important;
  -webkit-text-stroke: 0 !important;
}

/* SYS-02 Timed Pass Switcher + O(1) Claim-All Toolbar */
.pass-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  padding: 6px 8px;
  border-radius: 14px;
  background: rgba(15, 13, 46, 0.82);
  border: 2px solid rgba(59, 91, 219, 0.8);
}

.pass-switch-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.pass-pill-btn {
  height: 36px;
  border-width: 7px 9px 7px 9px !important;
  padding: 0 8px !important;
  font-size: 13px;
  font-weight: 900;
  color: #FFF8E7 !important;
  text-shadow: 0 1.5px 0 #151136 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pass-cycle-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pass-cycle-chip {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(30, 27, 75, 0.92);
  border: 1.5px solid rgba(99, 102, 241, 0.7);
  color: #FFF8E7;
  font-size: 12px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.pass-cycle-chip.is-prem {
  background: rgba(120, 53, 15, 0.92);
  border-color: #FACC15;
  color: #FFE14D;
}

.pass-claim-all-btn {
  height: 38px;
  border-width: 7px 10px 7px 10px !important;
  padding: 0 12px !important;
  font-size: 13px;
  font-weight: 900;
  color: #FFF8E7 !important;
  text-shadow: 0 1.5px 0 #151136 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Non-blocking Toast Banner */
.ui-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 160;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(18, 15, 52, 0.95);
  border: 2.5px solid #38F2D6;
  color: #FFF8E7;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.4px;
  text-shadow: 0 1.5px 0 #151136;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.season-help-pill {
  width: 34px;
  height: 34px;
  margin-left: 6px;
  padding: 0 !important;
  border-width: 7px 8px 7px 8px !important;
  font-size: 14px;
  font-weight: 900;
  color: #FFFFFF !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  cursor: pointer;
}

/* Responsive 1280x720 Multi-Locale HUD Fit & Narrow Fallback */
@media (max-width: 1380px) {
  #top-hud { gap: 4px; left: 6px; right: 6px; }
  .hud-group { gap: 4px; }
  .hud-nav-btn { padding: 0 5px !important; height: 42px; }
  .hud-nav-btn > span:not(.notify-badge) { font-size: 12px; }
  .hud-icon-only { width: 40px; }
  .hud-pill { padding: 0 5px !important; height: 42px; }
  #hud-mine-pill { max-width: 196px; }
  #hud-mine-title { overflow: hidden; text-overflow: ellipsis; }
  .modal-tab-btn { height: 38px; padding: 0 8px !important; font-size: 13px; }
}
@media (max-width: 960px) {
  #command-dock {
    top: auto;
    left: 10px;
    right: 10px;
    bottom: 8px;
    width: auto;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .vf-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
