/* Road Cross! - an Indian road at 3 AM: asphalt purple-black, auto yellow, truck-art pink and orange */
:root { --night: #1A1622; --moon: #FFF3E0; --itch: #FFD23F; --sheet: #FF4F9A; --coil: #2ECC71; --bite: #FF3B30; }

/* Screens: zebra crossing stripes instead of Bzzz Off's coil */
.screen { background:
  repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 40px, transparent 40px 80px),
  radial-gradient(circle at 50% 38%, #3a2f55 0%, var(--night) 72%); }
.screen.dim { background: radial-gradient(circle at 50% 40%, rgba(58,47,85,.93) 0%, rgba(26,22,34,.97) 70%); }
.mascot svg { animation: stop 1.4s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes stop { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg) scale(1.05); } }
.menu-grid a.ghost { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 10px; font-size: 18px; text-decoration: none; }
canvas { cursor: pointer; }

/* ---------- HUD ---------- */
.hud-top { align-items: center; }
.hud-left { flex-direction: row; gap: 6px; }
#score { font-size: 17px; text-shadow: none; padding: 0; color: var(--moon); }
.meters { display: flex; gap: 8px; align-items: center; }
#handBtn { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); pointer-events: auto; z-index: 4;
  font-family: var(--body); font-weight: 900; font-size: 26px; color: var(--night); background: var(--itch); border: 4px solid var(--night);
  border-radius: 50%; width: 78px; height: 78px; box-shadow: 0 6px 0 var(--night); cursor: pointer; touch-action: none; }
#handBtn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--night); }
#handBtn:disabled { opacity: .45; cursor: default; }
#hint { position: fixed; left: 50%; top: 40%; transform: translate(-50%, -50%); width: max-content; max-width: 88vw; background: rgba(26,22,34,.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 { animation: none; }
}
