:root{color-scheme:dark;font-family:system-ui,sans-serif;background:#101918;color:#e9efcf;--accent:#cde8ad}
*{box-sizing:border-box}body{margin:0;min-height:100svh;background:radial-gradient(ellipse at 70% 0%,#263a33,transparent 53%),#101918}button,a{font:inherit}button{min-height:44px;border:1px solid #53675a;background:#263931;color:#f5f3d8;border-radius:.45rem;font-weight:800;padding:.42rem .86rem;cursor:pointer;touch-action:manipulation;user-select:none;-webkit-user-select:none}button:hover{background:#345147}button:active,button.on{background:#a9c98d;color:#15251d}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid #e0edba;outline-offset:3px}.station{width:min(calc(100% - 1.8rem),63rem);margin-inline:auto;padding:1rem 0 1.5rem}.station>header,footer{display:flex;align-items:center;justify-content:space-between;gap:.5rem 1rem;flex-wrap:wrap}h1{font-size:clamp(1.9rem,7vw,3.7rem);letter-spacing:-.064em;margin:0 0 .32rem;line-height:1}h1 span,a{color:var(--accent)}.label{font-size:.83rem;letter-spacing:.11em;text-transform:uppercase;color:#d6e6a9;font-weight:800;margin:0 0 .34rem}.settings{display:flex;align-items:center;gap:.5rem}.machine{display:grid;grid-template:'screen screen' auto 'move actions' auto / 1fr 1fr;gap:.6rem;padding:.75rem;background:#172620;border:1px solid #607256;border-top:2px solid #a6bb85;margin:.7rem 0}.screen{grid-area:screen;display:grid;place-items:center;background:#0e1511;border:1px solid #6a8059;padding:clamp(.27rem,1vw,.53rem)}canvas{display:block;width:100%;height:auto;aspect-ratio:16/9;image-rendering:pixelated;touch-action:none;background:#b2c895;width:min(100%,110.22svh);object-fit:contain}.move{grid-area:move;display:grid;grid-template-columns:repeat(3,46px);grid-template-rows:repeat(3,38px);width:max-content;max-width:100%;touch-action:none;user-select:none;-webkit-user-select:none}.move button{padding:0;margin:0;min-height:0;touch-action:none}.move button:first-child{grid-area:1/2}.move button:nth-child(2){grid-area:2/1}.move button:nth-child(3){grid-area:2/3}.move button:last-child{grid-area:3/2}.moves{grid-area:actions;align-self:center;justify-self:end;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.42rem}.moves button{touch-action:none}.moves #dash{background:#bfdb9a;color:#15251d}.moves #nova{border-color:#d6cf86}.moves #nova.ready{background:#f1dea0;color:#15251d}.status{color:#d4e3c4;min-height:1.5em;margin:.2rem 0 .8rem}.brief{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem}.brief section{background:#17251f;border-top:2px solid #83a670;padding:.65rem .85rem}.brief h2{font-size:1rem;margin:0}.brief p{font-size:.92rem;color:#d4dfc8;margin:.3rem 0}kbd{border:1px solid #62765c;padding:0 .2rem}footer{border-top:1px solid #415244;margin-top:.9rem;padding-top:.65rem;color:#c8d1b9;font-size:.89rem}
@media(max-width:36rem){.brief{grid-template-columns:1fr;gap:.4rem}.settings button{min-height:40px}.station{width:calc(100% - 1rem);padding-top:.62rem}.machine{padding:.45rem}.moves{max-width:10rem}.moves button{padding:.35rem .53rem}.move{grid-template-columns:repeat(3,43px);grid-template-rows:repeat(3,35px)}}
@media(orientation:landscape) and (any-pointer:coarse) and (max-height:580px){.station{padding-top:.32rem;width:calc(100% - 1rem)}.station>header h1{font-size:1.4rem;margin:0}.station>header .label{font-size:.68rem;margin:0}.settings button{min-height:30px;padding:.18rem .5rem}.machine{grid-template:'move screen actions' auto / 107px minmax(0,1fr) 75px;align-items:center;padding:.36rem;margin:.3rem 0;gap:.3rem}.move{grid-template-columns:repeat(3,35px);grid-template-rows:repeat(3,37px)}.moves{display:grid;justify-self:center}.moves button{min-height:40px;padding:.3rem .5rem}.screen canvas{width:min(100%,calc(177.777svh - 181.333px))}}

button:disabled{opacity:.53;cursor:default}button[hidden]{display:none}
.moves #fire{min-width:4.65rem;background:#633849;border-color:#f5ad8b;color:#fff2dc;font-size:1.08rem}.moves #fire.on,.moves #fire:active{background:#ffbe9d;color:#311c38}
@media(orientation:landscape) and (any-pointer:coarse) and (max-height:580px){.moves{gap:.22rem}.moves button{min-height:32px}.moves #fire{min-height:44px;min-width:0}}
