#stf-futuristic-opening {
  --stf-night: #020b15;
  --stf-blue: #071b35;
  --stf-cyan: #16d7e2;
  --stf-cyan-bright: #65f7ff;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background:
    radial-gradient(circle at 50% 44%, rgba(22, 215, 226, .17), transparent 26%),
    radial-gradient(circle at 12% 18%, rgba(17, 91, 167, .23), transparent 32%),
    linear-gradient(145deg, var(--stf-night), var(--stf-blue) 54%, #020913);
  opacity: 1;
  visibility: visible;
  animation: stf-opening-failsafe 6s ease forwards;
}

html.stf-futuristic-opening-active,
html.stf-futuristic-opening-active body {
  overflow: hidden !important;
}

#stf-futuristic-opening::before {
  content: "";
  position: absolute;
  left: -30%;
  right: -30%;
  bottom: -64%;
  height: 118%;
  z-index: -3;
  opacity: .42;
  background-image:
    linear-gradient(rgba(22, 215, 226, .22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 215, 226, .22) 1px, transparent 1px);
  background-size: 58px 58px;
  transform: perspective(520px) rotateX(66deg);
  transform-origin: center top;
  animation: stf-grid-flight 3.4s linear infinite;
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
}

#stf-futuristic-opening::after {
  content: "";
  position: absolute;
  inset: -30% 0 auto;
  height: 32%;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(101, 247, 255, .13), transparent);
  filter: blur(1px);
  animation: stf-scan 2.35s ease-in-out infinite;
}

.stf-future-opening__aurora {
  position: absolute;
  width: min(74vw, 940px);
  aspect-ratio: 1;
  border-radius: 50%;
  z-index: -2;
  opacity: .32;
  background: conic-gradient(
    from 20deg,
    transparent,
    rgba(22, 215, 226, .42),
    transparent 28%,
    rgba(35, 106, 197, .30),
    transparent 62%,
    rgba(22, 215, 226, .34),
    transparent
  );
  filter: blur(70px);
  animation: stf-aurora-spin 7s linear infinite;
}

.stf-future-opening__stage {
  width: min(92vw, 980px);
  padding: 48px 24px;
  text-align: center;
  transform: translateY(0);
}

.stf-future-opening__logo-shell {
  position: relative;
  display: grid;
  place-items: center;
  width: 188px;
  height: 188px;
  margin: 0 auto 30px;
}

.stf-future-opening__ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(101, 247, 255, .66);
  border-radius: 50%;
  box-shadow:
    0 0 20px rgba(22, 215, 226, .25),
    inset 0 0 22px rgba(22, 215, 226, .12);
  animation: stf-ring-pulse 2.2s ease-in-out infinite;
}

.stf-future-opening__ring::before,
.stf-future-opening__ring::after {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: inherit;
  border: 2px solid transparent;
  border-top-color: var(--stf-cyan-bright);
  border-bottom-color: rgba(22, 215, 226, .48);
  animation: stf-ring-spin 2.7s linear infinite;
}

.stf-future-opening__ring::after {
  inset: -13px;
  border-top-color: transparent;
  border-right-color: rgba(101, 247, 255, .42);
  border-bottom-color: transparent;
  animation-direction: reverse;
  animation-duration: 4.2s;
}

.stf-future-opening__logo {
  position: relative;
  z-index: 2;
  display: block;
  width: 128px;
  height: 128px;
  object-fit: contain;
  border-radius: 24px;
  background: rgba(255, 255, 255, .96);
  padding: 10px;
  box-sizing: border-box;
  filter:
    drop-shadow(0 0 15px rgba(101, 247, 255, .50))
    drop-shadow(0 0 34px rgba(22, 215, 226, .30));
  animation: stf-logo-arrival .9s cubic-bezier(.2, .8, .2, 1) both;
}

.stf-future-opening__kicker {
  margin: 0 0 14px;
  color: var(--stf-cyan-bright);
  font: 800 clamp(11px, 1.5vw, 15px)/1.3 Arial, Helvetica, sans-serif;
  letter-spacing: clamp(2px, .7vw, 7px);
  text-transform: uppercase;
  opacity: 0;
  animation: stf-text-rise .65s .48s ease forwards;
}

