/* Full-viewport opening. Existing feed styling and brand tokens stay in style.css.
   Layers: original app 0, opening 95. Animate only transforms and opacity. */
.boot.intro {
  --intro-duration: 6000ms;
  --shot-width: 31vw;
  --shot-gap: 14px;
  --intro-offset: -.36;
  position: fixed;
  inset: 0;
  display: block;
  overflow: hidden;
  isolation: isolate;
  background: #141115;
  color: #fff9fb;
  touch-action: none;
  transition: opacity .6s ease;
}
.intro-gallery, .intro-shade { position: absolute; inset: 0; pointer-events: none; }
.intro-gallery { overflow: hidden; }
.intro-mobile-wall { display: none; }
.intro-rail {
  display: flex;
  gap: var(--shot-gap);
  height: 100%;
  width: max-content;
  transform: translate3d(calc(var(--shot-width) * var(--intro-offset)), 0, 0);
  animation: intro-drift var(--intro-duration) cubic-bezier(.23,.08,.19,1) both;
  will-change: transform;
}
.intro-shot {
  position: relative;
  flex: 0 0 var(--shot-width);
  width: var(--shot-width);
  height: 100%;
  overflow: hidden;
  background: #443c3e;
}
.intro-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 34%; transform: scale(1.07); animation: intro-portrait var(--intro-duration) ease-out both; }
.intro-shot:nth-child(2n) img { object-position: 50% 25%; animation-direction: reverse; }
.intro-shot:nth-child(4n + 3) img { object-position: 50% 36%; }
.intro-shot.image-missing { background: linear-gradient(160deg,#705155,#211a23); }
.intro-shot.image-missing img { visibility: hidden; }
.intro-shade {
  background: linear-gradient(180deg,rgba(14,9,14,.38),transparent 26%,rgba(14,9,14,.12) 38%,rgba(14,9,14,.69) 65%,rgba(14,9,14,.9)),
    radial-gradient(ellipse 48% 65% at 50% 63%,rgba(15,9,15,.52),transparent 100%);
}
.intro-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(var(--safe-t) + 34px) 48px 0;
}
.intro-brand { display: flex; align-items: center; gap: 10px; }
.intro-brand b { font-size: 25px; font-weight: 750; letter-spacing: -.9px; }
.intro-brand span { width: 27px; height: 27px; color: #ff7094; }
.intro-brand svg, .intro-orbit svg { width: 100%; height: 100%; }
.intro-header-note { font-size: 13px; letter-spacing: .02em; color: rgba(255,249,251,.85); }
.intro-center {
  position: absolute;
  top: 53%; left: 50%;
  width: min(680px, calc(100% - 40px));
  transform: translate(-50%,-40%);
  text-align: center;
}
.intro-orbit { position: relative; display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 25px; }
.intro-orbit span { position: relative; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; padding: 13px; color: #fff9fb; background: #e94774; box-shadow: inset 0 1px 0 rgba(255,255,255,.32); }
.intro-orbit i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255,201,214,.5); animation: intro-ripple 2.4s ease-out infinite; }
.intro-orbit i:nth-child(2) { animation-delay: -1.2s; }
.intro-eyebrow { margin: 0 0 15px; color: #ffd2de; font-size: 11px; font-weight: 650; letter-spacing: .24em; }
.intro h1 { margin: 0; font-size: clamp(36px, 4.5vw, 62px); font-weight: 650; line-height: 1.14; letter-spacing: -.04em; text-shadow: 0 2px 28px rgba(16,9,15,.16); }
.intro h1 span { display: block; }
.intro h1 span + span { color: #ffd2de; }
.intro[lang="zh"] h1 { font-size: clamp(31px, 3.8vw, 51px); font-weight: 600; line-height: 1.35; letter-spacing: .025em; }
.intro-status { min-height: 24px; margin: 20px auto 23px; max-width: 400px; padding: 0 8px; color: rgba(255,249,251,.88); font-size: 14px; line-height: 1.7; }
.intro-progress { width: 150px; height: 2px; overflow: hidden; margin: 0 auto; border-radius: 2px; background: rgba(255,255,255,.23); }
.intro-progress i { display: block; height: 100%; width: 100%; background: #ffa6bd; transform-origin: left; animation: intro-progress var(--intro-duration) linear both; }
.intro-footer { position: absolute; left: 48px; right: 48px; bottom: calc(var(--safe-b) + 31px); display: flex; align-items: center; justify-content: space-between; gap: 16px; color: rgba(255,249,251,.86); font-size: 13px; }
.intro.error .intro-progress, .intro.error .intro-eyebrow, .intro.error .intro-orbit { display: none; }
.intro.error .intro-rail, .intro.error img { animation-play-state: paused; }
.intro.error h1 { font-size: clamp(30px,4vw,46px); }
.intro-error button { padding: 12px 26px; min-height: 44px; border-radius: 24px; background: #c93059; color: #fff; font-weight: 650; font-size: 14px; }
.intro-error button:hover { background: #b92850; }
.intro.error .intro-status { margin-bottom: 22px; }
.intro.waiting .intro-progress i { animation: intro-wait 1.6s ease-in-out infinite; transform-origin: center; }
.intro.is-leaving { opacity: 0; pointer-events: none; }
/* The opaque opening already covers the feed. Do not hide it via visibility:
   browsers may defer hidden video loading, and stale startup code could leave it hidden. */
.is-booting .stage { pointer-events: none; }
@keyframes intro-drift {
  0%,8% { transform: translate3d(calc(var(--shot-width) * var(--intro-offset)),0,0); }
  42%,48% { transform: translate3d(calc(var(--shot-width) * (var(--intro-offset) - 1) - var(--shot-gap)),0,0); }
  82%,100% { transform: translate3d(calc(var(--shot-width) * (var(--intro-offset) - 2) - var(--shot-gap) * 2),0,0); }
}
@keyframes intro-portrait { from { transform: scale(1.07); } to { transform: scale(1); } }
@keyframes intro-ripple { from { transform: scale(.8); opacity: .7; } to { transform: scale(1.65); opacity: 0; } }
@keyframes intro-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes intro-wait { 0%,100% { transform: scaleX(.3); opacity: .5; } 50% { transform: scaleX(.75); opacity: 1; } }
@media (min-width: 1600px) { .boot.intro { --shot-width: 25vw; } }
@media (max-width: 700px) {
  .boot.intro { --shot-width: 100vw; --shot-gap: 7px; --intro-offset: 0; }
  .intro-gallery { display: none; }
  .intro-mobile-wall {
    --wall-gap: 9px;
    --wall-card-height: max(214px, 28vh);
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
    padding: 0 8px;
    background: #f8f7f5;
    pointer-events: none;
  }
  .intro-mobile-track {
    display: flex;
    flex-direction: column;
    width: 100%;
    transform: translate3d(0, -50%, 0);
    animation: intro-mobile-down 18s linear infinite;
    will-change: transform;
  }
  .intro-mobile-group {
    flex: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--wall-gap);
    padding-bottom: var(--wall-gap);
  }
  .intro-mobile-card {
    display: block;
    height: var(--wall-card-height);
    overflow: hidden;
    border-radius: 21px;
    background: #b8aaa1;
  }
  .intro-mobile-card img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
  .intro-mobile-card.image-missing img { visibility: hidden; }
  .intro.error .intro-mobile-track { animation-play-state: paused; }
  .intro-header { padding: calc(var(--safe-t) + 23px) 23px 0; }
  .intro-brand b { font-size: 23px; }
  .intro-brand span { width: 24px; height: 24px; }
  .intro-header-note { font-size: 11px; }
  .intro-center { top: 50%; transform: translate(-50%,-50%); }
  .intro-orbit { width: 56px; height: 56px; margin-bottom: 23px; }
  .intro-orbit span { width: 44px; height: 44px; padding: 12px; }
  .intro h1 { font-size: clamp(35px,10vw,46px); }
  .intro[lang="zh"] h1 { font-size: clamp(30px,8.2vw,39px); }
  .intro-status { font-size: 13px; margin-top: 16px; margin-bottom: 20px; }
  .intro-eyebrow { font-size: 10px; letter-spacing: .2em; margin-bottom: 12px; }
  .intro-shade {
    background: linear-gradient(180deg,rgba(14,9,14,.58),transparent 19%,transparent 83%,rgba(14,9,14,.72)),
      radial-gradient(ellipse 86% 34% at 50% 50%,rgba(14,9,14,.85),rgba(14,9,14,.6) 48%,transparent 100%);
  }
  .intro-footer { left: 23px; right: 23px; bottom: calc(var(--safe-b) + 24px); flex-direction: column; gap: 8px; font-size: 12px; }
}
@supports (height: 1svh) {
  @media (max-width: 700px) { .intro-mobile-wall { --wall-card-height: max(214px, 28svh); } }
}
@keyframes intro-mobile-down { from { transform: translate3d(0, -50%, 0); } to { transform: translate3d(0, 0, 0); } }
@media (max-height: 620px) {
  .intro-center { top: 55%; transform: translate(-50%,-20%); }
  .intro-orbit { display: none; }
  .intro h1, .intro[lang="zh"] h1 { font-size: 30px; }
  .intro-eyebrow { display: none; }
  .intro-status { margin: 12px 0 16px; }
  .intro-footer { bottom: calc(var(--safe-b) + 15px); }
}
@media (prefers-reduced-motion: reduce) {
  .intro-mobile-track { animation: none !important; transform: translate3d(0, -50%, 0); }
  .intro-rail, .intro-shot img, .intro-orbit i, .intro-progress i { animation: none !important; }
  .intro-rail { transform: translate3d(calc(var(--shot-width) * var(--intro-offset)),0,0); }
  .intro-shot img { transform: none; }
  .intro-orbit i:nth-child(2) { display: none; }
  .intro-progress i { transform: scaleX(.5); }
}
