/* css/game.css — Flowarrow Prism Sort (indigo_arcade_gloss + playstore_glossy_casual)
 * 100% Offline MS Store WebView2 Safe:
 *  - Pure local font stack (no external font requests)
 *  - Pure opaque/translucent fills (no GPU blur filters)
 *  - 9-Language 720p & 1080p Anti-Overflow (flex-wrap: nowrap + minmax(0,1fr) grids)
 *  - Round 5 Spatial Proportions (72px Boosters with 61% icon fill + overflow: visible badges)
 */

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

html, body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #18153B;
  color: #F8FAFC;
  font-family: 'Fredoka', 'Segoe UI Rounded', 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

[hidden] {
  display: none !important;
}

/* =========================================================================
 * HEROIC NO-BOX TITLE SCREEN (Full-Bleed Key Art + Floating Emblem + Live Owl)
 * ========================================================================= */
#screen-title {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 20;
}

.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(ellipse at 50% 44%, rgba(24, 21, 59, 0.06) 0%, rgba(16, 13, 44, 0.56) 100%),
    linear-gradient(to bottom, rgba(20, 17, 54, 0.36) 0%, rgba(20, 17, 54, 0.04) 36%, rgba(16, 13, 44, 0.62) 100%);
  pointer-events: none;
}

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

.title-util-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  min-width: 44px;
  padding: 0 12px;
  font-size: 14px;
  overflow: visible;
}

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

.title-stage-hero {
  position: relative;
  z-index: 25;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: clamp(32px, 6vh, 66px) 24px clamp(36px, 7vh, 72px);
  pointer-events: none;
}

.title-logo-wrap {
  text-align: center;
  pointer-events: none;
}

.title-logo-main {
  font-family: 'Fredoka', 'Trebuchet MS', 'Segoe UI', sans-serif;
  font-size: clamp(42px, 5.2vw, 76px);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: #FFFDF5;
  -webkit-text-stroke: 2.5px #1E1B4B;
  text-shadow:
    0 5px 0 #1E1B4B,
    0 9px 0 #3B5BDB,
    0 14px 24px rgba(10, 8, 30, 0.55);
}

.title-mascot-wrap {
  position: absolute;
  right: clamp(40px, 9vw, 150px);
  bottom: clamp(54px, 11vh, 118px);
  width: clamp(190px, 21vw, 310px);
  height: clamp(190px, 21vw, 310px);
  pointer-events: none;
  z-index: 24;
}

.title-mascot-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(10, 8, 30, 0.48));
}

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

#boot-progress-wrap {
  width: min(380px, 76vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.boot-bar-track {
  position: relative;
  width: 100%;
  height: 36px;
  overflow: hidden;
  padding: 0;
}

#boot-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 10%;
  transition: width 120ms ease;
}

#boot-progress-label {
  font-size: 15px;
  font-weight: 800;
  color: #FEF9C3;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.72);
}

#title-cta-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

#btn-play {
  min-width: 240px;
  height: 66px;
  padding: 0 32px;
  font-size: clamp(20px, 1.8vw, 26px);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#btn-title-daily {
  min-width: 170px;
  height: 58px;
  padding: 0 22px;
  font-size: clamp(15px, 1.25vw, 18px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#btn-title-daily img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

/* =========================================================================
 * GAMEPLAY SCREEN (Full-Bleed 100vw x 100vh Canvas + Floating Corner HUD)
 * ========================================================================= */
#screen-play {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

#game-canvas {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
}

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

/* Slim Top Floating Optical Ribbon (flex-wrap: nowrap safe at 720p & 1080p!) */
.hud-top-bar {
  position: fixed;
  top: 8px;
  left: 12px;
  right: 12px;
  height: 50px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 35;
  pointer-events: none;
}

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

.hud-pill {
  height: 40px;
  padding: 0 10px;
  border-width: 7px !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  font-size: var(--uiv-font-hud, 13.5px);
  font-variant-numeric: tabular-nums;
}

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

.hud-stage-ch {
  color: #93C5FD;
  font-size: 13px;
  white-space: nowrap;
}

