:root{color:#edf4ed;font-synthesis:none;background:#123;font-family:system-ui,sans-serif}*{box-sizing:border-box}body{margin:0;overflow:hidden}canvas{width:100vw;height:100dvh;display:block;position:fixed;inset:0}button{color:#fff;font:inherit;cursor:pointer;touch-action:manipulation;background:#213e4d;border:1px solid #9fb8bd;border-radius:12px;padding:12px 24px}button:active{background:#57777d}button[hidden],[hidden]{display:none!important}header{background:#112233c9;align-items:center;gap:24px;padding:12px 24px;display:flex;position:fixed;inset:0 0 auto}header button{margin-left:auto;padding:8px 16px}.card{text-align:center;background:#132b39ed;border:1px solid #74949d;border-radius:20px;min-width:400px;max-height:80dvh;padding:20px 36px;position:fixed;top:52%;left:50%;overflow:auto;transform:translate(-50%,-50%)}h1{margin:8px 0;font-size:30px}p{margin:12px 0}small{color:#b9cbd1}#start,#again{color:#182832;background:#f5ce67;font-weight:700}.card ol{text-align:left;line-height:1.8}#stick{touch-action:none;background:#ffffff20;border:2px solid #ffffff60;border-radius:50%;place-items:center;width:128px;height:128px;display:grid;position:fixed;bottom:28px;left:36px}#knob{pointer-events:none;background:#f5ce67cc;border-radius:50%;width:46px;height:46px}#actions{gap:20px;display:flex;position:fixed;bottom:35px;right:30px}#actions button{touch-action:none;background:#294b5bd9;border-radius:50%;width:78px;height:78px;font-size:25px}#hint{pointer-events:none;position:fixed;bottom:12px;left:50%;transform:translate(-50%)}#debug{background:#132b39e8;border-radius:8px;max-height:65vh;padding:8px;font-size:12px;position:fixed;top:66px;right:14px;overflow:auto}#debug label{justify-content:space-between;gap:10px;margin:6px;display:flex}#debug small{max-width:200px;display:block}dialog{color:#fff;background:#132b39;border:1px solid #74949d;border-radius:16px;max-width:90vw}dialog::backdrop{background:#0007}textarea{width:350px;max-width:75vw;height:90px;font:inherit;display:block}#portrait{display:none}@media (orientation:portrait){#portrait{text-align:center;background:#112233ed;width:100%;padding:30px;display:block;position:fixed;bottom:50%}.card{min-width:90%;padding:20px}}.card{width:min(620px,85vw);min-width:0;max-height:calc(100dvh - 80px);padding:10px 24px;top:calc(50dvh + 32px)}.card h1{margin:2px 0;font-size:24px}.card p{margin:5px 0;font-size:13px}.card button{padding:8px 18px}.card ol{margin:6px 0;padding-left:0;font-size:14px;line-height:1.7;list-style:none}#gameMenu{justify-content:center;gap:14px;margin:8px 0;display:flex}#gameMenu>div{flex:1}#gameMenu button{white-space:nowrap}#debug{width:270px;max-height:calc(100dvh - 100px);left:50%;right:auto;transform:translate(-50%)}#debug label{margin:3px}#debug button{padding:5px 12px}#debug small{max-width:none}#stick{width:var(--stick-size);height:var(--stick-size)}body,canvas,#controls{touch-action:none;-webkit-user-select:none;user-select:none}input,textarea{-webkit-user-select:text;user-select:text}@media (height<=380px){.card{padding:8px 20px}.card h1{font-size:21px}.card p{font-size:12px}.card ol{line-height:1.45}#hint,#debug{font-size:11px}}#debug{width:200px;max-height:calc(100dvh - 250px);left:12px;right:auto;overflow:auto;transform:none}#debug label{gap:4px;font-size:11px}#debug input{width:60px}body{touch-action:auto}#debug{touch-action:pan-y}#gameHUD{pointer-events:none;position:fixed;inset:0}#gameMenu{gap:8px}#gameMenu button{padding:7px 12px}#gameMenu p{font-size:11px}
