/* ==========================================================================
 * Mintspire: Business Tycoon — Vibrant Arcade Pop-Out Tycoon UI (`vibrant_popout_tycoon`)
 * Full-bleed 100vw x 100vh Skyline & Terrace Stage + Floating Corner HUD
 * 20+ real 9-slice border-image regions, padding-box WCAG contrast fallbacks,
 * zero opaque sidebars, zero backdrop-filter blur, 1080p & 720p 9-lang verified.
 * ========================================================================== */

:root,
[data-ui-vault-style="vibrant_popout_tycoon"] {
  --ms-bg-navy: #0B246F;
  --ms-sky-blue: #4480D9;
  --ms-cream: #EFE9D2;
  --ms-mint: #6EECB1;
  --ms-bronze: #C29169;
  --ms-white: #FEFEFE;
  --ms-ink: #181C2E;
  --ms-gold: #FFD52E;
  --ms-lime: #6CE21C;
  --ms-purple: #7C3AED;
  --ms-danger: #E11D48;
  --font-display: 'Lilita One', 'Luckiest Guy', 'Arial Rounded MT Bold', 'Trebuchet MS', sans-serif;
  --font-body: 'Baloo 2', 'Segoe UI', system-ui, sans-serif;

  /* TrackBUIMotion v2.9.0 <-> UI Vault 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 2px 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: #091B54;
  color: var(--ms-ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

.hidden {
  display: none !important;
}

#game-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* ==================== FULL-BLEED 100vw x 100vh CANVASES ==================== */

#game-canvas {
  position: absolute;
  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 !important;
  display: none;
}

#cutin-canvas {
  z-index: 128;
}

#uimotion-overlay-canvas {
  z-index: 135;
}

.screen-layer {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
}

/* ==================== TYPOGRAPHY HELPERS ==================== */

.hud-num {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  text-shadow: 0 2px 0 #111629;
}

.hud-num.dark-num {
  color: #181822;
  text-shadow: none;
}

.hud-num.gold-tint {
  color: #FFE45E;
}

/* ==================== 18+ REAL 9-SLICE VAULT CHROME RULES (WITH WCAG PADDING-BOX FALLBACKS) ==================== */

/* 1. Royal Cobalt Modal Frame (frame_modal.png — light #FDFBF3 center -> dark text) */
.uiv-frame-modal {
  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;
  color: #181822;
}

/* 2. Sunny Yellow Claim / Alert Banner (card_claim_banner.png — #FDD41D center -> dark text) */
.uiv-card-claim {
  background-color: #FDD41D;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 13px 13px 16px 13px;
  border-image: url('../assets/ui/vault_vibrant_popout_tycoon/card_claim_banner.png') 99 89 110 89 fill / 13px 13px 16px 13px / 0 stretch;
  color: #181822;
}

/* 3. Electric Royal Ribbon Header (ribbon_header.png — #1354B8 padding-box -> crisp white text) */
.uiv-ribbon-header {
  background-color: #0D4FB8;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 10px 18px 10px 18px;
  border-image: url('../assets/ui/vault_vibrant_popout_tycoon/ribbon_header.png') 89 111 79 110 fill / 10px 18px 10px 18px / 0 stretch;
  color: #FFFFFF;
  font-family: var(--font-display);
  text-shadow: 0 2px 0 #10162B;
}

/* 4. Dark Metallic Arcade HUD Pill (hud_pill.png — #1F2E45 center -> white text) */
.uiv-hud-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;
  color: #FFFFFF;
  font-family: var(--font-display);
  text-shadow: 0 2px 0 #0F1526;
}

/* 5. Electric Dock Slot Tile (slot_dock.png — #0E4EA8 padding-box -> white text) */
.uiv-slot-dock {
  background-color: #0F4AA3;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 9px 9px 13px 9px;
  border-image: url('../assets/ui/vault_vibrant_popout_tycoon/slot_dock.png') 45 40 67 40 fill / 9px 9px 13px 9px / 0 stretch;
  color: #FFFFFF;
  font-family: var(--font-display);
  text-shadow: 0 1.5px 0 #10172A;
}

/* 6. Glossy Lime Primary Button (btn_primary.png — #69EF05 center -> dark text) */
.uiv-btn-primary {
  background-color: #69EF05;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 8px 11px 12px 11px;
  border-image: url('../assets/ui/vault_vibrant_popout_tycoon/btn_primary.png') 67 58 91 59 fill / 8px 11px 12px 11px / 0 stretch;
  color: #141926;
  font-family: var(--font-display);
  cursor: pointer;
  overflow: visible !important;
  position: relative;
}

/* 7. Royal Violet Secondary Button (btn_secondary.png — #5B21B6 padding-box -> white text) */
.uiv-btn-secondary {
  background-color: #5B21B6;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 8px 11px 12px 11px;
  border-image: url('../assets/ui/vault_vibrant_popout_tycoon/btn_secondary.png') 66 55 92 56 fill / 8px 11px 12px 11px / 0 stretch;
  color: #FFFFFF;
  font-family: var(--font-display);
  text-shadow: 0 1.5px 0 #18102E;
  cursor: pointer;
  overflow: visible !important;
  position: relative;
}

