/* Live emotes (owner 11/4, Clash Royale-style): the bar in Pack Battles + Card Duels and the bubble that pops on a seat.
   public-site/live-emotes.js · card-battles.js · cards.js (playDuel) */
.emo-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; min-width: 0; padding: 8px; border-radius: 14px;
  background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.08); transition: opacity .2s; }
.emo-bar .emo-b { padding: 0; flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; cursor: pointer;
  font: 22px/1 "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; color: #fff;
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 3px 0 rgba(0,0,0,.45); transition: transform .12s, background .15s, box-shadow .12s; -webkit-tap-highlight-color: transparent; }
.emo-bar .emo-b.txt { width: auto; padding: 0 12px; font: 900 17px/1 "Barlow Condensed", sans-serif; letter-spacing: .06em; color: #1c1405;
  background: linear-gradient(180deg, #ffe9a3, #e4ae39); border-color: rgba(255,224,140,.7); }
.emo-bar .emo-b.pk { border-color: rgba(197,139,255,.45); }
.emo-bar .emo-b:hover:not(:disabled) { transform: translateY(-2px); background: rgba(255,255,255,.16); }
.emo-bar .emo-b.txt:hover:not(:disabled) { background: linear-gradient(180deg, #fff1c1, #f0bd4c); }
.emo-bar .emo-b:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.45); }
.emo-bar.cool { opacity: .45; }
.emo-bar .emo-b:disabled { cursor: default; }

/* the bubble: absolute on the seat / name chip */
.emo-bub { position: absolute; z-index: 20; left: 6px; top: -18px; display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 6px;
  border-radius: 16px 16px 16px 4px; pointer-events: none; font: 28px/1 "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  background: #fff; color: #111; box-shadow: 0 8px 22px rgba(0,0,0,.55), 0 0 0 2px rgba(0,0,0,.25);
  animation: emoPop .45s cubic-bezier(.2,1.6,.4,1) both, emoOut .35s ease-in calc(var(--life, 4000ms) - 350ms) forwards; }
.emo-bub.txt { font: 900 22px/1 "Barlow Condensed", sans-serif; letter-spacing: .06em; color: #1c1405; background: linear-gradient(180deg, #fff1c1, #e4ae39); }
.emo-bub.still { animation: emoOut .35s ease-in calc(var(--life, 4000ms) - 350ms) forwards; }
@keyframes emoPop { 0% { transform: scale(.2) translateY(14px); opacity: 0; } 60% { transform: scale(1.18) translateY(-4px); opacity: 1; } 80% { transform: scale(.94); } 100% { transform: scale(1); } }
@keyframes emoOut { to { transform: scale(.6) translateY(-10px); opacity: 0; } }

/* Pack Battles */
.pbt-emo { min-width: 0; }
.pbt-emo:empty { display: none; }

/* Card Duels: You VS them chips (bubbles pop on these) + the bar */
.tc-demo { display: grid; gap: 8px; min-width: 0; }
.tc-demo-names { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; padding-top: 14px; }
.tc-demo-names i { font: 900 16px/1 "Barlow Condensed", sans-serif; font-style: normal; color: #ff8a6a; letter-spacing: .08em; }
.tc-demo-n { position: relative; min-width: 0; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  font: 800 17px/1.1 "Barlow Condensed", sans-serif; color: #fff; text-align: center; white-space: nowrap; overflow: visible; text-overflow: ellipsis; }
.tc-demo-n.me { border-color: rgba(143,227,255,.4); color: #bff1ff; }
.tc-demo-n .emo-bub { top: -24px; }

/* Emote Pack crate prize (cases.js art() + Locker): the five emotes as a little bubble cluster */
.cx-emo { display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 4px; max-width: 132px; margin: auto;
  font: 24px/1 "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; }
.cx-emo i { font-style: normal; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px 12px 12px 4px;
  background: rgba(255,255,255,.92); box-shadow: 0 4px 12px rgba(0,0,0,.45); }
.cx-emo i:nth-child(odd) { transform: rotate(-6deg); } .cx-emo i:nth-child(even) { transform: rotate(5deg) translateY(3px); }
.cx-emo.big { max-width: 220px; gap: 8px; font-size: 38px; }
.cx-emo.big i { width: 60px; height: 60px; border-radius: 18px 18px 18px 6px; }

@media (max-width: 560px) {
  .cx-emo.big { max-width: 170px; gap: 6px; font-size: 30px; }
  .cx-emo.big i { width: 48px; height: 48px; }
  .emo-bar { gap: 5px; padding: 6px; }
  .emo-bar .emo-b { width: 36px; height: 36px; font-size: 20px; border-radius: 10px; }
  .emo-bar .emo-b.txt { font-size: 15px; padding: 0 10px; }
  .emo-bub { min-width: 40px; height: 40px; font-size: 24px; top: -16px; }
  .emo-bub.txt { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { .emo-bub { animation: emoOut .35s ease-in calc(var(--life, 4000ms) - 350ms) forwards; } }
