/* TrucoRaiz — DAR SINAL (mostrar 1 carta pro parceiro no começo da mão)
   Linguagem visual própria pra não confundir com jogar carta:
   - jogar carta = halo AZUL em volta da mão, carta sobe e vai pro centro da mesa
   - dar sinal  = BILHETE de papel creme (picotado, carimbo "só ele vê"), olho que pisca, setas subindo pro parceiro;
                  a mão fica "estacionada" (abaixa e apaga) enquanto o bilhete está aberto */

:root {
  --sig-paper: #f4f0e6;
  --sig-paper2: #e9e1cf;
  --sig-ink: #15212b;
  --sig-ink-2: #6f6a5f;
  --sig-petrol: #193950;
  --sig-blue: #2f7495;
  --sig-sky: #8db4c6;
  --sig-perf: #c9c0ac;
  --sig-spring: cubic-bezier(.2, 1.25, .4, 1);
  --sig-out: cubic-bezier(.2, .9, .3, 1);
}

/* ---------- botão "Dar sinal" (canhoto de bilhete com furos nas laterais) ---------- */
.btn-signal {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; cursor: pointer; text-align: left;
  font: inherit; color: var(--sig-ink); background: var(--sig-paper); border: 2px solid var(--sig-ink); border-radius: 12px;
  box-shadow: 0 4px 0 var(--sig-ink); transition: transform .12s, box-shadow .12s, background .15s;
  -webkit-mask: radial-gradient(circle at 0 50%, #0000 6px, #000 6.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, #0000 6px, #000 6.5px) right / 51% 100% no-repeat;
  mask: radial-gradient(circle at 0 50%, #0000 6px, #000 6.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, #0000 6px, #000 6.5px) right / 51% 100% no-repeat;
}
.btn-signal::after { content: ''; position: absolute; inset: 3px 9px; border: 1px dashed rgba(21, 33, 43, .28); border-radius: 8px; pointer-events: none; }
.btn-signal .bs-ic { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: var(--sig-petrol); color: var(--sig-paper); }
.btn-signal .bs-ic svg { width: 20px; height: 20px; transform-origin: 50% 50%; animation: sig-wink 6s ease-in-out 2.4s infinite; }
.btn-signal .bs-tx { display: flex; flex-direction: column; line-height: 1.05; }
.btn-signal .bs-tx b { font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: .06em; }
.btn-signal .bs-tx small { font-size: 10.5px; font-weight: 700; color: var(--sig-ink-2); }
.btn-signal:hover { background: #fffaf0; }
.btn-signal:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--sig-ink); }
.btn-signal:focus-visible { outline: 3px solid var(--sig-sky); outline-offset: 3px; }
.btn-signal.on { background: var(--sig-petrol); color: var(--sig-paper); border-color: var(--sig-sky); box-shadow: 0 4px 0 #0c1f2c; }
.btn-signal.on .bs-ic { background: var(--sig-paper); color: var(--sig-petrol); }
.btn-signal.on .bs-tx small { color: var(--sig-sky); }
.btn-signal.on::after { border-color: rgba(244, 240, 230, .25); }

/* entrada no começo da mão: canhoto destaca da mesa, olho pisca 2x (o "sinal" do truco), etiqueta explica */
.btn-signal.anim { animation: sig-btn-in .6s var(--sig-spring) backwards; }
.btn-signal.anim .bs-ic svg { animation: sig-wink-twice 1.5s ease-in-out both; animation-delay: calc(var(--d0, 0ms) + 550ms); }
.btn-signal.anim .bs-ic { animation: sig-ic-ring 1.4s ease-out both; animation-delay: calc(var(--d0, 0ms) + 500ms); }
@keyframes sig-btn-in {
  0% { opacity: 0; transform: translateY(18px) rotate(-6deg) scale(.86); }
  60% { opacity: 1; transform: translateY(-3px) rotate(1.5deg) scale(1.03); }
  100% { opacity: 1; transform: none; }
}
@keyframes sig-wink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.08); } }
@keyframes sig-wink-twice { 0%, 30%, 60%, 100% { transform: scaleY(1); } 40%, 70% { transform: scaleY(.08); } }
@keyframes sig-ic-ring { 0% { box-shadow: 0 0 0 0 rgba(141, 180, 198, .9); } 100% { box-shadow: 0 0 0 16px rgba(141, 180, 198, 0); } }

