/* Truco Online · mesa-sinais.css (05/11/2026)
   Camada por cima do MatchTable do app — SÓ ícones, botões e entrega do sinal. A mesa, o feltro e o layout ficam como estão.
   Carregar DEPOIS do CSS do bundle (index.html e app-shell.html), junto com /mesa-sinais.js.
   Âncoras usadas (do bundle atual): .mesa-root, .mesa-btn(-primary|-secondary|.mesa-risk|.mesa-signal), [role=dialog][aria-label^="Sinais"] .mesa-row,
   button[aria-label^="Reagir com"], div[aria-label^="Reação: "], .mesa-sig-glow, .mesa-sig-card, div.rounded-full[aria-label=<apelido>] (avatar). */

/* ====== 1. Botões de ação ====== */
#root .mesa-root .mesa-btn{border-radius:12px!important;text-transform:none;letter-spacing:.02em;font-weight:800}
#root .mesa-root .mesa-btn-secondary.mesa-risk{background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.16);color:#C9CBE0;box-shadow:none}
#root .mesa-root .mesa-btn-secondary.mesa-risk:not(:disabled):hover{background:rgba(239,68,68,.12);border-color:rgba(239,68,68,.5);color:#FCA5A5;filter:none}
#root .mesa-root .mesa-signal{position:relative;background:linear-gradient(180deg,#2A2340,#1D1830);border-color:rgba(245,197,66,.6);color:#F5C542;box-shadow:none}
#root .mesa-root .mesa-signal.is-open{background:rgba(245,197,66,.16);border-color:#F5C542;color:#FFE38A}
#root .mesa-root .mesa-signal.ms-sent{border-color:#19C56D;color:transparent!important}
#root .mesa-root .mesa-signal.ms-sent>*{visibility:hidden}
#root .mesa-root .mesa-signal.ms-sent::after{content:"Enviado ✓";position:absolute;inset:0;display:grid;place-items:center;font-weight:800;letter-spacing:.02em;color:#4ADE80}
#root .mesa-root .mesa-signal.ms-cool::before{content:"";position:absolute;left:10px;right:10px;bottom:3px;height:2px;border-radius:2px;background:#F5C542;transform-origin:left;animation:ms-cool 8s linear forwards}
@keyframes ms-cool{from{transform:scaleX(1)}to{transform:scaleX(0)}}
#root .mesa-root .mesa-btn-primary{font-family:"Bebas Neue",Impact,"Arial Narrow",sans-serif;font-weight:400;text-transform:uppercase;letter-spacing:1.5px;background:linear-gradient(180deg,#F25C5C,#D7263D 60%,#B81E33);border-color:transparent;text-shadow:none;box-shadow:0 8px 22px rgba(215,38,61,.35),inset 0 1px 0 rgba(255,255,255,.2)}
#root .mesa-root .mesa-btn-primary .lucide,#root .mesa-root .mesa-btn-primary svg{display:none}

