:root {
  --ink: #091215;
  --paper: #f1f0e9;
  --muted: #a3b1b3;
  --lime: #d6f666;
  --line: #ffffff25;
  --red: #f25454;
  --teal: #6ce1cb;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--paper);
  background: var(--ink);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  color: inherit;
  border: 1px solid var(--line);
  background: #ffffff09;
  padding: 12px 15px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}
button:hover {
  background: #ffffff20;
  border-color: #ffffff70;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--lime);
}
button.primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: var(--lime);
  color: var(--ink);
  border: 0;
  padding: 19px 20px;
  font-size: 11px;
  letter-spacing: 1.5px;
}
button.primary:hover {
  background: #e7ffa3;
}
.primary span {
  font-size: 23px;
  line-height: 10px;
}
button.glass {
  background: #09121580;
  backdrop-filter: blur(15px);
}
kbd {
  font: 9px Arial;
  border: 1px solid #ffffff40;
  padding: 3px 5px;
  margin-left: 8px;
  color: inherit;
  opacity: 0.65;
}
#world,
.vignette {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}
.vignette {
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, #06101460);
  z-index: 1;
}
body.paddock .vignette {
  background:
    linear-gradient(90deg, #061014ed, #061014b0 43%, #06101466),
    linear-gradient(0deg, #061014, transparent 50%);
}
#masthead {
  position: fixed;
  left: 42px;
  right: 42px;
  top: 26px;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 36px;
}
.brand {
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-style: italic;
  text-transform: uppercase;
}
#settings-button {
  margin-left: auto;
}
body.paddock #settings-button {
  min-height: 44px;
  font-size: 11px;
  color: var(--lime);
  border-color: #d6f66670;
}
#paddock {
  position: relative;
  z-index: 3;
  height: 100vh;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: safe center;
  padding: 92px 20px 132px;
}
#landing-links {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 20px;
  z-index: 8;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  pointer-events: none;
}
#landing-links > * { pointer-events: auto; }
#maker-credit {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  text-align: right;
}
#maker-credit a {
  color: var(--paper);
  text-underline-offset: 3px;
}
body.racing #landing-links { display: none; }
.eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--muted);
}
.fine {
  font-size: 9px;
  line-height: 1.7;
  color: #9ba9ac;
}
.setup-panel {
  width: min(100%, 420px);
  background: #0b161bf2;
  border: 1px solid #ffffff25;
  padding: 22px;
  box-shadow: 0 16px 55px #0004;
  backdrop-filter: blur(18px);
}
#feedback-link {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  padding: 16px 18px;
  border: 1px solid #ff450080;
  border-left: 3px solid #ff4500;
  background: #0b161bf2;
  box-shadow: 0 8px 30px #0005;
  color: var(--paper);
  line-height: 1.4;
  text-decoration: none;
}
#feedback-link img { flex-shrink: 0; }
#feedback-link > span { min-width: 0; }
#feedback-link strong { display: block; font-size: 18px; }
#feedback-link small { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
#feedback-link:hover { background: #17242a; border-color: #ff4500; }
#feedback-link:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.panel-heading > span:last-child {
  font-size: 8px;
  color: var(--lime);
  border: 1px solid #d6f66650;
  padding: 4px 6px;
  letter-spacing: 1px;
}
label {
  display: block;
  font-size: 8px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--muted);
  margin: 13px 0;
}
input,
select {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--paper);
  padding: 11px;
  background: #142126;
  margin-top: 7px;
  font-size: 11px;
  letter-spacing: 0.2px;
}
select {
  appearance: auto;
  color-scheme: dark;
}
input[type="range"] {
  accent-color: var(--lime);
  padding: 0;
  height: 15px;
  background: none;
}
.two-columns,
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.check {
  display: flex;
  align-items: center;
  gap: 9px;
  letter-spacing: 0.3px;
  font-size: 10px;
}
.check input {
  width: auto;
  margin: 0;
  accent-color: var(--lime);
}
#team-swatch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: -2px;
  margin-bottom: 20px;
  font-size: 9px;
  color: var(--muted);
}
#team-swatch > span {
  height: 3px;
  width: 22px;
  background: var(--lime);
}
#team-swatch small {
  margin-left: auto;
}
details {
  border-block: 1px solid var(--line);
  margin: 8px 0 17px;
}
summary {
  cursor: pointer;
  list-style: none;
  font-size: 8px;
  letter-spacing: 1.5px;
  padding: 15px 0;
}
summary span {
  float: right;
  color: var(--lime);
}
#advanced {
  border: 0;
}
#advanced > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
  padding: 14px 16px;
  border: 1px solid #d6f66670;
  background: #d6f6660b;
}
#advanced > summary:hover,
#advanced[open] > summary {
  border-color: var(--lime);
  background: #d6f66616;
}
#advanced > summary:focus-visible {
  outline: 2px solid var(--lime);
}
#advanced > summary span {
  float: none;
}
.settings-copy strong,
.settings-copy small {
  display: block;
}
.settings-copy strong {
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 1.5px;
}
.settings-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2px;
}
.settings-toggle {
  font-size: 24px;
  line-height: 1;
}
#advanced[open] .settings-toggle {
  transform: rotate(45deg);
}
.controller {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 8px;
  font-size: 8px;
  color: var(--muted);
  line-height: 1.5;
}
.controller > span:first-child {
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  background: var(--muted);
  border-radius: 50%;
}
.controller > span.connected {
  background: var(--lime);
}
.input-meter {
  display: flex;
  gap: 4px;
  height: 3px;
  margin-bottom: 20px;
  background: #ffffff08;
  position: relative;
}
.input-meter i {
  height: 3px;
  width: 5px;
  background: var(--paper);
  position: absolute;
  left: 50%;
}
.input-meter b {
  width: 0;
  position: absolute;
  top: 5px;
  background: var(--lime);
  height: 2px;
}
.input-meter b:last-child {
  background: var(--red);
  right: 0;
}
#setup-error {
  color: #ff9b8c;
  font-size: 11px;
  line-height: 1.6;
  margin-bottom: 0;
}
#boot {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 50;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 20px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--lime);
}
#boot .presenter {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
}
#boot .game-title {
  font-size: clamp(52px, 10vw, 116px);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.065em;
  text-transform: uppercase;
  line-height: 1;
  padding-right: 0.08em;
}
[hidden] {
  display: none !important;
}
body.racing .brand {
  display: none;
}
body.racing #masthead {
  top: 20px;
  right: 24px;
}
.racing #settings-button {
  font-size: 8px;
  padding: 9px;
}
#race-ui {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
#race-ui button {
  pointer-events: auto;
}
#session-info {
  position: absolute;
  left: 28px;
  top: 25px;
  min-width: 245px;
  padding: 15px;
  background: #071013c0;
  border-left: 2px solid var(--lime);
  backdrop-filter: blur(10px);
}
#session-info > .eyebrow {
  font-size: 8px;
}
#session-info > div {
  margin-top: 10px;
  font-size: 9px;
  color: var(--muted);
}
#session-info strong {
  font-size: 15px;
  color: white;
  margin: 0 20px 0 7px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
