:root{color-scheme:dark;--gold:#edcb79;--ink:#0c1316;--line:#314044}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;background:var(--ink);color:#f0f1eb;font:15px system-ui,-apple-system,sans-serif}header{height:56px;display:flex;align-items:center;justify-content:space-between;padding:0 4vw;border-bottom:1px solid var(--line)}a{color:inherit;text-decoration:none}#brand{font-weight:750;font-size:22px}#brand span{font-size:10px;color:var(--gold);letter-spacing:2px;margin-left:12px}nav{display:flex;align-items:center;gap:18px}button{font:inherit;cursor:pointer;color:inherit;background:#233138;border:1px solid #53646b;border-radius:5px;padding:8px 14px;touch-action:manipulation}button:hover{background:#35444b}button:disabled{opacity:.55;cursor:wait}#shell{position:relative;width:min(100vw,calc((100dvh - 56px)*1.6));height:min(calc(100dvh - 56px),62.5vw);margin:auto;background:#182225;overflow:hidden}canvas{display:block;width:100%;height:100%;outline:none}#landing{position:absolute;inset:0;display:flex;align-items:center;padding:24px 8%;overflow:auto;background:linear-gradient(95deg,#10191af5,#10191ac2),url('cover.png') center/cover}.landing-content{max-width:650px}h1{font-size:clamp(28px,5vw,66px);line-height:1.13;margin:12px 0;color:#f4f0df}p{line-height:1.65;color:#b8c8c8}.eyebrow{font-size:13px;letter-spacing:2px;color:var(--gold)}.tagline{margin:8px 0 18px}#start{background:var(--gold);color:#1d2927;border:0;padding:12px 32px;font-weight:700;font-size:18px;min-height:46px}.hint{font-size:12px;margin:10px 0}progress{width:min(240px,65%);accent-color:var(--gold);margin-right:10px}#error{color:#ffb8a7}#page-tools{position:absolute;right:12px;bottom:12px;z-index:20;display:flex;gap:8px}#page-tools button{background:#15292be8;min-height:40px}#details-toggle{display:none}.playing #details-toggle{display:block}#help-panel{position:absolute;inset:0;z-index:40;display:flex;align-items:center;justify-content:center;padding:16px;background:#080e13db}.help-card{width:min(620px,100%);max-height:100%;overflow:auto;overscroll-behavior:contain;padding:20px;background:#18262c;border:1px solid #53646b;border-radius:8px}.help-card h2{margin-top:0}.help-card a{text-decoration:underline;color:var(--gold)}#help-close{float:right;position:sticky;top:0}#touch{position:absolute;inset:0;pointer-events:none;touch-action:none}#touch button{pointer-events:auto;user-select:none;background:#15292bd4;font-size:14px;padding:10px;color:white;border-color:#9cbab3;min-height:40px}#touch button.active{background:#766230}#stick{position:absolute;left:max(18px,env(safe-area-inset-left));bottom:max(18px,env(safe-area-inset-bottom));width:100px;height:100px;border:2px solid #c5d5cb80;border-radius:50%;background:#152a2860;pointer-events:auto;touch-action:none}#knob{position:absolute;left:29px;top:29px;width:38px;height:38px;border-radius:50%;background:#e1e6dbb0}#look{position:absolute;left:32%;right:4%;top:22%;bottom:35%;pointer-events:auto;touch-action:none}.actions{position:absolute;bottom:max(12px,env(safe-area-inset-bottom));right:max(12px,env(safe-area-inset-right));width:260px;display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}.actions .fire{background:#b64d30c9!important;width:90px;height:48px}.top-actions{position:absolute;top:12px;left:45%;display:flex;gap:8px}#rotate{display:none}article{max-width:760px;margin:50px auto;padding:0 24px;line-height:1.8}article h1{font-size:34px}#shell:fullscreen{width:min(100vw,160dvh);height:min(100dvh,62.5vw);margin:auto;background:#182225}
@media(max-width:700px){header{height:44px;padding:0 12px}#brand{font-size:17px}#brand span{display:none}nav{gap:8px;font-size:12px}nav button{padding:5px 8px}#shell{width:min(100vw,calc((100dvh - 44px)*1.6));height:min(calc(100dvh - 44px),62.5vw)}#landing{padding:16px 6%}h1{margin:8px 0}.tagline{margin:6px 0 12px}.hint{font-size:11px}#landing .eyebrow{font-size:11px}#page-tools{right:8px;bottom:8px}#page-tools button{padding:6px 10px;font-size:12px}}
@media(pointer:coarse){body:has(#shell){overflow:hidden}header{display:none}#shell{width:min(100vw,160dvh);height:min(100dvh,62.5vw);margin-top:max(0px,calc((100dvh - 62.5vw)/2))}#page-tools{right:max(8px,env(safe-area-inset-right));bottom:max(8px,env(safe-area-inset-bottom))}.playing #page-tools{right:12px;bottom:auto;top:115px}#page-tools button{font-size:12px;padding:7px 10px}#landing{padding:12px max(6%,env(safe-area-inset-left))}.hint{font-size:11px}nav{display:none}.help-card{font-size:13px;padding:14px}.help-card p{margin:10px 0}}
@media(pointer:coarse) and (orientation:portrait){.playing #rotate{display:block;position:absolute;bottom:164px;left:10px;right:10px;text-align:center;font-size:11px;color:var(--gold);pointer-events:none}.actions{width:210px}.actions button{font-size:12px!important;padding:6px!important;min-height:34px!important}#stick{width:80px;height:80px}#knob{left:19px;top:19px}.playing #page-tools{top:auto;bottom:130px}#landing{align-items:flex-start;padding-top:14px}.eyebrow{display:none}h1{font-size:28px}.hint{max-width:230px}#start{padding:10px 24px}}
@media(max-height:340px){#landing .hint{display:none}#landing h1{font-size:28px}#landing .tagline{margin:4px 0 10px}#touch button{padding:6px;min-height:34px}.actions{width:230px}#stick{width:80px;height:80px}#knob{left:19px;top:19px}.playing #page-tools{top:90px}}
/* Soften the old HUD in the cover capture so it cannot look like page instructions. */
#landing{background:#10191a}#landing::before{content:"";position:absolute;inset:-12px;background:linear-gradient(95deg,#10191aa8,#10191a8c),url('cover.png') center/cover;filter:blur(5px);opacity:.55;pointer-events:none}.landing-content{position:relative;z-index:1}
/* Touch controls use consistent vector silhouettes, with labels in the help panel. */
.control-icon{display:block;width:28px;height:28px;pointer-events:none;flex-shrink:0}#touch button{display:grid;place-items:center;border-radius:50%;width:48px;height:48px;min-height:48px;padding:0!important;background:#15292bad;box-shadow:0 2px 8px #0003;transition:background .1s,border-color .1s}#touch button.active,#touch button:active{background:#92763bcc;border-color:#ffe3a0}.actions{display:grid;grid-template-columns:repeat(4,48px);grid-auto-rows:48px;gap:6px;width:210px}#touch .actions .fire{grid-column:span 2;grid-row:span 2;width:102px;height:102px;background:#a94429a8!important;border:2px solid #ffd6bd99}.actions .fire .control-icon{width:44px;height:44px}.actions .fire.active{background:#d46a39df!important;border-color:#ffe9b7}.top-actions button{width:42px!important;height:42px!important;min-height:42px!important}.top-actions .control-icon{width:24px;height:24px}.icon-guide{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:10px;margin:16px 0}.icon-guide>div{display:flex;align-items:center;gap:8px;color:#dce8df;font-size:12px}.icon-guide .control-icon{color:var(--gold);width:24px;height:24px}
@media(pointer:coarse) and (orientation:portrait){.actions{grid-template-columns:repeat(4,40px);grid-auto-rows:40px;width:178px;gap:6px}#touch .actions button{width:40px;height:40px;min-height:40px!important}.actions .control-icon{width:25px;height:25px}#touch .actions .fire{width:86px;height:86px}.actions .fire .control-icon{width:38px;height:38px}.top-actions{left:43%}}
@media(max-height:340px){.actions{grid-template-columns:repeat(4,40px);grid-auto-rows:40px;width:178px}#touch .actions button{width:40px;height:40px;min-height:40px}.actions .control-icon{width:25px;height:25px}#touch .actions .fire{width:86px;height:86px}}