/* etiqueta que aparece uns segundos acima do botão no começo da mão */
.btn-signal .bs-tip {
  position: absolute; right: -4px; bottom: calc(100% + 12px); z-index: 2; width: max-content; max-width: 210px; padding: 7px 11px;
  font-size: 12px; font-weight: 800; line-height: 1.25; color: var(--sig-paper); background: var(--sig-petrol); border: 1.5px solid var(--sig-sky);
  border-radius: 10px; box-shadow: 0 10px 24px rgba(3, 12, 20, .45); pointer-events: none; opacity: 0;
  animation: sig-tip 4.2s var(--sig-out) both; animation-delay: var(--d0, 0ms);
}
.btn-signal .bs-tip::after { content: ''; position: absolute; right: 26px; top: 100%; border: 7px solid transparent; border-top-color: var(--sig-sky); }
@keyframes sig-tip {
  0%, 12% { opacity: 0; transform: translateY(8px) scale(.94); }
  20%, 86% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-4px); }
}

/* ---------- modo sinal: mesa escurece, parceiro em destaque, mão estacionada ---------- */
.sig-scrim {
  position: absolute; inset: 0; z-index: 20; cursor: pointer;
  background: radial-gradient(ellipse 46% 38% at 50% 9%, rgba(25, 57, 80, .05), rgba(6, 17, 26, .74) 100%);
  animation: sig-fade .22s ease-out both;
}
@keyframes sig-fade { from { opacity: 0; } }
#game.signaling .seat.partner { z-index: 21; }
#game.signaling .seat.partner .plate { border-color: var(--sig-paper) !important; box-shadow: 0 0 0 3px rgba(244, 240, 230, .25), 0 0 28px rgba(244, 240, 230, .35) !important; }
#game.signaling .seat.partner .plate::after {
  content: ''; position: absolute; inset: -3px; border-radius: inherit; border: 2px solid var(--sig-paper); pointer-events: none;
  animation: sig-radar 1.6s ease-out infinite;
}
@keyframes sig-radar { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.35, 1.9); } }

.myhand.sig-parked .card { pointer-events: none; transform: translateY(16px) scale(.93) !important; filter: grayscale(.7) brightness(.5) !important; transition: transform .28s var(--sig-out), filter .28s; }
#game.signaling .myarea * { pointer-events: none !important; }
#game.signaling .myarea .btn-signal, #game.signaling .myarea .btn-signal * { pointer-events: auto !important; }
#game.signaling .myarea .btn-truco, #game.signaling .myarea .act-val { opacity: .35; }