/* ====== 2. Painel de sinais: carta-sinal no lugar da carinha ====== */
#root .mesa-root [role=dialog][aria-label^="Sinais"] .mesa-row{border-radius:12px;background:rgba(255,255,255,.035);border-color:rgba(255,255,255,.1);transition:background .12s,border-color .12s,transform .12s}
#root .mesa-root [role=dialog][aria-label^="Sinais"] .mesa-row:hover{background:rgba(245,197,66,.08);border-color:rgba(245,197,66,.55);transform:translateY(-2px)}
#root .mesa-root [role=dialog][aria-label^="Sinais"] .mesa-row>span:first-child{display:grid;place-items:center}
#root .mesa-root [role=dialog][aria-label^="Sinais"] .mesa-row>span:first-child>svg{display:none}
#root .mesa-root [role=dialog][aria-label^="Sinais"] .mesa-row>span:first-child::before{content:"";width:34px;height:46px;border-radius:5px;background:#FBFBFD;color:#1B1D2E;display:grid;place-items:center;font:900 20px/1 "Nunito Variable","Nunito",system-ui,sans-serif;box-shadow:0 3px 8px rgba(0,0,0,.45);position:relative}
#root .mesa-root [role=dialog][aria-label^="Sinais"] .mesa-row>span:first-child::after{content:"";position:absolute;font:900 8px/1 "Nunito Variable","Nunito",system-ui,sans-serif;color:#1B1D2E;transform:translate(-9px,-15px);opacity:.9}
#root .mesa-root [role=dialog][aria-label^="Sinais"] .mesa-row[aria-label^="Zap"]>span:first-child::before{content:"♣"}
#root .mesa-root [role=dialog][aria-label^="Sinais"] .mesa-row[aria-label^="Zap"]>span:first-child::after{content:"4♣"}
#root .mesa-root [role=dialog][aria-label^="Sinais"] .mesa-row[aria-label^="Copas"]>span:first-child::before{content:"♥";color:#D7263D}
#root .mesa-root [role=dialog][aria-label^="Sinais"] .mesa-row[aria-label^="Copas"]>span:first-child::after{content:"7♥";color:#D7263D}
#root .mesa-root [role=dialog][aria-label^="Sinais"] .mesa-row[aria-label^="Espadilha"]>span:first-child::before{content:"♠"}
#root .mesa-root [role=dialog][aria-label^="Sinais"] .mesa-row[aria-label^="Espadilha"]>span:first-child::after{content:"A♠"}
#root .mesa-root [role=dialog][aria-label^="Sinais"] .mesa-row[aria-label^="Pica-fumo"]>span:first-child::before{content:"♦";color:#D7263D}
#root .mesa-root [role=dialog][aria-label^="Sinais"] .mesa-row[aria-label^="Pica-fumo"]>span:first-child::after{content:"7♦";color:#D7263D}
#root .mesa-root [role=dialog][aria-label^="Sinais"] .mesa-row[aria-label^="Tenho 3"]>span:first-child::before{content:"3"}
#root .mesa-root [role=dialog][aria-label^="Sinais"] .mesa-row[aria-label^="Tenho 2"]>span:first-child::before{content:"2"}
#root .mesa-root [role=dialog][aria-label^="Sinais"] .mesa-row[aria-label^="Tô limpo"]>span:first-child::before,
#root .mesa-root [role=dialog][aria-label^="Sinais"] .mesa-row[aria-label^="Pede truco"]>span:first-child::before,
#root .mesa-root [role=dialog][aria-label^="Sinais"] .mesa-row[aria-label^="Segura"]>span:first-child::before,
#root .mesa-root [role=dialog][aria-label^="Sinais"] .mesa-row[aria-label^="Vamo blefar"]>span:first-child::before{width:40px;height:40px;border-radius:10px;background-color:#262640;box-shadow:inset 0 0 0 1px rgba(255,255,255,.14);background-repeat:no-repeat;background-position:center;background-size:22px}
#root .mesa-root [role=dialog][aria-label^="Sinais"] .mesa-row[aria-label^="Tô limpo"]>span:first-child::before{background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23fff%22 stroke-width=%222.4%22 stroke-linecap=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%228%22/%3E%3Cpath d=%22M7 7l10 10%22/%3E%3C/svg%3E")}
#root .mesa-root [role=dialog][aria-label^="Sinais"] .mesa-row[aria-label^="Pede truco"]>span:first-child::before{background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23fff%22 stroke-width=%222.4%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4 11v2a1 1 0 0 0 1 1h3l6 4V6L8 10H5a1 1 0 0 0-1 1zM17 9a4 4 0 0 1 0 6%22/%3E%3C/svg%3E")}
#root .mesa-root [role=dialog][aria-label^="Sinais"] .mesa-row[aria-label^="Segura"]>span:first-child::before{background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23fff%22 stroke-width=%222.4%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M8 11V6a1.5 1.5 0 0 1 3 0v5M11 11V4.5a1.5 1.5 0 0 1 3 0V11M14 11V6a1.5 1.5 0 0 1 3 0v7a6 6 0 0 1-12 0v-3a1.5 1.5 0 0 1 3 0%22/%3E%3C/svg%3E")}
#root .mesa-root [role=dialog][aria-label^="Sinais"] .mesa-row[aria-label^="Vamo blefar"]>span:first-child::before{background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23fff%22 stroke-width=%222.4%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 10h18M5 10l1 5h4l1-5M13 10l1 5h4l1-5M10 13h4%22/%3E%3C/svg%3E")}
#root .mesa-root [role=dialog][aria-label^="Sinais"] .mesa-row .font-black{font-size:12px!important;line-height:1.1}
#root .mesa-root [role=dialog][aria-label^="Sinais"] .mesa-row .font-semibold{font-size:9.5px!important;opacity:.75}
@media (min-width:761px){
  #root .mesa-root [role=dialog][aria-label^="Sinais"]{width:540px!important}
  #root .mesa-root [role=dialog][aria-label^="Sinais"] .grid{grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:8px!important}
  #root .mesa-root [role=dialog][aria-label^="Sinais"] .mesa-row{grid-column:span 2;padding:10px 4px 9px!important;gap:4px!important}
  #root .mesa-root [role=dialog][aria-label^="Sinais"] .mesa-row:nth-child(n+7){grid-column:span 3;flex-direction:row;justify-content:flex-start;gap:10px;padding:8px 12px!important;text-align:left;min-height:0!important}
  #root .mesa-root [role=dialog][aria-label^="Sinais"] .mesa-row:nth-child(n+7)>span:first-child::before{width:30px;height:30px;border-radius:8px;background-size:17px}
  #root .mesa-root [role=dialog][aria-label^="Sinais"] .mesa-row:nth-child(n+7) .font-black{text-align:left}
  #root .mesa-root [role=dialog][aria-label^="Sinais"] .mesa-row:nth-child(n+7) .font-semibold{display:none}
}


