:root{color-scheme:dark;background:#111226;color:#f2efff;font:16px/1.5 system-ui,-apple-system,sans-serif}
*{box-sizing:border-box}body{margin:0}main{max-width:70rem;margin:auto;padding:clamp(.55rem,2.5vw,1.45rem)}
.mast{display:flex;gap:.75rem;align-items:center;justify-content:space-between;margin-bottom:.7rem}.mast a{color:#9ff9df;text-decoration:none;font-weight:850;letter-spacing:-.045em}.mast h1{font-size:clamp(.9rem,3.3vw,1.35rem);margin:0}.mast button{font-size:.8rem}
button{color:inherit;font:inherit;font-weight:700;background:#252747;border:1px solid #545077;border-radius:.75rem;padding:.48rem .78rem;cursor:pointer}button:disabled{opacity:.5}button:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid #a5ffe8;outline-offset:3px}
.stage{aspect-ratio:2;position:relative;isolation:isolate;overflow:hidden;border:1px solid #6a5e9a;border-radius:clamp(.65rem,2.5vw,1.35rem);background:#28204d}canvas{display:block;width:100%;height:100%}
.hud{position:absolute;top:0;left:0;right:0;display:flex;align-items:center;gap:clamp(.45rem,2vw,1.25rem);padding:.55rem .75rem;background:linear-gradient(#131129ed,#13112900);pointer-events:none}
.hud>div{display:grid}.hud span{font-size:clamp(.57rem,1.3vw,.72rem);color:#d2cbea}.hud strong{font-size:clamp(.76rem,2.15vw,1.15rem);font-variant-numeric:tabular-nums;white-space:nowrap}.hud #life{color:#ff99b9}.xp{margin-left:auto;display:grid;width:min(25%,8rem)}progress{width:100%;height:.55rem;accent-color:#adf7d5}
.intro{position:absolute;inset:0;display:grid;align-items:center;padding:clamp(.65rem,4vw,2.7rem);background:linear-gradient(100deg,#1b1531f5,#1b153184 55%,#1b153100)}.intro[hidden]{display:none}.card{max-width:27rem}.card h2{font-size:clamp(1.35rem,5.3vw,3.55rem);letter-spacing:-.065em;line-height:1.04;margin:.15em 0 .25em}.card p{font-size:clamp(.65rem,1.8vw,1rem);margin:.2em 0 .6em}.card #eyebrow{color:#a5ffe8;font-weight:750}.card button{border:0;background:#a5ffe8;color:#141d30;padding:.4em .85em}.card button span{margin-inline-start:.4em}
.controls{display:flex;justify-content:space-between;gap:.45rem;margin-top:.7rem;user-select:none}.controls div{display:flex;gap:.35rem}.controls button{touch-action:none;min-width:3rem;min-height:2.65rem}.controls [data-key="jump"]{background:#a5ffe8;color:#141d30;border:0}.controls button.is-held{filter:brightness(1.35)}
.keys,details{font-size:.82rem;color:#c7c3df}.keys{margin:.65rem 0}kbd{border:1px solid #6f6489;border-radius:.24rem;padding:0 .2em}summary{cursor:pointer}details p{margin:.25rem 0}#level-up{position:absolute;left:50%;top:22%;transform:translateX(-50%);color:#ffed9d;font-size:clamp(.8rem,2.2vw,1.5rem);font-weight:850;text-shadow:0 2px 4px #191222;white-space:nowrap;pointer-events:none}
@media(max-width:560px){.stage{aspect-ratio:1.72}.hud{padding:.4rem .45rem}.controls button{min-width:2.7rem;padding:.35rem .55rem}.keys{display:none}details{margin-top:.6rem}}
.area-note{position:absolute;right:.65rem;top:3.35rem;padding:.24rem .6rem;border:1px solid #ffffff38;border-radius:2rem;background:#131129bd;color:#f5eaff;font-size:clamp(.61rem,1.5vw,.82rem);pointer-events:none}
.ac-game-portrait .stage{aspect-ratio:1.18}.ac-game-portrait .area-note,.ac-game-portrait #level-up,.ac-game-portrait .keys{display:none}
.ac-game-feed{border:1px solid #373858;border-radius:.8rem;margin-top:.5rem;background:#1c1c34}.ac-game-feed a{color:#a5ffe8}
@media(max-height:530px) and (orientation:landscape) and (max-width:1050px){
 main{max-width:calc(100dvh * 2.45);padding:.22rem .45rem}
 .mast{margin-bottom:.22rem}.mast button{padding:.14rem .5rem}
 .stage{aspect-ratio:2.13;max-height:calc(100dvh - 5.3rem)}
 .controls{margin:-3.05rem .4rem .45rem;position:relative;pointer-events:none}
 .controls button{pointer-events:auto;opacity:.92}
 .ac-game-feed{margin-top:.35rem;min-height:1.85rem;padding:.1rem .3rem}
 .ac-game-feed button{min-height:1.7rem;padding:.1rem .45rem}
 .keys,section>details{display:none}
}

.mast-actions{display:flex;gap:.25rem}.mast-actions button{white-space:nowrap}
.ac-rotate,.intro{touch-action:none}
.ac-game-compact {max-width:min(70rem,calc((var(--ac-game-vh,100dvh) - 5.3rem) * 2.13));padding:.22rem .35rem}
.ac-game-compact .mast{margin-bottom:.22rem}.ac-game-compact .mast button{padding:.14rem .5rem}
.ac-game-compact .stage{aspect-ratio:2.13;max-height:calc(var(--ac-game-vh,100dvh) - 5.3rem)}
.ac-game-compact .controls{margin:-3.05rem .4rem .45rem;position:relative;pointer-events:none;z-index:2}
.ac-game-compact .controls button{pointer-events:auto;opacity:.92}
.ac-game-compact :is(.keys,section>details){display:none}
main:has(.intro:not([hidden])) .controls{visibility:hidden}