.hud-mini-toggle {
  height: 36px;
  padding: 0 9px;
  border-width: 6px !important;
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  opacity: 0.78;
}

.hud-mini-toggle.is-on {
  opacity: 1;
  filter: brightness(1.08);
}

.hud-action-btn {
  position: relative;
  overflow: visible !important;
  height: 40px;
  padding: 0 14px 0 9px;
  border-width: 7px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: var(--uiv-font-hud, 13px);
  white-space: nowrap;
  flex-shrink: 0;
}

.hud-action-btn .uiv-label-fit,
.hud-mini-toggle .uiv-label-fit {
  max-width: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

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

.hud-icon-only {
  position: relative;
  overflow: visible !important;
  width: 40px;
  height: 40px;
  padding: 0;
  border-width: 6px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.hud-icon-only img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.hud-vip-crown {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

/* Red-Dot Notification Badge (strictly unclipped!) */
.notify-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #EF4444;
  border: 2px solid #FFFDF5;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 900;
  line-height: 16px;
  text-align: center;
  z-index: 30;
  pointer-events: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.45);
}

/* =========================================================================
 * COMPACT BOTTOM BOOSTER DOCK (Round 5 Golden Ratios: 72x72px, 61% icon fill!)
 * ========================================================================= */
.booster-dock {
  position: fixed;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  z-index: 35;
  pointer-events: auto;
}

.booster-tile {
  position: relative;
  overflow: visible !important;
  width: 74px;
  height: 74px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.booster-tile img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  pointer-events: none;
}

.booster-lbl {
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1;
  max-width: 66px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #F8FAFC;
}

.booster-key {
  position: absolute;
  top: -8px;
  left: -6px;
  padding: 2px 6px;
  border-radius: 8px;
  background: #151136;
  border: 1.5px solid #67E8F9;
  color: #67E8F9;
  font-size: 10.5px;
  font-weight: 800;
  pointer-events: none;
}

.booster-count {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 24px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #FACC15;
  border: 2px solid #451A03;
  color: #451A03;
  font-size: 11px;
  font-weight: 900;
  line-height: 18px;
  text-align: center;
  pointer-events: none;
}

.fever-dock-pill {
  position: relative;
  overflow: visible !important;
  width: 162px;
  height: 54px;
  padding: 4px 10px;
  border-width: 7px !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}

.fever-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  width: 100%;
  font-size: 12px;
  font-weight: 800;
  color: #FEF08A;
}

.fever-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(10, 8, 30, 0.72);
  border: 1.5px solid #3B5BDB;
  overflow: hidden;
}

#fever-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #38BDF8, #FACC15, #F97316);
  transition: width 180ms ease;
}

.fever-dock-pill.is-fever-active {
  filter: brightness(1.16);
  border-color: #FACC15;
}

/* =========================================================================
 * NON-BLOCKING STAGE 1 FTUE SPOTLIGHT LAYER
 * ========================================================================= */
#tut-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 45;
}

#tut-spotlight {
  position: absolute;
  border-radius: 18px;
  border: 3.5px solid #FACC15;
  box-shadow: 0 0 0 6px rgba(250, 204, 21, 0.35);
  pointer-events: none;
}

#tut-hand {
  position: absolute;
  width: 44px;
  height: 44px;
  pointer-events: none;
}

#tut-pill {
  position: absolute;
  transform: translate(-50%, -100%);
  padding: 8px 16px;
  border-radius: 14px;
  background: #242053;
  border: 2.5px solid #FACC15;
  color: #FFFDF5;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
}

#btn-tut-skip {
  position: fixed;
  top: 66px;
  right: 16px;
  height: 38px;
  padding: 0 14px;
  pointer-events: auto;
}

/* =========================================================================
 * MODALS & ANTI-SAAS 60/25/15 VISUAL CARDS (Pure Fast WebView2 Composites!)
 * ========================================================================= */
#modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 30, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 120;
}

