html,body{background:#d9dde2;height:100%;margin:0;overflow:hidden}#game{touch-action:none;cursor:crosshair;width:100%;height:100%;display:block}body.demo #game{cursor:none}#hud{pointer-events:none;color:#1d2026;--s:clamp(10px, 1.6vmin, 14px);font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:var(--s);position:fixed;inset:0}#brand{left:calc(var(--s) * 1.6);top:calc(var(--s) * 1.4);opacity:.85;flex-direction:column;gap:2px;transition:opacity .8s;display:flex;position:absolute}#brand b{letter-spacing:.22em;font-size:1.05em;font-weight:800}#brand b:before{content:"";background:#ff6418;border-radius:2px;width:.7em;height:.7em;margin-right:.55em;display:inline-block;transform:translateY(.05em)}#brand span{opacity:.55;letter-spacing:.08em;padding-left:1.3em;font-size:.82em}#hints{left:50%;bottom:calc(var(--s) * 1.4);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);opacity:.9;color:#2a2e36;background:#ffffff8c;border-radius:999px;flex-wrap:wrap;justify-content:center;gap:.4em 1.1em;width:max-content;max-width:92vw;padding:.55em 1.1em;font-size:.92em;transition:opacity 1.2s;display:flex;position:absolute;transform:translate(-50%)}#hints.dim{opacity:.32}kbd{font:inherit;color:#fff;background:#1d2026;border-radius:4px;margin-right:.25em;padding:.1em .45em;font-size:.85em;font-weight:700}#demoBadge{right:calc(var(--s) * 1.6);top:calc(var(--s) * 1.4);letter-spacing:.18em;opacity:0;color:#2a2e36;align-items:center;gap:.6em;font-size:.8em;font-weight:700;transition:opacity .6s;display:flex;position:absolute}#demoBadge i{background:#ff3b2f;border-radius:50%;width:.6em;height:.6em;animation:1.2s infinite blink}@keyframes blink{50%{opacity:.25}}body.demo #demoBadge{opacity:.7}body.demo #hints{opacity:0}#caption{left:calc(var(--s) * 1.6);bottom:calc(var(--s) * 2.2);letter-spacing:.14em;text-transform:uppercase;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);opacity:0;background:#fff9;border-left:3px solid #ff6418;max-width:80vw;padding:.45em .8em .45em .9em;font-size:1.05em;font-weight:700;transition:opacity .5s,transform .5s;position:absolute;transform:translate(-12px)}#caption.on{opacity:1;transform:none}#debugPanel{right:calc(var(--s) * 1.6);bottom:calc(var(--s) * 1.4);color:#e8edf3;letter-spacing:.06em;opacity:0;background:#12151bc7;border-radius:8px;padding:.6em .7em;font-size:.78em;transition:opacity .35s,transform .35s;position:absolute;transform:translateY(8px)}#debugPanel.on{opacity:1;transform:none}#debugPanel .row{justify-content:space-between;gap:1.2em;margin-bottom:.4em;display:flex}#debugPanel #stats{opacity:.7;font-variant-numeric:tabular-nums}#gait{width:200px;height:72px;image-rendering:pixelated;display:block}#debugPanel .legend{opacity:.85;gap:.9em;margin-top:.45em;display:flex}#debugPanel .legend span:before{content:"";vertical-align:middle;width:.8em;height:.25em;margin-right:.35em;display:inline-block}.legend .a:before{background:#ff7a2e}.legend .b:before{background:#46e6ff}.legend .r:before{background:#4cd9ff}.legend .l:before{background:#fff25a}@media (aspect-ratio<=1){#hud{--s:clamp(10px, 2.6vmin, 14px)}#debugPanel{right:50%;bottom:calc(var(--s) * 6.2);transform:translate(50%,8px)}#debugPanel.on{transform:translate(50%)}#caption{bottom:auto;top:calc(var(--s) * 5)}#debugPanel .legend{flex-wrap:wrap;max-width:200px}}
