/* ==========================================================================
 * css/game.css — Tinkerpin Studio 3D (Round 9 Studio Polish)
 * Target UI Vault Style: `#9 indigo_arcade_gloss` + Bright Pastel 3D Stage
 * Strictly enforces:
 *   - 20+ Genuine 9-Slice Regions from `assets/ui/vault_indigo_arcade_gloss/`
 *   - Full-Bleed `100vw × 100vh` 3D Stage (`>= 85%` unobstructed, `pointer-events: none` HUD wrappers)
 *   - ZERO Wasted Sidebars (`0%` sidebar bloat) + Compact Collapsible 360° Orbit Dial
 *   - Round 5 Golden Ratio Square Booster Tiles (`74×76px`, `44px` icon = `58%`)
 *   - Anti-SaaS `60/25/15` Visual-First Cards (`>= 55%` real art, `<= 3`-word titles)
 *   - ZERO backdrop blur filters, ZERO canvas shadow blur, `overflow: visible !important` on buttons
 * ========================================================================== */

:root {
  --studio-bg: #DCEAF2;
  --indigo-deep: #18153B;
  --indigo-velvet: #221B5E;
  --indigo-ink: #120E2E;
  --text-light: #FFFFFF;
  --text-soft: #DBEAFE;
  --gold-accent: #FFD166;
  --cyan-accent: #3BF6E5;
  --lime-accent: #4ADE80;
  --danger-accent: #FF5A5F;

  --font-display: 'Titan One', 'Fredoka', 'Trebuchet MS', 'Segoe UI Black', sans-serif;
  --font-accent: 'Fredoka', 'Outfit', 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  --font-body: 'Outfit', 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;

  /* UI Vault v2.2 Contract Tokens (`indigo_arcade_gloss`) */
  --tb-slot-style: indigo_arcade_gloss;
  --tb-slot-shape: rect;
  --tb-slot-radius: 18px;
  --tb-slot-chamfer: 0px;
  --tb-slot-inset: 3px 3px 5px 3px;
  --tb-slot-palette: cyan;
  --tb-slot-mode: chaser_slot;
  --tb-slot-daylight: 0;
  --tb-slot-z: 3;
}

*, *::before, *::after {
  box-sizing: border-box;
  user-select: none;
  -webkit-user-drag: none;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--studio-bg);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.25;
}

.is-hidden,
.is-hidden-gate {
  display: none !important;
}

/* ==========================================================================
 * 1. Genuine Style #9 (`indigo_arcade_gloss`) 9-Slice Chrome Regions
 * ========================================================================== */

/* Region 1: Main Modal Frame (`frame_modal.png`) */
.panel-9slice {
  background-color: #24145E;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-radius: 20px;
  box-shadow: none;
  border-width: 18px 16px 20px 16px;
  border-image: url('../assets/ui/vault_indigo_arcade_gloss/frame_modal.png') 47 38 52 46 fill / 18px 16px 20px 16px / 0 stretch;
  color: #FFFFFF;
}

/* Region 2: Subpanel / Dock / Coach Frame (`frame_subpanel.png`) */
.panel-9slice-sub {
  background-color: #221A6E;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-radius: 18px;
  box-shadow: none;
  border-width: 14px 16px 15px 16px;
  border-image: url('../assets/ui/vault_indigo_arcade_gloss/frame_subpanel.png') 67 80 72 81 fill / 14px 16px 15px 16px / 0 stretch;
  color: #FFFFFF;
}

/* Region 3: Golden Header Ribbon (`ribbon_header.png` — Dark Ink Contrast!) */
.ribbon-9slice {
  background-color: #F7B939;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-radius: 14px;
  box-shadow: none;
  border-width: 12px 22px 12px 22px;
  border-image: url('../assets/ui/vault_indigo_arcade_gloss/ribbon_header.png') 95 98 96 100 fill / 12px 22px 12px 22px / 0 stretch;
  color: #141229;
}

/* Region 4: Deep Indigo Gloss Pill (`hud_pill.png` — White Contrast!) */
.hud-pill-9slice {
  background-color: #1A146C;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-radius: 18px;
  box-shadow: none;
  border-width: 10px 12px 10px 12px;
  border-image: url('../assets/ui/vault_indigo_arcade_gloss/hud_pill.png') 65 46 47 46 fill / 10px 12px 10px 12px / 0 stretch;
  color: #FFFFFF;
}

/* Buttons: ALWAYS `overflow: visible !important` for Red-Dot `.notify-badge` & Pop-out Icons */
button {
  position: relative;
  overflow: visible !important;
  cursor: pointer;
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.15;
  transition: transform 0.12s ease, filter 0.12s ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1.5px);
  filter: brightness(1.06);
}

button:active:not(:disabled) {
  transform: translateY(2px);
}

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

