/* legacy2026 — cinematic, still minimal.
   Dark by default; light follows prefers-color-scheme.
   The wash is three soft radial glows. Motion is transform only. */

@font-face {
  font-family: "Inter Tight";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("fonts/inter-tight-600.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("fonts/jetbrains-mono-400.woff2") format("woff2");
}

:root {
  --bg: #0b0b0c;
  --fg: #ededed;
  --muted: #a1a1a6;
  --line: #222225;
  --accent: #e9c46a;
  --accent-on-photo: #e9c46a;
  --panel: #101012;
  --poster: #151517;
  --media: #16161a;
  --media-fg: #a1a1a6;
  --shade: rgba(11, 11, 12, 0.78);
  --select: rgba(233, 196, 106, 0.28);
  --select-fg: #fff;
  --eyebrow: #a1a1a6;
  --glow-a-core: rgba(233, 196, 106, 0.12);
  --glow-a-mid: rgba(233, 196, 106, 0.045);
  --glow-a-edge: rgba(233, 196, 106, 0);
  --glow-b-core: rgba(233, 196, 106, 0.08);
  --glow-b-mid: rgba(233, 196, 106, 0.03);
  --glow-b-edge: rgba(233, 196, 106, 0);
  --glow-c-core: rgba(233, 196, 106, 0.1);
  --glow-c-mid: rgba(233, 196, 106, 0.04);
  --glow-c-edge: rgba(233, 196, 106, 0);
  --font-zh: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  --font-head: "Inter Tight", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  --font-body: -apple-system, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --track-head: -0.03em;
  --s1: 4px;
  --s2: 8px;
  --s3: 16px;
  --s4: 24px;
  --s5: 40px;
  --s6: 64px;
  --s7: 104px;
  --section-pad: var(--s6);
  --maxw: 1120px;
  --pad-x: clamp(20px, 5vw, 64px);
  --slide-w: 82vw;
  --radius: 2px;
  --outline: 1px solid rgba(255, 255, 255, 0.08);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f2ec;
    --fg: #1a1916;
    --muted: #4e4a43;
    --line: #e3ddd4;
    --accent: #7a5614;
    --panel: #f3efe8;
    --poster: #ece7df;
    --media: #ece7df;
    --media-fg: #4e4a43;
    --shade: rgba(26, 25, 22, 0.55);
    --select: rgba(122, 86, 20, 0.2);
    --select-fg: #1a1916;
    --outline: 1px solid rgba(26, 25, 22, 0.12);
    --eyebrow: #6e6a63;
    --glow-a-core: rgba(217, 185, 138, 0.2);
    --glow-a-mid: rgba(217, 185, 138, 0.08);
    --glow-a-edge: rgba(217, 185, 138, 0);
    --glow-b-core: rgba(217, 185, 138, 0.15);
    --glow-b-mid: rgba(217, 185, 138, 0.06);
    --glow-b-edge: rgba(217, 185, 138, 0);
    --glow-c-core: rgba(184, 196, 208, 0.1);
    --glow-c-mid: rgba(184, 196, 208, 0.04);
    --glow-c-edge: rgba(184, 196, 208, 0);
    color-scheme: light;
  }
}

@media (min-width: 768px) {
  :root {
    --section-pad: var(--s7);
    --slide-w: min(68vw, 440px);
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  position: relative;
  z-index: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }

button, h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }

button {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  padding: 0;
}

::selection {
  background: var(--select);
  color: var(--select-fg);
}

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

.hidden-lang { display: none !important; }

body.lang-zh { font-family: var(--font-zh); }

body.lang-zh .heading,
body.lang-zh .poster-title { font-weight: 700; }

/* One viewport layer. Each glow is a radial fade to the same hue
   at alpha 0, so the box never draws an edge. Drift and parallax
   are transforms on different elements. No blur: a filter on a
   layer this large was the old scroll jank. */
