/* POINT FINGERS — animation system (Workstream 1: MAKE THE GAME COME ALIVE).
   CSS-only motion: no new images, no new requests, no JS animation loops.
   Wired from js/app.js render functions (see wiring notes per section).
   Every class here is prefixed pf- so the reduced-motion block at the end
   can kill the whole system in one place. Nothing here changes layout
   metrics: all motion is transform / opacity / background-position only,
   so a mid-animation re-render never shifts tap targets.
   Locked rules honoured: one Sound switch (no toggles added), edition
   firewall (backgrounds key off body[data-edition], set in afterRender),
   themed UI only, $0. */

/* ================= 1 · KEYFRAMES =================
   ANIME RE-THEME (Nov 15, 2026, v10): every keyframe rewritten in the
   anime motion language — anticipation squash, fast action, hard settle,
   impact-frame white flash (filter: brightness) on big moments, squash-
   and-stretch throughout. Names unchanged (app.js references them).
   Colours: magenta #ff2e88, cyan #00e5ff, lime #c8ff00, orange #ff7a1a,
   gold #ffc531. Reaction-face beats (sweat drop / blush) are the HOLD
   at the start of pf-winner-pop / pf-loser-shake — the face art itself
   is drawn by the styles lane (styles.css / avatars), this file only
   owns the motion beat. No katakana / Japanese / Chinese text. */