.game-modal {
  position: relative;
  width: min(860px, 94vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  padding: 18px 22px 20px;
  overflow: visible;
}

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

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.modal-title {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 900;
  color: #FEF08A;
  text-shadow: 0 2px 0 #151136;
}

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

.modal-close-btn img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.modal-body {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 4px 6px;
  max-height: calc(88vh - 96px);
}

.modal-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.modal-tab {
  height: 44px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.visual-card-grid,
.shop-grid {
  display: grid;
  gap: 12px;
}

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

.visual-card-grid > *,
.shop-grid > *,
.ev-grid > *,
.guide-flow-grid > *,
.exit-retention-grid > *,
.exit-btn-row > * {
  min-width: 0;
  max-width: 100%;
}

/* Visual-First 60/25/15 Cards */
.visual-card,
.shop-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px 12px;
  gap: 6px;
  text-align: center;
  min-height: 204px;
}

.vc-top {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.vc-lv {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15, 13, 44, 0.72);
  color: #67E8F9;
  font-size: 12px;
  font-weight: 800;
}

.vc-art,
.shop-art {
  width: 100%;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vc-art img,
.shop-art img {
  max-width: 92%;
  max-height: 108px;
  object-fit: contain;
  filter: drop-shadow(0 5px 8px rgba(8, 6, 26, 0.45));
}

.vc-title,
.shop-title {
  font-size: 15px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.15;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vc-stat,
.shop-perk {
  font-size: 12.5px;
  font-weight: 700;
  color: #BAE6FD;
  line-height: 1.15;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vc-btn,
.shop-buy-btn {
  width: 100%;
  height: 42px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.shop-badge {
  position: absolute;
  top: -8px;
  left: 10px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  background: #FACC15;
  color: #451A03;
  border: 2px solid #451A03;
  z-index: 6;
}

.shop-badge.badge-epic {
  background: #C084FC;
  color: #1E103B;
  border-color: #FAF5FF;
}

.theme-swatch-bar {
  width: 100%;
  height: 14px;
  border-radius: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

/* Inline Icon Currency Chips (ZERO ASCII Slop!) */
.chip-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

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

/* Mosaic Gallery Grid */
.gallery-summary {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 16px;
}

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

.gallery-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 6px;
  min-height: 104px;
}

.gallery-tile.is-locked {
  opacity: 0.52;
  cursor: not-allowed;
}

.gallery-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.gallery-num {
  font-size: 13px;
  font-weight: 800;
}

.gallery-stars {
  display: inline-flex;
  gap: 3px;
}

.mini-star {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.mini-star.is-dim,
.vic-star.is-dim {
  filter: grayscale(1) brightness(0.45);
}

/* Timed Event Passes Hero & Horizontal Track */
.ev-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.ev-hero-art {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
}

.ev-hero-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ev-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ev-hero-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 17px;
  font-weight: 900;
  color: #FEF08A;
}

.ev-mini-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.ev-badge-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.ev-cycle-tag {
  font-size: 12px;
  color: #93C5FD;
  font-weight: 700;
}

.ev-bar-wrap {
  position: relative;
  height: 30px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ev-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  transition: width 240ms ease;
}

.ev-bar-txt {
  position: relative;
  z-index: 2;
  font-size: 13px;
  font-weight: 900;
  color: #FFFFFF;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}

.ev-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 146px;
}

.ev-hero-actions button {
  height: 40px;
  padding: 0 12px;
}

.pill-active {
  text-align: center;
  padding: 6px 10px;
  border-radius: 10px;
  background: #16A34A;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 900;
}

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

.ev-tier-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 6px;
  text-align: center;
}

.ev-tier-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 800;
  color: #FEF08A;
}

.ev-tier-art img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.ev-tier-box {
  width: 100%;
  padding: 5px 4px;
  border-radius: 10px;
  background: rgba(12, 10, 34, 0.62);
  border: 1.5px solid rgba(147, 197, 253, 0.25);
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11.5px;
}

.ev-tier-box.is-pro {
  border-color: rgba(250, 204, 21, 0.45);
}

.ev-tier-box.is-ready {
  border-color: #22C55E;
  background: rgba(22, 163, 74, 0.24);
}

.ev-tier-box.is-claimed {
  opacity: 0.65;
}

.ev-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.ev-st {
  font-size: 10.5px;
  color: #BAE6FD;
  font-weight: 800;
}

/* Settings Modal */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.settings-group {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.settings-wide {
  grid-column: 1 / -1;
}

.setting-line,
.gift-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.setting-lbl {
  min-width: 74px;
  font-size: 14px;
  font-weight: 800;
}

.setting-slider {
  flex: 1;
  accent-color: #38BDF8;
  cursor: pointer;
}

.setting-toggle {
  min-width: 62px;
  height: 36px;
  padding: 0 8px;
}

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

.opt-pill {
  height: 38px;
  padding: 0 6px;
  font-size: 12px;
}

.setting-sec-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 800;
  color: #FEF08A;
}

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

.lang-btn {
  height: 36px;
  padding: 0 6px;
  font-size: 12.5px;
}

.gift-input {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 2px solid #3B5BDB;
  background: #131136;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.settings-footer-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.settings-footer-actions button {
  height: 42px;
  padding: 0 10px;
}

/* Guide, Daily, Victory, Exit Modals */
.guide-flow-grid,
.exit-retention-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.guide-step,
.exit-jump-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 10px;
  text-align: center;
}

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

.guide-step-lbl {
  font-size: 14px;
  font-weight: 800;
}

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

.guide-cta-row button {
  min-width: 190px;
  height: 50px;
}

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

.exit-jump-lbl {
  font-size: 13.5px;
  font-weight: 800;
}

.exit-jump-count {
  padding: 2px 10px;
  border-radius: 999px;
  background: #EF4444;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 900;
}

.exit-clean-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px;
  text-align: center;
}

.exit-mascot {
  width: 112px;
  height: 112px;
  object-fit: contain;
}

.exit-sub {
  font-size: 15px;
  font-weight: 700;
  color: #E2E8F0;
}

.exit-btn-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.exit-btn-row button {
  height: 48px;
  padding: 0 12px;
}

.daily-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
}