.btn-label {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

/* Region 5: Glossy Lime-Emerald Primary CTA (`btn_primary.png` — Dark Ink!) */
.btn-9slice-primary {
  background-color: #3DEB3F;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-radius: 18px;
  box-shadow: none;
  border-width: 11px 14px 12px 14px;
  border-image: url('../assets/ui/vault_indigo_arcade_gloss/btn_primary.png') 61 63 64 63 fill / 11px 14px 12px 14px / 0 stretch;
  color: #0E1726;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
  padding: 2px 10px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Region 6: Glossy Sky-Azure Secondary CTA (`btn_secondary.png` — Dark Ink!) */
.btn-9slice-secondary,
.btn-9slice-white {
  background-color: #38BDF8;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-radius: 18px;
  box-shadow: none;
  border-width: 11px 14px 12px 14px;
  border-image: url('../assets/ui/vault_indigo_arcade_gloss/btn_secondary.png') 66 67 66 68 fill / 11px 14px 12px 14px / 0 stretch;
  color: #0B132B;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.38);
  padding: 2px 10px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Region 7: Glossy Cherry-Red Danger CTA (`btn_danger.png` — White Text!) */
.btn-9slice-danger {
  background-color: #B91C1C;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-radius: 18px;
  box-shadow: none;
  border-width: 10px 12px 11px 12px;
  border-image: url('../assets/ui/vault_indigo_arcade_gloss/btn_danger.png') 62 64 62 63 fill / 10px 12px 11px 12px / 0 stretch;
  color: #FFFFFF;
  text-shadow: 0 1.5px 2px rgba(15, 10, 30, 0.72);
  padding: 2px 9px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* Region 8: Disabled Button State (`btn_disabled.png`) */
.btn-9slice-primary:disabled,
.btn-9slice-secondary:disabled {
  background-color: #363C63;
  background-clip: padding-box;
  border-image: url('../assets/ui/vault_indigo_arcade_gloss/btn_disabled.png') 68 69 68 69 fill / 11px 14px 12px 14px / 0 stretch;
  color: #E2E8F0;
  text-shadow: none;
}

/* Region 9 & 10: Indigo Nav Pill (`hud_pill.png`) & Active Tab (`tab_active.png`) */
.btn-vault-pill {
  background-color: #1A146C;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-radius: 18px;
  box-shadow: none;
  border-width: 9px 11px 9px 11px;
  border-image: url('../assets/ui/vault_indigo_arcade_gloss/hud_pill.png') 65 46 47 46 fill / 9px 11px 9px 11px / 0 stretch;
  color: #FFFFFF;
  text-shadow: 0 1px 2px rgba(8, 6, 24, 0.65);
  padding: 2px 9px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-vault-pill.is-active {
  background-color: #38BDF8;
  background-clip: padding-box;
  border-image: url('../assets/ui/vault_indigo_arcade_gloss/tab_active.png') 47 47 47 56 fill / 9px 11px 9px 12px / 0 stretch;
  color: #0B132B;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-vault-icon-pill,
.btn-vault-help {
  background-color: #1A146C;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-radius: 16px;
  border-width: 9px 10px 9px 10px;
  border-image: url('../assets/ui/vault_indigo_arcade_gloss/hud_pill.png') 65 46 47 46 fill / 9px 10px 9px 10px / 0 stretch;
  color: #FFFFFF;
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  flex-shrink: 0;
}

.btn-vault-icon-pill .hud-icon-sm {
  width: 20px;
  height: 20px;
}

/* Red-Dot Notification Badge (`overflow: visible` parent required) */
.notify-badge {
  position: absolute;
  top: -8px;
  right: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 999px;
  background: #FF3B30;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 5px rgba(15, 12, 36, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  z-index: 30;
  pointer-events: none;
  transform-origin: top right;
  animation: badgePulse 1.5s infinite ease-in-out;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.gate-lock-pill {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #18153B;
  color: #FFD166;
  border: 1.5px solid #FFD166;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.05;
  padding: 1px 5px;
  border-radius: 999px;
  white-space: nowrap;
  z-index: 25;
  pointer-events: none;
}

.booster-tile-btn .gate-lock-pill {
  position: absolute;
  top: -8px;
  right: 0;
  bottom: auto;
}

.is-locked-preview {
  opacity: 0.72;
  filter: saturate(0.55);
}

/* ==========================================================================
 * 2. Pillar 1: Heroic No-Box Title Screen (`0 BOXED_LOGIN_TITLE_SCREEN`)
 * ========================================================================== */

.screen-title {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: url('../assets/art/title_bg.jpg') center center / cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 38px;
}

.screen-title::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(102deg, rgba(255, 250, 252, 0.62) 0%, rgba(255, 250, 252, 0.24) 52%, rgba(24, 21, 59, 0.08) 100%);
  pointer-events: none;
}

.title-top-bar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.title-studio-tag {
  font-family: var(--font-accent);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.4px;
  padding: 2px 10px;
}

.title-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* STRICT NO-BOX RULE: Transparent & borderless containers around <h1>! */
.title-center-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(540px, 780px) minmax(260px, 390px);
  align-items: center;
  justify-content: center;
  gap: 28px;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  background: transparent;
  border: none;
}

.title-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  background: transparent;
  border: none;
}

.game-logo-headline {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(52px, 3.6vw, 66px);
  line-height: 1.04;
  color: #FFFFFF;
  -webkit-text-stroke: 3px #18153B;
  text-shadow: 0 7px 0 #18153B, 0 14px 28px rgba(24, 21, 59, 0.42);
}

.game-logo-subtitle {
  margin: 0;
  font-family: var(--font-accent);
  font-size: clamp(16px, 1.35vw, 21px);
  font-weight: 800;
  color: #FFFFFF;
  background: rgba(24, 21, 59, 0.82);
  padding: 7px 18px;
  border-radius: 999px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
}

/* Region 11 & 12: Real 0-100% Boot Loading Bar (`bar_track.png` + `bar_fill_primary.png`) */
.title-loader-wrap {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.title-loader-track {
  width: 100%;
  height: 28px;
  border-style: solid;
  border-color: transparent;
  border-width: 7px 9px 7px 9px;
  border-image: url('../assets/ui/vault_indigo_arcade_gloss/bar_track.png') 66 68 68 68 fill / 7px 9px 7px 9px / 0 stretch;
  overflow: hidden;
}

.title-loader-fill {
  height: 100%;
  width: 0%;
  border-style: solid;
  border-color: transparent;
  border-width: 5px 7px 5px 7px;
  border-image: url('../assets/ui/vault_indigo_arcade_gloss/bar_fill_primary.png') 78 80 78 81 fill / 5px 7px 5px 7px / 0 stretch;
  transition: width 0.14s ease-out;
}

.title-loader-label {
  font-family: var(--font-accent);
  font-weight: 800;
  font-size: 14px;
  color: #18153B;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

.title-cta-stack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}

/* Heroic Glossy Main Menu Play CTA — NEVER attachSlotBorder here per CỔNG 4! */
.btn-title-play-cta {
  background-color: #3DEB3F;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-radius: 22px;
  border-width: 16px 22px 18px 22px;
  border-image: url('../assets/ui/vault_indigo_arcade_gloss/btn_primary.png') 61 63 64 63 fill / 16px 22px 18px 22px / 0 stretch;
  color: #0E1726;
  text-shadow: 0 1.5px 0 rgba(255, 255, 255, 0.55);
  min-width: 248px;
  min-height: 66px;
  padding: 4px 26px;
  font-family: var(--font-display);
  font-size: clamp(22px, 1.9vw, 28px);
  letter-spacing: 0.5px;
  filter: drop-shadow(0 8px 18px rgba(24, 21, 59, 0.34));
}

.title-cta-stack .btn-9slice-secondary {
  min-height: 54px;
  padding: 4px 18px;
  font-size: 16px;
}

.title-portrait-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.title-portrait-host {
  position: relative;
  width: 340px;
  height: 320px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.title-portrait-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform-origin: 50% 94%;
  filter: drop-shadow(0 14px 22px rgba(24, 21, 59, 0.28));
}

.title-bottom-note {
  position: relative;
  z-index: 2;
  align-self: center;
  font-weight: 700;
  font-size: 13.5px;
  padding: 2px 14px;
}

/* ==========================================================================
 * 3. Pillar 2: Full-Bleed 3D Stage (`100vw×100vh`) + Floating Edge HUD
 * ========================================================================== */

.studio-stage-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: var(--studio-bg);
}

/* Full-Bleed Pastel 3D Stage (`100%` Viewport, Unobstructed Pin Raycasting) */
.viewport-3d-wrap {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  overflow: hidden;
  background: var(--studio-bg);
}

/* Floating Top Command Strip (`pointer-events: none` wrapper, `nowrap` locked!) */
.studio-top-hud {
  position: fixed;
  top: 10px;
  left: 14px;
  right: 14px;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap !important;
  gap: 8px;
  pointer-events: none;
}

.hud-left-cluster,
.hud-right-cluster {
  display: flex;
  align-items: center;
  flex-wrap: nowrap !important;
  gap: 8px;
  pointer-events: auto;
  min-width: 0;
}

.stage-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-accent);
  font-weight: 800;
  font-size: 14px;
  padding: 1px 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

#hud-model-title {
  white-space: nowrap;
}

.mode-timer-chip {
  background: #18153B;
  color: #FFD166;
  font-size: 13px;
  font-weight: 800;
  padding: 1px 8px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.hud-icon-sm {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.hud-icon-pop {
  width: 22px;
  height: 22px;
  margin: -2px 1px -2px -4px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.38));
}

.currency-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 1px 10px 1px 6px;
  min-height: 38px;
  font-family: var(--font-accent);
  font-weight: 800;
  font-size: 15px;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
  overflow: visible !important;
  flex-shrink: 0;
}

.currency-icon-pop {
  width: 30px;
  height: 30px;
  margin: -7px 2px -7px -10px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.42));
}

