:root{font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans",sans-serif;color:#f5f5fb;background:#080c15;color-scheme:dark}*{box-sizing:border-box}body{margin:0}button{font:inherit;color:inherit;border:1px solid #7d8d9f;border-radius:8px;background:#1c293d;min-height:44px;touch-action:manipulation}button:disabled{opacity:.45}button:focus-visible,a:focus-visible{outline:3px solid #ffe1a0}[hidden]{display:none!important}main{max-width:450px;margin:auto;height:calc(100dvh - var(--nav-height,88px));padding:3px 5px max(4px,env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:4px;min-height:410px}.stage{position:relative;flex:1;min-height:0;overflow:hidden;border:1px solid #b6a079;border-radius:16px;background:#122335}canvas{width:100%;height:100%;display:block;touch-action:none}.hud{position:absolute;top:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;padding:5px 8px;background:#0b1425e8;font-weight:800;font-variant-numeric:tabular-nums;gap:5px;font-size:14px}.hud button{width:44px}.speed{position:absolute;top:61px;left:12px;color:#ffdd91;font-size:13px;font-weight:700}.overlay{position:absolute;inset:0;background:#050912bf;display:grid;place-items:center;padding:12px}.panel{width:min(100%,310px);max-height:100%;overflow:auto;text-align:center;border:1px solid #b6a079;border-radius:20px;padding:16px;background:radial-gradient(ellipse at top,#26364a,#111927);display:flex;flex-direction:column;align-items:center;gap:10px}.panel img{object-fit:contain;border-radius:20px}.panel h1{font-size:18px;margin:0}.panel p{margin:0;line-height:1.55;font-size:13px}.panel .hint{font-size:12px;color:#d3dfec}.panel button{width:100%}#play{background:linear-gradient(#ffe1a0,#d9ae60);color:#292017;border-color:#f6dda6;font-weight:800}.lanes{display:flex;gap:5px}.lanes button{flex:1;min-height:48px}.lanes button[aria-pressed=true]{border-color:#ffdc8c;background:#52432c}.buddy{display:flex;align-items:center;gap:7px;min-height:60px;background:#152233;border:1px solid #b6a079;border-radius:12px;padding:0 6px}.buddy img{object-fit:contain;align-self:flex-end}.buddy p{font-size:12px;line-height:1.5;margin:0} @media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}/* The course owns the touch surface; small icon pads are optional lane targets. */
.hud{background:linear-gradient(#08121ef5,#08121ec9);padding:5px 10px;z-index:2}.speed{top:61px;font-size:14px;letter-spacing:.4px;text-shadow:0 2px 6px #000}.progress{position:absolute;top:55px;left:0;right:0;height:3px;background:#ffffff20}.progress i{display:block;width:0;height:100%;background:#f8d381;box-shadow:0 0 10px #f4d085}.legend{position:absolute;top:88px;left:12px;right:12px;display:flex;justify-content:space-between;font-size:11px;font-weight:700;color:#9eeafb;pointer-events:none}.legend span+span{color:#a5f3cd}.lanes{position:absolute;bottom:22px;left:8px;right:8px;gap:8px}.lanes button{min-height:44px;background:#0a1b2c88;border:1px solid #aed7e02b;border-radius:12px;font-size:26px;color:#b5d4e0;line-height:1}.lanes button[aria-pressed=true]{background:#325c6b66;color:#effeff;border-color:#8be9f5;box-shadow:inset 0 -2px #93eafa}.gesture-hint{position:absolute;bottom:5px;left:0;right:0;text-align:center;font-size:10px;color:#cee4ef;pointer-events:none}.overlay{z-index:5;background:#030b16cb;backdrop-filter:blur(5px)}.panel{border-color:#c2a471;background:radial-gradient(ellipse at top,#284453,#101a29);box-shadow:0 14px 50px #0009;padding:16px;gap:10px}.panel img{width:116px;height:116px}.buddy{min-height:54px;border-color:#4d657b}.buddy img{height:54px;width:54px}.buddy p{font-size:12px}.hint{max-width:250px}.stage{border-color:#9d916e;border-radius:14px}main{min-height:360px}.panel button{flex-shrink:0}#bank{color:#f8d78a;font-size:11px}#upgrade{font-size:12px}#play{min-height:48px}.overlay:not([hidden])~.lanes,.overlay:not([hidden])~.gesture-hint{visibility:hidden}@media(max-height:680px){.panel{gap:7px;padding:12px}.panel img{width:75px;height:75px}.panel h1{font-size:17px}.panel p{font-size:12px}.panel button{min-height:42px}}
