:root {
  color-scheme: dark;
  --lime: #d5fa42;
  --dark: #111715;
  --muted: #a8b0a9;
  --border: #ffffff24;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #111715;
  color: #f5f7ef;
  font-family: Arial, Helvetica, sans-serif;
  overflow: hidden;
}
button,
select,
input {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}
button {
  border: 1px solid var(--border);
  background: #1b2420;
  color: inherit;
  border-radius: 6px;
  min-height: 42px;
  padding: 10px 15px;
}
button:hover {
  border-color: #d5fa4270;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
#game,
#vignette {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}
#vignette {
  pointer-events: none;
  background:
    linear-gradient(90deg, #08110de8 0%, #08110d72 48%, #08110d30),
    linear-gradient(0deg, #08110dc9, transparent 40%);
}
body.driving #vignette {
  background: linear-gradient(0deg, #07100b70, transparent 22%, transparent 75%, #07100b60);
}
header {
  height: 88px;
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 4vw;
  border-bottom: 1px solid var(--border);
  background: #11171560;
}
.brand {
  font-size: 32px;
  font-style: italic;
  letter-spacing: -2px;
  font-weight: 950;
  color: var(--lime);
  text-decoration: none;
  white-space: nowrap;
}
.brand span {
  font-size: 13px;
  letter-spacing: 3px;
  color: #fff;
  margin-left: 10px;
  font-style: normal;
}
.brand i {
  font-size: 12px;
  letter-spacing: 0;
  margin-left: 12px;
  vertical-align: top;
  border: 1px solid #d5fa4250;
  padding: 3px 5px;
}
.track-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
}
.track-title span {
  display: block;
  font-size: 12px;
  letter-spacing: 1.5px;
  color: #b8c3b5;
  margin-top: 7px;
}
.top-actions {
  display: flex;
  gap: 8px;
}
.top-actions button {
  font-size: 13px;
  background: #11171577;
  backdrop-filter: blur(8px);
}
#pause {
  display: none;
}
body.driving #pause {
  display: block;
}
main {
  position: relative;
  z-index: 2;
  height: calc(100dvh - 88px);
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 390px;
  gap: 20px 7vw;
  padding: 5vh 6vw 95px;
  overflow: auto;
}
.intro {
  align-self: center;
  max-width: 700px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #d5e2cc;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow span {
  width: 18px;
  height: 3px;
  background: var(--lime);
}
h1 {
  font-size: clamp(45px, 6.7vw, 108px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 950;
  margin: 28px 0 22px;
  font-style: italic;
}
h1 em {
  color: var(--lime);
}
.intro > p {
  font-size: 18px;
  color: #c8d0c7;
}
.track-spec {
  display: flex;
  gap: 35px;
  margin: 32px 0 10px;
}
.track-spec strong {
  display: block;
  font-size: 28px;
  font-weight: 600;
}
.track-spec span {
  font-size: 11px;
  letter-spacing: 1.3px;
  color: #b9c5b6;
  display: block;
  margin-top: 7px;
}
.track-preview {
  max-width: 330px;
}
.track-preview canvas {
  width: 100%;
  height: 125px;
}
.track-preview > span {
  display: block;
  font-size: 10px;
  letter-spacing: 1.8px;
  color: #a3b298;
}
.setup-panel {
  align-self: center;
  background: #101914ed;
  border: 1px solid #d0e1c328;
  backdrop-filter: blur(20px);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 25px 60px #0003;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #afbba6;
}
.tag {
  font-size: 10px;
  border: 1px solid #ffffff30;
  border-radius: 3px;
  padding: 5px;
  letter-spacing: 1px;
}
h2 {
  font-size: 25px;
  letter-spacing: -0.7px;
  font-weight: 500;
  margin: 15px 0 20px;
}
.preset-row {
  display: flex;
  gap: 8px;
}
.preset {
  flex: 1;
  text-align: left;
  padding: 13px 11px;
  background: #ffffff06;
  min-width: 0;
}
.preset b {
  display: block;
  font-size: 16px;
}
.preset span {
  font-size: 11px;
  display: block;
  margin-top: 6px;
  color: #bdc6b8;
}
.preset.active {
  background: #d5fa4214;
  border-color: var(--lime);
}
.preset.active b {
  color: var(--lime);
}
.setup-note {
  font-size: 13px;
  line-height: 1.5;
  min-height: 39px;
  color: #aab7a4;
  margin: 14px 0;
}
.field {
  display: block;
  font-size: 14px;
}
select {
  display: block;
  width: 100%;
  background: #202b23;
  border: 1px solid #ffffff29;
  padding: 10px;
  color: #e6ece1;
  border-radius: 5px;
  margin-top: 8px;
  font-size: 14px;
}
.range-heading {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin: 20px 0 9px;
}
.range-heading output {
  font-size: 13px;
  color: var(--lime);
}
input[type='range'] {
  width: 100%;
  accent-color: var(--lime);
  margin: 4px 0;
  cursor: pointer;
  height: 16px;
}
.muted {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  margin: 5px 0;
}
.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #aab7a4;
  margin-top: 4px;
}
.primary {
  width: 100%;
  margin-top: 23px;
  background: var(--lime);
  color: #111715;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 800;
  padding: 16px 18px;
  border: 0;
  letter-spacing: 1px;
  border-radius: 5px;
}
.primary:hover {
  background: #e1ff6a;
}
.primary span {
  font-size: 22px;
  line-height: 1;
}
.small-print {
  text-align: center;
  font-size: 11px;
  color: #a4b09e;
}
.text-button {
  background: none;
  border: 0;
  padding: 6px 0;
  font-size: 13px;
  min-height: 30px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #ffffff16;
  border-radius: 0;
  margin-top: 13px;
  padding-top: 12px;
}
.controls-guide {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  min-height: 64px;
  padding: 15px 4vw;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  border-top: 1px solid #ffffff20;
  background: #0e1712d9;
  font-size: 12px;
  color: #c2cbbd;
  flex-wrap: wrap;
}
.guide-title {
  font-size: 10px;
  letter-spacing: 2px;
  margin-right: 10px;
  color: #889580;
}
kbd {
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ffffff40;
  border-radius: 3px;
  width: 23px;
  height: 24px;
  margin-right: 4px;
  background: #ffffff05;
}
.mobile-guide {
  display: none;
}
#hud {
  position: fixed;
  inset: 88px 0 0;
  pointer-events: none;
}
#hud[hidden],
main[hidden] {
  display: none;
}
.timing {
  position: absolute;
  left: 4vw;
  top: 25px;
  width: 248px;
  background: #101914c9;
  border-left: 3px solid var(--lime);
  padding: 17px 20px;
  backdrop-filter: blur(8px);
}
.session-label {
  font-size: 11px;
  letter-spacing: 1.2px;
  color: var(--lime);
  display: flex;
  justify-content: space-between;
}
.session-label span {
  color: #bdc6b8;
  font-size: 10px;
}
#lapTime {
  display: block;
  font-size: 34px;
  font-weight: 500;
  margin: 12px 0 16px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
}
.time-row {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
  font-size: 12px;
  color: #adbaaa;
}
.time-row b {
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: #edf1e8;
}
.sectors {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  border-top: 1px solid #ffffff20;
  padding-top: 12px;
  margin-top: 12px;
  color: #a9bba2;
}
.map-box {
  position: absolute;
  right: 3vw;
  top: 15px;
  text-align: center;
}
.map-box canvas {
  width: 210px;
  height: 128px;
}
.map-box span {
  display: block;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #d3dfcf;
}
.bottom-left {
  position: absolute;
  left: 4vw;
  bottom: 65px;
}
.bottom-left > span {
  font-size: 12px;
  letter-spacing: 1.6px;
  color: var(--lime);
}
.conditions {
  display: flex;
  gap: 20px;
  margin-top: 14px;
  font-size: 10px;
  color: #c9d5c4;
}
.conditions b {
  display: block;
  font-size: 20px;
  color: white;
  font-weight: 400;
  margin-top: 5px;
  font-variant-numeric: tabular-nums;
}
.speedometer {
  position: absolute;
  right: 4vw;
  bottom: 58px;
  width: 205px;
}
.speed-number {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 9px;
}
.speed-number strong {
  font-size: 85px;
  line-height: 1;
  font-style: italic;
  font-weight: 600;
  letter-spacing: -5px;
  font-variant-numeric: tabular-nums;
}
.speed-number span {
  font-size: 11px;
  color: #b6c3b0;
}
.rpm {
  height: 4px;
  background: #ffffff35;
  margin: 12px 0;
}
.rpm > div {
  height: 100%;
  background: var(--lime);
  width: 0;
}
.pedal-readout {
  display: flex;
  gap: 15px;
  font-size: 10px;
}
.pedal-readout > span {
  flex: 1;
  display: flex;
  gap: 5px;
  align-items: center;
}
.pedal-readout i {
  display: block;
  flex: 1;
  height: 3px;
  background: #ffffff35;
}
.pedal-readout b {
  display: block;
  height: 100%;
  background: var(--lime);
  width: 0;
}
#brakeBar {
  background: #f58668;
}
.hint {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 11px;
  color: #c2cbbd;
  letter-spacing: 1px;
}
#toast {
  position: fixed;
  z-index: 8;
  top: 110px;
  left: 50%;
  transform: translate(-50%, -12px);
  background: #172219ed;
  border: 1px solid #d5fa4277;
  border-radius: 6px;
  padding: 13px 20px;
  max-width: 400px;
  width: max-content;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
