/* ==========================================================================
 * Clearwing Terminal Tycoon — Commercial UI Vault Stylesheet (`vibrant_popout_tycoon`)
 * Rounds 5-9 Studio Polish:
 * - Pillar 1: Full-Bleed Heroic Title Screen (`0 BOXED_LOGIN_TITLE_SCREEN`, 56-68px 3D Logo, >=280x62px PLAY CTA)
 * - Pillar 2: Full-Bleed 3D Airport + Readable HUD (`>= 12.5-14px`, `0 TINY_UNREADABLE_HUD_TEXT` at 1080p & 720p)
 * - Pillar 3: Pulsing `.tut-spotlight` Ring + Animated `.tut-hand` + 3-Icon Visual Guide Strip
 * - Pillar 5: Anti-SaaS `60/25/15` Portrait Cards (`>= 55%` PNG art, `<= 3`-word titles, `<img class="rwd-ico">` chips)
 * - Pillar 6: 3-Star Sunburst Crate Celebration + Icon Settings Modal
 * - Zero `backdrop-filter: blur()`, Zero `ctx.shadowBlur`, Single-line `nowrap` Top Bar at 1080p & 720p!
 * ========================================================================== */

:root,
[data-ui-vault-style="vibrant_popout_tycoon"] {
  --cw-sky: #6EDACD;
  --cw-lime: #A5D250;
  --cw-slate: #5D646F;
  --cw-cloud: #F0F2EC;
  --cw-sand: #BFC4A4;
  --cw-pine: #709873;
  --cw-ink: #181C2E;
  --cw-ink-soft: #28324E;
  --cw-cobalt: #0E6BE8;
  --cw-gold: #FFD52E;
  --cw-purple: #7C3AED;
  --cw-danger: #E11D48;
  --font-display: 'Arial Rounded MT Bold', 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: #6EDACD;
  color: var(--cw-ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

.hidden {
  display: none !important;
}

button,
select,
input {
  font-family: inherit;
}

button {
  position: relative;
  overflow: visible !important;
  cursor: pointer;
  transition: transform 0.11s cubic-bezier(0.2, 0.8, 0.3, 1.15);
}

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

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

button:disabled {
  cursor: not-allowed;
}

.btn-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

/* ==========================================================================
   23+ REAL 9-SLICE `border-image` REGIONS + WCAG `padding-box` CONTRAST FILLS
   ========================================================================== */

/* 1. Royal Cobalt Modal Frame (`frame_modal.png`) */
.uiv-modal-9s {
  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: #181C2E;
}

/* 2. Sunny Gold Claim / VIP Banner (`card_claim_banner.png`) */
.uiv-claim-banner-9s {
  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;
  color: #181C2E;
}

/* 3. Electric Royal Ribbon Header (`ribbon_header.png`) */
.uiv-ribbon-9s {
  background-color: #0B5BD3;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 10px 16px 10px 16px;
  border-image: url('../assets/ui/vault_vibrant_popout_tycoon/ribbon_header.png') 89 111 79 110 fill / 10px 16px 10px 16px / 0 stretch;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 900;
  text-shadow: 0 2px 0 #10172A;
}

/* 4. Dark Metallic Top HUD Pill (`hud_pill.png`) */
.uiv-pill-9s {
  background-color: #1C2A42;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 8px 13px 8px 13px;
  border-image: url('../assets/ui/vault_vibrant_popout_tycoon/hud_pill.png') 54 74 52 75 fill / 8px 13px 8px 13px / 0 stretch;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 800;
  text-shadow: 0 1.5px 0 #0D1322;
}

/* 5. Cobalt Slot Dock Button (`slot_dock.png`) */
.uiv-slot-dock-9s {
  background-color: #0D5BD6;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 9px 10px 12px 10px;
  border-image: url('../assets/ui/vault_vibrant_popout_tycoon/slot_dock.png') 45 40 67 40 fill / 9px 10px 12px 10px / 0 stretch;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 800;
  text-shadow: 0 1.5px 0 #101829;
}

/* 6. Vibrant Lime Primary CTA (`vault/btn_primary.png`) */
.uiv-btn-primary-9s {
  background-color: #69EF05;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 9px 11px 12px 11px;
  border-image: url('../assets/ui/vault_vibrant_popout_tycoon/btn_primary.png') 67 58 91 59 fill / 9px 11px 12px 11px / 0 stretch;
  color: #141926;
  font-family: var(--font-display);
  font-weight: 900;
}

/* 7. Royal Purple Secondary / Rush CTA (`btn_secondary.png`) */
.uiv-btn-secondary-9s {
  background-color: #6D28D9;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 9px 11px 12px 11px;
  border-image: url('../assets/ui/vault_vibrant_popout_tycoon/btn_secondary.png') 66 55 92 56 fill / 9px 11px 12px 11px / 0 stretch;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 800;
  text-shadow: 0 1.5px 0 #1E1038;
}

/* 8. Sunny Gold Claim / Shop CTA (`btn_claim.png`) */
.uiv-btn-claim-9s {
  background-color: #FDCB0D;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 9px 11px 12px 11px;
  border-image: url('../assets/ui/vault_vibrant_popout_tycoon/btn_claim.png') 54 51 103 77 fill / 9px 11px 12px 11px / 0 stretch;
  color: #181C2E;
  font-family: var(--font-display);
  font-weight: 900;
}

/* 9. Cool Slate Neutral / Disabled CTA (`btn_disabled.png`) */
.uiv-btn-disabled-9s,
button.uiv-btn-primary-9s:disabled,
button.uiv-btn-claim-9s:disabled {
  background-color: #CBD5E1;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 9px 10px 12px 10px;
  border-image: url('../assets/ui/vault_vibrant_popout_tycoon/btn_disabled.png') 57 62 95 65 fill / 9px 10px 12px 10px / 0 stretch;
  color: #181C2E;
  font-family: var(--font-display);
  font-weight: 800;
}

/* 10. Crisp Cloud Common Card (`card_common.png`) */
.uiv-card-common-9s {
  background-color: #F5F6F6;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 10px 10px 13px 10px;
  border-image: url('../assets/ui/vault_vibrant_popout_tycoon/card_common.png') 59 58 93 58 fill / 10px 10px 13px 10px / 0 stretch;
  color: #181C2E;
}

/* 11. Sky-Tint Rare Card (`card_rare.png`) */
.uiv-card-rare-9s {
  background-color: #DAEEFC;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 10px 10px 13px 10px;
  border-image: url('../assets/ui/vault_vibrant_popout_tycoon/card_rare.png') 60 59 93 59 fill / 10px 10px 13px 10px / 0 stretch;
  color: #181C2E;
}

/* 12. Lavender Epic Card (`card_epic.png`) */
.uiv-card-epic-9s {
  background-color: #EADBFC;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 10px 10px 13px 10px;
  border-image: url('../assets/ui/vault_vibrant_popout_tycoon/card_epic.png') 62 58 97 57 fill / 10px 10px 13px 10px / 0 stretch;
  color: #181C2E;
}

/* 13. Sunlit Gold Legendary Card (`card_legendary.png`) */
.uiv-card-legendary-9s {
  background-color: #FDF8DD;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 10px 10px 13px 10px;
  border-image: url('../assets/ui/vault_vibrant_popout_tycoon/card_legendary.png') 62 58 99 59 fill / 10px 10px 13px 10px / 0 stretch;
  color: #181C2E;
}

/* 14. Recessed Dark Progress Bar Track (`bar_track.png`) */
.uiv-bar-track-9s {
  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;
  overflow: hidden;
}

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

/* 16. Active Electric Tab Plate (`tab_active.png`) */
.uiv-tab-9s.active {
  background-color: #0B5BD3;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 8px 10px 4px 10px;
  border-image: url('../assets/ui/vault_vibrant_popout_tycoon/tab_active.png') 51 27 14 51 fill / 8px 10px 4px 10px / 0 stretch;
  color: #FFFFFF;
  text-shadow: 0 1.5px 0 #101829;
}

/* 17. Art Kit Painted Panel (`assets/ui/frame_panel.png`) */
.uiv-frame-panel-9s {
  background-color: #F2F7FA;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 20px 10px 10px 16px;
  border-image: url('../assets/ui/frame_panel.png') 144 47 39 86 fill / 20px 10px 10px 16px / 0 stretch;
  color: #181C2E;
}

/* 18. Art Kit Emerald Primary Button (`assets/ui/btn_primary.png`) */
.uiv-artkit-btn-9s {
  background-color: #2DC26E;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 10px 12px 13px 12px;
  border-image: url('../assets/ui/btn_primary.png') 168 173 211 173 fill / 10px 12px 13px 12px / 0 stretch;
  color: #141926;
  font-family: var(--font-display);
  font-weight: 900;
}

/* 19. Pillar Card Dynamic Rarity 9-Slice Variants */
.pillar-card {
  background-color: #E2F1FC;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 8px 8px 11px 8px;
  border-image: url('../assets/ui/vault_vibrant_popout_tycoon/card_rare.png') 60 59 93 59 fill / 8px 8px 11px 8px / 0 stretch;
  color: #181C2E;
}

/* 20. Selected Pillar Card Legendary Gold 9-Slice */
.pillar-card.selected {
  background-color: #FDF8DD;
  background-clip: padding-box;
  border-image: url('../assets/ui/vault_vibrant_popout_tycoon/card_legendary.png') 62 58 99 59 fill / 8px 8px 11px 8px / 0 stretch;
}

/* 21. Shop Pack Card 9-Slice */
.shop-card {
  background-color: #EBF5FD;
  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: #181C2E;
}

/* 22. Featured Shop Bundle Legendary Gold 9-Slice */
.shop-card.featured {
  background-color: #FEF8DB;
  background-clip: padding-box;
  border-image: url('../assets/ui/vault_vibrant_popout_tycoon/card_legendary.png') 62 58 99 59 fill / 10px 10px 14px 10px / 0 stretch;
}

/* Glossy Red Exit Button */
.uiv-btn-danger-solid {
  background: linear-gradient(180deg, #FF5A6E 0%, #BE123C 100%);
  border: 2.5px solid #181C2E;
  border-radius: 11px;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 900;
  text-shadow: 0 1.5px 0 #181C2E;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), 0 3px 0 #181C2E;
}

/* ==========================================================================
   OUTER-CORNER `.notify-badge` (Positioned OUTSIDE 9-slice padding-box!)
   ========================================================================== */
.notify-badge {
  position: absolute;
  top: -7px;
  right: -2px;
  z-index: 8;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #FF4D62 0%, #BE123C 100%);
  border: 2px solid #181C2E;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 11px;
  line-height: 14px;
  text-align: center;
  box-shadow: 0 2px 0 #181C2E;
  pointer-events: none;
}

/* ==========================================================================
   PILLAR 1: HEROIC FULL-BLEED NO-BOX TITLE SCREEN (`0 BOXED_LOGIN_TITLE_SCREEN`)
   ========================================================================== */
.title-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

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

.title-sky-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 58% 46%, rgba(12, 32, 68, 0.36) 0%, rgba(12, 32, 68, 0.08) 54%, rgba(12, 32, 68, 0.28) 100%),
    linear-gradient(180deg, rgba(12, 26, 52, 0.22) 0%, rgba(12, 26, 52, 0.04) 48%, rgba(12, 26, 52, 0.38) 100%);
  pointer-events: none;
}

.title-corner-utils {
  position: fixed;
  top: 16px;
  right: 18px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 8px;
}

.title-corner-btn {
  height: 40px;
  padding: 0 10px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

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

.title-stage-wrap {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 3.5vw, 56px);
  width: min(1160px, 94vw);
  background: transparent;
  border: none;
}

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

.title-director-halo {
  position: absolute;
  top: 12px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 253, 240, 0.78) 0%, rgba(110, 218, 205, 0) 70%);
  pointer-events: none;
}

