/* ═══════════════════════════════════════════════════════════════════════════
   wrap.css — the Year Wrap page (wrap.html). Every class is `wr-` prefixed.
   Standalone: main.css is NOT loaded here, so the brand tokens are restated.

   Scroll model (js/wrap.js): each .wr-ch is tall — one screen plus ~55% of a
   screen per step — and its .wr-stage is sticky, so the chapter pins while
   its steps reveal. JS writes --p (0→1, progress through the pinned scroll)
   on the section; backgrounds drift off it.

   html.wr-static (reduced motion) and @media print share one layout: nothing
   pins, every step shows, one chapter per screen / page.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #0a0a0d;
  --panel: rgba(20, 20, 29, 0.72);
  --line: rgba(255, 255, 255, 0.10);
  --text: #f4f3f8;
  --text-2: rgba(255, 255, 255, 0.66);
  --text-3: rgba(255, 255, 255, 0.40);
  --accent: #9564ff;
  --accent-hi: #c4a8ff;
  --gold: #f5c518;
  --font-body: 'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Bricolage Grotesque', 'Schibsted Grotesk', -apple-system, system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* Film grain, as on the main site. */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .035;
  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='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; }
img.is-broken { visibility: hidden; }
b { font-weight: 700; color: var(--text); }
a { color: inherit; }

.wr-wordmark { font-family: var(--font-display); font-weight: 800; font-size: 28px; letter-spacing: -0.02em; }
.wr-wordmark em { font-style: normal; color: var(--accent); }
.wr-wordmark.sm { font-size: 20px; }

/* ── chrome: progress bar, chapter rail, admin bar ── */
.wr-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 40; background: rgba(255,255,255,.06); }
.wr-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #ff4fd8, var(--gold)); transform-origin: left; transform: scaleX(0); }
.wr-rail { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 30; display: flex; flex-direction: column; gap: 10px; }
.wr-rail a { position: relative; display: block; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.22); transition: background .2s, transform .2s; }
.wr-rail a.on { background: #fff; transform: scale(1.35); }
.wr-rail a span { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: 12px; color: var(--text-2); opacity: 0; pointer-events: none; transition: opacity .15s; background: rgba(10,10,13,.8); padding: 2px 8px; border-radius: 6px; }
.wr-rail a:hover span, .wr-rail a:focus-visible span { opacity: 1; }
@media (max-width: 720px) { .wr-rail { display: none; } }

.wr-adm {
  position: fixed; bottom: 12px; left: 12px; z-index: 45;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  max-width: calc(100vw - 24px); padding: 6px 8px 6px 10px; border-radius: 12px;
  background: rgba(16, 16, 22, .88); border: 1px solid rgba(245, 197, 24, .35);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 13px;
}
.wr-adm-pill { background: var(--gold); color: #1a1400; font-weight: 700; border-radius: 6px; padding: 2px 8px; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.wr-adm-note { color: var(--text-3); font-size: 12px; }
.wr-adm select, .wr-adm button { font: inherit; color: var(--text); background: rgba(255,255,255,.08); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; }
.wr-adm button { cursor: pointer; }
.wr-adm select option { background: #16161e; }
@media (max-width: 1100px) { .wr-adm-note { display: none; } }

/* ── loading / message ── */
.wr-loading { min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: var(--gutter); color: var(--text-2); }
.wr-loading .wr-wordmark { animation: wr-pulse 1.6s ease-in-out infinite; }
@keyframes wr-pulse { 50% { opacity: .45; } }

/* ═══ CHAPTER SCAFFOLD ═══ */
.wr-ch { position: relative; height: calc(100svh + var(--steps, 2) * 55svh); --c: var(--accent); --p: 0; }
.wr-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; isolation: isolate; display: flex; align-items: center; }
.wr-bg { position: absolute; inset: 0; z-index: -2; }
.wr-scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 20% 55%, rgba(10,10,13,.94) 0%, rgba(10,10,13,.80) 45%, rgba(10,10,13,.45) 100%),
    linear-gradient(180deg, var(--bg) 0%, transparent 14%, transparent 86%, var(--bg) 100%);
}
.wr-content {
  width: 100%; max-width: 1080px; margin: 0 auto; padding: 72px var(--gutter);
  display: flex; flex-direction: column; gap: 18px;
  /* --fit is set by wrap.js when the content is taller than the screen. */
  transform: scale(var(--fit, 1)); transform-origin: 50% 50%; flex: none;
}
/* Chapter tint glow, behind everything. */
.wr-ch::before {
  content: ''; position: absolute; inset: 0; z-index: -3; pointer-events: none;
  background: radial-gradient(60% 50% at 85% 30%, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%);
}

