.drift-page{min-height:100vh;background:radial-gradient(ellipse at 50% 12%,#426b513d,transparent 38%),#091a19;color:#f2f7ee;padding-bottom:calc(20px + env(safe-area-inset-bottom))}.drift-nav{position:relative;z-index:3;width:min(1200px,calc(100% - 32px));margin:14px auto 18px;padding:11px 14px;border-radius:21px;display:flex;align-items:center;justify-content:space-between;gap:14px}.drift-nav .quiet-button{font-size:10px;padding:10px 14px;border-radius:13px}.player-chip{display:flex;align-items:center;gap:10px}.player-chip small,.player-chip strong{display:block}.player-chip small{font-size:7px;letter-spacing:.12em;color:#bad0c3}.player-chip strong{font-size:11px;margin-top:4px}.nav-actions{display:flex;gap:8px}.nav-actions .round-button{width:39px;height:39px;font-size:18px}.drift-wrap{width:min(1200px,calc(100% - 32px));margin:0 auto}.track-shell{position:relative;overflow:hidden;border-radius:28px;aspect-ratio:1.5;background:#182a25;isolation:isolate}.track-shell>canvas{display:block;width:100%;height:100%;object-fit:contain}.race-intro{position:absolute;left:clamp(14px,4vw,40px);top:50%;transform:translateY(-50%);width:min(410px,calc(100% - 28px));padding:clamp(20px,4vw,36px);border-radius:25px;background:linear-gradient(145deg,#102d2deF,#10201fe9);box-shadow:0 22px 70px #06110db0}.race-intro .eyebrow{font-size:8px;margin:0 0 9px}.race-intro h1{font-size:clamp(42px,6vw,64px);line-height:.93;letter-spacing:-.06em;margin:0 0 13px}.race-intro h1 em{font-style:normal;color:#8ef1d5}.race-intro>p:not(.eyebrow){font-size:12px;line-height:1.75;color:#d0dfd2;margin:0}.race-facts{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.race-facts span{border:1px solid #b6e5d433;border-radius:10px;background:#d3f5df0a;padding:7px 9px;font-size:8px;color:#c8e5d8}.race-instructions{display:grid;gap:6px;padding:13px 0 16px;border-top:1px solid #d3f5df20;font-size:9px;color:#c4d8ce}.race-instructions kbd{font:inherit;padding:3px 6px;border:1px solid #d3f5df3a;border-radius:6px;background:#d3f5df0d;color:#effff7}.race-intro .primary-button{width:100%;padding:14px 17px;border-radius:14px;font-size:12px}.back-link{display:block;text-align:center;text-decoration:none;color:#b7cfc1;font-size:9px;margin:14px 0 0}.race-hud{position:absolute;inset:14px;pointer-events:none;z-index:2;display:grid;grid-template-columns:1fr 1fr 1fr;grid-template-rows:auto 1fr auto;gap:10px}.hud-stat{justify-self:start;min-width:105px;padding:10px 13px;border:1px solid #f1fff430;border-radius:14px;background:#0b2926cc;box-shadow:inset 0 1px 0 #fff3;backdrop-filter:blur(12px)}.hud-stat small,.hud-stat strong,.hud-stat span{display:block}.hud-stat small{font-size:7px;letter-spacing:.12em;color:#bee4d6}.hud-stat strong{font-size:20px;line-height:1.25;margin-top:3px}.hud-stat span{font-size:7px;color:#9be6d1;margin-top:3px}.hud-stat.timer{justify-self:center;text-align:center}.hud-stat.speed{justify-self:end;text-align:right}.hud-stat.speed strong{display:flex;align-items:baseline;gap:5px}.hud-stat.speed strong i{font-size:8px;font-style:normal;color:#b8d5c7}.nitro{grid-column:1/4;grid-row:3;align-self:end;justify-self:center;width:min(260px,58%);padding:8px 11px 10px;border-radius:12px;background:#0b2926cc;border:1px solid #f1fff430;backdrop-filter:blur(12px)}.nitro>div{display:flex;justify-content:space-between;margin-bottom:6px}.nitro small{font-size:7px;letter-spacing:.1em}.nitro strong{font-size:8px;color:#aaffdf}.nitro>span{display:block;height:6px;background:#d9fff01b;border-radius:99px;overflow:hidden}.nitro i{display:block;width:100%;height:100%;background:linear-gradient(90deg,#51cdb5,#baffc3);border-radius:inherit;transition:width .12s linear}.race-notice{grid-column:1/4;grid-row:2;justify-self:center;align-self:center;margin:0;padding:9px 13px;border-radius:12px;background:#102a26d9;color:#e6fff2;font-size:11px;text-shadow:0 2px 8px #000;box-shadow:0 8px 25px #07141050}.touch-controls{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:12px 0 7px}.steer-controls,.drive-controls{display:flex;gap:8px}.touch-controls button{min-width:51px;min-height:50px;border:1px solid #d9ffef3a;border-radius:15px;background:linear-gradient(145deg,#24463ce8,#102721ed);color:#eafcf1;font-size:10px;font-weight:750;touch-action:none;user-select:none;box-shadow:inset 0 1px 0 #fff2,0 6px 18px #0003}.touch-controls button:active,.touch-controls button.pressed{background:#477c69;transform:translateY(1px)}.steer-controls button{font-size:22px;width:58px}.touch-controls .drift-control{color:#95f5d8}.touch-controls .boost-control{color:#ffd49c}.game-footnote{max-width:880px;margin:10px auto 0;text-align:center;font-size:9px;color:#a8beb1;line-height:1.7}.race-dialog{width:min(420px,calc(100% - 28px));max-height:calc(100dvh - 28px);overflow:auto;margin:auto;padding:30px;border-radius:28px;text-align:center;color:var(--fg);background:linear-gradient(145deg,#1b3c3ced,#0d201fee);border:1px solid #e2fff047;box-shadow:0 25px 90px #0009}.race-dialog::backdrop{background:#04100db8;backdrop-filter:blur(8px)}.race-dialog .eyebrow{font-size:8px}.race-dialog h2{font-size:28px;letter-spacing:-.04em;margin:0 0 12px}.race-dialog>p:not(.eyebrow){font-size:12px;line-height:1.7;color:#bed2c5}.race-dialog .primary-button,.race-dialog .quiet-button{width:100%;margin-top:9px;justify-content:center;border-radius:14px}.result-score{display:grid;place-items:center;margin:20px auto;width:132px;height:132px;border:1px solid #9cf3db55;border-radius:50%;background:radial-gradient(circle,#7ff0cf22,#15352e88 70%);box-shadow:inset 0 0 25px #7ff0cf16}.result-score strong{font-size:34px;line-height:1}.result-score span{font-size:8px;letter-spacing:.12em;color:#a9d9c8}.no-js{margin:20px;text-align:center}.no-js a{color:#9cf3db}@media(max-width:760px){.drift-nav{margin:10px auto 12px}.drift-wrap{width:calc(100% - 20px)}.track-shell{aspect-ratio:1.12;border-radius:22px}.race-intro{left:12px;width:min(355px,calc(100% - 24px));padding:19px;top:49%}.race-intro h1{font-size:47px}.race-intro>p:not(.eyebrow){font-size:11px}.race-instructions{font-size:8px}.race-facts{margin:12px 0}.race-facts span{font-size:7px}.race-hud{inset:8px;gap:6px;grid-template-rows:auto 1fr auto}.hud-stat{min-width:78px;padding:8px 9px;border-radius:11px}.hud-stat strong{font-size:16px}.hud-stat small,.hud-stat span{font-size:6px}.nitro{width:min(240px,74%)}.touch-controls{align-items:stretch;flex-direction:column}.steer-controls,.drive-controls{justify-content:space-between}.drive-controls button{flex:1;min-width:0;padding:0 4px;font-size:8px}.steer-controls button{width:calc(50% - 4px);min-height:54px}.game-footnote{font-size:8px;padding:0 9px}}@media(max-width:390px){.track-shell{aspect-ratio:1}.race-intro{padding:15px}.race-intro h1{font-size:42px}.race-facts span{padding:6px}.race-instructions{gap:4px}.hud-stat{min-width:68px;padding:7px}.hud-stat strong{font-size:14px}.touch-controls button{min-height:48px}}@media(prefers-reduced-motion:reduce){.touch-controls button,.nitro i{transition:none}}
