.splash {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #1c1917;
  opacity: 1;
  transition: opacity .4s ease, background-color .25s ease;
}
.splash.is-painted { background: var(--paper); }
.splash.is-leaving { opacity: 0; pointer-events: none; }
html:has(body.splash-active),
body.splash-active { overflow: hidden; }

.splash-horizon {
  position: absolute;
  inset: 16px;
  border-radius: 28px;
  overflow: clip;
  background: #e9dccb;
  clip-path: inset(50% 0 50% 0);
  transition: clip-path .6s cubic-bezier(.22,1,.36,1);
}
.splash.is-opening .splash-horizon { clip-path: inset(0); }
.splash .hero-art { z-index: 0; }
.splash-horizon::after {
  position: absolute;
  inset: auto 0 0;
  height: 39.17%;
  content: '';
  background: linear-gradient(0deg, #221a429e, #221a4257 34%, transparent);
  opacity: 0;
  transition: opacity .25s ease;
}
.splash.is-painted .splash-horizon::after { opacity: 1; }

.splash-lane {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: calc(100% - 32px);
  font: 500 52px/58px var(--display);
  letter-spacing: -.021em;
  white-space: pre;
  color: #fff;
}
.splash-em { color: #3ba6f1; }
.splash-caret { width: 3px; height: 50px; margin-left: 4px; border-radius: 1px; background: #3ba6f1; }
.splash.is-holding .splash-caret { animation: splash-blink .35s steps(1, end) infinite; }
@keyframes splash-blink { 50% { opacity: 0; } }
.splash.is-opening .splash-caret { background: #0c0a09; }
.splash.is-answer .splash-lane { color: #0c0a09; transform: translateY(-12px); }
.splash.is-answer .splash-caret { display: none; }
.splash.is-answer .splash-em:not(:empty) { padding: 0 10px; border-radius: 4px; background: #c1e1f7; color: #236796; }

.splash-skip {
  position: absolute;
  top: 32px;
  right: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: #fafaf914;
  color: #fafaf9;
  box-shadow: inset 0 0 0 1px #fafaf947;
  font: 500 15px/20px var(--body);
}
.splash-skip:focus-visible { outline: 3px solid #3ba6f1; outline-offset: 0; }
.splash.is-painted .splash-skip {
  top: 40px;
  right: 40px;
  backdrop-filter: blur(16px);
  background: #ffffffb8;
  color: #0c0a09;
  box-shadow: inset 0 0 0 1px #ffffffb3, 0 10px 30px -12px #1c19174d;
}

@media (max-width: 760px) {
  .splash-horizon { inset: 8px; border-radius: 26px; }
  .splash-horizon::after { height: 300px; }
  .splash-lane { font-size: clamp(30px, 9.25vw, 36px); line-height: 45px; }
  .splash-caret { height: 36px; margin-left: 3px; }
  .splash.is-answer .splash-lane { flex-wrap: wrap; max-width: min(330px, 100% - 32px); transform: translateY(-5px); }
  .splash.is-answer .splash-em:not(:empty) { padding-inline: 7px; }
  .splash.is-answer .splash-tail { flex-basis: 100%; text-align: center; white-space: normal; }
  .splash-skip { top: 16px; right: 16px; padding-inline: 16px; }
  .splash.is-painted .splash-skip { top: 20px; right: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .splash { display: none; }
}
