/* Brawlband: Idle Crypts — Tactical Angled Steel Offline Stylesheet (0 Google Fonts, 0 backdrop-filter) */

:root {
  --font-display: 'Impact', 'Arial Black', 'Bahnschrift', 'Segoe UI', sans-serif;
  --font-body: 'Bahnschrift', 'Segoe UI', 'Trebuchet MS', system-ui, sans-serif;
  --uiv-font-display: 'Impact', 'Arial Black', 'Bahnschrift', 'Segoe UI', sans-serif;
  --uiv-font-body: 'Bahnschrift', 'Segoe UI', 'Trebuchet MS', system-ui, sans-serif;
  --amber: #F5A623;
  --cyan: #2B8AE2;
  --danger: #DC3B3B;
  --surface: #1A212C;
  --ink: #0B101A;
  --light: #F1F5F9;
}

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

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #11161E;
  color: var(--light);
  font-family: var(--font-body);
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

button {
  font-family: var(--font-display);
  border: none;
  outline: none;
  padding: 0;
  margin: 0;
  background: transparent;
  overflow: visible;
}

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

.btn-lbl {
  display: inline-block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.15;
}

/* Full-Bleed Game Stage & Idle-Hidden VFX Overlay Canvases */
#game-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 1;
}

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

#vfx3d-canvas { z-index: 4; display: none; opacity: 0.30; }
#uimotion-overlay { z-index: 18; }
#cutin-canvas { z-index: 25; display: none; }

/* Precision 9-Slice Border Normalization for Tactical Angled Steel Chrome */
.uiv-tactical_angled_steel-btn-primary {
  border-width: 10px 14px;
  border-image-slice: 97 54 58 75 fill;
  border-image-width: 10px 14px;
  color: #141822;
  text-shadow: 0 1px 0 rgba(255, 245, 200, 0.45);
}

.uiv-tactical_angled_steel-btn-primary .btn-lbl {
  background-color: #F5A623;
  padding: 1px 4px;
  border-radius: 2px;
}

.uiv-tactical_angled_steel-btn-secondary {
  border-width: 9px 14px;
  border-image-slice: 56 66 59 66 fill;
  border-image-width: 9px 14px;
  color: #FFFFFF;
  text-shadow: 0 1px 2px rgba(8, 12, 20, 0.9);
}

.uiv-tactical_angled_steel-btn-danger {
  border-width: 9px 14px;
  border-image-slice: 57 71 57 64 fill;
  border-image-width: 9px 14px;
  color: #FFFFFF;
  text-shadow: 0 1px 2px rgba(8, 12, 20, 0.9);
}

.uiv-tactical_angled_steel-btn-disabled {
  border-width: 9px 14px;
  border-image-slice: 56 69 57 69 fill;
  border-image-width: 9px 14px;
  color: #CBD5E1;
  opacity: 0.72;
  cursor: default;
}

.uiv-tactical_angled_steel-hud-pill {
  border-width: 7px 11px;
  border-image-width: 7px 11px;
  color: #F8FAFC;
  cursor: default;
}

.uiv-tactical_angled_steel-frame-subpanel {
  border-width: 12px 14px;
  border-image-width: 12px 14px;
  cursor: default;
}

.uiv-tactical_angled_steel-ribbon-header {
  border-width: 10px 24px;
  border-image-width: 10px 24px;
  cursor: default;
}

.uiv-tactical_angled_steel-slot-tile {
  border-width: 10px;
  border-image-width: 10px;
}

.uiv-tactical_angled_steel-bar-track {
  border-width: 6px 8px;
  border-image-width: 6px 8px;
  cursor: default;
}

.uiv-tactical_angled_steel-bar-fill-primary {
  border-width: 4px 6px;
  border-image-width: 4px 6px;
  cursor: default;
}

.uiv-tactical_angled_steel-card-common,
.uiv-tactical_angled_steel-card-rare,
.uiv-tactical_angled_steel-card-epic,
.uiv-tactical_angled_steel-card-legendary {
  border-width: 14px 12px 16px 12px;
  border-image-width: 14px 12px 16px 12px;
  cursor: default;
}

/* =========================================================================
   HEROIC NO-BOX TITLE SCREEN (Full-bleed art, NO opaque box wrapping <h1>)
   ========================================================================= */
#title-screen {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background: url('../assets/art/title_bg.jpg') center center / cover no-repeat;
  padding: 18px 24px 36px;
}

