/* Suited Ape Society - SUITED CAR
 * Cyberpunk dark highway racer styling - responsive mobile & desktop
 */

:root {
  --bg-obsidian: #070a0f;
  --lime: #ccff00;
  --cyan: #00e5ff;
  --magenta: #ff2a9d;
  --gold: #ffd426;
  --text-main: #f4f7fb;
  --text-muted: #93a3b8;
  --border-subtle: rgba(204, 255, 0, 0.22);
  --border-strong: rgba(204, 255, 0, 0.55);
  --font-display: 'Chakra Petch', 'Space Grotesk', system-ui, sans-serif;
  --font-ui: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-obsidian);
  color: var(--text-main);
  font-family: var(--font-ui);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  overscroll-behavior: none;
}

.app-shell {
  position: relative;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  background: radial-gradient(circle at 50% 25%, #121c2c 0%, #070a0f 72%);
}

#gameCanvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.ambient-vignette {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 56%, rgba(3, 5, 9, 0.62) 100%);
  z-index: 2;
}

/* ==================== TOP HUD ==================== */
.hud-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 8px;
  padding: max(12px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));
  pointer-events: none;
}

.hud-brand {
  grid-column: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  text-decoration: none;
  background: rgba(9, 13, 20, 0.78);
  border: 1px solid rgba(204, 255, 0, 0.26);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 6px 12px 6px 8px;
  border-radius: 14px;
  pointer-events: auto;
  white-space: nowrap;
  transition: border-color 0.15s ease, transform 0.12s ease;
}

.hud-brand:hover {
  border-color: var(--lime);
  transform: translateY(-1px);
}

.brand-crest {
  width: 30px;
  height: 27px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(204, 255, 0, 0.45));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--lime);
}

.brand-route {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.hud-score-center {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 2px;
}

.score-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--lime);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.score-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  line-height: 0.96;
  color: #ffffff;
  text-shadow:
    0 0 22px rgba(204, 255, 0, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.95);
  transition: transform 0.12s cubic-bezier(0.22, 1, 0.36, 1);
}

.score-value.bump {
  transform: scale(1.24);
  color: var(--lime);
}

.score-sub-pills {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(8, 12, 19, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.sub-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-main);
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.dot-cyan { background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }
.dot-gold { background: var(--gold); box-shadow: 0 0 6px var(--gold); }
.dot-lime { background: var(--lime); box-shadow: 0 0 6px var(--lime); }

.hud-meta-row {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 5px;
}

.phase-badge {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.32);
  border-radius: 999px;
  padding: 3px 9px;
  text-transform: uppercase;
}

.nitro-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 212, 38, 0.35);
  background: rgba(12, 17, 26, 0.84);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.nitro-pill.ready {
  border-color: var(--lime);
  background: rgba(204, 255, 0, 0.18);
  box-shadow: 0 0 16px rgba(204, 255, 0, 0.5);
  animation: nitroPulse 1s infinite;
}

.nitro-pill.active {
  border-color: var(--magenta);
  background: rgba(255, 42, 157, 0.24);
  box-shadow: 0 0 18px rgba(255, 42, 157, 0.6);
}

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

.nitro-bar-track {
  width: 44px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
  display: block;
}

.nitro-bar-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--lime), var(--cyan));
  transition: width 0.12s linear;
}

