/* web/style.css */
:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #f2f0d6;
  background: #c6deda;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
}
canvas {
  display: block;
}
button {
  font: inherit;
  cursor: pointer;
}
button:focus-visible {
  outline: 3px solid #edf9a7;
  outline-offset: 4px;
}
.ui {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
.ui button,
.ui details {
  pointer-events: auto;
}
.top {
  position: absolute;
  top: 28px;
  left: 32px;
  right: 32px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  color: #193e38;
}
.wordmark {
  font-size: 27px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -1.4px;
}
.tag {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-top: 4px;
}
.lap {
  background: #1a3934e8;
  border: 1px solid #f4f1cb23;
  padding: 14px 22px;
  display: flex;
  gap: 30px;
  border-radius: 4px;
  box-shadow: 0 6px 20px #18342c15;
}
.lap span {
  display: block;
  font-size: 9px;
  letter-spacing: 1.6px;
  color: #bed0b5;
  margin-bottom: 5px;
}
.lap strong {
  font-variant-numeric: tabular-nums;
  font-size: 20px;
  font-weight: 500;
}
.actions {
  display: flex;
  gap: 8px;
}
.small-button {
  border: 1px solid #274b4240;
  background: #f4edcfdb;
  color: #244238;
  border-radius: 4px;
  padding: 11px 14px;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}
.small-button:hover {
  background: #fff7da;
}
.bottom {
  position: absolute;
  bottom: 28px;
  left: 32px;
  right: 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}
.speed {
  color: #f9f4d9;
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-shadow: 0 2px 10px #193e38;
}
.speed strong {
  font-size: 66px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -3px;
  font-variant-numeric: tabular-nums;
}
.speed span {
  font-size: 10px;
  letter-spacing: 1.5px;
}
.keys {
  font-size: 11px;
  letter-spacing: .2px;
  color: #f8f2d3;
  background: #193e38cd;
  padding: 12px 16px;
  border-radius: 4px;
}
.keys b {
  display: inline-block;
  font-weight: 600;
  margin-right: 4px;
  color: #e6f5a5;
}
.keys i {
  font-style: normal;
  margin: 0 12px;
  color: #90ac94;
}
.lab {
  position: absolute;
  right: 32px;
  top: 108px;
  width: 256px;
  background: #173b35ef;
  border: 1px solid #c5d0a63b;
  border-radius: 5px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  font-size: 11px;
}
.lab summary {
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.dot {
  width: 7px;
  height: 7px;
  background: #d5a467;
  border-radius: 50%;
}
.lab summary small {
  margin-left: auto;
  font-size: 9px;
  color: #d3d3a8;
  letter-spacing: 1px;
}
.lab-content {
  padding: 0 16px 16px;
}
.lab img {
  width: 100%;
  height: 108px;
  image-rendering: pixelated;
  border: 1px solid #ccdbb829;
  border-radius: 2px;
  object-fit: fill;
  background: #344f43;
}
.lab .row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #c4d4b21a;
  color: #b4c8b0;
  font-variant-numeric: tabular-nums;
}
.lab .row b {
  font-weight: 500;
  color: #f0efcf;
}
.lab p {
  font-size: 10px;
  line-height: 1.55;
  color: #b9cbb6;
}
.lab button {
  width: 100%;
  margin-top: 8px;
}
.pill {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #e8eca6;
  background: #506449;
  padding: 4px 7px;
  border-radius: 2px;
}
.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #173d332b;
  backdrop-filter: blur(3px);
  pointer-events: auto;
}
.overlay[hidden] {
  display: none;
}
.intro {
  width: min(510px, calc(100vw - 40px));
  padding: 38px;
  background: #163d35f5;
  border: 1px solid #f0f1c348;
  box-shadow: 0 20px 100px #0c332850;
  border-radius: 6px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 600;
  color: #d8e9a5;
}
.intro h1 {
  font-size: 48px;
  letter-spacing: -2px;
  line-height: 1.06;
  margin: 16px 0 18px;
  font-weight: 600;
}
.intro p {
  color: #c1d1b9;
  font-size: 14px;
  line-height: 1.6;
  max-width: 375px;
}
.primary {
  background: #e4f0ac;
  border: 0;
  border-radius: 3px;
  padding: 15px 22px;
  color: #193d30;
  font-weight: 700;
  font-size: 13px;
  margin-top: 12px;
  width: 100%;
  display: flex;
  justify-content: space-between;
}
.primary:hover {
  background: #f1fac4;
}
.intro .note {
  margin-top: 20px;
  font-size: 10px;
  line-height: 1.7;
  color: #95b39b;
}
.track-label {
  position: absolute;
  left: 32px;
  top: 112px;
  color: #294f40;
  font-size: 10px;
  line-height: 1.8;
  letter-spacing: 1px;
  font-weight: 600;
}
.track-label b {
  font-size: 13px;
  letter-spacing: 0;
  display: block;
}
.mode {
  position: absolute;
  top: 92px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  padding: 7px 12px;
  background: #193d37dd;
  border-radius: 3px;
  color: #eaf1ba;
}
.mode:empty {
  display: none;
}
@media (max-width: 700px) {
  .top {
    top: 18px;
    left: 18px;
    right: 18px;
  }
  .lap {
    gap: 15px;
    padding: 10px 14px;
  }
  .actions {
    display: none;
  }
  .bottom {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }
  .keys {
    font-size: 9px;
    padding: 9px;
  }
  .keys i {
    margin: 0 5px;
  }
  .lab {
    top: 100px;
    right: 18px;
    width: 210px;
  }
  .track-label {
    left: 18px;
    top: 92px;
  }
  .wordmark {
    font-size: 22px;
  }
  .speed strong {
    font-size: 48px;
  }
  .intro {
    padding: 28px;
  }
  .intro h1 {
    font-size: 40px;
  }
}
.intro {
  width: min(820px, calc(100vw - 40px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 30px 34px;
}
.intro h1 {
  font-size: 42px;
  margin: 12px 0;
}
.intro p {
  max-width: none;
  margin: 0 0 20px;
}
.track-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.track-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  align-items: stretch;
  border: 1px solid #bbd1ac40;
  border-radius: 5px;
  padding: 14px;
  background: #24483e;
  color: #d1ddc2;
  transition: background .15s, border-color .15s;
}
.track-card:hover {
  background: #305548;
}
.track-card[aria-pressed=true] {
  border-color: #e4f0ac;
  background: #385d46;
  box-shadow: inset 0 0 0 1px #e4f0ac;
}
.card-top {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 1px;
}
.card-top span {
  font-size: 8px;
  letter-spacing: 1.2px;
}
.track-card svg {
  width: 100%;
  height: 112px;
  margin: 8px 0 12px;
}
.track-card path,
.minimap path {
  fill: none;
  stroke: #bed2b5;
  stroke-width: 4;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.track-card[aria-pressed=true] path {
  stroke: #eff5b9;
}
.track-card strong {
  font-size: 15px;
  color: #f4f0d8;
}
.card-length {
  font-size: 9px;
  letter-spacing: 1px;
  margin: 7px 0 9px;
  color: #d8dcb5;
}
.card-description {
  font-size: 11px;
  line-height: 1.5;
  color: #c2cfb6;
}
.intro .primary {
  margin-top: 20px;
}
.intro .note {
  margin-top: 14px;
}
.minimap {
  display: block;
  width: 160px;
  height: 96px;
  margin: 12px 0;
  background: #193d37d9;
  border-radius: 5px;
  padding: 6px;
}
.minimap path {
  stroke-width: 3;
  stroke: #d7dfbf;
}
.minimap circle {
  fill: #ff8654;
  stroke: #fff2d2;
  stroke-width: 2;
}
.track-label .small-button {
  margin-top: 2px;
  letter-spacing: 0;
}
.track-card:focus-visible,
button:focus-visible {
  outline: 3px solid #f2d989;
  outline-offset: 3px;
}
@media (max-width: 700px) {
  .intro {
    padding: 22px;
  }
  .intro h1 {
    font-size: 32px;
  }
  .track-cards {
    gap: 8px;
  }
  .track-card {
    padding: 10px;
  }
  .track-card svg {
    height: 75px;
    margin: 4px 0 8px;
  }
  .track-card strong {
    font-size: 12px;
  }
  .card-description {
    font-size: 10px;
  }
  .card-top span {
    font-size: 7px;
  }
  .minimap {
    width: 120px;
    height: 72px;
  }
  .track-label {
    max-width: 150px;
  }
  .track-label .small-button {
    padding: 8px;
    font-size: 10px;
  }
  .intro p {
    font-size: 12px;
  }
  .intro .note {
    font-size: 9px;
  }
}
@media (max-width: 450px) {
  .track-cards {
    grid-template-columns: 1fr;
  }
  .track-card {
    display: grid;
    grid-template-columns: 80px 1fr;
    column-gap: 12px;
  }
  .track-card svg {
    grid-column: 1;
    grid-row: 1/5;
    height: 68px;
    margin: 0;
  }
  .track-card .card-top,
  .track-card strong,
  .track-card .card-length,
  .track-card .card-description {
    grid-column: 2;
  }
  .card-description {
    display: none;
  }
  .card-length {
    margin: 5px 0 0;
  }
  .track-label b {
    font-size: 11px;
  }
  .minimap {
    width: 100px;
    height: 60px;
  }
}
.mode-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}
.mode-choice button {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  border: 1px solid #bbd1ac40;
  border-radius: 5px;
  padding: 11px 14px;
  background: #24483e;
  color: #c2cfb6;
  font-size: 11px;
}
.mode-choice button:hover {
  background: #305548;
}
.mode-choice button[aria-pressed=true] {
  border-color: #e4f0ac;
  background: #385d46;
  box-shadow: inset 0 0 0 1px #e4f0ac;
}
.mode-choice b {
  font-size: 14px;
  color: #f4f0d8;
}
.intro .mode-choice + .primary {
  margin-top: 14px;
}
.countdown {
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  font-size: 150px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -6px;
  line-height: 1;
  color: #fbf7dd;
  text-shadow: 0 6px 40px #193e38b0;
  font-variant-numeric: tabular-nums;
}
.countdown:empty {
  display: none;
}
.countdown.go {
  color: #e4f0ac;
}
.intro.results {
  width: min(440px, calc(100vw - 40px));
}
.results h1 {
  font-size: 56px;
  font-variant-numeric: tabular-nums;
  margin: 12px 0 2px;
}
.results .results-sub {
  font-size: 12px;
  margin: 0 0 18px;
  color: #a9bfa6;
}
.lap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #c4d4b22a;
}
.lap-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 2px;
  border-bottom: 1px solid #c4d4b22a;
  font-size: 14px;
  color: #c1d1b9;
  font-variant-numeric: tabular-nums;
}
.lap-list li b {
  font-weight: 500;
  color: #f4f0d8;
}
.lap-list li.fastest b {
  color: #e4f0ac;
}
.lap-list li.fastest span::after {
  content: "  FASTEST";
  font-size: 9px;
  letter-spacing: 1.4px;
  color: #e4f0ac;
  white-space: pre;
}
.results-best {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0 4px;
}
.results-best div {
  background: #24483e;
  border-radius: 4px;
  padding: 11px 13px;
}
.results-best span {
  display: block;
  font-size: 9px;
  letter-spacing: 1.6px;
  color: #bed0b5;
  margin-bottom: 5px;
}
.results-best b {
  font-size: 20px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.results-best small {
  display: block;
  font-size: 9px;
  letter-spacing: 1px;
  color: #e4f0ac;
  margin-top: 3px;
  text-transform: uppercase;
}
.results-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}
.results-actions .small-button {
  padding: 15px 16px;
  font-size: 12px;
}
@media (max-width: 700px) {
  .top {
    flex-wrap: wrap;
    row-gap: 10px;
  }
  .lap {
    order: 3;
    flex: 1 1 100%;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 12px;
  }
  .lap span {
    font-size: 8px;
    letter-spacing: 1.1px;
  }
  .lap strong {
    font-size: 14px;
  }
  .track-label,
  .lab {
    top: 150px;
  }
  .mode-choice {
    gap: 8px;
  }
  .mode-choice button {
    padding: 9px 10px;
  }
  .mode-choice b {
    font-size: 12px;
  }
  .countdown {
    font-size: 110px;
  }
  .results h1 {
    font-size: 44px;
  }
}
.card-record {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #bbd1ac2e;
  font-size: 8px;
  letter-spacing: 1.1px;
  color: #bed0b5;
}
.card-record b {
  font-size: 11px;
  letter-spacing: 0;
  font-weight: 600;
  color: #f4f0d8;
  font-variant-numeric: tabular-nums;
  margin-left: 3px;
}
.track-card[aria-pressed=true] .card-record b {
  color: #eff5b9;
}
.text-button {
  background: none;
  border: 0;
  padding: 4px 0;
  margin-top: 6px;
  color: #d8e9a5;
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-button:disabled {
  color: #6f8d78;
  text-decoration: none;
  cursor: default;
}
.text-button[data-confirm] {
  color: #ffb28e;
}
#track-record {
  display: block;
  font-variant-numeric: tabular-nums;
}
.results-best.records {
  margin-top: 10px;
}
.results .results-note {
  font-size: 11px;
  line-height: 1.5;
  margin: 10px 0 0;
  color: #ffcfb3;
}
.respawn-prompt {
  position: absolute;
  left: 50%;
  top: 62%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 16px;
  background: #193d37ee;
  border: 1px solid #f0f1c348;
  border-radius: 4px;
  color: #f4f0d8;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 10px 40px #0c332850;
}
.respawn-prompt[hidden] {
  display: none;
}
.respawn-prompt .small-button {
  background: #e4f0ac;
  border: 0;
  color: #193d30;
}
@media (max-width: 450px) {
  .card-record {
    grid-column: 2;
    margin-top: 6px;
    padding-top: 6px;
  }
  .card-record b {
    font-size: 10px;
  }
  .respawn-prompt {
    top: auto;
    bottom: 110px;
    width: calc(100vw - 36px);
    justify-content: space-between;
  }
}
.touch-controls {
  display: none;
  position: absolute;
  left: max(14px, env(safe-area-inset-left));
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}
.touch .driving .touch-controls {
  display: flex;
}
.touch .driving {
  touch-action: none;
  overscroll-behavior: none;
}
.touch-group {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.touch-zone {
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 96px;
  border-radius: 14px;
  background: #193e3899;
  border: 1px solid #f4f1cb40;
  color: #f4f0d8;
  font-size: 26px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}
.touch-zone.brake,
.touch-zone.throttle {
  font-size: 11px;
  letter-spacing: 1.4px;
}
.touch-zone.throttle {
  height: 124px;
  background: #4d6b3fa8;
}
.touch-zone.active {
  background: #e4f0acd9;
  color: #193d30;
  border-color: #fff7da;
}
.touch .keys {
  display: none;
}
.touch .driving .bottom {
  bottom: calc(max(14px, env(safe-area-inset-bottom)) + 136px);
}
@media (max-width: 700px) {
  .touch .actions {
    display: flex;
    gap: 6px;
  }
  .touch .actions .small-button {
    padding: 8px 9px;
    font-size: 10px;
  }
  .touch .tag {
    display: none;
  }
  .touch .top {
    flex-wrap: wrap;
  }
}
@media (max-width: 380px) {
  .touch-zone {
    width: 66px;
  }
}
#world {
  position: fixed;
  inset: 0;
}
.lap > div {
  min-width: 0;
}
@media (max-width: 450px) {
  .lap {
    gap: 6px;
    padding: 9px 10px;
  }
  .lap span {
    font-size: 7.5px;
    letter-spacing: .6px;
  }
  .lap strong {
    font-size: 13px;
  }
}
.quality-choice {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 10px;
  letter-spacing: 1.2px;
  color: #95b39b;
}
.quality-choice span {
  margin-right: 4px;
  text-transform: uppercase;
}
.quality-choice button {
  border: 1px solid #bbd1ac40;
  border-radius: 3px;
  padding: 6px 11px;
  background: #24483e;
  color: #c2cfb6;
  font-size: 11px;
}
.quality-choice button:hover {
  background: #305548;
}
.quality-choice button[aria-pressed=true] {
  border-color: #e4f0ac;
  background: #385d46;
  color: #f4f0d8;
  box-shadow: inset 0 0 0 1px #e4f0ac;
}
.intro #quality-slot + .primary {
  margin-top: 12px;
}
.sr-only {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
:focus-visible {
  outline: 3px solid #f2d989;
  outline-offset: 3px;
}
.lab summary:focus-visible {
  outline-offset: -3px;
}
.panel {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  padding: 26px 30px;
  background: #163d35;
  color: #f2f0d6;
  border: 1px solid #f0f1c348;
  border-radius: 6px;
  box-shadow: 0 20px 100px #0c332850;
}
.panel::backdrop {
  background: #0c2a24a6;
  backdrop-filter: blur(3px);
}
.panel h2 {
  font-size: 30px;
  letter-spacing: -1px;
  line-height: 1.1;
  margin: 10px 0 14px;
  font-weight: 600;
}
.panel h3 {
  font-size: 13px;
  margin: 16px 0 4px;
  color: #f4f0d8;
}
.panel p {
  font-size: 13px;
  line-height: 1.55;
  color: #c9d7c1;
  margin: 0 0 8px;
}
.panel a {
  color: #e4f0ac;
}
.panel h2:focus {
  outline: none;
}
.panel kbd {
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 5px;
  border: 1px solid #c4d4b25a;
  border-radius: 3px;
  background: #24483e;
  color: #f4f0d8;
  white-space: nowrap;
}
.panel fieldset {
  border: 0;
  border-top: 1px solid #c4d4b22a;
  margin: 0;
  padding: 10px 0 6px;
  min-width: 0;
}
.panel legend {
  float: left;
  width: 100%;
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 600;
  color: #d8e9a5;
  padding: 0 0 4px;
  text-transform: uppercase;
}
.setting {
  clear: both;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  font-size: 14px;
  cursor: pointer;
}
.setting small {
  display: block;
  color: #b9cbb6;
  font-size: 11px;
  margin-top: 2px;
}
.panel input[type=checkbox] {
  width: 20px;
  height: 20px;
  accent-color: #e4f0ac;
  flex: none;
  margin: 0;
}
.range {
  display: flex;
  align-items: center;
  gap: 10px;
}
.range input {
  width: min(180px, 40vw);
  accent-color: #e4f0ac;
}
.range output {
  min-width: 38px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}
.choices {
  display: flex;
  gap: 6px;
  flex: none;
}
.choice {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid #bbd1ac40;
  border-radius: 4px;
  background: #24483e;
  font-size: 12px;
  cursor: pointer;
}
.choice:has(input:checked) {
  border-color: #e4f0ac;
  background: #385d46;
}
.choice input {
  margin: 0;
  accent-color: #e4f0ac;
}
.panel-actions {
  margin-top: 14px;
}
.panel-actions .primary {
  margin-top: 0;
}
.panel-links {
  display: flex;
  gap: 18px;
  margin: 10px 0 0;
}
.panel .text-button {
  font-size: 12px;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.how-grid section {
  background: #24483e;
  border-radius: 4px;
  padding: 10px 12px;
}
.how-grid h3 {
  margin-top: 0;
}
.how-grid p {
  font-size: 12px;
  margin: 0;
}
.menu-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 2px 0 6px;
}
.menu-links .text-button {
  margin-top: 0;
  font-size: 11px;
}
.hide-key-hints .keys,
.hide-key-hints .key-hint {
  display: none;
}
.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
  transition: none !important;
  animation: none !important;
}
@media (max-width: 600px) {
  .panel {
    padding: 20px 18px;
  }
  .panel h2 {
    font-size: 24px;
  }
  .how-grid {
    grid-template-columns: 1fr;
  }
  .setting {
    font-size: 13px;
  }
  .choice {
    padding: 6px 8px;
  }
}
.panel .quality-choice {
  clear: both;
  flex-wrap: wrap;
  margin-top: 4px;
  padding: 6px 0;
}
.panel .quality-choice span {
  display: none;
}
#ghost-gap {
  display: block;
  font-variant-numeric: tabular-nums;
  color: #1d5a70;
}
#ghost-gap[hidden] {
  display: none;
}
.card-record .card-table {
  flex-basis: 100%;
  color: #dbe7a6;
}
.intro .note a,
.lab a {
  color: #d8e9a5;
  text-underline-offset: 2px;
}
@media (max-width: 700px) {
  .lab-content {
    max-height: calc(100dvh - 400px);
    overflow: auto;
  }
}