.title-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(10, 15, 26, 0.56) 0%,
    rgba(10, 15, 26, 0.08) 38%,
    rgba(10, 15, 26, 0.14) 68%,
    rgba(10, 15, 26, 0.72) 100%
  );
}

.title-top-bar {
  position: relative;
  z-index: 4;
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.title-lang-btn {
  min-width: 62px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.title-heroes-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.title-hero-showcase {
  position: absolute;
  top: 38%;
  width: clamp(132px, 12vw, 178px);
  height: clamp(132px, 12vw, 178px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 33, 44, 0.92) 56%, rgba(15, 23, 42, 0.96) 100%);
  border: 4px solid #64748B;
  box-shadow: 0 0 0 3px #11161E, 0 12px 28px rgba(0, 0, 0, 0.65);
  padding: 10px;
}

.title-hero-left { left: clamp(28px, 6vw, 110px); border-color: #F5A623; }
.title-hero-right { right: clamp(28px, 6vw, 110px); border-color: #2B8AE2; }

.title-hero-showcase img {
  width: 92%;
  height: 92%;
  object-fit: contain;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.55));
}

.title-hero-header {
  position: relative;
  z-index: 4;
  text-align: center;
  margin-top: clamp(10px, 4vh, 44px);
  background: transparent;
  border: none;
  padding: 0 16px;
}

.title-kicker {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.4vw, 19px);
  letter-spacing: 0.18em;
  color: #38BDF8;
  text-shadow: 0 2px 0 #0B101A, 0 0 12px rgba(11, 16, 26, 0.9);
  margin-bottom: 6px;
}

.title-logo {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 5.4vw, 76px);
  letter-spacing: 0.04em;
  line-height: 1.04;
  color: #FFE14D;
  -webkit-text-stroke: 2.5px #11161E;
  text-shadow: 0 6px 0 #11161E, 0 10px 24px rgba(0, 0, 0, 0.65);
}

.title-cta-dock {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(14px, 3vh, 34px);
}

.title-loading-wrap {
  position: relative;
  width: 300px;
  height: 36px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.title-loading-fill {
  height: 100%;
  width: 0%;
  transition: width 0.14s linear;
}

.title-loading-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 15px;
  color: #FFFFFF;
  text-shadow: 0 2px 2px #0B101A;
}

.title-play-btn {
  min-width: 240px;
  height: 68px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  letter-spacing: 0.10em;
  cursor: pointer;
}

/* =========================================================================
   FLOATING CORNER GAMEPLAY HUD (100vw x 100vh Playfield, pointer-events:none)
   ========================================================================= */
#gameplay-hud {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#hud-top {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 18px;
  pointer-events: none;
}

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

.hud-pill-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

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

.hud-val {
  font-family: var(--font-display);
  font-size: clamp(13px, 1.08vw, 16px);
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
  color: #FFFFFF;
  text-shadow: 0 2px 0 #0B101A;
}

.nav-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 44px;
  min-width: 78px;
  max-width: 164px;
  padding: 0 7px;
  font-size: clamp(11.5px, 0.92vw, 14px);
  letter-spacing: 0.03em;
  cursor: pointer;
  overflow: visible;
  flex-shrink: 0;
}

.nav-btn.uiv-tactical_angled_steel-btn-primary,
.nav-btn.uiv-tactical_angled_steel-btn-secondary,
.nav-btn.uiv-tactical_angled_steel-btn-danger {
  border-width: 8px 10px;
  border-image-width: 8px 10px;
}

.nav-btn.nav-icon-only {
  min-width: 48px;
  padding: 0 6px;
}

.nav-ic {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.notify-badge {
  position: absolute;
  top: -7px;
  right: -5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #EF4444;
  border: 2px solid #FFFFFF;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 16px;
  text-align: center;
  pointer-events: none;
  z-index: 6;
}

/* Boss Telemetry Banner */
#boss-hud-banner {
  position: fixed;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  width: min(460px, 56vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: none;
  z-index: 11;
}

.boss-title-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 6px;
  font-family: var(--font-display);
  font-size: 16px;
  text-shadow: 0 2px 2px #0B101A;
}

.boss-name-lbl { color: #4ADE80; letter-spacing: 0.06em; }
.boss-timer-lbl { color: #FDE047; font-variant-numeric: tabular-nums; }

.boss-hp-track {
  position: relative;
  width: 100%;
  height: 28px;
  overflow: hidden;
  padding: 0;
}

.boss-hp-fill {
  height: 100%;
  width: 100%;
  min-width: 0;
  transition: none;
}

#boss-hud-banner .uiv-tactical_angled_steel-bar-fill-primary {
  border-width: 3px 4px;
  border-image-width: 3px 4px;
}

.boss-hp-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  color: #FFFFFF;
  text-shadow: 0 1px 2px #0B101A;
}

