:root{color-scheme:dark;font-family:system-ui,sans-serif;color:#f6ecd5;background:#0b2028}*{box-sizing:border-box}body{margin:0;overflow:hidden}button,a{-webkit-tap-highlight-color:transparent}a{color:#e2c888}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #f8d782;outline-offset:5px}[hidden]{display:none!important}#game,#canvas,#loading{position:fixed;inset:0;width:100%;height:100%}#canvas{display:block;outline:none;touch-action:none}#loading{z-index:5;display:grid;place-items:center;background:#0b2028 url('/assets/hero.png') center/cover}.shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,18,24,.92),rgba(4,18,24,.65))}.card{position:relative;width:min(640px,100%);padding:36px;text-align:center}.brand{text-decoration:none;font:30px Georgia;letter-spacing:.2em}.brand span{color:#e2c888}.eyebrow{font-size:11px;letter-spacing:.22em;color:#bdcdbb;margin:32px 0 12px}h1{font:clamp(34px,6vw,60px)/1.06 Georgia;margin:10px 0 24px}h1 em{font-weight:normal;color:#e2c888}#status{color:#d1ded3;font-size:16px}progress{display:block;width:min(320px,100%);height:6px;border:0;accent-color:#dec381;margin:24px auto 28px}progress::-webkit-progress-bar{background:#243c3b;border-radius:4px}progress::-webkit-progress-value{background:#dec381;border-radius:4px}button{min-height:44px;border:1px solid #54776b;border-radius:9px;background:#23453e;color:#f6ecd5;padding:12px 24px}#start{background:#e5cb90;color:#17312f;border:0;font-weight:650;min-width:220px;font-size:19px}#start span{margin-left:30px}.small{font-size:13px;line-height:1.5;color:#b8c9bf}#save-note{max-width:360px;margin:24px auto 10px}#web-controls{position:fixed;z-index:4;right:max(8px,env(safe-area-inset-right));bottom:max(6px,env(safe-area-inset-bottom));display:flex;gap:4px;opacity:.55;transition:opacity .2s}#web-controls:hover,#web-controls:focus-within{opacity:1}#web-controls>*{display:grid;place-items:center;min-height:32px;width:32px;padding:0;text-decoration:none;background:#0a2028c9;border:1px solid #658b8266;border-radius:8px;font-size:19px}dialog{border:1px solid #49695e;border-radius:18px;padding:40px;max-width:420px;background:#102c31;color:#f5edd9}dialog::backdrop{background:#031419a8}dialog h2{font:30px Georgia}dialog p{line-height:1.5}.close{position:absolute;right:8px;top:8px;border:0;background:none;padding:4px 14px;font-size:24px}@media(max-height:500px){.card{padding:12px 24px}.brand{font-size:22px}.eyebrow{margin:14px 0 8px}h1{font-size:34px;margin-bottom:14px}progress{margin:12px auto}#save-note{margin-top:14px}}

/* Browser controls occupy their own strip; never cover a move or End turn. */
body.playing #game{top:36px;height:calc(100% - 36px)}
#canvas{position:absolute}
#web-controls{top:0;left:0;right:0;bottom:auto;height:36px;padding:2px 8px;align-items:center;justify-content:space-between;background:#071a21;opacity:1}
#web-controls a{width:auto;font-size:12px;letter-spacing:.08em;border:0;background:none;padding:0 8px}
#storage-warning{font-size:12px;max-width:70%;line-height:1.2;color:#e6c78a}
:fullscreen #web-controls{display:none}
:fullscreen body.playing #game{top:0;height:100%}
