/* Chappal Strike! - 3 AM living room: dark cocoa walls, zero-watt-bulb amber, Hawaii-chappal blue, cream */
:root { --night: #2A1A12; --moon: #FFEBD2; --itch: #FFC93C; --sheet: #3D8BFF; --coil: #7ED957; --bite: #FF4E3A; }

/* Screens: mosaic floor chips instead of Bzzz Off's coil */
.screen { background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84'%3E%3Crect x='10' y='14' width='9' height='6' rx='2' fill='%23FFC93C' fill-opacity='.1' transform='rotate(20 14 17)'/%3E%3Crect x='54' y='44' width='7' height='7' rx='2' fill='%233D8BFF' fill-opacity='.14'/%3E%3Crect x='28' y='64' width='8' height='5' rx='2' fill='%23FFEBD2' fill-opacity='.08' transform='rotate(-25 32 66)'/%3E%3C/svg%3E"),
  radial-gradient(circle at 22% 12%, rgba(255,140,60,.28) 0%, rgba(255,140,60,0) 45%),
  radial-gradient(circle at 50% 38%, #5a3424 0%, var(--night) 72%); }
.screen.dim { background: radial-gradient(circle at 50% 40%, rgba(90,52,36,.93) 0%, rgba(42,26,18,.97) 70%); }
.mascot svg { animation: flick 1.1s cubic-bezier(.5, 0, .4, 1) infinite; }
@keyframes flick { 0%, 100% { transform: rotate(10deg) translate(-6px, 6px); } 45% { transform: rotate(-14deg) translate(8px, -10px); } 55% { transform: rotate(-18deg) translate(10px, -12px) scale(1.05); } }
.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(46px, 11vw, 100px); }
.page.boss { background: var(--sheet); }
.page.locked { background: #9a8073; }
.pest .big-emoji { font-size: 70px; line-height: 105px; height: 105px; display: flex; align-items: center; }
.pest .big-emoji .ch { width: 110px; height: auto; }
.pest em { font-style: normal; font-weight: 800; }
.pest.gear { background: var(--moon); }
.pest.hazard { background: var(--bite); color: #fff; }
.pest.hazard .ribbon { background: var(--night); }
canvas { cursor: crosshair; }
.endless { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; max-width: 460px; margin-bottom: 14px; padding: 12px 16px; cursor: pointer;
  font-family: var(--body); background: var(--sheet); color: #fff; border: 4px solid var(--night); border-radius: 18px; box-shadow: 0 7px 0 var(--night); transform: rotate(-1deg); }
.endless:active { box-shadow: 0 2px 0 var(--night); translate: 0 5px; }
.endless .emoji { font-size: 34px; line-height: 1.1; }
.endless b { font-family: var(--display); font-weight: 400; font-size: 26px; }
.endless span:not(.emoji) { font-size: 14px; font-weight: 600; }
.endless small { font-weight: 900; font-size: 14px; color: var(--itch); }
.item { cursor: pointer; font-family: var(--body); color: var(--moon); }
.item canvas { width: 112px; height: 72px; }
.item small { font-size: 13px; font-weight: 600; opacity: .8; text-align: center; line-height: 1.3; }
.item.locked { cursor: default; }
.item.locked canvas { filter: grayscale(1) brightness(.4); }
.wa { display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: 420px; padding: 10px 12px; text-align: left; background: #0b3d2e; border: 3px solid #25d366; border-radius: 16px; }
.wa b { font-size: 13px; color: #25d366; }
.wa span { align-self: flex-start; background: #1f5c46; border-radius: 4px 12px 12px 12px; padding: 6px 10px; font-size: 14px; font-weight: 600; line-height: 1.35; }

/* ---------- HUD ---------- */
.hud-top { align-items: center; }
#score { font-size: 17px; text-shadow: none; padding: 0; color: var(--moon); }
.meters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; }
.meter { display: flex; align-items: center; gap: 4px; background: var(--night); border: 3px solid var(--moon); border-radius: 30px; padding: 2px 12px;
  font-weight: 800; font-size: 16px; white-space: nowrap; min-height: 34px; }
.meter .ch { width: 30px; height: 17px; }
#hint { position: fixed; left: 50%; top: 46%; transform: translate(-50%, -50%); width: max-content; max-width: 86vw; background: rgba(42,26,18,.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) {
  .meter { font-size: 14px; padding: 1px 9px; }
  .meter .ch { width: 24px; height: 14px; }
  #hint { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .mascot svg { animation: none; }
}
