html, body {
  margin: 0; padding: 0; width: 100%; height: 100%;
  overflow: hidden; background: #0e1230; color: #FFF3E0;
  font-family: Outfit, sans-serif;
}
#game-canvas { position: fixed; inset: 0; }
#game-canvas canvas { display: block; width: 100% !important; height: 100% !important; }
.hidden { display: none !important; }

.screen {
  position: fixed; inset: 0; z-index: 30;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px; box-sizing: border-box;
}
.title-screen {
  z-index: 40; cursor: pointer;
  background:
    radial-gradient(ellipse at 50% 32%, rgba(255,182,122,0.35) 0%, rgba(122,107,214,0.22) 38%, rgba(14,18,48,0.94) 74%),
    linear-gradient(180deg, #1a1440 0%, #0E1230 100%);
}
.title-kicker {
  font-weight: 800; letter-spacing: 0.42em; font-size: clamp(0.65rem, 1.4vw, 0.9rem);
  color: #59E0C2; margin-bottom: 8px; text-transform: uppercase;
}
.game-title {
  font-family: Bungee, sans-serif; font-size: clamp(3.4rem, 11vw, 7.2rem);
  margin: 0; line-height: 1; letter-spacing: 0.02em; color: #FFF3E0;
  text-shadow: 0 0 34px rgba(255,182,122,0.55), 0 6px 0 #b06a4a, 0 12px 30px rgba(0,0,0,0.65);
}
.tagline {
  font-weight: 700; font-size: clamp(0.95rem, 2.2vw, 1.2rem);
  letter-spacing: 0.06em; color: #FFE066; margin: 14px 0 34px;
}
#play-button, #death-restart, #victory-restart {
  font-family: Outfit, sans-serif; font-weight: 800; font-size: 1.15rem; letter-spacing: 0.14em;
  background: #FFE066; color: #120E1E; border: none; border-radius: 12px;
  padding: 15px 52px; cursor: pointer;
  box-shadow: 0 8px 24px rgba(255,224,102,0.45);
}
#play-button:hover { transform: scale(1.04); }
.controls {
  margin-top: 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px;
  max-width: 620px; font-size: 0.82rem; font-weight: 400; opacity: 0.85;
}
.controls b { color: #FFE066; font-weight: 800; }

.death-screen { background: rgba(10,6,24,0.86); }
.victory-screen { background: radial-gradient(ellipse at center, rgba(255,224,102,0.22) 0%, rgba(10,6,24,0.9) 70%); }
.screen h1 {
  font-family: Bungee, sans-serif; font-size: clamp(2rem, 5vw, 3.4rem);
  margin: 0 0 12px; color: #FF6B4A; letter-spacing: 0.04em;
}
.victory-screen h1 { color: #FFE066; }
.screen p { font-size: 1.02rem; margin: 0 0 18px; max-width: 560px; line-height: 1.5; }
.score-line { font-weight: 800; font-size: 1.05rem; color: #FFE066; margin-bottom: 22px; letter-spacing: 0.04em; }

.hud { position: fixed; inset: 0; pointer-events: none; user-select: none; font-family: Outfit, sans-serif; }
.hud-panel {
  position: fixed; background: #120E1ECC; color: #FFF3E0;
  border-radius: 12px; padding: 10px 14px; font-weight: 700;
  letter-spacing: 0.02em; text-shadow: 0 1px 3px rgba(0,0,0,0.7);
  border: 1px solid rgba(255,243,224,0.10);
}
