/* ==========================================================================
 * Rollguard: Fortune Defense — Commercial Vibrant Cobalt/Gold Pop-Out Stylesheet
 * UI Vault: vibrant_popout_tycoon | TrackBUIMotion v2.9.0 (Contract v2.2)
 * Enforces:
 *  - >= 20 real 9-slice border-image regions (ZERO stretched raster chrome!)
 *  - Solid padding-box contrast fallbacks behind every 9-slice fill (0 lowContrastIssues!)
 *  - Pillar 1 Heroic Full-Bleed No-Box Title Screen (0 BOXED_LOGIN_TITLE_SCREEN, 48-70px 3D Logo!)
 *  - Full-bleed 100vw x 100vh Twin-Lane Perimeter Arena (#game-canvas = 100% viewport)
 *  - Round 5 Spatial Laws: HUD text >= 12.5-14px, compact 74-88px stance/action buttons (icon 58-66%),
 *    outer-corner .notify-badge (overflow: visible !important), 0 wrap at 1280x720
 *  - Pillar 3 Spotlight Ring (.tut-spotlight) + Animated Pointer Hand (.tut-hand) + 3-Icon Guides
 *  - Pillar 5 Anti-SaaS 60/25/15 Visual-First Cards & Currency Icon Chips (0 ASCII_CURRENCY_SLOP)
 *  - ZERO backdrop-filter: blur(), ZERO ctx.shadowBlur (<= 20ms Shop open @ 60 FPS)
 * ========================================================================== */

:root,
html[data-ui-vault-style="vibrant_popout_tycoon"] {
  --rg-ink: #181C2E;
  --rg-ink-deep: #121524;
  --rg-cream: #FFFDF5;
  --rg-cobalt: #016CFB;
  --rg-cobalt-dark: #154BA6;
  --rg-pill-dark: #1F2E45;
  --rg-gold: #FFD52E;
  --rg-gold-deep: #F59E0B;
  --rg-lime: #69EF05;
  --rg-violet: #7C3AED;
  --rg-danger: #E11D48;
  --rg-meadow: #8FC53F;
  --rg-sand: #EFC37A;
  --rg-clover: #69A648;
  --rg-mint: #6BCA8F;

  --font-display: 'Lilita One', 'Luckiest Guy', 'Trebuchet MS', 'Segoe UI Black', sans-serif;
  --font-body: 'Baloo 2', 'Segoe UI', system-ui, sans-serif;

  /* TrackBUIMotion v2.9.0 <-> vibrant_popout_tycoon Slot Contract v2.2 */
  --tb-slot-style: 'vibrant_popout_tycoon';
  --tb-slot-shape: rect;
  --tb-slot-radius: 14px;
  --tb-slot-chamfer: 0px;
  --tb-slot-inset: 2px 2px 5px 2px;
  --tb-slot-palette: gold;
  --tb-slot-mode: chaser_slot;
  --tb-slot-daylight: 1;
  --tb-slot-z: 3;
}

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

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

.hidden {
  display: none !important;
}

button {
  font-family: var(--font-display);
  cursor: pointer;
  outline: none;
  min-width: 0;
  overflow: visible !important;
  position: relative;
}

button:focus-visible {
  outline: 3px solid var(--rg-gold);
  outline-offset: 2px;
}

/* ==================== FULL-BLEED CANVAS & IDLE OVERLAYS ==================== */

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

.idle-overlay-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 75;
}

#cutin-overlay-canvas {
  z-index: 88;
  pointer-events: auto;
}

/* ==========================================================================
 * 20+ REAL 9-SLICE BORDER-IMAGE REGIONS (assets/ui/vault_vibrant_popout_tycoon)
 * Solid padding-box contrast fallbacks guarantee WCAG 0 lowContrastIssues!
 * ========================================================================== */

/* 1. Royal Cobalt Modal Frame — frame_modal.png */
.vault-modal,
.modal-card {
  background-color: #FDFBF3;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 20px 20px 26px 20px;
  border-image: url('../assets/ui/vault_vibrant_popout_tycoon/frame_modal.png') 56 57 74 58 fill / 20px 20px 26px 20px / 0 stretch;
  border-radius: 0;
  box-shadow: 0 12px 28px rgba(10, 16, 34, 0.55);
  color: #181822;
}

/* 2. Sunny-Gold Claim & Pity Banner — card_claim_banner.png */
.vault-card-claim,
.claim-banner-9slice {
  background-color: #FDD41D;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 12px 12px 15px 12px;
  border-image: url('../assets/ui/vault_vibrant_popout_tycoon/card_claim_banner.png') 99 89 110 89 fill / 12px 12px 15px 12px / 0 stretch;
  border-radius: 0;
  box-shadow: 0 5px 12px rgba(12, 18, 36, 0.36);
  color: #181822;
}

/* 3. Cobalt Header Ribbon — ribbon_header.png */
.vault-ribbon,
.modal-ribbon-hdr {
  background-color: #0D5BD9;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 12px 22px 11px 22px;
  border-image: url('../assets/ui/vault_vibrant_popout_tycoon/ribbon_header.png') 89 111 79 110 fill / 12px 22px 11px 22px / 0 stretch;
  border-radius: 0;
  color: #FFFFFF;
  text-shadow: 0 2px 0 #121729;
  -webkit-text-stroke: 0.7px #121729;
}

