/* Ek Tappa Out! - gully cricket at 3 AM: midnight ink, tape-ball lime, streetlight amber, jersey blue */
:root { --night: #13151F; --moon: #FFF6E0; --itch: #B6F03C; --sheet: #1E88E5; --coil: #FFB347; --bite: #FF4136; }

/* Screens: floodlight glow instead of Bzzz Off's coil */
.screen { background:
  radial-gradient(ellipse at 20% 0%, rgba(255,179,71,.28) 0%, rgba(255,179,71,0) 45%),
  radial-gradient(circle at 50% 38%, #2b2350 0%, var(--night) 72%); }
.screen.dim { background: radial-gradient(circle at 50% 40%, rgba(43,35,80,.93) 0%, rgba(19,21,31,.97) 70%); }
.mascot svg { animation: shot 1.2s cubic-bezier(.5, 0, .3, 1) infinite; transform-origin: 60% 80%; }
@keyframes shot { 0%, 60% { transform: rotate(0); } 75% { transform: rotate(-14deg); } 100% { transform: rotate(0); } }
.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; }
.page .room { font-size: 13px; }
.pest .big-emoji { font-size: 70px; line-height: 105px; height: 105px; }
.pest.hazard { background: var(--coil); }
canvas { cursor: pointer; }

/* ---------- HUD ---------- */
.hud-top { align-items: center; }
.hud-left { flex-direction: row; gap: 6px; }
#score { font-size: 20px; text-shadow: none; padding: 0; color: var(--itch); }
.meters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; }
.need { border-color: var(--itch); }
.free { border-color: var(--coil); }
.log { display: flex; gap: 4px; }
.log i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--night); border: 2px solid var(--moon); font-weight: 900; font-size: 13px; }
.log i.w { background: var(--bite); }
.log i.f { background: var(--coil); color: var(--night); }
.log i.s { background: var(--itch); color: var(--night); }
#hint { position: fixed; left: 50%; top: 46%; transform: translate(-50%, -50%); width: max-content; max-width: 88vw; background: rgba(19,21,31,.9);
  border: 3px dashed var(--moon); border-radius: 16px; padding: 10px 18px; font-weight: 800; font-size: 16px; text-align: center; pointer-events: none; }

@media (max-width: 560px) {
  .hud-top { flex-wrap: wrap; }
  .meters { order: 3; width: 100%; }
  .log i { width: 22px; height: 22px; font-size: 12px; }
  #hint { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .mascot svg { animation: none; }
}

/* ---------- Josh meter, DRS, commentary, daily over, bats ---------- */
.josh { letter-spacing: 1px; }
.josh.ready { border-color: var(--itch); background: #2c4a12; animation: ready .4s ease-in-out infinite alternate; }
@keyframes ready { from { transform: scale(1); } to { transform: scale(1.1); } }
.trial { border-color: var(--coil); }
#drsBtn { position: fixed; left: 50%; top: 60%; transform: translateX(-50%) rotate(-2deg); pointer-events: auto; font-family: var(--display); font-size: 24px; color: #fff;
  background: var(--bite); border: 4px solid var(--night); border-radius: 20px; padding: 10px 24px; box-shadow: 0 7px 0 var(--night); cursor: pointer; animation: ready .35s ease-in-out infinite alternate; }
#drsBtn small { font-family: var(--body); font-size: 13px; opacity: .8; }
#comm { position: fixed; left: 50%; bottom: max(10px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 8px; width: min(680px, 94vw);
  background: rgba(19,21,31,.88); border: 3px solid var(--coil); border-radius: 16px; padding: 6px 12px; pointer-events: none; }
#comm .mic { font-size: 22px; }
#commText { font-weight: 800; font-size: 14.5px; line-height: 1.3; font-style: italic; }
#commText.pop { animation: pop .3s cubic-bezier(.3, 1.8, .5, 1); }
.menu-grid .wide { grid-column: 1 / -1; }
.daily.endless { background: var(--coil); transform: rotate(1deg); margin-bottom: 14px; }
.chip.event { border-color: var(--coil); background: #5a3a08; }
.roast { font-size: 16px; font-weight: 700; font-style: italic; color: var(--itch); margin-top: -6px; max-width: 30em; }
.item b { font-family: var(--display); font-weight: 400; font-size: 28px; }
.item small { font-size: 13px; font-weight: 600; opacity: .85; text-align: center; line-height: 1.3; }
.daily { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; max-width: 460px; padding: 12px 16px; cursor: pointer; font-family: var(--body);
  background: var(--itch); color: var(--night); border: 4px solid var(--night); border-radius: 18px; box-shadow: 0 7px 0 var(--night); transform: rotate(-1deg); }
.daily:active { box-shadow: 0 2px 0 var(--night); translate: 0 5px; }
.daily .emoji { font-size: 34px; line-height: 1.1; }
.daily b { font-family: var(--display); font-weight: 400; font-size: 24px; }
.daily span:not(.emoji) { font-size: 14px; font-weight: 600; }
.daily small { font-weight: 900; font-size: 14px; }
.bats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; width: 100%; }
.bat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 10px; cursor: pointer; font-family: var(--body); color: var(--moon);
  background: rgba(255,246,224,.06); border: 3px dashed rgba(255,246,224,.3); border-radius: 18px; }
.bat .blade { position: relative; display: flex; align-items: center; justify-content: center; width: 130px; height: 30px; margin: 6px 0 4px; border: 3px solid var(--night); border-radius: 8px 14px 14px 8px;
  background: linear-gradient(90deg, var(--g) 0 26%, var(--night) 26% 28%, var(--c) 28%); font-family: var(--comic); font-size: 15px; color: #c0392b; letter-spacing: .05em; transform: rotate(-12deg);
  box-shadow: inset -26px 0 0 -18px var(--t); }
.bat b { font-size: 16px; }
.bat small { font-size: 12.5px; font-weight: 600; opacity: .8; line-height: 1.35; }
.bat em { font-style: normal; font-size: 12px; font-weight: 900; color: var(--itch); }
.bat.on { border: 3px solid var(--itch); background: rgba(182,240,60,.12); box-shadow: 0 0 18px rgba(182,240,60,.25); }
.bat.locked { cursor: default; }
.bat.locked .blade { filter: grayscale(1) brightness(.5); }
@media (max-width: 560px) {
  #commText { font-size: 12.5px; }
  .bats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bat .blade { width: 104px; }
  #drsBtn { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .josh.ready, #drsBtn, #commText.pop { animation: none; }
}
