:root {
  color-scheme: dark;
  --bg: #080c14;
  --panel: #101722;
  --panel-2: #182331;
  --line: #2a3646;
  --text: #f4f6fb;
  --muted: #a4b0c1;
  --accent: #7c89ff;
  --accent-deep: #5663da;
  --gold: #f3b955;
  --space: clamp(16px, 2.5vw, 36px);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  background: var(--bg);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
button,
a {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}
.film-shell {
  min-height: 100vh;
  max-width: 1500px;
  margin: auto;
  padding: 0 clamp(16px, 3vw, 48px) 28px;
}
.film-header {
  height: 84px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.film-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.film-brand img,
.library-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.film-brand small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  margin-top: 2px;
}
.film-header__right {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--muted);
  font-size: 13px;
}
.film-audience {
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.text-link {
  color: var(--text);
  font-weight: 700;
}
.text-link:hover {
  color: var(--gold);
}
.guide-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.guide-back:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.film-main {
  max-width: 1280px;
  margin: 24px auto 0;
}
.film-topline {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  margin-bottom: 12px;
}
.film-stage {
  position: relative;
  aspect-ratio: 16/9;
  min-height: 460px;
  overflow: hidden;
  background: radial-gradient(circle at 78% 44%, #1b2840 0%, #111925 37%, #0b111a 75%);
  border: 1px solid #364051;
  border-radius: 16px;
  isolation: isolate;
}
.film-stage:before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 12, 20, 0.74), transparent 62%);
  z-index: -1;
}
.stage-grain {
  position: absolute;
  inset: 0;
  opacity: 0.24;
  pointer-events: none;
  background-image:
    linear-gradient(
      120deg,
      transparent 0 47%,
      rgba(124, 137, 255, 0.18) 47.1% 47.25%,
      transparent 47.4%
    ),
    linear-gradient(
      30deg,
      transparent 0 75%,
      rgba(243, 185, 85, 0.12) 75.1% 75.25%,
      transparent 75.4%
    );
  background-size: 100% 100%;
}
.stage-arc {
  position: absolute;
  width: 60%;
  aspect-ratio: 1;
  border: 1px solid rgba(124, 137, 255, 0.14);
  border-radius: 50%;
  pointer-events: none;
}
.stage-arc--one {
  top: -65%;
  right: -10%;
}
.stage-arc--two {
  top: -44%;
  right: -24%;
  width: 72%;
}
.scene-host {
  height: 100%;
}
.scene {
  position: relative;
  height: 100%;
  padding: clamp(25px, 4vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(15px, 3vw, 48px);
  animation: scene-in 0.6s ease-out both;
}
.scene-copy {
  position: relative;
  z-index: 2;
  max-width: 550px;
}
.scene-kicker,
.eyebrow {
  margin: 0 0 22px;
  color: var(--gold);
  font-size: clamp(11px, 1.05vw, 14px);
  letter-spacing: 0.22em;
  font-weight: 800;
}
.scene h1 {
  font-size: clamp(34px, 4.6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.058em;
  margin: 0 0 25px;
  text-wrap: balance;
}
.scene-lead {
  font-size: clamp(14px, 1.32vw, 20px);
  line-height: 1.55;
  color: #c8d2e0;
  margin: 0;
  text-wrap: pretty;
}
.visual {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.visual-note {
  margin: 18px 0 0;
  color: #aebbd0;
  font-size: clamp(10px, 1vw, 13px);
  text-align: right;
  letter-spacing: 0.02em;
}
.flow-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.flow-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 55px;
  padding: 10px 16px;
  background: linear-gradient(90deg, rgba(39, 54, 80, 0.9), rgba(22, 31, 45, 0.86));
  border: 1px solid rgba(124, 137, 255, 0.3);
  border-left: 3px solid var(--accent);
  border-radius: 9px;
  transform: translateX(18px);
  opacity: 0;
  animation: flow-in 0.52s ease-out forwards;
  animation-delay: calc(0.25s + var(--i) * 0.15s);
}
.flow-item__index {
  font-size: 12px;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.12em;
}
.flow-item strong {
  font-size: clamp(13px, 1.15vw, 17px);
  font-weight: 700;
}
.stat-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.stat-card {
  aspect-ratio: 1/1.08;
  min-height: 120px;
  background: linear-gradient(145deg, #202c41, #141d2c);
  border: 1px solid #46516a;
  border-top: 3px solid var(--accent);
  border-radius: 11px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(22px);
  animation: rise-in 0.6s ease-out forwards;
  animation-delay: calc(0.2s + var(--i) * 0.2s);
}
.stat-card strong {
  font-size: clamp(32px, 3.4vw, 57px);
  line-height: 1;
  font-weight: 850;
  letter-spacing: -0.06em;
  color: var(--text);
}
.stat-card span {
  color: #bac7dc;
  font-size: clamp(11px, 1vw, 15px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.stat-card:nth-child(2) {
  border-top-color: var(--gold);
}
.event-line {
  border-left: 2px solid #5b68ce;
  padding-left: 25px;
  display: grid;
  gap: 12px;
  margin-left: 13px;
}
.event-node {
  position: relative;
  background: rgba(25, 36, 52, 0.94);
  border: 1px solid #41506a;
  padding: 13px 18px;
  border-radius: 8px;
  min-height: 50px;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateY(12px);
  animation: rise-in 0.5s ease forwards;
  animation-delay: calc(0.2s + var(--i) * 0.18s);
}
.event-node__dot {
  position: absolute;
  left: -35px;
  top: 50%;
  width: 16px;
  height: 16px;
  border: 3px solid var(--gold);
  border-radius: 50%;
  background: #0b111a;
  transform: translateY(-50%);
}
.event-node strong {
  font-size: clamp(12px, 1.05vw, 16px);
}
.metric-stack {
  display: grid;
  gap: 11px;
}
.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(25, 36, 52, 0.92);
  border: 1px solid #46536a;
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 16px 20px;
  opacity: 0;
  transform: translateX(20px);
  animation: flow-in 0.55s ease forwards;
  animation-delay: calc(0.2s + var(--i) * 0.18s);
}
.metric-row span {
  font-size: clamp(12px, 1.05vw, 15px);
  color: #b8c4d4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.metric-row strong {
  font-size: clamp(24px, 2.8vw, 42px);
  letter-spacing: -0.05em;
}
.profile-card {
  background: #172231;
  border: 1px solid #536280;
  border-radius: 13px;
  padding: 24px;
  display: grid;
  grid-template-columns: 95px 1fr;
  gap: 20px;
  box-shadow: inset 0 2px 0 var(--accent);
}
.profile-avatar {
  width: 95px;
  height: 95px;
  border-radius: 14px;
  border: 2px solid var(--gold);
  display: grid;
  place-items: center;
  font-size: 53px;
  font-weight: 850;
  color: var(--accent);
  background: #0b1320;
}
.profile-card__identity {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.profile-card__identity small {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 800;
}
.profile-card__identity strong {
  font-size: 36px;
  letter-spacing: -0.04em;
}
.profile-card__identity span {
  font-size: 13px;
  color: #abb8d2;
}
.profile-card__stats {
  grid-column: 1/-1;
  border-top: 1px solid #43516a;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding-top: 18px;
}
.profile-card__stats p {
  display: grid;
  gap: 5px;
  margin: 0;
}
.profile-card__stats strong {
  font-size: 27px;
}
.profile-card__stats span {
  font-size: 11px;
  color: #adb9c8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.equation {
  min-height: 260px;
  border: 1px solid #495979;
  background: linear-gradient(150deg, #1e2b42, #101a29);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 30px);
  text-align: center;
}
.equation span,
.equation strong {
  font-size: clamp(26px, 3.15vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.06em;
}
.equation b {
  color: var(--gold);
  font-size: clamp(25px, 2.6vw, 40px);
}
.equation strong {
  color: var(--accent);
}
.ladder {
  display: grid;
  gap: 6px;
}
.ladder-rung {
  min-height: 43px;
  padding: 9px 17px;
  border: 1px solid #485672;
  background: #1b283a;
  border-radius: 6px;
  display: flex;
  gap: 18px;
  align-items: center;
  opacity: 0;
  transform: translateX(16px);
  animation: flow-in 0.4s ease forwards;
  animation-delay: calc(0.15s + var(--i) * 0.12s);
}
.ladder-rung span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
}
.ladder-rung strong {
  font-size: clamp(13px, 1.15vw, 17px);
  letter-spacing: 0.1em;
}
.ladder-rung:last-child {
  border-color: var(--gold);
}
.leaderboard {
  border: 1px solid #43516b;
  border-radius: 10px;
  overflow: hidden;
  background: #131e2d;
}
.leaderboard__header,
.leaderboard__row {
  display: grid;
  grid-template-columns: 0.65fr 1.8fr 0.9fr 1.3fr;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
}
.leaderboard__header {
  background: #263248;
  color: #b1bed2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.leaderboard__row {
  border-top: 1px solid #34435b;
  opacity: 0;
  transform: translateY(8px);
  animation: rise-in 0.45s ease forwards;
  animation-delay: calc(0.2s + var(--i) * 0.13s);
  font-size: clamp(11px, 1vw, 14px);
}
.leaderboard__row > span:first-child {
  color: var(--gold);
  font-weight: 800;
}
.leaderboard__row em {
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.spotlight {
  min-height: 290px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.spotlight__ring {
  width: 230px;
  height: 230px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow:
    inset 0 0 0 14px rgba(243, 185, 85, 0.06),
    0 0 0 15px rgba(243, 185, 85, 0.04);
  animation: spotlight-in 1s ease-out both;
}
.spotlight__ring strong {
  font-size: clamp(48px, 5vw, 78px);
  letter-spacing: -0.09em;
}
.spotlight p {
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  margin: 24px 0 0;
  text-align: center;
}
.stage-watermark {
  position: absolute;
  right: 22px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(230, 236, 255, 0.45);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.stage-watermark img {
  width: 20px;
  height: 20px;
  opacity: 0.65;
}
.stage-play {
  position: absolute;
  z-index: 5;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(7, 11, 18, 0.43);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 9px;
  backdrop-filter: blur(2px);
}
.stage-play[hidden] {
  display: none;
}
.stage-play > span {
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  background: var(--accent-deep);
  border: 2px solid #a7aeff;
  border-radius: 50%;
  font-size: 24px;
  padding-left: 5px;
  box-shadow: 0 0 0 10px rgba(124, 137, 255, 0.1);
}
.stage-play strong {
  margin-top: 10px;
  font-size: 22px;
}
.stage-play small {
  font-size: 13px;
  color: #d1d8ea;
}
.stage-play:hover > span {
  background: var(--accent);
}
.progress-track {
  height: 5px;
  background: #253146;
  margin: 13px 0 16px;
  border-radius: 10px;
  overflow: hidden;
}
.progress-track span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transition: width 0.08s linear;
}
.film-controls {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.control-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.control-button {
  min-height: 46px;
  padding: 0 16px;
  background: #152030;
  color: var(--text);
  border: 1px solid #3e4d64;
  border-radius: 9px;
  font-weight: 700;
}
.control-button:hover:not(:disabled) {
  background: #24334d;
}
.control-button--primary {
  min-width: 100px;
  background: var(--accent-deep);
  border-color: #8291ff;
}
.control-button--primary:hover {
  background: #6876e6;
}
.scene-count {
  margin-left: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.film-footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 22px;
}
.transcript {
  max-width: 730px;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #d4dce9;
}
.film-disclaimer {
  max-width: 360px;
  margin: 0;
  color: #8694a8;
  font-size: 11px;
  line-height: 1.5;
}
.scene-nav {
  max-width: 1280px;
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.scene-nav__item {
  text-align: left;
  min-height: 74px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  background: #111a27;
  border: 1px solid #2b3749;
  border-radius: 9px;
  color: #b9c4d4;
}
.scene-nav__item:hover,
.scene-nav__item.is-current {
  border-color: var(--accent);
  color: var(--text);
  background: #1c2840;
}
.scene-nav__item span {
  color: var(--gold);
  font-weight: 800;
  font-size: 12px;
}
.scene-nav__item strong {
  font-size: 13px;
  font-weight: 700;
}
.next-chapter {
  position: absolute;
  z-index: 6;
  right: 30px;
  bottom: 44px;
  background: var(--gold);
  color: #111722;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 13px;
}
.next-chapter:hover {
  background: #ffd183;
}
.library-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.library-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.library-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 19px;
}
.library-brand span {
  border-left: 1px solid var(--line);
  padding-left: 12px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.library-shell .eyebrow {
  margin: 90px 0 18px;
}
.library-shell h1 {
  max-width: 830px;
  font-size: clamp(38px, 6vw, 75px);
  line-height: 1.04;
  letter-spacing: -0.06em;
  margin: 0;
}
.library-shell h1 em {
  font-style: normal;
  color: var(--accent);
}
.library-intro {
  max-width: 690px;
  color: #bdc8d8;
  font-size: 18px;
  line-height: 1.6;
  margin: 25px 0 48px;
}
.chapter-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.chapter-link {
  min-height: 118px;
  background: #131d2b;
  border: 1px solid #37465c;
  border-radius: 12px;
  padding: 23px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.chapter-link:hover {
  border-color: var(--accent);
  background: #1a273b;
}
.chapter-link__number {
  font-size: 24px;
  color: var(--gold);
  font-weight: 800;
}
.chapter-link__body {
  display: grid;
  gap: 5px;
  flex: 1;
}
.chapter-link__body strong {
  font-size: 18px;
}
.chapter-link__body small {
  font-size: 13px;
  color: var(--muted);
}
.chapter-link > span:last-child {
  font-size: 25px;
  color: var(--accent);
}
.library-note {
  color: var(--muted);
  line-height: 1.6;
  margin-top: 42px;
  font-size: 12px;
}
@keyframes scene-in {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes flow-in {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes spotlight-in {
  from {
    opacity: 0;
    transform: scale(0.78);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@media (max-width: 900px) {
  .film-stage {
    min-height: 500px;
  }
  .scene {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    padding: 30px;
  }
  .scene h1 {
    font-size: clamp(32px, 5vw, 52px);
  }
  .scene-lead {
    font-size: 14px;
  }
  .stat-card {
    min-height: 105px;
    padding: 12px;
  }
  .event-node {
    padding: 9px 12px;
  }
  .visual-note {
    font-size: 10px;
  }
  .film-footer {
    flex-direction: column;
    gap: 10px;
  }
}
@media (max-width: 680px) {
  .film-shell {
    padding: 0 12px 24px;
  }
  .film-header {
    height: 68px;
  }
  .film-brand {
    font-size: 16px;
  }
  .film-brand img {
    width: 34px;
    height: 34px;
  }
  .film-header__right {
    gap: 10px;
  }
  .film-header__right .text-link {
    display: none;
  }
  .film-audience {
    display: none;
  }
  .film-main {
    margin-top: 14px;
  }
  .film-topline {
    font-size: 9px;
  }
  .film-stage {
    aspect-ratio: auto;
    min-height: 690px;
    border-radius: 11px;
  }
  .scene {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    align-items: start;
    gap: 25px;
    padding: 28px 22px 52px;
  }
  .scene h1 {
    font-size: clamp(34px, 10vw, 50px);
    margin-bottom: 15px;
  }
  .scene-kicker {
    font-size: 10px;
    margin-bottom: 12px;
  }
  .scene-lead {
    font-size: 14px;
  }
  .visual {
    align-self: center;
    width: 100%;
  }
  .visual-note {
    text-align: left;
    margin-top: 11px;
  }
  .stat-card {
    min-height: 120px;
  }
  .stat-cards {
    gap: 6px;
  }
  .stat-card strong {
    font-size: 30px;
  }
  .stat-card span {
    font-size: 10px;
  }
  .equation {
    min-height: 180px;
  }
  .equation span,
  .equation strong {
    font-size: 26px;
  }
  .profile-card {
    padding: 14px;
    grid-template-columns: 70px 1fr;
    gap: 12px;
  }
  .profile-avatar {
    width: 70px;
    height: 70px;
    font-size: 35px;
  }
  .profile-card__identity strong {
    font-size: 25px;
  }
  .profile-card__stats strong {
    font-size: 21px;
  }
  .spotlight {
    min-height: 250px;
  }
  .spotlight__ring {
    width: 185px;
    height: 185px;
  }
  .leaderboard__header,
  .leaderboard__row {
    padding: 9px 7px;
    gap: 5px;
    grid-template-columns: 0.65fr 1.5fr 0.7fr 1.1fr;
  }
  .leaderboard__row {
    font-size: 10px;
  }
  .leaderboard__row em {
    font-size: 9px;
  }
  .film-controls {
    flex-wrap: wrap;
  }
  .control-group {
    flex-wrap: wrap;
  }
  .control-button {
    min-height: 42px;
    padding: 0 12px;
    font-size: 12px;
  }
  .scene-count {
    margin-left: 3px;
  }
  .control-group:last-child {
    margin-left: auto;
  }
  .control-group:last-child .control-button:last-child span {
    display: none;
  }
  .film-footer {
    margin-top: 16px;
  }
  .transcript {
    font-size: 13px;
  }
  .scene-nav {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 20px;
  }
  .scene-nav__item {
    min-height: 64px;
    padding: 10px;
    gap: 7px;
  }
  .scene-nav__item strong {
    font-size: 11px;
  }
  .library-shell {
    padding: 24px 16px 60px;
  }
  .library-brand span {
    display: none;
  }
  .library-shell .eyebrow {
    margin-top: 65px;
  }
  .library-intro {
    font-size: 15px;
  }
  .chapter-grid {
    grid-template-columns: 1fr;
  }
  .chapter-link {
    min-height: 100px;
    padding: 15px;
  }
}
@media (max-width: 380px) {
  .film-stage {
    min-height: 720px;
  }
  .stat-card {
    min-height: 95px;
  }
  .flow-item {
    min-height: 46px;
  }
  .scene {
    padding-left: 17px;
    padding-right: 17px;
  }
  .control-group:last-child {
    margin-left: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
  .scene {
    opacity: 1;
  }
  .flow-item,
  .stat-card,
  .event-node,
  .metric-row,
  .ladder-rung,
  .leaderboard__row {
    opacity: 1;
    transform: none;
  }
}
.scene-nav {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
@media (max-width: 680px) {
  .scene-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* The entry gate and tier conveyor show actual state changes rather than labelled lists. */
.scene[data-visual='tier-motion'],
.scene[data-visual='entry'] {
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
}
.tier-motion {
  display: grid;
  gap: 10px;
}
.tier-motion__level {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 104px;
  padding: 13px 16px;
  border: 1px solid #4b5870;
  border-radius: 10px;
  background: #121d2b;
  overflow: hidden;
}
.tier-motion__level > span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #b7c4d6;
}
.tier-motion__level > strong {
  font-size: clamp(17px, 1.65vw, 23px);
}
.tier-motion__level--up {
  border-color: #e6ad48;
}
.tier-motion__level--down {
  border-color: #727f92;
}
.tier-motion__level--hold {
  min-height: 58px;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}
.tier-motion__level--hold strong {
  font-size: 13px;
  color: #d7e0ee;
}
.tier-motion__teams {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.tier-motion__teams b {
  display: inline-block;
  padding: 5px 7px;
  background: #26354b;
  border: 1px solid #68768b;
  border-radius: 4px;
  font-size: 10px;
  opacity: 0;
  animation: tier-arrive 1.1s ease-out forwards;
  animation-delay: calc(0.45s + var(--team-index, 0) * 0.14s);
}
.tier-motion__teams b:nth-child(2) {
  --team-index: 1;
}
.tier-motion__teams b:nth-child(3) {
  --team-index: 2;
}
.tier-motion__teams b:nth-child(4) {
  --team-index: 3;
}
.tier-motion__level--up .tier-motion__teams b {
  border-color: #e6ad48;
  transform: translateY(95px);
}
.tier-motion__level--down .tier-motion__teams b {
  transform: translateY(-95px);
}
.visual--tier-motion[data-focus='up'] .tier-motion__level--up,
.visual--tier-motion[data-focus='down'] .tier-motion__level--down {
  box-shadow: inset 3px 0 0 var(--gold);
}
.visual--tier-motion[data-focus='down'] .tier-motion__level--down .tier-motion__teams b {
  animation-delay: calc(0.7s + var(--team-index, 0) * 0.14s);
}
@keyframes tier-arrive {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.entry-arena {
  border: 1px solid #52627c;
  border-radius: 12px;
  background: #111b2a;
  padding: 18px;
  display: grid;
  gap: 22px;
  min-height: 300px;
}
.entry-arena__header {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid #42506a;
  padding-bottom: 12px;
}
.entry-arena__header span,
.entry-arena__slot span,
.entry-arena__gate span {
  font-size: 10px;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.12em;
}
.entry-arena__header strong {
  font-size: 21px;
}
.entry-arena__header small {
  font-size: 12px;
  color: #becadd;
}
.entry-arena__lane {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.8fr 1.1fr;
  align-items: center;
  gap: 10px;
}
.entry-arena__lane:before {
  content: '';
  position: absolute;
  left: 13%;
  right: 13%;
  top: 50%;
  height: 2px;
  background: var(--gold);
  z-index: 0;
}
.entry-arena__team,
.entry-arena__gate,
.entry-arena__slot {
  position: relative;
  z-index: 1;
  min-height: 84px;
  background: #202d41;
  border: 1px solid #6b7790;
  border-radius: 8px;
  padding: 10px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  text-align: center;
}
.entry-arena__team {
  animation: team-enter 2.5s ease-out both;
  animation-delay: 0.3s;
}
.entry-arena__team span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--gold);
  border-radius: 6px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
}
.entry-arena__team strong,
.entry-arena__slot b {
  font-size: 11px;
}
.entry-arena__gate b {
  color: #5de0b4;
  font-size: 22px;
}
.entry-arena__slot {
  border-color: var(--gold);
}
.entry-arena__slot b {
  color: #f3ca7f;
}
.entry-arena__status {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
  color: #b5c3d4;
}
.entry-arena__status strong {
  color: var(--gold);
}
.entry-arena__slot b,
.entry-arena__status strong {
  opacity: 0;
  animation: rise-in 0.6s ease forwards;
  animation-delay: 3.2s;
}
.entry-arena__status span:nth-child(2) {
  opacity: 0;
  animation: rise-in 0.5s ease forwards;
  animation-delay: 1.9s;
}
.entry-arena__team {
  animation-duration: 3.4s;
  z-index: 3;
}
@keyframes team-enter {
  0% {
    opacity: 0;
    transform: translateX(-70px);
  }
  20% {
    opacity: 1;
    transform: translateX(0);
  }
  55% {
    opacity: 1;
    transform: translateX(120%);
  }
  80% {
    opacity: 1;
    transform: translateX(205%);
  }
  100% {
    opacity: 0;
    transform: translateX(225%);
  }
}
@media (max-width: 900px) {
  .scene[data-visual='tier-motion'],
  .scene[data-visual='entry'] {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
}
.entry-arena__accepted {
  font-size: 11px;
  color: #fff;
  opacity: 0;
  animation: rise-in 0.6s ease forwards;
  animation-delay: 3.2s;
}
@media (max-width: 680px) {
  .scene[data-visual='tier-motion'],
  .scene[data-visual='entry'] {
    grid-template-columns: 1fr;
  }
  .tier-motion__level {
    min-height: 86px;
    padding: 10px;
  }
  .tier-motion__level--hold {
    min-height: 54px;
  }
  .entry-arena {
    min-height: 240px;
    padding: 11px;
    gap: 12px;
  }
  .entry-arena__lane {
    gap: 5px;
  }
  .entry-arena__team,
  .entry-arena__gate,
  .entry-arena__slot {
    padding: 6px;
    min-height: 70px;
  }
  .entry-arena__header strong {
    font-size: 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tier-motion__teams b,
  .entry-arena__team,
  .entry-arena__slot b,
  .entry-arena__accepted,
  .entry-arena__status span,
  .entry-arena__status strong {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}