dialog {
  background: #172019;
  color: #f5f7ef;
  border: 1px solid #ffffff30;
  border-radius: 12px;
  max-width: 650px;
  width: calc(100% - 30px);
  max-height: 85dvh;
  padding: 25px;
}
dialog::backdrop {
  background: #061008be;
  backdrop-filter: blur(8px);
}
.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dialog-top h2 {
  margin: 0;
}
.dialog-top button {
  border: 0;
  background: none;
  font-size: 20px;
}
dialog > p {
  color: #b6c3b0;
  font-size: 14px;
  line-height: 1.6;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 13px;
}
th,
td {
  text-align: left;
  padding: 12px 5px;
  border-bottom: 1px solid #ffffff18;
}
th {
  font-size: 11px;
  color: #a0b098;
  font-weight: 400;
}
td:nth-child(2) {
  font-variant-numeric: tabular-nums;
  color: var(--lime);
}
.empty {
  padding: 30px 10px;
  text-align: center;
  color: #c6d1c0;
}
#error {
  position: fixed;
  inset: 20%;
  z-index: 99;
  background: #172019;
  padding: 30px;
  border: 1px solid var(--lime);
}
#touchControls {
  display: none;
}
body.driving {
  touch-action: none;
  user-select: none;
}
.portrait-advice {
  display: none;
}
@media (max-height: 800px) and (min-width: 801px) {
  main {
    padding-top: 20px;
    padding-bottom: 80px;
  }
  .setup-panel {
    padding: 20px;
  }
  .setup-panel h2 {
    margin: 12px 0;
  }
  .range-heading {
    margin-top: 14px;
  }
  .primary {
    margin-top: 17px;
  }
  .track-preview canvas {
    height: 90px;
  }
  h1 {
    font-size: clamp(45px, 6.5vw, 88px);
    margin: 22px 0;
  }
  .track-spec {
    margin-top: 25px;
  }
}
@media (pointer: coarse) {
  .controls-guide > span:not(.guide-title):not(.mobile-guide) {
    display: none;
  }
  .mobile-guide {
    display: block;
  }
  #touchControls {
    display: block;
    pointer-events: auto;
    position: absolute;
    inset: 0;
    touch-action: none;
    pointer-events: none;
  }
  #wheelZone {
    position: absolute;
    bottom: 25px;
    left: 5vw;
    width: 150px;
    height: 170px;
    pointer-events: auto;
    text-align: center;
    touch-action: none;
  }
  #wheelZone > span {
    display: block;
    font-size: 9px;
    letter-spacing: 2px;
    color: #d7e0d0;
    margin-top: 10px;
  }
  #wheel {
    width: 150px;
    height: 150px;
    border: 10px solid #e9f0e4a6;
    border-radius: 50%;
    background: #10191433;
    position: relative;
    box-shadow:
      0 0 0 2px #10191480,
      inset 0 0 0 2px #10191480;
    transform: rotate(0deg);
  }
  .wheel-mark {
    position: absolute;
    width: 6px;
    height: 12px;
    top: -11px;
    left: 62px;
    background: var(--lime);
  }
  .spoke {
    position: absolute;
    background: #d6e1d1a0;
    height: 10px;
    width: 60px;
    top: 62px;
  }
  .spoke.left {
    left: 0;
    transform: rotate(15deg);
  }
  .spoke.right {
    right: 0;
    transform: rotate(-15deg);
  }
  .spoke.down {
    width: 10px;
    height: 62px;
    top: 67px;
    left: 61px;
  }
  .hub {
    position: absolute;
    left: 48px;
    top: 48px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #25301f;
    color: var(--lime);
    font-style: italic;
    font-size: 20px;
    font-weight: 800;
  }
  .pedals {
    position: absolute;
    right: 5vw;
    bottom: 35px;
    display: flex;
    align-items: flex-end;
    gap: 16px;
    pointer-events: auto;
  }
  .pedal {
    height: 130px;
    width: 66px;
    border: 1px solid #d2e2c66b;
    border-radius: 10px;
    background: #15211770;
    position: relative;
    overflow: hidden;
    touch-action: none;
  }
  .pedal > div {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background: #d5fa4260;
  }
  .pedal span {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 11px;
    letter-spacing: 1px;
  }
  .pedal.brake {
    height: 100px;
  }
  .pedal.brake > div {
    background: #ff745c70;
  }
  #resetTouch {
    height: 42px;
    min-width: 42px;
    padding: 5px;
    font-size: 24px;
    margin-bottom: 0;
    background: #15211770;
  }
  .speedometer {
    bottom: 200px;
    right: 5vw;
    width: 145px;
  }
  .speed-number strong {
    font-size: 58px;
  }
  .bottom-left {
    bottom: 210px;
    left: 5vw;
  }
  .hint {
    display: none;
  }
}
@media (max-width: 800px) {
  header {
    height: 65px;
    padding: 0 20px;
    gap: 10px;
  }
  .brand {
    font-size: 26px;
  }
  .brand span {
    font-size: 10px;
    margin-left: 6px;
  }
  .brand i,
  .track-title {
    display: none;
  }
  .top-actions {
    gap: 5px;
  }
  .top-actions button {
    font-size: 11px;
    min-height: 36px;
    padding: 7px 9px;
  }
  main {
    height: calc(100dvh - 65px);
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 30px 20px 100px;
  }
  .intro {
    width: 100%;
    align-self: auto;
  }
  .eyebrow {
    font-size: 10px;
  }
  h1 {
    font-size: 58px;
    max-width: 420px;
    margin: 22px 0 15px;
  }
  .intro > p {
    font-size: 16px;
  }
  .track-spec {
    gap: 35px;
    margin: 24px 0 0;
  }
  .track-spec strong {
    font-size: 22px;
  }
  .track-spec span {
    font-size: 9px;
  }
  .track-preview {
    display: none;
  }
  .setup-panel {
    width: 100%;
    max-width: 520px;
    padding: 22px;
    justify-self: center;
  }
  .controls-guide {
    position: relative;
    grid-column: 1;
    padding: 18px 0;
    background: none;
    border-top: 1px solid #ffffff20;
    font-size: 12px;
    gap: 10px;
    justify-content: flex-start;
    line-height: 1.5;
  }
  .guide-title {
    width: 100%;
  }
  #hud {
    top: 65px;
  }
  .timing {
    top: 15px;
    left: 20px;
    width: 200px;
    padding: 12px;
  }
  .session-label {
    font-size: 9px;
  }
  .session-label span {
    font-size: 9px;
  }
  #lapTime {
    font-size: 29px;
    margin: 10px 0;
  }
  .map-box {
    right: 10px;
    top: 15px;
  }
  .map-box canvas {
    width: 125px;
    height: 90px;
  }
  .map-box span {
    font-size: 8px;
  }
  .time-row {
    font-size: 11px;
  }
  .sectors {
    font-size: 9px;
  }
  .conditions {
    gap: 12px;
  }
  .conditions b {
    font-size: 17px;
  }
  .bottom-left > span {
    font-size: 10px;
  }
  #toast {
    top: 80px;
    max-width: 80%;
    font-size: 12px;
  }
  dialog {
    padding: 18px;
  }
  .speedometer {
    width: 145px;
  }
  .speed-number strong {
    font-size: 60px;
  }
}
@media (max-height: 520px) and (pointer: coarse) {
  header {
    height: 50px;
  }
  #hud {
    top: 50px;
  }
  .timing {
    top: 12px;
    left: 18px;
    width: 185px;
    padding: 10px;
  }
  #lapTime {
    font-size: 25px;
    margin: 8px 0;
  }
  .time-row {
    font-size: 10px;
    margin: 5px 0;
  }
  .sectors {
    padding-top: 7px;
    margin-top: 7px;
  }
  .map-box canvas {
    width: 130px;
    height: 85px;
  }
  .map-box {
    top: 4px;
    right: 16px;
  }
  #wheelZone {
    bottom: 10px;
    left: 4vw;
    width: 120px;
    height: 130px;
  }
  #wheel {
    width: 120px;
    height: 120px;
    border-width: 8px;
  }
  .wheel-mark {
    left: 47px;
    top: -8px;
  }
  .spoke {
    width: 47px;
    top: 49px;
    height: 8px;
  }
  .spoke.down {
    height: 47px;
    width: 8px;
    left: 49px;
    top: 53px;
  }
  .hub {
    left: 36px;
    top: 36px;
    width: 32px;
    height: 32px;
  }
  .pedals {
    bottom: 15px;
    right: 4vw;
    gap: 12px;
  }
  .pedal {
    height: 100px;
    width: 60px;
  }
  .pedal.brake {
    height: 80px;
  }
  .speedometer {
    right: calc(4vw + 185px);
    bottom: 25px;
    width: 110px;
  }
  .speed-number strong {
    font-size: 47px;
  }
  .speed-number span {
    font-size: 9px;
  }
  .pedal-readout {
    display: none;
  }
  .bottom-left {
    left: calc(4vw + 145px);
    bottom: 24px;
  }
  .conditions {
    gap: 10px;
    margin-top: 8px;
  }
  .conditions b {
    font-size: 16px;
  }
  .bottom-left > span {
    font-size: 9px;
  }
  #toast {
    top: 60px;
  }
}