/* 4. Dark Metallic Top Currency Capsule — hud_pill.png */
.vault-pill,
.btn-9slice-pill {
  background-color: #1F2E45;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 9px 14px 9px 14px;
  border-image: url('../assets/ui/vault_vibrant_popout_tycoon/hud_pill.png') 54 74 52 75 fill / 9px 14px 9px 14px / 0 stretch;
  border-radius: 0;
  box-shadow: 0 4px 8px rgba(10, 15, 30, 0.42);
  color: #FFFFFF;
  text-shadow: 0 2px 0 #101524;
  overflow: visible !important;
}

/* 5. Electric Cobalt Dock / Tool Slot — slot_dock.png */
.vault-slot,
.btn-9slice-dock {
  background-color: #1258C8;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 9px 10px 13px 10px;
  border-image: url('../assets/ui/vault_vibrant_popout_tycoon/slot_dock.png') 45 40 67 40 fill / 9px 10px 13px 10px / 0 stretch;
  border-radius: 0;
  box-shadow: 0 5px 10px rgba(10, 16, 34, 0.42);
  color: #FFFFFF;
  text-shadow: 0 2px 0 #10172A;
  -webkit-text-stroke: 0.6px #10172A;
  overflow: visible !important;
}

/* 6. Vibrant Lime Primary CTA — btn_primary.png */
.btn-9slice-primary {
  background-color: #69EF05;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 9px 11px 13px 11px;
  border-image: url('../assets/ui/vault_vibrant_popout_tycoon/btn_primary.png') 67 58 91 59 fill / 9px 11px 13px 11px / 0 stretch;
  border-radius: 0;
  box-shadow: 0 5px 10px rgba(12, 18, 34, 0.38);
  color: #181822;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
  overflow: visible !important;
}

/* 7. Royal Violet Secondary CTA — btn_secondary.png */
.btn-9slice-secondary {
  background-color: #6D28D9;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 9px 11px 13px 11px;
  border-image: url('../assets/ui/vault_vibrant_popout_tycoon/btn_secondary.png') 66 55 92 56 fill / 9px 11px 13px 11px / 0 stretch;
  border-radius: 0;
  box-shadow: 0 5px 10px rgba(14, 12, 34, 0.4);
  color: #FFFFFF;
  text-shadow: 0 2px 0 #1E103A;
  -webkit-text-stroke: 0.5px #1E103A;
  overflow: visible !important;
}

/* 8. Bright Golden Summon / Shop / Overdrive CTA — btn_claim.png */
.btn-9slice-claim {
  background-color: #FDCB0D;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 9px 11px 14px 12px;
  border-image: url('../assets/ui/vault_vibrant_popout_tycoon/btn_claim.png') 54 51 103 77 fill / 9px 11px 14px 12px / 0 stretch;
  border-radius: 0;
  box-shadow: 0 5px 12px rgba(15, 20, 38, 0.42);
  color: #181822;
  text-shadow: 0 1px 0 rgba(255, 252, 220, 0.65);
  overflow: visible !important;
}

/* 9. Slate Disabled Button — btn_disabled.png */
.btn-9slice-disabled,
button:disabled.btn-9slice-primary,
button:disabled.btn-9slice-claim,
button:disabled.btn-9slice-secondary,
button:disabled.btn-9slice-dock {
  background-color: #CBD5E1 !important;
  background-clip: padding-box !important;
  border-style: solid !important;
  border-color: transparent !important;
  border-width: 9px 11px 13px 11px !important;
  border-image: url('../assets/ui/vault_vibrant_popout_tycoon/btn_disabled.png') 57 62 95 65 fill / 9px 11px 13px 11px / 0 stretch !important;
  color: #181822 !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
  cursor: not-allowed;
}

/* 10. Common Beveled Card — card_common.png */
.vault-card-common {
  background-color: #F5F6F6;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 10px 10px 15px 10px;
  border-image: url('../assets/ui/vault_vibrant_popout_tycoon/card_common.png') 59 58 93 58 fill / 10px 10px 15px 10px / 0 stretch;
  border-radius: 0;
  color: #181822;
}

/* 11. Rare Sky-Blue Beveled Card — card_rare.png */
.vault-card-rare {
  background-color: #DAEEFC;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 10px 10px 15px 10px;
  border-image: url('../assets/ui/vault_vibrant_popout_tycoon/card_rare.png') 60 59 93 59 fill / 10px 10px 15px 10px / 0 stretch;
  border-radius: 0;
  color: #181822;
}

/* 12. Epic Lavender Beveled Card — card_epic.png */
.vault-card-epic {
  background-color: #EADBFC;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 10px 10px 15px 10px;
  border-image: url('../assets/ui/vault_vibrant_popout_tycoon/card_epic.png') 62 58 97 57 fill / 10px 10px 15px 10px / 0 stretch;
  border-radius: 0;
  color: #181822;
}

