@font-face{font-family:Vazirmatn;src:url('fonts/Vazirmatn-Regular.ttf') format('truetype');font-weight:400;font-display:swap}@font-face{font-family:Vazirmatn;src:url('fonts/Vazirmatn-Bold.ttf') format('truetype');font-weight:700 900;font-display:swap}
:root{font-family:Vazirmatn,sans-serif;color:#3e2114;background:#ff7900;--orange:#ff7a00;--paper:#fff9ec;--ink:#3e2114;--muted:#8a6d56;--lime:#d7f368;--line:#ecdcc7;--vh:100dvh}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer;border:0}button:disabled{cursor:wait;opacity:.55}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #73a514;outline-offset:4px}button,textarea{-webkit-tap-highlight-color:transparent}button{touch-action:manipulation}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}h1,h2,p{margin:0}h1{font-size:30px;letter-spacing:-1px}h2{font-size:24px}img{max-width:100%}[hidden]{display:none!important}.defs{position:absolute;width:0;height:0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.game-shell{min-height:0;height:var(--vh);display:flex;flex-direction:column;max-width:1280px;margin:auto;padding:0 32px;background:radial-gradient(ellipse at 28% 25%,#ffba19,transparent 58%),#ff7900;overflow:hidden}.topbar{display:flex;align-items:center;gap:12px;padding:calc(16px + env(safe-area-inset-top)) 4px 10px;min-height:82px;flex-shrink:0}.identity{display:flex;align-items:center;gap:10px;background:none;color:#432312;font-weight:700;font-size:15px;max-width:40%;text-align:right}.identity span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.identity img{height:44px;width:44px;border-radius:15px;box-shadow:0 2px 0 #ba4502;border:2px solid #ffedbd}.wallets{display:flex;gap:8px;margin-right:auto}.wallet{display:flex;gap:8px;align-items:center;min-height:40px;border:1px solid #ffe295;background:#ffdd76;box-shadow:0 3px 0 #df6209;border-radius:14px;padding:7px 12px;color:#733c07}.wallet.silver{background:#fff1cc;color:#7c6242}.wallet svg{width:21px;height:21px}.wallet b{font-size:17px}.icon-btn{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:#ffffff40;color:var(--ink);border:1px solid #ffffff35}.icon-btn:hover{background:#fff9}.game-shell main{flex:1;min-height:0;display:flex;flex-direction:column;position:relative}.view{min-height:0;flex:1}.home-view{display:flex;flex-direction:column}.hero{flex:1;min-height:170px;max-height:340px;position:relative;display:flex;align-items:center;padding-right:6%;isolation:isolate}.hero-title{z-index:2}.wordmark-en{font-family:Arial,sans-serif;font-weight:900;font-size:14px;letter-spacing:4px;color:#773607}.hero-title h1{font-size:clamp(40px,6vw,74px);font-weight:900;line-height:1.4;color:#fffaf0;text-shadow:0 4px 0 #c55003;letter-spacing:-3px}.hero-pill{display:inline-flex;align-items:center;gap:8px;background:#fff3d3;border:1px solid #ffdab1;color:#773f1c;border-radius:100px;padding:8px 14px;font-size:14px;font-weight:700;box-shadow:0 2px 0 #e87103}.hero-pill svg{width:17px;height:17px}.hero-mascot{position:absolute;height:120%;width:auto;aspect-ratio:1;object-fit:contain;left:12%;bottom:-9%;z-index:1;mask-image:radial-gradient(ellipse 51% 51%,#000 66%,transparent 99%);animation:mascot-float 4.5s ease-in-out infinite}.speed-mark{position:absolute;background:#ffed87;transform:skewX(-35deg) rotate(-8deg);height:14px;border-radius:4px;opacity:.5;left:6%;width:95px;z-index:0}.mark-one{top:35%}.mark-two{top:55%;width:60px;left:2%}
.home-stage{background:var(--paper);border:1px solid #ffe5be;box-shadow:0 8px 0 #df6009,0 24px 55px #af400329;border-radius:36px;padding:28px;display:grid;grid-template-columns:1.1fr 1fr;gap:40px;min-height:305px;z-index:3;margin-bottom:18px}.vehicle-display{position:relative;display:flex;flex-direction:column;min-width:0}.stage-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.overline{font-size:13px;font-weight:700;color:var(--muted)}.text-button{background:transparent;color:#7f4c27;padding:10px;min-height:44px;font-size:14px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:8px}.text-button:hover{color:#d05200}.text-button svg{width:18px;height:18px}#hero-vehicle{width:100%;height:174px;object-fit:contain;min-height:0}.vehicle-caption{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:4px 0 12px}.vehicle-caption h2{font-size:21px}.vehicle-caption span{font-size:12px;color:var(--muted)}.progress-track{height:7px;border-radius:10px;background:#eddfc9;overflow:hidden}.progress-track i{display:block;height:100%;background:linear-gradient(90deg,#ffd245,#ff8700);border-radius:10px;width:0;transition:width .5s}.play-controls{display:flex;flex-direction:column;justify-content:center;gap:16px;min-width:0}.mode-switch,.period-switch{display:flex;gap:4px;padding:5px;border:1px solid #e7d6bf;background:#eee4d3;border-radius:16px}.mode-switch button,.period-switch button{flex:1;min-height:44px;border-radius:12px;background:none;color:#8a6c54;font-size:15px;font-weight:700}.mode-switch button.active,.period-switch button.active{background:#fff9ec;color:#542d15;box-shadow:0 2px 6px #79523214}.play-button{min-height:72px;padding:12px 24px;display:flex;align-items:center;justify-content:center;gap:12px;font-size:23px;font-weight:900;border-radius:20px;background:linear-gradient(180deg,#dffa87,#ccec54);color:#314704;border:2px solid #eafdac;box-shadow:0 6px 0 #96b731,0 10px 20px #a5bd3929;transition:transform .15s,box-shadow .15s}.play-button:hover{filter:brightness(1.04);transform:translateY(-2px)}.play-button:active{transform:translateY(4px);box-shadow:0 2px 0 #96b731}.play-button svg{width:28px;height:28px;stroke-width:2.4}.play-arrow{margin-right:auto}#play>svg:first-child{margin-left:auto}.cup-rule{display:flex;justify-content:center;gap:16px;color:#8a725c;font-size:12px}.cup-rule span{display:flex;gap:5px;align-items:center}.cup-rule b{color:#497415;font-size:14px}.cup-rule span:nth-child(n+3) b{color:#a45937}.connection-message{font-size:12px;text-align:center;min-height:18px;color:#865d3d}.connection-message:empty{display:none}#difficulty-wrap{display:flex;align-items:center;justify-content:space-between;font-size:14px}select{border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:10px;padding:8px;font-size:14px;min-height:44px}
.bottom-nav{height:88px;padding:8px 0 calc(8px + env(safe-area-inset-bottom));display:flex;align-items:center;justify-content:center;gap:24px;flex-shrink:0}.bottom-nav button{display:flex;align-items:center;justify-content:center;gap:8px;min-width:126px;min-height:52px;padding:8px 16px;background:transparent;border-radius:18px;color:#863f0a;font-size:14px;font-weight:700;transition:background .18s}.bottom-nav button.active{background:#fff0b9;border:1px solid #ffdf8b;color:#5d350d;box-shadow:0 3px 0 #de6207}.bottom-nav button:hover{background:#fff2b55c}.bottom-nav svg{width:22px;height:22px}
.pane{margin:14px 0 10px;background:var(--paper);border-radius:32px;padding:30px;overflow-y:auto;scrollbar-width:thin;box-shadow:0 7px 0 #de6108}.pane-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.pane-heading h1{margin-top:3px}.large-trophy{width:58px;height:58px;color:#f4a213;background:#fff0ba;padding:12px;border-radius:18px}.period-switch{max-width:390px}.muted{font-size:13px;color:var(--muted);margin:15px 0}.rank-list{display:grid;gap:9px}.rank-row{display:flex;align-items:center;gap:14px;padding:14px 18px;min-height:62px;background:#f7efde;border:1px solid #ecdfca;border-radius:16px;font-size:15px}.rank-row.me{border-color:#abc84d;background:#f2f7db}.rank-row .position{width:28px;color:#9c7852;font-weight:700;font-size:17px}.rank-row .avatar{width:35px;height:35px;border-radius:12px;display:grid;place-items:center;background:#ffe2a8;color:#8f5422;font-weight:700}.rank-row strong{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rank-row .rank-cups{display:flex;gap:8px;align-items:center;font-size:18px;font-weight:700;color:#9a671c}.rank-cups svg{width:20px;height:20px}.empty-state{text-align:center;padding:55px 20px;color:#806148;line-height:1.9;font-size:16px}.empty-state svg{width:62px;height:62px;color:#dcae70;display:block;margin:0 auto 16px}.empty-state strong{display:block;color:var(--ink);font-size:21px;margin-bottom:8px}.podium{display:flex;align-items:flex-end;justify-content:center;gap:12px;max-width:630px;margin:26px auto 24px}.podium-item{width:32%;text-align:center;font-size:14px}.podium-avatar{width:55px;height:55px;display:grid;place-items:center;border:3px solid #e7d1ac;border-radius:18px;background:#ffe7b7;margin:0 auto 10px;font-size:22px;font-weight:700}.podium-name{font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.podium-step{border-radius:16px 16px 5px 5px;background:#efdebc;padding:12px 8px;margin-top:8px;min-height:60px}.podium-step b{display:block;font-size:23px}.podium-item.first .podium-step{min-height:100px;background:#ffcf63;color:#764307}.podium-item.first .podium-avatar{border-color:#ffc93f;box-shadow:0 0 0 4px #fff1c1}.my-rank{margin-top:14px;padding:15px;background:#eaf4c9;border:1px solid #cfe288;border-radius:14px;color:#4e6720;font-size:15px}.garage-count{background:#fff0c3;border:1px solid #e9d18d;border-radius:12px;padding:8px 16px;font-weight:700;font-size:16px}.garage-list{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.garage-card{padding:18px;border-radius:25px;border:2px solid #eadcc5;background:linear-gradient(150deg,#fff8e8,#efdfc3);box-shadow:0 5px 0 #e0c9a6;color:var(--ink);min-width:0}.garage-card.selected{border-color:#b4d155;background:linear-gradient(150deg,#f9ffd9,#eaf2bc);box-shadow:0 5px 0 #b5c65c}.garage-card.locked canvas{filter:saturate(.55);opacity:.7}.garage-card canvas{width:100%;height:200px;object-fit:contain}.garage-card-bottom{display:flex;justify-content:space-between;align-items:center;gap:8px}.garage-card-bottom strong{font-size:21px}.vehicle-status{font-size:12px;display:inline-flex;align-items:center;gap:5px;color:#8b6946}.vehicle-status svg{width:17px;height:17px}.profile-hero{display:flex;flex-direction:column;align-items:center;margin-bottom:28px}.profile-hero img{width:110px;height:110px;border-radius:34px;border:4px solid #ffda93;box-shadow:0 6px 0 #f0b55b}.profile-hero h1{margin-top:17px;font-size:25px}.profile-id{font-size:12px;color:var(--muted);margin-top:4px}#name-form{max-width:560px;margin:auto}#name-form label{display:block;font-size:14px;margin-bottom:8px}.name-row{display:flex;gap:10px}.name-row input{flex:1;min-width:0;border:1px solid var(--line);background:#fffdf6;padding:12px 14px;color:var(--ink);border-radius:12px;font-size:16px;min-height:48px}.small-primary{background:#d6ee8a;border:1px solid #b8d364;color:#3d5919;border-radius:13px;font-weight:700;font-size:15px;padding:10px 20px;min-height:46px}.profile-stats{display:flex;justify-content:center;gap:40px;margin:30px 0}.profile-stats div{display:flex;flex-direction:column;align-items:center}.profile-stats b{font-size:27px}.profile-stats span{font-size:13px;color:var(--muted)}.settings-row{display:flex;justify-content:space-between;align-items:center;width:100%;border-block:1px solid var(--line);background:none;padding:17px 6px;color:var(--ink);font-size:15px}.settings-row span{display:flex;align-items:center;gap:10px}.settings-row b{font-size:13px;color:var(--muted)}.history-title{font-size:18px;margin:24px 0 12px}.history-row{padding:12px 4px;display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line);font-size:14px}.history-row small{font-size:12px;color:var(--muted);margin-right:auto}.history-row b{color:#668d27}.history-row .negative{color:#ad5639}
.queue-view{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:24px;overflow:auto}.queue-view>img{width:150px;height:150px;border-radius:45px;border:4px solid #ffd16c;box-shadow:0 8px 0 #e56300;animation:mascot-float 3s ease-in-out infinite}.queue-view h1{font-size:30px;color:#fff6e5;text-shadow:0 2px #c65b00}.queue-view>p{font-size:17px;color:#723807}.queue-players{display:flex;justify-content:center;gap:10px;margin:14px 0}.queue-slot{width:90px;height:95px;border-radius:18px;background:#ffecbe6b;border:2px dashed #ffe39e;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#8f4e17;font-size:13px}.queue-slot.filled{background:#fff5d3;border:2px solid #fff1c3;color:#66391b}.queue-slot b{font-size:24px}.queue-slot span{max-width:80px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.in-race .game-shell{padding:0;max-width:none;background:#142b3a}body.in-race .topbar,body.in-race .bottom-nav{display:none}.race-view{display:flex;flex-direction:column;height:100%;min-height:0;color:#fff8e8;max-width:1700px;margin:0 auto;width:100%;padding:0 max(14px,env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom))}.race-top{display:flex;align-items:center;gap:15px;height:70px;padding-top:env(safe-area-inset-top);flex-shrink:0;font-size:15px}.race-top b{margin-right:auto;font-size:19px;color:#e9b76a}.race-top .icon-btn{color:#fff2d9;background:#28414f}.road-frame{position:relative;min-height:160px;flex:1;border-radius:22px;overflow:hidden;border:1px solid #47626a;box-shadow:0 5px 0 #071a26}.road-frame canvas{display:block;width:100%;height:100%}.countdown{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#152c4160;backdrop-filter:blur(2px)}.countdown b{font-family:Vazirmatn,sans-serif;font-size:100px;color:#ffdd5f;text-shadow:0 5px 0 #9e540b}.countdown span{font-size:18px}.race-stats{display:flex;justify-content:center;align-items:center;gap:55px;padding:16px 8px;flex-shrink:0}.race-stats>span{display:flex;align-items:baseline;gap:8px}.race-stats b{font-size:27px;color:#ffce70}.race-stats small{font-size:13px;color:#aabcc1}.typing-dock{background:#fff9eb;border:2px solid #ffda8d;box-shadow:0 5px 0 #94704a3b;border-radius:20px;padding:18px 22px;flex-shrink:0;color:var(--ink);max-height:36%;overflow:auto}.target-text{font-size:clamp(19px,2vw,27px);line-height:1.9;margin-bottom:14px;min-height:45px}.target-text .typed{color:#669722;background:#e7f2c6;border-radius:4px}.target-text .error{background:#ffcac0;color:#a33f26;border-radius:4px}.target-text .current{border-bottom:3px solid #ff900a}.typing-dock textarea{display:block;resize:none;width:100%;min-height:54px;height:54px;padding:12px 15px;border:2px solid #ddcfb7;border-radius:12px;outline:none;font-size:19px;line-height:1.4;background:#fffef8;color:var(--ink);direction:rtl;transition:border-color .15s}.typing-dock textarea:focus{border-color:#b6d651;box-shadow:0 0 0 3px #d8ed9c66}.typing-dock textarea.has-error{border-color:#e38671;background:#fff7f2}.typing-status{font-size:12px;display:flex;justify-content:space-between;padding-top:9px;color:#9a744e}.typing-status .error{color:#aa432b}.typing-status .pending{color:#ae7200}
dialog{border:1px solid #fff4d7;border-radius:30px;padding:28px;max-width:calc(100% - 32px);width:430px;text-align:center;color:var(--ink);background:var(--paper);box-shadow:0 10px 0 #d95d0890,0 40px 90px #2b140466}dialog::backdrop{background:#231209a8;backdrop-filter:blur(7px)}dialog h2{font-size:29px;margin:10px 0}.result-crown{display:grid;place-items:center;width:95px;height:95px;margin:0 auto 15px;border-radius:30px;background:linear-gradient(#ffdf75,#ffbd26);color:#9a5a12;border:3px solid #fff1aa;box-shadow:0 5px 0 #d89527}.result-crown svg{width:60px;height:60px;stroke-width:1.6}.result-cups{font-size:49px;color:#638714;font-weight:900;margin:14px 0}.result-cups.negative{color:#b26644}.result-stats{display:flex;justify-content:center;gap:35px;margin:20px 0 30px}.result-stats span{display:flex;flex-direction:column;font-size:12px;color:var(--muted)}.result-stats b{font-size:24px;color:var(--ink);margin-bottom:6px}#result .play-button{width:100%;font-size:21px;min-height:61px}#result-unlock{font-size:15px;padding:12px;border:1px solid #e4ca8e;background:#fff0c7;border-radius:12px;margin-bottom:18px}#confirm-leave h2{font-size:23px}#confirm-leave p{font-size:15px;line-height:1.8;margin:12px 0 24px}#toast{position:fixed;z-index:100;bottom:calc(100px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);background:#452a19;color:#fff3d7;box-shadow:0 6px 20px #35130044;border:1px solid #b08959;padding:13px 20px;border-radius:14px;max-width:calc(100% - 32px);min-width:180px;text-align:center;font-size:14px;line-height:1.6}
@keyframes mascot-float{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-6px) rotate(1deg)}}
@media(min-width:1200px){.game-shell{padding:0 58px}.home-stage{gap:65px;padding:32px 40px}.hero{padding-right:10%}.hero-mascot{left:16%}.pane{padding:35px 45px}}
@media(max-width:650px){.game-shell{padding:0 16px}.topbar{min-height:75px;padding:calc(10px + env(safe-area-inset-top)) 0 8px;gap:8px}.identity{gap:7px;font-size:13px}.identity img{width:38px;height:38px;border-radius:12px}.wallets{gap:5px}.wallet{min-height:35px;padding:5px 8px;border-radius:11px;gap:5px}.wallet svg{width:18px;height:18px}.wallet b{font-size:15px}.topbar .icon-btn{width:38px;height:38px;border-radius:11px}.hero{min-height:175px;max-height:285px;padding-right:8px}.hero-title{padding-bottom:8px}.hero-title h1{font-size:45px;letter-spacing:-2px;line-height:1.6}.wordmark-en{font-size:12px;letter-spacing:2px}.hero-pill{font-size:12px;padding:6px 9px;gap:5px}.hero-pill svg{width:15px;height:15px}.hero-mascot{height:auto;width:245px;max-width:65%;bottom:-10%;left:-22px}.speed-mark{display:none}.home-stage{padding:16px 20px 22px;border-radius:29px;display:flex;flex-direction:column;gap:16px;min-height:0;margin-bottom:12px;flex-shrink:0}.stage-top{height:28px}.vehicle-display{min-height:0}#hero-vehicle{height:128px}.vehicle-caption{margin:0 0 9px}.vehicle-caption h2{font-size:19px}.play-controls{gap:13px}.mode-switch{padding:4px;border-radius:14px}.mode-switch button{min-height:40px;font-size:14px}.play-button{min-height:61px;font-size:22px;padding:10px 18px;border-radius:16px;gap:10px}.cup-rule{gap:20px}.bottom-nav{height:75px;gap:8px;padding:0 0 calc(6px + env(safe-area-inset-bottom))}.bottom-nav button{flex:1;min-width:0;min-height:56px;flex-direction:column;gap:4px;font-size:12px;padding:8px 6px;border-radius:15px}.bottom-nav svg{width:21px;height:21px}.pane{padding:23px 18px;margin-top:12px;border-radius:27px}.pane-heading h1{font-size:27px}.garage-list{grid-template-columns:1fr;gap:17px}.garage-card{padding:14px 18px;border-radius:21px}.garage-card canvas{height:170px}.garage-card-bottom strong{font-size:21px}.profile-stats{gap:25px}.podium{gap:7px}.podium-name{font-size:13px}.podium-step b{font-size:22px}.rank-row{gap:9px;padding:12px;font-size:14px}.rank-row .position{width:24px}.rank-row .rank-cups{font-size:17px;gap:5px}.queue-view{padding:20px 0}.queue-view>img{width:135px;height:135px}.queue-view h1{font-size:26px}.queue-players{gap:7px;width:100%}.queue-slot{width:24%;height:87px;min-width:0;font-size:12px}.queue-slot span{max-width:65px}.race-top{height:58px;font-size:14px;gap:10px}.race-top b{font-size:17px}.road-frame{border-radius:17px;min-height:180px}.race-stats{gap:24px;padding:13px 0}.race-stats b{font-size:23px}.race-stats small{font-size:12px}.race-stats>span{gap:5px}.typing-dock{border-radius:17px;padding:12px 14px;max-height:41%}.target-text{font-size:19px;line-height:1.9;margin-bottom:10px}.typing-dock textarea{font-size:17px;min-height:49px;height:49px;padding:10px 12px}.typing-status{padding-top:7px}.race-view{padding-inline:10px}.countdown b{font-size:80px}dialog{padding:25px}}
@media(max-height:730px) and (max-width:650px){.hero{min-height:142px;max-height:180px}.hero-title h1{font-size:39px}.hero-mascot{max-width:62%;width:210px}.home-stage{padding:13px 18px 18px;gap:12px}#hero-vehicle{height:100px}.topbar{min-height:64px}.bottom-nav{height:66px}.play-controls{gap:11px}.play-button{min-height:55px}.hero-pill{padding:4px 8px}.race-stats{padding:8px 0}}
@media(max-height:550px){.home-view{overflow-y:auto}.home-stage{min-height:280px;flex-shrink:0}.hero{min-height:140px;flex-shrink:0}.race-view{padding-bottom:6px}.race-top{height:43px}.race-top .icon-btn{width:35px;height:35px}.road-frame{min-height:120px}.race-stats{padding:5px;gap:28px}.race-stats b{font-size:19px}.typing-dock{padding:8px 12px;max-height:47%;border-radius:12px}.target-text{font-size:17px;line-height:1.6;margin-bottom:6px;min-height:25px}.typing-dock textarea{min-height:43px;height:43px;font-size:16px;padding:8px 10px}.typing-status{padding-top:4px}.race-stats small{font-size:12px}.bottom-nav{height:65px}.topbar{min-height:60px;padding-top:8px}.pane{margin-top:4px}}
@media(max-height:550px) and (min-width:651px){.home-view{display:grid;grid-template-columns:.7fr 1fr;gap:18px;align-items:center}.hero{height:240px;min-height:220px}.hero-title h1{font-size:44px}.hero-mascot{left:-10px;bottom:5%;height:220px}.hero-title{align-self:flex-end;padding-bottom:28px}.hero-pill{display:none}.home-stage{grid-template-columns:1fr 1fr;gap:20px;padding:20px;margin:0;min-height:260px}.vehicle-caption{display:block}.vehicle-caption span{font-size:12px}#hero-vehicle{height:120px}.play-button{font-size:19px;padding:12px;min-height:60px}.cup-rule{gap:9px}.race-view{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:42px 1fr 36px;gap:8px 14px}.race-top{grid-column:1/-1}.road-frame{grid-column:1;grid-row:2}.race-stats{grid-column:1;grid-row:3}.typing-dock{grid-column:2;grid-row:2/4;max-height:none;align-self:stretch;display:flex;flex-direction:column;justify-content:center}.target-text{font-size:23px;line-height:1.9;margin-bottom:20px}.typing-dock textarea{height:60px;min-height:60px}.typing-status{padding-top:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.text-level{font-size:12px;font-weight:700;color:#6e431e;align-self:flex-start}.emoji-keys{display:flex;gap:6px;flex-wrap:wrap;padding-top:5px}.emoji-keys[hidden]{display:none}.emoji-keys button{font-size:21px;line-height:1;background:#ffe8b7;border:1px solid #f7bd65;border-radius:9px;width:38px;height:34px;cursor:pointer}.emoji-keys button:active{transform:scale(.92)}
.typing-dock{display:flex;flex-direction:column;overflow:hidden}.target-text{overflow-y:auto;min-height:26px;max-height:120px;flex:1;scrollbar-width:thin}.typing-dock textarea,.emoji-keys,.typing-status{flex-shrink:0}
.home-view{overflow-y:auto}.bottom-nav{position:relative;z-index:5;background:#ff7900}.topbar{position:relative;z-index:5}
