/* Extra tables, picker pop, avatar art, match reactions.
   Never change table width/height/padding — only color, glow, and animation. */

body.look-extra .wood-rail {
  background: var(--look-wood);
}

body.look-extra .felt {
  background: var(--look-felt);
  box-shadow:
    inset 0 0 0 4px var(--look-inset),
    inset 0 0 0 6px rgba(212, 180, 74, 0.16),
    inset 0 20px 50px rgba(0, 0, 0, 0.28),
    inset 0 -30px 40px rgba(0, 0, 0, 0.18);
}

body.look-extra .felt-emblem {
  background: var(--look-emblem);
}

body.look-extra .mini-felt {
  background: var(--look-mini, var(--look-felt));
  border-color: var(--look-inset);
}

body.look-extra .turn-banner {
  background: var(--look-banner);
}

body.look-flag .felt {
  box-shadow:
    inset 0 0 0 4px var(--look-inset),
    inset 0 0 0 6px rgba(255, 255, 255, 0.22),
    inset 0 12px 28px rgba(0, 0, 0, 0.16);
}

body.look-flag .felt-emblem,
body.look-flag .emblem-mark {
  display: none;
}

body.look-flag .felt-wear {
  opacity: 0.28;
}

body.look-anim[data-table-anim="glow"] .felt-emblem {
  animation: look-glow 3.2s ease-in-out infinite;
}

body.look-anim[data-table-anim="pulse"] .wood-rail {
  animation: look-pulse 2.8s ease-in-out infinite;
}

body.look-anim[data-table-anim="shimmer"] .wood-rail {
  animation: look-shimmer 3.6s ease-in-out infinite;
}

body.look-anim[data-table-anim="neon"] .wood-rail {
  animation: look-neon 2.4s ease-in-out infinite;
}

body.look-anim[data-table-anim="ember"] .felt {
  animation: look-ember 2.2s ease-in-out infinite;
}