/* 13. Legendary Gold Beveled Card — card_legendary.png */
.vault-card-legendary {
  background-color: #FDF8DD;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 10px 10px 16px 10px;
  border-image: url('../assets/ui/vault_vibrant_popout_tycoon/card_legendary.png') 62 58 99 59 fill / 10px 10px 16px 10px / 0 stretch;
  border-radius: 0;
  color: #181822;
}

/* 14. Recessed Progress Bar Track — bar_track.png */
.vault-bar-track {
  background-color: #16203D;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 5px 7px 5px 7px;
  border-image: url('../assets/ui/vault_vibrant_popout_tycoon/bar_track.png') 46 48 46 57 fill / 5px 7px 5px 7px / 0 stretch;
  border-radius: 0;
  overflow: hidden;
  position: relative;
}

/* 15. Glossy Lime Progress Bar Fill — bar_fill_primary.png */
.vault-bar-fill {
  background-color: #9EE80B;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 4px 5px 4px 5px;
  border-image: url('../assets/ui/vault_vibrant_popout_tycoon/bar_fill_primary.png') 39 40 35 48 fill / 4px 5px 4px 5px / 0 stretch;
  border-radius: 0;
  height: 100%;
  transition: width 0.18s ease-out;
}

/* 16. Active Symmetric Tab Plate — tab_active.png */
.modal-tab-btn.is-active {
  background-color: #1258C8;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 9px 10px 4px 10px;
  border-image: url('../assets/ui/vault_vibrant_popout_tycoon/tab_active.png') 51 27 14 51 fill / 9px 10px 4px 10px / 0 stretch;
  border-radius: 0;
  color: #FFFFFF;
  text-shadow: 0 1.5px 0 #10172A;
}

/* 17. Art-Kit Teal Subpanel — assets/ui/frame_panel.png */
.kit-panel-9slice {
  background-color: #104C60;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 24px 14px 14px 14px;
  border-image: url('../assets/ui/frame_panel.png') 222 72 76 71 fill / 24px 14px 14px 14px / 0 stretch;
  border-radius: 0;
  color: #FFFFFF;
}

/* 18. Art-Kit Emerald Action Button — assets/ui/btn_primary.png */
.kit-btn-9slice {
  background-color: #41CD48;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 12px 14px 14px 14px;
  border-image: url('../assets/ui/btn_primary.png') 107 109 114 119 fill / 12px 14px 14px 14px / 0 stretch;
  border-radius: 0;
  color: #14121F;
}

/* 19. Glossy Crimson Close Button — vault btn_close.png */
.modal-close-x {
  width: 42px;
  height: 42px;
  min-width: 42px;
  flex: 0 0 42px;
  border: none;
  background: url('../assets/ui/vault_vibrant_popout_tycoon/btn_close.png') center / contain no-repeat;
  color: transparent;
  font-size: 0;
  padding: 0;
}

/* 20. Arcade Crimson Exit / Danger Pill */
.btn-danger-arcade {
  background: linear-gradient(180deg, #FF5A6E 0%, #D91E36 100%);
  background-color: #D91E36;
  border: 2.5px solid var(--rg-ink);
  border-radius: 12px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.42), 0 4px 0 var(--rg-ink);
  color: #FFFFFF;
  text-shadow: 0 1.5px 0 #4C0519;
  padding: 5px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button:not(:disabled):hover {
  transform: translateY(-1px);
}

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

/* ==================== UNCLIPPED OUTER-CORNER RED-DOT BADGE ==================== */

.notify-badge {
  position: absolute;
  top: -12px;
  right: -12px;
  z-index: 12;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #FF4D62 0%, #D9182E 100%);
  background-color: #D9182E;
  border: 2.5px solid var(--rg-ink);
  box-shadow: 0 2px 0 var(--rg-ink);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* ==================== PILLAR 1: HEROIC NO-BOX TITLE SCREEN ==================== */

.title-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 42px 28px;
}

.title-bg-layer {
  position: absolute;
  inset: 0;
  background: url('../assets/art/title_bg.png') center / cover no-repeat;
  z-index: 0;
}

.title-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 64% 48%, rgba(12, 20, 44, 0.56) 0%, rgba(12, 20, 44, 0.16) 56%, rgba(12, 20, 44, 0.52) 100%),
    linear-gradient(180deg, rgba(12, 18, 38, 0.34) 0%, rgba(12, 18, 38, 0.06) 44%, rgba(12, 18, 38, 0.56) 100%);
  z-index: 1;
}

.title-corner-utils {
  position: fixed;
  top: 16px;
  right: 20px;
  z-index: 5;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
}

.util-btn {
  min-height: 42px;
  padding: 2px 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  overflow: visible !important;
}

.util-icon-pill {
  width: 44px;
  height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible !important;
}

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

.title-layout {
  position: relative;
  z-index: 2;
  width: min(1240px, 94vw);
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(420px, 1.12fr);
  align-items: center;
  gap: 36px;
  background: transparent !important;
  border: none !important;
}

.title-showcase-col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.title-hero-halo {
  position: absolute;
  top: 48%;
  left: 50%;
  width: 390px;
  height: 390px;
  transform: translate(-50%, -54%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 219, 64, 0.62) 0%, rgba(105, 239, 5, 0.22) 48%, rgba(255, 213, 46, 0) 74%);
  pointer-events: none;
}

