/* The Rose Gate: BRG log in / join. A flipping card (log in on the front, join on the back), a gold bloom
   that opens ring by ring as the form fills in, an orbiting spark on the card edge, a thorn sigil behind it. */
@property --rg-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

.rg { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); align-items: center; gap: clamp(28px, 5vw, 80px); max-width: 1200px; min-height: calc(100vh - 62px); margin: 0 auto; padding: 48px 24px 90px; isolation: isolate; overflow-x: clip; }

/* ---------- the sigil behind the card ---------- */
.rg-halo { grid-column: 2; grid-row: 1; place-self: center; position: relative; z-index: -1; width: min(760px, 135vw); aspect-ratio: 1; pointer-events: none; }
.rg-halo svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; }
.rg-halo circle { stroke: rgba(254, 211, 143, .16); stroke-width: 1; }
.rg-h1 { stroke-dasharray: 1772; stroke-dashoffset: 1772; animation: rg-draw 2.4s .2s cubic-bezier(.6, 0, .2, 1) forwards; }
.rg-h2 { stroke-dasharray: 2 12; stroke: rgba(254, 211, 143, .3) !important; transform-origin: 0 0; animation: rg-spin 140s linear infinite; }
.rg-h3 { stroke: rgba(179, 38, 58, .22) !important; stroke-dasharray: 60 24 4 24; transform-origin: 0 0; animation: rg-spin 90s linear infinite reverse; }
.rg-thornring { fill: rgba(254, 211, 143, .22); transform-origin: 0 0; animation: rg-spin 220s linear infinite reverse, rg-fade 1.6s .6s both; }
.rg-rays { position: absolute; inset: 14%; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(254, 211, 143, .07) 0 4deg, transparent 4deg 18deg); -webkit-mask: radial-gradient(closest-side, #000 20%, transparent 100%); mask: radial-gradient(closest-side, #000 20%, transparent 100%); animation: rg-spin 120s linear infinite, rg-fade 2s .4s both; }

/* ---------- left: the pitch ---------- */
.rg-side { grid-column: 1; grid-row: 1; }
.rg-kicker { display: inline-flex; align-items: center; gap: 12px; color: var(--gold); font: 700 12px/1 var(--cond); letter-spacing: .3em; text-transform: uppercase; animation: rg-rise .8s both; }
.rg-kicker::before { content: ""; width: 34px; height: 1px; background: var(--foil); }
.rg-title { margin: 14px 0 16px; font: 700 clamp(48px, 6.4vw, 84px)/.9 var(--cond); letter-spacing: .02em; text-transform: uppercase; }
.rg-title span { display: block; color: var(--text); animation: rg-rise .8s .08s both; }
.rg-title b { display: block; background: var(--foil); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rg-rise .8s .16s both, rg-sheen 6s 1s ease-in-out infinite; filter: drop-shadow(0 6px 30px rgba(254, 211, 143, .18)); }
.rg-lede { max-width: 46ch; margin: 0 0 26px; color: var(--muted); font-size: 16px; animation: rg-rise .8s .24s both; }
.rg-perks { display: grid; gap: 10px; margin: 0 0 28px; padding: 0; list-style: none; }
.rg-perks li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; background: linear-gradient(90deg, rgba(254, 211, 143, .05), transparent 70%); box-shadow: inset 1px 0 0 rgba(254, 211, 143, .35); animation: rg-slide .7s calc(.35s + var(--d) * .09s) both; transition: background .3s, transform .3s; }
.rg-perks li:hover { transform: translateX(4px); background: linear-gradient(90deg, rgba(254, 211, 143, .1), transparent 80%); }
.rg-perks i { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 10px; font-style: normal; font-size: 19px; background: radial-gradient(circle at 30% 25%, rgba(254, 211, 143, .2), rgba(0, 0, 0, .3)); box-shadow: inset 0 0 0 1px var(--line); }
.rg-perks b { display: block; font: 700 15px/1.2 var(--cond); letter-spacing: .08em; text-transform: uppercase; }
.rg-perks small { color: var(--muted); font-size: 13px; }
.rg-stats { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; animation: rg-rise .8s .7s both; }
.rg-stats > div { min-width: 96px; padding: 12px 16px; border-radius: 12px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); }
.rg-stats > div b { display: block; font: 700 34px/1 var(--cond); background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rg-stats small { color: var(--muted); font: 700 11px/1.4 var(--cond); letter-spacing: .22em; text-transform: uppercase; }
.rg-next { flex: 1; min-width: 200px; display: grid; align-content: center; gap: 2px; padding: 12px 16px; border-radius: 12px; color: var(--text) !important; background: linear-gradient(120deg, rgba(179, 38, 58, .22), rgba(254, 211, 143, .06)); box-shadow: inset 0 0 0 1px rgba(254, 211, 143, .25); transition: transform .25s, box-shadow .25s; }
.rg-next:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(254, 211, 143, .5), 0 14px 40px rgba(179, 38, 58, .25); }
.rg-next small { color: var(--gold); }
.rg-next b { font: 700 19px/1.15 var(--cond); letter-spacing: .05em; text-transform: uppercase; }
.rg-next em { color: var(--muted); font: 600 13px/1.3 var(--ui); font-style: normal; font-variant-numeric: tabular-nums; }

