*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden;background:#19314b;color:#fff1cc;font:15px system-ui,sans-serif}button,select{font:inherit;border:1px solid #78b2bd;border-radius:9px;color:#fff6d7;background:#24475b;padding:10px 13px;min-height:43px;cursor:pointer}button:hover,button.held{background:#386b7a}button:focus-visible,select:focus-visible{outline:3px solid #ffe78d}button:disabled{opacity:.4;cursor:default}button[aria-pressed=true]{background:#dba65c;color:#122b3c}.primary{background:#f5c66d;color:#153043;font-weight:750;width:100%}[hidden]{display:none!important}#shell{position:relative;width:100%;height:100%;height:100dvh;overflow:hidden}#world{display:block;width:100%;height:100%;touch-action:none}header{position:absolute;top:0;left:0;right:0;display:flex;gap:8px;align-items:center;padding:8px 12px;background:#102837e8;z-index:2}header strong{flex:1}#status{position:absolute;top:58px;left:10px;right:10px;margin:0;padding:9px;background:#112b3bcc;border-radius:9px;pointer-events:none}footer{position:absolute;bottom:0;left:0;right:0;background:#102837eb;padding:8px;display:flex;gap:8px;justify-content:center;align-items:center;flex-wrap:wrap;z-index:4}#touch,nav{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}#touch button{touch-action:none;user-select:none}select{max-width:180px}.panel{position:absolute;z-index:3;top:105px;bottom:130px;left:50%;transform:translateX(-50%);width:min(570px,94%);background:#142f42f5;border:1px solid #78b2bd;box-shadow:0 10px 40px #0008;border-radius:16px;padding:18px;overflow:auto;overscroll-behavior:contain}.panel h1{margin:0 0 8px;font-size:26px}.panel h2{font-size:19px;margin:12px 0}.panel p{line-height:1.45;margin:9px 0}.hint{color:#b9d9df;font-size:13px}#levels{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;max-height:215px;overflow:auto}#levels button{min-height:43px}.small{top:30%;bottom:auto;max-height:42%;width:min(400px,90%)}@media(max-width:500px){header{padding:6px;gap:5px;font-size:13px}header button{padding:7px;min-height:40px}#status{top:55px;font-size:13px}.panel{top:105px;bottom:165px;padding:13px}.panel h1{font-size:22px}footer{gap:5px;padding:6px}footer button,select{font-size:12px;padding:8px;min-height:42px}#touch{gap:4px}#levels{max-height:190px;gap:5px}#levels button{padding:8px}#timer{font-size:12px}}@media(max-height:470px){header{padding:4px;font-size:13px}header button{min-height:35px;padding:5px}#status{top:47px;font-size:12px;padding:5px}.panel{top:80px;bottom:68px;width:min(660px,95%);padding:10px}.panel h1{font-size:20px}.panel p{margin:5px 0}.panel h2{margin:5px 0}#levels{max-height:92px;grid-template-columns:repeat(10,1fr)}footer{padding:4px;gap:5px}footer button,select{font-size:12px;min-height:40px;padding:6px}.small{top:25%;bottom:auto;max-height:50%}}
.panel:not(.small){bottom:calc(var(--control-height,130px) + 10px)}.panel.small{top:28%;bottom:auto;max-height:42%}
