/* Coralbolt: Seaside Pin Sort — Plush Stitched Casual UI (Play Store Glossy Casual)
 * Offline MSIX safe: ZERO external Google Fonts @import, ZERO backdrop-filter blur over canvas.
 */
:root {
  --cb-font-display: 'Fredoka', 'Arial Rounded MT Bold', 'Segoe UI Rounded', 'Trebuchet MS', system-ui, sans-serif;
  --cb-font-body: 'Nunito', 'Segoe UI', 'Trebuchet MS', system-ui, sans-serif;
  --cb-sky: #7FD0E8;
  --cb-terracotta: #9F594A;
  --cb-sand: #F5DCA1;
  --cb-caramel: #E2A96A;
  --cb-wood: #A8856F;
  --cb-blush: #D8B1A1;
  --cb-cream: #FFF8EC;
  --cb-ink: #4E2A1A;
  --cb-ink-deep: #2B160C;
  --cb-emerald: #55D418;
  --cb-ocean: #1E96FC;
  --cb-coral: #F04B6B;
  --cb-gold: #FFB81C;
}

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

html, body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #67C5E8;
  font-family: var(--cb-font-body);
  color: var(--cb-ink);
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

button {
  font-family: var(--cb-font-display);
  border: none;
  outline: none;
  background: transparent;
  color: var(--cb-ink);
  cursor: pointer;
}

button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* =========================================================================
 * 1. BOOT LOADING OVERLAY (Authentic 0-100%)
 * ========================================================================= */
.boot-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: radial-gradient(circle at 50% 35%, #9FE3F7 0%, #52B6E0 62%, #2B84B5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 260ms ease;
}

.boot-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
}

.boot-mascot {
  width: 168px;
  height: auto;
  filter: drop-shadow(0 8px 14px rgba(43, 22, 12, 0.28));
}

.boot-brand {
  font-family: var(--cb-font-display);
  font-size: clamp(40px, 4.6vw, 64px);
  font-weight: 900;
  letter-spacing: 2px;
  color: #FFFDF5;
  -webkit-text-stroke: 2.5px #4E2A1A;
  text-shadow: 0 5px 0 #4E2A1A, 0 9px 18px rgba(43, 22, 12, 0.32);
}

.boot-sub {
  font-family: var(--cb-font-display);
  font-size: 20px;
  font-weight: 800;
  color: #FFF7E0;
  text-shadow: 0 2px 0 #4E2A1A;
}

.boot-bar-track {
  width: min(380px, 78vw);
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-width: 8px 10px 9px 10px !important;
}

.boot-bar-fill {
  height: 100%;
  min-width: 12px;
  border-radius: 10px;
  background: linear-gradient(180deg, #8FF53D 0%, #48C814 55%, #2EA008 100%);
  transition: width 120ms ease-out;
}

.boot-status {
  font-family: var(--cb-font-display);
  font-size: 16px;
  font-weight: 800;
  color: #FFFDF5;
  text-shadow: 0 2px 0 #4E2A1A;
}

/* =========================================================================
 * 2. HEROIC FULL-BLEED NO-BOX TITLE SCREEN
 * ========================================================================= */
.title-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px 34px;
}

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

.title-sky-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse 75% 42% at 50% 18%, rgba(255, 253, 240, 0.16) 0%, rgba(20, 72, 120, 0.08) 70%, rgba(20, 52, 84, 0.22) 100%);
  pointer-events: none;
}

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

.title-hero-stage {
  position: relative;
  z-index: 6;
  margin-top: clamp(12px, 3vh, 36px);
  text-align: center;
  background: transparent;
  border: none;
  pointer-events: none;
}