#race-time {
  font-variant-numeric: tabular-nums;
}
#leaderboard {
  position: absolute;
  top: 135px;
  left: 28px;
  width: 216px;
  background: #071013a0;
  backdrop-filter: blur(8px);
  font-size: 10px;
}
.standing {
  display: grid;
  grid-template-columns: 20px 5px 1fr 50px;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-bottom: 1px solid #ffffff0a;
}
.standing.player {
  background: #d6f66625;
  color: var(--lime);
}
.standing > i {
  height: 13px;
}
.standing small {
  font-size: 8px;
  color: var(--muted);
  text-align: right;
}
.standing em {
  font-size: 8px;
  font-style: normal;
  margin-left: 4px;
  opacity: 0.5;
}
#race-message {
  position: absolute;
  z-index: 1;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: min(48%, 650px);
  font-size: 10px;
  text-shadow: 0 1px 4px #000;
}
#finish-notice {
  display: inline-block;
  margin-top: 8px;
  padding: 7px 12px;
  border: 1px solid #ffffff30;
  background: #071013d9;
  color: #f0f4ed;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-shadow: 0 1px 4px #000;
}
#finish-notice[hidden] { display: none; }
#flag-warning {
  --flag-color: #d6f666;
  color: var(--flag-color);
  background: #071013eb;
  border: 1px solid #ffffff20;
  border-top: 3px solid var(--flag-color);
  padding: 10px 16px;
}
#flag-label {
  display: block;
  letter-spacing: 0.1em;
  font-size: 12px;
  font-weight: 800;
}
#flag-instruction {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.035em;
  line-height: 1.5;
}
#flag-instruction:empty { display: none; }
#local-danger {
  margin-top: 10px;
  border-top: 1px solid #ffcf4270;
  padding-top: 10px;
  color: #ffcf42;
}
#local-danger strong, #local-danger span { display: block; }
#local-danger strong { font-size: 13px; letter-spacing: .04em; }
#local-danger span { margin-top: 5px; line-height: 1.5; }
#personal-flags {
  margin-top: 8px;
  border-left: 3px solid #70b7ff;
  background: #071013f0;
  padding: 10px 12px;
  color: #d7eaff;
  font-size: 11px;
  line-height: 1.5;
}
#flag-warning[data-warning="yellow"],
#flag-warning[data-warning="red"] {
  --flag-color: #ffcf42;
  background: #3b2d08f5;
  border: 2px solid var(--flag-color);
  box-shadow: 0 0 30px #ffcf4230;
  padding: 16px 20px;
  animation: flag-attention 1s ease-in-out infinite;
}
#flag-warning[data-warning="red"] {
  --flag-color: #ff7770;
  background: #440f10f5;
  box-shadow: 0 0 30px #ff4b4230;
}
#flag-warning[data-warning="elsewhere"] { --flag-color: #ffcf42; }
#flag-warning[data-warning="formation"] { --flag-color: #6ce1cb; }
#flag-warning[data-warning="formation"] #flag-label { font-size: 16px; }
#flag-warning[data-warning="yellow"] #flag-label,
#flag-warning[data-warning="red"] #flag-label {
  font-size: clamp(15px, 1.3vw, 21px);
}
@keyframes flag-attention { 50% { border-color: #ffffff70; box-shadow: none; } }
@media (prefers-reduced-motion: reduce) {
  #flag-warning[data-warning] { animation: none; }
}
#message-text {
  display: block;
  margin: 10px auto;
  font-weight: 400;
  background: #07101380;
  padding: 8px;
  width: fit-content;
  font-size: 10px;
  line-height: 1.4;
}
#start-lights {
  position: absolute;
  top: 23%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  background: #080a0bed;
  padding: 13px 18px;
  border-radius: 3px;
}
#start-lights i {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #391a1a;
  border: 2px solid #511d1d;
}
#start-lights i.on {
  background: #ff3333;
  box-shadow: 0 0 25px #ff303080;
}
#start-prompt {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  text-align: center;
  pointer-events: auto;
}
#start-prompt .glass {
  margin: 10px 0;
}
#start-prompt p {
  font-size: 10px;
  line-height: 1.9;
  background: #071013c0;
  padding: 15px;
}
#telemetry {
  position: absolute;
  bottom: 62px;
  left: 50%;
  transform: translateX(-50%);
  width: 330px;
  background: linear-gradient(140deg, #071013e8, #071013be);
  padding: 15px 20px;
  backdrop-filter: blur(15px);
  border: 1px solid #ffffff20;
  font-variant-numeric: tabular-nums;
}
.telemetry-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--muted);
}
#position {
  color: var(--lime);
  font-size: 16px;
  font-weight: 700;
}
#rpm-strip {
  height: 4px;
  margin: 12px 0;
  background: linear-gradient(90deg, var(--lime), var(--teal), #a57dff);
  clip-path: inset(0 100% 0 0);
}
.speed-row {
  display: flex;
  gap: 17px;
  align-items: center;
}
#gear {
  font-size: 53px;
  line-height: 1;
  font-weight: 700;
  color: var(--lime);
  min-width: 40px;
}
#speed {
  font-size: 40px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -2px;
}
.speed-row small {
  font-size: 7px;
  color: var(--muted);
  display: block;
  margin-top: 5px;
  letter-spacing: 1px;
}
#lap-timing {
  position: absolute;
  top: 86px;
  right: 28px;
  width: 250px;
  padding: 15px 18px;
  background: #071013e6;
  border-left: 3px solid var(--lime);
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(10px);
}
#current-lap {
  display: block;
  margin: 5px 0 12px;
  font-size: 38px;
  line-height: 1.1;
  letter-spacing: -1px;
}
#lap-validity {
  display: block;
  margin: -5px 0 12px;
  color: #ffcf42;
  font-size: 10px;
  line-height: 1.4;
  text-transform: uppercase;
}
.lap-history b.invalid { color: #ffcf42; }
.lap-history {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 9px;
  color: var(--muted);
}
.lap-history b {
  display: block;
  margin-top: 4px;
  font-size: 17px;
  font-weight: 500;
  color: white;
}
#best-lap { color: var(--teal); }
#pit-request-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid #ffffff26;
  color: var(--lime);
}
#pit-request-status > i {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
  animation: pit-pulse 1.6s ease-in-out infinite;
}
#pit-request-status strong { display: block; font-size: 12px; letter-spacing: 0.06em; }
#pit-request-team { display: block; color: #d1dcdd; font-size: 10px; margin-top: 4px; }
#pit-request-status.waiting { color: #ffe368; }
#pit-button.pit-active { color: var(--lime); background: #d6f66620; }
@keyframes pit-pulse { 50% { opacity: 0.4; } }
@media (prefers-reduced-motion: reduce) { #pit-request-status > i { animation: none; } }
@media (max-width: 700px) {
  #lap-timing { top: 82px; right: 12px; width: 160px; padding: 12px; }
  #current-lap { font-size: 25px; }
  .lap-history { gap: 8px; font-size: 8px; }
  .lap-history b { font-size: 12px; }
  body.racing #race-message { top: 290px; }
}
.energy {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 17px;
  font-size: 7px;
  color: var(--muted);
}
.energy span:last-child {
  margin-left: auto;
}
.energy progress {
  appearance: none;
  width: 92px;
  height: 3px;
  border: 0;
  background: #ffffff20;
}
.energy progress::-webkit-progress-bar {
  background: #ffffff20;
}
.energy progress::-webkit-progress-value {
  background: var(--teal);
}
.car-health {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #ffffff20;
  font-size: 8px;
  color: var(--muted);
}
#penalty {
  color: #ffd984;
  font-size: 9px;
  text-align: center;
  margin-top: 6px;
}
#minimap {
  position: absolute;
  bottom: 64px;
  right: 24px;
  width: 185px;
  height: 185px;
  background: #07101365;
  border-radius: 50%;
}
#weather-status {
  position: absolute;
  bottom: 260px;
  right: 30px;
  font-size: 9px;
  letter-spacing: 0.5px;
  color: #ddd;
  background: #0710139c;
  padding: 10px;
}
#race-tools {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 1px;
  align-items: center;
  background: #071013d9;
  border-top: 1px solid var(--line);
  pointer-events: auto;
}
#race-tools button {
  border: 0;
  font-size: 8px;
  padding: 14px 20px;
}
#performance {
  margin-left: auto;
  font-size: 8px;
  color: var(--muted);
  padding: 0 22px;
}
.overlay-panel {
  position: fixed;
  z-index: 12;
  right: 20px;
  top: 80px;
  bottom: 70px;
  overflow: auto;
  width: 370px;
  padding: 30px;
  background: #09151bf5;
  border: 1px solid var(--line);
  box-shadow: 0 30px 100px #0008;
  backdrop-filter: blur(20px);
}
h2 {
  font-size: 31px;
  font-weight: 400;
  letter-spacing: -1px;
  margin: 18px 0 25px;
}
.overlay-panel p {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}
.close {
  position: absolute;
  right: 12px;
  top: 12px;
  border: 0;
  background: none;
  font-size: 23px;
  padding: 5px;
  line-height: 1;
}
.button-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.button-grid button {
  font-size: 8px;
}
.two-columns > button {
  align-self: end;
  margin-bottom: 13px;
  font-size: 8px;
  padding: 12px 5px;
}
#control-log {
  padding: 0;
  list-style: none;
  font-size: 10px;
  line-height: 1.6;
}
#control-log li {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  color: var(--muted);
}
#control-log time {
  display: block;
  font-size: 8px;
  color: var(--lime);
}
.incident {
  padding: 10px 0;
  font-size: 10px;
  border-bottom: 1px solid var(--line);
  line-height: 1.6;
}
.incident button {
  font-size: 7px;
  padding: 5px;
  display: block;
  margin-top: 5px;
}
dialog {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--line);
  max-width: 1100px;
  width: 90vw;
  max-height: 88vh;
  padding: 45px;
}
dialog::backdrop {
  background: #030a0de0;
  backdrop-filter: blur(8px);
}
dialog > p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  max-width: 650px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin: 25px 0;
}
td,
th {
  text-align: left;
  padding: 12px 7px;
  border-bottom: 1px solid var(--line);
}
th {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 1px;
}
#toast {
  position: fixed;
  z-index: 60;
  bottom: 65px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;
  background: #14262a;
  border: 1px solid var(--lime);
  padding: 15px 25px;
  font-size: 12px;
  text-align: center;
}
@media (max-height: 800px) {
  #paddock {
    padding-top: 76px;
    padding-bottom: 132px;
  }
  .setup-panel {
    padding: 18px;
  }
  .panel-heading {
    margin-bottom: 15px;
  }
  label {
    margin: 8px 0;
  }
  input,
  select {
    padding: 9px;
  }
  #leaderboard {
    font-size: 9px;
  }
  .standing {
    padding: 4px 9px;
  }
  #telemetry {
    width: 305px;
    padding: 12px 16px;
  }
  #minimap {
    width: 160px;
    height: 160px;
  }
}
@media (max-width: 900px) {
  #masthead {
    left: 22px;
    right: 22px;
  }
}
@media (max-width: 760px) {
  #landing-links {
    left: 16px;
    right: 16px;
    bottom: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  #feedback-link { padding: 12px 16px; }
  #maker-credit { align-self: flex-end; }
  #paddock { padding-bottom: 184px; }
}
@media (max-width: 700px) {
  body {
    overflow: auto;
  }
  #paddock {
    min-height: 100vh;
    height: auto;
    padding: 82px 16px 184px;
  }
  .setup-panel {
    max-width: 420px;
  }
  #leaderboard {
    width: 160px;
    top: 125px;
    left: 12px;
  }
  .standing {
    grid-template-columns: 17px 3px 1fr 30px;
    font-size: 9px;
    gap: 5px;
  }
  #session-info {
    left: 12px;
    min-width: 200px;
  }
  #race-message {
    top: 290px;
    width: calc(100% - 24px);
    left: 50%;
  }
  #flag-warning[data-warning="yellow"], #flag-warning[data-warning="red"] { padding: 12px; }
  #flag-instruction { font-size: 10px; }
  #telemetry {
    width: 260px;
    bottom: 60px;
  }
  #minimap {
    display: none;
  }
  #weather-status {
    bottom: 265px;
    right: 12px;
    font-size: 8px;
  }
  #performance {
    display: none;
  }
  #race-tools button {
    padding: 14px 10px;
    font-size: 7px;
  }
  .overlay-panel {
    width: calc(100vw - 24px);
    right: 12px;
  }
  dialog {
    padding: 30px;
  }
  #start-lights {
    top: 27%;
  }
}
body.racing[data-camera="cockpit"] #telemetry {
  left: 28px;
  bottom: 62px;
  transform: none;
  width: 260px;
  padding: 12px 15px;
}