/* Fase 2: delta ao vivo, cores de setor, fantasma e recordes */
.delta {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  margin: -10px 0 12px;
  color: #cfd8ca;
}
.delta.ahead {
  color: #6be38d;
}
.delta.behind {
  color: #ff9e8a;
}
.sectors span {
  padding: 2px 4px;
  border-radius: 3px;
  font-variant-numeric: tabular-nums;
}
.sectors span.purple {
  background: #8c4fe0;
  color: #fff;
}
.sectors span.green {
  background: #2f9e55;
  color: #fff;
}
.sectors span.yellow {
  background: #c9a227;
  color: #16140b;
}
.sectors span.invalid {
  text-decoration: line-through;
}
.sectors span.old {
  opacity: 0.55;
}
.toggle {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 18px 0 4px;
  font-size: 14px;
  color: #d6dfd0;
  cursor: pointer;
}
.toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--lime);
}
dialog .field select {
  width: 100%;
  min-height: 40px;
}
.ideal {
  color: var(--lime) !important;
  font-size: 13px !important;
  margin: 12px 0 0;
}
.rpm-readout {
  font-size: 10px;
  letter-spacing: 1px;
  color: #a9bba2;
  text-align: right;
  margin: -7px 0 9px;
}
.rpm-readout b {
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: #edf1e8;
}
#rpmFill.limit {
  background: #ff7a5c;
}
/* "RAT RACE" é mais largo: reduz a marca em telas estreitas para os botões caberem. */
@media (max-width: 440px) {
  .brand {
    font-size: 21px;
    letter-spacing: -1px;
  }
  .brand span {
    font-size: 11px;
    letter-spacing: 2px;
    margin-left: 6px;
  }
}

