/* Signal Pe Chaos! - a chauraha at night: asphalt black, sodium-lamp gold, brake-light pink, go green */
:root { --night: #14121C; --moon: #FFF6E6; --itch: #FFD23F; --sheet: #FF4F8B; --coil: #33E37A; --bite: #FF3B30; }

/* Screens: a zebra crossing instead of Bzzz Off's coil */
.screen { background:
  repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0 22px, transparent 22px 44px) 0 50% / 100% 120px no-repeat,
  radial-gradient(circle at 50% 30%, #3a2a4a 0%, var(--night) 72%); }
.screen.dim { background: radial-gradient(circle at 50% 40%, rgba(58,42,74,.93) 0%, rgba(20,18,28,.97) 70%); }
.mascot svg { animation: blink 2s steps(1) infinite; }
@keyframes blink { 0%, 100% { filter: none; } 50% { filter: hue-rotate(110deg) brightness(1.1); } }
.menu-grid a.ghost { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 10px; font-size: 18px; text-decoration: none; }
.logo { font-size: clamp(44px, 10vw, 96px); }
canvas { cursor: pointer; }

/* ---------- HUD ---------- */
.hud-top { align-items: center; }
.hud-left { flex-direction: row; gap: 6px; }
#score { font-size: 20px; text-shadow: none; padding: 0; color: var(--itch); }
.meters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; }
#lives { letter-spacing: 1px; }
#shorChip.angry { border-color: var(--bite); animation: shake .3s linear infinite; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-2px); } 75% { transform: translateX(2px); } }
#wakeFill { background: var(--bite); }
#hint { position: fixed; left: 50%; top: 70%; transform: translate(-50%, -50%); width: max-content; max-width: 88vw; background: rgba(20,18,28,.92);
  border: 3px dashed var(--moon); border-radius: 16px; padding: 10px 18px; font-weight: 800; font-size: 16px; text-align: center; pointer-events: none; }

@media (max-width: 560px) {
  #hint { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .mascot svg, #shorChip.angry { animation: none; }
}
