/* ================================================================
   VINALL REPLAY — the look.

   Built on VINALL's own parts (Instrument Sans at display weight, Plex Mono
   for every number, the near-black ground, the record as the motif) and
   pushed further for one feature: the colour comes from the records
   themselves. --p1/--p2/--p3 are sampled from the period's leading sleeves
   and registered with @property so a scene change GLIDES the whole room from
   one palette to the next rather than cutting.

   Motion rules, because this is where it is easiest to ruin:
     * Only transform and opacity animate. Blur is baked into gradients, never
       an animated filter on a full-screen layer.
     * Every reveal runs ONCE on arrival and stops. The only things that loop
       are the slow background light and the turning record.
     * Scrolling or travelling gradients use pixels, never percentages.
     * Reduced motion: no travel, no loops — scenes simply fade.
   ================================================================ */
@property --p1 { syntax: '<color>'; inherits: true; initial-value: #3a1d4a; }
@property --p2 { syntax: '<color>'; inherits: true; initial-value: #b8432f; }
@property --p3 { syntax: '<color>'; inherits: true; initial-value: #f5c842; }

:root { --rp-ease: cubic-bezier(.2, .8, .2, 1); --rp-ease-out: cubic-bezier(.16, 1, .3, 1); }
body[data-section="replay"] { --section: var(--c-pink); --section-dim: var(--c-pink-dim); }

/* ---- shared ------------------------------------------------------------- */
.rp-kicker { font: 600 11px/1 var(--font-mono); letter-spacing: .22em; text-transform: uppercase; color: color-mix(in srgb, var(--p3) 70%, #fff); }
.rp-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.rp-demo-tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
  font: 700 10px/1 var(--font-mono); letter-spacing: .18em; text-transform: uppercase;
  color: #1a1206; background: repeating-linear-gradient(45deg, #f5c842 0 8px, #ffdd73 8px 16px);
}

/* ================================================================
   HOME
   ================================================================ */
/* Until a record's own artwork repaints it (applyPal), the home card wears
   the equipped theme: its violet slot, its secondary and its accent. */
.rp-home { --p1: color-mix(in srgb, var(--hue-2) 28%, var(--bg)); --p2: color-mix(in srgb, var(--accent-2) 75%, #000); --p3: var(--gold); }
.rp-hero {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 28px; min-height: 360px; padding: clamp(22px, 4vw, 44px);
  display: grid; align-content: end; gap: 14px; margin-bottom: var(--s5, 24px);
  background: color-mix(in srgb, var(--p1) 30%, var(--bg)); border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 40px 90px -50px color-mix(in srgb, var(--p2) 80%, transparent), inset 0 1px 0 rgba(255,255,255,.06);
  transition: --p1 1.2s var(--rp-ease), --p2 1.2s var(--rp-ease), --p3 1.2s var(--rp-ease);
}
.rp-hero::before {
  content: ''; position: absolute; inset: -20%; z-index: -2;
  background:
    radial-gradient(42% 52% at 18% 22%, color-mix(in srgb, var(--p1) 85%, transparent), transparent 70%),
    radial-gradient(40% 50% at 82% 28%, color-mix(in srgb, var(--p2) 70%, transparent), transparent 70%),
    radial-gradient(46% 54% at 62% 92%, color-mix(in srgb, var(--p3) 45%, transparent), transparent 72%);
  animation: rpDrift 22s ease-in-out infinite alternate;
}
.rp-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,6,10,.1) 10%, rgba(7,6,10,.55) 52%, rgba(7,6,10,.9) 94%); }
.rp-hero-word {
  font: 800 clamp(72px, 16vw, 184px)/.8 var(--font-display); letter-spacing: -.065em; margin: 0;
  background: linear-gradient(100deg, #fff 0%, color-mix(in srgb, var(--p3) 60%, #fff) 45%, #fff 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rp-hero-sub { color: rgba(255,255,255,.78); font-size: clamp(15px, 2vw, 18px); max-width: 38ch; margin: 0; text-wrap: pretty; }
.rp-hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 6px; }
/* The headline numbers count up on arrival (countUps, once per render). */
.rp-hero-stats { display: flex; flex-wrap: wrap; gap: 6px clamp(18px, 4vw, 40px); margin: 2px 0 4px; }
.rp-hstat { display: grid; gap: 4px; min-width: 0; }
.rp-hstat b { font: 800 clamp(30px, 5vw, 48px)/.9 var(--font-display); letter-spacing: -.045em; color: #fff; }
.rp-hstat b .rp-num { font-family: inherit; }
.rp-hstat span { font: 600 10.5px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: color-mix(in srgb, var(--p3) 55%, rgba(255,255,255,.7)); }
.rp-play {
  display: inline-flex; align-items: center; gap: 12px; border: 0; cursor: pointer;
  padding: 15px 24px 15px 18px; border-radius: 999px; color: #0b0810; background: #fff;
  font: 700 16px/1 var(--font-display); letter-spacing: -.01em;
  box-shadow: 0 18px 50px -18px color-mix(in srgb, var(--p2) 80%, transparent), 0 0 0 6px rgba(255,255,255,.08);
  transition: transform 220ms var(--rp-ease), box-shadow 220ms var(--rp-ease);
}
.rp-play i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #0b0810; color: #fff; font-style: normal; font-size: 12px; }
.rp-play:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .rp-play:hover { transform: translateY(-2px); box-shadow: 0 22px 60px -16px color-mix(in srgb, var(--p2) 90%, transparent), 0 0 0 8px rgba(255,255,255,.1); } }
.rp-ghost { display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.07); color: #fff; padding: 13px 18px; border-radius: 999px; font: 600 14px/1 var(--font-body); cursor: pointer; backdrop-filter: blur(8px); }
.rp-ghost i { font-style: normal; font-size: 10px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #0b0810; }
.rp-hero-record {
  position: absolute; z-index: -1; right: -70px; top: -70px; width: clamp(220px, 34vw, 380px); aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle, var(--p3) 0 7%, #120d14 7.5% 15%, transparent 15.5%),
    repeating-radial-gradient(circle, rgba(255,255,255,.06) 0 1px, transparent 1px 4px),
    radial-gradient(circle, #1b1520, #07060a 70%);
  box-shadow: 0 30px 80px rgba(0,0,0,.6); opacity: .9; animation: vinylSpin 14s linear infinite;
}
/* The sleeve collage: the period's own records, tilted into a loose stack on
   the right. Static on purpose; the record behind it is what turns. */
.rp-collage { position: absolute; z-index: -1; right: clamp(18px, 5vw, 64px); top: 50%; width: min(46%, 420px); aspect-ratio: 1.25; transform: translateY(-58%); pointer-events: none; }
.rp-collage img {
  position: absolute; width: 44%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: #1b1820;
  box-shadow: 0 22px 50px -10px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.08);
}
.rp-collage img:nth-child(1) { left: 28%; top: 14%; width: 50%; z-index: 3; transform: rotate(-3deg); }
.rp-collage img:nth-child(2) { left: 2%; top: 30%; z-index: 2; transform: rotate(-11deg); }
.rp-collage img:nth-child(3) { left: 58%; top: 4%; z-index: 2; transform: rotate(9deg); }
.rp-collage img:nth-child(4) { left: 62%; top: 46%; width: 36%; z-index: 1; transform: rotate(14deg); opacity: .85; }
.rp-collage img:nth-child(5) { left: 10%; top: 0; width: 30%; z-index: 1; transform: rotate(-18deg); opacity: .7; }
.rp-collage img:nth-child(6) { left: 34%; top: 60%; width: 30%; z-index: 1; transform: rotate(6deg); opacity: .7; }
/* Arrival: the stack deals in once, nearest last. Individual transforms are
   the resting pose, so the deal uses `translate`/`scale` (independent
   properties) and never touches `transform` (trap 2). */
.rp-collage img { animation: rpDeal 900ms var(--rp-ease-out) calc(120ms + var(--i, 0) * 70ms) backwards; }
@keyframes rpDeal { from { opacity: 0; translate: 0 26px; scale: .86; } }

.rp-seg { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); margin-bottom: var(--s4, 18px); }
.rp-seg button { border: 0; background: transparent; color: var(--text-dim); padding: 10px 18px; min-height: 40px; border-radius: 999px; font: 600 13px/1 var(--font-body); }
.rp-seg button[aria-pressed="true"] { background: var(--text); color: var(--bg); }

/* ---- the period cards ---- */
.rp-timeline { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.rp-card {
  position: relative; overflow: hidden; isolation: isolate; text-align: left; cursor: pointer;
  border-radius: 22px; padding: 16px; min-height: 236px; display: grid; align-content: end; gap: 4px;
  background: #0d0b11; border: 1px solid rgba(255,255,255,.07); color: #fff; font: inherit;
  transition: transform 280ms var(--ease), border-color 200ms var(--ease), box-shadow 280ms var(--ease);
}
.rp-card::before { content: ''; position: absolute; inset: 0; z-index: -2; background: radial-gradient(90% 70% at 20% 0%, color-mix(in srgb, var(--c1, #3a1d4a) 75%, transparent), transparent 70%), radial-gradient(80% 60% at 100% 100%, color-mix(in srgb, var(--c2, #b8432f) 50%, transparent), transparent 70%); opacity: .95; }
.rp-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(8,6,11,.88) 82%); }
.rp-card-covers { position: absolute; top: 16px; left: 16px; right: 16px; height: 46%; z-index: -1; display: block; }
.rp-card-covers img {
  position: absolute; top: 0; height: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: #1b1820;
  box-shadow: 0 12px 28px -6px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.07);
  left: calc(var(--i) * 17%); transform: rotate(calc((var(--i) - 1.5) * 4deg)); z-index: calc(4 - var(--i));
}
.rp-card-kind { font: 600 10px/1 var(--font-mono); letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.rp-card b { font: 800 22px/1.02 var(--font-display); letter-spacing: -.03em; }
.rp-card small { color: rgba(255,255,255,.68); font: 500 12px/1.35 var(--font-mono); letter-spacing: .01em; padding-right: 40px; }
.rp-card-go { position: absolute; right: 14px; bottom: 14px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #0b0810; font-size: 11px; box-shadow: 0 10px 26px -8px rgba(0,0,0,.6); transition: transform 280ms var(--rp-ease); }
.rp-card.lead { grid-column: span 2; min-height: 280px; }
.rp-card.lead b { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.045em; }
.rp-card.lead .rp-card-covers { height: 54%; }
.rp-card.lead .rp-card-covers img { left: calc(var(--i) * 13%); }
.rp-chip { position: absolute; top: 12px; right: 12px; z-index: 1; font: 600 10px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; background: rgba(0,0,0,.5); color: #fff; backdrop-filter: blur(8px); }
.rp-chip.live { background: color-mix(in srgb, var(--c-lime) 30%, rgba(0,0,0,.5)); }
.rp-chip.new { background: #fff; color: #0b0810; box-shadow: 0 0 0 0 rgba(255,255,255,.5); animation: rpChip 2.6s ease-out 3; }
@keyframes rpChip { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.45); } 70%, 100% { box-shadow: 0 0 0 10px rgba(255,255,255,0); } }
/* A finished period nobody has opened yet is a present: lit edge, a little
   more of its own colour. */
.rp-card.fresh { border-color: color-mix(in srgb, var(--c2, #b8432f) 55%, rgba(255,255,255,.2)); box-shadow: 0 24px 60px -34px color-mix(in srgb, var(--c2, #b8432f) 90%, transparent); }
.rp-card.thin { opacity: .62; }
@media (hover: hover) and (pointer: fine) {
  .rp-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.18); }
  .rp-card:hover .rp-card-go { transform: scale(1.12); }
}
.rp-card:active { transform: scale(.985); }
.rp-empty { text-align: center; padding: 36px 18px; border-radius: 24px; border: 1px dashed var(--border-strong); }
.rp-empty h3 { font: 700 22px/1.2 var(--font-display); margin: 0 0 8px; }
.rp-empty p { color: var(--text-dim); max-width: 46ch; margin: 0 auto 18px; }
.rp-empty .rp-hero-row { justify-content: center; }
.rp-note { color: var(--text-faint); font-size: 12.5px; margin-top: 18px; }

/* ---- the minigames teaser ----
   A strip, not a button. The sheen is a pixel tile at 90deg with identical
   end stops, travelling exactly one tile, so it loops without a seam (the
   scrolling-gradient rule). */
.rp-teaser {
  position: relative; overflow: hidden; overflow: clip; isolation: isolate;
  display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 12px; margin: 0 0 var(--s5, 24px);
  border-radius: 18px; border: 1px solid rgba(255,255,255,.09);
  background: linear-gradient(100deg, color-mix(in srgb, var(--c-violet) 16%, #0d0b11), #0d0b11 55%, color-mix(in srgb, var(--c-cyan) 12%, #0d0b11));
  color: #fff; cursor: default;
}
.rp-teaser-sheen {
  position: absolute; z-index: -1; top: 0; bottom: 0; left: -360px; width: calc(100% + 720px); pointer-events: none;
  background: linear-gradient(90deg, transparent 0, transparent 120px, rgba(255,255,255,.09) 180px, transparent 240px, transparent 360px) 0 0 / 360px 100% repeat-x;
  animation: rpSheen 5.5s linear infinite;
}
@keyframes rpSheen { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(360px, 0, 0); } }
.rp-teaser-tiles { display: flex; flex: 0 0 auto; }
.rp-teaser-tiles i {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; margin-right: -8px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--t) 34%, #16131c), #0d0b11);
  border: 1px solid color-mix(in srgb, var(--t) 45%, transparent);
  box-shadow: 0 8px 20px -8px rgba(0,0,0,.8); color: color-mix(in srgb, var(--t) 70%, #000);
}
.rp-teaser-tiles i:nth-child(1) { transform: rotate(-8deg); }
.rp-teaser-tiles i:nth-child(2) { transform: translateY(-3px); z-index: 1; }
.rp-teaser-tiles i:nth-child(3) { transform: rotate(8deg); }
.rp-teaser-tiles svg { width: 22px; height: 22px; fill: currentColor; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--t) 60%, transparent)); }
.rp-teaser-t { display: grid; gap: 3px; min-width: 0; margin-left: 10px; flex: 1; }
.rp-teaser-t b { font: 750 15px/1.1 var(--font-display); letter-spacing: -.01em; }
.rp-teaser-t small { font: 500 11px/1.2 var(--font-mono); letter-spacing: .06em; color: rgba(255,255,255,.58); }
.rp-soon {
  flex: 0 0 auto; font: 700 10px/1 var(--font-mono); font-style: normal; letter-spacing: .2em; text-transform: uppercase;
  padding: 7px 10px; border-radius: 999px; color: #0b0810;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-violet) 55%, var(--c-pink));
}
.rp-home-card .rp-teaser { margin-top: 10px; }

/* ---- locked ---- */
.rp-locked { min-height: 0; align-content: start; padding-top: clamp(26px, 4vw, 44px); }
.rp-locked .rp-hero-record { opacity: .45; }
.rp-locked .rp-collage { opacity: .32; filter: saturate(.6); }
.rp-locked::after { background: linear-gradient(180deg, rgba(7,6,10,.45), rgba(7,6,10,.86) 70%); }
.rp-lock-badge {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #0b0810;
  background: linear-gradient(150deg, #fff, color-mix(in srgb, var(--p3) 70%, #fff));
  box-shadow: 0 16px 40px -12px color-mix(in srgb, var(--p3) 70%, transparent), 0 0 0 6px rgba(255,255,255,.07);
}
.rp-lock-badge svg { width: 26px; height: 26px; }
.rp-lock-title { font: 800 clamp(34px, 6.2vw, 64px)/.95 var(--font-display); letter-spacing: -.045em; margin: 0; max-width: 14ch; text-wrap: balance; }
.rp-lock-meter { display: grid; gap: 10px; max-width: 420px; }
.rp-lock-pips { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; }
.rp-lock-pips i { height: 10px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; }
.rp-lock-pips i em { display: block; height: 100%; border-radius: inherit; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--p3), color-mix(in srgb, var(--p2) 60%, #fff)); }
.rp-lock-pips i.on em { transform: none; animation: rpPip 700ms var(--rp-ease-out) calc(200ms + var(--i) * 110ms) backwards; box-shadow: 0 0 14px color-mix(in srgb, var(--p3) 70%, transparent); }
.rp-lock-count { font: 500 12.5px/1 var(--font-mono); letter-spacing: .08em; color: rgba(255,255,255,.7); }
.rp-lock-count b { color: #fff; font-size: 15px; }
.rp-lock-needs { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; max-width: 520px; }
.rp-lock-needs li { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09); backdrop-filter: blur(10px); }
.rp-need-ico { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; font: 700 16px/1 var(--font-body); background: rgba(255,255,255,.1); color: #fff; }
.rp-need-ico.sp { background: #1ed760; color: #0b0810; }
.rp-need-t { display: grid; gap: 3px; min-width: 0; flex: 1; }
.rp-need-t b { font: 650 14px/1.15 var(--font-body); }
.rp-need-t small { font-size: 12px; line-height: 1.35; color: rgba(255,255,255,.62); }
.rp-need-btn { flex: 0 0 auto; border: 0; cursor: pointer; padding: 10px 14px; min-height: 40px; border-radius: 999px; background: #fff; color: #0b0810; font: 700 13px/1 var(--font-body); }
.rp-locked.compact .rp-lock-title { font-size: clamp(30px, 7vw, 46px); }
.rp-locked.compact .rp-lock-needs li:nth-child(2) { padding-top: 8px; padding-bottom: 8px; }

/* Home card that invites people in, above Today. */
.rp-home-card { margin-bottom: var(--s5, 24px); }
.rp-home-card .rp-hero { min-height: 230px; margin: 0; border-radius: 24px; cursor: pointer; }
.rp-home-card .rp-hero.rp-locked { cursor: default; min-height: 0; }
.rp-home-card .rp-hero-word { font-size: clamp(54px, 12vw, 92px); }
.rp-home-card .rp-hero-record { width: 200px; right: -54px; top: -54px; }
.rp-home-card .rp-collage { width: min(42%, 300px); }
.rp-home-card .rp-hstat b { font-size: clamp(24px, 4vw, 34px); }
.rp-play-sm { justify-self: start; padding: 11px 18px 11px 12px; font-size: 14px; }
.rp-play-sm i { width: 24px; height: 24px; font-size: 10px; }
.rp-home-card .rp-hero:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
/* Unlocked, just now: the card arrives with a ring of its own light. */
.rp-unlocked { animation: rpUnlock 1.4s var(--rp-ease-out) backwards; }
.rp-unlocked .rp-kicker { color: #fff; }
@keyframes rpUnlock { from { opacity: 0; transform: scale(.94); } 60% { opacity: 1; } }

/* After the img rules above, or they lose (trap 1). */
@media (max-width: 699px) {
  .rp-collage { right: 10px; top: 14px; width: 54%; transform: none; }
  .rp-hero.rp-feature, .rp-home-card .rp-hc { padding-top: 168px; }
  .rp-home-card .rp-collage { width: 50%; top: 10px; }
  .rp-home-card .rp-hc { padding-top: 132px; min-height: 0; }
  .rp-locked .rp-collage { width: 46%; }
  .rp-locked.compact .rp-collage { display: none; }
  .rp-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rp-card { min-height: 196px; padding: 12px; border-radius: 18px; }
  .rp-card.lead { min-height: 250px; }
  .rp-card b { font-size: 17px; }
  .rp-card.lead b { font-size: 30px; }
  .rp-card-covers { top: 12px; left: 12px; right: 12px; height: 40%; }
  .rp-card small { padding-right: 34px; font-size: 11px; }
  .rp-card-go { width: 28px; height: 28px; right: 10px; bottom: 10px; font-size: 9px; }
  .rp-hero { min-height: 300px; }
  .rp-lock-needs li { flex-wrap: wrap; }
  .rp-lock-needs .rp-need-t { flex-basis: calc(100% - 50px); }
  .rp-lock-needs .rp-need-btn, .rp-lock-needs .rp-soon { margin-left: 46px; }
}

@keyframes rpPip { from { transform: scaleX(0); } }
/* ================================================================
   THE STORY
   ================================================================ */
#rp-story.modal {
  padding: 0; background: #07060a; backdrop-filter: none; z-index: 230;
  align-items: stretch; justify-content: stretch; overflow: hidden; overflow: clip; color: #fff;
  transition: opacity 220ms var(--rp-ease), --p1 1.4s var(--rp-ease), --p2 1.4s var(--rp-ease), --p3 1.4s var(--rp-ease), display 220ms allow-discrete;
  -webkit-user-select: none; user-select: none; touch-action: manipulation;
}
/* overflow: CLIP, not hidden. A hidden box can still be scrolled by focus or
   scrollIntoView, and one nudge slid the whole room 256px sideways. */
.rp-room { position: absolute; inset: 0; overflow: hidden; overflow: clip; background: radial-gradient(140% 90% at 50% 0%, color-mix(in srgb, var(--p1) 70%, #07060a), #07060a 75%); }
/* The light. Three soft pools in the palette, drifting slowly. Radial
   gradients with long tails ARE the blur — nothing here runs filter. */
.rp-bg { position: absolute; inset: -25%; pointer-events: none; }
.rp-bg i { position: absolute; width: 58%; height: 58%; border-radius: 50%; will-change: transform; }
.rp-bg i:nth-child(1) { left: 2%; top: 4%; background: radial-gradient(closest-side, color-mix(in srgb, var(--p1) 90%, transparent), transparent); animation: rpBlobA 19s ease-in-out infinite alternate; }
.rp-bg i:nth-child(2) { right: 0; top: 30%; background: radial-gradient(closest-side, color-mix(in srgb, var(--p2) 52%, transparent), transparent); animation: rpBlobB 23s ease-in-out infinite alternate; }
.rp-bg i:nth-child(3) { left: 14%; bottom: 0; background: radial-gradient(closest-side, color-mix(in srgb, var(--p3) 26%, transparent), transparent); animation: rpBlobC 27s ease-in-out infinite alternate; }
.rp-shade { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 40%, transparent 30%, rgba(5,4,7,.72) 100%); }
.rp-grain { position: absolute; inset: 0; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes rpBlobA { to { transform: translate(18%, 14%) scale(1.15); } }
@keyframes rpBlobB { to { transform: translate(-16%, 10%) scale(.9); } }
@keyframes rpBlobC { to { transform: translate(10%, -16%) scale(1.2); } }
@keyframes rpDrift { to { transform: translate(4%, -3%) scale(1.06); } }

.rp-chrome { position: absolute; left: 0; right: 0; top: 0; z-index: 5; padding: max(12px, env(safe-area-inset-top)) clamp(14px, 3vw, 28px) 0; }
.rp-bar { display: flex; gap: 4px; }
.rp-bar span { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.22); overflow: hidden; }
.rp-bar span i { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }
.rp-bar span.done i { transform: scaleX(1); }
.rp-bar span.now i { animation: rpFill var(--dur, 7000ms) linear both; }
.rp-story-paused .rp-bar span.now i { animation-play-state: paused; }
@keyframes rpFill { to { transform: scaleX(1); } }
.rp-top { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.rp-top .rp-brand { font: 700 12px/1 var(--font-mono); letter-spacing: .24em; text-transform: uppercase; opacity: .82; margin-right: auto; }
.rp-ctl {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(10,8,14,.35);
  color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(10px); font-size: 15px; padding: 0;
}
.rp-ctl svg { width: 16px; height: 16px; }
/* The close button carries .modal-close so Escape finds it; the global rule
   for that class positions it absolutely, which is not wanted here. */
#rp-story .rp-ctl.modal-close { position: static; width: 40px; height: 40px; border-radius: 50%; background: rgba(10,8,14,.35); border-color: rgba(255,255,255,.18); color: #fff; }
.rp-nav { position: absolute; z-index: 4; top: 50%; transform: translateY(-50%); }
.rp-nav.prev { left: clamp(10px, 2vw, 26px); } .rp-nav.next { right: clamp(10px, 2vw, 26px); }
@media (hover: none) { .rp-nav { display: none; } }
.rp-hint { position: absolute; z-index: 5; left: 0; right: 0; bottom: max(14px, env(safe-area-inset-bottom)); text-align: center; font: 500 11px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; opacity: .5; pointer-events: none; }
.rp-at-end .rp-hint { display: none; }
.rp-demo-ribbon { position: absolute; z-index: 6; left: 50%; top: calc(max(12px, env(safe-area-inset-top)) + 58px); transform: translateX(-50%); pointer-events: none; }

.rp-scene {
  position: absolute; inset: 0; z-index: 2; display: grid; align-content: center;
  padding: calc(max(12px, env(safe-area-inset-top)) + 84px) clamp(22px, 7vw, 120px) calc(max(14px, env(safe-area-inset-bottom)) + 60px);
  overflow: hidden; overflow: clip;
}
.rp-scene.is-out { animation: rpOut 380ms var(--rp-ease) both; pointer-events: none; }
.rp-story-back .rp-scene.is-out { animation-name: rpOutBack; }
@keyframes rpOut { to { opacity: 0; transform: translate3d(-3%, 0, 0) scale(.98); } }
@keyframes rpOutBack { to { opacity: 0; transform: translate3d(3%, 0, 0) scale(.98); } }

/* Reveal primitives. Each child sets --d (ms) and runs once. */
.rp-line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.rp-line > span { display: inline-block; transform: translate3d(0, 108%, 0); }
.is-in .rp-line > span { animation: rpRise 1s var(--rp-ease-out) calc(var(--d, 0) * 1ms) both; }
.rp-story-back .is-in .rp-line > span { animation-name: rpRiseDown; }
.rp-fade { opacity: 0; }
.is-in .rp-fade { animation: rpFade .9s var(--rp-ease) calc(var(--d, 0) * 1ms) both; }
.rp-pop { opacity: 0; transform: scale(.86); }
.is-in .rp-pop { animation: rpPop 1.1s var(--rp-ease-out) calc(var(--d, 0) * 1ms) both; }
.rp-slide { opacity: 0; transform: translate3d(40px, 0, 0); }
.is-in .rp-slide { animation: rpSlide .9s var(--rp-ease-out) calc(var(--d, 0) * 1ms) both; }
.rp-story-back .is-in .rp-slide { animation-name: rpSlideBack; }
@keyframes rpRise { from { transform: translate3d(0, 108%, 0); } to { transform: none; } }
@keyframes rpRiseDown { from { transform: translate3d(0, -108%, 0); } to { transform: none; } }
@keyframes rpFade { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }
@keyframes rpPop { from { opacity: 0; transform: scale(.86); } to { opacity: 1; transform: none; } }
@keyframes rpSlide { from { opacity: 0; transform: translate3d(40px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes rpSlideBack { from { opacity: 0; transform: translate3d(-40px, 0, 0); } to { opacity: 1; transform: none; } }

.rp-mega { font: 800 clamp(64px, 17vw, 210px)/.84 var(--font-display); letter-spacing: -.06em; margin: 0; }
/* A headline number is set in the display face; Plex Mono is for the small
   figures. tabular-nums keeps a count-up from jittering sideways. */
.rp-mega .rp-num, .rp-h .rp-num { font-family: inherit; font-variant-numeric: tabular-nums; }
.rp-h { font: 750 clamp(34px, 7.4vw, 82px)/.95 var(--font-display); letter-spacing: -.045em; margin: 0; text-wrap: balance; }
.rp-h2 { font: 700 clamp(22px, 3.6vw, 36px)/1.05 var(--font-display); letter-spacing: -.03em; margin: 0; }
.rp-sub { font-size: clamp(15px, 2vw, 19px); line-height: 1.45; color: rgba(255,255,255,.76); margin: 14px 0 0; max-width: 44ch; text-wrap: pretty; }
.rp-foot { margin-top: 22px; font: 500 12px/1.4 var(--font-mono); letter-spacing: .06em; color: rgba(255,255,255,.55); }
.rp-grad {
  background: linear-gradient(95deg, #fff 0%, color-mix(in srgb, var(--p3) 75%, #fff) 50%, color-mix(in srgb, var(--p2) 55%, #fff) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---- scene: opening ---- */
.sc-open { text-align: center; justify-items: center; }
.sc-open .rp-mega { font-size: clamp(110px, 32vw, 340px); }
.sc-open .rp-year { display: inline-flex; }
.sc-open .rp-year .rp-line { display: inline-block; }
.rp-orbit { position: absolute; inset: 0; z-index: -1; display: grid; place-items: center; pointer-events: none; }
.rp-orbit img {
  position: absolute; width: clamp(84px, 15vw, 170px); aspect-ratio: 1; object-fit: cover; border-radius: 14px;
  box-shadow: 0 30px 70px rgba(0,0,0,.6); opacity: 0;
  transform: translate3d(var(--x), var(--y), 0) rotate(var(--r)) scale(.7);
}
.is-in .rp-orbit img { animation: rpOrbitIn 1.6s var(--rp-ease-out) calc(var(--d) * 1ms) both, rpFloat 9s ease-in-out calc(var(--d) * 1ms + 1600ms) infinite alternate; }
@keyframes rpOrbitIn { from { opacity: 0; transform: translate3d(0, 0, 0) rotate(0deg) scale(.4); } to { opacity: .7; transform: translate3d(var(--x), var(--y), 0) rotate(var(--r)) scale(1); } }
@keyframes rpFloat { from { transform: translate3d(var(--x), var(--y), 0) rotate(var(--r)); } to { transform: translate3d(calc(var(--x) * 1.04), calc(var(--y) * 1.04 - 10px), 0) rotate(calc(var(--r) * -1)); } }

/* ---- scene: minutes ---- */
.rp-wave { position: absolute; left: 0; right: 0; bottom: 0; height: 30%; -webkit-mask-image: linear-gradient(to top, #000 40%, transparent); mask-image: linear-gradient(to top, #000 40%, transparent); display: flex; align-items: flex-end; gap: 2px; padding: 0 clamp(10px, 4vw, 60px) 0; z-index: -1; opacity: .4; }
.rp-wave i { flex: 1; min-width: 1px; height: var(--h); border-radius: 2px 2px 0 0; background: linear-gradient(180deg, color-mix(in srgb, var(--p3) 85%, #fff), color-mix(in srgb, var(--p2) 50%, transparent)); transform-origin: bottom; transform: scaleY(0); }
.is-in .rp-wave i { animation: rpGrow 1.2s var(--rp-ease-out) calc(var(--d) * 1ms) both; }
.rp-wave i.peak { background: #fff; }
@keyframes rpGrow { to { transform: scaleY(1); } }
.rp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: clamp(14px, 3vw, 30px); margin-top: clamp(22px, 4vh, 40px); max-width: 860px; }
.rp-stat b { display: block; font: 600 clamp(30px, 5vw, 52px)/1 var(--font-mono); letter-spacing: -.04em; }
.rp-stat span { display: block; margin-top: 8px; font-size: 13px; color: rgba(255,255,255,.66); }

/* ---- scene: the record (cover wall) ---- */
.rp-wall { position: absolute; inset: -4%; z-index: -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(58px, 9vw, 110px), 1fr)); gap: 6px; transform: rotate(-8deg) scale(1.15); opacity: .2; }
.rp-wall img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; opacity: 0; }
.is-in .rp-wall img { animation: rpFade 1.1s var(--rp-ease) calc(var(--d) * 1ms) both; }

/* ---- scene: your sound ---- */
.rp-genres { display: grid; gap: clamp(2px, 1vh, 8px); margin-top: 18px; }
.rp-genre { display: flex; align-items: baseline; gap: 14px; }
.rp-genre b { font: 800 calc(clamp(24px, 4vw, 44px) * var(--s, 1))/1 var(--font-display); letter-spacing: -.045em; color: var(--gc, #fff); }
.rp-genre em { font: 500 13px/1 var(--font-mono); font-style: normal; color: rgba(255,255,255,.62); }
.rp-mixbar { display: flex; height: 12px; border-radius: 12px; overflow: hidden; margin-top: 26px; max-width: 720px; background: rgba(255,255,255,.08); }
.rp-mixbar i { height: 100%; width: var(--w); background: var(--gc); transform-origin: left; transform: scaleX(0); }
.is-in .rp-mixbar i { animation: rpGrowX 1.1s var(--rp-ease-out) calc(var(--d) * 1ms) both; }
@keyframes rpGrowX { to { transform: scaleX(1); } }

/* ---- scene: artists ---- */
.sc-artists { grid-template-columns: minmax(0, 1fr); }
.rp-backdrop { position: absolute; inset: -8%; z-index: -1; opacity: 0; }
.rp-backdrop img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); filter: blur(46px) saturate(1.4) brightness(.42); }
.rp-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,6,10,.15), rgba(7,6,10,.7) 80%); }
.is-in .rp-backdrop { animation: rpFadeOnly 1.6s var(--rp-ease) both; }
@keyframes rpFadeOnly { to { opacity: 1; } }
.rp-hero-art { width: clamp(96px, 24vh, 280px); aspect-ratio: 1; object-fit: cover; border-radius: 22px; box-shadow: 0 40px 90px -20px rgba(0,0,0,.8); margin-bottom: clamp(16px, 3vh, 28px); background: rgba(255,255,255,.06); }
.rp-hero-art.round { border-radius: 50%; }
.rp-rank-no { font: 600 13px/1 var(--font-mono); letter-spacing: .2em; color: color-mix(in srgb, var(--p3) 80%, #fff); }
.rp-list { display: grid; gap: 10px; margin-top: clamp(18px, 3vh, 30px); max-width: 620px; }
.rp-row { display: grid; grid-template-columns: 34px 46px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.rp-row .n { font: 600 15px/1 var(--font-mono); color: rgba(255,255,255,.55); }
.rp-row img, .rp-row .ph { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; background: linear-gradient(135deg, var(--p1), var(--p2)); }
.rp-row .t { min-width: 0; }
.rp-row .t b { display: block; font: 650 16px/1.15 var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-row .t small { display: block; color: rgba(255,255,255,.6); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; }
.rp-row .v { font: 500 13px/1 var(--font-mono); color: rgba(255,255,255,.72); white-space: nowrap; }

/* ---- scene: tracks ---- */
.rp-tracks { display: grid; gap: clamp(8px, 1.4vh, 14px); margin-top: clamp(16px, 3vh, 28px); max-width: 760px; }
.rp-track { display: grid; grid-template-columns: auto 58px minmax(0, 1fr) 44px; align-items: center; gap: 14px; }
.rp-track .big { font: 800 clamp(34px, 5vw, 56px)/1 var(--font-display); letter-spacing: -.05em; width: 1.4em; color: transparent; -webkit-text-stroke: 1.2px rgba(255,255,255,.55); }
.rp-track:first-child .big { color: #fff; -webkit-text-stroke: 0; }
.rp-track img, .rp-track .ph { width: 58px; height: 58px; border-radius: 10px; object-fit: cover; background: linear-gradient(135deg, var(--p1), var(--p2)); }
.rp-track .t b { display: block; font: 700 clamp(17px, 2.2vw, 22px)/1.1 var(--font-display); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-track .t small { display: block; margin-top: 4px; color: rgba(255,255,255,.62); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-pv { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.rp-pv svg { width: 14px; height: 14px; }
.rp-pv.on { background: #fff; color: #0b0810; }
.rp-attr { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font: 500 11px/1 var(--font-mono); letter-spacing: .08em; color: rgba(255,255,255,.55); }
.rp-attr img { width: 14px; height: 14px; border-radius: 3px; }

/* ---- scene: albums (shelf) ---- */
.rp-shelf { position: relative; width: 100%; justify-self: stretch; height: clamp(190px, 34vh, 330px); perspective: 1200px; margin: clamp(10px, 3vh, 30px) 0 10px; }
.rp-shelf figure { position: absolute; left: 50%; top: 0; margin: 0; width: clamp(160px, 28vh, 290px); transform-style: preserve-3d; opacity: 0;
  transform: translate3d(calc(-50% + var(--x)), 0, var(--z)) rotateY(var(--ry)); }
.rp-shelf figure img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; display: block; box-shadow: 0 34px 70px -18px rgba(0,0,0,.85); background: rgba(255,255,255,.06); }
.rp-shelf figure figcaption { position: absolute; left: 10px; bottom: 10px; font: 700 clamp(22px, 3vw, 34px)/1 var(--font-mono); letter-spacing: -.04em; color: var(--sc, #fff); text-shadow: 0 2px 14px rgba(0,0,0,.8); }
.is-in .rp-shelf figure { animation: rpShelf 1.2s var(--rp-ease-out) calc(var(--d) * 1ms) both; }
@keyframes rpShelf { from { opacity: 0; transform: translate3d(calc(-50% + var(--x) * .4), 40px, calc(var(--z) - 200px)) rotateY(var(--ry)); } to { opacity: var(--o, 1); transform: translate3d(calc(-50% + var(--x)), 0, var(--z)) rotateY(var(--ry)); } }
.rp-center { text-align: center; justify-items: center; }
.rp-center .rp-sub { margin-left: auto; margin-right: auto; }

/* ---- scene: discoveries ---- */
.rp-names { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; max-width: 760px; }
.rp-names span { padding: 9px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font: 600 14px/1 var(--font-body); }
.rp-disc-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(14px, 3vw, 28px); align-items: center; margin-top: clamp(16px, 3vh, 26px); max-width: 760px; }
.rp-disc-hero img { width: clamp(110px, 20vh, 190px); aspect-ratio: 1; object-fit: cover; border-radius: 16px; box-shadow: 0 30px 60px -16px rgba(0,0,0,.8); }

/* ---- scene: change of mind ---- */
.rp-moves { display: grid; gap: clamp(14px, 2.6vh, 26px); margin-top: clamp(18px, 3vh, 32px); max-width: 820px; }
.rp-move { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.rp-move img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.rp-move b { display: block; font: 700 18px/1.15 var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-move small { color: rgba(255,255,255,.6); font-size: 13px; }
.rp-move .ft { font: 600 clamp(22px, 3.4vw, 34px)/1 var(--font-mono); letter-spacing: -.04em; white-space: nowrap; }
.rp-move .ft s { text-decoration: none; opacity: .45; }
.rp-move .ft em { font-style: normal; font-size: .5em; margin-left: 8px; vertical-align: middle; padding: 4px 8px; border-radius: 999px; background: rgba(255,255,255,.12); }

/* ---- scene: evolution ---- */
.rp-chart { width: 100%; max-width: 980px; height: clamp(190px, 36vh, 360px); margin-top: clamp(16px, 3vh, 30px); overflow: visible; }
.rp-chart .bar { fill: rgba(255,255,255,.88); transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); }
.rp-chart .bar.hot { fill: var(--p3); }
.is-in .rp-chart .bar { animation: rpGrow 1s var(--rp-ease-out) calc(var(--d) * 1ms) both; }
.rp-chart .lst { fill: color-mix(in srgb, var(--p2) 38%, transparent); opacity: 0; }
.is-in .rp-chart .lst { animation: rpFadeOnly 1.4s var(--rp-ease) .3s both; }
.rp-chart .avg { fill: none; stroke: var(--p3); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; }
.is-in .rp-chart .avg { animation: rpDraw 1.8s var(--rp-ease) .5s both; }
@keyframes rpDraw { to { stroke-dashoffset: 0; } }
.rp-chart text { fill: rgba(255,255,255,.62); font: 500 11px var(--font-mono); }
.rp-chart text.g { fill: #fff; font-weight: 700; }
.rp-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; font: 500 12px/1 var(--font-mono); color: rgba(255,255,255,.62); }
.rp-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* ---- scene: DNA ---- */
.sc-dna { text-align: center; justify-items: center; }
.rp-emblem { width: clamp(130px, 24vh, 220px); aspect-ratio: 1; margin-bottom: clamp(14px, 3vh, 26px); }
.rp-emblem svg { width: 100%; height: 100%; overflow: visible; }
.rp-emblem .ring { fill: none; stroke: #fff; stroke-width: 1.2; opacity: .35; }
.rp-emblem .core { fill: url(#rpDnaGrad); }
.is-in .rp-emblem { animation: rpPop 1.4s var(--rp-ease-out) both, rpTurn 40s linear 1.4s infinite; }
@keyframes rpTurn { to { transform: rotate(360deg); } }
.rp-dna-name { font: 800 clamp(46px, 10vw, 128px)/.9 var(--font-display); letter-spacing: -.055em; margin: 10px 0 0; }
.rp-evidence { display: grid; gap: 8px; margin-top: 22px; }
.rp-evidence span { font: 500 14px/1.35 var(--font-mono); color: rgba(255,255,255,.8); }
.rp-evidence span::before { content: '— '; opacity: .5; }
.rp-trait { display: inline-block; margin-top: 18px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); font: 600 13px/1 var(--font-body); color: rgba(255,255,255,.85); }

/* ---- scene: milestones / compare ---- */
.rp-miles { display: grid; gap: 12px; margin-top: 22px; max-width: 640px; }
.rp-mile { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); font: 600 16px/1.3 var(--font-body); }
.rp-mile i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; font-style: normal; background: color-mix(in srgb, var(--p3) 85%, #fff); color: #120d14; font: 700 13px/1 var(--font-mono); }
.rp-vs { display: grid; gap: 4px; margin-top: 24px; max-width: 720px; }
.rp-vs-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 18px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.rp-vs-row span { color: rgba(255,255,255,.72); font-size: 15px; }
.rp-vs-row b { font: 600 clamp(22px, 3.6vw, 34px)/1 var(--font-mono); letter-spacing: -.03em; }
.rp-vs-row em { font: 500 13px/1 var(--font-mono); font-style: normal; min-width: 70px; text-align: right; }
.rp-vs-row em.up { color: #7be495; } .rp-vs-row em.down { color: #ff8a7a; }

/* ---- scene: final ---- */
.sc-final { align-content: center; justify-items: center; text-align: center; }
.rp-summary {
  /* Sized from its HEIGHT, so a 9:16 card is never letterboxed in its frame. */
  height: min(56vh, 640px); width: auto; max-width: 92vw; aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden; position: relative; isolation: isolate;
  box-shadow: 0 50px 120px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.1);
  background: #0b0810;
}
.rp-summary img.pv { width: 100%; height: 100%; object-fit: contain; display: block; }
.rp-summary.square { aspect-ratio: 1; height: min(50vh, 520px); }
.rp-summary .ld { position: absolute; inset: 0; display: grid; place-items: center; font: 500 12px/1 var(--font-mono); letter-spacing: .14em; color: rgba(255,255,255,.6); }
.rp-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.rp-actions .rp-seg { margin: 0; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); }
.rp-actions .rp-seg button { color: rgba(255,255,255,.7); }
.rp-actions .rp-seg button[aria-pressed="true"] { background: #fff; color: #0b0810; }
.rp-share-note { margin-top: 10px; font-size: 12px; color: rgba(255,255,255,.5); max-width: 40ch; }

/* ================================================================
   THE STORY, PRESENTED
   The opening moment, the breath of light between scenes, and the type.
   All opacity and transform, all once per arrival.
   ================================================================ */
/* Opening: the room fades up behind a record that spins up out of the
   centre and breaks outwards, in the period's own colours. */
#rp-story.open .rp-room { animation: rpRoomIn 900ms var(--rp-ease-out) backwards; }
@keyframes rpRoomIn { from { opacity: 0; transform: scale(1.06); } }
.rp-unwrap { position: absolute; inset: 0; z-index: 7; pointer-events: none; display: grid; place-items: center; }
.rp-unwrap i { grid-area: 1 / 1; border-radius: 50%; width: min(56vw, 56vh); aspect-ratio: 1; }
.rp-unwrap-disc {
  background:
    radial-gradient(circle, var(--p3) 0 8%, #120d14 8.5% 16%, transparent 16.5%),
    repeating-radial-gradient(circle, rgba(255,255,255,.07) 0 1px, transparent 1px 4px),
    radial-gradient(circle, #1b1520, #07060a 70%);
  box-shadow: 0 0 120px color-mix(in srgb, var(--p2) 60%, transparent);
  animation: rpUnwrapDisc 1150ms cubic-bezier(.5, 0, .2, 1) both;
}
.rp-unwrap-ring { border: 2px solid color-mix(in srgb, var(--p3) 80%, #fff); animation: rpUnwrapRing 1100ms var(--rp-ease-out) 380ms both; }
@keyframes rpUnwrapDisc {
  0% { opacity: 0; transform: scale(.3) rotate(0deg); }
  25% { opacity: 1; }
  60% { opacity: 1; transform: scale(.9) rotate(320deg); }
  100% { opacity: 0; transform: scale(2.6) rotate(540deg); }
}
@keyframes rpUnwrapRing { from { opacity: .9; transform: scale(.6); } to { opacity: 0; transform: scale(2.4); } }
/* The opening scene waits a beat for the record to clear. */
#rp-story:has(.rp-unwrap) .sc-open.is-in:not(.is-out) { animation: rpSceneIn 900ms var(--rp-ease-out) 520ms backwards; }

/* Between scenes: a breath of the palette's light, and the incoming scene
   settles from a fraction larger. `backwards`: the end is the resting style. */
.rp-room::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(70% 60% at 50% 45%, color-mix(in srgb, var(--p3) 22%, transparent), transparent 70%); }
.rp-pulse .rp-room::after { animation: rpBreath 1100ms var(--rp-ease) both; }
@keyframes rpBreath { 30% { opacity: 1; } to { opacity: 0; } }
.rp-scene.is-in:not(.is-out) { animation: rpSceneIn 700ms var(--rp-ease-out) backwards; }
@keyframes rpSceneIn { from { opacity: 0; transform: scale(1.025); } }
.rp-bar span.now { box-shadow: 0 0 10px color-mix(in srgb, var(--p3) 60%, transparent); }

/* Type. The headline numbers and words take a soft vertical light from the
   palette, set on each rising line so the clip follows the line it is on. */
.rp-mega .rp-line > span, .rp-h .rp-line > span {
  background: linear-gradient(180deg, #fff 35%, color-mix(in srgb, var(--p3) 45%, #fff) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .04em;
}
.rp-scene .rp-kicker { display: inline-flex; align-items: center; gap: 10px; }
.rp-scene .rp-kicker::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: currentColor; opacity: .8; }
.sc-open .rp-kicker::before { display: none; }
.rp-h2 { color: color-mix(in srgb, var(--p3) 30%, #fff); }
.rp-sub b { color: #fff; }

@media (max-width: 699px) {
  .rp-scene { padding-left: 22px; padding-right: 22px; }
  .rp-orbit img { width: 76px; }
  .rp-disc-hero { grid-template-columns: 1fr; }
  .rp-row { grid-template-columns: 26px 42px minmax(0, 1fr) auto; gap: 10px; }
  .rp-row img, .rp-row .ph { width: 42px; height: 42px; }
  .rp-track { grid-template-columns: auto 48px minmax(0, 1fr) 44px; gap: 10px; }
  .rp-track img, .rp-track .ph { width: 48px; height: 48px; }
  .rp-move { grid-template-columns: 48px minmax(0, 1fr); }
  .rp-move img { width: 48px; height: 48px; }
  .rp-move .ft { grid-column: 2; }
}
@media (max-height: 760px) {
  .rp-list .rp-row:nth-child(n+4) { display: none; }
}
@media (max-height: 640px) {
  .rp-scene { padding-top: 76px; padding-bottom: 44px; }
  .rp-hero-art { width: 88px; margin-bottom: 10px; }
  .rp-list .rp-row:nth-child(n+4), .rp-tracks .rp-track:nth-child(n+4) { display: none; }
}

/* Reduced motion: arrive, do not travel; nothing loops. */
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="full"]) .rp-bg i, html:not([data-motion="full"]) .rp-hero::before,
  html:not([data-motion="full"]) .rp-hero-record, html:not([data-motion="full"]) .is-in .rp-emblem { animation: none !important; }
  html:not([data-motion="full"]) .rp-line > span, html:not([data-motion="full"]) .rp-slide, html:not([data-motion="full"]) .rp-pop,
  html:not([data-motion="full"]) .rp-wave i, html:not([data-motion="full"]) .rp-mixbar i, html:not([data-motion="full"]) .rp-chart .bar { transform: none !important; }
  html:not([data-motion="full"]) .rp-orbit img { transform: translate3d(var(--x), var(--y), 0) rotate(var(--r)) !important; }
  html:not([data-motion="full"]) .rp-chart .avg { stroke-dashoffset: 0 !important; }
  html:not([data-motion="full"]) .rp-collage img, html:not([data-motion="full"]) .rp-teaser-sheen, html:not([data-motion="full"]) .rp-chip.new,
  html:not([data-motion="full"]) .rp-lock-pips i em, html:not([data-motion="full"]) .rp-unlocked, html:not([data-motion="full"]) .rp-unwrap,
  html:not([data-motion="full"]) #rp-story .rp-room, html:not([data-motion="full"]) .rp-scene.is-in:not(.is-out), html:not([data-motion="full"]) .rp-pulse .rp-room::after { animation: none !important; }
}
html[data-motion="none"] .rp-collage img, html[data-motion="none"] .rp-teaser-sheen, html[data-motion="none"] .rp-chip.new,
html[data-motion="none"] .rp-lock-pips i em, html[data-motion="none"] .rp-unlocked, html[data-motion="none"] .rp-unwrap,
html[data-motion="none"] #rp-story .rp-room, html[data-motion="none"] .rp-scene.is-in:not(.is-out), html[data-motion="none"] .rp-pulse .rp-room::after { animation: none !important; }
html[data-motion="none"] .rp-bg i, html[data-motion="none"] .rp-hero::before, html[data-motion="none"] .rp-hero-record, html[data-motion="none"] .is-in .rp-emblem { animation: none !important; }
html[data-motion="none"] .rp-line > span, html[data-motion="none"] .rp-slide, html[data-motion="none"] .rp-pop,
html[data-motion="none"] .rp-wave i, html[data-motion="none"] .rp-mixbar i, html[data-motion="none"] .rp-chart .bar { transform: none !important; }
html[data-motion="none"] .rp-orbit img { transform: translate3d(var(--x), var(--y), 0) rotate(var(--r)) !important; }
html[data-motion="none"] .rp-chart .avg { stroke-dashoffset: 0 !important; }
.rp-lock-needs li.done .rp-need-ico { background: color-mix(in srgb, var(--green) 25%, transparent); color: var(--green); }
.rp-need-btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border-strong); }
