/* Jhoola Chintu! - grape night, lava orange, dupatta red, fan blue */
:root { --night: #20123A; --moon: #FFF6E8; --itch: #FFC93C; --sheet: #FF4A2E; --coil: #4BE0A8; --bite: #FF4A2E; }

/* Screens: lava glowing at the bottom */
.screen { background:
  linear-gradient(transparent 82%, rgba(255,74,46,.22) 92%, rgba(255,138,31,.35) 100%),
  radial-gradient(circle at 50% 30%, #3b2466 0%, var(--night) 72%); }
.screen.dim { background: radial-gradient(circle at 50% 40%, rgba(59,36,102,.94) 0%, rgba(32,18,58,.97) 70%); }
.mascot svg { animation: swing 1.6s ease-in-out infinite; transform-origin: 60% 10%; }
@keyframes swing { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(10deg); } }
.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); }
.page.boss { background: var(--sheet); }
.page .room small { font-size: 12px; opacity: .75; }
canvas { cursor: pointer; }

/* ---------- HUD ---------- */
.hud-top { align-items: center; }
.hud-left { flex-direction: row; gap: 6px; flex-wrap: wrap; }
.meters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; }
#dist { width: 90px; height: 12px; border: 3px solid var(--night); background: var(--moon); border-radius: 8px; overflow: hidden; }
#distFill { display: block; height: 100%; width: 0; background: var(--coil); }
#hint { position: fixed; left: 50%; top: 40%; transform: translate(-50%, -50%); width: max-content; max-width: 88vw; background: rgba(32,18,58,.92);
  border: 3px dashed var(--moon); border-radius: 16px; padding: 10px 18px; font-weight: 700; font-size: 16px; line-height: 1.4; text-align: center; pointer-events: none; }
#hint b { font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--itch); }
#hint small { font-size: 13px; opacity: .8; }

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