.polar-studio-splash {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 48%, #10283d 0%, #091523 48%, #060e19 100%);
  touch-action: none;
  user-select: none;
  overscroll-behavior: none;
}
.polar-studio-splash__mark {
  position: relative;
  display: block;
  width: min(66vw, 620px);
  opacity: 0;
  will-change: transform, opacity;
}
.polar-studio-splash__mark img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 60svh;
  object-fit: contain;
  filter: drop-shadow(0 0 25px #5bd6ff20);
}
.polar-studio-splash--ready {
  animation: polar-studio-exit 2050ms linear both;
}
.polar-studio-splash--ready .polar-studio-splash__mark {
  animation: polar-studio-enter 750ms cubic-bezier(.16, 1, .3, 1) both;
}
.polar-studio-splash--ready .polar-studio-splash__mark::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(108deg, transparent 42%, #b9eeff10 48%, #e2faff25 50%, #b9eeff10 52%, transparent 58%);
  background-size: 300% 100%;
  mask: url('../assets/polar-games/polar-games-logo-horizontal.png') center / contain no-repeat;
  opacity: 0;
  animation: polar-studio-sweep 650ms 700ms ease-in-out both;
}
@keyframes polar-studio-enter {
  0% { opacity: 0; transform: translateY(10px) scale(.91); }
  65% { opacity: 1; transform: translateY(-1px) scale(1.015); }
  100% { opacity: 1; transform: none; }
}
@keyframes polar-studio-sweep {
  0% { opacity: 0; background-position: 100% 0; }
  25%, 65% { opacity: 1; }
  100% { opacity: 0; background-position: 0 0; }
}
@keyframes polar-studio-exit {
  0%, 79% { opacity: 1; }
  100% { opacity: 0; }
}
.polar-studio-splash--reduced.polar-studio-splash--ready {
  animation-duration: 700ms;
}
.polar-studio-splash--reduced .polar-studio-splash__mark {
  animation: polar-studio-fade 180ms ease-out both;
}
.polar-studio-splash--reduced .polar-studio-splash__mark::after { display: none; }
@keyframes polar-studio-fade { from { opacity: 0; } to { opacity: 1; } }
@media (max-aspect-ratio: 4/5) {
  .polar-studio-splash__mark { width: min(64vw, 320px); }
  .polar-studio-splash--ready .polar-studio-splash__mark::after { mask-image: url('../assets/polar-games/polar-games-logo-vertical.webp'); }
}

/* Velvet Pool only: style.css has `@media (prefers-reduced-motion: reduce) { * { animation: none !important } }` and the same
   for `body.reduce-motion *`. The first one reaches this overlay (mounted on <html>) and would leave the mark at its base
   opacity 0. Restate the animations with !important (the universal selector has the lowest specificity, so these win). */
.polar-studio-splash--ready { animation: polar-studio-exit 2050ms linear both !important; }
.polar-studio-splash--ready .polar-studio-splash__mark { animation: polar-studio-enter 750ms cubic-bezier(.16, 1, .3, 1) both !important; }
.polar-studio-splash--ready .polar-studio-splash__mark::after { animation: polar-studio-sweep 650ms 700ms ease-in-out both !important; }
.polar-studio-splash--reduced.polar-studio-splash--ready { animation-duration: 700ms !important; }
.polar-studio-splash--reduced .polar-studio-splash__mark { animation: polar-studio-fade 180ms ease-out both !important; }