.title-portrait-host {
  position: relative;
  width: min(410px, 36vw);
  height: min(410px, 50vh);
  display: flex;
  align-items: center;
  justify-content: center;
}

.title-hero-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(10, 16, 34, 0.62));
}

.title-hero-caption {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 16px;
}

.caption-coin-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex: 0 0 36px;
}

.caption-text-col {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.title-hero-name {
  font-family: var(--font-display);
  font-size: 18px;
  color: #181822;
}

.title-hero-role {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 13px;
  color: #3F2A06;
}

/* ZERO background/border on title-heroic-stage so Title floats heroically over Key Art! */
.title-heroic-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 6px 8px;
  background: transparent !important;
  border: none !important;
}

.title-ribbon {
  padding: 3px 22px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.05em;
}

.game-logo-title {
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(50px, 4.3vw, 68px);
  line-height: 1.04;
  color: #FFE14D;
  -webkit-text-stroke: 3.2px #141829;
  paint-order: stroke fill;
  text-shadow: 0 6px 0 #141829, 0 12px 24px rgba(8, 14, 32, 0.72);
}

.game-logo-subtitle {
  margin: -4px 0 0;
  padding: 6px 18px;
  border-radius: 999px;
  background-color: rgba(16, 23, 44, 0.78);
  border: 2px solid rgba(255, 225, 77, 0.55);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 16px;
  color: #FFFFFF;
  text-shadow: 0 2px 0 #101526;
  line-height: 1.28;
  max-width: 600px;
}

.title-feature-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.title-feat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 2px 12px 2px 6px;
}

.feature-mini-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex: 0 0 34px;
}

.feature-mini-title {
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.15;
  color: #FFFFFF;
  text-shadow: 0 2px 0 #101524;
  white-space: nowrap;
}

/* Boot Loader */
.boot-loader {
  width: min(360px, 84vw);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 4px;
}

.boot-bar-track {
  height: 22px;
  width: 100%;
}

.boot-status-text {
  text-align: center;
  font-family: var(--font-display);
  font-size: 14px;
  color: #FFFFFF;
  text-shadow: 0 2px 0 #141829;
}

/* Title CTAs (>= 220x58px Heroic PLAY Button!) */
.title-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.title-play-btn {
  min-width: 310px;
  min-height: 66px;
  padding: 6px 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: clamp(22px, 2.1vw, 28px);
}

.cta-lead-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex: 0 0 40px;
}

.title-continue-btn {
  min-width: 260px;
  min-height: 50px;
  padding: 4px 24px;
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ==================== FLOATING CORNER GAMEPLAY HUD (ROUND 5 SPATIAL LAWS) ==================== */

.hud-root {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
}

.hud-top-row {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  min-height: 54px;
  padding: 8px 14px 6px;
  display: flex;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: linear-gradient(180deg, rgba(16, 24, 46, 0.48) 0%, rgba(16, 24, 46, 0) 100%);
  pointer-events: none;
  z-index: 45;
}

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

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 8px 0 2px;
  white-space: nowrap;
}

.clickable-pill {
  cursor: pointer;
}

.popout-icon {
  width: 30px;
  height: 30px;
  margin: -8px 2px -8px -12px;
  object-fit: contain;
  flex: 0 0 30px;
  pointer-events: none;
}

.stat-pill-text {
  font-family: var(--font-display);
  font-size: 14px;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hud-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 40px;
  padding: 0 10px;
  font-size: 13px;
  white-space: nowrap;
  overflow: visible !important;
}

.hud-btn-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex: 0 0 24px;
}

.hud-icon-sq {
  width: 42px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible !important;
}

.hud-sq-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.hud-quit-btn {
  min-height: 38px;
  font-size: 13px;
  padding: 4px 11px;
  white-space: nowrap;
}

/* Floating Boss Dread-King Overlord Vital Banner */
.hud-boss-banner {
  position: fixed;
  top: 58px;
  left: 50%;
  transform: translateX(-50%);
  width: min(440px, 52vw);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px;
  pointer-events: auto;
  z-index: 44;
}

.boss-banner-portrait {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex: 0 0 48px;
  margin-top: -8px;
}

.boss-banner-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

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

.boss-banner-name {
  font-family: var(--font-display);
  font-size: 14.5px;
  color: #181822;
}

/* Floating Post-Victory Endless / Next Stage Action Banner */
.hud-endless-banner {
  position: fixed;
  top: 58px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  pointer-events: auto;
  z-index: 44;
  white-space: nowrap;
}

.hud-endless-banner.hidden {
  display: none !important;
}

.endless-banner-ico {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: 0 0 28px;
}

.endless-banner-txt {
  font-family: var(--font-display);
  font-size: 15px;
  color: #181822;
  letter-spacing: 0.02em;
}

.endless-banner-btn {
  min-height: 36px;
  padding: 2px 14px;
  font-size: 13px;
}

#btn-merge-stack.is-ready {
  filter: drop-shadow(0 0 8px rgba(105, 239, 5, 0.85));
}

