/* ==========================================================================
   STYX // NEON ABYSS — High-Craft Arcade Glass & Neon UI
   ========================================================================== */

:root {
  --bg-deep: #04050c;
  --bg-panel: rgba(10, 14, 28, 0.72);
  --border-glass: rgba(130, 190, 255, 0.18);
  --text-main: #eef4ff;
  --text-dim: #8a9bc2;

  --cyan: #2cf6ff;
  --magenta: #ff36c8;
  --gold: #ffcc33;
  --crimson: #ff335c;

  --font-display: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Cascadia Code', 'JetBrains Mono', 'Consolas', monospace;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #0c1228 0%, #050712 58%, #020308 100%);
  color: var(--text-main);
  font-family: var(--font-display);
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

#app {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 12px 18px 10px;
  gap: 10px;
}

/* ---------- TOP HUD ---------- */

#hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 18px;
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.hud-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-title {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0.24em;
  background: linear-gradient(135deg, #ffffff 0%, var(--cyan) 50%, var(--magenta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 10px rgba(44, 246, 255, 0.45));
}

.level-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(44, 246, 255, 0.08);
  border: 1px solid rgba(44, 246, 255, 0.28);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.pill-label {
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

.pill-value {
  color: var(--cyan);
  font-weight: 700;
}

.realm-name {
  color: rgba(238, 244, 255, 0.85);
  font-weight: 600;
  letter-spacing: 0.06em;
  padding-left: 4px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

/* Progress Bar */

.hud-progress {
  flex: 1;
  max-width: 310px;
  min-width: 170px;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.stat-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text-dim);
}

.progress-numbers {
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.claimed-val {
  font-weight: 800;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(44, 246, 255, 0.55);
}

.target-val {
  color: var(--text-dim);
  font-size: 0.74rem;
}

.progress-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1b7fff 0%, var(--cyan) 65%, #ffffff 100%);
  box-shadow: 0 0 14px rgba(44, 246, 255, 0.75);
  transition: width 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.progress-fill.near-goal {
  background: linear-gradient(90deg, var(--magenta) 0%, var(--gold) 75%, #ffffff 100%);
  box-shadow: 0 0 18px rgba(255, 204, 51, 0.85);
}

.progress-target-marker {
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: 80%;
  width: 2px;
  background: #ffffff;
  box-shadow: 0 0 8px #ffffff, 0 0 14px var(--gold);
}

/* Multiplier Core */

.hud-multiplier {
  gap: 9px;
}

.multiplier-badge {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.multiplier-badge.pulse {
  transform: scale(1.16);
}

.mult-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.mult-ring-bg {
  fill: rgba(8, 12, 24, 0.75);
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 3;
}

.mult-ring-arc {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-dasharray: 119.38;
  stroke-dashoffset: 0;
  transition: stroke 0.2s ease;
}

.mult-text {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.mult-1 {
  color: var(--cyan);
  box-shadow: 0 0 16px rgba(44, 246, 255, 0.35);
}
.mult-1 .mult-ring-arc { stroke: var(--cyan); }

.mult-5 {
  color: var(--magenta);
  box-shadow: 0 0 20px rgba(255, 54, 200, 0.5);
}
.mult-5 .mult-ring-arc { stroke: var(--magenta); }

.mult-10 {
  color: var(--gold);
  box-shadow: 0 0 26px rgba(255, 204, 51, 0.75);
}
.mult-10 .mult-ring-arc { stroke: var(--gold); }

.mult-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.mult-sub {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* Scores */

.hud-scores {
  gap: 18px;
}

.score-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
}

.score-value {
  font-family: var(--font-mono);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
}

.hi-value {
  color: var(--gold);
  font-size: 0.95rem;
  text-shadow: 0 0 10px rgba(255, 204, 51, 0.4);
}

/* Lives & Buttons */

.lives-tray {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-right: 4px;
}

.life-gem {
  width: 13px;
  height: 13px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #ffffff 0%, var(--cyan) 60%, #0077ff 100%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 10px rgba(44, 246, 255, 0.85);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.life-gem.lost {
  opacity: 0.16;
  transform: rotate(45deg) scale(0.75);
  box-shadow: none;
}

.icon-actions {
  display: flex;
  gap: 6px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.icon-btn svg {
  width: 17px;
  height: 17px;
}

.icon-btn:hover {
  background: rgba(44, 246, 255, 0.12);
  border-color: rgba(44, 246, 255, 0.5);
  color: var(--cyan);
}

.icon-btn:active {
  transform: scale(0.94);
}

.icon-btn.active {
  background: rgba(44, 246, 255, 0.18);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 12px rgba(44, 246, 255, 0.35);
}

/* ---------- MAIN STAGE ---------- */

#stage-wrapper {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#stage-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #03040a;
  border: 1px solid rgba(110, 210, 255, 0.28);
  box-shadow:
    0 0 0 1px rgba(44, 246, 255, 0.12),
    0 24px 70px rgba(0, 0, 0, 0.78),
    0 0 50px rgba(44, 246, 255, 0.12);
}

#gl-canvas,
#ui-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#ui-canvas {
  pointer-events: none;
}

/* Toast Banner */

.toast-banner {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  padding: 7px 18px;
  border-radius: 999px;
  background: rgba(12, 16, 32, 0.85);
  border: 1px solid rgba(255, 204, 51, 0.65);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-shadow: 0 0 12px rgba(255, 204, 51, 0.7);
  box-shadow: 0 0 24px rgba(255, 204, 51, 0.35);
  pointer-events: none;
  z-index: 15;
  animation: toastPop 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.toast-banner.danger {
  border-color: rgba(255, 51, 92, 0.85);
  color: #ff6685;
  text-shadow: 0 0 14px rgba(255, 51, 92, 0.9);
  box-shadow: 0 0 28px rgba(255, 51, 92, 0.45);
}

@keyframes toastPop {
  from { opacity: 0; transform: translate(-50%, -10px) scale(0.92); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

/* ---------- OVERLAYS ---------- */

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(4, 7, 18, 0.56) 0%, rgba(2, 4, 12, 0.82) 100%);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 20;
  padding: 20px;
  transition: opacity 0.28s ease;
}

.overlay.hidden {
  display: none;
}

.overlay-card {
  width: 100%;
  max-width: 640px;
  padding: 30px 34px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(14, 20, 42, 0.86) 0%, rgba(7, 10, 22, 0.92) 100%);
  border: 1px solid rgba(110, 220, 255, 0.28);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.72),
    0 0 40px rgba(44, 246, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  text-align: center;
}

.compact-card {
  max-width: 440px;
}

.title-eyebrow,
.overlay-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--cyan);
  opacity: 0.9;
  margin-bottom: 6px;
}

.hero-logo {
  font-size: clamp(3.2rem, 7vw, 4.8rem);
  font-weight: 950;
  letter-spacing: 0.32em;
  padding-left: 0.32em;
  line-height: 1.05;
  background: linear-gradient(180deg, #ffffff 0%, #99f9ff 42%, var(--cyan) 68%, var(--magenta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(44, 246, 255, 0.6)) drop-shadow(0 0 42px rgba(255, 54, 200, 0.35));
  margin-bottom: 10px;
}

.hero-tagline {
  font-size: 0.96rem;
  color: #b7c8eb;
  line-height: 1.5;
  max-width: 490px;
  margin: 0 auto 22px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  text-align: left;
  margin-bottom: 24px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.feature-icon.cyan {
  background: rgba(44, 246, 255, 0.14);
  color: var(--cyan);
  border: 1px solid rgba(44, 246, 255, 0.4);
  box-shadow: 0 0 14px rgba(44, 246, 255, 0.25);
}

.feature-icon.gold {
  background: rgba(255, 204, 51, 0.14);
  color: var(--gold);
  border: 1px solid rgba(255, 204, 51, 0.45);
  box-shadow: 0 0 14px rgba(255, 204, 51, 0.25);
}

.feature-icon.crimson {
  background: rgba(255, 51, 92, 0.14);
  color: #ff6183;
  border: 1px solid rgba(255, 51, 92, 0.45);
  box-shadow: 0 0 14px rgba(255, 51, 92, 0.25);
}

.feature-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.feature-copy strong {
  font-size: 0.88rem;
  color: #ffffff;
}

.feature-copy span {
  font-size: 0.79rem;
  color: var(--text-dim);
  line-height: 1.35;
}

.c-cyan { color: var(--cyan); }
.c-mag { color: var(--magenta); }
.c-gold { color: var(--gold); }

.overlay-heading {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
}

.gold-text {
  background: linear-gradient(180deg, #fff8d6 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 16px rgba(255, 204, 51, 0.55));
}

.crimson-text {
  background: linear-gradient(180deg, #ffd6df 0%, var(--crimson) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 16px rgba(255, 51, 92, 0.6));
}

.summary-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
}

.summary-row strong {
  color: #ffffff;
  font-size: 0.98rem;
}

.summary-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 2px 0;
}

.total-row {
  color: #ffffff;
  font-weight: 700;
}

.total-row strong {
  font-size: 1.2rem;
  color: var(--gold);
}

.controls-mini {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-dim);
  margin-bottom: 22px;
}

.cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: 12px;
  border: 1px solid rgba(155, 248, 255, 0.75);
  background: linear-gradient(135deg, #0095ff 0%, #1ae2ff 50%, #9b3bff 100%);
  color: #030714;
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  cursor: pointer;
  box-shadow:
    0 0 24px rgba(44, 246, 255, 0.45),
    0 10px 26px rgba(0, 0, 0, 0.45);
  transition: transform 0.16s ease, box-shadow 0.2s ease, filter 0.16s ease;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.08);
  box-shadow:
    0 0 34px rgba(44, 246, 255, 0.72),
    0 14px 32px rgba(0, 0, 0, 0.55);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.14s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(44, 246, 255, 0.5);
}

.cta-wrap {
  flex-wrap: wrap;
}

/* ---------- HIGH SCORES & GAME OVER SCOREBOARD ---------- */

.scores-card {
  max-width: 680px;
  padding: 22px 26px;
  max-height: 94%;
  overflow-y: auto;
}

.go-heading {
  font-size: 1.65rem;
  margin-bottom: 10px;
}

.go-summary-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 10px 18px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.09);
  margin-bottom: 10px;
}

.go-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: var(--font-mono);
}

