:root{--paper:#faf7f0;--ink:#3a4240;--muted:#8b928a;--coral:#db827e;--coral-dark:#bd6565;--line:#e8e5db;--mint:#689c8f;--shadow:0 16px 50px #283b3522;font-family:'Hiragino Kaku Gothic ProN','Yu Gothic',Meiryo,system-ui,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,a,input{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit;border:0;background:none}button:disabled{cursor:default}button,a{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,canvas:focus-visible{outline:3px solid #d77e7b;outline-offset:4px}svg{width:24px;height:24px;flex-shrink:0}a{color:inherit;text-decoration:none}.svg-defs{position:absolute;width:0;height:0;overflow:hidden}[hidden]{display:none!important}.app{max-width:1800px;height:100dvh;min-height:650px;margin:0 auto;padding:0 34px;display:flex;flex-direction:column}.topbar{height:95px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:15px}.profile{display:flex;align-items:center;text-align:left;gap:13px;padding:0}.avatar{width:54px;height:54px;border-radius:18px;position:relative;display:block;overflow:hidden;border:3px solid white;box-shadow:0 2px 9px #80544820;background:#f7dfd5}.avatar img{position:absolute;width:200px;max-width:none;height:200px;left:-13px;top:-22px}.profile-text{display:flex;flex-direction:column;gap:4px}.tiny{font-size:9px;letter-spacing:1.7px;color:var(--muted);font-weight:700}.profile strong{font-size:14px;letter-spacing:1px}.edit-icon{font-size:15px;font-weight:400;color:var(--coral);margin-left:10px}.brand{display:flex;align-items:center;gap:10px;margin-left:25px}.brand>svg{color:var(--coral);width:26px;height:32px}.brand>span{font-size:25px;font-weight:850;letter-spacing:-1.5px}.brand em{font-style:italic;color:var(--coral)}.brand small{display:block;font-size:7px;letter-spacing:2.1px;text-align:center;margin-top:3px;color:#8f9991;font-weight:600}.top-actions{display:flex;align-items:center;gap:11px}.wallet{display:flex;align-items:center;gap:8px;background:#f3eddd;border:1px solid #eae2ca;border-radius:24px;min-height:39px;padding:0 15px}.wallet>svg{width:23px;height:23px}.wallet strong{font-variant-numeric:tabular-nums;font-size:17px;min-width:19px}.wallet>span{font-size:9px;color:#a79871;letter-spacing:1px;margin-left:3px}.icon-btn{position:relative;border-radius:50%;width:37px;height:37px;display:grid;place-items:center;color:#7b857f;border:1px solid #e4e3d9}.icon-btn:hover,.nav-tab:hover{background:#f1ece2}.icon-btn svg{width:17px;height:17px}.help-btn{font-size:17px;font-weight:600}.mute-line{position:absolute;width:22px;height:2px;background:#7b857f;transform:rotate(-45deg);box-shadow:0 1px 0 var(--paper)}.icon-btn[aria-pressed=true] .mute-line{display:none}.main{flex:1;display:flex;flex-direction:column;min-height:0}.above-stage{height:61px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between}.above-stage nav{height:100%;display:flex;gap:26px;align-items:center}.nav-tab{height:38px;display:flex;align-items:center;gap:7px;position:relative;font-size:12px;font-weight:700;padding:0 5px;border-radius:5px}.nav-tab svg{width:17px;height:17px}.nav-tab.active{color:var(--coral-dark)}.nav-tab.active:after{content:'';position:absolute;bottom:-2px;height:2px;width:25px;left:calc(50% - 12px);background:var(--coral);border-radius:2px}.small-dot{width:4px;height:4px;background:var(--coral);border-radius:50%;align-self:flex-start;margin-top:8px}.edition{font-size:8px;letter-spacing:1.6px;color:#9b9e8f;display:flex;align-items:center;gap:8px}.edition>span{width:5px;height:5px;background:#96b39f;border-radius:50%}.edition b{font-size:9px;letter-spacing:0;font-weight:500;color:#a5a798;background:#eeeee4;padding:3px 7px;border-radius:4px;margin-left:5px}.stage{isolation:isolate;position:relative;flex:1;min-height:350px;overflow:hidden;border-radius:21px;background:#bbdedd;box-shadow:0 4px 14px #788f7212;container-type:size}#gameCanvas{width:100%;height:100%;display:block;outline:none;touch-action:none}.scene-grain{position:absolute;inset:0;pointer-events:none;opacity:.045;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.65' filter='url(%23n)'/%3E%3C/svg%3E");z-index:2}
.title-backdrop{position:absolute;inset:0;z-index:1;background:url("assets/title-bg.png?v=0.31.1") center center/cover no-repeat}
.title-backdrop:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(10,17,42,.74) 0%,rgba(10,17,42,.58) 30%,rgba(10,17,42,.24) 56%,rgba(10,17,42,.08) 100%)}
.stage.title-screen .home-overlay{max-width:min(45%,560px);padding:30px 24px 26px 28px;border-radius:26px;background:linear-gradient(90deg,rgba(10,16,39,.38) 0%,rgba(10,16,39,.22) 62%,rgba(10,16,39,0) 100%);backdrop-filter:blur(2px)}
.stage.title-screen .home-overlay,.stage.title-screen .home-copy,.stage.title-screen .home-overlay .eyebrow,.stage.title-screen .home-note{color:#f1ede4}.stage.title-screen .home-copy>span{color:#d7dce8}.stage.title-screen .home-overlay h1{color:#f7f8f2;text-shadow:0 14px 28px rgba(5,10,29,.34)}.stage.title-screen .home-overlay h1 em{color:#f0b7c4}.stage.title-screen .home-overlay .eyebrow{color:#cfd4df}.stage.title-screen .home-note{color:#d2d7df}.stage.title-screen .stage-wallet{box-shadow:0 6px 18px rgba(8,12,30,.18)}.weather-tag{position:absolute;top:24px;display:flex;align-items:center;font-size:9px;letter-spacing:1.2px;font-weight:700;color:#526f68;gap:8px;right:28px;font-weight:500;font-size:10px;letter-spacing:.5px}.weather-tag>span{font-size:19px;color:#bb9c68}.weather-tag i{height:10px;width:1px;background:#7a93845c}.home-overlay{position:absolute;left:5.5%;top:18%;z-index:3;max-width:min(42%,520px)}.eyebrow{font-size:9px;font-weight:750;letter-spacing:2.2px;color:#8b9f8d;margin:0 0 16px}.home-overlay .eyebrow{color:#668b7c}.home-overlay h1{font-weight:850;font-size:clamp(55px,7.8vw,118px);line-height:.9;letter-spacing:-7px;margin:0 0 25px;color:#3c5850;text-shadow:0 2px 1px #ffffff30}.home-overlay h1 em{font-style:italic;font-weight:750;color:#c97170;position:relative}.title-spark{font-size:40px;font-style:normal;position:absolute;right:-42px;top:17px;color:#d79272;line-height:1}.home-copy{font-size:17px;font-weight:700;line-height:1.9;letter-spacing:1px;margin:0 0 23px}.home-copy>span{font-size:12px;letter-spacing:.5px;font-weight:500;color:#68776a}.primary{display:inline-flex;align-items:center;justify-content:center;gap:22px;min-height:49px;background:var(--coral);color:white;border-radius:11px;padding:12px 26px;font-size:13px;font-weight:700;letter-spacing:.6px;box-shadow:0 4px 0 #b65d5b33;transition:background .18s,transform .18s}.primary:hover{background:var(--coral-dark);transform:translateY(-1px)}.primary svg{width:20px;height:20px}.start-btn{min-width:235px}.home-note{font-size:9px;color:#6e7769;margin-top:15px;letter-spacing:.3px}.little-check{color:#739c86;font-size:11px;margin-right:4px}.title-figure{position:absolute;right:7%;bottom:0;z-index:3;pointer-events:none;display:flex;align-items:flex-end;justify-content:flex-end;width:min(42%,600px);height:min(97%,860px)}.title-figure img{display:block;max-width:100%;max-height:100%;width:auto;height:100%;object-fit:contain;filter:drop-shadow(0 24px 24px rgba(49,63,83,.18))}.rider-label{position:absolute;right:6.3%;bottom:22%;color:#4f655d;display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:13px 17px;border-left:1px solid #8ea69499;background:linear-gradient(90deg,#fff6e45c,transparent)}.rider-label>span{font-size:8px;letter-spacing:2px;color:#7b9384}.rider-label>strong{font-size:12px;font-weight:600}.rider-label>button{font-size:10px;color:#b67168;display:flex;align-items:center;gap:7px;padding:0}.rider-label svg{height:13px;width:13px}.fullscreen-btn{position:absolute;bottom:15px;right:18px;display:grid;place-items:center;width:31px;height:31px;background:#f9f5e673;color:#496459;border-radius:8px;z-index:4}.fullscreen-btn>svg{width:16px;height:16px}kbd{font:500 10px system-ui,sans-serif;display:inline-flex;align-items:center;justify-content:center;border:1px solid #dedfd5;box-shadow:0 2px 0 #dfdfd280;background:#fffdf5;padding:4px 6px;min-width:22px;min-height:24px;border-radius:5px;color:#7c8c80} footer{height:30px;flex-shrink:0;display:flex;justify-content:space-between;align-items:flex-start;color:#aaaf9f;font-size:8px;letter-spacing:.3px}footer>span:last-child{font-size:7px;letter-spacing:1.4px}footer i{font-style:normal;margin:0 5px}.race-hud{position:absolute;inset:0;pointer-events:none;color:white;z-index:3}.race-top{display:flex;align-items:flex-start;gap:22px;position:absolute;top:25px;left:28px;right:28px}.run-wallet{background:#faf9edeb;border-radius:12px;display:flex;align-items:center;gap:8px;padding:12px 16px;color:var(--ink);flex-wrap:wrap;width:136px;box-shadow:0 4px 14px #54746610}.run-wallet svg{width:23px;height:23px}.run-wallet strong{font-size:23px;font-variant-numeric:tabular-nums}.run-wallet small{font-size:8px;flex-basis:100%;color:#929884;letter-spacing:.6px}.progress-block{max-width:355px;margin:7px auto 0;flex:1;color:#526e63}.progress-block>div:first-child{display:flex;justify-content:space-between;gap:15px;align-items:center;font-size:8px;letter-spacing:1px}.progress-block b{font-size:10px;letter-spacing:0;font-variant-numeric:tabular-nums}.progress-track{position:relative;background:#fafbea90;border-radius:20px;height:5px;margin-top:10px}.progress-track>div{height:100%;width:0;background:#d8817e;border-radius:20px}.progress-track>span{position:absolute;right:-5px;top:-11px;font-size:17px;color:#658e79}.hud-btn{pointer-events:auto;width:41px;height:41px;border-radius:12px;display:grid;place-items:center;color:#5c7869;background:#faf9edd9}.hud-btn>svg{width:17px;height:17px}.time-hud{position:absolute;top:120px;left:29px;color:#496b60;display:flex;flex-direction:column;gap:6px}.time-hud>span{font-size:7px;letter-spacing:1.4px;font-weight:600}.time-hud strong{font-size:20px;font-weight:500;font-variant-numeric:tabular-nums}.speedometer{position:absolute;bottom:25px;left:33px;color:#fffdf2;text-shadow:0 1px 6px #253c3440}.speed-label{font-size:8px;letter-spacing:1.8px;color:#fff9ded9}.speedometer>div:nth-child(2){display:flex;align-items:baseline;gap:9px}.speedometer strong{font-size:66px;line-height:1.1;letter-spacing:-4px;font-style:italic;font-weight:700;font-variant-numeric:tabular-nums}.speedometer>div>span{font-size:11px}.speed-bars{display:flex;gap:3px;margin:8px 0 15px}.speed-bars i{width:7px;height:12px;border-radius:1px;background:#fffcdf40;transform:skew(-17deg)}.speed-bars i.on{background:#fffbdb}.speed-bars i.hot{background:#f2aba0}.boost-meter{width:149px;display:flex;flex-direction:column;gap:8px}.boost-meter>span{font-size:8px!important;letter-spacing:1.3px;display:flex;justify-content:space-between}.boost-meter kbd{font-size:6px;min-width:0;min-height:0;padding:2px 4px;background:transparent;color:#fffcf0;border-color:#fff9de70;box-shadow:none}.boost-meter>i{height:3px;display:block;border-radius:10px;background:#faf3d746}.boost-meter b{height:100%;display:block;width:100%;background:#f5c1ac;box-shadow:0 0 8px #f5c1ac80}.mini-map{position:absolute;bottom:46px;right:30px;display:flex;flex-direction:column;align-items:center;gap:5px}.mini-map svg{width:130px;height:117px;filter:drop-shadow(0 3px 2px #34544530)}#mapPath{fill:none;stroke:#fcf8e2a0;stroke-width:7;stroke-linecap:round}#mapDot{fill:#e4867d;stroke:white;stroke-width:2}.mini-map>span{font-size:7px;letter-spacing:1.8px;color:#fbf6dfd1}.ride-message{position:absolute;left:50%;top:21%;transform:translateX(-50%) translateY(-5px);font-size:12px;font-weight:600;background:#fffdf1ec;color:#a67056;border-radius:20px;padding:9px 20px;opacity:0;transition:opacity .2s,transform .2s;white-space:nowrap}.ride-message.show{opacity:1;transform:translateX(-50%) translateY(0)}.countdown{position:absolute;inset:0;display:grid;place-items:center;font-size:110px;font-weight:800;font-style:italic;color:#fffaf0;text-shadow:4px 5px 0 #a5716c70;z-index:4;background:#76928525;pointer-events:none}.stage.running .weather-tag{display:none}.stage:fullscreen{height:100dvh;border-radius:0}.stage:fullscreen .home-overlay h1{font-size:15vh}.touch-controls{position:absolute;left:14px;right:14px;bottom:14px;display:none;justify-content:space-between;z-index:5;pointer-events:none}.touch-controls>div{display:flex;gap:9px}.touch-controls button{pointer-events:auto;width:53px;height:53px;border-radius:14px;background:#fffcf0cb;border:1px solid #fff8e9;box-shadow:0 3px 0 #4e675229;font-size:17px;font-weight:700;color:#637c6c;touch-action:none;user-select:none;-webkit-user-select:none}.touch-controls button.active{background:#dc8d84;color:white;transform:translateY(2px)}.touch-controls .touch-brake{font-size:8px;width:50px}.touch-controls .touch-boost{color:#bc7765;background:#f9cdbad9;width:43px}.touch-controls button[data-control=gas]{font-size:11px}
dialog{border:0;border-radius:23px;padding:32px;background:var(--paper);color:var(--ink);box-shadow:var(--shadow);max-width:calc(100vw - 32px);max-height:calc(100dvh - 40px);overscroll-behavior:contain}dialog::backdrop{background:#273c3896;backdrop-filter:blur(6px)}.dialog-heading{display:flex;justify-content:space-between;gap:30px;align-items:flex-start}.dialog-heading .eyebrow{margin:0 0 9px}.dialog-heading h2,dialog h2{font-size:23px;letter-spacing:.5px;margin:0 0 18px;font-weight:700}.close-btn{font-size:25px;font-weight:300;width:33px;height:33px;border:1px solid #e4e2d5;border-radius:50%;line-height:25px;flex-shrink:0;color:#92988c}.close-btn:hover{background:#eee7de}.closet-dialog{width:940px}.closet-intro{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:23px}.closet-intro p{font-size:12px;line-height:1.8;margin:0}.closet-intro p span{font-size:10px;color:#929787}.outfit-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.outfit-card{border:1px solid #e6e2d6;border-radius:16px;overflow:hidden;background:#fffdf8;padding:12px;position:relative;width:100%;text-align:left;display:flex;flex-direction:column;transition:border-color .15s,box-shadow .15s,transform .15s}.outfit-card:hover:not(:disabled){border-color:#c9d4c5;box-shadow:0 7px 22px #33483d16;transform:translateY(-1px)}.outfit-card:disabled{opacity:.52;cursor:not-allowed}.outfit-card.equipped{border-color:#d9847e;box-shadow:0 0 0 1px #d9847e}.outfit-card.buyable{border-color:#e2b0a9}.outfit-view{height:210px;background:radial-gradient(ellipse at center,#ecddd16b,transparent 70%);display:flex;align-items:center;justify-content:center;position:relative;margin-top:5px}.outfit-card h3{font-size:12px;margin:10px 0 7px;white-space:nowrap}.outfit-card p{font-size:9px;color:#979e91;line-height:1.7;margin:0 0 17px;min-height:30px}.outfit-btn{width:100%;min-height:39px;border-radius:9px;border:1px solid #e4dfd1;background:#f4efe5;font-size:11px;display:flex;justify-content:center;align-items:center;gap:7px;font-weight:600}.outfit-btn>svg{width:19px;height:19px}.outfit-btn.equipped{background:#e5eee5;color:#789879;border-color:#d7e3d4}.outfit-btn.buyable{background:#d98680;color:white;border-color:#d98680}.outfit-btn:disabled{color:#a6a694}.outfit-tag{position:absolute;left:13px;top:12px;z-index:1;color:#91a088;font-size:7px;font-weight:700;letter-spacing:1px}.outfit-card.equipped .outfit-tag{color:#c77770}.closet-foot{font-size:10px;text-align:center;margin:24px 0 0;color:#939884;line-height:1.7}.help-dialog{width:510px}.control-list{margin:8px 0 24px}.control-list>div{display:flex;justify-content:space-between;align-items:center;padding:9px 0;border-bottom:1px solid #e6e5d9;gap:10px}.control-list strong{font-size:11px;font-weight:500}.control-list>div>span{font-size:10px;color:#a5aa9b}.settings{padding:10px 16px;background:#eeeee3;border-radius:13px}.settings label{display:flex;align-items:center;justify-content:space-between;position:relative;padding:10px 0;cursor:pointer;gap:16px}.settings label>span{display:flex;flex-direction:column;gap:5px}.settings strong{font-size:12px;font-weight:600}.settings small{font-size:9px;color:#959c89}.settings input{opacity:0;position:absolute;right:0;width:39px;height:25px;cursor:pointer}.settings i{display:block;flex-shrink:0;width:37px;height:22px;border-radius:20px;background:#cbcdbf;pointer-events:none;position:relative}.settings i:after{content:'';display:block;background:white;width:16px;height:16px;position:absolute;left:3px;top:3px;border-radius:50%;transition:transform .2s}.settings input:checked+i{background:#91b29a}.settings input:checked+i:after{transform:translateX(15px)}.settings input:focus-visible+i{outline:2px solid #d98680;outline-offset:3px}.help-note{font-size:10px;color:#909888;line-height:1.9;margin:19px 0}.wide{width:100%}.small-dialog,.result-dialog{text-align:center;width:430px;padding:39px}.small-dialog .eyebrow{margin-bottom:16px}.small-dialog>p:not(.eyebrow){font-size:12px;color:#929987;margin-bottom:27px}.secondary{display:flex;align-items:center;justify-content:center;gap:10px;border:1px solid #dadfce;border-radius:10px;min-height:46px;font-size:12px;margin-top:11px;color:#768975;background:#f3f3e8}.secondary:hover{background:#e9eddf}.text-btn{font-size:10px;color:#96a18c;margin:19px auto 0;padding:7px;text-decoration:underline;text-underline-offset:4px}.result-dialog{width:480px}.result-medal{width:67px;height:67px;border:1px solid #e7d8b4;background:#f1e9d2;border-radius:50%;display:grid;place-items:center;margin:0 auto 23px;color:#b49b61;box-shadow:0 0 0 7px #f0ead954}.result-medal svg{height:26px;width:26px}.result-dialog .eyebrow{font-size:8px;margin-bottom:12px;color:#c08b74}.result-dialog h2{font-size:22px;margin-bottom:10px}.result-copy{font-size:11px;color:#9a9f8c}.result-stats{display:grid;grid-template-columns:1fr 1fr;margin:28px 0 15px;padding:22px 0;border-top:1px solid #e5e4d5;border-bottom:1px solid #e5e4d5}.result-stats>div{display:flex;flex-direction:column;gap:10px}.result-stats>div+div{border-left:1px solid #e5e4d5}.result-stats span{font-size:8px;letter-spacing:1.2px;color:#989f8b}.result-stats strong{font-size:28px;font-weight:600;font-variant-numeric:tabular-nums}.coral{color:#d8817b}.result-stats small{font-size:8px;color:#a9a487;min-height:12px}.new-outfit-note{font-size:10px;color:#929e85;line-height:1.8;min-height:24px}.toast{position:fixed;left:50%;bottom:33px;transform:translate(-50%,10px);opacity:0;pointer-events:none;background:#3c5149ef;color:#fff9e8;padding:13px 23px;border-radius:12px;font-size:12px;max-width:90vw;z-index:20;text-align:center;transition:transform .2s,opacity .2s}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(min-width:1500px){.home-overlay{top:19%}.home-overlay h1{font-size:125px}.home-copy{margin-bottom:29px}.rider-label{right:9%;bottom:25%}}
@media(max-height:790px) and (min-width:761px){.app{min-height:590px;padding:0 27px}.topbar{height:78px}.above-stage{height:53px}.home-overlay{top:17%}.home-overlay h1{font-size:clamp(60px,6.5vw,94px);margin-bottom:16px}.home-overlay .eyebrow{margin-bottom:13px;font-size:8px}.home-copy{font-size:15px;margin-bottom:17px}.home-copy>span{font-size:10px}.home-note{font-size:8px;margin-top:10px}.start-btn{min-height:44px}.rider-label{bottom:23%}}
@media(max-width:1100px){.app{padding:0 23px}.quick-controls>span:last-of-type{display:none}.rider-label{right:3%;bottom:23%}.rider-label>strong{font-size:10px}.outfit-card{padding:10px}.outfit-view{height:185px}.outfit-card h3{font-size:10px}.outfit-card p{font-size:8px}.closet-dialog{padding:25px}.edition{font-size:7px}.home-overlay h1{font-size:90px}}
@media(max-width:760px){.app{height:auto;min-height:100dvh;padding:0 14px}.topbar{height:77px;gap:8px}.profile-text{display:none}.avatar{width:44px;height:44px;border-radius:14px}.avatar img{width:172px;height:172px;left:-12px;top:-22px}.brand{margin:0;gap:6px}.brand>span{font-size:21px;letter-spacing:-1px}.brand>svg{width:21px;height:27px}.brand small{font-size:5px;letter-spacing:1.3px}.top-actions{gap:6px}.wallet{padding:0 10px;gap:4px;min-height:33px}.wallet strong{font-size:14px}.wallet>svg{width:20px;height:20px}.wallet>span{display:none}.icon-btn{width:30px;height:30px}.help-btn{display:none}.above-stage{height:52px}.above-stage nav{gap:20px}.nav-tab{font-size:11px}.edition{font-size:0;gap:0}.edition>span{display:none}.edition b{font-size:8px}.stage{flex:none;height:calc(100dvh - 237px);min-height:435px;border-radius:17px}.weather-tag{top:21px;right:16px;font-size:8px}.weather-tag i{display:none}.weather-tag>span{font-size:16px}.home-overlay{left:7%;top:18%}.home-overlay .eyebrow{font-size:7px;letter-spacing:1.5px;margin-bottom:17px}.home-overlay h1{font-size:77px;letter-spacing:-5px;margin-bottom:20px}.title-spark{font-size:26px;right:-27px;top:13px}.home-copy{font-size:12px;line-height:1.9;margin-bottom:21px;letter-spacing:.5px}.home-copy>span{font-size:9px}.start-btn{min-width:175px;min-height:43px;font-size:11px;padding:10px 18px;gap:14px}.home-note{font-size:7px;max-width:165px;line-height:1.8}.title-figure{right:3%;width:min(52%,280px);height:min(83%,560px)}.rider-label{display:none}.course-summary{gap:10px}.quick-controls>button{font-size:8px;padding:0 0 0 10px;white-space:nowrap}footer{font-size:7px;height:32px;padding-top:3px}footer>span:last-child{font-size:5px;letter-spacing:.7px}.race-top{left:16px;right:16px;top:18px;gap:15px}.run-wallet{width:80px;padding:8px 10px;gap:5px;border-radius:10px}.run-wallet strong{font-size:20px}.run-wallet>svg{width:19px;height:19px}.run-wallet small{font-size:6px;line-height:1.4;letter-spacing:0}.progress-block{margin-top:4px}.progress-block>div:first-child{flex-direction:column;align-items:flex-start;gap:5px;font-size:6px;letter-spacing:.5px}.progress-block b{font-size:8px}.hud-btn{width:33px;height:33px;border-radius:9px}.time-hud{left:19px;top:101px}.time-hud strong{font-size:15px}.time-hud>span{font-size:6px}.speedometer{left:20px;bottom:87px}.speedometer strong{font-size:45px}.speed-label{font-size:6px}.speedometer>div>span{font-size:8px}.speed-bars{gap:2px;margin:6px 0 11px}.speed-bars i{width:5px;height:9px}.boost-meter{width:110px}.boost-meter>span{font-size:6px!important}.boost-meter kbd{font-size:5px}.mini-map{right:16px;bottom:99px}.mini-map svg{width:89px;height:80px}.mini-map>span{font-size:5px}.fullscreen-btn{bottom:78px;right:13px;width:25px;height:25px}.ride-message{top:28%;font-size:10px;max-width:95%;white-space:normal;text-align:center}.touch-controls{display:flex}.closet-dialog{padding:22px;max-width:calc(100vw - 24px)}.dialog-heading h2{font-size:18px;margin-bottom:15px}.dialog-heading .eyebrow{font-size:7px;letter-spacing:1.6px}.close-btn{width:28px;height:28px;font-size:21px}.closet-intro{gap:10px;margin-bottom:18px}.closet-intro p{font-size:9px}.closet-intro p span{font-size:8px}.outfit-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.outfit-view{height:180px}.outfit-card h3{font-size:10px}.outfit-card p{font-size:8px;min-height:0;margin-bottom:12px}.outfit-btn{font-size:10px}.closet-foot{font-size:8px}.help-dialog{padding:25px}.help-note{font-size:9px}.control-list kbd{font-size:9px;padding:3px 4px;min-width:20px}.control-list strong{font-size:10px}.settings small{font-size:8px}.settings strong{font-size:11px}.small-dialog,.result-dialog{padding:30px 25px}.result-dialog h2{font-size:19px}.result-stats strong{font-size:24px}.stage:fullscreen .touch-controls{bottom:25px}.stage:fullscreen .home-overlay{top:20%}}
@media(pointer:coarse){.touch-controls{display:flex}.speedometer{bottom:88px}.mini-map{bottom:90px}.fullscreen-btn{bottom:80px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.app:fullscreen{max-width:none;background:var(--paper);width:100%;height:100dvh}
.posture-hud{position:absolute;left:29px;top:184px;display:flex;align-items:center;gap:8px;flex-wrap:wrap;max-width:155px;color:#496b60;padding:10px 12px;border:1px solid #f8f4df85;background:#f8f7e6b8;border-radius:11px;pointer-events:none}
.posture-hud>span{font-size:6px;letter-spacing:1px;font-weight:600}
.posture-hud strong{font-size:13px;font-weight:600}
.posture-hud small{flex-basis:100%;font-size:8px;color:#748979}
@media(max-width:760px){.posture-hud{left:18px;top:148px;padding:7px 9px;gap:5px;max-width:118px}.posture-hud>span{font-size:5px}.posture-hud strong{font-size:11px}.posture-hud small{font-size:7px}.mini-map{bottom:141px}}
@media(pointer:coarse){.mini-map{bottom:141px}}
.rider-label>small{font-size:9px;color:#7a8e7f;line-height:1.5}
.vehicle-preview{display:block;width:146px;height:auto;max-width:100%;filter:drop-shadow(0 7px 3px #50694710)}
.garage-tabs{display:flex;gap:8px;border-bottom:1px solid var(--line);padding-bottom:12px;margin-bottom:17px}
.garage-tabs button{display:flex;align-items:center;gap:10px;padding:9px 18px;border-radius:9px;font-size:12px;color:#8f9889;border:1px solid transparent}
.garage-tabs button span{font-size:7px;letter-spacing:1px;font-weight:600}
.garage-tabs button[aria-selected=true]{color:#b96f68;background:#f2e6de;border-color:#e5d3c8}
.outfit-grid.bike-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:1100px){.vehicle-preview{width:132px}}
@media(max-width:760px){.garage-tabs{gap:5px;padding-bottom:10px;margin-bottom:13px}.garage-tabs button{padding:8px 14px;font-size:11px;gap:7px}.outfit-grid.bike-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.vehicle-preview{width:132px}}

.boost-meter>span{display:flex;align-items:center;gap:7px}
.boost-meter #boostState{font-size:12px;letter-spacing:.4px;line-height:1;font-style:normal;margin-left:auto;color:#e4e9d9}
.boost-meter small{display:block;font-size:8px;margin-top:7px;line-height:1.5;letter-spacing:0;white-space:normal;color:#f3e5c4}
.boost-meter.is-on #boostState{color:#ffc276}
.hole-warning{position:absolute;top:102px;left:50%;transform:translateX(-50%);padding:10px 16px;border:1px solid #e7c994;background:#fff2dbe8;color:#735735;border-radius:12px;display:flex;gap:7px;align-items:center;flex-direction:column;box-shadow:0 4px 15px #314c3720;pointer-events:none}
.hole-warning strong{font-size:13px;font-variant-numeric:tabular-nums}
.hole-warning>span{font-size:9px}
.hole-warning kbd{font-size:8px;color:inherit;border-color:#ddc9a6;background:#fff9ee}
.hole-warning.jump-now{background:#f6d393ef;border-color:#dc9f54}
.touch-controls>.touch-actions{position:absolute;right:0;bottom:64px;gap:6px}
.touch-actions button{width:77px;height:37px;font-size:10px;border-radius:10px;touch-action:none}
.touch-actions .touch-boost{width:83px;font-size:10px}
.touch-actions button[aria-pressed=true]{background:#d98680;color:#fffdf5;border-color:#efb4a8}
.touch-controls button[data-control=left],.touch-controls button[data-control=right]{width:44px}
.touch-controls button[data-control=gas]{width:58px;font-size:10px;line-height:1.4;background:#e5efdfeb}
.touch-controls .touch-brake{width:44px;font-size:8px;line-height:1.5}
.touch-controls .touch-jump{width:61px;font-size:9px;line-height:1.5;color:#97633e;background:#f7dfb8eb}
@media(max-width:1250px) and (min-width:761px){.quick-controls>span:nth-child(3),.quick-controls>span:nth-child(4){display:none}}
@media(max-width:760px){.hole-warning{top:85px;left:auto;right:14px;transform:none;padding:8px 11px;gap:5px}.hole-warning strong{font-size:11px}.hole-warning>span{font-size:8px}.boost-meter small{font-size:7px;max-width:116px}.speedometer{bottom:114px}.touch-controls>div{gap:6px}.touch-actions button{height:37px}.posture-hud{max-width:120px}.mini-map{bottom:150px}}
@media(pointer:coarse){.speedometer{bottom:114px}.mini-map{bottom:150px}}
@media(max-width:360px){.touch-controls{left:10px;right:10px}.touch-controls>div{gap:5px}.touch-controls button[data-control]{height:49px}.touch-controls .touch-jump{width:55px;height:49px}.touch-controls>.touch-actions{bottom:60px}.touch-controls button[data-control=gas]{width:54px}}
.life-hud{position:absolute;top:119px;right:29px;width:159px;padding:12px 15px 11px;border:1px solid #fff7e2d9;border-radius:14px;background:#fff8e9e8;box-shadow:0 4px 18px #304a3812;color:#7a7462}
.life-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:9px;letter-spacing:1.8px}.life-heading strong{font-size:11px;letter-spacing:1px;font-variant-numeric:tabular-nums}
.life-hearts{display:flex;gap:8px;margin:5px 0;color:#d8877c;font-size:29px;line-height:1.15}.life-hearts span{transition:color .18s,transform .18s}.life-hearts .empty{color:#d9d7cb;transform:scale(.88)}
.life-hud small{display:block;font-size:8px;line-height:1.5;white-space:nowrap}.life-hud.damaged{border-color:#d49c70;background:#f9e6cceF}.life-hud.damaged small{color:#a5643e;font-weight:700}.life-hud.last-life .life-heading{color:#b96056}
.damage-guide{padding:16px 17px;background:#f3e7d9;border-radius:12px;color:#8f6a54}.damage-guide>strong{font-size:12px}.damage-guide p{font-size:10px;line-height:1.9;margin:9px 0 0}
.life-hud.recovering{border-color:#b0d6b6;background:#edf9e5ef}.life-hud.recovering small{color:#54866c}
.game-over-dialog{border-top:5px solid #d38a7c}.over-heart{color:#d28a7d;font-size:58px;line-height:1;margin:0 auto 18px}.game-over-dialog h2{font-size:35px;font-weight:900;font-style:italic;letter-spacing:1px;color:#72554d}.over-reason{font-size:11px;color:#927265;line-height:1.7}.game-over-dialog .primary>span{font-size:9px;opacity:.8;letter-spacing:1px}
@media(max-width:760px){.life-hud{right:14px;top:147px;width:128px;padding:8px 10px;border-radius:11px}.life-heading{font-size:7px}.life-heading strong{font-size:9px}.life-hearts{font-size:22px;gap:6px;margin:3px 0}.life-hud small{font-size:7px}.ride-message{top:max(224px,41%);max-width:90%;width:max-content;padding:9px 13px}.game-over-dialog h2{font-size:30px}.game-over-dialog .result-stats small{font-size:7px}}

.repair-prompt{position:absolute;top:102px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:10px;padding:11px 16px;border:1px solid #a8d7bb;background:#efffe9ed;color:#466d5f;border-radius:12px;box-shadow:0 4px 15px #314c3720;pointer-events:none}.repair-prompt>svg{width:28px;height:28px;color:#65a98c}.repair-prompt>div{display:flex;flex-direction:column;gap:6px}.repair-prompt strong{font-size:12px;font-variant-numeric:tabular-nums}.repair-prompt span{font-size:10px}.repair-prompt.ready{background:#ccf3d9f5;border-color:#70b392}.repair-prompt.ready span{font-weight:700;color:#34775b}
.repair-guide{display:flex;gap:12px;border-radius:12px;padding:14px;margin-top:16px;background:#edf7eb;color:#53765f}.repair-guide>svg{width:27px;height:27px;flex-shrink:0}.repair-guide strong{font-size:12px}.repair-guide p{font-size:10px;line-height:1.9;margin:7px 0 0}
@media(max-width:760px){.repair-prompt{top:85px;left:auto;right:14px;transform:none;gap:6px;padding:8px 10px}.repair-prompt>svg{width:22px;height:22px}.repair-prompt>div{gap:4px}.repair-prompt strong{font-size:10px}.repair-prompt span{font-size:8px}.repair-guide{padding:12px;gap:8px}.repair-guide strong{font-size:11px}.repair-guide p{font-size:9px}}

/* v8: reserve the upper-left corner for Chappy's permanent game portrait. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.race-top{left:160px}.run-wallet{width:124px}.time-hud{left:166px;top:106px}.posture-hud{left:24px;top:179px;max-width:158px}.posture-hud.wind-drag{background:#fff0d9dd;border-color:#dfbc80}.posture-hud.wind-drag #postureHint{color:#a0723f;font-weight:700}.stage.cutin-active .mini-map{opacity:0}.stage.cutin-active .ride-message{opacity:0}
@container(max-width:699px){.race-top{left:110px;right:14px;top:18px;gap:8px}.run-wallet{width:62px;min-width:62px;padding:7px 8px;gap:4px}.run-wallet strong{font-size:18px}.run-wallet svg{width:16px;height:16px}.run-wallet small{font-size:5px;letter-spacing:0;line-height:1.4}.progress-block{min-width:0}.progress-block>div:first-child{flex-direction:column;align-items:flex-start;gap:5px;font-size:6px}.progress-block b{font-size:8px;white-space:nowrap}.hud-btn{width:30px;min-width:30px;height:32px}.time-hud{left:111px;top:84px;gap:3px}.time-hud>span{font-size:6px}.time-hud strong{font-size:14px}.posture-hud{left:14px;top:127px;max-width:116px;padding:7px 8px;gap:5px}.posture-hud>span{font-size:5px}.posture-hud strong{font-size:11px}.posture-hud small{font-size:7px}.hole-warning,.repair-prompt{top:84px;right:14px;left:auto;transform:none}.repair-prompt{max-width:156px}.repair-prompt strong{font-size:9px}.life-hud{top:153px;right:14px;width:128px}.life-hud small{font-size:7px}}

.avatar img{width:200%;height:200%;left:0;top:0}
@container(max-width:339px){.race-top{left:110px;right:12px;gap:6px}.run-wallet{position:absolute;left:0;top:54px;width:64px}.time-hud{left:184px;top:78px}.hole-warning,.repair-prompt{top:117px;right:12px;max-width:146px}.life-hud{top:174px;right:12px}.repair-prompt{padding:8px}.repair-prompt>svg{width:19px;height:19px}.repair-prompt strong{font-size:9px}}
@container(min-width:700px) and (max-height:439px){.posture-hud{left:200px;top:179px}.speed-label{display:none}}
/* v44: compact top-down route map with rider/event markers. */
.terrain-hud{gap:3px;padding:10px 12px 8px;background:#345c536b;border:1px solid #fff7df42;border-radius:12px;min-width:142px;backdrop-filter:blur(5px)}
.terrain-readout{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;font-size:10px;color:#fff9e6}.terrain-readout strong{font-size:16px;letter-spacing:-.5px;font-variant-numeric:tabular-nums}
.terrain-hud svg{width:142px;height:62px;filter:none;overflow:visible}.terrain-hud #mapPath{fill:none;stroke:#fff2c8;stroke-width:2.35;stroke-linecap:round;stroke-linejoin:round}.terrain-hud #mapDot{fill:#ef9b88;stroke:#fff9e9;stroke-width:1.5}.terrain-hud #mapStartDot{fill:#a6e6c0;stroke:#f4fff8;stroke-width:1}.terrain-hud #mapGoalDot{fill:#ffd994;stroke:#fff8dc;stroke-width:1.2}.terrain-hud #rivalDots circle{filter:drop-shadow(0 1px 1px #00000020)}.terrain-hud .map-ramp{fill:#ffe9a8;stroke:#fff8d8;stroke-width:.9}.terrain-hud .map-repair{fill:#9fdcc8;stroke:#f1fff9;stroke-width:.9}.terrain-hud>span{font-size:7px;line-height:1.3;letter-spacing:.35px;min-height:10px;color:#eef6ee}
.hill-guide{margin-top:15px;border:1px solid #d4dfc9;border-radius:12px;background:#eef2e6;padding:13px 15px}.hill-guide strong{font-size:11px;color:#547464}.hill-guide p{font-size:10px;line-height:1.85;color:#738773;margin:7px 0 0}
@media(min-width:1000px){.outfit-grid:not(.bike-grid){grid-template-columns:repeat(5,minmax(0,1fr))}.closet-dialog{width:1060px}.outfit-card h3{font-size:11px}.outfit-card{padding:10px}}
@container(max-width:699px){.terrain-hud{right:14px;bottom:151px;padding:7px 8px;min-width:104px;gap:2px}.terrain-readout{font-size:8px;gap:9px}.terrain-readout strong{font-size:12px}.terrain-hud svg{width:104px;height:42px}.terrain-hud>span{font-size:6px;min-height:8px}}
@container(max-height:469px){.terrain-hud{padding:6px 8px;min-width:104px;bottom:128px}.terrain-hud svg{width:104px;height:26px}.terrain-readout strong{font-size:11px}.terrain-readout{font-size:8px}.terrain-hud>span{display:none}}
/* v10: weather selection, wet-road status and full-width jump warnings. */

.weather-hud{position:absolute;left:166px;top:151px;display:flex;flex-direction:column;gap:3px;max-width:145px;color:#486a60;background:#f8f5e3d9;border:1px solid #fff8df9c;border-radius:9px;padding:7px 10px}.weather-hud strong{font-size:10px;font-weight:700}.weather-hud small{font-size:7px;line-height:1.4}.weather-hud.wet{background:#e2f0efde;color:#44687b;border-color:#aacbd0}
.hole-warning.cliff-warning{border-color:#deaa72;background:#fff0d9f2;box-shadow:0 2px 16px #724b3730}.hole-warning.cliff-warning strong{color:#a95f42}.hole-warning.narrow-warning{background:#fff4d6e8;border-color:#d9c089}.hole-warning small{font-size:9px;font-weight:700;color:#9f633e}.hole-warning.jump-now{background:#f8cd92f5;outline:2px solid #fff3ca}
.challenge-guide{margin-top:15px;border:1px solid #dbcbaa;background:#f6eedc;border-radius:12px;padding:13px 15px}.challenge-guide strong{font-size:11px;color:#8e654b}.challenge-guide p{font-size:10px;line-height:1.85;color:#877256;margin:7px 0 0}
@media(min-width:1000px){.outfit-grid:not(.bike-grid){grid-template-columns:repeat(4,minmax(0,1fr))}}
@container(max-width:699px){.weather-hud{left:20px;top:auto;bottom:86px;max-width:86px;padding:4px 6px}.weather-hud strong{font-size:9px}.weather-hud small{display:none}.hole-warning.cliff-warning{max-width:175px;padding:7px 9px}.hole-warning.cliff-warning strong{font-size:10px}.hole-warning.cliff-warning>span{font-size:7px}.hole-warning small{font-size:7px}.hole-warning.narrow-warning strong{font-size:10px}}
@container(max-width:339px){.hole-warning.cliff-warning{top:117px;max-width:157px;padding:5px 7px;gap:3px}.hole-warning.cliff-warning strong{font-size:9px}.hole-warning.cliff-warning>span{font-size:6px}.hole-warning small{font-size:6px}}
@container(min-width:700px) and (max-height:439px){.weather-hud{left:166px;top:148px;padding:5px 8px}.weather-hud small{display:none}}
/* v12: share the existing warning slot so oil adds no overlapping HUD. */
.hole-warning.oil-warning{background:#e8eeeef2;border-color:#91b2b9;color:#4f6077}.hole-warning.oil-warning strong{color:#5b5e82}.weather-hud.skidding{background:#f8e6cfe8;border-color:#d5a875;color:#985e3d}

/* v13: the dark rabbit reuses the hazard warning without covering the road. */
.hole-warning.dark-warning{background:#f0e7f7f2;border-color:#ae8ccc;box-shadow:0 2px 16px #63487930}.hole-warning.dark-warning strong{color:#754f94}.hole-warning.dark-warning small{color:#805898}
@container(max-width:699px){.hole-warning.dark-warning{max-width:175px;padding:7px 9px}.hole-warning.dark-warning strong{font-size:10px}.hole-warning.dark-warning>span{font-size:7px}}
@container(max-width:339px){.hole-warning.dark-warning{max-width:157px;padding:5px 7px;gap:3px}.hole-warning.dark-warning strong{font-size:9px}.hole-warning.dark-warning>span{font-size:6px}}

/* v14: the race order stays on the HUD edge, leaving the driving line open. */
.position-hud{position:absolute;left:24px;top:275px;width:148px;padding:10px 12px;background:#faf5e8ed;border:1px solid #fffaf0bd;border-radius:12px;color:#4c685f;font-variant-numeric:tabular-nums;box-shadow:0 4px 18px #31483b14}
.position-main{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #d9dfcf;padding-bottom:5px;gap:8px}.position-main>span{font-size:7px;letter-spacing:1px;font-weight:700}.position-main>strong{font-size:29px;line-height:1;font-style:italic;color:#ba7861}.position-main small{font-size:11px;letter-spacing:0;color:#8a9682;font-style:normal}
.rival-gaps{display:grid;gap:6px;margin-top:9px}.rival-gaps>div{display:flex;gap:5px;align-items:center;font-size:7px;white-space:nowrap}.rival-gaps i{width:5px;height:12px;border-radius:2px}.rival-gaps b{width:6px;font-size:8px}.rival-gaps em{font-style:normal;margin-left:auto;color:#798774;font-size:8px}
.draft-indicator{margin-top:10px;color:#819287;font-size:7px;white-space:nowrap}.draft-indicator>i{display:block;height:3px;border-radius:3px;background:#dce4d8;margin-top:6px;overflow:hidden}.draft-indicator b{display:block;height:100%;width:0;background:#82bcaf}.draft-indicator.active{color:#287f78;font-weight:800;letter-spacing:1px}.draft-indicator.active b{background:#56b8a6}
.rival-guide{margin-top:15px;padding:13px 15px;border:1px solid #bdd3cf;border-radius:12px;background:#edf4ec;color:#526f67}.rival-guide strong{font-size:12px}.rival-guide p{font-size:10px;line-height:1.85;margin-bottom:0}
.result-ranking{list-style:none;margin:22px 0 0;padding:0;display:grid;gap:5px;text-align:left}.result-ranking li{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:8px;background:#eeeee3;color:#718170;font-size:11px}.result-ranking li.is-player{background:#f3ddca;color:#9a6752;outline:1px solid #ddb696;font-weight:800}.result-ranking b{font-size:16px;font-style:italic;width:35px;color:#9d967f}.result-ranking span{border-left:3px solid var(--rider-color);padding-left:8px}.result-ranking time{margin-left:auto;font-size:11px;font-variant-numeric:tabular-nums}.result-dialog .result-stats{margin-top:19px;padding:16px 0}
@container(min-width:700px) and (max-height:570px){.position-hud{left:24px;top:105px;width:120px;padding:8px 10px}.position-main>strong{font-size:25px}.rival-gaps{display:none}.position-main{border:0;padding:0}.draft-indicator{margin-top:5px;font-size:6px}.draft-indicator>i{margin-top:4px}.posture-hud{top:185px}}
@container(max-width:699px){.position-hud{left:14px;top:212px;width:116px;padding:8px 9px}.position-main>span{font-size:6px;letter-spacing:.5px}.position-main>strong{font-size:25px}.position-main small{font-size:9px}.rival-gaps{gap:4px;margin-top:6px}.rival-gaps>div{font-size:6px;gap:4px}.rival-gaps em{font-size:7px}.draft-indicator{font-size:6px;margin-top:6px}.draft-indicator.active{letter-spacing:.5px}.draft-indicator>i{margin-top:4px}}
@container(max-width:699px) and (max-height:589px){.position-hud{top:199px}.rival-gaps{display:none}.position-main{padding:0;border:0}.position-hud{background:#faf5e8e0}.ride-message{top:270px}}
@container(max-width:339px){.position-hud{top:199px;width:111px}.position-main>strong{font-size:23px}}

/* v15: reuse the compact hazard slot for fixed road events. */
.hole-warning.truck-warning{border-color:#d49b78;background:#f8e7d6;color:#884f3d}
.hole-warning.ramp-warning{border-color:#83b8ac;background:#e1f2e8;color:#3b746a}
.road-event-guide{margin:16px 0;padding:16px 18px;border-radius:14px;background:#e7f0e3;color:#4c6257;line-height:1.8;font-size:13px}.road-event-guide strong{font-size:14px}.road-event-guide p{margin:7px 0 0}
.course-select-btn{display:flex;flex-direction:column;gap:5px;align-items:center;flex-shrink:0;border:1px solid #cbd4c4;border-radius:10px;padding:10px 17px;font-size:11px;color:#536d5e;background:#f4f5eb}.course-select-btn span{font-size:7px;letter-spacing:1px;color:#84967e}.course-select-btn:disabled{opacity:.45;cursor:default}.course-dialog{width:min(1180px,94vw);max-width:94vw;max-height:91dvh;border:1px solid #dbe0cf;background:#faf7ef;padding:28px;border-radius:23px;color:#4f6559}.course-intro{font-size:12px;line-height:1.9;color:#83907d;margin:0 0 22px}.course-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px}.course-card{border:1px solid #dbe0d2;border-radius:14px;overflow:hidden;background:#fffdf7;display:flex;flex-direction:column}.course-card.selected{border-color:var(--course-color);box-shadow:0 0 0 2px var(--course-color)}.course-card.locked .course-art{opacity:.62}.course-art{position:relative;aspect-ratio:1.8;overflow:hidden}.course-art canvas{width:100%;height:100%;display:block}.course-art>span{position:absolute;top:10px;left:10px;font-size:21px;font-weight:700;color:white;text-shadow:0 1px 5px #10243777;font-variant-numeric:tabular-nums}.course-art>b{position:absolute;bottom:8px;right:8px;font-size:7px;letter-spacing:1px;color:#fff7e5;background:#243c48aa;border-radius:5px;padding:4px 6px}.course-card-body{padding:13px;display:flex;flex-direction:column;flex:1}.course-card-body>small{font-size:6px;letter-spacing:1.2px;color:#86968a}.course-card h3{font-size:12px;line-height:1.6;min-height:38px;margin:7px 0}.course-card p{font-size:10px;line-height:1.8;color:#7d8b7b;margin:0 0 10px}.course-card .course-hint{font-size:9px;min-height:50px}.course-metrics{display:flex;justify-content:space-between;gap:6px;font-size:9px;color:#ae8869;margin:3px 0 12px}.course-card .course-record{font-size:8px;min-height:29px;margin-top:auto;font-variant-numeric:tabular-nums}.course-card .outfit-btn{font-size:10px;min-height:38px}.course-card .outfit-btn:disabled{opacity:.45;cursor:not-allowed}.course-dialog-foot{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:20px}.course-dialog-foot p{font-size:11px;line-height:1.8;color:#80917e}.course-dialog-foot button{font-size:11px;flex-shrink:0;padding:10px 15px}.world-dark .home-overlay,.world-dark .home-copy,.world-dark .home-overlay .eyebrow,.world-dark .home-note{color:#e9e3d7}.world-dark .home-copy>span,.world-dark .rider-label>small{color:#c7d4df}.world-dark .rider-label{color:#f1ecdf}.world-dark .home-overlay h1{color:#e9f0e8}.world-dark .home-overlay h1 em{color:#e7adbd}.result-dialog #nextCourseBtn{margin-top:12px}.result-dialog #resultClosetBtn{margin-top:8px}
.ending-dialog{padding:0;width:min(1100px,95vw);max-width:95vw;max-height:94dvh;background:#f9f5ec;border:1px solid #a8b2b3;border-radius:22px;overflow:auto;color:#425d58}.ending-scene{position:relative;background:#14243b;aspect-ratio:2;min-height:330px;overflow:hidden}.ending-scene canvas{width:100%;height:100%;display:block;object-fit:cover}.ending-copy{position:absolute;left:6%;top:22%;width:46%;color:#faf0de;pointer-events:none}.ending-copy .eyebrow{font-size:8px;letter-spacing:2.1px;color:#d5c2a4;line-height:1.8;margin-bottom:17px}.ending-copy h2{font-size:clamp(20px,2.6vw,34px);line-height:1.65;letter-spacing:1px;font-weight:500;margin:0 0 16px}.ending-copy>p:not(.eyebrow){font-size:12px;line-height:2.1;color:#dce5de;max-width:350px}.ending-signature{display:block;margin-top:30px;font-family:Georgia,serif;font-size:20px;font-style:italic;color:#e8b7a9;letter-spacing:1px}.ending-skip,.ending-pause{position:absolute;top:15px;right:18px;font-size:10px;color:#eceddf;padding:8px 12px;border:1px solid #d3e3e55a;background:#1c2c43a6;border-radius:7px}.ending-pause{top:auto;bottom:18px;right:18px}.ending-timeline{height:3px;background:#90a4b14a;position:absolute;bottom:0;left:0;right:0}.ending-timeline i{display:block;height:100%;width:0;background:#e7c99d}.ending-details{padding:24px 30px 25px;text-align:center}.ending-details>.eyebrow{font-size:8px;letter-spacing:2px;color:#ae8d70;margin:0 0 8px}.ending-details h3{font-size:18px;font-weight:500;letter-spacing:1px;margin:0 0 19px}.ending-records{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.ending-records li{display:flex;flex-direction:column;gap:7px;border:1px solid #dfdfd0;background:#fffaf0;border-radius:10px;padding:12px 7px}.ending-records b{font-size:10px;letter-spacing:1px;color:#b78b72}.ending-records span{font-size:9px;min-height:26px;line-height:1.5}.ending-records strong{font-size:17px;font-variant-numeric:tabular-nums;color:#5b786d}.ending-records small{font-size:8px;color:#9d9e86}.ending-credit{font-size:9px;letter-spacing:1px;line-height:2;color:#97a18d;margin:19px 0}.ending-actions{display:flex;justify-content:center;gap:12px}.ending-actions button{font-size:12px;min-height:42px;padding:10px 23px}
@media(max-width:1100px){.course-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.course-dialog{padding:23px}.course-card h3{min-height:0}.course-card .course-hint{min-height:33px}}
@media(max-width:760px){.course-dialog{padding:18px;max-width:calc(100vw - 20px);width:calc(100vw - 20px)}.course-dialog .dialog-heading h2{font-size:17px}.course-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.course-card-body{padding:10px}.course-card h3{font-size:11px;min-height:34px}.course-card p{font-size:9px}.course-card .course-hint{font-size:8px;min-height:45px}.course-metrics{font-size:8px}.course-dialog-foot{align-items:flex-start;flex-direction:column}.course-dialog-foot p{font-size:10px;margin:0}.course-intro{font-size:10px}.course-select-btn{padding:8px 10px;font-size:9px;gap:4px}.course-select-btn span{font-size:6px;letter-spacing:.3px}.ending-scene{min-height:300px;aspect-ratio:1.4}.ending-copy{left:6%;top:20%;width:48%}.ending-copy .eyebrow{font-size:6px;letter-spacing:1px;margin-bottom:12px}.ending-copy h2{font-size:19px;line-height:1.65;letter-spacing:0}.ending-copy>p:not(.eyebrow){font-size:10px;line-height:1.9}.ending-signature{font-size:16px;margin-top:18px}.ending-skip,.ending-pause{font-size:8px;right:10px;padding:7px 9px}.ending-details{padding:20px 15px}.ending-details h3{font-size:15px}.ending-records{grid-template-columns:repeat(2,minmax(0,1fr))}.ending-records li:last-child{grid-column:1/-1}.ending-records span{min-height:0}.ending-credit{font-size:8px}.ending-actions{gap:8px}.ending-actions button{font-size:11px;padding:9px 14px}}


/* v31: compact stage-first layout and P-key in-game menu. */
.app{padding:18px 34px}.main{min-height:0}.stage{flex:1;min-height:480px}.stage-wallet{position:absolute;right:28px;top:20px;z-index:4;display:flex;align-items:center;gap:7px;min-height:36px;padding:0 12px;border-radius:20px;background:#faf7e9e8;border:1px solid #fff8e6;color:#6c6b5d;box-shadow:0 3px 12px #334b3e12}.stage-wallet svg{width:21px;height:21px}.stage-wallet strong{font-size:17px;font-variant-numeric:tabular-nums}.stage-wallet span{font-size:7px;letter-spacing:1px;color:#9a9177}.stage.running .stage-wallet{right:auto;left:24px;top:24px}
.game-menu{position:absolute;inset:18px;z-index:12;background:#f7f2e9f5;border:1px solid #fff8e9;border-radius:18px;box-shadow:0 18px 60px #1d30284d;color:#394b45;backdrop-filter:blur(10px)}.game-menu-shell{height:100%;display:flex;flex-direction:column;min-height:0}.game-menu-head{height:64px;flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;padding:10px 16px 8px;border-bottom:1px solid #ddd9cb}.game-menu-brand{display:flex;align-items:center;gap:10px}.game-menu-brand>svg{width:42px;height:42px}.game-menu-brand>div{display:flex;flex-direction:column}.game-menu-brand strong{font-size:17px}.game-menu-brand small{font-size:7px;letter-spacing:2px;color:#9b9380}.game-menu-close{width:36px;height:36px;border-radius:10px;background:#ece6da;font-size:24px;line-height:1;color:#7a7568}.game-menu-tabs{display:flex;gap:6px;padding:9px 14px;border-bottom:1px solid #e5e0d5;flex:0 0 auto}.game-menu-tab{padding:8px 15px;border-radius:9px;font-size:11px;font-weight:700;color:#7b8279}.game-menu-tab[aria-selected=true]{background:#d8827c;color:white}.game-menu-body{flex:1;min-height:0;overflow:auto;padding:15px}.game-menu-panel{max-width:none!important;width:100%!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;color:#394b45}.game-menu-panel[hidden]{display:none!important}.menu-panel-heading h2{font-size:20px;margin:0 0 10px}.game-menu-actions{display:flex;justify-content:flex-end;align-items:center;gap:9px;padding:10px 15px;border-top:1px solid #ded9cd;background:#f7f2e9}.game-menu-actions .primary,.game-menu-actions .secondary{min-height:38px;padding:8px 16px;font-size:10px}.game-menu-actions .text-btn{font-size:9px}.menu-closet-panel .outfit-grid{max-height:none}.menu-help-panel .control-list{margin-top:8px}.sound-menu-card{max-width:560px;padding:22px;border-radius:14px;background:#fffaf0;border:1px solid #e8dfcf;display:grid;grid-template-columns:auto auto;align-items:center;gap:12px 18px}.sound-toggle{display:flex;align-items:center;gap:10px;padding:12px 18px;background:#eee8dc;border-radius:10px;font-weight:700}.sound-toggle svg{width:22px;height:22px}.sound-toggle[aria-pressed=true]{background:#d8827c;color:white}.sound-menu-card>strong{font-size:21px;color:#b66e68}.sound-menu-card>p{grid-column:1/-1;margin:0;font-size:10px;color:#838577}.game-menu .course-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.game-menu .course-card-body{padding:10px}.game-menu .course-card h3{font-size:11px}.game-menu .course-card p{font-size:8px}.game-menu .course-hint{min-height:34px}.game-menu .outfit-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}.game-menu .outfit-view{height:210px}.game-menu .help-note{margin-bottom:0}
@media(max-width:760px){.app{padding:8px}.stage{height:calc(100dvh - 16px);min-height:500px}.stage-wallet{top:12px;right:10px;min-height:31px;padding:0 9px}.stage-wallet svg{width:18px;height:18px}.stage-wallet strong{font-size:14px}.stage-wallet span{display:none}.stage.running .stage-wallet{left:10px;top:12px}.game-menu{inset:8px;border-radius:14px}.game-menu-head{height:54px;padding:7px 10px}.game-menu-brand>svg{width:34px;height:34px}.game-menu-brand strong{font-size:14px}.game-menu-tabs{padding:7px 8px;gap:4px;overflow-x:auto}.game-menu-tab{font-size:9px;padding:7px 9px;white-space:nowrap}.game-menu-body{padding:10px}.game-menu .course-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.game-menu .outfit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.game-menu .outfit-view{height:170px}.game-menu-actions{padding:8px;gap:5px;flex-wrap:wrap}.game-menu-actions .primary,.game-menu-actions .secondary{font-size:8px;padding:7px 10px;min-height:34px}.sound-menu-card{padding:14px}.menu-panel-heading h2{font-size:16px}.course-summary{min-width:0}}


/* v32: keep the permanent portrait clear and consolidate coin information. */
.stage.running .stage-wallet{display:none}
.run-wallet{width:124px;padding:9px 12px;display:flex;flex-direction:column;align-items:stretch;gap:5px;flex-wrap:nowrap}
.run-wallet .coin-line{display:grid;grid-template-columns:20px 31px 1fr;align-items:center;gap:5px;min-height:20px}
.run-wallet .coin-line>svg{width:19px;height:19px;grid-row:1/3}
.run-wallet .coin-line>span{font-size:6px;letter-spacing:1px;color:#99917c;font-weight:800}
.run-wallet .coin-line>strong{font-size:16px;line-height:1;font-variant-numeric:tabular-nums;text-align:right;color:var(--ink)}
.run-wallet .coin-line.earned{grid-template-columns:20px 31px 1fr;padding-top:5px;border-top:1px solid #ddd8c9}
.run-wallet .coin-line.earned:before{content:'';width:19px}
.run-wallet .coin-line.earned>strong{font-size:18px;color:#b56f64}
.game-menu-brand>img{width:42px;height:42px;object-fit:cover;border-radius:12px;flex:0 0 auto}
@container(max-width:699px){.run-wallet{width:76px;min-width:76px;padding:6px 7px;gap:3px}.run-wallet .coin-line{grid-template-columns:15px 23px 1fr;gap:3px;min-height:16px}.run-wallet .coin-line>svg{width:15px;height:15px}.run-wallet .coin-line>span{font-size:5px;letter-spacing:.5px}.run-wallet .coin-line>strong{font-size:12px}.run-wallet .coin-line.earned{grid-template-columns:15px 23px 1fr;padding-top:3px}.run-wallet .coin-line.earned:before{width:15px}.run-wallet .coin-line.earned>strong{font-size:13px}.game-menu-brand>img{width:34px;height:34px;border-radius:10px}}
@container(max-width:339px){.run-wallet{position:static;width:76px;min-width:76px}}


/* v33: one compact left HUD column below Chappy's permanent portrait. */
.hud-left-stack{position:absolute;left:24px;top:176px;width:148px;display:flex;flex-direction:column;gap:7px;pointer-events:none}
.hud-left-stack .run-wallet,.hud-left-stack .time-hud,.hud-left-stack .weather-hud,.hud-left-stack .position-hud{position:static!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0!important}
.hud-left-stack .run-wallet{padding:8px 11px;border-radius:11px;background:#faf5e8ed;border:1px solid #fffaf0bd;box-shadow:0 4px 18px #31483b12}
.hud-left-stack .time-hud{display:flex;flex-direction:column;gap:2px;padding:8px 11px;border-radius:10px;background:#faf5e8ed;border:1px solid #fffaf0bd;color:#496b60;box-shadow:0 4px 18px #31483b10}
.hud-left-stack .time-hud>span{font-size:6px;letter-spacing:1.2px;font-weight:700;color:#70877b}
.hud-left-stack .time-hud>strong{font-size:19px;line-height:1.05;font-weight:500;font-variant-numeric:tabular-nums}
.hud-left-stack .weather-hud{padding:8px 11px;border-radius:10px;min-height:43px;justify-content:center;box-shadow:0 4px 18px #31483b10}
.hud-left-stack .weather-hud strong{font-size:10px}.hud-left-stack .weather-hud small{font-size:7px}
.hud-left-stack .position-hud{padding:9px 11px;border-radius:11px}
.race-top{left:200px;right:28px;top:25px}
/* The old operation-hint card was removed from the DOM in v33. */
.posture-hud{display:none!important}
@container(max-width:699px){
  .hud-left-stack{left:14px;top:123px;width:116px;gap:5px}
  .hud-left-stack .run-wallet{width:100%!important;padding:6px 8px;gap:3px}
  .hud-left-stack .run-wallet .coin-line{grid-template-columns:15px 25px 1fr;gap:3px;min-height:16px}
  .hud-left-stack .run-wallet .coin-line>svg{width:15px;height:15px}
  .hud-left-stack .run-wallet .coin-line>span{font-size:5px;letter-spacing:.5px}
  .hud-left-stack .run-wallet .coin-line>strong{font-size:13px}
  .hud-left-stack .run-wallet .coin-line.earned{grid-template-columns:15px 25px 1fr;padding-top:3px}
  .hud-left-stack .run-wallet .coin-line.earned:before{width:15px}
  .hud-left-stack .run-wallet .coin-line.earned>strong{font-size:14px}
  .hud-left-stack .time-hud{padding:6px 8px}.hud-left-stack .time-hud>strong{font-size:15px}.hud-left-stack .time-hud>span{font-size:5px}
  .hud-left-stack .weather-hud{padding:6px 8px;min-height:35px}.hud-left-stack .weather-hud strong{font-size:9px}.hud-left-stack .weather-hud small{font-size:6px;display:block}
  .hud-left-stack .position-hud{padding:7px 8px}
  .hud-left-stack .position-main>strong{font-size:24px}.hud-left-stack .position-main>span{font-size:6px}.hud-left-stack .rival-gaps{gap:3px;margin-top:5px}.hud-left-stack .rival-gaps>div{font-size:6px;gap:4px}.hud-left-stack .rival-gaps em{font-size:7px}.hud-left-stack .draft-indicator{font-size:6px;margin-top:5px}.hud-left-stack .draft-indicator>i{margin-top:3px}
  .race-top{left:144px;right:14px;top:18px;gap:8px}
}
@container(max-width:699px) and (max-height:589px){
  .hud-left-stack{top:121px;gap:4px}
  .hud-left-stack .position-hud{padding-top:6px;padding-bottom:6px}
  .hud-left-stack .rival-gaps{display:none}
  .hud-left-stack .position-main{padding-bottom:0;border-bottom:0}
}
@container(max-width:339px){
  .hud-left-stack{left:12px;top:121px;width:106px}
  .race-top{left:130px;right:12px;gap:6px}
}


/* v34: simplify race chrome and align the permanent portrait with the left HUD cards. */
.game-menu .settings{display:flex;flex-direction:column;gap:9px}
.settings-action{width:100%;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;border:1px solid #dfdbcf;border-radius:11px;background:#fffaf0;text-align:left;color:#4f5e57}
.settings-action:hover{background:#f1ece2}
.settings-action>span{display:flex;flex-direction:column;gap:4px}
.settings-action strong{font-size:11px}.settings-action small{font-size:8px;color:#8b8d81}.settings-action>svg{width:20px;height:20px;color:#6b8176}
.fullscreen-btn{display:none!important}
@container(max-width:699px){.settings-action{padding:10px 11px}.settings-action strong{font-size:10px}.settings-action small{font-size:7px}}


/* v36: symmetric stage margin and pre-race ride selection. */
.bike-select-overlay{position:absolute;inset:0;z-index:8;display:grid;place-items:center;padding:28px;background:#445c5573;backdrop-filter:blur(5px)}
.bike-select-shell{width:min(980px,92%);max-height:92%;overflow:auto;padding:25px;border-radius:20px;background:#f8f3eafa;border:1px solid #fff9ed;box-shadow:0 22px 70px #23362d4d;color:#394b45}
.bike-select-heading{text-align:center;margin-bottom:18px}.bike-select-heading .eyebrow{margin-bottom:7px}.bike-select-heading h2{margin:0 0 7px;font-size:24px}.bike-select-heading>p:last-child{margin:0;font-size:10px;color:#81877d}
.bike-select-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.bike-select-card{width:100%;padding:13px;border-radius:15px;background:#fffaf0;border:1px solid #e7dfd1;box-shadow:0 5px 18px #33483d0e;position:relative;text-align:center;display:flex;flex-direction:column;cursor:pointer;transition:transform .16s,box-shadow .16s,border-color .16s}.bike-select-card:hover{transform:translateY(-2px);box-shadow:0 10px 24px #33483d1c;border-color:#a9b9aa}.bike-select-card:focus-visible{outline:3px solid #d77e7b;outline-offset:4px}
.bike-select-card.selected{border:2px solid #75a08d;box-shadow:0 0 0 3px #75a08d1c}.bike-select-card .outfit-tag{position:absolute;left:11px;top:10px;z-index:2}
.bike-select-view{height:228px;display:grid;place-items:center;margin:4px 0 12px;padding:8px 8px 12px;border-radius:14px;background:linear-gradient(180deg,#fffdf7 0%,#f6efe3 100%);overflow:hidden}.bike-select-view canvas{max-width:100%;max-height:100%;width:auto;height:auto}
.bike-select-card h3{font-size:13px;margin:2px 0 5px;color:#374740}.bike-select-card p{font-size:9px;line-height:1.7;color:#7e8278;min-height:31px;margin:0 0 6px}.bike-select-card small{display:block;font-size:8px;color:#668779;margin:0 0 2px;font-weight:700}
.bike-select-actions{display:flex;justify-content:flex-start;margin-top:18px}.bike-select-actions .secondary{min-height:42px;padding:9px 18px;font-size:10px}
.closet-section-heading{display:flex;align-items:baseline;justify-content:space-between;border-bottom:1px solid var(--line);padding:0 2px 10px;margin-bottom:16px}.closet-section-heading strong{font-size:12px}.closet-section-heading span{font-size:7px;letter-spacing:1px;color:#9a9b8e}
@media(max-width:760px){.bike-select-overlay{padding:12px}.bike-select-shell{width:100%;padding:16px}.bike-select-heading h2{font-size:19px}.bike-select-grid{grid-template-columns:1fr;gap:9px}.bike-select-card{display:grid;grid-template-columns:120px 1fr;grid-template-rows:auto auto auto auto;column-gap:10px;text-align:left;padding:10px}.bike-select-view{grid-row:1/5;height:135px;margin:0;padding:6px 6px 10px}.bike-select-card h3{margin-top:13px}.bike-select-card p{min-height:0}.bike-select-card small{margin-bottom:4px}.bike-select-actions{margin-top:12px;justify-content:flex-start}.bike-select-actions button{width:auto}}

.rider-label{display:none!important}

.outfit-price{min-height:25px;display:flex;align-items:center;justify-content:center;gap:5px;margin-top:auto;padding-top:8px;border-top:1px solid #e7dfd2;color:#a57655}.outfit-price svg{width:15px;height:15px;color:#d5a43a}.outfit-price strong{font-size:11px;font-variant-numeric:tabular-nums}.outfit-price span{font-size:6px;letter-spacing:1px}.outfit-card:disabled .outfit-price{opacity:.65}

/* v66: debug comparison tab and live steering multiplier. */
.debug-intro{font-size:10px;line-height:1.8;color:#858b80;margin:0 0 14px}.debug-settings{max-width:680px}.debug-settings label+ .debug-status{margin-top:-4px}.debug-status{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 0 10px;border-bottom:1px solid #d9d9cc}.debug-status span{font-size:8px;letter-spacing:1px;color:#999b8f}.debug-status strong{font-size:10px;color:#b66e68}.debug-settings .debug-status:last-child{border-bottom:0;padding-bottom:2px}

.debug-range-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:10px 0;border-bottom:1px solid #d9d9cc}.debug-range-row>div:first-child{display:flex;flex-direction:column;gap:5px}.debug-range-row strong{font-size:12px;font-weight:600}.debug-range-row small{font-size:9px;color:#959c89;line-height:1.5}.debug-range-control{display:flex;align-items:center;gap:10px;min-width:230px}.debug-range-control input[type=range]{opacity:1;position:static;width:170px;height:auto;cursor:pointer;accent-color:#91b29a}.debug-range-control>strong{min-width:48px;text-align:right;color:#b66e68;font-variant-numeric:tabular-nums}@container(max-width:699px){.debug-range-row{align-items:flex-start;flex-direction:column;gap:8px}.debug-range-control{width:100%;min-width:0}.debug-range-control input[type=range]{width:100%}.debug-range-row small{font-size:8px}}

/* v68: debug start-stage selector. */
.debug-select-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:10px 0;border-bottom:1px solid #d9d9cc}.debug-select-row>div{display:flex;flex-direction:column;gap:5px}.debug-select-row strong{font-size:12px;font-weight:600}.debug-select-row small{font-size:9px;color:#959c89;line-height:1.5}.debug-select-row select{min-width:150px;padding:8px 10px;border:1px solid #d2cdbf;border-radius:9px;background:#fffaf0;color:#4f5a53;font:inherit;font-size:10px;font-weight:700}@container(max-width:699px){.debug-select-row{align-items:flex-start;flex-direction:column;gap:8px}.debug-select-row select{width:100%}.debug-select-row small{font-size:8px}}
.debug-reset-button{margin:0;min-height:34px;padding:0 14px;white-space:nowrap;color:#a65f5a;border-color:#dfc3bd;background:#fff7f1}.debug-reset-button:hover{background:#f6e7df}@container(max-width:699px){.debug-reset-button{width:100%}}
.debug-number-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:10px 0;border-bottom:1px solid #d9d9cc}.debug-number-row>div:first-child{display:flex;flex-direction:column;gap:5px}.debug-number-row strong{font-size:12px;font-weight:600}.debug-number-row small{font-size:9px;color:#959c89;line-height:1.5}.debug-number-control{display:flex;align-items:center;gap:8px;min-width:230px}.debug-number-control input{position:static!important;opacity:1!important;width:130px!important;height:34px!important;padding:6px 9px;border:1px solid #d2cdbf;border-radius:9px;background:#fffaf0;color:#4f5a53;font-size:11px;font-weight:700;text-align:right}.debug-number-control button{min-height:34px;padding:0 12px;border-radius:9px;background:#d98680;color:#fff;font-size:10px;font-weight:700}.game-over-stats,.run-result-stats{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:16px}.game-over-stats>div:nth-child(3),.game-over-stats>div:nth-child(4),.run-result-stats>div:nth-child(3),.run-result-stats>div:nth-child(4){border-top:1px solid #e5e4d5;padding-top:16px}.game-over-stats>div:nth-child(3),.run-result-stats>div:nth-child(3){border-left:0!important}.run-result-dialog{width:560px}.run-rank-badge{width:82px;height:82px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;margin:0 auto 18px;background:#f3e6df;border:1px solid #e4c1b5;box-shadow:0 0 0 7px #f3ece5}.run-rank-badge span{font-size:7px;letter-spacing:1.2px;color:#aa8175}.run-rank-badge strong{font-size:34px;line-height:1;color:#ce7770}.run-result-stages{max-height:220px;overflow:auto}.run-result-stages li{display:grid;grid-template-columns:44px 1fr auto auto}.run-result-stages em{font-style:normal;font-size:9px;color:#a47b66;margin-left:8px;white-space:nowrap}@container(max-width:699px){.debug-number-row{align-items:flex-start;flex-direction:column;gap:8px}.debug-number-control{width:100%;min-width:0}.debug-number-control input{flex:1;width:auto!important}.debug-number-row small{font-size:8px}}
