.home-race {
  position: relative;
  padding-block: clamp(68px, 11vw, 128px) clamp(36px, 8vw, 86px);
}

.home-race::before {
  position: absolute;
  inset: 20px 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, #79b1c655 24%, #79b1c655 76%, transparent);
  content: "";
}

.home-race__title {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 14px;
  color: var(--cream);
  font: 800 clamp(2.4rem, 7vw, 5rem)/1.02 Manrope, sans-serif;
  letter-spacing: -.065em;
}

.home-race__title span { color: var(--cyan); }

.home-race__teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #48636b;
  border-radius: 13px;
  background: #132b36;
}

.home-race :is(.home-race__teaser, .home-race__lobby)[hidden] { display: none; }

.home-race__copy {
  align-self: center;
  padding: clamp(18px, 4vw, 42px);
}

.home-race__copy p {
  max-width: 29ch;
  margin: 0 0 14px;
  color: var(--cream);
  font: 680 clamp(1rem, 1.8vw, 1.22rem)/1.45 Manrope, sans-serif;
}

.home-race__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 14px;
}

.home-race__actions .gd-toon-button { min-height: 49px; max-width: 100%; }
.home-race__actions .gd-toon-button__face { min-height: 45px; padding: 8px 14px; }

.home-race__fallback {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--cream);
  font-size: .875rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.home-race__fallback:hover { color: var(--cyan); }
.home-race__fallback:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.home-race__title:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.home-race__art {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  object-position: center;
  border-left: 1px solid #53767c;
}

.home-race__status {
  margin: 8px 0 0;
  color: var(--cream);
  font-size: .875rem;
}

.home-race__status:empty { margin: 0; }
.home-race__lobby > .gd-racing { padding: 14px 0 0; }
.home-race .gd-racing__preview { aspect-ratio: 32 / 9; }

[data-home-header] .nav-links a svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  margin-left: 6px;
  stroke: currentColor;
  stroke-width: 1.75;
}

@media (max-width: 900px) {
  [data-home-header] .nav-links {
    max-height: calc(100dvh - var(--gd-header-height, 64px) - 1px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

@media (max-width: 540px) {
  .home-race__teaser { grid-template-columns: 1fr; }
  .home-race__art {
    order: -1;
    min-height: 0;
    height: auto;
    aspect-ratio: 480 / 250;
    border: 0;
    border-bottom: 1px solid #53767c;
  }
}
