@font-face {
  font-family: Grotesk;
  src: url("/assets/aether/grotesk.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: Mono;
  src: url("/assets/aether/mono.ttf") format("truetype");
  font-display: swap;
}
:root {
  --cream: #f1f0e7;
  --ink: #14201f;
  --orange: #ff6035;
  --mono: Mono, monospace;
  --line: rgba(241, 240, 231, 0.23);
  color-scheme: dark;
  font-family: Grotesk, Arial, sans-serif;
  color: var(--cream);
  background: var(--ink);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
  width: 100%;
  height: 100dvh;
  overscroll-behavior: none;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 5px;
}
button {
  border: 0;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
button:hover,
a:hover {
  filter: brightness(1.12);
}
[hidden] {
  display: none !important;
}
#world,
#world canvas,
.vignette {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.vignette {
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(9, 20, 20, 0.91) 0%,
      rgba(9, 20, 20, 0.66) 29%,
      rgba(9, 20, 20, 0.05) 66%
    ),
    linear-gradient(
      0deg,
      rgba(9, 20, 20, 0.82),
      transparent 24%,
      transparent 85%,
      rgba(9, 20, 20, 0.3)
    );
  transition: background 0.4s;
}
body[data-state="racing"] .vignette,
body[data-state="countdown"] .vignette {
  background: linear-gradient(
    180deg,
    rgba(10, 19, 21, 0.6),
    transparent 25%,
    transparent 74%,
    rgba(10, 19, 21, 0.6)
  );
}
.topbar {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  width: 100%;
  height: 105px;
  padding: 0 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  letter-spacing: -1.2px;
  font-size: 28px;
  font-style: italic;
}
.brand-mark {
  color: var(--orange);
  font-size: 36px;
  letter-spacing: -8px;
  padding-right: 10px;
}
.edition {
  font: 9px/1 var(--mono);
  letter-spacing: 2px;
  font-style: normal;
  margin-left: 15px;
  padding: 8px 0 8px 20px;
  border-left: 1px solid var(--line);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}
.icon-button,
.text-button,
.back-link {
  background: none;
  font: 10px/1.4 var(--mono);
  letter-spacing: 1px;
  padding: 9px 0;
}
.icon-button span {
  color: var(--orange);
}
.back-link {
  margin-left: 12px;
}
.eyebrow {
  font: 10px/1.5 var(--mono);
  letter-spacing: 2px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--orange);
  margin-right: 7px;
  border-radius: 50%;
}
.menu-panel {
  position: absolute;
  left: 6.1%;
  top: 50%;
  transform: translateY(-47%);
  width: 410px;
  z-index: 2;
}
.menu-panel h1 {
  font-size: clamp(64px, 6.8vw, 105px);
  font-weight: 750;
  line-height: 0.89;
  letter-spacing: -0.055em;
  margin: 27px 0 24px;
}
.menu-panel em {
  font-style: normal;
  color: var(--orange);
}
.intro {
  font-size: 14px;
  line-height: 1.65;
  color: #d4d7cf;
  margin: 0 0 26px;
}
.track-facts {
  display: flex;
  gap: 39px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  margin-bottom: 22px;
}
.track-facts div {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.track-facts b {
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
}
.track-facts b span {
  font: 10px var(--mono);
  margin-left: 4px;
  color: #b8c0b9;
}
.track-facts small {
  font: 8px var(--mono);
  letter-spacing: 1px;
  color: #aeb9b1;
}
.race-options {
  display: flex;
  gap: 20px;
  margin-bottom: 19px;
}
.race-options label {
  font: 8px var(--mono);
  letter-spacing: 1.5px;
  color: #aeb9b1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--cream);
  font-size: 13px;
  border-radius: 0;
  padding: 7px 20px 7px 0;
  width: 100%;
  cursor: pointer;
}
select option {
  background: var(--ink);
  color: var(--cream);
}
.primary {
  background: var(--orange);
  color: #192120;
  width: 100%;
  padding: 20px 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 700 12px var(--mono);
  letter-spacing: 1.5px;
  min-height: 58px;
  transition:
    background 0.15s,
    transform 0.15s;
}
.primary:hover {
  background: #ff805b;
  transform: translateY(-1px);
}
.primary span {
  font: 28px/0.6 Arial;
}
.menu-utility {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  font: 10px var(--mono);
  color: #b8c3ba;
}
.check {
  display: flex;
  align-items: center;
  gap: 6px;
}
.check input {
  accent-color: var(--orange);
  width: 13px;
  height: 13px;
  margin: 0;
}
.quality-label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.quality-label select {
  font: 10px var(--mono);
  width: auto;
  padding: 4px 0;
  border: 0;
}
.car-caption {
  position: absolute;
  right: 5%;
  bottom: 19%;
  text-align: right;
}
.car-caption strong {
  display: block;
  font-size: 25px;
  letter-spacing: -0.8px;
  font-weight: 500;
  margin-top: 9px;
}
.car-caption p {
  font: 10px var(--mono);
  color: #ccd3ce;
}
.car-caption p span {
  color: var(--orange);
  padding: 0 8px;
}
.car-caption small {
  font: 8px var(--mono);
  color: #a4b1ac;
}
.menu-footer {
  position: absolute;
  bottom: 30px;
  left: 4%;
  right: 4%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font: 9px var(--mono);
  color: #afbab4;
}
.menu-footer > div {
  display: flex;
  align-items: center;
  gap: 9px;
}
.menu-footer span {
  margin-right: 16px;
  font-size: 8px;
  letter-spacing: 1px;
}
kbd {
  font: 8px var(--mono);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 4px 5px;
  color: var(--cream);
}
.loading-panel {
  position: absolute;
  left: 12%;
  top: 32%;
  width: 300px;
}
.loading-panel h1 {
  font-size: 52px;
  line-height: 1.05;
  letter-spacing: -2px;
  font-weight: 500;
  margin: 22px 0 40px;
}
.loading-panel p {
  font: 10px var(--mono);
  color: #aeb9b1;
}
.load-track {
  height: 2px;
  background: #ffffff20;
  width: 100%;
}
.load-track span {
  display: block;
  background: var(--orange);
  height: 100%;
  width: 5%;
  transition: width 0.3s;
}
body[data-state="racing"] .topbar,
body[data-state="countdown"] .topbar {
  height: 77px;
  pointer-events: none;
}
body[data-state="racing"] .top-actions,
body[data-state="countdown"] .top-actions {
  display: none;
}
body[data-state="racing"] .brand,
body[data-state="countdown"] .brand {
  font-size: 20px;
  opacity: 0.8;
  pointer-events: auto;
}
body[data-state="racing"] .edition,
body[data-state="countdown"] .edition {
  display: none;
}
#hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
#hud button {
  pointer-events: auto;
}
.race-heading {
  position: absolute;
  right: 4%;
  top: 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.position {
  display: flex;
  align-items: center;
  gap: 9px;
}
.position > strong {
  font-size: 51px;
  font-weight: 600;
  line-height: 1;
}
.position > span {
  font: 16px var(--mono);
  color: #b9c8c4;
}
.position small {
  display: block;
  font-size: 7px;
  letter-spacing: 1px;
  margin-top: 5px;
}
.lap-indicator {
  border-left: 1px solid var(--line);
  padding-left: 27px;
}
.lap-indicator small {
  display: block;
  font: 8px var(--mono);
  letter-spacing: 2px;
  margin-bottom: 5px;
}
.lap-indicator strong {
  font: 18px var(--mono);
}
.muted {
  color: #bbc8c2;
}
.pause-button {
  font-size: 24px;
  padding: 5px 10px;
  border: 1px solid var(--line);
}
.timing {
  position: absolute;
  top: 135px;
  left: 4%;
  width: 180px;
  text-shadow: 0 1px 10px #071d22b3;
}
.timing > strong {
  font: 27px var(--mono);
  display: block;
  margin: 10px 0 15px;
  letter-spacing: -1px;
}
.time-row {
  display: flex;
  justify-content: space-between;
  font: 10px var(--mono);
  margin: 8px 0;
}
.time-row > span {
  color: #b6c9c3;
  font-size: 8px;
  letter-spacing: 1px;
}
.time-row b {
  font-weight: 400;
}
#leaderboard {
  padding: 15px 0 0;
  margin: 20px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
  font: 9px var(--mono);
}
#leaderboard li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 7px;
  border-bottom: 1px solid #ffffff12;
}
#leaderboard .you {
  background: var(--orange);
  color: var(--ink);
}
#leaderboard b {
  font-weight: 400;
}
.speedometer {
  position: absolute;
  bottom: 45px;
  left: 50%;
  transform: translateX(-50%);
  width: 275px;
  text-shadow: 0 2px 10px #092a2966;
}
.rpm-track {
  height: 4px;
  background: #ffffff30;
  overflow: hidden;
  transform: skew(-22deg);
  margin-bottom: 12px;
}
.rpm-track span {
  height: 100%;
  display: block;
  width: 0;
  background: var(--cream);
  transition: background 0.15s;
}
.speed-readout {
  display: flex;
  align-items: center;
  gap: 18px;
}
.gear {
  border-right: 1px solid var(--line);
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gear small {
  font: 7px var(--mono);
  letter-spacing: 1px;
  color: #c4d2cb;
}
.gear strong {
  font: 38px Grotesk;
  color: var(--orange);
}
#speed {
  font: 600 79px/0.9 Grotesk;
  font-variant-numeric: tabular-nums;
  letter-spacing: -5px;
}
.speed-unit {
  font: 9px var(--mono);
  color: #cfdbd4;
  align-self: end;
  margin: 0 0 10px -9px;
}
.pedals {
  display: flex;
  justify-content: space-between;
  margin-top: 19px;
  font: 7px var(--mono);
  letter-spacing: 1px;
}
.pedals > span {
  display: flex;
  gap: 7px;
  align-items: center;
}
.pedals i {
  display: block;
  width: 52px;
  height: 3px;
  background: #ffffff30;
}
.pedals b {
  display: block;
  width: 0;
  height: 100%;
  background: #dce8ce;
}
#brake-meter {
  background: var(--orange);
  float: right;
}
.camera-label {
  font: 7px var(--mono);
  letter-spacing: 1.3px;
  color: #abbeb4;
  display: block;
  text-align: center;
  margin-top: 18px;
}
.map-panel {
  position: absolute;
  right: 4%;
  bottom: 40px;
  width: 180px;
  text-align: right;
}
.map-panel .eyebrow {
  font-size: 8px;
}
#minimap {
  width: 180px;
  height: 160px;
}
.race-tools {
  position: absolute;
  bottom: 43px;
  left: 4%;
  display: flex;
  gap: 20px;
}
.race-tools .icon-button {
  font-size: 8px;
  letter-spacing: 1px;
}
.race-tools kbd {
  margin-left: 6px;
}
.countdown {
  position: absolute;
  top: 32%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
  text-shadow: 0 2px 25px #10232360;
}
.start-lights {
  display: flex;
  gap: 10px;
  background: #102020d9;
  border: 1px solid var(--line);
  padding: 12px 16px;
  border-radius: 3px;
}
.start-lights i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #41514b;
}
.start-lights i.on {
  background: var(--orange);
  box-shadow: 0 0 25px #ff653b60;
}
.start-lights.go i {
  background: #b8e88b;
}
.countdown strong {
  font-size: 100px;
  letter-spacing: -5px;
  line-height: 1.3;
  font-weight: 500;
  display: block;
}
.countdown > span {
  font: 9px var(--mono);
  letter-spacing: 3px;
}
.notice {
  position: absolute;
  top: 24%;
  left: 50%;
  transform: translateX(-50%);
  font: 11px var(--mono);
  letter-spacing: 1px;
  white-space: nowrap;
  padding: 12px 18px;
  background: #112523d9;
  border-left: 3px solid var(--orange);
  pointer-events: none;
}
.overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  background: #071512b8;
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  overflow: auto;
}
.modal {
  width: 460px;
  padding: 35px 30px;
  border: 1px solid var(--line);
  background: #14211ee6;
}
.modal h2,
dialog h2 {
  font-size: 41px;
  line-height: 1;
  letter-spacing: -1.8px;
  font-weight: 600;
  margin: 20px 0;
}
.modal p {
  font-size: 13px;
  color: #b9c6bb;
  line-height: 1.7;
  margin-bottom: 28px;
}
.modal .text-button {
  display: block;
  margin: 20px auto 0;
  font-size: 9px;
  text-align: center;
}
.secondary {
  background: transparent;
  border: 1px solid var(--line);
  padding: 18px;
  width: 100%;
  font: 10px var(--mono);
  letter-spacing: 1px;
  margin-top: 10px;
}
.control-note {
  border-top: 1px solid var(--line);
  margin-top: 25px;
  padding-top: 22px;
  font: 8px/2 var(--mono);
  text-align: center;
  color: #b9c6bb;
}
.result-position {
  font-size: 70px;
  line-height: 1;
  color: var(--orange);
  letter-spacing: -4px;
}
.result-stats {
  display: flex;
  justify-content: space-between;
  margin: 22px 0;
}
.result-stats span {
  display: block;
  font: 8px var(--mono);
  letter-spacing: 1px;
  color: #b9c6bb;
  margin-bottom: 9px;
}
.result-stats strong {
  font: 18px var(--mono);
}
#result-laps {
  list-style: none;
  padding: 0;
  font: 10px var(--mono);
}
#result-laps li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
#result-note {
  font-size: 11px;
  margin-bottom: 18px;
}
.touch-controls {
  display: none;
  position: absolute;
  bottom: max(22px, env(safe-area-inset-bottom));
  left: 4%;
  right: 4%;
  justify-content: space-between;
  pointer-events: none;
}
.touch-controls > div {
  display: flex;
  gap: 10px;
}
.touch-controls button {
  width: 62px;
  height: 64px;
  background: #102a29a6;
  border: 1px solid #e5efe147;
  border-radius: 5px;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  font-size: 38px;
}
.touch-controls .touch-brake,
.touch-controls .touch-gas {
  font: 10px var(--mono);
  width: 67px;
}
.touch-controls .touch-gas {
  background: #ff6035c9;
  color: var(--ink);
  height: 86px;
  margin-top: -22px;
}
.touch-controls button.pressed {
  background: var(--cream);
  color: var(--ink);
}
dialog {
  background: #152420;
  color: var(--cream);
  border: 1px solid var(--line);
  width: min(580px, 90vw);
  padding: 38px;
  max-height: 85dvh;
}
dialog::backdrop {
  background: #081510bd;
  backdrop-filter: blur(10px);
}
dialog p {
  font-size: 13px;
  line-height: 1.75;
  color: #becbc2;
}
dialog dl {
  display: grid;
  grid-template-columns: 130px 1fr;
  font: 10px/1.7 var(--mono);
  row-gap: 12px;
  margin: 24px 0;
}
dialog dd {
  margin: 0;
  color: #becbc2;
}
dialog hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 25px 0;
}
dialog .credit-copy {
  font-size: 10px;
}
dialog a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.dialog-close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 30px;
  background: transparent;
}
.no-script {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: var(--ink);
  padding: 15% 8%;
}
.no-script a {
  text-decoration: underline;
}
@media (pointer: coarse) {
  .touch-controls {
    display: flex;
  }
  .race-tools {
    bottom: 115px;
  }
  .menu-footer > div {
    display: none;
  }
  .menu-footer:before {
    content: "TOUCH & CONTROLLER READY";
    font: 8px var(--mono);
    letter-spacing: 1px;
  }
  .map-panel {
    bottom: 125px;
  }
  .speedometer {
    bottom: 35px;
    transform: translateX(-50%) scale(0.8);
    transform-origin: bottom center;
  }
  .camera-label {
    display: none;
  }
}
@media (max-height: 780px) and (min-width: 801px) {
  .topbar {
    height: 76px;
  }
  .menu-panel {
    width: 355px;
    transform: translateY(-44%);
  }
  .menu-panel h1 {
    font-size: 72px;
    margin: 17px 0;
  }
  .intro {
    font-size: 12px;
    margin-bottom: 18px;
  }
  .track-facts {
    padding: 14px 0;
    margin-bottom: 16px;
  }
  .track-facts b {
    font-size: 24px;
  }
  .track-facts small {
    font-size: 7px;
  }
  .race-options {
    margin-bottom: 14px;
  }
  .primary {
    padding: 17px 20px;
    min-height: 52px;
  }
  .menu-footer {
    bottom: 20px;
    padding-top: 15px;
  }
  .car-caption {
    bottom: 19%;
  }
}
@media (max-width: 800px) {
  .topbar {
    height: 73px;
    padding: 0 6%;
  }
  .brand {
    font-size: 22px;
  }
  .brand-mark {
    font-size: 29px;
  }
  .edition {
    display: none;
  }
  .top-actions {
    gap: 16px;
  }
  .back-link {
    display: none;
  }
  .menu-panel {
    left: 7%;
    top: auto;
    bottom: 100px;
    transform: none;
    width: 340px;
    max-width: 86%;
  }
  .menu-panel h1 {
    font-size: 64px;
    line-height: 0.9;
    margin: 20px 0 18px;
  }
  .menu-panel .eyebrow {
    font-size: 8px;
  }
  .intro {
    font-size: 12px;
    margin-bottom: 20px;
  }
  .track-facts {
    gap: 35px;
    padding: 14px 0;
    margin-bottom: 15px;
  }
  .track-facts b {
    font-size: 25px;
  }
  .track-facts small {
    font-size: 7px;
  }
  .race-options {
    margin-bottom: 15px;
  }
  .car-caption {
    display: none !important;
  }
  .menu-footer {
    bottom: 24px;
    left: 7%;
    right: 7%;
    font-size: 7px;
  }
  .menu-footer > div {
    display: none;
  }
  .menu-footer .text-button {
    font-size: 8px;
  }
  .menu-footer:before {
    content: "BUILT FOR THE DRIVE";
    font: 8px var(--mono);
    letter-spacing: 1px;
  }
  .vignette {
    background:
      linear-gradient(90deg, #0a1918dc, #0a191877),
      linear-gradient(0deg, #0a1918eb, transparent 100%);
  }
  .race-heading {
    top: 24px;
    gap: 16px;
  }
  .position > strong {
    font-size: 34px;
  }
  .position > span {
    font-size: 12px;
  }
  .lap-indicator {
    padding-left: 16px;
  }
  .lap-indicator strong {
    font-size: 12px;
  }
  .position small,
  .lap-indicator small {
    font-size: 6px;
  }
  .pause-button {
    font-size: 17px;
    padding: 6px 9px;
  }
  body[data-state="racing"] .brand,
  body[data-state="countdown"] .brand {
    font-size: 14px;
  }
  .timing {
    top: 110px;
    width: 147px;
  }
  .timing .eyebrow {
    font-size: 8px;
  }
  .timing > strong {
    font-size: 22px;
  }
  .time-row {
    font-size: 8px;
  }
  #leaderboard {
    font-size: 8px;
  }
  .map-panel {
    width: 110px;
    bottom: 160px;
  }
  #minimap {
    width: 110px;
    height: 100px;
  }
  .map-panel .eyebrow {
    font-size: 6px;
  }
  .race-tools {
    bottom: 140px;
    gap: 15px;
  }
  .race-tools kbd {
    display: none;
  }
  .speedometer {
    width: 240px;
    bottom: 122px;
    transform: translateX(-50%) scale(0.78);
    transform-origin: bottom center;
  }
  #speed {
    font-size: 68px;
  }
  .speed-readout {
    gap: 13px;
  }
  .gear {
    padding-right: 17px;
  }
  .gear strong {
    font-size: 31px;
  }
  .notice {
    top: 32%;
    font-size: 9px;
  }
  .modal {
    padding: 25px;
    width: 410px;
    max-width: 100%;
  }
  .modal h2 {
    font-size: 34px;
  }
  .modal .eyebrow {
    font-size: 8px;
  }
  .loading-panel {
    left: 10%;
    width: 80%;
    top: 30%;
  }
  dialog {
    padding: 25px;
  }
  dialog h2 {
    font-size: 30px;
  }
  dialog dl {
    grid-template-columns: 100px 1fr;
    font-size: 9px;
  }
  .top-actions .icon-button {
    font-size: 9px;
  }
}
@media (max-height: 560px) and (orientation: landscape) {
  .topbar {
    height: 60px;
  }
  .menu-panel {
    top: 77px;
    bottom: auto;
    left: 5%;
    width: 320px;
    transform: none;
  }
  .menu-panel h1 {
    font-size: 51px;
    margin: 12px 0;
  }
  .intro,
  .track-facts,
  .car-caption,
  .menu-footer,
  .edition {
    display: none !important;
  }
  .race-options {
    margin: 13px 0;
  }
  .menu-panel .eyebrow {
    font-size: 7px;
  }
  .primary {
    padding: 16px 20px;
    min-height: 48px;
  }
  .menu-utility {
    margin-top: 12px;
  }
  .timing {
    top: 82px;
    width: 140px;
  }
  .timing > strong {
    font-size: 22px;
    margin: 8px 0;
  }
  #leaderboard {
    margin-top: 10px;
    padding-top: 6px;
  }
  #leaderboard li {
    padding: 5px;
  }
  .race-heading {
    top: 17px;
  }
  .map-panel {
    bottom: 105px;
    right: 3%;
    width: 115px;
  }
  #minimap {
    width: 115px;
    height: 102px;
  }
  .speedometer {
    bottom: 15px;
    transform: translateX(-50%) scale(0.69);
    transform-origin: bottom center;
  }
  .race-tools {
    bottom: 105px;
  }
  .touch-controls {
    bottom: 17px;
  }
  .touch-controls button {
    height: 53px;
    width: 57px;
  }
  .touch-controls .touch-gas {
    height: 73px;
  }
  .countdown {
    top: 24%;
  }
  .countdown strong {
    font-size: 75px;
  }
  .modal {
    padding: 22px 28px;
    max-width: 440px;
  }
  .modal h2 {
    font-size: 30px;
    margin: 13px 0;
  }
  .modal p {
    margin-bottom: 15px;
    font-size: 12px;
  }
  .control-note {
    display: none;
  }
  .modal .text-button {
    margin-top: 14px;
  }
  .result-position {
    font-size: 38px;
  }
  .result-stats {
    margin: 12px 0;
  }
  .result-stats strong {
    font-size: 14px;
  }
  #result-laps {
    display: none;
  }
  .overlay {
    padding: 13px;
  }
  .notice {
    top: 27%;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.timing {
  background: linear-gradient(90deg, #0d231fc4, #0d231f65);
  border-left: 2px solid #e0ede32b;
  padding: 17px 15px;
  width: 210px;
}
.time-row > span {
  color: #d6e2d9;
}
.menu-panel h1 {
  font-size: clamp(60px, 6.1vw, 88px);
}
.menu-panel {
  width: 440px;
  max-width: 40vw;
}
.track-facts {
  gap: 45px;
}
.menu-panel h1 em {
  white-space: nowrap;
}
@media (max-width: 800px) {
  .menu-panel {
    width: 340px;
    max-width: 86%;
  }
  .menu-panel h1 {
    font-size: 62px;
  }
  .timing {
    padding: 12px;
    width: 169px;
  }
}
@media (max-height: 780px) and (min-width: 801px) {
  .menu-panel {
    width: 380px;
  }
  .menu-panel h1 {
    font-size: 68px;
  }
  .track-facts {
    gap: 38px;
  }
}
@media (max-height: 560px) and (orientation: landscape) {
  .menu-panel {
    width: 320px;
  }
  .menu-panel h1 {
    font-size: 51px;
  }
  .timing {
    width: 160px;
    padding: 10px;
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  #leaderboard {
    display: none;
  }
}

@media (max-width: 480px) and (max-height: 740px) {
  .menu-panel {
    bottom: 90px;
  }
  .menu-panel h1 {
    font-size: 50px;
  }
  .intro {
    font-size: 11px;
    margin-bottom: 14px;
  }
  .track-facts {
    gap: 25px;
    padding: 12px 0;
  }
  .track-facts b {
    font-size: 22px;
  }
  .track-facts small {
    font-size: 6px;
  }
  .menu-panel .eyebrow {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .menu-utility {
    font-size: 9px;
  }
}
@media (min-width: 801px) and (min-height: 561px) and (max-height: 700px) {
  .menu-panel { top: 47%; }
}
