:root{--paper:#f7f4ec;--ink:#283b36;--muted:#68756c;--orange:#d94d2b;--line:#dcded1;--yellow:#f2c85b;--green:#dfe8d8;font-family:"Segoe UI","Microsoft JhengHei",system-ui,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:disabled{cursor:default}button:focus-visible,a:focus-visible{outline:3px solid #197c79;outline-offset:4px}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.shell{max-width:1128px;margin:auto;padding:0 32px}.nav{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);height:79px;font-size:12px}.brand{font-weight:900;font-size:18px;letter-spacing:-.8px}.brand span{font-size:10px;font-weight:500;letter-spacing:2px;border-left:1px solid #b9c2b4;margin-left:15px;padding-left:15px}.nav-actions{display:flex;gap:24px;align-items:center}.quiet-button{border:0;background:none;padding:8px 4px;font-size:12px}.quiet-button:disabled{opacity:.38}.heading{display:flex;align-items:center;justify-content:space-between;padding:38px 0 30px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:2.2px;margin:0 0 12px;display:flex;align-items:center;gap:8px}.eyebrow span{width:6px;height:6px;background:var(--orange);border-radius:50%}h1{font-size:54px;font-weight:900;line-height:1.14;letter-spacing:-3px;margin:0 0 13px}h1>span{color:var(--orange)}.intro{font-size:13px;margin:0;color:var(--muted)}.intro strong{font-weight:400;margin-left:6px}.personal-best{text-align:right;display:grid;gap:4px}.personal-best>span{font-size:10px;letter-spacing:1px;color:var(--muted)}.personal-best strong{font-size:32px;line-height:1.3;font-variant-numeric:tabular-nums;letter-spacing:-1px}.personal-best small{font-size:15px;color:var(--orange)}.personal-best #save-note{font-size:9px;letter-spacing:0}.game{border:1px solid #cfd5c7;border-radius:16px;overflow:hidden;background:#fffdf7;box-shadow:0 8px 0 #e8e9dd}.game-top{padding:15px 22px;display:flex;justify-content:space-between;gap:12px;align-items:center;border-bottom:1px solid var(--line)}.target-select{display:flex;gap:7px}.target-select button{border:1px solid transparent;border-radius:7px;font-size:12px;padding:8px 12px;background:transparent;transition:background .15s}.target-select button>span{font-size:16px;margin-right:4px}.target-select button.selected{background:var(--ink);color:#fffdf7}.target-select button:not(.selected):hover:not(:disabled){background:#e9ede1}.target-select button:disabled:not(.selected){opacity:.4}.scoreboard{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;padding:20px 28px;gap:20px}.scoreboard>div{display:flex;flex-direction:column;gap:6px;border-right:1px solid var(--line)}.scoreboard>div:last-child{border:0}.scoreboard>div>span{font-size:10px;color:var(--muted);letter-spacing:.8px}.scoreboard strong{font-size:27px;line-height:1.15;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:-.6px}.scoreboard small{font-size:11px;margin-left:5px;font-weight:500;color:var(--muted)}.scoreboard .distance-stat strong{color:var(--orange)}.stage{height:332px;position:relative;overflow:hidden;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:#dce8dd}#world{width:100%;height:100%;display:block}.scene-tag{position:absolute;left:22px;top:18px;display:flex;align-items:center;gap:7px;font-size:10px;font-weight:600;letter-spacing:1px}.scene-tag i{width:5px;height:5px;border-radius:50%;background:var(--orange)}.combo{position:absolute;right:22px;top:16px;font-size:12px;font-weight:800;color:var(--orange);border:1px solid #d94d2b55;background:#fffaf0dd;border-radius:4px;padding:5px 9px}.stage-bottom{position:absolute;bottom:0;width:100%;height:32px;display:flex;justify-content:space-between;align-items:center;padding:0 22px;background:#293b36;color:#ecefe4;font-size:10px;letter-spacing:.5px}.stage-bottom>span{display:flex;align-items:center;gap:7px}.stage-bottom i{height:6px;width:6px;border-radius:50%;display:inline-block}.player-dot{background:#f17b4c}.target-dot{background:#f2c85b}.toast{position:absolute;top:54px;left:50%;transform:translateX(-50%);border-radius:5px;font-weight:700;font-size:14px;white-space:nowrap;background:#fff9e7f0;color:var(--orange);padding:9px 18px;opacity:0;pointer-events:none}.toast.visible{opacity:1}.overlay{position:absolute;inset:0 0 32px;display:flex;align-items:center;padding:20px 40px;background:linear-gradient(90deg,#eef0e6dc 5%,#eef0e688 55%,transparent 88%)}.overlay-card{max-width:480px}.overlay-kicker{font-size:9px;letter-spacing:2px;font-weight:700;color:#56695c}.overlay h2{font-size:31px;margin:8px 0 12px;letter-spacing:-1px;font-weight:800}.overlay p{font-size:12px;line-height:1.9;color:#526256;margin:0 0 19px}.primary{display:flex;align-items:center;justify-content:space-between;gap:35px;padding:12px 20px;background:var(--orange);color:white;border:0;border-radius:6px;font-size:13px;font-weight:700;box-shadow:0 3px 0 #a73d23}.primary:hover{background:#c64323}.primary:active{transform:translateY(2px);box-shadow:0 1px 0 #a73d23}.primary span{font-size:18px;line-height:16px}.text-button{border:0;background:none;border-bottom:1px solid #9aa99b;font-size:10px;margin-top:15px;padding:0 0 3px}.run-summary{display:flex;gap:22px;font-size:11px;margin-bottom:16px;color:#53665a}.run-summary b{color:var(--ink);font-size:17px}.controls-area{padding:17px 27px 20px}.rhythm-note{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);margin-bottom:12px}.rhythm-note i{font-style:normal;color:#bdc5b6;margin:0 8px}.rhythm-note b{font-weight:500;color:var(--ink)}.feet{display:grid;grid-template-columns:1fr 32px 1fr;align-items:center;gap:12px}.foot{height:85px;display:flex;align-items:center;position:relative;gap:17px;border:1px solid #cbd3c4;border-bottom:4px solid #bbc6b1;border-radius:9px;background:#f4f5eb;padding:0 25px;text-align:left;touch-action:manipulation;user-select:none;-webkit-user-select:none}.foot>svg{width:67px;height:38px;fill:#d4dec9;stroke:#687c64;stroke-width:2.5;stroke-linejoin:round}.foot.left>svg{transform:scaleX(-1)}.foot>span:not(.next-label){font-size:20px;font-weight:800}.foot small{display:block;font-size:8px;font-weight:500;letter-spacing:1.7px;margin-top:3px}.foot kbd{margin-left:auto;font-size:11px;font-family:inherit;padding:5px 7px;border:1px solid #c5cebc;border-radius:4px;color:#6c7b66;background:#ffffff80;white-space:nowrap}.foot.next{background:#faecda;border-color:#e1aa75;border-bottom-color:#cf8252}.foot.next>svg{fill:#e99b66;stroke:#9c5a35}.foot:active:not(:disabled),.foot.pressed{transform:translateY(3px);border-bottom-width:1px}.foot:disabled{opacity:.65}.next-label{display:none;position:absolute;right:12px;top:-6px;font-size:8px;background:var(--orange);color:white;border-radius:3px;padding:2px 5px}.foot.next .next-label{display:block}.alternator{text-align:center;font-size:23px;color:#9cab95}.game-footer{display:flex;justify-content:space-between;padding:12px 25px;border-top:1px solid var(--line);font-size:9px;color:var(--muted)}.game-footer>span:first-child{display:flex;gap:6px;align-items:center}.live-dot{background:#70946b;width:5px;height:5px;border-radius:50%}.how-to{display:grid;grid-template-columns:1fr 1fr 1fr;gap:27px;margin:31px 0 30px}.how-to>div{display:flex;gap:11px;align-items:flex-start}.rule-number{font-size:10px;color:var(--orange);font-weight:700;padding-top:4px}.how-to p{margin:0;font-size:10px;line-height:1.9;color:var(--muted)}.how-to strong{display:block;color:var(--ink);font-weight:600;font-size:11px}.footer{border-top:1px solid var(--line);display:flex;justify-content:space-between;padding:21px 0 27px;font-size:9px;letter-spacing:.4px;color:var(--muted)}
.toast{max-width:calc(100% - 24px);white-space:normal;text-align:center;min-width:200px}
.ride-options{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding:8px 23px;background:#f5f4ea}.mode-select{display:flex;gap:4px}.mode-select button{display:flex;align-items:center;gap:6px;border:1px solid transparent;border-radius:5px;padding:6px 10px;background:none;font-size:11px}.mode-select button.selected{background:#e5e9d9;border-color:#c4cfb4;font-weight:700}.mode-select button:disabled:not(.selected){opacity:.4}.mode-select svg{width:23px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}#mode-note{font-size:10px;color:var(--muted)}.target-select small{font-size:8px;color:#a64029;background:#f4d8be;border-radius:3px;padding:2px 4px;margin-left:3px}.target-select .selected small{color:#f5dab9;background:#ffffff20}.stage{height:300px}.foot>span>b{font-weight:inherit}
@media(max-width:700px){.ride-options{padding:7px 12px;gap:5px}.mode-select button{padding:5px 7px;font-size:10px}.mode-select svg{width:18px}#mode-note{font-size:8px}.target-select button>span{display:none}.target-select small{font-size:7px;padding:1px 2px;margin-left:1px}.foot>span:not(.next-label){white-space:nowrap}}
@media(min-width:1500px){.shell{max-width:1210px}.heading{padding-top:45px}.stage{height:370px}}
@media(max-width:700px){.shell{padding:0 16px}.nav{height:61px}.brand{font-size:16px}.brand span{display:none}.nav-actions{gap:14px;font-size:10px}.quiet-button{font-size:10px}.heading{padding:26px 0 22px}h1{font-size:39px;letter-spacing:-3px}.eyebrow{font-size:8px;letter-spacing:1.4px}.intro{font-size:10px;max-width:230px;line-height:1.7}.intro strong{display:block;margin-left:0}.personal-best strong{font-size:25px}.personal-best>span{font-size:8px;letter-spacing:0}.personal-best #save-note{font-size:7px}.game{border-radius:12px}.game-top{padding:10px;gap:5px}.target-select{gap:1px;flex:1;justify-content:space-between}.target-select button{padding:7px 6px;font-size:10px}.target-select button>span{font-size:12px;margin:0}.scoreboard{padding:15px;gap:10px;grid-template-columns:1.15fr .85fr 1fr}.scoreboard>div>span{font-size:9px;letter-spacing:0}.scoreboard strong{font-size:24px}.scoreboard small{font-size:10px;margin-left:2px}.scoreboard>div:nth-child(3){border:0}.scoreboard .speed-stat{display:none}.stage{height:290px}.scene-tag{left:15px;top:14px;font-size:8px}.combo{right:12px;top:12px;font-size:10px}.overlay{padding:20px 22px;background:linear-gradient(90deg,#eef0e6ee,#eef0e6bb 68%,#eef0e640)}.overlay h2{font-size:26px}.overlay p{font-size:11px}.overlay-kicker{font-size:8px}.primary{padding:11px 17px;font-size:12px}.stage-bottom{padding:0 13px;font-size:8px}.stage-bottom>span{gap:4px}.controls-area{padding:16px 13px 17px}.rhythm-note{font-size:9px}.feet{gap:5px;grid-template-columns:1fr 18px 1fr}.foot{padding:0 12px;gap:9px;height:90px}.foot>svg{width:45px;height:30px}.foot>span:not(.next-label){font-size:19px}.foot small{font-size:7px;letter-spacing:.6px}.foot kbd{display:none}.alternator{font-size:20px}.game-footer{padding:11px 13px;font-size:8px}.how-to{gap:10px;margin:27px 0 24px}.how-to>div{gap:6px}.how-to p{font-size:9px;line-height:1.8}.how-to strong{font-size:10px}.rule-number{font-size:8px}.footer{font-size:8px}.run-summary{font-size:10px;gap:15px}.run-summary b{font-size:15px}}
@media(max-width:700px){.stage{height:clamp(190px,30svh,254px)}}
@media(max-width:360px){.shell{padding:0 10px}.heading{gap:8px}.personal-best strong{font-size:22px}h1{font-size:35px}.target-select button{font-size:9px;padding:7px 4px}.foot{gap:5px;padding:0 8px}.foot>svg{width:35px}.how-to{grid-template-columns:1fr;gap:8px}.how-to strong{display:inline}.scoreboard{padding:14px 12px}.game-footer>span:last-child{font-size:7px}}
@media(max-height:500px) and (orientation:landscape){.heading{padding:16px 0}.stage{height:260px}.overlay h2{font-size:25px}.controls-area{padding:12px 25px}.foot{height:70px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
/* Only a running / falling round occupies the viewport. Pause restores the page. */
html.playing-fixed{overflow:hidden;overscroll-behavior:none}
body.playing-fixed{position:fixed;inset:0;width:100%;height:100vh;height:100dvh;overflow:hidden;overscroll-behavior:none;touch-action:none}
.playing-fixed .shell{height:100%;display:flex;flex-direction:column;padding:env(safe-area-inset-top) max(12px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(12px,env(safe-area-inset-left))}
.playing-fixed .nav{height:40px;min-height:40px;flex-shrink:0}
.playing-fixed .heading,.playing-fixed .how-to,.playing-fixed .footer,.playing-fixed .ride-options,.playing-fixed .game-footer{display:none}
.playing-fixed .game{display:flex;flex-direction:column;flex:1;min-height:0;border-radius:8px;box-shadow:none}
.playing-fixed .game-top{padding:5px 12px;min-height:38px;flex-shrink:0}
.playing-fixed .target-select{justify-content:flex-start}
.playing-fixed .target-select button:not(.selected){display:none}
.playing-fixed .scoreboard{padding:10px 14px;gap:12px;flex-shrink:0}
.playing-fixed .scoreboard strong{font-size:23px}
.playing-fixed .stage{height:auto;min-height:80px;flex:1}
.playing-fixed .controls-area{padding:12px;flex-shrink:0}
.playing-fixed .foot{height:76px;touch-action:none}
@media(orientation:landscape) and (max-height:540px){
 .playing-fixed .nav{height:32px;min-height:32px}.playing-fixed .game-top{min-height:30px;padding:2px 12px}
 .playing-fixed .scoreboard{padding:6px 14px}.playing-fixed .scoreboard>div{gap:2px}.playing-fixed .scoreboard strong{font-size:19px}
 .playing-fixed .controls-area{padding:5px 12px 7px}.playing-fixed .rhythm-note{margin-bottom:5px}.playing-fixed .foot{height:51px}
}