body.racing[data-camera="cockpit"] #telemetry #gear {
  font-size: 42px;
}
body.racing[data-camera="cockpit"] #telemetry #speed {
  font-size: 33px;
}
@media (max-width: 700px) {
  body.racing[data-camera="cockpit"] #telemetry {
    left: 12px;
    width: 230px;
  }
}
#leaderboard {
  max-height: calc(100vh - 400px);
  overflow-y: auto;
  scrollbar-width: thin;
  pointer-events: auto;
}
#leaderboard button.standing {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #ffffff0a;
  border-radius: 0;
  padding: 6px 10px;
  color: inherit;
  font: inherit;
  text-align: left;
  letter-spacing: inherit;
}
#leaderboard .standing.viewed {
  background: #d6f66625;
  color: var(--lime);
  box-shadow: inset 2px 0 var(--lime);
}
#spectator {
  position: absolute;
  right: 28px;
  bottom: 310px;
  width: min(440px, calc(100vw - 56px));
  padding: 12px 15px;
  background: #071013e8;
  border-left: 2px solid var(--lime);
  font-size: 10px;
}
#spectator strong, #spectator > span, #spectator small {
  display: block;
}
#spectator > span { color: var(--lime); margin: 7px 0; }
#spectator button { padding: 8px; font-size: 9px; }
#spectator small { margin-top: 8px; color: var(--muted); line-height: 1.5; }
@media (max-width: 700px) {
  #spectator { right: 12px; bottom: 260px; width: min(360px, calc(100vw - 24px)); }
  body.spectating #weather-status { display: none; }
}
#pit-guidance {
  position: absolute;
  top: 220px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 60vw;
  padding: 10px 16px;
  border-left: 3px solid var(--accent);
  background: rgba(8, 17, 21, 0.88);
  color: #f1f5ed;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-align: center;
}
