/* Gol Roti Banao! - a kitchen at night: warm brown, haldi, chilli and dhaniya */
:root { --night: #2A160E; --moon: #FFF3E0; --itch: #FFB627; --sheet: #FF5E5B; --coil: #7BD389; --bite: #E63946; }

.screen { background:
  radial-gradient(circle at 50% 30%, rgba(255,182,39,.18) 0 22%, transparent 23%),
  radial-gradient(circle at 50% 30%, #5b3422 0%, var(--night) 72%); }
.screen.dim { background: radial-gradient(circle at 50% 40%, rgba(91,52,34,.94) 0%, rgba(42,22,14,.97) 70%); }
.mascot svg { animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.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; }
.page { cursor: default; }
.page .day { color: var(--sheet); }
.ms-line { font-size: 13px; font-weight: 600; line-height: 1.3; }
.page.locked { background: #b09a88; }

/* ---------- 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; }
.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(150px, 26vw); height: 12px; border: 2px solid var(--moon); border-radius: 8px; overflow: hidden; background: rgba(255,243,224,.15); }
#hungerFill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--coil), var(--itch), var(--bite)); transition: width .15s; }
#bumps { padding-top: 0; gap: 5px; }
.bump { width: 13px; height: 13px; }
#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: 44%; transform: translate(-50%, -50%); width: max-content; max-width: 88vw; background: rgba(42,22,14,.9);
  border: 3px dashed var(--moon); border-radius: 16px; padding: 10px 18px; font-weight: 800; font-size: 17px; text-align: center; pointer-events: none; }

/* ---------- Results: the best and worst roti ---------- */
.gallery { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.gallery figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 150px; padding: 10px; background: var(--moon); color: var(--night);
  border: 4px solid var(--night); border-radius: 18px; box-shadow: 0 6px 0 var(--night); transform: rotate(-2deg); }
.gallery figure:nth-child(even) { transform: rotate(2deg); }
.gallery svg { width: 100px; height: 100px; }
.gallery b { font-size: 15px; }
.gallery span { font-size: 13px; font-weight: 600; line-height: 1.25; }

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