/* The friend's page. Loaded only by the link page (src/pages.js), never by the owner app.
   Resting styles = the final frame. The animated visit (.fp-seq) plays on top with timed
   animations that use fill-mode "both", so switching animations off shows the final frame. */
@import url('rig.css');
@import url('fonts.css');

:root {
  --stage: #0E5E5B; --stage-deep: #073B39; --spot: #1E8A84;
  --marigold: #F4A300; --marigold-soft: #FFD27A; --ink: #1B1A17;
  --paper: #FFF8E6; --stamp: #C62F3B; --rule: #E7D9B5; --margin: #E0868C;
  --display: 'Baloo 2', 'Lato', 'Trebuchet MS', system-ui, sans-serif;
  --body: 'DM Sans', 'Lato', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
html, body { margin: 0; height: 100%; }
html { background: var(--stage-deep); }
body.fp { background: var(--stage-deep); color: #fff; font-family: var(--body); -webkit-font-smoothing: antialiased; }
.fp p, .fp h1 { margin: 0; }
.fp a { color: inherit; }
:where(.fp) button { font: inherit; cursor: pointer; }
:where(.fp) :focus-visible { outline: 3px solid var(--marigold-soft); outline-offset: 3px; }
.fp-main { max-width: 430px; min-height: 100%; margin: 0 auto; display: flex; flex-direction: column; overflow-x: hidden; }

/* ---------- Preview bar (owner only) ---------- */
.fp-preview { padding: 10px 14px; background: #00000059; border-bottom: 1px dashed #ffffff40; font-size: 12.5px; }
.fp-preview p { color: #ffffffb3; margin-bottom: 6px; }
.pv-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pv-levels { display: flex; gap: 4px; }
.pv-levels a { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #ffffff1f; text-decoration: none; font-weight: 700; }
.pv-levels a[aria-current] { background: var(--marigold); color: var(--ink); }
.pv-btn { margin-left: auto; border: 1px solid #ffffff66; border-radius: 999px; padding: 5px 12px; text-decoration: none; }

/* ---------- Scene ---------- */
.fp-from { text-align: center; padding: 14px 16px 0; font-size: 15px; color: #ffffffdd; }
.fp-from b { color: var(--marigold-soft); font-weight: 700; }
.fp-notyou { font-style: italic; }
.fp-scene {
  position: relative; flex: 1; min-height: 470px; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 48% at 50% 78%, #ffffff22, transparent 70%),
    radial-gradient(ellipse 120% 80% at 50% 110%, var(--spot), transparent 70%),
    var(--stage);
}
.fp-scene::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(#0000, #00000040); pointer-events: none; }
.fp-end .fp-scene { min-height: 430px; }

.fp-bubbles { position: absolute; top: 14px; left: 16px; right: 16px; z-index: 5; }
.fp-bubble {
  position: absolute; top: 0; left: 0; right: 0;
  background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 22px;
  padding: 14px 18px; box-shadow: 0 5px 0 var(--ink);
  font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.25; text-align: center;
  transform-origin: 50% 100%; visibility: hidden;
}
.fp-bubble.is-last { visibility: visible; }
.fp-bubble::after {
  content: ""; position: absolute; bottom: -17px; left: 50%; width: 26px; height: 26px; background: var(--paper);
  border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: translateX(-50%) rotate(45deg);
}

.fp-char { position: absolute; left: 50%; bottom: 26px; width: min(70%, 270px); translate: -50% 0; z-index: 2; }
.fp-end:not(:has(.fp-receipt)) .fp-char { bottom: -8px; }
.fp-char svg { width: 100%; height: auto; display: block; }

.fp-receipt {
  position: absolute; left: 50%; bottom: 12px; width: 206px; z-index: 3; translate: -50% 0; rotate: -3deg;
  background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 6px;
  box-shadow: 0 6px 0 var(--ink); padding: 12px 14px 14px; transform-origin: 50% 0;
}
.fp-receipt::before { content: ""; position: absolute; left: 16px; top: 0; bottom: 0; border-left: 2px solid var(--margin); }
.r-head { font-family: var(--display); font-weight: 800; font-size: 16px; padding-left: 12px; }
.r-total { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; padding: 6px 0 6px 12px; letter-spacing: -0.5px; }
.r-row { display: flex; justify-content: space-between; padding: 3px 0 3px 12px; font-size: 13.5px; border-bottom: 1px solid var(--rule); }
.r-row b { font-weight: 700; }
.r-stamp {
  position: absolute; right: -30px; top: -18px; rotate: -14deg; white-space: nowrap;
  font-family: var(--display); font-weight: 800; font-size: 17px; line-height: 1; color: var(--stamp);
  border: 3px solid var(--stamp); border-radius: 6px; padding: 6px 8px 4px; background: #FFF8E6cc;
}

.fp-fx { position: absolute; inset: 0; pointer-events: none; z-index: 4; overflow: hidden; }
.fp-fx > span:not(.petals), .petals i { position: absolute; visibility: hidden; }
.kn { font-family: var(--display); font-weight: 700; font-size: 22px; color: #fff; }
.kn1 { left: 8%; top: 58%; } .kn2 { left: 72%; top: 50%; } .kn3 { left: 12%; top: 40%; }
.bm {
  font-family: var(--display); font-weight: 800; font-size: 58px; line-height: 1; color: var(--marigold);
  -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 0 5px 0 var(--ink);
}
.bm1 { left: 6%; top: 22%; --r: -10deg; } .bm2 { left: 46%; top: 34%; --r: 9deg; }
.bm3 { left: 16%; top: 50%; --r: -4deg; } .bm4 { left: 50%; top: 42%; --r: 8deg; }
.sweep {
  top: -20%; left: 50%; width: 70%; height: 140%; translate: -50% 0; transform-origin: 50% 0;
  background: linear-gradient(#FFD27A55, #FFD27A00 80%); clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
}
.petals { position: absolute; inset: 0; }
.petals i { top: -30px; border-radius: 60% 0 60% 0; background: radial-gradient(circle at 30% 30%, #FFD27A, #F4A300 55%, #D47A00); }
.petals i:nth-child(1) { left: 32.4%; width: 14px; height: 18px; --dx: -49px; --rot: 163deg; --dur: 2.74s; --d1: 2.59s; --d2: 1.65s; }
.petals i:nth-child(2) { left: 87.5%; width: 14px; height: 18px; --dx: -40px; --rot: -447deg; --dur: 3.44s; --d1: 1.88s; --d2: 2.48s; }
.petals i:nth-child(3) { left: 79.7%; width: 16px; height: 21px; --dx: -53px; --rot: -299deg; --dur: 3.85s; --d1: 3.57s; --d2: 2.60s; }
.petals i:nth-child(4) { left: 6.7%; width: 18px; height: 24px; --dx: -39px; --rot: 61deg; --dur: 2.87s; --d1: 2.31s; --d2: 2.43s; }
.petals i:nth-child(5) { left: 31.0%; width: 18px; height: 24px; --dx: 44px; --rot: -345deg; --dur: 3.76s; --d1: 2.83s; --d2: 1.68s; }
.petals i:nth-child(6) { left: 68.9%; width: 16px; height: 21px; --dx: 9px; --rot: 129deg; --dur: 3.59s; --d1: 2.58s; --d2: 3.50s; }
.petals i:nth-child(7) { left: 57.0%; width: 18px; height: 24px; --dx: -7px; --rot: -216deg; --dur: 4.19s; --d1: 2.98s; --d2: 1.10s; }
.petals i:nth-child(8) { left: 30.2%; width: 18px; height: 24px; --dx: -1px; --rot: -169deg; --dur: 3.50s; --d1: 2.76s; --d2: 0.33s; }
.petals i:nth-child(9) { left: 41.3%; width: 18px; height: 24px; --dx: 36px; --rot: -376deg; --dur: 3.58s; --d1: 1.39s; --d2: 3.01s; }
.petals i:nth-child(10) { left: 55.9%; width: 16px; height: 21px; --dx: 53px; --rot: -201deg; --dur: 3.99s; --d1: 2.73s; --d2: 2.61s; }
.petals i:nth-child(11) { left: 8.5%; width: 16px; height: 21px; --dx: -57px; --rot: -248deg; --dur: 3.99s; --d1: 1.46s; --d2: 3.29s; }
.petals i:nth-child(12) { left: 62.8%; width: 14px; height: 18px; --dx: 69px; --rot: 348deg; --dur: 3.17s; --d1: 2.23s; --d2: 3.01s; }
.petals i:nth-child(13) { left: 90.4%; width: 18px; height: 24px; --dx: -20px; --rot: 120deg; --dur: 3.59s; --d1: 1.82s; --d2: 1.29s; }
.petals i:nth-child(14) { left: 25.3%; width: 14px; height: 18px; --dx: -15px; --rot: 401deg; --dur: 2.76s; --d1: 2.38s; --d2: 2.47s; }
.petals i:nth-child(15) { left: 79.0%; width: 14px; height: 18px; --dx: 51px; --rot: -239deg; --dur: 3.43s; --d1: 2.16s; --d2: 3.98s; }
.petals i:nth-child(16) { left: 16.2%; width: 16px; height: 21px; --dx: -45px; --rot: -289deg; --dur: 3.07s; --d1: 2.46s; --d2: 2.65s; }
.petals i:nth-child(17) { left: 28.5%; width: 18px; height: 24px; --dx: -50px; --rot: 37deg; --dur: 3.82s; --d1: 2.06s; --d2: 0.56s; }
.petals i:nth-child(18) { left: 91.3%; width: 18px; height: 24px; --dx: 22px; --rot: 259deg; --dur: 3.51s; --d1: 3.39s; --d2: 4.28s; }
.petals i:nth-child(19) { left: 77.0%; width: 14px; height: 18px; --dx: -15px; --rot: -109deg; --dur: 2.81s; --d1: 7.41s; --d2: 0.28s; }
.petals i:nth-child(20) { left: 94.6%; width: 18px; height: 24px; --dx: -8px; --rot: -421deg; --dur: 3.80s; --d1: 6.56s; --d2: 2.55s; }
.petals i:nth-child(21) { left: 11.5%; width: 16px; height: 21px; --dx: -19px; --rot: -512deg; --dur: 4.35s; --d1: 7.38s; --d2: 0.67s; }
.petals i:nth-child(22) { left: 91.8%; width: 16px; height: 21px; --dx: 14px; --rot: -28deg; --dur: 2.83s; --d1: 7.18s; --d2: 4.40s; }
.petals i:nth-child(23) { left: 47.5%; width: 14px; height: 18px; --dx: -58px; --rot: -430deg; --dur: 3.29s; --d1: 6.82s; --d2: 3.73s; }
.petals i:nth-child(24) { left: 50.5%; width: 18px; height: 24px; --dx: -41px; --rot: 488deg; --dur: 3.32s; --d1: 7.50s; --d2: 4.11s; }
.petals i:nth-child(25) { left: 30.0%; width: 16px; height: 21px; --dx: 20px; --rot: -442deg; --dur: 4.29s; --d1: 7.23s; --d2: 4.09s; }
.petals i:nth-child(26) { left: 74.6%; width: 14px; height: 18px; --dx: 5px; --rot: 301deg; --dur: 3.26s; --d1: 6.76s; --d2: 3.65s; }
.petals i:nth-child(27) { left: 77.8%; width: 14px; height: 18px; --dx: 45px; --rot: 259deg; --dur: 3.05s; --d1: 7.23s; --d2: 1.60s; }
.petals i:nth-child(28) { left: 95.0%; width: 18px; height: 24px; --dx: 41px; --rot: -30deg; --dur: 2.99s; --d1: 7.37s; --d2: 1.55s; }

/* Resting idle on the friend page */
.fp .rig-head { animation: bob 2.6s ease-in-out infinite; }
.fp .rig-stache { animation: stache 1.3s ease-in-out infinite; }
.fp .rig-arm-wave { animation: wave-idle 5s ease-in-out infinite; }
.fp-laughing .rig-head, .fp-laughing .rig-body { animation: giggle .16s linear infinite alternate; }
.fp-end .fp-bubble.is-last { animation: bubble-in .35s .25s cubic-bezier(.34,1.56,.64,1) both; }
.fp-party .petals i { animation: fall var(--dur) linear var(--d2) infinite; }

/* ---------- Actions ---------- */
.fp-actions { padding: 16px 16px 26px; display: grid; gap: 10px; background: var(--stage-deep); }
.fp-actions h1 { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.15; text-align: center; }
.fp-actions form { margin: 0; }
.fp-laugh {
  display: block; width: 100%; text-align: center; text-decoration: none;
  border: 3px solid var(--ink); background: var(--marigold); color: var(--ink); border-radius: 16px; padding: 14px 16px;
  font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1.2; box-shadow: 0 5px 0 var(--ink);
}
.fp-laugh:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.fp-small { text-align: center; font-size: 13px; line-height: 1.45; color: #ffffffb3; }
.fp-note { text-align: center; background: #ffffff1a; border-radius: 14px; padding: 12px 14px; font-size: 14.5px; line-height: 1.45; }
.fp-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #ffffff12; border-radius: 14px; padding: 10px; }
.fp-snooze { display: inline-block; border: 2px solid #ffffffaa; background: none; color: #fff; border-radius: 12px; padding: 9px 12px; font-weight: 700; font-size: 14px; text-decoration: none; }
.fp-snooze:disabled, .fp-snooze.is-disabled { opacity: .45; cursor: default; }
.fp-report { border: 0; background: none; color: #ffffffcc; text-decoration: underline; font-size: 13.5px; text-align: right; padding: 6px 0; }
.fp-row > :last-child { flex: 1; text-align: right; }
.fp-row > :first-child { flex: none; }
.fp-own { text-align: center; color: var(--marigold-soft); font-weight: 700; font-size: 14.5px; text-decoration: none; padding: 6px; }
.fp-brand { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 6px; font-size: 12.5px; color: #ffffff99; }
.fp-links { margin-top: 6px; } .fp-brand a { color: #ffffffb3; font-size: 12.5px; }
.fp-wordmark { font-family: var(--display); font-weight: 800; font-size: 20px; color: #fff; letter-spacing: -0.3px; }
.fp-missing { flex: 1; align-content: center; min-height: 70vh; }

/* ---------- The animated visit ---------- */
/* Tier a: levels 1-2, gentle */
.tier-a .fp-char { animation: enter .8s cubic-bezier(.34,1.56,.64,1) .3s both; }
.tier-a .rig-arm-wave { animation: wave .5s ease-in-out 1s 6 alternate, wave-idle 5s ease-in-out 4.4s infinite; }
.tier-a .b1 { animation: bubble-io 2.4s 1s both; }
.tier-a .b2 { animation: bubble-in .35s cubic-bezier(.34,1.56,.64,1) 3.5s both; }
.tier-a .rig-mv-open { animation: talk .28s steps(1) 1s 4, talk .28s steps(1) 3.5s 6; }
.tier-a .rig-ledger { animation: ledger-in .4s cubic-bezier(.34,1.56,.64,1) 2.6s both; }
.tier-a .fp-receipt { animation: unroll .7s cubic-bezier(.2,.9,.3,1.2) 2.8s both; }
.tier-a .r-stamp { animation: stamp-soft .6s ease-out 3.6s both; }
.tier-a .fp-laugh { animation: rise .5s cubic-bezier(.34,1.56,.64,1) 4.3s both; }
.tier-a .rig-head { animation: bob 2.6s ease-in-out 4.4s infinite; }

/* Tier b: levels 3-4, drama */
.tier-b .kn1 { animation: knock .7s ease-out .2s both; }
.tier-b .kn2 { animation: knock .7s ease-out .55s both; }
.tier-b .kn3 { animation: knock .7s ease-out .9s both; }
.tier-b .fp-char { animation: enter .8s cubic-bezier(.34,1.56,.64,1) 1.4s both; }
.tier-b .rig-arm-wave { animation: wave .5s ease-in-out 2.1s 8 alternate, wave-idle 5s ease-in-out 11.8s infinite; }
.tier-b .rig-brow-l, .tier-b .rig-brow-r { animation: brow .9s ease-in-out 2.2s 2; }
.tier-b .b1 { animation: bubble-io 2.5s 2.2s both; }
.tier-b .b2 { animation: bubble-io 3.1s 5.9s both; }
.tier-b .b3 { animation: bubble-in .35s cubic-bezier(.34,1.56,.64,1) 9s both; }
.tier-b .rig-mv-open { animation: talk .28s steps(1) 2.2s 4, talk .28s steps(1) 5.9s 7, talk .28s steps(1) 9s 6; }
.tier-b .rig-ledger { animation: ledger-in .4s cubic-bezier(.34,1.56,.64,1) 4s both; }
.tier-b .fp-receipt { animation: unroll .7s cubic-bezier(.2,.9,.3,1.2) 4.2s both; }
.tier-b .r-stamp { animation: thud .38s cubic-bezier(.5,0,.75,0) 5s both; }
.tier-b .bm4 { animation: boom .9s ease-out 5.3s both; }
.tier-b .fp-scene { animation: shake .45s cubic-bezier(.36,.07,.19,.97) 5.3s; }
.tier-b .rig-ev-normal { animation: vis-off 2.8s 9s; }
.tier-b .rig-ev-puppy { animation: vis-on 2.8s 9s; }
.tier-b .fp-laugh { animation: rise .5s cubic-bezier(.34,1.56,.64,1) 10s both; }
.tier-b .rig-head { animation: bob 2.6s ease-in-out 11.8s infinite; }

/* Tier c: level 5, full drama */
.tier-c .sweep { animation: sweep 2.6s ease-in-out .2s 2 both; }
.tier-c .bm1 { animation: boom .9s ease-out .2s both; }
.tier-c .bm2 { animation: boom .9s ease-out .75s both; }
.tier-c .bm3 { animation: boom .9s ease-out 1.3s both; }
.tier-c .bm4 { animation: boom .9s ease-out 6.45s both; }
.tier-c .petals i { animation: fall var(--dur) linear var(--d1) both; }
.tier-c .fp-scene { animation: shake .45s ease .2s, shake .45s ease .75s, shake .45s ease 1.3s, shake .45s ease 6.45s; }
.tier-c .fp-char { animation: enter-big 1.1s cubic-bezier(.34,1.7,.64,1) 1.8s both; }
.tier-c .rig-arm-wave { animation: wave .5s ease-in-out 2.9s 8 alternate, vis-off 2.8s 10s, wave-idle 5s ease-in-out 12.8s infinite; }
.tier-c .rig-arm-rest { animation: vis-off 2.8s 10s; }
.tier-c .rig-namaste { animation: vis-on 2.8s 10s; }
.tier-c .rig-brow-l, .tier-c .rig-brow-r { animation: brow .9s ease-in-out 2.9s 3; }
.tier-c .b1 { animation: bubble-io 2.7s 2.9s both; }
.tier-c .b2 { animation: bubble-io 3s 7s both; }
.tier-c .b3 { animation: bubble-in .35s cubic-bezier(.34,1.56,.64,1) 10s both; }
.tier-c .rig-mv-open { animation: talk .28s steps(1) 2.9s 5, talk .28s steps(1) 7s 6, talk .28s steps(1) 10s 7; }
.tier-c .rig-ledger { animation: ledger-in .4s cubic-bezier(.34,1.56,.64,1) 5.2s both; }
.tier-c .fp-receipt { animation: unroll .7s cubic-bezier(.2,.9,.3,1.2) 5.4s both, lower 2.8s ease-in-out 10s; }
.tier-c .r-stamp { animation: thud .38s cubic-bezier(.5,0,.75,0) 6.2s both; }
.tier-c .rig-ev-normal { animation: vis-off 2.8s 10s; }
.tier-c .rig-ev-puppy { animation: vis-on 2.8s 10s; }
.tier-c .fp-laugh { animation: rise .5s cubic-bezier(.34,1.56,.64,1) 11.2s both; }
.tier-c .rig-head { animation: bob 2.6s ease-in-out 12.8s infinite; }

/* ---------- Keyframes ---------- */
@keyframes enter { 0% { translate: -50% 115%; } 70% { translate: -50% -4%; scale: 1 1.04; } 85% { scale: 1.04 .96; } 100% { translate: -50% 0; scale: 1; } }
@keyframes enter-big { 0% { translate: -50% 115%; rotate: -8deg; } 55% { translate: -50% -12%; rotate: 6deg; scale: 1.06; } 75% { translate: -50% 2%; rotate: -2deg; scale: 1.08 .92; } 100% { translate: -50% 0; rotate: 0deg; scale: 1; } }
@keyframes bubble-in { 0% { visibility: visible; opacity: 0; transform: scale(.6); } 100% { visibility: visible; opacity: 1; transform: scale(1); } }
@keyframes bubble-io {
  0% { visibility: visible; opacity: 0; transform: scale(.6); }
  10% { visibility: visible; opacity: 1; transform: scale(1); }
  90% { visibility: visible; opacity: 1; transform: scale(1); }
  100% { visibility: hidden; opacity: 0; transform: scale(.95); }
}
@keyframes talk { 0% { visibility: visible; } 50% { visibility: hidden; } }
@keyframes vis-on { from, to { visibility: visible; } }
@keyframes vis-off { from, to { visibility: hidden; } }
@keyframes wave { from { transform: rotate(-14deg); } to { transform: rotate(16deg); } }
@keyframes wave-idle { 0%, 80%, 100% { transform: rotate(0); } 84%, 92% { transform: rotate(14deg); } 88%, 96% { transform: rotate(-8deg); } }
@keyframes bob { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg) translateY(-2px); } }
@keyframes stache { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(-6deg); } 86% { transform: rotate(6deg); } 94% { transform: rotate(-3deg); } }
@keyframes brow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes giggle { from { transform: translateY(0) rotate(-1.5deg); } to { transform: translateY(-4px) rotate(1.5deg); } }
@keyframes ledger-in { 0% { visibility: visible; transform: scale(0) rotate(-30deg); } 100% { visibility: visible; transform: scale(1) rotate(0); } }
@keyframes unroll { 0% { transform: scaleY(0); opacity: 1; } 100% { transform: scaleY(1); opacity: 1; } }
@keyframes lower { 0%, 100% { translate: -50% 0; } 14%, 86% { translate: -50% 46%; } }
@keyframes thud { 0% { opacity: 0; transform: scale(2.6); } 70% { opacity: 1; transform: scale(.92); } 100% { opacity: 1; transform: scale(1); } }
@keyframes stamp-soft { from { opacity: 0; transform: scale(1.2); } to { opacity: 1; transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); visibility: hidden; } to { opacity: 1; transform: none; visibility: visible; } }
@keyframes knock { 0% { visibility: visible; opacity: 0; transform: translateX(-10px); } 30% { opacity: 1; transform: translateX(4px); } 50% { transform: translateX(-4px); } 100% { visibility: visible; opacity: 0; transform: translateX(0); } }
@keyframes boom { 0% { visibility: visible; opacity: 0; transform: scale(.3) rotate(var(--r)); } 25% { opacity: 1; transform: scale(1.15) rotate(var(--r)); } 75% { opacity: 1; } 100% { visibility: visible; opacity: 0; transform: scale(1) translateY(-18px) rotate(var(--r)); } }
@keyframes sweep { 0% { visibility: visible; rotate: -28deg; } 50% { visibility: visible; rotate: 28deg; } 100% { visibility: visible; rotate: -28deg; opacity: 0; } }
@keyframes fall { 0% { visibility: visible; transform: translate(0, 0) rotate(0); } 100% { visibility: visible; transform: translate(var(--dx), 640px) rotate(var(--rot)); } }
@keyframes shake { 10%, 90% { transform: translate(-2px, 1px); } 20%, 80% { transform: translate(4px, -2px); } 30%, 50%, 70% { transform: translate(-6px, 2px); } 40%, 60% { transform: translate(6px, -1px); } }

/* No motion: every animation is removed, which leaves the final frame on screen. */
@media (prefers-reduced-motion: reduce) {
  .fp *, .fp *::before, .fp *::after { animation: none !important; transition: none !important; }
}

/* Small phones */
@media (max-width: 360px) {
  .fp-bubble { font-size: 18px; padding: 12px 14px; }
  .fp-char { width: 62%; }
}
.fp-stop { justify-self: center; }
