.uv-activation {
  position: fixed;
  inset: 0;
  z-index: 50;
  isolation: isolate;
  overflow: hidden;
  background: #000;
  color: #f3edff;
  touch-action: none;
  animation: uv-reveal var(--uv-duration) ease both;
}

.uv-activation[hidden] { display: none; }

.uv-activation-atmosphere,
.uv-activation-bloom,
.uv-activation-lamps,
.uv-activation-flare {
  position: absolute;
  pointer-events: none;
  animation-duration: var(--uv-duration);
  animation-fill-mode: both;
}

.uv-activation-atmosphere {
  inset: 0;
  background: radial-gradient(ellipse at 50% 49%, #32205b 0%, #160b2c 34%, #071426 65%, #000 91%);
  animation-name: uv-atmosphere;
}

.uv-activation-lamps {
  inset: 22% 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(12px, 3.5vw, 57px);
  animation-name: uv-lamps;
}

.uv-activation-lamps span {
  width: clamp(2px, .4vmin, 5px);
  height: 83%;
  border-radius: 50%;
  background: linear-gradient(transparent, #a28aff 19%, #d0baff 45%, #b5d6ff 57%, #8758e5 87%, transparent);
  box-shadow: 0 0 13px #9a6fff, 0 0 40px 5px #6836c799;
}

.uv-activation-lamps span:nth-child(2) { height: 100%; }
.uv-activation-lamps span:first-child,
.uv-activation-lamps span:last-child { opacity: .58; }

.uv-activation-bloom {
  inset: -25%;
  background: radial-gradient(ellipse at center, #e1d8ff 0%, #b78cf9 9%, #844bdc 23%, #49278d 41%, #1b153c 59%, transparent 74%);
  animation-name: uv-bloom;
}

.uv-activation-flare {
  inset: 45% -10%;
  background: radial-gradient(ellipse 46% 6% at 50% 50%, #d4edff 0%, #b59aff 28%, transparent 99%), radial-gradient(ellipse 43% 40% at center, #a586fb80, transparent 90%);
  animation-name: uv-flare;
}

.uv-activation-skip {
  position: absolute;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  min-height: 44px;
  padding: .55rem .85rem;
  color: inherit;
  background: #100d1b;
  border: 1px solid #806fa5;
  border-radius: 7px;
  font-size: .83rem;
  font-weight: 700;
  animation: uv-skip 180ms linear 380ms both;
}

.uv-activation-skip span { margin-inline-start: .28rem; }
.uv-activation-skip:focus-visible { animation: none; opacity: 1; outline-color: #b5e6ff; }

.uv-activation-replay {
  min-height: 44px;
  margin-inline-start: .5rem;
  padding: .1rem .4rem;
  border: 0;
  background: transparent;
  color: #d5c4ff;
  font: inherit;
  letter-spacing: .06em;
  text-decoration: underline;
  text-underline-offset: .25em;
}

.uv-activation-replay:disabled { visibility: hidden; }
.uv-activation-replay:hover { color: #fff; }
.uv-activation-replay span { visibility: hidden; }
.uv-activation-replay[data-sound] span { visibility: inherit; }

.uv-activation-running .site-header .brand { position: relative; }
.uv-activation-running .site-header .brand::before {
  content: "";
  position: absolute;
  inset: -.65rem -1rem;
  background: radial-gradient(ellipse at center, #a280ff55, transparent 72%);
  pointer-events: none;
  animation: uv-logo var(--uv-duration) ease both;
}

@keyframes uv-reveal {
  0%, 70% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes uv-atmosphere {
  0%, 10% { opacity: 0; }
  61% { opacity: var(--uv-level); }
  100% { opacity: 0; }
}
@keyframes uv-lamps {
  0%, 10% { opacity: 0; transform: scaleY(.93); }
  45%, 63% { opacity: var(--uv-level); transform: scaleY(1); }
  100% { opacity: .04; transform: scaleY(1); }
}
@keyframes uv-bloom {
  0%, 45% { opacity: 0; transform: scale(.24); }
  54% { opacity: calc(var(--uv-level) * .92); transform: scale(1.25); }
  69% { opacity: calc(var(--uv-level) * .36); }
  100% { opacity: 0; transform: scale(1.55); }
}
@keyframes uv-flare {
  0%, 45% { opacity: 0; transform: scaleX(.16); }
  53% { opacity: calc(var(--uv-level) * .86); transform: scaleX(1); }
  65% { opacity: calc(var(--uv-level) * .28); }
  100% { opacity: 0; transform: scaleX(1.18); }
}
@keyframes uv-logo {
  0%, 69% { opacity: 0; transform: scale(.95); }
  84% { opacity: var(--uv-level); transform: scale(1.05); }
  100% { opacity: 0; transform: scale(1.1); }
}
@keyframes uv-skip {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .uv-activation-atmosphere,.uv-activation-lamps,.uv-activation-bloom,.uv-activation-flare,
  .uv-activation-running .site-header .brand::before { display: none; }
  .uv-activation { background: #24183e; animation-name: uv-gentle; }
  .uv-activation-skip { animation: none; }
}

@keyframes uv-gentle {
  from { opacity: .24; }
  to { opacity: 0; }
}
