@font-face {
  font-family: "Manrope Variable";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/manrope-variable.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans Variable";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("/fonts/dm-sans-variable.woff2") format("woff2");
}
body {
  margin: 0;
}
#initial-splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--canvas);
  color: var(--color-text);
  font-family: "DM Sans Variable", sans-serif;
  transition:
    opacity 0.45s ease,
    visibility 0.45s;
  isolation: isolate;
}
#initial-splash.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.splash-aurora {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(
      ellipse at 40% 40%,
      rgb(var(--glow-rgb) / 0.23),
      transparent 50%
    ),
    radial-gradient(
      ellipse at 65% 60%,
      rgb(var(--accent-rgb) / 0.1),
      transparent 55%
    );
  filter: blur(45px);
  z-index: -1;
  animation: splash-aurora 9s ease-in-out infinite alternate;
}
.splash-stage {
  position: relative;
  width: 270px;
  height: 250px;
  perspective: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.splash-emblem {
  position: relative;
  width: 210px;
  height: 210px;
  transform-style: preserve-3d;
  animation: splash-turn 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  filter: drop-shadow(0 20px 28px #0003);
}
.splash-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  mask-image: radial-gradient(ellipse, #000 50%, transparent 74%);
}
.splash-face.back {
  transform: rotateY(180deg) translateZ(2px);
}
.splash-face img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.splash-orbit {
  position: absolute;
  inset: 0;
  border: 1px solid rgb(var(--brand-rgb) / 0.18);
  border-radius: 50%;
  transform: rotate(-30deg) scaleY(0.7);
}
.splash-orbit::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid transparent;
  border-top-color: rgb(var(--brand-rgb) / 0.8);
  border-right-color: rgb(var(--brand-rgb) / 0.15);
  border-radius: 50%;
  animation: splash-orbit 4s linear infinite;
}
.splash-orbit.second {
  inset: -22px;
  transform: rotate(40deg) scaleY(0.75);
  opacity: 0.5;
}
.splash-orbit.second::after {
  animation-direction: reverse;
  animation-duration: 6s;
}
.splash-spark {
  position: absolute;
  right: 9px;
  top: 40px;
  font-style: normal;
  font-size: 20px;
  color: var(--color-primary);
  animation: splash-glimmer 3s ease-in-out infinite;
}
.splash-spark.second {
  left: 2px;
  right: auto;
  top: auto;
  bottom: 35px;
  font-size: 12px;
  animation-delay: -1.5s;
}
.splash-copy {
  text-align: center;
  padding: 0 25px;
  position: relative;
}
.splash-kicker {
  font:
    500 8px "DM Sans Variable",
    sans-serif;
  letter-spacing: 2.4px;
  color: var(--color-primary);
}
.splash-title {
  font:
    650 clamp(39px, 7vw, 57px) / 1.2 "Manrope Variable",
    sans-serif;
  letter-spacing: -2.8px;
  margin: 18px 0 15px;
}
.splash-title span {
  color: var(--color-primary);
}
.splash-tagline {
  font-size: 13px;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.8;
}
.splash-progress {
  width: 100px;
  height: 2px;
  margin: 32px auto 14px;
  background: rgb(var(--line-rgb));
  overflow: hidden;
  border-radius: 10px;
}
.splash-progress span {
  display: block;
  height: 100%;
  width: 45%;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-primary),
    var(--color-secondary)
  );
  animation: splash-progress 1.6s ease-in-out infinite;
}
.splash-status {
  font-size: 10px;
  letter-spacing: 0.3px;
  color: var(--color-muted);
}
.splash-foot {
  position: absolute;
  bottom: max(30px, env(safe-area-inset-bottom));
  left: 30px;
  right: 30px;
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  letter-spacing: 1.7px;
  color: var(--color-muted);
}
#splash-retry {
  border: 1px solid var(--color-line);
  background: rgb(var(--surface-rgb));
  color: var(--color-text);
  font:
    500 12px "DM Sans Variable",
    sans-serif;
  padding: 12px 20px;
  border-radius: 30px;
  margin-top: 15px;
  cursor: pointer;
}
/* Decorative food sits outside the cutlery stage and never sets its dimensions. */
.splash-garnish {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.splash-garnish::before,
.splash-garnish::after {
  content: "";
  position: absolute;
  width: clamp(42px, 15vw, 76px);
  aspect-ratio: 1.12;
  background-image: url("/images/premium/rigatoni-burst.webp");
  background-size: 225% auto;
  background-repeat: no-repeat;
  animation: garnish-arrive 750ms ease-out 350ms both;
}
.splash-garnish::before {
  left: calc(100% - 10px);
  top: 2%;
  /* Isolate the basil leaf from the photograph at its natural angle. */
  width: clamp(32px, 9vw, 47px);
  aspect-ratio: 106 / 100;
  background-size: 755% auto;
  background-position: 98% 23%;
  clip-path: polygon(2% 88%, 7% 54%, 19% 31%, 42% 14%, 77% 6%, 98% 1%, 99% 25%, 92% 50%, 78% 71%, 58% 87%, 33% 97%, 12% 98%);
  --garnish-x: -7px;
  --garnish-y: 4px;
}
.splash-garnish::after {
  right: calc(100% - 10px);
  bottom: 7%;
  background-position: left bottom;
  mask-image: radial-gradient(ellipse at 42% 60%, black 50%, transparent 79%);
  --garnish-x: 7px;
  --garnish-y: -4px;
}
@keyframes garnish-arrive {
  from { opacity: 0; transform: translate(var(--garnish-x), var(--garnish-y)) scale(.95); }
  to { opacity: .92; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .splash-garnish::before, .splash-garnish::after,
  .splash-stage .splash-emblem, .splash-stage .splash-spark, .splash-stage .splash-orbit::after { animation: none; }
}
@keyframes splash-turn {
  0% {
    transform: rotateY(-16deg) rotateZ(-5deg);
  }
  12% {
    transform: rotateY(20deg) rotateZ(4deg);
  }
  82%,
  100% {
    transform: rotateY(344deg) rotateZ(-5deg);
  }
}
@keyframes splash-orbit {
  to {
    transform: rotate(360deg);
  }
}
@keyframes splash-aurora {
  to {
    transform: translate(7%, 4%) scale(1.15);
  }
}
@keyframes splash-glimmer {
  50% {
    opacity: 0.25;
    transform: scale(0.7) rotate(45deg);
  }
}
@keyframes splash-progress {
  from {
    transform: translateX(-110%);
  }
  to {
    transform: translateX(330%);
  }
}
@media (max-width: 500px) {
  .splash-stage {
    width: 225px;
    height: 215px;
  }
  .splash-emblem {
    width: 190px;
    height: 190px;
  }
  .splash-kicker {
    font-size: 7px;
    letter-spacing: 1.8px;
  }
  .splash-tagline {
    font-size: 11px;
  }
  .splash-foot {
    font-size: 7px;
    left: 22px;
    right: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #initial-splash *,
  #initial-splash *::before,
  #initial-splash *::after {
    animation: none !important;
    transition: none !important;
  }
  .splash-emblem {
    transform: rotateY(-12deg);
  }
  #initial-splash {
    transition: none;
  }
  .splash-progress span {
    transform: none;
    width: 100%;
  }
}