.title-portrait-host {
  position: relative;
  width: clamp(210px, 21vw, 286px);
  height: clamp(250px, 26vw, 340px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.title-hero-portrait {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(15, 23, 42, 0.42));
}

.title-director-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 12px;
}

.badge-mini-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  margin-left: -6px;
}

.title-director-copy {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.18;
}

.title-director-copy strong {
  font-size: 14px;
  color: #FFFFFF;
}

.title-director-copy span {
  font-size: 12px;
  font-family: var(--font-body);
  font-weight: 800;
  color: #BAE6FD;
}

/* Strictly ZERO background, ZERO border-image, ZERO box around H1! */
.title-hero-focal {
  width: min(640px, 60vw);
  background: transparent !important;
  border: none !important;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.title-ribbon {
  padding: 2px 20px;
  font-size: 14px;
  letter-spacing: 0.06em;
}

.game-logo-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 4.7vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.01em;
  color: #FFFDF7;
  -webkit-text-stroke: 3px #0E2344;
  paint-order: stroke fill;
  text-shadow:
    0 5px 0 #0E2344,
    0 10px 24px rgba(10, 22, 46, 0.55);
}

.game-logo-sub {
  margin: 0;
  font-size: clamp(14px, 1.3vw, 17px);
  font-weight: 800;
  color: #FFFFFF;
  text-shadow: 0 2px 6px rgba(10, 22, 46, 0.72), 0 1px 0 #0E2344;
}