body[data-table="lava"] .felt {
  background:
    radial-gradient(ellipse at 50% 62%, #4a180c 0%, #1a0806 52%, #080202 100%);
  box-shadow:
    inset 0 0 0 4px #2a0c08,
    inset 0 0 0 6px rgba(255, 120, 30, 0.22),
    inset 0 18px 42px rgba(40, 4, 0, 0.5),
    inset 0 -28px 40px rgba(8, 0, 0, 0.55);
}

body[data-table="lava"] .felt-wear {
  opacity: 0.4;
  mix-blend-mode: multiply;
  background:
    radial-gradient(circle at 30% 70%, rgba(0, 0, 0, 0.35), transparent 24%),
    radial-gradient(circle at 72% 28%, rgba(0, 0, 0, 0.28), transparent 20%);
}

body[data-table="lava"] .lava-flow {
  display: block;
}

.lava-flow {
  display: none;
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
  z-index: 0;
}

.lava-river,
.lava-hot,
.lava-glow,
.lava-crust {
  position: absolute;
  inset: 0;
}

.lava-river {
  inset: -18%;
  background:
    radial-gradient(ellipse 58% 30% at 28% 74%, #ffb428 0%, #e04010 36%, transparent 70%),
    radial-gradient(ellipse 50% 26% at 72% 36%, #ff6a18 0%, #b01c08 40%, transparent 68%),
    radial-gradient(ellipse 36% 22% at 50% 52%, #ffd060 0%, #ff4a10 34%, transparent 64%);
  filter: blur(12px) saturate(1.15);
  mix-blend-mode: screen;
  opacity: 0.88;
}

.lava-hot {
  background:
    radial-gradient(circle 16% at 40% 70%, rgba(255, 236, 150, 0.7), transparent 72%),
    radial-gradient(circle 11% at 66% 40%, rgba(255, 170, 50, 0.55), transparent 70%);
  filter: blur(8px);
  mix-blend-mode: screen;
}

.lava-glow {
  background: radial-gradient(ellipse at 50% 80%, rgba(255, 90, 20, 0.28), transparent 55%);
}

.lava-crust {
  background:
    radial-gradient(ellipse 34% 28% at 16% 18%, #1c0c08 64%, transparent 65%),
    radial-gradient(ellipse 30% 32% at 86% 16%, #140806 60%, transparent 61%),
    radial-gradient(ellipse 26% 24% at 12% 78%, #180a06 62%, transparent 63%),
    radial-gradient(ellipse 28% 22% at 88% 82%, #120806 58%, transparent 59%),
    radial-gradient(ellipse 22% 18% at 50% 8%, #1a0c08 55%, transparent 56%),
    radial-gradient(ellipse 20% 16% at 48% 92%, #100604 52%, transparent 53%);
  opacity: 0.78;
}

body.look-anim[data-table-anim="river"] .lava-river {
  animation: lava-drift 18s ease-in-out infinite;
}

body.look-anim[data-table-anim="river"] .lava-hot {
  animation: lava-hot 8s ease-in-out infinite;
}

body.look-anim[data-table-anim="river"] .lava-glow {
  animation: lava-heat 5.5s ease-in-out infinite;
}

body.look-anim[data-table-anim="river"] .mini-felt {
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 80% at 30% 70%, #ffb428 0%, #c42808 42%, #140604 100%);
  animation: lava-heat 5.5s ease-in-out infinite;
}

@keyframes lava-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  35% { transform: translate(2.4%, -1.8%) scale(1.03); }
  68% { transform: translate(-1.8%, 2.2%) scale(0.99); }
}

@keyframes lava-hot {
  0%, 100% { opacity: 0.55; transform: translate(0, 0); }
  50% { opacity: 1; transform: translate(1.5%, -1%); }
}

@keyframes lava-heat {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.12); }
}

@keyframes lava-flow-pos {
  0% { background-position: 0 0; }
  100% { background-position: 180px 96px; }
}

@keyframes lava-river {
  0% { transform: translate(-12%, 6%); }
  100% { transform: translate(10%, -8%); }
}

@keyframes lava-glow {
  0%, 100% { opacity: 0.7; filter: brightness(1); }
  45% { opacity: 1; filter: brightness(1.22); }
}

body.look-anim[data-table-anim="aurora"] .felt {
  animation: look-aurora 9s linear infinite;
}

body.look-anim[data-table-anim="sway"] .felt {
  animation: gif-sway 1.05s steps(5) infinite;
}
body.look-anim[data-table-anim="wave"] .felt {
  animation: gif-wave 1.4s steps(6) infinite;
}
body.look-anim[data-table-anim="gleam"] .felt-emblem {
  animation: gif-gleam 0.9s steps(4) infinite;
}
body.look-anim[data-table-anim="steam"] .table-grain {
  animation: gif-steam 1.2s steps(5) infinite;
}
body.look-anim[data-table-anim="grain"] .table-grain {
  animation: gif-grain 0.55s steps(3) infinite;
}
body.look-anim[data-table-anim="jewel"] .felt-emblem {
  animation: gif-jewel 0.8s steps(4) infinite;
}
body.look-anim[data-table-anim="caustic"] .felt {
  animation: gif-caustic 1.6s steps(6) infinite;
}

@keyframes gif-sway {
  0%, 100% { filter: hue-rotate(0deg) brightness(1); }
  40% { filter: hue-rotate(-12deg) brightness(1.08); }
  70% { filter: hue-rotate(10deg) brightness(0.96); }
}
@keyframes gif-wave {
  0%, 100% { filter: brightness(1) saturate(1); }
  33% { filter: brightness(1.1) saturate(1.15); }
  66% { filter: brightness(0.94) saturate(1.05); }
}
@keyframes gif-gleam {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.35); }
}
@keyframes gif-steam {
  0%, 100% { opacity: 0.4; transform: translateY(0); }
  50% { opacity: 0.85; transform: translateY(-3px); }
}
@keyframes gif-grain {
  0% { opacity: 0.35; filter: contrast(1); }
  50% { opacity: 0.8; filter: contrast(1.15); }
  100% { opacity: 0.45; filter: contrast(0.95); }
}
@keyframes gif-jewel {
  0%, 100% { filter: brightness(1) drop-shadow(0 0 0 transparent); }
  50% { filter: brightness(1.28) drop-shadow(0 0 8px rgba(241, 211, 106, 0.55)); }
}
@keyframes gif-caustic {
  0%, 100% { filter: hue-rotate(0deg) brightness(1); }
  50% { filter: hue-rotate(16deg) brightness(1.12); }
}

body.look-anim[data-table-anim="sparkle"] .table-grain {
  animation: look-sparkle 2.8s ease-in-out infinite;
}

body.look-anim[data-table-anim="mist"] .table-grain {
  animation: look-mist 7s ease-in-out infinite alternate;
}

body.look-anim[data-table-anim="jack"] .felt-emblem {
  animation: jack-flicker 0.85s steps(4) infinite;
}

body.look-anim[data-table-anim="haunt"] .felt {
  animation: haunt-fog 1.35s steps(5) infinite;
}

body[data-table="calabaza"].table-gif .felt-gif {
  background:
    linear-gradient(115deg, transparent 28%, rgba(255, 150, 40, 0.5) 50%, transparent 72%),
    radial-gradient(circle at 48% 72%, rgba(255, 90, 0, 0.38), transparent 58%);
  mix-blend-mode: screen;
}

body[data-table="cementerio"].table-gif .felt-gif {
  background:
    linear-gradient(115deg, transparent 30%, rgba(120, 255, 160, 0.22) 50%, transparent 70%),
    radial-gradient(circle at 60% 30%, rgba(160, 90, 255, 0.2), transparent 52%);
  mix-blend-mode: screen;
}

@keyframes jack-flicker {
  0%, 100% { filter: brightness(1) saturate(1); }
  25% { filter: brightness(1.28) saturate(1.25); }
  50% { filter: brightness(0.82) saturate(1.1); }
  75% { filter: brightness(1.16) saturate(1.2); }
}

@keyframes haunt-fog {
  0%, 100% { filter: hue-rotate(0deg) brightness(1); }
  33% { filter: hue-rotate(18deg) brightness(1.12); }
  66% { filter: hue-rotate(-12deg) brightness(0.92); }
}

body.still.look-anim .wood-rail,
body.still.look-anim .felt,
body.still.look-anim .felt-emblem,
body.still.look-anim .table-grain,
body.still .lava-river,
body.still .lava-hot,
body.still .lava-glow {
  animation: none !important;
}

@keyframes look-glow {
  0%, 100% { box-shadow: 0 0 0 3px rgba(232, 212, 138, 0.45), 0 10px 22px rgba(0, 0, 0, 0.32); }
  50% { box-shadow: 0 0 22px 6px rgba(241, 211, 106, 0.55), 0 10px 22px rgba(0, 0, 0, 0.32); }
}

@keyframes look-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.1); }
}

@keyframes look-shimmer {
  0%, 100% { filter: brightness(1) saturate(1); }
  50% { filter: brightness(1.14) saturate(1.15); }
}

@keyframes look-neon {
  0%, 100% { filter: brightness(1) drop-shadow(0 0 0 transparent); }
  50% { filter: brightness(1.12) drop-shadow(0 0 10px rgba(80, 255, 220, 0.35)); }
}

@keyframes look-ember {
  0%, 100% { filter: brightness(1) saturate(1); }
  40% { filter: brightness(1.16) saturate(1.2); }
  70% { filter: brightness(0.94) saturate(1.05); }
}

@keyframes look-aurora {
  0% { filter: hue-rotate(0deg); }
  50% { filter: hue-rotate(28deg); }
  100% { filter: hue-rotate(0deg); }
}

@keyframes look-sparkle {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.95; }
}

@keyframes look-mist {
  0% { opacity: 0.35; }
  100% { opacity: 0.7; }
}

/* Pickers */
.look-chooser {
  display: grid;
  gap: 8px;
}

.look-current {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 1px solid #d7cbb0;
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  padding: 6px 10px;
  cursor: pointer;
}

.look-current-art {
  min-height: 40px;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}

.look-current-art .mini-table {
  height: 40px;
  position: relative;
}

.look-current-art .mini-table.gif::after {
  content: "GIF";
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 8px;
  letter-spacing: 0.12em;
  font-weight: 800;
  background: #d4b44a;
  color: #2a1a08;
  border-radius: 999px;
  padding: 1px 5px;
}

.look-current-art .avatar.mini {
  width: 40px;
  height: 40px;
  margin: 0;
}

.look-current-art .swatch-tile {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.look-current-meta {
  display: grid;
  gap: 2px;
}

.look-current-name {
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
}

.look-current-hint {
  font-size: 11px;
  color: #7a6848;
}

.look-chooser.open .look-current {
  border-color: #b8902a;
  box-shadow: 0 0 0 2px rgba(184, 144, 42, 0.28);
}

.look-tray {
  max-height: none;
  overflow: auto;
  padding: 4px 2px 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.look-tray::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.look-tray[hidden] {
  display: none !important;
}

#picks-table {
  grid-template-columns: repeat(3, 1fr);
}

.mini-table {
  display: block;
  width: 100%;
  height: 44px;
  border-radius: 10px;
  padding: 5px;
  box-sizing: border-box;
  background: var(--mini-wood, linear-gradient(145deg, #d2b07a, #7a5228 62%, #4a3018));
  box-shadow: inset 0 0 0 2px var(--mini-inset, rgba(90, 50, 18, 0.45));
}

.mini-rail {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 7px;
  overflow: hidden;
  position: relative;
}

.mini-pad {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  background: var(--mini-felt, radial-gradient(ellipse at 50% 35%, #2f8f5c, #0a3324));
}

.mini-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0.35;
  background: repeating-linear-gradient(110deg, rgba(255,255,255,0.18) 0 2px, transparent 2px 7px);
}

.mini-gif {
  display: none;
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(115deg, transparent 32%, rgba(255,255,255,0.55) 50%, transparent 68%),
    radial-gradient(circle at 20% 80%, rgba(255, 220, 140, 0.28), transparent 46%);
  background-size: 220% 100%, 140% 140%;
  animation: gif-sheen 1.15s linear infinite, gif-bob 1.6s steps(6) infinite;
  mix-blend-mode: screen;
}

.mini-table.gif .mini-gif,
.mini-table[data-anim] .mini-gif {
  display: block;
}

.mini-table.gif .mini-rail {
  animation: gif-frame 0.72s steps(4) infinite;
}

@keyframes gif-sheen {
  0% { background-position: 130% 0, 0 0; }
  100% { background-position: -130% 0, 100% 40%; }
}

@keyframes gif-bob {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@keyframes gif-frame {
  0% { filter: brightness(1) saturate(1); }
  25% { filter: brightness(1.22) saturate(1.25); }
  50% { filter: brightness(0.9) saturate(1.05); }
  75% { filter: brightness(1.14) saturate(1.18); }
}

.gif-chip {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.12em;
  font-weight: 800;
  background: #d4b44a;
  color: #2a1a08;
  border-radius: 999px;
  padding: 1px 5px;
  z-index: 2;
}

.skin-pick.has-gif {
  position: relative;
}

.skin-pick.has-gif .mini-table,
.skin-pick.has-gif .swatch-tile {
  outline: 1px solid rgba(212, 180, 74, 0.45);
}

.felt-gif {
  display: none;
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
  background:
    linear-gradient(115deg, transparent 36%, rgba(255,255,255,0.2) 50%, transparent 64%),
    radial-gradient(circle at 30% 40%, rgba(255, 236, 180, 0.16), transparent 50%);
  background-size: 240% 100%, 90% 90%;
}

body.table-gif .felt-gif {
  display: block;
  animation: gif-sheen 2s linear infinite, gif-bob 1.8s steps(5) infinite;
}

body.still .felt-gif,
body.still .mini-gif,
body.still .mini-table.gif .mini-rail,
body.still .domino.skin-calabaza,
body.still .domino.skin-fantasma,
body.still .domino.skin-dyn,
body.still .domino[class*="skin-anim-"],
body.still .swatch-tile.gif {
  animation: none !important;
}

.mini-table[data-skin="patio"] {
  --mini-wood: linear-gradient(145deg, #d2b07a, #7a5228 62%, #4a3018);
  --mini-felt: radial-gradient(ellipse at 50% 35%, #2f8f5c, #0a3324);
  --mini-inset: #a87a42;
}

.mini-table[data-skin="caoba"] {
  --mini-wood: linear-gradient(145deg, #7a3a22, #4a1c10 40%, #2a0e08);
  --mini-felt: radial-gradient(ellipse at 50% 35%, #a33a48, #2c0c12);
  --mini-inset: #5a2418;
}

.mini-table[data-skin="dominicana"] {
  --mini-wood: linear-gradient(90deg, #002d62 0 12%, #8a6234 12% 88%, #ce1126 88% 100%);
  --mini-felt: linear-gradient(#f4f6f8, #f4f6f8) 50% 50% / 16% 100% no-repeat,
    linear-gradient(#f4f6f8, #f4f6f8) 50% 50% / 100% 22% no-repeat,
    linear-gradient(90deg, #002d62 50%, #ce1126 50%);
  --mini-inset: #4a3018;
}

.mini-table[data-anim="glow"] .mini-pad { animation: look-glow 3.2s ease-in-out infinite; }
.mini-table[data-anim="pulse"] { animation: look-pulse 2.8s ease-in-out infinite; }
.mini-table[data-anim="shimmer"] { animation: look-shimmer 3.6s ease-in-out infinite; }
.mini-table[data-anim="neon"] { animation: look-neon 2.4s ease-in-out infinite; }
.mini-table[data-anim="ember"] .mini-pad { animation: look-ember 2.2s ease-in-out infinite; }
.mini-table[data-anim="river"] .mini-pad {
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 90% at 32% 72%, #ffb428 0%, #c42808 40%, #140604 100%);
  animation: lava-heat 5.5s ease-in-out infinite;
}
.mini-table[data-anim="aurora"] .mini-pad { animation: look-aurora 9s linear infinite; }
.mini-table[data-anim="sparkle"] .mini-shine { animation: look-sparkle 2.8s ease-in-out infinite; }
.mini-table[data-anim="mist"] .mini-shine { animation: look-mist 7s ease-in-out infinite alternate; }
.mini-table[data-anim="sway"] .mini-pad { animation: gif-sway 1.05s steps(5) infinite; }
.mini-table[data-anim="wave"] .mini-pad { animation: gif-wave 1.4s steps(6) infinite; }
.mini-table[data-anim="gleam"] .mini-pad { animation: gif-gleam 0.9s steps(4) infinite; }
.mini-table[data-anim="steam"] .mini-shine { animation: gif-steam 1.2s steps(5) infinite; }
.mini-table[data-anim="grain"] .mini-shine { animation: gif-grain 0.55s steps(3) infinite; }
.mini-table[data-anim="jewel"] .mini-pad { animation: gif-jewel 0.8s steps(4) infinite; }
.mini-table[data-anim="caustic"] .mini-pad { animation: gif-caustic 1.6s steps(6) infinite; }
.mini-table[data-anim="jack"] .mini-pad { animation: jack-flicker 0.85s steps(4) infinite; }
.mini-table[data-anim="haunt"] .mini-pad { animation: haunt-fog 1.35s steps(5) infinite; }

body.still .mini-table,
body.still .mini-table .mini-pad,
body.still .mini-table .mini-shine {
  animation: none !important;
}

.skin-pick {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.skin-pick:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.03);
}

.skin-pick.selected {
  transform: scale(1.07);
  z-index: 2;
  border-color: #b8902a;
  box-shadow: 0 8px 18px rgba(80, 50, 10, 0.22), 0 0 0 2px rgba(184, 144, 42, 0.4);
}

.skin-pick.pop {
  animation: pick-pop 0.42s cubic-bezier(0.18, 1.4, 0.32, 1);
}

.skin-pick:disabled {
  cursor: default;
}

@keyframes pick-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.16); }
  100% { transform: scale(1.07); }
}

.avatar .av-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  animation: av-bob 3.4s ease-in-out infinite;
  z-index: 0;
}

.avatar .av-initial {
  opacity: 0;
}

.avatar.mini .av-art {
  animation-duration: 4.2s;
}

@keyframes av-bob {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.06) rotate(-1.5deg); }
}

.avatar.av-live {
  box-shadow: 0 6px 14px rgba(0,0,0,0.35), 0 0 0 2px rgba(241, 211, 106, 0.35);
}

.av-live-chispa .av-art { animation: av-spark 1.5s ease-in-out infinite; }
.av-live-fuego .av-art { animation: av-flicker 1.05s ease-in-out infinite; }
.av-live-trueno .av-art { animation: av-flash 1.8s ease-in-out infinite; }
.av-live-brisa .av-art { animation: av-float 2.6s ease-in-out infinite; }
.av-live-ola .av-art { animation: av-wave 2.2s ease-in-out infinite; }
.avatar.av-gif { box-shadow: 0 6px 14px rgba(0,0,0,0.35), 0 0 0 2px rgba(80, 220, 160, 0.45); }
.av-live-merengue .av-art { animation: gif-av-dance 0.55s steps(4) infinite; }
.av-live-bachata .av-art { animation: gif-av-sway 0.7s steps(4) infinite; }
.av-live-cigua .av-art { animation: gif-av-hop 0.5s steps(3) infinite; }
.av-live-taino .av-art { animation: gif-av-glow 0.8s steps(4) infinite; }
.av-live-batey .av-art { animation: gif-av-nod 0.65s steps(4) infinite; }
.av-live-faro .av-art { animation: gif-av-beam 0.9s steps(5) infinite; }
.av-live-coco .av-art { animation: gif-av-bounce 0.6s steps(4) infinite; }
.av-gif-1 .av-art { animation: gif-av-dance 0.55s steps(4) infinite; }
.av-gif-2 .av-art { animation: gif-av-sway 0.7s steps(4) infinite; }
.av-gif-3 .av-art { animation: gif-av-hop 0.5s steps(3) infinite; }
.av-gif-4 .av-art { animation: gif-av-glow 0.8s steps(4) infinite; }
.av-gif-5 .av-art { animation: gif-av-nod 0.65s steps(4) infinite; }
.av-gif-6 .av-art { animation: gif-av-beam 0.9s steps(5) infinite; }
.av-gif-7 .av-art { animation: gif-av-bounce 0.6s steps(4) infinite; }

@keyframes gif-av-dance {
  0% { transform: rotate(-8deg) scale(1); filter: brightness(1); }
  50% { transform: rotate(8deg) scale(1.08); filter: brightness(1.15); }
  100% { transform: rotate(-8deg) scale(1); filter: brightness(1); }
}
@keyframes gif-av-sway {
  0% { transform: translateX(-3px) rotate(-4deg); }
  50% { transform: translateX(3px) rotate(4deg); }
  100% { transform: translateX(-3px) rotate(-4deg); }
}
@keyframes gif-av-hop {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.06); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes gif-av-glow {
  0% { filter: brightness(1) saturate(1); transform: scale(1); }
  50% { filter: brightness(1.28) saturate(1.2); transform: scale(1.07); }
  100% { filter: brightness(1) saturate(1); transform: scale(1); }
}
@keyframes gif-av-nod {
  0% { transform: rotate(-5deg) translateY(0); }
  50% { transform: rotate(5deg) translateY(-3px); }
  100% { transform: rotate(-5deg) translateY(0); }
}
@keyframes gif-av-beam {
  0% { filter: brightness(0.92); transform: scale(1); }
  50% { filter: brightness(1.4); transform: scale(1.08); }
  100% { filter: brightness(0.92); transform: scale(1); }
}
@keyframes gif-av-bounce {
  0% { transform: translateY(0) rotate(-3deg) scale(1); }
  50% { transform: translateY(-6px) rotate(3deg) scale(1.08); }
  100% { transform: translateY(0) rotate(-3deg) scale(1); }
}

@keyframes av-spark {
  0%, 100% { transform: scale(1); filter: brightness(1) saturate(1); }
  50% { transform: scale(1.08); filter: brightness(1.22) saturate(1.25); }
}

@keyframes av-flicker {
  0%, 100% { transform: scale(1) rotate(0deg); filter: brightness(1) hue-rotate(0deg); }
  30% { transform: scale(1.06) rotate(-2deg); filter: brightness(1.2) hue-rotate(-8deg); }
  65% { transform: scale(0.98) rotate(1.5deg); filter: brightness(0.92) hue-rotate(6deg); }
}

@keyframes av-flash {
  0%, 100% { transform: scale(1); filter: brightness(1) contrast(1); }
  12% { transform: scale(1.1); filter: brightness(1.45) contrast(1.15); }
  24% { transform: scale(1); filter: brightness(0.95); }
}

@keyframes av-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-3px) rotate(2deg); }
}

@keyframes av-wave {
  0%, 100% { transform: scale(1) translateX(0); filter: hue-rotate(0deg); }
  50% { transform: scale(1.05) translateX(1px); filter: hue-rotate(18deg); }
}

body.still .avatar .av-art,
body.still .avatar.av-live .av-art {
  animation: none;
}

.react-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  pointer-events: auto;
}

.react-btn {
  width: 48px;
  height: 48px;
  padding: 2px;
  border-radius: 14px;
  border: 1px solid rgba(212, 180, 74, 0.35);
  background: transparent;
  cursor: pointer;
  box-shadow: none;
  touch-action: manipulation;
  transition: transform 0.15s ease, filter 0.15s ease, opacity 0.15s ease;
}

.react-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  animation: react-idle 1.15s ease-in-out infinite;
}

.react-btn:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.08);
}

