*{box-sizing:border-box}
html,body{margin:0;height:100%;background:#0f1a24;color:#e8eef4;font:15px/1.45 system-ui,sans-serif}
#app{display:flex;height:100%}
#side{width:320px;padding:16px 16px 24px;background:#14222f;overflow:auto;flex:0 0 320px}
main{flex:1;position:relative;min-width:0}
canvas{display:block;width:100%;height:100%;touch-action:none;cursor:none}
.brand{display:flex;align-items:center;gap:10px;margin:0 0 10px;color:#e8eef4;text-decoration:none;font-weight:750;font-size:22px}
.brand img{width:44px;height:44px;border-radius:10px;background:#fff;flex:0 0 auto}
.brand .accent{color:#2f8fe8}
.kicker{margin:0 0 8px;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#7dff9a;font-weight:700}
.lede{font-size:13px;color:#bcd;margin:0 0 14px}
.lede a{color:#2f8fe8}
h2{margin:12px 0 6px;font-size:15px}
.steps{margin:0 0 12px;padding-left:18px;font-size:13px;color:#d5e2ec}
.steps li{margin:0 0 8px}
.hint{font-size:12px;color:#9ab;margin:0 0 12px}
#curl{display:flex;gap:6px;margin:0 0 12px}
#curl button{flex:1;background:#22384c;color:#fff;border:1px solid #3a5a77;border-radius:5px;padding:8px 8px;cursor:pointer;font-weight:650}
#curl button:hover{background:#2c4964}
#curl button.on{background:#2f7bd6;border-color:#4a9}
#hud{margin:8px 0;font-size:13px}
#turn,#speed{font-weight:700;margin:0 0 4px}
#role{font-weight:600;color:#7dff9a;margin:0 0 6px}
#help{font-size:13px;color:#bcd}
#status{font-size:13px;color:#ffd84d;margin:10px 0;min-height:2.4em}
button#next,button#restart{display:block;width:100%;background:#1c4d73;color:#fff;border:1px solid #3d7eae;border-radius:5px;padding:8px 10px;cursor:pointer;font-weight:650;margin:4px 0}
button#next:hover,button#restart:hover{background:#246091}
.foot{margin-top:18px;font-size:12px}
.foot a{color:#2f8fe8}
code{background:#0f1a24;padding:1px 4px;border-radius:3px}
.foul #status{color:#ff8b8b}
