.intro-overlay.vial-intro {
  --intro-brand-top: calc(50% + 220px);
  --intro-vial-tighten: 0.9;
  background:
    radial-gradient(70% 55% at 50% 18%, rgba(61, 130, 255, 0.14), transparent 55%),
    radial-gradient(55% 50% at 50% 52%, rgba(255, 77, 184, 0.08), transparent 50%),
    linear-gradient(180deg, #04060c, #080d18 45%, #05070d) !important;
}

.intro-overlay.vial-intro.is-exiting {
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.62s cubic-bezier(0.4, 0, 0.2, 1);
}

.intro-overlay.vial-intro::before {
  content: none;
}

.intro-overlay.vial-intro::after {
  animation: introTimeline var(--intro-duration, 17.2s) linear both;
  background: linear-gradient(90deg, rgba(127, 249, 255, 0.92), rgba(61, 130, 255, 0.9), rgba(255, 77, 184, 0.62));
  box-shadow: 0 0 14px rgba(127, 249, 255, 0.28);
}

.intro-overlay.vial-intro[data-intro-phase="build"]::after {
  box-shadow: 0 0 16px rgba(127, 249, 255, 0.34);
}

.intro-overlay.vial-intro[data-intro-phase="pressurize"]::after {
  box-shadow: 0 0 18px rgba(127, 249, 255, 0.34), 0 0 24px rgba(61, 130, 255, 0.14);
}

.intro-overlay.vial-intro[data-intro-phase="fill"]::after {
  box-shadow: 0 0 18px rgba(127, 249, 255, 0.36), 0 0 30px rgba(61, 130, 255, 0.12);
}

.intro-overlay.vial-intro[data-intro-phase="burst"]::after {
  box-shadow: 0 0 20px rgba(255, 77, 184, 0.24), 0 0 26px rgba(127, 249, 255, 0.22);
}

.intro-overlay.vial-intro[data-intro-phase="reveal"]::after {
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.22), 0 0 24px rgba(127, 249, 255, 0.16);
}

[data-intro-phase="pressurize"] #cv-atmosphere { filter: brightness(1.08); }
[data-intro-phase="burst"]      #cv-atmosphere { filter: brightness(1.4); transition: filter 80ms; }
[data-intro-phase="reveal"]     #cv-atmosphere { filter: brightness(0.9); transition: filter 600ms; }

.intro-overlay.vial-intro .intro-skip {
  background: rgba(8, 12, 16, 0.72) !important;
  border-color: rgba(232, 244, 248, 0.36) !important;
  color: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32), inset 0 1px rgba(255, 255, 255, 0.18) !important;
}

.intro-overlay.vial-intro .intro-skip:hover {
  border-color: rgba(127, 249, 255, 0.72) !important;
  box-shadow: 0 0 0 1px rgba(127, 249, 255, 0.3), 0 10px 24px rgba(0, 0, 0, 0.32) !important;
}

.intro-overlay.vial-intro .intro-skip:focus-visible {
  outline: 2px solid rgba(127, 249, 255, 0.9);
  outline-offset: 2px;
  box-shadow: 0 0 0 1px rgba(127, 249, 255, 0.4), 0 12px 28px rgba(0, 0, 0, 0.34) !important;
}

.intro-overlay.vial-intro canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: none;
}

#cv-bg         { z-index: 2; }
#cv-atmosphere { z-index: 4; }
#cv-vial {
  z-index: 6;
  transform: scaleX(var(--intro-vial-tighten, 1));
  transform-origin: 50% 50%;
}
#cv-particles  { z-index: 8; }
#cv-overlay    { z-index: 10; }

.intro-brand-overlay,
.intro-brand-block {
  position: absolute;
  left: 50%;
  top: var(--intro-brand-top, calc(50% + 220px));
  transform: translateX(-50%);
  width: min(88vw, 540px);
  text-align: center;
  z-index: 10002;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease, transform 0.45s ease;
  mix-blend-mode: screen;
}

.intro-brand-overlay::before,
.intro-brand-block::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(70vw, 420px);
  height: clamp(60px, 10vw, 112px);
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(127, 249, 255, 0.2) 0%, rgba(61, 130, 255, 0.08) 46%, transparent 78%);
  filter: blur(16px);
  opacity: 0.78;
}

.intro-brand-overlay.show,
.intro-brand-block.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-8px);
}

.intro-brand-title,
.intro-brand-sub {
  position: relative;
  z-index: 1;
}

.intro-brand-title {
  font-size: clamp(22px, 3.8vw, 48px);
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  font-family: "Sora", Inter, ui-sans-serif, system-ui, sans-serif;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.42), 0 0 34px rgba(127, 249, 255, 0.16);
}

.intro-brand-sub {
  margin-top: 10px;
  font-size: clamp(10px, 0.95vw, 13px);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-family: "Sora", Inter, ui-sans-serif, system-ui, sans-serif;
  line-height: 1.45;
}

.intro-brand-sub-adv {
  color: rgba(248, 252, 255, 0.95);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.intro-brand-sub-res {
  color: #39ff14;
  text-shadow: 0 0 20px rgba(57, 255, 20, 0.55), 0 0 42px rgba(57, 255, 20, 0.22);
}

.intro-bottom-url,
.intro-brand-url {
  position: absolute;
  left: 50%;
  top: var(--intro-vial-bottom, calc(50% + 200px));
  bottom: auto;
  transform: translateX(-50%) translateY(18px);
  text-align: center;
  z-index: 10002;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.05s cubic-bezier(0.4, 0, 0.2, 1), transform 1.05s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: "Sora", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(17px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(236, 244, 255, 0.97);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5), 0 0 28px rgba(127, 249, 255, 0.12);
  mix-blend-mode: screen;
}

.intro-bottom-url.show,
.intro-brand-url.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  letter-spacing: 0.24em;
}

@media (prefers-reduced-motion: reduce) {
  .intro-brand-overlay.show,
  .intro-brand-block.show {
    transform: translateX(-50%) translateY(-4px);
  }

  .intro-bottom-url,
  .intro-brand-url {
    transition: opacity 0.35s ease, transform 0.35s ease;
  }
}

#introCursorTorch {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9;
  opacity: 0;
  transition: opacity 400ms;
  background: radial-gradient(
    circle 180px at var(--tx, 50%) var(--ty, 50%),
    transparent 0%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

#introCursorTorch.active,
#introCursorTorch.is-on {
  opacity: 1;
}

.intro-overlay.vial-intro .intro-cursor-torch {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 12;
  opacity: 0;
  transition: opacity 0.55s ease;
  background: radial-gradient(
    circle 180px at var(--torch-x, 50%) var(--torch-y, 42%),
    transparent 0%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

.intro-overlay.vial-intro .intro-cursor-torch.is-on {
  opacity: 1;
}

html.low-gpu .intro-overlay.vial-intro .intro-cursor-torch {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .intro-overlay.vial-intro .intro-cursor-torch {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .intro-overlay.vial-intro::before {
    content: none;
  }

  .intro-overlay.vial-intro .intro-skip {
    min-height: 42px;
    min-width: 92px;
    padding: 0.66rem 0.98rem !important;
    font-size: 0.66rem !important;
    letter-spacing: 0.13em !important;
  }

  .intro-brand-overlay,
  .intro-brand-block {
    width: min(90vw, 440px);
  }
}

@media (max-height: 680px) {
  .intro-brand-overlay,
  .intro-brand-block {
    width: min(84vw, 420px);
  }

  .intro-brand-sub {
    letter-spacing: 0.3em;
  }
}
