/* GAME//REWIND interface adaptation, 2026-10-12; GPL-3.0-or-later. */
:root{color-scheme:dark;font-family:Arial,Helvetica,sans-serif;background:#11171e;color:#e9edf2;font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:700 12px Arial,Helvetica,sans-serif;border:1px solid #617184;background:#263445;color:#fff;border-radius:2px;padding:9px 13px;cursor:pointer;box-shadow:inset 0 1px #536273;min-height:36px;touch-action:manipulation}button:hover{background:#354960}button:active{background:#17232e;box-shadow:inset 0 1px 3px #000}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:2px solid #f1c40f;outline-offset:3px}button:disabled{opacity:.45;cursor:default}a{color:#c5d5e7;text-underline-offset:3px}
.game{height:100dvh;min-height:360px;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;overflow:hidden}.toolbar{display:flex;align-items:center;gap:20px;min-height:54px;padding:8px 16px;border-bottom:1px solid #465568;background:#1d2936}.identity{display:flex;align-items:baseline;gap:12px}.identity strong{font-family:Consolas,'Courier New',monospace;letter-spacing:2px;font-size:20px;color:#f1c40f}.identity span{font-size:11px;color:#a9b9ca}.scores{display:flex;gap:18px;margin-left:auto;font-family:Consolas,'Courier New',monospace;font-size:12px;white-space:nowrap}.scores b{font-size:16px;color:white;padding-left:4px}.tools{display:flex;gap:5px}.tools button{padding:8px 11px}.board{position:relative;overflow:hidden;min-height:0;background:#11171e;touch-action:none}canvas{display:block;width:100%;height:100%;touch-action:none}.screen,.help-screen{position:absolute;inset:0;display:grid;place-items:center;padding:20px;background:#101821db}.screen[hidden],.help-screen[hidden]{display:none}.message{width:min(440px,100%);background:#1d2936;border:1px solid #6a7c91;padding:28px;text-align:center;box-shadow:5px 5px 0 #070d14;max-height:100%;overflow:auto}.eyebrow{margin:0 0 14px;color:#f1c40f;font:700 11px Consolas,'Courier New',monospace;letter-spacing:2px}h1,h2{font-size:23px;line-height:1.2;margin:0 0 16px}.message p:not(.eyebrow){color:#cad3df;font-size:14px;line-height:1.55;margin:0 0 18px}.message button{background:#e6b72c;border-color:#ffe088;color:#17212b;box-shadow:inset 0 1px #fff0af;font-size:13px;padding:10px 20px}.message button:hover{background:#f4ca49}.help-message{text-align:left;width:min(500px,100%)}.help-message dl{display:grid;grid-template-columns:1fr 1fr;gap:8px;font-size:12px;margin:0 0 18px}.help-message dt{color:#f1c40f;font-weight:bold}.help-message dd{margin:0}.help-message .small{font-size:12px!important}.controls{display:flex;align-items:center;justify-content:center;gap:30px;padding:10px 16px;border-top:1px solid #465568;background:#18222e}.controls button{min-width:92px}.controls p{margin:0;text-align:center;font-size:12px;line-height:1.6}.controls p span{display:block;color:#9fadbE;font:11px Consolas,'Courier New',monospace}.credits{display:flex;justify-content:space-between;gap:12px;padding:7px 16px;color:#8394a8;background:#101720;font-size:9px;line-height:1.4}.credits a{color:#9eafc2}
@media(max-width:630px){.toolbar{padding:8px;gap:8px}.identity{display:block}.identity strong{font-size:17px}.identity span{display:block;font-size:9px;margin-top:2px}.scores{gap:8px;font-size:10px}.scores b{font-size:14px}.tools button{padding:7px 8px;font-size:11px}.best{display:none}.controls{gap:10px;padding:9px 8px}.controls button{min-width:54px;padding:8px}.controls button span{display:none}.controls p{font-size:10px}.controls p span{font-size:9px}.credits{padding:5px 8px;font-size:8px}.credits>span:first-child{max-width:58%}.message{padding:20px}.message p:not(.eyebrow){font-size:12px}h1,h2{font-size:19px}.help-message dl{font-size:11px}.help-screen{padding:10px}}
@media(max-height:500px){.credits{display:none}.toolbar{min-height:42px}.controls{padding:5px 8px}.screen,.help-screen{padding:8px}.help-message{padding:15px}.help-message p:not(.eyebrow){margin-bottom:9px}.help-message dl{gap:4px;margin-bottom:10px}}

.license-page{padding:30px 18px}.license-page main{max-width:720px;margin:auto;border:1px solid #465568;padding:30px;background:#18222e}.license-page p{font-size:14px;line-height:1.6;color:#cbd5df}.license-page h2{font-size:18px;margin-top:28px}.source-commit{font:11px/1.7 Consolas,monospace!important;overflow-wrap:anywhere;color:#94a9bd!important}