.boss-timer-tag {
  font-family: var(--font-display);
  font-size: 13.5px;
  color: #B91C1C;
  font-variant-numeric: tabular-nums;
}

.boss-hp-track {
  height: 15px;
  width: 100%;
}

/* ==================== BOTTOM FLOATING CORNER DOCKS (68-90px, >=12.5px HUD TEXT) ==================== */

.hud-bottom-row {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 10px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
  z-index: 45;
}

.hud-bottom-left,
.hud-bottom-right {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  pointer-events: auto;
}

.stance-strip,
.summon-action-strip {
  display: flex;
  align-items: flex-end;
  gap: 9px;
}

/* Compact 84x82 Stance / Merge / Overdrive Buttons (icon = 48px = 58.5% height!) */
.stance-slot-btn {
  width: 86px;
  min-height: 78px;
  max-height: 88px;
  padding: 2px 3px 2px;
  display: grid;
  grid-template-rows: auto 1fr;
  justify-items: center;
  align-items: center;
  align-content: start;
  gap: 2px;
  text-align: center;
  overflow: visible !important;
}

.stance-slot-btn.is-active {
  background-color: #69EF05;
  border-image: url('../assets/ui/vault_vibrant_popout_tycoon/btn_primary.png') 67 58 91 59 fill / 9px 10px 13px 10px / 0 stretch;
  color: #181822;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
  -webkit-text-stroke: 0;
  transform: translateY(-3px);
}

.overdrive-cta-btn {
  width: 92px;
}

.overdrive-cta-btn.is-ready {
  box-shadow: 0 0 16px rgba(255, 213, 46, 0.92), 0 6px 12px rgba(12, 18, 36, 0.45);
}

.stance-slot-icon {
  width: 46px;
  height: 46px;
  object-fit: contain;
  pointer-events: none;
}

.stance-slot-label {
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 1.06;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.hotkey-badge {
  position: absolute;
  top: -11px;
  left: -8px;
  z-index: 10;
  min-width: 21px;
  height: 21px;
  padding: 0 4px;
  border-radius: 6px;
  background-color: #181C2E;
  border: 1.5px solid #FFD52E;
  color: #FFD52E;
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Public 5-Step Jackpot Pity Meter Card */
.pity-meter-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 4px 8px;
  min-width: 138px;
  min-height: 70px;
}

.pity-header-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.pity-title-txt {
  font-family: var(--font-display);
  font-size: 12.5px;
  color: #181822;
}

.pity-step-txt {
  font-family: var(--font-display);
  font-size: 13px;
  color: #7C2D12;
  font-variant-numeric: tabular-nums;
}

.pity-pips-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.pity-pip {
  height: 17px;
  border-radius: 5px;
  background-color: rgba(24, 28, 46, 0.22);
  border: 2px solid #181C2E;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #181C2E;
  transition: background-color 0.16s ease, transform 0.16s ease;
}

.pity-pip.is-filled {
  background-color: #69EF05;
  transform: scale(1.06);
}

.pity-pip.pity-pip-jackpot.is-filled,
.pity-meter-card.is-guaranteed .pity-pip-jackpot {
  background-color: #FF4B5C;
  color: #FFFFFF;
}

/* Golden Summon Hero Primary CTA [S] */
.summon-hero-cta {
  min-width: 152px;
  min-height: 78px;
  max-height: 88px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: visible !important;
}

.summon-dice-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex: 0 0 48px;
  pointer-events: none;
}

.summon-txt-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.1;
}

.summon-main-lbl {
  font-family: var(--font-display);
  font-size: 15px;
  color: #181822;
}

.summon-cost-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.summon-cost-lbl {
  font-family: var(--font-display);
  font-size: 13.5px;
  color: #7C2D12;
  font-variant-numeric: tabular-nums;
}

/* ==================== CURRENCY CHIPS & ANTI-SAAS 60/25/15 CARDS ==================== */

.rwd-ico {
  width: 19px;
  height: 19px;
  object-fit: contain;
  vertical-align: -4px;
  margin-right: 2px;
  flex: 0 0 19px;
  pointer-events: none;
}

.rwd-ico-xs {
  width: 17px;
  height: 17px;
  object-fit: contain;
  vertical-align: -3px;
  flex: 0 0 17px;
  pointer-events: none;
}

.rwd-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background-color: rgba(24, 28, 46, 0.10);
  border: 1.5px solid rgba(24, 28, 46, 0.22);
  font-family: var(--font-display);
  font-size: 12.5px;
  color: #181822;
  white-space: nowrap;
}

.rwd-chip.gold {
  background-color: #FEF3C7;
  border-color: #D97706;
  color: #78350F;
}

.rwd-chip.gem {
  background-color: #F3E8FF;
  border-color: #7C3AED;
  color: #4C1D95;
}

.rwd-chip.green {
  background-color: #DCFCE7;
  border-color: #16A34A;
  color: #14532D;
}

.btn-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.vf-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vf-hdr-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 10px;
  background-color: rgba(24, 28, 46, 0.07);
}