@keyframes pf-screen-in { 0% { opacity: 0; transform: translateY(16px) scale(1.14, .86); } 55% { opacity: 1; transform: translateY(-2px) scale(.98, 1.04); } 78% { transform: translateY(0) scale(1.02, .99); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes pf-deal { 0% { opacity: 0; transform: translateY(-52px) translateX(40px) rotate(9deg) skewX(-8deg) scale(1.12, .88); } 55% { opacity: 1; transform: translateY(4px) translateX(-4px) rotate(-2deg) skewX(2deg) scale(.97, 1.05); } 78% { transform: translateY(-1px) translateX(0) rotate(0) skewX(0deg) scale(1.01, .99); } 100% { opacity: 1; transform: translateY(0) translateX(0) rotate(0) skewX(0deg) scale(1); } }
@keyframes pf-flip-in { 0% { opacity: 0; transform: rotateY(180deg) scale(.8); filter: brightness(1); } 45% { opacity: 1; transform: rotateY(-18deg) scale(1.08, .94); filter: brightness(1.7); } 70% { transform: rotateY(6deg) scale(.99, 1.02); filter: brightness(1); } 100% { opacity: 1; transform: rotateY(0) scale(1); filter: brightness(1); } }
@keyframes pf-idle { 0%, 100% { transform: translateY(0) rotate(0deg) scale(1); } 25% { transform: translateY(1px) rotate(-.2deg) scale(1.02, .98); } 50% { transform: translateY(-6px) rotate(-.5deg) scale(.99, 1.02); } 75% { transform: translateY(-2px) rotate(-.2deg) scale(1.01, .99); } }
@keyframes pf-card-in { 0% { opacity: 0; transform: translateY(20px) scale(1.18, .82) rotate(-2deg); } 55% { opacity: 1; transform: translateY(-3px) scale(.97, 1.05) rotate(.5deg); } 78% { transform: translateY(0) scale(1.01, .99) rotate(0); } 100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); } }
@keyframes pf-host-in { 0% { opacity: 0; transform: translateX(-22px) scale(1.1, .9); } 55% { opacity: 1; transform: translateX(3px) scale(.98, 1.03); } 80% { transform: translateX(0) scale(1.01, .99); } 100% { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes pf-host-text { 0% { clip-path: inset(0 100% 0 0); } 55% { clip-path: inset(0 10% 0 0); } 100% { clip-path: inset(0 0 0 0); } }
@keyframes pf-bar-grow { from { width: 0 !important; transform: scaleX(1); transform-origin: left center; } 70% { transform: scaleX(1.07); } to { transform: scaleX(1); } }
@keyframes pf-drum-jitter { 0%, 100% { transform: translateX(0) scale(1); } 20% { transform: translateX(-2px) rotate(-.5deg) scale(1.01, .99); } 40% { transform: translateX(2px) rotate(.5deg) scale(.99, 1.02); } 60% { transform: translateX(-2px) scale(1.01, .99); } 80% { transform: translateX(2px) rotate(-.4deg) scale(.99, 1.02); } }
@keyframes pf-winner-pop { 0% { transform: scale(1); } 18% { transform: scale(.93, 1.07); } 30% { transform: scale(.93, 1.07); } 52% { transform: scale(1.18, .86); filter: brightness(1.7); } 72% { transform: scale(.97, 1.03); filter: brightness(1); } 100% { transform: scale(1); filter: brightness(1); } }
@keyframes pf-loser-shake { 0%, 100% { transform: translateX(0) rotate(0) scale(1); } 20% { transform: translateX(-4px) rotate(-2deg) scale(.97, 1.04); } 40% { transform: translateX(4px) rotate(2deg) scale(1.02, .96); } 60% { transform: translateX(-3px) translateY(2px) rotate(-1deg) scale(.98, 1.03); } 80% { transform: translateX(2px) translateY(1px) rotate(.5deg) scale(.99, 1.01); } }
@keyframes pf-reveal-pop { 0% { opacity: 0; transform: scale(.55) rotate(-4deg); filter: brightness(2.2); } 40% { opacity: 1; transform: scale(1.18, .86) rotate(1deg); filter: brightness(1.4); } 65% { transform: scale(.96, 1.05) rotate(0); filter: brightness(1); } 85% { transform: scale(1.02, .99); } 100% { opacity: 1; transform: scale(1); filter: brightness(1); } }
@keyframes pf-stakes-points { 0% { opacity: 0; transform: scale(.5) rotate(-4deg); filter: brightness(2.2); } 40% { opacity: 1; transform: scale(1.18, .86) rotate(1deg); filter: brightness(1.4); } 65% { transform: scale(.96, 1.05) rotate(0); filter: brightness(1); } 85% { transform: scale(1.02, .99); } 100% { opacity: 1; transform: scale(1); filter: brightness(1); } }
@keyframes pf-face-in { 0% { opacity: 0; transform: translateY(14px) scale(1.16, .84); } 55% { opacity: 1; transform: translateY(-2px) scale(.97, 1.05); } 80% { transform: translateY(0) scale(1.01, .99); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes pf-glove-bob { 0%, 100% { transform: translateY(0) scale(1); } 25% { transform: translateY(2px) scale(1.06, .94); } 50% { transform: translateY(-7px) scale(.98, 1.03); } 75% { transform: translateY(-2px) scale(1.01, .99); } }
@keyframes pf-glove-point { 0%, 100% { transform: rotate(-6deg) translateX(0); } 20% { transform: rotate(-9deg) translateX(-3px) scale(.96, 1.05); } 50% { transform: rotate(3deg) translateX(5px); } 75% { transform: rotate(0deg) translateX(2px); } }
@keyframes pf-wheel-spin { 0% { transform: rotate(-24deg); } 12% { transform: rotate(0deg) scale(1.04, .96); } 60% { transform: rotate(540deg) scale(.98, 1.03); } 100% { transform: rotate(1080deg); } }
@keyframes pf-wheel-wobble { 0%, 100% { transform: rotate(-2deg) scale(1); } 50% { transform: rotate(2deg) scale(1.03, .97); } }
@keyframes pf-wheel-pointer { from { transform: translateX(-50%) rotate(-10deg); } 50% { transform: translateX(-50%) rotate(12deg) scale(1.08, .92); } to { transform: translateX(-50%) rotate(10deg); } }
@keyframes pf-modal-up { 0% { opacity: 0; transform: translateY(30px) scale(1.12, .88); } 60% { opacity: 1; transform: translateY(-3px) scale(.98, 1.04); } 82% { transform: translateY(0) scale(1.01, .99); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes pf-fade-in { 0% { opacity: 0; } 35% { opacity: 1; } 100% { opacity: 1; } }
@keyframes pf-bump { 0% { transform: scale(1); } 30% { transform: scale(.92, 1.1); } 55% { transform: scale(1.18, .86); } 80% { transform: scale(.98, 1.02); } 100% { transform: scale(1); } }
@keyframes pf-bg-drift { 0% { background-position: 0% 0%, 100% 100%, 0% 100%; } 50% { background-position: 50% 50%, 50% 50%, 50% 0%; } 100% { background-position: 100% 100%, 0% 0%, 100% 0%; } }
@keyframes pf-logo-bob { 0%, 100% { transform: translateY(0) scale(1); } 30% { transform: translateY(1px) scale(1.05, .95); } 50% { transform: translateY(-5px) scale(.98, 1.03); } 75% { transform: translateY(-2px) scale(1.01, .99); } }

/* ================= 2 · SCREEN TRANSITIONS =================
   Wiring: render() tracks a screen|phase|award-step key; afterRender()
   adds .pf-enter to main.screen ONLY when the key changed, and removes
   it after 600ms. render() runs on every live state update, so the
   entrance must NOT be baked into .screen itself or it would replay
   on every vote arriving. */
.screen.pf-enter { animation: pf-screen-in .35s ease both; }
/* Children that arrive with a new screen/phase ride the same entrance. */
.screen.pf-enter .card-mini { animation: pf-card-in .45s ease both; }
.screen.pf-enter .award-card { animation: pf-card-in .45s ease both; }
.screen.pf-enter .award-winner .face { animation: pf-winner-pop .6s cubic-bezier(.2, 1.4, .4, 1) .15s both; }
.screen.pf-enter .lobby-face { animation: pf-face-in .4s ease both; }
.screen.pf-enter .lobby-face:nth-child(2) { animation-delay: .05s; }
.screen.pf-enter .lobby-face:nth-child(3) { animation-delay: .1s; }
.screen.pf-enter .lobby-face:nth-child(4) { animation-delay: .15s; }
.screen.pf-enter .lobby-face:nth-child(5) { animation-delay: .2s; }
.screen.pf-enter .lobby-face:nth-child(6) { animation-delay: .25s; }
/* Late joiners (vLobby adds .pf-lobby-new to faces the room has not
   seen yet): same face-in, fired on arrival instead of first paint. */
.lobby-face.pf-lobby-new { animation: pf-face-in .4s ease both; }
.screen.pf-enter .leaderboard .bar-row { animation: pf-face-in .35s ease both; }
.screen.pf-enter .leaderboard .bar-row:nth-child(2) { animation-delay: .06s; }
.screen.pf-enter .leaderboard .bar-row:nth-child(3) { animation-delay: .12s; }
.screen.pf-enter .crown-banner,
.screen.pf-enter .unanimous,
.screen.pf-enter .tie-banner { animation: pf-reveal-pop .45s cubic-bezier(.2, 1.4, .4, 1) both; }

/* ================= 3 · CARDS =================
   Wiring: vPrompt() wraps the prompt card in three nested layers so the
   three motions never fight over one transform:
     .flip-stage.pf-deal  — deal from the deck (one-shot, fresh card only)
     .pf-float            — gentle idle breathing, always on
     .pf-flip-inner       — real 3D flip: preserve-3d + backface, with a
                            deck-pattern .card-back as the reverse face.
   Freshness is gated in vPrompt() (App._pfCardKey = round + card id):
   a re-render of the same card renders no .pf-deal / .flip-in, so the
   card never re-deals when a vote or host line lands mid-round. */
.flip-stage { transform-style: preserve-3d; }
.flip-stage.pf-deal { animation: pf-deal .45s ease-out both; }
.pf-float { position: relative; transform-style: preserve-3d; animation: pf-idle 5s ease-in-out infinite; }
.pf-flip-inner { position: relative; transform-style: preserve-3d; }
.pf-flip-inner.flip-in { animation: pf-flip-in .55s cubic-bezier(.2, .7, .3, 1.15) both; }
.card.flip-in { animation: pf-flip-in .55s cubic-bezier(.2, .7, .3, 1.15) both; }
.pf-flip-inner .card, .card-back { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
/* Deck-pattern reverse face: seen mid-flip, hidden the rest of the time. */
.card-back {
  position: absolute; inset: 0; transform: rotateY(180deg);
  background: var(--plum); color: var(--ink);
  border: 3px solid var(--ec); border-radius: 24px; box-shadow: 0 10px 24px #0002;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem;
  font-weight: 900; letter-spacing: .14em; font-size: .85rem;
}
.card-back-mark { font-size: 3.4rem; line-height: 1; }
/* The top card reacts to touch: a small tilt, never a jump. */
.card { transition: transform .15s ease; }
.card:active { transform: rotateX(5deg) rotateY(-6deg) scale(.985); }
/* Stakes card: same deal-in on first paint of the round (vStakes gates
   .pf-first on App._pfStakesKey). */
.stakes-screen.pf-first .stakes-card { animation: pf-card-in .45s cubic-bezier(.2, .9, .3, 1.15) both; }

/* ================= 4 · HOST LINES =================
   Wiring: hostLineHtml() adds .pf-host-in only when the text changed
   (App._pfHostText), so the line slides in once instead of on every
   render. The text span wipes in left-to-right like typing; the words
   are real text throughout, never animation-only. */
.host-line.pf-host-in { animation: pf-host-in .45s ease both; }
.host-line.pf-host-in > span:nth-child(2) { display: inline-block; animation: pf-host-text .7s ease-out .1s both; }

/* ================= 5 · VOTE BARS, REVEAL =================
   Wiring: vReveal() gates .pf-first on App._pfRevealKey (round +
   winners + tally). First paint of a reveal: bars climb with stagger
   while the .bars jitter like a drum roll (audio rollInto runs 1.4s;
   the visual roll is 0.9s), the verdict pops at .35s, the winner pops
   and the losers shake once the bars land. Later re-renders of the
   same reveal (reactions arriving) carry no .pf-first, so nothing
   replays or hides the verdict. Vote bars also climb LIVE between
   renders via the width transition below. */
.bar-fill { transition: width .7s cubic-bezier(.22, 1, .36, 1); }
.vp-bar div { transition: width .7s cubic-bezier(.22, 1, .36, 1); }
.hype-bar div { transition: width .8s ease-out; }
.reveal-card.pf-first .bar-fill { animation: pf-bar-grow .8s cubic-bezier(.22, 1, .36, 1) both; }
.reveal-card.pf-first .bars .bar-row:nth-child(2) .bar-fill { animation-delay: .08s; }
.reveal-card.pf-first .bars .bar-row:nth-child(3) .bar-fill { animation-delay: .16s; }
.reveal-card.pf-first .bars .bar-row:nth-child(4) .bar-fill { animation-delay: .24s; }
.reveal-card.pf-first .bars .bar-row:nth-child(5) .bar-fill { animation-delay: .32s; }
.reveal-card.pf-first .bars .bar-row:nth-child(6) .bar-fill { animation-delay: .4s; }
.reveal-card.pf-first .bars { animation: pf-drum-jitter .9s linear both; }
.reveal-card.pf-first .crown-banner,
.reveal-card.pf-first .unanimous,
.reveal-card.pf-first .tie-banner { animation: pf-reveal-pop .45s cubic-bezier(.2, 1.4, .4, 1) .35s both; }
.reveal-card.pf-first .bar-row.pf-winner { animation: pf-winner-pop .6s cubic-bezier(.2, 1.4, .4, 1) .9s both; }
.reveal-card.pf-first .bar-row.pf-loser { animation: pf-loser-shake .5s ease 1s both; }
/* Reaction card effects (Dan Nov 15): Boo shakes the exposed player's
   row. On first paint the winner-pop owns the row's transform, so the
   shake rides along in the same animation list, after the pop. */
.reveal-card.pf-first .bar-row.pf-winner.pf-fx-boo { animation: pf-winner-pop .6s cubic-bezier(.2, 1.4, .4, 1) .9s both, pf-fx-shake .45s ease-in-out 1.6s 2; }
.reveal-card.pf-first .duelist.win.pf-fx-boo { animation: pf-winner-pop .6s cubic-bezier(.2, 1.4, .4, 1) .45s both, pf-fx-shake .45s ease-in-out 1.1s 2; }
/* Yes/No, Duel and Know Me reveals use the same .pf-first gating as
   Classic (vYesNoReveal / vDuelReveal / vKnowMeReveal): the counts,
   the secret answer and the duel faces pop once on first paint, then
   stay put while reactions land. */
.reveal-card.pf-first .yn-result { animation: pf-reveal-pop .45s cubic-bezier(.2, 1.4, .4, 1) .2s both; }
.reveal-card.pf-first .km-answer { animation: pf-reveal-pop .45s cubic-bezier(.2, 1.4, .4, 1) .35s both; }
.reveal-card.pf-first .duel-result { animation: pf-reveal-pop .45s cubic-bezier(.2, 1.4, .4, 1) .2s both; }
.reveal-card.pf-first .duelist.win { animation: pf-winner-pop .6s cubic-bezier(.2, 1.4, .4, 1) .45s both; }

/* ================= 6 · VOTING GRID =================
   Wiring: faceGrid() adds .pf-fresh only on the first render of a
   voting round (App._pfVoteKey); faces cascade in, then stay put while
   votes land. Tap feedback is :active below (works every render). */
.vote-grid.pf-fresh .vote-face { animation: pf-face-in .4s ease both; }
.vote-grid.pf-fresh .vote-cell:nth-child(2) .vote-face { animation-delay: .05s; }
.vote-grid.pf-fresh .vote-cell:nth-child(3) .vote-face { animation-delay: .1s; }
.vote-grid.pf-fresh .vote-cell:nth-child(4) .vote-face { animation-delay: .15s; }
.vote-grid.pf-fresh .vote-cell:nth-child(5) .vote-face { animation-delay: .2s; }
.vote-grid.pf-fresh .vote-cell:nth-child(6) .vote-face { animation-delay: .25s; }

/* ================= 7 · DISCARD PILE =================
   Wiring: deckInfo() adds .pf-discard-bump to the Discard button only
   when App.discardCount rose (App._pfDiscardCount). */
.mini-btn.pf-discard-bump { animation: pf-bump .5s ease both; }

/* ================= 8 · GLOVE =================
   Placement untouched (web/glove.png on home/lobby/awards, set in
   app.js). The disc bobs gently; the hand tilts as if pointing.
   Kids bobs faster — bouncy edition, per the edition brief. */
.glove-disc { animation: pf-glove-bob 3.4s ease-in-out infinite; }
.glove-disc img { animation: pf-glove-point 3.4s ease-in-out infinite; }
body[data-edition="kids"] .glove-disc, body[data-edition="kids"] .glove-disc img { animation-duration: 2.2s; }
/* Home logo breathes so the opening screen is never static. */
.screen.home .logo { animation: pf-logo-bob 5s ease-in-out infinite; }

/* ================= 9 · WHEEL =================
   Wiring: vWheel() renders .wheel.pf-wheel-idle (gentle wobble, pointer
   wiggling) and the pointer as a SIBLING in .wheel-wrap so the spin
   rotates the segments but not the pointer. App.spinWheel() swaps in
   .pf-wheel-spinning and delays its render() ~1.1s (skipped under
   reduced motion) so the 720° spin is actually seen. */
.wheel-wrap { position: relative; width: 260px; margin: 1rem auto; }
.wheel-wrap .wheel { margin: 0 auto; }
.wheel-wrap .wheel-pointer { position: absolute; top: -4px; left: 50%; transform: translateX(-50%); font-size: 2rem; }
.wheel.pf-wheel-idle { animation: pf-wheel-wobble 6s ease-in-out infinite; }
.wheel.pf-wheel-idle + .wheel-pointer { animation: pf-wheel-pointer .5s ease-in-out infinite alternate; }
.wheel.pf-wheel-spinning { animation: pf-wheel-spin 1.05s cubic-bezier(.15, .75, .25, 1) both; }

/* ================= 10 · MODALS, TOAST, MICRO-INTERACTIONS =================
   Modal entrance is safe to animate unconditionally: a modal only
   exists in the DOM while it is open (modalHtml into #modal-slot). */
.modal-veil { animation: pf-fade-in .22s ease both; }
.modal { animation: pf-modal-up .3s cubic-bezier(.2, .9, .3, 1.1) both; }
/* Press feedback on every button: a small scale-down, never a colour
   change (edition colour stays the brand). */
.big-btn, .small-btn, .mini-btn, .chip-btn, .opt-btn, .yn-btn, .key,
.vote-face, .react-btn, .ed-card, .avatar-pick, .lobby-face, .icon-btn, .point-toggle, .dob-opt { transition: transform .12s ease, box-shadow .12s ease; }
.big-btn:active { transform: translateY(2px) scale(.97); }
.small-btn:active, .mini-btn:active, .chip-btn:active, .opt-btn:active,
.key:active, .vote-face:active, .ed-card:active, .avatar-pick:active,
.lobby-face:active, .icon-btn:active, .point-toggle:active, .dob-opt:active { transform: scale(.96); }
.yn-btn:active { transform: scale(.95); }
/* Vote tap ripple: an edition-coloured ring blooms around the tap. */
.vote-face:active, .opt-btn:active, .yn-btn:active {
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--ec) 22%, transparent);
}
/* Reaction buttons pop — and tilt, because reactions are unserious. */
.react-btn:active { transform: scale(.88) rotate(-4deg); }

/* ================= 11 · EDITION BACKGROUNDS =================
   Wiring: afterRender() sets body[data-edition] from the screen's
   --ec colour (fallback: room/settings edition). Pure CSS gradients,
   slow drift via background-position — no images, no requests.
   RECOLOUR (Nov 13, 2026): the base is deep navy for EVERY edition
   (bg tints in js/content.js); the edition reads through its vivid
   --ec glow + a gold glow, so the logo navy stays the anchor and no
   edition ever goes pastel again. Kids drifts fastest (bouncy), Work
   slowest (calm), Spicy carries a deep ember glow. */
#app { background-size: 220% 220%; }
body[data-edition="kids"] #app {
  background-color: #08083f;
  background-image: radial-gradient(circle at 15% 20%, rgba(255, 197, 49, .34), transparent 42%), radial-gradient(circle at 85% 75%, rgba(255, 93, 162, .20), transparent 46%), radial-gradient(circle at 80% 12%, rgba(76, 201, 240, .18), transparent 40%);
  animation: pf-bg-drift 12s ease-in-out infinite alternate;
}
body[data-edition="family"] #app {
  background-color: #0a0538;
  background-image: radial-gradient(circle at 15% 20%, rgba(255, 77, 109, .32), transparent 44%), radial-gradient(circle at 85% 75%, rgba(255, 197, 49, .22), transparent 46%), radial-gradient(circle at 80% 12%, rgba(255, 93, 162, .18), transparent 40%);
  animation: pf-bg-drift 26s ease-in-out infinite alternate;
}
body[data-edition="teens"] #app {
  background-color: #070739;
  background-image: radial-gradient(circle at 15% 20%, rgba(129, 140, 248, .32), transparent 44%), radial-gradient(circle at 85% 75%, rgba(255, 197, 49, .18), transparent 46%), radial-gradient(circle at 80% 12%, rgba(192, 132, 252, .18), transparent 40%);
  animation: pf-bg-drift 22s ease-in-out infinite alternate;
}
body[data-edition="sports"] #app {
  background-color: #031b33;
  background-image: radial-gradient(circle at 15% 20%, rgba(47, 214, 127, .30), transparent 44%), radial-gradient(circle at 85% 75%, rgba(255, 197, 49, .20), transparent 46%), radial-gradient(circle at 80% 12%, rgba(56, 189, 248, .16), transparent 40%);
  animation: pf-bg-drift 20s ease-in-out infinite alternate;
}
body[data-edition="friends"] #app {
  background-color: #0c053a;
  background-image: radial-gradient(circle at 15% 20%, rgba(255, 93, 162, .32), transparent 44%), radial-gradient(circle at 85% 75%, rgba(255, 197, 49, .20), transparent 46%), radial-gradient(circle at 80% 12%, rgba(129, 140, 248, .16), transparent 40%);
  animation: pf-bg-drift 22s ease-in-out infinite alternate;
}
body[data-edition="work"] #app {
  background-color: #031a38;
  background-image: radial-gradient(circle at 15% 20%, rgba(56, 189, 248, .32), transparent 44%), radial-gradient(circle at 85% 75%, rgba(255, 197, 49, .16), transparent 46%), radial-gradient(circle at 80% 12%, rgba(47, 214, 127, .14), transparent 40%);
  animation: pf-bg-drift 32s ease-in-out infinite alternate;
}
body[data-edition="adults"] #app {
  background-color: #0d0538;
  background-image: radial-gradient(circle at 15% 20%, rgba(192, 132, 252, .32), transparent 44%), radial-gradient(circle at 85% 75%, rgba(255, 197, 49, .18), transparent 46%), radial-gradient(circle at 80% 12%, rgba(255, 93, 162, .16), transparent 40%);
  animation: pf-bg-drift 24s ease-in-out infinite alternate;
}
body[data-edition="spicy"] #app {
  background-color: #10052e;
  background-image: radial-gradient(circle at 50% 110%, rgba(255, 122, 26, .34), transparent 55%), radial-gradient(circle at 15% 20%, rgba(255, 122, 26, .22), transparent 44%), radial-gradient(circle at 85% 15%, rgba(255, 197, 49, .18), transparent 40%);
  animation: pf-bg-drift 16s ease-in-out infinite alternate;
}
/* No edition known yet (home before setup): warm neutral drift. */
body:not([data-edition]) #app {
  background-color: #02033d;
  background-image: radial-gradient(circle at 15% 20%, rgba(255, 197, 49, .20), transparent 44%), radial-gradient(circle at 85% 75%, rgba(255, 77, 109, .14), transparent 46%), radial-gradient(circle at 80% 12%, rgba(56, 189, 248, .12), transparent 40%);
  animation: pf-bg-drift 26s ease-in-out infinite alternate;
}