.nitro-text {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.nitro-pill.ready .nitro-text {
  color: var(--lime);
}

.hud-controls {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(9, 13, 20, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.15s ease, color 0.15s ease;
}

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

.icon-btn:hover {
  border-color: var(--lime);
  color: var(--lime);
  transform: translateY(-1px);
}

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

.icon-btn.muted {
  color: #5b6a80;
  border-color: rgba(255, 255, 255, 0.08);
  opacity: 0.72;
}

/* ==================== TOUCH STEER GUIDE ==================== */
.touch-guide {
  pointer-events: none;
  position: absolute;
  bottom: max(26px, env(safe-area-inset-bottom));
  left: 16px;
  right: 16px;
  z-index: 12;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  opacity: 0.78;
}

.guide-side {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--lime);
  background: rgba(8, 12, 19, 0.72);
  border: 1px solid rgba(204, 255, 0, 0.3);
  border-radius: 999px;
  padding: 5px 11px;
}

/* ==================== OVERLAYS ==================== */
.overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(62px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
}

.hidden {
  display: none !important;
}

.start-overlay {
  pointer-events: none;
  justify-content: space-between;
  gap: 10px;
  padding-top: max(68px, env(safe-area-inset-top));
  padding-bottom: clamp(18px, 4.5vh, 42px);
}

.start-hero-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 110px;
  max-height: 36vh;
  width: 100%;
  pointer-events: none;
}

.hero-glow-ring {
  position: absolute;
  width: min(320px, 70vw);
  height: min(170px, 26vh);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(204, 255, 0, 0.28) 0%, rgba(0, 229, 255, 0.12) 45%, transparent 72%);
  filter: blur(18px);
}

.hero-car-img {
  position: relative;
  z-index: 1;
  max-height: 100%;
  max-width: min(390px, 86vw);
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 18px rgba(204, 255, 0, 0.28));
  animation: carIdle 2.2s ease-in-out infinite;
}

@keyframes carIdle {
  0%, 100% { transform: translateY(0px) rotate(-0.5deg); }
  50% { transform: translateY(-7px) rotate(0.6deg); }
}

.start-panel {
  pointer-events: auto;
  width: min(470px, 100%);
  background: linear-gradient(180deg, rgba(11, 16, 25, 0.88) 0%, rgba(7, 10, 16, 0.94) 100%);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: 20px 22px 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.78),
    0 0 42px rgba(204, 255, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: center;
  animation: panelRise 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes panelRise {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.society-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(204, 255, 0, 0.1);
  border: 1px solid rgba(204, 255, 0, 0.32);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--lime);
  margin-bottom: 8px;
}

.tag-icon {
  width: 16px;
  height: 15px;
  object-fit: contain;
}

.game-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2.3rem, 7.5vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.title-suited {
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.75);
}

.title-car {
  color: var(--lime);
  text-shadow: 0 0 28px rgba(204, 255, 0, 0.55);
}

.game-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 14px;
}

.start-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 14px;
}

.mini-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.mini-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.mini-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.96rem;
  color: #ffffff;
}

.mini-value.rank-accent {
  color: var(--lime);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.mini-divider {
  width: 1px;
  height: 26px;
  background: rgba(255, 255, 255, 0.1);
}

/* ==================== BUTTONS ==================== */
.cta-primary {
  position: relative;
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #d8ff1f 0%, #b5f200 100%);
  color: #070a0f;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    0 8px 28px rgba(204, 255, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition: transform 0.12s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(204, 255, 0, 0.5);
  filter: brightness(1.04);
}

.cta-primary:active {
  transform: scale(0.98);
}

.cta-glow {
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  animation: shimmerSweep 2.8s infinite;
}

@keyframes shimmerSweep {
  0% { left: -60%; }
  45% { left: 130%; }
  100% { left: 130%; }
}

.cta-label {
  position: relative;
  z-index: 1;
}

.cta-secondary {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.cta-secondary:hover {
  border-color: var(--lime);
  background: rgba(204, 255, 0, 0.1);
  color: var(--lime);
  transform: translateY(-1px);
}

.cta-secondary:active {
  transform: scale(0.97);
}

.x-btn:hover {
  border-color: var(--cyan);
  background: rgba(0, 229, 255, 0.12);
  color: var(--cyan);
}

.controls-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--text-muted);
}

.key-cap {
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e6eef8;
  font-weight: 700;
}

.key-sep {
  color: rgba(255, 255, 255, 0.25);
}

.hint-text {
  color: var(--lime);
  font-weight: 700;
}

