/* Live reactions on a court card (js/reactions.js): one row of five emoji buttons with the running totals, and emoji that float up when somebody taps. */
.rx-bar { position: relative; display: flex; gap: 6px; margin-top: 4px; padding: 10px 12px 12px; border-top: 1px dashed var(--line-strong); }
.rx-btn { flex: 1 1 0; min-width: 0; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 0 4px;
  font: inherit; color: var(--t-hi); background: var(--s1); border: 1.5px solid var(--line-strong); border-radius: 10px; cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.rx-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.rx-btn:active, .rx-btn.is-pop { transform: scale(.94); background: var(--gold-dim); border-color: var(--gold-line); }
.rx-btn.is-cool { opacity: .55; }
.rx-ch { font-size: 1.35rem; line-height: 1; }
.rx-n { min-width: 1ch; font-family: var(--font-num, inherit); font-weight: 400; font-size: var(--fs-14, .875rem); letter-spacing: .02em; color: var(--t-mid); }
.rx-n:empty { display: none; }
.rx-floats { position: absolute; left: 0; right: 0; bottom: 100%; height: 0; pointer-events: none; overflow: visible; }
.rx-float { position: absolute; bottom: 4px; font-size: 1.6rem; line-height: 1; opacity: 0; animation: rx-up 1.4s ease-out forwards; }
@keyframes rx-up { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: 1; transform: translateY(-10px) scale(1.1); } 100% { transform: translateY(-90px) scale(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .rx-float { display: none; } .rx-btn:active, .rx-btn.is-pop { transform: none; } }
@media (max-width: 380px) { .rx-ch { font-size: 1.2rem; } .rx-btn { gap: 2px; } }

body.rx-off .rx-bar, body.rx-off #tvRxLayer { display: none; }
/* admin panel */
.rxa { padding: var(--sp-3) var(--sp-4); background: var(--s1); border: 1px solid var(--line-strong); border-radius: var(--r-md); display: grid; gap: var(--sp-3); }
.rxa-h { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; font: 700 var(--fs-16, 1rem) var(--font-th); }
.rxa-st { padding: 2px 12px; border-radius: 999px; font-size: var(--fs-13, .8125rem); border: 1.5px solid var(--line-strong); }
.rxa-st.is-on { color: var(--ok, #1b7a3c); } .rxa-st.is-off { color: var(--red-text, #a01217); }
.rxa-n { margin-left: auto; font: 600 var(--fs-13, .8125rem) var(--font-th); color: var(--t-mid); }
.rxa-b { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.rxa-b .ds-btn { min-height: var(--tap); }

/* the totals as a small line: 🔥 12  👏 5 (finished-match list, TV cards) */
.rx-tot { font-size: var(--fs-13, .8125rem); color: var(--t-mid); white-space: nowrap; letter-spacing: .02em; }
.rx-tot:empty { display: none; }
.fm-meta .rx-tot { margin-right: 8px; }

/* TV: the totals sit on the card's bottom edge (absolute: they never move the tuned layout), the emojis of every court rise from the bottom of the screen */
.tv-live-card .rx-tot { position: absolute; bottom: 0; right: calc(var(--u, 8px) * 1.8); transform: translateY(50%); padding: 0 calc(var(--u, 8px) * 1.2); font-size: calc(var(--u, 8px) * 2.6); line-height: 1.5;
  background: var(--s1); border: calc(var(--u, 8px) * .2) solid var(--line-strong); border-radius: 999px; }
.tv-vs-sub .rx-tot { font-size: calc(var(--u, 8px) * 3.4); }
#tvRxLayer { position: fixed; inset: 0; z-index: 40; pointer-events: none; overflow: hidden; }
.rx-tvf { position: absolute; bottom: -8vh; display: grid; justify-items: center; gap: .2vw; opacity: 0; animation: rx-tv-up 4.2s ease-out forwards; }
.rx-tvf i { font-style: normal; font-size: clamp(2.4rem, 5.2vw, 6rem); line-height: 1; filter: drop-shadow(0 .3vw .5vw rgba(0, 0, 0, .35)); }
.rx-tvf small { padding: 0 .8vw; border-radius: 999px; background: rgba(11, 42, 82, .78); color: #fff6ea; font-size: clamp(.8rem, 1.3vw, 1.6rem); font-weight: 700; }
@keyframes rx-tv-up { 0% { transform: translateY(0) scale(.6); opacity: 0; } 12% { opacity: 1; transform: translateY(-8vh) scale(1.1); } 100% { transform: translateY(-75vh) scale(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { #tvRxLayer { display: none; } }