.boss-charge-alert {
  padding: 4px 14px;
  background: rgba(185, 28, 28, 0.92);
  border: 2px solid #FDE047;
  color: #FEF08A;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.05em;
}

/* Hyperfocus Chip */
.hyperfocus-chip {
  position: fixed;
  top: 66px;
  left: 18px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  font-size: 14px;
  color: #FDE047;
  pointer-events: none;
  z-index: 11;
}

/* KO'd Ally Revive Indicator Pill */
.revive-hud-chip {
  position: fixed;
  top: 112px;
  left: 18px;
  height: 40px;
  min-width: 124px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  font-size: 13px;
  cursor: pointer;
  pointer-events: auto;
  z-index: 12;
}

/* Bottom Compact Tactical Dock (<= 88px tall, icons 58-68% of slot height!) */
#hud-bottom {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 16px 12px;
  pointer-events: none;
}

.dock-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.skill-slot {
  position: relative;
  width: 78px;
  height: 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: visible;
  flex-shrink: 0;
}

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

.hotkey-tag {
  position: absolute;
  top: -7px;
  left: -6px;
  min-width: 22px;
  height: 20px;
  padding: 0 5px;
  background: #0F172A;
  border: 1.5px solid var(--amber);
  color: #FDE047;
  font-size: 12px;
  line-height: 17px;
  text-align: center;
  pointer-events: none;
  z-index: 5;
}

.skill-cap {
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 82px;
  padding: 1px 6px;
  background: #0F172A;
  border: 1px solid #475569;
  color: #F8FAFC;
  font-size: 11.5px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  z-index: 5;
}

.cd-mask {
  position: absolute;
  inset: 6px;
  background: rgba(11, 16, 26, 0.76);
  color: #FDE047;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 4;
}

.dock-sep {
  width: 2px;
  height: 48px;
  background: rgba(148, 163, 184, 0.4);
  margin: 0 2px;
}

.dock-action-btn {
  height: 54px;
  min-width: 108px;
  max-width: 138px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 8px;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
}

.dock-ic {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.dock-toggle-btn {
  height: 48px;
  min-width: 78px;
  max-width: 106px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
}

/* =========================================================================
   NON-BLOCKING VISUAL FTUE SPOTLIGHT + POINTER HAND
   ========================================================================= */
#ftue-layer {
  position: fixed;
  inset: 0;
  z-index: 16;
  pointer-events: none;
}

.tut-spotlight {
  position: fixed;
  border: 3px solid #FDE047;
  pointer-events: none;
  animation: tutPulse 1.1s ease-in-out infinite;
}

.tut-hand {
  position: fixed;
  font-size: 32px;
  color: #FDE047;
  text-shadow: 0 3px 4px #0B101A;
  pointer-events: none;
  animation: tutBounce 0.8s ease-in-out infinite;
}

.tut-tip {
  position: fixed;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 400px;
  padding: 2px 8px;
  pointer-events: auto;
}

.tut-tip-text {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  color: #F8FAFC;
}

.tut-skip-btn {
  height: 36px;
  min-width: 68px;
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
}

@keyframes tutPulse {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(1.06); opacity: 0.65; }
}

@keyframes tutBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* =========================================================================
   FLEX-SCROLL ANTI-SAAS 60/25/15 MODALS (ZERO backdrop-filter: blur!)
   ========================================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(8, 12, 20, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-card {
  width: min(940px, 92vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 6px 10px 10px;
}

.modal-card.modal-compact {
  width: min(490px, 90vw);
  max-height: 84vh;
}

.modal-card.modal-compact-md {
  width: min(640px, 92vw);
  max-height: 86vh;
}

.modal-card.modal-compact .modal-ribbon {
  min-width: 190px;
  height: 42px;
}

.modal-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  padding: 2px 4px 8px;
}

.modal-ribbon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  height: 46px;
}

.modal-title-text {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 24px);
  letter-spacing: 0.06em;
  color: #FFE14D;
  text-shadow: 0 2px 0 #0B101A;
}

.modal-close-x {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.modal-close-x img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.modal-tabs-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  flex-shrink: 0;
  padding: 0 4px 10px;
}

.modal-tab-btn {
  height: 42px;
  min-width: 112px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
}

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

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
  padding: 10px 4px 2px;
}

.ftr-btn {
  height: 46px;
  min-width: 132px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
}