.react-btn:disabled,
.react-btn.cooling {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

.avatar-stack {
  position: relative;
}

.react-pop {
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 64px;
  height: 64px;
  margin: 0 0 4px;
  transform: translateX(-50%) scale(0.4);
  opacity: 0;
  pointer-events: none;
  z-index: 8;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.4));
}

.react-pop img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

.react-pop.show {
  animation: react-pop 2.1s cubic-bezier(0.18, 1.35, 0.32, 1) both;
}

.react-pop.show img {
  animation: react-wiggle 0.38s ease-in-out infinite;
}

.react-pop.show[data-kind="laugh"] img { animation-name: react-laugh; }
.react-pop.show[data-kind="angry"] img { animation-name: react-angry; }
.react-pop.show[data-kind="cry"] img { animation-name: react-cry; }
.react-pop.show[data-kind="wink"] img { animation-name: react-wink; }
.react-pop.show[data-kind="cool"] img { animation-name: react-cool; }
.react-pop.show[data-kind="wow"] img { animation-name: react-wow; }
.react-pop.show[data-kind="love"] img { animation-name: react-love; }
.react-pop.show[data-kind="think"] img { animation-name: react-think; }

@keyframes react-wink {
  0%, 100% { transform: rotate(-6deg) scale(1); }
  50% { transform: rotate(6deg) scale(1.1); }
}