/* Modo corrida */
.mode-row {
  margin-bottom: 18px;
}
.race-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.race-options[hidden] {
  display: none;
}
.race-options .muted {
  grid-column: 1 / -1;
  margin: 0;
}
.race-position {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 10px;
}
.race-position[hidden] {
  display: none;
}
.race-position strong {
  font-size: 40px;
  font-style: italic;
  color: var(--lime);
  line-height: 1;
}
.race-position span {
  color: #bdc6b8;
  font-size: 14px;
}
.timing.race .sectors,
.timing.race .delta {
  display: none;
}
.standings {
  position: absolute;
  left: 4vw;
  top: 300px;
  width: 248px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #101914b3;
  backdrop-filter: blur(8px);
  font-size: 12px;
}
.standings[hidden] {
  display: none;
}
.standings li {
  display: grid;
  grid-template-columns: 26px 10px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 4px 14px;
  font-variant-numeric: tabular-nums;
}
.standings li.me {
  background: #d5fa4222;
  color: var(--lime);
}
.standings i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.standings small {
  color: #a9bba2;
  font-size: 11px;
}
.start-lights {
  position: absolute;
  left: 50%;
  top: 22%;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  padding: 14px 18px;
  background: #0b100dd9;
  border-radius: 10px;
}
.start-lights[hidden] {
  display: none;
}
.start-lights span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #2a302c;
  box-shadow: inset 0 0 0 2px #00000060;
}
.start-lights span.on {
  background: #ff3b2f;
  box-shadow: 0 0 18px #ff3b2f;
}
#results {
  max-width: 560px;
}
#results td:nth-child(2) {
  color: inherit;
}
#results tr.me td {
  color: var(--lime);
}
.result-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 8px;
}
@media (max-height: 520px), (max-width: 700px) {
  .standings {
    display: none;
  }
  .race-position strong {
    font-size: 28px;
  }
  .start-lights span {
    width: 24px;
    height: 24px;
  }
}
.session-label b {
  font-weight: inherit;
}
.result-actions .text-button {
  width: auto;
  border-top: 0;
  margin: 0;
  padding: 6px 0;
}
.result-actions .primary {
  flex: 1;
}
/* Celular deitado: cabeçalho compacto para a marca, o título e os botões caberem numa linha. */
@media (max-height: 520px) {
  .brand {
    font-size: 22px;
    letter-spacing: -1px;
  }
  .brand span {
    font-size: 11px;
    margin-left: 6px;
  }
  .brand i {
    display: none;
  }
  .track-title span {
    white-space: nowrap;
    font-size: 10px;
    margin-top: 4px;
  }
  .top-actions button {
    white-space: nowrap;
  }
}

