:root {
  color-scheme: dark;
  --bg1: #230608;
  --bg2: #2e0a0b;
  --card: rgba(255, 230, 230, .05);
  --text: rgba(255, 245, 245, .96);
  --muted: rgba(255, 210, 210, .70);
  --stroke: rgba(255, 200, 200, .15);
  --accent: rgba(220, 38, 38, .95);
  --accent-glow: rgba(220, 38, 38, .40);
  --rose: #ffa9a3;
  --frame: 860px;
  --radius: 25px;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background: var(--bg2);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(244, 63, 94, .20), transparent 60%),
    radial-gradient(1000px 700px at 80% 20%, rgba(220, 38, 38, .14), transparent 55%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
  background-attachment: fixed;
}
.snowfall {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.snowbank {
  position: absolute;
  z-index: 1;
  top: -8px;
  left: 0;
  width: 100%;
  height: 14px;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .snowfall, .snowbank { visibility: hidden; }
}
button, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid #ffb4ad; outline-offset: 4px; }
h1:focus, h2:focus { outline: none; }
h1, h2, h3, p { margin: 0; }
.frame { width: min(var(--frame), calc(100% - 136px)); margin-inline: auto; }
.masthead, .brand, .hero-person, .footer, .footer-links { display: flex; align-items: center; }
.masthead { min-height: 77px; justify-content: center; padding: 10px 0 7px; }
.brand { gap: 12px; font-size: clamp(.94rem, 2.3vw, 1.18rem); font-weight: 820; line-height: 1.15; }
.brand-title { display: block; }
.brand-arrow { color: #fff; font-size: .9em; }
.brand small { display: block; color: var(--muted); font-size: .8em; font-weight: 690; margin-top: 4px; }
.brand-symbol {
  width: 43px;
  height: 43px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent);
  box-shadow: inset 0 0 0 1px #ffffff38, 0 7px 21px var(--accent-glow);
}
.brand-symbol span {
  width: 0;
  height: 0;
  margin-left: 2px;
  border-block: 5px solid transparent;
  border-left: 8px solid #fff4f4;
}
.footer a:hover { color: var(--rose); }
.story {
  --edge-length: clamp(20px, 4.8svh, 44px);
  --edge-top: 0px;
  --edge-bottom: 0px;
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}
.story[data-soft-top] { --edge-top: var(--edge-length); }
.story[data-soft-bottom] { --edge-bottom: var(--edge-length); }
.story:is([data-soft-top], [data-soft-bottom]) {
  --edge-mask: linear-gradient(
    to bottom,
    transparent 0,
    #0004 calc(var(--edge-top) * .28),
    #000b calc(var(--edge-top) * .63),
    #000 var(--edge-top),
    #000 calc(100% - var(--edge-bottom)),
    #000b calc(100% - var(--edge-bottom) * .63),
    #0004 calc(100% - var(--edge-bottom) * .28),
    transparent 100%
  );
  -webkit-mask-image: var(--edge-mask);
  mask-image: var(--edge-mask);
}
.story::-webkit-scrollbar { display: none; }
.step-frame {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 12px 0 18px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.scene { width: min(var(--frame), calc(100% - 136px)); }
.deck-controls { min-height: 30px; display: grid; place-items: center; }
.next-peek {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 10px;
  color: #e2b9ba;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 11px;
  font-weight: 680;
}
.next-peek:hover { color: #ffe0db; }
.scene {
  position: relative;
  min-height: clamp(405px, 64vh, 550px);
  min-height: clamp(405px, 64svh, 550px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  align-items: center;
  column-gap: clamp(18px, 4vw, 44px);
  padding: clamp(27px, 5vw, 49px);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(255, 225, 225, .075), var(--card) 50%, rgba(16, 2, 4, .11));
  box-shadow: 0 18px 52px #10030554;
  isolation: isolate;
}
.scene-copy, .scene-body { min-width: 0; }
.scene-copy { z-index: 1; }
.scene h1, .scene h2 { font-weight: 860; line-height: 1.02; letter-spacing: -.051em; text-wrap: balance; }
.scene h1 { font-size: clamp(2.45rem, 5vw, 4.25rem); }
.scene h2 { font-size: clamp(2rem, 4.12vw, 3.5rem); }
.hero h1 em { display: block; font-style: normal; color: var(--rose); }
.eyebrow {
  margin-bottom: 12px;
  color: #ffbbb8;
  font-weight: 760;
  font-size: 10px;
  line-height: 1.45;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.lede { max-width: 42ch; margin-top: 13px; color: #e8c8c9; font-size: clamp(.88rem, 1.65vw, 1.02rem); line-height: 1.58; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
  transition: background-color .18s, border-color .18s;
}
.button-primary { color: #fff9f9; background: #b51c25; border-color: #fa6264a6; box-shadow: 0 8px 26px #e7273440; }
.button-primary:hover { background: #ce2630; }
.button-ghost { background: #ffffff09; border-color: #ffffff30; color: var(--text); }
.button-ghost:hover { background: #ffffff17; }
.button:disabled { opacity: .38; cursor: default; }
.hero-button, .inline-action { margin-top: 19px; }
.hero {
  background:
    radial-gradient(ellipse at 86% 48%, #bd1f303f 0%, transparent 64%),
    radial-gradient(ellipse at 18% 0%, #fb667b31, transparent 65%),
    linear-gradient(145deg, #48141a, #370d12 65%, #481018);
}
.hero-person { gap: 9px; margin-bottom: 18px; }
.hero-person .eyebrow { margin-bottom: 0; }
.avatar-gift { position: relative; flex: none; }
.santa-hat { position: absolute; z-index: 1; width: 29px; height: 21px; left: -5px; top: -10px; rotate: -14deg; filter: drop-shadow(0 2px 2px #1a030d8a); pointer-events: none; }
.santa-hat i, .santa-hat b, .santa-hat small { position: absolute; display: block; }
.santa-hat i { inset: 0 0 5px 2px; background: linear-gradient(130deg, #f04850, #ba131c 80%); clip-path: polygon(3% 96%, 22% 43%, 43% 13%, 64% 3%, 81% 13%, 94% 48%, 77% 42%, 71% 64%, 90% 96%); }
.santa-hat b { left: 2px; right: 4px; bottom: 3px; height: 6px; background: #fff3ef; border-radius: 6px; box-shadow: inset 0 -2px #e6ccca; }
.santa-hat small { width: 7px; height: 7px; top: 4px; right: -2px; background: #fff5f1; border-radius: 50%; }
.avatar {
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  aspect-ratio: 1;
  background: #62292e;
  border: 1px solid #ffd3d366;
  overflow: hidden;
  color: var(--text);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: -.03em;
}
.avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.hero-art, .finale-art {
  --art-height: 240px;
  position: relative;
  min-height: var(--art-height);
}
.rings {
  position: absolute;
  width: 110%;
  max-width: var(--rings-limit, 374px);
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 11.6%, #ffc4bc28 11.8% 12.2%, transparent 12.4% 16.8%);
  mask-image: radial-gradient(circle, transparent 10%, #000 42%, #000 61%, transparent 73%);
}
.cover {
  position: absolute;
  width: 70%;
  max-width: 298px;
  aspect-ratio: 16 / 9;
  top: 50%;
  left: 50%;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(145deg, #74313a, #41111a);
  border: 1px solid #ffb7af95;
  box-shadow: 0 16px 29px #20040886;
}
.cover:not(:has(img:not([hidden]))) { background: repeating-linear-gradient(130deg, #ffdbab11 0 2px, transparent 2px 10px), #521d25; }
.cover img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cover-back { transform: translate(-46%, -78%) rotate(8deg) scale(.93); }
.cover-middle { transform: translate(-47%, -22%) rotate(6deg) scale(.94); }
.cover-front { transform: translate(-54%, -48%) rotate(-7deg); }
.question { background: radial-gradient(ellipse at 84% 46%, #92333d52, transparent 60%), #321318; }
.question-board { position: relative; display: grid; align-content: center; justify-items: center; gap: 8px; min-height: 235px; }
.question-mark { position: absolute; top: 50%; left: 50%; translate: -50% -53%; color: #ff858322; font-size: 12rem; font-weight: 900; line-height: .9; }
.prompt-card {
  position: relative;
  width: min(100%, 300px);
  padding: 10px 12px;
  background: #391219f5;
  border: 1px solid #ffa5a341;
  border-radius: 10px;
  box-shadow: 0 6px 26px #10000255;
  color: #ffe3e1;
  font-size: .82rem;
  font-weight: 720;
  line-height: 1.35;
}
.prompt-card:nth-of-type(even) { rotate: 2deg; }
.prompt-card:nth-of-type(odd) { rotate: -2deg; }
.upload-count { background: radial-gradient(ellipse at 75% 58%, #ad182357, transparent 58%), #371014; }
.number-card, .counter-card {
  min-height: 230px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 7px;
  padding: 20px;
  border: 1px solid var(--stroke);
  border-radius: 20px;
  background: var(--card);
  text-align: center;
}
.big-number {
  display: block;
  font-size: clamp(3.5rem, 8.5vw, 6rem);
  font-weight: 900;
  line-height: .96;
  letter-spacing: -.065em;
  font-variant-numeric: tabular-nums;
}
.number-label, .counter-label { color: #ffb9b6; font-size: .82rem; font-weight: 750; }
.signal { display: flex; align-items: center; justify-content: center; gap: 5px; height: 19px; }
.signal i { width: 5px; height: 5px; border-radius: 50%; background: #ff9091; }
.timeline { grid-template-columns: minmax(0, 1fr); align-content: center; row-gap: 14px; background: #311113; }
.month-chips {
  display: flex;
  gap: 6px;
  min-height: 34px;
  margin-bottom: 9px;
  padding: 2px 3px 4px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #9c454a transparent;
}
.month-chip {
  flex: none;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--stroke);
  background: #45181c;
  color: #f3cbca;
  font-size: .74rem;
  font-weight: 660;
}
.month-chip[aria-pressed="true"] { border-color: #f68484; background: #78262b; color: #fff1ee; }
.result-count { color: #f1c6c6; min-height: 1.4em; font-size: .72rem; margin-bottom: 5px; }
.video-grid {
  --video-row: 62px;
  display: grid;
  grid-template-rows: repeat(3, var(--video-row));
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
  touch-action: pan-y;
}
.video-grid .video-link {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  align-items: center;
}
.video-grid .video-image { width: auto; height: calc(var(--video-row) - 2px); aspect-ratio: 16 / 9; }
.video-grid .video-meta { align-content: center; padding-right: 32px; }
.video-grid .video-title { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.timeline-empty { grid-row: 1 / -1; display: grid; place-items: center; color: var(--muted); font-size: .89rem; text-align: center; border: 1px dashed var(--stroke); border-radius: 12px; }
.video-card, .rank-slot { min-width: 0; }
.video-link {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid #ffffff29;
  border-radius: 11px;
  background: #240b0e;
  transition: border-color .15s, background-color .15s;
}
.video-link:hover { border-color: #ffaaa9; background: #380e13; }
.video-image { position: relative; aspect-ratio: 16/9; overflow: hidden; background: linear-gradient(135deg, #733139, #411015); }
.video-image img { display: block; width: 100%; height: 100%; object-fit: contain; background: #22090a; }
.video-meta { padding: 10px 11px; display: grid; gap: 4px; }
.video-date { font-size: .71rem; font-weight: 660; color: var(--muted); }
.video-title { overflow-wrap: anywhere; font-size: .88rem; line-height: 1.3; }
.external { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 25px; aspect-ratio: 1; background: #210a0ddd; border-radius: 50%; font-weight: 760; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 10px; }
.pagination .button { min-width: 42px; min-height: 32px; padding: 0 7px; }
.pagination span { color: var(--muted); font-size: 12px; }
.ranked { background: radial-gradient(ellipse at 78% 53%, #a6283454, transparent 65%), #361015; }
.ranked-first { background: radial-gradient(ellipse at 80% 46%, #bb222f78, transparent 67%), #451116; }
.rank-card .video-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, #47111a, #b83c40);
  opacity: 0;
  pointer-events: none;
}
.rank-card .video-meta { gap: 6px; padding: 13px; }
.rank-card .video-title { font-size: 1rem; }
.video-views { color: #ffb2a7; font-size: 1.15rem; font-weight: 840; letter-spacing: -.026em; }
.video-stats { font-size: .74rem; color: #e8c5c6; line-height: 1.4; }
.cadence { grid-template-columns: minmax(0, 1fr); align-content: center; row-gap: 12px; background: radial-gradient(ellipse at 77% 45%, #7d242b62, transparent 71%), #331012; }
.cadence-content { min-width: 0; }
.calendar { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 6px; }
.calendar-month { padding: 5px 6px 6px; border: 1px solid var(--stroke); border-radius: 8px; background: #2b0d13; }
.calendar-month h3 { margin: 0 0 4px; color: #eec1c0; font-size: .68rem; font-weight: 700; }
.calendar-days { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 2px; }
.calendar-day {
  min-width: 0;
  padding: 0;
  aspect-ratio: 1;
  border: 1px solid transparent;
  border-radius: 5px;
  background: #512427;
  color: #ffcfcc;
  font-size: clamp(.52rem, 1.4vw, .73rem);
  font-variant-numeric: tabular-nums;
}
.calendar-day.has-video { background: #b6333a; color: #fff7f4; }
.calendar-day.future { color: #bc8a8c; background: #3a1519; }
.calendar-day[aria-pressed="true"] { border-color: #fff0e8; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 5px 13px; margin-top: 8px; color: #eec1c0; font-size: .68rem; }
.calendar-legend span { display: inline-flex; align-items: center; gap: 5px; }
.calendar-legend span::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: #512427; }
.calendar-legend .legend-upload::before { background: #b6333a; }
.calendar-detail { min-height: 2.4em; margin-top: 5px; color: #f2c9c7; font-size: .75rem; line-height: 1.45; }
.calendar-detail a { display: inline-block; color: #fff1ee; text-decoration: underline; text-underline-offset: 3px; }
.comments { background: radial-gradient(ellipse at 75% 55%, #85263070, transparent 65%), #381215; }
.comment-content { min-width: 0; display: grid; gap: 8px; }
.comment-card { margin: 0; padding: 10px 12px; background: #2b0b10; border: 1px solid var(--stroke); border-radius: 11px; }
.comment-card blockquote { margin: 0; color: #fce9e7; font-size: .84rem; line-height: 1.45; overflow-wrap: anywhere; }
.comment-card figcaption { margin-top: 5px; font-size: .68rem; color: #f9b9b7; }
.comment-card a { text-decoration: underline; text-underline-offset: 2px; }
.subscribers { background: radial-gradient(ellipse at 76% 57%, #8d22294f, transparent 61%), #250c0d; }
.counter-card { gap: 6px; }
.avatar-large { width: 52px; font-size: 14px; margin-bottom: 6px; }
.counter-name { color: #f1cecf; font-size: .87rem; font-weight: 700; }
.quiz { background: radial-gradient(ellipse at 16% 18%, #7130395c, transparent 67%), #321114; }
.quiz-answers { display: grid; gap: 7px; }
.answer {
  width: 100%;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 49px;
  padding: 7px 9px;
  border: 1px solid #ffffff36;
  border-radius: 10px;
  background: #270c10a8;
  color: var(--text);
  text-align: left;
  font-size: .83rem;
  line-height: 1.35;
  font-weight: 680;
}
.answer:hover:not([aria-disabled="true"]) { border-color: #ffb4b1; }
.answer[aria-disabled="true"] { cursor: default; }
.answer.correct { border-color: #a6d9a8; background: #293027; }
.answer.wrong { border-color: #ff9a9e; background: #541d27; }
.answer-letter { width: 28px; aspect-ratio: 1; display: grid; place-items: center; color: #2a1212; background: #f2abab; border-radius: 7px; font-weight: 850; }
.quiz-feedback { min-height: 2.8em; color: #f7d8d0; font-size: .84rem; line-height: 1.44; }
.finale { background: radial-gradient(ellipse at 79% 46%, #b52e397d, transparent 67%), #441117; }
.finale-art { display: grid; place-items: center; }
.avatar-finale { z-index: 1; width: min(73%, 144px); border: 2px solid #ffc2b8; font-size: 30px; box-shadow: 0 11px 43px #300b17b3; }
.signature { color: #ffb9b2; margin-top: 11px; font-size: 1.14rem; font-weight: 850; font-style: italic; }
.notice { color: #f5d2d7; border: 1px solid #ffffff2a; border-radius: 10px; padding: 11px; font-size: .85rem; line-height: 1.45; }
.notice .retry { display: block; margin-top: 5px; }
.step-nav {
  position: fixed;
  top: 50%;
  right: max(14px, calc((100% - var(--frame)) / 2 - 51px));
  z-index: 2;
  transform: translateY(-50%);
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 4px 2px;
  border: 1px solid var(--stroke);
  border-radius: 21px;
  background: #260a0eea;
  box-shadow: 0 5px 25px #1a03054d;
}
.progress { display: grid; }
.step-dot, .step-arrow {
  display: grid;
  place-items: center;
  width: 29px;
  height: 26px;
  padding: 0;
  background: transparent;
  color: var(--text);
  border: 0;
  border-radius: 12px;
}
.step-dot span { width: 6px; height: 6px; border-radius: 12px; background: #db99969e; transition: height .25s, background-color .25s; }
.step-dot[aria-current="step"] span { height: 19px; background: #ffcfcc; }
.step-dot:hover span, .step-dot:focus-visible span { background: #ffe5e3; }
.step-arrow { font-size: 14px; font-weight: 700; }
.step-arrow:hover:not(:disabled) { background: #ffffff16; }
.step-arrow:disabled { opacity: .35; cursor: default; }
.footer { min-height: 39px; justify-content: space-between; gap: 6px 13px; padding: 3px 2px 6px; }
.footer-links { gap: 13px; }
.footer a, .data-status, .retry, .noscript { color: #e9c2c2; font-size: 11px; line-height: 1.45; }
.footer a { min-height: 28px; display: grid; align-items: center; text-underline-offset: 3px; text-decoration: underline; }
.data-status { min-width: 0; display: flex; flex-wrap: nowrap; align-items: flex-start; gap: 6px; }
.status-dot { display: block; flex: 0 0 6px; width: 6px; height: 6px; margin-top: .45em; border-radius: 50%; background: #ffcb82; }
.data-status.ready .status-dot { background: #a7e9ae; }
.data-status.failed .status-dot { background: #ff8a92; }
.retry { color: #ffb1b5; border: 0; background: transparent; text-decoration: underline; padding: 3px; font-weight: 740; }
.skeleton,
.data-loading .cover::after,
.data-loading [data-avatar]::after,
.data-loading .big-number::after {
  display: block;
  background: linear-gradient(104deg, #78363c 8%, #a8585b 42%, #78363c 76%) 110% 0 / 240% 100%;
  animation: skeleton-sweep 1.9s ease-in-out infinite;
}
.skeleton { border-radius: 6px; }
.data-loading .cover::after { content: ""; position: absolute; inset: 0; }
.data-loading [data-avatar], .data-loading .big-number { position: relative; color: transparent; }
.data-loading [data-avatar]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.data-loading .big-number { min-width: 1.35em; }
.data-loading .big-number::after {
  content: "";
  position: absolute;
  inset: .19em 0;
  border-radius: .13em;
}
.skeleton-line { height: .58rem; }
.skeleton-line.short { width: min(36%, 4.5rem); }
.skeleton-line.medium { width: 61%; }
.skeleton-line.wide { width: 88%; }
.skeleton-months { overflow: hidden; }
.skeleton-chip { flex: 0 0 4.6rem; height: 1.65rem; border-radius: 20px; }
.skeleton-chip:first-child { flex-basis: 5.3rem; }
.result-count > .skeleton { margin-top: .2rem; }
.skeleton-pagination .skeleton-line { width: 2rem; }
.skeleton-page-button { width: 42px; height: 32px; border-radius: 9px; }
.skeleton-ranking .video-meta { padding: 13px; gap: 7px; }
.skeleton-calendar-month > .skeleton-line { width: 1.6rem; margin-bottom: 5px; }
.calendar-legend > .skeleton-line { width: 3.8rem; }
.skeleton-answer-mark { width: 28px; height: 28px; }
.skeleton-comment { display: grid; gap: 7px; min-height: 48px; align-content: center; }
.skeleton-prompt { width: min(90%, 295px); height: 32px; border-radius: 10px; }
.skeleton-prompt:nth-child(2n) { width: min(82%, 263px); }
@keyframes skeleton-sweep {
  from { background-position: 110% 0; }
  to { background-position: -130% 0; }
}
@keyframes rise {
  from { opacity: 0; translate: 0 11px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes cover-arrive {
  from { opacity: 0; transform: translate(-54%, -42%) rotate(-4deg) scale(.95); }
  to { opacity: 1; transform: translate(-54%, -48%) rotate(-7deg) scale(1); }
}
@keyframes spark {
  0%, 100% { opacity: .48; scale: .76; }
  45% { opacity: 1; scale: 1.35; }
}
@keyframes unmask {
  0%, 35% { opacity: 1; translate: 0 0; }
  100% { opacity: 0; translate: 100% 0; }
}
@keyframes clear-image {
  from { scale: 1.11; filter: blur(9px) brightness(.65); }
  to { scale: 1; filter: blur(0) brightness(1); }
}
@media (prefers-reduced-motion: no-preference) {
  .js .scene:not(.has-entered) > :not(.snowbank) { visibility: hidden; opacity: 0; }
  .scene.has-entered > :not(.scene-copy, .snowbank) { animation: rise .86s .36s both; }
  .scene.has-entered .scene-copy > :is(.eyebrow, .hero-person) { animation: rise .70s .08s both; }
  .scene.has-entered .scene-copy > :is(h1, h2) { animation: rise .88s .20s both; }
  .scene.has-entered .scene-copy > :is(.lede, .signature) { animation: rise .86s .51s both; }
  .scene.has-entered .scene-copy > .button { animation: rise .82s .71s both; }
  .scene.has-entered .comment-card { animation: rise .8s var(--beat) both; }
  .scene.has-entered .cover-front { animation: cover-arrive 1s .30s both; }
  .scene.has-entered .prompt-card { animation: rise .82s var(--beat) both; }
  .scene.has-entered .signal i { animation: spark 1.05s calc(var(--signal, 0) * .20s) 2; }
  .signal i:nth-child(2) { --signal: 1; }
  .signal i:nth-child(3) { --signal: 2; }
  .scene.has-entered .rank-card .video-image::after { animation: unmask 1.5s .40s both; }
  .scene.has-entered .rank-card .video-image img { animation: clear-image 1.45s .40s both; }
  .scene.has-entered .rank-card .video-meta { animation: rise .83s 1.22s both; }
  .js .scene .rank-card:focus-within .video-meta { opacity: 1; animation: none; }
  .ranked-first.has-entered .rank-card .video-image::after { animation-delay: .62s; }
  .ranked-first.has-entered .rank-card .video-meta { animation-delay: 1.58s; }
}
@media (max-width: 760px) {
  .frame, .scene { width: min(var(--frame), calc(100% - 96px)); }
  .masthead { min-height: 63px; }
  .step-nav { right: 10px; }
}
@media (max-width: 600px) {
  .frame, .scene { width: 100%; }
  .masthead { min-height: 55px; padding: 5px max(16px, env(safe-area-inset-right)) 5px max(16px, env(safe-area-inset-left)); }
  .step-frame { padding: 0; }
  .scene {
    --card-padding-block: 29px;
    min-height: clamp(392px, 63svh, 510px);
    grid-template-columns: minmax(0, 1fr);
    row-gap: 16px;
    align-content: center;
    border-radius: 0;
    border-inline: 0;
    padding: var(--card-padding-block) 44px var(--card-padding-block) 20px;
    box-shadow: none;
  }
  .scene h1 { font-size: clamp(2.15rem, 9.5vw, 3rem); }
  .scene h2 { font-size: clamp(1.95rem, 8.2vw, 2.65rem); }
  .hero-person { margin-bottom: 12px; }
  .hero-art, .finale-art {
    /* Leave room at the card edge while the artwork slides in. */
    --rings-limit: calc(var(--art-height) + 2 * var(--card-padding-block) - 30px);
  }
  .hero-art { --art-height: 183px; }
  .cover { width: min(66%, 220px); }
  .rings { width: 75%; }
  .question-board { min-height: 154px; }
  .question-mark { font-size: 8rem; }
  .prompt-card { width: min(94%, 290px); }
  .number-card, .counter-card { min-height: 157px; }
  .avatar-large { width: 38px; }
  .timeline { row-gap: 10px; padding-block: 20px; }
  .timeline .lede { margin-top: 6px; }
  .video-grid { --video-row: 58px; }
  .video-grid .video-meta { padding: 6px 7px; }
  .video-grid .video-title { font-size: .76rem; }
  .video-grid .external { display: none; }
  .calendar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
  .calendar-month { padding: 5px; }
  .calendar-day { min-height: 24px; }
  .step-nav { right: max(5px, env(safe-area-inset-right)); padding: 2px 0; }
  .step-dot, .step-arrow { width: 27px; height: 25px; }
  .finale-art { --art-height: 125px; }
  .avatar-finale { width: 83px; font-size: 19px; }
  .footer { min-height: 35px; padding: 3px 12px 5px; }
  .footer-links { gap: 9px; }
  .data-status { font-variant-numeric: tabular-nums; }
}
@media (max-width: 360px) {
  .scene { padding-left: 15px; padding-right: 40px; }
  .footer { gap: 7px; padding-inline: 8px; }
  .footer a, .data-status, .retry { font-size: 10px; }
  .video-grid { --video-row: 55px; }
  .hero-art { --art-height: 157px; }
}
@media (max-height: 420px) {
  .masthead { min-height: 48px; }
  .step-nav { top: 5px; transform: none; gap: 0; }
  .step-dot, .step-arrow { height: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