@keyframes react-cool {
  0%, 100% { transform: translateY(0) rotate(-2deg) scale(1); }
  50% { transform: translateY(-3px) rotate(2deg) scale(1.05); }
}

@keyframes react-wow {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.16); }
}

@keyframes react-love {
  0%, 100% { transform: scale(1) rotate(-4deg); }
  35% { transform: scale(1.14) rotate(3deg); }
  70% { transform: scale(1.04) rotate(-2deg); }
}

@keyframes react-think {
  0%, 100% { transform: rotate(-5deg) translateY(0); }
  50% { transform: rotate(-1deg) translateY(-3px); }
}

@keyframes react-idle {
  0%, 100% { transform: translateY(0) rotate(-4deg) scale(1); }
  50% { transform: translateY(-4px) rotate(4deg) scale(1.08); }
}

@keyframes react-wiggle {
  0%, 100% { transform: rotate(-7deg) scale(1); }
  50% { transform: rotate(7deg) scale(1.08); }
}

@keyframes react-laugh {
  0%, 100% { transform: rotate(-8deg) scale(1) translateY(0); }
  50% { transform: rotate(8deg) scale(1.12) translateY(-4px); }
}

@keyframes react-angry {
  0%, 100% { transform: translateX(-3px) rotate(-6deg); }
  50% { transform: translateX(3px) rotate(6deg); }
}

