.entrance-light {
  position: fixed;
  inset: 0;
  z-index: 90;
  overflow: hidden;
  pointer-events: auto;
  background: radial-gradient(ellipse at 50% 50%, #eee5f8, #e5dbf3 54%, #d9cdee);
  animation: entrance-finish 550ms step-end both;
}
.entrance-light-core,
.entrance-light-beam,
.entrance-spark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.entrance-light-core {
  width: 168vmax;
  aspect-ratio: 1;
  background: radial-gradient(circle, #fff9ef 0%, #fdf0fd 21%, #f0dff8bd 45%, #eadcf900 70%);
  animation: entrance-bloom 550ms cubic-bezier(.32,.18,.26,1) both;
}
.entrance-light-beam {
  width: 144vw;
  height: clamp(80px, 26vh, 230px);
  background: radial-gradient(ellipse, #fff9f0 2%, #faf0ffe0 29%, #f8e9ff00 70%);
  animation: entrance-beam 550ms ease-out both;
}
.entrance-spark {
  width: var(--spark-size);
  aspect-ratio: 1;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  background: #fffdf8;
  animation: entrance-spark 550ms cubic-bezier(.22,.49,.38,1) both;
}
.entrance-spark-main { --spark-x: 0px; --spark-y: 0px; --spark-size: 72px; }
.entrance-spark-left { --spark-x: -58px; --spark-y: -42px; --spark-size: 21px; }
.entrance-spark-right { --spark-x: 70px; --spark-y: 31px; --spark-size: 16px; }

@keyframes entrance-finish {
  from { visibility: visible; }
  to { visibility: hidden; }
}
@keyframes entrance-bloom {
  0% { transform: translate(-50%, -50%) scale(.035); }
  27% { transform: translate(-50%, -50%) scale(.24); }
  100% { transform: translate(-50%, -50%) scale(1.12); }
}
@keyframes entrance-beam {
  0% { transform: translate(-50%, -50%) scale(.035, .24); opacity: 0; }
  43% { opacity: .92; }
  100% { transform: translate(-50%, -50%) scale(1.2, 1.3); opacity: .53; }
}
@keyframes entrance-spark {
  0% { transform: translate(-50%, -50%) scale(.13); opacity: 0; }
  50% { opacity: .97; }
  100% { transform: translate(calc(-50% + var(--spark-x)), calc(-50% + var(--spark-y))) scale(1); opacity: .17; }
}

.registration-success {
  position: relative;
}

.bottom-nav a:not([aria-current]):active {
  background-color: var(--brand-soft);
}

.content-filter-tabs .chip[aria-pressed="false"]:active {
  background-color: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand-dark);
}

@media (prefers-reduced-motion: no-preference) {
  .bottom-nav a {
    transition: background-color 140ms ease-out, color 140ms ease-out, transform 120ms ease-out;
  }

  .content-filter-tabs .chip {
    transition: background-color 110ms ease-out, border-color 110ms ease-out,
      color 110ms ease-out, transform 110ms ease-out;
  }

  .content-filter-tabs .chip:active {
    transform: scale(.98);
  }

  .page-arrival {
    animation: page-arrival 190ms ease-out;
  }

  html:not(.fp-wait) .registration-success::after {
    position: absolute;
    inset: -1px;
    border: 2px solid #86bfa0;
    border-radius: inherit;
    pointer-events: none;
    content: "";
    animation: registration-halo 440ms cubic-bezier(.19,.65,.25,1) both;
  }

  html:not(.fp-wait) .registration-success .icon path {
    stroke-dasharray: 20;
    animation: registration-check 270ms cubic-bezier(.3,.08,.24,1) both;
  }
}

@keyframes page-arrival {
  from { opacity: .78; }
  to { opacity: 1; }
}

@keyframes registration-halo {
  from { transform: scale(.98); opacity: .78; }
  to { transform: scale(1.44); opacity: 0; }
}

@keyframes registration-check {
  from { stroke-dashoffset: 20; }
  to { stroke-dashoffset: 0; }
}

.world-cat-button {
  position: absolute;
  z-index: 1;
  right: 12%;
  bottom: 12px;
  width: 260px;
  aspect-ratio: 1;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  touch-action: manipulation;
}
.world-cat-button .world-cat {
  display: block;
  position: static;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.world-cat-button:active .world-cat { scale: .98; }

@media (max-width:1180px) { .world-cat-button { right: 3%; width: 230px; } }
@media (max-width:760px) { .world-cat-button { right: 9%; bottom: 10px; width: 194px; } }
@media (max-width:380px) { .world-cat-button { right: 6%; width: 185px; } }
@media (prefers-reduced-motion:reduce) {
  .entrance-light { display: none; }
  .world-cat-button:active .world-cat { scale: 1; }
}
