/* ============================================================
   KING KONG RAMPAGE – style.css
   Dark burning city aesthetic
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Share+Tech+Mono&display=swap');

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #000;
  overflow: hidden;
  font-family: 'Share Tech Mono', monospace;
  color: #fff;
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Canvas ---------- */
#gameCanvas {
  display: block;
  image-rendering: pixelated;
}

/* ---------- Overlay ---------- */
.overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.88);
  z-index: 10;
  pointer-events: all;
  transition: opacity 0.4s;
}
.overlay:not(.visible) {
  opacity: 0;
  pointer-events: none;
}

/* ---------- Screens ---------- */
.screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding: 20px;
}

/* ---------- Title ---------- */
.title-glow {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(64px, 13vw, 130px);
  letter-spacing: 6px;
  color: #ff8800;
  text-shadow:
    0 0 20px #ff4400,
    0 0 60px #ff6600,
    0 0 120px #ff2200;
  line-height: 1;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { text-shadow: 0 0 20px #ff4400, 0 0 60px #ff6600; }
  50%       { text-shadow: 0 0 40px #ff4400, 0 0 100px #ff6600, 0 0 200px #ffaa00; }
}

.subtitle {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 5vw, 52px);
  letter-spacing: 14px;
  color: #ffcc44;
  text-shadow: 0 0 14px #ffaa00;
}

.flavor {
  font-size: 14px;
  color: #aaa;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* ---------- Button ---------- */
.btn {
  margin-top: 10px;
  padding: 14px 42px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 4px;
  background: transparent;
  color: #ffcc44;
  border: 2px solid #ffcc44;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
}
.btn:hover {
  background: #ffcc44;
  color: #000;
  box-shadow: 0 0 24px #ffcc44;
}
.btn:active { transform: scale(0.96); }

/* ---------- Controls hint ---------- */
.controls-hint {
  font-size: 12px;
  color: #666;
  letter-spacing: 1px;
  margin-top: 6px;
  line-height: 2;
}
.controls-hint span { color: #ffcc44; }
.boost-hint { color: #ffe066 !important; text-shadow: 0 0 8px #ffe066; }
.slow-hint  { color: #00cfff !important; text-shadow: 0 0 8px #00cfff; }

/* ---------- Game Over screen ---------- */
.go-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(60px, 12vw, 120px);
  color: #ff4400;
  letter-spacing: 6px;
  text-shadow: 0 0 30px #ff4400;
}
.go-score-label {
  font-size: 12px;
  letter-spacing: 4px;
  color: #888;
  text-transform: uppercase;
}
.go-score {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 7vw, 72px);
  color: #fff;
  letter-spacing: 3px;
}
.best-score {
  font-size: 13px;
  color: #ffd700;
  letter-spacing: 2px;
  min-height: 20px;
}

/* ---------- HUD ---------- */
#hud {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  z-index: 5;
  pointer-events: none;
  font-size: 16px;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 0 8px rgba(255,180,0,0.6);
}
#speed-display { color: #ff8800; text-shadow: 0 0 8px #ff8800; }
#effect-display {
  font-size: 14px;
  letter-spacing: 2px;
  min-width: 120px;
  text-align: center;
}

/* ---------- Helpers ---------- */
.hidden { display: none !important; }
