:root{color-scheme:dark;background:#080f1b;color:#e3edec;font:16px/1.45 system-ui,sans-serif}
*{box-sizing:border-box}body{margin:0}main{max-width:58rem;margin:auto;padding:clamp(.6rem,2vw,1.4rem)}
header,#launch{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}
header{justify-content:space-between;margin-bottom:.6rem}h1{font-size:clamp(1.1rem,3vw,1.65rem);margin:0;color:#fff1b0}
a{color:#80def5}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #ffde67;outline-offset:2px}
.game{background:#03070e;border:1px solid #4d7188;margin:auto;width:min(100%,calc((100svh - 14rem)*1.3333));min-width:min(100%,17rem)}
canvas{display:block;width:100%;height:auto;aspect-ratio:4/3;image-rendering:pixelated;touch-action:none}
#launch,#pad{margin-top:.6rem}button{font:inherit;color:#e2f9ff;background:#152b41;border:1px solid #6d9aae;border-radius:3px;min-height:44px;min-width:44px;padding:.44rem .7rem;touch-action:none;user-select:none}
#start{background:#124a60;font-weight:700}button:active{background:#315c74}#pad{display:flex;gap:.35rem;flex-wrap:wrap}#pad[hidden],#launch[hidden]{display:none}
#state,#guide{margin:.6rem 0}footer{margin-top:.9rem;color:#adbbca;font-size:.82rem}
@media(orientation:landscape) and (max-height:540px){main{padding:.35rem .6rem;display:grid;grid-template-columns:minmax(0,1fr) 12rem;gap:.35rem .7rem}header,footer{grid-column:1/-1}.game{grid-column:1;grid-row:2/7;width:min(100%,calc((100svh - 4rem)*1.3333))}#guide,#state,#pad,#launch{grid-column:2;align-self:start;margin:0}#pad button{padding:.3rem .5rem}footer{font-size:.72rem}}