.vf-wallet-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.vf-lv-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  background-color: #181C2E;
  color: #FFE14D;
  font-family: var(--font-display);
  font-size: 11.5px;
  line-height: 1.1;
  white-space: nowrap;
}

.vf-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background-color: #0D5BD9;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 11.5px;
  line-height: 1.1;
  white-space: nowrap;
}

.vf-tag-pill.active {
  background-color: #16A34A;
}

/* 60/25/15 Visual-First Portrait Card (>= 55% Visual Stage, <= 3-Word Title, Glossy CTA!) */
.vf-card-portrait {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 8px 7px;
  text-align: center;
  min-width: 0;
  overflow: visible !important;
}

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

.vf-art-stage {
  width: 100%;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: radial-gradient(circle, rgba(255, 232, 128, 0.42) 0%, rgba(255, 255, 255, 0) 72%);
}

.vf-art-stage.lg {
  height: 82px;
}

.vf-art-stage.sm {
  height: 58px;
}

.vf-art-img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(16, 22, 42, 0.25));
  pointer-events: none;
}

.vf-art-stage.lg .vf-art-img {
  width: 76px;
  height: 76px;
}

.vf-art-stage.sm .vf-art-img {
  width: 52px;
  height: 52px;
}

.vf-biome-thumb {
  width: 100%;
  height: 66px;
  border-radius: 10px;
  border: 2.5px solid #181C2E;
  object-fit: cover;
  display: block;
}

.vf-card-name {
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.14;
  color: #181822;
  max-width: 100%;
  overflow-wrap: break-word;
}

.vf-hero-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  min-width: 0;
  overflow: visible !important;
}

.vf-hero-art {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(16, 22, 42, 0.28));
}

.vf-hero-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.vf-cta-btn {
  width: 100%;
  min-height: 38px;
  font-size: 12.5px;
  padding: 2px 8px;
}

.vf-weather-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.vf-weather-btn {
  min-height: 46px;
  padding: 3px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12.5px;
}

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

.vf-ing-strip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.vf-ing-ico {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background-color: rgba(24, 28, 46, 0.12);
  border: 1.5px solid #181C2E;
  object-fit: contain;
}

/* ==================== MODALS (ROYAL COBALT 3D FRAME, ZERO BACKDROP BLUR!) ==================== */

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: auto;
}

#guide-modal-root {
  z-index: 112;
}

/* Suspend background interactive layers while any modal or guide is open
   so obscured HUD / Title / Tutorial buttons never leak focus or fail hit-tests */
.modal-bg-suspended {
  display: none !important;
  pointer-events: none !important;
}

.modal-title-suspended > .title-corner-utils,
.modal-title-suspended > .title-layout {
  display: none !important;
  pointer-events: none !important;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(12, 18, 36, 0.74);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  width: min(980px, 94vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 16px 12px;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(24, 28, 46, 0.12);
}

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

.modal-title {
  margin: 0;
  padding: 2px 18px;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.03em;
  background-color: #0D5BD9;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 11px 22px 10px 22px;
  border-image: url('../assets/ui/vault_vibrant_popout_tycoon/ribbon_header.png') 89 111 79 110 fill / 11px 22px 10px 22px / 0 stretch;
  color: #FFFFFF;
  text-shadow: 0 2px 0 #121729;
}

.modal-tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-tab-btn {
  min-height: 38px;
  padding: 4px 13px;
  border-radius: 10px 10px 4px 4px;
  border: 2.5px solid #181C2E;
  background-color: #E2E8F0;
  color: #181C2E;
  font-family: var(--font-display);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

/* Containment Grids inside Modals */
.modal-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

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

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

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

/* Shop IAP Pack Cards (60/25/15 Visual-First) */
.iap-pack-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 7px 8px 6px;
  text-align: center;
  overflow: visible !important;
}

.iap-badge-ribbon {
  position: absolute;
  top: -12px;
  right: -6px;
  z-index: 6;
  padding: 2px 9px;
  border-radius: 999px;
  background-color: #D91E36;
  border: 2px solid #181C2E;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 11px;
  white-space: nowrap;
}

.iap-art-box {
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iap-art-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.iap-pack-title {
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.15;
  color: #181822;
  overflow-wrap: break-word;
}

.iap-pack-perk {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 12px;
  line-height: 1.2;
  color: #334155;
  overflow-wrap: break-word;
}

/* Forge, Scratch-Off, Victory 3-Star & Settings */
.forge-panel-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  min-height: 0;
}

.forge-weapon-card {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  min-width: 0;
  overflow: hidden;
}

.forge-weapon-art-stage {
  flex: 0 0 112px;
  width: 112px;
  height: 112px;
  border-radius: 14px;
  border: 2.5px solid rgba(24, 28, 46, 0.22);
  background: radial-gradient(circle, rgba(255, 224, 102, 0.52) 0%, rgba(255, 248, 220, 0.85) 70%, rgba(245, 198, 70, 0.28) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.forge-weapon-art-stage.is-forge-pop {
  animation: forgeWeaponPop 0.28s cubic-bezier(0.22, 1.35, 0.36, 1) forwards;
}

@keyframes forgeWeaponPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.09); }
  100% { transform: scale(1); }
}