.game-title {
  font-family: var(--cb-font-display);
  font-size: clamp(56px, 6.4vw, 90px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 3px;
  color: #FFFDF4;
  paint-order: stroke fill;
  -webkit-text-stroke: 8px #4E2A1A;
  text-shadow: 0 7px 0 #4E2A1A, 0 12px 24px rgba(43, 22, 12, 0.38);
}

.game-subtitle {
  margin-top: 8px;
  font-family: var(--cb-font-display);
  font-size: clamp(21px, 2.2vw, 30px);
  font-weight: 900;
  letter-spacing: 1px;
  color: #FFE999;
  paint-order: stroke fill;
  -webkit-text-stroke: 4.5px #4E2A1A;
  text-shadow: 0 3px 0 #4E2A1A, 0 6px 14px rgba(43, 22, 12, 0.34);
}

.title-bottom-showcase {
  position: relative;
  z-index: 8;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(20px, 3vw, 48px);
  margin-bottom: clamp(6px, 2.2vh, 22px);
}

.title-mascot-wrap {
  position: relative;
  width: clamp(190px, 19vw, 270px);
  height: clamp(160px, 16vw, 224px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.title-mascot-img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(43, 22, 12, 0.32));
}

.title-cta-cluster {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.title-play-btn {
  min-width: 268px;
  min-height: 78px;
  padding: 6px 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(28px, 2.5vw, 36px);
  font-weight: 900;
  letter-spacing: 2px;
  color: #FFFDF5 !important;
  paint-order: stroke fill;
  -webkit-text-stroke: 5px #1E5408;
  text-shadow: 0 4px 0 #1E5408;
  filter: drop-shadow(0 6px 8px rgba(43, 22, 12, 0.34));
  white-space: nowrap;
}

.title-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.title-mini-pill {
  min-height: 48px;
  padding: 2px 14px;
  border-width: 10px 18px 12px 14px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 900;
  color: #1A2B44 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  overflow: visible !important;
  filter: drop-shadow(0 4px 5px rgba(43, 22, 12, 0.25));
}

.mini-ico {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
  pointer-events: none;
}

/* =========================================================================
 * 3. FULL-BLEED GAMEPLAY SCREEN & FLOATING CORNER HUD
 * ========================================================================= */
.game-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 10;
}

.game-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  cursor: pointer;
}

.fx-overlay-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 80;
  display: none;
}

/* Slim Floating Top Bar (Zero opaque SaaS slab; nowrap at 1920x1080 & 1280x720) */
.hud-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  padding: 8px 14px;
  gap: 8px;
  pointer-events: none;
}

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

.hud-stage-pill {
  min-height: 44px;
  padding: 0 12px;
  border-width: 9px 11px 9px 11px !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 800;
  color: #4E2A1A !important;
  white-space: nowrap;
  filter: drop-shadow(0 3px 4px rgba(43, 22, 12, 0.22));
}

.stage-sep {
  opacity: 0.45;
}

.hud-timer {
  font-size: 14px;
  font-weight: 800;
  color: #1463A8;
}

.hud-nav-btn {
  min-height: 44px;
  padding: 0 10px;
  border-width: 9px 15px 11px 12px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 900;
  color: #162B46 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  overflow: visible !important;
  position: relative;
  filter: drop-shadow(0 3px 4px rgba(43, 22, 12, 0.22));
}

.hud-shop-btn {
  border-width: 9px 14px 10px 14px !important;
  color: #1A3A08 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.nav-ico {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
  pointer-events: none;
}

.nav-txt {
  display: inline-block;
  line-height: 1.15;
  white-space: nowrap;
}

.hud-cur-pill {
  min-height: 44px;
  padding: 0 10px 0 8px;
  border-width: 9px 11px 9px 11px !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 800;
  color: #4E2A1A !important;
  white-space: nowrap;
  overflow: visible !important;
  filter: drop-shadow(0 3px 4px rgba(43, 22, 12, 0.20));
}

.cur-ico {
  width: 28px;
  height: 28px;
  object-fit: contain;
  margin: -4px 0 -4px -2px;
  pointer-events: none;
  flex-shrink: 0;
}

.cur-val {
  font-size: 16px;
  font-weight: 900;
  color: #4E2A1A;
}

.hud-chip-btn {
  min-height: 44px;
  min-width: 54px;
  padding: 0 10px;
  border-width: 9px 11px 9px 11px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
  color: #4E2A1A !important;
  white-space: nowrap;
  filter: drop-shadow(0 3px 4px rgba(43, 22, 12, 0.22));
}

.icon-sq-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  border-width: 7px 7px 9px 7px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible !important;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 4px rgba(43, 22, 12, 0.22));
}

.btn-ico-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  pointer-events: none;
}

/* Red-Dot Notification Badge (strictly unclipped!) */
.notify-badge {
  position: absolute;
  top: -7px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #FF5E7E 0%, #D91E46 100%);
  border: 2px solid #FFFDF5;
  color: #FFFFFF;
  font-family: var(--cb-font-display);
  font-size: 13px;
  font-weight: 900;
  line-height: 18px;
  text-align: center;
  z-index: 25;
  pointer-events: none;
  box-shadow: 0 2px 5px rgba(43, 22, 12, 0.35);
}

