:root{color-scheme:dark;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#101324;color:#f5f3ef}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 50% 0,#24284b,transparent 60%),#101324}main{max-width:780px;margin:auto;padding:18px 22px 32px}header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}header>div{text-align:center}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:800;color:#a3afcb}h1{font-size:30px;line-height:1;margin:8px 0 0;letter-spacing:-1px}h1 span{color:#92ffd0}.back{color:#aebcd5;text-decoration:none;font-size:13px}button{font:inherit;color:inherit;border:1px solid #495371;background:#272f46;border-radius:12px;cursor:pointer;min-height:44px;padding:10px 16px;font-weight:750;touch-action:none;-webkit-user-select:none;user-select:none}button:disabled{opacity:.4}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #92ffd0;outline-offset:3px}.scoreboard{display:flex;justify-content:space-between;gap:8px;background:#1b2135;border:1px solid #333d55;border-radius:14px 14px 0 0;padding:14px 20px;font-size:10px;letter-spacing:1.5px;color:#95a5c5}.scoreboard strong{display:block;font-size:21px;letter-spacing:1px;color:#fff;margin-top:5px;font-variant-numeric:tabular-nums}.scoreboard div:last-child strong{color:#ff95ae;font-size:18px}.cabinet{position:relative;overflow:hidden;border:1px solid #333d55;border-top:0;background:#0c1321;border-radius:0 0 18px 18px;box-shadow:0 25px 80px #0006}canvas{display:block;width:100%;aspect-ratio:768/720;touch-action:none}.overlay{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:25px;background:linear-gradient(#11192de8,#11192df5);backdrop-filter:blur(3px)}[hidden]{display:none!important}.overlay h2{font-size:clamp(26px,5vw,44px);line-height:1.1;letter-spacing:-1.5px;margin:16px 0}.overlay p{max-width:420px;color:#b8c6df;line-height:1.65;font-size:15px;margin:0 0 20px}.lesson{display:flex;align-items:center;gap:15px;margin:4px 0 24px;font-size:12px;font-weight:800;color:#91ffd0}.lesson b{color:#7c88a3}.primary{background:#91ffd0;color:#0d3028;box-shadow:0 5px 0 #2d8b69;border:0;padding:15px 30px;font-size:16px}.overlay small{font-size:11px;color:#8798b7;margin-top:25px}.touch{display:flex;justify-content:space-between;gap:20px;margin-top:16px;touch-action:none}.touch>div{display:flex;gap:12px}.touch button{width:78px;height:62px;font-size:24px;border-bottom:4px solid #141b2c;box-shadow:inset 0 1px #ffffff14}.touch .jump{width:132px;color:#91ffd0;font-size:17px}.touch button.held{transform:translateY(2px);background:#455471;border-bottom-width:2px}.tip{font-size:12px;text-align:center;line-height:1.6;color:#9baac6;margin:16px 0}details{color:#a3b3cd;border-top:1px solid #333b51;margin-top:22px;padding-top:16px;font-size:13px;line-height:1.6}summary{cursor:pointer;color:#d5e1f6;font-weight:650}@media(max-width:600px){main{padding:12px 10px max(20px,env(safe-area-inset-bottom))}header{margin-bottom:12px}h1{font-size:25px}.eyebrow{font-size:8px;letter-spacing:1.5px}.back{font-size:11px}header button{padding:8px 10px;font-size:12px}.scoreboard{padding:11px 12px;font-size:8px;letter-spacing:1px}.scoreboard strong{font-size:17px}.scoreboard div:last-child strong{font-size:14px}.overlay{padding:18px}.overlay p{font-size:12px;line-height:1.5;margin-bottom:14px}.overlay h2{margin:10px 0}.lesson{font-size:10px;gap:10px;margin-bottom:16px}.overlay small{margin-top:16px;font-size:9px}.primary{padding:12px 24px;font-size:14px}.touch{margin-top:12px}.touch button{width:72px;height:58px}.tip{font-size:10px;margin:12px 0}}@media(orientation:landscape) and (max-height:600px){main{max-width:720px;padding:8px 95px}header{margin-bottom:8px}h1{font-size:20px}.scoreboard{padding:5px 12px}.scoreboard strong{font-size:14px;margin-top:2px}.cabinet{max-width:420px;margin:auto}canvas{max-height:calc(100dvh - 110px);width:100%;object-fit:contain}.touch{position:fixed;inset:auto 10px 18px;pointer-events:none}.touch button{pointer-events:auto}.touch>div{flex-direction:column;gap:8px}.touch .jump{width:84px;height:80px}.tip,details{display:none}.overlay h2{font-size:25px}.overlay p{font-size:11px}.lesson{display:none}.overlay small{margin-top:12px}}

.characters{margin-top:24px}.characters h2{font-size:16px;margin:0}.characters>p{font-size:12px;color:#9baac6;margin:6px 0 12px}.character-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.character-option{display:flex;flex-direction:column;align-items:center;padding:10px 5px;touch-action:manipulation}.character-option canvas{width:120px;max-width:100%;height:81px;aspect-ratio:auto;touch-action:auto}.character-option strong{font-size:13px}.character-option span{font-size:10px;color:#aebcd5;margin-top:4px}.character-option[aria-pressed=true]{border-color:#91ffd0;background:#263e42;box-shadow:0 0 0 1px #91ffd0}.character-option:focus-visible{outline-offset:2px}@media(orientation:landscape) and (max-height:600px){.characters{display:none}}

@media (pointer:coarse){
 html.game-active{overflow:hidden;overscroll-behavior:none;touch-action:none}
 html.game-active body{position:fixed;inset:0;overflow:hidden;width:100%;overscroll-behavior:none;touch-action:none}
 html.game-active main{display:flex;flex-direction:column;gap:0;height:100vh;height:100dvh;max-width:780px;padding:max(8px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left))}
 html.game-active header{flex:none;margin-bottom:8px}html.game-active .scoreboard{flex:none;padding:8px 12px}
 html.game-active .cabinet{flex:1;min-height:0;max-width:none;width:100%;margin:0;touch-action:none}
 html.game-active #canvas{height:100%;width:100%;max-height:none;aspect-ratio:auto;object-fit:contain;touch-action:none}
 html.game-active .touch{flex:none;position:static;inset:auto;margin-top:10px;pointer-events:auto;touch-action:none}
 html.game-active .touch>div{flex-direction:row}html.game-active .touch button{height:54px}html.game-active .touch .jump{width:120px;height:54px}
 html.game-active .tip{flex:none;font-size:10px;line-height:1.4;margin:8px 0 0}
 html.game-active .characters,html.game-active main>details,html.game-active .game-guide,html.game-active .share-panel{display:none}
}
@media (pointer:coarse) and (orientation:landscape) and (max-height:600px){
 html.game-active main{padding-left:max(95px,env(safe-area-inset-left));padding-right:max(95px,env(safe-area-inset-right))}
 html.game-active .touch{position:fixed;inset:auto max(10px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));pointer-events:none}
 html.game-active .touch>div{flex-direction:column}html.game-active .touch button{pointer-events:auto;width:72px}html.game-active .touch .jump{width:80px;height:80px}html.game-active .tip{display:none}
}