.title-feature-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 1px 10px;
}

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

.title-loading-wrap {
  width: min(400px, 90%);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.loading-track {
  width: 100%;
  height: 20px;
}

.loading-label {
  font-size: 13.5px;
  font-weight: 800;
  color: #FFFFFF;
  text-shadow: 0 2px 4px rgba(10, 22, 46, 0.75);
}

.title-ready-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

/* Big Heroic PLAY CTA (>= 280x62px; contains 0 <img> so 100% exempt from ANT_ICON_IN_GIANT_BOX!) */
.title-play-cta {
  min-width: 296px;
  width: 320px;
  height: 62px;
  font-size: 23px;
  letter-spacing: 0.04em;
  filter: drop-shadow(0 8px 18px rgba(10, 22, 46, 0.45));
}

.title-version-note {
  font-size: 12.5px;
  font-weight: 800;
  color: #E2E8F0;
  text-shadow: 0 1.5px 4px rgba(10, 22, 46, 0.8);
}

/* ==========================================================================
   SCENE 2: FULL-BLEED 100vw x 100vh 3D STAGE & IDLE OVERLAYS
   ========================================================================== */
.game-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.viewport-3d {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
}

#game-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

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

.cutin-layer {
  z-index: 120;
}

/* ==========================================================================
   TOP FLOATING COMMAND BAR (Single-line `nowrap` at 1920x1080 & 1280x720!)
   ========================================================================== */
.top-command-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  min-height: 54px;
  padding: 7px 14px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap !important;
  gap: 8px;
  background: linear-gradient(180deg, rgba(16, 28, 52, 0.50) 0%, rgba(16, 28, 52, 0.12) 72%, rgba(16, 28, 52, 0) 100%);
  pointer-events: none;
}

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

