/* Laddoo Drop! - Diwali night: deep maroon, gold, saffron, pink, teal */
:root { --night: #2A0710; --moon: #FFF4E0; --itch: #FFC21A; --sheet: #FF4F8B; --coil: #2EC4B6; --bite: #FF3B3B; }

/* Screens: scattered rangoli dots 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%3Ccircle cx='15' cy='15' r='5' fill='%23FFC21A' fill-opacity='.14'/%3E%3Ccircle cx='60' cy='45' r='4' fill='%23FF4F8B' fill-opacity='.16'/%3E%3Ccircle cx='30' cy='72' r='3' fill='%232EC4B6' fill-opacity='.16'/%3E%3C/svg%3E"),
  radial-gradient(circle at 50% 35%, #6a1530 0%, var(--night) 72%); }
.screen.dim { background: radial-gradient(circle at 50% 40%, rgba(106,21,48,.93) 0%, rgba(42,7,16,.97) 70%); }
.mascot svg { animation: plop 1s cubic-bezier(.3, 1.6, .5, 1) infinite alternate; transform-origin: 50% 100%; }
@keyframes plop { from { transform: scale(1.06, .92); } to { transform: scale(.96, 1.05) translateY(-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: ew-resize; }

/* Mithai book */
.book { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; width: 100%; }
.sweet { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; background: rgba(255,244,224,.08);
  border: 3px solid rgba(255,244,224,.3); border-radius: 16px; }
.sweet i { width: 52px; height: 52px; border-radius: 50%; border: 3px solid var(--night); box-shadow: 0 0 0 3px rgba(255,244,224,.4); }
.sweet b { font-size: 14px; line-height: 1.2; }
.sweet small { font-size: 12px; opacity: .75; }
.sweet.locked { opacity: .55; }

/* ---------- 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: 8px; align-items: center; flex-wrap: wrap; justify-content: center; }
#munchBtn { pointer-events: auto; font-family: var(--body); font-weight: 900; font-size: 18px; color: var(--night); background: var(--coil);
  border: 3px solid var(--night); border-radius: 16px; padding: 4px 12px; box-shadow: 0 4px 0 var(--night); cursor: pointer; }
#munchBtn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--night); }
#munchBtn:disabled { opacity: .45; cursor: default; }
#munchBtn.on { background: var(--sheet); color: #fff; }
#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: 52%; transform: translate(-50%, -50%); width: max-content; max-width: 88vw; background: rgba(42,7,16,.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%; }
  #hint { font-size: 15px; }
  .book { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .mascot svg { animation: none; }
}