.go-stat strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.go-stat-sep {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.14);
}

.go-status-line {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 10px;
  min-height: 1.2em;
}

.go-status-line.is-muted {
  color: var(--text-dim);
}

.go-initials-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 6px 14px;
  border-radius: 10px;
  background: rgba(44, 246, 255, 0.08);
  border: 1px solid rgba(44, 246, 255, 0.32);
}

.initials-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text-dim);
}

.initials-input {
  width: 68px;
  padding: 4px 8px;
  border-radius: 7px;
  border: 1px solid rgba(44, 246, 255, 0.55);
  background: rgba(4, 9, 22, 0.82);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-align: center;
  text-transform: uppercase;
  outline: none;
  box-shadow: 0 0 12px rgba(44, 246, 255, 0.25);
}

.initials-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 16px rgba(255, 204, 51, 0.5);
}

.score-tabs {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 12px;
  gap: 3px;
}

.score-tab-btn {
  padding: 5px 15px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.score-tab-btn:hover {
  color: #ffffff;
}

.score-tab-btn.active {
  background: rgba(44, 246, 255, 0.2);
  color: var(--cyan);
  box-shadow: 0 0 12px rgba(44, 246, 255, 0.28);
}

.scores-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  margin-bottom: 12px;
  text-align: left;
}