/* ---------- o bilhete de sinal ---------- */
.sig-sheet {
  position: fixed; left: 50%; bottom: 22px; z-index: 30; width: min(500px, calc(100vw - 24px)); translate: -50% 0;
  color: var(--sig-ink); background: var(--paper-tex, none), var(--sig-paper); border-radius: 16px;
  box-shadow: 0 0 0 2px var(--sig-ink), 0 26px 60px rgba(3, 12, 20, .6);
  padding: 14px 18px 16px;
}
.sig-sheet.anim { animation: sig-sheet-in .52s var(--sig-spring) backwards; }
@keyframes sig-sheet-in {
  0% { opacity: 0; transform: translateY(70px) rotate(-2.5deg) scale(.96); }
  55% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
/* furinhos do picote no topo do bilhete */
.sig-sheet::before {
  content: ''; position: absolute; left: 14px; right: 14px; top: 46px; height: 0; border-top: 2px dashed var(--sig-perf);
}

.sig-head { display: flex; align-items: center; gap: 10px; min-height: 30px; }
.sig-to { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.sig-to .avatar { width: 30px; height: 30px; flex-shrink: 0; }
.sig-to div { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
.sig-to small { font-size: 9.5px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--sig-ink-2); }
.sig-to b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sig-lock {
  display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; padding: 4px 10px 4px 8px; border-radius: 999px;
  font-size: 10.5px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--sig-paper); background: var(--sig-petrol);
  transform: rotate(-3deg);
}
.sig-lock svg { width: 12px; height: 12px; }
.sig-sheet.anim .sig-lock { animation: sig-stamp .42s cubic-bezier(.3, 1.6, .5, 1) backwards; animation-delay: calc(var(--d0, 0ms) + 260ms); }
@keyframes sig-stamp { 0% { opacity: 0; transform: rotate(-14deg) scale(1.9); } 100% { opacity: 1; transform: rotate(-3deg) scale(1); } }
.sig-x {
  width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid rgba(21, 33, 43, .3); background: transparent;
  color: var(--sig-ink); font-size: 20px; line-height: 1; cursor: pointer;
}
.sig-x:hover { background: rgba(21, 33, 43, .08); }

/* setas subindo do bilhete até o parceiro: "isso vai pra ele" */
.sig-chev { position: absolute; left: 50%; bottom: 100%; translate: -50% 0; display: flex; flex-direction: column-reverse; align-items: center; padding-bottom: 8px; pointer-events: none; }
.sig-chev i { display: block; width: 18px; height: 18px; margin-top: -7px; border-left: 4px solid var(--sig-paper); border-top: 4px solid var(--sig-paper); transform: rotate(45deg); opacity: .15; animation: sig-chev 1.2s ease-in-out infinite; }
.sig-chev i:nth-child(2) { animation-delay: .15s; }
.sig-chev i:nth-child(3) { animation-delay: .3s; }
@keyframes sig-chev { 0%, 100% { opacity: .12; translate: 0 4px; } 40% { opacity: 1; translate: 0 0; } }

.sig-body { padding-top: 14px; text-align: center; }
.sig-body h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1; letter-spacing: .03em; color: var(--sig-ink); }
.sig-note { margin: 5px 0 0; font-size: 12.5px; color: var(--sig-ink-2); }
.sig-note b { color: var(--sig-ink); }
.sig-turn { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; font-weight: 800; font-size: 11px; color: var(--sig-paper); background: var(--sig-blue); }
.sig-turn b { color: inherit; }

.sig-cards { display: flex; justify-content: center; gap: 14px; padding: 14px 0 6px; }
.sig-c {
  --rot: calc((var(--i) - 1) * 5deg);
  position: relative; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 12px;
  transform: rotate(var(--rot)); transition: transform .22s var(--sig-spring), opacity .2s, filter .2s;
}
.sig-slot { display: block; padding: 5px; border-radius: 12px; border: 2px dashed rgba(21, 33, 43, .28); background: rgba(21, 33, 43, .04); transition: border-color .15s, background .15s; }
.sig-c .card { width: 86px; filter: drop-shadow(0 6px 10px rgba(3, 12, 18, .35)); }
.sig-eye {
  position: absolute; top: -8px; right: -8px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  color: var(--sig-paper); background: var(--sig-petrol); border: 2px solid var(--sig-paper); box-shadow: 0 3px 8px rgba(3, 12, 20, .35);
  transform: scale(0); transition: transform .22s var(--sig-spring);
}
.sig-eye svg { width: 15px; height: 15px; }
.sig-c:hover { transform: rotate(var(--rot)) translateY(-6px); }
.sig-c:hover .sig-slot { border-color: rgba(21, 33, 43, .5); }
.sig-c:hover .sig-eye { transform: scale(.75); }
.sig-c:focus-visible { outline: 3px solid var(--sig-blue); outline-offset: 3px; }
.sig-c.on { transform: rotate(0deg) translateY(-14px) scale(1.06); z-index: 1; }
.sig-c.on .sig-slot { border: 2px solid var(--sig-petrol); background: rgba(47, 116, 149, .14); box-shadow: 0 0 0 4px rgba(141, 180, 198, .45); }
.sig-c.on .sig-eye { transform: scale(1); }
.sig-c.on .sig-eye svg { animation: sig-wink-twice 1s ease-in-out both; }
.sig-cards:has(.on) .sig-c:not(.on) { opacity: .5; filter: saturate(.4); }
.sig-sheet.anim .sig-c { animation: sig-card-in .5s var(--sig-spring) backwards; animation-delay: calc(var(--d0, 0ms) + 140ms + var(--i) * 70ms); }
@keyframes sig-card-in { 0% { opacity: 0; transform: translateY(60px) rotate(calc(var(--rot) * -3)) scale(.8); } 100% { opacity: 1; transform: rotate(var(--rot)); } }