html,body{height:100%;overflow:hidden}body{display:flex;flex-direction:column}#app{position:relative;flex:1;min-height:0;width:100%}#world{position:absolute;inset:0;width:100%;height:100%}.ui{position:absolute!important;inset:0!important}#lab{display:none}.overlay{overflow:auto}#edition-toolbar{position:relative;z-index:20;flex-shrink:0}.wordmark span{font-style:normal;font-size:19px;margin-left:6px}

*{box-sizing:border-box}body{margin:0}#edition-toolbar{display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:6px;background:#122022;color:#fff;font:14px system-ui}#edition-toolbar button{min-height:36px;font:14px system-ui;cursor:pointer}#edition-toolbar a{color:#b4f3ff;font:14px system-ui}#edition-toolbar span{font:12px system-ui}#status{margin:0;background:#122022;color:white;font:14px system-ui}#status:not(:empty){padding:10px}canvas:focus-visible{outline:2px solid gold;outline-offset:-2px}@media(max-width:600px){#edition-toolbar span{width:100%}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
@media(max-height:540px) and (max-width:700px){#edition-toolbar{gap:4px;padding:3px}#edition-toolbar button{min-height:28px;padding:2px 4px;font-size:11px}#edition-toolbar a{font-size:11px;white-space:nowrap}#edition-toolbar span{display:none}#status{font-size:10px}#status:not(:empty){padding:2px 4px}.top{top:4px;left:8px;right:8px;gap:4px}.brand{display:none}.lap{gap:5px;padding:3px 6px}.lap span{font-size:7px;margin-bottom:2px}.lap strong{font-size:11px}.track-label{top:43px;left:8px;font-size:8px;line-height:1.3}.track-label b{font-size:10px}.small-button{padding:4px 6px;font-size:10px}.bottom{bottom:5px;left:8px;right:8px}.speed strong{font-size:26px;letter-spacing:-1px}.speed span{font-size:8px}.keys{display:none}.mode{top:5px;left:auto;right:8px;transform:none;font-size:8px;padding:4px 6px}.overlay{align-items:flex-start}.intro{flex:none;margin:0;max-height:100%;overflow:auto;padding:14px}.panel{padding:12px}}