/* Strict Grid Containment: minmax(0, 1fr) prevents overflow past 9-slice frames */
.modal-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

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

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

/* Visual-First Game Card (>= 55% Artwork Area!) */
.game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  min-height: 226px;
  padding: 2px 4px 4px;
  text-align: center;
}

.gm-media {
  width: 100%;
  height: 116px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 6px;
  background: radial-gradient(circle, rgba(30, 41, 59, 0.55) 0%, rgba(15, 23, 42, 0.12) 74%);
}

.gm-art {
  width: 104px;
  height: 104px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
}

.gm-title {
  font-family: var(--font-display);
  font-size: clamp(13px, 1.05vw, 15px);
  color: #FFFFFF;
  letter-spacing: 0.03em;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gm-meta {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  color: #93C5FD;
  width: 100%;
  line-height: 1.2;
}

.gm-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.cur-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-size: 13px;
  color: #FDE047;
}

.cur-ic {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.gm-cta {
  width: 100%;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 14px;
  cursor: pointer;
}

/* AFK / Victory / Defeat / Exit / Reset Focused Compact Card Stage */
.afk-vault-stage {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 4px 2px;
}

.afk-hero-box {
  width: 100%;
  min-height: auto;
  gap: 8px;
  padding: 6px 10px 8px;
}

.afk-progress-track {
  width: 100%;
  height: 16px;
  overflow: hidden;
  padding: 0;
}

.afk-progress-fill {
  height: 100%;
  min-width: 4px;
}

.compact-action-row {
  width: 100%;
  display: flex;
  gap: 8px;
  justify-content: center;
}

.compact-action-row > button {
  flex: 1 1 0;
  min-width: 0;
}

.afk-claim-btn {
  width: 100%;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
}

.set-action-btn {
  min-width: 148px;
  max-width: 240px;
  height: 40px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
}

/* Settings Grid (all 7 rows fit cleanly above the fold at 720p with 0 scroll!) */
.settings-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.set-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 1px 8px;
}

.set-block.uiv-tactical_angled_steel-frame-subpanel {
  border-width: 7px 10px;
  border-image-width: 7px 10px;
}

.set-lbl {
  font-family: var(--font-display);
  font-size: 14px;
  color: #F8FAFC;
  min-width: 118px;
}

.set-slider {
  flex: 1 1 auto;
  accent-color: var(--amber);
  cursor: pointer;
}

.set-tog {
  min-width: 74px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  cursor: pointer;
}

.set-action-btn {
  min-width: 148px;
  max-width: 240px;
  height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  cursor: pointer;
}

.lang-select {
  min-width: 180px;
  height: 32px;
  background: #0F172A;
  color: #F8FAFC;
  border: 2px solid #64748B;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13.5px;
  padding: 0 10px;
  cursor: pointer;
}

/* Toast Banner */
.toast-banner {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  height: 42px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 15px;
  color: #FDE047;
  pointer-events: none;
}

/* Preview-Only [DEV F2] Panel */
.dev-f2-panel {
  position: fixed;
  top: 70px;
  right: 16px;
  z-index: 80;
  width: 210px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
}

.dev-f2-hdr {
  font-family: var(--font-display);
  font-size: 14px;
  color: #FDE047;
  text-align: center;
}

.dev-f2-btn {
  height: 38px;
  font-size: 13px;
  cursor: pointer;
}

/* 720p Compact Desktop Polish */
@media (max-width: 1366px), (max-height: 760px) {
  #hud-top { padding: 8px 12px; gap: 5px; }
  .hud-left-cluster, .hud-right-cluster { gap: 4px; }
  .hud-pill-item { height: 40px; padding: 0 5px; gap: 4px; }
  .hud-ic { width: 20px; height: 20px; }
  .nav-btn { height: 40px; min-width: 64px; max-width: 132px; padding: 0 5px; gap: 4px; font-size: 11.5px; }
  .nav-btn.nav-icon-only { min-width: 42px; max-width: 46px; }
  .nav-ic { width: 19px; height: 19px; }
  .skill-slot { width: 72px; height: 72px; }
  .skill-icon { width: 42px; height: 42px; }
  .modal-card { width: min(860px, 94vw); max-height: 90vh; }
  .modal-card.modal-compact { width: min(460px, 92vw); }
  .modal-card.modal-compact-md { width: min(600px, 94vw); }
  .game-card { min-height: 204px; }
  .gm-media { height: 96px; }
  .gm-art { width: 88px; height: 88px; }
}

@media (max-width: 900px) {
  .modal-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modal-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