.stf-future-opening__title {
  margin: 0;
  font: 950 clamp(29px, 5.7vw, 68px)/1.02 Arial, Helvetica, sans-serif;
  letter-spacing: clamp(1px, .35vw, 4px);
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(18px);
  animation: stf-text-rise .8s .66s cubic-bezier(.2, .8, .2, 1) forwards;
}

.stf-future-opening__title span {
  color: transparent;
  background: linear-gradient(92deg, #fff 8%, #bffcff 43%, #fff 72%);
  background-clip: text;
  -webkit-background-clip: text;
  filter: drop-shadow(0 0 16px rgba(22, 215, 226, .24));
}

.stf-future-opening__subtitle {
  display: block;
  margin-top: 20px;
  color: #d9f8fb;
  font: 600 clamp(15px, 2vw, 22px)/1.45 Arial, Helvetica, sans-serif;
  letter-spacing: .45px;
  text-transform: none;
}

.stf-future-opening__progress {
  position: relative;
  width: min(62vw, 480px);
  height: 2px;
  margin: 34px auto 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .13);
  opacity: 0;
  animation: stf-progress-appear .3s 1.08s ease forwards;
}

.stf-future-opening__progress::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--stf-cyan), #fff);
  box-shadow: 0 0 16px var(--stf-cyan);
  transform: translateX(-100%);
  animation: stf-progress-fill 2.15s 1.1s cubic-bezier(.2, .7, .2, 1) forwards;
}

.stf-future-opening__skip {
  position: absolute;
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  z-index: 10;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid rgba(101, 247, 255, .42);
  border-radius: 999px;
  color: #eaffff;
  background: rgba(2, 15, 29, .60);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font: 800 12px/1 Arial, Helvetica, sans-serif;
  letter-spacing: .9px;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.stf-future-opening__skip:hover,
.stf-future-opening__skip:focus-visible {
  border-color: var(--stf-cyan-bright);
  background: rgba(8, 54, 76, .74);
  transform: translateY(-1px);
  outline: none;
}

#stf-futuristic-opening.is-closing {
  animation: none;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.025);
  transition:
    opacity .72s ease,
    visibility 0s linear .72s,
    transform .72s cubic-bezier(.2, .8, .2, 1);
}

@keyframes stf-logo-arrival {
  from { opacity: 0; transform: scale(.72) rotate(-5deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes stf-text-rise {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes stf-progress-appear {
  to { opacity: 1; }
}

@keyframes stf-progress-fill {
  to { transform: translateX(0); }
}

@keyframes stf-ring-spin {
  to { transform: rotate(360deg); }
}

@keyframes stf-ring-pulse {
  0%, 100% { transform: scale(.98); opacity: .72; }
  50% { transform: scale(1.04); opacity: 1; }
}

@keyframes stf-aurora-spin {
  to { transform: rotate(360deg); }
}

@keyframes stf-grid-flight {
  to { background-position: 0 58px, 58px 0; }
}

@keyframes stf-scan {
  0% { transform: translateY(-25vh); opacity: 0; }
  24%, 70% { opacity: .72; }
  100% { transform: translateY(130vh); opacity: 0; }
}

@keyframes stf-opening-failsafe {
  0%, 88% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; pointer-events: none; }
}

@media (max-width: 640px) {
  .stf-future-opening__stage {
    padding-inline: 18px;
  }

  .stf-future-opening__logo-shell {
    width: 142px;
    height: 142px;
    margin-bottom: 26px;
  }

  .stf-future-opening__logo {
    width: 98px;
    height: 98px;
    border-radius: 19px;
  }

  .stf-future-opening__subtitle {
    max-width: 310px;
    margin-inline: auto;
  }

  .stf-future-opening__skip {
    min-height: 38px;
    padding-inline: 13px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #stf-futuristic-opening,
  #stf-futuristic-opening::before,
  #stf-futuristic-opening::after,
  #stf-futuristic-opening *,
  #stf-futuristic-opening *::before,
  #stf-futuristic-opening *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