.daily-art {
  width: 84px;
  height: 84px;
  object-fit: contain;
}

.daily-date {
  font-size: 18px;
  font-weight: 900;
  color: #FEF08A;
  margin-bottom: 8px;
}

.daily-rewards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 15px;
}

.vic-stars-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.vic-star {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.vic-rank-pill {
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: #67E8F9;
  margin-bottom: 12px;
}

.vic-rewards-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 10px;
}

.vic-loot-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  font-size: 24px;
  font-weight: 900;
}

.vic-loot-card img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

/* Toast Notification */
#toast-banner {
  position: fixed;
  top: 66px;
  left: 50%;
  transform: translateX(-50%);
  padding: 9px 20px;
  border-radius: 14px;
  background: #151136;
  border: 2.5px solid #67E8F9;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 800;
  z-index: 200;
  pointer-events: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5);
}

/* Preview-Only [DEV F2] QA Tools */
#dev-f2-pill {
  position: fixed;
  left: 10px;
  bottom: 10px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.88);
  border: 1.5px solid #38BDF8;
  color: #38BDF8;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  z-index: 190;
}

#debug-panel {
  position: fixed;
  left: 10px;
  bottom: 44px;
  width: 210px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.95);
  border: 2px solid #38BDF8;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 195;
}

#debug-panel .dbg-head {
  font-size: 12px;
  font-weight: 900;
  color: #FACC15;
}

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

#debug-panel button:hover {
  background: #334155;
}

/* =========================================================================
 * SEASONS EXPANSION MODAL (v1.1 + v1.2 + v1.3 + Mastery 9999 + Bounties)
 * Single [role="dialog"] root, 0 nested modal classes, Anti-SaaS 60/25/15
 * ========================================================================= */
.sn-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sn-title {
  font-size: clamp(20px, 2vw, 27px);
  font-weight: 900;
  color: #FEF08A;
  text-shadow: 0 2px 0 #151136;
}

.sn-close-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sn-close-btn img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.sn-body {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 4px 6px;
  max-height: calc(88vh - 96px);
}

.sn-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 12px;
}

.sn-tab {
  position: relative;
  overflow: visible !important;
  height: 42px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  font-size: 13px;
}

.sn-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

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

