:root {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #182e28;
  background: #f5f6ef;
  font-synthesis: none;
  --green: #124b3d;
  --soft: #e6efe5;
  --line: #dce1d6;
  --quiet: #66736b;
  --orange: #eb994d;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
a,
input {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
  background: none;
  border: 0;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #d68134;
  outline-offset: 3px;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  touch-action: manipulation;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button:hover:not(:disabled) {
  filter: brightness(0.94);
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
[hidden] {
  display: none !important;
}
svg.lucide {
  width: 17px;
  height: 17px;
  stroke-width: 1.8;
  flex: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.035em;
}
.top {
  background: #fdfef9;
  border-bottom: 1px solid var(--line);
}
.top-inner,
main {
  max-width: 1520px;
  margin: auto;
  padding: 0 clamp(20px, 4.7vw, 82px);
}
.top-inner {
  display: flex;
  align-items: center;
  height: 72px;
  gap: clamp(26px, 5.7vw, 90px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.brand img {
  width: 40px;
  height: 40px;
}
.brand span {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: 0.035em;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 0.26em;
  font-weight: 750;
  margin-top: 3px;
  color: #587165;
}
.top nav {
  display: flex;
  align-self: stretch;
  gap: clamp(18px, 2.5vw, 46px);
  font-size: 14px;
  font-weight: 600;
}
.top nav a {
  display: grid;
  align-items: center;
  color: #657269;
  position: relative;
}
.top nav [aria-current] {
  color: var(--green);
}
.top nav [aria-current]:after {
  content: "";
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--green);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}
.help,
.quiet,
.model-tag,
.view-group button,
.guide-toggle,
.primary,
.mode-group button,
.pedal,
.gears,
.gears button,
.section-head > div,
.cue > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.help {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  color: #43564d;
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0 22px;
}
.crumb {
  font-size: 12px;
  color: #78847b;
  letter-spacing: 0.035em;
  margin-bottom: 6px;
}
.crumb span {
  padding: 0 6px;
  color: #a6aea6;
}
h1 {
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.3;
  letter-spacing: -0.06em;
  color: #163e32;
}
.intro p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--quiet);
  margin-top: 6px;
}
.model-tag {
  font-size: 12px;
  color: #57675b;
  font-weight: 600;
  gap: 8px;
}
.model-tag b {
  border: 1px solid #c7d5c6;
  padding: 4px 8px;
  border-radius: 5px;
  color: #425e4e;
  font:
    700 10px/1.2 ui-monospace,
    monospace;
  letter-spacing: 0.04em;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 2.45fr) minmax(268px, 0.93fr);
  gap: 18px;
  align-items: start;
}
.panel {
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
}
.simulator {
  grid-column: 1;
}
.sim-head,
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sim-head {
  padding: 15px 20px;
}
.head-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.square-icon {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  background: #e4eee4;
  color: #225340;
  border-radius: 11px;
}
.square-icon svg {
  width: 22px;
  height: 22px;
}
.kicker {
  display: block;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.45;
  color: #6e7f70;
  letter-spacing: 0.09em;
}
.head-left h2 {
  font-size: 21px;
  line-height: 1.35;
}
.quiet {
  font-size: 12px;
  color: #62736a;
  border: 1px solid var(--line);
  padding: 7px 9px;
  background: #fffefa;
  border-radius: 7px;
}
.quiet svg {
  width: 14px;
  height: 14px;
}
#viewport {
  position: relative;
  background: #80988e;
  width: 100%;
  aspect-ratio: 2.16;
  isolation: isolate;
  overflow: hidden;
}
#scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
#scene > canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.view-indicator,
.expand {
  position: absolute;
  top: 13px;
  background: #183128dd;
  backdrop-filter: blur(5px);
  border: 1px solid #ffffff2b;
  color: white;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.view-indicator {
  left: 15px;
  gap: 6px;
  font-size: 11px;
  padding: 6px 10px;
  letter-spacing: 0.02em;
  pointer-events: none;
}
.view-indicator span {
  background: #9ae7b4;
  border-radius: 50%;
  width: 6px;
  height: 6px;
}
.expand {
  right: 14px;
  width: 31px;
  height: 31px;
}
.expand svg {
  width: 15px;
  height: 15px;
}
#viewport:fullscreen,
#viewport.expanded {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  background: #34493d;
}
#viewport.expanded {
  position: fixed;
  inset: 0;
  z-index: 80;
}
.viewbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 15px;
  background: #f2f5ee;
  border-bottom: 1px solid var(--line);
}
.view-group {
  display: flex;
  gap: 3px;
}
.view-group button,
.guide-toggle {
  font-size: 12px;
  white-space: nowrap;
  padding: 6px 9px;
  border-radius: 6px;
  color: #5c6d61;
}
.view-group button[aria-pressed="true"] {
  background: #dce9dc;
  color: #214f3d;
  font-weight: 700;
}
.view-group svg,
.guide-toggle svg {
  width: 14px;
  height: 14px;
}
.guide-toggle {
  padding-right: 2px;
}
.switch {
  display: inline-block;
  width: 23px;
  height: 14px;
  border-radius: 10px;
  position: relative;
  background: #8e9990;
}
.switch:before {
  content: "";
  width: 10px;
  height: 10px;
  background: white;
  position: absolute;
  top: 2px;
  left: 2px;
  border-radius: 50%;
}
.guide-toggle[aria-pressed="true"] .switch {
  background: #3e7659;
}
.guide-toggle[aria-pressed="true"] .switch:before {
  left: 11px;
}
.driving {
  padding: 15px 20px 16px;
}
.play-controls,
.timeline,
.manual-row,
.wheel-row,
.phase-caption {
  display: flex;
  align-items: center;
  gap: 12px;
}
.play-controls,
.phase-caption {
  justify-content: space-between;
}
.mode-group {
  display: flex;
  gap: 2px;
  background: #f1f3ec;
  padding: 3px;
  border: 1px solid #e0e6dc;
  border-radius: 8px;
}
.mode-group button {
  font-size: 12px;
  color: #637369;
  border-radius: 5px;
  padding: 6px 9px;
}
.mode-group [aria-pressed="true"] {
  background: white;
  color: #254b3b;
  box-shadow: 0 1px 4px #1a392319;
  font-weight: 700;
}
.mode-group svg {
  width: 14px;
  height: 14px;
}
.telemetry {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: #6c796f;
  align-items: center;
}
.telemetry span {
  white-space: nowrap;
}
.telemetry b,
.phase-caption span:last-child,
.rate {
  font-family: ui-monospace, "SFMono-Regular", monospace;
  font-variant-numeric: tabular-nums;
}
.telemetry b {
  color: #2d4d3c;
  font-size: 13px;
}
.timeline {
  margin-top: 15px;
}
.primary {
  background: var(--green);
  color: white;
  border-radius: 8px;
  padding: 10px 16px;
  white-space: nowrap;
  font-weight: 650;
  font-size: 13px;
}
.primary svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.rate,
.wheel-row button,
#presets button,
.gears,
.pedal {
  border: 1px solid var(--line);
  border-radius: 6px;
}
.rate {
  font-size: 12px;
  font-weight: 650;
  padding: 6px 9px;
}
.timeline input,
.wheel-row input {
  flex: 1;
  min-width: 35px;
  accent-color: #32674d;
  cursor: pointer;
}
.phase-caption {
  margin-top: 7px;
  font-size: 11px;
  color: #69786c;
}
.manual-row,
.wheel-row {
  margin-top: 11px;
}
.gears {
  gap: 0;
  padding: 2px;
  background: #f6f7f1;
}
.gears button,
.pedal,
.wheel-row button,
#presets button {
  font-size: 12px;
  padding: 7px 11px;
}
.gears [aria-pressed="true"] {
  background: #dbe9dc;
  border-radius: 4px;
  font-weight: 700;
}
.pedal {
  font-weight: 650;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.pedal.held {
  box-shadow: inset 0 0 0 2px #edac6b;
}
.pedal.go {
  background: var(--green);
  color: white;
}
.pedal.brake {
  margin-left: auto;
  background: #fcf0e4;
  color: #80451d;
}
.wheel-row label,
#presets span {
  font-size: 12px;
  color: #61705f;
}
#presets {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
#presets button {
  padding: 4px 8px;
  color: #395741;
}
.wheel-row button {
  padding: 4px 9px;
}
#feedback {
  margin: 10px 0 0;
  border-radius: 6px;
  background: #edf3eb;
  color: #425d46;
  font-size: 12px;
  padding: 7px 10px;
}
#feedback.warning {
  background: #fff0d9;
  color: #824118;
}
aside {
  grid-column: 2;
  grid-row: 1/3;
  display: grid;
  gap: 14px;
}
.section-head {
  padding: 17px 18px 12px;
}
.section-head > div {
  gap: 9px;
}
.section-head h2 {
  font-size: 17px;
}
.section-head svg {
  width: 17px;
  height: 17px;
  color: #476752;
}
.section-head > span {
  font-size: 11px;
  color: #6a786d;
}
.catalogue .section-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
#courses {
  padding: 6px 8px;
}
.course {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 8px;
  margin: 2px 0;
  border: 1px solid transparent;
  border-radius: 9px;
}
.course[aria-pressed="true"] {
  background: #e9f1e6;
  border-color: #cbdcc8;
}
.course:hover {
  background: #f3f5ed;
}
.mini-map {
  width: 66px;
  height: 51px;
  flex: none;
  border-radius: 6px;
  display: block;
}
.course-text {
  flex: 1;
  min-width: 0;
}
.course strong,
.compare strong {
  display: block;
  font-size: 15px;
  letter-spacing: -0.02em;
}
.course small,
.compare small {
  display: block;
  font-size: 11px;
  color: #748173;
  margin-top: 4px;
}
.course .course-arrow {
  font-size: 18px;
  color: #869b87;
}
.course[aria-pressed="true"] .course-arrow {
  color: var(--green);
}
.compare {
  border-radius: 13px;
  background: #16473b;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 19px 18px;
  position: relative;
  overflow: hidden;
}
.compare:after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -58px;
  width: 145px;
  height: 95px;
  border: 1px solid #ffffff16;
  border-radius: 50%;
  box-shadow:
    0 0 0 9px #ffffff09,
    0 0 0 20px #ffffff08;
  pointer-events: none;
}
.comp-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #f4c584;
  background: #285c4e;
  border-radius: 10px;
}
.compare small {
  color: #c6d9cb;
}
.compare > svg {
  margin-left: auto;
  color: #e9cf9f;
}
.coach {
  grid-column: 1;
}
.coach .section-head {
  padding-bottom: 10px;
}
#stages {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  padding: 2px 18px 14px;
}
.stage {
  border: 1px solid #e0e5da;
  border-radius: 6px;
  padding: 6px 9px;
  color: #607064;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.stage b {
  font:
    650 10px ui-monospace,
    monospace;
  color: #7c8e7c;
}
.stage[aria-pressed="true"] {
  background: #e5efe3;
  color: #244f38;
  border-color: #b9cfb8;
}
.cue {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  border-top: 1px solid #e9ece3;
  margin: 0 18px;
  padding: 12px 0;
  font-size: 13px;
  line-height: 1.65;
}
.cue > span {
  color: #496c51;
  justify-content: flex-start;
  align-self: start;
  font-weight: 650;
  font-size: 12px;
}
.cue svg {
  width: 15px;
  height: 15px;
}
.cue p {
  color: #46564a;
}
.cue.action {
  padding-top: 8px;
}
.action > span {
  color: #96612b;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #748174;
  font-size: 11px;
  margin: 22px 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
dialog {
  border: 1px solid #d2ddcc;
  border-radius: 16px;
  box-shadow: 0 20px 90px #14352744;
  max-width: min(550px, 94vw);
  width: 100%;
  max-height: 88dvh;
  color: #273d2e;
  background: #fffef8;
  padding: 20px;
}
dialog::backdrop {
  background: #112a21a8;
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.dialog-head h2 {
  font-size: 21px;
}
#modal-body p,
#modal-body li {
  font-size: 14px;
  color: #516256;
  line-height: 1.65;
}
#modal-body ul {
  padding-left: 20px;
}
#modal-body h3 {
  font-size: 15px;
  margin: 14px 0 5px;
}
#modal-body canvas {
  width: 100%;
  height: 230px;
  display: block;
  border-radius: 10px;
  margin: 12px 0;
}
.comparison-options {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}
.comparison-options button {
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  padding: 5px 10px;
}
.comparison-options [aria-pressed="true"] {
  background: var(--green);
  color: white;
}
.legend {
  display: flex;
  gap: 20px;
  font-size: 13px;
  font-weight: 650;
}
.legend span:before {
  content: "";
  width: 17px;
  height: 3px;
  display: inline-block;
  vertical-align: middle;
  background: #30937b;
  margin-right: 6px;
}
.legend span + span:before {
  background: #dd8d43;
}
@media (min-width: 1600px) {
  #viewport {
    aspect-ratio: 2.14;
  }
}
@media (max-width: 1020px) {
  .top-inner,
  main {
    padding-left: 22px;
    padding-right: 22px;
  }
  .layout {
    grid-template-columns: minmax(0, 1fr) 241px;
    gap: 12px;
  }
  .course {
    gap: 8px;
  }
  .mini-map {
    width: 52px;
    height: 43px;
  }
  .course strong {
    font-size: 14px;
  }
  .telemetry {
    gap: 6px;
  }
  .driving {
    padding: 13px;
  }
  .mode-group button {
    padding: 6px;
  }
  .viewbar {
    padding: 8px;
  }
  .view-group button {
    padding: 6px;
  }
  .compare {
    padding: 14px;
  }
  .top-inner {
    gap: 35px;
  }
  #viewport {
    aspect-ratio: 1.85;
  }
}
@media (max-width: 790px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }
  aside {
    grid-column: 1;
    grid-row: auto;
    display: contents;
  }
  .catalogue {
    grid-row: 1;
  }
  .catalogue .section-head {
    display: none;
  }
  #courses {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: thin;
    padding: 6px;
  }
  .course {
    width: auto;
    flex: 1 0 auto;
    padding: 5px 7px;
    gap: 6px;
    margin: 0;
  }
  .mini-map {
    width: 42px;
    height: 35px;
  }
  .course small,
  .course-arrow {
    display: none;
  }
  .course strong {
    font-size: 12px;
  }
  .simulator {
    grid-row: 2;
  }
  .coach {
    grid-row: 3;
  }
  .compare {
    grid-row: 4;
  }
  .top-inner {
    gap: 24px;
  }
  .top nav {
    gap: 15px;
  }
  .intro {
    padding: 18px 0;
  }
  .top-inner,
  main {
    padding-left: 16px;
    padding-right: 16px;
  }
  #viewport {
    aspect-ratio: 1.8;
  }
}
@media (max-width: 590px) {
  .top-inner {
    padding: 0 14px;
    display: grid;
    height: auto;
    grid-template-columns: 1fr auto;
    gap: 0;
  }
  .brand {
    padding: 9px 0;
    gap: 7px;
  }
  .brand img {
    width: 31px;
    height: 31px;
  }
  .brand span {
    font-size: 16px;
  }
  .brand small {
    font-size: 7px;
  }
  .help {
    grid-column: 2;
    grid-row: 1;
    font-size: 12px;
  }
  .top nav {
    grid-row: 2;
    grid-column: 1/-1;
    justify-content: space-between;
    font-size: 13px;
    gap: 12px;
  }
  .top nav a {
    padding: 8px 0 10px;
  }
  main {
    padding: 0 10px;
  }
  .intro {
    padding: 13px 3px;
  }
  .crumb {
    display: none;
  }
  h1 {
    font-size: 27px;
  }
  .intro p {
    font-size: 12px;
    margin-top: 3px;
  }
  .model-tag {
    font-size: 0;
    gap: 0;
  }
  .model-tag svg {
    display: none;
  }
  .model-tag b {
    font-size: 10px;
  }
  .layout {
    gap: 10px;
  }
  .catalogue,
  .panel {
    border-radius: 11px;
  }
  .course .mini-map {
    width: 36px;
    height: 29px;
  }
  .course {
    padding: 3px 6px;
  }
  .sim-head {
    padding: 9px 12px;
  }
  .kicker {
    font-size: 9px;
  }
  .square-icon {
    width: 31px;
    height: 31px;
    border-radius: 8px;
  }
  .head-left {
    gap: 8px;
  }
  .head-left h2 {
    font-size: 17px;
  }
  .quiet {
    font-size: 11px;
    padding: 6px 8px;
  }
  #viewport {
    aspect-ratio: 1.45;
  }
  .view-indicator {
    top: 8px;
    left: 8px;
    font-size: 10px;
  }
  .expand {
    right: 8px;
    top: 8px;
    height: 27px;
    width: 27px;
  }
  .viewbar {
    padding: 5px 6px;
    gap: 0;
  }
  .view-group {
    gap: 0;
  }
  .view-group button,
  .guide-toggle {
    font-size: 11px;
    padding: 6px;
    gap: 4px;
  }
  .view-group svg {
    display: none;
  }
  .driving {
    padding: 10px;
  }
  .play-controls {
    gap: 4px;
    flex-wrap: wrap;
  }
  .mode-group button {
    font-size: 11px;
    padding: 5px 7px;
  }
  .mode-group svg {
    width: 12px;
    height: 12px;
  }
  .telemetry {
    font-size: 10px;
    gap: 6px;
  }
  .telemetry b {
    font-size: 11px;
  }
  .timeline {
    margin-top: 10px;
    gap: 8px;
  }
  .primary {
    font-size: 12px;
    padding: 9px 12px;
  }
  .manual-row {
    gap: 6px;
  }
  .wheel-row,
  .manual-row {
    margin-top: 8px;
  }
  .gears button,
  .pedal {
    padding: 7px 8px;
  }
  .section-head {
    padding: 13px;
  }
  .coach .section-head {
    padding: 12px;
  }
  .stage {
    font-size: 11px;
    padding: 5px 7px;
  }
  #stages {
    padding: 0 11px 10px;
    gap: 4px;
  }
  .cue {
    margin: 0 12px;
    grid-template-columns: 72px 1fr;
    gap: 6px;
    font-size: 12px;
  }
  .cue > span {
    font-size: 11px;
  }
  footer {
    display: block;
    line-height: 1.6;
  }
  footer span {
    display: block;
  }
}
@media (max-height: 550px) and (orientation: landscape) {
  #viewport {
    max-height: 62dvh;
  }
  .intro {
    padding: 8px 0;
  }
  .crumb,
  .intro p {
    display: none;
  }
  .top-inner {
    height: 44px;
  }
  .sim-head {
    padding: 6px 12px;
  }
}
.sim-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.sim-actions select {
  border: 1px solid var(--line);
  border-radius: 7px;
  font: inherit;
  font-size: 12px;
  background: #f4f7f0;
  color: #3e5d48;
  padding: 6px 5px;
  cursor: pointer;
  max-width: 100px;
}
.screen-cue,
.gaps {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: #fff8e8;
  background: #173a32db;
  backdrop-filter: blur(5px);
  border-radius: 6px;
  line-height: 1.5;
  text-align: center;
  font-size: 12px;
  padding: 4px 9px;
  pointer-events: none;
}
.screen-cue {
  top: 13px;
  max-width: 64%;
  width: max-content;
}
.gaps {
  bottom: 7px;
  font-size: 10px;
  color: #fff1d8;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.simulator:fullscreen,
.simulator.expanded {
  display: flex;
  flex-direction: column;
  background: #fdfef8;
  border-radius: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
}
.simulator.expanded {
  position: fixed;
  z-index: 100;
  inset: 0;
}
.simulator:fullscreen #viewport,
.simulator.expanded #viewport {
  flex: 1 0 120px;
  aspect-ratio: auto;
  max-height: none;
}
.simulator:fullscreen .sim-head,
.simulator.expanded .sim-head {
  display: none;
}
.simulator:fullscreen .viewbar,
.simulator.expanded .viewbar,
.simulator:fullscreen .driving,
.simulator.expanded .driving {
  flex: none;
}
.simulator:fullscreen .driving,
.simulator.expanded .driving {
  padding: 8px 12px;
}
@media (max-width: 590px) {
  .sim-actions {
    gap: 4px;
  }
  .sim-actions select {
    font-size: 11px;
    max-width: 84px;
  }
  .screen-cue {
    top: 35px;
    font-size: 10px;
    max-width: 88%;
    padding: 3px 7px;
  }
  .gaps {
    bottom: 2px;
    font-size: 9px;
    padding: 1px 4px;
  }
}
@media (max-height: 500px) and (orientation: landscape) {
  .simulator:fullscreen .driving,
  .simulator.expanded .driving {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .simulator:fullscreen .telemetry,
  .simulator.expanded .telemetry,
  .simulator:fullscreen #presets,
  .simulator.expanded #presets {
    display: none;
  }
  .simulator:fullscreen #manual-controls,
  .simulator.expanded #manual-controls,
  .simulator:fullscreen #demo-controls,
  .simulator.expanded #demo-controls {
    flex: 1;
  }
  .simulator:fullscreen .manual-row,
  .simulator.expanded .manual-row,
  .simulator:fullscreen .timeline,
  .simulator.expanded .timeline {
    margin: 0;
  }
}
.distance-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 15px;
}
.distance-controls button {
  background: var(--green);
  color: #fff;
  border-radius: 7px;
  padding: 7px 11px;
  font-size: 12px;
}
.distance-controls input {
  flex: 1;
  min-width: 45px;
  accent-color: var(--green);
}
.distance-controls span {
  font-size: 12px;
  min-width: 42px;
  font-variant-numeric: tabular-nums;
}

/* Same simulation, simultaneous driver and follow cameras. */
.follow-frame {
  position: absolute;
  border: 2px solid #264a41;
  border-radius: 10px;
  box-sizing: border-box;
  overflow: hidden;
  box-shadow: 0 4px 18px #122c4330;
}
.follow-frame span {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 4px 8px;
  background: #173035d9;
  color: #e1f1e8;
  font: 10px sans-serif;
}
.follow-frame.stacked { border-radius: 0; border-width: 0 0 2px; }
@media (max-width: 599px) {
  #viewport.dual-view { aspect-ratio: 0.96; }
  .dual-view .screen-cue { top: calc(36% + 8px); max-width: 90%; }
  .viewbar { flex-wrap: wrap; gap: 3px 8px; }
  .view-group { flex-wrap: wrap; }
}
