@font-face{font-family:Game;src:local('Arial')}*{box-sizing:border-box}body{margin:0;background:#173944;color:#f9fcf6;font-family:Game,Arial,sans-serif;overflow:hidden}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;color:inherit}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #ffde79;outline-offset:4px}#game{position:fixed;inset:0;width:100%;height:100%;display:block}.vignette{position:fixed;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(9,29,35,.12) 40%,rgba(7,27,33,.86) 100%)}#header{position:fixed;inset:27px 38px auto;display:flex;justify-content:space-between;align-items:center;z-index:5;direction:ltr}.brand{font-size:25px;font-weight:950;letter-spacing:-1px;text-decoration:none;color:white;display:flex;gap:5px;align-items:center;position:relative}.brand>span:not(.brand-icon){color:#ffe076}.brand-icon{background:#ffe076;color:#17343d;border-radius:10px;font-size:33px;padding:0 8px;margin-right:6px;line-height:35px;transform:skew(-9deg)}.brand small{position:absolute;top:38px;left:54px;font-size:8px;letter-spacing:2.4px;color:#d7e1de}.top-actions{display:flex;gap:9px;align-items:center}.pill,.icon-button{border:1px solid #ffffff30;background:#17333d6e;backdrop-filter:blur(15px);border-radius:30px}.pill{display:flex;align-items:center;gap:8px;font-size:10px;letter-spacing:1.7px;padding:12px 16px}.pill i{width:6px;height:6px;background:#b4ee95;border-radius:50%}.icon-button{width:37px;height:37px;font-weight:bold}.panel{position:fixed;z-index:6;right:7%;top:50%;transform:translateY(-46%);width:350px}.eyebrow{color:#ffe079;font-size:11px;font-weight:bold;letter-spacing:1px;margin-bottom:15px}h1{font-size:57px;line-height:1.02;letter-spacing:-2.5px;margin:0;font-weight:950}h1 span{color:#ffe079}p.intro{font-size:15px;line-height:1.65;color:#dae5e2;margin:20px 0 24px}.form label{display:block;font-size:11px;font-weight:bold;margin-bottom:8px;color:#d7e3df}input,select{border:1px solid #ffffff35;background:#193e47b3;color:white;border-radius:11px;outline:none}input:focus,select:focus{border-color:#ffe079}input{padding:12px 14px;width:100%}input::placeholder{color:#adc2c5}#name{margin-bottom:17px}.colors{display:flex;gap:10px;margin:12px 0 24px}.color{width:27px;height:27px;border-radius:50%;border:3px solid transparent;box-shadow:inset 0 0 0 1px #0002;transition:transform .2s}.color.selected{outline:2px solid #fff;outline-offset:3px;transform:scale(1.06)}.primary{width:100%;padding:16px 20px;background:#ffe079;color:#183c43;border-radius:12px;font-weight:900;display:flex;justify-content:space-between;align-items:center;box-shadow:0 7px 0 #00000019;transition:background .2s,transform .2s}.primary:hover{background:#ffecaa;transform:translateY(-2px)}.primary span{font-size:21px}.divider{display:flex;align-items:center;gap:12px;color:#bbcfce;font-size:10px;margin:21px 0 15px}.divider:before,.divider:after{content:'';height:1px;background:#ffffff25;flex:1}.join{display:flex;gap:9px}.join input{width:52%;letter-spacing:4px;text-align:center;text-transform:uppercase}.join button{flex:1;border-radius:11px;background:#ffffff12;border:1px solid #ffffff30;font-size:12px;font-weight:bold}.small-note{display:flex;justify-content:space-between;font-size:10px;color:#a1bbb8;margin-top:22px}.small-note span:before{content:'·';color:#ffe079;margin-left:7px}.hidden{display:none!important}.back-link{display:inline-block;margin-bottom:14px;font-size:12px;font-weight:bold;color:#ffe079;text-decoration:none;opacity:.9}.back-link:hover{opacity:1;text-decoration:underline}.home{max-height:calc(100dvh - 110px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#ffffff30 transparent}.home:has(#openRooms:not([hidden])) p.intro,.home:has(#openRooms:not([hidden])) .small-note{display:none}.open-rooms .or-room{padding:7px 11px!important}.open-rooms .or-title{font-size:11px;color:#b4ee95}.open-rooms{margin-top:16px!important}.open-rooms .or-room{background:#ffffff0d!important;border:1px solid #ffffff30!important;color:#f9fcf6}.open-rooms .or-room:hover{border-color:#ffe079!important}.open-rooms .or-join{background:#ffe079!important;color:#183c43!important}.hall{font-size:12px}.hall summary{color:#ffe079}.hall tr+tr td{border-top-color:#ffffff1a!important}.hall tr.me td{background:#ffe07930!important}#scene-title{position:fixed;left:5%;bottom:8%;direction:ltr;pointer-events:none}#scene-title>span{font-size:10px;letter-spacing:3px;color:#dbe9e5}#scene-title h2{font-size:clamp(55px,6vw,94px);line-height:.9;letter-spacing:-5px;margin:16px 0;color:white;font-weight:950;text-shadow:0 4px 35px #12394566}#scene-title em{color:#ffe079;font-style:normal}#scene-title p{font-size:12px;letter-spacing:.2px;direction:rtl;text-align:left}.track-tags{display:flex;gap:7px;margin-top:20px}.track-tags span{font-size:10px;padding:7px 10px;border:1px solid #ffffff40;border-radius:30px;backdrop-filter:blur(5px)}.lobby,.results{width:400px;padding:28px;background:#102f38e8;border:1px solid #ffffff22;border-radius:23px;backdrop-filter:blur(18px);max-height:calc(100dvh - 120px);overflow:auto}h2{font-size:31px;margin:0 0 22px;letter-spacing:-1px}.room-code{display:flex;gap:10px;align-items:center;flex-wrap:wrap;background:#ffffff08;border:1px solid #ffffff15;border-radius:12px;padding:13px;margin-bottom:17px}.room-code>span{font-size:10px;color:#b8cacc}.room-code strong{font-size:25px;color:#ffe079;letter-spacing:3px}.room-code button{font-size:10px;background:transparent;color:#d2e6e6;margin-right:auto}.players{display:grid;grid-template-columns:1fr 1fr;gap:7px}.player-card{display:flex;align-items:center;gap:9px;padding:11px;background:#ffffff08;border:1px solid #ffffff13;border-radius:10px;font-size:12px;min-width:0}.player-card span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.player-card i{width:13px;height:13px;flex:none;border-radius:5px}.player-card small{color:#ffe079;font-size:9px}.settings{margin:18px 0;font-size:12px}.settings label:first-child{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}select{padding:7px 20px}option{background:#173c45}.checkbox{display:flex;gap:7px;align-items:center}.checkbox input{width:17px;height:17px;accent-color:#ffe079}.text-button{background:transparent;color:#adc7c7;font-size:11px;padding:12px;width:100%}.subtle{color:#aac3c3;font-size:11px;line-height:1.7}.lobby .subtle{text-align:center;margin:13px 0 0}.race-top{position:fixed;top:24px;right:26px;display:flex;gap:12px;align-items:center}.race-top>div{background:#15343bdc;backdrop-filter:blur(12px);border:1px solid #ffffff24;border-radius:15px;padding:11px 19px}.position{display:flex;gap:10px;align-items:center}.position>strong{font-size:47px;line-height:1;color:#ffe079;font-style:italic}.position span{font-size:11px;display:flex;flex-direction:column;gap:6px}.position b{color:#a9c3c7;font-weight:normal}.lap,.timer{display:flex;flex-direction:column;gap:4px}.race-top small{color:#a7c3c7;font-size:10px}.race-top strong:not(.position strong){font-size:20px;font-variant-numeric:tabular-nums}.race-bottom{position:fixed;right:30px;bottom:45px;display:flex;align-items:end;gap:22px}.speed{direction:ltr;width:150px;text-shadow:0 2px 10px #123}.speed strong{font-size:64px;font-weight:900;font-style:italic;letter-spacing:-3px}.speed span{font-size:10px;margin-left:7px;color:#e2ece9}.speed-track{height:5px;background:#ffffff35;border-radius:4px;overflow:hidden}.speed-track i{display:block;background:#ffe079;height:100%;width:0;transition:width .1s}.item{display:flex;flex-direction:column;gap:6px;align-items:center;justify-content:center;border-radius:19px;width:112px;height:119px;background:#15343be6;border:1px solid #ffffff45;box-shadow:0 8px 30px #102f3540}.item>span{font-size:38px;color:#ffffff40}.item>b{font-size:11px;color:#b7cdd0}.item small{font-size:8px;letter-spacing:1.5px;color:#9fbac0}.item.loaded{border-color:#ffe079;box-shadow:0 0 25px #ffe07920}.item.loaded>span{color:#ffe079}.item.loaded>b{color:white}.leaderboard{position:fixed;top:115px;right:27px;min-width:180px;display:flex;flex-direction:column;gap:4px}.leader-row{display:flex;gap:10px;align-items:center;padding:8px 12px;background:#183840a1;border-radius:7px;font-size:11px;backdrop-filter:blur(8px)}.leader-row.me{background:#ffe079;color:#16373d}.leader-row i{width:8px;height:8px;border-radius:50%}.leader-row span{flex:1}.leader-row b{width:12px}.leader-row small{font-size:9px}.map-wrap{position:fixed;left:25px;bottom:40px;text-align:center;background:#163a4159;backdrop-filter:blur(5px);border-radius:20px;border:1px solid #ffffff1c}.map-wrap canvas{display:block;width:210px;height:166px}.map-wrap>span{display:block;letter-spacing:3px;font-size:8px;color:#d3e2df;margin-bottom:14px}.desktop-controls{position:fixed;bottom:14px;left:50%;transform:translateX(-50%);display:flex;gap:20px;font-size:9px;color:#d1dfdb;white-space:nowrap}kbd{font-family:inherit;display:inline-block;padding:3px 5px;border-radius:4px;border:1px solid #ffffff4a;margin-right:4px}.countdown{position:fixed;left:50%;top:40%;transform:translate(-50%,-50%);font-size:120px;font-style:italic;font-weight:950;color:#ffe079;text-shadow:0 6px 0 #184852,0 0 70px #ffe07950}.effect{position:fixed;left:50%;top:23%;transform:translateX(-50%);font-size:22px;font-weight:bold;color:#ffe079;text-shadow:0 3px 10px #123;white-space:nowrap}.drift-meter{position:fixed;bottom:85px;left:50%;transform:translateX(-50%);width:180px;text-align:center;opacity:0;transition:opacity .15s}.drift-meter.active{opacity:1}.drift-meter>span{font-size:9px;font-weight:bold;letter-spacing:3px;color:#baf5ff}.drift-meter>div{height:7px;background:#153a45aa;border-radius:5px;margin-top:9px;overflow:hidden}.drift-meter i{display:block;background:#58e6ff;height:100%;width:0}.results{right:50%;transform:translate(50%,-45%);width:440px}.result-row{display:flex;align-items:center;gap:13px;padding:13px 0;border-top:1px solid #ffffff15;font-size:13px}.result-row>strong{width:21px;color:#ffe079;font-size:22px}.result-row>i{width:13px;height:13px;border-radius:4px}.result-row>span{flex:1}.result-row>small{color:#adc6c8;font-variant-numeric:tabular-nums}.results .primary{margin-top:20px}#toast{position:fixed;bottom:27px;left:50%;transform:translate(-50%,20px);max-width:90vw;padding:12px 23px;border-radius:12px;background:#14343eeb;border:1px solid #ffffff40;z-index:25;opacity:0;transition:.2s;pointer-events:none;font-size:13px;text-align:center}#toast.show{transform:translate(-50%,0);opacity:1}.connection{position:fixed;top:12px;left:50%;transform:translateX(-50%);z-index:30;background:#ffe079;color:#143840;padding:10px 22px;border-radius:10px;font-size:12px}dialog{background:#133640;color:white;border:1px solid #ffffff30;border-radius:24px;max-width:460px;padding:35px;line-height:1.9;box-shadow:0 30px 100px #0008}dialog::backdrop{background:#071c26a6;backdrop-filter:blur(7px)}dialog p{font-size:14px;color:#d6e5e4}dialog .close{position:absolute;top:13px;left:15px;background:transparent}.item-guide{display:grid;grid-template-columns:1fr 1fr;gap:10px;font-size:13px}.item-guide span{padding:8px;background:#ffffff0a;border-radius:10px}#touch{position:fixed;bottom:20px;left:16px;right:16px;justify-content:space-between;align-items:end;direction:ltr;pointer-events:none;z-index:12}.touch-steering,.touch-pedals{display:flex;gap:8px}#touch button{pointer-events:auto;touch-action:none;user-select:none;width:60px;height:60px;border-radius:19px;border:1px solid #ffffff50;background:#16353cc9;font-size:14px;font-weight:bold;backdrop-filter:blur(8px)}#touch button.gas{background:#ffe079;color:#16333b}#touch button.pressed{background:#41cddf;color:#16333b}body.racing .vignette{background:linear-gradient(0deg,#10343c59,transparent 35%)}body.racing #header{display:none}body.racing #scene-title{display:none}@media(min-width:851px){#touch{display:none!important}}@media(max-width:1100px){.panel{right:5%}h1{font-size:49px}#scene-title{left:4%}#scene-title h2{font-size:65px}.results{right:50%}}@media(max-height:750px) and (min-width:851px){.panel{transform:translateY(-42%)}h1{font-size:42px}p.intro{margin:12px 0 16px}.colors{margin:9px 0 18px}.small-note{margin-top:15px}.eyebrow{margin-bottom:10px}.results{transform:translate(50%,-44%)}}@media(max-width:850px){#header{inset:18px 20px auto}.brand{font-size:20px}.brand small{font-size:7px;top:33px}.pill{display:none}.panel{right:20px;width:320px}.home{padding:23px;background:#14343ecf;border:1px solid #ffffff20;border-radius:23px;backdrop-filter:blur(13px)}h1{font-size:40px}p.intro{font-size:13px;margin:14px 0 18px}.eyebrow{font-size:10px}.small-note{font-size:8px}#scene-title{left:25px;bottom:40px}#scene-title h2{font-size:48px}#scene-title p,.track-tags{display:none}.results{right:50%;width:min(430px,90vw)}.race-top{top:12px;right:12px;gap:6px}.race-top>div{padding:8px 12px}.position>strong{font-size:33px}.leaderboard{top:87px;right:12px;min-width:130px}.leader-row{font-size:10px;padding:6px 9px}.map-wrap{left:12px;bottom:105px}.map-wrap canvas{width:130px;height:103px}.map-wrap>span{font-size:6px}.race-bottom{right:14px;bottom:108px;gap:15px}.speed{width:100px}.speed strong{font-size:39px}.item{width:76px;height:87px;border-radius:14px}.item>span{font-size:27px}.item>b{font-size:9px}.item small{display:none}.desktop-controls{display:none}#touch{display:flex}.drift-meter{bottom:145px;width:100px}.drift-meter>span{font-size:7px}.effect{top:28%;font-size:18px}.countdown{font-size:95px}.timer{display:none}}@media(max-width:580px){#scene-title{display:none}.panel.home,.panel.lobby{right:50%;transform:translate(50%,-42%);width:min(360px,calc(100vw - 30px))}.home{background:#133641cf}h1{font-size:38px}.intro br{display:none}.form label{font-size:10px}.home .primary{padding:13px 18px}.colors{gap:10px;margin:10px 0 20px}.color{width:25px;height:25px}.small-note{margin-top:17px}.vignette{background:#103d4660}.results{max-height:80dvh}.leaderboard{max-width:137px}.leader-row:nth-child(n+5){display:none}#touch button{width:51px;height:55px;border-radius:16px}.touch-pedals,.touch-steering{gap:5px}.race-top{left:12px;justify-content:space-between}.race-exit{width:30px}.map-wrap{bottom:92px}.race-bottom{bottom:95px}.drift-meter{bottom:78px}#toast{bottom:80px}}@media(max-height:650px){.home .intro,.home .small-note{display:none}.home h1{font-size:33px;margin-bottom:17px}.home .eyebrow{margin-bottom:7px}.panel.home{top:53%}.lobby,.results{max-height:78dvh}.home .divider{margin:14px 0}.home #name{margin-bottom:12px}.home .colors{margin-bottom:15px}}