.forge-weapon-icon {
  width: 84px;
  height: 84px;
  object-fit: contain;
  filter: drop-shadow(0 5px 8px rgba(16, 22, 42, 0.28));
  pointer-events: none;
}

.forge-weapon-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.forge-weapon-top-row {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.forge-weapon-name {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.15;
  color: #181822;
  max-width: 100%;
  overflow-wrap: break-word;
}

.forge-progress-track {
  width: 100%;
  height: 16px;
}

.forge-odds-card {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 14px;
  min-width: 0;
  overflow: hidden;
}

.forge-odds-header {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.forge-odds-title-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 200px;
}

.forge-odds-ico {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  object-fit: contain;
  pointer-events: none;
}

.forge-odds-title {
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.15;
  color: #181822;
  min-width: 0;
  overflow-wrap: break-word;
}

.forge-odds-badges {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.odds-grid-4 {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.odds-grid-4.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.odds-stat-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 9px;
  background-color: rgba(24, 28, 46, 0.08);
  border: 1.5px solid rgba(24, 28, 46, 0.14);
  font-weight: 800;
  font-size: 13px;
  color: #181822;
  min-width: 0;
  overflow: hidden;
}

.odds-stat-cell.is-safe {
  background-color: rgba(51, 65, 85, 0.12);
  color: #334155;
}

.odds-cell-lbl {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.odds-cell-val {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.forge-cta-footer {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding-top: 2px;
}

.forge-upgrade-cta {
  width: min(520px, 100%);
  min-height: 52px;
  font-size: 16px;
  padding: 4px 18px;
}

.scratch-grid-3x3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 400px;
  margin: 8px auto;
}

.scratch-cell-btn {
  min-height: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 13px;
}

.victory-stars-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 6px;
}

.victory-star-ico {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(24, 28, 46, 0.35));
}

.victory-star-ico.mid {
  width: 58px;
  height: 58px;
  transform: translateY(-4px);
}

.settings-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 10px;
  border-radius: 10px;
  background-color: rgba(24, 28, 46, 0.06);
  margin-bottom: 6px;
}

.settings-label-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.settings-label {
  font-family: var(--font-display);
  font-size: 14px;
  color: #181822;
}

.settings-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.settings-slider {
  width: 150px;
  accent-color: #0D5BD9;
  cursor: pointer;
}

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

/* ==================== PILLAR 3: SPOTLIGHT + TUT-HAND + 3-ICON GUIDES ==================== */

.tutorial-root {
  position: fixed;
  inset: 0;
  z-index: 65;
  pointer-events: none;
}

.tut-spotlight {
  position: fixed;
  border-radius: 16px;
  border: 4px solid #FFE14D;
  box-shadow: 0 0 0 4px #181C2E, 0 0 22px rgba(255, 225, 77, 0.92);
  pointer-events: none !important;
  z-index: 66;
  animation: tutPulse 1.05s ease-in-out infinite alternate;
}

@keyframes tutPulse {
  from { transform: scale(0.98); opacity: 0.9; }
  to   { transform: scale(1.05); opacity: 1.0; }
}

.tut-hand {
  position: fixed;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none !important;
  z-index: 67;
  transform: rotate(180deg);
  animation: tutBobDown 0.72s ease-in-out infinite alternate;
}

.tut-hand.from-below {
  transform: rotate(0deg);
  animation: tutBobUp 0.72s ease-in-out infinite alternate;
}

@keyframes tutBobDown {
  from { transform: translateY(-7px) rotate(180deg); }
  to   { transform: translateY(4px) rotate(180deg); }
}

@keyframes tutBobUp {
  from { transform: translateY(7px) rotate(0deg); }
  to   { transform: translateY(-4px) rotate(0deg); }
}

.tut-coach-pill {
  position: fixed;
  top: 62px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 68;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 10px;
  border-width: 7px 8px 10px 8px;
  opacity: 0.9;
  pointer-events: auto;
}

.tut-coach-ico {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: 0 0 28px;
}

.tut-coach-txt {
  font-family: var(--font-display);
  font-size: 13.5px;
  color: #181822;
  white-space: nowrap;
}

.tut-skip-btn {
  min-height: 34px;
  padding: 2px 10px;
  font-size: 12px;
}

.vf-guide-dialog {
  width: min(760px, 92vw);
}

.vf-guide-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 4px;
}

.vf-guide-step {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 10px;
  text-align: center;
}

.vf-guide-ico {
  width: 68px;
  height: 68px;
  object-fit: contain;
  filter: drop-shadow(0 5px 8px rgba(16, 22, 42, 0.28));
}

.vf-guide-lbl {
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.18;
  color: #181822;
}

.vf-guide-arrow {
  font-family: var(--font-display);
  font-size: 28px;
  color: #0D5BD9;
  flex: 0 0 auto;
}

.toast-root {
  position: fixed;
  top: 64px;
  right: 16px;
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  pointer-events: none;
}

.toast-chip {
  padding: 4px 12px;
  font-family: var(--font-display);
  font-size: 13.5px;
  pointer-events: none;
}

/* ==================== PREVIEW-ONLY [DEV F2] PANEL ==================== */