/* 8. Sunny Gold Claim / IPO / Shop Hero CTA (btn_claim.png — #FDCB0D center -> dark text) */
.uiv-btn-claim {
  background-color: #FDCB0D;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 8px 11px 12px 11px;
  border-image: url('../assets/ui/vault_vibrant_popout_tycoon/btn_claim.png') 54 51 103 77 fill / 8px 11px 12px 11px / 0 stretch;
  color: #181822;
  font-family: var(--font-display);
  cursor: pointer;
  overflow: visible !important;
  position: relative;
}

/* 9. Steel Disabled / Owned Button (btn_disabled.png — #CBD5E1 padding-box -> dark text) */
.uiv-btn-disabled,
button:disabled.uiv-btn-primary,
button:disabled.uiv-btn-claim {
  background-color: #CBD5E1 !important;
  background-clip: padding-box !important;
  border-style: solid !important;
  border-color: transparent !important;
  border-width: 8px 11px 12px 11px !important;
  border-image: url('../assets/ui/vault_vibrant_popout_tycoon/btn_disabled.png') 57 62 95 65 fill / 8px 11px 12px 11px / 0 stretch !important;
  color: #1E293B !important;
  text-shadow: none !important;
  cursor: default;
  overflow: visible !important;
  position: relative;
}

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

/* 11. Card Rare (card_rare.png — #DAEEFC center -> dark text) */
.uiv-card-rare {
  background-color: #DAEEFC;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 10px 10px 14px 10px;
  border-image: url('../assets/ui/vault_vibrant_popout_tycoon/card_rare.png') 60 59 93 59 fill / 10px 10px 14px 10px / 0 stretch;
  color: #181822;
}

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

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

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

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

/* 16. Active Symmetric Tab Plate (tab_active.png — #1354B8 padding-box -> white text) */
.uiv-tab-active {
  background-color: #1354B8 !important;
  background-clip: padding-box !important;
  border-style: solid !important;
  border-color: transparent !important;
  border-width: 8px 8px 4px 8px !important;
  border-image: url('../assets/ui/vault_vibrant_popout_tycoon/tab_active.png') 51 27 14 51 fill / 8px 8px 4px 8px / 0 stretch !important;
  color: #FFFFFF !important;
  font-family: var(--font-display);
  text-shadow: 0 1.5px 0 #10172B;
}

/* 17. Art Kit Cream Subpanel (assets/ui/frame_panel.png 9-slice — #FEF2CD center -> dark text) */
.uiv-subpanel-cream {
  background-color: #FEF2CD;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 12px 12px 12px 12px;
  border-image: url('../assets/ui/frame_panel.png') 77 75 77 76 fill / 12px 12px 12px 12px / 0 stretch;
  color: #181822;
}

/* 18. Art Kit Golden Executive CTA (assets/ui/btn_primary.png 9-slice — #F3C255 center -> dark text) */
.uiv-btn-amber-kit {
  background-color: #F3C255;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 10px 12px 12px 12px;
  border-image: url('../assets/ui/btn_primary.png') 182 176 188 176 fill / 10px 12px 12px 12px / 0 stretch;
  color: #14121F;
  font-family: var(--font-display);
  cursor: pointer;
  overflow: visible !important;
  position: relative;
}

/* Crisp Glossy Crimson Danger / Quit Button */
.uiv-btn-danger {
  background: linear-gradient(180deg, #DC2626 0%, #991B1B 100%);
  border: 2.5px solid #181C2E;
  border-radius: 11px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), 0 3px 0 #181C2E;
  color: #FFFFFF;
  font-family: var(--font-display);
  text-shadow: 0 1.5px 0 #181022;
  cursor: pointer;
  overflow: visible !important;
  position: relative;
}

/* ==================== POP-OUT ICONS & OUTER-CORNER NOTIFY BADGES ==================== */

.uiv-popout {
  position: relative;
  overflow: visible !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.uiv-popout > .uiv-pop-icon {
  position: relative;
  z-index: 6;
  width: 32px;
  height: 32px;
  margin: -10px 2px -10px -14px;
  object-fit: contain;
  flex-shrink: 0;
  pointer-events: none;
}

/* Positioned cleanly on outer 9-slice corner within scrollWidth <= clientWidth + 6px invariant */
.notify-badge {
  position: absolute;
  top: -7px;
  right: -3px;
  z-index: 8;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #EF4444 0%, #B91C1C 100%);
  border: 2px solid #181C2E;
  box-shadow: 0 2px 0 #181C2E;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  white-space: nowrap;
}

button,
.has-badge {
  overflow: visible !important;
}

.btn-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  max-width: 100%;
  line-height: 1.12;
  overflow-wrap: break-word;
}

/* ==================== HEROIC NO-BOX FULL-BLEED TITLE SCREEN (0 BOXED_LOGIN_TITLE_SCREEN!) ==================== */

#title-screen {
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

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

.title-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 54% 46%, rgba(8, 22, 68, 0.24) 0%, rgba(7, 18, 56, 0.56) 68%, rgba(6, 14, 44, 0.72) 100%),
    linear-gradient(180deg, rgba(8, 20, 62, 0.45) 0%, rgba(8, 20, 62, 0.08) 32%, rgba(8, 20, 62, 0.55) 100%);
  z-index: 1;
}

.title-top-left {
  position: absolute;
  top: 16px;
  left: 18px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.title-sim-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 10px;
  font-size: 13px;
  color: #6EECB1;
}

.title-wallet-pill {
  min-height: 38px;
  padding: 0 10px 0 4px;
  font-size: 14px;
}

.title-top-bar {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
}