.hud-pill {
  position: relative;
  overflow: visible !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 6px 0 2px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

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

.popout-pill-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  margin: -8px 1px -8px -14px;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.42));
  pointer-events: none;
  flex-shrink: 0;
}

.pill-main-num {
  font-size: 14px;
  color: #FFFFFF;
}

.pill-sub-rate {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 12.5px;
  color: #86EFAC;
}

.pill-plus-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: #69EF05;
  color: #181C2E;
  font-size: 13px;
  font-weight: 900;
}

.top-action-btn {
  height: 40px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  white-space: nowrap;
}

.top-btn-icon {
  width: 23px;
  height: 23px;
  object-fit: contain;
  margin: -4px 1px -4px -4px;
  flex-shrink: 0;
}

/* ==========================================================================
   FLOATING LEFT & RIGHT EDGE CLUSTERS (Readable >= 13px HUD, Compact Footprint)
   ========================================================================== */
.edge-cluster {
  position: fixed;
  top: 60px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 7px;
  pointer-events: none;
}

.edge-cluster > * {
  pointer-events: auto;
}

.left-cluster {
  left: 10px;
  width: clamp(224px, 14.2vw, 258px);
  max-height: calc(100vh - 72px);
}

.right-cluster {
  right: 10px;
  width: clamp(224px, 14.2vw, 256px);
  max-height: calc(100vh - 72px);
}

.cluster-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 1px 4px;
}

.cluster-header-title {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bulk-switch {
  display: inline-flex;
  gap: 3px;
  flex-shrink: 0;
}

.bulk-pill {
  height: 25px;
  padding: 0 6px;
  border-radius: 6px;
  border: 2px solid #181C2E;
  background: #FFFDF5;
  color: #181C2E;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
}

.bulk-pill.active {
  background: #FFD52E;
  color: #181C2E;
}

.auto-dispatch-bar {
  width: 100%;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
}

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

.smart-roi-bar {
  height: 34px;
  padding: 0 5px !important;
  gap: 5px;
  font-size: 12px;
}

.smart-roi-bar .inline-bar-icon {
  width: 18px;
  height: 18px;
  margin: 0;
}

#lbl-smart-bottleneck {
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

/* 4-Pillar Terminal Stack */
.pillar-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  overflow-x: visible;
  padding-right: 2px;
  scrollbar-width: thin;
}

.pillar-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 2px 4px;
  cursor: pointer;
}

.pillar-card.is-bottleneck {
  box-shadow: 0 0 0 2px #F59E0B;
}

.pillar-head-line {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.pillar-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
}

.pillar-meta {
  flex: 1;
  min-width: 0;
}

.pillar-name-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.pillar-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  color: #181C2E;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pillar-lvl-badge {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  padding: 1px 5px;
  border-radius: 6px;
  background: #181C2E;
  color: #FFFFFF;
  flex-shrink: 0;
}

.pillar-stat-line {
  font-size: 12.5px;
  font-weight: 800;
  color: #1E3A5F;
  line-height: 1.15;
}

.pillar-bar-line {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pillar-cycle-meter {
  flex: 1;
  height: 11px;
}

.pillar-atc-tag {
  font-size: 12px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 5px;
  background: #DCFCE7;
  color: #14532D;
  border: 1.5px solid #166534;
  flex-shrink: 0;
}

.pillar-atc-tag.manual {
  background: #FEF3C7;
  color: #78350F;
  border-color: #B45309;
}

.pillar-upg-btn {
  width: 100%;
  height: 33px;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
}

/* Right Cluster: Sunny VIP Charter Card */
.vip-charter-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 2px 4px;
}

.vip-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vip-captain-avatar {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.58);
  border: 2px solid #181C2E;
  flex-shrink: 0;
}

.vip-card-copy {
  flex: 1;
  min-width: 0;
}

.vip-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.vip-card-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 14px;
  color: #181C2E;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vip-mult-pill {
  background: #181C2E;
  color: #FFD52E;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 12px;
  padding: 1px 6px;
  border-radius: 999px;
  flex-shrink: 0;
}

.vip-status-sub {
  font-size: 12.5px;
  font-weight: 800;
  color: #3F2E05;
  line-height: 1.2;
}

.radar-gauge-track {
  width: 100%;
  height: 13px;
}

.vip-launch-btn {
  width: 100%;
  height: 38px;
  font-size: 13px;
}

/* Gate Control Card */
.gate-control-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 2px 4px;
}

.gate-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.gate-station-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  color: #181C2E;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-mini-tag {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  padding: 1px 6px;
  border-radius: 6px;
  background: #181C2E;
  color: #FFFFFF;
}

.gate-station-stats {
  font-size: 12.5px;
  font-weight: 800;
  color: #1E3A5F;
}

.express-dispatch-btn {
  width: 100%;
  height: 36px;
  font-size: 12.5px;
}

