@layer components {
  /* Opening sequence: data strings pouring from the RD emblem. */
  html[data-intro="pending"] body {
    visibility: hidden;
  }
  html[data-intro="playing"] body {
    overflow: hidden;
  }
  .intro {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    background:
      radial-gradient(
        ellipse 60% 45% at 50% 34%,
        rgb(34 140 255 / 18%),
        transparent 70%
      ),
      #03070c;
    transition: opacity 0.7s var(--ease-out);
  }
  .intro canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .intro-mark {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 14px;
    margin-bottom: 26vh;
    transition:
      transform 0.7s var(--ease-out),
      opacity 0.5s ease;
  }
  .intro-mark img {
    width: clamp(110px, 16vw, 200px);
    height: auto;
    filter: drop-shadow(0 0 28px rgb(67 216 242 / 55%));
  }
  .intro-word {
    font: 700 clamp(1.1rem, 2.4vw, 1.6rem) / 1 var(--display);
    letter-spacing: 0.32em;
    margin-right: -0.32em;
    color: #eaf9ff;
    text-shadow: 0 0 18px rgb(67 216 242 / 70%);
  }
  .intro-skip {
    position: absolute;
    right: clamp(16px, 3vw, 40px);
    bottom: clamp(16px, 3vw, 40px);
    z-index: 2;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid rgb(138 234 255 / 45%);
    background: rgb(3 7 12 / 60%);
    font: 500 0.95rem/1 var(--display);
    color: #dff6ff;
  }
  .intro-skip:hover {
    border-color: var(--cyan);
    color: #fff;
  }
  .intro[data-state="leaving"] {
    opacity: 0;
    pointer-events: none;
  }
  .intro[data-state="leaving"] .intro-mark {
    transform: scale(1.12);
    opacity: 0;
  }
  @media (prefers-reduced-motion: no-preference) {
    .intro-mark img {
      animation: intro-emblem 1.2s var(--ease-out) both;
    }
    .intro-word {
      animation: intro-word 1.3s var(--ease-out) 0.35s both;
    }
  }
  @keyframes intro-emblem {
    from {
      opacity: 0;
      transform: scale(0.82);
      filter: drop-shadow(0 0 0 rgb(67 216 242 / 0%)) brightness(2.2);
    }
  }
  @keyframes intro-word {
    from {
      opacity: 0;
      transform: scaleX(1.5);
    }
  }
}
