/* Maggi Rush! - hostel room at 3 AM: inky purple, Maggi yellow, chilli red, fairy-light pink */
:root { --night: #1B1430; --moon: #FFF7E6; --itch: #F7C948; --sheet: #FF5FA2; --coil: #3DDC84; --bite: #FF4D4D; }

/* Screens: noodle squiggles instead of Bzzz Off's coil */
.screen { background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cpath d='M8 20 q8 -8 16 0 t16 0 t16 0' fill='none' stroke='%23F7C948' stroke-opacity='.14' stroke-width='4'/%3E%3Cpath d='M40 64 q8 -8 16 0 t16 0' fill='none' stroke='%23FF5FA2' stroke-opacity='.12' stroke-width='4'/%3E%3C/svg%3E"),
  radial-gradient(circle at 50% 36%, #3b2d66 0%, var(--night) 72%); }
.screen.dim { background: radial-gradient(circle at 50% 40%, rgba(59,45,102,.93) 0%, rgba(27,20,48,.97) 70%); }
.mascot svg { animation: simmer .5s ease-in-out infinite alternate; }
@keyframes simmer { from { transform: translateY(0) scale(1); } to { transform: translateY(-4px) scale(1.03, .98); } }
.menu-grid a.ghost { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 10px; font-size: 18px; text-decoration: none; }
.page.boss { background: var(--sheet); color: #fff; }
.pest .big-emoji { font-size: 60px; line-height: 105px; height: 105px; }
.pest.hazard { background: var(--coil); }
canvas { cursor: pointer; }

/* ---------- HUD ---------- */
.hud-top { align-items: center; }
.hud-left { flex-direction: row; gap: 6px; }
#score { font-size: 18px; text-shadow: none; padding: 0; color: var(--itch); }
#target { opacity: .8; font-weight: 700; }
.meters { display: flex; gap: 8px; align-items: center; }
#combo { font-family: var(--comic); font-size: 24px; letter-spacing: .04em; color: var(--itch); text-shadow: var(--outline); min-width: 1px; }
.tray { position: fixed; left: 0; right: 0; bottom: max(12px, env(safe-area-inset-bottom)); display: flex; gap: 10px; justify-content: center; pointer-events: none; padding: 0 10px; }
.tray button { pointer-events: auto; display: flex; flex-direction: column; align-items: center; font-size: 30px; line-height: 1.1; padding: 6px 12px; min-width: 78px;
  font-family: var(--body); color: var(--night); background: var(--moon); border: 3px solid var(--night); border-radius: 16px; box-shadow: 0 5px 0 var(--night); cursor: pointer; }
.tray button small { font-size: 12px; font-weight: 900; }
.tray button:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--night); }
.tray button:disabled { opacity: .45; cursor: default; }
#hideBtn { background: var(--bite); color: #fff; animation: panic .3s ease-in-out infinite alternate; }
@keyframes panic { from { transform: rotate(-4deg) scale(1); } to { transform: rotate(4deg) scale(1.08); } }
#hint { position: fixed; left: 50%; top: 42%; transform: translate(-50%, -50%); width: max-content; max-width: 88vw; background: rgba(27,20,48,.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) {
  .hud-top { flex-wrap: wrap; }
  .meters { order: 3; width: 100%; justify-content: center; }
  .tray button { min-width: 0; flex: 1; font-size: 26px; padding: 6px 4px; }
  #hint { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .mascot svg, #hideBtn { animation: none; }
}