/* Compact Floating Toast */
.game-toast {
  position: fixed;
  top: 66px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  padding: 7px 18px;
  border-radius: 999px;
  background: #4E2A1A;
  border: 2.5px solid #FFE29A;
  color: #FFFDF5;
  font-family: var(--cb-font-display);
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 6px 14px rgba(43, 22, 12, 0.35);
}

/* =========================================================================
 * 4. COMPACT BOTTOM BOOSTER DOCK (Round 5 Golden Ratios: 78x78px, 62% icon)
 * ========================================================================= */
.booster-dock-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 10px;
  z-index: 32;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.booster-dock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 4px 10px;
  pointer-events: auto;
}

.booster-btn {
  width: 78px;
  height: 78px;
  padding: 0;
  border-width: 9px 10px 12px 9px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible !important;
  flex: 0 0 auto;
  filter: drop-shadow(0 5px 6px rgba(43, 22, 12, 0.28));
}

.booster-btn.is-armed {
  filter: drop-shadow(0 0 10px rgba(255, 210, 60, 0.95));
  transform: translateY(-4px) scale(1.06);
}

.booster-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  pointer-events: none;
}

.tool-count {
  position: absolute;
  top: -8px;
  right: -7px;
  min-width: 26px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #5CE024 0%, #2AA00A 100%);
  border: 2.5px solid #FFFDF5;
  color: #FFFFFF;
  font-family: var(--cb-font-display);
  font-size: 13px;
  font-weight: 900;
  line-height: 19px;
  text-align: center;
  text-shadow: 0 1px 0 #1B5E04;
  z-index: 12;
  pointer-events: none;
}

.tool-count.is-empty {
  background: linear-gradient(180deg, #FFB81C 0%, #DF7D08 100%);
  text-shadow: 0 1px 0 #6B3600;
}

.tool-key {
  position: absolute;
  bottom: -6px;
  left: -5px;
  min-width: 23px;
  height: 22px;
  padding: 0 5px;
  border-radius: 7px;
  background: #4E2A1A;
  border: 2px solid #FCEBD1;
  color: #FFFDF5;
  font-family: var(--cb-font-display);
  font-size: 13px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  z-index: 12;
  pointer-events: none;
}

/* =========================================================================
 * 5. NON-BLOCKING FTUE VISUAL SPOTLIGHT (pointer-events: none!)
 * ========================================================================= */
.ftue-overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
}

.tut-spotlight {
  position: fixed;
  width: 82px;
  height: 82px;
  margin-left: -41px;
  margin-top: -41px;
  border-radius: 50%;
  border: 4px solid #FFE45E;
  box-shadow: 0 0 0 6px rgba(255, 228, 94, 0.32), inset 0 0 14px rgba(255, 255, 255, 0.55);
  animation: tutPulse 1.15s ease-in-out infinite;
  pointer-events: none;
}

.tut-hand {
  position: fixed;
  width: 54px;
  height: 54px;
  margin-left: 8px;
  margin-top: 8px;
  background-size: contain;
  background-repeat: no-repeat;
  filter: drop-shadow(0 5px 6px rgba(43, 22, 12, 0.35));
  animation: tutBob 0.9s ease-in-out infinite;
  pointer-events: none;
}

.tut-pill {
  position: fixed;
  left: 50%;
  top: clamp(144px, 16.5vh, 178px);
  transform: translateX(-50%);
  padding: 2px 18px;
  border-width: 10px 14px 10px 14px !important;
  font-family: var(--cb-font-display);
  font-size: 16px;
  font-weight: 900;
  color: #4E2A1A !important;
  white-space: nowrap;
  pointer-events: none;
  filter: drop-shadow(0 5px 8px rgba(43, 22, 12, 0.25));
}

.tut-skip-btn {
  position: fixed;
  top: 66px;
  right: 18px;
  min-height: 40px;
  padding: 0 14px;
  border-width: 8px 14px 10px 12px !important;
  font-size: 14px;
  font-weight: 900;
  color: #162B46 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
  pointer-events: auto;
  white-space: nowrap;
}

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

@keyframes tutBob {
  0%, 100% { transform: translate(0, 0) rotate(-10deg); }
  50% { transform: translate(-8px, -10px) rotate(-18deg); }
}

