/* Chester's Escape - the show: board effects, score reveal, reactions, badges, dusk, launch. */

/* ---- board layers that never take taps ---- */
.board-svg .atmo, .board-svg .fxl, .board-svg .hl { pointer-events: none; }

/* ---- effects drawn on the board ---- */
.board-svg .fx-pop { font: 800 30px var(--ui); fill: #fff; stroke: #000; stroke-width: 6px; paint-order: stroke; animation: fxRise 1.45s cubic-bezier(.2,.9,.3,1) forwards; }
.board-svg .fx-pop.good { fill: #6dff7a; }
.board-svg .fx-pop.bad { fill: #ff7a8a; }
.board-svg .fx-pop.gold { fill: #ffd34d; font-size: 28px; }
.board-svg .fx-pop.egg { fill: #fff; font: 700 22px var(--ui); stroke-width: 7px; }
@keyframes fxRise { 0% { transform: translateY(14px) scale(.4); opacity: 0; } 18% { transform: translateY(-8px) scale(1.12); opacity: 1; } 30% { transform: translateY(-12px) scale(1); } 80% { opacity: 1; } 100% { transform: translateY(-46px); opacity: 0; } }
.board-svg .fx-ghost { opacity: .55; animation: fxGhost .7s ease-out forwards; }
@keyframes fxGhost { to { opacity: 0; transform: scale(.4); } }
.board-svg .fx-ghost { transform-box: fill-box; transform-origin: center; }
.board-svg .fx-flash { fill: none; stroke-width: 6; animation: fxRing .8s ease-out forwards; }
.board-svg .fx-flash.f2 { animation-delay: .14s; opacity: 0; }
@keyframes fxRing { from { transform: scale(.5); opacity: 1; } to { transform: scale(2.3); opacity: 0; } }
.board-svg .fx-drop { animation: fxDrop .9s cubic-bezier(.2,.7,.4,1) forwards; }
@keyframes fxDrop { 0% { transform: translate(0,0); opacity: 1; } 60% { opacity: 1; } 100% { transform: translate(var(--dx), calc(var(--dy) + 40px)); opacity: 0; } }
.board-svg .fx-swirl { fill: none; stroke-width: 5; stroke-dasharray: 14 10; animation: fxSwirl 1s ease-in forwards; }
.board-svg .fx-swirl.s2 { animation-direction: reverse; }
@keyframes fxSwirl { from { transform: rotate(0) scale(1.4); opacity: .2; } 50% { opacity: 1; } to { transform: rotate(540deg) scale(.2); opacity: 0; } }
.board-svg .fx-puff { fill: #d9d9d9; opacity: .8; animation: fxPuff .9s ease-out forwards; }
@keyframes fxPuff { to { transform: translate(var(--dx), var(--dy)) scale(1.8); opacity: 0; } }
.board-svg .fx-z { font: 800 24px var(--ui); fill: #cfe3ff; stroke: #102040; stroke-width: 5px; paint-order: stroke; opacity: 0; animation: fxZ 1.7s ease-out forwards; }
.board-svg .fx-z.z2 { animation-delay: .25s; }
.board-svg .fx-z.z3 { animation-delay: .5s; font-size: 30px; }
@keyframes fxZ { 0% { opacity: 0; transform: translate(0, 10px); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(14px, -26px); } }
.board-svg .fx-shield { fill: rgba(90,176,255,.18); stroke: #8fd0ff; stroke-width: 5; animation: fxShield 1s ease-out forwards; }
@keyframes fxShield { 0% { transform: scale(.4); opacity: 0; } 30% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.board-svg .fx-ray { animation: fxRay .8s ease-out forwards; transform: rotate(var(--r)); }
@keyframes fxRay { from { transform: translate(0,0) rotate(var(--r)) scale(1.4); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(.4); opacity: 0; } }
.board-svg .fx-spark { fill: #ffe9a0; animation: fxSpark .9s ease-out forwards; }
@keyframes fxSpark { to { transform: translateY(24px); opacity: 0; } }
.board-svg .fx-spark { transform-box: fill-box; }
.board-svg .fx-gate { fill: none; stroke: #ffd34d; stroke-width: 7; animation: fxRing 1.1s ease-out 2 forwards; }
.board-svg .fx-gate.g2 { animation-delay: .35s; opacity: 0; }

/* the song card that flips up from a map space */
.board-svg .fx-cover-in { transform-box: fill-box; transform-origin: center; animation: fxCover 1.9s cubic-bezier(.2,1.1,.3,1) forwards; filter: drop-shadow(0 12px 18px rgba(0,0,0,.7)); }
@keyframes fxCover {
  0% { transform: translate(var(--ox), var(--oy)) scale(.1) rotateY(90deg); opacity: 0; }
  22% { transform: translate(0,0) scale(1.06); opacity: 1; }
  30% { transform: scale(1); }
  82% { transform: scale(1); opacity: 1; }
  100% { transform: translate(var(--ox), var(--oy)) scale(.2); opacity: 0; }
}
.board-svg .fx-cover-k { font: 800 14px var(--ui); fill: #ffd34d; letter-spacing: .5px; text-transform: uppercase; }
.board-svg .fx-cover-n { font: 700 17px var(--ui); fill: #fff; }

/* token reactions to what happened */
.board-svg .tok.shake .tok-in { animation: tokShake .5s ease-in-out; }
@keyframes tokShake { 0%,100% { transform: none; } 15% { transform: translateX(-9px) rotate(-8deg); } 35% { transform: translateX(8px) rotate(7deg); } 55% { transform: translateX(-6px) rotate(-4deg); } 75% { transform: translateX(4px) rotate(2deg); } }
.board-svg .tok.vanish .tok-in { animation: tokVanish .45s ease-in forwards; }
@keyframes tokVanish { to { transform: rotate(540deg) scale(.15); opacity: .2; } }
.board-svg .tok.boost .tok-in { filter: drop-shadow(0 0 10px #ffd34d); }

/* tokens on the same space scuffle now and then */
.board-svg .tok.scuf .tok-in { animation: tokScuf .9s cubic-bezier(.3,.6,.4,1); }
.board-svg .tok.scuf-hit .tok-in { animation: tokHit 1.25s cubic-bezier(.3,.6,.4,1); }
@keyframes tokScuf {
  0%, 85%, 100% { transform: none; }
  28% { transform: translate(calc(var(--ux) * -10px), calc(var(--uy) * -10px)) rotate(calc(var(--s) * -14deg)); }
  38% { transform: translate(calc(var(--ux) * 8px), calc(var(--uy) * 8px)) rotate(calc(var(--s) * 9deg)) scale(.88, 1.1); }
  52% { transform: translate(calc(var(--ux) * -5px), calc(var(--uy) * -5px)) rotate(calc(var(--s) * -6deg)); }
  70% { transform: translate(calc(var(--ux) * 2px), calc(var(--uy) * 2px)) rotate(calc(var(--s) * 2deg)); }
}
@keyframes tokHit {
  0%, 100% { transform: none; }
  20% { transform: translate(calc(var(--ux) * -10px), calc(var(--uy) * -10px)) rotate(calc(var(--s) * -14deg)); }
  27% { transform: translate(calc(var(--ux) * 7px), calc(var(--uy) * 7px)) scale(.88, 1.1); }
  40% { transform: translate(calc(var(--ux) * -26px), calc(var(--uy) * -26px)) rotate(calc(var(--s) * -34deg)); }
  52% { transform: translate(calc(var(--ux) * -20px), calc(var(--uy) * -20px)) rotate(calc(var(--s) * 16deg)); }
  64% { transform: translate(calc(var(--ux) * -22px), calc(var(--uy) * -22px)) rotate(calc(var(--s) * -9deg)); }
  80% { transform: translate(calc(var(--ux) * -7px), calc(var(--uy) * -7px)) rotate(calc(var(--s) * 4deg)); }
}
.board-svg .tok.crown-pop .crown { animation: crownPop 1.1s cubic-bezier(.3,.6,.4,1); }
@keyframes crownPop { 0%, 28% { translate: 0 0; } 48% { translate: 10px -42px; } 62% { translate: 14px -34px; } 78% { translate: 2px 0; } 86% { translate: 0 -6px; } 100% { translate: 0 0; } }
.board-svg .fx-dust { fill: #d8cfc0; opacity: .85; animation: fxDust .6s ease-out forwards; }
@keyframes fxDust { to { transform: translate(var(--dx), var(--dy)) scale(1.7); opacity: 0; } }
.board-svg .fx-clash { stroke: #fff; stroke-width: 3.5; stroke-linecap: round; animation: fxClash .32s ease-out forwards; }
@keyframes fxClash { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.board-svg .fx-star, .board-svg .fx-orbit { fill: #ffd34d; stroke: #3a2a00; stroke-width: 1.4; stroke-linejoin: round; }
.board-svg .fx-star { animation: fxStar .8s cubic-bezier(.2,.8,.4,1) forwards; }
@keyframes fxStar { 0% { transform: translate(0, 0) scale(.3) rotate(0); opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(1.1) rotate(160deg); opacity: 0; } }
.board-svg .fx-orbit { animation: fxOrbit .9s linear infinite; }
@keyframes fxOrbit { 0%, 100% { transform: translate(15px, 0) scale(.9); } 25% { transform: translate(0, 5px) scale(1.15); } 50% { transform: translate(-15px, 0) scale(.9); } 75% { transform: translate(0, -5px) scale(.7); } }
.board-svg .fx-orbit-w { animation: fxOrbitW 1.4s ease-out forwards; }
@keyframes fxOrbitW { 0% { opacity: 0; } 12%, 70% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .board-svg .tok.scuf .tok-in, .board-svg .tok.scuf-hit .tok-in, .board-svg .tok.crown-pop .crown { animation: none; } }

/* token flair: leader crown */
.board-svg .crown text { filter: drop-shadow(0 2px 2px rgba(0,0,0,.6)); }
.board-svg .crown { animation: crownBob 3s ease-in-out infinite; }
@keyframes crownBob { 0%,100% { translate: 0 0; } 50% { translate: 0 -2px; } }
@keyframes flicker { 0%,100% { opacity: .35; } 20% { opacity: .8; } 45% { opacity: .5; } 70% { opacity: .95; } }

/* spaces lighting up before the start */
.board-zone.prelaunch .board-svg .spaces { filter: brightness(.45) saturate(.6); transition: filter .4s; }
.board-svg .sp.lit { filter: brightness(2.2) drop-shadow(0 0 10px #ffd34d); transition: filter .35s; }

/* easter eggs */
.board-svg .egg { cursor: default; }
.board-svg .egg.egg-go { animation: eggHop .8s cubic-bezier(.3,1.6,.4,1); transform-box: fill-box; transform-origin: 50% 100%; }
.board-svg .board-hero.egg-go { animation: eggFlip 1s cubic-bezier(.3,1.4,.4,1); }
.board-svg .egg.egg-spin { animation: eggSpin 1.3s cubic-bezier(.3,.9,.4,1); transform-box: fill-box; transform-origin: 50% 60%; }
.board-svg .egg.egg-hide { animation: eggHide 6.2s ease-in-out; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes eggSpin { 0% { transform: none; } 45% { transform: rotate(540deg) scale(.9); } 70% { transform: rotate(700deg) scale(1.05); } 85% { transform: rotate(705deg) translateX(-3%); } 100% { transform: rotate(720deg); } }
@keyframes eggHide { 0% { transform: none; opacity: 1; } 8% { transform: translateY(-10%) scale(1.05); opacity: 1; } 16% { transform: translateY(30%) scale(.2); opacity: 0; } 88% { transform: translateY(30%) scale(.2); opacity: 0; } 96% { transform: translateY(-8%) scale(1.08); opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes eggHop { 0%,100% { transform: none; } 30% { transform: translateY(-14%) scale(1.06, .94); } 55% { transform: rotate(-8deg); } 75% { transform: rotate(6deg); } }
@keyframes eggFlip { 0% { transform: none; } 40% { transform: translateY(-30%) rotate(-180deg); } 80% { transform: translateY(0) rotate(-360deg); } 100% { transform: rotate(-360deg); } }

/* ---- the roll camera never fights the manual zoom ---- */
.board-wrap.zoomed .board-svg { transition: none; }

/* ---- cards: fly out of the token, then shimmer or crack ---- */
.card3d { transform: translate(var(--fx, 0px), var(--fy, 30px)) rotateY(180deg) scale(.14); transition: transform .9s cubic-bezier(.3,1.25,.5,1); }
.card3d.show { transform: translate(0, 0) rotateY(0) scale(1); }
.cfront .shine { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.75) 46%, rgba(255,255,255,.2) 52%, transparent 62%); transform: translateX(-120%); }
.card-overlay.ready[data-cls="treasure"] .cfront .shine { animation: shine 1.4s .55s ease-in-out 2; }
@keyframes shine { to { transform: translateX(120%); } }
.cfront .crack { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cfront .crack path { fill: none; stroke: rgba(29,27,22,.8); stroke-width: 2px; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 300; stroke-dashoffset: 300; }
.cfront .crack path.hi { stroke: rgba(255,255,255,.9); stroke-width: 1.5px; transform: translate(.7px, .5px); }
.card-overlay.ready[data-cls="trick"] .cfront .crack path { animation: crack .6s .75s ease-out forwards; }
.card-overlay.ready[data-cls="trick"] .card3d.show { animation: cardJolt .45s .75s ease-in-out; }
@keyframes crack { to { stroke-dashoffset: 0; } }
@keyframes cardJolt { 0%,100% { translate: 0 0; } 20% { translate: -10px 2px; } 40% { translate: 9px -2px; } 60% { translate: -6px 1px; } 80% { translate: 4px 0; } }
.card-overlay.ready[data-cls="task"] .cfront, .card-overlay.ready[data-cls="fate"] .cfront { animation: cardGlow 1.6s .7s ease-in-out 2; }
@keyframes cardGlow { 50% { box-shadow: 0 0 0 4px var(--cc), 0 0 60px var(--cc); } }

/* ---- escape: medal stamp ---- */
.win-medal { width: 128px; height: 128px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; font: 800 64px/1 var(--ui);
  background: radial-gradient(circle at 35% 30%, #fff8d0, #ffd34d 40%, #b8860b); color: #3a2600; box-shadow: 0 0 0 6px rgba(0,0,0,.5), 0 0 60px rgba(255,211,77,.6);
  animation: stamp .55s .5s cubic-bezier(.2,1.6,.4,1) both; }
.win-medal.p2 { background: radial-gradient(circle at 35% 30%, #fff, #cfd6dc 40%, #7f8a93); box-shadow: 0 0 0 6px rgba(0,0,0,.5), 0 0 50px rgba(220,230,240,.5); }
.win-medal.p3 { background: radial-gradient(circle at 35% 30%, #ffe2c4, #d9894a 40%, #8a4a1a); box-shadow: 0 0 0 6px rgba(0,0,0,.5), 0 0 50px rgba(217,137,74,.5); }
.win-medal.pn { background: radial-gradient(circle at 35% 30%, #4a5a44, #2a3326); color: #fff; font-size: 40px; }
.win-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---- score reveal ---- */
.score-overlay { background: rgba(0,0,0,.86); }
.score-card { position: relative; width: min(440px, 92vw); border-radius: 22px; overflow: hidden; border: 2px solid var(--line-2); background: #0b0b0b; box-shadow: 0 30px 80px rgba(0,0,0,.8); animation: scoreIn .55s cubic-bezier(.2,1.3,.4,1); }
@keyframes scoreIn { from { transform: translateY(40px) scale(.9); opacity: 0; } }
.score-card .sc-bg { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(26px) brightness(.45) saturate(1.3); }
.score-card .sc-in { position: relative; padding: 24px 22px 22px; text-align: center; }
.sc-k { font: 800 14px var(--ui); letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); }
.sc-cover { width: 160px; height: 160px; border-radius: 14px; object-fit: cover; margin: 14px auto 12px; display: block; border: 3px solid #fff; box-shadow: 0 16px 40px rgba(0,0,0,.7); background: #222; }
.sc-song { font: 700 22px/1.2 var(--ui); color: #fff; overflow-wrap: anywhere; }
.sc-meta { font-size: 15px; color: #d4d4d4; margin-top: 4px; }
.sc-diff { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 999px; font: 800 13px var(--ui); background: rgba(255,255,255,.14); color: #fff; }
.sc-row { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 16px 0 6px; min-height: 104px; }
.sc-acc { font: 800 56px/1 var(--ui); color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -1px; }
.sc-acc small { font-size: 28px; margin-left: 2px; }
.sc-grade { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; font: 900 46px/1 var(--ui); background: rgba(0,0,0,.75); border: 6px solid currentColor; transform: rotate(-10deg); }
.sc-grade[hidden] { display: none; }
.sc-grade.go { animation: gradeSlam .5s cubic-bezier(.2,1.7,.4,1); }
@keyframes gradeSlam { 0% { transform: rotate(-30deg) scale(3); opacity: 0; } 60% { transform: rotate(-6deg) scale(.92); opacity: 1; } 100% { transform: rotate(-10deg) scale(1); } }
.sc-note { font-size: 15px; color: var(--gold); font-weight: 700; min-height: 20px; }
.sc-actions { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.sc-host { font: 800 64px/1 var(--ui); }
.g-SS { color: #ffd34d; } .g-S { color: #f0f0f0; } .g-A { color: #5fd068; } .g-B { color: #5ab0ff; } .g-C { color: #c58bff; } .g-D { color: #ff8a5a; } .g-E { color: #ff5a6e; }
.grade-chip { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border-radius: 6px; font: 900 13px/1 var(--ui); border: 2px solid currentColor; vertical-align: 1px; margin-right: 4px; }

/* ---- reactions in the game thread ---- */
.feed li { position: relative; }
.rx { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; align-items: center; }
.rx:empty { display: none; }
.fd-acts { position: absolute; right: 2px; top: 5px; display: flex; gap: 4px; padding-left: 8px; background: linear-gradient(90deg, transparent, var(--raise) 10px); }
.fd-acts:empty { display: none; }
@media (hover: none), (pointer: coarse) { .feed li.has-acts { padding-right: 40px; } .feed li.has-acts.two { padding-right: 74px; } }
.rx-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 9px 0 6px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--raise-2); color: var(--text); font: 700 14px var(--ui); cursor: pointer; }
.rx-chip b { font-size: 13px; }
.rx-chip[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 22%, var(--raise-2)); }
.rx-chip:disabled, .rx-chip[aria-disabled="true"] { cursor: default; opacity: .9; }
.rx-chip { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.rx-chip.bump { animation: badgePop .5s ease-out; }
.rx-add, .fd-share { display: inline-grid; place-items: center; width: 30px; height: 28px; border-radius: 999px; border: 1px dashed var(--line-2); background: none; color: var(--muted); cursor: pointer; padding: 0; }
.rx-add svg, .fd-share svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rx-add:hover, .fd-share:hover, .rx-add:focus-visible, .fd-share:focus-visible { color: var(--text); border-color: var(--accent); border-style: solid; }
@media (hover: hover) and (pointer: fine) { .feed li .fd-acts { opacity: 0; transition: opacity .15s; } .feed li:hover .fd-acts, .feed li:focus-within .fd-acts { opacity: 1; } }
.rx-pop { position: fixed; z-index: 40; display: grid; grid-template-columns: repeat(7, 60px); gap: 2px; padding: 6px; border-radius: 18px; background: var(--raise); border: 1px solid var(--line-2); box-shadow: 0 14px 40px rgba(0,0,0,.7); animation: rxIn .18s ease-out; }
.rx-pop[hidden] { display: none; }
.rx-pop button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0 4px; border-radius: 12px; border: 0; background: none; cursor: pointer; color: var(--muted); font: 700 10.5px/1.1 var(--ui); white-space: nowrap; transition: transform .12s, background .12s; }
.rx-pop button { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.rx-pop button .rx-ico { width: 34px; height: 34px; transition: transform .12s; }
.rx-pop button:hover .rx-ico, .rx-pop button:focus-visible .rx-ico { transform: scale(1.2) rotate(-4deg); }
.rx-pop button:nth-child(-n+3) { color: var(--text); }
@media (max-width: 560px) { .rx-pop { grid-template-columns: repeat(5, 60px); } }
.rx-pop button:hover, .rx-pop button:focus-visible { background: var(--raise-2); color: var(--text); }
.rx-pop button[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 30%, transparent); }
@keyframes rxIn { from { transform: translateY(6px) scale(.9); opacity: 0; } }
.feed .score-line .song { font-weight: 700; }

/* ---- rivals and badges ---- */
.me-stats .stat.rival { border-color: color-mix(in srgb, var(--accent) 60%, var(--line-2)); }
.me-stats .stat.rival b { color: var(--text); }
.me-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.me-badges:empty { display: none; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 7px; border-radius: 999px; background: color-mix(in srgb, var(--gold) 14%, var(--raise-2)); border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line-2)); font: 700 13px var(--ui); color: var(--text); }
.badge i { font-style: normal; font-size: 16px; }
.st-badges { margin-left: 4px; font-size: 14px; letter-spacing: 1px; white-space: nowrap; }
.pod .pod-badges { font-size: 18px; letter-spacing: 1px; min-height: 22px; }
.toast.badge-toast { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 18%, var(--raise-2)); }

/* ---- share picture ---- */
.share-img { width: 100%; border-radius: 12px; border: 1px solid var(--line-2); display: block; }

/* ---- dusk: the board darkens in the last hour of a game day ---- */
.board-zone { --dusk: 0; }
.dusk { position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: 14px; overflow: hidden; }
.dusk::before { content: ""; position: absolute; inset: 0; opacity: var(--dusk); transition: opacity 2s;
  background: radial-gradient(ellipse at 50% 40%, rgba(20,14,60,.15), rgba(10,6,40,.75) 80%), linear-gradient(180deg, rgba(255,120,40,.18), rgba(30,10,80,.35)); }
.dusk[hidden] { display: none; }
.dusk-pill { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); padding: 6px 14px; border-radius: 999px; background: rgba(0,0,0,.78); border: 1px solid rgba(255,211,77,.6); color: #fff; font: 700 15px var(--ui); white-space: nowrap; opacity: 1; }
.board-zone.dusk-late .dusk-pill { animation: duskPulse 1.6s ease-in-out infinite; border-color: #ff8a5a; }
@keyframes duskPulse { 50% { box-shadow: 0 0 0 6px rgba(255,138,90,.25); } }

/* ---- countdown launch ---- */
.launch { position: absolute; inset: 0; z-index: 7; pointer-events: none; display: grid; place-items: center; text-align: center; }
.launch[hidden] { display: none; }
.launch-n { font: 800 clamp(120px, 26vw, 260px)/1 var(--display); color: var(--gold); text-shadow: 0 8px 0 #2a1600, 0 0 60px rgba(255,211,77,.7); }
.launch-n.tick { animation: launchTick .9s cubic-bezier(.2,1.5,.4,1); }
.launch-n.go { color: var(--good); animation: launchGo 1.2s cubic-bezier(.2,1.6,.4,1) forwards; }
@keyframes launchTick { from { transform: scale(2.2); opacity: 0; } 30% { opacity: 1; } to { transform: scale(1); } }
@keyframes launchGo { 0% { transform: scale(.3) rotate(-10deg); opacity: 0; } 30% { transform: scale(1.15) rotate(3deg); opacity: 1; } 75% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.launch { background: radial-gradient(circle at 50% 50%, rgba(0,0,0,.45), transparent 60%); }
.launch-sub { display: inline-block; font: 700 20px var(--ui); color: #fff; margin-top: 4px; padding: 6px 16px; border-radius: 999px; background: rgba(0,0,0,.78); }

@media (prefers-reduced-motion: reduce) {
  .board-svg .fx-pop, .board-svg .fx-cover-in, .launch-n, .sc-grade.go, .score-card, .card3d, .win-medal { animation: none !important; transition: none !important; }
  .board-svg .crown { animation: none; }
}

/* ---- who has the game open ---- */
.board-svg .on-dot { fill: #3fd04a; stroke: #0b0b0b; stroke-width: 2.5; }
.ava-wrap { position: relative; display: inline-grid; justify-self: start; }
.ava-wrap.online::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; background: #3fd04a; border: 2.5px solid var(--raise); box-shadow: 0 0 0 0 rgba(63,208,74,.6); animation: onPulse 2.4s ease-out infinite; }
@keyframes onPulse { 0% { box-shadow: 0 0 0 0 rgba(63,208,74,.55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(63,208,74,0); } }
.online-count { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; padding: 3px 10px; border-radius: 999px; font: 700 13px var(--ui); color: var(--text); background: var(--raise-2); border: 1px solid var(--line-2); vertical-align: middle; }
.online-count i { width: 9px; height: 9px; border-radius: 50%; background: #3fd04a; box-shadow: 0 0 6px #3fd04a; }
@media (prefers-reduced-motion: reduce) { .ava-wrap.online::after { animation: none; } }

.rx-chip .rx-ico { width: 22px; height: 22px; flex: none; }

/* ---- badge guide ---- */
button.badge { cursor: pointer; }
button.badge:hover, button.badge:focus-visible { border-color: var(--gold); }
.st-badges[data-badges], .pod-badges[data-badges] { cursor: pointer; border-radius: 6px; }
.st-badges[data-badges]:hover { background: var(--raise-2); }
.bg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bg-row { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--raise-2); opacity: .62; }
.bg-row.got { opacity: 1; border-color: color-mix(in srgb, var(--gold) 55%, var(--line-2)); background: color-mix(in srgb, var(--gold) 10%, var(--raise-2)); }
.bg-ic { font-size: 30px; text-align: center; }
.bg-row b { font-size: 16px; }
.bg-got { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--gold); color: #1a1200; font: 800 11.5px var(--ui); vertical-align: 2px; }
.bg-desc { display: block; font-size: 14.5px; color: var(--muted); margin-top: 2px; }
.bg-who { display: block; font-size: 13px; color: var(--faint); margin-top: 3px; }

/* ---- animated reactions (always moving in the picker, gentler in the thread) ---- */
.rx-ico * { transform-box: view-box; }
img.rx-ico { display: block; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.rx-ss .a-ss { transform-origin: 16px 16px; animation: rxWobble 2.4s ease-in-out infinite; }
.rx-ss .a-ring { animation: rxRing 1.6s ease-in-out infinite; }
.rx-ss .a-twinkle { transform-origin: 27px 5.6px; animation: rxTwinkle 1.6s ease-in-out infinite; }
@keyframes rxWobble { 0%,100% { transform: rotate(-10deg); } 50% { transform: rotate(-2deg) scale(1.04); } }
@keyframes rxRing { 0%,100% { stroke-width: 2.4px; } 50% { stroke-width: 3.6px; stroke: #ffe58a; } }
@keyframes rxTwinkle { 0%,100% { transform: scale(.3) rotate(0); opacity: .2; } 50% { transform: scale(1.1) rotate(45deg); opacity: 1; } }
.rx-fire .a-flame { transform-origin: 16px 30px; animation: rxFlick .7s ease-in-out infinite alternate; }
.rx-fire .a-flame2 { transform-origin: 16px 30px; animation: rxFlick2 .55s ease-in-out infinite alternate; }
.rx-fire .a-core { transform-origin: 16px 30px; animation: rxFlick .45s ease-in-out infinite alternate-reverse; }
.rx-fire .a-ember { animation: rxEmber 1.4s ease-out infinite; }
.rx-fire .a-ember.e2 { animation-delay: .5s; } .rx-fire .a-ember.e3 { animation-delay: .9s; }
@keyframes rxFlick { from { transform: scale(1, 1) skewX(0); } 50% { transform: scale(1.05, .93) skewX(-3deg); } to { transform: scale(.96, 1.07) skewX(3deg); } }
@keyframes rxFlick2 { from { transform: scale(.95, 1.06) skewX(4deg); } to { transform: scale(1.06, .92) skewX(-4deg); } }
@keyframes rxEmber { 0% { transform: translateY(4px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-7px); opacity: 0; } }
.rx-letsgo .a-bar1 { transform-origin: 16px 9px; animation: rxBar1 .9s cubic-bezier(.3,1.5,.5,1) infinite alternate; }
.rx-letsgo .a-bar2 { transform-origin: 16px 23px; animation: rxBar2 .9s cubic-bezier(.3,1.5,.5,1) infinite alternate; }
.rx-letsgo .a-goflame path:first-child { transform-origin: 16px 30px; animation: rxFlick .45s ease-in-out infinite alternate; }
@keyframes rxBar1 { from { transform: translateX(-1.5px) rotate(-3deg); } to { transform: translateX(1.5px) rotate(2deg) scale(1.04); } }
@keyframes rxBar2 { from { transform: translateX(1.5px) rotate(2deg) scale(1.04); } to { transform: translateX(-1.5px) rotate(-3deg); } }
@keyframes rxSpin { to { transform: rotate(360deg); } }
@keyframes rxPump { from { transform: scale(.9); } to { transform: scale(1.1); } }
.rx-sabers .a-armL { transform-origin: 7.6px 19.8px; animation: rxArmL .7s cubic-bezier(.5,0,.3,1) infinite alternate; }
.rx-sabers .a-armR { transform-origin: 24.4px 19.8px; animation: rxArmR .7s cubic-bezier(.5,0,.3,1) infinite alternate; }
.rx-sabers .a-cube { transform-origin: 16px 29px; animation: rxCube .35s ease-in-out infinite alternate; }
.rx-sabers .a-glow { animation: rxHum .18s steps(2) infinite; }
.rx-sabers .a-clash { transform-origin: 16px 6px; animation: rxClash .7s ease-in infinite alternate; }
@keyframes rxArmL { from { transform: rotate(-22deg); } to { transform: rotate(30deg); } }
@keyframes rxArmR { from { transform: rotate(22deg); } to { transform: rotate(-30deg); } }
@keyframes rxCube { from { transform: scale(1.04, .95); } to { transform: translateY(-1px) scale(.98, 1.03); } }
@keyframes rxHum { 50% { opacity: .5; } }
@keyframes rxClash { 0%, 80% { transform: scale(0); opacity: 0; } 100% { transform: scale(1.3); opacity: .9; } }
.rx-salt .a-shaker { transform-origin: 16px 22px; animation: rxShake 1.2s ease-in-out infinite; }
.rx-salt .a-grain { animation: rxGrain 1.2s ease-in infinite; }
.rx-salt .a-grain.g2 { animation-delay: .25s; } .rx-salt .a-grain.g3 { animation-delay: .5s; }
@keyframes rxShake { 0%, 100% { transform: rotate(-8deg); } 25% { transform: rotate(-30deg) translateY(-1px); } 40% { transform: rotate(-18deg); } 55% { transform: rotate(-32deg) translateY(-1px); } 75% { transform: rotate(-8deg); } }
@keyframes rxGrain { 0% { transform: translate(2px, -2px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(-1px, 9px); opacity: 0; } }
.rx-rip .a-ghost { animation: rxGhost 2.4s ease-in-out infinite; }
@keyframes rxGhost { 0% { transform: translate(-3px, 8px) scale(.6); opacity: 0; } 35% { opacity: .95; } 70% { transform: translate(0, -2px) scale(1); opacity: .9; } 100% { transform: translate(2px, -6px) scale(1); opacity: 0; } }
.rx-hero .a-bob { animation: rxBob 1s ease-in-out infinite alternate; }
.rx-hero.taco .a-bob { transform-origin: 0 34px; animation: rxBounce .8s cubic-bezier(.3,1.5,.5,1) infinite alternate; }
.rx-hero .eyes { animation: blink 2.6s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes rxBob { from { transform: translateY(2px) rotate(-3deg); } to { transform: translateY(-4px) rotate(3deg); } }
@keyframes rxBounce { from { transform: scale(1.06, .92); } to { transform: translateY(-6px) scale(.97, 1.04); } }
@media (prefers-reduced-motion: reduce) { .rx-ico * { animation: none !important; } }

/* Discord-style reaction tags: dark rounded tag, count beside the emote, blue when it's yours */
.rx-chip { background: color-mix(in srgb, var(--raise-2) 80%, #4e5058); border-color: transparent; }
.rx-chip b { font: 700 14px var(--ui); color: #b5bac1; min-width: 8px; }
.rx-chip:hover:not(:disabled) { border-color: #4e5058; background: color-mix(in srgb, var(--raise-2) 60%, #4e5058); }
.rx-chip[aria-pressed="true"] { background: rgba(88,101,242,.22); border-color: #5865f2; }
.rx-chip[aria-pressed="true"] b { color: #dee0fc; }
.rx-chip .rx-ico { width: 22px; height: 22px; }

/* the cat slams the table, paws taking turns, and hearts pop out */
.rx-love .a-pawL { animation: rxPawL .5s ease-in infinite; }
.rx-love .a-pawR { animation: rxPawR .5s ease-in infinite; }
.rx-love .a-table { animation: rxTable .25s ease-out infinite; }
.rx-love .a-hitL { animation: rxHit .5s linear infinite; }
.rx-love .a-hitR { animation: rxHit .5s linear infinite .25s; }
.rx-love .a-heart { transform-box: fill-box; transform-origin: center; animation: rxHeart 1s ease-out infinite; }
.rx-love .a-heart.h2 { animation-delay: .25s; } .rx-love .a-heart.h3 { animation-delay: .55s; }
@keyframes rxPawL { 0%, 100% { transform: translateY(-5px); } 45% { transform: translateY(-5px); } 55% { transform: translateY(0); } 70% { transform: translateY(-1px); } }
@keyframes rxPawR { 0%, 5% { transform: translateY(0); } 20%, 95% { transform: translateY(-5px); } 100% { transform: translateY(0); } }
@keyframes rxTable { 0% { transform: translateY(.7px); } 100% { transform: none; } }
@keyframes rxHit { 0%, 45% { opacity: 0; } 55% { opacity: 1; } 80%, 100% { opacity: 0; } }
@keyframes rxHeart { 0% { transform: translateY(6px) scale(.3); opacity: 0; } 25% { opacity: 1; transform: translateY(1px) scale(1.15); } 100% { transform: translateY(-5px) scale(.9); opacity: 0; } }

/* popcorn: kernels pop out of the bucket */
.rx-popcorn .a-bucket { transform-origin: 16px 30px; animation: rxBucket .6s ease-in-out infinite alternate; }
.rx-popcorn .a-pop { transform-box: fill-box; transform-origin: center; animation: rxKernel 1.2s ease-out infinite; }
.rx-popcorn .a-pop.k2 { animation-delay: .4s; } .rx-popcorn .a-pop.k3 { animation-delay: .8s; }
@keyframes rxBucket { from { transform: rotate(-3deg); } to { transform: rotate(3deg) translateY(-.5px); } }
@keyframes rxKernel { 0% { transform: translate(0, 5px) scale(.4); opacity: 0; } 25% { opacity: 1; transform: translate(0, -3px) rotate(90deg) scale(1.05); } 55% { transform: translate(var(--kx, 2px), -5px) rotate(200deg); opacity: 1; } 100% { transform: translate(var(--kx, 3px), 2px) rotate(300deg); opacity: 0; } }
.rx-popcorn .a-pop.k1 { --kx: -3px; } .rx-popcorn .a-pop.k2 { --kx: 3px; }
/* LOL: the d4 rocks with laughter and the tears squirt */
.rx-lol .a-rock { transform-origin: 16px 29px; animation: rxRock .32s ease-in-out infinite alternate; }
.rx-lol .a-tearL, .rx-lol .a-tearR { transform-box: fill-box; animation: rxTearL .64s ease-out infinite; }
.rx-lol .a-tearR { animation-name: rxTearR; }
@keyframes rxRock { from { transform: rotate(-7deg); } to { transform: rotate(7deg) translateY(-1px); } }
@keyframes rxTearL { 0% { transform: translate(2px, -1px) scale(.5); opacity: 0; } 20% { opacity: 1; } 75% { opacity: 1; } 100% { transform: translate(-2px, 2.5px) scale(1.1); opacity: 0; } }
@keyframes rxTearR { 0% { transform: translate(-2px, -1px) scale(.5); opacity: 0; } 20% { opacity: 1; } 75% { opacity: 1; } 100% { transform: translate(2px, 2.5px) scale(1.1); opacity: 0; } }
/* No way!: the jaw drops and the eyes bug out */
.rx-jaw .a-jaw { animation: rxJaw 1.8s cubic-bezier(.3,1.5,.5,1) infinite; }
.rx-jaw .a-eyes { transform-origin: 16px 11.6px; animation: rxEyes 1.8s cubic-bezier(.3,1.6,.5,1) infinite; }
.rx-jaw .a-shock { animation: rxShock 1.8s ease-out infinite; }
.rx-jaw .a-jawhead { transform-origin: 16px 19px; animation: rxHead 1.8s ease-out infinite; }
@keyframes rxJaw { 0%, 25% { transform: none; } 40%, 85% { transform: translateY(5.4px); } 100% { transform: none; } }
@keyframes rxEyes { 0%, 25% { transform: none; } 40%, 85% { transform: scale(1.32); } 100% { transform: none; } }
@keyframes rxShock { 0%, 30% { opacity: 0; } 40%, 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes rxHead { 0%, 25% { transform: none; } 38% { transform: translateY(-1.5px); } 50%, 100% { transform: none; } }


/* Fist bump: a red note and a blue note bump fists, spark on contact */
.rx-bump .a-armL { animation: rxArmInL 1.4s cubic-bezier(.5,0,.4,1.4) infinite; }
.rx-bump .a-armR { animation: rxArmInR 1.4s cubic-bezier(.5,0,.4,1.4) infinite; }
.rx-bump .a-noteL { transform-origin: 7px 27px; animation: rxLeanL 1.4s ease-in-out infinite; }
.rx-bump .a-noteR { transform-origin: 25px 27px; animation: rxLeanR 1.4s ease-in-out infinite; }
.rx-bump .a-spark { transform-origin: 16px 15px; animation: rxBumpSpark 1.4s ease-out infinite; }
@keyframes rxArmInL { 0%, 15% { transform: translateX(-3.4px); } 45%, 60% { transform: translateX(.6px); } 100% { transform: translateX(-3.4px); } }
@keyframes rxArmInR { 0%, 15% { transform: translateX(3.4px); } 45%, 60% { transform: translateX(-.6px); } 100% { transform: translateX(3.4px); } }
@keyframes rxLeanL { 0%, 15%, 100% { transform: none; } 45%, 60% { transform: rotate(6deg); } }
@keyframes rxLeanR { 0%, 15%, 100% { transform: none; } 45%, 60% { transform: rotate(-6deg); } }
@keyframes rxBumpSpark { 0%, 42% { transform: scale(0); opacity: 0; } 50% { transform: scale(1.3); opacity: 1; } 75% { transform: scale(1); opacity: 1; } 90%, 100% { transform: scale(.4); opacity: 0; } }
/* Medal: swings on its ribbon while a shine sweeps across */
.rx-medal .a-swing { transform-origin: 16px 0px; animation: rxMedal 1.8s ease-in-out infinite alternate; }
.rx-medal .a-glint { animation: rxGlint 1.8s ease-in-out infinite; }
.rx-medal .a-twinkle { transform-origin: 27.4px 12.2px; animation: rxTwinkle 1.8s ease-in-out infinite; }
@keyframes rxMedal { from { transform: rotate(-12deg); } to { transform: rotate(12deg); } }
@keyframes rxGlint { 0%, 30% { transform: translateX(-10px); opacity: 0; } 40% { opacity: 1; } 70% { transform: translateX(12px); opacity: 1; } 75%, 100% { opacity: 0; transform: translateX(12px); } }
/* Press F: the key goes down and a ring of respect ripples out */
.rx-pressf .a-key { animation: rxKey 1.2s ease-in-out infinite; }
.rx-pressf .a-ripple { transform-origin: 16px 18px; animation: rxRipple 1.2s ease-out infinite; }
.rx-pressf .a-ripple.r2 { animation-delay: .15s; }
@keyframes rxKey { 0%, 18%, 60%, 100% { transform: none; } 28%, 45% { transform: translateY(2.6px); } }
@keyframes rxRipple { 0%, 26% { transform: scale(.75); opacity: 0; } 32% { opacity: .9; } 80%, 100% { transform: scale(1.25); opacity: 0; } }

/* ---- host: visit log ---- */
.vis-stats { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
.vis-stat { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--raise-2); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.vis-stat b { color: var(--text); font-size: 14px; }
.vis-stat.on { border-color: color-mix(in srgb, var(--good) 55%, transparent); background: color-mix(in srgb, var(--good) 14%, var(--raise-2)); color: var(--good); }
.vis-stat.on b { color: var(--good); }
.vis-stat.soft { background: none; border-style: dashed; }
.vis-live { display: grid; gap: 6px; margin-bottom: 10px; }
.vis-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 12px; }
.vis-row.live { border: 1px solid color-mix(in srgb, var(--good) 45%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--good) 8%, var(--raise-2)); }
.vis-row.live .vis-ava { box-shadow: 0 0 0 2px var(--raise-2), 0 0 0 4px #3fd04a; }
.vis-ava { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; display: grid; place-items: center; background: #1a1d18; border: 2px solid var(--c, var(--line-2)); font: 700 11.5px var(--ui); color: #fff; }
.vis-ava.guest { border-style: dashed; color: var(--muted); }
.vis-bl { display: block; line-height: 0; border-radius: 50%; text-decoration: none; color: inherit; }
.vis-bl .vis-ava { transition: transform .15s ease; }
.vis-bl:hover .vis-ava { transform: scale(1.1); }
.vis-bl:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vis-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.vis-name { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 15px; }
.vis-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vis-sub { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vis-ago { font-size: 13px; font-weight: 700; color: var(--text); text-align: right; white-space: nowrap; padding: 3px 8px; border-radius: 8px; background: var(--raise-2); }
.vis-now { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--good); white-space: nowrap; }
.visit-list { list-style: none; margin: 0 0 10px; padding: 0; max-height: 460px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.visit-list .vis-row { border-top: 1px solid var(--line); }
.visit-day { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 12px 5px; font: 700 12.5px var(--ui); color: var(--gold); letter-spacing: .4px; text-transform: uppercase; border-top: 1px solid var(--line); position: sticky; top: 0; background: var(--raise, #121410); z-index: 1; }
.visit-day:first-child { border-top: 0; }
.visit-day + .vis-row { border-top: 0; }
.vd-n { font-size: 12px; color: var(--muted); letter-spacing: 0; text-transform: none; font-weight: 600; }
.vis-tag { font: 700 11px var(--ui); color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 1px 7px; flex: none; }
.vis-dot { width: 9px; height: 9px; border-radius: 50%; background: #3fd04a; box-shadow: 0 0 6px #3fd04a; flex: none; display: inline-block; }

/* who reacted: press and hold a reaction */
.rx-who { position: fixed; z-index: 60; min-width: 180px; max-width: min(280px, calc(100vw - 16px)); max-height: 50vh; overflow: auto; padding: 10px 12px; border-radius: 14px; background: var(--raise); border: 1px solid var(--line-2); box-shadow: 0 14px 34px rgba(0,0,0,.6); animation: rwIn .14s ease-out; }
@keyframes rwIn { from { opacity: 0; transform: translateY(4px) scale(.97); } }
.rx-who .rw-head { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.rx-who .rw-head .rx-ico { width: 26px; height: 26px; }
.rx-who .rw-head b { font-size: 15px; flex: 1; }
.rx-who .rw-head span { font: 700 13px var(--ui); color: var(--muted); }
.rx-who ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rx-who li { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.rx-who li > span { min-width: 0; overflow-wrap: anywhere; }
.rx-who li i { font-style: normal; color: var(--muted); font-size: 13px; }
.rw-ava { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: none; display: grid; place-items: center; background: #1a1d18; border: 2px solid var(--c); font: 700 10px var(--ui); color: #fff; }
@media (prefers-reduced-motion: reduce) { .rx-who { animation: none; } }
@media (prefers-reduced-motion: reduce) { .board-svg .egg.egg-spin, .board-svg .egg.egg-hide, .board-svg .egg.egg-go { animation: none; } }

/* reactions added Oct 22: crying, sweating, rage, hurry up, strong */
.rx-cry .a-sob { transform-origin:16px 26px;animation:rx_cry_sob .5s ease-in-out infinite }
.rx-cry .a-lip { transform-origin:16px 23px;animation:rx_cry_lip .25s steps(2) infinite }
.rx-cry .a-stream { animation:rx_cry_flow .5s linear infinite }

@keyframes rx_cry_sob{30%{transform:translateY(-.7px) scale(1.02,.98)}60%{transform:translateY(.3px)}}
@keyframes rx_cry_lip{50%{transform:translateY(.5px) scaleX(.94)}}
@keyframes rx_cry_flow{to{stroke-dashoffset:-4.4}}
.rx-sweat .a-pant { transform-origin:16px 26px;animation:rx_sweat_pant .4s ease-in-out infinite }
.rx-sweat .a-mouth { transform-origin:16px 21px;animation:rx_sweat_mo .4s ease-in-out infinite }
.rx-sweat .a-drop { animation:rx_sweat_dr 1s ease-in infinite }
.rx-sweat .d2 { animation-delay:-.5s }

@keyframes rx_sweat_pant{50%{transform:scale(1.03,.97)}}
@keyframes rx_sweat_mo{50%{transform:scaleY(.5)}}
@keyframes rx_sweat_dr{0%{transform:translate(0,0);opacity:0}20%{opacity:1}100%{transform:translate(0,12px);opacity:0}}
.rx-rage .a-shake { transform-origin:16px 28px;animation:rx_rage_shake .18s linear infinite }
.rx-rage .a-steam { animation:rx_rage_st 1s ease-out infinite }
.rx-rage .s2 { animation-delay:-.5s }

@keyframes rx_rage_shake{25%{transform:translateX(-.8px) rotate(-1.5deg)}75%{transform:translateX(.8px) rotate(1.5deg)}}
@keyframes rx_rage_st{0%{opacity:0;transform:translateY(3px) scale(.5)}30%{opacity:1}100%{opacity:0;transform:translateY(-4px) scale(1.2)}}
.rx-hurry .a-hand { transform-origin:16px 18px;animation:rx_hurry_hand 2s steps(8) infinite }
.rx-hurry .a-jit { transform-origin:16px 18px;animation:rx_hurry_jit .25s steps(2) infinite }
.rx-hurry .a-tick { animation:rx_hurry_tick .5s steps(2) infinite }

@keyframes rx_hurry_hand{to{transform:rotate(360deg)}}
@keyframes rx_hurry_jit{50%{transform:rotate(3deg)}}
@keyframes rx_hurry_tick{50%{opacity:0}}
.rx-strong .a-arm { transform-origin:24px 30px;animation:rx_strong_flex 1.2s ease-in-out infinite }
.rx-strong .a-pow { transform-origin:7px 11px;animation:rx_strong_pow 1.2s ease-out infinite }
.rx-strong .a-shine { animation:rx_strong_shn 1.2s ease-in-out infinite }
@keyframes rx_strong_flex{0%,100%{transform:none}45%,60%{transform:rotate(-5deg) scale(1.05)}}
@keyframes rx_strong_pow{0%,30%{opacity:0;transform:scale(.6)}50%{opacity:1;transform:scale(1)}80%,100%{opacity:0;transform:scale(1.15)}}
@keyframes rx_strong_shn{0%,100%{opacity:.35}50%{opacity:.9}}


/* reaction added Oct 22: heartbroken */
.rx-broken .a-hl { transform-origin:15px 27px;animation:rx_broken_hl 2s ease-in-out infinite }
.rx-broken .a-hr { transform-origin:17px 27px;animation:rx_broken_hr 2s ease-in-out infinite }
.rx-broken .a-tear { animation:rx_broken_tear 2s ease-in infinite }

@keyframes rx_broken_hl{0%,30%{transform:none}10%{transform:scale(1.06)}45%,85%{transform:translate(-1.4px,.6px) rotate(-8deg)}100%{transform:none}}
@keyframes rx_broken_hr{0%,30%{transform:none}10%{transform:scale(1.06)}45%,85%{transform:translate(1.4px,.6px) rotate(8deg)}100%{transform:none}}
@keyframes rx_broken_tear{0%,50%{opacity:0;transform:none}55%{opacity:1}85%{opacity:0;transform:translateY(6px)}100%{opacity:0}}

/* secret reaction: long-press Strong in the picker */
.rx-hbird .a-hov { transform-origin:16px 15px;animation:rx_hbird_hov 1.6s ease-in-out infinite }
.rx-hbird .a-wnear { transform-origin:17px 14.6px;animation:rx_hbird_flapn .14s ease-in-out infinite alternate }
.rx-hbird .a-wfar { transform-origin:17px 14px;animation:rx_hbird_flapf .14s ease-in-out infinite alternate }
.rx-hbird .a-fl { transform-origin:6px 31px;animation:rx_hbird_sway 1.6s ease-in-out infinite }

@keyframes rx_hbird_hov{0%,100%{transform:translate(.4px,-.9px) rotate(-2deg)}50%{transform:translate(-.3px,.7px) rotate(2.5deg)}}
@keyframes rx_hbird_flapn{0%{transform:rotate(-6deg)}100%{transform:rotate(62deg) scaleY(.85)}}
@keyframes rx_hbird_flapf{0%{transform:rotate(-14deg)}100%{transform:rotate(48deg) scaleY(.8)}}
@keyframes rx_hbird_sway{0%,100%{transform:rotate(-3deg)}50%{transform:rotate(3deg)}}

/* secret reaction: long-press Fire in the picker */
.rx-msploit .a-glow { animation:rx_msploit_hum .16s ease-in-out infinite alternate }
.rx-msploit .a-sb { transform-origin:19.2px 28.6px;animation:rx_msploit_swb 1.8s ease-in-out infinite }
.rx-msploit .a-sr { transform-origin:12.8px 28.6px;animation:rx_msploit_swr 1.8s ease-in-out infinite }
.rx-msploit .a-tm { transform-origin:16px 20px;animation:rx_msploit_wig 1.8s ease-in-out infinite }
.rx-msploit .a-glint { animation:rx_msploit_gl 1.8s ease-in-out infinite }
@keyframes rx_msploit_hum{0%{opacity:.25}100%{opacity:.55}}
@keyframes rx_msploit_swb{0%,100%{transform:rotate(0)}45%{transform:rotate(4deg)}}
@keyframes rx_msploit_swr{0%,100%{transform:rotate(0)}45%{transform:rotate(-4deg)}}
@keyframes rx_msploit_wig{0%,100%{transform:scale(1)}50%{transform:scale(1.05,1.08)}}
@keyframes rx_msploit_gl{0%,62%,100%{opacity:0}76%{opacity:1}}

/* secret reaction: long-press Popcorn in the picker (Nic) */
.rx-nic .a-flame { transform-origin:16px 14px; animation:rx_nic_flick .9s ease-in-out infinite alternate }
.rx-nic .a-hornL { transform-origin:7px 15px; animation:rx_nic_hl 1.8s ease-in-out infinite }
.rx-nic .a-hornR { transform-origin:25px 15px; animation:rx_nic_hr 1.8s ease-in-out infinite }
.rx-nic .a-bob { transform-origin:16px 29px; animation:rx_nic_bob 1.8s ease-in-out infinite }
@keyframes rx_nic_flick{0%{transform:scale(1,1) skewX(0)}50%{transform:scale(1.04,1.1) skewX(-4deg)}100%{transform:scale(.97,1.04) skewX(3deg)}}
@keyframes rx_nic_hl{0%,100%{transform:rotate(0)}50%{transform:rotate(-6deg)}}
@keyframes rx_nic_hr{0%,100%{transform:rotate(0)}50%{transform:rotate(6deg)}}
@keyframes rx_nic_bob{0%,100%{transform:rotate(0)}25%{transform:rotate(-4deg)}75%{transform:rotate(4deg)}}
.rx-nic .a-moon { transform-origin:13px 10px; animation:rx_nic_hl 1.8s ease-in-out infinite }
/* Lumberjack462: a fast chop with a two-copy motion trail */
.rx-lj .a-chop { transform-origin:6px 21.5px; animation:rx_lj_chop .28s infinite }
.rx-lj .a-g1 { opacity:.35; animation-delay:-.255s }
.rx-lj .a-g2 { opacity:.15; animation-delay:-.23s }
@keyframes rx_lj_chop{0%{transform:rotate(0);animation-timing-function:cubic-bezier(.5,0,.9,.6)}45%{transform:rotate(90deg);animation-timing-function:cubic-bezier(.2,.4,.5,1)}100%{transform:rotate(0)}}

/* Replays: a chip in the thread; on a computer it plays big over the page (theater mode) */
.rp-chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px 0 3px; margin-left: 4px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--raise-2); color: var(--text) !important; font: 700 12.5px/1 var(--ui); text-decoration: none !important; vertical-align: middle; white-space: nowrap; transition: border-color .15s, background .15s; }
.rp-chip:hover, .rp-chip:focus-visible { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--raise-2)); }
.rp-ico { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; flex: none; }
.rp-ico svg { width: 10px; height: 10px; fill: var(--accent-ink); margin-left: 1px; }
.rp-chip[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 20%, var(--raise-2)); }
.rp-chip[aria-pressed="true"] .rp-ico { animation: rpPulse 1.4s ease-in-out infinite; }
@keyframes rpPulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 50% { box-shadow: 0 0 0 4px transparent; } }
.replay-dock { margin: 0 0 10px; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: #000; }
.replay-dock[hidden] { display: none; }
.rd-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 6px 6px 8px; background: var(--raise-2); border-bottom: 1px solid var(--line); }
.rd-title { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 14px; }
.rd-title b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-btns { display: flex; gap: 4px; flex: none; }
.rd-btn { width: 32px; height: 30px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line-2); background: none; color: var(--muted); cursor: pointer; }
.rd-btn:hover, .rd-btn:focus-visible { color: var(--text); border-color: var(--accent); }
.rd-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rd-frame { aspect-ratio: 16 / 10; background: #000; }
.rd-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.replay-dock.big { position: fixed; z-index: 70; inset: 0; margin: auto; width: min(1280px, 92vw, calc((90vh - 44px) * 16 / 9)); height: fit-content; box-shadow: 0 30px 80px rgba(0,0,0,.7); }
.replay-dock.big::before { content: ''; position: fixed; inset: 0; z-index: -1; background: rgba(0,0,0,.78); }
.replay-dock.big .rd-frame { aspect-ratio: 16 / 9; max-height: calc(90vh - 44px); }
@media (prefers-reduced-motion: reduce) { .rp-chip[aria-pressed="true"] .rp-ico { animation: none; } }

/* Host tools: Stats tab */
#statsBody h3 small { font: 400 13px var(--ui); color: var(--muted); margin-left: 6px; }
.sgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.sgrid.two { margin-top: 0; }
.rgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sc { background: var(--raise-2); border: 1px solid var(--line); border-top: 3px solid var(--line-2); border-radius: var(--r); padding: 12px 14px; display: flex; flex-direction: column; min-width: 0; }
.sc.hero { border-top-color: var(--accent); } .sc.gold { border-top-color: var(--gold); }
.sc .sk { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.sc b { font-size: 28px; line-height: 1.15; margin-top: 4px; color: var(--text); overflow-wrap: anywhere; }
.sc.hero b { color: var(--accent); } .sc.gold b { color: var(--gold); }
.sc b small { font-size: 15px; color: var(--muted); font-weight: 600; }
.sc em { font-style: normal; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.sbox { background: var(--raise-2); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.gsb { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; margin: 8px 0; font-size: 15px; }
.gsl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gst { height: 12px; background: var(--raise); border-radius: 6px; overflow: hidden; display: block; }
.gst em { display: block; height: 100%; border-radius: 6px; background: var(--accent); }
.gst em.g { background: var(--good); } .gst em.a { background: var(--bad); }
.gsn { font-weight: 700; text-align: right; white-space: nowrap; } .gsn small { color: var(--muted); font-weight: 500; font-size: 13px; }
.dchart { display: flex; gap: 6px; align-items: flex-end; height: 130px; } .dchart.short { height: 90px; gap: 4px; }
.dc { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; min-width: 0; }
.dbars { flex: 1; width: 100%; display: flex; gap: 2px; align-items: flex-end; }
.dbars i { flex: 1; border-radius: 3px 3px 0 0; min-height: 2px; } .dbars i.r { background: var(--accent); } .dbars i.c { background: var(--good); } .dbars i.v { background: var(--gold); }
.dc span { font-size: 12px; color: var(--muted); }
.leg { display: flex; gap: 14px; margin-top: 8px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.leg i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; } .leg i.r { background: var(--accent); } .leg i.c { background: var(--good); } .leg .lsub { margin-left: auto; }
.hchart { display: flex; gap: 2px; align-items: flex-end; height: 80px; } .hc { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.hc i { display: block; width: 100%; background: var(--line-2); border-radius: 2px 2px 0 0; min-height: 2px; } .hc i.pk { background: var(--accent); }
.hax { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 4px; }
.snote { font-size: 14px; color: var(--muted); margin: 8px 0 0; } .snote b { color: var(--text); }
.slist { padding: 6px 8px; }
.srow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 6px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.slist .srow:last-of-type { border-bottom: 0; }
a.srow:hover, a.ptr:hover { background: var(--raise); }
.sn2 { display: flex; flex-direction: column; min-width: 0; } .sn2 b { font-size: 15px; overflow-wrap: anywhere; } .sn2 em { font-style: normal; font-size: 13px; color: var(--muted); }
.sidle { font-weight: 700; color: var(--warn); font-size: 14px; white-space: nowrap; }
.sago { font-size: 13px; color: var(--muted); white-space: nowrap; text-align: right; }
.slist .btn, .ptab .btn { margin: 8px 6px 4px; }
.emo { display: flex; gap: 8px; flex-wrap: wrap; }
.ech { display: inline-flex; align-items: center; gap: 6px; background: var(--raise); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 8px; }
.ech .rx-ico, .ech svg, .ech img { width: 22px; height: 22px; } .ech b { font-size: 15px; }
.ptab { padding: 6px 8px; font-size: 14px; }
.pth, .ptr { display: grid; grid-template-columns: 22px minmax(0, 1fr) 36px 52px 56px; gap: 6px; align-items: center; padding: 7px 6px; color: inherit; text-decoration: none; }
.pth { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; border-bottom: 1px solid var(--line); }
.ptr { border-bottom: 1px solid var(--line); }
.ptr > span:nth-child(n+3), .pth > span:nth-child(n+3) { text-align: right; }
.ptr .pnm { display: flex; align-items: center; gap: 8px; min-width: 0; } .ptr .pnm b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
.ptr .vis-ava { width: 26px; height: 26px; font-size: 10px; }
.ptr .cold { color: var(--warn); font-weight: 700; }
/* Stats tab, GoatCounter lists: icon, plain name with a line on what it means, a bar, count and share */
.glist { padding: 4px 12px; }
.grow { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.glist .grow:last-of-type { border-bottom: 0; }
.gic { width: 32px; height: 32px; border-radius: 8px; background: var(--raise); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; flex: none; color: var(--muted); font: 800 14px var(--ui); }
.gic img { width: 18px; height: 18px; display: block; }
.gic.flag img { width: 24px; height: 18px; border-radius: 2px; object-fit: cover; }
.gic.gl svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gic.st { background: #08090c; } .gic.st .studio-logo, .gic.st svg { width: 22px; height: 22px; display: block; }
.gnm { min-width: 0; } .gnm b { font-size: 15px; overflow-wrap: anywhere; }
.gnm em { display: block; font-style: normal; font-size: 13px; line-height: 1.35; color: var(--muted); margin-top: 1px; }
.gbar { display: block; height: 5px; background: var(--raise); border-radius: 3px; overflow: hidden; margin-top: 6px; }
.gbar i { display: block; height: 100%; border-radius: 3px; background: var(--gold); }
.gnum { text-align: right; white-space: nowrap; } .gnum b { display: block; font-size: 17px; line-height: 1.1; } .gnum small { font-size: 12.5px; color: var(--muted); }
.glist .btn { margin: 8px 0 6px; }
.leg i.v { background: var(--gold); }
.gcols { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 12px; }
@media (min-width: 760px) { .gcols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 700px) { .sgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sgrid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Stats: a Host tools tab, so it lays out for the drawer's width rather than the screen's */
.hp-stats .sgrid, .hp-stats .sgrid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hp-stats .gcols { grid-template-columns: minmax(0, 1fr); }
.hp-stats > .hsec:first-child { padding-top: 4px; }
.sgroup { margin: 28px 0 0; font: 700 22px var(--display); color: var(--accent); }
.sgroup small { font: 400 13px var(--ui); color: var(--muted); margin-left: 6px; }

/* New map list notice (once per swap) */
.modal.swap h2 { margin-right: 44px; }
.swap-flag { display: inline-flex; align-items: center; gap: 6px; font: 800 12.5px var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent); border-radius: 999px; padding: 5px 12px; margin: 0 0 12px; animation: swapPulse 1.6s ease-in-out 2; }
@keyframes swapPulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 30%, transparent); } }
.swap-box { border: 1px solid var(--line-2); border-left: 4px solid var(--accent); border-radius: var(--r); background: var(--raise-2); padding: 6px 14px; margin: 12px 0 16px; }
.swap-row { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.45; }
.swap-row:last-child { border-bottom: 0; }
.swap-row.you { background: color-mix(in srgb, var(--accent) 10%, transparent); margin: 0 -14px; padding: 9px 14px; }
.swap-ic { font-size: 19px; line-height: 1.2; }
.swap-row s { color: var(--muted); }
.swap-btns { margin-bottom: 8px; display: flex; flex-wrap: nowrap; gap: 8px; }
.swap-btns > .btn { flex: 1 1 0; min-width: 0; justify-content: center; white-space: nowrap; padding-left: 10px; padding-right: 10px; }
@media (prefers-reduced-motion: reduce) { .swap-flag { animation: none; } }
/* Stuck! the mud pit pig: sinks, struggles back up, sweats; bubbles and flecks of mud */
.rx-mud .a-sink { transform-origin:16px 24px; animation:rx_mud_sink 2.6s ease-in-out infinite }
.rx-mud .a-ear { transform-origin:16px 10px; animation:rx_mud_ear 2.6s ease-in-out infinite }
.rx-mud .a-fleck { animation:rx_mud_fleck 2.6s ease-out infinite; opacity:0 }
.rx-mud .a-fleck.f2 { animation-delay:.15s }
.rx-mud .a-drop { transform-origin:24.6px 13px; animation:rx_mud_drop 2.6s ease-in infinite }
.rx-mud .a-mud { transform-origin:16px 26px; animation:rx_mud_wob 1.3s ease-in-out infinite alternate }
.rx-mud .a-bub { animation:rx_mud_bub 2.6s ease-out infinite; opacity:0 }
.rx-mud .a-bub.b1 { transform-origin:5.6px 22.4px } .rx-mud .a-bub.b2 { transform-origin:27px 23px; animation-delay:1.3s }
@keyframes rx_mud_sink{0%,100%{transform:translateY(0) rotate(0)}35%{transform:translateY(2.2px) rotate(-3deg)}55%{transform:translateY(2.6px) rotate(2deg)}80%{transform:translateY(-.4px) rotate(0)}}
@keyframes rx_mud_ear{0%,100%{transform:scaleY(1)}35%,55%{transform:scaleY(.85)}80%{transform:scaleY(1.08)}}
@keyframes rx_mud_fleck{0%,70%{opacity:0;transform:translate(0,0)}74%{opacity:1}100%{opacity:0;transform:translate(var(--fx,-2.4px),-4px)}}
.rx-mud .a-fleck.f2{--fx:2.4px}
@keyframes rx_mud_drop{0%,20%{opacity:0;transform:translateY(-.6px)}30%,60%{opacity:1;transform:translateY(0)}80%,100%{opacity:0;transform:translateY(2px)}}
@keyframes rx_mud_wob{0%{transform:scaleX(1)}100%{transform:scaleX(1.025) translateY(.2px)}}
@keyframes rx_mud_bub{0%{opacity:0;transform:translateY(0) scale(.4)}20%{opacity:1}70%{opacity:1;transform:translateY(-3px) scale(1)}80%{opacity:0;transform:translateY(-3.4px) scale(1.5)}100%{opacity:0}}
/* Hype! pixel HYPE HYPE: pumps on the beat, lines shake apart, colors swap every second */
.rx-hype .a-hype { transform-origin:16px 16px; animation:rx_hype_pump .5s cubic-bezier(.3,1.6,.5,1) infinite }
.rx-hype .a-top { animation:rx_hype_l .5s steps(1) infinite } .rx-hype .a-bot { animation:rx_hype_r .5s steps(1) infinite }
.rx-hype .a-c2 { opacity:0; animation:rx_hype_c2 2s steps(1) infinite }
.rx-hype .a-spark { transform-origin:16px 16px; animation:rx_hype_spark .5s steps(2) infinite }
@keyframes rx_hype_pump{0%{transform:scale(1.12) rotate(-2deg)}40%,100%{transform:scale(1) rotate(0)}}
@keyframes rx_hype_l{0%{transform:translate(-.8px,0)}50%{transform:translate(.8px,0)}}
@keyframes rx_hype_r{0%{transform:translate(.8px,0)}50%{transform:translate(-.8px,0)}}
@keyframes rx_hype_c2{0%{opacity:0}50%{opacity:1}}
@keyframes rx_hype_spark{0%{opacity:1;transform:rotate(0)}50%{opacity:.2;transform:rotate(8deg)}}

/* Stuck! drawn for the theme (fx.js STUCK): the sinking comes from .rx-mud .a-sink above */
.rx-stuck .a-flk { animation: rx_stuck_flk 2.6s linear infinite; }
.rx-stuck .a-bus { animation: rx_stuck_bus 2.6s ease-in infinite; }
.rx-stuck .a-heart { transform-origin: 26px 10px; animation: rx_stuck_heart 1.3s ease-in-out infinite alternate; }
.rx-stuck .a-ground { transform-origin: 16px 27px; animation: rx_mud_wob 1.3s ease-in-out infinite alternate; }
@keyframes rx_stuck_flk { 0% { transform: translateY(-2px); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(6px); opacity: 0; } }
@keyframes rx_stuck_bus { 0%, 30% { transform: translateX(0); opacity: 1; } 85% { transform: translateX(9px); opacity: 0; } 100% { transform: translateX(0); opacity: 0; } }
@keyframes rx_stuck_heart { from { transform: scale(.9) rotate(-6deg); } to { transform: scale(1.1) rotate(6deg); } }
@media (prefers-reduced-motion: reduce) { .rx-stuck * { animation: none !important; } }

/* Board life on boards listed in render.js BOARD_FX: quiet glows, smoke, glints and water. */
.board-svg .bfx circle.bfx-lan, .board-svg .bfx circle.bfx-can, .board-svg .bfx circle.bfx-win, .board-svg .bfx circle.bfx-castle { mix-blend-mode: screen; pointer-events: none; }
.board-svg .bfx { pointer-events: none; }
.bfx-lan { animation: bfxLan 3s ease-in-out infinite; }
@keyframes bfxLan { 0%, 100% { opacity: .38; transform: scale(1); } 30% { opacity: .55; transform: scale(1.06); } 52% { opacity: .42; } 58% { opacity: .5; } 75% { opacity: .34; transform: scale(.97); } }
.bfx-can { animation: bfxCan 1.2s steps(6) infinite; }
@keyframes bfxCan { 0%, 100% { opacity: .5; } 20% { opacity: .35; } 40% { opacity: .6; } 60% { opacity: .42; } 80% { opacity: .55; } }
.bfx-win { animation: bfxWin 6s ease-in-out infinite; }
@keyframes bfxWin { 0%, 100% { opacity: .22; } 50% { opacity: .42; } }
.bfx-castle { animation: bfxCastle 7s ease-in-out infinite; }
@keyframes bfxCastle { 0%, 100% { opacity: .35; } 40% { opacity: .7; } 55% { opacity: .15; } 62% { opacity: .6; } }
.bfx-glint { opacity: 0; animation: bfxGlint 9s ease-in-out infinite; }
@keyframes bfxGlint { 0%, 88%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 93% { opacity: .9; transform: scale(1) rotate(45deg); } }
.bfx-smoke { opacity: 0; transform-box: fill-box; transform-origin: center; animation: bfxSmoke 7.2s ease-out infinite; }
@keyframes bfxSmoke { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 15% { opacity: .32; } 70% { opacity: .14; } 100% { opacity: 0; transform: translate(-18px, -80px) scale(2.4); } }
@media (prefers-reduced-motion: reduce) { .board-svg .bfx-water, .board-svg .bfx-smoke, .board-svg .bfx-drops, .board-svg .bfx-glint { display: none; } .board-svg .bfx * { animation: none !important; } }
