@font-face{font-family:LocalUI;src:local('Apple SD Gothic Neo');font-display:swap}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#112a3d;color:#f8fbff;font-family:LocalUI,'Noto Sans KR',system-ui,sans-serif;font-size:16px}button,select,input{font:inherit}button,select,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.5}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #9efcf3;outline-offset:4px}button{color:inherit;border:0}a{color:inherit;text-decoration:none}.hidden{display:none!important}#world{position:fixed;inset:0;width:100%;height:100%;display:block}.vignette{position:fixed;inset:0;pointer-events:none;background:linear-gradient(180deg,#10223580,transparent 22%,transparent 64%,#0a1c3690),linear-gradient(90deg,#0b24315e,transparent 35%,transparent 70%,#0b23352e)}.topbar{position:absolute;z-index:5;top:0;left:0;width:100%;height:85px;padding:0 3.1%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff20}.brand{display:flex;align-items:center;font-weight:900;font-size:23px;letter-spacing:-.8px}.brand-mark{font-family:Arial,sans-serif;font-style:italic;font-size:48px;line-height:.7;margin-right:13px;color:#bff961;transform:scaleX(1.25)}.edition{font-size:12px;letter-spacing:1px;color:#d4e4eb;margin-left:19px;font-weight:500;padding-left:20px;border-left:1px solid #ffffff4a}.top-actions{display:flex;gap:9px}.icon-button{display:flex;align-items:center;justify-content:center;gap:8px;background:#132c4166;border:1px solid #ffffff30;border-radius:50%;width:39px;height:39px;font-size:23px;transition:background .2s}.icon-button:hover{background:#264f66c9}#sound{width:auto;border-radius:22px;padding:0 13px}#sound span{font-size:12px}.race-intro{position:absolute;left:4.4%;top:16%;}.eyebrow{font-size:13px;font-weight:700;letter-spacing:2px;display:flex;align-items:center;gap:9px}.eyebrow i{display:block;width:20px;height:3px;background:#bcf869}.race-intro h1{font-size:clamp(40px,4.4vw,72px);letter-spacing:-3px;line-height:1.13;font-weight:950;margin:23px 0 20px;text-shadow:0 4px 30px #173d4955}.race-intro em{font-style:normal;color:#c7ff78}.race-intro p{font-size:15px;line-height:1.8;color:#f1f5f2;text-shadow:0 1px 8px #0f2734}.track-card{position:absolute;right:3.2%;top:14%;width:262px;padding:18px 20px 0;background:linear-gradient(145deg,#182f46cf,#132d45ad);border:1px solid #e4fdff30;backdrop-filter:blur(18px);border-radius:4px 22px 4px 4px;box-shadow:0 15px 50px #0c273333}.track-top{display:flex;align-items:center;justify-content:space-between;font-size:12px;letter-spacing:1px;color:#c7dce7}.track-top b{font-size:23px;font-style:italic;font-weight:900;color:#c2ff78}#track-preview{display:block;width:100%;height:127px;margin:5px 0 8px}.track-card h2{font-size:24px;letter-spacing:-1px;margin:0 0 5px}.track-card p{font-size:11px;color:#c2d4df;margin:0}.track-meta{display:flex;justify-content:space-between;padding:17px 0;font-size:11px;color:#c5d5df}.track-meta strong{font-size:22px;color:white;font-style:italic;margin-right:3px}.speed-only{border-top:1px solid #ffffff25;padding:13px 0;font-size:12px;font-weight:700}.speed-only span{float:right;font-weight:400;color:#d2e3ea;font-size:11px}.selected-tag{position:absolute;bottom:264px;left:50%;display:flex;align-items:center;gap:12px;text-shadow:0 2px 6px #102438}.tag-line{height:2px;width:36px;background:#d8fdba;transform:rotate(-30deg);transform-origin:right}.selected-tag small{display:block;font-size:11px;color:#d9edee;letter-spacing:1px}.selected-tag strong{display:block;font-size:24px;font-weight:900;line-height:1.4}.selected-tag div>span{font-size:11px;color:#e4eeee}.garage-dock{position:absolute;bottom:0;left:0;width:100%;padding:18px 3.2% 16px;background:linear-gradient(100deg,#0c1b2dfa,#13263afa);border-top:1px solid #ffffff38;box-shadow:0 -10px 60px #102b4222}.roster-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.roster-heading h2{margin:0;font-size:15px;font-weight:700}.roster-heading h2 span{font-size:11px;color:#b9cecc;margin-left:9px;border:1px solid #63776a;padding:2px 5px}.roster-heading>span{font-size:12px;color:#b3c5d2}.dock-content{display:flex;gap:24px;align-items:center}#roster{display:flex;gap:8px;overflow-x:auto;min-width:0;flex:1;scrollbar-width:thin;scrollbar-color:#517285 #122333;padding:1px 2px 9px}.pet-card{height:99px;min-width:87px;position:relative;background:linear-gradient(150deg,#2c455799,#20304299);border:1px solid #526b794d;border-radius:6px;overflow:hidden;transition:border-color .15s,background .15s,transform .15s;padding:0;flex:0 0 87px}.pet-card:hover{border-color:#ffffff88;background:#324f60}.pet-card[aria-pressed=true]{border:2px solid #cbfc7b;background:linear-gradient(130deg,#b5e17344,#345d6666);box-shadow:0 0 16px #b5fd7820}.pet-card[aria-pressed=true]:after{content:'✓';position:absolute;right:5px;top:3px;color:#d0ff8a;font-size:12px}.pet-card img{height:79px;width:73px;object-fit:contain;filter:drop-shadow(0 4px 4px #10202a);transition:transform .2s}.pet-card:hover img{transform:scale(1.07)}.pet-card span{position:absolute;bottom:0;left:0;right:0;font-size:10px;font-weight:600;background:#0d1e2dd9;padding:5px 0;white-space:nowrap;letter-spacing:-.3px}.launch-panel{width:228px;flex-shrink:0;align-self:stretch;display:flex;flex-direction:column;justify-content:center;padding-bottom:8px}.primary{background:#c4fb70;color:#19303a;border:1px solid #e1ffb3;font-weight:900;font-size:18px;min-height:55px;display:flex;justify-content:center;align-items:center;gap:28px;border-radius:5px;box-shadow:0 4px 24px #a4ed4220;transition:filter .2s,transform .2s}.primary:hover{filter:brightness(1.12);transform:translateY(-1px)}.primary span{font-size:28px}.difficulty-select{display:flex;align-items:center;justify-content:space-between;margin-top:10px;font-size:12px;color:#c4d5df}.difficulty-select select{color:#effbf5;background:#1e3548;border:1px solid #587082;border-radius:3px;padding:3px 25px 3px 8px;font-size:12px}.garage-footer{display:flex;justify-content:space-between;align-items:center;margin-top:12px}.key-guide{display:flex;gap:19px;font-size:11px;color:#bed0dc}.key-guide>span{display:flex;align-items:center;gap:4px}kbd{display:inline-block;font-family:inherit;font-size:10px;line-height:1.6;min-width:19px;text-align:center;font-weight:600;background:#d0e8fa17;border:1px solid #b8d6e444;border-bottom:2px solid #b8d6e44a;border-radius:3px;color:#edf9ff;padding:0 4px}.text-button{padding:4px 0;background:none;color:#ccdddf;font-size:12px}.text-button:hover{color:#d1ff90}.race-top-left{position:absolute;top:116px;left:3.2%;display:flex;gap:30px;align-items:center}.position-box{display:flex;align-items:baseline;gap:8px;text-shadow:0 3px 22px #102836}.position-box>strong{font-size:88px;font-weight:950;line-height:.9;font-style:italic;color:#dbff9b;letter-spacing:-6px}.position-box>span{font-size:18px;font-weight:800}.position-box small{font-size:14px;color:#d4e1e2;margin-left:4px}.lap-box{border-left:1px solid #fff5;padding-left:26px}.lap-box>span{font-size:11px;display:block;letter-spacing:1px;color:#e1e8ed}.lap-box>b{font-size:21px;display:block;padding:4px 0 5px}.lap-box strong{font-size:27px}#lap-dots{display:flex;gap:4px}#lap-dots i{display:block;width:24px;height:3px;background:#ffffff44}#lap-dots i.done{background:#ceff83}.race-timing{position:absolute;right:3.2%;top:115px;text-align:right;text-shadow:0 1px 10px #172c40}.race-timing>span{font-size:11px;letter-spacing:2px;display:block;color:#e0eef4}.race-timing>strong{display:block;font-size:32px;font-weight:700;font-variant-numeric:tabular-nums;margin:5px 0}.race-timing small{font-size:11px;color:#d2e0e7}.race-timing b{color:#f9f9ed;font-variant-numeric:tabular-nums;margin-left:9px}.minimap-wrap{position:absolute;right:2.6%;top:235px;width:205px;height:170px;border-radius:12px;background:#152b414a}#minimap{width:100%;height:100%}#leaderboard{position:absolute;top:234px;left:3.2%;padding:0;margin:0;list-style:none;width:163px;display:flex;flex-direction:column;gap:5px}#leaderboard li{display:flex;align-items:center;height:28px;background:linear-gradient(90deg,#183146ba,#18314620);padding:2px 8px 2px 4px;font-size:11px;border-radius:3px;gap:6px;color:#f5f9fc}#leaderboard li.me{border-left:3px solid #c7ff77;background:linear-gradient(90deg,#a9d06988,#27465325)}#leaderboard li>b{width:13px;color:#d7f4e3;font-size:12px}#leaderboard img{width:25px;height:27px;object-fit:contain}#leaderboard li>span{flex:1}#leaderboard small{font-size:10px;color:#c8dde1}.track-caption{position:absolute;left:3.5%;bottom:86px;text-shadow:0 2px 12px #142d40}.track-caption>span{font-size:11px;color:#e5e7e6;letter-spacing:1px}.track-caption strong{display:block;font-size:24px;font-weight:900;margin-top:7px}#corner-hint{font-size:12px;margin-top:6px;color:#d7fa98}.boost-cluster{position:absolute;bottom:95px;left:50%;width:310px;transform:translateX(-50%);filter:drop-shadow(0 2px 12px #152333)}.drift-line{display:flex;justify-content:space-between;color:#dbe8ee;font-size:11px;letter-spacing:.3px;margin-bottom:6px}.drift-meter{height:3px;background:#101f3377;margin-bottom:14px}.drift-meter i{display:block;height:100%;width:0;background:#66e8ff;box-shadow:0 0 12px #59ecff}.boost-info{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:7px}.boost-info b{font-size:16px;font-style:italic;color:#d4ff92}.boost-info>span{font-size:11px}.boost-meter{height:15px;background:#0b233cad;border:1px solid #c4e7dd65;transform:skewX(-18deg);position:relative;overflow:hidden}.boost-meter i{display:block;height:100%;width:80%;background:linear-gradient(90deg,#66e8d0,#d1ff7f);box-shadow:0 0 12px #acff84}.boost-meter>span{position:absolute;left:40%;height:100%;width:3px;top:0;background:#173240}.boost-meter>span:last-child{left:80%}.speedometer{position:absolute;right:3.6%;bottom:76px;width:222px;text-align:right;filter:drop-shadow(0 2px 15px #163039)}.speed-num{display:flex;align-items:baseline;justify-content:flex-end;gap:9px}.speed-num strong{font-weight:950;font-style:italic;font-size:87px;letter-spacing:-5px;line-height:1;font-variant-numeric:tabular-nums}.speed-num>span{font-size:12px;color:#e7f2ed}.speed-ticks{margin-top:9px;height:5px;background:repeating-linear-gradient(90deg,#bdd9de44 0,#bdd9de44 7px,transparent 7px,transparent 10px);transform:skewX(-20deg)}.speed-ticks i{display:block;height:100%;width:0;background:repeating-linear-gradient(90deg,#d2ff9b 0,#d2ff9b 7px,transparent 7px,transparent 10px)}.speedometer>small{font-size:11px;margin-top:9px;display:block;letter-spacing:1px;color:#dcf4de}.race-bottom-hint{position:absolute;bottom:28px;left:50%;transform:translateX(-50%);font-size:11px;color:#d7e6ea;white-space:nowrap}.race-bottom-hint>span{margin:0 9px;color:#b6ccd2}#countdown{position:absolute;top:41%;left:50%;transform:translate(-50%,-50%) skewX(-8deg);font-size:140px;color:#fff0b8;text-shadow:0 7px 0 #16384d,0 0 70px #ffdc9344;font-weight:950;pointer-events:none}#countdown.pulse{animation:count-pop .7s ease-out}@keyframes count-pop{0%{transform:translate(-50%,-50%) scale(1.6) skewX(-8deg);opacity:0}20%{opacity:1}100%{transform:translate(-50%,-50%) scale(1) skewX(-8deg)}}#toast{position:absolute;top:29%;left:50%;transform:translate(-50%,-10px);pointer-events:none;color:#efffe1;font-size:22px;font-weight:900;font-style:italic;text-align:center;white-space:pre-line;text-shadow:0 3px 12px #163042;opacity:0;transition:opacity .15s,transform .15s}#toast.show{opacity:1;transform:translate(-50%,0)}#speed-lines{position:fixed;inset:0;pointer-events:none;opacity:0;background:repeating-conic-gradient(from 4deg at 50% 45%,transparent 0deg 12deg,#bbf8ff77 12.2deg 12.45deg,transparent 12.6deg 27deg);mask-image:radial-gradient(ellipse at 50% 45%,transparent 25%,#000 100%);transition:opacity .2s}body.boosting #speed-lines{opacity:.5;animation:rush .17s linear infinite}body.boosting .speed-num strong{color:#c3fff0}body.reduced #speed-lines{display:none}@keyframes rush{from{transform:scale(1)}to{transform:scale(1.09)}}#flash{position:fixed;inset:0;pointer-events:none;border:0 solid transparent;transition:box-shadow .15s}#flash.hit{box-shadow:inset 0 0 100px #ff75448c}dialog{color:#f8fbff;background:linear-gradient(145deg,#1a3449f7,#102439fa);border:1px solid #91b9c44d;border-radius:12px;width:min(440px,calc(100% - 30px));padding:32px;box-shadow:0 20px 100px #071724aa;backdrop-filter:blur(24px);max-height:calc(100% - 30px);overflow:auto}dialog::backdrop{background:#0615238c;backdrop-filter:blur(6px)}dialog h2{font-size:30px;margin:10px 0;letter-spacing:-1px}dialog p{font-size:14px;line-height:1.7;color:#bdcedb}dialog>.primary,dialog>.secondary{width:100%;margin-top:13px}dialog>.text-button{display:block;text-align:center;margin:20px auto 0}.modal-eyebrow{font-size:11px;letter-spacing:1.7px;color:#c1fa87}.secondary{border:1px solid #afcdde55;background:#36506855;border-radius:5px;padding:13px;font-size:15px;font-weight:700;min-height:49px}.secondary:hover{background:#426a8055}.modal-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.modal-heading h2{font-size:24px}.modal-heading .icon-button{width:32px;height:32px}.setting{display:flex;align-items:center;justify-content:space-between;padding:18px 0;border-bottom:1px solid #ffffff15}.setting>span{font-size:15px}.setting small{display:block;color:#b6cedb;font-size:12px;margin-top:5px}.setting input{width:23px;height:23px;accent-color:#8df1df}.setting-note{font-size:12px!important;margin-bottom:0}.help-step{display:flex;align-items:flex-start;gap:17px;margin:17px 0 25px}.help-step>b{font-size:25px;font-style:italic;color:#9df7e6}.help-step h3{font-size:16px;margin:2px 0 7px}.help-step p{margin:0;font-size:13px}.help-note{border-top:1px solid #fff2;padding-top:16px;font-size:12px!important}.results{width:min(540px,calc(100% - 28px))}.result-hero{display:flex;align-items:center;justify-content:center;gap:32px;margin:7px 0 16px}.result-hero img{width:144px;height:166px;object-fit:contain;filter:drop-shadow(0 0 20px #bde8884d)}.result-hero h2{font-size:24px;margin:0}.result-hero h2 strong{font-size:82px;font-style:italic;line-height:1.1;color:#ffdf90;letter-spacing:-3px;margin-right:9px}.result-hero span{font-size:12px;color:#c4d9e2}.result-hero p{font-size:13px;margin:4px 0;color:#deedd7}.result-stats{display:flex;justify-content:space-between;gap:20px;border-block:1px solid #accdde33;padding:17px 0}.result-stats span{font-size:12px;color:#bfd5df;display:block;margin-bottom:6px}.result-stats b{font-size:25px;font-variant-numeric:tabular-nums;letter-spacing:-.6px}#result-laps{display:flex;gap:12px;margin:17px 0;font-size:11px;color:#bfced9}#result-laps>span{flex:1;background:#102335;border:1px solid #6a8b9a33;padding:8px;text-align:center;border-radius:4px}#result-laps b{display:block;color:#e7f0f4;font-size:12px;margin-top:4px;font-variant-numeric:tabular-nums}#result-standing{display:flex;flex-direction:column;gap:4px;font-size:12px;margin-bottom:20px}.standing-row{display:flex;align-items:center;gap:8px;min-height:25px}.standing-row.me{color:#baffec}.standing-row b{width:24px}.standing-row span{flex:1}.standing-row small{color:#bed2dd}.result-actions{display:flex;gap:10px}.result-actions>*{flex:1}.result-actions .primary{font-size:16px}.result-actions .secondary{font-size:14px}#loading{position:fixed;inset:0;z-index:30;display:flex;flex-direction:column;align-items:center;justify-content:center;background:radial-gradient(ellipse at 50% 35%,#146075,#082c42 70%);gap:15px}.load-emblem{font-size:100px;font-style:italic;color:#9ff8e8;animation:load-pulse 1s ease-in-out infinite}#loading b{font-size:22px}#loading span{font-size:13px;color:#bdd2df}.loading-track{width:210px;height:3px;background:#466071;margin-top:16px;overflow:hidden}.loading-track i{display:block;width:80px;height:100%;background:#ffdc8a;animation:load-bar 1.3s ease-in-out infinite}@keyframes load-bar{from{transform:translateX(-80px)}to{transform:translateX(220px)}}@keyframes load-pulse{50%{opacity:.55;transform:translateX(10px)}}#touch-controls{position:absolute;bottom:18px;left:18px;right:18px;justify-content:space-between;pointer-events:none}#touch-controls>div{display:flex;gap:8px}#touch-controls button{pointer-events:auto;touch-action:none;user-select:none;height:58px;min-width:58px;padding:0 13px;border:1px solid #d0edf360;border-radius:12px;background:#102e4588;font-size:13px;backdrop-filter:blur(8px)}#touch-controls button.pressed{background:#799d7999}#touch-controls .touch-boost{background:#ffdd91d9;color:#15323e;font-weight:900}body.touch #touch-controls:not(.hidden){display:flex}body:not(.touch) #touch-controls{display:none}body.touch .race-bottom-hint{display:none}
@media(min-width:1600px){.garage-dock{padding-bottom:23px;padding-top:21px}.pet-card{height:115px;min-width:100px;flex-basis:100px}.pet-card img{height:94px;width:85px}.pet-card span{font-size:11px}.selected-tag{bottom:285px}.race-intro{top:18%}}
@media(max-width:1100px){.race-intro h1{font-size:47px}.track-card{width:225px}.track-card p{font-size:10px}.track-card h2{font-size:22px}.launch-panel{width:184px}.key-guide{gap:9px}.key-guide>span{font-size:10px}.garage-footer>.text-button{font-size:11px}.edition{display:none}.boost-cluster{width:260px}.speedometer{width:190px}.speed-num strong{font-size:72px}.selected-tag{left:46%;bottom:255px}}
@media(max-width:760px){.topbar{height:64px;padding:0 18px}.brand{font-size:18px}.brand-mark{font-size:36px}.top-actions{gap:5px}.icon-button{width:32px;height:32px;font-size:19px}#sound span{display:none}#sound{width:32px;padding:0}.race-intro{left:22px;top:92px}.eyebrow{font-size:10px;letter-spacing:1px}.race-intro h1{font-size:35px;letter-spacing:-1.8px;margin:15px 0}.race-intro p{display:none}.track-card{right:17px;top:84px;width:165px;padding:10px 13px}.track-top{font-size:10px}.track-top b{font-size:18px}#track-preview{height:84px;margin:0}.track-card h2{font-size:17px}.track-card p{display:none}.track-meta{padding:10px 0;font-size:10px}.track-meta strong{font-size:17px}.speed-only{padding:8px 0;font-size:10px}.speed-only span{display:none}.garage-dock{padding:13px 17px 16px}.roster-heading{margin-bottom:9px}.roster-heading h2{font-size:13px}.roster-heading>span{font-size:10px}.dock-content{gap:10px;flex-wrap:wrap}#roster{flex-basis:100%;padding-bottom:8px}.pet-card{min-width:71px;flex-basis:71px;height:80px}.pet-card img{height:62px;width:58px}.pet-card span{font-size:9px}.launch-panel{flex-direction:row;align-items:center;width:100%;padding:0;gap:18px;justify-content:space-between}.launch-panel>.primary{width:58%;min-height:48px;font-size:16px}.difficulty-select{margin:0;gap:9px}.garage-footer{display:none}.selected-tag{left:49%;bottom:240px}.selected-tag strong{font-size:20px}.selected-tag div>span{font-size:10px}.tag-line{width:18px}.race-top-left{top:91px;left:20px;gap:20px}.position-box>strong{font-size:59px}.position-box>span{font-size:14px}.position-box small{font-size:11px}.lap-box{padding-left:16px}.lap-box>span{font-size:10px}.lap-box>b{font-size:16px}.lap-box strong{font-size:20px}#lap-dots i{width:16px}.race-timing{top:88px;right:18px}.race-timing>strong{font-size:23px}.race-timing>span{font-size:9px}.race-timing small{font-size:9px}.minimap-wrap{top:179px;right:12px;width:133px;height:118px}#leaderboard{top:190px;left:17px;width:125px;gap:3px}#leaderboard li{font-size:9px;height:24px}#leaderboard img{height:22px;width:21px}#leaderboard small{font-size:8px}.track-caption{display:none}.boost-cluster{bottom:138px;width:200px;left:22px;transform:none}.boost-info b{font-size:14px}.boost-info>span{font-size:9px}.drift-line{font-size:9px}.speedometer{right:20px;bottom:135px;width:133px}.speed-num strong{font-size:62px}.speed-num>span{font-size:10px}.speedometer>small{font-size:10px}#countdown{font-size:110px}#toast{font-size:18px;top:38%}#touch-controls button{height:55px;min-width:51px;padding:0 11px;font-size:11px}.race-bottom-hint{bottom:48px;font-size:9px}.result-hero{gap:15px}.result-hero img{width:115px;height:135px}.result-stats b{font-size:22px}dialog{padding:24px}.result-hero h2 strong{font-size:66px}}
@media(max-height:650px) and (min-width:761px){.topbar{height:58px}.race-intro{top:16%}.race-intro h1{font-size:40px;margin:15px 0}.race-intro p{font-size:12px}.track-card{top:75px;width:205px;padding:10px 15px 0}#track-preview{height:85px}.track-card h2{font-size:19px}.track-meta{padding:10px 0}.speed-only{padding:8px 0}.garage-dock{padding-top:10px;padding-bottom:10px}.pet-card{height:78px;min-width:76px;flex-basis:76px}.pet-card img{height:61px}.garage-footer{margin-top:4px}.selected-tag{bottom:207px}.race-top-left,.race-timing{top:81px}#leaderboard{top:191px}.minimap-wrap{top:177px}.boost-cluster{bottom:60px}.speedometer{bottom:43px}.track-caption{bottom:56px}.race-bottom-hint{bottom:16px}}
@media(max-height:500px){.race-intro{top:75px}.race-intro h1{font-size:31px}.race-intro .eyebrow,.race-intro p,.selected-tag,.garage-footer,.track-meta,.speed-only{display:none}.track-card{top:68px;width:156px}#track-preview{height:58px}.track-card h2{font-size:15px}.garage-dock{padding:8px 15px}.roster-heading{margin-bottom:5px}.pet-card{height:60px}.pet-card img{height:46px}.pet-card span{font-size:8px;padding:3px 0}.launch-panel{width:160px}.primary{min-height:39px;font-size:15px}.difficulty-select{margin-top:5px}.position-box>strong{font-size:50px}.race-top-left,.race-timing{top:77px}.race-timing>strong{font-size:22px}.minimap-wrap{top:160px;width:145px;height:110px}#leaderboard{top:155px;gap:2px}#leaderboard li{height:21px}#leaderboard li:nth-child(n+6){display:none}.speedometer{bottom:88px}.speed-num strong{font-size:54px}.boost-cluster{bottom:92px}.track-caption,.race-bottom-hint{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;transition-duration:.001ms!important}}

@media(max-width:450px){#touch-controls{left:12px;right:12px}#touch-controls>div{gap:5px}#touch-controls button{min-width:43px;padding:0 8px;font-size:10px}}
@media(max-width:520px){.track-card{top:80px;left:18px;right:18px;width:auto;height:75px;padding:10px 13px;border-radius:4px 16px 4px 4px}.track-top{font-size:9px}.track-top b{position:absolute;right:13px;top:12px;font-size:22px}#track-preview{display:none}.track-card h2{position:absolute;left:13px;top:34px;font-size:21px}.track-meta{position:absolute;right:52px;top:29px;gap:10px;padding:0}.track-meta>span:last-child{display:none}.track-meta strong{font-size:17px}.speed-only{display:none}.race-intro{top:183px;left:20px}.race-intro .eyebrow{font-size:9px;letter-spacing:.5px}.race-intro h1{font-size:30px;margin:12px 0}.selected-tag{left:52%;bottom:238px}.selected-tag div>span{max-width:130px;display:block;font-size:9px}.selected-tag strong{font-size:18px}.selected-tag small{font-size:10px}.tag-line{width:12px}.boost-cluster{width:155px;left:18px}.boost-info>span{display:none}.speedometer{width:115px;right:18px}.speed-num strong{font-size:53px}.drift-line{font-size:9px}#touch-controls{bottom:15px;left:12px;right:12px;gap:8px;align-items:flex-end}#touch-controls>div:last-child{display:grid;grid-template-columns:repeat(2,1fr);gap:5px}#touch-controls>div:first-child{padding-bottom:19px}#touch-controls button{height:43px;min-width:44px}.race-timing>strong{font-size:21px}.race-top-left{gap:11px}.lap-box{padding-left:11px}.position-box>strong{font-size:51px}.position-box>span{font-size:12px}.position-box small{font-size:10px;margin-left:0}.race-timing small{font-size:8px}.minimap-wrap{width:120px}.launch-panel{gap:11px}.launch-panel>.primary{width:57%;font-size:15px}.difficulty-select{font-size:10px;gap:6px}.difficulty-select select{font-size:11px;padding-right:14px}.roster-heading>span{font-size:9px}}

#draft-indicator{position:absolute;bottom:208px;left:50%;transform:translateX(-50%);text-align:center;font-size:11px;color:#cffff3;text-shadow:0 2px 5px #193443}#draft-indicator>div{width:140px;height:3px;background:#17384599;margin-top:7px}#draft-fill{display:block;height:100%;background:#aaffee;box-shadow:0 0 10px #7bf8ea;width:0}@media(max-width:760px){#draft-indicator{bottom:235px}}

/* 항구의 청록빛과 햇빛을 담은 경기 화면. 중앙 시야는 코스에 남겨 둔다. */
.brand-mark,.track-top b,.modal-eyebrow{color:#89f2e9}.race-intro em{color:#c2fff0}.eyebrow i{background:#98f5e9}.primary{background:#ffdc8a;border-color:#fff0c4;box-shadow:0 4px 24px #ffd57220;color:#153a46;border-radius:8px}.pet-card[aria-pressed=true]{border-color:#96f5e8;background:linear-gradient(130deg,#57dfcf44,#23677766);box-shadow:0 0 16px #56e6d21a}.pet-card[aria-pressed=true]:after{color:#c6fff1}.pet-card img{image-rendering:auto}.pet-card span{font-size:9px;letter-spacing:0;overflow:hidden;text-overflow:ellipsis;padding-inline:3px}#leaderboard{width:185px}#leaderboard li>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.position-box>strong{color:#fff0bd}#corner-hint{color:#b9fff0}.boost-cluster{bottom:94px}.boost-meter{height:10px}.boost-meter i{background:linear-gradient(90deg,#67e8d9,#ffde8a);box-shadow:0 0 12px #79efdf77}.boost-meter>span{display:none}#boost-slots{display:flex;gap:8px;position:absolute;bottom:0;right:calc(100% + 15px)}#boost-slots>span{height:55px;width:51px;background:#151d258f;border:1px solid #ccd2d34a;border-radius:6px;display:flex;align-items:center;justify-content:center;position:relative;color:#68737b;transform:skewX(-6deg)}#boost-slots b{font:900 15px system-ui}#boost-slots small{position:absolute;bottom:3px;right:6px;font-size:9px}#boost-slots .ready{background:linear-gradient(150deg,#ffe297,#f0a747);color:#352510;border-color:#ffe7b6;box-shadow:0 0 18px #ffca513f}#boost-slots .active{border-color:#99e6ff;color:#9aefff;box-shadow:0 0 25px #7fe0ff50}.vignette{background:linear-gradient(180deg,#062d434c,transparent 26%,transparent 65%,#062b3f73),linear-gradient(90deg,#06344528,transparent 38%,transparent 70%,#07394b12)}.race-intro{text-shadow:0 2px 16px #07314999}.race-intro .eyebrow{color:#d8fff7;font-size:11px;letter-spacing:2.7px}.track-card{background:linear-gradient(145deg,#063c50dd,#124553b8);border-color:#c9ffed45;box-shadow:0 18px 48px #06354b28}.garage-dock{background:linear-gradient(105deg,#063346f5,#102e42f8);border-top-color:#acf3e744}.tag-line{background:#b9fff0}.minimap-wrap{background:linear-gradient(145deg,#063c5688,#07354e44);border:1px solid #b6f1ec28}#leaderboard li.me{border-left-color:#93f9e6;background:linear-gradient(90deg,#13706da8,#16455025)}.topbar{border-bottom-color:#d5fff12b}.icon-button{background:#073a4d66;border-color:#d6fff23d}.icon-button:hover{background:#14637eaf}.edition{color:#dbfff7}.text-button:hover{color:#abffeb}.speed-ticks i{background:repeating-linear-gradient(90deg,#9ff7e8 0,#9ff7e8 7px,transparent 7px,transparent 10px)}#lap-dots i.done{background:#b2fff0}
@media(max-width:760px){#boost-slots{position:static;margin-top:8px;gap:5px}#boost-slots>span{height:29px;width:40px}#boost-slots b{font-size:11px}#boost-slots small{font-size:8px;bottom:1px;right:3px}.boost-cluster{bottom:130px}#leaderboard{width:137px}.selected-tag strong{font-size:16px;max-width:150px;overflow-wrap:anywhere}.selected-tag{left:53%}.race-intro h1{font-size:31px}}@media(max-width:520px){.track-card h2{font-size:19px}.race-intro h1{font-size:28px}.boost-cluster{width:154px}.selected-tag strong{max-width:133px;font-size:15px}}
@media(max-width:360px){.difficulty-select label{white-space:nowrap}.launch-panel>.primary{width:54%;gap:17px}.launch-panel{gap:9px}}@media(max-width:360px) and (max-height:700px){#leaderboard li:nth-child(n+5):not(.me){display:none}#leaderboard{top:180px}#leaderboard li{height:22px}.selected-tag{bottom:229px}}

@media(min-width:761px){body.racing .topbar{height:64px;border-bottom-color:transparent;background:linear-gradient(180deg,#06344840,transparent)}body.racing .brand{font-size:18px}body.racing .brand-mark{font-size:35px}body.racing .edition{font-size:10px}body.racing .race-top-left,body.racing .race-timing{top:89px}body.racing .race-timing>strong{font-size:29px}body.racing #leaderboard{top:205px}body.racing .minimap-wrap{top:204px}body.racing .vignette{background:linear-gradient(180deg,#07334938,transparent 23%,transparent 69%,#06263a80)}}
@media(max-width:520px){.race-intro .eyebrow{font-size:8px;letter-spacing:1.8px}.track-card{background:linear-gradient(130deg,#08394ee6,#135368c7)}}

/* 휴대폰에서는 양쪽 엄지의 조작 영역과 중앙 주행 시야를 분리한다. */
html,body{overscroll-behavior:none;touch-action:manipulation}
body.racing,#world{touch-action:none}
.touch-only{display:none}
body.touch .touch-only{display:inline}
body.touch .touch-help{display:block;color:#c7fff0;background:#67d2c514;padding:12px;border-radius:8px;font-size:12px}
body.touch #roster{touch-action:pan-x}
body.touch #touch-controls{left:max(14px,env(safe-area-inset-left));right:max(14px,env(safe-area-inset-right));bottom:max(14px,env(safe-area-inset-bottom));align-items:flex-end;gap:16px;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
body.touch #touch-controls .touch-steering{display:flex;gap:8px;padding-bottom:0}
body.touch #touch-controls .touch-actions{display:grid;grid-template-columns:72px 72px;grid-template-rows:38px 66px;gap:7px}
body.touch #touch-controls button{min-width:0;padding:0 8px;height:100%;border-radius:16px;background:#073448c9;border-color:#bce9ea80;font-size:12px;font-weight:700;box-shadow:0 3px 12px #042b4544}
body.touch #touch-controls .touch-steering button{width:64px;height:76px;font-size:25px;background:#113e57b8}
body.touch #touch-controls [data-touch=drift]{background:#ecffffdc;color:#123e53;border-color:white}
body.touch #touch-controls [data-touch=boost]{background:#ffda89e8;color:#243948;border-color:#fff0c4}
body.touch #touch-controls [data-touch=brake]{font-size:10px;font-weight:500;color:#d1e9ee;background:#092e4099}
body.touch #touch-controls [data-touch=throttle]{font-size:11px;color:#c1fff0;border-color:#98e6d770}
body.touch #touch-controls button.pressed{background:#71e9d8;color:#073044;transform:translateY(2px);box-shadow:0 0 22px #80ffff38}
body.touch #leaderboard li.me{display:flex}
@media(max-width:760px){
  body.touch .garage-footer{display:flex;gap:10px;margin-top:10px}
  body.touch .garage-footer .key-guide{display:none}
  body.touch .garage-footer .text-button{font-size:10px;white-space:nowrap}
  body.touch #touch-mode-guide{font-size:9px;color:#aee7e1;line-height:1.4;max-width:210px}
  body.touch .selected-tag{bottom:264px}
  body.touch .boost-cluster{bottom:137px;left:18px;width:160px}
  body.touch .boost-info>span{display:none}
  body.touch .speedometer{bottom:142px;right:18px;width:115px}
  body.touch #draft-indicator{bottom:256px;left:18px;transform:none;font-size:8px}
  body.touch #draft-indicator>div{width:100px}
  body.touch #leaderboard li:nth-child(n+5):not(.me){display:none}
  body.touch .topbar{padding-left:max(18px,env(safe-area-inset-left));padding-right:max(18px,env(safe-area-inset-right))}
}
@media(max-width:360px){
  body.touch #touch-controls{left:10px;right:10px;gap:10px}
  body.touch #touch-controls .touch-steering{gap:6px}
  body.touch #touch-controls .touch-steering button{width:56px;height:72px}
  body.touch #touch-controls .touch-actions{grid-template-columns:66px 66px}
  body.touch .garage-footer .text-button{font-size:9px}
  body.touch #touch-mode-guide{font-size:8px;max-width:180px}
}
@media(orientation:landscape) and (max-height:520px){
  body.touch .topbar,body.touch.racing .topbar{height:43px;padding-inline:max(17px,env(safe-area-inset-left))}
  body.touch .brand,body.touch.racing .brand{font-size:15px}
  body.touch .brand-mark,body.touch.racing .brand-mark{font-size:30px;margin-right:10px}
  body.touch .edition{display:none}
  body.touch .icon-button{width:30px;height:30px;font-size:18px}
  body.touch #sound{width:30px;padding:0}
  body.touch #sound span{display:none}
  body.touch .race-intro{top:63px;left:22px}
  body.touch .race-intro h1{font-size:29px;margin:10px 0}
  body.touch .race-intro .eyebrow,body.touch .race-intro p,body.touch .selected-tag,body.touch .garage-footer{display:none}
  body.touch .track-card{top:57px;left:auto;right:18px;width:170px;height:auto;padding:10px 13px}
  body.touch .track-top b{position:static;font-size:18px}
  body.touch .track-card h2{position:static;font-size:17px}
  body.touch .track-card p,body.touch .track-meta,body.touch .speed-only{display:none}
  body.touch #track-preview{display:block;height:58px;margin:0}
  body.touch .garage-dock{padding:8px max(17px,env(safe-area-inset-left))}
  body.touch .dock-content{flex-wrap:nowrap;gap:16px}
  body.touch #roster{flex-basis:auto;padding-bottom:3px}
  body.touch .pet-card{height:61px;min-width:65px;flex-basis:65px}
  body.touch .pet-card img{height:46px;width:50px}
  body.touch .pet-card span{font-size:8px;padding-block:3px}
  body.touch .roster-heading{margin-bottom:5px}
  body.touch .roster-heading h2{font-size:12px}
  body.touch .roster-heading>span{font-size:10px}
  body.touch .launch-panel{width:168px;flex-direction:column;gap:5px;padding:0}
  body.touch .launch-panel>.primary{width:100%;min-height:37px;font-size:14px}
  body.touch .difficulty-select{margin:0;width:100%;font-size:10px}
  body.touch .difficulty-select select{font-size:10px;padding-block:2px}
  body.touch.racing .race-top-left{top:54px;left:18px;gap:14px}
  body.touch .position-box>strong{font-size:45px;letter-spacing:-3px}
  body.touch .position-box>span{font-size:12px}
  body.touch .position-box small{font-size:10px}
  body.touch .lap-box{padding-left:12px}
  body.touch .lap-box>span{font-size:8px}
  body.touch .lap-box>b{font-size:13px;padding:2px 0}
  body.touch .lap-box strong{font-size:17px}
  body.touch #lap-dots i{width:14px;height:2px}
  body.touch.racing .race-timing{top:52px;right:18px}
  body.touch .race-timing>span,body.touch .race-timing small{display:none}
  body.touch.racing .race-timing>strong{font-size:21px;margin:0}
  body.touch.racing .minimap-wrap{top:88px;right:15px;width:110px;height:94px}
  body.touch.racing #leaderboard{top:112px;left:16px;width:136px;gap:2px}
  body.touch #leaderboard li{height:20px;font-size:8px}
  body.touch #leaderboard img{width:19px;height:19px}
  body.touch #leaderboard li:nth-child(n+4):not(.me){display:none}
  body.touch .track-caption,body.touch .race-bottom-hint{display:none}
  body.touch #touch-controls .touch-steering button{width:70px;height:72px}
  body.touch #touch-controls .touch-actions{grid-template-columns:76px 76px;grid-template-rows:34px 64px;gap:6px}
  body.touch .boost-cluster{left:50%;transform:translateX(-50%);bottom:18px;width:180px}
  body.touch .drift-line{font-size:8px;margin-bottom:3px}
  body.touch .drift-meter{height:2px;margin-bottom:5px}
  body.touch .boost-info{margin-bottom:5px}
  body.touch .boost-info b{font-size:12px}
  body.touch .boost-info>span{display:none}
  body.touch .boost-meter{height:7px}
  body.touch #boost-slots{position:absolute;right:calc(100% + 10px);bottom:0;gap:5px;margin:0}
  body.touch #boost-slots>span{width:30px;height:31px}
  body.touch #boost-slots b{font-size:10px}
  body.touch #boost-slots small{font-size:8px}
  body.touch .speedometer{bottom:16px;right:192px;width:100px}
  body.touch .speed-num{gap:4px}
  body.touch .speed-num strong{font-size:43px;letter-spacing:-2px}
  body.touch .speed-num>span{font-size:8px}
  body.touch .speed-ticks{height:3px;margin-top:5px}
  body.touch .speedometer>small{font-size:8px;margin-top:4px;letter-spacing:0}
  body.touch #draft-indicator{bottom:87px;left:50%;transform:translateX(-50%);font-size:9px}
  body.touch #toast{top:27%;font-size:16px}
  body.touch #countdown{font-size:86px}
}

/* 모바일 스피드전: 왼손은 부스터·드리프트, 오른손은 좌우 조향을 맡는다. */
#landscape-dialog{inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:28px 24px;border:0;border-radius:0;background:radial-gradient(ellipse at 50% 22%,#17647b,#073146 53%,#062438);color:#f1fffc;text-align:center;overflow:auto;touch-action:manipulation}
#landscape-dialog[open]{display:flex;flex-direction:column;align-items:center;justify-content:center}
#landscape-dialog::backdrop{background:#062d40}
#landscape-dialog h2{font-size:24px;letter-spacing:-1px;margin:9px 0 13px;line-height:1.4}
#landscape-dialog p{color:#c2e6e8;font-size:14px;line-height:1.8;margin:0}
#landscape-dialog .orientation-eyebrow{margin-top:31px;color:#9cebe2;font-size:11px;font-weight:800;letter-spacing:1.4px}
#landscape-dialog .primary{width:min(290px,100%);margin-top:28px;min-height:52px;font-size:15px;gap:23px;flex-shrink:0}
#landscape-dialog small{color:#8ebdc8;font-size:11px;line-height:1.65;margin-top:18px}
.rotate-device{position:relative;width:112px;height:88px;flex-shrink:0}
.rotate-device>span{position:absolute;left:14px;top:20px;width:91px;height:50px;border:3px solid #b8fff0;border-radius:10px;box-shadow:0 0 40px #72f5d930;background:linear-gradient(130deg,#b8ffef13,#fff0);transform:rotate(-14deg)}
.rotate-device>span:after{content:'';position:absolute;right:5px;top:18px;height:9px;width:3px;background:#b8fff0;border-radius:3px}
.rotate-device>i{position:absolute;right:-8px;top:-11px;color:#ffdf9c;font-style:normal;font-size:42px;line-height:1}
body.touch #auto-control-label:has(input:disabled){opacity:.75}
body.touch #touch-controls .touch-caption{display:block;font-size:10px;line-height:1.15;font-weight:800;pointer-events:none}
body.touch #touch-controls svg{pointer-events:none}
body.touch #touch-controls [data-touch=boost].empty{color:#c4d4da;background:linear-gradient(135deg,#324d5a99,#163548c2);border-color:#a5c2cb6b}
@media(orientation:landscape){
  body.touch #touch-controls{height:190px;left:max(24px,env(safe-area-inset-left));right:max(24px,env(safe-area-inset-right));bottom:max(24px,env(safe-area-inset-bottom));gap:0;pointer-events:none}
  body.touch #touch-controls button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0;min-width:0;border:1.5px solid #e0f6fc88;background:radial-gradient(circle at 45% 35%,#a7d7e136,#16475e8c);box-shadow:inset 0 0 0 4px #def7ff0c,0 3px 16px #03273524;color:#f5ffff;backdrop-filter:blur(2px);pointer-events:auto;touch-action:none}
  body.touch #touch-controls .touch-steering{position:absolute;bottom:0;right:0;display:flex;gap:11px;padding:0}
  body.touch #touch-controls .touch-steering button{width:92px;height:92px;border-radius:50%;background:radial-gradient(circle at 45% 35%,#e1f5fa2e,#09364c73);font-size:0}
  .steer-chevron{display:block;width:22px;height:22px;border-left:5px solid #e9ffff;border-bottom:5px solid #e9ffff;transform:rotate(45deg);margin-left:9px;filter:drop-shadow(0 1px 4px #214a60);pointer-events:none}
  [data-touch=right] .steer-chevron{transform:rotate(225deg);margin-left:-9px}
  body.touch #touch-controls .touch-actions{display:block;position:absolute;bottom:0;left:0;width:207px;height:190px}
  body.touch #touch-controls .touch-actions button{position:absolute}
  body.touch #touch-controls [data-touch=drift]{left:0;bottom:0;width:96px;height:96px;border-radius:50%;background:radial-gradient(circle at 45% 35%,#bde9f254,#0b3c528f);border-color:#f3ffffa6;gap:4px}
  body.touch #touch-controls [data-touch=drift] svg{width:43px;height:33px;fill:none;stroke:currentColor;stroke-width:3.8;stroke-linecap:round;stroke-linejoin:round}
  body.touch #touch-controls [data-touch=drift] .drift-trail{stroke-width:2.8;opacity:.72}
  body.touch #touch-controls [data-touch=drift] .touch-caption{font-size:11px;letter-spacing:.1px}
  body.touch #touch-controls [data-touch=boost]{left:5px;bottom:112px;width:68px;height:68px;border-radius:19px;background:linear-gradient(145deg,#ffe6a9df,#f1ae4bca);color:#613a13;border-color:#fff2d9bd;transform:rotate(-5deg);gap:3px}
  body.touch #touch-controls [data-touch=boost]>b{font:900 24px/1 system-ui;letter-spacing:-1px}
  body.touch #touch-controls [data-touch=boost] .touch-caption{font-size:9px}
  body.touch #touch-controls .touch-count{position:absolute;right:-5px;top:-7px;width:21px;height:21px;border:1px solid #fff5d6d9;border-radius:50%;display:grid;place-items:center;font:800 11px/1 system-ui;color:#ffefbe;background:#173c4a;box-shadow:0 2px 6px #082c4277}
  body.touch #touch-controls [data-touch=brake]{left:119px;bottom:2px;width:48px;height:48px;border-radius:14px;color:#d8eff1;background:#0c33485c;border-color:#d0eaf25e;gap:4px}
  body.touch #touch-controls [data-touch=brake] .touch-caption{font-size:8px}
  .brake-icon{display:block;width:18px;height:12px;border-top:2px solid currentColor;border-bottom:2px solid currentColor;position:relative;opacity:.85;pointer-events:none}
  .brake-icon:after{content:'';height:2px;background:currentColor;position:absolute;left:0;right:0;top:3px}
  body.touch #touch-controls button.pressed{background:#b9fff29c;border-color:#e1fff6;color:#083a4b;box-shadow:0 0 0 4px #bcfff330,inset 0 0 16px #b6fff82b;transform:scale(.96)}
  body.touch #touch-controls [data-touch=boost].pressed{background:#ffe19c;color:#513112;transform:rotate(-5deg) scale(.96)}
  body.touch.racing .topbar{height:44px;justify-content:flex-end;border:0;background:none;pointer-events:none;z-index:5;padding-inline:max(18px,env(safe-area-inset-right))}
  body.touch.racing .topbar .brand{display:none}
  body.touch.racing .top-actions{pointer-events:auto;gap:5px}
  body.touch.racing .icon-button{width:28px;height:28px;font-size:16px;background:#0a344663;border-color:#ddf8f54a}
  body.touch.racing #sound{width:28px;padding:0}
  body.touch.racing #sound span{display:none}
  body.touch.racing .race-top-left{top:19px;left:max(23px,env(safe-area-inset-left));gap:17px}
  body.touch.racing .position-box>strong{font-size:47px;letter-spacing:-3px}
  body.touch.racing .lap-box{padding-left:14px}
  body.touch.racing .lap-box>span{font-size:8px}
  body.touch.racing .lap-box>b{font-size:13px;margin:0;padding:1px 0}
  body.touch.racing .lap-box strong{font-size:18px}
  body.touch.racing .race-timing{left:50%;right:auto;top:19px;transform:translateX(-50%);text-align:center}
  body.touch.racing .race-timing>strong{font-size:25px;font-style:italic;letter-spacing:.1px;text-shadow:0 2px 10px #164054}
  body.touch.racing .race-timing>span,body.touch.racing .race-timing small{display:none}
  body.touch.racing .minimap-wrap{top:50px;right:max(20px,env(safe-area-inset-right));width:105px;height:82px;background:#0a34464a;border:0;border-radius:12px}
  body.touch.racing #leaderboard{top:80px;left:max(20px,env(safe-area-inset-left));width:142px;gap:2px}
  body.touch #leaderboard li{height:19px;font-size:8px;background:linear-gradient(90deg,#153e5463,#153e5400)}
  body.touch #leaderboard li:nth-child(n+4):not(.me){display:none}
  body.touch.racing .speedometer{left:50%;right:auto;bottom:max(10px,env(safe-area-inset-bottom));width:122px;transform:translateX(-50%);text-align:center}
  body.touch .speed-num{justify-content:center;gap:5px}
  body.touch .speed-num strong{font-size:45px;letter-spacing:-2px}
  body.touch .speed-num>span{font-size:8px}
  body.touch .speed-ticks{height:3px;margin-top:3px}
  body.touch .speedometer>small{display:none}
  body.touch.racing .boost-cluster{left:50%;bottom:max(71px,calc(env(safe-area-inset-bottom) + 58px));width:148px;transform:translateX(-50%)}
  body.touch .boost-info{margin-bottom:4px;text-align:center;justify-content:center}
  body.touch .boost-info>b{font-size:9px;line-height:1.1;letter-spacing:0;text-shadow:0 1px 5px #093246}
  body.touch .boost-info>span,body.touch .drift-line,body.touch .drift-meter,body.touch #boost-slots{display:none}
  body.touch .boost-meter{height:5px;border-radius:10px;background:#052c468c;box-shadow:0 0 0 1px #d6fff134}
  body.touch #draft-indicator{bottom:105px;font-size:8px}
  body.touch #draft-indicator>div{width:92px;margin-top:4px}
  body.touch #toast{top:36%;font-size:15px;max-width:48vw;text-align:center}
}
@media(orientation:landscape) and (max-width:740px){
  body.touch #touch-controls{left:max(18px,env(safe-area-inset-left));right:max(18px,env(safe-area-inset-right));bottom:max(20px,env(safe-area-inset-bottom))}
  body.touch #touch-controls .touch-steering{gap:9px}
  body.touch #touch-controls .touch-steering button{width:80px;height:84px}
  body.touch #touch-controls .touch-actions{width:185px;height:181px}
  body.touch #touch-controls [data-touch=drift]{width:87px;height:87px}
  body.touch #touch-controls [data-touch=boost]{left:3px;bottom:102px;width:62px;height:62px}
  body.touch #touch-controls [data-touch=brake]{left:105px;width:45px;height:45px}
  body.touch.racing .boost-cluster{width:128px;bottom:max(68px,calc(env(safe-area-inset-bottom) + 56px))}
  body.touch.racing .speedometer{width:106px}
  body.touch .speed-num strong{font-size:42px}
  body.touch.racing .race-top-left{left:18px;top:17px;gap:11px}
  body.touch.racing .position-box>strong{font-size:42px}
  body.touch.racing .lap-box{padding-left:11px}
  body.touch.racing .race-timing{top:20px}
  body.touch.racing .race-timing>strong{font-size:22px}
  body.touch.racing #leaderboard{top:74px;left:16px;width:123px}
  body.touch.racing .minimap-wrap{width:89px;height:73px;right:16px}
}
body.touch #touch-controls [data-touch=boost].active{color:#e3fbff;background:linear-gradient(145deg,#65ceeac9,#257ba8c9);border-color:#c4f7ff;box-shadow:0 0 22px #5fd9ff77,inset 0 0 15px #c3faff22}

/* 전체화면은 아이콘과 글자를 함께 표시해 휴대폰에서도 바로 찾을 수 있다. */
#fullscreen{width:auto;min-width:104px;padding:0 12px;gap:7px;border-radius:12px;color:#ffe6a8;border-color:#ffe3a080;background:#3d503fa6;flex-shrink:0}
#fullscreen .fullscreen-icon{width:20px;height:20px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
#fullscreen-label{font-size:12px;font-weight:800;white-space:nowrap;pointer-events:none}
#fullscreen[aria-pressed=true]{color:#bbfff0;border-color:#aaffdd80;background:#12596c9c}
.top-actions{align-items:center}
.mobile-display-guide{display:none}
body.touch .mobile-display-guide{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:700;line-height:1.4;color:#ffe6a8;text-shadow:0 1px 6px #153b4b;margin-top:14px}
.mobile-display-guide>span{display:inline-flex;align-items:center;justify-content:center;width:22px;height:15px;border:1px solid #ffe6a8a6;border-radius:4px;font-size:16px;line-height:1}
body.touch #fullscreen{height:40px;min-width:106px;padding-inline:11px;font-size:12px}
@media(orientation:landscape){
  body.touch.racing #fullscreen{width:auto;height:40px;min-width:106px;border-radius:12px;color:#ffe6a8;background:#2b4b49df;border-color:#ffe3a080}
  body.touch.racing #fullscreen[aria-pressed=true]{color:#bbfff0;background:#12596cc9;border-color:#aaffdd80}
  body.touch .mobile-display-guide{margin-top:10px;font-size:10px}
}