/* ================= 12 · REDUCED MOTION =================
   Locked rule: under prefers-reduced-motion EVERYTHING above is
   static. The explicit list names each animated class (auditable);
   the [class*="pf-"] line is the backstop so no future pf- class can
   slip through. styles.css already has a global duration kill; this
   block also zeroes transforms so :active tilts and idle floats
   cannot leave an element offset. */
@media (prefers-reduced-motion: reduce) {
  .screen.pf-enter, .flip-stage.pf-deal, .pf-float, .pf-flip-inner.flip-in,
  .card.flip-in, .host-line.pf-host-in, .host-line.pf-host-in > span:nth-child(2),
  .reveal-card.pf-first .bar-fill, .reveal-card.pf-first .bars,
  .reveal-card.pf-first .crown-banner, .reveal-card.pf-first .unanimous,
  .reveal-card.pf-first .tie-banner, .reveal-card.pf-first .bar-row.pf-winner,
  .reveal-card.pf-first .bar-row.pf-loser,
  .reveal-card.pf-first .yn-result, .reveal-card.pf-first .km-answer,
  .reveal-card.pf-first .duel-result, .reveal-card.pf-first .duelist.win,
  .lobby-face.pf-lobby-new, .point-num.pf-beat-pop,
  .vote-grid.pf-fresh .vote-face, .mini-btn.pf-discard-bump,
  .glove-disc, .glove-disc img, .screen.home .logo,
  .wheel.pf-wheel-idle, .wheel.pf-wheel-idle + .wheel-pointer,
  .wheel.pf-wheel-spinning, .stakes-screen.pf-first .stakes-card,
  .screen.pf-enter .card-mini, .screen.pf-enter .award-card,
  .screen.pf-enter .award-winner .face, .screen.pf-enter .lobby-face,
  .screen.pf-enter .leaderboard .bar-row,
  .screen.pf-enter .crown-banner, .screen.pf-enter .unanimous,
  .screen.pf-enter .tie-banner, .modal-veil, .modal,
  /* §14 live-play upgrade (Nov 13, 2026 evening): every new animated
     selector, including the non-pf- ones the [class*="pf-"] backstop
     cannot see (timer ring, flame, toast, pass hand, spotlight star). */
  .screen.pf-enter .round-label, .screen.pf-enter .big-btn.primary,
  .screen.pf-enter .twist-burst, .screen.pf-enter .award-card,
  .awards-show.pf-mvp .award-winner .face,
  .screen.pf-enter .awards-show.pf-mvp .award-winner .face,
  .glove-point.pf-pointing .glove-disc,
  .glove-point.pf-pointing .glove-disc img,
  .point-num.pf-beat-point, .host-line.pf-host-in .host-ava,
  .reveal-card.pf-first .duelist:not(.win), .reveal-card.pf-first .vs,
  .reveal-card.pf-first .yn-count.yes, .reveal-card.pf-first .yn-count.no,
  .vote-face.pf-picked-pop, .vote-progress.pf-vote-landed,
  .reaction-counts.pf-react-new span:last-child,
  .wheel.pf-wheel-spinning + .wheel-pointer,
  .wheel-result.pf-first, .wheel-result.pf-first .card-mini,
  .wheel-result.pf-first .gossip-line,
  .stakes-screen.pf-first .stakes-card .card-band,
  .leaderboard .bar-row.pf-lb-lead,
  .timer-ring.urgent, .hype-meter > span:first-child,
  .toast.show, .pass-screen .pass-big, .spotlight-big,
  /* §15 Wave 2b polish (Nov 14, 2026): every new animated selector.
     The pf- ones are also covered by the [class*="pf-"] backstop
     below; the recap rows / recap team line are listed explicitly
     because their selectors carry no pf- class of their own. */
  .reveal-card.pf-first .crown-banner.pf-close-reveal,
  .reveal-card.pf-first .crown-banner.pf-pileon,
  .reveal-card.pf-first .duelist.pf-duel-left .face,
  .reveal-card.pf-first .duelist.pf-duel-right .face,
  .awards-show.pf-team-champs .team-champs,
  .screen.pf-enter .recap-scores .bar-row,
  .screen.pf-enter .team-champs.recap-team,
  #liar-countdown-num.pf-countdown-urgent,
  #stakes-countdown-num.pf-countdown-urgent,
  #stakes-wait-num.pf-countdown-urgent,
  /* Sweep-2 fix (Nov 16, 2026): the new ambient selectors (owner
     breathing, recap MVP + shimmer) carry no pf- class of their own,
     so they are listed explicitly like the recap rows above. */
  .screen.owner .owner-face .face,
  .screen.owner .avatar-pick.sel,
  .recap-mvp-face,
  .recap-shimmer,
  body[data-edition] #app, body:not([data-edition]) #app,
  [class*="pf-"] {
    animation: none !important; transition: none !important; transform: none !important;
  }
  .card:active, .big-btn:active, .small-btn:active, .mini-btn:active,
  .chip-btn:active, .opt-btn:active, .yn-btn:active, .key:active,
  .vote-face:active, .react-btn:active, .ed-card:active,
  .avatar-pick:active, .lobby-face:active, .icon-btn:active,
  .point-toggle:active, .dob-opt:active,
  .check:active, .photo-btn:active, .who-voted summary:active {
    transform: none !important;
  }
}