/* Floating Top-Left Compact Goal Card + Collapsible Mini 360° Orbit Dial */
.hud-corner-left {
  position: fixed;
  top: 64px;
  left: 14px;
  z-index: 20;
  width: 288px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.hud-goal-card,
.orbit-dial-cluster {
  pointer-events: auto;
}

.hud-goal-card {
  padding: 4px 8px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  filter: drop-shadow(0 6px 14px rgba(24, 21, 59, 0.28));
}

.mascot-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mascot-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  object-fit: contain;
  flex-shrink: 0;
}

.goal-head-copy {
  min-width: 0;
  flex: 1;
}

.wing-section-title {
  margin: 0;
  font-family: var(--font-accent);
  font-size: 14px;
  font-weight: 800;
  color: #FFD166;
  line-height: 1.2;
}

.kpi-mini-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 5px;
  font-size: 13px;
  font-weight: 700;
  color: #F8FAFC;
  margin-top: 2px;
}

.kpi-mini-row b {
  color: #3BF6E5;
  font-variant-numeric: tabular-nums;
}

.objective-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.objective-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #F8FAFC;
  background: rgba(15, 12, 42, 0.52);
  padding: 4px 8px;
  border-radius: 9px;
}

.objective-item.is-done {
  background: rgba(22, 163, 74, 0.42);
  color: #BBF7D0;
}