.sig-row { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 12px; padding-top: 14px; border-top: 2px dashed var(--sig-perf); }
.sig-cancel, .sig-send { font: inherit; cursor: pointer; border-radius: 12px; padding: 11px 16px; font-weight: 800; }
.sig-cancel { color: var(--sig-ink); background: transparent; border: 2px solid rgba(21, 33, 43, .35); }
.sig-cancel:hover { background: rgba(21, 33, 43, .06); }
.sig-send {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0;
  color: var(--sig-paper); background: linear-gradient(180deg, #2f7495, #193950); border: 2px solid var(--sig-ink); box-shadow: 0 4px 0 var(--sig-ink);
  font-family: var(--display); font-weight: 400; font-size: 21px; letter-spacing: .05em; padding: 8px 14px; transition: transform .1s, box-shadow .1s, opacity .15s;
}
.sig-send span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sig-send i { display: grid; width: 20px; height: 20px; flex-shrink: 0; }
.sig-send i svg { width: 100%; height: 100%; }
.sig-send:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--sig-ink); }
.sig-send:disabled { cursor: default; color: rgba(21, 33, 43, .45); background: var(--sig-paper2); border-color: rgba(21, 33, 43, .25); box-shadow: none; font-family: inherit; font-size: 14px; letter-spacing: 0; font-weight: 700; }
.sig-send:disabled i { display: none; }
.sig-send.ready { animation: sig-ready .38s var(--sig-spring); }
@keyframes sig-ready { 0% { transform: scale(.94); } 60% { transform: scale(1.03); } 100% { transform: none; } }