.scores-list.two-col-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 10px;
}

.score-row-item {
  display: grid;
  grid-template-columns: 32px 42px 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.score-row-item.is-top1 {
  background: rgba(255, 204, 51, 0.08);
  border-color: rgba(255, 204, 51, 0.34);
}

.score-row-item.is-current {
  background: rgba(44, 246, 255, 0.14);
  border-color: rgba(44, 246, 255, 0.72);
  box-shadow: 0 0 14px rgba(44, 246, 255, 0.25);
}

.sc-rank {
  color: var(--text-dim);
  font-weight: 700;
}

.score-row-item.is-top1 .sc-rank {
  color: var(--gold);
}

.sc-name {
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.08em;
}

.sc-score {
  font-weight: 800;
  color: #ffffff;
  text-align: right;
}

.score-row-item.is-top1 .sc-score {
  color: var(--gold);
}

.sc-level {
  color: var(--cyan);
  font-size: 0.7rem;
  opacity: 0.9;
}

.sc-date {
  color: var(--text-dim);
  font-size: 0.68rem;
}

.scores-msg {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}

@media (max-width: 720px) {
  .scores-list.two-col-wide {
    grid-template-columns: 1fr;
  }
}

.btn-kbd {
  background: rgba(4, 9, 22, 0.35);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
  font-size: 0.7rem;
}

kbd {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #e4f2ff;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.4);
}

/* ---------- FOOTER ---------- */

#footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 8px;
  font-size: 0.74rem;
  color: var(--text-dim);
  flex-shrink: 0;
}

.footer-hints {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-hints .dot {
  opacity: 0.35;
}

.footer-status {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: rgba(44, 246, 255, 0.72);
}

.hidden {
  display: none !important;
}

.title-version {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  opacity: 0.72;
}

.title-card {
  max-height: 100%;
  overflow-y: auto;
}

@media (max-width: 980px) {
  .realm-name,
  .mult-meta,
  .score-hi,
  .footer-status {
    display: none;
  }
  #hud {
    padding: 8px 12px;
    gap: 10px;
  }
}

@media (max-width: 600px) {
  .overlay {
    position: fixed;
    inset: 0;
    padding: 8px;
    overflow-y: auto;
  }
  .overlay-card {
    padding: 13px 13px;
    border-radius: 14px;
  }
  .title-eyebrow,
  .overlay-eyebrow {
    font-size: 0.56rem;
    letter-spacing: 0.12em;
    margin-bottom: 3px;
  }
  .hero-logo {
    font-size: 2rem;
    letter-spacing: 0.24em;
    padding-left: 0.24em;
    margin-bottom: 4px;
  }
  .hero-tagline {
    font-size: 0.75rem;
    line-height: 1.35;
    margin-bottom: 10px;
  }
  .feature-grid {
    gap: 5px;
    margin-bottom: 11px;
  }
  .feature-item {
    gap: 9px;
    padding: 6px 9px;
    border-radius: 10px;
  }
  .feature-icon {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
    border-radius: 8px;
  }
  .feature-copy strong {
    font-size: 0.75rem;
  }
  .feature-copy span {
    font-size: 0.67rem;
    line-height: 1.3;
  }
  .cta-row {
    gap: 8px;
  }
  .btn-primary,
  .btn-secondary {
    padding: 9px 14px;
    font-size: 0.76rem;
    letter-spacing: 0.1em;
    border-radius: 10px;
  }
  .btn-kbd {
    display: none;
  }
  .title-version {
    margin-top: 8px;
    font-size: 0.66rem;
  }
}