/* ====== 3. Reações: stickers próprios no lugar dos emojis do sistema ====== */
#root .mesa-root button[aria-label^="Reagir com"]{text-indent:-9999px;overflow:hidden;white-space:nowrap;background-repeat:no-repeat;background-position:center;background-size:66%;border-radius:12px!important}
#root .mesa-root div[aria-label^="Reação: "]{width:1.25em;height:1.25em;min-width:1.25em;text-indent:-9999px;overflow:hidden;white-space:nowrap;background-repeat:no-repeat;background-position:center;background-size:contain;filter:drop-shadow(0 6px 10px rgba(0,0,0,.6))}
#root .mesa-root button[aria-label="Reagir com 😂"],#root .mesa-root div[aria-label="Reação: 😂"]{background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 48 48%22%3E%3Ccircle cx=%2224%22 cy=%2224%22 r=%2221%22 fill=%22%23FFD166%22/%3E%3Ccircle cx=%2224%22 cy=%2224%22 r=%2221%22 fill=%22none%22 stroke=%22%232B2140%22 stroke-width=%222%22/%3E%3Cpath d=%22M14 20q3-3 6 0M28 20q3-3 6 0%22 stroke=%22%232B2140%22 stroke-width=%222.2%22 fill=%22none%22 stroke-linecap=%22round%22/%3E%3Cpath d=%22M14 27h20q-2 10-10 10t-10-10z%22 fill=%22%232B2140%22/%3E%3Cpath d=%22M17 31h14q-1 4-7 4t-7-4z%22 fill=%22%23F25C5C%22/%3E%3Cpath d=%22M38 14q4 4 2 8%22 stroke=%22%2322D3EE%22 stroke-width=%223%22 fill=%22none%22 stroke-linecap=%22round%22/%3E%3C/svg%3E")}#root .mesa-root button[aria-label="Reagir com 😎"],#root .mesa-root div[aria-label="Reação: 😎"]{background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 48 48%22%3E%3Ccircle cx=%2224%22 cy=%2224%22 r=%2221%22 fill=%22%23FFD166%22/%3E%3Ccircle cx=%2224%22 cy=%2224%22 r=%2221%22 fill=%22none%22 stroke=%22%232B2140%22 stroke-width=%222%22/%3E%3Crect x=%2210%22 y=%2217%22 width=%2212%22 height=%229%22 rx=%223%22 fill=%22%232B2140%22/%3E%3Crect x=%2226%22 y=%2217%22 width=%2212%22 height=%229%22 rx=%223%22 fill=%22%232B2140%22/%3E%3Cpath d=%22M22 21h4M8 19h3M37 19h3%22 stroke=%22%232B2140%22 stroke-width=%222%22/%3E%3Cpath d=%22M17 33q7 5 14-1%22 stroke=%22%232B2140%22 stroke-width=%222.4%22 fill=%22none%22 stroke-linecap=%22round%22/%3E%3C/svg%3E")}#root .mesa-root button[aria-label="Reagir com 😭"],#root .mesa-root div[aria-label="Reação: 😭"]{background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 48 48%22%3E%3Ccircle cx=%2224%22 cy=%2224%22 r=%2221%22 fill=%22%23FFD166%22/%3E%3Ccircle cx=%2224%22 cy=%2224%22 r=%2221%22 fill=%22none%22 stroke=%22%232B2140%22 stroke-width=%222%22/%3E%3Ccircle cx=%2217%22 cy=%2221%22 r=%222.2%22 fill=%22%232B2140%22/%3E%3Ccircle cx=%2231%22 cy=%2221%22 r=%222.2%22 fill=%22%232B2140%22/%3E%3Cpath d=%22M17 36q7-5 14 0%22 stroke=%22%232B2140%22 stroke-width=%222.4%22 fill=%22none%22 stroke-linecap=%22round%22/%3E%3Cpath d=%22M15 25v11M33 25v11%22 stroke=%22%2322D3EE%22 stroke-width=%224%22 stroke-linecap=%22round%22/%3E%3C/svg%3E")}#root .mesa-root button[aria-label="Reagir com 🔥"],#root .mesa-root div[aria-label="Reação: 🔥"]{background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 48 48%22%3E%3Cpath d=%22M24 4c2 8 10 11 10 22a10 10 0 0 1-20 0c0-5 3-7 4-11 2 3 3 4 3 7 1-6 3-10 3-18z%22 fill=%22%23FF7A33%22 stroke=%22%232B2140%22 stroke-width=%222%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M24 24c1 4 5 5 5 9a5 5 0 0 1-10 0c0-3 2-4 2-7 1 1 2 2 3-2z%22 fill=%22%23FFD166%22/%3E%3C/svg%3E")}#root .mesa-root button[aria-label="Reagir com 🤯"],#root .mesa-root div[aria-label="Reação: 🤯"]{background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 48 48%22%3E%3Ccircle cx=%2224%22 cy=%2224%22 r=%2221%22 fill=%22%23FFD166%22/%3E%3Ccircle cx=%2224%22 cy=%2224%22 r=%2221%22 fill=%22none%22 stroke=%22%232B2140%22 stroke-width=%222%22/%3E%3Cpath d=%22M10 20c0-6 6-9 14-9s14 3 14 9%22 fill=%22%23F25C5C%22 stroke=%22%232B2140%22 stroke-width=%222%22/%3E%3Cpath d=%22M12 11l-3-5M20 9l-1-6M28 9l1-6M36 11l3-5%22 stroke=%22%23FF7A33%22 stroke-width=%222.6%22 stroke-linecap=%22round%22/%3E%3Ccircle cx=%2217%22 cy=%2226%22 r=%222.6%22 fill=%22%232B2140%22/%3E%3Ccircle cx=%2231%22 cy=%2226%22 r=%222.6%22 fill=%22%232B2140%22/%3E%3Cellipse cx=%2224%22 cy=%2236%22 rx=%224%22 ry=%224.5%22 fill=%22%232B2140%22/%3E%3C/svg%3E")}#root .mesa-root button[aria-label="Reagir com 😤"],#root .mesa-root div[aria-label="Reação: 😤"]{background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 48 48%22%3E%3Ccircle cx=%2224%22 cy=%2224%22 r=%2221%22 fill=%22%23FFD166%22/%3E%3Ccircle cx=%2224%22 cy=%2224%22 r=%2221%22 fill=%22none%22 stroke=%22%232B2140%22 stroke-width=%222%22/%3E%3Cpath d=%22M13 19l7 3M35 19l-7 3%22 stroke=%22%232B2140%22 stroke-width=%222.6%22 stroke-linecap=%22round%22/%3E%3Ccircle cx=%2218%22 cy=%2226%22 r=%222%22 fill=%22%232B2140%22/%3E%3Ccircle cx=%2230%22 cy=%2226%22 r=%222%22 fill=%22%232B2140%22/%3E%3Cpath d=%22M17 35h14%22 stroke=%22%232B2140%22 stroke-width=%222.6%22 stroke-linecap=%22round%22/%3E%3Cpath d=%22M4 30q3-2 6 0t6 0M32 30q3-2 6 0t6 0%22 stroke=%22%23D9DBE8%22 stroke-width=%222.4%22 fill=%22none%22 stroke-linecap=%22round%22/%3E%3C/svg%3E")}#root .mesa-root button[aria-label="Reagir com 🍻"],#root .mesa-root div[aria-label="Reação: 🍻"]{background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 48 48%22%3E%3Cpath d=%22M8 14h14l-2 20H10zM26 14h14l-2 20H28z%22 fill=%22%23FFD166%22 stroke=%22%232B2140%22 stroke-width=%222%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M9 14h12v5q-6 3-12 0zM27 14h12v5q-6 3-12 0z%22 fill=%22%23FFF4CC%22/%3E%3Cpath d=%22M12 36h8M30 36h8M16 34v6M34 34v6%22 stroke=%22%232B2140%22 stroke-width=%222.4%22 stroke-linecap=%22round%22/%3E%3Cpath d=%22M22 10l2-4M26 10l-2-4M24 8V3%22 stroke=%22%23F5C542%22 stroke-width=%222%22 stroke-linecap=%22round%22/%3E%3C/svg%3E")}#root .mesa-root button[aria-label="Reagir com 💣"],#root .mesa-root div[aria-label="Reação: 💣"]{background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 48 48%22%3E%3Ccircle cx=%2222%22 cy=%2229%22 r=%2214%22 fill=%22%234A4466%22 stroke=%22%232B2140%22 stroke-width=%222%22/%3E%3Ccircle cx=%2217%22 cy=%2224%22 r=%224%22 fill=%22%237C7A9A%22/%3E%3Cpath d=%22M30 18l5-6%22 stroke=%22%232B2140%22 stroke-width=%223%22 stroke-linecap=%22round%22/%3E%3Cpath d=%22M36 11l3-4M40 13l5-1M38 8l1-5%22 stroke=%22%23FF7A33%22 stroke-width=%222.6%22 stroke-linecap=%22round%22/%3E%3C/svg%3E")}#root .mesa-root button[aria-label="Reagir com 🫣"],#root .mesa-root div[aria-label="Reação: 🫣"]{background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 48 48%22%3E%3Ccircle cx=%2224%22 cy=%2224%22 r=%2221%22 fill=%22%23FFD166%22/%3E%3Ccircle cx=%2224%22 cy=%2224%22 r=%2221%22 fill=%22none%22 stroke=%22%232B2140%22 stroke-width=%222%22/%3E%3Cpath d=%22M15 21h6M27 21h6%22 stroke=%22%232B2140%22 stroke-width=%222.4%22 stroke-linecap=%22round%22/%3E%3Cpath d=%22M17 34h14%22 stroke=%22%232B2140%22 stroke-width=%222.4%22 stroke-linecap=%22round%22/%3E%3Cpath d=%22M38 12c3 4 4 6 4 8a4 4 0 0 1-8 0c0-2 1-4 4-8z%22 fill=%22%2322D3EE%22 stroke=%22%232B2140%22 stroke-width=%221.6%22/%3E%3C/svg%3E")}#root .mesa-root button[aria-label="Reagir com 👏"],#root .mesa-root div[aria-label="Reação: 👏"]{background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 48 48%22%3E%3Cpath d=%22M14 44V26l-4-6a2.5 2.5 0 0 1 4-3l4 5V12a2.5 2.5 0 0 1 5 0v10M23 22V9a2.5 2.5 0 0 1 5 0v13M28 22v-9a2.5 2.5 0 0 1 5 0v11M33 24v-5a2.5 2.5 0 0 1 5 0v14c0 7-5 11-12 11h-4%22 fill=%22%23F4C7A3%22 stroke=%22%232B2140%22 stroke-width=%222%22 stroke-linejoin=%22round%22 stroke-linecap=%22round%22/%3E%3Cpath d=%22M6 10l3 3M4 18h4M10 5l2 4%22 stroke=%22%23F52AB6%22 stroke-width=%222.4%22 stroke-linecap=%22round%22/%3E%3C/svg%3E")}
/* ====== 4. Entrega do sinal ====== */
/* some a carinha voando pela mesa (o JS avisa na hora, pelo badge) */
#root .mesa-root div:has(> div > .mesa-sig-glow){display:none!important}
/* cartão "fulano sinalizou": mesma linguagem (carta-sinal), sem carinha */
#root .mesa-root .mesa-sig-card>svg,#root .mesa-root .mesa-sig-card svg[viewBox="0 0 100 100"],#root .mesa-root .mesa-sig-card>span:has(> svg[viewBox="0 0 100 100"]){display:none!important}
#root .mesa-root .mesa-sig-card{translate:150px -54px!important;opacity:1!important;transition:opacity .3s ease}
#root .mesa-root .mesa-sig-card.ms-hide{opacity:0!important}
@media (max-width:760px){#root .mesa-root .mesa-sig-card{translate:80px -40px!important}}
.ms-strip{display:none!important}
#root .mesa-root .mesa-sig-card{border-radius:14px!important;background:#15121f!important;border:1px solid rgba(245,197,66,.65)!important;box-shadow:0 14px 34px rgba(0,0,0,.6),0 0 0 1px rgba(0,0,0,.4)!important}
#root .mesa-root .mesa-sig-card::before{content:attr(data-g);width:32px;height:44px;border-radius:5px;background:#FBFBFD;color:#1B1D2E;display:grid;place-items:center;font:900 19px/1 "Nunito Variable","Nunito",system-ui,sans-serif;box-shadow:0 3px 8px rgba(0,0,0,.45);flex:none}
#root .mesa-root .mesa-sig-card[data-c="red"]::before{color:#D7263D}
#root .mesa-root .mesa-sig-card[data-c="dark"]::before{background:#262640;color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.14);font-size:15px}
#root .mesa-root .mesa-sig-card .font-black{font-size:15px!important}
/* badge fixo no avatar (parceiro: dourado · meu: discreto) */
.ms-badge{position:absolute;right:-9px;top:-9px;width:28px;height:28px;border-radius:50%;background:#15121f;border:2px solid #F5C542;display:grid;place-items:center;transform:scale(0);transition:transform .25s cubic-bezier(.2,1.4,.4,1);z-index:6;box-shadow:0 0 0 3px rgba(0,0,0,.4),0 0 18px rgba(245,197,66,.45);pointer-events:none}
.ms-badge.on{transform:scale(1)}
.ms-badge.mine{border-color:rgba(245,197,66,.55);box-shadow:0 0 0 3px rgba(0,0,0,.4);width:24px;height:24px;right:-7px;top:-7px}
.ms-badge .g{font:900 14px/1 "Nunito Variable","Nunito",system-ui,sans-serif;color:#fff;font-style:normal}
.ms-badge.mine .g{font-size:12px}
.ms-badge .g.red{color:#FF6B63}
.ms-badge .g.sm{font-size:9px}
@keyframes ms-flash{0%,100%{box-shadow:none}25%,75%{box-shadow:0 0 0 6px rgba(245,197,66,.5),0 0 28px rgba(245,197,66,.85)}}
.ms-flash{animation:ms-flash 1.1s ease-in-out 2;border-radius:50%}
/* histórico da mão, ao lado do meu nome */
.ms-strip{position:absolute;display:flex;align-items:center;gap:6px;z-index:6;pointer-events:none;opacity:0;transform:translateY(6px);transition:opacity .25s,transform .25s;white-space:nowrap}
.ms-strip.on{opacity:1;transform:none}
.ms-strip small{font:900 9.5px/1 "Nunito Variable","Nunito",system-ui,sans-serif;letter-spacing:.1em;color:#7F7995;margin-right:2px}
.ms-strip .h{display:inline-flex;align-items:center;gap:5px;padding:4px 9px;border-radius:999px;background:rgba(16,13,28,.86);border:1px solid rgba(245,197,66,.45);font:800 11.5px/1 "Nunito Variable","Nunito",system-ui,sans-serif;color:#F0F1F9}
.ms-strip .h .g{font-weight:900}
.ms-strip .h .g.red{color:#FF6B63}
@media (max-width:760px){.ms-strip small{display:none}.ms-badge{width:24px;height:24px;right:-7px;top:-7px}.ms-badge .g{font-size:12px}}
@media (prefers-reduced-motion:reduce){.ms-flash{animation:none}.ms-badge{transition:none}}

/* ====== 5. Papel de parede: naipes grandes atrás da mesa (mesma textura do lobby e dos torneios) ====== */
#root .mesa-root .mesa-bg::after{content:"";position:absolute;inset:0;pointer-events:none;background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%221200%22 height=%221200%22 viewBox=%220 0 1200 1200%22%3E%3Cg fill=%22%23ffffff%22 fill-opacity=%220.065%22%3E%3Cpath transform=%22translate(40 60) rotate(-14 170 170) scale(3.4)%22 d=%22M50 6C40 26 16 38 16 58c0 12 10 20 20 18 5-1 9-4 11-8-1 9-5 15-11 20h28c-6-5-10-11-11-20 2 4 6 7 11 8 10 2 20-6 20-18C84 38 60 26 50 6z%22/%3E%3Cpath transform=%22translate(720 30) rotate(12 140 140) scale(2.8)%22 d=%22M50 90C30 72 8 56 8 34 8 20 18 10 30 10c8 0 15 4 20 11 5-7 12-11 20-11 12 0 22 10 22 24 0 22-22 38-42 56z%22/%3E%3Cpath transform=%22translate(640 620) rotate(-7 180 180) scale(3.6)%22 d=%22M50 8a16 16 0 0 0-9 29A16 16 0 1 0 45 64c-1 9-5 16-11 22h32c-6-6-10-13-11-22a16 16 0 1 0 4-27A16 16 0 0 0 50 8z%22/%3E%3Cpath transform=%22translate(110 700) rotate(10 130 130) scale(2.6)%22 d=%22M50 4C60 22 74 38 92 50 74 62 60 78 50 96 40 78 26 62 8 50 26 38 40 22 50 4z%22/%3E%3C/g%3E%3C/svg%3E");background-size:1200px 1200px;background-position:center top;opacity:.9}
@media (max-width:760px){#root .mesa-root .mesa-bg::after{background-size:720px 720px}}

/* 12/11/2026 — sinal do parceiro estilo PlayTruco (palavra grande preta, fonte do TRUCO) */
.ms-grito { position: fixed; z-index: 40; transform: translate(-50%, 0) scale(.6); opacity: 0; pointer-events: none; white-space: nowrap;
  font-family: var(--font-display, "Bebas Neue"), "Bebas Neue", Impact, "Arial Narrow", sans-serif; font-weight: 400; letter-spacing: .12em; line-height: 1;
  color: #111; -webkit-text-stroke: 1.5px rgba(255,255,255,.55); text-shadow: 0 2px 0 rgba(255,255,255,.25), 0 6px 14px rgba(0,0,0,.35); }
.ms-grito.on { animation: ms-grito 2.9s ease-out forwards; }
@keyframes ms-grito { 0% { transform: translate(-50%,0) scale(.6); opacity: 0; } 18% { transform: translate(-50%,0) scale(1.08); opacity: 1; }
  28% { transform: translate(-50%,0) scale(1); } 85% { opacity: 1; } 100% { transform: translate(-50%,0) scale(1); opacity: 0; } }
/* o cartão antigo "fulano sinalizou" sai de cena (continua no DOM para o mesa-sinais.js ler o sinal) */
.mesa-root .mesa-sig-card { visibility: hidden !important; }
html:has([aria-label="Fim de partida"]) .ms-grito { display: none !important; }
