:root {
  color-scheme: dark;
  --ink: #14211d;
  --paper: #eef0e5;
  --muted: #aebbb6;
  --lime: #d8ff63;
  --panel: rgba(17, 29, 31, 0.95);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
  background: #1c2c30;
  color: var(--paper);
  font-size: 14px;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
select,
input {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
  color: inherit;
  background: none;
}
button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}
button {
  transition:
    background 0.16s,
    transform 0.16s;
}
button:hover {
  background: rgba(255, 255, 255, 0.1);
}
button:active {
  transform: translateY(1px);
}
a {
  color: inherit;
  text-decoration: none;
}
button svg {
  flex-shrink: 0;
}
kbd {
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 6px;
  border: 1px solid #a9b8af44;
  border-radius: 4px;
  white-space: nowrap;
  color: #d2d9cd;
}
#game {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
#app {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    #071a2980,
    transparent 22%,
    transparent 65%,
    #0a191e9c
  );
}
#app button,
#app a,
#app select,
#app input,
#panel-root {
  pointer-events: auto;
}
[hidden] {
  display: none !important;
}
.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  z-index: 10;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  letter-spacing: -2px;
  font-weight: 950;
  background: var(--lime);
  color: #18221c;
  width: 45px;
  height: 45px;
  border-radius: 10px;
  position: relative;
  transform: skew(-5deg);
}
.brand-mark span {
  font-size: 13px;
  position: absolute;
  right: 4px;
  top: 4px;
  letter-spacing: 0;
}
.wordmark {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.wordmark small {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 2.2px;
  color: #d2d9cf;
}
.wordmark b {
  font-size: 17px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.wordmark b span {
  color: var(--lime);
}
nav {
  display: flex;
  gap: 7px;
  padding: 5px;
  background: #16282c70;
  border: 1px solid #c3d9d31c;
  border-radius: 10px;
  backdrop-filter: blur(12px);
}
nav button {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 9px 12px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
}
nav svg {
  width: 17px;
}
.top-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.session-status {
  font-size: 9px;
  letter-spacing: 1.2px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.session-status i,
.map-footer i {
  width: 5px;
  height: 5px;
  background: var(--lime);
  border-radius: 50%;
}
.icon-button {
  border-radius: 7px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: #14252b50;
  border: 1px solid #c9dbd521;
}
.location {
  position: absolute;
  left: 34px;
  top: 112px;
}
.tiny,
.eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: #bac7bd;
}
.location .tiny {
  color: var(--lime);
  font-size: 8px;
}
.location > div {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.location svg {
  width: 15px;
}
.location #district {
  font-size: 15px;
  font-weight: 600;
}
.weather-dot {
  margin-left: 10px;
  font-size: 16px;
  color: #f1d9aa;
}
.location small {
  font-size: 8px;
  letter-spacing: 1px;
  color: #c4cdc5;
}
.welcome {
  position: absolute;
  left: 5.5%;
  top: 27%;
  transition:
    opacity 0.6s,
    transform 0.6s;
  text-shadow: 0 2px 20px #12222040;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
}
.welcome .eyebrow {
  color: var(--lime);
}
.welcome .eyebrow span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--lime);
}
h1 {
  font-size: clamp(40px, 4.3vw, 70px);
  font-weight: 800;
  letter-spacing: -3px;
  line-height: 1.04;
  margin: 22px 0;
}
.welcome h1 span {
  color: var(--lime);
}
.welcome p {
  line-height: 1.8;
  font-size: 13px;
  color: #e0e6db;
  margin: 0 0 25px;
}
.primary {
  background: var(--lime);
  color: #243020;
  padding: 16px 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.7px;
}
.primary:hover {
  background: #e5ff97;
}
.primary svg {
  width: 18px;
}
.welcome > small {
  display: block;
  margin-top: 20px;
  font-size: 10px;
  color: #d4decf;
}
.welcome > small kbd {
  font-size: 8px;
  padding: 3px 5px;
}
.dismissed {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}
.dismissed button {
  pointer-events: none !important;
}
.discovery-card {
  position: absolute;
  right: 32px;
  top: 125px;
  width: 262px;
  background: linear-gradient(130deg, #1c3033dc, #162729bf);
  backdrop-filter: blur(16px);
  border: 1px solid #b8d4c926;
  border-radius: 10px;
  padding: 17px;
}
.discovery-card .eyebrow {
  font-size: 8px;
  justify-content: space-between;
  color: #aebfb2;
  letter-spacing: 1.3px;
}
.discovery-card .eyebrow svg {
  width: 12px;
  height: 12px;
}
.activity-title {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 21px 0;
}
.event-icon {
  width: 34px;
  height: 38px;
  color: var(--lime);
  background: #d8ff6310;
  border-radius: 6px;
  display: grid;
  place-items: center;
}
.activity-title h3 {
  font-size: 13px;
  margin: 0 0 6px;
}
.activity-title p {
  font-size: 10px;
  color: #a3b6ab;
  margin: 0;
}
.activity-title p span {
  padding: 0 4px;
}
.activity-footer {
  border-top: 1px solid #d3e0d51c;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  color: #bfcbbf;
}
.activity-footer button {
  color: var(--lime);
  font-size: 8px;
  letter-spacing: 0.5px;
  font-weight: 700;
  padding: 5px;
}
.bottom-left {
  position: absolute;
  left: 32px;
  bottom: 47px;
}
.minimap-shell {
  width: 218px;
  height: 181px;
  border: 1px solid #bbcabc40;
  background: #18292d;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  padding: 0;
  box-shadow: 0 8px 30px #07141433;
}
#minimap {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.95;
}
.map-north {
  position: absolute;
  top: 9px;
  left: 10px;
  font-size: 8px;
  background: #172c28c7;
  border: 1px solid #b7c6b340;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
}
.map-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 12px;
  background: linear-gradient(transparent, #152c2cee);
  font-size: 8px;
  letter-spacing: 1.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.map-caption kbd {
  font-size: 7px;
}
.map-footer {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 1.1px;
  margin-top: 10px;
  color: #c3cbb9;
}
.vehicle-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  background: transparent;
  color: inherit;
  border: 0;
  border-radius: 0;
  font: inherit;
  white-space: nowrap;
  pointer-events: auto;
}
.walking-card {
  position: absolute;
  right: 28px;
  bottom: 48px;
  width: 250px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #38274de8;
  border: 1px solid #aa91c077;
  border-radius: 16px;
  color: #fff0da;
}
.walking-card b {
  font-size: 22px;
  overflow-wrap: anywhere;
}
.walking-card small {
  font-size: 10px;
  color: #d2c2dc;
}
.walking-card span {
  font-size: 12px;
}
@media (max-width: 1000px) {
  .walking-card {
    width: 190px;
    padding: 14px;
    right: 16px;
    bottom: 135px;
  }
  .walking-card b {
    font-size: 18px;
  }
}
.on-foot .speedometer,
.on-foot .quick-race,
.on-foot .discovery-card {
  display: none;
}
.bottom-center {
  position: absolute;
  bottom: 43px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.control-strip {
  display: flex;
  gap: 15px;
  color: #c2cdbf;
  font-size: 9px;
}
.control-strip span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.control-strip kbd {
  font-size: 8px;
  background: #17272938;
}
.quick-race {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 12px 16px;
  background: #192e30cc;
  border: 1px solid #ccd8bd45;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  backdrop-filter: blur(8px);
}
.quick-race kbd {
  color: var(--lime);
  border-color: #d8ff6350;
}
.quick-race svg {
  width: 16px;
}
.speedometer {
  position: absolute;
  right: 34px;
  bottom: 48px;
  width: 235px;
}
.vehicle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  letter-spacing: 1px;
}
.vehicle-label > span {
  background: var(--paper);
  color: #24302c;
  border-radius: 3px;
  padding: 3px 5px;
  font-size: 10px;
  font-weight: 900;
}
.vehicle-label b {
  font-weight: 600;
  color: #d3ddca;
}
.speed-row {
  display: flex;
  align-items: center;
  gap: 13px;
  justify-content: space-between;
  margin-top: 4px;
}
.speed-row > span {
  font-size: 23px;
  font-weight: 600;
  color: var(--lime);
  min-width: 17px;
}
.speed-row strong {
  font-size: 76px;
  font-weight: 300;
  font-style: italic;
  letter-spacing: -7px;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}