/* 3-Card Visual Flight Contracts */
.contracts-widget {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 2px 4px;
}

.contracts-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.contracts-title-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13.5px;
  color: #181C2E;
}

.mini-head-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.phase-chest-pill {
  height: 30px;
  border-width: 6px 8px 8px 8px;
  padding: 0 11px 0 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
}

.chest-mini-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.contracts-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.contract-entry {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 9px;
  background: #E8F1FA;
  border: 1.5px solid #B6CBE0;
}

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

.contract-info {
  flex: 1;
  min-width: 0;
}

.contract-title {
  font-size: 12px;
  font-weight: 800;
  color: #181C2E;
  line-height: 1.15;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: break-word;
}

.contract-prog {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: 3px;
  font-size: 12px;
  font-weight: 800;
  color: #0369A1;
}

.contract-claim-btn {
  height: 29px;
  padding: 0 6px;
  font-size: 12px;
  flex-shrink: 0;
}

/* ==========================================================================
   FLOATING BOTTOM CENTER OPS DOCK (Compact 76px, 60.5% Icon Fill Ratio!)
   ========================================================================== */
.ops-dock {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: flex-end;
  gap: 11px;
  pointer-events: none;
}

.ops-dock-btn {
  pointer-events: auto;
  width: 96px;
  height: 76px;
  padding: 1px 2px !important;
  border-width: 7px 6px 10px 6px !important;
  display: grid;
  grid-template-rows: 46px auto;
  align-content: start;
  justify-items: center;
  gap: 1px;
  text-align: center;
}

.ops-dock-hero {
  width: 100px;
  height: 80px;
  grid-template-rows: 48px auto;
}

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

.ops-dock-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: -0.015em;
  line-height: 1.05;
  width: 100%;
  max-width: none;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

.ops-dock.has-seasons {
  gap: 9px;
}

.ops-dock.has-seasons .ops-dock-btn {
  width: 94px;
}

.ops-dock.has-seasons .ops-dock-hero {
  width: 98px;
}

/* ==========================================================================
   PILLAR 3: PULSING `.tut-spotlight` RING, `.tut-hand` & 3-ICON GUIDE STRIP
   ========================================================================== */
.tutorial-coach {
  position: fixed;
  top: 58px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 58;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 3px 10px;
  max-width: calc(100vw - 540px);
}

.coach-avatar {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.coach-step-line {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.coach-step-tag {
  background: #181C2E;
  color: #FFD52E;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 12px;
  padding: 1px 7px;
  border-radius: 6px;
  flex-shrink: 0;
}

.coach-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13.5px;
  color: #181C2E;
  white-space: nowrap;
}

.coach-actions {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.coach-btn {
  height: 31px;
  padding: 0 8px;
  font-size: 12px;
}

/* Non-blocking Spotlight & Pointer-Hand Layer (`pointer-events: none` -> 0 HIT_BLOCKED!) */
.tut-spotlight-layer {
  position: fixed;
  inset: 0;
  z-index: 165;
  pointer-events: none !important;
}

.tut-spotlight {
  position: fixed;
  border-radius: 14px;
  border: 3.5px solid #FFD52E;
  outline: 2.5px solid #181C2E;
  pointer-events: none !important;
  will-change: transform, opacity;
  animation: cwSpotPulse 1.15s ease-in-out infinite alternate;
}

@keyframes cwSpotPulse {
  from { transform: scale(0.98); opacity: 0.88; }
  to { transform: scale(1.04); opacity: 1; }
}

.tut-hand-anchor {
  position: fixed;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  pointer-events: none !important;
}

.tut-hand {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 6px rgba(15, 23, 42, 0.5));
  animation: cwHandTap 0.85s ease-in-out infinite alternate;
}

@keyframes cwHandTap {
  from { transform: translate(0, 0) rotate(-14deg); }
  to { transform: translate(-5px, -5px) rotate(-6deg) scale(0.94); }
}

.tut-callout-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: #181C2E;
  border: 2px solid #FFD52E;
  color: #FFD52E;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13px;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

/* 3-Icon Visual Feature Guide Strip */
.fg-tabs-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
}

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

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

.fg-step-num {
  position: absolute;
  top: 4px;
  left: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #181C2E;
  color: #FFD52E;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13px;
  line-height: 24px;
}

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

.fg-step-lbl {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  color: #181C2E;
}

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