.obj-star-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 2px solid #94A3B8;
  flex-shrink: 0;
}

.objective-item.is-done .obj-star-dot {
  background: #FACC15;
  border-color: #FEF08A;
}

.streak-inline-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.streak-inline-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 800;
  color: #F8FAFC;
}

.streak-charge-bar-track {
  width: 100%;
  height: 18px;
  border-style: solid;
  border-color: transparent;
  border-width: 5px 7px 5px 7px;
  border-image: url('../assets/ui/vault_indigo_arcade_gloss/bar_track.png') 66 68 68 68 fill / 5px 7px 5px 7px / 0 stretch;
  overflow: hidden;
}

.streak-charge-bar-fill {
  height: 100%;
  width: 0%;
  border-style: solid;
  border-color: transparent;
  border-width: 4px 6px 4px 6px;
  border-image: url('../assets/ui/vault_indigo_arcade_gloss/bar_fill_primary.png') 78 80 78 81 fill / 4px 6px 4px 6px / 0 stretch;
  transition: width 0.2s ease-out;
}

/* Sleek Tiny Corner Orbit Dial */
.orbit-dial-cluster {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.orbit-quick-row {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
}

.orbit-quick-row > button {
  flex: 1 1 auto;
  min-width: 0;
  border-width: 6px 6px 6px 6px;
  padding: 1px 4px;
  min-height: 32px;
  font-size: 11.5px;
}

.orbit-presets-drawer {
  padding: 6px;
  filter: drop-shadow(0 8px 16px rgba(15, 12, 36, 0.38));
}

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

/* Region 13: Glossy Arcade Slot Tile (`slot_tile.png`) */
.orbit-preset-btn {
  background-color: #1D4ED8;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-radius: 12px;
  border-width: 8px 8px 8px 8px;
  border-image: url('../assets/ui/vault_indigo_arcade_gloss/slot_tile.png') 36 31 34 35 fill / 8px 8px 8px 8px / 0 stretch;
  color: #FFFFFF;
  text-shadow: 0 1px 2px rgba(10, 12, 32, 0.72);
  font-size: 13px;
  min-height: 34px;
  padding: 1px 4px;
}

/* Center-Viewport Floating Banners */
.hammer-armed-banner {
  position: absolute;
  top: 66px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 22;
  font-family: var(--font-accent);
  font-weight: 800;
  font-size: 14px;
  color: #FFD166;
  padding: 4px 16px;
  pointer-events: none;
}

.turntable-showcase-bar {
  position: absolute;
  top: 66px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 22;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-accent);
  font-weight: 800;
  font-size: 14px;
  padding: 3px 12px;
}

.toast-callout-pill {
  position: absolute;
  bottom: 118px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 45;
  font-family: var(--font-accent);
  font-weight: 800;
  font-size: 14px;
  padding: 6px 18px;
  pointer-events: none;
  color: #FFFFFF;
  text-shadow: 0 1px 3px rgba(10, 12, 32, 0.72);
  white-space: nowrap;
}

.toast-callout-pill.is-blocked-toast {
  outline: 2.5px solid #FF6B6B;
  box-shadow: 0 6px 18px rgba(200, 38, 60, 0.45);
}

.toast-callout-pill.is-toast-pop {
  animation: toastPopBounce 0.24s cubic-bezier(0.22, 1.35, 0.36, 1);
}

@keyframes toastPopBounce {
  0% { transform: translateX(-50%) scale(0.86); opacity: 0.4; }
  100% { transform: translateX(-50%) scale(1); opacity: 1; }
}