/* ==================== MODAL OVERLAYS ==================== */
.modal-overlay {
  background: rgba(4, 7, 12, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding-top: max(18px, env(safe-area-inset-top));
}

.modal-card {
  width: min(440px, 100%);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(13, 19, 30, 0.96) 0%, rgba(8, 11, 18, 0.98) 100%);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: 22px;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.85),
    0 0 46px rgba(204, 255, 0, 0.14);
  animation: panelRise 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.compact-card {
  width: min(360px, 100%);
  text-align: center;
}

.modal-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--lime);
}

.modal-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.65rem;
  letter-spacing: 0.04em;
  color: #ffffff;
  line-height: 1.1;
}

.modal-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 8px 0 18px;
}

.gameover-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.avatar-ring {
  width: 66px;
  height: 66px;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(135deg, var(--lime), var(--cyan), var(--magenta));
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(204, 255, 0, 0.25);
}

.pilot-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.gameover-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

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

.new-best-pill {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--gold);
  color: #080b10;
  letter-spacing: 0.08em;
  animation: pulseGold 1.2s infinite;
}

@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 212, 38, 0.6); }
  50% { box-shadow: 0 0 0 8px rgba(255, 212, 38, 0); }
}

.rank-pill {
  display: inline-flex;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 8px;
  background: rgba(204, 255, 0, 0.12);
  border: 1px solid rgba(204, 255, 0, 0.38);
  color: var(--lime);
}

.score-hero-box {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(204, 255, 0, 0.25);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.score-hero-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.hero-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.9rem;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(204, 255, 0, 0.35);
}

.score-hero-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 14px;
  min-width: 112px;
}

.side-metric {
  display: flex;
  flex-direction: column;
}

.side-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.side-val {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.96rem;
  color: #ffffff;
}

.side-val.lime { color: var(--lime); }

.bonus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.bonus-cell {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 9px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bonus-label {
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.bonus-val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
}

.bonus-val.gold { color: var(--gold); }
.bonus-val.cyan { color: var(--cyan); }

.history-section {
  margin-bottom: 14px;
}

.history-title {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

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

.history-row {
  display: grid;
  grid-template-columns: 24px 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.history-row.current {
  background: rgba(204, 255, 0, 0.09);
  border-color: rgba(204, 255, 0, 0.35);
}

.h-pos { color: var(--lime); font-weight: 700; }
.h-walls { color: #ffffff; font-weight: 700; }
.h-time { color: var(--text-muted); }
.h-rank { color: var(--cyan); font-size: 0.62rem; }

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.share-row {
  display: flex;
  gap: 9px;
}

.restart-footnote {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-top: 10px;
}

.toast {
  position: absolute;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  background: rgba(14, 22, 34, 0.96);
  border: 1px solid var(--lime);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 9px 16px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* ==================== RESPONSIVE TWEAKS ==================== */
@media (max-width: 600px) {
  .hud-brand {
    padding: 5px 9px 5px 6px;
    gap: 7px;
  }

  .brand-crest {
    width: 24px;
    height: 22px;
  }

  .brand-title {
    font-size: 0.66rem;
  }

  .brand-route {
    font-size: 0.54rem;
  }

  .icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .score-sub-pills {
    gap: 6px;
    padding: 3px 8px;
  }

  .sub-pill {
    font-size: 0.6rem;
  }

  .start-panel {
    padding: 16px 15px 14px;
    border-radius: 20px;
  }

  .modal-card {
    padding: 18px 16px;
    border-radius: 20px;
  }

  .hero-number {
    font-size: 2.4rem;
  }
}

@media (max-height: 640px) {
  .start-hero-wrap {
    max-height: 24vh;
  }

  .game-subtitle {
    margin-bottom: 8px;
    font-size: 0.82rem;
  }

  .start-stats-row {
    padding: 7px 10px;
    margin-bottom: 10px;
  }

  .history-section {
    display: none;
  }
}
