/* Aap Mute Ho! - a video call at 3 AM: call-app indigo, meeting purple, warning yellow, mute red */
:root { --night: #1b1a2e; --moon: #F5F3FF; --itch: #FFC93C; --sheet: #6264A7; --coil: #3DDC84; --bite: #E74856; }

/* Screens: meeting tiles instead of Bzzz Off's coil */
.screen { background:
  linear-gradient(rgba(98,100,167,.08) 2px, transparent 2px) 0 0 / 120px 80px,
  linear-gradient(90deg, rgba(98,100,167,.08) 2px, transparent 2px) 0 0 / 120px 80px,
  radial-gradient(circle at 50% 36%, #3a3870 0%, var(--night) 72%); }
.screen.dim { background: radial-gradient(circle at 50% 40%, rgba(58,56,112,.93) 0%, rgba(27,26,46,.97) 70%); }
.mascot svg { animation: ring 1.6s ease-in-out infinite; }
@keyframes ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-6deg); } 85% { transform: rotate(6deg); } }
.menu-grid a.ghost { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 10px; font-size: 18px; text-decoration: none; }
.page.boss { background: var(--sheet); color: #fff; }
.pest .big-emoji { font-size: 44px; line-height: 105px; height: 105px; white-space: nowrap; }
.pest.hazard { background: var(--coil); }
canvas { cursor: default; }

/* ---------- HUD ---------- */
.hud-top { align-items: center; }
.hud-left { flex-direction: row; gap: 6px; flex-wrap: wrap; }
.chip.rep small { font-weight: 800; opacity: .8; }
.rep .bar { display: block; width: 90px; height: 10px; border-radius: 6px; background: rgba(255,255,255,.15); overflow: hidden; }
#repFill { display: block; height: 100%; transition: width .25s, background .25s; }
#repFill.ok { background: var(--coil); } #repFill.meh { background: var(--itch); } #repFill.bad { background: var(--bite); }
.meters { display: flex; gap: 8px; align-items: center; }
#streak { 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: 42%; transform: translate(-50%, -50%); width: max-content; max-width: 88vw; background: rgba(27,26,46,.94);
  border: 3px dashed var(--moon); border-radius: 16px; padding: 10px 18px; font-weight: 800; font-size: 16px; text-align: center; pointer-events: none; }

/* The call bar */
#bar { position: fixed; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; gap: 12px; padding: 10px 14px;
  background: #2b2a44; border: 3px solid var(--night); border-radius: 22px; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
#bar button { pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 92px; padding: 8px 12px; cursor: pointer;
  font-family: var(--body); color: var(--moon); background: #3d3c5c; border: 3px solid var(--night); border-radius: 16px; box-shadow: 0 4px 0 var(--night); }
#bar button b { font-size: 28px; line-height: 1.1; }
#bar button small { font-size: 12px; font-weight: 900; }
#bar button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--night); }
#bar button.off { background: var(--bite); }
#ansBtn { opacity: .5; }
#ansBtn.ready { opacity: 1; background: var(--coil); color: var(--night); animation: answer .4s ease-in-out infinite alternate; }
@keyframes answer { from { transform: scale(1); } to { transform: scale(1.08); } }

@media (max-width: 560px) {
  .hud-top { flex-wrap: wrap; }
  .meters { order: 3; width: 100%; justify-content: center; }
  .rep .bar { width: 60px; }
  #bar { gap: 8px; padding: 8px 10px; }
  #bar button { min-width: 0; width: 28vw; }
  #hint { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .mascot svg, #ansBtn.ready { animation: none; }
}