.preview-color-chip.is-queue-done {
  background: linear-gradient(180deg, #34D399, #059669);
  color: #FFFFFF;
  font-weight: 900;
}

/* ==========================================================================
 * 4. Floating Slim Collector Dock + Round 5 Square Booster Tiles (`74×76px`)
 * ========================================================================== */

.hud-bottom-bar {
  position: fixed;
  bottom: 10px;
  left: 16px;
  right: 16px;
  z-index: 22;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
  pointer-events: none;
}

.collector-dock-bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 10px;
  filter: drop-shadow(0 6px 14px rgba(24, 21, 59, 0.30));
}

.boxes-row-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.active-boxes-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.collector-box-card {
  width: 94px;
  height: 64px;
  border-radius: 14px;
  border: 3px solid #18153B;
  padding: 4px 7px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 3px 0 #18153B;
  transition: transform 0.16s ease;
}

.collector-box-card.is-empty-box {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  border-style: dashed;
}

.collector-box-card.is-slot-pop,
.buffer-hole-slot.is-slot-pop {
  animation: slotArrivePop 0.22s cubic-bezier(0.22, 1.35, 0.36, 1);
}

@keyframes slotArrivePop {
  0% { transform: scale(1); }
  45% { transform: scale(1.10); }
  100% { transform: scale(1); }
}

.box-top-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-accent);
  font-weight: 800;
  font-size: 13px;
  color: #14121F;
  background: rgba(255, 255, 255, 0.90);
  border-radius: 999px;
  padding: 0 7px;
}

.box-holes-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.box-pin-socket {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(20, 18, 31, 0.25);
  border: 2px solid rgba(20, 18, 31, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #FFFFFF;
}

.box-pin-socket.is-filled {
  background: #18153B;
  border-color: #FFFFFF;
}

.next-preview-box {
  background: rgba(15, 12, 42, 0.55);
  border: 1.5px dashed rgba(255, 255, 255, 0.42);
  border-radius: 12px;
  padding: 4px 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.dock-mini-label {
  font-size: 13px;
  font-weight: 800;
  color: #F8FAFC;
  white-space: nowrap;
}

.next-preview-chips {
  display: flex;
  align-items: center;
  gap: 5px;
}

.preview-color-chip {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 2px solid #18153B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-accent);
  font-weight: 800;
  font-size: 13px;
  color: #14121F;
  background: #FFFFFF;
}

.buffer-tray-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.buffer-tray-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reserve-pill {
  font-size: 13px;
  font-weight: 800;
  background: #3BF6E5;
  color: #120E2E;
  border-radius: 999px;
  padding: 1px 8px;
}

.buffer-holes-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(12, 10, 34, 0.62);
  border: 2px solid rgba(255, 255, 255, 0.30);
  border-radius: 999px;
  padding: 4px 10px;
}

.buffer-holes-strip.is-near-jam {
  border-color: #FF5A5F;
  background: rgba(153, 27, 27, 0.65);
  animation: trayWarnPulse 0.8s infinite ease-in-out;
}

@keyframes trayWarnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 90, 95, 0.40); }
  50% { box-shadow: 0 0 0 5px rgba(255, 90, 95, 0.25); }
}

.buffer-hole-slot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 2px solid rgba(255, 255, 255, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-accent);
  font-weight: 800;
  font-size: 13px;
  color: #14121F;
}

/* Round 5 Golden Ratio Booster Tiles (`74×76px` square glossy `slot_tile.png`, `44px` icon = 58%) */
.booster-tiles-dock {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.booster-tile-btn {
  width: 74px;
  height: 76px;
  background-color: #1D4ED8;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-radius: 16px;
  border-width: 10px 9px 10px 9px;
  border-image: url('../assets/ui/vault_indigo_arcade_gloss/slot_tile.png') 36 31 34 35 fill / 10px 9px 10px 9px / 0 stretch;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible !important;
  filter: drop-shadow(0 5px 10px rgba(24, 21, 59, 0.34));
}

.booster-tile-btn.is-armed {
  border-image: url('../assets/ui/vault_indigo_arcade_gloss/card_legendary.png') 52 53 52 54 fill / 10px 10px 10px 10px / 0 stretch;
}

.tool-icon-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.tool-hotkey-pill {
  position: absolute;
  top: -10px;
  left: -5px;
  min-width: 20px;
  height: 20px;
  background: #18153B;
  color: #FFD166;
  border: 2px solid #FFFFFF;
  font-size: 12px;
  font-weight: 800;
  padding: 0 4px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 12;
  pointer-events: none;
}

.tool-qty-pill {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #18153B;
  color: #3BF6E5;
  border: 2px solid #FFFFFF;
  border-radius: 999px;
  padding: 1px 5px;
  font-family: var(--font-accent);
  font-weight: 800;
  font-size: 11px;
  line-height: 1.1;
  z-index: 12;
  pointer-events: none;
  white-space: nowrap;
}

/* ==========================================================================
 * 5. Celebratory Streak Banner & Overlay Canvas (Idle-Hidden)
 * ========================================================================== */

.fly-vfx-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 95;
  display: none;
}

.streak-cutin-banner {
  position: fixed;
  top: 66px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  padding: 6px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: none;
  filter: drop-shadow(0 8px 18px rgba(24, 21, 59, 0.45));
}

