:root{color:#f3f6fa;font-synthesis:none;--edge:12px;--chip:#15253ad0;--ink:#172736;--gold:#ffc62e;--cream:#ffe08a;background:#27407c;font-family:system-ui,-apple-system,Noto Sans JP,sans-serif}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{overscroll-behavior:none;width:100%;height:100%;margin:0;overflow:hidden}body{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}button{font:inherit;color:inherit;background:var(--chip);cursor:pointer;touch-action:manipulation;border:0;border-radius:13px;min-width:48px;min-height:48px;padding:0;font-size:16px;font-weight:700}button:active{background:#33506a}button:disabled{opacity:.42;cursor:default}button:focus-visible{outline-offset:2px;outline:3px solid #9becff}svg{display:block}[hidden]{display:none!important}#game{width:100%;height:100%;height:100dvh;position:relative;overflow:hidden}#world{touch-action:none;width:100%;height:100%;display:block}#controls,#game-controls{pointer-events:none;position:absolute;inset:0}#controls button{pointer-events:auto}#controls.in-lesson #time,#controls.in-lesson #par,#controls.in-lesson #combo,#controls.no-par #par,#combo.quiet,#controls.in-result #loadbox,#controls.in-panel #left,#controls.in-panel #daily-chip,#controls.in-result #daily-chip,#controls.in-result #left,#controls.in-result #hint,#controls.in-panel #hint,#controls.in-panel #hud,#controls.in-panel #restart,#controls.in-panel #pause,#controls.in-panel #minimap,#controls.in-panel #loadbox{visibility:hidden}.icon-button{top:max(var(--edge), env(safe-area-inset-top));right:max(var(--edge), env(safe-area-inset-right));width:48px;height:48px;padding:12px;position:absolute}#restart{right:calc(max(var(--edge), env(safe-area-inset-right)) + 54px)}#mode{width:56px;height:56px;color:var(--cream);background:#234;padding:0;position:relative}#skip{top:calc(max(var(--edge), env(safe-area-inset-top)) + 54px);display:none}#controls.in-lesson #skip{display:block}#controls.in-lesson.in-result #skip,#controls.in-lesson.in-panel #skip{display:none}#mode b{text-shadow:0 1px 2px #000;font-size:16px;line-height:16px;position:absolute;bottom:1px;right:4px}#mode svg{stroke-width:2.3px;margin:auto}button svg{stroke:currentColor;stroke-width:2.6px;stroke-linecap:round;stroke-linejoin:round;fill:none;width:24px;height:24px;margin:auto}button svg .solid,svg .solid{fill:currentColor;stroke:none}.coin{flex:none;width:18px;height:18px}.coin circle{fill:var(--gold);stroke:#b77a06;stroke-width:1.6px}.coin path{fill:none;stroke:#8a5a04;stroke-width:2.2px;stroke-linecap:round}#hud{top:max(var(--edge), env(safe-area-inset-top));left:max(var(--edge), env(safe-area-inset-left));width:min(214px,100% - 180px);position:absolute}#readout{background:var(--chip);font-variant-numeric:tabular-nums;white-space:nowrap;border-radius:10px;justify-content:space-between;align-items:baseline;gap:10px;height:34px;padding:0 12px;font-size:18px;font-weight:700;line-height:34px;display:flex}#clear{color:var(--cream)}#progress{background:var(--chip);border-radius:5px;height:10px;margin:22px 11px 0 0;position:relative}#progress-fill{background:linear-gradient(90deg, #ffb52e, var(--cream));transform-origin:0;border-radius:5px;transition:transform .18s linear;position:absolute;inset:0;transform:scaleX(0)}.mark{width:22px;height:22px;margin-left:-11px;position:absolute;top:-21px}.mark svg{fill:#172736b3;stroke:#fff;stroke-width:1.4px;stroke-linejoin:round;width:100%;height:100%}.mark.on svg{fill:var(--gold);stroke:#fff;animation:.34s ease-out pop}#sub{justify-content:space-between;align-items:center;gap:8px;margin-top:5px;display:flex}#coins{background:var(--chip);font-variant-numeric:tabular-nums;border-radius:8px;align-items:center;gap:5px;height:24px;padding:0 8px 0 5px;font-size:16px;display:flex}#par{background:var(--chip);font-variant-numeric:tabular-nums;border-radius:6px;align-items:center;gap:3px;padding:2px 6px 2px 4px;font-size:16px;font-weight:700;line-height:20px;display:flex}#par .mark{width:18px;height:18px;margin:0;position:static}#par.late b{opacity:.55;text-decoration:line-through}#par.late .mark svg{fill:none;stroke:#ffffff70}#save-warn{background:#8a1f1fd8;border-radius:8px;width:32px;height:32px;margin-top:5px;padding:5px;display:block}#save-warn svg{stroke:#fff;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;fill:none;width:22px;height:22px}#daily-chip{left:max(var(--edge), env(safe-area-inset-left));top:calc(max(var(--edge), env(safe-area-inset-top)) + 104px);height:48px;color:var(--cream);font-variant-numeric:tabular-nums;background:#2a3f62e8;align-items:center;gap:5px;padding:0 10px;animation:.3s ease-out rise-in;display:flex;position:absolute}#daily-chip svg{flex:none;margin:0}@keyframes rise-in{0%{opacity:0;transform:translate(-12px)}to{opacity:1;transform:none}}@keyframes pop{0%{transform:scale(.4)}60%{transform:scale(1.5)}to{transform:scale(1)}}#minimap{left:max(var(--edge), env(safe-area-inset-left));bottom:max(var(--edge), env(safe-area-inset-bottom));background:#15253a9c;border-radius:12px;width:100px;height:100px;position:absolute}#left{left:calc(max(var(--edge), env(safe-area-inset-left)) + 4px);bottom:calc(max(var(--edge), env(safe-area-inset-bottom)) + 3px);background:var(--chip);text-align:center;font-variant-numeric:tabular-nums;border-radius:6px;min-width:22px;padding:0 4px;font-size:16px;font-weight:800;line-height:20px;position:absolute}#loadbox{left:50%;bottom:max(14px, env(safe-area-inset-bottom));flex-direction:column;align-items:center;gap:6px;width:min(240px,44vw);margin-left:calc(min(240px,44vw)/-2);display:flex;position:absolute}#load{background:var(--chip);border-radius:8px;width:100%;height:16px;padding:3px;box-shadow:0 0 0 1.5px #ffffff30}#load-fill{transform-origin:0;background:#fff;border-radius:5px;height:100%;display:block;transform:scaleX(0)}#load[data-level=mid] #load-fill{background:var(--cream)}#load[data-level=high] #load-fill{background:#ff9d3a}#load[data-level=over] #load-fill{background:#ff5a2a}#load[data-level=over],#load.hold{animation:.32s ease-in-out infinite alternate throb}#load.teach{box-shadow:0 0 0 3px var(--cream);position:relative}#load.teach:before{content:"";border-right:5px solid var(--cream);border-bottom:5px solid var(--cream);filter:drop-shadow(0 1px 1px #0008);width:14px;height:14px;margin-left:-9px;animation:.5s ease-in-out infinite alternate nudge;position:absolute;top:-22px;left:50%;transform:rotate(45deg)}@keyframes nudge{50%{box-shadow:0 0 0 5px var(--gold)}}@keyframes throb{0%{transform:scale(1)}to{transform:scale(1.04,1.26)}}@media (max-width:420px){#loadbox{left:auto;right:max(var(--edge), env(safe-area-inset-right));flex-direction:row-reverse;align-items:center;width:calc(100% - 136px);margin-left:0}#load{flex:1}#combo{min-width:48px;padding:1px 6px 3px}}#combo{background:var(--chip);font-variant-numeric:tabular-nums;border-radius:10px;flex-direction:column;align-items:center;min-width:58px;padding:2px 10px 4px;display:flex}#combo-value{color:var(--gold);font-size:22px;line-height:24px}#combo-bar{background:var(--gold);transform-origin:0;border-radius:2px;width:100%;height:3px;display:block}#popups{position:absolute;inset:0;overflow:hidden}.pop{opacity:0;font-variant-numeric:tabular-nums;color:#fff;text-shadow:0 0 3px #000c,0 2px #000a,0 0 10px #0006;font-size:28px;font-weight:800;position:absolute;top:0;left:0}.pop.gold{color:var(--gold)}#hint{width:96px;height:96px;margin-left:-48px;position:absolute;bottom:26%;left:22%}#hint.right{left:78%}#hint .ring{background:#ffffff8c;border:5px solid #1668ff;border-radius:50%;animation:.7s ease-in-out infinite alternate pulse;position:absolute;inset:0}#hint-arrow{color:#1668ff;position:absolute;inset:22px}#hint-arrow svg{stroke:currentColor;stroke-width:3.4px;stroke-linecap:round;stroke-linejoin:round;fill:none;width:100%;height:100%;transform:scaleX(-1)}#hint-arrow.mirror svg{transform:none}@keyframes pulse{0%{transform:scale(.82)}to{transform:scale(1.08)}}#hint-hand{filter:drop-shadow(0 2px 3px #0007);width:66px;height:66px;margin:-4px 0 0 -32px;position:absolute;top:50%;left:50%}#hint-hand svg{fill:#fff;stroke:#172736;stroke-width:1.1px;stroke-linejoin:round;width:100%;height:100%}#hint[data-pose=press] #hint-hand{animation:1.5s ease-in-out infinite tap}#hint[data-pose=press] .ring{animation:1.5s ease-in-out infinite hold-ring}#hint[data-pose=press] #hint-arrow{animation:1.5s ease-in-out infinite hold-arrow}#hint[data-pose=hold] .ring{background:#1668ff;animation:none;transform:scale(.9)}#hint[data-pose=hold] #hint-arrow{color:#fff}#hint[data-pose=release] .ring{background:#ffffff40;border-style:dashed;animation:none}#hint[data-pose=release] #hint-hand{animation:.85s ease-out infinite lift}@keyframes tap{0%,to{transform:translateY(16px)scale(1.06)}18%,78%{transform:none}}@keyframes hold-ring{0%,14%,86%,to{background:#ffffff8c;transform:none}24%,76%{background:#1668ff;transform:scale(.9)}}@keyframes hold-arrow{0%,14%,86%,to{color:#1668ff}24%,76%{color:#fff}}@keyframes lift{0%{opacity:1;transform:none}to{opacity:0;transform:translateY(34px)scale(1.08)}}#hint-key{filter:drop-shadow(0 3px #17273699);width:132px;height:88px;margin:-44px 0 0 -66px;display:none;position:absolute;top:50%;left:50%}#hint-key svg{width:100%;height:100%;display:block}#hint-key.mirror svg{transform:scaleX(-1)}#hint-key rect,#how rect{stroke-width:2px}#hint-key path,#how .press path{fill:none;stroke-width:4.5px;stroke-linecap:round;stroke-linejoin:round}#hint-key .dim rect,#how .dim rect{fill:#ffffffa8;stroke:#17273680}#hint-key .dim path,#how .dim path{stroke:#17273680;stroke-width:3px}#hint-key .lit rect{fill:#fff;stroke:#172736}#hint-key .lit path{stroke:#1668ff}#hint.keys .ring,#hint.keys #hint-arrow,#hint.keys #hint-hand{display:none}#hint.keys #hint-key{display:block}#hint[data-pose=press] #hint-key .lit{animation:1.5s ease-in-out infinite key-tap}#hint[data-pose=press] #hint-key .lit rect{animation:1.5s ease-in-out infinite key-fill}#hint[data-pose=press] #hint-key .lit path{animation:1.5s ease-in-out infinite key-mark}#hint[data-pose=hold] #hint-key .lit{transform:translateY(3px)}#hint[data-pose=hold] #hint-key .lit rect{fill:#1668ff}#hint[data-pose=hold] #hint-key .lit path{stroke:#fff}#hint[data-pose=release] #hint-key .lit{animation:.85s ease-out infinite key-lift}#hint[data-pose=release] #hint-key .lit rect{fill:#ffffffa6;stroke-dasharray:9 7}@keyframes key-tap{0%,to{transform:none}18%,78%{transform:translateY(3px)}}@keyframes key-fill{0%,14%,86%,to{fill:#fff}24%,76%{fill:#1668ff}}@keyframes key-mark{0%,14%,86%,to{stroke:#1668ff}24%,76%{stroke:#fff}}@keyframes key-lift{0%{opacity:1;transform:translateY(3px)}to{opacity:.25;transform:translateY(-10px)}}.panel{pointer-events:auto;background:#101d2ef0;border-radius:18px;position:absolute;box-shadow:0 10px 30px #0006}.panel button{position:relative}.primary{background:var(--cream);color:var(--ink)}.primary:active{background:#e8c86a}.corner{background:#ffffff14;top:8px;right:8px;position:absolute!important}#map-garage{right:62px}#result{flex-direction:column;align-items:center;gap:10px;width:min(320px,100% - 24px);padding:14px 16px 16px;animation:.32s ease-out rise;display:flex;top:50%;left:50%;transform:translate(-50%,-50%)}@keyframes rise{0%{opacity:0;transform:translate(-50%,-38%)}to{opacity:1;transform:translate(-50%,-50%)}}#result-stars{gap:6px;display:flex}#result-stars svg{fill:#ffffff1e;stroke:#fff5;stroke-width:1px;stroke-linejoin:round;width:58px;height:58px}#result-stars svg.on{fill:var(--gold);stroke:#fff;animation:.42s ease-out backwards pop}#result-stars svg:first-child.on{animation-delay:.2s}#result-stars svg:nth-child(2).on{animation-delay:.42s}#result-stars svg:nth-child(3).on{animation-delay:.64s}#result-numbers{font-variant-numeric:tabular-nums;flex-wrap:wrap;justify-content:center;align-items:center;gap:4px 14px;font-size:24px;font-weight:700;display:flex}#result-town{opacity:.85;align-items:center;gap:4px;font-size:20px;display:flex}#result-town svg{width:22px;height:22px}#result-par{opacity:.75;align-items:center;gap:3px;font-size:16px;display:flex}#result-par svg{fill:none;stroke:#fff;stroke-width:1.6px;stroke-linejoin:round;width:18px;height:18px}#result-par.met{opacity:1;color:var(--gold)}#result-par.met svg{fill:var(--gold);stroke:none}#result-streak{color:#ffa45c;align-items:center;gap:3px;font-size:18px;display:flex}#result-streak svg{width:20px;height:20px}#result-best{opacity:.66;font-size:16px}#result-best.new{opacity:1;color:var(--gold)}#result-best svg{width:24px;height:24px}#result-coins{color:var(--cream);font-variant-numeric:tabular-nums;align-items:center;gap:6px;font-size:22px;font-weight:800;display:flex}#result-coins .coin{width:24px;height:24px}#result-goal{font-variant-numeric:tabular-nums;align-items:center;gap:8px;width:100%;font-size:16px;font-weight:700;display:flex}#result-goal[hidden]{display:none}#goal-icon svg{width:30px;height:24px;fill:var(--cream);display:block}#goal-bar{background:#ffffff24;border-radius:6px;flex:1;height:12px;overflow:hidden}#goal-bar i{background:var(--gold);transform-origin:0;height:100%;display:block;transform:scaleX(0)}#goal-price{opacity:.85;align-items:center;gap:3px;display:flex}#goal-price .coin{width:18px;height:18px}#result-goal.ready #goal-price{opacity:1;color:var(--gold)}#result-garage.ready{box-shadow:0 0 0 2px var(--gold);animation:1.4s ease-in-out .8s infinite nudge}#result-buttons{grid-template-columns:1.7fr 1fr 1fr 1fr;gap:8px;width:100%;display:grid}#result-buttons button{background:#234;height:52px}#result-buttons .primary{background:var(--cream)}#garage{left:50%;bottom:max(10px, env(safe-area-inset-bottom));grid-template-columns:1fr 1fr;align-items:center;gap:6px 14px;width:min(520px,100% - 20px);padding:10px 62px 10px 10px;display:grid;transform:translate(-50%)}.shelf{justify-content:space-between;align-items:center;gap:4px;display:flex}.shelf button{background:#234}.shelf-icon{flex:none}.shelf-icon svg{stroke:#fff;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;fill:none;width:22px;height:22px}.dots{flex-wrap:wrap;justify-content:center;gap:5px;display:flex}.dots i{background:0 0;border-radius:50%;width:10px;height:10px;box-shadow:inset 0 0 0 1.5px #ffffff80}.dots i.owned{box-shadow:none;background:#ffffffc0}.dots i.on{background:var(--gold);box-shadow:0 0 0 2px #ffc62e55}#bars{gap:3px;display:grid}.bar{align-items:center;gap:7px;display:flex}.bar svg{stroke:#fff;stroke-width:2.2px;stroke-linecap:round;stroke-linejoin:round;fill:none;flex:none;width:18px;height:18px}.bar span{background:#ffffff20;border-radius:4px;flex:1;height:8px;position:relative;overflow:hidden}.bar u{transform-origin:0;background:#7fc4ff;border-radius:4px;position:absolute;inset:0}.bar i{background:var(--cream);transform-origin:0;border-radius:4px;height:100%;transition:transform .2s ease-out;display:block;position:relative}#garage-foot{align-items:center;gap:10px;display:flex}#wallet{font-variant-numeric:tabular-nums;white-space:nowrap;align-items:center;gap:5px;font-size:16px;font-weight:700;display:flex}#garage-buy{font-variant-numeric:tabular-nums;flex:1;justify-content:center;align-items:center;gap:5px;padding:0 10px;display:flex}#garage-buy svg{margin:0}#garage-buy:disabled{opacity:1;color:#ffffffc8;background:#2a3848}#garage-buy:disabled .coin{opacity:.7}#map{inset:max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));flex-direction:column;gap:8px;max-width:620px;height:-moz-fit-content;height:fit-content;max-height:min(480px,100% - 20px);margin:auto;padding:12px;display:flex}#map-total{font-variant-numeric:tabular-nums;align-items:center;gap:16px;height:40px;padding-left:4px;font-size:17px;font-weight:700;display:flex}#map-total span{align-items:center;gap:6px;display:flex}#map-total span svg:not(.coin){width:20px;height:20px;fill:var(--gold);stroke:none}#map-grid{flex:1;grid-template-columns:repeat(auto-fill,minmax(70px,1fr));grid-auto-rows:62px;gap:7px;min-height:0;display:grid;overflow-y:auto}.tile{font-variant-numeric:tabular-nums;background:#1f3146;flex-direction:column;justify-content:center;align-items:center;gap:1px;min-width:0;font-size:19px;display:flex}.tile.current{box-shadow:inset 0 0 0 2.5px var(--cream)}.tile.daily{background:#2a3f62;flex-direction:row;grid-column:span 3;gap:7px;padding:0 6px}.tile.lesson{background:#2a3f62}.tile.lesson svg{fill:#fff;stroke:none;width:30px;height:30px}.prize{color:var(--cream);align-items:center;gap:3px;font-size:16px;display:flex}.done{color:#8fe3a3}.done svg{width:24px;height:24px}.tile.daily b{font-size:18px}.tile.daily svg{margin:0}.tile-stars{gap:1px;display:flex}.tile-stars i{width:16px;height:16px}.tile-stars svg{fill:#ffffff20;stroke:none;width:16px;height:16px}.tile-stars i.on svg{fill:var(--gold)}.streak{color:#ffa45c;align-items:center;gap:2px;font-size:16px;display:flex}.streak svg{width:18px;height:18px}dialog{color:#f3f6fa;background:#101d2e;border:0;border-radius:18px;width:min(356px,100% - 32px);padding:16px}dialog[open]{flex-wrap:wrap;gap:10px;display:flex}dialog::backdrop{background:#06101c80}#resume{flex:1;height:56px}#quality,#menu-map,#menu-garage,.toggle{background:#234;width:56px;height:56px}.toggle svg{stroke-width:1.9px;width:26px;height:26px}.toggle .off{display:none}.toggle[aria-pressed=false] svg{opacity:.6}.toggle[aria-pressed=false] .off{stroke-width:2.6px;display:block}@media (max-width:400px){dialog[open]{justify-content:space-between;gap:6px}#resume{flex-basis:100%}}#how{color:#cdd7e3;flex-basis:100%;justify-content:space-around;align-items:center;min-height:48px;display:flex}#how .step{align-items:center;gap:8px;display:flex}#how svg{stroke:currentColor;stroke-width:2.2px;stroke-linecap:round;stroke-linejoin:round;fill:none;width:30px;height:30px;display:block}#how svg .solid{fill:currentColor;stroke:none}#how .press{display:none}#how .press svg{width:96px;height:64px}#how .press .lit rect{fill:#fff;stroke:#fff}#how .press .lit path{stroke:#1668ff}#how .press .dim rect{fill:#ffffff30;stroke:#ffffff60}#how .press .dim path{stroke:#ffffff50}#how .held .press .lit rect{fill:#1668ff;stroke:#1668ff}#how .held .press .lit path{stroke:#fff}#how .tap svg{fill:#fff;stroke:#172736;stroke-width:1.1px}#how .held .tap{background:#1668ff;border-radius:50%;padding:3px}#how .held i{border-top:4px dotted;width:22px;height:0}#how.keys .press{display:block}#how.keys .tap{display:none}#quality svg{stroke-width:1.6px;width:28px;height:28px}#quality[aria-pressed=false] svg{stroke-width:3.2px;opacity:.6}#failure{background:#142332;justify-content:center;align-items:center;display:flex;position:absolute;inset:0}@media (max-height:420px){:root{--edge:8px}#hud{width:190px}#minimap{width:76px;height:76px}#hint{width:76px;height:76px;margin-left:-38px;bottom:12%}#hint-arrow{inset:17px}#hint-key{width:104px;height:70px;margin:-35px 0 0 -52px}#hint.keys{bottom:30%;left:max(22%,150px)}#hint.keys.right{left:min(78%,100% - 150px)}#result{flex-flow:wrap;justify-content:center;gap:6px 14px;width:min(580px,100% - 20px);padding:10px 12px}#result-stars svg{width:44px;height:44px}#result-buttons button{height:48px}#garage{gap:2px 12px;padding:6px 60px 6px 8px}#map-grid{grid-template-columns:repeat(auto-fill,minmax(62px,1fr));grid-auto-rows:50px;gap:5px}#map{gap:4px;padding:8px}#map-total{height:46px}.tile.daily{gap:5px}.tile.daily b{font-size:16px}#daily-chip{top:calc(max(var(--edge), env(safe-area-inset-top)) + 98px)}}@media (min-width:1600px) and (min-height:850px){#hud,#loadbox,#minimap,#left,.icon-button,#hint,#daily-chip,.panel,dialog{zoom:1.4}}@media (max-width:420px){#minimap{width:66px;height:66px}#garage{grid-template-columns:1fr;padding:10px}.corner{top:4px;right:4px}.shelf:first-of-type{padding-right:52px}#map-grid{grid-template-columns:repeat(4,1fr)}}
