/* =====================================================================
   RUSH — Style
   ---------------------------------------------------------------------
   Aesthetik: NEON-HIGHWAY — "nach Mitternacht". Tinte-Schwarz, Amber
   und Cyan als Leuchtakzente, Scanline-Overlay. Minimal, dunkel,
   schnell.
   ===================================================================== */

@font-face {
  font-family: 'Limelight';
  src: url('../shared/fonts/limelight-400.woff2') format('woff2');
  font-display: swap;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0c0d10;
  font-family: 'Limelight', monospace;
}

canvas {
  display: block;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

#hud {
  z-index: 5;
  pointer-events: none;
}

#screens {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

#screens.active {
  pointer-events: auto;
}

.backlink {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  color: rgba(200, 162, 74, 0.5);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.backlink:hover {
  color: rgba(200, 162, 74, 0.9);
}

/* ── Screens (Title, Game Over, Pause) ─────────────────────────── */

#screens .screen-title,
#screens .screen-gameover,
#screens .screen-pause {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 40px 56px;
  background: rgba(12, 13, 16, 0.88);
  border: 1px solid rgba(0, 229, 255, 0.25);
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.08), inset 0 0 60px rgba(0, 0, 0, 0.6);
}

.title-text {
  font-family: 'Limelight', monospace;
  font-size: 72px;
  letter-spacing: 0.18em;
  color: #00e5ff;
  text-shadow: 0 0 24px rgba(0, 229, 255, 0.6);
}

.subtitle {
  font-family: 'Limelight', monospace;
  font-size: 16px;
  letter-spacing: 0.5em;
  color: rgba(252, 160, 74, 0.9);
}

.controls-info {
  display: grid;
  grid-template-columns: auto auto;
  gap: 4px 18px;
  margin-top: 8px;
}

.control-row {
  display: contents;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
}

.control-row .key {
  color: #00e5ff;
  text-align: right;
  font-family: monospace;
}

.highscore-display {
  margin-top: 10px;
  font-family: monospace;
  font-size: 15px;
  color: rgba(200, 162, 74, 0.7);
  letter-spacing: 0.2em;
}

.screen-title button,
.screen-gameover button,
.screen-pause button {
  margin-top: 12px;
  padding: 10px 42px;
  font-family: 'Limelight', monospace;
  font-size: 18px;
  letter-spacing: 0.2em;
  color: #0c0d10;
  background: #00e5ff;
  border: none;
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.screen-title button:hover,
.screen-gameover button:hover,
.screen-pause button:hover {
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.8);
}

.gameover-title,
.pause-title {
  font-family: 'Limelight', monospace;
  font-size: 44px;
  letter-spacing: 0.15em;
  color: #fca04a;
  text-shadow: 0 0 20px rgba(252, 160, 74, 0.5);
}

.gameover-stats {
  display: grid;
  grid-template-columns: auto auto;
  gap: 6px 24px;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
}

.gameover-stats .value {
  font-family: monospace;
  color: #00e5ff;
}