/* ================= 13 · POINT! BEATS =================
   Wiring: the 500ms tick re-triggers .pf-beat-pop on #point-num every
   time the beat changes (3 → 2 → 1 → POINT!), reusing pf-reveal-pop —
   so each beat pops instead of silently swapping text. The first paint
   still gets styles.css point-pop; this only fires on beat changes.
   Killed under reduced motion by the [class*="pf-"] backstop in §12
   plus the explicit .point-num.pf-beat-pop entry there. */
.point-num.pf-beat-pop { animation: pf-reveal-pop .45s cubic-bezier(.2, 1.4, .4, 1) both; }

/* ================= 14 · LIVE-PLAY UPGRADE (Nov 13, 2026 evening) ================
   Dan: "really up the animations". The noon baseline made motion present;
   this section makes it FELT — bigger slams, gold flashes, wagging glove,
   a wheel that spins three full turns, a timer that shakes when it is
   urgent, a flame that flickers while hype climbs. Same rules as §1–13:
   transform / opacity / box-shadow / text-shadow only, nothing that moves
   a tap target; every entrance one-shot and under ~600ms; nothing here
   blocks input (the longest, the 1.05s wheel spin, is the event itself
   and the existing 1100ms hold already waits it out). Every new class is
   named in the §12 reduced-motion kill list below (extended in this
   pass); the [class*="pf-"] backstop covers all pf- classes, and the
   explicit entries cover the non-pf- selectors (timer ring, flame, toast,
   pass hand, spotlight star). */