/* Campeonato */
.mode-row .preset {
  padding: 11px 9px;
}
.mode-row .preset b {
  font-size: 14px;
}
.champ-status {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--lime);
  font-size: 13px;
}
#champHub {
  max-width: 620px;
}
#champHub h3 {
  font-size: 13px;
  letter-spacing: 1px;
  color: #a0b098;
  font-weight: 400;
  margin: 22px 0 0;
}
#champHub table {
  margin: 10px 0 18px;
}
#champHub td:nth-child(2) {
  color: inherit;
}
#champHub tr.me td {
  color: var(--lime);
}
.champ-calendar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}
.champ-calendar li {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 9px 10px;
  font-size: 12px;
  color: #bdc6b8;
}
.champ-calendar li b {
  display: block;
  color: #f5f7ef;
  font-size: 13px;
  margin-bottom: 4px;
}
.champ-calendar li.current {
  border-color: var(--lime);
  background: #d5fa4214;
}
.champ-calendar li.done {
  opacity: 0.7;
}
.text-button.danger {
  color: #ff9e8a;
  width: auto;
  border-top: 0;
  margin-top: 14px;
}
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
}
@media (max-width: 560px) {
  .champ-calendar {
    grid-template-columns: repeat(2, 1fr);
  }
}
#champHub th,
#champHub td {
  padding: 7px 5px;
}
#champHub table {
  margin: 6px 0 12px;
}
#champHub > p {
  margin: 8px 0 0;
}
.dot,
.standings i {
  box-shadow: 0 0 0 1px #ffffff55;
}
