/* ==========================================================================
   Cores do Prata Poker: a marca continua preto + prata; aqui entram as cores
   de cassino (feltro verde, madeira, dourado dos prêmios) e as animações.
   Carregado depois do style.css e sobrepõe o que for preciso.
   ========================================================================== */
:root {
  --felt: #1d7a4c;
  --felt-2: #0a3b24;
  --rail: #2b1a10;
  --gold: #f4c451;
  --gold-2: #c98f2a;
  --gold-grad: linear-gradient(135deg, #fff1b8 0%, #f4c451 35%, #c98f2a 70%, #ffe08a 100%);
  --green: #2fbf71;
  --green-2: #1c8a50;
  --red-btn: #c8342e;
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --ok: #3ccf82;
}

/* Fundo com um brilho colorido discreto (verde da mesa e roxo) */
body {
  background:
    radial-gradient(900px 500px at 12% -5%, rgba(47, 191, 113, .13), transparent 60%),
    radial-gradient(800px 500px at 95% 0%, rgba(139, 92, 246, .12), transparent 60%),
    radial-gradient(1200px 700px at 50% 0%, #1a1d21 0%, var(--bg) 60%);
  background-attachment: fixed;
}

/* ---------- Topo ---------- */
.wallet { border-color: rgba(244, 196, 81, .35); }
.wallet #wallet-amount { color: var(--gold); }
#buy-chips { background: var(--gold-grad); border-color: #e0b34a; color: #2a1c02; font-weight: 700; }
#buy-chips:hover { filter: brightness(1.07); }

/* ---------- Lobby ---------- */
.lobby-head h2 {
  background: linear-gradient(90deg, #fff 0%, var(--silver) 40%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lobby-section { position: relative; padding-left: 12px; }
.lobby-section::before {
  content: ''; position: absolute; left: 0; top: 3px; bottom: 3px; width: 4px; border-radius: 2px;
  background: linear-gradient(var(--green), var(--gold));
}
.table-row {
  position: relative; overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  background: linear-gradient(135deg, rgba(29, 122, 76, .10), transparent 45%), var(--panel);
}
.table-row::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(var(--green), var(--green-2));
}
.table-row:hover { transform: translateY(-2px); border-color: rgba(47, 191, 113, .45); box-shadow: 0 10px 28px rgba(0, 0, 0, .35); }
.sng-row { background: linear-gradient(135deg, rgba(139, 92, 246, .12), rgba(244, 196, 81, .06) 55%, transparent), var(--panel); }
.sng-row::before { background: linear-gradient(var(--purple), var(--gold)); }
.sng-row:hover { border-color: rgba(244, 196, 81, .45); }
.sng-row .prize-line { color: var(--gold); }
.table-row .stat.buyin { color: var(--gold); }
.seat-pips i.on { background: var(--green); box-shadow: 0 0 6px rgba(47, 191, 113, .6); }

.badge-live { border: 0; color: #fff; background: #3a4047; }
.badge-live.mtt { background: linear-gradient(135deg, #8b5cf6, #6d3fd6); }
.badge-live.live { background: linear-gradient(135deg, #2fbf71, #1c8a50); animation: badge-pulse 1.8s ease-in-out infinite; }
.badge-live.mine { background: linear-gradient(135deg, #3b82f6, #1f5fbf); }
.badge-live.break { background: linear-gradient(135deg, #f59e0b, #c2700a); }
@keyframes badge-pulse { 50% { box-shadow: 0 0 0 4px rgba(47, 191, 113, .25); } }

.notice { border-left-color: var(--gold); background: linear-gradient(90deg, rgba(244, 196, 81, .08), transparent 60%), var(--panel); }
#nochips-notice { border-left-color: var(--gold); }
#pending-notice { border-left-color: var(--blue); background: linear-gradient(90deg, rgba(59, 130, 246, .10), transparent 60%), var(--panel); }

/* ---------- Mesa: feltro verde e borda de madeira ---------- */
.felt {
  background:
    radial-gradient(ellipse at 50% 38%, #2a9a62 0%, var(--felt) 38%, var(--felt-2) 100%);
  border: 14px solid var(--rail);
  outline: 2px solid rgba(244, 196, 81, .55); outline-offset: -9px;
  box-shadow:
    0 0 0 2px #6b4527,
    0 0 0 5px #1a0f08,
    inset 0 0 70px rgba(0, 0, 0, .5),
    inset 0 2px 0 rgba(255, 255, 255, .06),
    0 25px 60px rgba(0, 0, 0, .6),
    0 0 90px rgba(29, 122, 76, .25);
}
/* textura sutil do feltro */
.felt::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .18;
  background-image: repeating-radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .05) 0 1px, transparent 1px 3px);
}
.felt-logo { opacity: .10; mix-blend-mode: luminosity; }
.pot { background: rgba(0, 0, 0, .45); border: 1px solid rgba(244, 196, 81, .35); color: var(--gold); }
.bet { background: rgba(0, 0, 0, .5); color: #fff; }
.result { color: var(--gold); text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.dealer { background: var(--gold-grad); color: #2a1c02; }

/* Assentos */
.seat.me .plate { border-color: rgba(59, 130, 246, .8); box-shadow: 0 0 0 1px rgba(59, 130, 246, .35), 0 6px 18px rgba(0, 0, 0, .35); }
.plate .st { color: var(--gold); }
.seat.winner .plate {
  border-color: var(--gold);
  animation: winner-glow 1.2s ease-in-out infinite;
}
@keyframes winner-glow {
  0%, 100% { box-shadow: 0 0 0 2px rgba(244, 196, 81, .45), 0 0 18px rgba(244, 196, 81, .35); }
  50% { box-shadow: 0 0 0 3px rgba(244, 196, 81, .8), 0 0 34px rgba(244, 196, 81, .6); }
}
.tag.win { background: var(--gold-grad); color: #2a1c02; border-color: #e0b34a; }
.hand-name { color: var(--gold); }
.card.win { box-shadow: 0 0 0 3px var(--gold), 0 0 16px rgba(244, 196, 81, .6), 0 4px 12px rgba(0, 0, 0, .4); }

/* Botões de jogada com cor */
.act-buttons .btn { font-weight: 700; border-width: 1px; }
.act-fold { background: linear-gradient(180deg, #d9453e, #a8261f); border-color: #e0605a; color: #fff; }
.act-fold:hover { filter: brightness(1.1); }
.act-buttons [data-act="call"] { background: linear-gradient(180deg, #34c77a, #1c8a50); border-color: #3ccf82; color: #fff; }
.act-buttons [data-act="call"]:hover { filter: brightness(1.1); }
.act-raise, .act-raise:hover { background: var(--gold-grad) !important; border-color: #e0b34a; color: #2a1c02; }
.raise-box input[type=range] { accent-color: var(--gold); }
.presets .btn { border-color: rgba(244, 196, 81, .35); }

/* Fichas voando do pote para quem ganhou */
.chip.fly-chip { position: absolute; left: 0; top: 0; width: 20px; height: 20px; z-index: 6; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .6)); }

/* ---------- Comemoração do torneio ---------- */
.celebrate {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(circle at 50% 40%, rgba(60, 40, 0, .55), rgba(0, 0, 0, .88) 70%);
  animation: cel-in .4s ease both;
}
.celebrate canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.celebrate .cel-card {
  position: relative; text-align: center; max-width: 420px; width: 100%;
  padding: 28px 22px 22px; border-radius: 22px;
  background: linear-gradient(160deg, rgba(40, 30, 8, .95), rgba(12, 12, 14, .96));
  border: 1px solid rgba(244, 196, 81, .6);
  box-shadow: 0 0 0 4px rgba(244, 196, 81, .12), 0 30px 80px rgba(0, 0, 0, .6), 0 0 120px rgba(244, 196, 81, .25);
  animation: cel-pop .7s cubic-bezier(.2, 1.4, .4, 1) .1s both;
}
.celebrate .trophy { width: 120px; height: 120px; margin: -70px auto 6px; filter: drop-shadow(0 8px 20px rgba(244, 196, 81, .55)); animation: trophy-bob 2.4s ease-in-out infinite; }
.celebrate .rays {
  position: absolute; left: 50%; top: -10px; width: 360px; height: 360px; transform: translate(-50%, -50%); pointer-events: none; z-index: -1;
  background: repeating-conic-gradient(rgba(244, 196, 81, .18) 0 8deg, transparent 8deg 22deg);
  border-radius: 50%; -webkit-mask: radial-gradient(circle, #000 20%, transparent 68%); mask: radial-gradient(circle, #000 20%, transparent 68%);
  animation: rays-spin 14s linear infinite;
}
.celebrate h2 {
  margin: 4px 0 2px; font-size: 40px; font-weight: 900; letter-spacing: 2px; text-transform: uppercase;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .5));
}
.celebrate .cel-sub { color: #e9dcc0; font-size: 15px; }
.celebrate .cel-prize { margin: 16px 0 6px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.celebrate .cel-prize b { display: block; font-size: 38px; color: var(--gold); letter-spacing: 0; font-variant-numeric: tabular-nums; text-shadow: 0 0 24px rgba(244, 196, 81, .45); }
.celebrate .btn { margin-top: 16px; width: 100%; background: var(--gold-grad); border-color: #e0b34a; color: #2a1c02; font-weight: 800; padding: 12px; }
@keyframes cel-in { from { opacity: 0; } }
@keyframes cel-pop { from { opacity: 0; transform: scale(.6) translateY(30px); } }
@keyframes trophy-bob { 50% { transform: translateY(-8px) rotate(-3deg); } }
@keyframes rays-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .celebrate .trophy, .celebrate .rays, .badge-live.live, .seat.winner .plate { animation: none; }
}
@media (max-width: 560px) { .celebrate h2 { font-size: 30px; } .celebrate .cel-prize b { font-size: 30px; } }

/* ---------- Tela de entrar: luzes, fichas e cartas ao fundo ---------- */
#screen-login { position: relative; isolation: isolate; }
#login-bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.login-glow {
  position: fixed; inset: -20%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(40% 35% at 30% 35%, rgba(29, 122, 76, .35), transparent 70%),
    radial-gradient(35% 30% at 72% 65%, rgba(139, 92, 246, .22), transparent 70%),
    radial-gradient(30% 25% at 60% 20%, rgba(244, 196, 81, .16), transparent 70%);
  animation: login-glow 18s ease-in-out infinite alternate;
}
@keyframes login-glow {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(4%, -3%) rotate(6deg); }
  100% { transform: translate(-4%, 3%) rotate(-5deg); }
}
#screen-login .login-card {
  position: relative; z-index: 2;
  background: linear-gradient(160deg, rgba(26, 30, 34, .82), rgba(10, 12, 14, .88));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(244, 196, 81, .28);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .03), 0 30px 80px rgba(0, 0, 0, .6), 0 0 60px rgba(29, 122, 76, .18);
  animation: card-in .7s cubic-bezier(.2, .9, .3, 1) both;
}
@keyframes card-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }
/* ficha do logo girando devagar, com um brilho que passa */
#screen-login .login-mark {
  animation: logo-spin 7s ease-in-out infinite;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .6), 0 0 0 3px rgba(244, 196, 81, .25), 0 0 40px rgba(244, 196, 81, .25);
}
@keyframes logo-spin {
  0%, 60% { transform: perspective(500px) rotateY(0); }
  80% { transform: perspective(500px) rotateY(180deg); }
  100% { transform: perspective(500px) rotateY(360deg); }
}
#screen-login .login-card h1 {
  background: linear-gradient(90deg, #fff 0%, var(--silver) 40%, var(--gold) 50%, var(--silver) 60%, #fff 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: title-shine 5s linear infinite;
}
@keyframes title-shine { from { background-position: 100% 0; } to { background-position: -150% 0; } }
#screen-login .btn.primary { background: var(--gold-grad); border-color: #e0b34a; color: #2a1c02; font-weight: 800; }
@media (prefers-reduced-motion: reduce) {
  .login-glow, #screen-login .login-mark, #screen-login .login-card h1 { animation: none; }
}

/* ---------- Lobby: fundo animado leve ---------- */
#screen-lobby { position: relative; isolation: isolate; }
#lobby-bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
#screen-lobby .lobby { position: relative; z-index: 1; }

/* ---------- Pedido de fichas ---------- */
.chip-presets { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.chip-presets .btn { flex: 1; min-width: 52px; font-weight: 700; }
.chip-presets .btn.on { background: var(--gold-grad); border-color: #e0b34a; color: #2a1c02; }
.req-list { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 8px; }
.req-title { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.req { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; flex-wrap: wrap; }
.req b { color: var(--gold); letter-spacing: .5px; }
.req a.btn { text-decoration: none; }
.req-st.paid { color: var(--ok); }
.req-st.cancelled { color: var(--danger); }
.req-code {
  margin: 16px 0 6px; padding: 16px; border-radius: 14px; text-align: center; display: grid; gap: 2px;
  background: linear-gradient(160deg, rgba(244, 196, 81, .14), rgba(244, 196, 81, .03)); border: 1px dashed rgba(244, 196, 81, .6);
}
.req-code small { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.req-code b { font-size: 30px; letter-spacing: 3px; color: var(--gold); font-variant-numeric: tabular-nums; }
.req-code span { font-size: 14px; color: var(--text); }

/* Botão do WhatsApp com a cor do WhatsApp */
.btn.wa { background: linear-gradient(180deg, #2fd572, #1da851); border-color: #3ee07f; color: #fff; font-weight: 700; }
.btn.wa:hover { filter: brightness(1.07); }

.chip-presets .btn { display: grid; gap: 1px; padding-block: 7px; }
.chip-presets .btn small { font-size: 11px; font-weight: 600; opacity: .75; }
#m-brl { color: var(--gold); font-weight: 600; }

/* ---------- App instalável ---------- */
#install-btn { border-color: rgba(47, 191, 113, .5); color: #9ff0c2; }
.install-login { display: block; margin: 14px auto 0; color: var(--gold); font-weight: 600; }
.push-notice { border-left-color: var(--blue); background: linear-gradient(90deg, rgba(59, 130, 246, .12), transparent 60%), var(--panel); }
.push-actions { display: flex; gap: 8px; margin-top: 10px; }
.ios-share { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #1f5fbf; color: #fff; font-size: 13px; vertical-align: middle; }
@media (max-width: 560px) { #install-btn { padding: 5px 8px; font-size: 12px; } }
@media (max-width: 560px) { #install-btn span { display: none; } }

/* ---------- Topo compacto (celular / app instalado) ---------- */
button.wallet { color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
button.wallet:hover { border-color: rgba(244, 196, 81, .7); }
.wallet-plus {
  display: none; width: 18px; height: 18px; border-radius: 50%; place-items: center;
  background: var(--gold-grad); color: #2a1c02; font-weight: 900; font-size: 14px; line-height: 1;
}
@media (max-width: 560px) {
  .topbar { padding: 0 10px; }
  .topbar-right { gap: 6px; min-width: 0; }
  #buy-chips, #logout { display: none; }         /* comprar: toque na carteira; sair: no perfil */
  .wallet-plus { display: inline-grid; }
  #panel-link span { display: none; }
  #panel-link, #sound-btn, #install-btn { padding: 5px 8px; }
  .wallet { gap: 6px; }
}
@media (max-width: 360px) { .brand-mark { width: 30px; height: 30px; } #sound-btn { display: none; } }

/* Mostrar cartas depois de desistir */
.show-cards { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.show-cards > span { color: var(--muted); font-size: 13px; }
.mini-card { display: inline-block; min-width: 30px; padding: 1px 5px; border-radius: 5px; background: #fbfbf8; color: #1a1d21; font-weight: 800; font-size: 14px; }
.mini-card.red { color: #d02f35; }

/* ---------- Telas do torneio (estilo painel de torneio) ---------- */
.tinfo { position: fixed; inset: 0; z-index: 150; display: grid; place-items: end center; background: rgba(0, 0, 0, .6); padding: 0; }
.tinfo[hidden] { display: none !important; }
.ti-card {
  width: min(560px, 100%); max-height: 92vh; display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(180deg, #17140c, #0c0c0e 30%); border: 1px solid rgba(244, 196, 81, .45);
  border-radius: 20px 20px 0 0; box-shadow: 0 -20px 60px rgba(0, 0, 0, .6); animation: ti-up .25s ease;
}
@media (min-width: 700px) { .tinfo { place-items: center; padding: 16px; } .ti-card { border-radius: 20px; } }
@keyframes ti-up { from { transform: translateY(30px); opacity: 0; } }
.ti-top { display: flex; align-items: center; justify-content: center; position: relative; padding: 14px 44px 8px; }
.ti-top h3 { margin: 0; font-size: 18px; text-align: center; }
.ti-x { position: absolute; right: 12px; top: 8px; background: none; border: 0; color: var(--gold); font-size: 22px; padding: 4px 8px; cursor: pointer; }
.ti-hero {
  display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 6px; margin: 0 10px; padding: 12px 8px; border-radius: 14px;
  background: radial-gradient(120% 90% at 50% 0%, rgba(244, 196, 81, .28), rgba(60, 40, 5, .5) 45%, rgba(10, 10, 12, .9) 80%);
  border: 1px solid rgba(244, 196, 81, .35);
}
.ti-col { display: grid; gap: 8px; text-align: center; }
.ti-stat small { display: block; font-size: 11px; color: #d8c79a; }
.ti-stat b { font-size: 17px; color: #fff; font-variant-numeric: tabular-nums; }
.ti-center { text-align: center; display: grid; align-content: center; gap: 4px; }
.ti-clock { font-size: 34px; font-weight: 800; letter-spacing: 1px; font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 0 18px rgba(244, 196, 81, .5); }
.ti-clock-label { font-size: 11px; color: #d8c79a; }
.ti-level { font-size: 12px; color: #d8c79a; margin-top: 4px; }
.ti-level b { font-size: 18px; color: var(--gold); }
.ti-stacks { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 8px 10px 0; text-align: center; padding: 8px 4px; border-radius: 12px; background: #141416; border: 1px solid var(--line); }
.ti-stacks .ti-stat b { font-size: 14px; }
.ti-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 10px 10px 0; }
.ti-tabs button { background: #1c1c20; border: 1px solid transparent; color: var(--text); border-radius: 8px; padding: 9px 2px; font-size: 13px; font-weight: 600; cursor: pointer; }
.ti-tabs button.on { border-color: var(--gold); color: var(--gold); background: #1a160c; }
.ti-body { overflow-y: auto; padding: 8px 10px 14px; flex: 1; min-height: 160px; }
.ti-table { width: 100%; border-collapse: separate; border-spacing: 0 4px; font-size: 14px; }
.ti-table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 4px 10px; }
.ti-table td { background: #1b1b1f; padding: 10px; }
.ti-table td:first-child { border-radius: 8px 0 0 8px; color: var(--gold); font-weight: 700; }
.ti-table td:last-child { border-radius: 0 8px 8px 0; }
.ti-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.ti-table .gold { color: var(--gold); font-weight: 700; }
.ti-table tr.ti-me td { background: #1d2a44; }
.ti-table tr.out td { opacity: .6; }
.ti-table tr.cur td { background: #2a220e; }
.ti-table tr.sep td, .ti-table tr.brk td { background: none; color: var(--muted); font-size: 12px; text-align: center; padding: 6px; }
.ti-table tr.brk td { color: #f5b94a; }
.ti-r { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--green-2); color: #fff; font-size: 11px; font-weight: 800; margin-left: 4px; vertical-align: middle; }
.ti-r.late { background: #3b5bdb; }
.ti-tag { font-size: 10px; padding: 1px 6px; border-radius: 999px; background: rgba(224, 96, 90, .2); color: #ff9d97; }
.ti-note { font-size: 12px; color: var(--muted); margin: 8px 2px 0; }
.ti-empty { text-align: center; color: var(--muted); padding: 30px 10px; }
.ti-kvs { display: grid; gap: 6px; }
.ti-kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; background: #1b1b1f; border-radius: 8px; font-size: 14px; }
.ti-kv span { color: #d8c79a; }
.ti-foot { padding: 10px; border-top: 1px solid var(--line); display: grid; }
.ti-foot .btn { background: var(--gold-grad); border-color: #e0b34a; color: #2a1c02; font-weight: 800; }
.ti-btn { border-color: rgba(244, 196, 81, .45); }
@media (max-width: 420px) {
  .ti-clock { font-size: 26px; } .ti-stat b { font-size: 14px; } .ti-stacks .ti-stat b { font-size: 12px; } .ti-stacks .ti-stat small { font-size: 9px; }
  .ti-tabs button { font-size: 11px; padding: 8px 1px; } .ti-table { font-size: 13px; } .ti-table td { padding: 8px 6px; }
}
.ti-table { table-layout: fixed; }
.ti-table th:first-child, .ti-table td:first-child { width: 44px; }
.ti-table td:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ti-table th.num, .ti-table td.num { width: 22%; }
.ti-table.cols5 th:nth-child(4), .ti-table.cols5 td:nth-child(4), .ti-table.cols5 th:nth-child(5), .ti-table.cols5 td:nth-child(5) { width: 15%; }

/* Inscrição sem fichas: quanto falta e botão para comprar */
.confirm-lines .missing { color: #ffb86b; font-weight: 700; }
.btn.buy-cta { background: var(--gold-grad) !important; border-color: #e0b34a; color: #2a1c02; font-weight: 800; }

/* Abas Adquirir / Retirar */
.chip-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px; }
.chip-tabs button { background: #1c1c20; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 9px; font-weight: 700; cursor: pointer; }
.chip-tabs button.on { border-color: var(--gold); color: var(--gold); background: #1a160c; }

/* Carta mostrada para a mesa (na minha mão) e botão "visível" */
.card.public { box-shadow: 0 0 0 3px var(--gold), 0 0 14px rgba(244, 196, 81, .55); position: relative; }
.card.public::after { content: "👁"; position: absolute; top: -9px; right: -7px; font-size: 12px; background: #1a160c; border: 1px solid var(--gold); border-radius: 50%; width: 18px; height: 18px; display: grid; place-items: center; }
.show-cards .btn.shown { opacity: .85; border-color: var(--gold); color: var(--gold); cursor: default; }

/* Pagamento pelo Pix na compra de fichas */
.pix-box { margin: 12px 0 4px; padding: 12px; border-radius: 12px; display: grid; gap: 8px;
  background: rgba(50, 188, 173, .08); border: 1px solid rgba(50, 188, 173, .45); }
.pix-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pix-head b { font-size: 16px; } .pix-head small { color: var(--muted, #9aa); }
.pix-copy { width: 100%; font-size: 15px; }
.pix-key { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; background: rgba(0,0,0,.25); }
.pix-key span { display: grid; min-width: 0; } .pix-key small { color: var(--muted, #9aa); font-size: 11px; }
.pix-key b { font-size: 17px; letter-spacing: .3px; overflow-wrap: anywhere; user-select: all; }
.req-actions { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* Prêmio extra do campeão (ex.: vaga em outro torneio) */
.bonus-line { color: var(--gold, #f4c451); }
.bonus-line b { font-weight: 700; }
.ti-table small.bonus { display: block; font-size: 11px; font-weight: 600; color: var(--gold, #f4c451); opacity: .9; }
.cel-bonus { margin: 6px 0 12px; padding: 8px 12px; border-radius: 10px; font-weight: 700; color: var(--gold, #f4c451);
  background: rgba(244, 196, 81, .12); border: 1px solid rgba(244, 196, 81, .4); }

/* Fichas ⇄ BB: interruptor deslizante na barra da mesa */
.unit-switch { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18); background: rgba(0,0,0,.35); color: inherit; font: inherit; font-size: 12px; font-weight: 600;
  cursor: pointer; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.unit-switch .u-knob { position: relative; width: 30px; height: 16px; border-radius: 999px; background: rgba(255,255,255,.15); }
.unit-switch .u-knob::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%;
  background: #e9edf0; transition: transform .2s ease; }
.unit-switch.on .u-knob { background: var(--gold, #f4c451); }
.unit-switch.on .u-knob::after { transform: translateX(14px); background: #1a1406; }
.unit-switch .u-chips { opacity: 1; } .unit-switch .u-bb { opacity: .5; }
.unit-switch.on .u-chips { opacity: .5; } .unit-switch.on .u-bb { opacity: 1; color: var(--gold, #f4c451); }

/* Ações marcadas antes da vez (Desistir / Check/Desistir / Check) */
.pre-acts { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.pre-act { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; font: inherit; font-size: 14px; font-weight: 600;
  color: inherit; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.18); cursor: pointer; }
.pre-act i { width: 16px; height: 16px; border-radius: 4px; border: 2px solid rgba(255,255,255,.5); display: inline-grid; place-items: center; }
.pre-act.on { border-color: var(--gold, #f4c451); background: rgba(244,196,81,.12); }
.pre-act.on i { border-color: var(--gold, #f4c451); background: var(--gold, #f4c451); }
.pre-act.on i::after { content: "✓"; font-size: 11px; color: #1a1406; font-style: normal; line-height: 1; }

/* Perfil: aviso da troca grátis a cada 15 dias */
.change-note { display: block; margin-top: 6px; font-size: 12px; }

/* Emojis na mesa */
.emoji-pop { position: fixed; z-index: 80; width: min(320px, calc(100vw - 16px)); padding: 10px; border-radius: 14px;
  background: #15181b; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 12px 32px rgba(0,0,0,.5); }
.emoji-pop .ep-title { font-size: 12px; font-weight: 700; margin: 2px 2px 6px; opacity: .85; }
.emoji-pop .ep-title small { font-weight: 500; opacity: .7; margin-left: 4px; }
.emoji-pop .ep-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-bottom: 8px; }
.emoji-pop .ep-grid button { font-size: 24px; line-height: 1; padding: 8px 0; border-radius: 10px; border: 0; background: rgba(255,255,255,.05); cursor: pointer; }
.emoji-pop .ep-grid button:hover { background: rgba(255,255,255,.12); }
.emoji-pop .ep-grid.paid button { background: rgba(244,196,81,.10); box-shadow: inset 0 0 0 1px rgba(244,196,81,.35); }
.emote-pop { position: absolute; z-index: 30; transform: translate(-50%, -50%); font-size: 34px; pointer-events: none;
  animation: emote-up 2.4s ease-out forwards; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }
.emote-pop.paid { font-size: 56px; animation: emote-up-big 3.2s ease-out forwards; filter: drop-shadow(0 0 14px rgba(244,196,81,.8)); }
@keyframes emote-up { 0% { opacity: 0; transform: translate(-50%, -20%) scale(.4); } 15% { opacity: 1; transform: translate(-50%, -70%) scale(1.15); }
  30% { transform: translate(-50%, -80%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -170%) scale(1); } }
@keyframes emote-up-big { 0% { opacity: 0; transform: translate(-50%, -20%) scale(.3) rotate(-20deg); } 15% { opacity: 1; transform: translate(-50%, -80%) scale(1.3) rotate(8deg); }
  25% { transform: translate(-50%, -85%) scale(1) rotate(-4deg); } 35% { transform: translate(-50%, -88%) scale(1.08) rotate(0); } 85% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -190%) scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .emote-pop, .emote-pop.paid { animation-duration: .01s; animation-iteration-count: 1; opacity: 1; } }

/* Computador: mesa centralizada (a largura máxima vem do fitFelt) */
.felt-wrap { width: 100%; margin-inline: auto; }

/* Mesa final: aro de ouro polido (degradê metálico com reflexo passando) e brilho dourado pulsando */
.felt-wrap.final .felt {
  border-color: transparent;
  background:
    radial-gradient(ellipse at 50% 40%, #1f6b4a 0%, #0f3d2a 75%) padding-box,
    linear-gradient(115deg, #6e4a0c 0%, #b8862a 8%, #f7d774 16%, #fffbe0 21%, #e9bd4c 27%, #8a6212 38%, #c9971f 48%,
      #f2cd5c 58%, #fff6c9 63%, #d4a63a 70%, #7a5410 82%, #c9971f 92%, #6e4a0c 100%) border-box;
  background-size: 100% 100%, 300% 300%;
  outline: 2px solid rgba(255, 236, 160, .75); outline-offset: -6px;
  animation: gold-rail 5s linear infinite, gold-glow 2.6s ease-in-out infinite;
}
@keyframes gold-rail { from { background-position: 0 0, 0% 50%; } to { background-position: 0 0, 300% 50%; } }
@keyframes gold-glow {
  0%, 100% { box-shadow: 0 0 0 2px #fff1b0, 0 0 22px rgba(244,196,81,.45), 0 0 60px rgba(244,196,81,.18), inset 0 0 60px rgba(0,0,0,.45); }
  50% { box-shadow: 0 0 0 2px #fffbe6, 0 0 36px rgba(255,215,100,.75), 0 0 90px rgba(244,196,81,.35), inset 0 0 60px rgba(0,0,0,.45); }
}
@media (prefers-reduced-motion: reduce) { .felt-wrap.final .felt { animation: none; } }

/* Anúncio "MESA FINAL" */
.final-banner { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(0,0,0,.55);
  animation: fb-fade 4.2s ease forwards; cursor: pointer; }
.final-banner .fb-glow { position: absolute; width: 140vmax; height: 140vmax; background: conic-gradient(from 0deg, transparent, rgba(244,196,81,.18), transparent 30%, rgba(244,196,81,.12), transparent 60%);
  animation: fb-spin 6s linear infinite; }
.final-banner .fb-card { position: relative; display: grid; gap: 6px; text-align: center; padding: 26px 40px; border-radius: 18px;
  background: linear-gradient(160deg, #2a2108, #0d0b05); border: 2px solid #f4c451; box-shadow: 0 0 50px rgba(244,196,81,.45);
  animation: fb-pop .7s cubic-bezier(.2,1.4,.4,1) both; }
.final-banner .fb-top { font-size: 13px; opacity: .8; letter-spacing: .08em; }
.final-banner b { font-size: clamp(34px, 9vw, 64px); letter-spacing: .12em; font-weight: 900;
  background: linear-gradient(90deg, #b8892b, #fff2c4, #f4c451, #b8892b); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: fb-shine 2.2s linear infinite; }
.final-banner .fb-sub { font-size: 14px; color: #f4e2b0; }
@keyframes fb-fade { 0%, 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fb-spin { to { transform: rotate(360deg); } }
@keyframes fb-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes fb-shine { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .final-banner .fb-glow, .final-banner b { animation: none; } }

/* Barra da mesa no celular: tudo numa faixa que quebra linha sem cortar o Chat */
.table-bar-right { flex-wrap: wrap; justify-content: flex-end; min-width: 0; }
@media (max-width: 700px) {
  .table-bar { padding: 8px 10px; gap: 6px; }
  .table-bar-right { width: 100%; justify-content: flex-start; gap: 6px; }
  .table-actions { gap: 6px; }
  .table-actions .btn.sm, .chat-fab { padding: 5px 9px; font-size: 12px; }
  .unit-switch { padding: 3px 7px; font-size: 11px; }
  .unit-switch .u-knob { width: 26px; height: 14px; }
  .unit-switch .u-knob::after { width: 10px; height: 10px; }
  .unit-switch.on .u-knob::after { transform: translateX(12px); }
}

/* Fichas ⇄ BB e emoji: canto de baixo, à direita da mesa (espelha o "Sua mão" à esquerda) */
.table-tools { position: absolute; right: 8px; bottom: 8px; z-index: 4; display: flex; align-items: center; gap: 8px; }
.table-tools .emoji-btn { width: 38px; height: 38px; border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer;
  background: rgba(15,17,19,.92); border: 1px solid rgba(255,255,255,.18); box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.table-tools .emoji-btn:hover { border-color: var(--gold, #f4c451); }
.table-tools .unit-switch { background: rgba(15,17,19,.92); box-shadow: 0 6px 18px rgba(0,0,0,.35); padding: 8px 10px; }
@media (max-width: 700px) {
  .table-tools { right: 4px; bottom: 4px; gap: 6px; flex-direction: column; align-items: flex-end; }
  .table-tools .emoji-btn { width: 34px; height: 34px; font-size: 18px; }
  .table-tools .unit-switch { padding: 6px 8px; }
}

/* Aviso para quem está zerado no período de rebuy */
.rebuy-warn { flex-basis: 100%; margin-top: 6px; padding: 8px 10px; border-radius: 10px; font-size: 13px;
  background: rgba(244,196,81,.12); border: 1px solid rgba(244,196,81,.45); color: #f6e3a8; }
/* Faixa na mesa no último minuto do rebuy */
.rebuy-alert { position: absolute; left: 50%; top: 6px; transform: translateX(-50%); z-index: 6; white-space: nowrap;
  padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; color: #1a1406;
  background: linear-gradient(90deg, #f4c451, #ffe08a); box-shadow: 0 6px 20px rgba(244,196,81,.45);
  animation: ra-pulse 1s ease-in-out infinite; }
@keyframes ra-pulse { 50% { box-shadow: 0 6px 30px rgba(244,196,81,.85); } }
@media (max-width: 700px) { .rebuy-alert { font-size: 11px; padding: 6px 10px; white-space: normal; text-align: center; width: max-content; max-width: 92%; } }
@media (prefers-reduced-motion: reduce) { .rebuy-alert { animation: none; } }

/* ---------- Conquistas e títulos ---------- */
/* Título embaixo do lugar do jogador: faixa dourada (pode ser mais larga que a plaquinha) */
.seat-title { margin-top: 11px; max-width: 170px; width: max-content; padding: 2px 9px; border-radius: 999px; z-index: 3;
  font-size: 10px; font-weight: 800; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: #f8e3a0; background: linear-gradient(180deg, rgba(42,33,8,.95), rgba(20,16,5,.95)); border: 1px solid rgba(244,196,81,.55);
  box-shadow: 0 3px 10px rgba(0,0,0,.4); pointer-events: none; }
.seat-title + .hand-name { margin-top: 4px; }
@media (max-width: 700px) { .seat-title { font-size: 9px; max-width: 120px; padding: 1px 7px; margin-top: 9px; } }
.seat .plate { cursor: pointer; }

.medals { display: grid; gap: 8px; margin-top: 8px; max-height: 300px; overflow: auto; padding-right: 4px; }
.medal-row { display: flex; align-items: center; gap: 10px; }
.medal { display: inline-flex; align-items: center; gap: 8px; min-width: 170px; padding: 6px 10px; border-radius: 999px; font-size: 13px; font-weight: 600;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); }
.medal .mi { font-size: 18px; }
.medal.locked { opacity: .45; filter: grayscale(1); }
.medal.bronze { border-color: #b4744a; background: rgba(180,116,74,.14); }
.medal.prata { border-color: #c9d1d6; background: rgba(201,209,214,.12); }
.medal.ouro, .medal.unico { border-color: #f4c451; background: rgba(244,196,81,.14); box-shadow: 0 0 12px rgba(244,196,81,.25); }
.mprog { flex: 1; min-width: 0; display: grid; gap: 3px; }
.mprog .bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.mprog .bar i { display: block; height: 100%; background: linear-gradient(90deg, #b8862a, #f4c451); border-radius: 99px; }
.mprog small { font-size: 11px; color: var(--muted, #9aa); } .mprog small.ok { color: #f4c451; }

.player-card .pc-head { display: flex; gap: 14px; align-items: center; }
.player-card h3 { margin: 0; }
.pc-title { margin-top: 4px; font-weight: 800; font-size: 14px;
  background: linear-gradient(90deg, #d9a93a, #fff1b8, #d9a93a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pc-medals { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 8px; }
.pc-medal { display: grid; justify-items: center; gap: 4px; padding: 10px 6px; border-radius: 12px; text-align: center;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); }
.pc-medal span { font-size: 26px; } .pc-medal small { font-size: 11px; line-height: 1.2; }
.pc-medal.bronze { border-color: #b4744a; } .pc-medal.prata { border-color: #c9d1d6; }
.pc-medal.ouro, .pc-medal.unico { border-color: #f4c451; box-shadow: 0 0 12px rgba(244,196,81,.25); }

.ach-toast { position: fixed; top: 64px; left: 50%; transform: translateX(-50%); z-index: 95; display: flex; align-items: center; gap: 12px;
  padding: 12px 18px; border-radius: 14px; min-width: 260px; max-width: calc(100vw - 24px); cursor: pointer;
  background: linear-gradient(160deg, #2a2108, #0d0b05); border: 2px solid #f4c451; box-shadow: 0 10px 40px rgba(244,196,81,.35);
  animation: ach-in .5s cubic-bezier(.2,1.4,.4,1) both, ach-out .4s ease 4.8s forwards; }
.ach-toast .ai { font-size: 34px; animation: ach-spin 1s ease .3s both; }
.ach-toast small { display: block; font-size: 11px; color: #e9d9a8; letter-spacing: .04em; }
.ach-toast b { display: block; font-size: 16px; color: #fff3c9; }
.ach-toast.bronze { border-color: #b4744a; } .ach-toast.prata { border-color: #c9d1d6; }
@keyframes ach-in { from { transform: translate(-50%, -30px) scale(.8); opacity: 0; } to { transform: translate(-50%, 0) scale(1); opacity: 1; } }
@keyframes ach-out { to { transform: translate(-50%, -20px); opacity: 0; } }
@keyframes ach-spin { from { transform: rotateY(180deg) scale(.4); } to { transform: rotateY(0) scale(1); } }
@media (prefers-reduced-motion: reduce) { .ach-toast, .ach-toast .ai { animation: none; } }
/* Lugares da parte de baixo: o título vai acima das cartas (não invade a barra de ações) */
.seat-title.up { position: absolute; bottom: 100%; margin: 0 0 4px; }

/* ---------- Carrossel do lobby (torneio da semana + anúncios) ---------- */
.promo { position: relative; overflow: hidden; border-radius: 18px; margin: 4px 0 18px; height: clamp(190px, 26vw, 250px);
  border: 1px solid rgba(244,196,81,.35); box-shadow: 0 10px 30px rgba(0,0,0,.4); background: #0c0d0f; touch-action: pan-y; user-select: none; }
.promo-track { display: flex; height: 100%; transition: transform .55s cubic-bezier(.4,.1,.2,1); }
.slide { position: relative; flex: 0 0 100%; height: 100%; overflow: hidden; display: block; color: inherit; text-decoration: none; }

/* Torneio em destaque */
.t-slide { display: flex; align-items: stretch;
  background: radial-gradient(120% 140% at 0% 0%, rgba(244,196,81,.20), transparent 55%), linear-gradient(120deg, #17140a, #0b0c0e 60%); }
.ts-bg { position: absolute; inset: -20px; background-size: cover; background-position: center; filter: blur(22px) brightness(.45) saturate(1.2); transform: scale(1.1); }
.ts-art { position: relative; z-index: 1; flex: 0 0 auto; height: 100%; max-width: 46%; padding: 10px; border: 0; background: none; cursor: zoom-in; }
.ts-art img { height: 100%; max-width: 100%; object-fit: contain; border-radius: 10px; box-shadow: 0 8px 26px rgba(0,0,0,.55); display: block; }
.ts-deco { position: relative; z-index: 1; flex: 0 0 auto; width: 30%; display: grid; place-items: center; font-size: clamp(56px, 9vw, 96px);
  filter: drop-shadow(0 0 24px rgba(244,196,81,.55)); }
.ts-info { position: relative; z-index: 1; flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 14px 18px 14px 6px; }
.ts-kicker { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #f4c451; }
.ts-info h3 { margin: 0; font-size: clamp(20px, 3.2vw, 32px); line-height: 1.05; font-weight: 900;
  background: linear-gradient(90deg, #fff6d6, #f4c451); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ts-when { font-size: 13px; color: #e8dfc4; text-transform: capitalize; }
.ts-live { font-size: 13px; font-weight: 800; color: #ff6b6b; animation: ra-pulse 1.2s ease-in-out infinite; }
.ts-count { font-size: clamp(18px, 2.6vw, 26px); font-weight: 800; font-variant-numeric: tabular-nums; color: #fff; letter-spacing: .02em; }
.ts-facts { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; color: #d8d2c0; }
.ts-facts b { color: #f4c451; }
.ts-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.ts-mine { font-weight: 700; color: #7fe0a6; font-size: 14px; }

/* Anúncio */
.ad-slide { background: #0c0d0f; cursor: pointer; }
.ad-bg { position: absolute; inset: -20px; background-size: cover; background-position: center; filter: blur(20px) brightness(.5); transform: scale(1.1); }
.ad-slide img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; display: block; }
.ad-tag { position: absolute; z-index: 2; right: 10px; top: 10px; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; background: rgba(0,0,0,.6); color: #ddd; border: 1px solid rgba(255,255,255,.2); }

/* Navegação */
.promo-dots { position: absolute; z-index: 3; left: 50%; bottom: 8px; transform: translateX(-50%); display: flex; gap: 6px; }
.promo-dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; padding: 0; background: rgba(255,255,255,.35); cursor: pointer; transition: width .25s; }
.promo-dots button.on { width: 22px; background: #f4c451; }
.promo-nav { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  font-size: 22px; line-height: 1; color: #fff; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .2s; }
.promo:hover .promo-nav { opacity: 1; }
.promo-nav.prev { left: 8px; } .promo-nav.next { right: 8px; }
@media (hover: none) { .promo-nav { display: none; } }

@media (max-width: 560px) {
  .promo { height: 215px; border-radius: 14px; }
  .ts-art { max-width: 42%; padding: 8px; }
  .ts-info { padding: 10px 12px 22px 4px; gap: 3px; }
  .ts-facts { font-size: 11.5px; gap: 2px 8px; }
  .ts-actions .btn { padding: 7px 10px; font-size: 13px; }
  .ts-when { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .promo-track { transition: none; } }

/* Arte em tela cheia */
.art-view { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.88); display: grid; place-items: center; padding: 16px; cursor: zoom-out; }
.art-view img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.art-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; font-size: 18px; color: #fff; background: rgba(255,255,255,.15); cursor: pointer; }
/* Time bank do lugar de baixo (o seu): acima das cartas, sem cobrir os botões do canto */
.tb-box.top { left: 50%; right: auto; top: auto; bottom: calc(100% + 4px); transform: translateX(-50%); }
.tb-box.top.over-title { bottom: calc(100% + 26px); }

/* Pote: texto e valor maiores */
.pot { font-size: 18px; min-height: 34px; padding: 4px 16px 4px 6px; gap: 10px; }
.pot .chips { transform: scale(1.15); }
@media (max-width: 700px) { .pot { font-size: 16px; min-height: 30px; padding: 3px 13px 3px 5px; } }

/* Emoji especial: confirmação do valor e forma de pagamento */
.ep-confirm { margin-top: 8px; padding: 10px; border-radius: 12px; background: rgba(244,196,81,.08); border: 1px solid rgba(244,196,81,.4); display: grid; gap: 8px; }
.epc-head { display: flex; gap: 10px; align-items: center; }
.epc-emo { font-size: 34px; line-height: 1; }
.epc-head b { display: block; font-size: 14px; } .epc-head small { display: block; font-size: 12px; opacity: .85; }
.epc-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.epc-pay .btn { display: grid; gap: 2px; padding: 8px 6px; font-size: 12px; line-height: 1.15; }
.epc-pay .btn small { font-size: 10.5px; font-weight: 500; opacity: .85; }
.epc-pay .btn:disabled { opacity: .45; }
.emoji-pop.confirming .ep-title, .emoji-pop.confirming .ep-grid { display: none; }
.emoji-pop.confirming .ep-confirm { margin-top: 0; }
.epc-head small b { display: inline; font-size: inherit; }

/* PC: Fichas/BB e emoji no canto direito da barra de ações (fora da mesa, sem cobrir nomes) */
@media (min-width: 1001px) {
  #screen-table .game-main { position: relative; }
  .game-main > .table-tools { right: 16px; bottom: calc(env(safe-area-inset-bottom) + 20px); z-index: 6; }
  .action-bar { padding-right: 230px; }
}

/* Topo da mesa: a linha do relógio não muda de tamanho a cada segundo (antes a mesa "pulava") */
#t-hand, #level-clock, #t-blinds { font-variant-numeric: tabular-nums; }
@media (min-width: 701px) {
  #t-hand { flex-basis: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 700px) {
  #t-hand { flex-basis: 100%; min-height: 2.7em; line-height: 1.35; }
}

/* Mãos anteriores */
.hand-history { max-width: 560px; }
.hh-list { display: grid; gap: 8px; max-height: min(62vh, 560px); overflow: auto; padding-right: 4px; }
.hh-item { padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); display: grid; gap: 6px; }
.hh-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.hh-net { margin-left: auto; font-weight: 800; } .hh-net.pos { color: #7fe0a6; } .hh-net.neg { color: #ff8a8a; }
.hh-board { display: flex; gap: 4px; flex-wrap: wrap; }
.hh-win { font-size: 13px; } .hh-win i { color: #f4c451; font-style: normal; font-weight: 700; }
.hh-players { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; }
.hh-players span { display: inline-flex; align-items: center; gap: 4px; } .hh-players .me { font-weight: 700; }
.hh-players small { opacity: .75; }

/* Intervalo do torneio: aviso grande no meio da mesa */
.break-banner { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 7; display: grid; justify-items: center; gap: 4px;
  padding: 18px 34px; border-radius: 18px; text-align: center; pointer-events: none;
  background: linear-gradient(160deg, rgba(42,33,8,.96), rgba(13,11,5,.96)); border: 2px solid #f4c451; box-shadow: 0 0 40px rgba(244,196,81,.4); }
.break-banner b { font-size: clamp(30px, 6vw, 52px); font-weight: 900; letter-spacing: .14em;
  background: linear-gradient(90deg, #b8862a, #fff2c4, #f4c451, #b8862a); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: fb-shine 2.4s linear infinite; }
.break-banner span { font-size: clamp(18px, 3vw, 26px); font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.break-banner small { font-size: 13px; color: #f6e3a8; max-width: 300px; }
.break-banner small:empty { display: none; }
@media (max-width: 700px) { .break-banner { padding: 14px 20px; max-width: 86%; } }

/* Aviso do organizador para um jogador */
.notice-pop { position: fixed; inset: 0; z-index: 96; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.6); }
.notice-pop .np-card { max-width: 420px; width: 100%; padding: 22px; border-radius: 18px; text-align: center; display: grid; gap: 10px;
  background: linear-gradient(160deg, #2a2108, #0d0b05); border: 2px solid #f4c451; box-shadow: 0 0 50px rgba(244,196,81,.4); animation: fb-pop .5s cubic-bezier(.2,1.4,.4,1) both; }
.notice-pop small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #f4c451; font-weight: 800; }
.notice-pop p { margin: 0; font-size: 18px; line-height: 1.35; color: #fff6dc; font-weight: 700; }

/* Torneios anteriores no lobby */
.past-list { display: grid; gap: 10px; margin-bottom: 18px; }
.past-card { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); transition: border-color .2s; }
.past-card:hover { border-color: rgba(244,196,81,.45); }
.past-art { width: 58px; height: 72px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; background: #000; }
.past-art.none { display: grid; place-items: center; font-size: 28px; background: rgba(244,196,81,.1); }
.past-body { min-width: 0; flex: 1; display: grid; gap: 6px; }
.past-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; } .past-head b { font-size: 15px; } .past-head .muted { font-size: 12px; }
.past-podium { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; }
.past-podium .pos1 b { color: #f4c451; } .past-podium em { font-style: normal; color: #f4c451; font-size: 12px; }

/* Medalhas escolhidas: bem pequenas no cantinho da foto */
.av-wrap { position: relative; display: inline-flex; flex: 0 0 auto; }
.seat-badges { position: absolute; right: -7px; bottom: -6px; display: flex; gap: 1px; pointer-events: none; }
.seat-badges .sb { width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center; font-size: 9px; font-style: normal; line-height: 1;
  background: #15181b; border: 1px solid #f4c451; box-shadow: 0 1px 4px rgba(0,0,0,.5); }
.seat-badges .sb.bronze { border-color: #b4744a; } .seat-badges .sb.prata { border-color: #c9d1d6; }
@media (max-width: 700px) { .seat-badges { right: -6px; bottom: -5px; } .seat-badges .sb { width: 12px; height: 12px; font-size: 7px; } }
.badge-pick { width: 26px; height: 26px; flex: 0 0 auto; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: none; color: #f4c451; font-size: 15px; cursor: pointer; }
.badge-pick.on { background: rgba(244,196,81,.18); border-color: #f4c451; }
.badge-pick.off { border-color: transparent; cursor: default; }

/* Carrossel: campeão do último torneio e "Em breve" */
.champ-slide .ts-kicker { color: #f4c451; }
.champ-slide h3 { color: #fff6dc; }
.soon-slide h3 { letter-spacing: .06em; text-transform: uppercase; }

/* Arremessáveis (estilo PokerStars) */
.emoji-pop .ep-grid.paid button { display: grid; gap: 2px; justify-items: center; padding: 6px 0 4px; touch-action: none; user-select: none; -webkit-user-select: none; }
.emoji-pop .ep-grid.paid button span { font-size: 24px; line-height: 1; pointer-events: none; }
.emoji-pop .ep-grid.paid button small { font-size: 9.5px; opacity: .75; pointer-events: none; }
.emoji-pop.dragging { opacity: 0; pointer-events: none; }
.throw-ghost { position: fixed; z-index: 120; font-size: 44px; pointer-events: none; transform: translate(-50%, -60%); filter: drop-shadow(0 6px 10px rgba(0,0,0,.6)); }
#seats .seat.throw-target .plate { box-shadow: 0 0 0 2px rgba(244,196,81,.8), 0 0 16px rgba(244,196,81,.45); animation: throw-pulse 1s ease-in-out infinite; cursor: pointer; }
#seats .seat.throw-over .plate { box-shadow: 0 0 0 3px #f4c451, 0 0 26px rgba(244,196,81,.9); transform: scale(1.06); }
@keyframes throw-pulse { 50% { box-shadow: 0 0 0 2px rgba(244,196,81,.35), 0 0 6px rgba(244,196,81,.2); } }
.throw-hint { position: fixed; z-index: 110; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px;
  padding: 8px 10px 8px 14px; border-radius: 999px; background: rgba(12,14,16,.95); border: 1px solid rgba(244,196,81,.6); box-shadow: 0 8px 24px rgba(0,0,0,.5); font-size: 14px; font-weight: 700; white-space: nowrap; }
.throw-hint > span { font-size: 22px; }
.throw-confirm { position: fixed; inset: 0; z-index: 115; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.45); }
.throw-confirm .ep-confirm { width: min(340px, 100%); padding: 14px; border-radius: 14px; background: #15181b; border: 1px solid rgba(244,196,81,.45); box-shadow: 0 12px 40px rgba(0,0,0,.6); display: grid; gap: 10px; }
.tc-remember { display: flex; align-items: center; gap: 6px; font-size: 12px; opacity: .85; }
.throw-obj, .throw-part, .throw-stick, .throw-splat { position: absolute; z-index: 32; pointer-events: none; }
.throw-obj { font-size: 38px; line-height: 1; filter: drop-shadow(0 6px 8px rgba(0,0,0,.55)); will-change: transform; }
.throw-part { font-size: 18px; line-height: 1; }
.throw-stick { font-size: 46px; line-height: 1; transform: translate(-50%, -50%); filter: drop-shadow(0 4px 8px rgba(0,0,0,.6)); animation: throw-stick 2.4s ease-out forwards; }
.throw-stick.crown { font-size: 34px; }
@keyframes throw-stick { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.3); } 12% { opacity: 1; transform: translate(-50%, -50%) scale(1.25); }
  22% { transform: translate(-50%, -50%) scale(.95); } 30% { transform: translate(-50%, -50%) scale(1.05); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1); } }
.throw-splat { width: 74px; height: 64px; transform: translate(-50%, -50%); background: radial-gradient(circle at 45% 45%, var(--c) 0 38%, transparent 40%),
  radial-gradient(circle at 18% 30%, var(--c) 0 9%, transparent 10%), radial-gradient(circle at 82% 25%, var(--c) 0 8%, transparent 9%),
  radial-gradient(circle at 75% 80%, var(--c) 0 10%, transparent 11%), radial-gradient(circle at 22% 78%, var(--c) 0 7%, transparent 8%);
  opacity: .85; animation: throw-splat 2.2s ease-out forwards; }
@keyframes throw-splat { 0% { transform: translate(-50%, -50%) scale(.2); } 10% { transform: translate(-50%, -50%) scale(1.15); } 18% { transform: translate(-50%, -50%) scale(1); }
  75% { opacity: .85; } 100% { opacity: 0; transform: translate(-50%, -40%) scale(1); } }
.plate.throw-shake { animation: throw-shake .5s ease-in-out; }
@keyframes throw-shake { 15% { transform: translateX(-6px) rotate(-3deg); } 35% { transform: translateX(6px) rotate(3deg); } 55% { transform: translateX(-4px); } 75% { transform: translateX(3px); } }
@media (max-width: 700px) { .throw-obj { font-size: 30px; } .throw-stick { font-size: 36px; } .throw-splat { width: 56px; height: 48px; } }
@media (prefers-reduced-motion: reduce) { .throw-stick, .throw-splat, .plate.throw-shake, #seats .seat.throw-target .plate { animation-duration: .01s; } }

/* Destaque do próprio clube no carrossel */
.club-slide .ts-kicker { color: #f4c451; }

/* Escolher conquistas em destaque direto na mesa (tocando no próprio lugar) */
.pc-medal.pick { position: relative; cursor: pointer; background: rgba(255,255,255,.03); color: inherit; font: inherit; opacity: .7; transition: opacity .15s, transform .15s; }
.pc-medal.pick:hover { opacity: .9; }
.pc-medal.pick.on { opacity: 1; background: rgba(244,196,81,.14); border-color: #f4c451; box-shadow: 0 0 14px rgba(244,196,81,.35); }
.pc-medal.pick:active { transform: scale(.96); }
.pc-star { position: absolute; top: 4px; right: 6px; font-style: normal; font-size: 14px; color: #f4c451; }

/* Cor da mesa escolhida pelo jogador (só ele vê). O feltro usa estas variáveis. */
.felt-wrap .felt {
  background: radial-gradient(ellipse at 50% 38%, var(--felt-hi, #2a9a62) 0%, var(--felt) 38%, var(--felt-2) 100%);
  box-shadow: 0 0 0 2px #6b4527, 0 0 0 5px #1a0f08, inset 0 0 70px rgba(0, 0, 0, .5), inset 0 2px 0 rgba(255, 255, 255, .06),
    0 25px 60px rgba(0, 0, 0, .6), 0 0 90px var(--felt-glow, rgba(29, 122, 76, .25));
}
.felt-wrap.final .felt {
  background:
    radial-gradient(ellipse at 50% 40%, var(--felt-hi, #1f6b4a) 0%, var(--felt-2, #0f3d2a) 75%) padding-box,
    linear-gradient(115deg, #6e4a0c 0%, #b8862a 8%, #f7d774 16%, #fffbe0 21%, #e9bd4c 27%, #8a6212 38%, #c9971f 48%,
      #f2cd5c 58%, #fff6c9 63%, #d4a63a 70%, #7a5410 82%, #c9971f 92%, #6e4a0c 100%) border-box;
  background-size: 100% 100%, 300% 300%;
}
[data-felt="azul"], [data-felt-sw="azul"] { --felt-hi: #2f7fd0; --felt: #1d5aa0; --felt-2: #0a2347; --felt-glow: rgba(40, 110, 200, .28); }
[data-felt="grafite"], [data-felt-sw="grafite"] { --felt-hi: #5a636c; --felt: #3a4148; --felt-2: #15181b; --felt-glow: rgba(150, 160, 170, .18); }
[data-felt="vinho"], [data-felt-sw="vinho"] { --felt-hi: #a8324a; --felt: #7a1f33; --felt-2: #2e0a13; --felt-glow: rgba(170, 40, 70, .28); }
[data-felt="roxo"], [data-felt-sw="roxo"] { --felt-hi: #8a4fd0; --felt: #5b2c9a; --felt-2: #200d3d; --felt-glow: rgba(130, 70, 210, .3); }
[data-felt="oceano"], [data-felt-sw="oceano"] { --felt-hi: #1fb3a6; --felt: #0f7d78; --felt-2: #04302f; --felt-glow: rgba(30, 180, 170, .28); }
[data-felt="preto"], [data-felt-sw="preto"] { --felt-hi: #2c2f33; --felt: #16181b; --felt-2: #050506; --felt-glow: rgba(201, 209, 214, .14); }
[data-felt="ouro"], [data-felt-sw="ouro"] { --felt-hi: #b88a2e; --felt: #7d5a17; --felt-2: #2b1d05; --felt-glow: rgba(244, 196, 81, .32); }
[data-felt-sw="verde"] { --felt-hi: #2a9a62; --felt: #1d7a4c; --felt-2: #0a3b24; }

.felt-pop { width: min(340px, calc(100vw - 16px)); }
.felt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.felt-opt { display: grid; justify-items: center; gap: 3px; padding: 8px 2px 6px; border-radius: 12px; border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03); color: inherit; font: inherit; cursor: pointer; }
.felt-opt:hover { border-color: rgba(244,196,81,.45); }
.felt-opt.on { border-color: #f4c451; background: rgba(244,196,81,.12); }
.felt-opt b { font-size: 10.5px; line-height: 1.15; text-align: center; }
.felt-opt small { font-size: 9.5px; opacity: .8; }
.felt-sw { width: 40px; height: 28px; border-radius: 50%; border: 3px solid #2b1a10; box-shadow: 0 0 0 1px #6b4527, inset 0 0 8px rgba(0,0,0,.5);
  background: radial-gradient(ellipse at 50% 38%, var(--felt-hi) 0%, var(--felt) 45%, var(--felt-2) 100%); }
.felt-sw.big { width: 54px; height: 38px; flex: 0 0 auto; }
.felt-pop .ep-confirm { display: grid; gap: 8px; }

/* Barra de ação fixa: os botões ficam sempre no mesmo lugar (fora da vez: marcar antes ou apagados) */
.action-bar .hint { flex-basis: 100%; text-align: center; font-size: 13px; min-height: 18px; }
.action-bar .hint.you { color: var(--gold, #f4c451); font-weight: 700; }
.act-buttons .btn.off { opacity: .32; filter: grayscale(.6); cursor: default; pointer-events: none; }
.act-buttons .pre-big { display: inline-flex; align-items: center; justify-content: center; gap: 8px; opacity: .85; }
.act-buttons .pre-big i { width: 16px; height: 16px; border-radius: 4px; border: 2px solid rgba(255,255,255,.55); flex: 0 0 auto; display: inline-grid; place-items: center; }
.act-buttons .pre-big.on { opacity: 1; box-shadow: 0 0 0 2px var(--gold, #f4c451); }
.act-buttons .pre-big.on i { border-color: var(--gold, #f4c451); background: var(--gold, #f4c451); }
.act-buttons .pre-big.on i::after { content: "✓"; font-size: 11px; color: #1a1406; font-style: normal; line-height: 1; }
.raise-box.ghost { visibility: hidden; pointer-events: none; }
.tap-hint { color: var(--gold, #f4c451); opacity: .85; }
/* Cartas que dá para mostrar/esconder tocando */
.card.tappable { cursor: pointer; }
.card.tappable:not(.public):hover { box-shadow: 0 0 0 2px rgba(244,196,81,.6); }
.card.public.queued { box-shadow: 0 0 0 2px rgba(244,196,81,.85); outline: 2px dashed rgba(244,196,81,.9); outline-offset: 2px; }
.card.public.queued::after { content: "⏳"; }

/* Áudio na mesa */
.voice-pop { width: min(320px, calc(100vw - 16px)); }
.vp-body { display: flex; align-items: center; gap: 12px; margin: 6px 0; }
.vp-rec { width: 56px; height: 56px; flex: 0 0 auto; border-radius: 50%; font-size: 24px; cursor: pointer; border: 2px solid var(--gold, #f4c451);
  background: rgba(244,196,81,.12); color: #fff; }
.vp-rec.on { background: #b3261e; border-color: #ff6b5f; animation: vp-pulse 1s ease-in-out infinite; }
@keyframes vp-pulse { 50% { box-shadow: 0 0 0 8px rgba(255,107,95,.18); } }
.vp-info { flex: 1; display: grid; gap: 6px; font-size: 13px; }
.vp-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.vp-bar i { display: block; height: 100%; width: 0; background: var(--gold, #f4c451); transition: width .2s linear; }
.vp-actions { display: grid; gap: 6px; margin-top: 6px; }
.vp-actions audio { width: 100%; height: 36px; }
.vp-actions .btn { display: grid; gap: 2px; font-size: 12px; }
.vp-actions .btn small { font-size: 10.5px; font-weight: 500; opacity: .85; }
.voice-bubble { position: absolute; z-index: 31; transform: translate(-50%, -110%); display: flex; align-items: center; gap: 3px; padding: 6px 10px;
  border-radius: 999px; border: 1px solid var(--gold, #f4c451); background: rgba(12,14,16,.95); color: #fff; cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,.5); animation: fb-pop .35s ease-out both; }
.voice-bubble span { font-size: 16px; line-height: 1; }
.voice-bubble i { width: 3px; height: 8px; border-radius: 2px; background: var(--gold, #f4c451); opacity: .5; }
.voice-bubble.playing i { animation: vb-wave .6s ease-in-out infinite; opacity: 1; }
.voice-bubble.playing i:nth-child(3) { animation-delay: .15s; } .voice-bubble.playing i:nth-child(4) { animation-delay: .3s; }
@keyframes vb-wave { 50% { height: 16px; } }
.voice-bubble.tap::after { content: 'toque para ouvir'; font-size: 11px; margin-left: 4px; color: var(--gold, #f4c451); }
.voice-bubble.done { opacity: .75; }

/* Contagem em dias ("4d 07h 27m") numa linha só, um pouco menor que o relógio normal */
.ti-clock { white-space: nowrap; }
.ti-clock.days { font-size: 26px; letter-spacing: 0; }
@media (max-width: 700px) { .ti-clock.days { font-size: 20px; } }

/* Spin & Go */
.badge-live.spin { background: linear-gradient(135deg, #f4c451, #d9822b); color: #1a1004; }
.spin-row { border-color: rgba(244,196,81,.45); background: linear-gradient(120deg, rgba(244,196,81,.10), transparent 55%), var(--panel, #121417); }
.spin-odds { font-size: 12px; opacity: .75; }
.spin-go { min-width: 130px; }
.spin-pop { position: fixed; inset: 0; z-index: 97; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.72); }
.spin-pop .sp-card { width: min(360px, 100%); padding: 22px 18px; border-radius: 20px; text-align: center; display: grid; gap: 10px;
  background: radial-gradient(circle at 50% 0%, #3a2a08, #0d0b05 70%); border: 2px solid #f4c451; box-shadow: 0 0 60px rgba(244,196,81,.35); }
.spin-pop small { font-size: 12px; color: #d8c79a; letter-spacing: .08em; text-transform: uppercase; }
.sp-title { font-size: 26px; font-weight: 900; letter-spacing: .12em; color: #f4c451; }
.sp-reel { height: 110px; display: grid; place-items: center; border-radius: 16px; background: #0a0907; border: 1px solid rgba(244,196,81,.35); overflow: hidden; }
.sp-reel b { font-size: 64px; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 0 24px rgba(244,196,81,.6); transition: transform .12s; }
.sp-reel b.big { color: #ffdf6e; }
.spin-pop.landed .sp-reel b { animation: sp-land .6s cubic-bezier(.2,1.6,.4,1) both; }
.spin-pop.landed.top .sp-card { animation: sp-glow 1s ease-in-out infinite; }
@keyframes sp-land { 0% { transform: scale(.6); } 100% { transform: scale(1.15); } }
@keyframes sp-glow { 50% { box-shadow: 0 0 90px rgba(255,215,100,.75); } }
.sp-prize { font-size: 16px; color: #fff6dc; } .sp-prize b { color: #f4c451; font-size: 20px; }

/* Roda do Spin & Go (estilo Crazy Time) */
.sp-card.wheel { width: min(380px, 100%); }
.wh-wrap { position: relative; width: min(300px, 78vw); aspect-ratio: 1; margin: 6px auto 0; filter: drop-shadow(0 10px 28px rgba(0,0,0,.6)); }
.wh-rot { width: 100%; height: 100%; will-change: transform; }
.wh-svg { width: 100%; height: 100%; display: block; }
.wh-txt { fill: #fff; font-size: 15px; font-weight: 900; text-anchor: middle; dominant-baseline: middle; paint-order: stroke; stroke: rgba(0,0,0,.45); stroke-width: 3px; }
.wh-txt.top { fill: #1a1004; stroke: rgba(255,255,255,.4); }
.wh-peg { fill: #fff6dc; stroke: #8a6212; stroke-width: 1; }
.wh-hub { fill: #15110a; stroke: #f4c451; stroke-width: 4; }
.wh-hub-t { fill: #f4c451; font-size: 15px; font-weight: 900; letter-spacing: .08em; text-anchor: middle; }
.wh-pointer { position: absolute; z-index: 2; left: 50%; top: -12px; width: 30px; height: 40px; transform: translateX(-50%); transform-origin: 50% 8px;
  background: linear-gradient(180deg, #fffbe0, #f4c451 60%, #a8760f); clip-path: polygon(0 0, 100% 0, 50% 100%); filter: drop-shadow(0 3px 4px rgba(0,0,0,.6)); }
.wh-pointer.tick { animation: wh-tick .12s ease-out; }
@keyframes wh-tick { 40% { transform: translateX(-50%) rotate(-14deg); } }
.spin-pop.landed .wh-wrap { animation: wh-win 1.2s ease-in-out infinite; }
@keyframes wh-win { 50% { filter: drop-shadow(0 0 30px rgba(244,196,81,.85)); } }
.spin-pop .sp-prize { font-size: 17px; }
.wh-txt.jack { fill: #ffd86b; font-size: 14px; }
.sp-odds { font-size: 10.5px; color: #d8c79a; opacity: .8; line-height: 1.35; }
.spin-pop.jackpot .sp-card { animation: sp-glow .6s ease-in-out infinite; border-color: #fff1b0; }

/* Bolão (palpite do placar) */
.bolao { margin: 0 0 18px; padding: 14px 16px; border-radius: 16px; display: grid; gap: 10px;
  background: linear-gradient(120deg, rgba(30,120,220,.18), rgba(200,30,40,.16)), var(--panel, #121417);
  border: 1px solid rgba(244,196,81,.45); }
.bl-head { display: flex; gap: 12px; align-items: center; }
.bl-head h3 { margin: 0; font-size: 17px; } .bl-head small { font-size: 12.5px; opacity: .85; }
.bl-ball { font-size: 30px; line-height: 1; animation: bl-bounce 1.6s ease-in-out infinite; }
@keyframes bl-bounce { 50% { transform: translateY(-4px) rotate(20deg); } }
.bl-form { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.bl-team { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; }
.bl-team input { width: 58px; height: 48px; text-align: center; font-size: 22px; font-weight: 800; padding: 0; }
.bl-x { font-size: 18px; opacity: .7; }
.bolao #bl-send { justify-self: center; min-width: 180px; }
.bl-info { font-size: 13px; text-align: center; opacity: .9; }
.bl-result { display: grid; justify-items: center; gap: 2px; } .bl-result span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.bl-result b { font-size: 20px; }
.bl-mine { text-align: center; font-size: 14px; } .bl-mine.won { color: #f4c451; font-weight: 800; font-size: 15px; }
.bl-winners { text-align: center; font-size: 13.5px; }
@media (max-width: 700px) { .bl-team span { font-size: 13px; } .bl-team input { width: 50px; height: 44px; } }
.bl-gate { display: grid; gap: 8px; justify-items: center; text-align: center; font-size: 13px; padding: 10px; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px dashed rgba(244,196,81,.5); }
.bl-gate small { opacity: .85; }

/* ---------- Mesa limpa: só os jogadores; o resto num toque ---------- */
/* Barra do topo da mesa flutua por cima (a mesa ganha a altura toda) */
#screen-table .game-main { position: relative; }
#screen-table .table-bar { position: absolute; top: 0; left: 0; right: 0; z-index: 8; padding: 8px 10px; gap: 8px;
  flex-wrap: nowrap; align-items: flex-start; pointer-events: none; }
#screen-table .table-bar > * { pointer-events: auto; }
.table-menu { position: relative; }
.menu-btn { font-size: 18px; line-height: 1; padding: 6px 10px; background: rgba(10, 11, 13, .75); }
.table-actions { display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 9; min-width: 210px;
  flex-direction: column; gap: 6px; padding: 8px; border-radius: 14px;
  background: rgba(12, 13, 16, .97); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 14px 40px rgba(0, 0, 0, .55); }
.table-actions.open { display: flex; }
.table-actions .btn, .table-actions .table-pick { width: 100%; text-align: left; justify-content: flex-start; }
.table-quick { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; min-width: 0; }
.table-quick:empty { visibility: hidden; }
#screen-table .table-bar-right { width: auto; margin-left: auto; }
.chat-fab { background: rgba(10, 11, 13, .75); }
/* No PC a barra do topo continua visível: fichas e som não se repetem no menu */
@media (min-width: 1001px) { .table-actions .ta-compact { display: none; } }

/* Informações da mesa: discretas no centro do feltro (detalhes no menu → Torneio) */
.felt-info { display: grid; gap: 1px; justify-items: center; text-align: center; max-width: 78%;
  font-size: 11px; line-height: 1.3; color: rgba(255, 255, 255, .5); pointer-events: none; }
.felt-info strong { font-size: 13px; color: rgba(255, 255, 255, .62); letter-spacing: .02em; }
.felt-info span:empty { display: none; }
@media (max-width: 700px) { .felt-info { font-size: 9.5px; } .felt-info strong { font-size: 11px; } }

/* Mesa em pé (celular e tablet na vertical): oval comprido, bordas arredondadas */
.felt-wrap.portrait .felt { inset: 6% 12%; border-radius: 999px; }
.felt-wrap { margin-top: 44px; }

/* Celular e tablet: a mesa ocupa a tela toda (sem a barra do site); fichas e som ficam no menu ☰ */
@media (max-width: 1000px) {
  body.on-table .topbar { display: none; }
  body.on-table .game { height: 100vh; height: 100dvh; }
  body.on-table .chat { top: 0; }
}
/* Barra de ações: compacta, colada embaixo */
@media (max-width: 700px) {
  .action-bar { min-height: 0; padding: 6px 8px calc(8px + env(safe-area-inset-bottom)); gap: 6px; }
  .action-bar .hint { font-size: 12px; min-height: 16px; }
  .act-buttons .btn { padding: 11px 6px; font-size: 14px; }
  .raise-box { gap: 6px; }
  .presets .btn.sm { padding: 5px 8px; font-size: 12px; }
}
/* Celular e tablet: controles de aumentar numa linha só (o deslizante empurrava para 2 linhas e sobrava preto embaixo) */
@media (max-width: 1000px) {
  .raise-box { width: 100%; flex-wrap: nowrap; }
  .raise-box input[type=range] { display: none; }
  .raise-box .presets { flex: 1; min-width: 0; }
  .raise-box .presets .btn { flex: 1; min-width: 0; padding: 7px 4px; }
  .raise-box input[type=number] { width: 84px; flex: 0 0 auto; padding: 7px 8px; }
}
/* Botões à vista no topo da mesa: compactos, com fundo para ler por cima do feltro */
.table-quick .btn:not(.primary):not(.danger), .table-quick .table-pick { background-color: rgba(10, 11, 13, .8); }
@media (max-width: 700px) { .table-quick .btn.sm, .table-quick .table-pick { padding: 5px 8px; font-size: 12px; } }
/* Carteira no topo da mesa (celular/tablet, onde a barra do site some): mostra as fichas e o + compra */
.table-wallet { background: rgba(10, 11, 13, .8); }
@media (min-width: 1001px) { .table-wallet { display: none; } }
@media (max-width: 700px) { .table-wallet { padding: 4px 8px; font-size: 13px; } }
.table-wallet .wallet-plus { display: inline-grid; }
.table-wallet #t-wallet-amount { color: var(--gold); }
/* Textos curtos nos botões do topo no celular (cabe tudo numa linha) */
.show-sm { display: none; }
@media (max-width: 700px) { .hide-sm { display: none; } .show-sm { display: inline; } }
/* Chat: ícone junto do emoji/áudio no canto da mesa (o topo fica para ausente, detalhes, sair e carteira) */
@media (max-width: 1000px) {
  .table-tools .chat-fab { display: grid; place-items: center; padding: 0; font-size: 18px; position: relative; }
  .table-tools .chat-fab .badge { top: -4px; right: -4px; }
}
@media (max-width: 700px) { .table-wallet .chip-dot { display: none; } .table-wallet { gap: 5px; } }
/* Cartas na mão: no tablet e no PC um pouco maiores (no celular continuam compactas) */
@media (min-width: 701px) {
  .seat .hole { height: 62px; }
  .seat .hole .card { width: 44px; height: 62px; }
  .seat .hole .card .r { font-size: 20px; } .seat .hole .card .s { font-size: 17px; }
  .seat .hole.four { height: 56px; }
  .seat .hole.four .card { width: 40px; height: 56px; margin-left: -11px; }
}
/* Aviso de espera/troca de mesa no meio do feltro, com animação de carregando */
.table-wait { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 7;
  display: grid; justify-items: center; gap: 10px; padding: 16px 20px; max-width: min(80%, 320px); text-align: center;
  border-radius: 16px; background: rgba(8, 9, 11, .88); border: 1px solid rgba(244, 196, 81, .35); box-shadow: 0 14px 40px rgba(0, 0, 0, .5); }
.table-wait b { font-size: 14px; color: #f4e2b0; line-height: 1.35; }
.tw-spin { width: 30px; height: 30px; border-radius: 50%; border: 3px solid rgba(244, 196, 81, .25); border-top-color: #f4c451;
  animation: tw-spin .9s linear infinite; }
@keyframes tw-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tw-spin { animation-duration: 2.5s; } }
/* Tablet: botões do canto da mesa em coluna (em linha encostavam no "Sua mão") */
@media (min-width: 701px) and (max-width: 1000px) {
  .felt-wrap > .table-tools { right: 6px; bottom: 6px; flex-direction: column; align-items: flex-end; gap: 6px; }
}
.badge-live.test { background: linear-gradient(135deg, #14b8a6, #0b7d79); color: #fff; } /* torneio de teste (só organizadores) */