/* ---------- right: tabs + flipping card ---------- */
.rg-main { grid-column: 2; grid-row: 1; position: relative; width: 100%; }
.rg-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: min(330px, 100%); margin: 0 auto 6px; padding: 5px; border-radius: 999px; background: rgba(10, 9, 8, .7); box-shadow: inset 0 0 0 1px var(--line), 0 10px 30px rgba(0, 0, 0, .4); animation: rg-rise .7s .1s both; }
.rg-tabs a { position: relative; z-index: 1; padding: 11px 8px; border-radius: 999px; text-align: center; color: var(--muted); font: 700 14px/1 var(--cond); letter-spacing: .16em; text-transform: uppercase; transition: color .35s; }
.rg-tabs a[aria-selected="true"] { color: #1a1208; }
.rg-tabs a:not([aria-selected="true"]):hover { color: var(--text); }
.rg-pill { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--foil); box-shadow: 0 4px 20px rgba(254, 211, 143, .35); transition: transform .55s cubic-bezier(.65, -0.35, .3, 1.35); }
.rg[data-mode="signup"] .rg-pill { transform: translateX(100%); }

.rg-flip { perspective: 1800px; animation: rg-rise .9s .15s cubic-bezier(.2, .9, .2, 1) both; }
.rg-inner { position: relative; display: grid; transform-style: preserve-3d; transition: transform 1s cubic-bezier(.68, -0.25, .27, 1.2), height .6s cubic-bezier(.4, 0, .2, 1); }
.rg[data-mode="signup"] .rg-inner:not(.solo) { transform: rotateY(180deg); }
.rg-face { grid-area: 1 / 1; align-self: start; position: relative; margin-top: 88px; padding: 0 30px 26px; border-radius: 20px; text-align: center; background: radial-gradient(120% 70% at 50% 0%, rgba(254, 211, 143, .08), transparent 60%), linear-gradient(180deg, rgba(26, 22, 18, .96), rgba(12, 11, 10, .97)); box-shadow: 0 40px 90px rgba(0, 0, 0, .6), 0 0 0 1px rgba(254, 211, 143, .1); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.rg-back { transform: rotateY(180deg); }
/* the living edge: a faint gold line with a bright spark orbiting it */
.rg-face::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: conic-gradient(from var(--rg-a), rgba(254, 211, 143, .12) 0 62%, var(--gold-deep) 76%, #fff6e0 82%, var(--gold) 86%, rgba(179, 38, 58, .6) 92%, rgba(254, 211, 143, .12) 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: rg-orbit 6s linear infinite; pointer-events: none; }
/* soft spotlight that follows the pointer */
.rg-face::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), rgba(254, 211, 143, .08), transparent 60%); pointer-events: none; transition: opacity .3s; }
.rg[data-error] .rg-face:not([inert]) { animation: rg-shake .55s .5s both; }