@keyframes pf-beat-slam { 0% { opacity: 0; transform: scale(1.7) rotate(-5deg); filter: brightness(2.5); } 25% { opacity: 1; transform: scale(1.55) rotate(-3deg); filter: brightness(1.8); } 55% { transform: scale(.93, 1.07) rotate(1deg); filter: brightness(1); } 75% { transform: scale(1.03, .98) rotate(0); } 100% { opacity: 1; transform: scale(1) rotate(0); filter: brightness(1); } }
@keyframes pf-point-flash { 0% { text-shadow: 0 0 0 #fff, 0 0 24px #fff, 0 0 48px #ff2e88, 0 0 72px #00e5ff; } 30% { text-shadow: 0 0 18px rgba(255, 197, 49, .95), 0 0 46px rgba(255, 197, 49, .55), 0 0 64px rgba(255, 46, 136, .4); } 100% { text-shadow: 0 0 0 rgba(255, 197, 49, 0); } }
@keyframes pf-award-in { 0% { opacity: 0; transform: translateY(22px) scale(1.18, .82) rotate(-2deg); } 55% { opacity: 1; transform: translateY(-3px) scale(.97, 1.05) rotate(.5deg); } 80% { transform: translateY(0) scale(1.01, .99) rotate(0); } 100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); } }
@keyframes pf-mvp-glow { 0%, 100% { box-shadow: 0 0 0 3px #ffc531, 0 0 12px rgba(255, 197, 49, .35); } 50% { box-shadow: 0 0 0 5px #ffc531, 0 0 28px rgba(255, 197, 49, .8), 0 0 44px rgba(255, 46, 136, .35); } }
@keyframes pf-glove-wag { 0%, 100% { transform: translateY(0) rotate(0deg) scale(1); } 25% { transform: translateY(-6px) rotate(-5deg) scale(.98, 1.03); } 50% { transform: translateY(1px) rotate(4deg) scale(1.04, .96); } 75% { transform: translateY(-6px) rotate(-3deg) scale(.98, 1.03); } }
@keyframes pf-glove-point-big { 0%, 100% { transform: rotate(-15deg) translateX(0); } 20% { transform: rotate(-18deg) translateX(-3px) scale(.97, 1.04); } 50% { transform: rotate(7deg) translateX(6px); } 75% { transform: rotate(2deg) translateX(3px); } }
@keyframes pf-host-ava-bob { 0% { transform: translateY(0) scale(1); } 25% { transform: translateY(2px) scale(1.12, .88); } 45% { transform: translateY(-7px) scale(1.18, .92); } 70% { transform: translateY(-1px) scale(1.02, 1); } 100% { transform: translateY(0) scale(1); } }
@keyframes pf-round-pop { 0% { transform: scale(1.5) rotate(-3deg); filter: brightness(1.8); } 45% { transform: scale(.94, 1.06) rotate(0); filter: brightness(1); } 70% { transform: scale(1.03, .98); } 100% { transform: scale(1); filter: brightness(1); } }
@keyframes pf-winner-glow { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } 18% { box-shadow: 0 0 0 6px rgba(255, 255, 255, .9), 0 0 30px rgba(255, 197, 49, .8); } 50% { box-shadow: 0 0 0 4px rgba(255, 197, 49, .55), 0 0 18px rgba(255, 197, 49, .4), 0 0 32px rgba(255, 46, 136, .35); } 100% { box-shadow: 0 0 0 0 rgba(255, 197, 49, 0); } }
@keyframes pf-join-ring { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .9), 0 0 0 0 rgba(255, 197, 49, .8); } 30% { box-shadow: 0 0 0 4px rgba(255, 255, 255, .6), 0 0 0 8px rgba(255, 197, 49, .5); } 100% { box-shadow: 0 0 0 16px rgba(255, 197, 49, 0), 0 0 0 6px rgba(255, 255, 255, 0); } }
@keyframes pf-picked-pop { 0% { transform: scale(1) rotate(0); } 25% { transform: scale(.9, 1.12) rotate(-3deg); } 55% { transform: scale(1.2, .84) rotate(2deg); } 80% { transform: scale(.97, 1.03) rotate(0); } 100% { transform: scale(1) rotate(0); } }
@keyframes pf-vote-landed { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(200, 255, 0, 0); } 35% { transform: scale(1.12, .88); box-shadow: 0 0 0 6px rgba(200, 255, 0, .55), 0 0 24px rgba(200, 255, 0, .6); } 60% { transform: scale(.97, 1.04); box-shadow: 0 0 0 2px rgba(200, 255, 0, .25); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(200, 255, 0, 0); } }
@keyframes pf-wheel-pointer-fast { from { transform: translateX(-50%) rotate(-16deg); } 50% { transform: translateX(-50%) rotate(18deg) scale(1.1, .9); } to { transform: translateX(-50%) rotate(16deg); } }
@keyframes pf-twist-slam { 0% { opacity: 0; transform: scale(1.7) rotate(-4deg); filter: brightness(2.5); } 30% { opacity: 1; transform: scale(1.5) rotate(-2deg); filter: brightness(1.6); } 60% { transform: scale(.95, 1.06) rotate(1deg); filter: brightness(1); } 80% { transform: scale(1.02, .99) rotate(0); } 100% { opacity: 1; transform: scale(1) rotate(0); filter: brightness(1); } }
@keyframes pf-pass-bob { 0%, 100% { transform: translateY(0) rotate(-3deg) scale(1); } 30% { transform: translateY(2px) rotate(-4deg) scale(1.05, .95); } 50% { transform: translateY(-11px) rotate(4deg) scale(.97, 1.04); } 75% { transform: translateY(-3px) rotate(0deg) scale(1.01, .99); } }
@keyframes pf-spot-twinkle { 0%, 100% { transform: scale(.85) rotate(0deg); opacity: .7; filter: brightness(1); } 25% { transform: scale(1.3) rotate(18deg); opacity: 1; filter: brightness(1.8); } 50% { transform: scale(.9) rotate(30deg); opacity: .8; filter: brightness(1); } 75% { transform: scale(1.22) rotate(48deg); opacity: 1; filter: brightness(1.6); } }
@keyframes pf-toast-pop { 0% { opacity: 0; transform: translate(-50%, 24px) scale(1.14, .86); } 60% { opacity: 1; transform: translate(-50%, -2px) scale(.98, 1.04); } 80% { transform: translate(-50%, 0) scale(1.01, .99); } 100% { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes pf-stakes-shake { 0%, 100% { transform: rotate(0) scale(1); } 25% { transform: rotate(-3deg) translateX(-2px) scale(1.03, .97); } 50% { transform: rotate(2deg) translateX(2px) scale(.97, 1.04); } 75% { transform: rotate(3deg) translateX(2px) scale(1.02, .98); } }
@keyframes pf-lb-lead { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 197, 49, 0); } 50% { box-shadow: 0 0 0 3px rgba(255, 197, 49, .55), 0 0 16px rgba(255, 197, 49, .4), 0 0 28px rgba(255, 46, 136, .25); } }
@keyframes pf-timer-shake { 0%, 100% { transform: translateX(0) skewX(0deg); } 20% { transform: translateX(-4px) skewX(-8deg); } 40% { transform: translateX(4px) skewX(8deg); } 60% { transform: translateX(-3px) skewX(-6deg); } 80% { transform: translateX(3px) skewX(6deg); } }
@keyframes pf-flame-flicker { 0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px #ff7a1a); } 30% { transform: scale(1.28, .9) rotate(-5deg); filter: drop-shadow(0 0 12px #ff7a1a); } 60% { transform: scale(.94, 1.1) rotate(3deg); filter: drop-shadow(0 0 8px #ff7a1a); } }

/* ---- 14a · Screen transitions hit harder ---- */
.screen.pf-enter .round-label { animation: pf-round-pop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.screen.pf-enter .big-btn.primary { animation: pf-card-in .45s ease .12s both; }
.screen.pf-enter .twist-burst { animation: pf-twist-slam .5s cubic-bezier(.2, 1.4, .4, 1) both; }
/* Award card entrance grows into a slam (replaces the §2 pf-card-in on
   the same selector — same specificity, this later rule wins). */
.screen.pf-enter .award-card { animation: pf-award-in .45s cubic-bezier(.2, 1.4, .4, 1) both; }

/* ---- 14b · Awards: MVP glows gold, glove points at the winner ---- */
/* Persistent glow (applies whenever the MVP card is up). The pop+glow
   rule below wins while .pf-enter is on (higher specificity), so the
   face pops once on step entry and keeps glowing after. */
.awards-show.pf-mvp .award-winner .face { animation: pf-mvp-glow 2s ease-in-out infinite; }
.screen.pf-enter .awards-show.pf-mvp .award-winner .face { animation: pf-winner-pop .6s cubic-bezier(.2, 1.4, .4, 1) .15s both, pf-mvp-glow 2s ease-in-out .8s infinite; }
/* The pointing glove (vAwards / vLiarVote / vLobby / vWheel / vPointing
   add .pf-pointing): the disc wags side to side and the hand sweeps a
   wide pointing arc instead of the gentle §8 bob. */
.glove-point.pf-pointing .glove-disc { animation: pf-glove-wag 1.6s ease-in-out infinite; }
.glove-point.pf-pointing .glove-disc img { animation: pf-glove-point-big 1.6s ease-in-out infinite; }

/* ---- 14c · Point! beats slam; POINT! flashes gold ---- */
/* Replaces the §13 pf-reveal-pop on the same selector — same
   specificity, this later rule wins. The numeral is still plain text. */
.point-num.pf-beat-pop { animation: pf-beat-slam .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.point-num.pf-beat-point { animation: pf-point-flash .6s ease-out both; }

/* ---- 14d · Host line: the mic bounces in with the words ---- */
.host-line.pf-host-in .host-ava { display: inline-block; animation: pf-host-ava-bob .5s ease .1s both; }

/* ---- 14e · Reveals: winner glows, duel loser shakes, VS + counts pop ---- */
.reveal-card.pf-first .bar-row.pf-winner { animation: pf-winner-pop .6s cubic-bezier(.2, 1.4, .4, 1) .9s both, pf-winner-glow 1.1s ease .9s both; }
.reveal-card.pf-first .duelist:not(.win) { animation: pf-loser-shake .5s ease .7s both; }
.reveal-card.pf-first .vs { animation: pf-reveal-pop .5s cubic-bezier(.2, 1.4, .4, 1) .3s both; }
.reveal-card.pf-first .yn-count.yes { animation: pf-reveal-pop .5s cubic-bezier(.2, 1.4, .4, 1) .25s both; }
.reveal-card.pf-first .yn-count.no { animation: pf-reveal-pop .5s cubic-bezier(.2, 1.4, .4, 1) .4s both; }

/* ---- 14f · Voting feels live: tapped face pops, bar pulses, reactions pop ---- */
.vote-face.pf-picked-pop { animation: pf-picked-pop .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.vote-progress.pf-vote-landed { animation: pf-vote-landed .4s ease both; }
.reaction-counts.pf-react-new span:last-child { animation: pf-reveal-pop .45s cubic-bezier(.2, 1.4, .4, 1) both; }

/* ---- 14g · Lobby joins ring gold as they pop in ---- */
.lobby-face.pf-lobby-new { animation: pf-face-in .4s ease both, pf-join-ring .9s ease .05s both; }

/* ---- 14h · Wheel: three full turns, pointer rattles, result slams in ---- */
.wheel.pf-wheel-spinning + .wheel-pointer { animation: pf-wheel-pointer-fast .12s ease-in-out infinite alternate; }
.wheel-result.pf-first { animation: pf-card-in .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.wheel-result.pf-first .card-mini { animation: pf-card-in .45s ease .15s both; }
.wheel-result.pf-first .gossip-line { animation: pf-face-in .4s ease both; }
.wheel-result.pf-first .gossip-line:nth-child(2) { animation-delay: .08s; }
.wheel-result.pf-first .gossip-line:nth-child(3) { animation-delay: .16s; }
.wheel-result.pf-first .gossip-line:nth-child(4) { animation-delay: .24s; }
.wheel-result.pf-first .gossip-line:nth-child(5) { animation-delay: .32s; }

/* ---- 14i · Stakes card slams in and its band wiggles ---- */
.stakes-screen.pf-first .stakes-card { animation: pf-award-in .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.stakes-screen.pf-first .stakes-card .card-band { display: inline-block; animation: pf-stakes-shake .5s ease .55s both; }

/* ---- 14j · Leaderboard leader glows gold (after the §2 stagger) ---- */
.leaderboard .bar-row.pf-lb-lead { animation: pf-lb-lead 2s ease-in-out infinite; }

/* ---- 14k · Ambient life: urgent timer shakes, hype flame flickers ---- */
.timer-ring.urgent { animation: pf-timer-shake .5s ease-in-out infinite; }
.hype-meter > span:first-child { display: inline-block; animation: pf-flame-flicker .9s ease-in-out infinite; }
.toast.show { animation: pf-toast-pop .3s cubic-bezier(.2, 1.4, .4, 1) both; }
.pass-screen .pass-big { animation: pf-pass-bob 1.4s ease-in-out infinite; }
.spotlight-big { display: inline-block; animation: pf-spot-twinkle 1.8s ease-in-out infinite; }

/* ================= 15 · WAVE 2b POLISH (Nov 14, 2026 overnight) ================
   Closes the gaps the Nov 12 alive pass + Nov 13 live-play upgrade left:
   reveals had one verdict beat for every margin (a 1-vote squeaker
   looked exactly like a landslide); the duel result had no face-off;
   the Team Champions line arrived with no ceremony of its own; the
   liar / stakes countdowns ticked silently with no urgency beat; the
   wheel spun with no wind-up; the recap scores had no entrance; the
   Wave 2a Point! toggle (and the DOB picker options) had no press
   state. Same rules as §1–14: transform / opacity / box-shadow /
   text-shadow only, nothing that moves a tap target; every entrance
   one-shot and under ~600ms (the two beats run after the .35s verdict
   pop, inside the reveal's first paint); every new class is named in
   the §12 reduced-motion kill list (the pf- ones also fall under the
   [class*="pf-"] backstop). Wiring is render-site only in js/app.js:
   vReveal (close/pile-on), vDuelReveal (face-off), vAwards (team
   champs), the 500ms tick (countdown urgency), render() pfKey
   (liarDone/mvpDone step changes replay the screen entrance). */
@keyframes pf-close-beat { 0%, 100% { transform: translateX(0) scale(1); } 25% { transform: translateX(-3px) scale(1.02, .97); } 50% { transform: translateX(3px) scale(1.03, .96); box-shadow: 0 0 0 3px rgba(255, 197, 49, .55), 0 0 16px rgba(255, 197, 49, .4); } 75% { transform: translateX(-2px) scale(1.01, .99); } }
@keyframes pf-pileon-beat { 0% { transform: scale(1); } 20% { transform: scale(.94, 1.06); } 45% { transform: scale(1.14, .86) rotate(-1.5deg); filter: brightness(1.6); } 65% { transform: scale(.98, 1.03) rotate(.5deg); filter: brightness(1); } 100% { transform: scale(1) rotate(0); filter: brightness(1); } }
@keyframes pf-pileon-flash { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 197, 49, 0); } 50% { box-shadow: 0 0 0 6px rgba(255, 255, 255, .85), 0 0 30px rgba(200, 255, 0, .7), 0 0 44px rgba(255, 197, 49, .5); } }
@keyframes pf-duel-in-left { 0% { opacity: 0; transform: translateX(-56px) scale(1.12, .88) rotate(-3deg) skewX(-6deg); } 60% { opacity: 1; transform: translateX(6px) scale(.98, 1.04) rotate(1deg) skewX(0deg); } 80% { transform: translateX(-2px) scale(1.01, .99) rotate(0); } 100% { opacity: 1; transform: translateX(0) scale(1) rotate(0); } }
@keyframes pf-duel-in-right { 0% { opacity: 0; transform: translateX(56px) scale(1.12, .88) rotate(3deg) skewX(6deg); } 60% { opacity: 1; transform: translateX(-6px) scale(.98, 1.04) rotate(-1deg) skewX(0deg); } 80% { transform: translateX(2px) scale(1.01, .99) rotate(0); } 100% { opacity: 1; transform: translateX(0) scale(1) rotate(0); } }
@keyframes pf-team-slam { 0% { opacity: 0; transform: scale(1.6) rotate(-3deg); filter: brightness(2.2); } 30% { opacity: 1; transform: scale(1.45) rotate(-2deg); filter: brightness(1.5); } 60% { transform: scale(.95, 1.06) rotate(.5deg); filter: brightness(1); } 80% { transform: scale(1.02, .99) rotate(0); } 100% { opacity: 1; transform: scale(1) rotate(0); filter: brightness(1); } }
@keyframes pf-countdown-pulse { 0%, 100% { transform: scale(1) rotate(0); } 30% { transform: scale(1.42, .85) rotate(-2deg); } 55% { transform: scale(1.36, 1.04) rotate(1deg); } 80% { transform: scale(1.05, .98); } }

/* ---- 15a · Reveal beats: a squeaker wobbles, a landslide slams ----
   The verdict pop (§5/§14) still runs at .35s; the beat lands after
   it (.9s), on the same banner — one element, two animations, so the
   base pop is repeated in the shorthand (a later `animation` rule
   replaces, never merges). Close = 1-vote margin, pile-on = winner
   took >= 2/3 of the votes; unanimous keeps its own banner. */
.reveal-card.pf-first .crown-banner.pf-close-reveal { animation: pf-reveal-pop .45s cubic-bezier(.2, 1.4, .4, 1) .35s both, pf-close-beat .8s ease .95s both; }
.reveal-card.pf-first .crown-banner.pf-pileon { animation: pf-reveal-pop .45s cubic-bezier(.2, 1.4, .4, 1) .35s both, pf-pileon-beat .6s cubic-bezier(.2, 1.4, .4, 1) .95s both, pf-pileon-flash .9s ease .95s both; }

/* ---- 15b · Duel face-off: the two faces slide in from opposite sides ----
   Applied to the .face inside each duelist (not the .duelist div
   itself — §5/§14 already animate the div for win-pop / loser-shake,
   and two animations on one transform would fight). The faces arrive
   while the VS pops (§14e) and the winner pops (.45s). */
.reveal-card.pf-first .duelist.pf-duel-left .face { animation: pf-duel-in-left .5s cubic-bezier(.2, 1.4, .4, 1) .1s both; }
.reveal-card.pf-first .duelist.pf-duel-right .face { animation: pf-duel-in-right .5s cubic-bezier(.2, 1.4, .4, 1) .1s both; }

/* ---- 15c · Team-champion moment: the line slams in and keeps glowing ----
   vAwards adds .pf-team-champs to .awards-show on the last step of a
   teams game. The line slams (transform/opacity) and glows gold
   (box-shadow) — different properties, so both animations run at once.
   The recap's team line gets the same slam on the recap entrance. */
.awards-show.pf-team-champs .team-champs { animation: pf-team-slam .6s cubic-bezier(.2, 1.4, .4, 1) both, pf-mvp-glow 2s ease-in-out .7s infinite; }
.screen.pf-enter .team-champs.recap-team { animation: pf-team-slam .55s cubic-bezier(.2, 1.4, .4, 1) .1s both; }

/* ---- 15d · Countdown urgency: the last 5 seconds pulse ----
   The 500ms tick toggles .pf-countdown-urgent on the liar / stakes /
   stakes-wait numbers when <= 5s remain (mirrors the timer-ring
   .urgent pattern). The number is inline text, so inline-block lets
   the scale land; the red tint is the urgency read, the pulse is the
   motion. At 0s the phase is about to move on — the class clears with
   the screen. */
#liar-countdown-num.pf-countdown-urgent,
#stakes-countdown-num.pf-countdown-urgent,
#stakes-wait-num.pf-countdown-urgent { display: inline-block; color: #ff8a8a; font-weight: 900; animation: pf-countdown-pulse .6s ease-in-out infinite; }

/* ---- 15e · Recap scores cascade in, like the leaderboard rows ----
   CSS-only: the recap screen's entrance already replays per screen
   change; the rows ride it with the same stagger §2 uses. */
.screen.pf-enter .recap-scores .bar-row { animation: pf-face-in .35s ease both; }
.screen.pf-enter .recap-scores .bar-row:nth-child(2) { animation-delay: .06s; }
.screen.pf-enter .recap-scores .bar-row:nth-child(3) { animation-delay: .12s; }
.screen.pf-enter .recap-scores .bar-row:nth-child(4) { animation-delay: .18s; }
.screen.pf-enter .recap-scores .bar-row:nth-child(5) { animation-delay: .24s; }
.screen.pf-enter .recap-scores .bar-row:nth-child(6) { animation-delay: .3s; }

/* Reaction burst (Dan Nov 15): big emoji pops, floats up, fades. */
@keyframes pf-react-burst { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.35) rotate(-8deg); } 18% { opacity: 1; transform: translate(-50%, -50%) scale(1.25, .85) rotate(2deg); filter: brightness(1.8); } 35% { transform: translate(-50%, -58%) scale(.95, 1.08) rotate(0); filter: brightness(1); } 70% { opacity: 1; transform: translate(-50%, -95%) scale(1.05); } 100% { opacity: 0; transform: translate(-50%, -140%) scale(1); filter: brightness(1); } }
/* Reaction card effects (Dan Nov 15): speed-line spin behind the burst
   face; Boo shakes the exposed player's row; Fire glows; Laugh pops
   sparkles; Gasp bobs the sweat drop. */
@keyframes pf-react-spin { 0% { transform: rotate(0deg) scale(1); } 50% { transform: rotate(45deg) scale(1.12, .92); } 100% { transform: rotate(90deg) scale(1); } }
@keyframes pf-fx-shake { 0%, 100% { transform: translateX(0) skewX(0deg); } 25% { transform: translateX(-6px) skewX(-10deg) scale(1.02, .98); } 75% { transform: translateX(6px) skewX(10deg) scale(1.02, .98); } }
@keyframes pf-fx-fire-glow { 0% { filter: drop-shadow(0 0 2px #ff7a1a); } 50% { filter: drop-shadow(0 0 16px #ff7a1a) brightness(1.3); } 100% { filter: drop-shadow(0 0 10px #ff7a1a); } }
@keyframes pf-fx-pop { 0% { transform: scale(.55, 1.3) rotate(-10deg); } 60% { transform: scale(1.22, .82) rotate(7deg); } 100% { transform: scale(1.15, 1) rotate(6deg); } }
@keyframes pf-fx-bob { 0% { transform: translateY(0) scale(1); } 50% { transform: translateY(5px) scale(1.06, .94); } 100% { transform: translateY(0) scale(1); } }