.streak-cutin-mascot {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.streak-cutin-title {
  font-family: var(--font-display);
  font-size: 19px;
  color: #FFD166;
}

.streak-cutin-sub {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
}

/* ==========================================================================
 * 6. Modals (`indigo_arcade_gloss` Royal Velvet + Anti-SaaS `60/25/15`)
 * ========================================================================== */

.modal-backdrop,
.guide-toast-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(14, 12, 34, 0.76);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-card {
  width: min(960px, 94vw);
  max-height: 89vh;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  contain: layout style;
  backface-visibility: hidden;
  transform: translateZ(0);
}

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

.modal-header-row,
.sm-top-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.modal-ribbon-wrap {
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
}

.modal-headline {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(19px, 1.85vw, 25px);
  color: #141229;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.modal-subcopy {
  font-size: 13px;
  font-weight: 700;
  color: #DBEAFE;
  margin-top: 3px;
}

.modal-header-btns,
.sm-season-tabs {
  display: flex;
  align-items: center;
  gap: 7px;
}

.btn-close-img {
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  flex-shrink: 0;
}

.btn-close-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-scroll-body {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 4px 4px 2px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Regions 14–17: Rarity Cards (`card_common`, `card_rare`, `card_epic`, `card_legendary`) */
.vf-card-portrait,
.stage-tile-card,
.shop-pack-card {
  position: relative;
  background-color: #160F60;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-radius: 16px;
  border-width: 12px 12px 12px 12px;
  border-image: url('../assets/ui/vault_indigo_arcade_gloss/card_common.png') 49 49 50 50 fill / 12px 12px 12px 12px / 0 stretch;
  color: #FFFFFF;
  padding: 6px 6px 4px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  text-align: center;
  min-width: 0;
}

.vf-card-rare,
.shop-card-rare,
.stage-tile-card.is-cleared,
.vf-card-portrait.is-done-state {
  border-width: 12px 18px 12px 12px;
  border-image: url('../assets/ui/vault_indigo_arcade_gloss/card_rare.png') 52 115 52 51 fill / 12px 18px 12px 12px / 0 stretch;
}

.vf-card-epic,
.shop-card-epic {
  border-width: 12px 12px 12px 12px;
  border-image: url('../assets/ui/vault_indigo_arcade_gloss/card_epic.png') 50 50 50 50 fill / 12px 12px 12px 12px / 0 stretch;
}

.vf-card-legendary,
.vf-medal-tile,
.shop-card-legendary {
  background-color: #160F60;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-radius: 16px;
  border-width: 12px 12px 12px 12px;
  border-image: url('../assets/ui/vault_indigo_arcade_gloss/card_legendary.png') 52 53 52 54 fill / 12px 12px 12px 12px / 0 stretch;
  color: #FFFFFF;
  padding: 6px 6px 4px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  text-align: center;
  min-width: 0;
}

/* Shop Modal (`60/25/15` Visual-First Storefront) */
.shop-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

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

.shop-cards-grid > *,
.sm-cards-grid > * {
  min-width: 0;
  max-width: 100%;
}

.shop-ribbon-badge {
  position: absolute;
  top: -16px;
  left: 8px;
  background: #18153B;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
  font-family: var(--font-accent);
  font-size: 11px;
  font-weight: 800;
  padding: 1px 9px;
  border-radius: 999px;
  z-index: 6;
}

.shop-ribbon-badge.badge-best { background: #D97706; color: #FFFFFF; }
.shop-ribbon-badge.badge-starter { background: #059669; color: #FFFFFF; }
.shop-ribbon-badge.badge-popular { background: #2563EB; color: #FFFFFF; }
.shop-ribbon-badge.badge-vip { background: #7C3AED; color: #FFFFFF; }

.shop-art-wrap,
.sm-art-stage {
  width: 100%;
  height: 106px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 52%, rgba(59, 246, 229, 0.16) 0%, rgba(22, 15, 96, 0) 72%);
  border-radius: 10px;
}

.shop-art-wrap {
  height: 94px;
}

.shop-art-img,
.sm-art-hero {
  max-width: 92%;
  max-height: 102px;
  object-fit: contain;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.38));
}

.shop-art-img {
  max-height: 90px;
}

.shop-pack-title,
.sm-title {
  font-family: var(--font-accent);
  font-weight: 800;
  font-size: 14px;
  color: #FFFFFF;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-chips-row,
.sm-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  background: rgba(10, 8, 28, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 3px 10px;
  font-family: var(--font-accent);
  font-weight: 800;
  font-size: 13px;
  color: #FFD166;
}

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

.shop-buy-btn,
.sm-act-btn {
  width: 100%;
}

.combo-hub-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
  padding: 4px 8px;
}

.combo-hub-strip > * {
  min-width: 0;
  max-width: 100%;
}

.giftcode-input-group {
  display: flex;
  gap: 6px;
}

.giftcode-input,
.sm-seed-inp {
  flex: 1;
  min-width: 0;
  background: rgba(12, 10, 34, 0.85);
  color: #FFFFFF;
  border: 2px solid #3BF6E5;
  border-radius: 10px;
  padding: 6px 8px;
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 13px;
}

.sm-seed-inp {
  width: 112px;
  flex: none;
  text-transform: uppercase;
  text-align: center;
}

/* Grids for Gallery, Trophy, Daily, Quests, Themes */
.cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

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

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

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

.sm-subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 3px 8px;
}

.sm-subtabs,
.sm-pager,
.sm-seed-ctrl {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sm-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(10, 8, 28, 0.55);
  border: 1.5px solid #FFD166;
  border-radius: 999px;
  padding: 3px 10px;
  font-family: var(--font-accent);
  font-weight: 800;
  font-size: 13px;
  color: #FFD166;
}

.daily-hero-pane {
  text-align: center;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.daily-seed-heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  color: #FFD166;
}

/* ==========================================================================
 * 7. Pillar 6: Icon Settings & 3-Star Sunburst Victory Modal
 * ========================================================================== */

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 8px;
}

.settings-lbl-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13.5px;
  color: #FFFFFF;
  min-width: 0;
}

