/* Chhat Se Chhat! - colony rooftops: dusk purple, sunset gold, kite pink, terrace mint */
:root { --night: #1A1426; --moon: #FFF5E1; --itch: #FFC23D; --sheet: #FF5E7E; --coil: #3DDBB0; --bite: #FF3B30; }

/* Screens: a skyline of rooftops instead of Bzzz Off's coil */
.screen { background:
  linear-gradient(transparent 72%, rgba(255,194,61,.06) 72%) 0 100% / 90px 100% repeat-x,
  linear-gradient(transparent 82%, rgba(255,94,126,.06) 82%) 40px 100% / 130px 100% repeat-x,
  radial-gradient(circle at 50% 30%, #45305c 0%, var(--night) 72%); }
.screen.dim { background: radial-gradient(circle at 50% 40%, rgba(69,48,92,.93) 0%, rgba(26,20,38,.97) 70%); }
.mascot svg { animation: leap 1.8s ease-in-out infinite; }
@keyframes leap { 0%, 100% { transform: translateY(0); } 35% { transform: translateY(-16px) rotate(-3deg); } 55% { transform: translateY(-6px) 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, 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; }
#ballsChip { color: var(--itch); }
.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); }
.sides { position: fixed; left: 0; right: 0; bottom: max(14px, env(safe-area-inset-bottom)); display: flex; justify-content: space-between; padding: 0 16px;
  font-weight: 900; font-size: 15px; opacity: .55; pointer-events: none; text-shadow: 0 2px 0 var(--night); }
#hint { position: fixed; left: 50%; top: 40%; transform: translate(-50%, -50%); width: max-content; max-width: 88vw; background: rgba(26,20,38,.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; }
}
