:root {
  color-scheme:dark;
  --bg:#090e14;
  --panel:#111923;
  --line:#303c49;
  --orange:#ff6531;
  --muted:#9ba8b8;
  --green:#2fe09d;
  --ink:#f8fafc
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans KR",sans-serif;
  line-height:1.5;
  -webkit-tap-highlight-color:transparent
}
button,input,a {
  font:inherit
}
button,a {
  touch-action:manipulation
}
button {
  color:inherit;
  cursor:pointer
}
button:disabled {
  opacity:.45;
  cursor:default
}
a {
  color:inherit;
  text-decoration:none
}
button:focus-visible,a:focus-visible,input:focus-visible {
  outline:3px solid #ffad72;
  outline-offset:4px
}
[hidden] {
  display:none!important
}
svg {
  width:24px;
  height:24px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex:none
}
.icon-defs {
  position:absolute;
  width:0;
  height:0;
  overflow:hidden
}
#drag-app {
  max-width:740px;
  min-height:100vh;
  min-height:100dvh;
  margin:auto;
  background:linear-gradient(150deg,#111b24,#090e14 50%);
  border-inline:1px solid #1d2732;
  padding-top:env(safe-area-inset-top);
  padding-bottom:env(safe-area-inset-bottom)
}
.topbar {
  display:grid;
  grid-template-columns:48px 1fr 48px;
  gap:8px;
  align-items:center;
  padding:12px 16px;
  border-bottom:1px solid #25313c;
  background:#0c121ae8
}
.topbar>div {
  text-align:center
}
.brand {
  font-size:10px;
  letter-spacing:2px;
  font-weight:900;
  color:var(--orange);
  font-style:italic
}
.topbar h1 {
  font-size:19px;
  line-height:1.2;
  margin:2px 0 4px
}
.icon-button {
  width:44px;
  height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:none;
  border:0;
  border-radius:12px;
  position:relative
}
.icon-button svg {
  width:24px;
  height:24px
}
.sound-off {
  font-size:8px;
  position:absolute;
  bottom:0;
  color:var(--muted);
  font-weight:700
}
.connection {
  min-height:30px;
  display:flex;
  gap:7px;
  align-items:center;
  justify-content:flex-end;
  padding:4px 18px;
  font-size:10px;
  color:var(--muted)
}
.status-dot {
  width:6px;
  height:6px;
  border-radius:50%;
  background:#798594
}
.connection.online .status-dot {
  background:var(--green);
  box-shadow:0 0 8px #2fe09d60
}
.connection.warn .status-dot {
  background:var(--orange)
}
#latency {
  font-variant-numeric:tabular-nums
}
.screen {
  animation:screen-in .22s ease-out
}
.padded {
  padding:14px 20px 24px
}
.garage-hero {
  position:relative;
  overflow:hidden;
  background:#141b22;
  aspect-ratio:1.65
}
.garage-hero>img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block
}
.garage-hero:after {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,#0004,transparent 50%,#0e151db0)
}
.hero-chip {
  position:absolute;
  top:15px;
  left:20px;
  z-index:1;
  border:1px solid #fb893b;
  background:#15100bbc;
  color:#ffad63;
  border-radius:25px;
  padding:4px 11px;
  font-size:12px;
  font-weight:700
}
.hero-copy {
  position:absolute;
  z-index:1;
  left:20px;
  top:60px
}
.hero-copy>span {
  font-size:8px;
  letter-spacing:2px;
  color:#c6c6c6
}
.hero-copy h2 {
  font-size:20px;
  line-height:1.35;
  margin:8px 0;
  text-shadow:0 2px 10px #000
}
.lobby-content {
  padding:0 20px 20px
}
.profile-card {
  position:relative;
  margin-top:-12px;
  padding:14px 12px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#101923ee;
  display:flex;
  gap:10px;
  align-items:center;
  z-index:2
}
.avatar-wrap {
  width:42px;
  height:42px;
  background:#293440;
  border:1px solid #6d7782;
  border-radius:50%;
  flex:none;
  display:grid;
  place-items:center;
  overflow:hidden
}
.avatar-wrap img {
  width:100%;
  height:100%;
  object-fit:cover
}
.profile-copy {
  flex:1;
  min-width:0
}
.profile-copy b {
  font-size:14px;
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}
.profile-copy p {
  font-size:11px;
  margin:3px 0;
  color:var(--muted)
}
.best-record {
  flex:none;
  text-align:right
}
.best-record span {
  display:block;
  font-size:10px;
  color:var(--muted)
}
.best-record strong {
  font-size:25px;
  font-weight:850;
  color:var(--orange);
  font-variant-numeric:tabular-nums
}
.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  border:1px solid var(--line);
  min-height:52px;
  padding:12px 14px;
  border-radius:12px;
  font-size:15px;
  font-weight:750;
  background:#15202a;
  transition:background .15s,transform .12s
}
.button:active:not(:disabled) {
  transform:scale(.98)
}
.primary {
  background:linear-gradient(120deg,#ff812c,#ff541e);
  border-color:#ff9f54;
  box-shadow:0 4px 18px #ff632421;
  color:#fff
}
.quick {
  width:100%;
  font-size:25px;
  min-height:72px;
  margin-top:16px;
  letter-spacing:.5px
}
.quick svg {
  width:32px;
  height:32px
}
.button-caption {
  text-align:center;
  color:#c0c9d4;
  font-size:12px;
  margin:8px 0 17px
}
.button-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px
}
.outline {
  background:linear-gradient(135deg,#1b2733,#0d151d);
  border-color:#84919e
}
.subtle {
  background:#101822;
  border-color:#465765
}
.secondary-actions {
  border-top:1px solid #33414c;
  margin-top:18px;
  padding-top:16px
}
.text-button {
  background:none;
  border:0;
  color:var(--muted);
  font-size:12px;
  padding:10px
}
.help-link {
  width:100%;
  margin-top:13px
}
.help-link span {
  color:var(--orange);
  margin-left:8px
}
.fair-note {
  color:#b3bdc9;
  text-align:center;
  font-size:11px;
  margin:4px
}
.game-footer {
  text-align:center;
  font-weight:900;
  font-style:italic;
  font-size:11px;
  letter-spacing:.7px;
  color:var(--orange);
  padding:18px 16px 20px
}
.game-footer span {
  color:#6d7b8b;
  font-weight:500;
  margin-left:7px
}
.game-footer small {
  display:block;
  font-style:normal;
  font-size:9px;
  letter-spacing:0;
  font-weight:400;
  color:#617083;
  margin-top:6px
}
.vs-garage {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  min-height:215px;
  padding:35px 4px 18px;
  background:radial-gradient(ellipse at 50% 20%,#5b352040,transparent 60%),repeating-linear-gradient(90deg,transparent 0,transparent 72px,#34404c25 73px,#34404c25 75px);
  border-bottom:1px solid #33414d
}
.versus-car {
  position:relative;
  text-align:center;
  min-width:0;
  flex:1
}
.versus-car>img {
  width:100%;
  display:block;
  filter:drop-shadow(0 12px 6px #0009)
}
.versus-car b {
  display:block;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:15px;
  margin-top:15px
}
.vs {
  color:#fff;
  font-size:27px;
  transform:skew(-12deg);
  text-shadow:0 0 16px var(--orange);
  width:40px;
  flex:none;
  text-align:center
}
.unknown img {
  filter:brightness(0) drop-shadow(0 0 1px #bec9d5);
  opacity:.7
}
.question {
  position:absolute;
  top:8px;
  left:45%;
  font-size:30px;
  font-weight:800;
  color:#788999
}
.graphite {
  filter:grayscale(1) brightness(.7)!important
}
.queue-copy {
  text-align:center;
  padding:16px 0
}
.queue-copy h2 {
  font-size:19px
}
.queue-copy p {
  font-size:13px
}
.queue-copy strong {
  color:var(--orange);
  font-size:20px;
  margin-left:6px;
  font-variant-numeric:tabular-nums
}
.search-dots {
  display:flex;
  gap:9px;
  justify-content:center;
  padding:10px
}
.search-dots i {
  width:8px;
  height:8px;
  background:var(--orange);
  border-radius:50%;
  animation:pulse 1.2s ease-in-out infinite
}
.search-dots i:nth-child(2) {
  animation-delay:.2s
}
.search-dots i:nth-child(3) {
  animation-delay:.4s
}
.rule-strip {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  border:1px solid #344451;
  border-radius:10px;
  padding:13px 5px;
  font-size:12px;
  text-align:center;
  color:#d4dbe5
}
.rule-strip span+span {
  border-left:1px solid #485867
}
.invite-callout {
  display:flex;
  align-items:center;
  gap:12px;
  padding:15px 12px;
  border:1px solid #3e4f5b;
  border-radius:10px;
  margin:14px 0
}
.invite-callout strong {
  font-size:13px;
  color:var(--orange)
}
.invite-callout p {
  font-size:10px;
  margin:4px 0;
  color:var(--muted)
}
.invite-callout>div {
  flex:1
}
.compact {
  font-size:12px;
  min-height:42px;
  padding:9px 12px;
  white-space:nowrap
}
.compact svg {
  width:18px;
  height:18px
}
.wide {
  width:100%
}
.muted {
  color:var(--muted);
  font-size:12px;
  line-height:1.75
}
.centered {
  text-align:center
}
.eyebrow {
  color:var(--orange);
  font-size:11px;
  font-weight:800;
  letter-spacing:2px
}
.room-heading h2 {
  font-size:25px;
  margin:6px 0
}
.room-heading p {
  margin:5px 0 16px
}
.invite-panel {
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:10px;
  padding:13px;
  background:#17212b;
  border:1px solid var(--line);
  border-radius:12px
}
.invite-panel>span {
  font-size:11px;
  color:var(--muted)
}
.code-button {
  background:none;
  border:0;
  color:#ffac69;
  font-size:24px;
  font-weight:850;
  letter-spacing:2px;
  padding:5px 0
}
.invite-panel small {
  grid-column:1/-1;
  font-size:10px;
  color:var(--muted);
  text-align:center
}
.room-cars {
  min-height:220px;
  margin-bottom:20px
}
.ready-badge {
  display:inline-block;
  font-size:10px;
  padding:4px 9px;
  background:#1f2a35;
  color:#a5b4c4;
  border-radius:5px;
  margin-top:8px
}
.ready-badge.on {
  background:#163d30;
  color:#60efb6
}
.room-tip {
  font-size:12px;
  text-align:center;
  color:#c5ccd5;
  margin:18px 0
}
.leave-button {
  display:block;
  margin:10px auto
}
.race-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:8px 18px 12px
}
.race-head>span {
  font-size:10px;
  font-weight:700;
  color:var(--orange)
}
.race-head>strong {
  font-size:29px;
  letter-spacing:1px;
  font-variant-numeric:tabular-nums
}
.race-head>strong span {
  font-size:13px;
  margin-left:4px;
  color:var(--muted)
}
.race-stage {
  position:relative;
  overflow:hidden;
  background:#171c22;
  border-block:1px solid #3b434b
}
.track-sky {
  height:84px;
  background:linear-gradient(#253148,#685452 65%,#ca896450,#181b20 80%);
  position:relative;
  border-bottom:5px solid #53575b
}
.track-sky:before {
  content:"";
  position:absolute;
  inset:35% 0 0;
  background:linear-gradient(155deg,transparent 40%,#1c2830 41%,#1c2830 58%,transparent 59%) 0 0/280px 100%
}
.track-sky>span {
  position:absolute;
  bottom:6px;
  left:16px;
  font-size:11px;
  font-style:italic;
  font-weight:800;
  letter-spacing:2px;
  color:#bbc0c3
}
.signal {
  position:absolute;
  right:20px;
  top:16px;
  display:flex;
  gap:8px;
  border:2px solid #44505c;
  background:#0a0e14;
  padding:7px;
  border-radius:6px
}
.signal i {
  width:13px;
  height:13px;
  border-radius:50%;
  background:#24303b
}
.signal i.red {
  background:#ff4a51;
  box-shadow:0 0 12px #ff434980
}
.signal i.amber {
  background:#ffbf49;
  box-shadow:0 0 12px #ffb845a0
}
.signal i.green {
  background:var(--green);
  box-shadow:0 0 12px #2fe09da0
}
.lane {
  height:112px;
  position:relative;
  background:repeating-linear-gradient(90deg,transparent 0,transparent 59px,#ffffff04 60px,#ffffff04 61px),linear-gradient(#262a31,#1a2028);
  border-bottom:2px dashed #c5c3b02a;
  overflow:hidden
}
.lane-label {
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:10px;
  padding:8px 14px;
  color:#d8dde3;
  position:relative;
  z-index:2
}
.lane-label b {
  max-width:70%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis
}
.lane-label span {
  font-variant-numeric:tabular-nums;
  color:#aaafb8
}
.distance-line {
  position:absolute;
  top:29px;
  left:14px;
  right:14px;
  height:2px;
  background:#ffffff12
}
.distance-line>span {
  display:block;
  height:100%;
  background:var(--orange);
  width:0
}
.lane-other .distance-line>span {
  background:#a8b9c9
}
.car-runner {
  position:absolute;
  left:12px;
  bottom:12px;
  width:138px;
  will-change:transform
}
.car-runner img {
  display:block;
  width:100%;
  filter:drop-shadow(0 5px 4px #0009)
}
.finish-line {
  position:absolute;
  top:35px;
  bottom:0;
  right:14px;
  width:8px;
  opacity:.28;
  background:repeating-conic-gradient(#fff 0% 25%,#171b21 0% 50%) 0 0/8px 8px
}
.race-announcement {
  position:absolute;
  z-index:4;
  left:50%;
  top:78px;
  transform:translateX(-50%);
  font-size:22px;
  font-weight:900;
  color:#fff;
  text-shadow:0 2px 12px #000;
  background:#0b1019d9;
  border:1px solid #6d503a;
  padding:6px 16px;
  border-radius:8px;
  white-space:nowrap;
  pointer-events:none
}
.cockpit {
  padding:14px 18px 20px;
  background:radial-gradient(ellipse at center,#202934,#0c131b 70%)
}
.shift-feedback {
  text-align:center;
  height:30px;
  color:var(--orange);
  font-size:15px;
  font-weight:900;
  font-style:italic;
  letter-spacing:1px
}
.instruments {
  display:grid;
  grid-template-columns:1fr 2.4fr 1fr;
  align-items:end;
  max-width:450px;
  margin:auto
}
.speed,.gear {
  text-align:center;
  padding-bottom:26px
}
.speed strong,.gear strong {
  display:block;
  font-size:35px;
  font-weight:850;
  line-height:1.2;
  font-variant-numeric:tabular-nums
}
.gear strong {
  color:var(--orange);
  font-size:42px
}
.speed span,.gear span {
  font-size:10px;
  color:#a2adbb
}
.tach {
  position:relative;
  text-align:center;
  min-width:0
}
.tach>svg {
  width:100%;
  height:auto;
  display:block;
  overflow:visible
}
.tach-rail {
  stroke:#3d4854;
  stroke-width:7
}
.tach-zone {
  stroke:#ff813d;
  stroke-width:8;
  stroke-dasharray:2000 9000;
  stroke-dashoffset:-4000
}
.tach-numbers {
  stroke:none;
  fill:#8f9fb0;
  font-size:12px;
  font-family:inherit;
  text-anchor:middle
}
#tach-needle {
  transform-origin:120px 120px;
  transform:rotate(20deg);
  transition:transform .06s linear
}
#tach-needle path {
  stroke:var(--orange);
  stroke-width:3
}
#tach-needle circle {
  fill:#f2f4f8;
  stroke:#697584
}
.tach>span {
  display:block;
  margin-top:-9px;
  font-size:13px;
  font-weight:700;
  font-variant-numeric:tabular-nums
}
.tach>small {
  font-size:7px;
  color:#8291a3
}
.control-tip {
  text-align:center;
  font-size:11px;
  color:#bcc7d2;
  margin:9px 0 15px;
  min-height:17px
}
.pedals {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  max-width:450px;
  margin:auto
}
.pedal {
  border-radius:16px;
  min-height:100px;
  border:1px solid #66788c;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:3px;
  position:relative;
  overflow:hidden;
  touch-action:none;
  user-select:none;
  -webkit-user-select:none;
  -webkit-touch-callout:none
}
.pedal>span {
  font-size:24px;
  font-weight:900;
  z-index:1
}
.pedal>small {
  font-size:9px;
  z-index:1
}
.accelerator {
  background:linear-gradient(145deg,#2e4051,#17232e);
  box-shadow:inset 0 2px #627587,0 5px #02070b;
  color:#d6e2ed
}
.accelerator i {
  position:absolute;
  inset:0;
  opacity:.14;
  background:repeating-linear-gradient(110deg,transparent 0,transparent 12px,#fff 13px,#fff 14px)
}
.accelerator.pressed {
  background:linear-gradient(150deg,#505e68,#233746);
  transform:translateY(3px);
  box-shadow:inset 0 2px 10px #0008,0 2px #02070b
}
.shift {
  background:linear-gradient(145deg,#ff8b2e,#f34d20);
  border-color:#ffa95c;
  box-shadow:inset 0 2px #ffbf81,0 5px #852306;
  color:#fff
}
.shift>svg {
  width:24px;
  height:24px;
  position:absolute;
  right:12px;
  opacity:.5
}
.shift:active {
  transform:translateY(3px);
  box-shadow:inset 0 2px #ffbf81,0 2px #852306
}
.result-hero {
  text-align:center;
  position:relative;
  background:radial-gradient(ellipse at 50% 70%,#8c532a30,transparent 70%);
  padding-top:12px
}
.result-hero h2 {
  font-size:48px;
  font-style:italic;
  font-weight:950;
  margin:0;
  letter-spacing:-2px;
  color:var(--orange)
}
.result-hero p {
  font-size:12px;
  color:#bdc8d4;
  margin:3px 0 12px
}
.result-hero img {
  width:85%;
  max-width:420px;
  margin:12px auto
}
.result-row {
  padding:15px;
  border:1px solid #364450;
  border-radius:12px;
  margin:10px 0;
  background:#111d27;
  display:grid;
  grid-template-columns:1fr auto;
  gap:5px 12px
}
.result-row.me {
  border-color:#dd703e;
  background:linear-gradient(125deg,#3c2b1d,#141e27)
}
.result-row b {
  font-size:15px;
  overflow-wrap:anywhere
}
.result-row strong {
  font-size:26px;
  color:#fff;
  line-height:1.2;
  font-variant-numeric:tabular-nums
}
.result-row small {
  font-size:10px;
  color:var(--muted)
}
.result-row .outcome {
  font-size:10px;
  color:var(--orange);
  text-align:right
}
.ranking-list {
  margin:20px 0
}
.ranking-row {
  display:grid;
  grid-template-columns:27px 34px 1fr auto;
  align-items:center;
  gap:9px;
  padding:15px 0;
  border-bottom:1px solid #2b3844
}
.ranking-row>strong {
  font-size:16px;
  color:var(--orange)
}
.ranking-row img {
  width:32px;
  height:32px;
  border-radius:50%;
  background:#334351
}
.ranking-row b {
  font-size:13px;
  overflow-wrap:anywhere
}
.ranking-row span {
  font-size:15px;
  font-variant-numeric:tabular-nums
}
.empty {
  text-align:center;
  padding:50px 12px;
  color:#a9b5c3;
  font-size:13px
}
.dialog-overlay {
  position:fixed;
  inset:0;
  z-index:2147483600;
  background:#000b;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  padding-top:max(20px,env(safe-area-inset-top));
  padding-bottom:max(20px,env(safe-area-inset-bottom));
  overflow:auto;
  isolation:isolate
}
.dialog {
  position:relative;
  width:100%;
  max-width:420px;
  max-height:calc(100vh - 40px);
  max-height:calc(100dvh - 40px);
  overflow:auto;
  border:1px solid #546274;
  border-radius:20px;
  padding:25px 22px;
  background:#15202c;
  box-shadow:0 20px 80px #0008
}
.dialog h2 {
  font-size:21px;
  margin:4px 32px 14px 0
}
.dialog-close {
  position:absolute;
  right:10px;
  top:10px;
  font-size:29px;
  color:#adbac7
}
.dialog input {
  display:block;
  width:100%;
  padding:14px;
  background:#0b131d;
  border:1px solid #627185;
  border-radius:10px;
  color:#ffad70;
  font-size:27px;
  text-align:center;
  font-weight:800;
  letter-spacing:4px;
  margin:18px 0;
  text-transform:uppercase
}
.help-steps {
  padding-left:23px
}
.help-steps li {
  color:var(--orange);
  padding:5px 0
}
.help-steps b {
  font-size:14px
}
.help-steps p {
  font-size:12px;
  color:#c1cbd8;
  margin:5px 0 12px
}
.message {
  background:#38271c;
  border:1px solid #855237;
  margin:10px 16px;
  padding:13px;
  border-radius:10px;
  font-size:12px;
  color:#ffd3b8;
  overflow-wrap:anywhere
}
.message a {
  color:#ffb883;
  text-decoration:underline;
  margin-left:8px
}
#toast {
  position:fixed;
  z-index:2147483640;
  bottom:max(28px,env(safe-area-inset-bottom));
  left:50%;
  transform:translateX(-50%);
  padding:12px 18px;
  max-width:calc(100vw - 30px);
  width:max-content;
  background:#e9eff4;
  color:#14202c;
  box-shadow:0 4px 30px #0006;
  border-radius:12px;
  font-size:12px;
  text-align:center;
  pointer-events:none
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0)
}
@keyframes pulse {
  50% {
    opacity:.25;
    transform:scale(.75)
  }
  
}
@keyframes screen-in {
  from {
    opacity:0;
    transform:translateY(5px)
  }
  to {
    opacity:1;
    transform:none
  }
  
}
@media(min-width:700px) {
  #drag-app {
    margin:22px auto;
    border-radius:24px;
    overflow:hidden;
    min-height:0
  }
  .topbar {
    padding:17px 24px
  }
  .garage-hero {
    aspect-ratio:2
  }
  .hero-copy {
    top:74px;
    left:28px
  }
  .hero-copy h2 {
    font-size:29px
  }
  .hero-chip {
    left:28px
  }
  .lobby-content {
    padding:0 30px 24px
  }
  .profile-card {
    padding:19px
  }
  .profile-copy b {
    font-size:18px
  }
  .profile-copy p {
    font-size:13px
  }
  .best-record strong {
    font-size:33px
  }
  .avatar-wrap {
    width:55px;
    height:55px
  }
  .padded {
    padding:20px 32px 30px
  }
  .vs-garage {
    min-height:270px
  }
  .versus-car b {
    font-size:19px
  }
  .lane {
    height:147px
  }
  .car-runner {
    width:185px;
    bottom:17px
  }
  .track-sky {
    height:110px
  }
  .race-announcement {
    top:106px
  }
  .cockpit {
    padding:17px 20px 26px
  }
  .pedal {
    min-height:113px
  }
  .game-footer {
    padding-bottom:24px
  }
  
}
@media(max-width:370px) {
  .button {
    font-size:13px;
    padding-inline:9px
  }
  .quick {
    font-size:23px
  }
  .profile-copy b {
    font-size:12px
  }
  .profile-copy p {
    font-size:10px
  }
  .best-record strong {
    font-size:22px
  }
  .code-button {
    font-size:21px;
    letter-spacing:1px
  }
  .invite-panel {
    gap:6px;
    padding:10px
  }
  .hero-copy h2 {
    font-size:17px
  }
  .padded {
    padding-inline:14px
  }
  .car-runner {
    width:116px
  }
  .lane {
    height:100px
  }
  .track-sky {
    height:68px
  }
  .race-announcement {
    top:62px
  }
  
}
@media(max-height:740px) and (max-width:699px) {
  body.in-race .topbar {
    padding-block:6px
  }
  body.in-race .brand {
    display:none
  }
  body.in-race .connection {
    min-height:24px;
    padding-block:2px
  }
  .track-sky {
    height:57px
  }
  .race-announcement {
    top:54px;
    font-size:18px
  }
  .lane {
    height:87px
  }
  .car-runner {
    width:115px;
    bottom:8px
  }
  .lane-label {
    padding-block:5px
  }
  .distance-line {
    top:23px
  }
  .cockpit {
    padding-top:8px
  }
  .instruments {
    max-width:310px
  }
  .shift-feedback {
    height:24px;
    font-size:13px
  }
  .control-tip {
    margin:3px 0 9px;
    font-size:10px
  }
  .pedal {
    min-height:85px
  }
  .game-footer {
    display:none
  }
  
}
@media(prefers-reduced-motion:reduce) {
  * {
    animation:none!important;
    transition:none!important
  }
  .car-runner {
    will-change:auto
  }
  
}


body.in-race .game-footer {
  display:none
}

/* Fixed brake disc, speed-driven rim. Percentages match the original 2048x768 sprite. */
.car-runner .race-wheel{position:absolute;top:68.75%;width:14%;aspect-ratio:1;transform:translate(-50%,-50%);pointer-events:none}
.car-runner .race-wheel-rear{left:18.70%}.car-runner .race-wheel-front{left:79.93%}
.car-runner .race-wheel svg{position:absolute;inset:0;width:100%;height:100%;display:block;overflow:visible;stroke:none;stroke-width:0}
.car-runner .wheel-rim{transform-origin:center;will-change:transform}
.car-runner.wheels-fast .wheel-rim{filter:blur(.3px)}
.lane-other .race-wheel{filter:brightness(.7)}

/* v1.2 garage entry and pre-race performance, normal document flow on WebViews. */
.vehicle-art{position:relative;min-width:0;line-height:0}.vehicle-art>img{display:block;width:100%;height:auto!important;margin:0!important;max-width:none!important}.vehicle-art .race-wheel{position:absolute;top:68.75%;width:14%;aspect-ratio:1;transform:translate(-50%,-50%);pointer-events:none}.vehicle-art .race-wheel-rear{left:18.7%}.vehicle-art .race-wheel-front{left:79.93%}.vehicle-art .race-wheel svg{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke:none;stroke-width:0;overflow:visible}.vehicle-art .wheel-rim{transform-origin:50% 50%}.garage-entry{display:grid;grid-template-columns:112px 1fr auto;gap:12px;align-items:center;padding:14px;margin:0 0 16px;border:1px solid #66503f;border-radius:16px;background:#171d25;text-decoration:none;color:#f5f6f8}.garage-entry .eyebrow{display:block;font-size:10px;margin-bottom:4px}.garage-entry strong{display:block;font-size:17px}.garage-entry #lobby-spec{display:block;color:#acb5c3;font-size:12px;line-height:1.5;margin-top:4px}.garage-arrow{color:#ff8850;font-size:24px}.versus-car>.vehicle-art{width:100%;margin:0 auto 8px}.versus-car>.vehicle-art>img{transform:none}.result-hero>.vehicle-art{width:min(320px,90%);margin:10px auto}.room-performance{border:1px solid #303945;border-radius:14px;padding:14px;margin:18px 0;background:#151c25}.performance-title{display:flex;gap:8px;align-items:center;justify-content:space-between;font-size:14px;margin-bottom:10px}.performance-title span{color:#ffaf7d;font-size:11px}.room-performance table{width:100%;border-collapse:collapse;font-size:12px;font-variant-numeric:tabular-nums}.room-performance th,.room-performance td{padding:9px 4px;border-top:1px solid #28323e;text-align:right}.room-performance th:first-child{text-align:left;color:#aeb8c8;font-weight:400}.room-performance td:nth-child(2){color:#ffab79}.room-performance small{display:block;color:#9faaba;font-size:11px;line-height:1.6;margin-top:9px}.room-performance .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}#result-garage{margin:14px 0;text-decoration:none}a.button{text-decoration:none}@media(max-width:360px){.garage-entry{grid-template-columns:84px 1fr auto;gap:8px}.room-performance{padding:10px}.room-performance table{font-size:11px}}

/* Vehicle selection and model labels; v1.3.0 */
.vehicle-selection-link{margin-bottom:14px;justify-content:space-between;text-decoration:none}.model-label{display:block;color:#ffa06e;font-size:13px;letter-spacing:.02em;margin:7px 0 3px}.model-character{display:block;min-height:32px;color:#a9b1bf;font-size:11px;line-height:1.45}.room-performance td{white-space:nowrap}.room-performance table{font-size:11px}.garage-entry #lobby-spec{line-height:1.65}
