/* ============ PARKING LOT RAMPAGE — styles.css ============ */

:root {
  --wm-blue: #0071ce;
  --wm-yellow: #ffc220;
  --wm-dark: #0a0f14;
  --wm-panel: rgba(10, 16, 22, 0.86);
  --wm-accent: #ff4d4d;
  --wm-text: #eef3f7;
}

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

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: #04070a;
  font-family: "Segoe UI", "Arial Black", Arial, sans-serif;
  color: var(--wm-text);
  user-select: none;
  -webkit-user-select: none;
  cursor: default;
}

canvas#game {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hidden { display: none !important; }

/* ---------- Full-screen overlay screens ---------- */
.screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(0,113,206,0.28), transparent 60%),
    radial-gradient(ellipse at 50% 110%, rgba(255,194,32,0.10), transparent 60%),
    #04070a;
  animation: screenIn 0.35s ease-out;
}

@keyframes screenIn {
  from { opacity: 0; transform: scale(1.03); }
  to   { opacity: 1; transform: scale(1); }
}

.menu-inner {
  position: relative;
  width: min(620px, 92vw);
  max-height: 92vh;
  overflow-y: auto;
  padding: 42px 46px;
  text-align: center;
  background: var(--wm-panel);
  border: 2px solid rgba(255,194,32,0.35);
  border-radius: 14px;
  box-shadow:
    0 0 0 6px rgba(0,0,0,0.45),
    0 30px 80px rgba(0,0,0,0.8),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.menu-shine {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(255,255,255,0.10), transparent 40%);
}

.title {
  font-size: 72px;
  line-height: 0.9;
  letter-spacing: 4px;
  font-weight: 900;
  color: #fff;
  text-shadow:
    0 2px 0 #00549c,
    0 5px 0 #003a6b,
    0 10px 30px rgba(0,113,206,0.6);
}
.title.small { font-size: 46px; }

.subtitle {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--wm-yellow);
  margin: 6px 0 4px;
  text-shadow: 0 2px 0 #8a5a00, 0 6px 22px rgba(255,194,32,0.5);
}
.subtitle .rampage { color: var(--wm-accent); text-shadow: 0 2px 0 #7a0000, 0 6px 22px rgba(255,77,77,0.5); }

.tagline {
  font-size: 13px;
  letter-spacing: 2px;
  color: #9fb3c4;
  margin: 8px 0 26px;
  text-transform: uppercase;
}

.menu-buttons { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }

.menu-btn {
  font-family: inherit;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 15px 20px;
  color: #fff;
  background: linear-gradient(180deg, #0e6fc4, #0a5495);
  border: 2px solid #3aa0ff;
  border-radius: 8px;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: 0 5px 0 #063a63, 0 10px 24px rgba(0,0,0,0.5);
  transition: transform 0.06s ease, box-shadow 0.06s ease, filter 0.12s ease;
}
.menu-btn:hover { filter: brightness(1.15); }
.menu-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #063a63, 0 4px 10px rgba(0,0,0,0.5); }
.menu-btn.danger {
  background: linear-gradient(180deg, #c93a2e, #9c2419);
  border-color: #ff6a5e;
  box-shadow: 0 5px 0 #6d130c, 0 10px 24px rgba(0,0,0,0.5);
}

.menu-footer {
  margin-top: 26px;
  font-size: 12px;
  color: #6b7d8c;
  letter-spacing: 1px;
}

/* how to */
.howto-body { text-align: left; font-size: 15px; line-height: 1.7; color: #cfdce6; }
.howto-body p { margin: 10px 0; }
.howto-body b { color: var(--wm-yellow); }
.howto-body hr { border: none; border-top: 1px solid rgba(255,255,255,0.14); margin: 16px 0; }

/* credits */
.credits-body { margin: 18px 0; }
.credit-big { font-size: 14px; letter-spacing: 3px; color: #7f93a3; }
.credit-name { font-size: 30px; font-weight: 900; color: var(--wm-yellow); margin: 10px 0 20px; text-shadow: 0 2px 0 #8a5a00; }
.credit-line { font-size: 14px; color: #b9c9d6; margin: 8px 0; line-height: 1.6; }

.pause-quote { font-size: 16px; color: #9fb3c4; font-style: italic; margin: 18px 0; }

.death-stats { font-size: 17px; margin: 16px 0; line-height: 1.8; color: #cfdce6; }
.death-stats b { color: var(--wm-yellow); }

/* ---------- HUD ---------- */
#hud {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

#hud-top {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  width: min(900px, 94vw);
}

#health-wrap, #wanted-wrap, #score-wrap, #ammo-wrap {
  background: rgba(8, 12, 16, 0.72);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  padding: 8px 12px;
  min-width: 130px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
#health-label, #wanted-label, #score-label, #ammo-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: #8fa4b4;
  margin-bottom: 5px;
}
#health-bar {
  height: 16px;
  background: #1a2026;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
}
#health-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #ff4d4d, #ffc220 60%, #6cff7a);
  transition: width 0.15s ease;
}
#wanted-stars { font-size: 18px; letter-spacing: 2px; color: #333; text-shadow: 0 0 6px rgba(0,0,0,0.6); }
#wanted-stars .on { color: var(--wm-accent); text-shadow: 0 0 10px rgba(255,60,60,0.9); }
#score-value { font-size: 20px; font-weight: 900; color: #fff; }
#ammo-value { font-size: 20px; font-weight: 900; color: var(--wm-yellow); }
#ammo-value.low { color: var(--wm-accent); animation: blink 0.5s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.35; } }

#hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.55);
  background: rgba(8,12,16,0.6);
  padding: 5px 12px;
  border-radius: 20px;
}

#banner {
  position: absolute;
  top: 22%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 44px;
  font-weight: 900;
  letter-spacing: 4px;
  color: var(--wm-yellow);
  text-shadow: 0 3px 0 #8a5a00, 0 8px 26px rgba(0,0,0,0.8);
  animation: bannerIn 1.4s ease-out forwards;
}
@keyframes bannerIn {
  0% { opacity: 0; transform: translateX(-50%) scale(0.6); }
  15% { opacity: 1; transform: translateX(-50%) scale(1.08); }
  30% { transform: translateX(-50%) scale(1); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) scale(1); }
}

/* ---------- Loading ---------- */
#loading-bar {
  width: 80%;
  margin: 26px auto 0;
  height: 14px;
  background: #1a2026;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
}
#loading-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--wm-blue), var(--wm-yellow));
  transition: width 0.2s ease;
}

@media (max-width: 640px) {
  .title { font-size: 48px; }
  .subtitle { font-size: 24px; }
  #hud-top { gap: 8px; }
  #health-wrap, #wanted-wrap, #score-wrap, #ammo-wrap { min-width: 70px; padding: 6px 8px; }
}
