/* Local Train Ghuso! - Western line maroon, platform yellow, monsoon blue */
:root { --night: #14101C; --moon: #FFF6E6; --itch: #FFD23F; --sheet: #8B1E3F; --coil: #3DDC84; --bite: #E63946; }

.screen { background:
  linear-gradient(180deg, #8B1E3F 0 28%, #FFD23F 28% 30%, #2a2433 30% 100%); }
.screen.dim { background: radial-gradient(circle at 50% 40%, rgba(139,30,63,.94) 0%, rgba(20,16,28,.97) 70%); }
.mascot svg { animation: rattle .25s linear infinite alternate; }
@keyframes rattle { from { transform: translate(-2px, 0); } to { transform: translate(2px, -2px); } }
.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: grab; }
.page { cursor: default; }
.page .day { color: var(--sheet); }
.ms-line { font-size: 13px; font-weight: 600; line-height: 1.3; }
.page.locked { background: #a89aa8; }

/* ---------- 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: 6px; align-items: center; flex-wrap: wrap; justify-content: center; }
#modeChip { font-weight: 900; color: var(--itch); }
.meter { display: flex; align-items: center; gap: 6px; background: var(--night); border: 3px solid var(--moon); border-radius: 30px; padding: 2px 12px; font-size: 18px; }
#bumps { padding-top: 0; gap: 5px; }
.bump { width: 13px; height: 13px; }
.timebar { margin: 8px auto 0; width: min(420px, 80vw); height: 14px; border: 3px solid var(--moon); border-radius: 10px; overflow: hidden; background: rgba(255,246,230,.15); }
#timeFill { display: block; height: 100%; width: 100%; background: var(--coil); transition: width .1s linear; }
#timeFill.low { background: var(--bite); }
#combo { text-align: center; margin-top: 6px; font-family: var(--comic); font-size: 22px; letter-spacing: .04em; color: var(--itch); text-shadow: var(--outline); min-height: 1px; }
#hint { position: fixed; left: 50%; top: 62%; transform: translate(-50%, -50%); width: max-content; max-width: 88vw; background: rgba(20,16,28,.9);
  border: 3px dashed var(--moon); border-radius: 16px; padding: 10px 18px; font-weight: 800; font-size: 17px; text-align: center; pointer-events: none; }

@media (max-width: 560px) {
  .hud-top { flex-wrap: wrap; }
  .meters { order: 3; width: 100%; }
  #hint { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .mascot svg { animation: none; }
}
