/* reactions.css — Phase 3, Feature #36: Emoji Reactions.
   Shared by multiplayer.html, wordle-multiplayer.html and
   ranking-multiplayer.html. Deliberately page-agnostic — it sits as a
   floating overlay ON TOP of whichever screen is showing, not inside any
   one page's own reskinned card, so it uses the site's global gold/navy
   tokens (already defined in style.css, loaded on all three pages)
   rather than matching Dugout Bench / the Wordle grid / Ladder Climb. */

.rx-stage {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 92px;
  height: 160px;
  pointer-events: none;
  overflow: hidden;
  z-index: 400;
}

.rx-pop {
  position: absolute;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  animation: rxFloatUp 2.3s ease-out forwards;
}

.rx-pop-emoji {
  font-size: 2rem;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.rx-pop-name {
  font-family: 'Nunito', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: rgba(10, 14, 26, 0.75);
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}

@keyframes rxFloatUp {
  0%   { transform: translateY(0) scale(0.6); opacity: 0; }
  12%  { transform: translateY(-10px) scale(1); opacity: 1; }
  80%  { transform: translateY(-120px) scale(1); opacity: 1; }
  100% { transform: translateY(-150px) scale(1); opacity: 0; }
}

.rx-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: none; /* toggled on by JS only while a match is in progress */
  gap: 8px;
  background: rgba(10, 14, 26, 0.85);
  border: 1px solid rgba(244, 169, 0, 0.35);
  border-radius: 999px;
  padding: 6px 10px;
  z-index: 410;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.rx-btn {
  border: none;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.rx-btn:hover,
.rx-btn:focus-visible {
  background: rgba(244, 169, 0, 0.18);
  transform: scale(1.15);
}

.rx-btn:active {
  transform: scale(0.9);
}

@media (prefers-reduced-motion: reduce) {
  .rx-pop { animation: none; opacity: 1; }
}

@media (max-width: 480px) {
  .rx-stage { bottom: 80px; height: 130px; }
  .rx-bar { bottom: 12px; padding: 5px 8px; gap: 6px; }
  .rx-btn { font-size: 1.25rem; padding: 3px 5px; }
}