/* ---------- carta voando pro parceiro (vira de costas no caminho) ---------- */
.sig-fly { position: fixed; z-index: 58; pointer-events: none; perspective: 900px; transform-origin: 50% 50%; }
.sig-fly .sf-in, .sig-reveal .sf-in { position: relative; transform-style: preserve-3d; }
.sig-fly .card, .sig-reveal .card { width: 100%; }
.sf-f, .sf-b { -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.sf-b { position: absolute; inset: 0; transform: rotateY(180deg); }

.sig-ping { position: fixed; z-index: 58; pointer-events: none; width: 0; height: 0; }
.sig-ping i { position: absolute; left: -36px; top: -36px; width: 72px; height: 72px; border-radius: 50%; border: 3px solid var(--sig-paper); animation: sig-ping .8s ease-out both; }
.sig-ping i + i { animation-delay: .16s; }
.sig-ping span {
  position: absolute; left: 0; top: 34px; translate: -50% 0; display: inline-flex; align-items: center; gap: 6px; width: max-content; padding: 5px 11px;
  font-size: 12px; font-weight: 900; color: var(--sig-ink); background: var(--sig-paper); border: 1.5px solid var(--sig-ink); border-radius: 999px;
  box-shadow: 0 8px 20px rgba(3, 12, 20, .4); animation: sig-ping-tag 1.4s var(--sig-out) both;
}
.sig-ping span svg { width: 14px; height: 14px; color: var(--sig-petrol); }
@keyframes sig-ping { from { opacity: .95; transform: scale(.4); } to { opacity: 0; transform: scale(1.7); } }
@keyframes sig-ping-tag { 0% { opacity: 0; transform: translateY(-8px) scale(.8); } 18%, 78% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* ---------- recebendo o sinal: carta desce do parceiro, vira de frente e mostra o nome ---------- */
.sig-reveal { position: fixed; z-index: 58; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 10px; translate: -50% 0; padding-top: 12px; }
.sr-card { position: relative; width: 92px; perspective: 900px; animation: sig-rv-drop .5s var(--sig-spring) both; }
.sr-card::before { content: ''; position: absolute; inset: -30%; border-radius: 50%; background: radial-gradient(circle, rgba(244, 240, 230, .5), rgba(244, 240, 230, 0) 65%); animation: sig-fade .6s ease-out .55s both; }
.sr-card .sf-in { animation: sig-rv-flip .6s cubic-bezier(.4, 0, .2, 1) .45s both; }
@keyframes sig-rv-drop { 0% { opacity: 0; transform: translateY(-46px) scale(.35) rotate(-8deg); } 100% { opacity: 1; transform: none; } }
@keyframes sig-rv-flip { from { transform: rotateY(180deg); } to { transform: rotateY(0deg); } }
.sr-cap {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 14px 8px; text-align: center;
  color: var(--sig-ink); background: var(--sig-paper); border: 2px solid var(--sig-ink); border-radius: 10px; box-shadow: 0 10px 26px rgba(3, 12, 20, .5);
  animation: sig-rv-cap .45s var(--sig-spring) .8s both;
}
.sr-cap small { display: inline-flex; align-items: center; gap: 5px; font-size: 9.5px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--sig-blue); }
.sr-cap small i, .sig-pin small i, .sig-mine span i { display: inline-grid; width: 13px; height: 13px; }
.sr-cap small svg, .sig-pin small svg, .sig-mine span svg { width: 100%; height: 100%; }
.sr-cap b { font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: .04em; line-height: 1; }
.sr-cap em { display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--sig-ink-2); }
.sr-cap em svg { width: 11px; height: 11px; }
@keyframes sig-rv-cap { 0% { opacity: 0; transform: translateY(-10px) scale(.85); } 100% { opacity: 1; transform: none; } }

/* ---------- lembretes que ficam a mão inteira ---------- */
/* ao lado do parceiro: a carta que ele mostrou */
.sig-pin {
  position: absolute; left: calc(100% + 12px); top: 50%; translate: 0 -50%; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 5px 6px 6px; background: var(--sig-paper); border: 2px solid var(--sig-ink); border-radius: 9px; box-shadow: 0 8px 18px rgba(3, 12, 20, .4);
  transform: rotate(4deg);
}
.sig-pin small { display: inline-flex; align-items: center; gap: 3px; font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--sig-blue); }
.sig-pin .card { width: 42px; filter: none; }
.sig-pin em { position: absolute; left: 50%; top: 58%; translate: -50% -50%; rotate: -14deg; padding: 1px 6px; font-style: normal; font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--sig-paper); background: var(--sig-ink); border-radius: 4px; }
.sig-pin.used .card { filter: grayscale(.8) brightness(.8); }
.sig-pin.anim { animation: sig-pin-in .5s var(--sig-spring) backwards, sig-pin-out .6s ease-in forwards; } /* delays vêm do JS: entra, fica e some aos 5 s */
@keyframes sig-pin-out { to { opacity: 0; transform: rotate(4deg) scale(.7) translateY(-8px); } }
@keyframes sig-pin-in { 0% { opacity: 0; transform: rotate(-10deg) scale(.4); } 100% { opacity: 1; transform: rotate(4deg) scale(1); } }

