* { box-sizing: border-box; }

:root {
  --ink: #f7f8ff;
  --muted: #a7acc4;
  --blue: #56a8ff;
  --violet: #886cff;
  --gold: #ffbf5a;
  --night: #05060b;
}

html {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  background: var(--night);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--night);
  color: var(--ink);
  font-family: Barlow, system-ui, sans-serif;
}

button, a { font: inherit; }

.tour-home {
  position: fixed;
  z-index: 100;
  top: 25px;
  left: 30px;
  color: #fff;
  text-decoration: none;
  font: 800 17px/1 "Barlow Condensed", sans-serif;
  letter-spacing: .08em;
  text-shadow: 0 2px 15px #000;
}

.tour-home b { color: var(--blue); }

.tour-loader {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  background: #05060b;
  transition: opacity .6s ease, visibility .6s ease;
}

.tour-loader.is-done { opacity: 0; visibility: hidden; }
.tour-loader-mark { font-size: 34px; color: var(--blue); }
.tour-loader p {
  margin: 0;
  color: #8991ae;
  font: 700 12px/1 "Barlow Condensed", sans-serif;
  letter-spacing: .25em;
  text-transform: uppercase;
}

.tour-loader-line {
  width: 180px;
  height: 2px;
  overflow: hidden;
  background: #1a1e2d;
}

.tour-loader-line span {
  display: block;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  animation: loader-slide 1.2s ease-in-out infinite;
}

.tour-story { position: relative; }

.tour-chapter {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: grid;
  place-items: center;
}

.chapter-art,
.chapter-shade {
  position: absolute;
  z-index: -3;
  inset: -5%;
}

.chapter-art {
  background-position: center;
  background-size: cover;
  will-change: transform, filter;
  transform: scale(1.08);
  transition: transform 2.2s cubic-bezier(.16, 1, .3, 1), filter 1.5s ease;
}

.tour-chapter.is-active .chapter-art { transform: scale(1); }

.chapter-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(3, 5, 13, .94) 0%, rgba(3, 5, 13, .54) 48%, rgba(3, 5, 13, .2) 100%),
    linear-gradient(180deg, rgba(2, 3, 8, .3), rgba(2, 3, 8, .72));
}

.chapter-content {
  width: min(1180px, calc(100% - 120px));
  position: relative;
  z-index: 2;
}

.chapter-content > * {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .8s ease, transform .9s cubic-bezier(.16, 1, .3, 1);
}

.tour-chapter.is-active .chapter-content > * {
  opacity: 1;
  transform: none;
}

.tour-chapter.is-active .chapter-content > :nth-child(2) { transition-delay: .08s; }
.tour-chapter.is-active .chapter-content > :nth-child(3) { transition-delay: .16s; }
.tour-chapter.is-active .chapter-content > :nth-child(4) { transition-delay: .24s; }
.tour-chapter.is-active .chapter-content > :nth-child(5) { transition-delay: .32s; }

.chapter-eyebrow,
.chapter-number {
  margin: 0 0 14px;
  color: #8db9ff;
  font: 700 12px/1 "Barlow Condensed", sans-serif;
  letter-spacing: .26em;
  text-transform: uppercase;
}

.chapter-number { color: rgba(255,255,255,.45); }

.chapter-deck {
  max-width: 570px;
  color: var(--muted);
  font-size: clamp(16px, 1.65vw, 21px);
  line-height: 1.55;
}