.speed-row > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 0 8px;
}
.speed-row > div > span {
  font-size: 11px;
  letter-spacing: 1.3px;
}
.speed-row small {
  font-size: 7px;
  letter-spacing: 0.8px;
  color: #c3cdb7;
}
.speed-row small b {
  font-size: 9px;
  color: var(--lime);
}
.rpm {
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    #d4dfce35 0,
    #d4dfce35 8px,
    transparent 8px,
    transparent 11px
  );
  overflow: hidden;
  transform: skew(-18deg);
  margin-top: 2px;
}
.rpm i {
  display: block;
  height: 100%;
  background: var(--lime);
}
.boost-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--lime);
}
.boost-row > svg {
  width: 11px;
  height: 14px;
}
.boost-row > div {
  height: 3px;
  flex: 1;
  background: #d7e1d52b;
}
.boost-row i {
  height: 100%;
  display: block;
  background: var(--lime);
}
.boost-row small {
  font-size: 7px;
  letter-spacing: 1px;
  margin-left: 5px;
}
.build-tag {
  position: absolute;
  right: 34px;
  bottom: 15px;
  color: #a5baae88;
  font-size: 7px;
  letter-spacing: 1.1px;
}
.panel-backdrop {
  position: fixed;
  inset: 0;
  background: #09191ba8;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 95px 30px 30px;
  z-index: 30;
}
.panel {
  width: 480px;
  max-height: 100%;
  overflow: auto;
  background: var(--panel);
  border: 1px solid #cfe4d828;
  border-radius: 16px;
  padding: 28px 30px;
  box-shadow: 0 25px 90px #05131270;
  scrollbar-width: thin;
  scrollbar-color: #6a786c transparent;
}
.panel.wide {
  width: min(1050px, 95vw);
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.panel-heading .eyebrow {
  font-size: 8px;
  color: var(--lime);
}
.panel-heading h2 {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -1px;
  margin: 10px 0 0;
}
.panel-heading h2 span {
  color: var(--lime);
}
.close {
  background: #ffffff08;
  flex-shrink: 0;
}
.panel-intro {
  font-size: 12px;
  color: #b7c7bb;
  line-height: 1.8;
  margin-bottom: 23px;
}
.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.event-card {
  padding: 18px;
  border: 1px solid #bacebe24;
  border-radius: 8px;
  background: linear-gradient(135deg, #73846f10, #11202333);
  border-top: 2px solid var(--event);
}
.event-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 7px;
  color: var(--event);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.event-card-top span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.event-card-top svg {
  width: 13px;
  height: 13px;
}
.event-card-top small {
  color: #acb9ad;
  font-weight: 400;
  font-size: 8px;
}
.event-card h3 {
  font-size: 18px;
  letter-spacing: -0.5px;
  margin: 23px 0 8px;
}
.event-card p {
  font-size: 10px;
  line-height: 1.7;
  color: #adbdaf;
  min-height: 36px;
}
.event-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 8px;
  color: #bdcdbb;
  margin: 20px 0 14px;
}
.event-meta span:last-child {
  font-size: 7px;
  color: #8fa893;
}
.event-actions {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #b8c9b51e;
  padding-top: 10px;
}
.event-actions button {
  padding: 6px;
  font-size: 9px;
  color: var(--event);
  display: flex;
  gap: 10px;
  align-items: center;
}
.event-actions svg {
  width: 13px;
}
.garage-panel.panel-backdrop {
  background: linear-gradient(90deg, transparent 25%, #0c20204d 65%, #0c2020a8);
  backdrop-filter: none;
  justify-content: flex-end;
  padding-top: 95px;
}
.panel.garage-panel {
  width: 440px;
  max-height: 100%;
  padding: 25px;
}
.garage-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #c5d2c2;
}
.garage-caption small {
  margin-left: auto;
  font-size: 6px;
  letter-spacing: 0.7px;
}
.class-badge {
  color: #172019;
  background: var(--lime);
  padding: 3px 5px;
  border-radius: 3px;
  font-weight: 800;
}
.car-title {
  font-size: 11px;
  letter-spacing: 3px;
  font-weight: 400;
  margin: 22px 0;
}
.car-title strong {
  display: block;
  font-size: 35px;
  letter-spacing: -1px;
  margin-top: 3px;
}
.stats-bars {
  display: grid;
  gap: 11px;
  margin-bottom: 22px;
}
.stats-bars > div {
  display: grid;
  grid-template-columns: 90px 45px 1fr;
  align-items: center;
  gap: 12px;
  font-size: 9px;
}
.stats-bars span {
  color: #bacab9;
}
.stats-bars b {
  font-size: 9px;
  font-weight: 500;
}
.stats-bars i {
  display: block;
  height: 3px;
  background: #d2dbcd22;
}
.stats-bars em {
  display: block;
  height: 100%;
  background: var(--lime);
}
.paint-label {
  font-size: 8px;
  letter-spacing: 1px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 11px;
}
.paint-label span {
  color: #9db5a2;
  font-size: 8px;
  letter-spacing: 0;
}
.swatches {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
}
.swatch {
  background: var(--paint);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid #23342c;
}
.swatch:hover {
  background: var(--paint);
  transform: scale(1.12);
}
.swatch.selected {
  outline: 1px solid var(--paper);
  outline-offset: 2px;
}
.car-list {
  max-height: 212px;
  overflow-y: auto;
  scrollbar-width: thin;
  display: grid;
  gap: 5px;
}
.car-option {
  width: 100%;
  text-align: left;
  padding: 9px 10px;
  border: 1px solid #c1d3ba19;
  border-radius: 5px;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 10px;
}
.car-option.active {
  background: #d8ff6310;
  border-color: #d8ff6350;
}
.car-option > span:nth-child(2) {
  flex: 1;
}
.car-option > span:last-child {
  font-size: 7px;
  color: var(--lime);
}
.car-option small {
  display: block;
  font-size: 8px;
  color: #9cb09e;
  margin-top: 4px;
}
.class-mini {
  font-size: 10px;
  border: 1px solid #bbcab343;
  padding: 4px 6px;
  border-radius: 3px;
}
.fine-print {
  font-size: 10px;
  line-height: 1.75;
  color: #99afa3;
  margin: 20px 0;
}
.full {
  width: 100%;
}
.secondary {
  border: 1px solid #c9d9c735;
  padding: 14px 20px;
  border-radius: 6px;
  font-size: 11px;
}
.secondary.full {
  margin-top: 10px;
}
.setting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid #bccdb51b;
  font-size: 12px;
}
.setting select {
  background: #243a36;
  border: 1px solid #b3c6b32a;
  color: #e1eadb;
  padding: 9px 12px;
  border-radius: 5px;
  font-size: 11px;
  max-width: 220px;
}
.setting input {
  accent-color: var(--lime);
  width: 150px;
}
.setting input[type="checkbox"] {
  width: 18px;
  height: 18px;
}
.key-guide {
  margin: 22px 0 27px;
}
.key-guide h3 {
  font-size: 12px;
  margin-bottom: 18px;
}
.key-guide p {
  font-size: 10px;
  line-height: 1.7;
  color: #a8beac;
}
.key-guide kbd {
  margin-right: 6px;
  font-size: 8px;
}
.world-map-wrap {
  height: min(58vh, 600px);
  position: relative;
  border: 1px solid #cadaaf23;
  border-radius: 8px;
  overflow: hidden;
}
.world-map-wrap canvas {
  width: 100%;
  height: 100%;
  cursor: crosshair;
}
.map-help {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8px;
  letter-spacing: 1px;
  white-space: nowrap;
  background: #172d29da;
  padding: 10px 15px;
  border: 1px solid #bccdad21;
  border-radius: 4px;
  pointer-events: none;
}
.map-legend {
  display: flex;
  gap: 23px;
  margin-top: 17px;
  font-size: 10px;
  align-items: center;
}
.map-legend span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.map-legend i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.map-legend button {
  margin-left: auto;
  color: #b9cdb5;
  font-size: 10px;
}
.race-hud {
  position: absolute;
  top: 195px;
  left: 34px;
  padding: 18px 22px;
  background: #15292bd1;
  border: 1px solid #c5d9bf22;
  border-radius: 9px;
  backdrop-filter: blur(12px);
}
.race-hud .eyebrow {
  color: var(--lime);
  font-size: 8px;
}
.race-hud > div {
  display: flex;
  gap: 25px;
  align-items: center;
  margin-top: 12px;
}
.race-hud strong {
  font-size: 30px;
  font-weight: 500;
}
.race-hud strong small {
  font-size: 13px;
  color: #a2b5a1;
}
.race-hud > div > span {
  font-size: 7px;
  letter-spacing: 1px;
  color: #adbfaa;
}
.race-hud > div > span b {
  display: block;
  color: var(--paper);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  margin-top: 7px;
  font-variant-numeric: tabular-nums;
}
.countdown {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 130px;
  font-weight: 900;
  font-style: italic;
  color: var(--lime);
  text-shadow: 0 8px 40px #071e1c80;
}
.event-prompt {
  position: absolute;
  left: 50%;
  bottom: 200px;
  transform: translateX(-50%);
  padding: 14px 22px;
  display: flex;
  gap: 16px;
  align-items: center;
  border: 1px solid #dbfdb248;
  border-radius: 8px;
  background: #182e29da;
  backdrop-filter: blur(10px);
}
.event-prompt > span {
  font-size: 7px;
  letter-spacing: 1px;
  color: #bad0b4;
}
.event-prompt b {
  display: block;
  font-size: 13px;
  letter-spacing: 0;
  margin-top: 5px;
  color: #f0f3e6;
}
.event-prompt svg {
  color: var(--lime);
  margin-left: 12px;
}
.waypoint {
  position: absolute;
  top: 110px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  letter-spacing: 1px;
  color: #edc7f1;
  padding: 10px 18px;
  border: 1px solid #e5b7ea33;
  border-radius: 20px;
  background: #253137b3;
}
.drift-hud {
  position: absolute;
  top: 26%;
  right: 38px;
  text-align: right;
  color: var(--lime);
}
.drift-hud > span {
  font-size: 9px;
  letter-spacing: 2px;
}
.drift-hud b {
  display: block;
  font-size: 45px;
  font-weight: 600;
  font-style: italic;
}
.drift-hud small {
  font-size: 18px;
}
.result-hero {
  text-align: center;
  padding: 0 0 20px;
}
.result-hero strong {
  display: block;
  color: var(--lime);
  font-size: 90px;
  letter-spacing: -6px;
  font-style: italic;
}
.result-hero span {
  font-size: 8px;
  letter-spacing: 2px;
  color: #bfd0b4;
}
.results-panel > h3 {
  text-align: center;
  font-size: 18px;
}
.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 20px 0;
  border-block: 1px solid #bfcead24;
}
.result-grid small {
  display: block;
  font-size: 7px;
  letter-spacing: 1px;
  color: #a4b69b;
  margin-bottom: 6px;
}
.result-grid b {
  font-size: 17px;
  font-weight: 500;
}
.button-pair {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.button-pair button {
  flex: 1;
}
.social-orb {
  display: grid;
  place-items: center;
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: #d8ff6310;
  color: var(--lime);
  margin: 25px auto;
}
.social-orb svg {
  width: 32px;
  height: 32px;
}
.connection-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  font-size: 9px;
  padding: 20px 0;
  margin-bottom: 15px;
}
.connection-details > span {
  color: #a9c0a9;
}
.connection-details > b {
  text-align: right;
  font-weight: 500;
}
.social-orb + h3 {
  text-align: center;
}
#toast {
  position: absolute;
  bottom: 130px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  transition: 0.2s;
  background: #152d27ed;
  border: 1px solid #daf7b955;
  border-radius: 7px;
  padding: 14px 22px;
  font-size: 12px;
  z-index: 100;
  max-width: 90vw;
  text-align: center;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
