/* Kai Po Che! - Uttarayan night: deep sea-blue sky, kite yellow, kite pink, manja mint, lantern orange */
:root { --night: #06243A; --moon: #FFF6E5; --itch: #FFCB47; --sheet: #FF5C8A; --coil: #7CF0C8; --bite: #FF4D4D; }

/* Screens: floating lanterns instead of Bzzz Off's coil */
.screen { background:
  radial-gradient(ellipse 5px 7px, rgba(255,154,60,.55) 0 5px, transparent 7px) 20px 30px / 110px 130px,
  radial-gradient(ellipse 4px 6px, rgba(255,203,71,.4) 0 4px, transparent 6px) 75px 95px / 140px 160px,
  radial-gradient(circle at 50% 30%, #0f4c6e 0%, var(--night) 72%); }
.screen.dim { background: radial-gradient(circle at 50% 40%, rgba(15,76,110,.93) 0%, rgba(6,36,58,.97) 70%); }
.mascot svg { animation: flutter 1.6s ease-in-out infinite; }
@keyframes flutter { 0%, 100% { transform: rotate(-8deg) translate(0, 0); } 50% { transform: rotate(6deg) translate(6px, -10px); } }
.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: crosshair; }

/* ---------- 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); }
.chip.power { border-color: var(--itch); background: #5a3a08; animation: glow .5s ease-in-out infinite alternate; }
@keyframes glow { from { box-shadow: 0 0 0 rgba(255,203,71,0); } to { box-shadow: 0 0 14px rgba(255,203,71,.8); } }
#hint { position: fixed; left: 50%; top: 40%; transform: translate(-50%, -50%); width: max-content; max-width: 88vw; background: rgba(6,36,58,.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) {
  #hint { font-size: 14px; }
  .hud-left { flex-wrap: wrap; max-width: calc(100vw - 80px); }
}
@media (prefers-reduced-motion: reduce) {
  .mascot svg, .chip.power { animation: none; }
}

.chip.event { border-color: var(--sheet); background: var(--sheet); }

/* ---------- Daily challenge, Mummy's verdict, your terrace crowd ---------- */
.goal.daily { color: var(--coil); font-size: 15px; max-width: 30em; }
.roast { font-size: 16px; font-weight: 700; font-style: italic; color: var(--itch); margin-top: -6px; max-width: 30em; }
#resStars { flex-wrap: wrap; gap: 6px; }
.fanpop { font-size: 40px; line-height: 1; transform: scale(0); animation: pop .45s cubic-bezier(.3, 1.8, .5, 1) forwards; }
@media (prefers-reduced-motion: reduce) { .fanpop { animation: none; transform: none; } }

/* ---------- Clock, Meri Patang ---------- */
.chip.clock { border-color: var(--itch); }
.menu-grid .wide { grid-column: 1 / -1; }
.kites { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; width: 100%; }
.kite { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 10px 14px; cursor: pointer; font-family: var(--body); color: var(--moon);
  background: rgba(255,246,229,.06); border: 3px dashed rgba(255,246,229,.3); border-radius: 18px; }
.kite canvas { width: 96px; height: 96px; }
.kite b { font-size: 16px; }
.kite small { font-size: 12.5px; font-weight: 600; opacity: .8; line-height: 1.35; }
.kite.on { border: 3px solid var(--itch); background: rgba(255,203,71,.15); box-shadow: 0 0 18px rgba(255,203,71,.3); }
.kite.locked { cursor: default; }
.kite.locked canvas { filter: grayscale(1) brightness(.5); }
@media (max-width: 560px) {
  .kites { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