.chapter-deck strong { color: #fff; }

/* Intro */
.intro-art {
  background-image: url('/images/tour-official/against-the-void.webp');
  filter: saturate(1.2) contrast(1.08);
}

.chapter-intro .chapter-shade {
  background:
    radial-gradient(circle at 52% 44%, transparent 0, rgba(4, 3, 16, .22) 34%, rgba(3, 3, 10, .88) 82%),
    linear-gradient(180deg, rgba(2,3,10,.24), rgba(2,3,10,.82));
}

.intro-content { text-align: center; }

.midnight-mark {
  display: block;
  width: clamp(150px, 17vw, 230px);
  height: auto;
  margin: -30px auto -42px;
  filter: drop-shadow(0 8px 28px rgba(0,0,0,.7));
}

.intro-content h1 {
  margin: 0;
  text-transform: uppercase;
  font-family: "Barlow Condensed", sans-serif;
  line-height: .78;
  filter: drop-shadow(0 12px 30px rgba(0,0,0,.65));
}

.intro-content h1 span {
  display: block;
  font-size: clamp(74px, 15vw, 210px);
  font-weight: 900;
  letter-spacing: -.055em;
  background: linear-gradient(180deg, #fff 28%, #b7c7ff 72%, #6270a1);
  -webkit-background-clip: text;
  color: transparent;
}

.intro-content h1 em {
  display: inline-block;
  margin-top: 26px;
  color: var(--gold);
  font-size: clamp(28px, 4vw, 54px);
  font-style: normal;
  letter-spacing: .32em;
  text-shadow: 0 0 35px rgba(255,176,65,.4);
}

.intro-deck {
  margin: 34px auto 0;
  color: rgba(255,255,255,.78);
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.45;
}

.intro-date {
  margin: 20px 0 0;
  color: rgba(255,255,255,.45);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 28px;
  translate: -50% 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.62);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.scroll-cue i { animation: cue-bounce 1.8s ease-in-out infinite; }

.stars {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: .55;
  background-image:
    radial-gradient(circle, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle, #7cbcff 0 1px, transparent 1.5px);
  background-size: 87px 87px, 143px 143px;
  background-position: 0 0, 30px 60px;
  animation: stars-drift 30s linear infinite;
}
.stars-b { scale: 1.4; opacity: .2; animation-duration: 48s; animation-direction: reverse; }

/* Total */
.total-art {
  background-image: url('/images/tour-official/windrunner-spire.webp');
  background-position: 65% center;
  filter: saturate(.8) brightness(.58);
}

.chapter-total .chapter-shade {
  background: linear-gradient(90deg, #04050c 0%, rgba(4,5,12,.86) 42%, rgba(4,5,12,.2) 82%);
}

.map-lines {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .2;
  background-image:
    linear-gradient(rgba(85,168,255,.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85,168,255,.18) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(90deg, #000, transparent 62%);
  transform: perspective(600px) rotateY(8deg) scale(1.1);
}

.split-content { display: grid; grid-template-columns: minmax(0, 620px) 1fr; }
.stat-story h2 {
  margin: 0 0 20px;
  font: 800 clamp(27px, 3vw, 44px)/1.05 "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.mega-number {
  margin: 10px 0 18px;
  font: 900 clamp(100px, 17vw, 220px)/.9 "Barlow Condensed", sans-serif;
  letter-spacing: -.055em;
  color: #fff;
  text-shadow: 0 0 50px rgba(67,143,255,.3);
}

.mini-facts {
  display: flex;
  gap: 42px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.14);
}

.mini-facts div { display: grid; }
.mini-facts strong {
  font: 800 30px/1 "Barlow Condensed", sans-serif;
  color: #fff;
}
.mini-facts span {
  margin-top: 6px;
  color: #747d9a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* Community impact */
.impact-art {
  background-image: url('/images/tour-official/hope-shall-rise.webp');
  background-position: 62% center;
  filter: saturate(.85) brightness(.48);
}

.chapter-impact .chapter-shade {
  background:
    linear-gradient(90deg, rgba(3,4,10,.96) 0%, rgba(3,4,10,.82) 46%, rgba(3,4,10,.16) 83%),
    linear-gradient(0deg, rgba(3,4,10,.72), transparent 58%);
}

.impact-rays {
  position: absolute;
  z-index: -1;
  inset: -25%;
  pointer-events: none;
  background: conic-gradient(
    from 214deg at 75% 40%,
    transparent 0deg,
    rgba(255,205,112,.11) 8deg,
    transparent 16deg,
    transparent 24deg,
    rgba(120,180,255,.1) 31deg,
    transparent 39deg
  );
  animation: impact-rays 12s ease-in-out infinite alternate;
}

.impact-content { padding-right: 30%; }

.impact-number {
  margin: 10px 0 20px;
  font: 900 clamp(105px, 18vw, 235px)/.9 "Barlow Condensed", sans-serif;
  letter-spacing: -.055em;
  color: #fff;
  text-shadow: 0 0 55px rgba(255,185,83,.25);
}

.impact-content h2 {
  margin: 0 0 22px;
  font: 800 clamp(30px, 4vw, 55px)/1.05 "Barlow Condensed", sans-serif;
  letter-spacing: -.015em;
  text-transform: uppercase;
}

.impact-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(105px, 1fr));
  gap: 1px;
  max-width: 740px;
  margin-top: 38px;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.1);
}

.impact-facts > div {
  min-width: 0;
  padding: 17px 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 3px 9px;
  background: rgba(4,6,13,.74);
  backdrop-filter: blur(14px);
}

.impact-facts i {
  grid-row: 1 / 3;
  color: var(--gold);
  font-size: 14px;
}

.impact-facts strong {
  font: 800 25px/1 "Barlow Condensed", sans-serif;
}

.impact-facts span {
  min-width: 0;
  color: #858da8;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Boss */
.boss-art {
  background-image: url('/images/tour-official/darkness-devours.webp');
  background-position: center;
  filter: saturate(1.05) brightness(.78);
}

.chapter-boss .chapter-shade {
  background:
    linear-gradient(90deg, rgba(3,4,10,.94) 0%, rgba(3,4,10,.7) 40%, rgba(3,4,10,.18) 75%),
    linear-gradient(0deg, rgba(3,4,10,.78), transparent 50%);
}

.boss-glow {
  position: absolute;
  z-index: -1;
  width: 60vw;
  aspect-ratio: 1;
  right: -12vw;
  top: 15%;
  border-radius: 50%;
  background: rgba(93,76,255,.18);
  filter: blur(90px);
  animation: glow-breathe 5s ease-in-out infinite;
}

.boss-content h2,
.raid-content h2,
.pulse-content h2,
.rank-header h2,
.finale-content h2 {
  margin: 0 0 12px;
  max-width: 820px;
  font: 900 clamp(63px, 10vw, 148px)/.92 "Barlow Condensed", sans-serif;
  letter-spacing: -.045em;
  text-transform: uppercase;
  text-shadow: 0 7px 35px rgba(0,0,0,.5);
}

.boss-raid {
  margin: 8px 0 0;
  color: var(--gold);
  font: 700 16px/1 "Barlow Condensed", sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.boss-count {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-top: 36px;
}
.boss-count strong { font: 900 74px/1 "Barlow Condensed", sans-serif; }
.boss-count span {
  max-width: 140px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.corner-caption {
  position: absolute;
  right: 36px;
  bottom: 36px;
  color: rgba(255,255,255,.45);
  font: 700 10px/1 "Barlow Condensed", sans-serif;
  letter-spacing: .22em;
  writing-mode: vertical-rl;
}

/* Raid */
.raid-art {
  background-image: url('/images/tour-official/hope-shall-rise.webp');
  background-position: 58% center;
  filter: saturate(1.1) brightness(.58);
}

.chapter-raid .chapter-shade {
  background:
    radial-gradient(circle at 72% 50%, rgba(94,76,255,.06), rgba(4,5,13,.28) 34%, rgba(4,5,13,.9) 76%),
    linear-gradient(90deg, rgba(4,5,13,.96), rgba(4,5,13,.35));
}

.raid-content { padding-right: 36%; }
.raid-content h2 { font-size: clamp(60px, 9vw, 130px); }

.raid-ring {
  position: absolute;
  top: 50%;
  right: 3%;
  width: min(29vw, 390px);
  aspect-ratio: 1;
  translate: 0 -50%;
  border: 1px solid rgba(120,155,255,.3);
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  background: radial-gradient(circle, rgba(55,91,183,.25), transparent 66%);
  box-shadow: inset 0 0 70px rgba(73,109,255,.11), 0 0 80px rgba(73,109,255,.12);
}

.raid-ring::before,
.raid-ring::after,
.raid-ring-orbit {
  content: '';
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
}
.raid-ring::after { inset: 21%; border-style: dashed; animation: ring-spin 16s linear infinite reverse; }
.raid-ring-orbit { inset: -5%; border-color: rgba(255,190,90,.22); animation: ring-spin 22s linear infinite; }
.raid-ring-orbit::after {
  content: '';
  position: absolute;
  top: 14%;
  left: 11%;
  width: 7px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 16px var(--gold);
}

.raid-ring strong { font: 900 clamp(72px, 9vw, 120px)/.8 "Barlow Condensed", sans-serif; }
.raid-ring small {
  margin-top: 15px;
  color: #9fa7c5;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* Pulse */
.pulse-art {
  background-image: url('/images/tour-official/windrunner-spire.webp');
  filter: saturate(.78) brightness(.36) hue-rotate(8deg);
}

.chapter-pulse .chapter-shade {
  background:
    linear-gradient(180deg, rgba(3,5,12,.46), rgba(3,5,12,.82)),
    radial-gradient(circle at 50% 50%, transparent, #04050b 83%);
}

.pulse-content {
  display: grid;
  grid-template-columns: minmax(360px, .8fr) 1.2fr;
  align-items: end;
  gap: 70px;
}

.pulse-content h2 { font-size: clamp(60px, 8vw, 118px); margin-bottom: 18px; }
.pulse-copy .chapter-deck { margin-top: 4px; }

.pulse-chart {
  position: relative;
  align-self: center;
  height: min(45vh, 390px);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: clamp(4px, .6vw, 10px);
  padding: 36px 0 20px;
  border-bottom: 1px solid rgba(255,255,255,.18);
  background:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 100% 25%;
  overflow: visible;
}

.pulse-bar {
  flex: 1;
  min-width: 8px;
  max-width: 42px;
  height: 0;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #7ac3ff, #4f5fff);
  box-shadow: 0 0 14px rgba(72,118,255,.24);
  transition: height 1s cubic-bezier(.16,1,.3,1), background .2s ease, box-shadow .2s ease;
  transition-delay: calc(var(--i, 0) * 10ms), 0s, 0s;
  cursor: pointer;
  outline: none;
  font-size: 0;
  color: transparent;
  overflow: hidden;
}
.chapter-pulse.is-active .pulse-bar { height: var(--bar-height); }
.pulse-bar:hover,
.pulse-bar:focus-visible,
.pulse-bar.is-hot {
  background: linear-gradient(180deg, #ffe096, #ff9d3d);
  box-shadow: 0 0 18px rgba(255, 173, 74, .45);
}

.pulse-tooltip {
  position: fixed;
  z-index: 300;
  left: 0;
  top: 0;
  transform: translate(-50%, calc(-100% - 2px)) scale(.94);
  min-width: 108px;
  max-width: min(260px, calc(100vw - 20px));
  padding: 9px 12px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 191, 90, .35);
  background:
    linear-gradient(160deg, rgba(18, 22, 40, .96), rgba(8, 10, 18, .98));
  box-shadow:
    0 12px 28px rgba(0, 0, 0, .45),
    0 0 0 1px rgba(255, 255, 255, .04),
    inset 0 1px 0 rgba(255, 255, 255, .06);
  color: #f7f8ff;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
  white-space: nowrap;
}
.pulse-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, calc(-100% - 2px)) scale(1);
}
.pulse-tooltip.is-below {
  transform: translate(-50%, 2px) scale(.94);
}
.pulse-tooltip.is-below.is-visible {
  transform: translate(-50%, 2px) scale(1);
}
.pulse-tooltip::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 9px;
  height: 9px;
  transform: translateX(-50%) rotate(45deg);
  border-right: 1px solid rgba(255, 191, 90, .35);
  border-bottom: 1px solid rgba(255, 191, 90, .35);
  background: rgba(8, 10, 18, .98);
}
.pulse-tooltip.is-below::after {
  top: -5px;
  bottom: auto;
  border-right: 0;
  border-bottom: 0;
  border-left: 1px solid rgba(255, 191, 90, .35);
  border-top: 1px solid rgba(255, 191, 90, .35);
}
.pulse-tooltip strong {
  display: block;
  font: 800 13px/1.1 "Barlow Condensed", sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #ffe096;
}
.pulse-tooltip span {
  display: block;
  margin-top: 4px;
  font: 600 12px/1 Barlow, sans-serif;
  color: #c7cee6;
}

@media (prefers-reduced-motion: reduce) {
  .pulse-tooltip { transition: none; }
}
html.reduce-motion .pulse-tooltip { transition: none; }

/* Rankings */
.rankings-art {
  background-image: url('/images/tour-official/against-the-void.webp');
  filter: grayscale(.3) brightness(.23) saturate(.5);
}

.chapter-rankings .chapter-shade {
  background:
    linear-gradient(115deg, rgba(4,5,11,.96), rgba(4,5,11,.78) 55%, rgba(4,5,11,.55)),
    radial-gradient(circle at 18% 70%, rgba(86,168,255,.12), transparent 40%);
}

.rankings-content {
  padding-block: 28px 18px;
  width: min(1240px, calc(100% - 120px));
}

.rank-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 22px;
}
.rank-header h2 { font-size: clamp(46px, 5.6vw, 78px); }
.rank-header > p {
  margin: 0;
  color: #747d98;
  text-align: right;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rank-champion {
  position: relative;
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr;
  gap: 22px;
  align-items: stretch;
  min-height: 168px;
  margin-bottom: 18px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 191, 90, .28);
  background:
    linear-gradient(110deg, rgba(18, 14, 8, .72), rgba(7, 9, 17, .55)),
    var(--champion-art, none);
  background-size: auto, cover;
  background-position: center, center 20%;
  isolation: isolate;
}
.rank-champion::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5,6,12,.2), rgba(5,6,12,.82) 55%, rgba(5,6,12,.92)),
    linear-gradient(0deg, rgba(5,6,12,.55), transparent 60%);
}
.rank-champion-media {
  position: relative;
  aspect-ratio: 1;
  max-height: 190px;
  overflow: hidden;
  border: 1px solid rgba(255, 191, 90, .4);
  background: rgba(0,0,0,.35);
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
}
.rank-champion-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transform: scale(1.04);
  transition: transform 1.4s cubic-bezier(.16,1,.3,1);
}
.chapter-rankings.is-active .rank-champion-media img { transform: scale(1); }
.rank-champion-media i {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255,191,90,.55);
  font-size: 42px;
  background: radial-gradient(circle, rgba(255,191,90,.12), transparent 65%);
}
.rank-champion-media:has(img) i { display: none; }
.rank-champion-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 8px 10px 8px 0;
}
.rank-champion-tag {
  color: #ffd28a;
  font: 800 12px/1 "Barlow Condensed", sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.rank-champion-copy h3 {
  margin: 8px 0 4px;
  color: #fff;
  font: 900 clamp(36px, 4.5vw, 64px)/.9 "Barlow Condensed", sans-serif;
  letter-spacing: -.03em;
  text-transform: uppercase;
  text-shadow: 0 4px 24px rgba(0,0,0,.55);
}
.rank-champion-copy > p {
  margin: 0 0 14px;
  color: #aeb6d0;
  font-size: 14px;
}
.rank-champion-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.rank-champion-stat strong {
  font: 900 clamp(34px, 4vw, 52px)/1 "Barlow Condensed", sans-serif;
  color: #ffe096;
}
.rank-champion-stat span {
  color: #8b93ad;
  font: 700 11px/1 "Barlow Condensed", sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.rank-panels {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
}

.rank-board {
  padding: 18px 18px 12px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(7,9,17,.72);
  backdrop-filter: blur(18px);
}

.rank-board h3 {
  margin: 0 0 12px;
  color: #fff;
  font: 800 15px/1 "Barlow Condensed", sans-serif;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.rank-board h3 i { width: 20px; color: var(--gold); }

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rank-row {
  display: grid;
  grid-template-columns: 28px 52px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 6px;
  border: 1px solid transparent;
  background: rgba(255,255,255,.02);
  transition: border-color .2s ease, background .2s ease, transform .35s ease, opacity .45s ease;
  opacity: 0;
  transform: translateY(12px);
}
.chapter-rankings.is-active .rank-row {
  opacity: 1;
  transform: none;
  transition-delay: calc(.12s + var(--i, 0) * .05s);
}
.rank-row.is-lead {
  border-color: rgba(255, 191, 90, .28);
  background:
    linear-gradient(90deg, rgba(255,191,90,.12), rgba(255,255,255,.03) 55%);
}
.rank-position {
  color: #6a7390;
  font: 700 13px/1 "Barlow Condensed", sans-serif;
  text-align: center;
}
.rank-row.is-lead .rank-position { color: #ffd28a; }

.rank-media {
  position: relative;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  background:
    radial-gradient(circle at 30% 20%, rgba(86,168,255,.18), transparent 55%),
    rgba(0,0,0,.35);
  flex-shrink: 0;
}
.rank-row.is-lead .rank-media {
  border-color: rgba(255, 191, 90, .45);
  box-shadow: 0 0 0 1px rgba(255,191,90,.12), 0 8px 18px rgba(0,0,0,.35);
}
.rank-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.rank-media i {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  color: #7d86a3;
  font-size: 18px;
  background: rgba(10,12,20,.55);
}
.rank-media.is-fallback i,
.rank-media:not(:has(img)) i {
  display: grid;
}

.rank-copy { min-width: 0; }
.rank-copy strong {
  display: block;
  color: #f2f4ff;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-copy small {
  display: block;
  margin-top: 2px;
  color: #7d86a3;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-value {
  align-self: start;
  padding-top: 2px;
  color: #e8ecff;
  font: 800 20px/1 "Barlow Condensed", sans-serif;
}
.rank-row.is-lead .rank-value { color: #ffe096; }

.rank-track {
  height: 3px;
  margin-top: 8px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
}
.rank-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #56a8ff, #886cff);
  transition: width 1s .35s cubic-bezier(.16,1,.3,1);
}
.rank-row.is-lead .rank-track span {
  background: linear-gradient(90deg, #ffd28a, #ff9d3d);
}
.chapter-rankings.is-active .rank-track span { width: var(--rank-width); }
.tour-empty { color: #747d98; margin: 8px 2px; }

/* Finale */
.finale-art {
  background-image: url('/images/tour-official/hope-shall-rise.webp');
  background-position: center 35%;
  filter: brightness(.53) saturate(.9) hue-rotate(8deg);
}
.chapter-finale .chapter-shade {
  background:
    radial-gradient(circle at 50% 35%, transparent, rgba(3,4,10,.45) 43%, rgba(3,4,10,.92) 90%),
    linear-gradient(0deg, rgba(3,4,10,.92), transparent 55%);
}
.finale-content { text-align: center; }
.finale-content h2 {
  margin-inline: auto;
  font-size: clamp(75px, 12vw, 170px);
}
.finale-content h2 span {
  background: linear-gradient(90deg, #79bfff, #a48bff, #ffbf69);
  -webkit-background-clip: text;
  color: transparent;
}
.finale-content > p:not(.chapter-eyebrow) { color: #b5bad0; font-size: 20px; }
.finale-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}
.tour-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 22px;
  border: 1px solid transparent;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  border-radius: 4px;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.tour-btn:hover { transform: translateY(-2px); }
.tour-btn.primary { background: linear-gradient(135deg, #287df0, #7658ed); box-shadow: 0 12px 35px rgba(54,94,231,.3); }
.tour-btn.ghost { border-color: rgba(255,255,255,.23); background: rgba(255,255,255,.05); }
.privacy-seal {
  margin-top: 28px;
  color: rgba(255,255,255,.42);
  font-size: 11px;
  letter-spacing: .08em;
}

/* Navigation rail */
.tour-rail {
  position: fixed;
  z-index: 80;
  right: 22px;
  top: 50%;
  translate: 0 -50%;
  display: grid;
  gap: 12px;
}
.tour-rail button {
  position: relative;
  width: 100px;
  display: grid;
  grid-template-columns: 20px 28px 1fr;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  color: rgba(255,255,255,.28);
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.tour-rail button span {
  font: 600 9px/1 "Barlow Condensed", sans-serif;
  transition: color .25s;
}
.tour-rail button i {
  display: block;
  width: 20px;
  height: 1px;
  background: currentColor;
  transition: width .3s, background .3s;
}
.tour-rail button b {
  opacity: 0;
  font: 700 9px/1 "Barlow Condensed", sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity .25s;
}
.tour-rail button:hover,
.tour-rail button.is-active { color: #fff; }
.tour-rail button.is-active i { width: 28px; background: var(--gold); }
.tour-rail button:hover b,
.tour-rail button.is-active b { opacity: 1; }

.tour-sound {
  position: fixed;
  z-index: 80;
  left: 28px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 99px;
  color: rgba(255,255,255,.55);
  background: rgba(5,6,12,.45);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.tour-sound.is-off i { opacity: .35; }

.reduce-motion * {
  animation-duration: .001ms !important;
  animation-iteration-count: 1 !important;
  scroll-behavior: auto !important;
  transition-duration: .001ms !important;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

@keyframes loader-slide {
  from { transform: translateX(-120%); }
  to { transform: translateX(300%); }
}
@keyframes cue-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}
@keyframes stars-drift { to { transform: translate3d(30px, 87px, 0); } }
@keyframes glow-breathe {
  0%,100% { scale: .9; opacity: .65; }
  50% { scale: 1.1; opacity: 1; }
}
@keyframes ring-spin { to { transform: rotate(360deg); } }
@keyframes impact-rays {
  from { transform: rotate(-2deg) scale(.96); opacity: .65; }
  to { transform: rotate(3deg) scale(1.05); opacity: 1; }
}

@media (max-width: 900px) {
  .chapter-content { width: calc(100% - 56px); }
  .tour-rail { display: none; }
  .raid-content { padding-right: 0; }
  .impact-content { padding-right: 0; }
  .impact-facts { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
  .raid-ring {
    position: relative;
    top: auto;
    right: auto;
    translate: none;
    width: 220px;
    margin-top: 35px;
  }
  .pulse-content { grid-template-columns: 1fr; gap: 25px; }
  .pulse-chart { height: 220px; }
  .rankings-content {
    width: calc(100% - 56px);
    padding-block: 70px 35px;
  }
  .rank-champion {
    grid-template-columns: 120px 1fr;
    min-height: 0;
  }
  .rank-panels { grid-template-columns: 1fr; }
  .rank-board { padding: 16px 14px 10px; }
  .chapter-rankings { height: auto; min-height: 100svh; }
}

@media (max-width: 620px) {
  html { scroll-snap-type: y proximity; }
  .tour-home { top: 18px; left: 18px; }
  .tour-sound { left: 16px; bottom: 14px; }
  .chapter-content { width: calc(100% - 36px); }
  .intro-content h1 em { letter-spacing: .2em; }
  .mega-number { font-size: clamp(90px, 31vw, 145px); }
  .impact-number { font-size: clamp(90px, 31vw, 145px); }
  .impact-facts { margin-top: 24px; }
  .impact-facts > div { padding: 13px 10px; }
  .mini-facts { gap: 18px; justify-content: space-between; }
  .mini-facts strong { font-size: 24px; }
  .boss-content h2,
  .raid-content h2,
  .pulse-content h2 { font-size: clamp(55px, 19vw, 90px); }
  .boss-count strong { font-size: 56px; }
  .rank-header { display: block; }
  .rank-header > p { display: none; }
  .rankings-content { width: calc(100% - 24px); }
  .rank-champion {
    grid-template-columns: 96px 1fr;
    gap: 14px;
    padding: 10px;
  }
  .rank-champion-copy h3 { font-size: clamp(28px, 9vw, 40px); }
  .rank-row {
    grid-template-columns: 22px 42px 1fr auto;
    gap: 8px;
    padding: 7px 6px;
  }
  .rank-media { width: 42px; height: 42px; }
  .rank-copy strong { font-size: 13px; }
  .rank-value { font-size: 17px; }
  .finale-content h2 { font-size: clamp(68px, 22vw, 110px); }
  .finale-actions { flex-direction: column; align-items: stretch; }
  .tour-btn { justify-content: center; }
}
