/* ==========================================================================
 * css/game.css — Spurcrest Posse Brawl (Vibrant Comic-Western UI Vault)
 * HARD INVARIANTS:
 *   - 100% Offline MS Store WebView2 Safe (ZERO external fonts/CDNs!)
 *   - ZERO heavy glass blur filters anywhere!
 *   - Full-bleed 100vw x 100vh, overflow: hidden, zero scroll at 1920x1080 & 1280x720
 *   - overflow: visible on all badged/pop-out buttons
 *   - Readable HUD typography >= 13px (ZERO <11.5px micro-text!)
 *   - Modal grid containment: repeat(N, minmax(0, 1fr)) + min-width: 0
 * ========================================================================== */

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

html, body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #2C1E19;
  color: #181C2E;
  font-family: var(--uiv-font-body, 'Baloo 2', 'Segoe UI', system-ui, sans-serif);
  user-select: none;
  -webkit-user-select: none;
}

.hidden {
  display: none !important;
}

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

/* ==========================================================================
 * 1. HEROIC NO-BOX TITLE SCREEN
 * ========================================================================== */
#title-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px 28px;
}

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

.title-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 44%, rgba(255, 220, 128, 0.04) 24%, rgba(36, 20, 14, 0.56) 100%);
  pointer-events: none;
  z-index: 1;
}

.title-corner-dock {
  position: relative;
  z-index: 12;
  align-self: flex-end;
  gap: 8px;
}

.title-util-btn {
  padding: 2px 10px;
  font-size: 13px;
  line-height: 1.1;
}

.title-emblem-wrap {
  position: relative;
  z-index: 10;
  text-align: center;
  margin-top: 2px;
  pointer-events: none;
}

.title-emblem {
  margin: 0;
  font-family: var(--uiv-font-display, 'Lilita One', 'Impact', sans-serif);
  font-size: clamp(38px, 4.8vw, 72px);
  letter-spacing: 0.03em;
  color: #FFE14D;
  -webkit-text-stroke: 2.5px #181C2E;
  text-shadow: 0 5px 0 #181C2E, 0 9px 18px rgba(24, 28, 46, 0.55);
  line-height: 1.04;
}