/* ---------- the bloom ---------- */
.rg-bloom { position: relative; z-index: 1; width: 176px; height: 176px; margin: -88px auto 2px; --p: 0; }
.rg-bloom-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: rg-spin 80s linear infinite; }
.rg-ring { --o: clamp(0, calc(var(--p) * 5 - var(--i)), 1); transform: rotate(calc(var(--o) * 36deg - 36deg)) scale(calc(.58 + var(--o) * .42)); opacity: calc(.4 + var(--o) * .6); transition: transform 1s cubic-bezier(.2, 1.4, .3, 1), opacity .6s; }
.rg-ring path { fill: rgba(254, 211, 143, .06); stroke: var(--gold); stroke-width: 1.1; stroke-linejoin: round; stroke-dasharray: 125; stroke-dashoffset: 125; animation: rg-draw 1.3s calc(.35s + var(--i) * .12s) cubic-bezier(.6, 0, .2, 1) forwards; transition: fill .6s; }
.rg-ring:nth-child(odd) path { stroke: var(--gold-deep); }
.rg-bloom.full .rg-ring path { fill: rgba(254, 211, 143, .14); }
.rg-bloom.full .rg-bloom-svg { filter: drop-shadow(0 0 14px rgba(254, 211, 143, .45)); }
.rg-core { fill: var(--ink); stroke: var(--gold); stroke-width: 1.2; } .rg-bloom-svg .rg-core { r: 17px; }
.rg-bloom img { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; box-shadow: 0 0 0 2px var(--ink), 0 0 30px rgba(254, 211, 143, .35); animation: rg-pop .7s .3s cubic-bezier(.2, 1.6, .4, 1) both; }
.rg-bloom.full img { animation: rg-pop .7s .3s cubic-bezier(.2, 1.6, .4, 1) both, rg-glow 2.4s 1s ease-in-out infinite; }

.rg-h { margin: 0; font: 700 clamp(26px, 3vw, 34px)/1.05 var(--cond); letter-spacing: .06em; text-transform: uppercase; }
.rg-sub { margin: 6px 0 0; color: var(--muted); }
.rg-sub b { color: var(--text); }

