/* ============ Tema "Bilhete" — proposta de identidade ============
 * Inspirado nos bilhetes da aba Jogar: papel creme, tinta azul-petróleo,
 * carimbo vermelho e detalhes dourados. Ligado por html[data-theme="bilhete"].
 */
html[data-theme="bilhete"] {
  --bg: #224d6c;            /* tinta azul-petróleo (no lugar do preto) */
  --bg2: #1c3f5b;
  --panel: #2b6484;
  --panel2: #38769a;
  --line: #4b89ae;
  --line2: #6d9fbb;
  --text: #f6efe0;          /* creme do papel do bilhete */
  --muted: #9fb4bf;
  --paper: #f4f0e6;
  --paper2: #e9e1cf;
  --ink: #15212b;
  --coral: #3c94be;         /* destaque: azul da marca (sem vermelho/amarelo) */
  --gold: #8db4c6;
  --blue-soft: rgba(141, 180, 198, .14);
}

/* fundo: tinta petróleo + linhas finas de "papel-moeda" (guilhochê) bem discretas */
html[data-theme="bilhete"] body { background: transparent; min-height: 100%; height: auto; }
/* o fundo fica no html, fixo na tela: nunca "acaba" quando a página é comprida */
html[data-theme="bilhete"] {
  background-color: #224d6c;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(141, 180, 198, .10), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, rgba(141, 180, 198, .06), transparent 60%),
    repeating-radial-gradient(circle at 50% 120%, rgba(244, 240, 230, .022) 0 1px, transparent 1px 14px),
    linear-gradient(180deg, #25567d 0%, #224d6c 40%, #1d4360 100%);
  background-attachment: fixed;
  background-color: #224d6c;
}
html[data-theme="bilhete"] .ticket { --hole: #224d6c; }

/* ---------- topo: faixa de bilhete com picote ---------- */
html[data-theme="bilhete"] .topbar {
  background: linear-gradient(180deg, rgba(43, 100, 132, .96), rgba(34, 77, 108, .94));
  border-bottom: 0;
  box-shadow: 0 10px 30px rgba(3, 10, 16, .45);
}
html[data-theme="bilhete"] .topbar::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -5px; height: 5px; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(244, 240, 230, .45) 0 7px, transparent 7px 13px) bottom / 100% 1px no-repeat;
}
html[data-theme="bilhete"] .mainnav { background: rgba(28, 63, 91, .6); border-color: rgba(244, 240, 230, .1); }
html[data-theme="bilhete"] .wallet { background: rgba(28, 63, 91, .55); border-color: rgba(244, 240, 230, .12); }

/* ---------- títulos de página com carimbo ---------- */
html[data-theme="bilhete"] .page h2.title { color: var(--paper); position: relative; padding-bottom: 8px; }

/* ---------- painéis: cartão de embarque escuro com filete creme ---------- */
html[data-theme="bilhete"] .panel {
  background:
    linear-gradient(180deg, rgba(244, 240, 230, .035), transparent 40%),
    var(--panel);
  border-color: rgba(244, 240, 230, .10);
  box-shadow: 0 1px 0 rgba(244, 240, 230, .06) inset, 0 14px 34px rgba(3, 10, 16, .35);
}