/* =========================================================================
 * 6. UNIFIED MODAL LAYER (Flex Scroll, Anti-SaaS 60/25/15, ZERO backdrop-blur)
 * ========================================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(16, 36, 62, 0.64);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-card {
  position: relative;
  width: min(880px, 94vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-width: 20px 22px 22px 22px !important;
  padding: 6px 10px 10px;
  color: var(--cb-ink);
  filter: drop-shadow(0 14px 28px rgba(16, 30, 52, 0.48));
}

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

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

.modal-hdr-left {
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.modal-help-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(180deg, #56B8FF 0%, #1C7DE0 100%);
  border: 3px solid #FFFDF5;
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 3px 0 #124C8A;
}

.modal-title-ribbon {
  min-width: 220px;
  max-width: 68%;
  min-height: 48px;
  padding: 0 28px;
  border-width: 12px 30px 13px 30px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  color: #FFFFFF !important;
  text-shadow: 0 2px 0 #124E8A;
  white-space: nowrap;
}

.modal-close-x {
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-close-x img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  pointer-events: none;
}

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

.modal-tab-btn {
  min-height: 42px;
  padding: 4px 18px;
  border-radius: 14px;
  background: #EFE0C4;
  border: 3px solid #C2966B;
  color: #4E2A1A;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.modal-tab-btn.is-active {
  background: linear-gradient(180deg, #FF709A 0%, #E03D72 100%);
  border-color: #FFFDF5;
  color: #FFFFFF;
  text-shadow: 0 2px 0 #8E1B42;
  box-shadow: 0 3px 0 #9E244D;
}

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

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

/* Visual-First 60/25/15 Grids (strict minmax(0,1fr) containment!) */
.vf-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

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

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

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

/* Illustrated Game Card (>= 55% real art, <= 3-word title, compact icon chips) */
.shop-card, .upgrade-card, .season-card, .diorama-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 10px 8px 10px;
  border-radius: 18px;
  background: linear-gradient(180deg, #FFFDF7 0%, #FCEBD2 100%);
  border: 3px solid #D5A978;
  box-shadow: 0 4px 0 #B88352;
  text-align: center;
  min-height: 222px;
  overflow: visible;
}

.shop-card.is-featured, .season-card.is-featured {
  background: linear-gradient(180deg, #FFFCE6 0%, #FFE4A3 100%);
  border: 3px solid #E59B1A;
  box-shadow: 0 4px 0 #B57008;
}

.vf-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #FF6786 0%, #D9234B 100%);
  border: 2px solid #FFFDF5;
  color: #FFFFFF;
  font-family: var(--cb-font-display);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  z-index: 6;
}

.vf-badge.tag-gold {
  background: linear-gradient(180deg, #FFC833 0%, #DE8204 100%);
}

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

.vf-art-img {
  width: 96px;
  height: 96px;
  max-width: 92%;
  max-height: 104px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 6px rgba(43, 22, 12, 0.22));
}

.vf-name {
  font-family: var(--cb-font-display);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.15;
  color: #4E2A1A;
}

.chip-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cur-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #F4DFBC;
  border: 2px solid #D3A572;
  font-family: var(--cb-font-display);
  font-size: 14px;
  font-weight: 900;
  color: #4E2A1A;
  white-space: nowrap;
}

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

.vf-cta-btn {
  width: 100%;
  min-height: 40px;
  padding: 4px 10px;
  border-radius: 13px;
  background: linear-gradient(180deg, #6CE329 0%, #39B40D 100%);
  border: 2.5px solid #FFFDF5;
  box-shadow: 0 3px 0 #237A06;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 900;
  text-shadow: 0 1.5px 0 #1A5C04;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
}

.vf-cta-btn.btn-blue {
  background: linear-gradient(180deg, #4AB8FF 0%, #1981E8 100%);
  box-shadow: 0 3px 0 #10559E;
  text-shadow: 0 1.5px 0 #0F4A8A;
}

.vf-cta-btn.btn-muted {
  background: linear-gradient(180deg, #C7BFB2 0%, #9E9486 100%);
  box-shadow: 0 3px 0 #70685D;
  text-shadow: none;
  color: #3D2B1F;
}

.vf-cta-btn.btn-danger {
  background: linear-gradient(180deg, #FF6D89 0%, #DF2E53 100%);
  box-shadow: 0 3px 0 #991834;
  text-shadow: 0 1.5px 0 #7C1028;
}

/* Season / Daily Hero Banner */
.hero-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  margin-bottom: 12px;
  border-radius: 18px;
  background: linear-gradient(135deg, #52C5F2 0%, #248AD8 100%);
  border: 3px solid #FFFDF5;
  box-shadow: 0 4px 0 #165B96;
  color: #FFFFFF;
}

.hero-banner-art {
  width: 78px;
  height: 78px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 8px rgba(16, 36, 62, 0.32));
}

.hero-banner-info {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.hero-banner-title {
  font-family: var(--cb-font-display);
  font-size: 20px;
  font-weight: 900;
  color: #FFFDF5;
  text-shadow: 0 2px 0 #124A7E;
}

.vf-meter {
  width: 100%;
  height: 16px;
  border-radius: 999px;
  background: rgba(16, 40, 74, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.65);
  overflow: hidden;
}

.prog-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, #FFE159 0%, #F5A30B 100%);
  transition: width 240ms ease;
}

/* Settings & Pause Controls */
.settings-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.setting-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 15px;
  background: #FFFDF6;
  border: 2.5px solid #DEC09A;
}

.setting-lbl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--cb-font-display);
  font-size: 16px;
  font-weight: 800;
  color: #4E2A1A;
  white-space: nowrap;
}