/* ---------- fields ---------- */
.rg-form { display: grid; gap: 12px; margin: 20px 0 14px; text-align: left; }
.rg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rg-field { position: relative; display: block; min-width: 0; }
.rg-field :is(input, select) { width: 100%; height: 56px; padding: 22px 14px 6px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 12px; outline: none; color: var(--text); background: rgba(0, 0, 0, .38); transition: border-color .25s, box-shadow .25s, background .25s; -webkit-appearance: none; appearance: none; }
.rg-field.pw input { padding-right: 64px; }
.rg-field select { cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 26px, calc(100% - 15px) 26px; background-size: 5px 5px; background-repeat: no-repeat; }
.rg-field select option { background: #141210; }
.rg-field span { position: absolute; left: 15px; top: 18px; color: var(--muted); font-size: 15px; pointer-events: none; transition: top .22s, font-size .22s, letter-spacing .22s, color .22s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 30px); }
.rg-field span i { font-style: normal; opacity: .65; text-transform: none; letter-spacing: 0; font-weight: 500; }
.rg-field :is(input:focus, input:not(:placeholder-shown), input:autofill, select) + span { top: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.rg-field :is(input, select):hover { border-color: rgba(254, 211, 143, .25); }
.rg-field :is(input, select):focus { border-color: rgba(254, 211, 143, .6); background: rgba(0, 0, 0, .5); box-shadow: 0 0 0 4px rgba(254, 211, 143, .1), 0 10px 30px rgba(0, 0, 0, .3); }
.rg-field::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; border-radius: 2px; background: var(--foil); transform: scaleX(0); transition: transform .45s cubic-bezier(.2, .9, .2, 1); }
.rg-field:focus-within::after { transform: scaleX(1); }
.rg-field.done :is(input, select) { border-color: rgba(254, 211, 143, .3); }
.rg-field input:autofill { -webkit-text-fill-color: var(--text); box-shadow: inset 0 0 0 100px #16130f; caret-color: var(--text); }
.rg-field input[aria-invalid="true"] { border-color: rgba(255, 110, 110, .6); }
.rg-eye { position: absolute; right: 8px; top: 50%; translate: 0 -50%; height: 32px; padding: 0 10px; border: 0; border-radius: 8px; cursor: pointer; color: var(--muted); background: rgba(255, 255, 255, .04); font: 700 11px/1 var(--cond); letter-spacing: .14em; text-transform: uppercase; }
.rg-eye::before { content: "Show"; }
.rg-eye.on::before { content: "Hide"; }
.rg-eye:hover { color: var(--gold); }
.rg-ok { position: absolute; right: 14px; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #1a1208; background: var(--foil); font: 700 13px/1 var(--ui); font-style: normal; opacity: 0; scale: .3; transition: opacity .3s, scale .45s cubic-bezier(.2, 1.8, .4, 1); }
.rg-field.match .rg-ok { opacity: 1; scale: 1; }

/* password strength as four thorns */
.rg-thorns { display: grid; grid-template-columns: repeat(4, 1fr) auto; align-items: center; gap: 6px; margin-top: -2px; }
.rg-thorns i { height: 6px; background: rgba(255, 255, 255, .08); clip-path: polygon(0 40%, 86% 40%, 100% 0, 92% 60%, 0 60%); transition: background .35s, filter .35s; }
.rg-thorns small { min-width: 9ch; padding-left: 6px; color: var(--muted); font-size: 12px; text-align: right; }
.rg-thorns[data-level="1"] i:nth-child(-n+1) { background: #e0566a; }
.rg-thorns[data-level="2"] i:nth-child(-n+2) { background: #e59c5b; }
.rg-thorns[data-level="3"] i:nth-child(-n+3) { background: var(--gold); }
.rg-thorns[data-level="4"] i:nth-child(-n+4) { background: var(--gold-hi); filter: drop-shadow(0 0 5px rgba(254, 211, 143, .8)); }

.rg-err { margin: 0; padding: 10px 12px; border-radius: 10px; color: #ffb3b3; background: rgba(179, 38, 58, .14); box-shadow: inset 0 0 0 1px rgba(179, 38, 58, .45); font-size: 13.5px; font-weight: 600; }

/* ---------- the big button ---------- */
.rg-go { position: relative; display: grid; place-items: center; width: 100%; height: 56px; margin-top: 4px; border: 0; border-radius: 12px; cursor: pointer; overflow: hidden; color: #1a1208; background: var(--foil); background-size: 200% 100%; font: 700 16px/1 var(--cond); letter-spacing: .18em; text-transform: uppercase; box-shadow: 0 12px 34px rgba(254, 211, 143, .22), inset 0 1px 0 rgba(255, 255, 255, .55); transition: transform .2s, box-shadow .25s, background-position .7s; }
.rg-go::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%); transform: translateX(-120%); animation: rg-shine 4.5s 1.4s ease-in-out infinite; }
.rg-go:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 18px 44px rgba(254, 211, 143, .32), inset 0 1px 0 rgba(255, 255, 255, .6); }
.rg-go:active { transform: translateY(1px) scale(.99); }
.rg-go span { position: relative; }
.rg-go.busy { pointer-events: none; }
.rg-go.busy span { animation: rg-breathe .8s ease-in-out infinite; }

.rg-note { margin: 0 0 8px; color: var(--muted); font-size: 12.5px; }
.rg-swap { margin: 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .06); color: var(--muted); font-size: 14px; }
.rg-swap a { font-weight: 700; }

/* sealing: on submit the bloom bursts open and a ring of light washes out */
.rg-face.sealing .rg-bloom-svg { animation: rg-spin 1.2s cubic-bezier(.3, 0, .2, 1) infinite; filter: drop-shadow(0 0 22px rgba(254, 211, 143, .8)); }
.rg-face.sealing .rg-ring { --o: 1; }
.rg-wave { position: absolute; left: 50%; top: 0; width: 164px; height: 164px; margin-left: -82px; margin-top: -82px; border-radius: 50%; box-shadow: 0 0 0 2px var(--gold), 0 0 40px var(--gold); pointer-events: none; animation: rg-wave 1s cubic-bezier(.2, .8, .2, 1) forwards; }
.rg-petal { position: fixed; z-index: 90; width: 12px; height: 16px; border-radius: 85% 0 85% 0; pointer-events: none; background: linear-gradient(135deg, var(--c1, #e0566a), var(--c2, #7d1426)); animation: rg-fly var(--t, 1s) cubic-bezier(.15, .7, .3, 1) forwards; }

/* ---------- motion ---------- */
@keyframes rg-draw { to { stroke-dashoffset: 0; } }
@keyframes rg-spin { to { transform: rotate(360deg); } }
@keyframes rg-fade { from { opacity: 0; } }
@keyframes rg-orbit { to { --rg-a: 360deg; } }
@keyframes rg-rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes rg-slide { from { opacity: 0; transform: translateX(-22px); } }
@keyframes rg-pop { from { opacity: 0; scale: .3; } }
@keyframes rg-glow { 50% { box-shadow: 0 0 0 2px var(--ink), 0 0 46px rgba(254, 211, 143, .7); } }
@keyframes rg-sheen { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
@keyframes rg-shine { 0% { transform: translateX(-120%); } 30%, 100% { transform: translateX(120%); } }
@keyframes rg-breathe { 50% { opacity: .55; } }
@keyframes rg-shake { 10%, 90% { translate: -1px 0; } 20%, 80% { translate: 3px 0; } 30%, 50%, 70% { translate: -6px 0; } 40%, 60% { translate: 6px 0; } }
@keyframes rg-wave { from { opacity: 1; scale: .6; } to { opacity: 0; scale: 4.5; } }
@keyframes rg-fly { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)); } }

/* ---------- phones and tablets ---------- */
@media (max-width: 920px) {
  .rg { grid-template-columns: minmax(0, 1fr); gap: 8px; min-height: 0; padding: 26px 16px 110px; }
  .rg-side, .rg-main, .rg-halo { grid-column: 1; }
  .rg-side { grid-row: 1; text-align: center; }
  .rg-main { grid-row: 2; max-width: 540px; margin: 0 auto; }
  .rg-halo { grid-row: 2; align-self: start; margin-top: -60px; width: min(640px, 150vw); }
  .rg-kicker { font-size: 10.5px; letter-spacing: .24em; }
  .rg-kicker::before { display: none; }
  .rg-title { margin: 10px 0 6px; font-size: clamp(40px, 12vw, 58px); }
  .rg-title span, .rg-title b { display: inline; }
  .rg-title b { margin-left: .2em; }
  .rg-lede, .rg-perks { display: none; }
  .rg-stats { justify-content: center; gap: 8px; margin-bottom: 4px; }
  .rg-stats > div { min-width: 0; padding: 8px 12px; display: flex; align-items: baseline; gap: 6px; }
  .rg-stats > div b { font-size: 22px; }
  .rg-next { flex: 1 1 100%; min-width: 0; padding: 10px 14px; text-align: center; }
  .rg-next b { font-size: 16px; }
}
@media (max-width: 520px) {
  .rg-face { padding: 0 18px 22px; margin-top: 74px; border-radius: 18px; }
  .rg-bloom { width: 144px; height: 144px; margin-top: -72px; }
  .rg-row { grid-template-columns: 1fr; }
  .rg-field :is(input, select) { font-size: 16px; } /* no zoom-on-focus on iPhone */
}
@media (hover: none) { .rg-face::after { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .rg-ring path { stroke-dashoffset: 0; }
  .rg-h1 { stroke-dashoffset: 0; }
  .rg-petal, .rg-wave { display: none; }
}
.motion-subtle .rg-ring path, .motion-subtle .rg-h1 { stroke-dashoffset: 0; }

/* ---------- wrong password: petals fall off, the logo winces, the rose slowly grows back ---------- */
.rg-bloom.instant .rg-ring { transition: none; }
.rg-bloom.instant .rg-ring path { animation: none; stroke-dashoffset: 0; }
.rg-bloom.bare .rg-ring { opacity: 0; transform: rotate(-120deg) scale(.05); transition: opacity .15s; }
.rg-bloom.regrow .rg-ring { transition: transform 1.9s cubic-bezier(.2, 1.25, .35, 1) calc(var(--i) * .5s), opacity 1.4s ease calc(var(--i) * .5s); }
.rg-bloom.oops img { animation: rg-pop .7s .3s cubic-bezier(.2, 1.6, .4, 1) both, rg-wince 1.6s cubic-bezier(.3, 0, .2, 1) both; }
.rg-drop { position: absolute; z-index: 95; pointer-events: none; overflow: visible; fill: #1d1317; stroke: var(--gold); stroke-width: 1.4; stroke-linejoin: round; transform: rotate(var(--a)); animation: rg-fall var(--t, 3s) cubic-bezier(.45, 0, .8, .6) both; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .6)); }
.rg-drop:nth-child(3n) { fill: #3a121b; }
.rg-ouch { position: absolute; left: 50%; top: 4px; z-index: 3; padding: 4px 10px; border-radius: 999px; color: #1a1208; background: var(--foil); font: 700 13px/1 var(--cond); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 6px 18px rgba(0, 0, 0, .5); pointer-events: none; animation: rg-ouch 1.8s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes rg-fall {
  0% { opacity: 1; transform: translate(0, 0) rotate(var(--a)); }
  8% { transform: translate(calc(var(--sx) * -.12), -14px) rotate(calc(var(--a) + var(--s) * .05)); }
  35% { transform: translate(calc(var(--sx) * .55), calc(var(--fy) * .25)) rotate(calc(var(--a) + var(--s) * .35)); }
  60% { transform: translate(calc(var(--sx) * .2), calc(var(--fy) * .55)) rotate(calc(var(--a) + var(--s) * .6)); }
  85% { opacity: 1; transform: translate(calc(var(--sx) * .9), calc(var(--fy) * .85)) rotate(calc(var(--a) + var(--s) * .85)); }
  100% { opacity: 0; transform: translate(var(--sx), var(--fy)) rotate(calc(var(--a) + var(--s))); }
}
@keyframes rg-wince {
  0% { transform: none; }
  8% { transform: scale(.82) rotate(-14deg); }
  16% { transform: scale(.86) rotate(12deg); }
  24% { transform: scale(.84) rotate(-8deg); }
  40% { transform: scale(.9) translateY(4px) rotate(-6deg); filter: grayscale(.6) brightness(.8); }
  75% { transform: scale(.94) translateY(3px) rotate(-4deg); filter: grayscale(.4) brightness(.85); }
  100% { transform: none; filter: none; }
}
@keyframes rg-ouch {
  0% { opacity: 0; transform: translate(-50%, 10px) scale(.4) rotate(-8deg); }
  18% { opacity: 1; transform: translate(-50%, -26px) scale(1.1) rotate(4deg); }
  30% { transform: translate(-50%, -22px) scale(1) rotate(-3deg); }
  80% { opacity: 1; transform: translate(-50%, -30px) scale(1) rotate(0); }
  100% { opacity: 0; transform: translate(-50%, -44px) scale(.9); }
}
@media (prefers-reduced-motion: reduce) { .rg-drop, .rg-ouch { display: none; } }