.toast-stack {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 360;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.game-toast {
  padding: 8px 18px;
  border-radius: 999px;
  background: #181C2E;
  border: 2.5px solid #FFD52E;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 22px rgba(10, 18, 36, 0.45);
  white-space: nowrap;
}

/* ==========================================================================
   MODALS (#modal-root — Zero backdrop-filter blur, Visual-First 60/25/15!)
   ========================================================================== */
.modal-root {
  position: relative;
  z-index: 240;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: rgba(12, 20, 38, 0.72);
}

.modal-dialog {
  width: min(760px, 94vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 14px 12px;
}

.modal-dialog.modal-wide {
  width: min(960px, 95vw);
}

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

.modal-head {
  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-title-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
}

.modal-ribbon-title {
  margin: 0;
  font-size: 19px;
  padding: 1px 14px;
}

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

.modal-util-btn {
  height: 36px;
  padding: 0 10px;
  font-size: 13px;
}

.modal-close-x {
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  border: none;
  background: url('../assets/ui/vault_vibrant_popout_tycoon/btn_close.png') center / contain no-repeat;
  flex-shrink: 0;
}

.modal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.modal-tab-btn {
  height: 34px;
  padding: 0 12px;
  border-radius: 8px 8px 3px 3px;
  border: 2px solid #181C2E;
  background: #E2E8F0;
  color: #181C2E;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
}

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

/* Shared Currency & Stat Icon Chips (`0 ASCII_CURRENCY_SLOP`) */
.rwd-ico {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: -3px;
  flex-shrink: 0;
}

.rwd-ico-xs {
  width: 14px;
  height: 14px;
  object-fit: contain;
  vertical-align: -2px;
  flex-shrink: 0;
}

/* ==========================================================================
   PILLAR 5: VISUAL-FIRST `60 / 25 / 15` PORTRAIT CARDS & MEDAL TILES
   ========================================================================== */
.vf-head-strip {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 8px;
}

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

.vf-kpi-pill,
.vf-wallet-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.45);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 800;
}

.vf-wallet-pill.gold {
  color: #FFD52E;
}

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

.vf-pill-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.vf-switch-btn {
  height: 33px;
  padding: 0 11px;
  border-radius: 999px;
  border: 2px solid #181C2E;
  background: #E2E8F0;
  color: #181C2E;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.vf-switch-btn.active {
  background: #FFD52E;
  color: #181C2E;
  box-shadow: 0 2px 0 #181C2E;
}

.vf-mini-cta {
  height: 34px;
  padding: 0 10px;
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

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

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

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

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

.vf-card-portrait,
.vf-medal-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
  padding: 5px 8px 6px;
}

.vf-medal-tile.is-locked .vf-art-img {
  filter: grayscale(0.75) opacity(0.78);
}

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

.vf-tag-dark {
  padding: 1px 7px;
  border-radius: 6px;
  background: #181C2E;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11.5px;
}

.vf-tag-gold {
  padding: 1px 7px;
  border-radius: 6px;
  background: #FFD52E;
  border: 1.5px solid #181C2E;
  color: #181C2E;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 11.5px;
}

.vf-tag-claimed {
  padding: 1px 7px;
  border-radius: 6px;
  background: #22C55E;
  border: 1.5px solid #181C2E;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 11.5px;
}

.daily-card-claimed {
  opacity: 0.88;
}

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

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

.vf-art-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(15, 23, 42, 0.22));
}

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

.vf-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 14px;
  color: #181C2E;
  line-height: 1.15;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vf-stat-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(24, 28, 46, 0.16);
  color: #0F4C81;
  font-size: 12.5px;
  font-weight: 800;
}

.vf-meter {
  position: relative;
  width: 100%;
  height: 16px;
  border-radius: 999px;
  background: #1E293B;
  border: 1.5px solid #181C2E;
  overflow: hidden;
}

.vf-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #4ADE80 0%, #A3E635 100%);
  transition: width 0.2s ease-out;
}

.vf-meter-lbl {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 900;
  text-shadow: 0 1px 2px #000000;
}

.vf-cta-btn {
  width: 100%;
  height: 36px;
  font-size: 13px;
  padding: 0 8px;
  margin-top: auto;
}

.vf-cta-btn.sm {
  height: 32px;
  font-size: 12px;
}

.vf-wx-pills {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  margin-top: auto;
}

.vf-wx-btn {
  width: 100%;
  height: 26px;
  border-width: 5px 7px 7px 7px;
  padding: 0 8px;
  font-size: 11.5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vf-wx-btn .btn-label {
  display: block;
  width: 100%;
  text-align: center;
}

/* ==========================================================================
   SHOP MODAL (`#modal-shop`, 3x3 Visual-First 60/25/15 Grid!)
   ========================================================================== */
.shop-status-banner {
  padding: 6px 12px;
  border-radius: 10px;
  background: #DCFCE7;
  border: 2px solid #15803D;
  color: #14532D;
  font-weight: 800;
  font-size: 13px;
  text-align: center;
}

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

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

.shop-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
  padding: 5px 8px 6px;
}

.shop-badge {
  position: absolute;
  top: -8px;
  right: -2px;
  z-index: 5;
  padding: 2px 8px;
  border-radius: 999px;
  background: #E11D48;
  border: 2px solid #181C2E;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 11.5px;
}

.sku-art-stage {
  width: 100%;
  height: 68px;
  border-radius: 12px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.35) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-art {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.sku-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 14px;
  color: #181C2E;
  line-height: 1.15;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sku-perk-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(24, 28, 46, 0.16);
  color: #0F4C81;
  font-size: 12.5px;
  font-weight: 800;
}

.shop-buy-btn {
  width: 100%;
  height: 35px;
  font-size: 13px;
  margin-top: auto;
}