@keyframes react-cry {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(4px) scale(1.06); }
}

@keyframes react-pop {
  0% { opacity: 0; transform: translateX(-50%) translateY(8px) scale(0.35); }
  14% { opacity: 1; transform: translateX(-50%) translateY(-6px) scale(1.12); }
  28% { transform: translateX(-50%) translateY(0) scale(1); }
  70% { opacity: 1; transform: translateX(-50%) translateY(-4px) scale(1.04); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-18px) scale(0.9); }
}

#hud-left .react-pop,
#hud-right .react-pop {
  left: 50%;
  bottom: auto;
  top: -8px;
}

@media (prefers-reduced-motion: reduce) {
  body.look-anim .wood-rail,
  body.look-anim .felt,
  body.look-anim .felt-emblem,
  body.look-anim .table-grain,
  .avatar .av-art,
  .avatar.av-live .av-art,
  .mini-table,
  .mini-table .mini-pad,
  .mini-table .mini-shine,
  .skin-pick.pop,
  .react-pop.show,
  .react-btn img,
  .lava-river,
  .lava-hot,
  .lava-glow,
  .felt-gif,
  .mini-gif,
  .mini-table.gif .mini-rail,
  .domino.skin-calabaza,
  .domino.skin-fantasma,
  .domino.skin-dyn,
  .swatch-calabaza,
  .swatch-fantasma {
    animation: none !important;
  }
}

@media (max-width: 820px) {
  .react-bar { gap: 6px; margin-top: 4px; }
  .react-btn { width: 40px; height: 40px; border-radius: 12px; }
}

@media (max-width: 520px), (max-height: 560px) {
  .react-bar { gap: 4px; margin-top: 2px; }
  .react-btn { width: 34px; height: 34px; border-radius: 10px; }
}

@media (max-height: 500px) {
  .react-btn { width: 30px; height: 30px; }
}
