.lap-result-toast {
  position: absolute;
  z-index: 36;
  left: 50%;
  top: 22%;
  width: min(360px, 48vw);
  padding: 10px 16px 12px;
  border: 4px solid var(--ink);
  border-radius: 20px;
  background: var(--yellow);
  box-shadow: 7px 7px 0 var(--ink);
  color: var(--ink);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 14px) scale(0.96);
  transform-origin: center top;
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.2, 0.85, 0.3, 1.18);
}

.lap-result-toast.is-invalid {
  background: #ff6b6b;
}

.lap-result-toast[hidden] {
  display: none;
}

.lap-result-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.lap-result-toast.is-leaving {
  opacity: 0;
  transform: translate(-50%, 10px) scale(0.98);
}

.lap-result-toast > span {
  display: block;
  margin-bottom: 3px;
  font-size: clamp(0.5rem, 1.15vw, 0.68rem);
  letter-spacing: 0.07em;
  text-align: center;
}

.lap-result-toast > strong {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 9px;
  font-size: clamp(1rem, 2.75vw, 1.55rem);
  line-height: 1;
  white-space: nowrap;
}

.lap-result-toast > strong b {
  font: inherit;
}

.lap-result-toast > strong i {
  font-style: normal;
  font-size: 0.72em;
}

@media (max-height: 430px) {
  .lap-result-toast {
    top: 17%;
    width: min(320px, 46vw);
    padding: 8px 13px 10px;
    border-width: 3px;
    border-radius: 16px;
    box-shadow: 5px 5px 0 var(--ink);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lap-result-toast {
    transition: opacity 120ms linear;
    transform: translateX(-50%);
  }

  .lap-result-toast.is-visible,
  .lap-result-toast.is-leaving {
    transform: translateX(-50%);
  }
}