/* Steps: hidden until scrolled to. */
.wr-step { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1), filter .7s; }
.wr-step.is-in { opacity: 1; transform: none; filter: none; }
.wr-step:empty { display: none; }

/* ── type ── */
.wr-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--c); margin: 0 0 6px; }
.wr-kicker span { font-size: 20px; letter-spacing: 0; }
.wr-kicker.sm { font-size: 12px; margin: 0 0 8px; }
.wr-hero { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin: 0; }
.wr-hero .wr-num {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.045em; line-height: .88;
  font-size: clamp(80px, min(18vw, 21vh), 230px);
  background: linear-gradient(180deg, #fff 20%, color-mix(in srgb, var(--c) 70%, #fff) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.wr-hero-unit { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 3.4vw, 40px); color: var(--text-2); letter-spacing: -0.01em; }
.wr-h { font-family: var(--font-display); font-weight: 800; font-size: clamp(38px, 7vw, 88px); line-height: 1; letter-spacing: -0.035em; margin: 0; }
.wr-h em { font-style: normal; color: var(--c); }
.wr-lead { font-size: clamp(18px, 2.2vw, 24px); color: var(--text-2); margin: 0; max-width: 40ch; line-height: 1.4; }
.wr-muted { color: var(--text-3); font-size: 14px; margin: 0; }
.wr-muted b { color: var(--text-2); }
.wr-cmp { display: inline-flex; align-items: center; gap: 12px; margin: 6px 0 0; font-size: clamp(18px, 2.2vw, 24px); color: var(--text-2);
  padding: 10px 18px 10px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 12%, rgba(255,255,255,.04)); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); width: fit-content; }
.wr-cmp:not(:has(.wr-cmp-rank)) { padding-left: 18px; }
.wr-cmp-rank { font-family: var(--font-display); font-weight: 800; font-size: 1.4em; line-height: 1; padding: 6px 12px; border-radius: 999px; background: var(--c); color: #0b0b10; }

/* ── stat rows / chips ── */
.wr-stats { display: flex; flex-wrap: wrap; gap: 14px 40px; }
.wr-stats > div { display: flex; flex-direction: column; }
.wr-stats b { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 6vw, 68px); line-height: 1; letter-spacing: -0.03em; color: var(--text); }
.wr-stats > div > span { color: var(--text-2); font-size: 15px; margin-top: 4px; }

