/* Cockroach Kaand! - 3 AM kitchen: dark tile green, tubelight lime, cockroach brown, hot pink */
:root { --night: #13201A; --moon: #F4FFE8; --itch: #B8F24A; --sheet: #FF5C8A; --coil: #FF9F1C; --bite: #FF3B30; }

/* Screens: kitchen floor tiles instead of Bzzz Off's coil */
.screen { background:
  conic-gradient(rgba(184,242,74,.05) 25%, transparent 0 50%, rgba(184,242,74,.05) 0 75%, transparent 0) 0 0 / 80px 80px,
  radial-gradient(circle at 50% 30%, #2c4a3a 0%, var(--night) 72%); }
.screen.dim { background: radial-gradient(circle at 50% 40%, rgba(44,74,58,.93) 0%, rgba(19,32,26,.97) 70%); }
.mascot svg { animation: scurry .18s steps(2) infinite; }
@keyframes scurry { from { transform: translateX(-3px) rotate(-2deg); } to { transform: translateX(3px) rotate(2deg); } }
.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, 10.5vw, 96px); }
.page.boss { background: var(--coil); color: var(--night); }
.pest .big-emoji { font-size: 70px; line-height: 105px; height: 105px; }
.pest.hazard { background: var(--sheet); color: #fff; }
.pest.boss { background: var(--coil); }
canvas { cursor: crosshair; }

/* ---------- 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: 10px; align-items: center; flex-wrap: wrap; justify-content: center; }
.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; }
.meter .bar { width: min(170px, 28vw); height: 12px; border: 2px solid var(--moon); border-radius: 8px; overflow: hidden; background: rgba(244,255,232,.15); }
#meterFill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--itch), var(--coil), var(--bite)); transition: width .15s; }
#combo { font-family: var(--comic); font-size: 24px; letter-spacing: .04em; color: var(--itch); text-shadow: var(--outline); min-width: 1px; }
#hint { position: fixed; left: 50%; top: 46%; transform: translate(-50%, -50%); width: max-content; max-width: 88vw; background: rgba(19,32,26,.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%; }
  .meter .bar { width: 46vw; }
  #hint { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .mascot svg { animation: none; }
}
