/* Circuit lettering is shared by the selection cards and the starting grid. */
.circuit-logo {
  display:inline-block;
  position:relative;
  width:fit-content;
  font-family:"Arial Black","Avenir Next",system-ui,sans-serif;
  font-weight:950;
  font-style:italic;
  line-height:1;
  letter-spacing:-.045em;
  text-transform:uppercase;
}
.circuit-logo.caldera {color:#ff9867;text-shadow:.025em .035em 0 #923f35}
.circuit-logo.marea {color:#a5efd5;padding-bottom:.11em}
.circuit-logo.marea::after {
  content:"";
  position:absolute;
  bottom:0;
  left:8%;
  width:70%;
  height:.115em;
  background:currentColor;
  clip-path:polygon(0 80%,13% 34%,29% 10%,44% 21%,63% 57%,78% 64%,100% 30%,89% 72%,75% 100%,60% 90%,42% 53%,29% 43%,15% 50%);
}
.circuit-logo.varco {color:#d1a2ff;text-shadow:.028em .04em 0 #754d92}

.race-screen .topbar .wordmark img {display:block;width:28px;height:28px;border-radius:6px}
.race-screen .circuit-back {color:var(--cream);font:700 15px/1.1 system-ui,sans-serif;text-decoration:none;padding:10px 0}
.race-screen .circuit-back:focus-visible {outline:2px solid var(--mint);outline-offset:2px}
.race-screen .intro .track-title {font-size:clamp(36px,6vw,74px);line-height:1;margin:8px 0 15px}
.race-screen .tools {justify-content:center;align-items:center;margin:6px 0}
.race-screen .controls:has(#boost) .tools {grid-column:1/-1}
.race-screen .controls .ranks-button {width:auto;min-height:36px}
.race-screen #race-hud.pregara .lapstat,.race-screen #race-hud.pregara .laps {visibility:hidden}
@media(max-width:760px) {
  .race-screen .intro .track-title {font-size:clamp(28px,6.5vw,36px);margin:2px 0 5px}
  .race-screen .intro #logo {width:auto;max-width:100%;height:24px}
  .race-screen .intro .pitch {display:none}
  .race-screen .tools {gap:8px}
}

.race-screen .intro #logo{display:block;width:min(100%,340px);height:auto}
.dialog-mark{display:block;width:min(150px,65%);height:auto;margin-bottom:12px}
@media(max-width:760px){.race-screen .intro #logo{width:min(100%,188px);height:auto}}
