.speedometer {
  position: absolute;
  right: 26px;
  bottom: 116px;
  width: 158px;
  pointer-events: none;
  filter: drop-shadow(0 6px 10px #0008);
  color: #edf9ff;
}
.speedometer svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
  stroke: none;
}
.speed-display {
  position: absolute;
  inset: 49px 32px auto;
  text-align: center;
  background: radial-gradient(ellipse, #091a28 55%, transparent 72%);
}
.speed-display strong {
  display: block;
  font: 900 35px/0.95 var(--display);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px #000;
}
.speed-display span {
  font:
    700 11px "Barlow",
    sans-serif;
  letter-spacing: 1px;
  color: #b4cfde;
}
.stunt-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 5px 8px;
  border: 1px solid #70808a;
  border-radius: 5px;
  background: linear-gradient(#203345, #091522);
  font: 700 9px var(--display);
  letter-spacing: 0.5px;
}
.stunt-total b {
  font-size: 17px;
  color: #ffdf86;
  white-space: nowrap;
}
.speedometer.boosting {
  filter: drop-shadow(0 0 12px #37d8f780);
}
.speedometer.boosting .speed-display strong {
  color: #81f3ff;
}
.racereminder {
  font-size: 14px;
  padding: 10px 17px;
  white-space: normal;
  max-width: 54vw;
  border: 1px solid #8aa7b160;
  border-radius: 8px;
  background: linear-gradient(135deg, #0d2539ee, #091622e8);
  box-shadow: 0 4px 15px #0004;
  line-height: 1.2;
}
.racereminder strong {
  display: block;
  font: 800 16px/1.15 var(--display);
  letter-spacing: 0.5px;
}
.racereminder span {
  display: block;
  margin-top: 5px;
  font:
    700 11px/1.3 "Barlow",
    sans-serif;
  letter-spacing: 0.65px;
  color: #c9dbe7;
}
.racereminder span:empty {
  display: none;
}
.racereminder.stunt-active {
  border: 2px solid #ffe09a;
  background: radial-gradient(ellipse at top, #755123ee, #092034f5 85%);
  box-shadow:
    0 0 25px #ffb62940,
    inset 0 1px #ffedb5;
}
.racereminder.stunt-active strong {
  font-size: 28px;
  color: #ffe499;
  text-shadow: 0 3px #4d250c;
}
.racereminder.crash-active {
  border: 2px solid #ffb183;
  background: linear-gradient(#78331de8, #281821ed);
  box-shadow: 0 0 20px #ff5d293f;
}
.racereminder.crash-active strong {
  font-size: 32px;
  color: #ffe0b9;
}
.racereminder.pad-active strong {
  font-size: 24px;
  color: #acfbff;
}
.stunt-summary {
  padding: 10px;
  border: 1px solid #d8b76570;
  border-radius: 7px;
  background: #76501b24;
  color: #ffe1a0 !important;
}
.stunt-summary small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #bfcbd0;
}
@media (max-width: 600px) and (orientation: portrait) {
  .speedometer {
    right: 14px;
    bottom: 112px;
    width: 119px;
  }
  .speed-display {
    inset: 37px 23px auto;
  }
  .speed-display strong {
    font-size: 27px;
  }
  .speed-display span {
    font-size: 9px;
  }
  .stunt-total {
    font-size: 8px;
    padding: 4px 5px;
    gap: 4px;
  }
  .stunt-total b {
    font-size: 14px;
  }
  .racereminder {
    max-width: 92vw;
    width: max-content;
    padding: 9px 12px;
  }
  .racereminder strong {
    font-size: 14px;
  }
  .racereminder.stunt-active strong {
    font-size: 23px;
  }
  .racereminder.pad-active strong {
    font-size: 21px;
  }
  .racereminder span {
    font-size: 10px;
  }
}
@media (max-height: 500px) and (orientation: landscape) {
  .speedometer {
    width: 112px;
    right: 18px;
    bottom: 94px;
  }
  .speed-display {
    inset: 35px 23px auto;
  }
  .speed-display strong {
    font-size: 24px;
  }
  .speed-display span {
    font-size: 8px;
  }
  .stunt-total {
    font-size: 7px;
    padding: 3px 5px;
  }
  .stunt-total b {
    font-size: 12px;
  }
  .racereminder {
    max-width: 50vw;
    padding: 7px 12px;
  }
  .racereminder strong {
    font-size: 12px;
  }
  .racereminder.stunt-active strong {
    font-size: 21px;
  }
  .racereminder.pad-active strong {
    font-size: 18px;
  }
  .racereminder.crash-active strong {
    font-size: 24px;
  }
  .racereminder span {
    font-size: 9px;
  }
}
