*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#07111e;color:white;font-family:system-ui,sans-serif}canvas{display:block;width:100%;height:100%}button,select,input{font:inherit}button{border:1px solid #82f4ff;background:#183345;color:white;border-radius:9px;padding:.65em 1em;cursor:pointer;touch-action:manipulation}button:hover{background:#28576a}button:disabled{opacity:.35;cursor:default}.hidden{display:none!important}#overlay{position:absolute;inset:0;display:grid;place-items:center;background:#020b17c9;overflow:auto;padding:20px}#panel{width:min(700px,100%);max-height:100%;overflow:auto;text-align:center;background:linear-gradient(145deg,#122f42ef,#10142ced);border:1px solid #5bd4e2;border-radius:20px;padding:clamp(20px,4vw,42px);box-shadow:0 0 45px #21c9e044}h1{font-size:clamp(2rem,6vw,4rem);line-height:1;margin:.2em 0;color:#fff;font-style:italic;text-shadow:3px 3px #ef506c}h2{color:#8ef8ff}p{line-height:1.6;color:#d4e8ec}.menu{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}.menu button{min-width:150px}.primary{background:#e64462;border-color:#ffadb6;font-weight:bold}.stages{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}.stages button{min-width:0;padding:.5em}.settings{display:grid;grid-template-columns:1fr 1fr;gap:15px;text-align:left;align-items:center}#hud{position:absolute;inset:0;pointer-events:none;padding:14px;text-shadow:0 2px 4px #000;font-weight:700}#hud span,#hud b{display:inline-block;margin:0 12px 5px 0}#difficulty{color:#f9dc6e}#notice{text-align:center;color:#fff49a;margin:30px auto}.hudButtons{position:absolute;right:14px;top:14px;display:flex;gap:6px;pointer-events:auto}.hudButtons button{font-size:.8rem;padding:.5em}#touch{position:absolute;inset:0;pointer-events:none}#stick{position:absolute;left:25px;bottom:25px;width:110px;height:110px;border-radius:50%;border:2px solid #ffffff88;background:#172d3d88;pointer-events:auto;touch-action:none}#knob{position:absolute;left:35px;top:35px;width:36px;height:36px;border-radius:50%;background:#b4faffaa}#look{position:absolute;right:0;top:65px;width:52%;height:55%;pointer-events:auto;touch-action:none}.actions{position:absolute;right:20px;bottom:24px;display:flex;gap:8px;pointer-events:auto}.actions button{width:76px;height:76px;border-radius:50%;padding:2px;background:#173b52bb;font-size:.8rem;touch-action:none}@media(pointer:fine){#touch{display:none!important}}@media(max-width:600px){#hud{font-size:.75rem}.hudButtons{top:8px;right:8px}.hudButtons button{font-size:.7rem;padding:.45em}#panel{padding:18px}.actions button{width:58px;height:58px;font-size:.68rem}#stick{width:85px;height:85px}#knob{left:24px;top:24px}}