/* tabelas com linha picotada, como canhoto */
html[data-theme="bilhete"] table.grid th { color: #c9d6dc; border-bottom: 1px solid rgba(244, 240, 230, .14); }
html[data-theme="bilhete"] table.grid td { border-bottom: 1px dashed rgba(244, 240, 230, .10); }
html[data-theme="bilhete"] .rk tr.me { background: rgba(141, 180, 198, .12); }
html[data-theme="bilhete"] .rk tr.top1 { background: linear-gradient(90deg, rgba(240, 180, 60, .18), transparent); }

/* ---------- botões ---------- */
html[data-theme="bilhete"] .btn:not(.white):not(.primary) { border-color: rgba(244, 240, 230, .16); }
html[data-theme="bilhete"] .btn.ghost { background: transparent; }
html[data-theme="bilhete"] .btn.primary { background: linear-gradient(180deg, #61a6c7, #489bc5); color: var(--paper); border-color: #69a3bf; box-shadow: 0 3px 0 #276b8f; }
html[data-theme="bilhete"] .btn.primary:hover { background: linear-gradient(180deg, #64a4c4, #62a5c6); box-shadow: 0 3px 0 #276b8f, 0 0 0 4px var(--blue-soft); }
html[data-theme="bilhete"] input, html[data-theme="bilhete"] select { background: #1c3f5b; border-color: rgba(244, 240, 230, .14); }

/* ---------- mesa: pano azul-petróleo com borda costurada creme ---------- */
html[data-theme="bilhete"] .game { background:
    radial-gradient(1000px 500px at 50% -10%, rgba(141, 180, 198, .08), transparent 60%),
    linear-gradient(180deg, #25567d, #1d4360); }
html[data-theme="bilhete"] .felt {
  background:
    radial-gradient(ellipse at 50% 45%, rgba(141, 180, 198, .12), transparent 55%),
    repeating-linear-gradient(45deg, rgba(244, 240, 230, .014) 0 2px, transparent 2px 6px),
    radial-gradient(ellipse at center, #3681a3 0%, #2a6a87 60%, #1f5370 100%);
  border: 2px solid #649cb8;
  box-shadow: inset 0 0 0 10px #1d4865, inset 0 0 0 12px rgba(244, 240, 230, .28), inset 0 0 0 14px #1d4865,
    inset 0 0 90px rgba(2, 10, 16, .7), 0 30px 80px rgba(2, 10, 16, .6);
}
html[data-theme="bilhete"] .felt::before {
  content: ''; position: absolute; inset: 22px; border-radius: inherit; pointer-events: none;
  border: 1.5px dashed rgba(244, 240, 230, .16);
}

/* ---------- popovers / modais ---------- */
html[data-theme="bilhete"] .profile-pop, html[data-theme="bilhete"] .notes-panel, html[data-theme="bilhete"] .modal {
  background: linear-gradient(180deg, #347495, #286585); border-color: rgba(244, 240, 230, .14);
}

/* barra de rolagem combinando */
html[data-theme="bilhete"] ::-webkit-scrollbar { width: 10px; height: 10px; }
html[data-theme="bilhete"] ::-webkit-scrollbar-track { background: #1c3f5b; }
html[data-theme="bilhete"] ::-webkit-scrollbar-thumb { background: #4b89ae; border-radius: 10px; border: 2px solid #1c3f5b; }

/* botão de tema (só durante a aprovação) */
.themebtn { font-size: 12px; font-weight: 800; letter-spacing: .04em; white-space: nowrap; }

/* ajustes finos */
html[data-theme="bilhete"] .modetoggle { background: rgba(28, 63, 91, .7); border-color: rgba(244, 240, 230, .12); }
html[data-theme="bilhete"] .tk-wrap .ticket, html[data-theme="bilhete"] .tk-wrap .ticket:hover { filter: none !important; }
html[data-theme="bilhete"] .tk-wrap { filter: drop-shadow(0 8px 14px rgba(3, 12, 20, .35)); transition: filter .25s; }
html[data-theme="bilhete"] .tk-wrap:hover { filter: drop-shadow(0 14px 20px rgba(3, 12, 20, .4)) drop-shadow(0 0 16px rgba(141, 180, 198, .2)); }
html[data-theme="bilhete"] .btn.white { background: var(--paper); border-color: var(--paper); color: var(--ink); }
html[data-theme="bilhete"] .game-top { background: linear-gradient(180deg, #2b6484, #25567d); border-bottom: 1px dashed rgba(244, 240, 230, .18); }
html[data-theme="bilhete"] .seat .plate, html[data-theme="bilhete"] .me-plate .plate { background: rgba(29, 71, 99, .94); }

/* ================= v2: interface com cara de bilhete antigo de trem ================= */
html[data-theme="bilhete"] {
  --paper-tex: repeating-linear-gradient(0deg, rgba(21, 33, 43, .025) 0 1px, transparent 1px 3px),
    radial-gradient(120% 90% at 20% 0%, #fbf8f1, #f4f0e6 60%, #e9e3d4);
  --ink-muted: #6f6a5f;
  --perf: #c9c0ac;
}

/* logo nova */
.brand .brand-logo { display: block; height: 50px; width: auto; filter: drop-shadow(0 4px 10px rgba(3, 12, 20, .5)); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.brand:hover .brand-logo { transform: rotate(-2deg) scale(1.04); }
.brand-sm .brand-logo { height: 36px; }
.brand-lg .brand-logo { height: 120px; }
.felt .watermark { width: 420px; opacity: .06; }
.tz-logo img { width: 190px; }

/* menu: aba ativa vira um pedacinho de bilhete */
html[data-theme="bilhete"] .topbar .mainnav .navbtn.active {
  color: var(--ink); background: var(--paper-tex); box-shadow: 0 2px 0 #b9b2a2, 0 6px 14px rgba(3, 12, 20, .35);
}
html[data-theme="bilhete"] .topbar .mainnav .navbtn.active::after { width: 56%; left: 22%; background: var(--coral); box-shadow: none; }

/* seletor Mineiro/Paulista: a escolha é um bilhete creme carimbado */
html[data-theme="bilhete"] .modetoggle .mt-thumb {
  background: var(--paper-tex); box-shadow: 0 8px 22px rgba(3, 12, 20, .45), inset 0 0 0 1px #d6cdb9;
}
html[data-theme="bilhete"] .modetoggle .mt-thumb::after {
  content: ''; position: absolute; inset: 6px; border-radius: 11px; border: 1px dashed var(--perf); pointer-events: none;
}
html[data-theme="bilhete"] .modetoggle .modetab.active b { color: var(--ink); }
html[data-theme="bilhete"] .modetoggle .modetab.active small { color: var(--coral); font-weight: 700; }

/* treino: moldura picotada creme */
html[data-theme="bilhete"] .practice-banner { border: 1.5px dashed rgba(244, 240, 230, .35);
  background: radial-gradient(500px 160px at 0% 50%, rgba(141, 180, 198, .12), transparent 70%), var(--panel); }

/* barra lateral do lobby: bilhetes de papel creme */
html[data-theme="bilhete"] .side .box {
  background: var(--paper-tex); color: var(--ink); border: 0; border-radius: 14px;
  box-shadow: 0 12px 26px rgba(3, 12, 20, .4);
  -webkit-mask: radial-gradient(circle 9px at 0 64px, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 9px at 100% 64px, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 9px at 0 64px, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 9px at 100% 64px, transparent 98%, #000) right / 51% 100% no-repeat;
}
html[data-theme="bilhete"] .side .box::before { display: none; }
html[data-theme="bilhete"] .side .box::after { content: ''; position: absolute; left: 14px; right: 14px; top: 64px; border-top: 1.5px dashed var(--perf); pointer-events: none; }
html[data-theme="bilhete"] .side h4 { color: var(--ink); height: 38px; margin: 0 0 16px; }
html[data-theme="bilhete"] .side h4::before { background: var(--coral); }
html[data-theme="bilhete"] .side .box .muted, html[data-theme="bilhete"] .side .box small { color: var(--ink-muted); }
html[data-theme="bilhete"] .side .box b { color: var(--ink); }

/* contador online = carimbo */
html[data-theme="bilhete"] .live-box::after { top: auto; bottom: 64px; }
html[data-theme="bilhete"] .live-box { -webkit-mask: none; mask: none; }
html[data-theme="bilhete"] .live-radar .lr-ring { border-color: rgba(42, 139, 230, .3) !important; }
html[data-theme="bilhete"] .lr-core { background: transparent !important; border: 3px double var(--coral) !important; box-shadow: none !important; transform: none; }
html[data-theme="bilhete"] .lr-core b { color: var(--coral); text-shadow: none; }
html[data-theme="bilhete"] .lr-core small { color: var(--coral); }
html[data-theme="bilhete"] .live-sub { background: rgba(21, 33, 43, .06) !important; border-color: var(--perf) !important; color: var(--ink-muted); }

/* passos do "como funciona" como linhas do bilhete */
html[data-theme="bilhete"] .how-box ul.steps { gap: 0; }
html[data-theme="bilhete"] .how-box ul.steps li { background: none; border: 0; border-bottom: 1px dashed var(--perf); border-radius: 0; color: #3b3a35; padding: 10px 6px 10px 40px; }
html[data-theme="bilhete"] .how-box ul.steps li:last-child { border-bottom: 0; }
html[data-theme="bilhete"] .how-box ul.steps li:hover { background: rgba(21, 33, 43, .04); transform: none; }
html[data-theme="bilhete"] .how-box ul.steps li::before { background: none; color: var(--coral); border: 1.5px solid var(--coral); border-radius: 50%; font-weight: 900; top: 10px; }
html[data-theme="bilhete"] .how-box ul.steps li b { color: var(--ink); }

/* regras do modo dentro do papel */
html[data-theme="bilhete"] #mode-rules h4 { color: var(--ink); }
html[data-theme="bilhete"] #mode-rules .rl-tag { color: var(--coral); }
html[data-theme="bilhete"] #mode-rules p, html[data-theme="bilhete"] #mode-rules li { color: #3b3a35; }

/* login: cartão é um bilhete de entrada */
html[data-theme="bilhete"] .authcard {
  position: relative; background: var(--paper-tex); color: var(--ink); padding: 34px 30px 26px; border-radius: 16px;
  box-shadow: 0 24px 50px rgba(3, 12, 20, .5);
  -webkit-mask: radial-gradient(circle 12px at 0 118px, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 12px at 100% 118px, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 12px at 0 118px, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 12px at 100% 118px, transparent 98%, #000) right / 51% 100% no-repeat;
}
html[data-theme="bilhete"] .authcard::before { content: 'BILHETE DE ENTRADA · Nº 0001'; position: absolute; left: 0; right: 0; top: 0; padding: 7px 0; text-align: center;
  font-size: 10.5px; font-weight: 900; letter-spacing: .28em; color: var(--paper); background: var(--ink); border-radius: 16px 16px 0 0; }
html[data-theme="bilhete"] .authcard::after { content: ''; position: absolute; left: 18px; right: 18px; top: 118px; border-top: 1.5px dashed var(--perf); }
html[data-theme="bilhete"] .authcard h2 { margin-top: 10px; color: var(--ink); }
html[data-theme="bilhete"] .authcard .muted { color: var(--ink-muted); }
html[data-theme="bilhete"] .authcard .tabs { margin-top: 34px; background: rgba(21, 33, 43, .07); border-color: var(--perf); }
html[data-theme="bilhete"] .authcard .tabs button { color: var(--ink-muted); }
html[data-theme="bilhete"] .authcard .tabs button.active { background: var(--ink); color: var(--paper); }
html[data-theme="bilhete"] .authcard label { color: var(--ink-muted); }
html[data-theme="bilhete"] .authcard input { background: #fffdf8; color: var(--ink); border-color: var(--perf); }
html[data-theme="bilhete"] .authcard input::placeholder { color: #a39c8c; }
html[data-theme="bilhete"] .authcard .bonus-note { border-color: var(--perf); color: #3b3a35; background: rgba(21, 33, 43, .04); }
html[data-theme="bilhete"] .authcard .bonus-note strong { color: var(--coral); }
html[data-theme="bilhete"] .landing .hero h1 { color: var(--paper); }

/* regras (página e barra lateral): fichas de papel, carimbos vermelhos no lugar do ciano */
html[data-theme="bilhete"] .rl-tag { background: var(--coral); color: #fff; border-radius: 4px; box-shadow: 0 0 0 2px rgba(42, 139, 230, .25); }
html[data-theme="bilhete"] .man { background: var(--paper-tex); border: 1px solid #d6cdb9; box-shadow: 0 4px 10px rgba(3, 12, 20, .18); }
html[data-theme="bilhete"] .man b { color: var(--ink); }
html[data-theme="bilhete"] .man em { background: var(--coral); color: #fff; border: 0; }
html[data-theme="bilhete"] .man .su { background: #fff; box-shadow: inset 0 0 0 1px #d6cdb9; }
html[data-theme="bilhete"] .rk-bar span { background: var(--paper-tex); color: var(--ink); border: 1px solid #d6cdb9;
  border-bottom: 3px solid color-mix(in srgb, var(--coral) calc(100% - var(--i) * 9%), #d6cdb9); }
html[data-theme="bilhete"] .ladder span { background: var(--paper-tex); color: var(--ink); box-shadow: inset 0 0 0 1px #d6cdb9; }
html[data-theme="bilhete"] .ladder span small { color: var(--coral); }
html[data-theme="bilhete"] .ladder span.t { background: var(--coral); color: #fff; box-shadow: none; }
html[data-theme="bilhete"] .ladder span.t small { color: #dcefff; }
html[data-theme="bilhete"] .ladder i { color: var(--coral); }
html[data-theme="bilhete"] .rl-lbl { color: inherit; opacity: .7; }

/* contador de online: compacto, sem picote */
html[data-theme="bilhete"] .side .box.live-box { -webkit-mask: none; mask: none; padding: 16px 18px !important; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
html[data-theme="bilhete"] .side .box.live-box::after { display: none; }
html[data-theme="bilhete"] .live-radar { width: auto; height: auto; margin: 0; display: flex; align-items: center; gap: 12px; }
html[data-theme="bilhete"] .live-radar .lr-ring { display: none; }
html[data-theme="bilhete"] .live-radar::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 0 0 rgba(47, 191, 113, .5); animation: lb-pulse 1.8s ease-out infinite; flex-shrink: 0; }
@keyframes lb-pulse { 70% { box-shadow: 0 0 0 9px rgba(47, 191, 113, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 191, 113, 0); } }
html[data-theme="bilhete"] .lr-core { width: auto; height: auto; border: 0 !important; flex-direction: row; align-items: baseline; gap: 8px; transform: none; animation: none; }
html[data-theme="bilhete"] .lr-core b { font-size: 40px; line-height: 1; color: var(--ink); }
html[data-theme="bilhete"] .lr-core small { color: var(--ink-muted); font-size: 11px; }
html[data-theme="bilhete"] .live-sub { margin: 0 !important; padding: 6px 12px !important; font-size: 12.5px; white-space: nowrap; }
html[data-theme="bilhete"] .live-sub .live-dot { display: none; }

/* regras dos modos: sem azul, só tinta e papel */
html[data-theme="bilhete"] .rl-tag { background: var(--paper); color: var(--ink); box-shadow: none; }
html[data-theme="bilhete"] #mode-rules .rl-tag { background: var(--ink); color: var(--paper); }
html[data-theme="bilhete"] .man em { background: var(--ink); color: var(--paper); }
html[data-theme="bilhete"] .rk-bar span { border-bottom: 3px solid rgba(21, 33, 43, calc(.85 - var(--i) * .08)); }
html[data-theme="bilhete"] .ladder span small { color: var(--ink-muted); }
html[data-theme="bilhete"] .ladder span.t { background: var(--ink); color: var(--paper); }
html[data-theme="bilhete"] .ladder span.t small { color: #c9d3d9; }
html[data-theme="bilhete"] .ladder i { color: var(--ink-muted); }
html[data-theme="bilhete"] #mode-rules h4::before { background: var(--ink); }
html[data-theme="bilhete"] #mode-rules b { color: var(--ink); }
html[data-theme="bilhete"] #mode-rules .su { box-shadow: inset 0 0 0 1px #d6cdb9; }
html[data-theme="bilhete"] #mode-rules .rl-lbl { color: var(--ink-muted); opacity: 1; }
html[data-theme="bilhete"] .modetoggle .modetab.active small { color: var(--ink-muted); }
/* número da manilha (1º, 2º…) dentro do slot, no canto */
.man em { top: 6px; left: 7px; transform: none; }
.man-row { margin-top: 8px; }

/* plaquinha na mesa: emblema da liga bem visível */
.plate.lgp { padding-right: 8px !important; }
.plate .plate-emb { width: 38px; height: 38px; flex-shrink: 0; margin-left: 4px; display: grid; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--lg) 50%, transparent)); }
.plate .pl-lg { font-family: var(--display); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; line-height: 1; margin-top: 2px; color: var(--lg); }
.plate.lgp-5 .plate-emb, .plate.lgp-6 .plate-emb, .plate.lgp-7 .plate-emb { width: 44px; height: 44px; margin: -6px 0 -6px 4px; animation: emb-glow 2.6s ease-in-out infinite; }
@keyframes emb-glow { 50% { filter: drop-shadow(0 0 12px var(--lg)); transform: scale(1.06); } }
.plate.lgp-7 { background: linear-gradient(90deg, rgba(29, 71, 99, .94), color-mix(in srgb, var(--lg) 22%, rgba(29, 71, 99, .94))) !important; }

/* janela de fim de mão: acima da mesa (camada fixa z 40) e dos balõezinhos de mensagem (camada z 55);
   abaixo dos efeitos de rodada (57), da distribuição (58) e das janelas de truco/fim de partida (60) */
.hand-banner { z-index: 56 !important; }

/* manilhas nas regras: número da força em cima da carta (sem sobrepor) e sem animação */
.man { animation: none !important; padding-top: 8px; }
.man em { position: static !important; transform: none !important; order: -1; margin-bottom: 2px; }
.man:hover .card { transform: none; }

/* janelinha de perfil: avatar, nome e liga centralizados */
.pp-head { flex-direction: column; justify-content: center; text-align: center; gap: 10px; }
.pp-head > div { display: flex; flex-direction: column; align-items: center; }
.pp-head b { margin-bottom: 6px; }

/* destaques da tela inicial: os 4 lado a lado, menores e em branco */
.landing .feats { display: grid !important; grid-template-columns: repeat(4, auto); gap: 28px !important; justify-content: start; }
.landing .feat b { font-size: 26px; color: #fff; white-space: nowrap; }
.landing .feat span { font-size: 11.5px; color: rgba(255, 255, 255, .8); white-space: nowrap; }
@media (max-width: 1250px) { .landing .feats { grid-template-columns: repeat(2, auto); } }
html[data-theme="bilhete"] .landing .hero h1 { color: #fff; }
html[data-theme="bilhete"] .landing .hero h1 span { color: #b9d6e3; }
html[data-theme="bilhete"] .landing .hero .lead { color: #fff; }

/* ===== ranking: pódio ===== */
.rk-medal { display: inline-block; width: 40px; height: 50px; transform-origin: 50% 0; animation: md-swing 3.2s ease-in-out infinite; filter: drop-shadow(0 4px 6px rgba(3, 12, 20, .45)); }
.rk-medal svg { width: 100%; height: 100%; overflow: visible; }
.rk-medal.m1 { width: 48px; height: 60px; filter: drop-shadow(0 4px 6px rgba(3, 12, 20, .45)) drop-shadow(0 0 10px rgba(245, 184, 46, .55)); }
.rk-medal.m2 { animation-delay: -.8s; } .rk-medal.m3 { animation-delay: -1.6s; }
.rk-medal .md-shine { animation: md-shine 2.8s ease-in-out infinite; }
.rk-medal.m2 .md-shine { animation-delay: .6s; } .rk-medal.m3 .md-shine { animation-delay: 1.2s; }
@keyframes md-swing { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@keyframes md-shine { 0%, 55% { transform: skewX(-20deg) translateX(0); } 100% { transform: skewX(-20deg) translateX(80px); } }

table.grid.rk tr.top td { padding-top: 14px; padding-bottom: 14px; border-bottom: 1px solid rgba(3, 12, 20, .25); }
table.grid.rk tr.top { --pc: #f5b82e; position: relative;
  background: linear-gradient(90deg, color-mix(in srgb, var(--pc) 30%, transparent), color-mix(in srgb, var(--pc) 10%, transparent) 55%, transparent) !important; }
table.grid.rk tr.top2 { --pc: #c4ced9; } table.grid.rk tr.top3 { --pc: #d08a4e; }
table.grid.rk tr.top td:first-child { box-shadow: inset 4px 0 0 var(--pc); }
table.grid.rk tr.top .rk-player b { font-size: 16px; color: #fff; }
table.grid.rk tr.top .rk-pts { color: var(--pc); font-size: 26px; text-shadow: 0 0 12px color-mix(in srgb, var(--pc) 45%, transparent); }
table.grid.rk tr.top .avatar { box-shadow: 0 0 0 2px var(--pc), 0 0 12px color-mix(in srgb, var(--pc) 50%, transparent); }
table.grid.rk tr.top1 td { background-image: linear-gradient(105deg, transparent 40%, rgba(255, 240, 190, .12) 50%, transparent 60%); background-size: 300% 100%; animation: rk-sweep 4s linear infinite; }
@keyframes rk-sweep { from { background-position: 150% 0; } to { background-position: -150% 0; } }
.rk-medal { width: 50px; height: 62px; } .rk-medal.m1 { width: 60px; height: 75px; }
table.grid.rk tr.top td:first-child { padding-top: 6px; padding-bottom: 6px; }
.pp-cfg { width: 100%; margin: 12px 0 10px; justify-content: center; font-weight: 800; background: var(--paper-tex) !important; color: var(--ink) !important; border-color: #d6cdb9 !important; }
.pp-cfg:hover { filter: brightness(1.04); transform: translateY(-1px); }

/* filtro do ranking por liga */
.rk-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.rkf { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 6px; border-radius: 999px; font-size: 12px; font-weight: 800; color: var(--muted);
  background: rgba(28, 63, 91, .6); border: 1px solid rgba(244, 240, 230, .12); transition: color .2s, border-color .2s, background .2s, transform .2s; position: relative; }
.rkf:first-child { padding-left: 14px; }
.rkf i { width: 22px; height: 22px; display: grid; }
.rkf:hover { color: #fff; border-color: var(--lg, rgba(244, 240, 230, .4)); transform: translateY(-1px); }
.rkf.on { color: var(--ink); background: var(--paper-tex); border-color: #d6cdb9; box-shadow: 0 4px 12px rgba(3, 12, 20, .35); }
.rkf.mine::after { content: ''; position: absolute; top: 2px; right: 4px; width: 7px; height: 7px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 0 2px var(--bg); }

/* paginação do ranking */
.rk-pager { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 16px; border-top: 1px dashed rgba(244, 240, 230, .12); }
.rk-pager button { min-width: 38px; padding: 7px 12px; border-radius: 9px; font-weight: 800; font-size: 13px; color: var(--text); background: rgba(28, 63, 91, .6); border: 1px solid rgba(244, 240, 230, .14); }
.rk-pager button:hover:not(:disabled) { border-color: rgba(244, 240, 230, .4); }
.rk-pager button.on { background: var(--paper-tex); color: var(--ink); border-color: #d6cdb9; }
.rk-pager button:disabled { opacity: .35; cursor: not-allowed; }
.rk-pager span { color: var(--muted); }

/* Campeonatos centralizado entre o menu e o saldo */
.topbar .cupbtn { margin-left: 0 !important; }

/* título da tela inicial */
html[data-theme="bilhete"] .landing .hero h1 { color: #fff; }
.hero h1 .h-raiz { font-style: normal; position: relative; display: inline-block; color: #8db4c6;
  text-shadow: 0 0 18px rgba(141, 180, 198, .55), 0 0 42px rgba(141, 180, 198, .25); animation: raiz-glow 3.6s ease-in-out infinite; }
.hero h1 .h-raiz::after { content: ''; position: absolute; left: 2px; right: 18%; bottom: .06em; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, #8db4c6, rgba(141, 180, 198, 0)); box-shadow: 0 0 12px rgba(141, 180, 198, .6); }
@keyframes raiz-glow { 50% { text-shadow: 0 0 26px rgba(141, 180, 198, .8), 0 0 60px rgba(141, 180, 198, .35); } }

/* ===== amigos ===== */
.frbtn .fr-on { position: absolute; bottom: -5px; right: -5px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; display: none;
  font-size: 10px; font-weight: 900; line-height: 16px; text-align: center; color: #062a14; background: #2fbf71; box-shadow: 0 0 0 2px var(--bg); }
.frbtn .fr-on.on { display: block; }
.friends-panel { width: 380px; }
.friends-panel .np-head small { font-weight: 600; color: var(--muted); font-size: 12px; margin-left: 6px; }
.fp-add { display: flex; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line2); }
.fp-add input { padding: 8px 12px; font-size: 13px; }
.fp-list { overflow-y: auto; padding: 4px 8px 10px; }
.fp-sec { margin: 10px 6px 4px; font-size: 10.5px; font-weight: 900; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.fp-sec em { font-style: normal; background: #2fbf71; color: #062a14; border-radius: 999px; padding: 0 6px; letter-spacing: 0; }
.fp-item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; transition: background .15s; }
.fp-item:hover { background: rgba(244, 240, 230, .04); }
.fp-av { position: relative; flex-shrink: 0; }
.fp-av .avatar { width: 36px; height: 36px; }
.fp-dot { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: #5d6b75; box-shadow: 0 0 0 2px #244f6a; }
.st-online .fp-dot, .st-treino .fp-dot { background: #2fbf71; }
.st-jogando .fp-dot { background: #f5b82e; }
.st-campeonato .fp-dot { background: #b18cff; }
.fp-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fp-tx b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-st { font-size: 11.5px; color: var(--muted); }
.st-online .fp-st, .st-treino .fp-st { color: #6fd39a; } .st-jogando .fp-st { color: #f0c560; } .st-campeonato .fp-st { color: #c3a8ff; }
.st-offline .fp-av { opacity: .55; }
.fp-lg { font-size: 9.5px !important; padding: 1px 7px 1px 3px !important; }
.fp-lg i { width: 15px !important; height: 15px !important; }
.fp-btn { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line2); background: transparent; color: var(--muted); font-weight: 900; flex-shrink: 0; }
.fp-btn.ok { color: #062a14; background: #2fbf71; border-color: #2fbf71; }
.fp-btn.no:hover, .fp-btn.rm:hover { color: #ff9a90; border-color: rgba(255, 154, 144, .5); }
.fp-btn.rm { opacity: .6; transition: opacity .15s; } .fp-item:hover .fp-btn.rm, .fp-btn.rm:focus-visible { opacity: 1; } /* sempre visível (no celular não tem hover) */
.fp-why { font-size: 11px; color: var(--muted); white-space: nowrap; }
.fp-item.off { opacity: .6; }

/* dupla no campeonato */
.tz-duo { display: block; width: 100%; margin-top: -4px; padding: 8px; border-radius: 10px; font-size: 12.5px; font-weight: 800; cursor: pointer;
  color: var(--ink-c, #1f4d63); background: transparent; border: 1.5px dashed color-mix(in srgb, var(--c1) 70%, #b9b2a2); transition: background .2s; }
.tz-duo:hover { background: color-mix(in srgb, var(--c1) 14%, transparent); }
.overlay.duo .modal { max-width: 440px; }
.duo-list { max-height: 340px; overflow-y: auto; text-align: left; margin: 10px 0 14px; border: 1px solid var(--line2); border-radius: 12px; padding: 4px; }
.duo-inv .duo-av { display: grid; place-items: center; margin-bottom: 8px; }
.duo-inv h3 { margin: 6px 0; }
.duo-bar { height: 6px; border-radius: 999px; background: rgba(244, 240, 230, .1); overflow: hidden; margin: 12px 0 16px; }
.duo-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #2fbf71, #8db4c6); transform-origin: left; animation: duo-bar linear forwards; }
@keyframes duo-bar { to { transform: scaleX(0); } }
.duo-spin { width: 38px; height: 38px; margin: 4px auto 8px; border-radius: 50%; border: 3px solid rgba(141, 180, 198, .25); border-top-color: #8db4c6; animation: spin 1s linear infinite; }
.duo-ok { width: 46px; height: 46px; margin: 4px auto 8px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; font-weight: 900; color: #fff; background: #46aecd; box-shadow: 0 0 0 6px rgba(70, 174, 205, .2); animation: duoPop .35s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes duoPop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
.tzr-slot.duo { box-shadow: inset 0 0 0 1.5px rgba(47, 191, 113, .55); }
.tzr-duo { font-style: normal; font-size: 10px; font-weight: 900; color: #6fd39a; }

/* ===== regras do campeonato ===== */
.tz-rules { margin-top: 26px; padding: 24px 26px 26px !important; }
.tzr-title { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.tzr-title h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 30px; letter-spacing: .03em; color: var(--paper); }
.tzr-title span { color: var(--muted); font-size: 13px; }
.tzr-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.tzr-card { background: rgba(28, 63, 91, .55); border: 1px solid rgba(244, 240, 230, .1); border-radius: 14px; padding: 14px 16px 12px; }
.tzr-h { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px dashed rgba(244, 240, 230, .14); }
.tzr-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-size: 16px; background: var(--paper-tex); box-shadow: 0 2px 0 #b9b2a2; flex-shrink: 0; }
.tzr-h b { font-size: 15px; color: var(--paper); letter-spacing: .02em; }
.tzr-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.tzr-card li { position: relative; padding-left: 16px; font-size: 13.5px; line-height: 1.55; color: #cdd8de; }
.tzr-card li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: #8db4c6; }
.tzr-card li b { color: #fff; }
.tzr-ex { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 14px 18px; border-radius: 14px;
  background: var(--paper-tex); color: var(--ink); font-size: 13px; box-shadow: 0 8px 20px rgba(3, 12, 20, .3); }
.tzr-ex > b { width: 100%; font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-muted); }
.tzr-ex span b { color: var(--ink); font-size: 14px; }
.tzr-ex i { font-style: normal; color: var(--ink-muted); font-weight: 900; }
.tzr-cards { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1200px) { .tzr-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .tzr-cards { grid-template-columns: 1fr; } }
.tzr-ic { color: var(--ink); } .tzr-ic svg { width: 19px; height: 19px; }

/* ===== sala de espera: bilhete de embarque ===== */
.waiting { flex-direction: column; display: flex !important; align-items: center; justify-content: center; gap: 14px; }
.waiting .box.wt { max-width: 760px; width: calc(100% - 40px); padding: 0; text-align: left; color: var(--ink); background: var(--paper-tex); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(3, 12, 20, .55);
  -webkit-mask: radial-gradient(circle 13px at calc(100% - 170px) 0, transparent 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle 13px at calc(100% - 170px) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 13px at calc(100% - 170px) 0, transparent 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle 13px at calc(100% - 170px) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat; }
.wt-head { display: flex; justify-content: space-between; gap: 12px; padding: 9px 22px; background: var(--ink); color: var(--paper); border-radius: 16px 16px 0 0;
  font-size: 11px; font-weight: 900; letter-spacing: .22em; text-transform: uppercase; }
.wt-head span:last-child { color: #b9d2de; letter-spacing: .12em; }
.wt-body { display: grid; grid-template-columns: 1fr 170px; }
.wt-main { padding: 18px 22px 14px; border-right: 2px dashed #b9b2a2; }
.wt-route { display: flex; align-items: center; justify-content: center; gap: 18px; }
.wt-route small { display: block; font-size: 10px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); }
.wt-route b { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1; color: var(--ink); }
.wt-route i { font-style: normal; font-size: 22px; color: var(--ink-muted); }
.wt .teams { margin: 14px 0 6px; }
.wt .teambox { background: rgba(21, 33, 43, .04); border: 1px solid #d6cdb9; }
.wt .teambox.mine { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.wt .teambox .team-lbl, .wt .teambox.mine .team-lbl { color: var(--ink); }
.wt .ws small { color: #3b3a35; }
.wt .empty-seat { background: rgba(21, 33, 43, .05) !important; border: 2px dashed #b9b2a2 !important; color: var(--ink-muted) !important; }
.wt .empty-seat:hover { border-color: var(--ink) !important; color: var(--ink) !important; }
.wt .vs-big { color: var(--ink-muted); }
.wt-fine { margin: 6px 0 0; text-align: center; font-size: 11.5px; color: var(--ink-muted); }
.wt-stub { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px 10px; text-align: center; }
.wt-stub small { font-size: 11px; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-muted); }
.wt-stub b { font-family: var(--display); font-weight: 400; font-size: 84px; line-height: .9; color: var(--ink); }
.wt-stub span { font-size: 12px; font-weight: 800; color: var(--ink); text-transform: uppercase; letter-spacing: .1em; }
.wt-stub em { font-style: normal; margin-top: 10px; font-size: 12px; color: var(--ink-muted); }
.wt-fill { margin-top: 8px; font-size: 11.5px; color: var(--ink-muted); } .wt-fill b { color: var(--ink); }
.wt-actions { display: flex; justify-content: center; gap: 10px; padding: 12px 22px 16px; border-top: 1px dashed #cfc7b5; }
.wt-actions .btn.ghost { color: var(--ink); border-color: #b9b2a2 !important; }
@media (max-width: 700px) { .wt-body { grid-template-columns: 1fr; } .wt-main { border-right: 0; border-bottom: 2px dashed #b9b2a2; } .waiting .box.wt { -webkit-mask: none; mask: none; } }

/* ===== placar: bilhete, um pouco mais pra direita ===== */
.scoreboard.sb2 { left: 56px !important; background: var(--paper-tex) !important; color: var(--ink);
  box-shadow: 0 16px 40px rgba(3, 12, 18, .55) !important; border-radius: 14px; }
.sb2 .sb-head { background: var(--ink) !important; color: var(--paper) !important; border-radius: 14px 14px 0 0; }
.sb2 .sb-head em { color: #b9d2de !important; }
.sb2 .sb-body { position: relative; border-bottom: 2px dashed #b9b2a2; }
.sb2 .sb-body::before, .sb2 .sb-body::after { content: ''; position: absolute; bottom: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); }
.sb2 .sb-body::before { left: -8px; } .sb2 .sb-body::after { right: -8px; }
.sb-team .p { background: var(--ink) !important; }
.sb-team.us .p { color: #8ee6a8; text-shadow: none !important; } .sb-team.them .p { color: #ff9a9a; text-shadow: none !important; }
.sb-pips i { background: rgba(21, 33, 43, .14); }
.sb2 .x { color: var(--ink-muted) !important; }
.sb-rounds { background: transparent !important; }
.sb-rl { color: var(--ink-muted) !important; }

/* ===== janela de truco: bilhete creme ===== */
.overlay.pop .modal { background: var(--paper-tex) !important; color: var(--ink); border: 0 !important; box-shadow: 0 24px 60px rgba(3, 12, 20, .6) !important; }
.overlay.pop .modal h3 { color: var(--ink); }
.overlay.pop .modal p, .tq-sub { color: #3b3a35 !important; }
.tq-sub b { color: var(--ink) !important; }
.tq-caller { background: rgba(21, 33, 43, .06) !important; border: 1px solid #d6cdb9 !important; color: var(--ink); }
.tq-caller span { color: var(--ink-muted) !important; }
.tq-val { background: var(--ink) !important; color: var(--paper) !important; }
.pop-timer { background: rgba(21, 33, 43, .08) !important; border-bottom: 2px dashed #b9b2a2 !important; }
/* botão de aumentar: sem glow */
.tq-raise { box-shadow: 0 4px 0 #9a5d06 !important; animation: none !important; }
.tq-jump b { text-shadow: none !important; }
.fp-test { margin: 0 14px 4px; padding: 7px 10px; border-radius: 9px; font-size: 11.5px; color: var(--muted); background: rgba(141, 180, 198, .08); border: 1px dashed rgba(141, 180, 198, .3); } .fp-test b { color: var(--text); }
.wt-fill #fill-cd { font-family: var(--font); font-size: 13px !important; font-weight: 900; color: var(--ink) !important; text-shadow: none !important; display: inline; animation: none !important; }
.wt .ws.me small { color: var(--ink) !important; font-weight: 800; }

/* plaquinhas: sem anéis verde/vermelho estourando atrás do emblema; emblema sem pisca */
.rb .ring { display: none !important; }
.plate .plate-emb, .plate.lgp-5 .plate-emb, .plate.lgp-6 .plate-emb, .plate.lgp-7 .plate-emb { animation: none !important; filter: drop-shadow(0 2px 3px rgba(3, 12, 20, .5)) !important; }

/* ===== janela de truco: ticket com moldura ===== */
.overlay.pop .modal { padding: 0 18px 18px !important; border-radius: 16px !important;
  box-shadow: 0 0 0 1px #d6cdb9, 0 0 0 6px rgba(34, 77, 108, .92), 0 0 0 7px rgba(244, 240, 230, .35), 0 26px 60px rgba(3, 12, 20, .65) !important; }
.overlay.pop .modal::before { content: ''; position: absolute; inset: 8px; border: 1.5px dashed #c9c0ac; border-radius: 11px; pointer-events: none; }
.overlay.pop .modal::after { content: ''; position: absolute; left: -9px; right: -9px; top: 50%; height: 18px; pointer-events: none;
  background: radial-gradient(circle 9px at 0 50%, rgba(34, 77, 108, 1) 98%, transparent) left / 18px 18px no-repeat,
              radial-gradient(circle 9px at 100% 50%, rgba(34, 77, 108, 1) 98%, transparent) right / 18px 18px no-repeat; }
.overlay.pop .modal > * { position: relative; z-index: 1; }
.pop-timer { margin: 0 -18px 12px !important; border-radius: 16px 16px 0 0; height: 24px !important; background: var(--ink) !important; border-bottom: 0 !important; }
.pop-timer i { background: linear-gradient(90deg, #62a5c6, #8db4c6) !important; box-shadow: none !important; }
.pop-timer.low i { background: linear-gradient(90deg, #8a2a22, #d9584b) !important; }
.tq-caller { margin-top: 6px !important; }
.tq-title h3 { letter-spacing: .04em; }
/* botões com moldura */
.tq-btn { border: 2px solid var(--ink) !important; border-radius: 12px !important; position: relative; }
.tq-btn::after { content: ''; position: absolute; inset: 3px; border: 1px dashed rgba(21, 33, 43, .28); border-radius: 8px; pointer-events: none; }
.tq-btn.run { background: linear-gradient(180deg, #f7d6d1, #eab0a8) !important; color: #5a1610 !important; box-shadow: 0 4px 0 var(--ink) !important; }
.tq-btn.ok { background: linear-gradient(180deg, #d6f2dc, #a9dfb7) !important; color: #0e3b1d !important; box-shadow: 0 4px 0 var(--ink) !important; }
.tq-btn:active { box-shadow: 0 1px 0 var(--ink) !important; }
/* aumentar: azul da marca, com moldura */
.tq-raise { background: linear-gradient(180deg, #61a6c7, #3c94be) !important; color: var(--paper) !important; border: 2px solid var(--ink) !important;
  box-shadow: 0 4px 0 var(--ink) !important; }
.tq-raise::before { content: ''; position: absolute; inset: 3px; border: 1px dashed rgba(244, 240, 230, .35); border-radius: 8px; pointer-events: none; }
.tq-raise::after { display: none !important; }
.tq-raise .tq-up { color: #b9d2de; }
.tq-jump { background: var(--paper) !important; color: var(--ink) !important; }
.tq-jump b { color: var(--ink) !important; }

/* ranking: aviso de prêmios mensais (em breve) */
.rk-soon { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; margin: 18px 0 4px; padding: 16px 26px 16px 20px;
  border-radius: 16px; background: var(--paper-tex); color: var(--ink); overflow: hidden; box-shadow: 0 16px 36px rgba(3, 12, 20, .45);
  -webkit-mask: radial-gradient(circle 11px at calc(100% - 150px) 0, transparent 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle 11px at calc(100% - 150px) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 11px at calc(100% - 150px) 0, transparent 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle 11px at calc(100% - 150px) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat; }
.rk-soon::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .7) 50%, transparent 60%); background-size: 300% 100%; animation: rk-sweep 3.5s linear infinite; mix-blend-mode: soft-light; }
.rk-soon::after { content: ''; position: absolute; top: 10px; bottom: 10px; right: 150px; border-left: 2px dashed #b9b2a2; }
.rks-medals { display: flex; align-items: flex-end; }
.rks-medals .rk-medal { width: 46px; height: 58px; margin: 0 -4px; } .rks-medals .rk-medal.m1 { width: 58px; height: 72px; }
.rks-kicker { display: inline-block; font-size: 10.5px; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; color: var(--paper); background: var(--ink); padding: 3px 9px; border-radius: 5px; margin-bottom: 6px; }
.rks-tx { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.rks-tx b { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.05; letter-spacing: .02em; color: var(--ink); }
.rks-tx b em { font-style: normal; color: #a06c06; }
.rks-tx b em:nth-of-type(2) { color: #6d7b8c; } .rks-tx b em:nth-of-type(3) { color: #a8642f; }
.rks-tx > span:last-child { font-size: 13px; color: #4a4840; }
.rks-stamp { width: 104px; height: 104px; margin-left: 24px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 3px double var(--ink); color: var(--ink); transform: rotate(-12deg); animation: rks-stamp 2.4s ease-in-out infinite; }
.rks-stamp span { font-size: 12px; font-weight: 900; letter-spacing: .3em; text-transform: uppercase; }
.rks-stamp b { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: .9; letter-spacing: .04em; }
@keyframes rks-stamp { 0%, 100% { transform: rotate(-12deg) scale(1); } 50% { transform: rotate(-8deg) scale(1.06); } }
@media (max-width: 900px) { .rk-soon { grid-template-columns: 1fr; text-align: center; -webkit-mask: none; mask: none; } .rk-soon::after { display: none; } .rks-medals, .rks-tx { justify-content: center; align-items: center; } .rks-stamp { margin: 0 auto; } }

/* brilho contínuo na linha inteira do pódio (1º, 2º e 3º) */
table.grid.rk tr.top1 td { background-image: none !important; animation: none !important; }
table.grid.rk tr.top { position: relative; }
table.grid.rk tr.top::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, color-mix(in srgb, var(--pc) 30%, rgba(255, 255, 255, .22)) 50%, transparent 65%) no-repeat;
  background-size: 40% 100%; background-position: -60% 0; animation: rk-row-sweep 4.2s ease-in-out infinite; }
table.grid.rk tr.top2::after { animation-delay: 1.2s; } table.grid.rk tr.top3::after { animation-delay: 2.4s; }
@keyframes rk-row-sweep { 0% { background-position: -60% 0; } 60%, 100% { background-position: 160% 0; } }

/* placar: slots das rodadas bem definidos sobre o papel */
.sb2 .rd { background: rgba(21, 33, 43, .07); border: 1.5px solid rgba(21, 33, 43, .35); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6); }
.sb2 .rd small { color: var(--ink-muted); }
.sb2 .rd b { color: rgba(21, 33, 43, .55); }
.sb2 .rd.cur { background: var(--ink); border-color: var(--ink); }
.sb2 .rd.cur small { color: #b9d2de; } .sb2 .rd.cur b { color: var(--paper); }
.sb2 .rd.w { border-color: #2f8a4f; box-shadow: none; } .sb2 .rd.l { border-color: #b84545; box-shadow: none; }
.sb2 .rd.t { border-color: #a06c06; }
.sb-rl { font-weight: 900 !important; letter-spacing: .24em !important; }

/* timer da jogada: anel mais grosso e visível + segundos */
.plate-timer { inset: -6px !important; padding: 4px !important; filter: drop-shadow(0 0 5px rgba(141, 180, 198, .7)) !important;
  background: conic-gradient(from 0deg, #b9d2de 0deg, #5f9ab5 calc(var(--p) * 360deg), rgba(255, 255, 255, .1) calc(var(--p) * 360deg)) !important; }
.plate-timer.low { background: conic-gradient(from 0deg, #ff8a7a 0deg, #d9584b calc(var(--p) * 360deg), rgba(255, 255, 255, .1) calc(var(--p) * 360deg)) !important;
  filter: drop-shadow(0 0 6px rgba(255, 110, 90, .8)) !important; }
.plate-secs { position: absolute; top: -12px; right: 14px; z-index: 3; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 900;
  background: var(--paper); color: var(--ink); box-shadow: 0 2px 6px rgba(3, 12, 20, .5); }
.plate-timer.low + .plate-secs { background: #d9584b; color: #fff; }

/* avisos (toasts) no lado esquerdo, pra não cobrir amigos/perfil/sininho */
.toasts { right: auto !important; left: 18px; top: 84px; }
.toast { background: var(--paper-tex); color: var(--ink); border-left: 4px solid #8db4c6; }
.toast.ok { background: var(--paper-tex) !important; color: var(--ink) !important; border-left-color: #2fbf71; }
.toast.error { background: #f7e1dd !important; color: #5a1610 !important; border: 0 !important; border-left: 4px solid #d9584b !important; }

/* placar: título centralizado */
.sb2 .sb-head { justify-content: center !important; font-size: 15px !important; letter-spacing: .16em !important; }

/* balões e textos na mesa: papel do ticket */
.bubble { background: var(--paper-tex) !important; color: var(--ink) !important; border: 1.5px solid #d6cdb9; box-shadow: 0 8px 20px rgba(3, 12, 20, .45) !important; }
.bubble.truco { color: var(--ink) !important; border: 2px solid var(--ink); }
.bubble.sys { background: var(--paper-tex) !important; color: var(--ink) !important; }
.overlay.soft .modal { background: var(--paper-tex) !important; color: var(--ink) !important; border: 1.5px solid #d6cdb9 !important; box-shadow: 0 10px 26px rgba(3, 12, 20, .5) !important; }
.overlay.soft .modal b, .overlay.soft .modal .blue { color: var(--ink) !important; }
.rb.us .rb-tag, .rb.them .rb-tag { background: var(--paper-tex) !important; color: var(--ink) !important; border: 2px solid var(--ink); box-shadow: 0 10px 24px rgba(3, 12, 20, .5) !important; }
.rb.us .rb-tag { border-color: #2f8a4f; } .rb.them .rb-tag { border-color: #b84545; }
.rb-tie { background: var(--paper-tex) !important; border: 2px solid var(--ink) !important; }
.rb-tie b { color: var(--ink) !important; } .rb-tie span { color: var(--ink-muted) !important; }

/* janela de fim de mão: ticket */
.hb-card { background: var(--paper-tex) !important; color: var(--ink); border: 0 !important; padding: 0 40px 20px !important; overflow: hidden;
  box-shadow: 0 0 0 6px rgba(34, 77, 108, .92), 0 0 0 7px rgba(244, 240, 230, .35), 0 26px 60px rgba(3, 12, 20, .7) !important; }
.hb-card::before { content: ''; position: absolute; inset: 8px; border: 1.5px dashed #c9c0ac; border-radius: 18px; pointer-events: none; }
.hb-team { margin: 0 -40px 8px; padding: 8px 0; background: var(--ink); color: var(--paper) !important; }
.hand-banner.us .hb-team { background: #1f5a3a; } .hand-banner.them .hb-team { background: #6e2a24; }
.hb-points { color: var(--ink) !important; background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important; filter: none !important; }
.hand-banner.us .hb-points { color: #1f7a43 !important; } .hand-banner.them .hb-points { color: #a8342a !important; }
.hb-sub { color: var(--ink) !important; }
.hb-who span { background: rgba(21, 33, 43, .06) !important; border: 1px solid #d6cdb9 !important; color: var(--ink); }
.hb-score { border-top: 2px dashed #c9c0ac; padding-top: 10px; }
.hb-score small { color: var(--ink-muted) !important; } .hb-score em { color: var(--ink) !important; } .hb-score i { color: var(--ink-muted) !important; }
.hb-score span.bump em { color: #1f7a43 !important; }

/* lista de amigos: emblema grande e linhas zebradas */
.fp-list .fp-item { margin-bottom: 4px; border: 1px solid rgba(244, 240, 230, .06); }
.fp-list .fp-item:nth-child(odd) { background: rgba(244, 240, 230, .035); }
.fp-list .fp-item:nth-child(even) { background: rgba(3, 12, 20, .25); }
.fp-list .fp-item:hover { background: rgba(141, 180, 198, .1); border-color: rgba(141, 180, 198, .25); }
.fp-lgart { display: flex; flex-direction: column; align-items: center; gap: 1px; width: 58px; flex-shrink: 0; }
.fp-lgart i { width: 36px; height: 36px; display: grid; filter: drop-shadow(0 2px 4px rgba(3, 12, 20, .5)); }
.fp-lgart b { font-size: 9.5px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--lg); }

/* janelas de inscrição / dupla: ticket com valor em destaque */
.overlay.tkm .modal { background: var(--paper-tex) !important; color: var(--ink); padding: 0 24px 22px !important; max-width: 460px; overflow: hidden; border: 0 !important;
  box-shadow: 0 0 0 6px rgba(34, 77, 108, .92), 0 0 0 7px rgba(244, 240, 230, .35), 0 30px 70px rgba(3, 12, 20, .7) !important; }
.tkm-head { margin: 0 -24px 14px; padding: 9px 16px; background: var(--ink); color: var(--paper); font-size: 11px; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; text-align: center; }
.tkm-title { margin: 4px 0 12px !important; color: var(--ink) !important; font-size: 22px !important; }
.tkm-title b { color: var(--ink); }
.tkm-price { display: flex; flex-direction: column; align-items: center; padding: 12px 10px 14px; margin: 0 0 12px; border-top: 2px dashed #c9c0ac; border-bottom: 2px dashed #c9c0ac; }
.tkm-price small { font-size: 11px; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-muted); }
.tkm-price b { font-family: var(--display); font-weight: 400; font-size: 64px; line-height: 1; color: var(--ink); letter-spacing: .02em; }
.tkm-price span { font-size: 12px; color: #4a4840; }
.tkm-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.tkm-facts div { padding: 8px 4px; border-radius: 10px; border: 1px solid #d6cdb9; background: rgba(21, 33, 43, .04); }
.tkm-facts small { display: block; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.tkm-facts b { font-family: var(--display); font-weight: 400; font-size: 24px; color: var(--ink); }
.tkm-note { font-size: 12.5px !important; color: #4a4840 !important; margin: 0 0 14px !important; }
.overlay.tkm .duo-list { border-color: #d6cdb9; background: var(--ink); }
.overlay.tkm .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.overlay.tkm .row .btn:only-child { grid-column: 1 / -1; }
.btn.tkm-yes { background: linear-gradient(180deg, #d6f2dc, #a9dfb7) !important; color: #0e3b1d !important; border: 2px solid #2f8a4f !important; box-shadow: 0 3px 0 #2f8a4f; font-weight: 900; }
.btn.tkm-no { background: linear-gradient(180deg, #f7dcd8, #eebab3) !important; color: #5a1610 !important; border: 2px solid #b84545 !important; box-shadow: 0 3px 0 #b84545; font-weight: 900; }
.btn.tkm-yes:hover, .btn.tkm-no:hover { filter: brightness(1.04); }
.overlay.tkm .duo-bar { background: rgba(21, 33, 43, .12); }

/* linha embaixo do topo: filete de luz suave (sem picote) */
html[data-theme="bilhete"] .topbar::after { bottom: -1px !important; height: 1px !important;
  background: linear-gradient(90deg, transparent, rgba(141, 180, 198, .55) 20%, rgba(244, 240, 230, .7) 50%, rgba(141, 180, 198, .55) 80%, transparent) !important;
  box-shadow: 0 0 10px rgba(141, 180, 198, .55), 0 0 22px rgba(141, 180, 198, .25); animation: tb-glow 5s ease-in-out infinite; }
@keyframes tb-glow { 50% { box-shadow: 0 0 14px rgba(141, 180, 198, .75), 0 0 30px rgba(141, 180, 198, .35); } }

/* Grande Campeonato: pódio com 3º lugar */
.tz-prizes:has(.p3) { grid-template-columns: 1fr 1fr 1fr; }
.tz-prizes .p3 b { font-size: 26px; }
.tzb-third { margin-top: 16px; max-width: 420px; padding: 14px; border-radius: 14px; background: rgba(28, 63, 91, .55); border: 1px solid rgba(208, 138, 78, .45); }
.tzb-third .tzb-stage { color: #e0a874; }
.tzb-third-win { margin-top: 10px; font-size: 13px; color: var(--muted); } .tzb-third-win b { color: #fff; }

/* amigos: liga escrita depois do nome; emblema grande à direita, dentro da linha */
.fp-list .fp-item { min-height: 56px; }
.fp-lgname { font-weight: 900; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.fp-lgart { width: 46px; height: 46px; align-self: center; display: grid; place-items: center; }
.fp-lgart i { width: 44px !important; height: 44px !important; }
.fp-lgart b { display: none; }
.np-acts { display: flex; align-items: center; gap: 10px; }
.np-clear { padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 800; color: var(--muted); background: transparent; border: 1px solid var(--line2); cursor: pointer; }
.np-clear:hover { color: #ff9a90; border-color: rgba(255, 154, 144, .5); }
.tkm-facts:has(> div:nth-child(4)) { grid-template-columns: repeat(4, 1fr); }
.tz-prizes span { white-space: nowrap; }
/* lista de amigos dentro da janela de dupla (fundo escuro): nomes em branco */
.overlay.tkm .duo-list .fp-tx b { color: #fff !important; }
.overlay.tkm .duo-list .fp-why { color: #b9c6cf; }
.overlay.tkm .duo-list .np-empty { color: #cdd8de; }
/* sala de espera: "Voltar ao lobby" em vermelho claro */
.waiting .wait-back { background: linear-gradient(180deg, #f7dcd8, #eebab3) !important; color: #5a1610 !important; border: 2px solid #b84545 !important; box-shadow: 0 3px 0 #b84545; }
.waiting .wait-back:hover { filter: brightness(1.04); color: #5a1610 !important; border-color: #b84545 !important; background: linear-gradient(180deg, #fae4e0, #f1c3bc) !important; }
/* janela de truco: barra de tempo embaixo */
.overlay.pop .modal { display: flex; flex-direction: column; padding-top: 18px !important; }
.overlay.pop .modal > .pop-timer { order: 99; margin: 16px -18px -18px !important; border-radius: 0 0 16px 16px; }
.overlay.pop .modal > .tq-caller { align-self: center; margin-top: 0 !important; }
/* placar: rodada ganha = verde fraco preenchido; perdida = vermelho fraco; empate = amarelo fraco */
.sb2 .rd.w { background: linear-gradient(180deg, #d6f2dc, #a9dfb7) !important; border-color: #2f8a4f !important; }
.sb2 .rd.w small, .sb2 .rd.w b { color: #0e3b1d !important; }
.sb2 .rd.l { background: linear-gradient(180deg, #f7dcd8, #eebab3) !important; border-color: #b84545 !important; }
.sb2 .rd.l small, .sb2 .rd.l b { color: #5a1610 !important; }
.sb2 .rd.t { background: linear-gradient(180deg, #f8ebc6, #ecd18a) !important; border-color: #a06c06 !important; }
.sb2 .rd.t small, .sb2 .rd.t b { color: #4a3204 !important; }

/* botão TRUCO: ticket quando pode pedir; bloqueado fica sólido (sem transparência) */
.btn-truco { background: var(--paper-tex) !important; color: var(--ink) !important; border: 2px solid var(--ink) !important; box-shadow: 0 6px 0 var(--ink), 0 14px 30px rgba(3, 12, 20, .4) !important; position: relative; }
.btn-truco::after { content: ''; position: absolute; inset: 4px; border: 1px dashed rgba(21, 33, 43, .3); border-radius: 10px; pointer-events: none; }
.btn-truco:hover:not(:disabled) { background: linear-gradient(180deg, #61a6c7, #3c94be) !important; color: var(--paper) !important; }
.btn-truco:hover:not(:disabled)::after { border-color: rgba(244, 240, 230, .35); }
.btn-truco:disabled { opacity: 1 !important; background: #326483 !important; color: rgba(244, 240, 230, .32) !important; border: 2px solid #4989ae !important;
  box-shadow: 0 6px 0 #1c3f5b !important; }
.btn-truco:disabled::after { border-color: rgba(244, 240, 230, .1); }

/* balões com perninha apontando pra quem falou */
.bubble { overflow: visible; }
.bubble::after { content: ''; position: absolute; width: 14px; height: 14px; background: #f4f0e6; border: 1.5px solid #d6cdb9; transform: rotate(45deg); }
.bubble.truco::after { border-color: var(--ink); border-width: 2px; }
.bubble.tail-0::after { left: calc(50% - 7px); bottom: -8px; border-top: 0; border-left: 0; }
.bubble.tail-2::after { left: calc(50% - 7px); top: -8px; border-bottom: 0; border-right: 0; }
.bubble.tail-1::after { right: -8px; top: calc(50% - 7px); border-bottom: 0; border-left: 0; }
.bubble.tail-3::after { left: -8px; top: calc(50% - 7px); border-top: 0; border-right: 0; }
/* amigos: nome da liga embaixo do emblema */
.fp-lgart { width: 60px; height: auto; flex-direction: column; gap: 1px; display: flex; align-items: center; }
.fp-lgart i { width: 38px !important; height: 38px !important; display: grid; }
.fp-lgart b { display: block !important; font-size: 9.5px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; line-height: 1; }
/* aviso em cima da mesa (ex.: aguardando resposta do truco): texto escuro no papel */
.overlay.soft .modal, .overlay.soft .modal p, .overlay.soft .modal span, .overlay.soft .modal small, .overlay.soft .modal div { color: var(--ink) !important; }
.tz-pot { display: flex; flex-direction: column; align-items: center; gap: 1px; text-align: center; }
.tz-pot > span, .tz-pot > small { display: block; }
.tz-pot .tzp-max { font-size: 11.5px; opacity: .75; }
.tz-prizes .tzp-full { display: block; font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; color: #3d7590; margin-top: 1px; }
/* "com chave cheia" sempre numa linha só, e os dois prêmios do mesmo tamanho */
.tz-prizes { grid-template-columns: 1fr 1fr; }
.tz-prizes > div { min-width: 0; padding-left: 6px !important; padding-right: 6px !important; }
.tz-prizes .tzp-full { white-space: nowrap; font-size: 10px; letter-spacing: 0; }

/* ===== mesa de campeonato: especial + painel da chave à direita ===== */
#game.tz-game .game-top { background: linear-gradient(180deg, #1d2a22, #2b6484) !important; border-bottom: 1px solid rgba(245, 184, 46, .35) !important; box-shadow: 0 1px 14px rgba(245, 184, 46, .18); }
#game.tz-game .felt { box-shadow: inset 0 0 0 10px #1d4865, inset 0 0 0 12px rgba(245, 184, 46, .55), inset 0 0 0 14px #1d4865, inset 0 0 90px rgba(2, 10, 16, .7), 0 0 40px rgba(245, 184, 46, .12), 0 30px 80px rgba(2, 10, 16, .6) !important; }
#game.tz-game .felt::before { border-color: rgba(245, 184, 46, .25) !important; }
@media (min-width: 1300px) { #game.tz-game .felt-wrap { padding-right: 320px; } #game.tz-game .me-area, #game.tz-game .myarea { margin-right: 300px; } }
.tz-side { position: fixed; right: 16px; top: 72px; z-index: 22; width: 290px; max-height: calc(100vh - 92px); display: flex; flex-direction: column;
  background: var(--paper-tex); color: var(--ink); border-radius: 14px; overflow: hidden;
  box-shadow: 0 0 0 1px #d6cdb9, 0 0 0 5px rgba(34, 77, 108, .92), 0 0 0 6px rgba(245, 184, 46, .45), 0 20px 50px rgba(3, 12, 20, .6); }
@media (max-width: 1299px) { .tz-side { display: none; } }
.tzs-head { padding: 9px 12px; text-align: center; background: var(--ink); color: #ffd75e; font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.tzs-stage { display: flex; flex-direction: column; align-items: center; padding: 10px 12px 6px; }
.tzs-stage small { font-size: 10px; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-muted); }
.tzs-stage b { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1; letter-spacing: .03em; color: var(--ink); }
.tzs-stage span { font-size: 12px; color: #4a4840; margin-top: 2px; }
.tzs-prizes { display: flex; flex-direction: column; gap: 4px; padding: 4px 14px 10px; }
.tzs-prizes div { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; font-weight: 700; color: #3b3a35; border-bottom: 1px dotted #cfc7b5; padding-bottom: 3px; }
.tzs-prizes b { font-family: var(--display); font-weight: 400; font-size: 19px; color: var(--ink); }
.tzs-perf { position: relative; border-top: 2px dashed #b9b2a2; margin: 0 12px; }
.tzs-perf::before, .tzs-perf::after { content: ''; position: absolute; top: -9px; width: 16px; height: 16px; border-radius: 50%; background: #224d6c; }
.tzs-perf::before { left: -20px; } .tzs-perf::after { right: -20px; }
.tzs-bracket { overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 10px; }
.tzs-r > small { display: block; margin-bottom: 4px; font-size: 10px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); }
.tzs-r.third > small { color: #8a4a17; }
.tzs-m { position: relative; margin-bottom: 5px; border: 1px solid #d6cdb9; border-radius: 9px; background: rgba(21, 33, 43, .03); overflow: hidden; }
.tzs-m.mine { border: 2px solid var(--ink); }
.tzs-m.live { border-color: #2f8a4f; box-shadow: 0 0 0 2px rgba(47, 138, 79, .2); }
.tzs-live { position: absolute; top: 2px; right: 6px; font-style: normal; font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: #2f8a4f; }
.tzs-t { display: flex; justify-content: space-between; gap: 8px; padding: 4px 8px; font-size: 11.5px; font-weight: 700; color: #3b3a35; }
.tzs-t + .tzs-t { border-top: 1px dashed #d6cdb9; }
.tzs-t span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tzs-t b { font-family: var(--display); font-weight: 400; font-size: 16px; line-height: 1; color: var(--ink); }
.tzs-t.win { color: #0e3b1d; background: rgba(47, 138, 79, .1); } .tzs-t.win span::before { content: '✓ '; color: #2f8a4f; }
.tzs-t.lost { color: #9a948a; text-decoration: line-through; text-decoration-color: rgba(154, 148, 138, .6); }
.tzs-t.me span { color: var(--ink); font-weight: 900; }
.tzs-load { font-size: 12px; color: var(--ink-muted); text-align: center; padding: 10px; }
.tzs-link { display: block; text-align: center; padding: 9px; font-size: 12px; font-weight: 900; color: var(--paper); background: var(--ink); text-decoration: none; }
.tzs-link:hover { background: #3c94be; }

/* timer dinâmico: a cor acompanha o tempo restante */
.plate-timer, .plate-timer.low { background: conic-gradient(from 0deg, var(--tc, #4cc46e) calc(var(--p) * 360deg), rgba(255, 255, 255, .1) calc(var(--p) * 360deg)) !important;
  filter: drop-shadow(0 0 6px var(--tc, #4cc46e)) !important; }
.plate-secs { border: 2px solid var(--tc, #4cc46e); }
.plate-timer.low + .plate-secs { background: var(--tc) !important; color: #fff !important; }
.pop-timer i { background: var(--tc, #4cc46e) !important; }
/* contador de online: número numa moldura verde fraca */
html[data-theme="bilhete"] .lr-core { padding: 4px 12px 3px !important; border-radius: 10px !important; background: linear-gradient(180deg, #e3f5e7, #c4e9cf) !important;
  border: 1.5px solid #6fc28a !important; box-shadow: 0 2px 0 #6fc28a !important; }
html[data-theme="bilhete"] .lr-core b { color: #14532d !important; }
html[data-theme="bilhete"] .lr-core small { color: #2f8a4f !important; }
.tz-feeline { margin-top: -6px; text-align: center; font-size: 11.5px; font-weight: 700; color: var(--muted-ink, #6f6a5f); }
.tk-label { font-size: 11px; font-weight: 900; letter-spacing: .26em; text-transform: uppercase; color: var(--muted-ink, #6f6a5f); margin-bottom: -2px; }
/* padrão em todas as janelas: ação de seguir/ficar (verde) à direita, sair/cancelar (vermelho) à esquerda */
.overlay.tkm .row .tkm-no { order: 1; } .overlay.tkm .row .tkm-yes { order: 2; }
.overlay.tkm.create label { color: var(--ink-muted); } .overlay.tkm.create select { background: #fffdf8; color: var(--ink); border-color: #d6cdb9; }
.overlay.tkm.create .check span { color: #3b3a35; }

/* ===== ticket de fim de jogo (fica até clicar) ===== */
.overlay.end-ticket { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(5, 14, 20, .62); backdrop-filter: blur(3px); animation: np-in .3s ease; }
.et { width: min(560px, calc(100% - 32px)); background: var(--paper-tex); color: var(--ink); border-radius: 18px; overflow: hidden; animation: hb-in .6s cubic-bezier(.25, 1.6, .45, 1) both;
  box-shadow: 0 0 0 7px rgba(34, 77, 108, .95), 0 0 0 8px rgba(244, 240, 230, .35), 0 40px 90px rgba(3, 12, 20, .75); }
.et-head { display: flex; justify-content: space-between; gap: 10px; padding: 10px 20px; background: var(--ink); color: var(--paper); font-size: 11px; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; }
.et-head span:last-child { color: #b9d2de; letter-spacing: .1em; }
.et-result { display: flex; flex-direction: column; align-items: center; padding: 16px 20px 6px; }
.et-result b { font-family: var(--display); font-weight: 400; font-size: 64px; line-height: .95; letter-spacing: .03em; }
.et.won .et-result b { color: #1f7a43; } .et.lost .et-result b { color: #a8342a; }
.et-result em { font-style: normal; margin-top: 4px; padding: 3px 14px; border-radius: 999px; font-weight: 900; font-size: 18px; }
.et.won .et-result em { background: #d6f2dc; color: #0e3b1d; border: 1.5px solid #2f8a4f; } .et.lost .et-result em { background: #f7dcd8; color: #5a1610; border: 1.5px solid #b84545; }
.et-score { display: flex; justify-content: center; align-items: center; gap: 16px; padding: 10px 20px 14px; border-bottom: 2px dashed #c9c0ac; position: relative; }
.et-score::before, .et-score::after { content: ''; position: absolute; bottom: -10px; width: 18px; height: 18px; border-radius: 50%; background: #224d6c; }
.et-score::before { left: -9px; } .et-score::after { right: -9px; }
.et-side { display: flex; flex-direction: column; align-items: center; }
.et-side small { font-size: 11px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.et-side.us small { color: #2f8a4f; } .et-side.them small { color: #b84545; }
.et-side b { font-family: var(--display); font-weight: 400; font-size: 58px; line-height: 1; padding: 4px 14px 0; border-radius: 10px; background: var(--ink); }
.et-side.us b { color: #8ee6a8; } .et-side.them b { color: #ff9a9a; }
.et-side.win b { box-shadow: 0 0 0 3px #f5b82e; }
.et-score > i { font-style: normal; font-family: var(--display); font-size: 30px; color: var(--ink-muted); }
.et-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px 18px 6px; }
.et-team { padding: 10px; border-radius: 12px; border: 1.5px solid #d6cdb9; background: rgba(21, 33, 43, .04); display: flex; flex-direction: column; gap: 6px; }
.et-team.win { border-color: #c9a227; background: rgba(245, 184, 46, .1); }
.et-team > small { font-size: 10.5px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); }
.et-pl { display: flex; align-items: center; gap: 8px; }
.et-pl .avatar { width: 32px; height: 32px; }
.et-pl b { display: block; font-size: 13px; color: var(--ink); } .et-pl.me b { text-decoration: underline; text-decoration-color: #8db4c6; }
.et-pl span { font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.et-foot { padding: 6px 20px 4px; text-align: center; }
.et-sub { margin: 6px 0; font-size: 13.5px; color: #3b3a35; }
.et-wo { margin: 4px 0; font-size: 12.5px; color: #8a2a22; }
.et-lg { display: inline-block; margin: 2px 0 4px; padding: 3px 12px; border-radius: 999px; font-weight: 900; font-size: 13px; }
.et-lg.up { background: #d6f2dc; color: #0e3b1d; } .et-lg.down { background: #f7dcd8; color: #5a1610; }
.et-lg.none { background: rgba(21, 33, 43, .08); color: #6f6a5f; font-weight: 800; }
.et-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 18px 18px; }
/* cards de campeonato mais enxutos embaixo */
.tz-card:not(.tz-big) { gap: 10px; padding-bottom: 12px; }
.tz-card .tz-when:empty { display: none; }
.tz-card .tz-fill { padding-top: 10px; gap: 4px; }

/* ===== carteira: recarga e saque por Pix ===== */
.overlay.wallet .modal { max-width: 500px !important; text-align: left; }
.overlay.wallet .tkm-head { text-align: center; }
.wl-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 14px; padding: 4px; border-radius: 12px; background: rgba(21, 33, 43, .07); border: 1px solid #d6cdb9; }
.wl-tabs button { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-muted); font-weight: 900; font-size: 13.5px; cursor: pointer; }
.wl-tabs button.on { background: var(--ink); color: var(--paper); }
.pix-ic { width: 16px; height: 16px; }
.wl-sec { font-weight: 900; font-size: 14px; color: var(--ink); margin-bottom: 8px; }
.wl-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wl-chips.kt { grid-template-columns: repeat(4, 1fr); }
.wl-chips button { padding: 10px 6px; border-radius: 10px; border: 1.5px solid #d6cdb9; background: #fffdf8; color: var(--ink); font-weight: 900; font-size: 14px; cursor: pointer; }
.wl-chips.kt button { font-size: 12px; }
.wl-chips button.on { border: 2px solid var(--ink); background: var(--ink); color: var(--paper); }
.wl-lbl { display: block; margin: 12px 0 5px !important; font-size: 11px !important; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted) !important; }
.wl-money { display: flex; align-items: center; gap: 8px; padding: 0 6px 0 12px; border-radius: 10px; border: 1.5px solid #d6cdb9; background: #fffdf8; }
.wl-money span { font-weight: 900; color: var(--ink-muted); }
.wl-money input, .wl-in { border: 0 !important; background: transparent !important; color: var(--ink) !important; font-size: 18px !important; font-weight: 800; padding: 10px 4px !important; box-shadow: none !important; }
.wl-in { width: 100%; border: 1.5px solid #d6cdb9 !important; background: #fffdf8 !important; border-radius: 10px; padding: 10px 12px !important; font-size: 15px !important; }
.overlay.wallet .tkm-price { margin-top: 14px; }
.wl-bal { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 14px; border-radius: 12px; background: rgba(21, 33, 43, .05); border: 1px dashed #c9c0ac; }
.wl-bal small { font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.wl-bal b { font-family: var(--display); font-weight: 400; font-size: 32px; color: var(--ink); }
.wl-soon { margin-bottom: 12px; padding: 8px 12px; border-radius: 10px; font-size: 12.5px; font-weight: 700; color: #6b4a06; background: #f8ebc6; border: 1px solid #d9b45a; }
.pix-box { display: grid; grid-template-columns: 170px 1fr; gap: 16px; align-items: center; padding: 14px; border-radius: 14px; background: #fffdf8; border: 1.5px solid #d6cdb9; }
.pix-left { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pix-left span { font-size: 11px; color: var(--ink-muted); text-align: center; }
.pix-qr { width: 160px; height: 160px; border-radius: 8px; box-shadow: 0 0 0 1px #d6cdb9; }
.pix-right small { display: block; font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.pix-right > b { display: block; font-family: var(--display); font-weight: 400; font-size: 46px; line-height: 1; color: var(--ink); margin: 2px 0 10px; }
.pix-status { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #6b4a06; background: #f8ebc6; }
.pix-status i { width: 9px; height: 9px; border-radius: 50%; background: #d99a0b; animation: pt-blink .8s ease-in-out infinite alternate; }
.pix-exp { margin-top: 8px; font-size: 12.5px; color: #4a4840; } .pix-exp b { color: var(--ink); }
.pix-copy { display: flex; gap: 8px; }
.pix-copy input { flex: 1; font-family: ui-monospace, monospace; font-size: 11.5px !important; background: #fffdf8 !important; color: var(--ink) !important; border: 1.5px solid #d6cdb9 !important; padding: 9px 10px !important; }
.pix-copy .btn { background: var(--ink) !important; color: var(--paper) !important; border: 0 !important; }
.pix-steps { margin: 12px 0 14px; padding-left: 20px; font-size: 13px; color: #3b3a35; display: flex; flex-direction: column; gap: 3px; }
.wd-ticket { display: flex; flex-direction: column; margin-bottom: 14px; border-radius: 12px; border: 1.5px solid #d6cdb9; background: #fffdf8; overflow: hidden; }
.wd-ticket > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 14px; }
.wd-ticket > div + div { border-top: 1px dashed #d6cdb9; }
.wd-ticket small { font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.wd-ticket b { color: var(--ink); font-size: 14px; text-align: right; } .wd-ticket > div:first-child b { font-family: var(--display); font-weight: 400; font-size: 30px; }
.wd-ticket .mono { font-family: ui-monospace, monospace; font-size: 12.5px; word-break: break-all; }
.wl-test { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px -24px -22px; padding: 12px 24px; background: rgba(21, 33, 43, .07); border-top: 2px dashed #c9c0ac; }
.wl-test b { display: block; font-size: 13px; color: var(--ink); } .wl-test span { font-size: 11.5px; color: var(--ink-muted); }
.wl-test .btn { flex-shrink: 0; background: var(--ink) !important; color: var(--paper) !important; border: 0 !important; font-weight: 900; }
@media (max-width: 520px) { .pix-box { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
/* carteira: nada vaza pra direita */
.overlay.wallet .modal { width: min(500px, calc(100% - 32px)) !important; box-sizing: border-box; }
#wallet-root, #wallet-root * { min-width: 0; box-sizing: border-box; }
#wallet-root { width: 100%; }
.wl-body { width: 100%; }
.pix-copy input { width: 100%; min-width: 0; }
.wl-soon, .tkm-note { white-space: normal; overflow-wrap: anywhere; }
.wl-test { flex-wrap: nowrap; }
.wl-test > div { flex: 1; }
.wl-test span { display: block; white-space: normal; } .wl-test { gap: 14px; }
.wl-head { position: relative; }
.wl-x { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 7px; border: 1px solid rgba(244, 240, 230, .25);
  background: transparent; color: var(--paper); font-size: 13px; line-height: 1; cursor: pointer; }
.wl-x:hover { background: rgba(244, 240, 230, .12); }
.tkm-facts em { display: block; font-style: normal; font-size: 10px; font-weight: 800; color: #3d7590; white-space: nowrap; }

/* bilhetes de mesa: o valor ganha a "placa" no estilo do botão Jogar (e o botão fica só com JOGAR) */
.tk-center .tk-val { display: inline-flex; align-items: baseline; gap: 2px; margin: 4px 0 6px; padding: 6px 22px 2px; border-radius: 6px; color: #f4f0e6;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 5px), color-mix(in srgb, var(--acc) 78%, #1a1206);
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--acc) 78%, #1a1206), inset 0 0 0 4px rgba(244, 240, 230, .55), 0 3px 0 color-mix(in srgb, var(--acc) 50%, #000);
  text-shadow: 0 2px 0 rgba(0, 0, 0, .18); }
.tk-center .tk-val small, .tk-center .tk-val sup { color: rgba(244, 240, 230, .85); }
.tk-wrap.locked .tk-center .tk-val { filter: grayscale(.6); }
.tk-main .tk-btn { gap: 12px; }
.tk-center .tk-val { align-items: center; } .tk-center .tk-val sup { align-self: flex-start; top: 4px; vertical-align: baseline; }

/* cards de campeonato: preço numa placa no estilo do botão (e o botão fica só com INSCREVER) */
.tz-card .tz-buy b { display: inline-block; margin-top: 4px; padding: 6px 22px 3px; border-radius: 8px; color: #f4f0e6 !important; text-shadow: 0 2px 0 rgba(0, 0, 0, .18) !important;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 5px), color-mix(in srgb, var(--ink-c) 85%, #1a1206);
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--ink-c) 85%, #1a1206), inset 0 0 0 4px rgba(244, 240, 230, .55), 0 3px 0 color-mix(in srgb, var(--ink-c) 55%, #000); }
.tz-card .tz-btn { justify-content: center; }
.overlay.pop .hint-tip { color: var(--ink) !important; background: rgba(21, 33, 43, .06) !important; border-color: #d6cdb9 !important; }
.pp-mob { display: none; }
/* avatar do topo sempre centralizado (uma regra antiga trocava pra display:block) */
.userchip > .avatar { display: grid !important; place-items: center; }
/* título da tela inicial: sem a linha embaixo e brilho bem sutil */
.hero h1 .h-raiz { animation: none !important; text-shadow: 0 0 10px rgba(141, 180, 198, .18) !important; }
.hero h1 .h-raiz::after { display: none !important; }

/* contador de online: pequeno, no topo da página Jogar */
.live-strip { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 12px; padding: 6px 14px 6px 10px; border-radius: 999px;
  background: var(--paper-tex); color: var(--ink); font-size: 12.5px; font-weight: 700; box-shadow: 0 6px 16px rgba(3, 12, 20, .35); }
.live-strip b { font-family: var(--display); font-weight: 400; font-size: 20px; line-height: 1; padding: 1px 8px 0; border-radius: 7px; background: linear-gradient(180deg, #e3f5e7, #c4e9cf); border: 1.5px solid #6fc28a; color: #14532d; }
.live-strip b#ingame-n { background: rgba(21, 33, 43, .07); border-color: #c9c0ac; color: var(--ink); }
.live-strip span { color: #3b3a35; }
.live-strip i { width: 1px; height: 16px; background: #c9c0ac; margin: 0 3px; }
.ls-dot { width: 9px; height: 9px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 0 0 rgba(47, 191, 113, .5); animation: lb-pulse 1.8s ease-out infinite; }
/* timer não cobre o "SUA VEZ" nem a fichinha do dealer */
.dealer-chip { z-index: 5 !important; }
.yourturn { position: relative; z-index: 4; margin-bottom: 8px !important; }
.plate-timer { z-index: 1 !important; }
.wl-chips.kt button { line-height: 1.15; white-space: normal; word-break: keep-all; padding: 8px 4px; }
.live-strip { display: flex !important; width: fit-content; margin-left: auto !important; margin-right: auto !important; }

/* ---------- destaques da home em pastilhas (desktop e celular) ---------- */
.landing .feats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px !important; justify-content: stretch; position: relative; z-index: 2; }
@media (max-width: 1250px) { .landing .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.landing .feat {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 13px;
  border-radius: 14px; border: 1px solid rgba(141, 180, 198, .30);
  background: linear-gradient(160deg, rgba(141, 180, 198, .16), rgba(43, 100, 132, .55));
  box-shadow: 0 10px 24px rgba(3, 12, 20, .35), inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .2s ease, border-color .2s ease;
}
/* picote de bilhete por dentro */
.landing .feat::after { content: ''; position: absolute; inset: 5px; border-radius: 10px; border: 1px dashed rgba(244, 240, 230, .16); pointer-events: none; }
.landing .feat:hover { transform: translateY(-2px); border-color: rgba(141, 180, 198, .55); }
.landing .feat b { line-height: 1; color: #fff; }
.landing .feat span { white-space: normal; line-height: 1.35; color: rgba(244, 240, 230, .82); }
@media (max-width: 760px) {
  .landing .feat { padding: 12px 13px 11px; border-radius: 12px; }
  .landing .feat::after { inset: 4px; border-radius: 9px; }
  .landing .feat b { font-size: 22px; }
  .landing .feat span { font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) { .landing .feat { transition: none; } .landing .feat:hover { transform: none; } }
.landing .feat { align-items: center; text-align: center; }

/* contador ao vivo: caixinha dos números mais larga (cabe 3 dígitos sem apertar) */
.live-strip b { min-width: 3.2ch; padding: 1px 12px 0 !important; text-align: center; font-variant-numeric: tabular-nums; }

/* fim de jogo: linhas de jogador zebradas, com o desenho da liga e o nome da liga ao lado */
.et-team { gap: 0 !important; }
.et-team > small { margin-bottom: 6px; }
.et-pl { padding: 6px 8px; border-radius: 9px; min-width: 0; }
.et-team .et-pl:nth-child(even) { background: rgba(21, 33, 43, .08); }
.et-team .et-pl:nth-child(odd) { background: rgba(255, 255, 255, .35); }
.et-pl .et-nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.et-lgt { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; padding: 2px 8px 2px 3px; border-radius: 999px; background: rgba(21, 33, 43, .85); }
.et-lgt i { display: block; width: 22px; height: 22px; }
.et-lgt i svg { width: 100%; height: 100%; display: block; }
.et-lgt em { font-style: normal; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--lg); }

/* sua vez: halo azul pulsando em volta das cartas da mão (fica atrás delas, não mexe nas animações das cartas) */
.myhand { position: relative; isolation: isolate; }
.myhand.can::before { content: ''; position: absolute; inset: -10px -14px; z-index: -1; border-radius: 20px; pointer-events: none;
  border: 2px solid rgba(141, 180, 198, .85);
  background: radial-gradient(ellipse at 50% 60%, rgba(141, 180, 198, .22), rgba(141, 180, 198, 0) 70%);
  box-shadow: 0 0 22px rgba(141, 180, 198, .55), inset 0 0 18px rgba(141, 180, 198, .25);
  animation: myturn-halo 1.5s ease-in-out infinite; }
@keyframes myturn-halo { 0%, 100% { opacity: .55; transform: scale(.985); } 50% { opacity: 1; transform: scale(1.01); } }
@media (max-width: 760px) { .myhand.can::before { inset: -6px -8px; border-radius: 16px; } }
@media (prefers-reduced-motion: reduce) { .myhand.can::before { animation: none; opacity: .9; } }

/* modo descartar ligado: X transparente em cima de cada carta da mão; mais forte na carta tocada/apontada */
.myhand .card.cover-armed { position: relative; outline: none !important; filter: none !important; }
.myhand .card.cover-armed::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M28 28 72 72M72 28 28 72' stroke='%23f4f0e6' stroke-width='15' stroke-linecap='round'/%3E%3Cpath d='M28 28 72 72M72 28 28 72' stroke='%2315212b' stroke-width='9' stroke-linecap='round'/%3E%3C/svg%3E") center / 62% no-repeat, rgba(21, 33, 43, .14);
  opacity: .45; transition: opacity .15s, background-color .15s; }
.myhand.can .card.cover-armed:hover::after, .myhand.can .card.cover-armed:active::after { opacity: 1; background-color: rgba(21, 33, 43, .3); }

/* fora da sua vez: cartas da mão um pouco sem cor (voltam ao normal quando é sua vez) */
.myhand:not(.can) .card:not(.dim):not(.locked) { filter: drop-shadow(0 6px 10px rgba(3, 12, 18, .45)) saturate(.35) brightness(.86); }
.myhand.can .card:not(.dim):not(.locked):not(.cover-armed) { filter: drop-shadow(0 6px 10px rgba(3, 12, 18, .45)) saturate(1) brightness(1); }

/* mão de onze: bilhete igual ao do truco (título + "vale 3", mãos lado a lado separadas por picote, botões do truco) */
.oz-title { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 2px; }
.overlay.pop .oz-title h3 { margin: 0; font-size: 38px; line-height: 1; color: var(--ink); }
.oz-sub { text-align: center; }
.oz-hands { display: grid; grid-template-columns: 1fr 1fr; margin: 4px -18px 14px; padding: 10px 12px 6px; border-top: 2px dashed #c9c0ac; border-bottom: 2px dashed #c9c0ac; background: rgba(21, 33, 43, .04); }
.oz-hands.solo { grid-template-columns: 1fr; }
.oz-h { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.oz-h + .oz-h { border-left: 2px dashed #c9c0ac; }
.oz-h small { font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.oz-h .cards-row { margin: 0 !important; gap: 5px !important; }
.overlay.pop .oz-h .cards-row .card { width: 52px; }

/* chat rápido: duas colunas, grupo "Pro parceiro" em cima e "Na mesa" embaixo */
.quickchat .menu { display: grid !important; grid-template-columns: 1fr 1fr; gap: 2px 4px; min-width: 270px !important; max-height: min(62vh, 440px); overflow-y: auto; }
.quickchat .menu .qc-lbl { grid-column: 1 / -1; padding: 6px 10px 2px; font-size: 9.5px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: #8db4c6; }
.quickchat .menu .qc-lbl:not(:first-child) { margin-top: 4px; border-top: 1px dashed rgba(141, 180, 198, .3); padding-top: 8px; }
.quickchat .menu button { white-space: nowrap; padding: 8px 9px !important; }

/* menu do perfil: "Sair da conta" logo abaixo do som (celular e computador) */
.profile-pop .pp-logout { display: block; width: 100%; margin: 0 0 10px; }

/* computador: topo termina em [amigos][notificações][saldo][perfil] */
@media (min-width: 761px) {
  .topbar #btn-friends, .topbar #btn-bell { order: 1; }
  .topbar .wallet { order: 2; }
  .topbar .userchip { order: 3; }
}

/* computador: pedido de truco no topo da mesa (cobre só a plaquinha do jogador de cima), compacto em 2 linhas */
@media (min-width: 761px) {
  .overlay.pop:has(.tq-title) { place-items: start center !important; align-items: start !important; padding: 66px 0 0 !important; background: none !important; }
  .overlay.pop .modal:has(.tq-title) { width: 560px !important; max-width: calc(100vw - 40px) !important; padding: 14px 16px 20px !important; overflow: hidden !important;
    display: grid !important; grid-template-columns: 1fr 1fr 1.2fr; grid-template-areas: 'cal tit tit' 'row row rai'; gap: 10px 12px; align-items: center; text-align: left;
    animation: tq-drop-d .25s cubic-bezier(.2, .9, .3, 1); }
  @keyframes tq-drop-d { from { transform: translateY(-20px); opacity: 0; } }
  .overlay.pop .modal:has(.tq-title):not(:has(.tq-raise)) { grid-template-areas: 'cal tit tit' 'row row row'; }
  .overlay.pop .modal:has(.tq-title) > .pop-timer { position: absolute !important; top: auto !important; bottom: 0; left: 0; right: 0; height: 8px !important; margin: 0 !important; border-radius: 0 !important; order: 0; }
  .overlay.pop .modal:has(.tq-title) > .pop-timer span { display: none; }
  .overlay.pop .modal:has(.tq-title) .tq-caller { grid-area: cal; margin: 0 !important; justify-self: start; }
  .overlay.pop .modal:has(.tq-title) .tq-title { grid-area: tit; justify-content: flex-end; }
  .overlay.pop .modal:has(.tq-title) .tq-title h3 { font-size: 36px !important; }
  .overlay.pop .modal:has(.tq-title) .tq-sub, .overlay.pop .modal:has(.tq-title) .hint-tip { display: none !important; }
  .overlay.pop .modal:has(.tq-title) .tq-row { grid-area: row; }
  .overlay.pop .modal:has(.tq-title) .tq-btn { padding: 10px 6px; font-size: 20px; }
  .overlay.pop .modal:has(.tq-title) .tq-raise { grid-area: rai; margin: 0 !important; padding: 8px 8px !important; gap: 8px; height: 100%; }
  .overlay.pop .modal:has(.tq-title) .tq-rl { font-size: 22px; }
  .overlay.pop .modal:has(.tq-title) .tq-jump b { font-size: 20px; }
}

/* TRUCO!: balão desce como um tapa na mesa (bate, achata, volta) + onda de impacto; a mesa treme */
.bubble.truco { animation: truco-slap .42s cubic-bezier(.2, .9, .3, 1.2) both, fade .4s ease-in 2.6s forwards !important; transform-origin: 50% 80%; }
.bubble.truco::before { content: ''; position: absolute; left: 50%; top: 50%; width: 100%; height: 100%; border-radius: 14px; pointer-events: none;
  border: 3px solid rgba(244, 240, 230, .85); transform: translate(-50%, -50%); animation: truco-ring .5s ease-out .16s both; }
.bubble.truco.lv1 { font-size: 48px; } .bubble.truco.lv2 { font-size: 52px; } .bubble.truco.lv3 { font-size: 58px; }
@keyframes truco-slap {
  0% { opacity: 0; transform: translateY(-46px) scale(2.1) rotate(-9deg); }
  40% { opacity: 1; transform: translateY(4px) scale(.88, .8) rotate(2deg); }
  62% { transform: translateY(-3px) scale(1.07, 1.06) rotate(-1deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}
@keyframes truco-ring { from { opacity: .9; transform: translate(-50%, -50%) scale(1); } to { opacity: 0; transform: translate(-50%, -50%) scale(1.9, 2.3); } }
/* seis/nove/doze: o próprio balão dá mais batidas, no ritmo dos tapas do som (a mesa não mexe) */
.bubble.truco.lv1 { animation: truco-slap .42s cubic-bezier(.2, .9, .3, 1.2) both, truco-thump .2s ease-out .42s 1, fade .4s ease-in 2.6s forwards !important; }
.bubble.truco.lv2, .bubble.truco.lv3 { animation: truco-slap .42s cubic-bezier(.2, .9, .3, 1.2) both, truco-thump .2s ease-out .42s 2, fade .4s ease-in 2.6s forwards !important; }
@keyframes truco-thump { 0% { transform: none; } 35% { transform: translateY(3px) scale(1.08, .9); } 100% { transform: none; } }
@media (max-width: 760px) { .bubble.truco.lv1 { font-size: 24px !important; } .bubble.truco.lv2 { font-size: 26px !important; } .bubble.truco.lv3 { font-size: 29px !important; } }
@media (prefers-reduced-motion: reduce) { .bubble.truco, .bubble.truco::before { animation: fade .4s ease-in 2.6s forwards !important; } }
/* computador: a janela de truco (compacta) fica logo acima das cartas da mão */
@media (min-width: 761px) {
  .overlay.pop:has(.tq-title) { place-items: end center !important; align-items: end !important; padding: 0 0 188px !important; }
}
@media (min-width: 761px) {
  .overlay.pop:has(.tq-title) { padding-bottom: 180px !important; }
  .overlay.pop .modal:has(.tq-title) { padding: 10px 14px 16px !important; gap: 8px 10px; }
  .overlay.pop .modal:has(.tq-title) .tq-title h3 { font-size: 30px !important; }
  .overlay.pop .modal:has(.tq-title) .tq-caller { padding-top: 2px !important; padding-bottom: 2px !important; }
  .overlay.pop .modal:has(.tq-title) .tq-btn { padding: 8px 6px; font-size: 18px; }
  .overlay.pop .modal:has(.tq-title) .tq-raise { padding: 6px 8px !important; }
}

/* selo "VALENDO x": bilhete (papel + canhoto escuro com o número), igual no celular e no computador */
.valbadge, .valbadge.hot { display: inline-flex !important; align-items: center !important; padding: 0 0 0 12px !important; gap: 0; overflow: hidden;
  background: var(--paper-tex) !important; color: var(--ink) !important; border: 2px solid var(--ink); border-radius: 11px !important;
  box-shadow: 0 8px 22px rgba(3, 12, 20, .5), inset 0 0 0 3px rgba(244, 240, 230, .9) !important;
  font-size: 11px !important; font-weight: 900; letter-spacing: .14em; line-height: 1; }
.valbadge b { align-self: stretch; display: flex; align-items: center; margin: 0 0 0 12px !important; padding: 4px 13px 2px;
  background: var(--ink); color: var(--paper) !important; border-left: 2px dashed rgba(244, 240, 230, .55);
  font-family: var(--display); font-weight: 400; font-size: 30px !important; letter-spacing: 0; vertical-align: 0; }
.valbadge.hot b { background: #46aecd; }
.valbadge.hot { border-color: #46aecd; }
@media (max-width: 760px) {
  .valbadge, .valbadge.hot { padding: 0 0 0 9px !important; font-size: 9.5px !important; letter-spacing: .1em; border-radius: 9px !important; }
  .valbadge b { margin-left: 8px !important; padding: 3px 10px 1px; font-size: 22px !important; }
}

/* tag de quem ganhou a rodada: no meio da carta (não cobre o número do canto) */
.win-badge { top: 50% !important; transform: translate(-50%, -50%) !important; animation: badge-mid .45s .15s cubic-bezier(.3, 1.7, .5, 1) both !important; }
@keyframes badge-mid { from { opacity: 0; transform: translate(-50%, -50%) scale(.4); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }

/* computador: aviso de quem ganhou a rodada (e de rodada cangada) maior */
@media (min-width: 761px) {
  html body .rb-tag { font-family: var(--display) !important; font-size: 26px !important; font-weight: 400 !important; letter-spacing: .04em !important; padding: 8px 20px 6px !important; border-radius: 14px !important; border-width: 2.5px !important; }
  html body .rb-star { margin-right: 8px !important; }
  html body .rb .ring { width: 90px !important; height: 90px !important; margin: -45px 0 0 -45px !important; border-width: 3px !important; }
  html body .rb-tie { padding: 10px 22px !important; border-radius: 14px !important; border-width: 2.5px !important; }
  html body .rb-tie b { font-size: 32px !important; }
  html body .rb-tie span { font-size: 13px !important; letter-spacing: .1em !important; }
}

/* computador: VALENDO em cima do TRUCO, DESCARTAR à direita do TRUCO; descartar com tamanho fixo (não pula ao ligar) */
.act-val { display: none; }
.act-side { display: contents; } /* celular: sinal e descartar entram direto na grade da mão */
@media (min-width: 761px) {
  .felt .handinfo { display: none !important; }
  .myarea .actions { position: relative; display: grid !important; grid-template-columns: auto; grid-template-areas: 'val' 'tru'; align-items: end; justify-items: start; gap: 8px; min-width: 0 !important; }
  .act-val { display: block; grid-area: val; justify-self: center; align-self: end; }
  .myarea .actions .btn-truco { grid-area: tru; }
  /* SINAL e DESCARTAR à direita do TRUCO, centralizados na altura dele, fora do fluxo:
     aparecer/sumir não muda a largura das ações, então a mão e a plaquinha não andam */
  .myarea .actions .act-side { position: absolute; grid-area: tru; top: 0; bottom: 0; left: calc(100% + 10px); width: max-content;
    display: flex; align-items: center; gap: 10px; }
  .myarea .actions .btn-cover { width: 218px; height: 62px; box-sizing: border-box; align-self: center; }
  .myarea .actions .btn-cover > span:last-child { min-width: 0; }
  .myarea .actions .btn-cover small { white-space: normal; line-height: 1.2; }
}

/* computador: janela de fim da mão ("Ganhamos a mão · +3") bem maior; no celular continua compacta */
@media (min-width: 761px) {
  html body .hb-card { min-width: 380px !important; max-width: 460px !important; width: auto !important; padding: 0 40px 20px !important; border-radius: 22px !important; }
  html body .hb-card::before { inset: 9px !important; border-radius: 16px !important; }
  html body .hb-team { margin: 0 -40px 8px !important; padding: 10px 0 !important; font-size: 13px !important; letter-spacing: .3em !important; }
  html body .hb-points { font-size: 104px !important; margin: 2px 0 !important; }
  html body .hb-sub { font-size: 17px !important; }
  html body .hb-who { gap: 12px !important; margin-top: 12px !important; }
  html body .hb-who span { font-size: 13px !important; padding: 4px 12px 4px 4px !important; gap: 8px !important; }
  html body .hb-who .avatar { width: 30px !important; height: 30px !important; }
  html body .hb-score { gap: 16px !important; margin-top: 14px !important; padding-top: 10px !important; }
  html body .hb-score small { font-size: 10px !important; }
  html body .hb-score em { font-size: 40px !important; }
}

/* "O truco raiz, / na palma da mão.": mais espaço entre as linhas (o til do MÃO encostava na linha de cima) */
html body .landing .hero h1 { line-height: 1.08 !important; }
html body .landing .hero h1 .h-raiz { margin-bottom: .06em; }

/* ===== mesas: 16 valores, cada um com sua cor (sem ligação com as ligas) ===== */
.tk-wrap.tier-0, .tk-mini.tier-0   { --acc: #6b7a86; --acc2: #c9d3db; --shine: rgba(255, 255, 255, .55); }  /* R$ 0,25  ardósia */
.tk-wrap.tier-1, .tk-mini.tier-1   { --acc: #4f8f5a; --acc2: #9be0a6; --shine: rgba(155, 224, 166, .6); }   /* R$ 0,50  verde */
.tk-wrap.tier-2, .tk-mini.tier-2   { --acc: #1f8a80; --acc2: #8fe3d8; --shine: rgba(143, 227, 216, .7); }   /* R$ 1     verde-água */
.tk-wrap.tier-3, .tk-mini.tier-3   { --acc: #62a5c6; --acc2: #a9daf2; --shine: rgba(169, 218, 242, .75); }  /* R$ 1,50  azul-céu */
.tk-wrap.tier-4, .tk-mini.tier-4   { --acc: #4a5bbd; --acc2: #b3bcff; --shine: rgba(179, 188, 255, .8); }   /* R$ 2     anil */
.tk-wrap.tier-5, .tk-mini.tier-5   { --acc: #7046c2; --acc2: #c6a8ff; --shine: rgba(198, 168, 255, .85); }  /* R$ 5     roxo */
.tk-wrap.tier-6, .tk-mini.tier-6   { --acc: #a03c8c; --acc2: #f3a8e4; --shine: rgba(243, 168, 228, .85); }  /* R$ 10    ameixa */
.tk-wrap.tier-7, .tk-mini.tier-7   { --acc: #a8642f; --acc2: #f0b27a; --shine: rgba(240, 178, 122, .85); }  /* R$ 20    cobre */
.tk-wrap.tier-8, .tk-mini.tier-8   { --acc: #6d7b8c; --acc2: #eef3f7; --shine: rgba(255, 255, 255, .95); }  /* R$ 30    prata */
.tk-wrap.tier-9, .tk-mini.tier-9   { --acc: #b8860b; --acc2: #ffd75e; --shine: rgba(255, 215, 94, .95); }   /* R$ 50    ouro */
.tk-wrap.tier-10, .tk-mini.tier-10 { --acc: #157a4f; --acc2: #7ff0b6; --shine: rgba(127, 240, 182, .95); }  /* R$ 75    esmeralda */
.tk-wrap.tier-11, .tk-mini.tier-11 { --acc: #c9601a; --acc2: #ffb877; --shine: rgba(255, 184, 119, 1); }    /* R$ 100   laranja */
.tk-wrap.tier-12, .tk-mini.tier-12 { --acc: #2f5fb3; --acc2: #a9c4ff; --shine: rgba(169, 196, 255, .95); }  /* R$ 150   safira */
.tk-wrap.tier-13, .tk-mini.tier-13 { --acc: #638a1b; --acc2: #c9ef7a; --shine: rgba(201, 239, 122, 1); }    /* R$ 200   verde-limão */
.tk-wrap.tier-14, .tk-mini.tier-14 { --acc: #0f5c6e; --acc2: #7fd8e8; --shine: rgba(127, 216, 232, 1); }    /* R$ 250   azul-petróleo */
.tk-wrap.tier-15, .tk-mini.tier-15 { --acc: #b3261e; --acc2: #ff8f80; --shine: rgba(255, 143, 128, 1); }    /* R$ 300   vermelho */
/* motion: brilho mais rápido quanto mais cara; as 3 maiores brilham em volta */
.tk-wrap.tier-0 .tk-shine, .tk-wrap.tier-1 .tk-shine { animation: tk-sweep 7s ease-in-out infinite; }
.tk-wrap.tier-2 .tk-shine, .tk-wrap.tier-3 .tk-shine { animation: tk-sweep 6s ease-in-out infinite; }
.tk-wrap.tier-4 .tk-shine, .tk-wrap.tier-5 .tk-shine { animation: tk-sweep 5s ease-in-out infinite; }
.tk-wrap.tier-6 .tk-shine, .tk-wrap.tier-7 .tk-shine { animation: tk-sweep 4.2s ease-in-out infinite; }
.tk-wrap.tier-8 .tk-shine, .tk-wrap.tier-9 .tk-shine { animation: tk-sweep 3.4s ease-in-out infinite; }
.tk-wrap.tier-10 .tk-shine, .tk-wrap.tier-11 .tk-shine { animation: tk-sweep 3s ease-in-out infinite; }
.tk-wrap.tier-12 .tk-shine, .tk-wrap.tier-13 .tk-shine, .tk-wrap.tier-14 .tk-shine, .tk-wrap.tier-15 .tk-shine { animation: tk-sweep 2.8s ease-in-out infinite; }
.tk-wrap[class*="tier-"] .ticket { animation: none; filter: none; } /* zera os efeitos antigos (eram ligados às ligas) */
.tk-wrap[class*="tier-"] .tk-stamp { animation: none; }
.tk-wrap.locked .ticket { animation: none !important; }

/* ===== contador de jogadores no canhoto: grande, "ao vivo", chama pra mesa com gente ===== */
.tk-stub { justify-content: center !important; padding: 10px 8px !important; }
.tk-livebox { display: flex; flex-direction: column; align-items: stretch; gap: 6px; text-align: center; }
.tkl-top { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 10px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.tkl-dot { width: 9px; height: 9px; border-radius: 50%; background: #9aa3ab; flex-shrink: 0; }
.tk-livebox.on .tkl-dot, .tk-livebox.hot .tkl-dot { background: #20a865; box-shadow: 0 0 0 0 rgba(32, 168, 101, .6); animation: tkl-ping 1.4s ease-out infinite; }
@keyframes tkl-ping { 0% { box-shadow: 0 0 0 0 rgba(32, 168, 101, .65); } 100% { box-shadow: 0 0 0 9px rgba(32, 168, 101, 0); } }
.tkl-row { display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 10px; background: rgba(32, 168, 101, .12); border: 1.5px solid rgba(32, 168, 101, .35); }
.tkl-row b { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: .9; color: #178a52; min-width: 26px; }
.tkl-row span { font-size: 9.5px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; line-height: 1.15; color: #1d4d36; text-align: left; }
.tkl-row.wait { background: rgba(98, 165, 198, .12); border-color: rgba(98, 165, 198, .4); }
.tkl-row.wait b { color: #2f7495; } .tkl-row.wait span { color: #1f4a60; }
.tk-livebox.hot .tkl-row.wait { background: #3c94be; border-color: #3c94be; animation: tkl-call 1.6s ease-in-out infinite; }
.tk-livebox.hot .tkl-row.wait b, .tk-livebox.hot .tkl-row.wait span { color: #f4f0e6; }
@keyframes tkl-call { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(98, 165, 198, .5); } 50% { transform: scale(1.04); box-shadow: 0 0 0 6px rgba(98, 165, 198, 0); } }
.tk-livebox.zero .tkl-row { background: rgba(21, 33, 43, .05); border-color: rgba(21, 33, 43, .14); }
.tk-livebox.zero .tkl-row b { color: #8a8578; } .tk-livebox.zero .tkl-row span { color: #8a8578; }
.tk-livebox em { font-style: normal; font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }

/* ===== bilhete compacto (só celular) ===== */
.tk-mini { display: none; }
@media (max-width: 760px) {
  #stakes { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  #stakes > .tk-wrap { display: none !important; }
  .tk-mini { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; position: relative; overflow: hidden; text-align: left; cursor: pointer;
    padding: 10px 10px 9px 16px; border-radius: 12px; border: 0; color: var(--ink); font: inherit;
    background: var(--paper-tex); box-shadow: 0 6px 16px rgba(3, 12, 20, .4), inset 0 0 0 1.5px rgba(21, 33, 43, .12); }
  .tk-mini::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; background: linear-gradient(180deg, var(--acc2), var(--acc)); }
  .tk-mini::after { content: '›'; position: absolute; right: 9px; top: 8px; font-size: 20px; font-weight: 900; line-height: 1; color: var(--acc); }
  .tk-mini:active { transform: scale(.97); }
  .tkm-val { font-family: var(--display); font-size: 34px; line-height: .95; color: var(--acc); filter: brightness(.85); }
  .tkm-val small { font-size: 15px; margin-right: 2px; color: inherit; opacity: .75; }
  .tkm-val sup { font-size: 17px; vertical-align: top; position: relative; top: 3px; }
  .tkm-prize { font-size: 10.5px; font-weight: 700; color: var(--ink-muted); }
  .tkm-prize b { color: inherit; font-weight: 900; }
  .tkl-mini { display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; padding: 3px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 800;
    background: rgba(21, 33, 43, .06); color: #8a8578; }
  .tkl-mini i { width: 7px; height: 7px; border-radius: 50%; background: #9aa3ab; }
  .tkl-mini b { font-family: var(--display); font-weight: 400; font-size: 16px; line-height: 1; }
  .tkl-mini.on, .tkl-mini.hot { background: rgba(32, 168, 101, .14); color: #1d4d36; }
  .tkl-mini.on i, .tkl-mini.hot i { background: #20a865; animation: tkl-ping 1.4s ease-out infinite; }
  .tkl-mini.on b, .tkl-mini.hot b { color: #178a52; }
  .tkl-mini.hot { background: #3c94be; color: #f4f0e6; } .tkl-mini.hot b { color: #fff; }
  .tk-mini.locked { opacity: .6; }
  .tkm-lock { position: absolute; right: 8px; bottom: 8px; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #a8342a; }
  /* janela com o bilhete completo */
  .overlay.tk-open .modal { padding: 14px 12px calc(14px + env(safe-area-inset-bottom)) !important; }
  .tk-sheet .tk-wrap { display: flex !important; }
  .tk-sheet { margin-bottom: 10px; }
}

/* contador: número em cima, rótulo curto embaixo (cabe no canhoto estreito) */
.tkl-row { flex-direction: column !important; gap: 2px !important; padding: 5px 4px 6px !important; }
.tkl-row b { min-width: 0 !important; font-size: 32px !important; }
.tkl-row span { text-align: center !important; font-size: 9px !important; letter-spacing: .06em !important; white-space: nowrap; }
.tkl-top { font-size: 9.5px !important; letter-spacing: .1em !important; }
@media (max-width: 760px) { html body #stakes { grid-template-columns: 1fr 1fr !important; gap: 10px !important; } }

/* ===== cores das mesas (mais claras); R$ 30 rosa, R$ 300 vermelho ===== */
.tk-wrap.tier-0, .tk-mini.tier-0   { --acc: #7d8c98; --acc2: #d6dee5; --shine: rgba(255, 255, 255, .6); }   /* R$ 0,25  ardósia */
.tk-wrap.tier-1, .tk-mini.tier-1   { --acc: #5aa366; --acc2: #aeeab8; --shine: rgba(174, 234, 184, .65); }  /* R$ 0,50  verde */
.tk-wrap.tier-2, .tk-mini.tier-2   { --acc: #27a196; --acc2: #a3ece2; --shine: rgba(163, 236, 226, .7); }   /* R$ 1     verde-água */
.tk-wrap.tier-3, .tk-mini.tier-3   { --acc: #4f9cc2; --acc2: #bde4f7; --shine: rgba(189, 228, 247, .75); }  /* R$ 1,50  azul-céu */
.tk-wrap.tier-4, .tk-mini.tier-4   { --acc: #5b6dd4; --acc2: #c3caff; --shine: rgba(195, 202, 255, .8); }   /* R$ 2     anil */
.tk-wrap.tier-5, .tk-mini.tier-5   { --acc: #8158d6; --acc2: #d3baff; --shine: rgba(211, 186, 255, .85); }  /* R$ 5     roxo */
.tk-wrap.tier-6, .tk-mini.tier-6   { --acc: #b44c9f; --acc2: #f6b9ea; --shine: rgba(246, 185, 234, .85); }  /* R$ 10    ameixa */
.tk-wrap.tier-7, .tk-mini.tier-7   { --acc: #bd7438; --acc2: #f6c08f; --shine: rgba(246, 192, 143, .85); }  /* R$ 20    cobre */
.tk-wrap.tier-8, .tk-mini.tier-8   { --acc: #d2527e; --acc2: #ffc0d4; --shine: rgba(255, 192, 212, .95); }  /* R$ 30    rosa */
.tk-wrap.tier-9, .tk-mini.tier-9   { --acc: #c8970f; --acc2: #ffe07a; --shine: rgba(255, 224, 122, .95); }  /* R$ 50    ouro */
.tk-wrap.tier-10, .tk-mini.tier-10 { --acc: #1d9160; --acc2: #8ff5c2; --shine: rgba(143, 245, 194, .95); }  /* R$ 75    esmeralda */
.tk-wrap.tier-11, .tk-mini.tier-11 { --acc: #d9661c; --acc2: #ffc08a; --shine: rgba(255, 192, 138, 1); }    /* R$ 100   laranja */
.tk-wrap.tier-12, .tk-mini.tier-12 { --acc: #3a6cc4; --acc2: #bcd2ff; --shine: rgba(188, 210, 255, .95); }  /* R$ 150   safira */
.tk-wrap.tier-13, .tk-mini.tier-13 { --acc: #6f9a1f; --acc2: #d4f58a; --shine: rgba(212, 245, 138, 1); }    /* R$ 200   verde-limão */
.tk-wrap.tier-14, .tk-mini.tier-14 { --acc: #16708a; --acc2: #93e2f0; --shine: rgba(147, 226, 240, 1); }    /* R$ 250   azul-petróleo */
.tk-wrap.tier-15, .tk-mini.tier-15 { --acc: #c22f2f; --acc2: #ff9a8a; --shine: rgba(255, 154, 138, 1); }    /* R$ 300   vermelho */


/* as últimas mesas usam só a cor e o reflexo, igual às outras (sem contorno de luz) */
.tkm-glow { display: none !important; }
/* tela de entrar: logo com motion leve (flutua, balança um tiquinho e o brilho respira) */
.landing .hero .brand-lg .brand-logo { animation: logo-float 5.5s ease-in-out infinite, logo-glow 5.5s ease-in-out infinite; transform-origin: 50% 60%; will-change: transform; }
@keyframes logo-float {
  0%, 100% { transform: translateY(0) rotate(-1.2deg); }
  50% { transform: translateY(-9px) rotate(1.2deg); }
}
@keyframes logo-glow {
  0%, 100% { filter: drop-shadow(0 6px 12px rgba(3, 12, 20, .5)) drop-shadow(0 0 0 rgba(141, 180, 198, 0)); }
  50% { filter: drop-shadow(0 14px 18px rgba(3, 12, 20, .35)) drop-shadow(0 0 18px rgba(141, 180, 198, .45)); }
}
@media (max-width: 760px) {
  .landing .hero .brand-lg { margin-top: 16px; }
  @keyframes logo-float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-6px) rotate(1deg); } }
}
@media (prefers-reduced-motion: reduce) { .landing .hero .brand-lg .brand-logo { animation: none; } }
/* logo da tela de entrar: motion bem sutil (só um respiro) */
.landing .hero .brand-lg .brand-logo { animation: logo-float-s 7s ease-in-out infinite, logo-glow-s 7s ease-in-out infinite !important; }
@keyframes logo-float-s { 0%, 100% { transform: translateY(0) rotate(-.4deg); } 50% { transform: translateY(-3px) rotate(.4deg); } }
@keyframes logo-glow-s {
  0%, 100% { filter: drop-shadow(0 6px 12px rgba(3, 12, 20, .5)) drop-shadow(0 0 0 rgba(141, 180, 198, 0)); }
  50% { filter: drop-shadow(0 8px 14px rgba(3, 12, 20, .45)) drop-shadow(0 0 8px rgba(141, 180, 198, .22)); }
}
@media (prefers-reduced-motion: reduce) { .landing .hero .brand-lg .brand-logo { animation: none !important; } }

/* tela de entrar: leque de cartas "respirando" (abre e fecha de leve, uma carta depois da outra) */
.hero .fan .card:nth-child(1) { --r: -18deg; --y: 30px; animation-delay: 0s; }
.hero .fan .card:nth-child(2) { --r: -6deg;  --y: 4px;  animation-delay: .35s; }
.hero .fan .card:nth-child(3) { --r: 6deg;   --y: 4px;  animation-delay: .7s; }
.hero .fan .card:nth-child(4) { --r: 18deg;  --y: 30px; animation-delay: 1.05s; }
.hero .fan .card { animation: fan-breathe 7s ease-in-out infinite; }
@keyframes fan-breathe {
  0%, 100% { transform: rotate(var(--r)) translateY(var(--y)); }
  50% { transform: rotate(calc(var(--r) * 1.07)) translateY(calc(var(--y) - 4px)); }
}
@media (prefers-reduced-motion: reduce) { .hero .fan .card { animation: none; transform: rotate(var(--r)) translateY(var(--y)); } }


/* celular: cartão compacto com cara de bilhete (rótulo, picote tracejado com furos e canhoto com o contador) */
@media (max-width: 760px) {
  .tk-mini { padding: 9px 10px 0 16px !important; gap: 2px !important; }
  .tkm-label { font-size: 8.5px; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-muted); }
  .tkm-stub { position: relative; align-self: stretch; display: flex; align-items: center; justify-content: space-between; gap: 6px;
    margin: 7px -10px 0 -16px; padding: 7px 10px 8px 16px; border-top: 2px dashed #cfc5b0; background: rgba(21, 33, 43, .035); }
  .tkm-stub::before, .tkm-stub::after { content: ''; position: absolute; top: -8px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); }
  .tkm-stub::before { left: -7px; } .tkm-stub::after { right: -7px; }
  .tkm-stub .tkl-mini { margin-top: 0 !important; }
  .tkm-stub .tkm-lock, .tkm-stub .tkm-q { position: static !important; }
  .tk-mini::after { top: 9px !important; }
}
/* canhoto do cartão compacto: ícone + número de quem joga e de quem está na fila */
@media (max-width: 760px) {
  .tkc-row { display: inline-flex; align-items: center; gap: 6px; }
  .tkc { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px 6px; border-radius: 8px; color: #8a8578;
    background: rgba(21, 33, 43, .06); border: 1px solid rgba(21, 33, 43, .1); }
  .tkc svg { width: 14px; height: 14px; flex-shrink: 0; }
  .tkc b { font-family: var(--display); font-weight: 400; font-size: 17px; line-height: 1; }
  .tkc.play.on { color: #178a52; background: rgba(32, 168, 101, .13); border-color: rgba(32, 168, 101, .35); }
  .tkc.queue.on { color: #f4f0e6; background: #3c94be; border-color: #3c94be; animation: tkl-call 1.8s ease-in-out infinite; }
}

/* celular: cartão compacto centralizado; contadores numa moldura com legenda (jogando · na fila) */
@media (max-width: 760px) {
  .tk-mini { align-items: center !important; text-align: center !important; }
  .tkm-prize { text-align: center; }
  .tkm-stub { flex-direction: column !important; justify-content: center !important; align-items: center !important; gap: 5px !important; }
  .tkc-row { display: flex !important; flex-direction: column; align-items: stretch; gap: 4px !important; width: 100%;
    padding: 5px; border-radius: 10px; border: 1.5px solid rgba(21, 33, 43, .16); background: rgba(255, 255, 255, .45); }
  .tkc { justify-content: center; gap: 5px !important; padding: 3px 8px !important; }
  .tkc em { font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
}

/* contador de quem está jogando herda a cor da mesa (navegador e celular); mesa vazia fica na mesma cor, só mais apagada */
.tk-wrap .tkl-row { background: color-mix(in srgb, var(--acc) 12%, transparent) !important; border-color: color-mix(in srgb, var(--acc) 40%, transparent) !important; }
.tk-wrap .tkl-row b { color: color-mix(in srgb, var(--acc) 85%, #000) !important; }
.tk-wrap .tkl-row span { color: color-mix(in srgb, var(--acc) 55%, #000) !important; }
.tk-wrap .tk-livebox.zero .tkl-row { opacity: .55; }
@media (max-width: 760px) {
  .tk-mini .tkc.play { color: color-mix(in srgb, var(--acc) 85%, #000) !important; background: color-mix(in srgb, var(--acc) 13%, transparent) !important;
    border-color: color-mix(in srgb, var(--acc) 38%, transparent) !important; }
  .tk-mini .tkc.play:not(.on) { opacity: .55; }
}

/* lista de amigos: cada seção (pedidos, amigos, enviados) minimiza tocando no título */
.fp-sec.fp-tog { width: calc(100% - 12px); padding: 7px 8px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .05); cursor: pointer; font-family: inherit; text-align: left; transition: background .15s; }
.fp-sec.fp-tog:hover { background: rgba(255, 255, 255, .1); color: var(--text); }
.fp-sec.fp-tog:focus-visible { outline: 2px solid #8db4c6; outline-offset: 1px; }
.fp-chev { width: 7px; height: 7px; flex-shrink: 0; margin: 0 3px 2px 1px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s ease; }
.fp-group.closed .fp-chev { transform: rotate(-45deg); margin-bottom: 0; }
.fp-cnt { margin-left: auto; font-size: 10px; letter-spacing: .04em; color: #8db4c6; text-transform: none; font-weight: 800; }
.fp-sec.fp-tog em { margin-left: auto; }
.fp-sec.fp-tog em + .fp-hid, .fp-cnt + .fp-hid { margin-left: 6px; }
.fp-hid { font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: none; color: var(--muted); opacity: .8; }
.fp-group.closed > .fp-body { display: none; }
@media (max-width: 760px) { .fp-sec.fp-tog { padding: 10px 8px; } } /* área de toque maior no celular */

/* ---------- dupla fixa (lista de amigos) ---------- */
.duo-card { margin: 8px 6px 4px; padding: 10px 10px 9px; border-radius: 12px; border: 1.5px dashed rgba(141, 180, 198, .35); background: rgba(255, 255, 255, .04); }
.duo-card.on { border-style: solid; border-color: #8db4c6; background: linear-gradient(180deg, rgba(47, 116, 149, .35), rgba(25, 57, 80, .35)); box-shadow: 0 0 0 3px rgba(141, 180, 198, .12); }
.duo-card.wait { border-color: rgba(141, 180, 198, .6); }
.duo-card .dc-tag { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: #8db4c6; }
.duo-card .dc-tag svg { width: 16px; height: 16px; }
.duo-card .dc-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.duo-card .dc-row .fp-tx { flex: 1; min-width: 0; }
.duo-card .dc-note { margin: 7px 0 0; font-size: 11.5px; line-height: 1.4; color: var(--muted); }
.duo-card .dc-note b { color: var(--text); }
.duo-card .dc-kick { flex-shrink: 0; color: #f6efe0; background: transparent; border: 1.5px solid rgba(244, 240, 230, .35); }
.duo-card .dc-kick:hover { border-color: #ff9a90; color: #ff9a90; }

.fp-btn.duo { width: auto; display: inline-flex; align-items: center; gap: 4px; padding: 0 9px; font-size: 11px; font-weight: 800; color: #f6efe0; background: #2f7495; border-color: #8db4c6; }
.fp-btn.duo svg { width: 15px; height: 15px; }
.fp-btn.duo:hover { background: #3a86ab; }
.fp-btn.duo:disabled { opacity: .5; }
.fp-isduo { display: inline-grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; border-radius: 8px; color: #8db4c6; background: rgba(141, 180, 198, .14); }
.fp-isduo svg { width: 16px; height: 16px; }

/* botão de amigos do topo: avatarzinho da dupla no canto */
.frbtn { position: relative; }
.frbtn .fr-duo { position: absolute; top: -6px; left: -6px; width: 18px; height: 18px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px #8db4c6; pointer-events: none; }
.frbtn .fr-duo .avatar { width: 100%; height: 100%; }
@media (max-width: 760px) { .fp-btn.duo span { display: none; } .fp-btn.duo { padding: 0 7px; } }
