.entry-gate {
  --entry-radius: 0px;
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 24px;
  border: 0;
  overflow: hidden;
  color: #eafbf8;
  background: transparent;
  z-index: 300;
  place-items: center;
  isolation: isolate;
  cursor: pointer;
  touch-action: manipulation;
}
.entry-pending .entry-gate,
.entry-gate[open] {
  display: grid;
}
.entry-gate::backdrop {
  background: transparent;
}
.entry-locked {
  overflow: hidden;
}
.entry-gate::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 48% 46%, #405b6c38, transparent 36%),
    radial-gradient(ellipse at 23% 19%, #7764bf26, transparent 47%),
    radial-gradient(ellipse at 83% 78%, #316c7b26, transparent 45%), #101727;
}
.entry-core {
  position: relative;
  width: min(65vw, 390px);
  aspect-ratio: 1;
}
.entry-trigger {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: inherit;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.entry-trigger:focus-visible {
  outline: 1px solid #bbfce790;
  outline-offset: 14px;
}
.entry-art {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  filter: drop-shadow(0 0 24px #a9c9ff38);
  transition: filter 0.35s ease;
}
.entry-trigger:hover .entry-art {
  filter: drop-shadow(0 0 36px #b9fbea65);
}
.entry-art-body {
  transform-origin: 200px 200px;
  animation: entry-breathe 5.5s ease-in-out infinite;
}
.entry-art-orbit {
  transform-origin: 200px 200px;
  animation: entry-orbit 28s linear infinite;
}
.entry-art-orbit--reverse {
  animation-direction: reverse;
  animation-duration: 39s;
}
.entry-art-glint {
  transform-box: fill-box;
  transform-origin: center;
  animation: entry-glint 3.8s ease-in-out infinite;
}
.entry-art-glint:nth-of-type(2) {
  animation-delay: -1.7s;
}
.entry-hint {
  position: absolute;
  inset: auto -24px -62px;
  margin: 0;
  text-align: center;
  pointer-events: none;
}
.entry-verb {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #dce5f4;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.2em;
}
.entry-verb::before,
.entry-verb::after {
  content: "";
  width: 24px;
  height: 1px;
  background: #c1e7eb60;
}
.entry-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.entry-particle {
  position: absolute;
  top: var(--origin-y);
  left: var(--origin-x);
  display: block;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  color: var(--spark-color);
  background: currentColor;
  box-shadow: 0 0 9px currentColor;
  opacity: 0;
  animation: entry-scatter var(--life) var(--delay)
    cubic-bezier(0.13, 0.7, 0.25, 1) both;
}
.entry-particle--ray {
  width: calc(var(--size) * 5);
  height: 1.5px;
  border-radius: 2px;
}
.entry-particle--star {
  border-radius: 0;
  box-shadow: none;
  clip-path: polygon(
    50% 0,
    60% 39%,
    100% 50%,
    60% 61%,
    50% 100%,
    40% 61%,
    0 50%,
    40% 39%
  );
}
.entry-gate.is-opening::before {
  -webkit-mask-image: radial-gradient(
    circle at 50% 50%,
    transparent var(--entry-radius),
    #000 calc(var(--entry-radius) + 3px)
  );
  mask-image: radial-gradient(
    circle at 50% 50%,
    transparent var(--entry-radius),
    #000 calc(var(--entry-radius) + 3px)
  );
}
.entry-gate.is-opening .entry-trigger {
  animation: entry-ignite 0.4s cubic-bezier(0.3, 0, 0.65, 1) both;
  outline: none;
}
.entry-gate.is-opening .entry-hint {
  opacity: 0;
  transition: opacity 0.15s ease;
}
.entry-pending .spark-trails i{
  animation-play-state: paused;
}
@keyframes entry-orbit {
  to {
    transform: rotate(360deg);
  }
}
@keyframes entry-breathe {
  0%,
  100% {
    transform: rotate(-8deg) scale(0.96);
  }
  50% {
    transform: rotate(4deg) scale(1.04);
  }
}
@keyframes entry-glint {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.75);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}
@keyframes entry-ignite {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  35% {
    transform: scale(0.8) rotate(-7deg);
    opacity: 1;
    filter: brightness(1.7);
  }
  60% {
    opacity: 1;
  }
  100% {
    transform: scale(1.4) rotate(14deg);
    opacity: 0;
    filter: brightness(2);
  }
}
@keyframes entry-scatter {
  0% {
    transform: translate(var(--from-x), var(--from-y)) rotate(var(--angle))
      scale(1);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  16% {
    opacity: 0.6;
  }
  27% {
    opacity: 1;
  }
  63% {
    opacity: 0.85;
  }
  100% {
    transform: translate(var(--to-x), var(--to-y)) rotate(var(--angle))
      scale(0.1);
    opacity: 0;
  }
}
@media (max-width: 760px) {
  .entry-core {
    width: min(72vw, 310px);
  }
  .entry-hint {
    bottom: -48px;
  }
  .entry-verb {
    font-size: 12px;
  }
}
@media (max-height: 500px) and (orientation: landscape) {
  .entry-core {
    width: min(52vh, 240px);
  }
  .entry-hint {
    bottom: -36px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .entry-gate *,
  .entry-gate *::before,
  .entry-gate *::after {
    animation: none !important;
    transition: none !important;
  }
}