#telemetry {
  position: absolute;
  top: 86px;
  left: 50%;
  transform: translateX(-50%);
  background: #152421cf;
  padding: 7px;
  font-family: monospace;
  font-size: 10px;
  color: var(--lime);
  white-space: nowrap;
}
.menu-open #hud {
  opacity: 0.3;
}
.menu-open .topbar {
  opacity: 0.45;
}
#loading {
  position: fixed;
  inset: 0;
  background: #142b2c;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s;
}
#loading p {
  font-size: 9px;
  letter-spacing: 4px;
  margin-top: 25px;
}
#loading h1 {
  font-size: clamp(35px, 6vw, 72px);
  font-style: italic;
  letter-spacing: -3px;
  margin-top: 10px;
}
#loading h1 span {
  color: var(--lime);
}
#loading small {
  font-size: 10px;
  color: #a3bdae;
  margin-top: 20px;
}
.loading-track {
  width: 180px;
  height: 2px;
  background: #d5e0c625;
  margin-top: 20px;
  overflow: hidden;
}
.loading-track i {
  display: block;
  height: 100%;
  width: 70%;
  background: var(--lime);
  animation: load 1.2s infinite ease-in-out;
}
@keyframes load {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(160%);
  }
}
@media (max-width: 1000px) {
  .topbar {
    padding: 18px 22px;
    gap: 15px;
  }
  .wordmark b {
    font-size: 14px;
  }
  .wordmark small {
    font-size: 7px;
  }
  .top-right {
    gap: 7px;
  }
  .session-status {
    font-size: 7px;
  }
  .topbar nav button {
    padding: 8px;
  }
  .topbar nav kbd {
    display: none;
  }
  .control-strip {
    gap: 8px;
    font-size: 8px;
  }
  .control-strip > span:last-child {
    display: none;
  }
  .speedometer {
    width: 195px;
    right: 24px;
  }
  .speed-row strong {
    font-size: 65px;
  }
  .minimap-shell {
    width: 180px;
    height: 150px;
  }
  .bottom-left {
    left: 24px;
  }
  .event-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .discovery-card {
    right: 24px;
    width: 230px;
  }
  .welcome {
    left: 5%;
    top: 28%;
  }
  .welcome h1 {
    font-size: 49px;
  }
  .welcome p {
    font-size: 12px;
  }
  .welcome small {
    font-size: 8px;
  }
}
@media (max-height: 750px) {
  .welcome {
    top: 25%;
  }
  .welcome h1 {
    font-size: 46px;
    margin: 17px 0;
  }
  .welcome p {
    margin-bottom: 18px;
  }
  .welcome > small {
    margin-top: 14px;
  }
  .discovery-card {
    top: 110px;
  }
  .minimap-shell {
    height: 145px;
    width: 185px;
  }
  .bottom-left,
  .speedometer {
    bottom: 35px;
  }
  .bottom-center {
    bottom: 30px;
  }
  .panel-backdrop {
    padding-top: 85px;
  }
  .garage-panel.panel-backdrop {
    padding-top: 85px;
  }
  .car-list {
    max-height: 140px;
  }
}
@media (max-width: 700px) {
  .wordmark {
    display: none;
  }
  .session-status {
    display: none;
  }
  nav button span {
    display: none;
  }
  .topbar {
    padding: 14px 16px;
  }
  .discovery-card {
    display: none;
  }
  .location {
    left: 19px;
    top: 90px;
  }
  .welcome {
    top: 25%;
  }
  .welcome h1 {
    font-size: 42px;
  }
  .control-strip {
    display: flex;
    position: absolute;
    bottom: 130px;
    width: max-content;
    max-width: 90vw;
    flex-wrap: wrap;
    justify-content: center;
  }
  .bottom-center {
    bottom: 27px;
  }
  .quick-race {
    gap: 8px;
    font-size: 8px;
    padding: 9px;
  }
  .minimap-shell {
    width: 135px;
    height: 120px;
  }
  .bottom-left {
    left: 16px;
    bottom: 30px;
  }
  .map-footer {
    display: none;
  }
  .speedometer {
    right: 18px;
    bottom: 35px;
    width: 150px;
  }
  .speed-row strong {
    font-size: 47px;
    letter-spacing: -4px;
  }
  .speed-row {
    gap: 5px;
  }
  .speed-row > span {
    font-size: 17px;
  }
  .speed-row > div {
    margin-left: 3px;
  }
  .vehicle-label {
    font-size: 7px;
    letter-spacing: 0;
  }
  .vehicle-label > span {
    font-size: 8px;
  }
  .speed-row > div > span {
    font-size: 8px;
  }
  .speed-row small {
    display: none;
  }
  .event-grid {
    grid-template-columns: 1fr;
  }
  .panel-backdrop {
    padding: 85px 12px 16px;
  }
  .panel {
    padding: 22px;
  }
  .panel-heading h2 {
    font-size: 25px;
  }
  .race-hud {
    top: 145px;
    left: 18px;
    padding: 14px;
  }
  .race-hud > div {
    gap: 13px;
  }
  .race-hud strong {
    font-size: 23px;
  }
  .race-hud > div > span b {
    font-size: 13px;
  }
  .event-prompt {
    bottom: 170px;
    white-space: nowrap;
  }
  .build-tag {
    font-size: 5px;
    bottom: 10px;
    right: 18px;
  }
  .map-legend {
    gap: 12px;
    font-size: 8px;
  }
  .waypoint {
    top: 145px;
    font-size: 8px;
  }
  .garage-panel.panel-backdrop {
    padding: 85px 12px 16px;
    background: #13292c88;
  }
  .panel.garage-panel {
    width: 100%;
  }
}
