:root{--ink:#23323c;--red:#e83b3b;--cream:#fffdf5;--yellow:#ffdb52;--muted:#6a777a;font-family:Inter,"Arial", "PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);font-synthesis:none}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}button,a,input{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;border:0}button:focus-visible,a:focus-visible{outline:3px solid #3084f6;outline-offset:5px}button{transition:transform .16s,background .16s,box-shadow .16s}button:active{transform:translateY(2px)!important}button:hover{filter:brightness(1.03)}.hidden{display:none!important}#game{position:relative;width:100%;height:100%;isolation:isolate;background:#bce8f1}#world{position:absolute;inset:0;width:100%;height:100%;display:block}.vignette{position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(255,253,245,.99) 0%,rgba(255,253,245,.98) 23%,rgba(255,253,245,.9) 31%,rgba(255,253,245,.2) 49%,transparent 62%);transition:opacity .6s}.topbar{position:absolute;left:3.5%;right:3.5%;top:26px;display:flex;align-items:center;justify-content:space-between;z-index:6}.brand{display:flex;align-items:center;gap:11px;color:var(--ink);text-decoration:none;font-size:20px;font-weight:1000;line-height:1;letter-spacing:-1px;transform:skew(-5deg)}.brand-m{background:var(--red);color:#fff;border-radius:50%;width:39px;height:39px;display:grid;place-items:center;font-size:26px;border:3px solid #fff;box-shadow:0 2px 0 #bf2229}.brand-light{font-weight:500;margin-left:2px}.brand small{display:block;font-size:8px;font-weight:800;letter-spacing:4px;margin-top:6px}.top-actions{display:flex;align-items:center;gap:12px}.live-dot{height:6px;width:6px;border-radius:100%;background:#4d9b7b;box-shadow:0 0 0 4px #ffffff36}.local-label{font-size:9px;font-weight:800;letter-spacing:2px;margin-right:12px}.icon-button{position:relative;width:36px;height:36px;border:1px solid #ffffff80;border-radius:50%;background:#fff8;color:var(--ink);font-size:21px;backdrop-filter:blur(8px)}.sound-slash{position:absolute;left:7px;top:7px;font-size:23px;color:var(--red)}.menu{position:absolute;left:5.2%;top:14%;width:340px;z-index:3}.eyebrow{display:flex;align-items:center;gap:10px;font-size:10px;font-weight:800;letter-spacing:1.8px}.edition{font-size:8px;color:#7b8886;margin-left:8px;letter-spacing:1px}.checkered{background:conic-gradient(#26332f 25%,white 0 50%,#26332f 0 75%,white 0);background-size:8px 8px;transform:skew(-10deg)}.tiny{width:22px;height:16px}h1{font-size:clamp(68px,7.5vw,108px);font-weight:1000;letter-spacing:-8px;line-height:.79;margin:27px 0 25px;transform:skew(-8deg);transform-origin:left center}h1>span{color:var(--red)}.title-dot{color:var(--red);margin-left:2px}.intro{font-size:12px;line-height:1.9;letter-spacing:.4px;margin:0 0 25px;color:#6a777a}.selection-head{display:flex;justify-content:space-between;align-items:center;font-size:10px;margin-bottom:10px;font-weight:800}.selection-head>span:first-child{color:#a0aaa8}.selection-head>span:first-child>span{color:var(--ink);margin-left:10px;letter-spacing:1px}.selection-head b{font-size:11px}.selection-head b small{font-size:9px;color:#8a9491;font-weight:500;margin-left:6px}.characters{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.character{position:relative;background:#eeeee7;border:1px solid transparent;height:84px;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;overflow:hidden}.character.selected{background:#fff;border-color:var(--red);box-shadow:0 3px 0 var(--red)}.character.selected:after{content:'✓';position:absolute;right:5px;top:3px;font-size:9px;color:var(--red);font-weight:900}.character small{font-size:8px;font-weight:900;letter-spacing:.8px}.portrait{width:43px;height:39px;position:relative;display:block;border-radius:45% 45% 40% 40%;background:#ffd0a2;border-bottom:7px solid #54372b;margin-top:5px;box-shadow:inset -5px -2px 0 #e8ad7a}.portrait:before{content:'';position:absolute;top:-6px;left:-2px;width:47px;height:19px;border-radius:30px 30px 8px 8px;background:#ed4145;box-shadow:0 3px 0 #bc2b35}.portrait:after{content:'••';position:absolute;font-size:19px;letter-spacing:6px;left:11px;top:10px;line-height:1;color:#2d343a}.portrait i{font-style:normal;position:absolute;left:16px;top:-6px;z-index:1;width:14px;height:14px;background:#fff;border-radius:50%;color:#ed4145;font-size:10px;line-height:14px;font-weight:900}.luigi:before{background:#33a854;box-shadow:0 3px 0 #26803e}.luigi i{color:#33a854}.peach{border-bottom:0;box-shadow:-5px 0 0 #f2c14c,5px 0 0 #f2c14c}.peach:before{background:#ffcf56;box-shadow:none;height:15px}.peach i{background:none;font-size:26px;left:10px;top:-17px;width:24px;color:#dc9b28}.toad{border-bottom:0}.toad:before{background:#fff;box-shadow:0 3px 0 #ddd;top:-8px;height:24px;width:51px;left:-4px;border-radius:35px 35px 5px 5px}.toad i{background:var(--red);width:17px;height:18px;top:-8px;left:13px;color:var(--red)}.course-head{margin-top:20px;margin-bottom:8px}.course-arrows{display:flex;gap:5px}.course-arrows button{color:#7d8c88;background:none;font-size:17px;line-height:16px;padding:0 2px}.course-card{display:flex;align-items:center;text-align:left;gap:13px;width:100%;background:#fff9;border:1px solid #cfd6cb;border-radius:10px;padding:10px 13px}.course-icon{width:40px;height:38px;background:#e5edcb;border-radius:6px;display:grid;place-items:center;color:#708c48;font-size:29px}.course-card b{font-size:13px;letter-spacing:1px}.course-card small{display:block;font-size:7px;font-weight:800;letter-spacing:1.1px;margin-top:6px;color:#7f8b83}#course-index{margin-left:auto;font-size:18px;font-weight:900}#course-index span{font-size:9px;color:#9aa398;margin-left:3px}.settings-row{display:flex;justify-content:space-between;align-items:center;margin:16px 0}.segmented{display:flex;background:#e8eae0;padding:3px;border-radius:7px;gap:3px}.segmented button{font-size:11px;background:none;padding:7px 11px;border-radius:5px;font-weight:800}.segmented button.selected{background:#fff;box-shadow:0 1px 3px #23333c1c}.segmented small{font-size:8px;margin-left:1px;font-weight:500}.assist-label{display:flex;align-items:center;gap:6px;font-size:9px;color:#61746e;cursor:pointer}.assist-label input{position:absolute;opacity:0;width:1px}.toggle{width:24px;height:14px;background:#bbc8c0;border-radius:20px;position:relative}.toggle:after{content:'';width:10px;height:10px;background:#fff;border-radius:50%;position:absolute;top:2px;left:2px;transition:left .2s}.assist-label input:checked+.toggle{background:#6c927a}.assist-label input:checked+.toggle:after{left:12px}.assist-label input:focus-visible+.toggle{outline:2px solid #3084f6;outline-offset:3px}.start-button{display:flex;align-items:center;justify-content:space-between;background:var(--red);color:white;width:100%;padding:16px 21px;border-radius:10px;box-shadow:0 5px 0 #b42f31,0 12px 25px #dc484326}.start-button:hover{transform:translateY(-2px);box-shadow:0 7px 0 #b42f31,0 14px 28px #dc484338}.start-button>span:first-child{font-size:18px;font-weight:800;letter-spacing:2px;text-align:left}.start-button small{font-size:7px;display:block;letter-spacing:2px;font-weight:600;margin-top:4px;opacity:.75}.start-arrow{font-size:30px;line-height:1;font-weight:400}.menu-bottom{font-size:8px;display:flex;align-items:center;gap:6px;letter-spacing:.4px;color:#8c9893;margin-top:16px}.menu-bottom>span:last-child{margin-left:auto;font-size:8px}.key,kbd{font-family:inherit;border:1px solid currentColor;border-radius:3px;padding:2px 4px;font-size:9px}.scene-label{position:absolute;right:5%;bottom:14%;color:#263e33;z-index:2;text-shadow:0 2px 15px #fff8}.scene-label>div{display:flex;align-items:center;gap:17px}.track-number{font-size:58px;font-weight:1000;line-height:1;letter-spacing:-3px;opacity:.28;font-style:italic}.scene-label small{display:block;font-size:9px;font-weight:800;letter-spacing:3px}.scene-label strong{display:block;font-size:25px;letter-spacing:5px;margin-top:6px}.scene-label p{font-size:10px;margin:13px 0 15px;letter-spacing:1px}.scene-tag{font-size:9px;border:1px solid #385b3830;background:#ffffc870;padding:7px 10px;border-radius:20px}.scene-tag span{margin:0 7px;opacity:.5}.menu-footer{position:absolute;bottom:23px;left:3.5%;right:3.5%;display:flex;align-items:center;gap:27px;font-size:8px;font-weight:700;letter-spacing:1.5px;color:#536956}.menu-footer button{background:none;font-size:10px;color:inherit}.menu-footer button span{margin-left:10px}.footer-line{height:1px;background:#36592b25;flex:1}.menu-footer>span:last-child{color:#fff;font-weight:800;text-shadow:0 1px 3px #13353b50}.racing .vignette{opacity:0}.racing .brand{filter:drop-shadow(0 1px 3px #ffffff80)}.race-top{position:absolute;top:28px;left:50%;transform:translateX(-50%);display:flex;gap:26px;color:#fff;filter:drop-shadow(0 2px 3px #25372f88)}.lap-box small,.timer-box small{display:block;font-size:8px;letter-spacing:2px;font-weight:800}.lap-box>span{display:flex;align-items:baseline;gap:9px}.lap-box b{font-size:42px;font-style:italic;line-height:1.1}.lap-box i{font-size:19px;opacity:.65;font-style:normal}.timer-box{border-left:1px solid #fff6;padding-left:25px}.timer-box b{display:block;margin-top:7px;font-size:21px;font-variant-numeric:tabular-nums;letter-spacing:1px}.timer-box>span{display:block;font-size:8px;margin-top:3px;opacity:.75}.item-area{position:absolute;right:3.5%;top:107px;text-align:center}.item-slot{background:linear-gradient(135deg,#223958ec,#182238e8);color:#fff;border:3px solid #fff9;border-radius:20px;width:91px;height:91px;box-shadow:0 6px 0 #0d203550,0 0 0 1px #22395855;display:flex;align-items:center;flex-direction:column;justify-content:center}.item-slot>span{font-size:44px;font-weight:900;text-shadow:0 4px 0 #0002;line-height:1.2}.item-slot>small{font-size:8px;letter-spacing:1px;opacity:.7;margin-top:3px}.item-slot.ready{background:linear-gradient(135deg,#ffdf52,#f2a940);border-color:white}.item-slot.ready>small{color:#4c3512;opacity:1}.item-key{display:block;color:white;text-shadow:0 1px 5px #0009;font-size:9px;margin-top:12px}.item-key kbd{margin-left:6px}.position{position:absolute;left:4%;bottom:94px;display:flex;align-items:center;flex-wrap:wrap;width:170px;color:var(--yellow);text-shadow:0 4px 0 #79552d,0 5px 10px #0003}.position>span:first-child{font-size:106px;font-weight:1000;font-style:italic;letter-spacing:-8px;line-height:1}.position-tail{display:flex;flex-direction:column;margin:5px 0 0 12px}.position-tail b{font-size:27px;font-style:italic}.position-tail small{font-size:20px;color:white;margin-top:2px}.position-line{height:3px;width:100%;background:#fff3;margin:7px 0 13px}.coins{color:white;font-size:22px;display:flex;align-items:center;gap:9px;text-shadow:0 2px 5px #0006}.coins>span{color:#ffd44e;font-size:26px;-webkit-text-stroke:2px #bc8915;text-shadow:0 0 0}.coins small{font-size:12px;color:#fffa}.minimap-panel{position:absolute;right:28px;bottom:142px;width:200px;display:flex;align-items:center;flex-direction:column;filter:drop-shadow(0 2px 2px #132b3999)}#minimap{width:200px;height:150px}.minimap-panel>span{font-size:7px;letter-spacing:2px;color:#fff;font-weight:800}.speed-panel{position:absolute;right:3.5%;bottom:58px;color:white;width:173px;text-shadow:0 2px 4px #102d4166}.speed-panel>span{font-size:64px;line-height:1;font-style:italic;font-weight:900;letter-spacing:-4px;font-variant-numeric:tabular-nums}.speed-panel>small{font-size:11px;font-weight:800;letter-spacing:1px;margin-left:10px}.speed-meter{height:5px;background:#fff5;transform:skew(-20deg);margin-top:7px}.speed-meter i{display:block;width:0;height:100%;background:var(--yellow)}.race-controls{position:absolute;bottom:23px;left:4%;display:flex;gap:20px;color:#fff9;font-size:8px;text-shadow:0 1px 3px #0005}.race-controls kbd{font-size:8px;margin-right:5px;color:#fff}.countdown{position:absolute;left:50%;top:37%;transform:translate(-50%,-50%) rotate(-6deg);font-size:150px;font-style:italic;line-height:1;font-weight:1000;color:#ffda50;-webkit-text-stroke:3px white;text-shadow:0 8px 0 #ab6627,0 13px 25px #0005;z-index:7;pointer-events:none}.countdown.pop{animation:count-pop .7s ease-out}@keyframes count-pop{from{scale:1.5;opacity:.1}to{scale:1;opacity:1}}.toast{position:absolute;left:50%;top:24%;transform:translate(-50%,-12px);padding:11px 22px;color:white;background:#25372ee6;backdrop-filter:blur(10px);border:1px solid #ffffff38;border-radius:40px;font-size:13px;font-weight:700;letter-spacing:1px;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;white-space:nowrap;z-index:8}.toast.show{opacity:1;transform:translate(-50%,0)}.drift-panel{position:absolute;bottom:85px;left:50%;transform:translateX(-50%);width:210px;text-align:center;opacity:0;transition:opacity .2s}.drift-panel.active{opacity:1}.drift-panel>span{font-size:10px;letter-spacing:3px;font-weight:900;color:white;text-shadow:0 2px 5px #0008}.drift-panel>div{background:#152c4955;border:1px solid #fff6;height:7px;border-radius:20px;margin-top:9px;overflow:hidden}.drift-panel i{display:block;background:#66d8ff;height:100%;width:0;transition:background .2s}.boost-fx{position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 120px #ffad00a0;opacity:0;transition:opacity .2s;mix-blend-mode:screen}.boost-fx.active{opacity:.65}.modal-backdrop{position:absolute;inset:0;z-index:15;background:#1e314776;backdrop-filter:blur(13px);display:grid;place-items:center;padding:20px}.modal{width:min(400px,100%);background:var(--cream);border:1px solid white;box-shadow:0 25px 100px #152c4955;border-radius:22px;padding:35px;text-align:center;max-height:94dvh;overflow:auto}.modal .eyebrow{justify-content:center;color:var(--red);font-size:9px}.modal h2{font-size:30px;letter-spacing:-1px;margin:16px 0 8px}.modal p{font-size:12px;line-height:1.8;color:#7b8885;margin:8px 0 25px}.primary-button{background:var(--red);color:white;font-size:14px;font-weight:800;padding:16px 20px;border-radius:9px;width:100%;box-shadow:0 3px 0 #b52c31}.secondary-button{background:#eeeee6;color:var(--ink);font-size:12px;font-weight:700;padding:14px;border-radius:9px;width:100%;margin-top:13px}.text-button{color:#819087;background:none;font-size:11px;margin-top:17px;padding:5px}.trophy{font-size:56px;margin-top:14px}.result-modal{width:430px;padding:25px 30px}.result-modal h2{margin-top:7px}.result-modal>p{margin-bottom:17px}.result-stats{display:grid;grid-template-columns:1fr 1.3fr 1.3fr;gap:8px;padding:15px 0;border-top:1px solid #dde2d8;border-bottom:1px solid #dde2d8}.result-stats small{font-size:9px;color:#7b8885;display:block;margin-bottom:7px}.result-stats b{font-size:15px;font-variant-numeric:tabular-nums}.result-list{margin:13px 0;font-size:11px}.result-row{display:flex;justify-content:space-between;padding:5px 10px;border-radius:4px}.result-row.you{background:#e83b3b12;color:var(--red);font-weight:800}.result-row span:first-child{width:20px;text-align:left;color:#95a198}.result-row span:nth-child(2){margin-right:auto;margin-left:10px}.result-row span:last-child{font-size:10px;font-variant-numeric:tabular-nums}.record-label{display:block;font-size:10px;color:#bc8b11;min-height:22px}.help-modal{text-align:left;width:460px}.help-modal .eyebrow{justify-content:flex-start}.help-modal dl{margin:22px 0}.help-modal dl>div{display:flex;justify-content:space-between;margin:14px 0;font-size:11px}.help-modal dt{font-weight:800}.help-modal dd{color:#788982;margin:0;font-size:10px}.help-modal p{font-size:10px}.mobile-controls{display:none}.racing .local-label,.racing .live-dot{display:none}
@media(min-height:900px){.menu{top:15%;width:370px}h1{font-size:115px;margin-bottom:30px}.intro{margin-bottom:30px}.character{height:89px}.course-head{margin-top:24px}.settings-row{margin:20px 0}.start-button{padding:18px 21px}}
@media(max-height:760px) and (min-width:761px){.menu{top:110px;width:310px}.eyebrow{font-size:8px}h1{font-size:76px;margin:20px 0}.intro{font-size:10px;margin-bottom:18px}.characters{gap:8px}.character{height:70px}.portrait{transform:scale(.8);margin:0}.character{gap:1px}.course-head{margin-top:15px}.course-card{padding:7px 11px}.settings-row{margin:12px 0}.start-button{padding:12px 17px}.menu-bottom{margin-top:12px}.scene-label{bottom:15%}}
@media(max-height:650px) and (min-width:761px){.menu{top:88px;left:4.5%;width:290px}h1{font-size:60px;letter-spacing:-4px;margin:14px 0}.intro{margin-bottom:12px;font-size:9px}.character{height:59px}.portrait{transform:scale(.7);height:33px}.character small{font-size:7px}.selection-head{margin-bottom:6px}.course-head{margin-top:10px}.course-card{padding:5px 10px}.course-icon{height:30px;width:33px;font-size:23px}.settings-row{margin:10px 0}.start-button{padding:10px 16px}.start-button>span:first-child{font-size:15px}.menu-bottom{font-size:7px}.menu-footer{bottom:15px}}
@media(max-width:760px){.topbar{top:20px;left:6%;right:6%}.brand{font-size:17px}.brand-m{width:33px;height:33px;font-size:21px}.brand small{font-size:6px;letter-spacing:3px}.top-actions{gap:8px}.local-label,.live-dot{display:none}.icon-button{width:32px;height:32px;font-size:18px}.vignette{background:linear-gradient(0deg,#fffdf5 2%,#fffdf5f2 52%,#fffdf529 83%,transparent)}.menu{left:6%;top:auto;bottom:55px;width:88%;display:grid;grid-template-columns:1fr 1fr;gap:0 15px}.menu>.eyebrow{grid-column:1/-1;font-size:8px}.edition{margin-left:auto;font-size:7px}h1{font-size:63px;letter-spacing:-4px;line-height:.88;grid-column:1/2;grid-row:2;margin:19px 0}.intro{grid-column:2;grid-row:2;align-self:center;font-size:10px;margin:12px 0;line-height:1.9}.menu>.selection-head:not(.course-head){grid-column:1/-1;margin:0 0 8px}.characters{grid-column:1/-1;gap:10px}.character{height:69px}.portrait{transform:scale(.82);margin:0}.character{gap:1px}.course-head{grid-column:1/-1;margin:18px 0 7px}.course-card{grid-column:1/-1;padding:7px 12px}.settings-row{grid-column:1/-1;margin:13px 0}.start-button{grid-column:1/-1;padding:13px 18px}.menu-bottom{grid-column:1/-1;margin:14px 0 0}.scene-label{top:100px;bottom:auto;right:7%;opacity:.8}.scene-label .track-number{font-size:34px}.scene-label strong{font-size:17px}.scene-label small{font-size:6px}.scene-label p,.scene-tag{display:none}.menu-footer{bottom:19px;left:6%;right:6%;gap:10px;font-size:6px}.menu-footer>span:last-child,.footer-line{display:none}.menu-footer button{margin-left:auto;font-size:9px}.race-top{top:80px;left:6%;transform:none;gap:17px}.timer-box{padding-left:17px}.lap-box b{font-size:35px}.timer-box b{font-size:16px}.item-area{top:83px;right:6%}.item-slot{width:70px;height:70px;border-radius:16px}.item-slot>span{font-size:34px}.item-slot>small{font-size:7px}.position{bottom:185px;left:6%;width:120px}.position>span:first-child{font-size:77px}.position-tail b{font-size:20px}.position-tail small{font-size:14px}.coins{font-size:16px}.coins>span{font-size:20px}.position-line{margin-top:0}.minimap-panel{right:3%;bottom:235px;width:130px}#minimap{width:130px;height:98px}.minimap-panel>span{font-size:5px}.speed-panel{bottom:175px;right:6%;width:116px}.speed-panel>span{font-size:46px}.speed-panel>small{font-size:8px;margin-left:7px}.race-controls{display:none}.mobile-controls:not(.hidden){display:flex;position:absolute;bottom:max(24px,env(safe-area-inset-bottom));left:5%;right:5%;justify-content:space-between;z-index:8;user-select:none;touch-action:none}.mobile-controls>div{display:flex;gap:9px;align-items:flex-end}.mobile-controls button{background:#ffffff45;border:1px solid #fff9;backdrop-filter:blur(5px);height:61px;width:49px;border-radius:16px;color:#fff;font-weight:700;font-size:19px;touch-action:none}.mobile-controls .mobile-gas{background:#e83b3bcc;width:58px;height:78px;font-size:13px}.mobile-controls .mobile-drift{background:#ffcc3870;font-size:12px}.mobile-controls .mobile-brake{font-size:11px;width:40px;height:48px}.mobile-controls button.pressed{background:#fff9;transform:translateY(3px)}.drift-panel{bottom:140px;width:155px}.drift-panel>span{font-size:8px}.toast{top:29%;font-size:10px;padding:10px 15px}.countdown{font-size:112px;top:43%}.modal{padding:27px}.modal h2{font-size:25px}.result-modal{padding:22px}.result-modal .trophy{font-size:40px}.result-stats b{font-size:13px}}
@media(max-width:760px) and (max-height:730px){.scene-label{display:none}.menu{bottom:43px}h1{font-size:45px;margin:14px 0;letter-spacing:-3px}.intro{font-size:9px}.character{height:61px}.course-head{margin-top:13px}.settings-row{margin:10px 0}.menu-footer{bottom:13px}.menu-bottom{font-size:7px}.menu-bottom>span:last-child{font-size:7px}}
@media(hover:none) and (min-width:761px){.mobile-controls:not(.hidden){display:flex;position:absolute;bottom:20px;left:4%;right:4%;justify-content:space-between}.mobile-controls>div{display:flex;gap:12px}.mobile-controls button{width:62px;height:52px;border-radius:13px;background:#fff7;color:#23323c;font-weight:800;touch-action:none}.race-controls{display:none}}