/* ═══ WALLS ═══ */
.wr-wall {
  position: absolute; inset: -10% -6%; display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 14px;
  transform: rotate(-8deg) scale(1.1); opacity: .55;
  mask-image: radial-gradient(90% 90% at 70% 50%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(90% 90% at 70% 50%, #000 30%, transparent 85%);
}
.wr-wall-col {
  display: flex; flex-direction: column; gap: 14px;
  transform: translateY(calc((var(--off) * -0.3%) + var(--dir) * (var(--p) * 22%) - 10%));
  will-change: transform;
}
.wr-tile { border-radius: 10px; overflow: hidden; background: rgba(255,255,255,.04); box-shadow: 0 10px 30px rgba(0,0,0,.5); flex: none; }
.wr-tile img { width: 100%; height: 100%; object-fit: cover; }
.wr-wall--poster .wr-tile { aspect-ratio: 2 / 3; }
.wr-wall--square .wr-tile { aspect-ratio: 1; }
.wr-wall--card .wr-tile { aspect-ratio: 63 / 88; border-radius: 8px; }
@media (max-width: 720px) {
  .wr-wall { grid-template-columns: repeat(4, 1fr); inset: -10% -30%; }
  .wr-wall-col:nth-child(n + 5) { display: none; }
}

/* ═══ OPENING ═══ */
.wr-ch--opening .wr-scrim { background: radial-gradient(70% 70% at 50% 50%, rgba(10,10,13,.88), rgba(10,10,13,.55) 70%, rgba(10,10,13,.3)), linear-gradient(180deg, transparent 80%, var(--bg)); }
.wr-ch--opening .wr-content { align-items: center; text-align: center; }
.wr-mosaic {
  position: absolute; inset: -20%; display: grid; grid-template-columns: repeat(12, 1fr); gap: 10px; align-content: center;
  transform: perspective(1200px) rotateX(24deg) rotateZ(-10deg) scale(calc(1.05 + var(--p) * .35)) translateY(calc(var(--p) * -8%));
  opacity: .7;
}
.wr-mtile { aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden; background: rgba(255,255,255,.04); animation: wr-float 9s ease-in-out infinite; animation-delay: calc(var(--i) * -0.37s); }
.wr-mtile img { width: 100%; height: 100%; object-fit: cover; }
@keyframes wr-float { 50% { transform: translateY(-10px); } }
@media (max-width: 720px) { .wr-mosaic { grid-template-columns: repeat(7, 1fr); inset: -25% -40%; } }
.wr-open-who { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 18px; color: var(--text-2); }
.wr-year { margin: 6px 0 0; font-family: var(--font-display); font-weight: 800; line-height: .82; letter-spacing: -0.06em; font-size: clamp(120px, 30vw, 360px); }
.wr-year span {
  background: linear-gradient(120deg, #fff 10%, var(--accent-hi) 40%, var(--accent) 60%, #ff4fd8 90%);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: wr-sheen 8s ease-in-out infinite alternate;
}
@keyframes wr-sheen { to { background-position: 100% 0; } }
.wr-sub { margin: 10px 0 0; color: var(--text-2); font-size: clamp(16px, 2vw, 20px); }
.wr-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 12px; }
.wr-chip { display: flex; flex-direction: column; align-items: center; min-width: 140px; padding: 14px 20px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.wr-chip b { font-family: var(--font-display); font-size: 40px; line-height: 1; letter-spacing: -0.03em; }
.wr-chip > span { color: var(--text-2); font-size: 14px; margin-top: 4px; }
.wr-cue { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-3); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; opacity: calc(1 - var(--p) * 4); }
.wr-cue i { width: 22px; height: 34px; border: 2px solid currentColor; border-radius: 12px; position: relative; }
.wr-cue i::after { content: ''; position: absolute; left: 50%; top: 6px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: currentColor; animation: wr-cue 1.6s ease-in-out infinite; }
@keyframes wr-cue { 60% { transform: translateY(10px); opacity: 0; } }

.wr-av { position: relative; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: none; background: linear-gradient(135deg, var(--accent), #ff4fd8); display: inline-grid; place-items: center; }
.wr-av::before { content: attr(data-initial); font-weight: 700; color: #fff; }
.wr-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ═══ FIRST ═══ */
.wr-first { display: flex; align-items: center; gap: 24px; padding: 18px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); width: fit-content; max-width: 100%; margin-bottom: 14px; }
.wr-first-art { width: 120px; flex: none; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; box-shadow: 0 14px 40px rgba(0,0,0,.6); }
.wr-first-art img { width: 100%; height: 100%; object-fit: cover; }
.wr-first-art--glyph { display: grid; place-items: center; background: color-mix(in srgb, var(--c) 30%, #111); font-family: var(--font-display); font-size: 48px; font-weight: 800; }
.wr-first-verb { margin: 0; color: var(--text-3); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; }
.wr-first-title { margin: 4px 0 6px; font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 3vw, 32px); line-height: 1.1; }

/* ═══ TIME / PERSONA split bar ═══ */
.wr-orbs { position: absolute; inset: 0; }
.wr-orbs i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.wr-orbs i:nth-child(1) { width: 46vw; height: 46vw; left: 50%; top: -10%; background: var(--accent); transform: translate(calc(var(--p) * -20%), calc(var(--p) * 30%)); }
.wr-orbs i:nth-child(2) { width: 34vw; height: 34vw; left: 70%; top: 50%; background: #ff4fd8; transform: translate(calc(var(--p) * -40%), 0); }
.wr-orbs i:nth-child(3) { width: 28vw; height: 28vw; left: 20%; top: 70%; background: #4fa8ff; opacity: .3; }
.wr-orbs--hot i:nth-child(1) { background: var(--c); }
.wr-split { display: flex; height: 22px; border-radius: 999px; overflow: hidden; gap: 3px; max-width: 760px; }
.wr-split i { width: var(--w); background: var(--c); min-width: 4px; transform-origin: left; }
.wr-step.is-in .wr-split i { animation: wr-grow .9s cubic-bezier(.2,.7,.2,1) both; }
.wr-step.is-in .wr-split i:nth-child(2) { animation-delay: .08s; }
.wr-step.is-in .wr-split i:nth-child(3) { animation-delay: .16s; }
.wr-step.is-in .wr-split i:nth-child(4) { animation-delay: .24s; }
.wr-step.is-in .wr-split i:nth-child(n + 5) { animation-delay: .32s; }
@keyframes wr-grow { from { transform: scaleX(0); } }
.wr-legend { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--text-2); font-size: 15px; }
.wr-legend li { display: flex; align-items: center; gap: 8px; }
.wr-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }

/* ═══ FEATURE (#1 item) + top list ═══ */
.wr-feature { display: flex; align-items: flex-end; gap: 22px; }
.wr-feature-art { width: clamp(130px, 18vw, 200px); flex: none; aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08); transform: rotate(-3deg); background: rgba(255,255,255,.05); }
.wr-feature--square .wr-feature-art { aspect-ratio: 1; }
.wr-feature-art img { width: 100%; height: 100%; object-fit: cover; }
.wr-feature-txt { min-width: 0; }
.wr-feature-n { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: #0b0b10; background: var(--c); padding: 2px 10px; border-radius: 8px; }
.wr-feature-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 4.4vw, 52px); line-height: 1.02; letter-spacing: -0.02em; margin: 10px 0 6px; max-width: 18ch; }
.wr-toplist { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; max-width: 900px; }
.wr-toplist li { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); min-width: 0; }
.wr-toplist-n { font-family: var(--font-display); font-weight: 800; color: var(--text-3); width: 18px; text-align: center; }
.wr-toplist-art { width: 34px; height: 48px; object-fit: cover; border-radius: 5px; flex: none; }
.wr-toplist-name { flex: 1; min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wr-toplist-v { color: var(--text-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.wr-shelf { display: flex; gap: 14px; flex-wrap: wrap; }
.wr-shelf figure { margin: 0; width: 110px; }
.wr-shelf img { width: 110px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 10px; }
.wr-shelf figcaption { font-size: 13px; color: var(--text-2); margin-top: 6px; }

/* ═══ CHANNEL ═══ */
.wr-onair { position: absolute; right: -2vw; top: 50%; transform: translateY(calc(-50% + var(--p) * -12%)) rotate(-90deg); transform-origin: center; }
.wr-onair span { font-family: var(--font-display); font-weight: 800; font-size: 22vh; letter-spacing: -0.03em; color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--c) 45%, transparent); white-space: nowrap; }
.wr-scan { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 4px); animation: wr-scan 8s linear infinite; }
@keyframes wr-scan { to { background-position: 0 200px; } }
.wr-week { display: flex; align-items: flex-end; gap: 10px; height: 160px; max-width: 520px; }
.wr-week > div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; }
.wr-week i { width: 100%; height: var(--h); min-height: 4px; border-radius: 8px 8px 3px 3px; background: rgba(255,255,255,.14); transform-origin: bottom; }
.wr-week .on i { background: var(--c); box-shadow: 0 0 30px color-mix(in srgb, var(--c) 60%, transparent); }
.wr-week span { font-size: 12px; color: var(--text-3); }
.wr-week .on span { color: var(--text); font-weight: 700; }
.wr-step.is-in .wr-week i { animation: wr-rise .8s cubic-bezier(.2,.7,.2,1) both; }
@keyframes wr-rise { from { transform: scaleY(0); } }

/* ═══ GAMES ═══ */
.wr-plats { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.wr-plat { padding: 18px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--pc); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wr-plat--ra { --pc: #f5b518; }
.wr-plat--steam { --pc: #66c0f4; }
.wr-plat--wow { --pc: #f8b700; }
.wr-plat--pal { --pc: #7dd3fc; }
.wr-plat-name { margin: 0; font-weight: 700; color: var(--pc); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }
.wr-plat-name small { color: var(--text-3); text-transform: none; letter-spacing: 0; font-weight: 500; margin-left: 6px; }
.wr-plat-big { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: -0.03em; }
.wr-plat-big > span:not(.wr-num) { font-size: 16px; color: var(--text-2); font-family: var(--font-body); font-weight: 500; letter-spacing: 0; }
.wr-plat-top { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-weight: 600; font-size: 14px; }
.wr-plat-top img { width: 40px; height: 54px; object-fit: cover; border-radius: 6px; }
.wr-plat-top small { display: block; color: var(--text-3); font-weight: 400; }
.wr-plat-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.wr-plat-badges img { width: 34px; height: 34px; border-radius: 6px; }
.wr-plat-rare { margin-top: 6px; padding: 10px 12px; border-radius: 12px; background: rgba(102,192,244,.08); border: 1px solid rgba(102,192,244,.25); }
.wr-plat-rare span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #66c0f4; font-weight: 700; }
.wr-plat-rare b { display: block; margin: 2px 0; }
.wr-plat-rare small { color: var(--text-3); }

/* ═══ BINDER ═══ */
.wr-fan { position: relative; display: flex; justify-content: center; height: clamp(170px, 25vh, 280px); max-width: 720px; margin: 6px 0 34px; }
.wr-card { position: absolute; bottom: 0; left: 50%; margin: 0; width: clamp(110px, min(14vw, 17vh), 170px); transform-origin: 50% 140%;
  transform: translateX(-50%) rotate(calc(var(--i) * 9deg)) translateY(calc(var(--i) * var(--i) * 4px)); transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.wr-step:not(.is-in) .wr-card { transform: translateX(-50%) rotate(0) translateY(40px); }
.wr-card figcaption { display: none; }
.wr-holo { position: relative; border-radius: 9px; overflow: hidden; aspect-ratio: 63 / 88; box-shadow: 0 20px 50px rgba(0,0,0,.7); background: #1b1b24; }
.wr-holo img { width: 100%; height: 100%; object-fit: cover; }
.wr-holo::after { content: ''; position: absolute; inset: 0; mix-blend-mode: color-dodge; opacity: .5;
  background: linear-gradient(115deg, transparent 20%, rgba(255,0,200,.35) 35%, rgba(0,255,255,.35) 50%, rgba(255,255,0,.3) 62%, transparent 78%);
  background-size: 250% 250%; background-position: calc(var(--p) * 200%) 50%; }

/* ═══ GROOVE ═══ */
.wr-arrows { position: absolute; right: 6vw; top: 0; bottom: 0; display: flex; gap: 2vw; opacity: .5; }
.wr-arrows i { width: 5vw; max-width: 60px; aspect-ratio: 1; align-self: flex-start; background: var(--c); clip-path: polygon(50% 0, 100% 50%, 68% 50%, 68% 100%, 32% 100%, 32% 50%, 0 50%); animation: wr-arrow 2.4s linear infinite; }
.wr-arrows i:nth-child(1) { transform: rotate(-90deg); animation-delay: -.4s; }
.wr-arrows i:nth-child(2) { transform: rotate(180deg); animation-delay: -1.2s; }
.wr-arrows i:nth-child(3) { animation-delay: -.8s; }
.wr-arrows i:nth-child(4) { transform: rotate(90deg); animation-delay: -1.8s; }
@keyframes wr-arrow { from { translate: 0 110vh; } to { translate: 0 -20vh; } }
.wr-grade { display: flex; align-items: center; gap: 26px; }
.wr-grade-l { font-family: var(--font-display); font-weight: 800; font-size: clamp(110px, 18vw, 200px); line-height: .85; letter-spacing: -0.05em; }
.wr-grade--gold .wr-grade-l { background: linear-gradient(180deg, #fff6c7, var(--gold) 50%, #b8860b); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 40px rgba(245,197,24,.45)); }
.wr-grade--silver .wr-grade-l { background: linear-gradient(180deg, #fff, #9be7ff 60%, #6aa9c9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wr-grade--accent .wr-grade-l { color: var(--c); }
.wr-grade--plain .wr-grade-l { color: var(--text); }
.wr-grades { display: flex; height: 34px; border-radius: 10px; overflow: hidden; gap: 2px; max-width: 760px; margin-top: 8px; }
.wr-grades i { width: var(--w); min-width: 22px; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700; color: #0b0b10; background: rgba(255,255,255,.35); }
.wr-grades .g-gold { background: var(--gold); }
.wr-grades .g-silver { background: #9be7ff; }
.wr-grades .g-accent { background: var(--c); }
.wr-duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; max-width: 820px; }
.wr-duo-card { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.wr-duo-card img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; flex: none; }
.wr-duo-t { font-family: var(--font-display); font-weight: 700; font-size: 22px; margin: 0 0 2px; line-height: 1.1; }

/* ═══ RIBBON ═══ */
.wr-ch--wide .wr-content { max-width: 1400px; }
.wr-ribbon { position: relative; margin: 28px 0 8px; padding-top: 70px; }
.wr-ribbon svg { display: block; width: 100%; height: clamp(120px, 22vh, 220px);
  clip-path: inset(0 calc(100% - clamp(0%, var(--p) * 190% + 4%, 100%)) 0 0); }
html.wr-static .wr-ribbon svg { clip-path: none; }
.wr-ribbon rect.on { fill: url(#none); fill: var(--accent); }
.wr-ribbon rect.off { fill: rgba(255,255,255,.08); }
.wr-ribbon svg { filter: drop-shadow(0 0 14px color-mix(in srgb, var(--accent) 45%, transparent)); }
.wr-ticks { position: relative; height: 22px; margin-top: 10px; border-top: 1px solid var(--line); }
.wr-ticks span { position: absolute; top: 6px; font-size: 12px; color: var(--text-3); transform: translateX(-2px); }
.wr-peaks { position: absolute; inset: 0 0 auto 0; height: 70px; }
.wr-peak { position: absolute; left: var(--x); top: calc(var(--row) * 34px); transform: translateX(-8px); padding-left: 10px; border-left: 2px solid var(--accent); font-size: 13px; line-height: 1.25; white-space: nowrap; }
.wr-peak.left { transform: translateX(calc(-100% + 8px)); padding: 0 10px 0 0; border-left: 0; border-right: 2px solid var(--accent); text-align: right; }
.wr-peak b { display: block; }
.wr-peak span { color: var(--text-2); }
@media (max-width: 720px) { .wr-peak span { display: none; } }

/* ═══ COLLECTED ═══ */
.wr-badges { display: flex; flex-wrap: wrap; gap: 10px; max-width: 980px; }
.wr-badge { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; }
.wr-step.is-in .wr-badge { animation: wr-pop .5s cubic-bezier(.2,1.4,.4,1) both; animation-delay: calc(var(--i) * 25ms); }
@keyframes wr-pop { from { transform: scale(.6); opacity: 0; } }
.wr-badge-ico { width: 30px; height: 30px; display: grid; place-items: center; font-size: 20px; border-radius: 50%; background: rgba(255,255,255,.06); flex: none; overflow: hidden; }
.wr-badge-ico .badge-sprite { width: 26px; height: 26px; object-fit: contain; }
.wr-badge.t-gold { border-color: rgba(245,197,24,.45); }
.wr-badge.t-purple { border-color: rgba(149,100,255,.6); }
.wr-badge.t-heardplanet { border-color: rgba(255,79,216,.5); }
.wr-dex { display: flex; flex-wrap: wrap; gap: 4px; }
.wr-dex img { width: 64px; height: 64px; image-rendering: pixelated; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); }
.wr-dex img.shiny { filter: drop-shadow(0 0 10px rgba(245,197,24,.8)); }
.wr-step.is-in .wr-dex img { animation: wr-pop .5s cubic-bezier(.2,1.4,.4,1) both; animation-delay: calc(var(--i) * 40ms); }
.wr-coses { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.wr-cos { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.wr-cos .sw { width: 14px; height: 14px; border-radius: 50%; background: var(--sw); }
.wr-cos .ring { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--accent-hi); }
.wr-cos--title { font-weight: 700; color: var(--text); }
.wr-cos--title.t-gold { color: var(--gold); }
.wr-cos--title.t-purple { color: var(--accent-hi); }
.wr-cos--title.t-heardplanet { color: #ff8ae6; }
.wr-cos--flair { font-size: 18px; padding: 2px 10px; }

/* ═══ PASS ═══ */
.wr-seasons { display: flex; flex-wrap: wrap; gap: 20px; }
.wr-season { width: 220px; padding: 20px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); text-align: center; }
.wr-season.maxed { border-color: var(--sc); box-shadow: 0 0 40px color-mix(in srgb, var(--sc) 30%, transparent); }
.wr-ring { width: 130px; height: 130px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-content: center;
  background: radial-gradient(closest-side, #121219 80%, transparent 81%), conic-gradient(var(--sc) 0 calc(var(--f)), var(--sc2) 0 0, rgba(255,255,255,.08) 0);
  background: radial-gradient(closest-side, #121219 80%, transparent 81%), conic-gradient(var(--sc) var(--f), rgba(255,255,255,.08) 0); }
.wr-ring b { font-family: var(--font-display); font-size: 48px; line-height: 1; }
.wr-ring small { color: var(--text-3); font-size: 12px; }
.wr-season-n { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin: 0 0 4px; }

/* ═══ VERSUS / LEADERS ═══ */
.wr-trophies { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; max-width: 940px; }
.wr-trophy { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 16px; background: linear-gradient(135deg, rgba(245,197,24,.12), rgba(255,255,255,.03)); border: 1px solid rgba(245,197,24,.3); }
.wr-step.is-in .wr-trophy { animation: wr-pop .6s cubic-bezier(.2,1.4,.4,1) both; animation-delay: calc(var(--i) * 120ms); }
.wr-trophy-big { font-family: var(--font-display); font-weight: 800; font-size: 34px; color: var(--gold); flex: none; }
.wr-trophy p { margin: 0; color: var(--text-2); line-height: 1.3; }
.wr-trophy small { color: var(--text-3); }
.wr-leaders { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.wr-leader { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s; }
.wr-leader:hover { border-color: var(--accent); }
.wr-step.is-in .wr-leader { animation: wr-pop .5s cubic-bezier(.2,1.4,.4,1) both; animation-delay: calc(var(--i) * 60ms); }
.wr-leader .wr-av { width: 52px; height: 52px; }
.wr-leader-n { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin: 0; }

/* ═══ PERSONA ═══ */
.wr-persona { margin: 0; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.045em; line-height: .92; font-size: clamp(56px, 11vw, 150px);
  background: linear-gradient(110deg, #fff 10%, color-mix(in srgb, var(--c) 80%, #fff) 45%, #ff4fd8 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wr-persona-blurb { margin-top: 12px; }
.wr-traits { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.wr-traits span { display: flex; flex-direction: column; padding: 10px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); color: var(--text-3); font-size: 13px; }
.wr-traits b { font-size: 16px; }

/* ═══ CLOSER ═══ */
.wr-ch--closer .wr-content { align-items: center; text-align: center; }
.wr-ch--closer .wr-lead { margin: 12px auto 0; }
.wr-closer-h { font-size: clamp(56px, 12vw, 160px); }
.wr-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.wr-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none;
  color: var(--text); background: rgba(255,255,255,.08); border: 1px solid var(--line); transition: background .2s, transform .2s; }
.wr-btn:hover { background: rgba(255,255,255,.14); transform: translateY(-1px); }
.wr-btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.wr-btn--primary:hover { background: color-mix(in srgb, var(--accent) 85%, #fff); }
.wr-btn--quiet { background: none; border-color: transparent; color: var(--text-2); }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; }

/* ── phones ── */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wr-content { padding: 64px 16px; gap: 14px; }
  .wr-feature { align-items: center; }
  .wr-feature-art { width: 110px; }
  .wr-toplist { grid-template-columns: 1fr; }
  .wr-toplist li:nth-child(n + 3) { display: none; }
  .wr-first-art { width: 84px; }
  .wr-chip { min-width: 0; flex: 1 1 40%; }
  .wr-stats { gap: 12px 26px; }
  .wr-plats { grid-template-columns: 1fr; gap: 10px; }
  .wr-plat-badges, .wr-plat-top img { display: none; }
  .wr-grade { gap: 16px; }
  .wr-duo-card img { width: 56px; height: 56px; }
  .wr-season { width: calc(50% - 10px); padding: 14px; }
  .wr-ring { width: 96px; height: 96px; }
  .wr-ring b { font-size: 34px; }
  .wr-dex img { width: 44px; height: 44px; }
  .wr-badge-l { display: none; }
  .wr-badge { padding: 4px; }
  .wr-week { height: 120px; }
}
/* Short landscape screens: the tall chapters have to breathe. */
@media (max-height: 640px) and (min-width: 721px) {
  .wr-hero .wr-num { font-size: clamp(72px, 22vh, 150px); }
  .wr-content { padding-top: 48px; padding-bottom: 48px; }
}

/* ═══ STATIC: reduced motion (html.wr-static) + print ═══ */
html.wr-static { scroll-behavior: auto; }
html.wr-static .wr-ch { height: auto; }
html.wr-static .wr-stage { position: relative; height: auto; min-height: 100svh; }
html.wr-static .wr-step { opacity: 1; transform: none; filter: none; transition: none; }
html.wr-static *, html.wr-static *::before, html.wr-static *::after { animation: none !important; }
html.wr-static .wr-cue { display: none; }
html.wr-static .wr-content { transform: none; }

@media print {
  @page { size: 1280px 800px; margin: 0; }
  html, body { background: var(--bg) !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body::after, .wr-progress, .wr-rail, #wr-admin, .wr-cue, .wr-actions { display: none !important; }
  .wr-ch { height: 800px !important; break-after: page; page-break-after: always; overflow: hidden; }
  .wr-stage { position: relative !important; height: 800px !important; }
  .wr-step { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  *, *::before, *::after { animation: none !important; }
  .wr-ribbon svg { clip-path: none; }
  .wr-content { transform: scale(var(--fit, 1)) !important; }
  /* Gradient-clipped text prints with a stray box outline, and masks, blurs and
     drop-shadows are rasterised page-wide (a 16-page PDF came out at 47 MB).
     Print gets flat equivalents. */
  .wr-hero .wr-num, .wr-year span, .wr-persona, .wr-grade-l { background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important; color: #fff !important; filter: none !important; }
  .wr-persona { color: var(--accent-hi) !important; }
  .wr-grade--gold .wr-grade-l { color: var(--gold) !important; }
  .wr-grade--silver .wr-grade-l { color: #9be7ff !important; }
  /* The drifting walls are motion texture, and Chromium re-encodes every rotated
     webp in them as raw pixels — they are most of a PDF's weight. The opening
     mosaic stays (flattened); the chapter walls give way to the chapter tint. */
  .wr-wall { display: none !important; }
  /* webp can't be embedded in a PDF as-is (the JPEG covers can), so Binder's
     card art is left out of the printed mosaic. */
  .wr-mtile:has(img[src*="binder.heardpla.net"]) { display: none; }
  .wr-mosaic { inset: 0 !important; grid-template-columns: repeat(10, 1fr) !important; align-content: start !important; transform: none !important; mask-image: none !important; -webkit-mask-image: none !important; opacity: .3 !important; }
  .wr-orbs, .wr-scan, .wr-arrows, .wr-holo::after { display: none !important; }
  .wr-ribbon svg, .wr-dex img, .wr-tile, .wr-feature-art, .wr-holo, .wr-first-art { filter: none !important; box-shadow: none !important; }
  .wr-chip, .wr-plat { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .wr-card { transform: translateX(-50%) rotate(calc(var(--i) * 9deg)) translateY(calc(var(--i) * var(--i) * 4px)) !important; }
}
