/* Penalty King! - gully dusk: shutter grey, football yellow, jersey red, grass-chalk green */
:root { --night: #13202A; --moon: #FFF8E7; --itch: #FFD23F; --sheet: #E63946; --coil: #3DDC84; --bite: #E63946; }

/* Screens: a pitch with chalk stripes */
.screen { background:
  repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 60px, transparent 60px 120px),
  radial-gradient(circle at 50% 30%, #2b5a3e 0%, #1a3527 45%, var(--night) 85%); }
.screen.dim { background: radial-gradient(circle at 50% 40%, rgba(43,90,62,.94) 0%, rgba(19,32,42,.97) 70%); }
.mascot svg { animation: bounce 1s ease-in-out infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(2deg); } }
.menu-grid a.ghost { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 10px; font-size: 18px; text-decoration: none; }
.menu-grid .wide { grid-column: 1 / -1; }
.logo { font-size: clamp(44px, 10vw, 96px); }
.page.boss { background: var(--sheet); }
.page .room small { font-size: 12px; opacity: .75; }
.page .day { font-size: 34px; }
.item .blurb { font-size: 13px; font-weight: 600; opacity: .85; line-height: 1.3; }
canvas { cursor: crosshair; }

/* ---------- HUD ---------- */
.hud-top { align-items: flex-start; }
.board { background: rgba(19,32,42,.88); border: 3px solid var(--moon); border-radius: 14px; padding: 4px 10px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.board .line { display: flex; align-items: center; gap: 8px; }
.board b { font-weight: 900; min-width: 46px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.board span { letter-spacing: 1px; font-size: 13px; white-space: nowrap; }
.board em { font-style: normal; font-family: var(--display); font-size: 20px; color: var(--itch); margin-left: auto; }
.meters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; }
#turnChip { background: var(--itch); color: var(--night); border-color: var(--night); }
#turnChip.keep { background: var(--coil); }
#sdChip { background: var(--sheet); animation: pulse .6s infinite; }
@keyframes pulse { 50% { transform: scale(1.06); } }
#hint { position: fixed; left: 50%; top: 42%; transform: translate(-50%, -50%); width: max-content; max-width: 88vw; background: rgba(19,32,42,.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); }

@media (max-width: 560px) {
  .hud-top { flex-wrap: wrap; }
  .meters { order: 3; width: 100%; }
  #hint { font-size: 14px; }
  .board span { font-size: 11px; letter-spacing: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .mascot svg, #sdChip { animation: none; }
}