.setting-ctrl {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vol-slider {
  width: 150px;
  accent-color: #1E96FC;
  cursor: pointer;
}

.toggle-pill {
  min-width: 72px;
  min-height: 36px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #D5C5AE;
  border: 2.5px solid #9B8064;
  color: #4E2A1A;
  font-size: 14px;
  font-weight: 900;
}

.toggle-pill.is-on {
  background: linear-gradient(180deg, #6CE329 0%, #38B00C 100%);
  border-color: #FFFDF5;
  color: #FFFFFF;
  text-shadow: 0 1px 0 #1B5E04;
}

.lang-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding: 8px;
  border-radius: 15px;
  background: #FFFDF6;
  border: 2.5px solid #DEC09A;
}

.lang-btn {
  min-height: 38px;
  padding: 4px 8px;
  border-radius: 11px;
  background: #F4E2C6;
  border: 2px solid #CFA472;
  color: #4E2A1A;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.lang-btn.is-active {
  background: linear-gradient(180deg, #4AB8FF 0%, #1981E8 100%);
  border-color: #FFFDF5;
  color: #FFFFFF;
  text-shadow: 0 1px 0 #0F4A8A;
}

.gift-input {
  flex: 1 1 auto;
  min-width: 120px;
  height: 38px;
  padding: 0 12px;
  border-radius: 11px;
  border: 2.5px solid #CFA472;
  background: #FFFBF2;
  color: #4E2A1A;
  font-family: var(--cb-font-display);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
}

/* Celebration / Victory / Defeat Center Layout */
.celeb-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 8px 6px;
  text-align: center;
}

.celeb-hero-img {
  width: 132px;
  height: 112px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(43, 22, 12, 0.25));
}

.celeb-stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.star-ico {
  width: 48px;
  height: 48px;
  object-fit: contain;
  transition: transform 240ms ease;
}

.star-ico.is-off {
  filter: grayscale(1) brightness(0.65);
  opacity: 0.45;
}

.celeb-sub {
  font-family: var(--cb-font-display);
  font-size: 17px;
  font-weight: 800;
  color: #6B3B22;
}

.celeb-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-top: 4px;
}

.celeb-actions .vf-cta-btn {
  width: auto;
  min-width: 152px;
  min-height: 48px;
  padding: 6px 22px;
  font-size: 17px;
}

/* Visual 3-Icon Guide Strip */
.guide-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.guide-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  border-radius: 16px;
  background: #FFFDF6;
  border: 2.5px solid #D5A978;
  text-align: center;
}

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

.guide-step-txt {
  font-family: var(--cb-font-display);
  font-size: 15px;
  font-weight: 900;
  color: #4E2A1A;
}

/* Preview-Only [DEV F2] Pill (strictly never mounted when __MS_RELEASE__ === true) */
.dev-f2-pill {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 9000;
  padding: 6px 11px;
  border-radius: 10px;
  background: rgba(24, 34, 52, 0.88);
  border: 2px solid #FFE066;
  color: #FFE066;
  font-family: var(--cb-font-display);
  font-size: 13px;
  font-weight: 800;
}