.title-tagline {
  margin-top: 6px;
  display: inline-block;
  padding: 5px 18px;
  border-radius: 999px;
  background: rgba(24, 28, 46, 0.84);
  border: 2px solid #FFD52E;
  color: #FFFDF5;
  font-size: clamp(13px, 1.15vw, 17px);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.title-hero-stage {
  position: relative;
  z-index: 8;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  width: 100%;
  pointer-events: none;
}

.title-hero-showcase {
  position: relative;
  width: clamp(220px, 24vw, 370px);
  height: clamp(220px, 38vh, 380px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.title-hero-showcase img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 14px rgba(24, 28, 46, 0.52));
}

.title-cta-dock {
  position: relative;
  z-index: 12;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.boot-progress-wrap {
  width: min(420px, 72vw);
  text-align: center;
}

.boot-progress-track {
  width: 100%;
  height: 30px;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.boot-progress-fill {
  height: 100%;
  min-width: 24px;
  transition: width 140ms ease;
}

.boot-progress-label {
  margin-top: 6px;
  color: #FFFDF5;
  font-size: 14px;
  font-weight: 800;
  text-shadow: 0 2px 0 #181C2E;
}

.title-btn-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.title-play-cta {
  min-width: 230px;
  height: 64px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: clamp(20px, 1.7vw, 26px);
  overflow: visible;
}

.title-sec-cta {
  min-width: 158px;
  height: 58px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: clamp(15px, 1.25vw, 19px);
  overflow: visible;
}

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

/* ==========================================================================
 * 2. FULL-BLEED 16:9 GAMEPLAY STAGE & FLOATING HUD
 * ========================================================================== */
.stage-canvas {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 1;
}

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

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

.hud-top {
  position: absolute;
  top: 8px;
  left: 10px;
  right: 10px;
  height: 54px;
  z-index: 20;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

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

.hud-pill-btn {
  height: 44px;
  padding: 0 10px;
  border-width: 7px 11px 9px 11px !important;
  border-image-width: 7px 11px 9px 11px !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  overflow: visible;
  flex-shrink: 0;
  white-space: nowrap;
}

.hud-mod-badge,
.hud-obj-pill,
.hud-currency-pill {
  height: 38px;
  padding: 0 10px;
  border-radius: 12px;
  background: rgba(255, 253, 245, 0.94);
  border: 2.5px solid #181C2E;
  box-shadow: 0 3px 0 #181C2E;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 13px;
  color: #181C2E;
  white-space: nowrap;
  flex-shrink: 0;
}

.hud-mod-badge {
  background: #FFF0BE;
}

.hud-obj-pill {
  background: #E8F9FF;
  max-width: none;
}

.hud-chip-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
  pointer-events: none;
}

.hud-num {
  font-family: var(--uiv-font-display, 'Lilita One', sans-serif);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  color: #181C2E;
}

.hud-scoreboard {
  height: 44px;
  padding: 0 12px;
  border-width: 7px 11px 9px 11px !important;
  border-image-width: 7px 11px 9px 11px !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.hearts-ally {
  color: #6CE21C;
  font-size: 17px;
  font-weight: 900;
  text-shadow: 0 2px 0 #181C2E;
}

.hearts-rival {
  color: #FF4B5C;
  font-size: 17px;
  font-weight: 900;
  text-shadow: 0 2px 0 #181C2E;
}

.score-sep {
  color: #FFD52E;
  font-weight: 900;
}

.phase-pill {
  padding: 2px 9px;
  border-radius: 999px;
  background: #FFD52E;
  color: #181C2E;
  font-size: 13px;
  font-weight: 900;
  text-shadow: none;
}

.hud-timer {
  padding-left: 6px;
  color: #FFFDF5;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.hud-nav-btn {
  position: relative;
  height: 44px;
  padding: 0 10px;
  border-width: 7px 10px 9px 10px !important;
  border-image-width: 7px 10px 9px 10px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  overflow: visible !important;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
}

.hud-icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border-width: 7px 8px 9px 8px !important;
  border-image-width: 7px 8px 9px 8px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible !important;
  flex-shrink: 0;
}

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

.notify-badge {
  position: absolute;
  top: -6px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #FF4B5C;
  color: #FFFFFF;
  border: 2px solid #181C2E;
  font-size: 12px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
  z-index: 6;
}

/* Boss HP Bar */
.hud-boss-bar {
  position: absolute;
  top: 66px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 19;
  width: min(440px, 44vw);
  padding: 5px 12px;
  border-radius: 14px;
  background: rgba(24, 28, 46, 0.90);
  border: 2.5px solid #FF4B5C;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.boss-mini-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

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

.boss-bar-name {
  color: #FFD52E;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 3px;
}

.boss-bar-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #3B181E;
  border: 2px solid #181C2E;
  overflow: hidden;
}

.boss-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #FF4B5C, #FF9E2C);
  transition: width 90ms linear;
}

/* Compact Floating Side Wings (total <= 26% width, NEVER blocking center dirt yard!) */
.floating-wing {
  position: absolute;
  top: 72px;
  width: clamp(162px, 12.8vw, 212px);
  padding: 8px 10px;
  border-radius: 16px;
  background: rgba(255, 253, 245, 0.88);
  border: 2.5px solid #181C2E;
  box-shadow: 0 4px 0 #181C2E;
  z-index: 14;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wing-left { left: 10px; }
.wing-right { right: 10px; }

.wing-title {
  font-family: var(--uiv-font-display, 'Lilita One', sans-serif);
  font-size: 14px;
  color: #833321;
  border-bottom: 2px solid rgba(24, 28, 46, 0.16);
  padding-bottom: 3px;
}

.wing-sub {
  font-size: 12.5px;
  font-weight: 900;
  color: #5B322C;
  margin-top: 2px;
}

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

.wing-unit-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 10px;
  background: #FFF6DC;
  border: 2px solid #181C2E;
  font-size: 12.5px;
  font-weight: 800;
}

.wing-unit-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.wing-unit-meta {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wing-unit-lv {
  padding: 1px 6px;
  border-radius: 8px;
  background: #FFD52E;
  border: 1.5px solid #181C2E;
  font-size: 12px;
  font-weight: 900;
}

.wing-synergies {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.syn-chip {
  padding: 3px 7px;
  border-radius: 8px;
  background: #D9F99D;
  border: 2px solid #181C2E;
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.syn-chip-idle {
  background: #F3EAD8;
  color: #5B322C;
}

.wing-boosts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wing-boost-btn {
  height: 40px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 12.5px;
  overflow: visible;
}

/* ==========================================================================
 * 3. BOTTOM DRAFT TRAY, COMBAT ACES & HINT BAR
 * ========================================================================== */
.hud-bottom-dock {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  width: min(820px, 76vw);
  z-index: 22;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.draft-tray {
  width: 100%;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.draft-header-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
}

.draft-header-title {
  padding: 4px 14px;
  border-radius: 999px;
  background: #181C2E;
  color: #FFD52E;
  font-family: var(--uiv-font-display, 'Lilita One', sans-serif);
  font-size: 15px;
  letter-spacing: 0.03em;
}

.draft-reroll-btn {
  height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  overflow: visible;
}

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

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

.draft-pick-btn {
  position: relative;
  height: 146px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  overflow: visible !important;
}

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

.draft-action-tag {
  padding: 2px 7px;
  border-radius: 8px;
  background: #181C2E;
  color: #FFD52E;
  font-size: 12px;
  font-weight: 900;
}

.draft-comeback-tag {
  background: #FF4B5C;
  color: #FFFFFF;
}

.draft-key-badge {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #FFFDF5;
  border: 2px solid #181C2E;
  color: #181C2E;
  font-size: 13px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.draft-art-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.draft-art-wrap img {
  height: 68px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
}

.draft-card-foot {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  font-size: 13px;
  font-weight: 900;
  color: #181C2E;
}

/* Compact Combat Aces & High Noon Ultimate Bar (Round 5 Ratios: 74-86px!) */
.combat-bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.ace-buttons-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ace-btn {
  position: relative;
  width: 86px;
  height: 76px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  overflow: visible !important;
}

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

.ace-btn-label {
  font-size: 12px;
  font-weight: 900;
  max-width: 78px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ace-cd-overlay {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: rgba(24, 28, 46, 0.72);
  color: #FFD52E;
  font-size: 18px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hotkey-tag {
  position: absolute;
  top: -7px;
  left: -5px;
  padding: 1px 6px;
  border-radius: 6px;
  background: #181C2E;
  color: #FFD52E;
  font-size: 12px;
  font-weight: 900;
  pointer-events: none;
}

.ult-cta-btn {
  position: relative;
  min-width: 210px;
  height: 76px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: visible !important;
}

.ult-cta-btn.is-ready {
  filter: brightness(1.08);
}

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

.ult-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.ult-meter {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #3B2818;
  border: 2px solid #181C2E;
  overflow: hidden;
}

.ult-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #FFD52E, #FF6B2B);
  transition: width 100ms linear;
}

/* Slim Bottom Hint Bar (with #btn-tut-skip cleanly docked on right!) */
.hud-hint-bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(24, 28, 46, 0.86);
  border: 2px solid #FFD52E;
  color: #FFFDF5;
  font-size: 13px;
  font-weight: 700;
}

.tut-action-pill {
  padding: 2px 10px;
  border-radius: 999px;
  background: #FFD52E;
  color: #181C2E;
  font-size: 13px;
  font-weight: 900;
}

.tut-skip-btn {
  height: 30px;
  padding: 0 10px;
  font-size: 12.5px;
  line-height: 1;
}

/* ==========================================================================
 * 4. BETWEEN-ROUND DRAW! STANDOFF OVERLAY
 * ========================================================================== */
.standoff-overlay {
  position: absolute;
  inset: 0;
  z-index: 28;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(48, 22, 14, 0.44);
  cursor: pointer;
}

.standoff-banner {
  min-width: min(480px, 84vw);
  padding: 24px 32px;
  border-radius: 22px;
  background: linear-gradient(180deg, #FFF7DC, #F4D790);
  border: 4px solid #181C2E;
  box-shadow: 0 8px 0 #181C2E;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.standoff-banner.is-draw-now {
  background: linear-gradient(180deg, #FFE14D, #FF8C42);
  transform: scale(1.06);
}

.standoff-title {
  font-family: var(--uiv-font-display, 'Lilita One', sans-serif);
  font-size: clamp(32px, 3.6vw, 54px);
  color: #181C2E;
  letter-spacing: 0.04em;
}

.standoff-sub {
  font-size: 16px;
  font-weight: 800;
  color: #5B322C;
}

.standoff-btn {
  min-width: 190px;
  height: 58px;
  font-size: 22px;
}

/* ==========================================================================
 * 5. ANTI-SAAS 60/25/15 VISUAL-FIRST MODAL SHELL
 * ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(24, 28, 46, 0.66);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-card {
  width: min(940px, 92vw);
  max-height: min(640px, 90vh);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 14px 14px;
  overflow: visible;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: -22px;
}

.modal-title {
  padding: 2px 26px;
  font-size: clamp(18px, 1.6vw, 24px);
  letter-spacing: 0.03em;
}

.modal-close-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.modal-close-btn img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.modal-tab-btn {
  height: 44px;
  padding: 0 18px;
  font-size: 14px;
}

/* Containment Grid Law: repeat(N, minmax(0, 1fr)) + min-width: 0 */
.modal-grid-2,
.modal-grid-3,
.modal-grid-4,
.modal-grid-5 {
  display: grid;
  gap: 10px;
}
.modal-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.modal-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.modal-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.modal-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

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

.vault-tile {
  position: relative;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  text-align: center;
  overflow: visible;
}

.is-locked-tile {
  opacity: 0.62;
}

.vt-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.vt-name {
  font-family: var(--uiv-font-display, 'Lilita One', sans-serif);
  font-size: 14px;
  color: #181C2E;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vt-lv {
  padding: 1px 7px;
  border-radius: 8px;
  background: #181C2E;
  color: #FFD52E;
  font-size: 12px;
  font-weight: 900;
  flex-shrink: 0;
}

.vt-art {
  width: 100%;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vt-art img {
  max-width: 82px;
  max-height: 82px;
  object-fit: contain;
}

.vt-art-sm {
  height: 54px;
}
.vt-art-sm img {
  max-width: 54px;
  max-height: 54px;
}

.vt-art-lg {
  width: 110px;
  height: 92px;
  flex-shrink: 0;
}
.vt-art-lg img {
  max-width: 96px;
  max-height: 92px;
}

.vt-chips {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 800;
  color: #181C2E;
}

.vt-chips-prem {
  color: #7C2D12;
}

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

.vt-cta {
  width: 100%;
  height: 42px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
}

.vt-badge {
  position: absolute;
  top: -10px;
  right: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #FF4B5C;
  color: #FFFFFF;
  border: 2px solid #181C2E;
  font-size: 12px;
  font-weight: 900;
  z-index: 5;
}

.vt-badge-active {
  position: static;
  background: #6CE21C;
  color: #181C2E;
}

/* Foil Pack Bench */
.pack-bench {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pack-hero-box {
  flex-direction: row;
  justify-content: space-between;
  padding: 10px 16px;
  gap: 14px;
}

.vt-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.vt-actions {
  display: flex;
  gap: 10px;
  width: 100%;
}

.vt-cost-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(24, 28, 46, 0.88);
  color: #FFFDF5;
  border: 1.5px solid #181C2E;
  font-size: 11.5px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  flex-shrink: 0;
}

.vt-cost-tag.is-vip-free {
  background: #6CE21C;
  color: #181C2E;
}

.hud-currency-pill.is-vip-pill {
  box-shadow: 0 0 0 2px #FFD52E inset;
}

/* Roundup Passes Header */
.qb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
}

.qb-hero-img {
  width: 66px;
  height: 66px;
  object-fit: contain;
  flex-shrink: 0;
}

.qb-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.qb-bar {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: #3B2818;
  border: 2px solid #181C2E;
  overflow: hidden;
}

.qb-prog {
  height: 100%;
  background: linear-gradient(90deg, #6CE21C, #FFD52E);
}

.qb-sub {
  font-size: 13px;
  font-weight: 800;
  color: #5B322C;
}

.qb-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 155px;
}

/* Settings Layout */
.stg-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.stg-group {
  align-items: stretch;
  gap: 8px;
}

.stg-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stg-line input[type="range"] {
  flex: 1;
  accent-color: #FF6B2B;
}

.stg-toggle {
  min-width: 126px;
  height: 38px;
  font-size: 13px;
}

.stg-input {
  flex: 1;
  height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  border: 2.5px solid #181C2E;
  background: #FFFDF5;
  font-size: 14px;
  font-weight: 800;
  color: #181C2E;
}

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

.stg-lang-box {
  align-items: stretch;
  gap: 8px;
}

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

.stg-lang-btn {
  height: 38px;
  font-size: 13px;
}

/* Exit Retention Modal */
.exit-clean-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px;
}

.exit-clean-img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.exit-clean-sub {
  font-size: 16px;
  font-weight: 800;
  color: #181C2E;
}

.exit-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
}

/* Toast Notification */
.toast-banner {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 95;
  padding: 8px 20px;
  border-radius: 999px;
  background: #181C2E;
  color: #FFD52E;
  border: 2.5px solid #FFD52E;
  font-size: 15px;
  font-weight: 900;
  pointer-events: none;
}

/* Preview-Only [DEV F2] Drawer */
.dev-f2-pill {
  position: fixed;
  bottom: 10px;
  left: 10px;
  z-index: 90;
  padding: 5px 10px;
  border-radius: 8px;
  background: #181C2E;
  color: #FFD52E;
  border: 2px solid #FFD52E;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.dev-f2-panel {
  position: fixed;
  bottom: 46px;
  left: 10px;
  z-index: 91;
  width: 280px;
  padding: 10px;
  border-radius: 12px;
  background: #181C2E;
  color: #FFFDF5;
  border: 2px solid #FFD52E;
}

.dev-f2-title {
  font-size: 13px;
  font-weight: 900;
  color: #FFD52E;
  margin-bottom: 8px;
}

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

.dev-f2-grid button {
  padding: 6px;
  border-radius: 6px;
  border: 1.5px solid #FFD52E;
  background: #2C3454;
  color: #FFFDF5;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* Seasons Hub Visual-First Layout (ZERO nested "modal" classes, 0 blur filters!) */
.sn-tabs {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.sn-tab-btn {
  height: 40px;
  padding: 0 12px;
  font-size: 13px;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sn-strip {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 12px;
  background: #FFF6DC;
  border: 2px solid #181C2E;
}

.sn-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 800;
  color: #181C2E;
  white-space: nowrap;
  min-width: 0;
}

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

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

/* ==========================================================================
 * 6. 1280x720 COMPACT BREAKPOINT SAFETY (ZERO OVERLAP / ZERO CLIPPING!)
 * ========================================================================== */
@media (max-width: 1366px), (max-height: 768px) {
  .hud-top {
    height: 44px;
    top: 6px;
    left: 8px;
    right: 8px;
    gap: 4px;
  }
  .hud-cluster {
    gap: 3px;
  }
  .hud-pill-btn, .hud-nav-btn, .hud-icon-btn, .hud-scoreboard {
    height: 36px;
    font-size: 12px;
    padding: 0 6px;
    border-width: 5px 7px 7px 7px !important;
    border-image-width: 5px 7px 7px 7px !important;
  }
  .hud-town-sub { display: none; }
  .hud-icon-btn { width: 36px; padding: 0; }
  .hud-btn-icon { width: 17px; height: 17px; }
  .hud-mod-badge, .hud-obj-pill, .hud-currency-pill {
    height: 32px;
    padding: 0 6px;
    font-size: 12px;
  }
  .hud-mod-badge { display: none; }
  .hud-obj-pill { max-width: none; }
  .sn-tab-btn { font-size: 12px; padding: 0 9px; height: 36px; }
  .sn-stat { font-size: 12px; }
  .floating-wing {
    top: 56px;
    width: 218px;
    padding: 6px 8px;
    font-size: 12px;
  }
  .hud-bottom-dock {
    width: min(740px, 72vw);
    bottom: 6px;
  }
  .draft-pick-btn {
    height: 128px;
  }
  .draft-art-wrap img {
    height: 54px;
  }
  .ace-btn {
    width: 78px;
    height: 70px;
  }
  .ult-cta-btn {
    height: 70px;
    min-width: 190px;
  }
  .modal-card {
    max-height: 92vh;
  }
}
