.race-warning:not([data-kind="engine"]) {
  display: flex;
  align-items: center;
  gap: 14px;
  left: 50%;
  top: 16%;
  transform: translateX(-50%);
  width: max-content;
  max-width: min(680px, 86vw);
  padding: 12px 24px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(90deg, #11191d88, #11191dba 50%, #11191d88);
  backdrop-filter: blur(4px);
  text-align: left;
  color: #f2f4eb;
  font: 700 clamp(15px, 1.35vw, 24px) / 1.2 var(--condensed);
  letter-spacing: 0.05em;
}
.race-notice-icon {
  display: flex;
  flex: none;
  color: #dbea50;
}
.race-notice-icon svg {
  width: 29px;
  height: 29px;
}
.race-warning small {
  margin-top: 5px;
  font:
    600 9px/1.4 Barlow,
    Arial,
    sans-serif;
  letter-spacing: 0.13em;
  color: #c4cec3;
}
.race-warning[data-kind="engine"] .race-notice-icon {
  display: none;
}
.race-warning[hidden] {
  display: none !important;
}
#toast {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 13px;
  left: 50%;
  right: auto;
  top: auto;
  bottom: max(78px, env(safe-area-inset-bottom));
  transform: translate(-50%, 10px);
  width: max-content;
  max-width: min(460px, 88vw);
  padding: 12px 19px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(90deg, #11191dbb, #11191d99);
  box-shadow: none;
  backdrop-filter: blur(5px);
  color: #f2f4eb;
  font: 700 17px/1.2 var(--condensed);
  letter-spacing: 0.04em;
}
#toast.visible {
  transform: translate(-50%, 0);
}
#toast::before {
  display: none;
}
#toast .notice-icon {
  color: #dbea50;
  display: flex;
  flex: none;
}
#toast svg {
  width: 25px;
  height: 25px;
}
#toast .notice-eyebrow {
  display: block;
  margin-bottom: 4px;
  font:
    600 8px/1.3 Barlow,
    Arial,
    sans-serif;
  letter-spacing: 0.19em;
  color: #c1ccbd;
}
@media (max-width: 700px) {
  .race-warning:not([data-kind="engine"]) {
    top: 23%;
    padding: 10px 14px;
    gap: 10px;
  }
  .race-notice-icon svg {
    width: 23px;
    height: 23px;
  }
  .race-warning small {
    font-size: 7px;
    letter-spacing: 0.08em;
  }
  #toast {
    bottom: max(105px, env(safe-area-inset-bottom));
    font-size: 15px;
    padding: 11px 14px;
  }
}
@media (max-height: 500px) {
  .race-warning:not([data-kind="engine"]) {
    top: 20%;
  }
  #toast {
    bottom: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #toast {
    transition: none;
  }
}

/* Route warning and recovery action over the live game. */
.race-warning[data-kind="route"] {
  display: grid;
  z-index: 2;
  justify-items: center;
  gap: 0;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(900px, calc(100% - 48px));
  max-width: none;
  padding: 0;
  background: none;
  backdrop-filter: none;
  text-align: center;
  color: #f2f3e6;
  text-shadow: 0 2px 12px #000b;
  pointer-events: none;
}
.race-warning[data-kind="route"] .race-notice-icon {
  display: none;
}
.race-warning[data-kind="route"] .race-notice-copy {
  display: grid;
  justify-items: center;
  gap: 14px;
}
.race-warning[data-kind="route"] .race-notice-copy::before {
  content: "ROUTE ALERT";
  font:
    500 15px/1.5 ReferenceUI,
    sans-serif;
  letter-spacing: 0.25em;
  color: #d6e2cb;
}
.race-warning[data-kind="route"] #race-warning-text {
  font:
    700 clamp(34px, min(5vw, 10vh), 72px) / 1 ReferenceHeading,
    sans-serif;
  letter-spacing: 0.055em;
  text-wrap: balance;
}
.race-warning[data-kind="route"] small {
  margin: 0;
  font:
    600 14px ReferenceUI,
    sans-serif;
  letter-spacing: 0.16em;
  color: #b3c6af;
}
.race-reset {
  pointer-events: auto;
  padding: 8px 14px;
  border: 1px solid #dbea50;
  background: #161e20eb;
  color: #f2f4eb;
  font: 700 15px var(--condensed);
  cursor: pointer;
}
.race-reset:hover,
.race-reset:focus-visible {
  background: #dbea50;
  color: #161e20;
}
.race-reset kbd {
  margin-left: 6px;
  font: inherit;
}
.racing-hud.touch-mode .race-reset kbd {
  display: none;
}
@media (max-width: 700px) {
  .race-warning[data-kind="route"] {
    top: 40%;
  }
  .race-warning[data-kind="route"] small {
    font-size: 11px;
    letter-spacing: 0.1em;
  }
}
