:root{--navy:#203b70;--orange:#ff734c;--yellow:#ffdb62;--white:#fffcf2}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;font-family:"Arial Rounded MT Bold","Avenir Next","PingFang SC","Microsoft Yahei",sans-serif;color:var(--navy);background:#79d0ed}button{font:inherit;cursor:pointer;border:0}button:focus-visible{outline:4px solid #3f9bfe;outline-offset:5px}.hidden{display:none!important}#world,#world canvas{position:fixed;inset:0;width:100%;height:100%;display:block}#vignette{position:fixed;inset:0;pointer-events:none;background:linear-gradient(0deg,#19477f2e,transparent 20%,transparent 85%,#4179a311)}#race-ui{position:fixed;inset:0;pointer-events:none}.top-left{position:absolute;top:28px;left:35px;display:flex;align-items:center;gap:22px}.place{display:flex;align-items:center;filter:drop-shadow(0 4px 0 #29497844);transform:skew(-8deg)}.place>b{font-size:90px;line-height:.95;letter-spacing:-7px;color:#fff5d5;-webkit-text-stroke:3px var(--navy);paint-order:stroke fill;font-style:italic;font-weight:950}.place>span{font-size:21px;font-weight:800;margin:10px 0 0 10px;color:#fffaf1;text-shadow:2px 2px var(--navy)}.place small{display:block;font-size:9px;letter-spacing:1px;margin-top:4px}.lap-badge{display:flex;align-items:center;gap:13px;background:#fffef1f2;padding:12px 21px 12px 15px;border-radius:18px;box-shadow:0 5px 0 #355d7940;transform:rotate(-2deg);border:3px solid white}.lap-badge>i{font-size:36px;color:var(--orange);font-style:normal}.lap-badge small{display:block;font-size:8px;letter-spacing:1.5px;color:#6d8295;font-weight:800}.lap-badge b{font-size:26px;line-height:1.1;font-weight:900}.lap-badge em{font-size:17px;font-style:normal;color:#82929e}.course-label{position:absolute;left:50%;top:32px;transform:translateX(-50%);text-align:center;color:#fffef4;text-shadow:0 2px 5px #24466d40}.course-label b{display:block;font-size:15px;letter-spacing:3px}.course-label span{display:block;font-size:8px;letter-spacing:3px;margin-top:5px}.top-right{position:absolute;right:30px;top:31px;display:flex;align-items:center;gap:17px}.timer{background:#ffffffdd;border:2px solid #fff;padding:11px 20px 10px;border-radius:15px;text-align:right;box-shadow:0 4px 0 #47739422}.timer small{display:block;font-size:8px;letter-spacing:2px;color:#7b91a3}.timer b{font-size:22px;font-variant-numeric:tabular-nums;font-weight:850;letter-spacing:1px}.top-right button{pointer-events:auto;background:#fffcef;color:var(--navy);border:3px solid #fff;border-radius:15px;font-weight:900;font-size:20px;width:45px;height:46px;box-shadow:0 4px 0 #355d7940}.item-slot{position:absolute;top:146px;right:31px;display:flex;align-items:center;gap:12px;background:#fffef2ed;padding:9px 13px 9px 9px;border-radius:18px;box-shadow:0 5px 0 #355d7933;border:2px solid white}.item-icon{width:55px;height:55px;border:3px solid #abbace;border-radius:13px;background:repeating-linear-gradient(135deg,#e1e9f1 0 9px,#eef1f4 9px 18px);display:grid;place-items:center;font-size:35px;font-weight:900;color:#8aa2bc;transform:rotate(-6deg);text-shadow:2px 2px #fff}.item-slot.ready .item-icon{background:var(--yellow);border-color:#ffa350;color:#fff;animation:itemBob 1s ease-in-out infinite}.item-slot b{font-size:12px;display:block}.item-slot span{font-size:9px;display:block;color:#7a8f9f;margin-top:5px}.item-slot kbd{margin-left:4px;background:var(--navy);color:#fff;border:0}kbd{font:inherit;font-weight:700;font-size:10px;display:inline-block;background:#fffef5;border-radius:5px;border:1px solid #ffffff;box-shadow:0 2px 0 #1c4f6a2b;padding:5px 7px;color:var(--navy)}.bottom-left{position:absolute;left:22px;bottom:61px}#minimap{display:block;width:215px;height:177px;filter:drop-shadow(0 3px 0 #153d712b)}.coins{display:flex;align-items:center;gap:9px;padding:8px 15px;margin-left:23px;width:max-content;background:#fffff1ed;border-radius:30px;border:2px solid white;box-shadow:0 4px 0 #315a7730}.coins i{font-style:normal;background:#ffd957;border:2px solid #eeaf34;border-radius:50%;width:26px;height:26px;display:grid;place-items:center;color:#fffbdf;font-size:19px;text-shadow:0 1px #d3982a}.coins b{font-size:25px;line-height:1}.coins span{font-size:12px;color:#83949d;font-weight:800}.bottom-right{position:absolute;right:36px;bottom:75px;text-align:right;filter:drop-shadow(0 3px 0 #1c457833)}.speed{display:flex;justify-content:flex-end;align-items:baseline;gap:9px}.speed b{font-size:83px;font-style:italic;font-weight:950;line-height:1;color:white;-webkit-text-stroke:2px var(--navy);paint-order:stroke fill;letter-spacing:-5px;font-variant-numeric:tabular-nums}.speed span{font-size:12px;font-weight:900;color:#fff;letter-spacing:1px}.drift-meter{display:flex;align-items:center;gap:8px;background:#fffdf0ed;padding:10px 12px;border:2px solid white;border-radius:12px;min-width:250px}.drift-meter>span{font-size:9px;font-weight:900;letter-spacing:1px}.drift-meter>div{width:102px;height:8px;background:#dce5ea;border-radius:5px;overflow:hidden}.drift-meter i{height:100%;display:block;background:#5ad9fc;width:0;border-radius:5px}.drift-meter>b{font-size:9px;font-weight:750;color:#738da0;min-width:48px}#turbo-label{font-size:17px;font-weight:950;font-style:italic;letter-spacing:1.5px;color:#fff2aa;text-shadow:2px 2px #e8703f;opacity:0;transform:rotate(-5deg);height:26px}.race-help{position:absolute;bottom:20px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:19px;white-space:nowrap;font-size:10px;color:#fff;font-weight:650;text-shadow:0 1px 3px #285b82}.race-help kbd{margin-right:5px;text-shadow:none;font-size:9px;padding:3px 5px;background:#ffffffdf}.race-help span{display:inline-flex;align-items:center}#toast{position:absolute;top:24%;left:50%;transform:translate(-50%,15px) rotate(-4deg);text-align:center;opacity:0;transition:.2s;white-space:nowrap}#toast.show{opacity:1;transform:translate(-50%,0) rotate(-4deg)}#toast>b{display:block;font-size:35px;font-weight:950;color:#fff4a9;-webkit-text-stroke:1px #ca713d;paint-order:stroke fill;text-shadow:0 4px 0 #ad583055}#toast>span{display:block;background:#ffffffed;color:var(--navy);font-size:11px;font-weight:700;padding:7px 14px;border-radius:20px;margin-top:8px;box-shadow:0 4px 0 #20486a22}#wrong-way{position:absolute;left:50%;top:35%;transform:translateX(-50%);background:#ff7957;color:white;border:3px solid #fff;border-radius:20px;padding:12px 24px;font-size:15px;font-weight:800}#speed-lines{position:fixed;inset:0;pointer-events:none;opacity:0;background:repeating-conic-gradient(from 0deg at 50% 55%,transparent 0deg 9deg,#ffffff55 9.1deg 9.3deg,transparent 9.4deg 20deg);mask-image:radial-gradient(ellipse at center,transparent 40%,black 100%);transition:opacity .2s;z-index:1}#countdown{position:fixed;inset:0;pointer-events:none;display:flex;align-items:center;justify-content:center;flex-direction:column;z-index:5}#countdown>b{font-weight:950;font-size:140px;font-style:italic;color:var(--yellow);-webkit-text-stroke:5px white;paint-order:stroke fill;text-shadow:0 9px 0 #d77a38,0 17px 35px #15345a35;transform:rotate(-8deg)}#countdown>span{background:white;border-radius:30px;padding:10px 22px;font-size:13px;font-weight:800;margin-top:10px}#intro{position:fixed;inset:0;z-index:3;background:linear-gradient(90deg,#74cdeedb 0%,#8cdef182 27%,#9cdef000 58%)}.intro-top{position:absolute;left:44px;top:30px;right:42px;display:flex;align-items:center;justify-content:space-between}.logo-mini{font-size:16px;font-weight:950;font-style:italic;letter-spacing:-.4px;color:white;text-shadow:0 2px #3f9cbd}.logo-mini i{font-style:normal;color:var(--yellow);margin-left:7px}.version{background:#fffcf3cc;border:2px solid white;color:#3a678b;padding:7px 12px;border-radius:20px;font-size:9px;font-weight:700;letter-spacing:1px}.intro-content{position:absolute;left:7%;top:50%;transform:translateY(-48%)}.tag{display:inline-flex;align-items:center;gap:8px;font-size:11px;font-weight:850;letter-spacing:2px;color:var(--navy);background:#fff8da;padding:9px 14px;border:2px solid white;border-radius:9px;box-shadow:0 4px 0 #3684a125;transform:rotate(-3deg)}.tag>span{color:#ff9765}.intro-content h1{font-size:clamp(75px,7.1vw,112px);line-height:.85;letter-spacing:-7px;font-weight:950;font-style:italic;color:#fffef0;-webkit-text-stroke:2px #25477e;paint-order:stroke fill;text-shadow:0 6px 0 #25477e,0 12px 0 #27629624;margin:26px 0 15px;transform:rotate(-5deg);transform-origin:left center}.intro-content h1>span{color:var(--yellow)}.intro-content h2{font-size:28px;letter-spacing:9px;color:#fffdf0;font-style:italic;text-shadow:0 3px 0 #32779a;margin:25px 0 16px;font-weight:950}.intro-content p{font-size:14px;color:#275b7a;line-height:1.8;font-weight:650;margin:0 0 25px}#start,.modal>button:not(.text-button){background:var(--orange);border:3px solid #fff9e8;border-radius:18px;box-shadow:0 7px 0 #cf533e,0 12px 24px #25577e22;padding:17px 24px;min-width:280px;color:white;font-size:18px;font-weight:850;display:flex;align-items:center;justify-content:space-between;gap:22px;transition:transform .15s,box-shadow .15s}#start:hover,.modal>button:hover{transform:translateY(-3px)}#start:active,.modal>button:active{transform:translateY(4px);box-shadow:0 2px 0 #cf533e}#start b{font-size:27px;line-height:1}.race-spec{display:flex;align-items:center;gap:10px;margin-top:22px;font-size:10px;color:#2c6684;font-weight:750}.race-spec i{font-style:normal;color:#ffffff}.quick-controls{display:flex;gap:12px;margin-top:25px;font-size:10px;font-weight:600;color:#2e6a84}.quick-controls kbd{margin-right:4px;font-size:9px;padding:4px 6px}.driver-card{position:absolute;right:8%;bottom:13%;display:flex;align-items:center;gap:16px;background:#fffdf0f2;border:3px solid white;padding:16px 22px;border-radius:20px;box-shadow:0 6px 0 #3567902b;transform:rotate(3deg);min-width:320px}.driver-number{font-size:43px;font-weight:950;font-style:italic;color:#ff8d57;letter-spacing:-3px}.driver-card>div{display:flex;flex-direction:column;gap:6px}.driver-card small{font-size:8px;color:#8294a0;letter-spacing:2px}.driver-card b{font-size:15px}.driver-card div>span{font-size:10px;color:#8e9c9d}.driver-card>i{font-style:normal;font-size:32px;color:#ffd46c;margin-left:15px}.intro-footer{position:absolute;bottom:25px;left:44px;right:42px;display:flex;justify-content:space-between;font-size:9px;font-weight:800;letter-spacing:1px;color:#eafaff}.modal-wrap{position:fixed;z-index:6;inset:0;display:flex;align-items:center;justify-content:center;background:#204b7b50;backdrop-filter:blur(8px)}.modal{width:450px;max-width:92vw;background:#fffdf0;border:4px solid white;border-radius:30px;padding:32px;box-shadow:0 12px 0 #27598a30,0 25px 60px #254d6430;text-align:center}.modal .tag{font-size:9px;background:#e7f5ff;color:#4a7195}.modal h2{font-size:29px;margin:24px 0 20px;font-weight:950;letter-spacing:-1px}.modal p{font-size:12px;line-height:2.2;color:#778a98;text-align:left;padding:0 5px}.modal>button:not(.text-button){width:100%;justify-content:center;min-width:0;font-size:15px;margin-top:24px;padding:13px}.modal>button.secondary{background:#e6f1f8;color:#577c98;box-shadow:0 4px 0 #c4d9e8;border-color:#fff;font-size:12px;margin-top:16px}.text-button{background:none;color:#8a9baa;font-size:11px;margin-top:20px}#finish-medal{font-size:50px;margin-top:25px}.result h2{font-size:25px;margin:12px 0}.result-rank{display:flex;justify-content:center;align-items:baseline;gap:10px}.result-rank>b{font-size:90px;font-weight:950;font-style:italic;color:var(--orange);letter-spacing:-5px;line-height:1.2}.result-rank>span{font-size:15px;color:#8195a3;font-weight:700}.result-stats{display:flex;justify-content:space-between;padding:17px 0;border-top:2px dashed #dbe5eb;margin-top:10px;gap:8px}.result-stats small{display:block;color:#8f9fa7;font-size:10px}.result-stats b{display:block;margin-top:7px;font-size:16px;font-variant-numeric:tabular-nums}#fatal{position:fixed;z-index:10;inset:20%;background:#fffdf0;border:4px solid white;padding:30px;border-radius:20px;white-space:pre-wrap;line-height:1.8}@keyframes itemBob{50%{transform:rotate(6deg) translateY(-3px)}}@media(max-width:1100px){.course-label{display:none}.intro-content{left:6%}.driver-card{right:4%;min-width:280px;bottom:12%}.race-help{gap:10px;font-size:9px}.top-left{left:23px;gap:16px}.lap-badge{padding:10px 14px}.item-slot{right:22px}.bottom-right{right:25px}.top-right{right:22px}}@media(max-height:720px){.intro-content{transform:translateY(-47%) scale(.83);transform-origin:left center}.driver-card{transform:rotate(3deg) scale(.85);transform-origin:right bottom}.intro-footer{bottom:16px}.intro-top{top:20px}.top-left,.top-right{top:20px}.place>b{font-size:72px}.item-slot{top:116px}.bottom-left{bottom:48px}#minimap{width:175px;height:144px}.bottom-right{bottom:58px}.speed b{font-size:64px}.race-help{bottom:15px}.modal{padding:24px}.modal h2{margin:20px 0 12px}.modal p{line-height:1.9}}@media(max-width:700px){.intro-content{left:6%;transform:translateY(-45%) scale(.72);transform-origin:left center}.intro-content h1{font-size:95px}.driver-card{display:none}.version{display:none}.intro-top{left:22px}.intro-footer{left:22px;right:22px;font-size:7px}.quick-controls{gap:8px}.top-left{left:14px;gap:9px}.place>b{font-size:66px}.place>span{font-size:15px}.lap-badge{padding:8px;border-radius:12px}.lap-badge>i{display:none}.lap-badge b{font-size:22px}.timer{padding:8px 11px}.timer b{font-size:15px}.top-right{right:12px;gap:8px}.top-right button{height:37px;width:37px;font-size:15px}.item-slot{right:13px;top:113px;gap:8px}.item-slot>div:nth-child(2){display:none}.item-icon{width:42px;height:42px;font-size:26px}.bottom-left{left:6px}#minimap{width:135px;height:112px}.coins{margin-left:14px}.bottom-right{right:14px}.drift-meter{min-width:0;gap:6px}.drift-meter>div{width:75px}.drift-meter>b{display:none}.speed b{font-size:62px}.race-help{flex-wrap:wrap;width:95%;justify-content:center;gap:8px;bottom:10px}.race-help kbd{font-size:8px;padding:2px 3px}.race-help span{font-size:8px}.bottom-left,.bottom-right{bottom:65px}}

/* Edition 03: quieter surfaces, consistent iconography, and English typography. */
:root{--panel:#fffdf3f5;--muted:#78909f;--edge:#ffffffed;--shadow:0 5px 0 #315d7e23,0 12px 32px #264d6810}
.icon-library{position:absolute;width:0;height:0;overflow:hidden}.icon{display:inline-block;width:24px;height:24px;fill:currentColor;vertical-align:middle;flex-shrink:0}button{touch-action:manipulation}button:focus-visible{outline:3px solid #214b80;outline-offset:5px}
.intro-top{top:30px}.logo-mini{letter-spacing:.2px;font-size:17px}.version{font-size:9px;letter-spacing:1.6px;padding:9px 14px;border-color:#ffffffb0;background:#fffdf0d9}.intro-content .tag{font-size:10px;letter-spacing:2.2px;border-radius:8px;padding:10px 14px;box-shadow:0 4px 0 #36719120}.intro-content h2{font-size:23px;letter-spacing:-.4px;font-style:normal;font-weight:800;line-height:1.25;margin:27px 0 13px;color:#254f76;text-shadow:none}.intro-content p{font-size:14px;line-height:1.85;font-weight:500;color:#386c84;letter-spacing:.1px}.intro-content h1{letter-spacing:-6px}#start{min-width:296px;padding:18px 22px;letter-spacing:1.7px;font-size:16px;border-radius:16px;border-width:2px;box-shadow:0 6px 0 #c95740,0 14px 27px #36596825}#start b{font-size:24px}.race-spec{font-size:9px;letter-spacing:1.3px;gap:12px;margin-top:21px}.quick-controls{gap:14px;margin-top:26px;font-size:10px;font-weight:550}.quick-controls kbd{padding:5px 7px;background:#fffdf0e8;border-color:#fff9;box-shadow:0 2px 0 #527b8c25;letter-spacing:.4px;font-size:8px}
.driver-card{gap:18px;padding:18px 23px;border-width:2px;min-width:300px;border-radius:18px;box-shadow:var(--shadow);transform:rotate(2deg)}.driver-number{font-size:46px;border-right:1px solid #d9e4e5;padding-right:18px}.driver-card small{font-size:8px;letter-spacing:2px;color:#879aa8}.driver-card b{font-size:20px;letter-spacing:-.5px}.driver-card div>span{font-size:10px;color:#8194a1}.driver-card>i{font-size:24px;margin-left:2px}.intro-footer{font-size:8px;letter-spacing:1.6px;color:#effcff}
.place{gap:3px}.place>b{font-size:84px;-webkit-text-stroke:2.5px #284c77;letter-spacing:-5px}.place>span{margin-top:8px}.place strong{font-size:22px;font-weight:900;letter-spacing:-1px}.place small{font-size:8px;letter-spacing:1.4px;font-weight:750;margin-top:7px;text-shadow:0 1px 2px #264d6f}.lap-badge{gap:12px;transform:none;padding:12px 19px 12px 15px;border-width:2px;border-radius:15px;background:var(--panel);box-shadow:var(--shadow)}.lap-badge>i{font-size:0}.lap-badge .icon{width:27px;height:27px}.lap-badge small{letter-spacing:2px;font-size:8px}.lap-badge b{font-size:27px}.lap-badge em{font-size:18px}.top-left{gap:25px}.course-label b{font-size:12px;letter-spacing:2.3px;font-weight:850}.course-label span{font-size:8px;letter-spacing:2px;margin-top:7px;color:#f5fdff}.race-progress{width:148px;height:3px;border-radius:4px;background:#ffffff50;margin:12px auto 0;overflow:hidden}.race-progress>i{display:block;height:100%;width:0;background:#fff1a5;border-radius:4px;transition:width .2s linear}.timer{border-radius:14px;padding:12px 17px;background:var(--panel);box-shadow:var(--shadow);text-align:left}.timer small{font-size:8px;letter-spacing:1.8px;margin-bottom:5px}.timer b{font-size:19px;font-weight:800;letter-spacing:.7px}.top-right{gap:13px}.top-right button{width:44px;height:45px;display:grid;place-items:center;border-width:2px;border-radius:13px;box-shadow:var(--shadow)}.top-right button .icon{width:20px;height:20px}
.item-slot{gap:12px;padding:10px 12px 10px 10px;border-width:2px;border-radius:17px;background:var(--panel);box-shadow:var(--shadow);transition:border-color .2s,box-shadow .2s}.item-slot>div:nth-child(2){width:162px}.item-slot b{font-size:11px;letter-spacing:1.3px;font-weight:850}.item-slot span{font-size:10px;line-height:1.5;color:#8699a5;margin-top:4px;max-width:165px}.item-slot kbd{margin-left:0;padding:7px 8px;font-size:10px;border-radius:7px}.item-icon{width:49px;height:49px;font-size:30px;border-radius:12px;border-width:2px;transform:rotate(-4deg)}.item-icon .icon{width:31px;height:31px;filter:drop-shadow(0 2px 0 #d7883140)}.item-slot.ready{border-color:#fff3b5;box-shadow:0 4px 0 #be884425,0 0 24px #ffe8a640}.item-slot.ready kbd{background:#e99546}.item-slot.ready .item-icon{border-color:#ffc25c;background:#ffdc70}
.bottom-left{left:28px}.map-caption{display:flex;align-items:center;gap:6px;margin:0 0 0 26px;color:#fff;font-size:8px;letter-spacing:1.8px;font-weight:800;text-shadow:0 1px 4px #3b718e}.map-dot{width:5px;height:5px;border-radius:50%;background:#fff1a5;box-shadow:0 0 0 3px #fff3}#minimap{width:202px;height:167px}.coins{margin-top:1px;padding:7px 13px;gap:9px;border-width:2px;box-shadow:var(--shadow)}.coins b{font-size:23px;font-variant-numeric:tabular-nums}.coins i{width:25px;height:25px;font-size:17px}.coins span{font-size:10px;letter-spacing:.5px}.bottom-right{filter:none;bottom:76px}.speed{position:relative;width:202px;height:123px;margin-left:auto;justify-content:center;align-items:flex-end;padding:0 10px 15px;gap:8px}.speed-dial{position:absolute;width:202px;height:116px;inset:0;overflow:visible;fill:none;stroke-linecap:round;stroke-width:6;filter:drop-shadow(0 2px 0 #234d702b)}.dial-track{stroke:#ffffff70}#speed-dial-fill{stroke:#fff1ac;stroke-dasharray:100;stroke-dashoffset:100;transition:stroke-dashoffset .12s linear}.speed b{position:relative;font-size:62px;-webkit-text-stroke:2px #294e78;letter-spacing:-3px;line-height:1;text-shadow:0 3px 0 #214d7833}.speed span{position:relative;font-size:9px;letter-spacing:1px;margin-bottom:7px;text-shadow:0 2px 2px #284b76}.drift-meter{min-width:257px;border-width:2px;border-radius:11px;padding:10px 12px;box-shadow:var(--shadow);gap:10px}.drift-meter>span{font-size:8px;letter-spacing:1.5px}.drift-meter>div{width:103px;height:7px}.drift-meter>b{font-size:8px;letter-spacing:.6px;min-width:50px}#turbo-label{font-size:14px;letter-spacing:1.6px;height:21px;margin-right:19px;text-shadow:1px 2px #d57d44}.race-help{bottom:17px;padding:10px 17px;background:#285271a6;border:1px solid #ffffff26;border-radius:12px;gap:17px;box-shadow:0 6px 18px #36506c0c;font-size:9px;backdrop-filter:blur(7px);text-shadow:none;color:#e5f2f6;font-weight:500}.race-help kbd{font-size:8px;padding:4px 6px;border:0;border-radius:4px;background:#fffced;color:#365b79;font-weight:750;box-shadow:0 1px 0 #eff3f755}
#toast>b{font-size:31px;letter-spacing:-.5px}#toast>span{font-size:10px;padding:9px 15px;margin-top:10px;font-weight:650;letter-spacing:.1px}#wrong-way{font-size:11px;letter-spacing:1.2px;border-width:2px;border-radius:12px;padding:13px 20px}#countdown>span{font-size:12px;font-weight:650;border:2px solid #fff;box-shadow:0 4px 0 #345b7830}
.modal{width:458px;border-radius:25px;border-width:3px;padding:32px 34px;box-shadow:0 9px 0 #2f577b20,0 30px 80px #254d6435}.modal .tag{font-size:9px;letter-spacing:2px;padding:8px 13px;transform:none;border-radius:7px;background:#e9f3f7;box-shadow:none;border:0}.modal h2{font-size:30px;letter-spacing:-1px;margin:21px 0 8px}.modal .modal-subtitle{text-align:center;color:#8a9ca6;font-size:12px;line-height:1.6;margin:0 0 24px}.control-list{border-top:1px solid #dde8e9;border-bottom:1px solid #dde8e9;padding:8px 0}.control-list>div{display:flex;align-items:center;justify-content:space-between;padding:10px 1px;font-size:11px;color:#668097}.control-list kbd{padding:5px 8px;font-size:9px;letter-spacing:.3px;border:1px solid #dce5e8;background:#f0f5f6;box-shadow:0 2px 0 #d7e3e740}.driving-tip{display:flex;align-items:flex-start;gap:10px;background:#fff3d7;border:1px solid #f4e8ca;border-radius:10px;margin-top:18px;padding:12px;text-align:left;color:#9b865b}.driving-tip .icon{width:17px;height:17px;color:#e3ac52;margin-top:2px}.driving-tip span{font-size:10px;line-height:1.75}.modal>button:not(.text-button){font-size:12px;letter-spacing:1.2px;padding:14px 17px;border-radius:12px;border-width:2px;box-shadow:0 5px 0 #c95740;margin-top:23px}.modal>button.secondary{font-size:11px;letter-spacing:.2px;background:#eef4f6;color:#6e8798;box-shadow:0 3px 0 #d7e3e8;margin-top:14px;padding:12px}.text-button{font-size:10px;color:#8097a5;margin-top:19px;letter-spacing:.3px;padding:5px 12px}.result{width:490px}.result h2{font-size:27px;margin:13px 0 5px}#finish-medal{height:74px;width:74px;display:grid;place-items:center;background:#fff0c7;border:1px solid #f6dfa5;border-radius:50%;margin:23px auto 13px;color:#efa952}#finish-medal .icon{width:36px;height:36px}.result-rank{gap:12px;margin-bottom:9px}.result-rank>b{font-size:88px}.result-rank>span{display:flex;flex-direction:column;align-items:flex-start;gap:4px}.result-rank strong{font-size:23px;color:#416887;font-style:italic}.result-rank small{font-size:8px;letter-spacing:1.1px;font-weight:800;color:#97a6b0}.result-stats{border-top:1px solid #e0e8e8;padding:20px 0 3px;margin-top:16px}.result-stats>div{flex:1;padding:0 7px}.result-stats>div+div{border-left:1px solid #e0e8e8}.result-stats small{font-size:8px;letter-spacing:1.2px}.result-stats b{font-size:17px;margin-top:8px;font-weight:800}.result>button:not(.text-button){margin-top:25px}
@media(min-width:1450px){.intro-content{left:8%}.driver-card{right:9%}.top-left{left:38px}.top-right,.item-slot{right:36px}}
@media(max-width:1100px){.top-left{gap:17px}.item-slot>div:nth-child(2){width:144px}.item-slot span{font-size:9px}.race-help{gap:12px;padding:9px 12px;font-size:8px}.race-help kbd{font-size:8px;padding:3px 5px}.driver-card{min-width:270px;padding:15px 18px}.driver-card b{font-size:18px}.intro-content h2{font-size:21px}.quick-controls{gap:10px}}
@media(max-height:720px){.intro-content h2{margin-top:27px}.top-left{top:18px}.place>b{font-size:69px}.place strong{font-size:18px}.top-right{top:20px}.timer{padding:8px 13px}.timer b{font-size:17px}.item-slot{top:114px;padding:8px}.bottom-right{bottom:60px}.speed{height:105px;width:176px;padding-bottom:10px}.speed-dial{width:176px;height:102px}.speed b{font-size:53px}.drift-meter{padding:8px 10px}.bottom-left{bottom:55px}#minimap{width:165px;height:136px}.coins{padding:5px 10px}.coins b{font-size:20px}.race-help{bottom:12px;padding-top:8px;padding-bottom:8px}.modal{padding:23px 30px}.modal h2{margin-top:17px;font-size:26px}.modal .modal-subtitle{margin-bottom:15px}.control-list>div{padding:7px 1px}.driving-tip{margin-top:13px;padding:10px}.modal>button:not(.text-button){margin-top:18px}.text-button{margin-top:12px}#finish-medal{width:60px;height:60px;margin-top:16px}.result-rank>b{font-size:72px}.result-stats{padding-top:15px;margin-top:10px}}
@media(max-width:700px){.intro-top{left:22px;top:23px}.intro-content h2{font-size:25px}.intro-content p{font-size:15px}.intro-footer span:last-child{display:none}.top-left{gap:10px;left:14px}.place>b{font-size:59px}.place>span{margin-left:5px}.place strong{font-size:15px}.place small{font-size:6px;letter-spacing:.6px}.lap-badge{padding:8px 11px;border-radius:11px}.lap-badge small{font-size:7px}.lap-badge b{font-size:22px}.timer{padding:8px 10px}.timer b{font-size:14px}.timer small{font-size:6px}.top-right{right:12px;gap:8px}.top-right button{width:35px;height:37px}.item-slot{right:13px;top:106px}.item-slot>div:nth-child(2){display:none}.item-icon{width:40px;height:40px}.item-slot kbd{font-size:9px;padding:5px 7px}.bottom-left{left:5px;bottom:81px}#minimap{width:132px;height:110px}.map-caption{font-size:6px;letter-spacing:1.1px;margin-left:22px}.coins{margin-left:20px}.bottom-right{right:14px;bottom:81px}.speed{width:157px;height:96px;padding-bottom:10px}.speed-dial{width:157px;height:92px}.speed b{font-size:47px}.speed span{font-size:7px}.drift-meter{min-width:155px;gap:8px;padding:8px}.drift-meter>div{width:82px}.drift-meter>b{display:none}.race-help{width:calc(100% - 24px);gap:7px 12px;bottom:12px;flex-wrap:wrap;justify-content:center;padding:9px;font-size:8px}.race-help kbd{font-size:7px}.modal{padding:25px}.result-stats b{font-size:14px}.result-stats small{font-size:7px;letter-spacing:.7px}}
@media(prefers-reduced-motion:reduce){.item-slot.ready .item-icon{animation:none}button,#toast,.race-progress>i,#speed-dial-fill{transition:none}}

#model-status{opacity:.85}#model-status.ready{opacity:1}#model-status.ready::before{content:"●";color:#e8ffbb;margin-right:8px;font-size:7px}
/* Bilingual preferences and separate music / effects mixer. */
.menu-settings{display:flex;align-items:center;gap:10px;pointer-events:auto}.menu-settings label{display:flex;align-items:center;gap:9px;background:#fffdf0e8;padding:6px 10px 6px 14px;border:2px solid white;border-radius:12px;font-size:10px;color:#52768d;font-weight:700}.menu-settings select,.language-row select{font:inherit;font-size:11px;font-weight:700;color:#315673;background:#fffef8;border:1px solid #dbe5e7;border-radius:7px;padding:7px 25px 7px 9px;cursor:pointer}.menu-settings button{border:2px solid white;border-radius:12px;padding:12px 14px;font-size:10px;color:#3b6680;background:#fff2c9;font-weight:750}.audio-settings{border-top:1px solid #dce5e7;margin-top:20px;padding-top:14px}.settings-heading{text-align:left;color:#8499a6;font-size:9px;letter-spacing:1.3px;text-transform:uppercase;margin-bottom:10px}.language-row{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#56758d;margin-bottom:8px}.mixer-row{display:flex;align-items:center;gap:14px;justify-content:space-between;margin-top:10px}.mixer-row button{background:#edf4f5;border:1px solid #dde9ea;border-radius:7px;color:#53788e;font-size:10px;font-weight:650;padding:8px 10px;min-width:142px;text-align:left}.mixer-row button[aria-pressed="true"]{background:#fff1c9;border-color:#f6df9d;color:#97703b}.mixer-row input{width:140px;accent-color:#ed9b50;cursor:pointer}.audio-settings small{display:block;text-align:left;font-size:9px;color:#90a2ab;margin-top:12px}.modal-wrap{overflow-y:auto;padding:20px 0}.modal{max-height:calc(100dvh - 40px);overflow-y:auto;scrollbar-width:thin}.modal:has(.audio-settings){padding-top:26px;padding-bottom:24px}.modal:has(.audio-settings) h2{margin-top:15px}.modal:has(.audio-settings) .modal-subtitle{margin-bottom:14px}.modal:has(.audio-settings) .control-list>div{padding:7px 1px}.modal:has(.audio-settings) .driving-tip{margin-top:12px}.modal:has(.audio-settings)>button:not(.text-button){margin-top:14px;padding:12px}html[lang="zh-CN"] .intro-content h1{letter-spacing:2px;font-size:clamp(74px,7vw,108px);line-height:.95}html[lang="zh-CN"] .intro-content h2{letter-spacing:1px}html[lang="zh-CN"] .intro-content p{font-size:14px}html[lang="zh-CN"] .race-help{gap:18px}html[lang="zh-CN"] .place strong{font-size:20px}html[lang="zh-CN"] .settings-heading{letter-spacing:1px}@media(max-width:700px){.menu-settings{gap:6px}.menu-settings label{padding:4px;border-radius:9px}.menu-settings label>span{display:none}.menu-settings button{padding:10px 8px;font-size:9px;border-radius:9px}.menu-settings select{padding:6px 17px 6px 6px;font-size:10px}.intro-top .logo-mini{font-size:12px}.mixer-row input{width:105px}.mixer-row button{min-width:123px}html[lang="zh-CN"] .race-help{gap:8px 14px}}

/* Three-stage tour. Keep the start menu compact and legible. */
.intro-content h1{font-size:clamp(66px,8.7vw,128px);line-height:.88;margin-bottom:18px}
.intro-content h2{margin-bottom:8px}.intro-content>p{margin-bottom:16px}
.stage-picker{display:flex;gap:8px;margin:12px 0 18px;max-width:520px}
.stage-picker button{padding:12px 13px;min-width:0;flex:1;text-align:left;border:1px solid #ffffff8a;background:#ffffffcf;color:#294767;border-radius:14px;box-shadow:0 3px 0 #577a9820;cursor:pointer}
.stage-picker button small{display:block;font-size:9px;letter-spacing:1px;margin-bottom:5px;color:#567086}.stage-picker button b{font-size:12px;white-space:nowrap}.stage-picker button.selected{background:#ffefba;border-color:#f5b95e;box-shadow:0 3px 0 #cf994b}.stage-picker button:hover{transform:translateY(-2px)}
.demo-controls{display:flex;gap:8px;margin-top:15px}.demo-controls button{border:1px solid #719eac60;background:#e8f5f0d9;color:#36576f;border-radius:9px;padding:9px 13px;font-size:10px;font-weight:800;letter-spacing:.4px;cursor:pointer}
#record-status{display:block;font-size:10px;max-width:410px;line-height:1.5;color:#3c647c;margin-top:7px}#record-download{display:block;font-size:12px;color:#294e71;margin-top:5px}
#demo-badge{position:fixed;bottom:61px;left:50%;transform:translateX(-50%);background:#254667df;border:1px solid #ffffff77;color:#fff2bb;border-radius:20px;padding:8px 16px;font-size:10px;font-weight:800;letter-spacing:1px;z-index:25;pointer-events:none}
#stop-recording{position:fixed;top:90px;right:28px;background:#fff0e8;border:1px solid #ec8f7d;color:#a94e43;border-radius:9px;padding:8px 12px;font-size:10px;font-weight:800;z-index:60;cursor:pointer}
#cup-summary{font-size:12px;color:#54708a}#next-stage{margin-bottom:8px}
@media(max-height:850px){.intro-content{top:47%}.intro-content h1{font-size:clamp(60px,8vw,105px);margin-bottom:12px}.intro-content h2{font-size:20px}.intro-content>p{font-size:13px}.stage-picker{margin:10px 0}.stage-picker button{padding:9px 11px}.quick-controls{margin-top:12px}.demo-controls{margin-top:10px}.race-spec{margin-top:12px}}
@media(max-width:800px){.stage-picker{max-width:440px}.stage-picker button{padding:9px}.stage-picker button b{font-size:10px}.demo-controls button{font-size:9px;padding:8px}.driver-card{display:none}.intro-content{max-width:90vw}.course-label{max-width:35vw}}
/* Paradise presentation: large typography and a quiet, corner-based racing HUD. */
#intro{background:linear-gradient(90deg,#183d48b8 0%,#31596670 31%,transparent 65%)}
.intro-content{left:7.2%;top:50%;transform:translateY(-48%)}
.intro-content .tag{background:none;border:0;box-shadow:none;color:#9af2e1;padding:0;transform:none;font-size:10px;letter-spacing:2.4px}
.intro-content h1{font-family:'Arial Black','Avenir Next',sans-serif;font-size:clamp(90px,10.6vw,155px);font-weight:1000;line-height:.80;letter-spacing:-8px;margin:25px 0 30px;transform:none;-webkit-text-stroke:0;text-shadow:0 5px 18px #153f4425;color:#fff7d8}
.intro-content h1>span{color:#ff875f}.intro-content h2{font-size:16px;letter-spacing:5px;color:#fff6dc;text-shadow:none;margin:0 0 14px}.intro-content>p{color:#e4f0e8;font-size:12px;margin-bottom:17px}
#start{border:0;color:#244849;background:#ffe07b;box-shadow:0 5px 0 #caa85270;padding:20px 25px;border-radius:15px;font-size:13px;letter-spacing:1px;min-width:290px}
.stage-picker{max-width:440px}.stage-picker button{background:#315e62b8;border-color:#b3d0c24a;color:#fff4dd;border-radius:8px;padding:10px}.stage-picker button small{color:#b4e0d2;font-size:8px}.stage-picker button b{font-size:10px}.stage-picker button.selected{background:#fff0bde8;border-color:#f2d98d;box-shadow:none;color:#294c4e}.stage-picker button.selected small{color:#688b80}
.race-spec,.quick-controls{color:#f3eed8}.quick-controls kbd{background:#ffffff14;color:#fff4dc;border-color:#ffffff77;box-shadow:none}.demo-controls button{background:#234c5888;color:#ffefd4;border-color:#b8ded866;font-size:9px}#record-status{color:#d2e4d9;font-size:9px}.intro-footer{color:#fff2d9}.logo-mini{letter-spacing:2px;font-size:12px;text-shadow:none}
.driver-card{background:#2a5761ad;color:#fff9db;border:1px solid #bdd7d36b;box-shadow:none;transform:none;border-radius:18px}.driver-card small,.driver-card div>span{color:#b8e4d7}.driver-number{color:#ffeab8}
.place>b{-webkit-text-stroke:0;text-shadow:0 4px 12px #37564840;font-family:'Arial Black',sans-serif;font-size:90px}.place{filter:none}.place>span{text-shadow:0 2px 6px #244c4666}.place small{font-size:8px}
.top-left{top:26px;left:34px;gap:0}.lap-badge{position:fixed;right:38px;top:24px;background:none;border:0;box-shadow:none;color:#fff8dc;transform:none;padding:0}.lap-badge>i{display:none}.lap-badge small{color:#9eeede;letter-spacing:3px}.lap-badge b{font-size:39px;text-shadow:0 3px 8px #284a4833}.lap-badge em{color:#ffefd1;font-size:19px}.top-right{left:50%;right:auto;top:24px;transform:translateX(-50%)}.timer{background:#365a658a;color:#fff7db;border:0;box-shadow:none;text-align:center;border-radius:12px;padding:11px 18px}.timer small{color:#9ff4e1}.timer b{font-size:18px}.top-right button{position:fixed;left:120px;top:0;background:#ffffff99;border:0;box-shadow:none;width:33px;height:35px;border-radius:9px}.course-label{top:auto;bottom:28px;left:110px;max-width:190px}.course-label b{font-size:8px;letter-spacing:1px}.course-label span,.race-progress{display:none}
.item-slot{left:38px;right:auto;top:134px;background:none;border:0;box-shadow:none;padding:0;display:block}.item-icon{background:#315e6a85;border:0;border-radius:13px;color:#abeee0;text-shadow:none;transform:none;width:61px;height:61px}.item-slot>div:nth-child(2){width:70px;text-align:center}.item-slot b{color:#fff4d9;font-size:8px;margin-top:9px}.item-slot span,.item-slot kbd{display:none}
.bottom-right{left:50%;right:auto;bottom:44px;transform:translateX(-50%);filter:none}.speed{height:auto;width:auto;justify-content:center;padding:0}.speed-dial{display:none}.speed b{font-family:'Arial Black',sans-serif;-webkit-text-stroke:0;font-size:61px;text-shadow:0 4px 12px #244c4644}.speed span{color:#9ee7d7;font-size:9px}.drift-meter{background:none;border:0;box-shadow:none;border-radius:0;position:relative;display:block;padding:8px 0 0;min-width:240px;height:28px;color:#fff4d9}.drift-meter>div{width:240px;height:5px;background:#254f5266}.drift-meter>span{position:absolute;top:21px;left:0;font-size:7px}.drift-meter>b{position:absolute;top:21px;right:0;text-align:right;color:#fff4d9;font-size:7px}
.bottom-left{bottom:40px;left:22px}#minimap{width:175px;height:145px}.map-caption{display:none}.coins{position:fixed;right:30px;bottom:37px;background:none;box-shadow:none;border:0;color:#fff7dc}.coins b{font-size:32px;text-shadow:0 3px 8px #284a4833}.coins span{color:#f3e9ca}.coins i{background:#ed9466;border:0}
.race-help{bottom:8px;background:none;box-shadow:none;font-size:8px;opacity:.8;padding:0}.race-help kbd{padding:2px 4px;background:#ffffff33;color:#fff9dc;border-color:#ffffff55}.race-help span:last-child{display:none}
#demo-badge{bottom:12px;left:auto;right:20px;transform:none;font-size:8px;background:#315c6380;border:0;padding:6px 9px}#stop-recording{top:auto;bottom:8px;right:17px;opacity:.55;font-size:8px;padding:4px 7px}
@media(max-height:800px){.intro-content h1{font-size:clamp(78px,9vw,126px);margin:18px 0 23px}.intro-content h2{font-size:13px}.intro-content>p{font-size:11px;margin-bottom:9px}.stage-picker{margin:10px 0 13px}.intro-content{top:49%}.demo-controls{margin-top:10px}.intro-top{top:22px}.intro-footer{bottom:18px}.quick-controls{margin-top:15px}}
.drive-options{display:flex;gap:18px;margin-top:13px;color:#fff5d7;font-size:10px}.drive-options label{display:flex;align-items:center;gap:6px;cursor:pointer}.drive-options input{accent-color:#ffdc78}

#game-frame{position:fixed;inset:0}body.capture-mode{background:#000}body.capture-mode #game-frame{inset:auto;left:50%;top:50%;transform:translate(-50%,-50%);overflow:hidden}body.capture-mode #stop-recording{opacity:.15}body.capture-mode #demo-badge{font-size:8px}
body.capture-mode .intro-content{top:76px;transform:none;left:7%}body.capture-mode .intro-content h1{font-size:92px;margin:16px 0 20px;letter-spacing:-5px}body.capture-mode .intro-content h2{font-size:12px}body.capture-mode .quick-controls,body.capture-mode .drive-options,body.capture-mode .intro-footer{display:none}body.capture-mode .demo-controls{margin-top:12px}body.capture-mode .driver-card{bottom:55px}body.capture-mode #record-status{display:none}

/* Public build: keep play controls, omit capture tools. */
#record-demo,#record-status,#record-download,#stop-recording{display:none!important}
@media(max-height:720px){.intro-content h1{font-size:90px;margin:14px 0 18px}.intro-content .tag{display:none}.intro-content{top:50%}.intro-footer{bottom:12px}}