.dev-f2-pill {
  position: fixed;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  padding: 3px 10px;
  border-radius: 999px;
  background-color: #181C2E;
  border: 2px solid #FFD52E;
  color: #FFD52E;
  font-family: var(--font-display);
  font-size: 12px;
}

.debug-panel {
  position: fixed;
  top: 62px;
  left: 14px;
  z-index: 125;
  width: min(340px, 90vw);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ==================== 1280x720 LAPTOP COMPACT VIEWPORT RULES ==================== */

@media (max-width: 1460px) {
  .hud-top-row {
    min-height: 46px;
    padding: 5px 8px 4px;
    gap: 6px;
  }

  .hud-cluster {
    gap: 6px;
  }

  .stat-pill {
    min-height: 32px;
    border-width: 7px 10px 7px 10px;
    padding: 0 5px 0 1px;
  }

  .popout-icon {
    width: 24px;
    height: 24px;
    margin: -5px 1px -5px -8px;
    flex: 0 0 24px;
  }

  .stat-pill-text {
    font-size: 12.5px;
  }

  .hud-action-btn {
    min-height: 34px;
    border-width: 6px 8px 9px 8px;
    padding: 0 7px;
    font-size: 12px;
  }

  .hud-action-btn .notify-badge {
    top: -8px;
    right: -6px;
    min-width: 17px;
    height: 17px;
    font-size: 11px;
    padding: 0 3px;
  }

  .hud-btn-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
  }

  .hide-compact {
    display: none !important;
  }

  .hud-icon-sq {
    width: 34px;
    height: 34px;
    border-width: 6px 8px 6px 8px;
  }

  .hud-sq-img {
    width: 20px;
    height: 20px;
  }

  .hud-quit-btn {
    min-height: 32px;
    padding: 2px 8px;
    font-size: 12px;
  }

  .hud-bottom-row {
    left: 8px;
    right: 8px;
    bottom: 6px;
  }

  .stance-slot-btn {
    width: 76px;
    min-height: 70px;
    max-height: 80px;
    border-width: 7px 8px 10px 8px;
  }

  .overdrive-cta-btn {
    width: 84px;
  }

  .stance-slot-icon {
    width: 41px;
    height: 41px;
  }

  .stance-slot-label {
    font-size: 11.5px;
  }

  .pity-meter-card {
    min-width: 122px;
    min-height: 64px;
    border-width: 9px 9px 12px 9px;
    padding: 2px 6px;
  }

  .pity-title-txt {
    font-size: 12px;
  }

  .pity-step-txt {
    font-size: 12px;
  }

  .summon-hero-cta {
    min-width: 136px;
    min-height: 70px;
    max-height: 80px;
    border-width: 7px 9px 11px 9px;
    padding: 2px 8px;
  }

  .summon-dice-icon {
    width: 41px;
    height: 41px;
    flex: 0 0 41px;
  }

  .summon-main-lbl {
    font-size: 14px;
  }

  .summon-cost-lbl {
    font-size: 12.5px;
  }

  .title-layout {
    gap: 20px;
  }

  .title-portrait-host {
    width: min(300px, 30vw);
    height: min(300px, 42vh);
  }
}

@media (max-width: 1460px), (max-height: 820px) {
  .modal-card {
    width: min(940px, 95vw);
    max-height: 92vh;
    border-width: 15px 16px 20px 16px;
    padding: 5px 12px 8px;
    gap: 7px;
  }

  .iap-pack-card {
    padding: 4px 6px 5px;
    gap: 3px;
    border-width: 8px 8px 12px 8px;
  }

  .iap-art-box {
    width: 46px;
    height: 46px;
  }

  .iap-pack-card button {
    min-height: 32px !important;
    font-size: 12px !important;
  }

  #shop-daily-chest-card {
    padding: 4px 10px;
    border-width: 8px 10px 11px 10px;
  }

  #shop-daily-chest-img {
    width: 34px !important;
    height: 34px !important;
  }

  .iap-pack-title {
    font-size: 13px;
  }

  .iap-pack-perk {
    font-size: 11.5px;
  }

  .forge-panel-wrap {
    gap: 8px;
  }

  .forge-weapon-card {
    padding: 9px 12px;
    gap: 12px;
  }

  .forge-weapon-art-stage {
    flex: 0 0 92px;
    width: 92px;
    height: 92px;
  }

  .forge-weapon-icon {
    width: 68px;
    height: 68px;
  }

  .forge-weapon-name {
    font-size: 19px;
  }

  .forge-odds-card {
    padding: 8px 12px;
    gap: 6px;
  }

  .forge-odds-title {
    font-size: 14px;
  }

  .odds-stat-cell {
    padding: 5px 8px;
    font-size: 12.5px;
  }

  .forge-upgrade-cta {
    min-height: 46px;
    font-size: 15px;
  }
}

@media (max-width: 900px) {
  .title-layout {
    grid-template-columns: 1fr;
  }

  .title-portrait-host {
    height: 180px;
  }

  .hide-compact-xs {
    display: none !important;
  }

  .vf-guide-strip {
    flex-direction: column;
  }

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

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