.debug-panel {
  position: fixed;
  left: 12px;
  bottom: 54px;
  z-index: 9100;
  width: 248px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(20, 30, 48, 0.96);
  border: 2.5px solid #FFE066;
  color: #FFFDF5;
  display: flex;
  flex-direction: column;
  gap: 7px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.debug-panel-title {
  font-size: 14px;
  font-weight: 900;
  color: #FFE066;
}

.debug-btn {
  padding: 6px 10px;
  border-radius: 8px;
  background: #2C4366;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.debug-btn:hover {
  background: #3B5B8A;
}

/* =========================================================================
 * 7. RESPONSIVE 1280x720 & NARROW VIEWPORT TUNING
 * ========================================================================= */
@media (max-width: 1360px) {
  .hud-top {
    padding: 6px 10px;
  }
  .hud-cluster {
    gap: 5px;
  }
  .hud-stage-pill, .hud-nav-btn, .hud-cur-pill {
    min-height: 40px;
    font-size: 13.5px;
    padding: 0 8px;
  }
  .hud-nav-btn {
    border-width: 8px 12px 9px 10px !important;
  }
  .nav-ico {
    width: 21px;
    height: 21px;
  }
  .cur-ico {
    width: 24px;
    height: 24px;
  }
  .cur-val {
    font-size: 14.5px;
  }
  .icon-sq-btn {
    width: 40px;
    height: 40px;
  }
  .btn-ico-img {
    width: 22px;
    height: 22px;
  }
  .booster-btn {
    width: 72px;
    height: 72px;
    border-width: 8px 9px 11px 8px !important;
  }
  .booster-icon {
    width: 44px;
    height: 44px;
  }
  .shop-card, .upgrade-card, .season-card, .diorama-card {
    min-height: 198px;
    padding: 8px 7px;
  }
  .vf-art-wrap {
    height: 92px;
  }
  .vf-art-img {
    width: 84px;
    height: 84px;
    max-height: 88px;
  }
}

@media (max-width: 900px) {
  .vf-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nav-txt {
    display: none;
  }
}

/* =========================================================================
 * 8. SEASONS v1.1-v1.3 EXPANSION UI (Feature Guides, Bookmarks, Keybinds)
 * ========================================================================= */
.title-ver-badge, .ver-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(78, 42, 26, 0.78);
  border: 2px solid #FFE29A;
  color: #FFFDF5;
  font-family: var(--cb-font-display);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.fg-toast-host {
  position: fixed;
  top: 66px;
  right: 18px;
  z-index: 560;
  pointer-events: none !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 340px;
}

.fg-toast-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #FFFDF7 0%, #FCE7C6 100%);
  border: 3px solid #D99B4E;
  box-shadow: 0 6px 16px rgba(43, 22, 12, 0.32);
  pointer-events: none !important;
}

.fg-toast-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.fg-toast-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.fg-toast-title {
  font-family: var(--cb-font-display);
  font-size: 14px;
  font-weight: 900;
  color: #4E2A1A;
}

.fg-toast-sub {
  font-family: var(--cb-font-body);
  font-size: 13px;
  font-weight: 700;
  color: #6B3B22;
}

.sm-foot-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  background: #F4DFBC;
  border: 2.5px solid #CFA472;
  font-family: var(--cb-font-display);
  font-size: 14px;
  font-weight: 900;
  color: #4E2A1A;
  white-space: nowrap;
}

.flt-pill-btn {
  min-height: 36px;
  padding: 4px 14px;
  border-radius: 999px;
  background: #EFE0C4;
  border: 2.5px solid #C2966B;
  color: #4E2A1A;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.flt-pill-btn.is-on {
  background: linear-gradient(180deg, #4AB8FF 0%, #1981E8 100%);
  border-color: #FFFDF5;
  color: #FFFFFF;
  text-shadow: 0 1px 0 #0F4A8A;
}

.fav-heart-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FFF8E6;
  border: 2px solid #D5A978;
  color: #A87C52;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 8;
}

.fav-heart-btn.is-fav {
  background: linear-gradient(180deg, #FFD644 0%, #F0980C 100%);
  border-color: #FFFDF5;
  color: #FFFFFF;
  text-shadow: 0 1px 0 #8A4D00;
}

.kb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding: 8px;
  border-radius: 15px;
  background: #FFFDF6;
  border: 2.5px solid #DEC09A;
}

.kb-bind-btn {
  min-height: 38px;
  padding: 4px 8px;
  border-radius: 11px;
  background: #F4E2C6;
  border: 2px solid #CFA472;
  color: #4E2A1A;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  white-space: nowrap;
}

.kb-bind-btn.is-listening {
  background: #FFE599;
  border-color: #E58A00;
}

.kb-cap {
  padding: 2px 7px;
  border-radius: 6px;
  background: #4E2A1A;
  color: #FFFDF5;
  font-size: 12.5px;
  font-weight: 900;
}
