/* Originkit Video Text 的静态站原生适配，以及四段式开机序列层级。 */
body.cinematic-sequence-active #boot {
  visibility: hidden;
  pointer-events: none;
}

body.cinematic-sequence-active #boot *,
body.cinematic-sequence-active #boot *::before,
body.cinematic-sequence-active #boot *::after {
  animation-play-state: paused !important;
}

body.cinematic-sequence-active > .realm-v3-cassell-launch,
body.cinematic-sequence-active > main.landing,
body.cinematic-sequence-active .cassell-audio-toggle {
  visibility: hidden !important;
  pointer-events: none !important;
}

.video-text-interlude {
  position: fixed;
  inset: 0;
  z-index: 10500;
  display: grid;
  place-items: center;
  min-height: 100svh;
  overflow: hidden;
  overflow: clip;
  color: #e7edf6;
  background: #020304;
  opacity: 0;
  visibility: hidden;
  isolation: isolate;
  transition: opacity .62s ease, visibility .62s ease;
}

.video-text-interlude[hidden] { display: none; }

.video-text-interlude.is-active {
  opacity: 1;
  visibility: visible;
}

.video-text-interlude.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.video-text-interlude::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 48%, rgba(28, 43, 61, .13), transparent 38%),
    #020304;
}

.video-text-frame {
  position: relative;
  width: min(86vw, 1040px);
  height: clamp(136px, 24vw, 260px);
  overflow: hidden;
  overflow: clip;
  clip-path: inset(0);
  contain: paint;
  isolation: isolate;
}

.video-text-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

#welcomeVideoTextGlyph {
  font-family: "Microsoft YaHei", "Heiti SC", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  font-size: clamp(31px, 5.2vw, 74px);
  font-weight: 600;
  letter-spacing: .16em;
}

.video-text-fallback,
.video-text-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}

.video-text-fallback {
  display: grid;
  place-items: center;
  padding-left: .16em;
  color: rgba(221, 230, 241, .24);
  font-family: "Microsoft YaHei", "Heiti SC", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  font-size: clamp(31px, 5.2vw, 74px);
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.video-text-media {
  max-width: none;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  clip-path: url(#welcomeVideoTextClip);
  -webkit-clip-path: url(#welcomeVideoTextClip);
  filter: saturate(.58) brightness(1.36) contrast(1.06);
}

@media (max-width: 680px) {
  body > .realm-v3-cassell-launch,
  body > main.landing {
    display: none !important;
  }

  .video-text-frame {
    width: calc(100vw - 36px);
    height: 154px;
  }

  #welcomeVideoTextGlyph,
  .video-text-fallback {
    font-size: clamp(24px, 7.2vw, 34px);
    letter-spacing: .1em;
  }

  .video-text-fallback { padding-left: .1em; }
}

@media (prefers-reduced-motion: reduce) {
  .video-text-interlude { transition-duration: .001ms; }
  .video-text-media { display: none; }
  .video-text-fallback { color: rgba(231, 237, 246, .9); }
}
