/* Class replays: 3D shelf, glowing play buttons, count-ups (pairs with replays-fx.js; founder 2026-10-09). */
.page-header.sfx-scene-host { padding-bottom: 28px; }

/* The shelf: each replay stands on a lit ledge (flat at rest so the text stays sharp) and leans in 3D under the pointer. */
.rpx-shelf { perspective: 1400px; }
html.sfx-on .rpx-shelf > .replay-card { transform-origin: 50% 100%;
  box-shadow: 0 16px 0 -12px rgba(56, 182, 255, .55), 0 34px 44px -26px rgba(56, 182, 255, .45);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease, opacity .7s ease; }
html.sfx-on .rpx-shelf > .replay-card.sfx-rise:not(.sfx-in) { transform: perspective(1100px) translateY(36px) rotateX(-18deg) scale(.96); }
html.sfx-on .rpx-shelf > .replay-card.sfx-tilt { transform: perspective(900px) rotateX(var(--sfx-rx, 0deg)) rotateY(var(--sfx-ry, 0deg)) translateY(var(--sfx-ty, 0px)); }
html.sfx-on .rpx-shelf > .replay-card.sfx-hot { box-shadow: 0 18px 0 -12px rgba(139, 92, 246, .75), 0 36px 60px -24px rgba(139, 92, 246, .55), 0 0 0 1px rgba(150, 180, 255, .18); }

/* Thumbnails: a light sweep and a slow zoom on hover. */
.rpx-shelf .replay-thumb { transition: transform .6s cubic-bezier(.2, .8, .2, 1), filter .4s ease; }
.rpx-shelf .replay-embed:hover .replay-thumb, .rpx-shelf .replay-embed:focus-visible .replay-thumb { transform: scale(1.06); filter: saturate(1.15) brightness(1.05); }
.rpx-shelf .replay-embed::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%); transform: translateX(-110%); }
.rpx-shelf .replay-embed:hover::after { transform: translateX(110%); transition: transform .9s ease; }

/* The play button glows and sends out two rings. */
.rpx-shelf .play-btn { z-index: 2; box-shadow: 0 0 0 0 rgba(56, 182, 255, .0), 0 10px 30px -6px rgba(56, 182, 255, .7); }
.rpx-shelf .play-btn .rpx-ring { position: absolute; inset: 0; border-radius: 50% !important; border: 2px solid rgba(120, 200, 255, .7); pointer-events: none; opacity: 0; }
html.sfx-on .rpx-shelf .replay-embed:hover .rpx-ring { animation: rpx-ring 1.6s ease-out infinite; }
html.sfx-on .rpx-shelf .replay-embed:hover .rpx-ring2 { animation-delay: .5s; }
@keyframes rpx-ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2.1); opacity: 0; } }
html.sfx-on .rpx-shelf .replay-card:first-child .play-btn { animation: rpx-breathe 2.6s ease-in-out infinite; }
@keyframes rpx-breathe { 50% { box-shadow: 0 0 0 10px rgba(56, 182, 255, .12), 0 10px 34px -4px rgba(56, 182, 255, .9); } }

.rpx-stats { margin-top: 4px; }

@media (max-width: 640px) {
  html.sfx-on .rpx-shelf > .replay-card { transform: none; }
  .sfx-stat { min-width: 0; flex: 1 1 28%; padding: 10px 8px; }
  .sfx-stat strong { font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html .rpx-shelf > .replay-card { transform: none !important; }
  .rpx-shelf .replay-embed::after, .rpx-shelf .play-btn .rpx-ring { display: none; }
}

/* Same as certwall-fx.css: .sfx-rise animates in with
   `perspective(900px) rotateX(-16deg) scale(.97)`, and while that runs the card paints ~3px
   wider than its column, which was enough for a scroll bar at 390px (founder 2026-10-18).
   The transform clears itself once the card has risen, so this only trims the moving sliver.
   clip, not hidden, so the sticky nav keeps working. */
html, body { overflow-x: clip; }