.sn-banner-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sn-banner-title {
  font-size: 16px;
  font-weight: 900;
  color: #FEF08A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sn-banner-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
}

.sn-pager,
.sn-snd-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.sn-page-btn,
.sn-xs-btn {
  height: 30px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sn-sm-btn {
  height: 36px;
  padding: 0 11px;
  font-size: 12.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.sn-banner-btn {
  height: 40px;
  padding: 0 12px;
  flex-shrink: 0;
}

.sn-banner-btns {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.sn-seed-controls {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.sn-seed-top,
.sn-seed-bot,
.sn-sub-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.sn-sub-bar {
  margin-bottom: 10px;
}

.sn-seed-inp {
  min-width: 140px;
  height: 36px;
  font-size: 13px;
}

.sn-select {
  height: 36px;
  padding: 0 8px;
  border-radius: 10px;
  border: 2px solid #3B5BDB;
  background: #131136;
  color: #F8FAFC;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
}

.sn-grid {
  display: grid;
  gap: 10px;
}

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

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

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

.sn-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8px 10px;
  gap: 5px;
  text-align: center;
  min-height: 196px;
}

.sn-card.is-locked {
  opacity: 0.65;
}

/* Visual Progression Tier Frame Discipline (Tier 0 clean matte -> Tier 4 Mythic) */
.sn-card[data-visual-tier="0"] {
  box-shadow: none;
}

.sn-card[data-visual-tier="1"] {
  outline: 1.5px solid rgba(103, 232, 249, 0.35);
}

.sn-card[data-visual-tier="2"] {
  outline: 2px solid rgba(56, 189, 248, 0.58);
}

.sn-card[data-visual-tier="3"] {
  outline: 2.5px solid rgba(192, 132, 252, 0.78);
}

.sn-card[data-visual-tier="4"] {
  outline: 2.5px solid #FACC15;
}

.sn-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.sn-crown-mini {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.sn-art {
  width: 100%;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sn-art img {
  max-width: 88%;
  max-height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(8, 6, 26, 0.45));
}

.sn-stars,
.sn-chips-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12.5px;
}

.sn-gallery-box {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sn-gallery-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

#sn-gallery-canvas {
  width: 100%;
  height: 280px;
  border-radius: 14px;
  border: 2px solid #4C5FD5;
  display: block;
}

.sn-ver-line {
  text-align: right;
  font-size: 12px;
  font-weight: 800;
  color: #93C5FD;
  opacity: 0.85;
}

/* 720p Compact Adjustments (1280x720 Zero Overflow across all 9 locales!) */
@media (max-width: 1460px), (max-height: 768px) {
  .hud-top-bar { top: 6px; left: 8px; right: 8px; height: 42px; gap: 3px; }
  .hud-cluster { gap: 3px; }
  .hud-pill { height: 35px; padding: 0 6px; border-width: 5px !important; font-size: 11.8px; gap: 4px; }
  .hud-pill img { width: 16px; height: 16px; }
  .hud-stage-ch { display: none; }
  .hud-mini-toggle { height: 34px; padding: 0 6px; border-width: 5px !important; font-size: 11.5px; }
  .hud-action-btn { height: 35px; padding: 0 9px 0 6px; border-width: 5px !important; font-size: 11.8px; gap: 3px; }
  .hud-action-btn img { width: 17px; height: 17px; }
  .hud-icon-only { width: 35px; height: 35px; border-width: 5px !important; }
  .booster-tile { width: 68px; height: 68px; }
  .booster-tile img { width: 40px; height: 40px; }
  .booster-dock { bottom: 8px; gap: 9px; }
  .visual-card, .shop-card { min-height: 184px; padding: 8px; }
  .vc-art, .shop-art { height: 94px; }
  .vc-art img, .shop-art img { max-height: 90px; }
  .sn-card { min-height: 178px; padding: 6px; }
  .sn-art { height: 78px; }
  .sn-art img { max-height: 76px; }
}

@media (max-width: 900px) {
  .hud-stage-ch, .hud-mini-toggle { display: none; }
  .grid-3, .sn-grid-3, .sn-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ev-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .settings-grid { grid-template-columns: 1fr; }
}