.title-icon-util {
  width: 42px;
  height: 40px;
  min-width: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.title-icon-util img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.title-top-pill {
  min-height: 40px;
  padding: 2px 12px;
  font-size: 13.5px;
  cursor: pointer;
}

.title-quit-btn {
  min-height: 40px;
  padding: 4px 16px;
  font-size: 13.5px;
}

.title-center-stage {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  width: min(1160px, 95vw);
  background: transparent !important;
  border: none !important;
}

.title-hero-showcase {
  position: relative;
  width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.title-hero-halo {
  position: absolute;
  width: 270px;
  height: 270px;
  top: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 213, 46, 0.62) 0%, rgba(110, 236, 177, 0.28) 52%, rgba(255, 255, 255, 0) 74%);
  pointer-events: none;
}

#title-hero-portrait {
  position: relative;
  z-index: 2;
  width: 272px;
  height: 296px;
  object-fit: contain;
}

.title-mascot-tag {
  position: relative;
  z-index: 4;
  margin-top: -12px;
  font-size: 14px;
  padding: 2px 12px 2px 6px;
}

.title-brand-floating {
  flex: 1;
  min-width: 0;
  max-width: 720px;
  padding: 0;
  background: transparent !important;
  border: none !important;
  border-image: none !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.game-logo-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1.02;
  letter-spacing: 0.015em;
  color: #FFE14D;
  paint-order: stroke fill;
  -webkit-text-stroke: 9px #12182B;
  text-shadow: 0 7px 0 #0B1020, 0 14px 28px rgba(6, 12, 36, 0.72);
}

.game-logo-subtitle {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #FFFFFF;
  paint-order: stroke fill;
  -webkit-text-stroke: 3.5px #12182B;
  text-shadow: 0 3px 8px rgba(8, 15, 38, 0.85);
  line-height: 1.3;
  max-width: 640px;
}

.boot-loading-wrap {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 14px;
  background: rgba(12, 24, 62, 0.78);
  border: 2px solid #FFE14D;
}

.boot-loading-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 14px;
  color: #FFFFFF;
}

.boot-loading-head .hud-num {
  color: #FFE14D;
}

.boot-bar-track {
  height: 20px;
}

.title-cta-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.title-play-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 288px;
  height: 64px;
  padding: 4px 28px;
  font-size: 26px;
  letter-spacing: 0.04em;
}

.play-cta-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
}

.title-secondary-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 12px;
}

.title-secondary-grid > button {
  min-width: 152px;
  min-height: 46px;
  padding: 3px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 14.5px;
}

.btn-inline-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ==================== TOP FLOATING EXECUTIVE COMMAND BAR (SINGLE-LINE NOWRAP) ==================== */

#hud-layer {
  z-index: 40;
  pointer-events: none;
}

.top-command-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 54px;
  padding: 7px 18px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap !important;
  gap: 10px;
  background: linear-gradient(180deg, rgba(11, 28, 78, 0.62) 0%, rgba(11, 28, 78, 0.18) 76%, rgba(11, 28, 78, 0) 100%);
  z-index: 55;
  pointer-events: none;
}

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

.hud-sim-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 0 7px;
  font-size: 13px;
  color: #6EECB1;
  white-space: nowrap;
}

.sim-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6EECB1;
  box-shadow: 0 0 6px #6EECB1;
  flex-shrink: 0;
}

.hud-currency-pill {
  min-height: 36px;
  padding: 0 7px 0 2px;
  font-size: 14px;
  white-space: nowrap;
}

.hud-pill-clickable {
  cursor: pointer;
}

.hud-rate {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 13px;
  color: #7DF950;
  text-shadow: 0 1px 0 #0B1224;
  margin-left: 3px;
}

.bulk-pill-group {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 36px;
  padding: 0 3px;
}

.bulk-chip {
  border: 2px solid #181C2E;
  border-radius: 7px;
  background: #FFFDF5;
  color: #181822;
  font-family: var(--font-display);
  font-size: 13px;
  padding: 2px 7px;
  cursor: pointer;
  white-space: nowrap;
}

.bulk-chip.active {
  background: #FFD52E;
  color: #181822;
}

