@font-face {
  font-family: BarlowC;
  src: url("/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: BarlowC;
  src: url("/fonts/barlow-condensed-latin-800-italic.woff2") format("woff2");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: DM;
  src: url("/fonts/dm-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: DM;
  src: url("/fonts/dm-sans-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #101b24;
  --panel: #192933;
  --border: #34444e;
  --snow: #f7f6ec;
  --muted: #b3c3c9;
  --orange: #ff7847;
  --mono: ui-monospace, Consolas, monospace;
  --display: BarlowC, "Arial Narrow", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--snow);
  font:
    500 16px/1.4 DM,
    Arial,
    sans-serif;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
button:focus-visible,
dialog:focus-visible {
  outline: 3px solid #fbd59c;
  outline-offset: 4px;
}
button {
  touch-action: manipulation;
}
button:disabled {
  opacity: 0.65;
  cursor: wait;
}
i[data-icon] {
  display: inline-flex;
  flex: none;
}
i svg {
  width: 1.15em;
  height: 1.15em;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[hidden] {
  display: none !important;
}
.mast {
  border-bottom: 1px solid var(--border);
  background: #121e27;
}
.mast-inner,
.shell,
.foot {
  max-width: 1512px;
  width: 92%;
  margin: auto;
}
.mast-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: clamp(22px, 5.8vw, 92px);
}
.brand,
.mast-actions,
.tab,
.sound,
.range,
.kicker,
.plate,
.poster-meta,
.poster-small,
.start-button,
.section-head,
.foot,
.foot > span,
.race-location,
.race-top,
.modal-head {
  display: flex;
  align-items: center;
}
.brand {
  padding: 0;
  gap: 8px;
}
.brand img {
  width: 105px;
  height: auto;
  filter: brightness(0) invert(1);
}
.brand > span {
  font: italic 800 37px/0.8 var(--display);
  letter-spacing: -1.4px;
  text-align: left;
}
.brand small {
  display: block;
  font:
    700 9px/1.6 DM,
    sans-serif;
  letter-spacing: 3.3px;
  margin-top: 2px;
}
.mast nav {
  display: flex;
  align-self: stretch;
  gap: 26px;
}
.tab {
  position: relative;
  padding: 0 1px;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}
.tab.active {
  color: var(--snow);
}
.tab.active:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--orange);
}
.tab.active i {
  color: var(--orange);
}
.mast-actions {
  margin-left: auto;
  gap: 12px;
}
.sound,
.icon-button {
  border: 1px solid var(--border);
  border-radius: 6px;
  height: 37px;
  background: #182630;
}
.sound {
  gap: 8px;
  font-size: 13px;
  padding: 0 12px;
}
.icon-button {
  width: 37px;
  display: grid;
  place-items: center;
}
.tab:hover,
.sound:hover,
.icon-button:hover {
  color: var(--orange);
}
.page-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 30px 0 21px;
}
.kicker,
.range,
.small-meta,
.poster-small,
.plate,
.foot {
  font: 700 11px/1.3 var(--mono);
  letter-spacing: 1.55px;
}
.kicker {
  color: var(--orange);
  gap: 8px;
}
.kicker b {
  height: 2px;
  width: 20px;
  background: currentColor;
}
.page-title h1 {
  font: italic 800 clamp(44px, 4.35vw, 70px) / 0.96 var(--display);
  text-transform: uppercase;
  margin: 6px 0 0;
  letter-spacing: -1.6px;
}
.page-title h1 span {
  color: var(--orange);
}
.range {
  gap: 9px;
  color: #c0cbd0;
  letter-spacing: 1px;
  padding-bottom: 4px;
}
.range i {
  font-size: 17px;
}
.range b,
.foot b {
  color: var(--orange);
}
.poster,
.log-panel {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.poster {
  min-height: 426px;
  position: relative;
  isolation: isolate;
  background: #315261;
}
.poster-art,
.poster-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.poster-shade {
  z-index: -1;
  background:
    linear-gradient(0deg, rgba(6, 22, 32, 0.72), transparent 60%),
    linear-gradient(90deg, rgba(7, 27, 38, 0.35), transparent 52%);
}
.poster-top {
  position: absolute;
  top: 22px;
  left: 23px;
  right: 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.plate {
  letter-spacing: 1px;
  color: #fff;
}
.plate {
  gap: 6px;
  background: #122633d9;
  border: 1px solid #d4e4e252;
  padding: 7px 10px;
  border-radius: 4px;
  font-size: 10px;
}
.plate i {
  font-size: 13px;
  color: #ff9d70;
}
.poster-info {
  position: absolute;
  bottom: 27px;
  left: clamp(20px, 2.3vw, 37px);
}
.poster-small {
  gap: 7px;
  font-size: 10px;
  letter-spacing: 1.8px;
}
.poster-small span {
  background: var(--orange);
  width: 19px;
  height: 3px;
}
.poster-meta {
  gap: 14px;
  font-size: 13px;
  color: #fff;
}
.poster-meta > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.poster-meta > span + span {
  border-left: 1px solid #dce6e556;
  padding-left: 14px;
}
.section-head h2,
.modal-title {
  margin: 0;
  font: 700 29px/1.05 var(--display);
  letter-spacing: -0.35px;
}
.start-button {
  margin-top: auto;
  background: var(--orange);
  color: #14212a;
  min-height: 45px;
  font: 700 21px var(--display);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  border-radius: 6px;
  justify-content: center;
  gap: 8px;
}
.start-button:hover,
.modal-primary:hover {
  background: #ff966e;
}
.start-button svg {
  fill: currentColor;
  stroke: none;
  width: 16px;
}
.section-head {
  justify-content: space-between;
  margin-bottom: 13px;
}
.section-head h2 {
  font-size: 29px;
}
.small-meta {
  color: #acbec5;
  font-size: 10px;
}
.foot {
  margin: 26px auto 0;
  border-top: 1px solid #30404a;
  padding: 17px 0 21px;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 1.2px;
  color: #94a7b0;
}
.foot > span {
  gap: 8px;
}
.foot img {
  width: 65px;
  height: auto;
  filter: brightness(0) invert(1);
}
.log-panel {
  padding: 24px;
  background: var(--panel);
}
.empty {
  padding: 35px 0;
}
.empty p {
  color: var(--muted);
}
.history-row {
  padding: 13px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--border);
}
.history-row small {
  display: block;
  color: var(--muted);
}
.history-row > span:last-child {
  text-align: right;
}
.plain-btn,
.modal-secondary {
  padding: 10px 15px;
  border-radius: 5px;
  border: 1px solid var(--border);
}
.play-screen {
  position: fixed;
  inset: 0;
  background: #8eb6c5;
  z-index: 5;
  touch-action: none;
}
.play-screen canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.race-top {
  position: absolute;
  top: max(15px, env(safe-area-inset-top));
  left: 3%;
  right: 3%;
  justify-content: space-between;
}
.race-location,
.race-btn,
.race-stats {
  background: #11232ee6;
  padding: 10px 14px;
  border: 1px solid #dae9e56b;
  border-radius: 7px;
}
.race-location {
  gap: 10px;
  font: 700 20px var(--display);
  text-transform: uppercase;
}
.race-location img {
  width: 28px;
}
.race-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}
.race-event {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
  font: italic 800 clamp(26px, 5vw, 65px) var(--display);
  text-shadow:
    0 2px 7px #122a3c,
    0 0 16px #142c39;
}
.race-stats {
  position: absolute;
  bottom: 22px;
  left: 3%;
  display: flex;
  gap: 18px;
  align-items: end;
  font:
    500 12px DM,
    sans-serif;
}
.race-stats small {
  display: block;
  font: 700 10px var(--mono);
  color: #c4d7dc;
}
.race-stats strong {
  font: italic 800 28px var(--display);
}
.touch-pad {
  display: none;
}
.touch-pad button {
  touch-action: none;
  background: #122935cf;
  border: 1px solid #d4e2e7a3;
  border-radius: 8px;
  min-width: 45px;
  min-height: 48px;
  user-select: none;
}
.touch-pad button:active {
  background: var(--orange);
  color: #15222b;
}
dialog {
  background: #1b2c36;
  color: var(--snow);
  border: 1px solid #4c6069;
  border-radius: 12px;
  max-width: min(430px, 92vw);
  width: 100%;
  max-height: 90dvh;
  padding: 0;
}
dialog::backdrop {
  background: #06121bcc;
  backdrop-filter: blur(4px);
}
.dialog-inner {
  padding: 23px;
}
.modal-head {
  justify-content: space-between;
}
.modal-head img {
  width: 35px;
}
.modal-title {
  font: italic 800 42px/1 var(--display);
  text-transform: uppercase;
  margin: 18px 0 14px;
}
dialog p {
  color: #c4d0d4;
}
dialog .keys {
  margin: 8px 0 18px;
}
.keys div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid #354851;
}
.keys dt,
.keys dd {
  margin: 0;
}
.keys dd {
  font: 700 12px var(--mono);
  color: #e2edf1;
}
.modal-primary,
.modal-secondary {
  width: 100%;
  font-weight: 700;
  min-height: 43px;
  margin-top: 8px;
  border-radius: 6px;
}
.modal-primary {
  background: var(--orange);
  color: #17232c;
}
@media (min-width: 1550px) {
  .poster {
    min-height: 495px;
  }
}
@media (max-width: 930px) {
  .mast-inner,
  .shell,
  .foot {
    width: 94%;
  }
  .mast-inner {
    gap: 30px;
  }
}
@media (max-width: 690px) {
  .mast-inner,
  .shell,
  .foot {
    width: 91%;
  }
  .mast-inner {
    gap: 12px;
    min-height: 62px;
    flex-wrap: wrap;
  }
  .brand img {
    width: 79px;
  }
  .brand > span {
    font-size: 28px;
  }
  .brand small {
    font-size: 7px;
    letter-spacing: 2.4px;
  }
  .mast nav {
    order: 3;
    width: 100%;
    gap: 22px;
    height: 38px;
  }
  .mast-actions {
    margin-top: 5px;
  }
  .tab {
    font-size: 13px;
  }
  .page-title {
    margin: 21px 0 15px;
  }
  .page-title h1 {
    font-size: 46px;
  }
  .range {
    font-size: 9px;
    gap: 4px;
    letter-spacing: 0.5px;
  }
  .range i {
    display: none;
  }
  .poster {
    min-height: 290px;
    aspect-ratio: 1.55;
  }
  .poster-top {
    top: 14px;
    left: 15px;
    right: 15px;
  }
  .poster-info {
    bottom: 20px;
    left: 18px;
  }
  .poster-meta {
    font-size: 12px;
  }
  .foot {
    font-size: 8px;
  }
  .section-head h2 {
    font-size: 26px;
  }
}
@media (pointer: coarse), (max-width: 690px) {
  .play-screen {
    --hud-left: max(8px, calc(env(safe-area-inset-left) + 6px));
    --hud-right: max(8px, calc(env(safe-area-inset-right) + 6px));
    --hud-top: max(10px, calc(env(safe-area-inset-top) + 4px));
    --pad-bottom: max(12px, calc(env(safe-area-inset-bottom) + 6px));
    --pad-height: 48px;
    --map-width: 110px;
  }
  .touch-pad {
    display: flex;
    position: absolute;
    bottom: var(--pad-bottom);
    left: var(--hud-left);
    right: var(--hud-right);
    justify-content: space-between;
    gap: 8px;
  }
  .touch-pad > div {
    display: flex;
    gap: 4px;
  }
  .touch-pad button {
    padding: 4px;
    font-size: 12px;
  }
  .race-stats {
    left: var(--hud-left);
    bottom: calc(var(--pad-bottom) + var(--pad-height) + 6px);
    padding: 6px 12px;
  }
  .race-top {
    top: var(--hud-top);
    left: var(--hud-left);
    right: var(--hud-right);
    gap: 4px;
  }
  .race-tools {
    flex: none;
  }
  .play-screen .race-btn {
    min-width: 44px;
    min-height: 44px;
    white-space: nowrap;
  }
  .play-screen .mini-map {
    top: calc(var(--hud-top) + 56px);
    right: var(--hud-right);
    width: var(--map-width);
  }
  .play-screen .race-guide:not([hidden]) {
    top: calc(var(--hud-top) + 56px);
    bottom: auto;
    left: var(--hud-left);
    right: auto;
    max-width: calc(100% - var(--hud-left) - var(--hud-right) - var(--map-width) - 8px);
    text-align: left;
    pointer-events: none;
  }
  dialog {
    inset: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    max-height: min(90dvh, calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 12px));
    overscroll-behavior: contain;
  }
  dialog .icon-button,
  dialog .modal-primary,
  dialog .modal-secondary {
    min-width: 44px;
    min-height: 44px;
  }
  dialog.map-dialog {
    max-width: min(620px, 94vw, calc(100vw - 2 * max(env(safe-area-inset-left), env(safe-area-inset-right)) - 12px));
  }
  .map-dialog .dialog-inner {
    padding: 12px;
  }
  .map-dialog .modal-title {
    margin: 5px 0 12px;
  }
  .map-dialog #continue {
    position: sticky;
    bottom: 0;
    box-shadow: 0 6px 0 6px #1b2c36;
  }
}
@media (max-height: 500px) and (orientation: landscape) {
  .race-event {
    top: 10%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.race-guide {
  position: absolute;
  right: 3%;
  bottom: 22px;
  max-width: 50vw;
  padding: 9px 12px;
  background: #11232eda;
  color: #edf4f5;
  border-radius: 6px;
  font:
    500 12px DM,
    sans-serif;
}
.race-guide b {
  margin: 0 3px;
  color: var(--orange);
}
.race-guide small {
  display: block;
  font-size: inherit;
  font-weight: 500;
  line-height: 1.3;
}
@media (pointer: coarse), (max-width: 750px) {
  .race-guide {
    display: none;
  }
  .poster-art {
    object-position: 68% center;
  }
}
.station-cover {
  display: grid;
  grid-template-columns: minmax(0, 2.25fr) minmax(300px, 1fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--panel);
}
.station-art-button {
  appearance: none;
  display: block;
  min-height: clamp(430px, 37vw, 600px);
  width: 100%;
  border: 0;
  border-radius: 0;
  text-align: left;
  padding: 0;
  cursor: pointer;
}
.station-art-button:focus-visible {
  outline-offset: -5px;
}
.poster-name {
  display: block;
  font: italic 800 clamp(88px, 8.2vw, 142px) / 0.8 var(--display);
  letter-spacing: -2px;
  color: #fff9e8;
  margin: 13px 0 20px;
}
.pass {
  padding: clamp(20px, 2.2vw, 37px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.pass-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pass-head > i {
  font-size: 28px;
  color: #ff895e;
}
.pass h2 {
  font: italic 800 clamp(38px, 3.2vw, 58px) / 1 var(--display);
  text-transform: uppercase;
  margin: 27px 0 9px;
}
.pass p {
  color: #c6d4da;
  font-size: 15px;
  margin: 0;
  max-width: 38ch;
  line-height: 1.55;
}
.pass-facts {
  margin: 20px 0 24px;
}
.pass-facts > div {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  gap: 10px;
  border-top: 1px solid var(--border);
  align-items: baseline;
}
.pass-facts dt {
  font-size: 13px;
  color: var(--muted);
}
.pass-facts dd {
  margin: 0;
  font-size: 14px;
  text-align: right;
  font-weight: 700;
}
.pass .start-button {
  width: 100%;
  min-height: 50px;
}
.foot button {
  font: inherit;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.race-tools {
  display: flex;
  gap: 6px;
}
.race-btn#gear {
  width: auto;
  font:
    700 14px DM,
    sans-serif;
}
.mini-map {
  position: absolute;
  right: 3%;
  top: 78px;
  background: #182b35db;
  border: 1px solid #c2d7d981;
  padding: 0;
  overflow: hidden;
  border-radius: 7px;
  width: 142px;
  text-align: left;
}
.mini-map canvas {
  display: block;
  width: 100%;
}
.mini-map > span {
  display: flex;
  justify-content: space-between;
  font: 700 10px var(--mono);
  letter-spacing: 1.4px;
  padding: 6px 8px;
}
.mini-map b {
  color: var(--orange);
}
.race-guide strong {
  color: #ffd0ad;
}
.map-dialog {
  max-width: min(620px, 94vw);
}
#detailRoute {
  width: 100%;
  height: auto;
  border-radius: 5px;
  display: block;
}
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font:
    700 12px DM,
    sans-serif;
  margin: 10px 0;
}
.map-legend [data-mark] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.map-legend [data-mark]::before {
  content: "";
  display: inline-block;
  width: 15px;
  border-top: 2px solid #a9d9ca;
}
.map-legend [data-mark="active"] {
  color: #ff945e;
}
.map-legend [data-mark="active"]::before {
  border-top: 3px solid #ff945e;
}
.map-legend [data-mark="lift"]::before {
  border-top: 1px dashed #a1b4bb;
}
.map-legend [data-mark="access"]::before {
  background: transparent;
  border-top: 2px dotted #fff6cf;
}
.map-legend [data-mark="building"]::before {
  width: 10px;
  height: 7px;
  border: 1px solid #4e493f;
  background: #debd94;
}
.map-legend [data-mark="player"]::before {
  width: 11px;
  height: 13px;
  border: none;
  clip-path: polygon(50% 0,100% 100%,50% 81%,0 100%);
  background: #fff6cf;
}
.map-sub {
  margin-top: -8px;
}
.map-sources {
  font-size: 12px;
}
dialog a {
  color: #ffb596;
}
.race-guide:not([hidden]) {
  display: block;
  text-align: center;
  font-weight: 700;
}
@media (max-width: 800px) {
  .station-cover {
    grid-template-columns: minmax(0, 1.4fr) minmax(270px, 1fr);
  }
  .pass {
    padding: 19px;
  }
  .pass h2 {
    margin-top: 15px;
  }
}
@media (max-width: 690px) {
  .station-cover {
    grid-template-columns: 1fr;
  }
  .station-art-button {
    aspect-ratio: 1.55;
    min-height: 260px;
  }
  .poster-name {
    font-size: 73px;
  }
  .pass h2 {
    margin: 10px 0 6px;
  }
  .pass-facts {
    margin: 14px 0;
  }
  .foot {
    gap: 8px;
    flex-wrap: wrap;
  }
  .race-location {
    font-size: 15px;
    line-height: 1.05;
    gap: 4px;
    padding: 6px;
  }
  .race-btn {
    padding: 7px;
    width: 35px;
    height: 35px;
  }
  .race-btn#gear {
    font-size: 12px;
  }
  .race-location img {
    width: 21px;
  }
  .race-tools {
    gap: 4px;
  }
  .race-stats {
    gap: 10px;
  }
  .play-screen {
    --map-width: 92px;
  }
  .race-guide {
    font-size: 12px;
  }
  .map-legend {
    gap: 8px;
    font-size: 11px;
  }
}
@media (max-height: 500px) and (orientation: landscape) {
  .play-screen {
    --map-width: 85px;
  }
}
@media (min-width: 560px) and (max-height: 500px) and (orientation: landscape) {
  .map-dialog .dialog-inner {
    padding: 10px;
  }
  .map-dialog .modal-head {
    position: absolute;
    top: 8px;
    right: 10px;
  }
  .map-dialog .modal-head img {
    display: none;
  }
  .map-dialog #modalContent {
    display: grid;
    grid-template-columns: minmax(230px, 1.2fr) minmax(175px, 1fr);
    grid-template-areas:
      "map title"
      "map sector"
      "map legend"
      "map profile"
      "map back"
      "details details"
      "sources sources";
    align-items: center;
    column-gap: 12px;
  }
  .map-dialog #detailRoute { grid-area: map; }
  .map-dialog .modal-title {
    grid-area: title;
    font-size: 29px;
    margin: 0 45px 0 0;
  }
  .map-dialog .map-sub { grid-area: sector; margin: 0; font-size: 13px; }
  .map-dialog .map-legend { grid-area: legend; margin: 4px 0; }
  .map-dialog .elevation-profile { grid-area: profile; margin: 0; }
  .map-dialog .keys { grid-area: details; }
  .map-dialog .map-sources { grid-area: sources; }
  .map-dialog #continue {
    grid-area: back;
    position: static;
    margin: 0;
    box-shadow: none;
  }
}
.elevation-profile {
  margin: 13px 0 3px;
}
.elevation-profile > div {
  display: flex;
  justify-content: space-between;
  font:
    500 12px DM,
    sans-serif;
  color: #ccd8dc;
}
.elevation-profile canvas {
  display: block;
  width: 100%;
  height: 43px;
}
.on-lift .race-guide,
.on-lift .touch-pad,
.on-lift .race-stats {
  display: none;
}
.lift-panel {
  position: absolute;
  left: 3%;
  bottom: max(22px, env(safe-area-inset-bottom));
  background: #132630ee;
  border: 1px solid #82969b;
  border-radius: 8px;
  padding: 17px 20px;
  max-width: 92%;
}
.lift-panel strong {
  display: block;
  font: 700 28px var(--display);
  margin-top: 8px;
}
.lift-panel p {
  font-size: 14px;
  margin: 2px 0 13px;
  color: #cfdee3;
}
.lift-panel button {
  font-size: 13px;
  border-color: #7e949a;
}
@media (max-width: 410px) {
  .play-screen {
    --pad-height: 100px;
  }
  .touch-pad {
    align-items: end;
  }
  .touch-pad > div:last-child {
    display: grid;
    grid-template-areas: "tuck jump trick" "brake push push";
    grid-template-columns: repeat(3, minmax(44px, 1fr));
  }
  .touch-pad [data-action="tuck"] { grid-area: tuck; }
  .touch-pad [data-action="jump"] { grid-area: jump; }
  .touch-pad [data-action="trick"] { grid-area: trick; }
  .touch-pad [data-action="brake"] { grid-area: brake; }
  .touch-pad [data-action="push"] { grid-area: push; }
  .race-stats {
    padding: 4px 8px;
  }
  .race-stats strong {
    font-size: 23px;
  }
  .race-location {
    font-size: 13px;
  }
}

.nearby-lift {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: max(58px, 18%);
  transform: translateX(-50%);
  max-width: min(68%, 360px);
  min-height: 44px;
  border: 1px solid #f3a779;
  border-radius: 5px;
  padding: 8px 15px;
  background: #182d35f2;
  color: #fff4df;
  font: 700 14px DM, sans-serif;
  cursor: pointer;
}
.nearby-lift:disabled { border-color: #9daba9; color: #dae2dc; cursor: default; }

.music-settings {
  display: grid;
  gap: .65rem;
  padding: 1rem;
  margin: 0;
  border: 1px solid var(--border);
  text-align: left;
}
.music-settings legend { padding: 0 .4rem; }
.music-settings input, .music-settings select { accent-color: var(--orange); }
.music-settings select {
  width: 100%;
  padding: .55rem;
  font: inherit;
  color: #eaf0f4;
  background: #182931;
  border: 1px solid #72818a;
}
.music-settings output { float: right; font-variant-numeric: tabular-nums; }
.music-settings input[type=range] { width: 100%; }

/* Dragging across the simulator belongs to the game. */
html { -webkit-user-select:none; user-select:none; -webkit-touch-callout:none; }
img { -webkit-user-drag:none; }