.settings-ctrl-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.settings-slider {
  width: 138px;
  accent-color: #3BF6E5;
  cursor: pointer;
}

.settings-toggle-btn {
  min-width: 62px;
  min-height: 34px;
  border-style: solid;
  border-color: transparent;
  border-width: 8px 10px 8px 10px;
  border-image: url('../assets/ui/vault_indigo_arcade_gloss/btn_primary.png') 61 63 64 63 fill / 8px 10px 8px 10px / 0 stretch;
  color: #0E1726;
  font-weight: 800;
  font-size: 13px;
  padding: 1px 8px;
}

.settings-toggle-btn.is-off {
  border-image: url('../assets/ui/vault_indigo_arcade_gloss/btn_disabled.png') 68 69 68 69 fill / 8px 10px 8px 10px / 0 stretch;
  color: #E2E8F0;
}

.lang-select-dropdown {
  border: 2px solid #3BF6E5;
  border-radius: 10px;
  padding: 6px 10px;
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 13.5px;
  background: #141038;
  color: #FFFFFF;
  cursor: pointer;
}

.settings-footer-btns {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.settings-save-note {
  font-size: 12.5px;
  color: #CBD5E1;
  font-weight: 600;
  text-align: center;
}

/* Victory 3-Star Sunburst Showcase */
.victory-modal-card {
  position: relative;
}

.victory-sunburst-bg {
  position: absolute;
  top: -70px;
  left: 50%;
  width: 340px;
  height: 340px;
  margin-left: -170px;
  background: url('../js/ui_motion/textures/tex_sunburst_rays.png') center / contain no-repeat;
  opacity: 0.28;
  pointer-events: none;
  animation: victorySpin 18s linear infinite;
}

@keyframes victorySpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.victory-banner-anchor {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 84px;
}

.victory-stars-host:empty {
  display: none;
}

.victory-stars-host {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 4px 0;
}

.victory-star-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
}

.victory-star-img.is-dim {
  opacity: 0.28;
  filter: grayscale(1);
}

.victory-cta-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 10px;
  margin-top: 6px;
}

.victory-next-cta {
  min-height: 52px;
  font-family: var(--font-display);
  font-size: 18px;
}

/* ==========================================================================
 * 8. Pillar 3: Visual Spotlight Ring + Pointer Hand (`tut-hand`) & 3-Icon Flow
 * ========================================================================== */

.tut-spotlight {
  position: fixed;
  width: 96px;
  height: 96px;
  margin-left: -48px;
  margin-top: -48px;
  border-radius: 50%;
  border: 4px solid #3BF6E5;
  box-shadow: 0 0 0 4px rgba(24, 21, 59, 0.72), 0 0 24px rgba(59, 246, 229, 0.85);
  z-index: 82;
  pointer-events: none !important;
  animation: spotlightPulse 1.1s infinite ease-in-out;
}

@keyframes spotlightPulse {
  0%, 100% { transform: scale(0.94); opacity: 0.95; }
  50% { transform: scale(1.10); opacity: 1; }
}

.tut-hand {
  position: fixed;
  width: 56px;
  height: 56px;
  z-index: 83;
  pointer-events: none !important;
  filter: drop-shadow(0 6px 10px rgba(12, 10, 34, 0.65));
  animation: tutHandTap 0.85s infinite ease-in-out;
}

@keyframes tutHandTap {
  0%, 100% { transform: translate(6px, 8px) scale(1); }
  50% { transform: translate(-4px, -4px) scale(0.90); }
}

.tut-callout-tag {
  position: fixed;
  transform: translate(-50%, -100%);
  z-index: 84;
  background: #18153B;
  color: #FFD166;
  border: 2.5px solid #3BF6E5;
  border-radius: 999px;
  padding: 5px 14px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.4px;
  white-space: nowrap;
  pointer-events: none !important;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
}