.hud-compact-btn {
  min-height: 36px;
  height: 36px;
  padding: 0 9px;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.hud-top-btn {
  min-height: 36px;
  height: 36px;
  padding: 0 9px 0 6px;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
  white-space: nowrap;
}

.hud-top-btn.has-badge {
  padding-right: 22px;
}

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

.hud-icon-btn {
  width: 38px;
  height: 36px;
  min-width: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.quit-glyph {
  font-size: 16px;
  line-height: 1;
  font-weight: 900;
}

.quit-svg {
  display: block;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  pointer-events: none;
}

/* ==================== LEFT & RIGHT FLOATING CORNER CLUSTERS (TRANSPARENT GAPS) ==================== */

.floating-side-cluster {
  position: fixed;
  top: 62px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 42;
  pointer-events: none;
}

.left-cluster {
  left: 12px;
  width: 236px;
}

.right-cluster {
  right: 16px;
  width: 242px;
}

.float-widget {
  pointer-events: auto;
  padding: 4px 7px 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.widget-head-row {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

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

.widget-title {
  font-family: var(--font-display);
  font-size: 13.5px;
  line-height: 1.12;
  color: #181822;
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
}

.widget-copy {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.22;
  color: #1E293B;
  overflow-wrap: break-word;
}

.widget-subcopy {
  font-size: 13px;
  font-weight: 800;
  color: #334155;
  line-height: 1.15;
}

.step-pill,
.timer-chip {
  background: #181C2E;
  color: #FFD52E;
  font-family: var(--font-display);
  font-size: 12.5px;
  padding: 1px 7px;
  border-radius: 999px;
  flex-shrink: 0;
}

.mini-bar-track {
  height: 13px;
}

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

.mini-cta {
  min-width: 0;
  max-width: 100%;
  min-height: 34px;
  padding: 1px 4px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.mini-cta.has-badge {
  padding-right: 16px;
}

.full-mini-cta {
  width: 100%;
  min-height: 35px;
  padding: 1px 6px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Right Stock Mini-Widget */
.stock-mini-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 1px 6px;
  font-size: 13px;
}

.div-chip {
  background: rgba(16, 24, 46, 0.72);
  color: #6EECB1;
  font-size: 12.5px;
  padding: 1px 6px;
  border-radius: 6px;
  white-space: nowrap;
}

#mini-sparkline-canvas {
  width: 100%;
  height: 52px;
  display: block;
  background: #0F1C3F;
  border: 2px solid #181C2E;
  border-radius: 8px;
}

.mini-ticker-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.mini-ticker-row {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  padding: 3px 5px;
  border-radius: 7px;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  font-size: 13px;
  font-weight: 800;
  color: #181822;
  cursor: pointer;
}

.mini-ticker-row.dip-alert {
  border-color: #059669;
  background: #ECFDF5;
}

.mini-ticker-row.selected {
  border-color: #0D4FB8;
  background: #EFF6FF;
}

.ticker-sym {
  font-family: var(--font-display);
  font-size: 13px;
  color: #0F172A;
}

.ticker-shares-pill {
  font-size: 10px;
  padding: 0 4px;
  border-radius: 4px;
  background: #E2E8F0;
  color: #1E293B;
}

.ticker-chg.up {
  color: #047857;
}

.ticker-chg.down {
  color: #B91C1C;
}

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

.rival-avatar {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
  background: #1E1B4B;
  border: 2px solid #181C2E;
  flex-shrink: 0;
}

.rival-copy-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

/* ==================== ACTIVE BOOST BANNER & TOAST ==================== */

.active-boost-banner {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 48;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 12px;
  font-family: var(--font-display);
  font-size: 13px;
  color: #181822;
  pointer-events: none;
}

.boost-banner-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.skyline-toast {
  position: fixed;
  top: 108px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 140;
  padding: 4px 16px;
  font-size: 13.5px;
  pointer-events: none;
  white-space: nowrap;
}

/* ==================== BOTTOM COMPACT ARCADE OPS DOCK (74-80px, ICONS ~60% HEIGHT!) ==================== */

.ops-dock {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  align-content: start;
  gap: 12px;
  pointer-events: none;
}

.ops-tile-btn {
  pointer-events: auto;
  width: 88px;
  height: 76px;
  min-height: 74px;
  max-height: 84px;
  border-width: 6px 6px 9px 6px !important;
  padding: 1px 3px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-content: start;
  gap: 1px;
  cursor: pointer;
  position: relative;
  overflow: visible !important;
}

.ops-tile-btn.ops-hero-surge {
  width: 96px;
  height: 80px;
}

.ops-tile-icon {
  width: 45px;
  height: 45px;
  object-fit: contain;
  flex-shrink: 0;
  pointer-events: none;
}

.ops-tile-btn.ops-hero-surge .ops-tile-icon {
  width: 48px;
  height: 48px;
}

.ops-tile-label {
  font-family: var(--font-display);
  font-size: 12.5px;
  line-height: 1.02;
  text-align: center;
  max-width: 100%;
  white-space: nowrap;
}

/* ==================== UNIFIED MODAL SYSTEM (ZERO NESTED DROP-SHADOWS -> <=20ms OPEN!) ==================== */

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 110;
}

.modal-backdrop,
.uiv-scrim {
  position: fixed;
  inset: 0;
  background: rgba(9, 17, 42, 0.76);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.modal-card {
  width: min(920px, 95vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 6px 14px 10px;
  position: relative;
}

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

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

.modal-ribbon-title {
  margin: 0;
  font-size: 19px;
  letter-spacing: 0.02em;
  padding: 2px 14px;
}

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

.modal-help-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2.5px solid #181C2E;
  background: #FFD52E;
  color: #181822;
  font-family: var(--font-display);
  font-size: 16px;
  cursor: pointer;
}

.modal-close-x {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border: none;
  background: url('../assets/ui/vault_vibrant_popout_tycoon/btn_close.png') center / contain no-repeat;
  cursor: pointer;
  padding: 0;
  font-size: 0;
  color: transparent;
}

.modal-tabs-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.modal-tab-btn {
  min-height: 34px;
  padding: 4px 12px;
  border-radius: 9px 9px 3px 3px;
  border: 2px solid #181C2E;
  background: #E2E8F0;
  color: #181822;
  font-family: var(--font-display);
  font-size: 12px;
  cursor: pointer;
}

.modal-body-scroll,
.uiv-dialog-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 70vh;
  padding: 4px 2px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

/* ==================== SHOP 8-SKU GRID (COMPACT 4x2 ABOVE THE FOLD!) ==================== */

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

.shop-card {
  min-width: 0;
  max-width: 100%;
  padding: 5px 7px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  position: relative;
}

.shop-ribbon-badge {
  position: absolute;
  top: -10px;
  right: -6px;
  z-index: 6;
  padding: 1px 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, #EF4444 0%, #B91C1C 100%);
  border: 2px solid #181C2E;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 9.5px;
  white-space: nowrap;
}

.shop-art-thumb {
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex-shrink: 0;
}

.shop-card-title {
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1.12;
  color: #181822;
  max-width: 100%;
  overflow-wrap: break-word;
}

.shop-card-desc {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  color: #334155;
  flex: 1;
  max-width: 100%;
  overflow-wrap: break-word;
}

.shop-buy-btn {
  width: 100%;
  min-height: 34px;
  padding: 1px 6px;
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ==================== SECTORS, STOCKS, AUCTIONS, PASSES & SETTINGS GRIDS ==================== */

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

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

.sector-modal-card,
.uiv-sector-card {
  min-width: 0;
  max-width: 100%;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* ==================== 3-SEASON HUB MODAL STYLES (`vibrant_popout_tycoon`) ==================== */

.season-section-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.season-box {
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.season-box-head {
  font-family: var(--font-display);
  font-size: 13.5px;
  color: #181822;
  line-height: 1.15;
}

.season-mini-row {
  min-width: 0;
  padding: 5px 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

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

.season-row-sub {
  font-size: 11px;
  font-weight: 800;
  color: #334155;
  line-height: 1.2;
}

.season-act-btn {
  min-height: 32px;
  max-height: 44px;
  padding: 1px 8px;
  font-size: 11px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.season-wide-btn {
  width: 100%;
  min-height: 34px;
  max-height: 44px;
  padding: 2px 10px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.season-stock-chip {
  min-width: 0;
  min-height: 36px;
  max-height: 48px;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  cursor: pointer;
}

.season-pill-tag {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 5px;
  font-family: var(--font-display);
  font-size: 9.5px;
  line-height: 1.2;
  border: 1.5px solid #181C2E;
  white-space: nowrap;
}

.season-pill-tag.gold {
  background: #FFD52E;
  color: #181822;
}

.season-pill-tag.dip {
  background: #69EF05;
  color: #141926;
}

.season-pill-tag.peak {
  background: #F59E0B;
  color: #181822;
}

.season-pill-tag.neutral {
  background: #E2E8F0;
  color: #1E293B;
}

/* ==================== VISUAL-FIRST (60/25/15) ANTI-SAAS MODAL KIT ==================== */
.vf-stack { display: flex; flex-direction: column; gap: 10px; }
.vf-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.vf-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.vf-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.vf-bottom-split { display: grid; grid-template-columns: 1.18fr 1fr; gap: 10px; align-items: stretch; }
.vf-tab-btn { display: inline-flex; align-items: center; gap: 6px; }
.vf-wallet-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px; background: #ECFDF5;
  border: 2px solid #10B981; font-family: var(--font-display); font-size: 13px; color: #065F46;
}
.vf-wallet-chip.gold { background: #FEFCE8; border-color: #F59E0B; color: #92400E; }
.vf-ico { width: 20px; height: 20px; object-fit: contain; vertical-align: middle; flex-shrink: 0; }
.vf-ico-sm { width: 17px; height: 17px; object-fit: contain; vertical-align: middle; flex-shrink: 0; }
.vf-ico-xs { width: 14px; height: 14px; object-fit: contain; vertical-align: middle; flex-shrink: 0; }

.vf-card-portrait {
  position: relative; padding: 8px 8px 7px; display: flex; flex-direction: column;
  align-items: center; gap: 5px; text-align: center; min-width: 0;
}
.vf-card-top-badges {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 4px;
}
.vf-lv-badge {
  display: inline-block; padding: 1px 7px; border-radius: 999px;
  background: #1D4ED8; color: #FFFFFF; font-family: var(--font-display); font-size: 10.5px;
  border: 1.5px solid #181C2E; letter-spacing: 0.02em;
}
.vf-art-stage {
  width: 100%; height: 92px; border-radius: 10px;
  background: radial-gradient(circle at 50% 45%, rgba(255,255,255,0.92), rgba(186,230,253,0.45));
  border: 2px solid rgba(29, 78, 216, 0.16);
  display: flex; align-items: center; justify-content: center; overflow: visible;
}
.vf-art-stage.sm { height: 74px; }
.vf-art-img {
  width: 82px; height: 82px; object-fit: contain;
  filter: drop-shadow(0 5px 4px rgba(15, 23, 42, 0.28));
  transition: transform 0.16s ease;
}
.vf-art-stage.sm .vf-art-img { width: 66px; height: 66px; }
.vf-card-portrait:hover .vf-art-img { transform: translateY(-3px) scale(1.06); }
.vf-card-name {
  font-family: var(--font-display); font-size: 13px; color: #15192B;
  line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.vf-stat-chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  padding: 2px 9px; border-radius: 999px; font-weight: 800; font-size: 11.5px;
  border: 1.5px solid rgba(24, 28, 46, 0.18);
}
.vf-stat-chip.green { background: #DCFCE7; color: #166534; }
.vf-stat-chip.blue { background: #DBEAFE; color: #1E40AF; }
.vf-cta-btn {
  width: 100%; min-height: 36px; max-height: 44px; padding: 2px 8px;
  font-size: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 4px;
}
.vf-cta-btn.sm { min-height: 30px; font-size: 11px; }
.vf-cta-btn .btn-label { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }

.vf-hero-card, .vf-hero-banner {
  padding: 10px 12px; display: flex; align-items: center; gap: 12px; min-width: 0;
}
.vf-hero-banner.compact { padding: 8px 12px; }
.vf-hero-art {
  width: 88px; height: 88px; object-fit: contain; flex-shrink: 0;
  filter: drop-shadow(0 5px 5px rgba(15, 23, 42, 0.28));
}
.vf-hero-art.sm { width: 46px; height: 46px; }
.vf-hero-art.round {
  border-radius: 14px; border: 3px solid #181C2E; background: #EFF6FF; object-fit: cover;
}
.vf-hero-meta { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.vf-hero-title { font-family: var(--font-display); font-size: 15px; color: #15192B; line-height: 1.15; }
.vf-banner-actions { display: flex; flex-direction: column; gap: 6px; width: 146px; flex-shrink: 0; }

.vf-ticker-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.vf-ticker-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  padding: 5px 6px; border-radius: 10px; background: #EFF6FF;
  border: 2px solid #2563EB; font-size: 11px; color: #1E293B; cursor: pointer;
}
.vf-ticker-pill strong { font-family: var(--font-display); font-size: 11.5px; }

.vf-mini-bar {
  position: relative; width: 100%; height: 15px; border-radius: 999px;
  background: #1E293B; border: 1.5px solid #0F172A; overflow: hidden;
}
.vf-mini-bar.lg { height: 20px; }
.vf-mini-bar-fill { height: 100%; background: linear-gradient(90deg, #22C55E, #4ADE80); border-radius: 999px; }
.vf-mini-bar-fill.gold { background: linear-gradient(90deg, #F59E0B, #FDE047); }
.vf-mini-bar span {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 900; color: #FFFFFF; text-shadow: 0 1px 2px #000;
}

.vf-syn-chip { padding: 6px 8px; display: flex; align-items: center; gap: 8px; }
.vf-syn-ico { width: 34px; height: 34px; object-fit: contain; flex-shrink: 0; }

.vf-theme-preview {
  width: 100%; height: 68px; border-radius: 9px; overflow: hidden; border: 2px solid #181C2E;
}
.vf-theme-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.vf-track-wrap { position: relative; padding: 12px 14px; }
.vf-track-rail {
  position: absolute; left: 42px; right: 42px; top: 44px; height: 8px;
  background: #CBD5E1; border-radius: 999px; border: 1.5px solid #334155; overflow: hidden;
}
.vf-track-rail-fill { height: 100%; background: linear-gradient(90deg, #F59E0B, #FACC15); }
.vf-track-nodes { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.vf-track-node {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 6px; border-radius: 10px; background: rgba(255,255,255,0.88); border: 2px solid #94A3B8;
}
.vf-track-node.ready { border-color: #F59E0B; background: #FEFCE8; }
.vf-track-node.done { border-color: #22C55E; background: #F0FDF4; }
.vf-node-img { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 3px 2px rgba(0,0,0,0.25)); }
.vf-node-pct { font-family: var(--font-display); font-size: 12px; color: #1E293B; }
.vf-node-btn { width: 100%; min-height: 28px; font-size: 11px; padding: 1px 6px; }

.vf-medal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.vf-medal-tile {
  padding: 8px 7px 6px; display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center;
}
.vf-medal-art {
  width: 62px; height: 62px; border-radius: 50%;
  background: radial-gradient(circle, #FEF08A, #F59E0B);
  border: 2.5px solid #181C2E; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 0 rgba(24, 28, 46, 0.25);
}
.vf-medal-img { width: 46px; height: 46px; object-fit: contain; }
.vf-medal-tile.locked .vf-medal-art { background: #CBD5E1; filter: grayscale(0.92); opacity: 0.78; }

.pass-cycle-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
}

.bond-treasury-banner {
  padding: 6px 12px;
}

.bond-exchange-stack {
  gap: 7px;
}

.bond-exchange-grid {
  gap: 7px;
}

.bond-exchange-grid .vf-card-portrait {
  padding: 5px 7px 5px;
  gap: 3px;
}

.bond-exchange-grid .vf-art-stage.sm {
  height: 54px;
}

.bond-exchange-grid .vf-art-stage.sm .vf-art-img {
  width: 48px;
  height: 48px;
}

.bond-exchange-grid .vf-cta-btn {
  min-height: 31px;
}

.ipo-confirm-warn {
  background: #FEE2E2;
  color: #991B1B;
  border-color: #DC2626;
}

.sector-focus-highlight {
  outline: 3.5px solid #FFD52E;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(255, 213, 46, 0.35);
}

@media (max-width: 1360px) {
  .vf-art-stage { height: 74px; }
  .vf-art-img { width: 66px; height: 66px; }
  .vf-hero-art { width: 70px; height: 70px; }
  .vf-ticker-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.sector-head-flex {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.sector-sprite-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  border: 2px solid #181C2E;
  background: #FFFFFF;
  flex-shrink: 0;
}

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

.stock-terminal-top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 10px;
}

#modal-stock-chart {
  width: 100%;
  height: 168px;
  display: block;
  background: #0D1B3E;
  border: 2.5px solid #181C2E;
  border-radius: 10px;
}

.auction-duel-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
}

.settings-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 10px;
  font-weight: 800;
  font-size: 13.5px;
  color: #181822;
}

.setting-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tycoon-slider {
  width: 130px;
  accent-color: #0D4FB8;
  cursor: pointer;
}

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

.lang-choice-btn {
  min-width: 0;
  max-width: 100%;
  min-height: 32px;
  font-size: 12px;
  padding: 1px 6px;
}

.lang-choice-btn.active {
  background-color: #FDCB0D !important;
  border-image: url('../assets/ui/vault_vibrant_popout_tycoon/btn_claim.png') 54 51 103 77 fill / 8px 11px 12px 11px / 0 stretch !important;
  color: #181822 !important;
  text-shadow: none !important;
}

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

.checkin-cell {
  min-width: 0;
  padding: 5px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 800;
}

.checkin-cell img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* ==================== PREVIEW-ONLY DEV PANEL (?dev=1 pill; F2 hotkey) ==================== */

#dev-pill-btn {
  position: fixed;
  bottom: 10px;
  left: 10px;
  z-index: 140;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1.5px solid #FFE14D;
  background: rgba(15, 23, 42, 0.88);
  color: #FFE14D;
  font-family: monospace;
  font-size: 11px;
  cursor: pointer;
}

#debug-panel {
  position: fixed;
  bottom: 42px;
  left: 10px;
  z-index: 145;
  width: 290px;
  padding: 10px;
  border-radius: 10px;
  border: 2px solid #FFE14D;
  background: rgba(15, 23, 42, 0.95);
  color: #F8FAFC;
  font-family: system-ui, sans-serif;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

/* ==================== 1280x720 LAPTOP VIEWPORT COMPACT FIT (ZERO TINY HUD TEXT <12px!) ==================== */

@media (max-width: 1460px), (max-height: 820px) {
  .top-command-bar {
    min-height: 46px;
    padding: 5px 14px 5px;
    gap: 6px;
  }

  .hud-cluster {
    gap: 5px;
  }

  .uiv-hud-pill {
    border-width: 6px 9px 6px 9px;
  }

  .hud-sim-badge {
    min-height: 30px;
    font-size: 12px;
    padding: 0 5px;
  }

  .hud-currency-pill {
    min-height: 30px;
    font-size: 12.5px;
    padding: 0 5px 0 2px;
  }

  .uiv-popout > .uiv-pop-icon {
    width: 22px;
    height: 22px;
    margin: -4px 2px -4px -5px;
  }

  .hud-rate {
    font-size: 12px;
  }

  .bulk-pill-group {
    min-height: 30px;
    gap: 2px;
    padding: 0 2px;
  }

  .bulk-chip {
    font-size: 12px;
    padding: 1px 5px;
  }

  .hud-compact-btn,
  .hud-top-btn {
    min-height: 32px;
    height: 32px;
    font-size: 12px;
    border-width: 6px 8px 9px 8px;
    padding: 0 6px;
  }

  .hud-top-btn.has-badge {
    padding-right: 20px;
  }

  .hud-top-btn img {
    width: 18px;
    height: 18px;
  }

  .hud-icon-btn {
    width: 34px;
    height: 32px;
    min-width: 34px;
    border-width: 6px 7px 8px 7px;
  }

  .hud-icon-btn img {
    width: 18px;
    height: 18px;
  }

  .floating-side-cluster {
    top: 50px;
    gap: 5px;
  }

  .left-cluster {
    left: 8px;
    width: 196px;
  }

  .right-cluster {
    right: 12px;
    width: 200px;
  }

  .float-widget {
    border-width: 7px 7px 10px 7px;
    padding: 2px 5px 4px;
    gap: 3px;
  }

  .widget-title {
    font-size: 12.5px;
  }

  .widget-copy {
    font-size: 12px;
    line-height: 1.15;
  }

  .widget-subcopy {
    font-size: 12px;
  }

  .step-pill,
  .timer-chip,
  .div-chip {
    font-size: 12px;
    padding: 1px 5px;
  }

  .mini-cta,
  .full-mini-cta {
    min-height: 29px;
    font-size: 12px;
    border-width: 5px 7px 8px 7px;
  }

  #mini-sparkline-canvas {
    height: 38px;
  }

  .mini-ticker-row {
    padding: 2px 4px;
    font-size: 12px;
  }

  .ticker-sym {
    font-size: 12px;
  }

  .rival-avatar {
    width: 36px;
    height: 36px;
  }

  .ops-dock {
    bottom: 8px;
    gap: 7px;
  }

  .ops-tile-btn {
    width: 84px;
    height: 68px;
    min-height: 68px;
    border-width: 5px 5px 8px 5px !important;
  }

  .ops-tile-btn.ops-hero-surge {
    width: 90px;
    height: 72px;
  }

  .ops-tile-icon {
    width: 40px;
    height: 40px;
  }

  .ops-tile-btn.ops-hero-surge .ops-tile-icon {
    width: 43px;
    height: 43px;
  }

  .ops-tile-label {
    font-size: 12px;
  }

  .notify-badge {
    top: -6px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    font-size: 12px;
    line-height: 14px;
  }

  /* Title compact fit at 720p */
  .title-hero-showcase {
    width: 224px;
  }

  #title-hero-portrait {
    width: 204px;
    height: 222px;
  }

  .game-logo-title {
    font-size: 52px;
  }

  .game-logo-subtitle {
    font-size: 15px;
  }

  .title-play-cta {
    min-width: 248px;
    height: 58px;
    font-size: 22px;
  }

  /* Shop & Modals compact fit at 720p */
  .modal-card {
    width: min(910px, 95vw);
    max-height: 93vh;
    border-width: 15px 15px 20px 15px;
    padding: 4px 10px 8px;
    gap: 6px;
  }

  .modal-ribbon-title {
    font-size: 16px;
    border-width: 8px 14px 8px 14px;
  }

  .shop-art-thumb {
    width: 54px;
    height: 54px;
  }

  .shop-card-title {
    font-size: 12.5px;
  }

  .shop-buy-btn {
    min-height: 31px;
    font-size: 12px;
    border-width: 5px 7px 8px 7px;
  }
}

/* Narrow-Viewport Top HUD Safety Guard (guarantees 0px left/right edge clipping even in 1024-1260px frames & long FR/RU/DE strings) */
@media (max-width: 1260px) {
  .top-command-bar {
    padding: 4px 12px 5px;
    gap: 4px;
  }

  .hud-cluster {
    gap: 4px;
  }

  .hud-sim-badge {
    padding: 0 4px;
  }

  .hud-currency-pill {
    padding: 0 4px 0 2px;
  }

  .hud-top-btn {
    padding: 0 5px;
    gap: 3px;
  }

  .hud-top-btn.has-badge {
    padding-right: 19px;
  }
}

@media (max-width: 1140px) {
  #hud-pill-sim {
    display: none !important;
  }
}

/* ==================== SPOTLIGHT FTUE (`.tut-spotlight` + `.tut-hand`), 3-ICON GUIDE & VICTORY 3-STAR ==================== */

.tut-overlay-root {
  position: fixed;
  inset: 0;
  z-index: 58;
  pointer-events: none !important;
}

.tut-spotlight {
  position: fixed;
  border-radius: 18px;
  border: 4px solid #FFE14D;
  box-shadow: 0 0 0 4px rgba(24, 28, 46, 0.85), 0 0 22px rgba(255, 225, 77, 0.92), inset 0 0 18px rgba(255, 225, 77, 0.45);
  pointer-events: none !important;
  animation: tutPulseRing 1.3s ease-in-out infinite;
}

@keyframes tutPulseRing {
  0%, 100% { transform: scale(1); opacity: 0.96; }
  50% { transform: scale(1.06); opacity: 1; }
}

.tut-hand {
  position: fixed;
  width: 48px;
  height: 48px;
  pointer-events: none !important;
  z-index: 60;
  filter: drop-shadow(0 5px 6px rgba(10, 16, 36, 0.65));
  animation: tutHandTap 0.95s ease-in-out infinite;
}

.tut-hand.dock-point {
  transform-origin: center center;
  animation: tutHandDockTap 0.95s ease-in-out infinite;
}

@keyframes tutHandTap {
  0%, 100% { transform: translate(0, 0) rotate(-14deg) scale(1); }
  50% { transform: translate(-8px, -10px) rotate(-6deg) scale(0.92); }
}

@keyframes tutHandDockTap {
  0%, 100% { transform: translate(-50%, -86%) rotate(155deg) scale(1); }
  50% { transform: translate(-50%, -68%) rotate(155deg) scale(0.92); }
}

.tut-coach-pill {
  position: fixed;
  transform: translateX(-50%);
  padding: 2px 12px;
  font-family: var(--font-display);
  font-size: 14px;
  color: #181822;
  white-space: nowrap;
  pointer-events: none !important;
  z-index: 59;
}

/* 3-Icon Visual Feature Guide Strip */
.feature-guide-root {
  position: fixed;
  inset: 0;
  z-index: 122;
}

.fg-strip-panel {
  width: min(740px, 95vw) !important;
}

.fg-strip-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  padding: 6px 2px;
}

.fg-step-unit {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.fg-step-card {
  position: relative;
  flex: 1;
  min-width: 0;
  padding: 10px 8px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 7px;
}

.fg-step-num {
  position: absolute;
  top: -8px;
  left: -6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #FFD52E;
  border: 2.5px solid #181C2E;
  font-family: var(--font-display);
  font-size: 13.5px;
  line-height: 21px;
  color: #181822;
}

.fg-step-art {
  width: 100%;
  height: 92px;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.95), rgba(186, 230, 253, 0.45));
  border: 2px solid rgba(29, 78, 216, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fg-step-art img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.fg-step-caption {
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.15;
  color: #15192B;
}

.fg-step-arrow {
  font-family: var(--font-display);
  font-size: 28px;
  color: #0D4FB8;
  flex-shrink: 0;
}

.fg-footer-center {
  display: flex;
  justify-content: center;
  padding-top: 4px;
}

.fg-gotit-btn {
  min-width: 210px;
  min-height: 48px;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Visual-First Dual Action Grid & Victory 3-Star Celebration */
.vf-dual-btns {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.vf-dual-btns > button {
  min-width: 0;
  min-height: 33px;
  padding: 1px 4px;
  font-size: 11.5px;
}

.victory-stage-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 6px 12px 10px;
}

#victory-fx-canvas {
  width: 360px;
  height: 144px;
  max-width: 100%;
  display: block;
}

.victory-score-counter {
  font-family: var(--font-display);
  font-size: 32px;
  color: #FFE14D;
  paint-order: stroke fill;
  -webkit-text-stroke: 5px #181C2E;
  text-shadow: 0 4px 0 #181C2E;
}

.victory-next-cta {
  min-width: 248px;
  min-height: 58px;
  font-size: 21px;
  padding: 4px 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

@media (max-width: 900px) {
  .title-center-stage {
    flex-direction: column;
    gap: 10px;
  }

  .title-command-card {
    width: 94vw;
  }

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

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

  .stock-terminal-top {
    grid-template-columns: 1fr;
  }
}