/* ==========================================================================
   LUGGAGE SORT, DAILY 4x2, OFFLINE, 3-STAR CHEST & ICON SETTINGS MODALS
   ========================================================================== */
.luggage-stats-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.luggage-stat-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  font-size: 13.5px;
}

.luggage-conveyor-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
}

.conveyor-belt-box {
  width: 100%;
  min-height: 88px;
  padding: 10px 14px;
  border-radius: 14px;
  background: repeating-linear-gradient(90deg, #1E293B 0px, #1E293B 28px, #334155 28px, #334155 34px);
  border: 3px solid #181C2E;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.luggage-queue-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.suitcase-box {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  border: 3px solid #181C2E;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13px;
  color: #181C2E;
  flex-shrink: 0;
}

.suitcase-box.front-bag {
  transform: scale(1.08);
  box-shadow: 0 0 0 3px #FFFFFF;
}

.suitcase-box.bag-gate_a { background: #38BDF8; }
.suitcase-box.bag-gate_b { background: #FACC15; }
.suitcase-box.bag-gate_c { background: #FB7185; }
.suitcase-box.bag-gate_d { background: #4ADE80; }

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

.luggage-chute-btn {
  min-height: 86px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px;
}

.chute-art-ico {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.chute-key {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 12px;
  padding: 1px 7px;
  border-radius: 6px;
  background: #181C2E;
  color: #FFD52E;
}

.chute-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13.5px;
  color: #181C2E;
}

/* Daily 4x2 Balanced Grid */
.daily-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.modal-footer-center {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

.modal-main-cta {
  min-width: 220px;
  height: 48px;
  font-size: 16px;
  padding: 0 20px;
  border-radius: 14px;
  transition: transform 0.14s cubic-bezier(0.2, 0.8, 0.3, 1.15), filter 0.14s ease, box-shadow 0.14s ease;
}

.modal-main-cta:hover:not(:disabled),
.modal-main-cta:focus-visible:not(:disabled) {
  transform: translateY(-3px) scale(1.055);
  filter: brightness(1.16) saturate(1.14) drop-shadow(0 6px 14px rgba(15, 23, 42, 0.34));
  box-shadow: 0 0 0 3px #FFD52E, 0 0 18px rgba(255, 213, 46, 0.85);
}

/* Offline & Pillar 6 3-Star Chest Celebration */
.offline-body,
.chest-modal-body {
  align-items: center;
  text-align: center;
}

.offline-portrait {
  width: 92px;
  height: 92px;
  object-fit: contain;
}

.offline-summary-text {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #334155;
}

.offline-payout-pill {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  padding: 4px 20px;
}

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

.victory-star-ico {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(15, 23, 42, 0.3));
}

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

.chest-stage-box {
  position: relative;
  width: 118px;
  height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chest-sunburst {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(253, 212, 29, 0.58), rgba(255, 255, 255, 0.06), rgba(253, 212, 29, 0.58), rgba(255, 255, 255, 0.06), rgba(253, 212, 29, 0.58));
  animation: cwSpin 8s linear infinite;
}

@keyframes cwSpin {
  to { transform: rotate(360deg); }
}

.chest-hero-img {
  position: relative;
  z-index: 2;
  width: 92px;
  height: 92px;
  object-fit: contain;
}

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

.loot-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px;
  font-size: 13.5px;
  font-weight: 900;
}

.loot-ico {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* Pillar 6 Settings Modal (Icons + Sliders + Glossy Toggles) */
.settings-list {
  gap: 7px;
}

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

.settings-lbl-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

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

.settings-lbl {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: #181C2E;
}

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

.mini-toggle-btn {
  height: 33px;
  min-width: 58px;
  font-size: 12.5px;
  padding: 0 9px;
}

.lang-select {
  height: 35px;
  padding: 0 10px;
  border-radius: 8px;
  border: 2px solid #181C2E;
  background: #FFFFFF;
  color: #181C2E;
  font-weight: 800;
  font-size: 13.5px;
}

.autosave-badge {
  text-align: center;
  font-size: 12.5px;
  font-weight: 800;
  color: #0F766E;
  padding-top: 4px;
}

/* Preview-Only F2 Debug Panel */
.dev-f2-pill {
  position: fixed;
  bottom: 8px;
  right: 10px;
  z-index: 180;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid #38BDF8;
  color: #38BDF8;
  font-size: 12px;
  font-weight: 800;
}

.debug-panel {
  position: fixed;
  bottom: 40px;
  right: 12px;
  z-index: 190;
  width: 290px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.94);
  border: 2px solid #38BDF8;
  color: #F8FAFC;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
}

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

.debug-btn {
  padding: 5px 6px;
  border-radius: 7px;
  border: 1px solid #475569;
  background: #1E293B;
  color: #F8FAFC;
  font-weight: 700;
  font-size: 12px;
}

/* ==========================================================================
   1280x720 COMPACT RESPONSIVE RULES (All HUD Text >= 12px, Zero Wrap, Zero Clip!)
   ========================================================================== */
@media (max-width: 1460px) {
  .top-command-bar {
    min-height: 44px;
    padding: 4px 8px 5px;
    gap: 5px;
  }

  .hud-group {
    gap: 5px;
  }

  .hud-pill {
    border-width: 6px 10px 6px 10px;
    min-height: 31px;
    padding: 0 4px 0 1px;
    gap: 4px;
  }

  .popout-pill-icon {
    width: 23px;
    height: 23px;
    margin: -5px 1px -5px -10px;
  }

  .pill-main-num {
    font-size: 12.5px;
  }

  .pill-sub-rate {
    font-size: 12px;
  }

  .notify-badge {
    top: -6px;
    right: -2px;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    font-size: 10px;
    line-height: 12px;
  }

  .top-action-btn {
    height: 32px;
    border-width: 6px 7px 8px 7px;
    padding: 0 8px 0 6px;
    font-size: 12px;
    gap: 3px;
  }

  .top-btn-icon {
    width: 18px;
    height: 18px;
    margin: -3px 1px -3px -3px;
  }

  .edge-cluster {
    top: 47px;
    gap: 5px;
  }

  .left-cluster {
    left: 6px;
    width: 210px;
    max-height: calc(100vh - 53px);
  }

  .right-cluster {
    right: 6px;
    width: 208px;
    max-height: calc(100vh - 53px);
  }

  .cluster-header {
    border-width: 7px 10px 7px 10px;
  }

  .cluster-header-title {
    font-size: 12.5px;
  }

  .bulk-pill {
    height: 22px;
    padding: 0 4px;
    font-size: 12px;
  }

  .auto-dispatch-bar {
    height: 30px;
    border-width: 6px 8px 8px 8px;
    font-size: 12px;
  }

  .smart-roi-bar {
    height: 28px;
    border-width: 5px 7px 7px 7px;
    font-size: 12px;
  }

  .pillar-card {
    border-width: 6px 6px 8px 6px;
    gap: 2px;
    padding: 1px 3px;
  }

  .pillar-icon {
    width: 24px;
    height: 24px;
  }

  .pillar-title {
    font-size: 12px;
  }

  .pillar-lvl-badge,
  .pillar-stat-line,
  .pillar-atc-tag {
    font-size: 12px;
  }

  .pillar-upg-btn {
    height: 27px;
    border-width: 5px 7px 7px 7px;
    font-size: 12px;
  }

  .vip-charter-card {
    border-width: 8px 8px 10px 8px;
    gap: 4px;
  }

  .vip-captain-avatar {
    width: 34px;
    height: 34px;
  }

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

  .vip-status-sub {
    font-size: 12px;
  }

  .vip-launch-btn {
    height: 31px;
    border-width: 6px 8px 8px 8px;
    font-size: 12px;
  }

  .gate-control-card,
  .contracts-widget {
    border-width: 6px 6px 8px 6px;
    gap: 3px;
  }

  .gate-station-title,
  .gate-station-stats {
    font-size: 12px;
  }

  .express-dispatch-btn {
    height: 29px;
    border-width: 5px 7px 7px 7px;
    font-size: 12px;
  }

  .contract-entry {
    padding: 3px 5px;
  }

  .contract-ico {
    width: 22px;
    height: 22px;
  }

  .contract-title,
  .contract-prog,
  .contract-claim-btn {
    font-size: 12px;
  }

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

  .ops-dock.has-seasons {
    gap: 7px;
  }

  .ops-dock-btn {
    width: 88px;
    height: 68px;
    padding: 1px 2px !important;
    border-width: 6px 5px 8px 5px !important;
    grid-template-rows: 40px auto;
  }

  .ops-dock.has-seasons .ops-dock-btn {
    width: 86px;
  }

  .ops-dock-hero,
  .ops-dock.has-seasons .ops-dock-hero {
    width: 92px;
    height: 70px;
    grid-template-rows: 42px auto;
  }

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

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

  .tutorial-coach {
    top: 48px;
    max-width: calc(100vw - 450px);
    border-width: 7px 8px 9px 8px;
  }
}

@media (max-width: 1460px), (max-height: 800px) {
  .modal-dialog {
    max-height: 94vh;
    border-width: 14px 14px 18px 14px;
    padding: 5px 10px 8px;
    gap: 6px;
  }

  .modal-ribbon-title {
    font-size: 16px;
    border-width: 7px 11px 7px 11px;
  }

  .modal-tab-btn {
    height: 29px;
    padding: 0 9px;
    font-size: 12px;
  }

  .vf-art-stage,
  .sku-art-stage {
    height: 52px;
  }

  .vf-art-img,
  .shop-art {
    width: 46px;
    height: 46px;
  }

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

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

  .vf-title,
  .sku-title {
    font-size: 12.5px;
  }

  .vf-stat-chip,
  .sku-perk-chip {
    font-size: 12px;
  }

  .vf-cta-btn,
  .shop-buy-btn {
    height: 30px;
    border-width: 5px 7px 7px 7px;
    font-size: 12px;
  }
}