/* na minha plaquinha: a carta que eu mostrei */
.me-plate { position: relative; }
.sig-mine {
  position: absolute; right: calc(100% + 10px); bottom: 2px; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 4px 5px 5px; background: var(--sig-paper); border: 2px solid var(--sig-ink); border-radius: 8px; transform: rotate(-4deg);
  box-shadow: 0 6px 14px rgba(3, 12, 20, .4);
}
.sig-mine .card { width: 34px; filter: none; }
.sig-mine span { display: inline-flex; align-items: center; gap: 3px; font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--sig-blue); }
.sig-mine.used .card { filter: grayscale(.8) brightness(.8); }
.sig-mine.anim { animation: sig-mine-in .55s var(--sig-spring) backwards; }
@keyframes sig-mine-in { 0% { opacity: 0; transform: rotate(8deg) scale(.3); } 100% { opacity: 1; transform: rotate(-4deg) scale(1); } }

/* ---------- celular ---------- */
@media (max-width: 760px) {
  .btn-signal { grid-area: cov; justify-self: end; gap: 6px; padding: 5px 11px 5px 7px; box-shadow: 0 3px 0 var(--sig-ink); }
  .btn-signal .bs-ic { width: 26px; height: 26px; }
  .btn-signal .bs-ic svg { width: 16px; height: 16px; }
  .btn-signal .bs-tx b { font-size: 17px; }
  .btn-signal .bs-tx small { display: none; }
  .btn-signal .bs-tip { right: -6px; max-width: min(200px, 60vw); font-size: 11.5px; }

  .sig-sheet { left: 0; right: 0; bottom: 0; width: auto; translate: none; border-radius: 20px 20px 0 0; padding: 12px 14px calc(14px + env(safe-area-inset-bottom)); box-shadow: 0 0 0 2px var(--sig-ink), 0 -16px 40px rgba(3, 12, 20, .55); }
  .sig-sheet.anim { animation-name: sig-sheet-up; }
  @keyframes sig-sheet-up { 0% { transform: translateY(100%); } 100% { transform: none; } }
  .sig-sheet::before { top: 44px; }
  .sig-body h3 { font-size: 26px; }
  .sig-cards { gap: 10px; }
  .sig-c .card { width: min(24vw, 92px); }
  .sig-send { font-size: 19px; }
  .sig-pin { left: calc(100% + 6px); padding: 3px 4px 4px; }
  .sig-pin .card { width: 28px; }
  .sig-pin small { font-size: 8px; }
  .sig-mine { position: static; flex-direction: row; padding: 2px 6px 2px 3px; transform: rotate(-3deg); }
  .sig-mine .card { width: 18px; }
  .sig-mine span { font-size: 8px; }
  .sr-card { width: 70px; }
  .sr-cap b { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn-signal, .btn-signal *, .sig-sheet, .sig-sheet *, .sig-pin, .sig-mine, .sig-scrim, .sig-chev i,
  #game.signaling .seat.partner .plate::after { animation: none !important; transition: none !important; }
  .btn-signal .bs-tip { opacity: 1; display: none; }
  .sig-chev i { opacity: .7; }
}

/* J, Q e K ficam de fora do bilhete: aviso discreto embaixo das cartas */
.sig-skip { margin: 4px 0 0; font-size: 11px; font-weight: 700; color: var(--sig-ink-2); }

/* ---------- aba Regras: explicação do "Dar sinal" ---------- */
.sig-rules .sgr-grid { display: grid; grid-template-columns: 230px 1fr; gap: 22px; align-items: start; margin-top: 10px; }
.sgr-demo { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; border-radius: 14px; background: rgba(0, 0, 0, .14); border: 1px dashed rgba(244, 240, 230, .18); }
.sgr-demo > small { font-size: 9.5px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--muted, #9fb4bf); }
.sgr-demo > small + .sgr-cards { margin-top: 2px; }
.btn-signal.sgr-btn { cursor: default; pointer-events: none; margin-bottom: 8px; justify-self: start; }
.sgr-cards { display: flex; gap: 10px; }
.sgr-c { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.sgr-c .card { width: 50px; }
.sgr-c span { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.sgr-c span i { display: inline-grid; width: 12px; height: 12px; }
.sgr-c span svg { width: 100%; height: 100%; }
.sgr-c.ok span { color: var(--sig-sky); }
.sgr-c.no .card { filter: grayscale(.85) brightness(.6); }
.sgr-c.no span { color: var(--muted, #9fb4bf); text-decoration: line-through; }
@media (max-width: 760px) {
  .sig-rules .sgr-grid { grid-template-columns: 1fr; gap: 14px; }
  .sgr-demo { align-items: center; }
  .btn-signal.sgr-btn .bs-tx small { display: block; }
}

/* um toque só: tocar na carta já manda o sinal (sem botão de confirmar). Só sobra o Cancelar. */
.sig-row { grid-template-columns: 1fr; }
.sig-cancel { width: 100%; }
.sig-c:hover .sig-eye { transform: scale(1); }
.sig-c:active { transform: rotate(0deg) translateY(-10px) scale(.97); transition-duration: .06s; }
.sig-c:active .sig-slot { border: 2px solid var(--sig-petrol); background: rgba(47, 116, 149, .14); }
@media (hover: none) { .sig-c .sig-eye { transform: scale(.8); } } /* celular: olho sempre visível = "toque pra mostrar" */

/* ---------- frases rápidas: menu por cima de TODA a tela, linhas zebradas ---------- */
.qc-pop {
  position: fixed; z-index: 1000; width: max-content; min-width: 280px; max-width: calc(100vw - 16px); overflow-y: auto; overscroll-behavior: contain;
  padding: 6px; border-radius: 14px; background: #183a51; border: 1.5px solid #4b82a1;
  box-shadow: 0 18px 50px rgba(3, 12, 20, .65), 0 0 0 1px rgba(3, 12, 20, .4);
}
.qc-pop.in { animation: qc-in .2s cubic-bezier(.2, 1.2, .4, 1) both; transform-origin: 100% 100%; }
@keyframes qc-in { from { opacity: 0; transform: translateY(8px) scale(.94); } }
.qc-pop .qc-lbl { display: block; padding: 8px 10px 5px; font-size: 9.5px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: #8db4c6; }
.qc-pop .qc-lbl:not(:first-child) { margin-top: 6px; border-top: 1px dashed rgba(141, 180, 198, .3); padding-top: 10px; }
.qc-pop .qc-row { display: grid; grid-template-columns: 1fr 1fr; border-radius: 8px; }
.qc-pop .qc-row.odd { background: rgba(255, 255, 255, .07); }
.qc-pop .qc-row.even { background: rgba(3, 12, 20, .22); }
.qc-pop .qc-row button {
  min-width: 0; padding: 10px 11px; border: 0; border-radius: 8px; background: none; color: #f6efe0; text-align: left;
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.qc-pop .qc-row button + button { border-left: 1px solid rgba(141, 180, 198, .16); border-radius: 0 8px 8px 0; }
.qc-pop .qc-row button:hover, .qc-pop .qc-row button:focus-visible { background: #2f7495; outline: none; }
.qc-pop .qc-row button:active { background: #8db4c6; color: #15212b; }
#btn-chat.on { background: #2f7495; border-color: #8db4c6; }
@media (max-width: 760px) {
  .qc-pop { min-width: 0; width: min(340px, calc(100vw - 16px)); }
  .qc-pop .qc-row button { white-space: normal; font-size: 13px; padding: 11px 10px; }
}
@media (prefers-reduced-motion: reduce) { .qc-pop.in { animation: none; } }

/* celular: a carta que eu mostrei (dei sinal) fica EM CIMA da minha plaquinha, não do lado */
@media (max-width: 760px) {
  .me-plate { position: relative; }
  .me-plate .sig-mine {
    position: absolute; left: 4px; bottom: calc(100% + 6px); z-index: 3;
    flex-direction: column; gap: 2px; padding: 3px 4px 4px; transform: rotate(-4deg);
  }
  .me-plate .sig-mine .card { width: 26px; }
  .me-plate .sig-mine span { font-size: 7.5px; letter-spacing: .08em; }
}
