:root { color-scheme: dark; font-family: "Courier New", "MS Gothic", monospace; background: #0b1516; color: #b9d89d; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; overscroll-behavior: none; }
body { display: grid; place-items: center; padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); background: radial-gradient(circle at 50% 40%, #203836 0, #101e1f 52%, #071011 100%); }
.game-shell { width: min(100%, calc((100vh - 82px) * 16 / 9), 960px); text-align: center; }
.screen-frame { border: clamp(5px, 1.2vw, 11px) solid #304846; border-radius: 5px; padding: clamp(3px, 0.6vw, 6px); background: #09100f; box-shadow: 0 0 0 2px #080d0d, 0 12px 35px #0009; }
.game-surface { position: relative; width: 100%; aspect-ratio: 16 / 9; touch-action: none; user-select: none; }
canvas { display: block; width: 100%; height: 100%; background: #a8c98b; image-rendering: pixelated; image-rendering: crisp-edges; }
.hit-target { position: absolute; z-index: 2; margin: 0; padding: 0; border: 0; border-radius: 0; opacity: 0; cursor: pointer; touch-action: none; }
.hit-target:focus-visible { opacity: 1; border: max(2px, .35vw) solid #e1efbd; background: transparent; outline: 2px solid #172c2b; outline-offset: -4px; }
.answer { top: 70%; width: 22.5%; height: 22%; }
.answer.slot-1 { left: 10%; } .answer.slot-2 { left: 38.75%; } .answer.slot-3 { left: 67.5%; }
.action { left: 32%; top: 54%; width: 36%; height: 28%; }
.sound { right: 3%; top: 20%; width: 25%; height: 13%; }
.controls { margin: 10px 0 0; color: #78998a; font-size: clamp(9px, 1.8vw, 13px); letter-spacing: .08em; }
.app-footer { margin-top: 8px; color: #78998a; font-size: clamp(9px, 1.6vw, 12px); line-height: 1.5; }
.app-footer a { color: #b9d89d; text-underline-offset: 3px; }
.app-footer a:hover, .app-footer a:focus-visible { color: #e1efbd; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (orientation: portrait) { .game-shell { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .screen-frame { box-shadow: 0 0 0 2px #080d0d; } }