.ftue-overlay {
  position: fixed;
  bottom: 98px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  width: min(500px, 90vw);
  pointer-events: auto;
}

.ftue-coach-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 8px;
}

.ftue-main-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ftue-hero-icon {
  width: 54px;
  height: 54px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
}

.ftue-top-row,
.guide-header-row,
.ftue-actions-row,
.guide-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ftue-step-pill {
  background: #3BF6E5;
  color: #120E2E;
  border-radius: 999px;
  padding: 2px 10px;
  font-family: var(--font-accent);
  font-weight: 800;
  font-size: 13px;
}

.ftue-body-text {
  margin: 0;
  font-weight: 700;
  font-size: 13.5px;
  color: #FFFFFF;
}

/* 3-Icon Visual Flow Coach Card (`[Icon 1] -> [Icon 2] -> [Icon 3]`) */
.guide-coach-card {
  width: min(560px, 92vw);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 10px;
}

.guide-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  color: #FFD166;
  flex: 1;
}

.guide-flow-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

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

.guide-flow-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.guide-flow-lbl {
  font-family: var(--font-accent);
  font-weight: 800;
  font-size: 13px;
  color: #FFFFFF;
  line-height: 1.2;
}

.guide-flow-arrow {
  font-family: var(--font-display);
  font-size: 20px;
  color: #3BF6E5;
  flex-shrink: 0;
}

/* Chest Reveal */
.chest-stage-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 8px;
}

.chest-hero-img {
  width: 124px;
  height: 124px;
  object-fit: contain;
  cursor: pointer;
}

.chest-hero-img.is-jiggling {
  animation: chestJiggle 0.24s infinite alternate ease-in-out;
}

@keyframes chestJiggle {
  from { transform: rotate(-6deg) scale(1.04, 0.96); }
  to { transform: rotate(6deg) scale(0.96, 1.05); }
}

.chest-reward-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.chest-reward-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.chest-reward-qty {
  font-family: var(--font-display);
  font-size: 17px;
  color: #FFD166;
}

.chest-reward-lbl {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
}

/* Preview-Only `[DEV F2]` Debug Pill & Panel (NEVER mounted on `__MS_RELEASE__ === true`) */
.dev-f2-pill {
  position: fixed;
  bottom: 8px;
  left: 8px;
  z-index: 160;
  background: #18153B;
  color: #FFD166;
  border: 2px solid #FFD166;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 800;
}

.debug-panel {
  position: fixed;
  bottom: 42px;
  left: 8px;
  z-index: 160;
  width: 280px;
  background: rgba(20, 18, 46, 0.96);
  color: #FFFFFF;
  border: 2px solid #FFD166;
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.debug-mini-btn {
  background: #312E81;
  color: #FFFFFF;
  border: 1px solid #818CF8;
  border-radius: 8px;
  padding: 5px 6px;
  font-size: 12px;
}

/* ==========================================================================
 * 9. Responsive 1280×720 Compact Lock (Lesson #14 — Zero Wrap / Zero Overlap!)
 * ========================================================================== */

@media (max-width: 1520px) {
  .studio-top-hud {
    top: 8px;
    left: 10px;
    right: 10px;
    gap: 5px;
  }
  .hud-left-cluster,
  .hud-right-cluster {
    gap: 5px;
  }
  .stage-badge-pill {
    font-size: 13px;
    border-width: 9px 14px 9px 14px;
    padding: 0 4px;
  }
  .studio-top-hud .btn-vault-pill {
    border-width: 7px 8px 7px 8px;
    padding: 1px 5px;
    min-height: 34px;
    font-size: 13px;
    gap: 4px;
  }
  .studio-top-hud .btn-9slice-primary,
  .studio-top-hud .btn-9slice-danger {
    border-width: 7px 9px 7px 9px;
    padding: 1px 6px;
    min-height: 34px;
    font-size: 13px;
  }
  .studio-top-hud .gate-lock-pill {
    font-size: 9.5px;
    padding: 1px 4px;
  }
  .hud-icon-pop {
    width: 20px;
    height: 20px;
    margin: -1px 1px -1px -3px;
  }
  .currency-pill {
    border-width: 7px 8px 7px 8px;
    padding: 1px 6px 1px 4px;
    min-height: 34px;
    font-size: 13.5px;
  }
  .currency-icon-pop {
    width: 24px;
    height: 24px;
    margin: -4px 1px -4px -6px;
  }
  .hud-corner-left {
    top: 52px;
    left: 10px;
    width: 282px;
  }
  .hud-bottom-bar {
    bottom: 8px;
    left: 10px;
    right: 10px;
    gap: 10px;
  }
  .collector-box-card {
    width: 82px;
    height: 58px;
  }
  .booster-tile-btn {
    width: 68px;
    height: 70px;
  }
  .tool-icon-img {
    width: 40px;
    height: 40px;
  }
  .tool-qty-pill {
    bottom: 0;
    right: 0;
    padding: 1px 4px;
    font-size: 10.5px;
  }
}