.ambient {
  position: fixed;
  inset: 0;
  height: 100lvh;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.glow {
  position: absolute;
}

.glow span {
  display: block;
  width: 100%;
  height: 100%;
  /* closest-side ends at the box; stop short of it so the
     square never carries color to its own edge. */
  background: radial-gradient(ellipse closest-side, var(--core) 0%, var(--mid) 34%, var(--edge) 78%);
  transform: translate3d(0, 0, 0);
}

.glow-a { width: 80vw; height: 48%; left: -26vw; top: -14%; --core: var(--glow-a-core); --mid: var(--glow-a-mid); --edge: var(--glow-a-edge); }
.glow-b { width: 76vw; height: 46%; left: 22vw; top: 28%; --core: var(--glow-b-core); --mid: var(--glow-b-mid); --edge: var(--glow-b-edge); }
.glow-c { width: 70vw; height: 44%; left: -20vw; top: 58%; --core: var(--glow-c-core); --mid: var(--glow-c-mid); --edge: var(--glow-c-edge); }

html.motion .glow-a span { animation: drift-a 28s ease-in-out infinite; }
html.motion .glow-b span { animation: drift-b 32s ease-in-out -11s infinite; }
html.motion .glow-c span { animation: drift-c 24s ease-in-out -7s infinite; }

html.motion .glow { will-change: transform; }
html.motion .glow span { will-change: transform; }

html.scroll-tl.motion .glow {
  animation: ambient-shift linear both;
  animation-timeline: scroll(root);
  animation-duration: 1ms;
}

@keyframes drift-a {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(28px, -22px, 0) scale(1.06); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes drift-b {
  0% { transform: translate3d(0, 0, 0) scale(1.04); }
  50% { transform: translate3d(-26px, 18px, 0) scale(1); }
  100% { transform: translate3d(0, 0, 0) scale(1.04); }
}

@keyframes drift-c {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(16px, 24px, 0) scale(1.05); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.03;
  pointer-events: none;
  background-image: url("noise.png");
  background-repeat: repeat;
  background-size: 160px 160px;
}

/* Hero leaves at 0.4× (translate 60% of its own height) and fades.
   view() exit matches the old scrub range: top top → bottom top. */
html.view-tl.motion .hero {
  animation: hero-out linear both;
  animation-timeline: view();
  animation-range: exit 0% exit 100%;
  animation-duration: 1ms;
}

@keyframes hero-out {
  from { transform: translate3d(0, 0, 0); opacity: 1; }
  to { transform: translate3d(0, 60%, 0); opacity: 0; }
}

main, .footer { position: relative; z-index: 1; }

.hero,
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.section { padding-block: var(--section-pad); }

.label,
.mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.hero .label {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: clamp(16px, 4.5vw, 22px);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--eyebrow);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: clip;
}

.hero-inner { position: relative; z-index: 1; will-change: auto; }

.hero-year {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: var(--track-head);
  font-size: clamp(4rem, 18vw, 12rem);
  line-height: 0.92;
  white-space: nowrap;
}

.hero-tagline {
  margin-top: var(--s4);
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: var(--track-head);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.35;
  max-width: 18em;
}

.hero-quote {
  margin-top: var(--s2);
  color: var(--muted);
  font-size: 1rem;
  max-width: 28em;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s4);
  margin-top: var(--s6);
  padding-top: var(--s5);
  border-top: 1px solid var(--line);
}

.stats dd {
  margin: var(--s2) 0 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.stat-num {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 2.5rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  min-width: 1ch;
}

.accent-bar {
  width: 48px;
  height: 1px;
  background: var(--accent);
  margin-bottom: var(--s5);
  box-shadow: 0 0 12px rgba(233, 196, 106, 0.45);
}

.heading {
  margin: 0 0 var(--s4);
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: var(--track-head);
  font-size: 2.25rem;
  line-height: 1.15;
}

@media (min-width: 768px) {
  .heading { font-size: 3.75rem; line-height: 1.05; }
}

.heading .soft { color: var(--muted); }

.intro-text {
  margin: 0;
  max-width: 36rem;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: var(--track-head);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.45;
  color: var(--fg);
}

.sec-no {
  color: var(--accent);
  margin-right: var(--s3);
  letter-spacing: 0.08em;
  white-space: pre;
  text-shadow: 0 0 18px rgba(233, 196, 106, 0.28);
}

.subtitle {
  position: relative;
  margin: 0 0 var(--s5);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.timeline {
  display: grid;
  column-gap: var(--s3);
  row-gap: var(--s6);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .timeline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: var(--s4);
  }
}

/* Flat until a card is actually turning. Permanent preserve-3d
   gives every poster its own stack of layers while the page scrolls. */
.poster-stage.is-3d { perspective: 1200px; }

.poster-stage.is-3d .poster-card,
.poster-stage.is-3d .card { transform-style: preserve-3d; }

.card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  -webkit-tap-highlight-color: transparent;
  cursor: default;
  text-align: left;
}

