/* Bandar Raid! - a terrace in the afternoon sun: monkey brown, mango gold, chilli pink, pichkari aqua */
:root { --night: #20170F; --moon: #FFF6E2; --itch: #FFC233; --sheet: #FF5D8F; --coil: #4CD98A; --bite: #FF3B30; }

/* Screens: terrace tiles instead of Bzzz Off's coil */
.screen { background:
  conic-gradient(rgba(194,122,90,.08) 25%, transparent 0 50%, rgba(194,122,90,.08) 0 75%, transparent 0) 0 0 / 56px 56px,
  radial-gradient(circle at 50% 30%, #5a3a22 0%, var(--night) 72%); }
.screen.dim { background: radial-gradient(circle at 50% 40%, rgba(90,58,34,.93) 0%, rgba(32,23,15,.97) 70%); }
.mascot svg { animation: swing 1.4s ease-in-out infinite; transform-origin: 40% 80%; }
@keyframes swing { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg) translateY(-6px); } }
.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: 16px; }
canvas { cursor: crosshair; transition: filter .3s; }

/* ---------- HUD ---------- */
.hud-top { align-items: center; }
.hud-left { flex-direction: row; gap: 6px; }
#itemsChip { font-size: 20px; gap: 4px; }
#itemsChip .taken { opacity: .5; animation: shake .3s linear infinite; }
#itemsChip .gone { opacity: .25; filter: grayscale(1); }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-2px); } 75% { transform: translateX(2px); } }
.meters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; }
#mum { width: 90px; height: 12px; border: 3px solid var(--night); background: var(--moon); border-radius: 8px; overflow: hidden; }
#mumFill { display: block; height: 100%; width: 0; background: var(--coil); }
#frootiBtn { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); pointer-events: auto; z-index: 6; }
#hint { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: max-content; max-width: 88vw; background: rgba(32,23,15,.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, #itemsChip .taken { animation: none; }
}