.ptr-coarse .card { cursor: pointer; }

.ptr-coarse .poster-stage.is-3d .card {
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.ptr-coarse .card.is-flipped { transform: rotateY(180deg); }

.face {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}

.poster-stage.is-3d .face {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.poster-stage.is-3d .face.front { transform: translate3d(0, 0, 1px); }

.face.back {
  display: none;
}

.ptr-coarse .poster-stage.is-3d .face.back {
  transform: rotateY(180deg) translate3d(0, 0, 1px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s3);
  padding: var(--s4);
  text-align: center;
  background: var(--panel);
  color: var(--fg);
  outline: var(--outline);
  outline-offset: -1px;
  overflow: hidden;
}

.ptr-fine .face.back { display: none; }

.poster-img {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: var(--poster);
  border-radius: var(--radius);
  outline: var(--outline);
  outline-offset: -1px;
}

.poster-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-ph {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--s3);
  padding: var(--s4);
  background:
    radial-gradient(120% 70% at 0% 0%, rgba(233, 196, 106, 0.18), transparent 58%),
    var(--poster);
}

.poster-ph-kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.poster-ph-title {
  margin: 0;
  max-width: 9em;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: var(--track-head);
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
  line-height: 1.25;
  color: var(--fg);
}

.poster-img.ranked::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 62%;
  height: 42%;
  background: radial-gradient(circle at 0 0, var(--shade), transparent 68%);
  pointer-events: none;
  z-index: 1;
}

.rank {
  position: absolute;
  top: var(--s2);
  left: var(--s3);
  z-index: 2;
  font-family: var(--font-mono);
  font-size: clamp(2.75rem, 7vw, 4rem);
  line-height: 0.85;
  color: var(--accent-on-photo);
  font-variant-numeric: tabular-nums;
  text-shadow:
    0 1px 8px rgba(0, 0, 0, 0.55),
    0 0 16px rgba(233, 196, 106, 0.22);
}

/* Desktop only: one gold sheen, translate only. */
@media (hover: hover) and (pointer: fine) {
  .poster-img::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 200%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(105deg, transparent 40%, rgba(233, 196, 106, 0.22) 50%, transparent 60%);
    transform: translate3d(-100%, 0, 0);
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* Stage box stays still, so the sweep doesn't drop when the card tilts away. */
  .poster-stage:hover .poster-img::after { transform: translate3d(50%, 0, 0); }
}

.back-date {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.back-venue {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.6;
  max-width: 16em;
}

.also-seen {
  margin: var(--s3) 0 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.also-seen + .poster-date { margin-top: var(--s1); }

.poster-date {
  display: block;
  margin-top: var(--s3);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.poster-title {
  margin: var(--s1) 0 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.title-main {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.35;
  min-height: 2.7em;
}

.title-meta {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: var(--s2);
  margin-top: var(--s1);
  min-width: 0;
}

.lang-tag {
  display: inline-block;
  flex: none;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.poster-sub {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  font-family: var(--font-zh);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}

.poster-venue {
  margin: var(--s1) 0 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  line-height: 1.45;
}

.poster-credit {
  margin: var(--s1) 0 0;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  line-height: 1.45;
}

.section-musicals { padding-bottom: var(--s7); }

.carousel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s3);
  margin-bottom: var(--s5);
}

.carousel-head .subtitle { margin: 0; }

.carousel-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  flex: none;
}

.carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  margin: 0 calc(var(--pad-x) * -1);
  padding: 4px var(--pad-x) 8px;
  scroll-padding-inline: var(--pad-x);
  touch-action: pan-x;
}

.carousel::-webkit-scrollbar { display: none; }

.slide {
  flex: 0 0 var(--slide-w);
  margin: 0;
  scroll-snap-align: start;
  min-width: 0;
  max-width: var(--slide-w);
  overflow: clip;
}

.slide-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--media);
  outline: var(--outline);
  outline-offset: -1px;
  transition: opacity 0.7s var(--ease);
}

.slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.js.motion .carousel.has-active .slide:not(.is-active) .slide-media { opacity: 0.72; }

/* Starts only once the carousel is on screen, so the 8s scale
   does not repaint while the hero is the thing being scrolled. */
.js.motion .carousel.is-in .slide.is-active .slide-media img {
  animation: kb 8s ease-out forwards;
}

@keyframes kb {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(0, 0, 0) scale(1.06); }
}

.ph {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s4);
  text-align: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: var(--track-head);
  color: var(--media-fg);
}

.slide-cap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s3);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: var(--s3);
  overflow: clip;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.4;
}

.slide-label {
  display: flex;
  align-items: baseline;
  gap: var(--s3);
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.4;
}

.place-no,
.city-anim,
.place-month {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.08em;
}

.place-no {
  white-space: pre;
  color: var(--accent);
  flex: none;
}

.city-anim {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--fg);
}

.place-month {
  flex: none;
  white-space: nowrap;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.tbc {
  min-height: 30vh;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--pad-x) var(--s6);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.tbc-line { margin: 0; }

.next-line {
  margin: 0;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  opacity: 0.8;
  text-transform: none;
  max-width: 40rem;
  line-height: 1.6;
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0 calc(var(--s6) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

.prior-year {
  margin: 0 0 40px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-decoration: none;
}

.prior-year:hover,
.prior-year:active {
  color: #e9c46a;
}

.footer-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s3);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  cursor: pointer;
}

.lang-switch .on { color: var(--fg); font-weight: 700; }

.lang-divider {
  width: 1px;
  height: 10px;
  background: var(--line);
  display: block;
}

/* Pre-hide only when motion is allowed, so reduced-motion paints the final page. */
.js.motion .hero-year,
.js.motion .hero-tagline,
.js.motion .hero-quote,
.js.motion .stats,
.js.motion .reveal,
.js.motion .poster-card,
.js.motion .rank { opacity: 0; }

/* Play-once entrances. Time-based (not scrubbed) so the ease stays,
   and the main thread is not writing inline styles on every frame. */
.js.motion .reveal.play {
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.js.motion .poster-card.play {
  animation: card-in 1s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--d, 0s);
  transform-origin: 50% 100%;
}

.js.motion .poster-card.is-in,
.js.motion .poster-card.is-in .rank,
.js.motion .reveal.is-in { opacity: 1; }

.js.motion .poster-card.play .rank {
  animation: rank-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: calc(var(--d, 0s) + 0.45s);
}

@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 16px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes card-in {
  from { opacity: 0; transform: translate3d(0, 24px, 0) scale(0.94) rotateX(8deg); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1) rotateX(0deg); }
}

@keyframes rank-in {
  from { opacity: 0; transform: translate3d(0, 30%, 0) scale(0.6); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .ptr-coarse .card { transition: none !important; transform: none !important; }

  .ptr-coarse .face {
    transition: opacity 0.2s linear !important;
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
  }

  .ptr-coarse .face.front { transform: none; opacity: 1; }
  .ptr-coarse .face.back {
    display: flex;
    transform: none;
    opacity: 0;
  }

  .ptr-coarse .card.is-flipped .face.front { opacity: 0; }
  .ptr-coarse .card.is-flipped .face.back { opacity: 1; }

  .poster-img::after { display: none !important; }
}
