/* app.css — cliente de mesa (demo). Sem fontes nem imagens externas (só os selos locais em /img/variants). */
:root {
  --bg: #0d1117;
  --panel: #161b22;
  --panel-2: #1f2630;
  --line: #2d3540;
  --text: #e6edf3;
  --muted: #8b98a5;
  --accent: #2ea043;
  --accent-2: #3fb950;
  --danger: #f85149;
  --warn: #d29922;
  --felt: #0f5132;
  --felt-edge: #5b3a1e;
  --card: #fdfdfd;
  --red: #d1242f;
  --black: #1b1f24;
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 15px/1.4 var(--font); display: flex; flex-direction: column; }
code { background: var(--panel-2); padding: 1px 5px; border-radius: 4px; }
h1 { font-size: 1.4rem; margin: 0 0 .5rem; }
h2 { font-size: 1.05rem; margin: 0; }
.muted { color: var(--muted); }

/* ---------- topo ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; letter-spacing: .3px; }
.brand-suit { color: var(--accent-2); }
.brand-tag { font-size: .7rem; text-transform: uppercase; background: var(--panel-2); color: var(--muted); padding: 2px 6px; border-radius: 999px; margin-left: 4px; }
.topbar-right { display: flex; gap: 10px; align-items: center; }
.whoami { color: var(--muted); font-size: .9rem; }
main { flex: 1; padding: 16px; width: 100%; max-width: 1400px; margin: 0 auto; }

/* ---------- botões / formulários ---------- */
.btn { border: 1px solid var(--line); background: var(--panel-2); color: var(--text); padding: 8px 14px; border-radius: 8px; cursor: pointer; font: inherit; font-weight: 600; }
.btn:hover:not(:disabled) { border-color: var(--muted); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #fff); }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover, var(--accent-2)); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 5px 10px; font-size: .85rem; }
input, select { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
input:focus, select:focus, .btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 1px; }
label { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; color: var(--muted); }
.form-error { color: var(--danger); min-height: 1.2em; margin: 6px 0 0; font-size: .9rem; }
.card-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }

/* ---------- login ---------- */
.login { max-width: 400px; margin: 6vh auto 0; }

/* ---------- lobby ---------- */
.lobby-head { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 16px; margin-bottom: 12px; }
.lobby-head h1 { margin: 0 auto 0 0; }
.club-name { font-weight: 600; }
.union-tag { margin: 0 0 6px; font-size: .8rem; color: var(--warn); }
.balance { color: var(--accent-2); font-weight: 600; }
.table-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.table-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 10px; border-top: 4px solid var(--accent); }
.table-card.variant-omaha { border-top-color: #8957e5; }
.table-card.variant-omaha5 { border-top-color: #d2a8ff; }
.table-card header { display: flex; flex-direction: column; gap: 6px; }
.table-card dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0; font-size: .9rem; }
.table-card dt { color: var(--muted); }
.table-card dd { margin: 0; }
.badge { align-self: start; font-size: .75rem; padding: 2px 8px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); }
.badge-pl { color: #e3b341; }
.badge-nl { color: #79c0ff; }

/* ---------- mesa ---------- */
.table-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.table-title { display: flex; flex-direction: column; margin-right: auto; }
.table-title .muted { font-size: .85rem; }
.table-title .table-rake { font-size: .8rem; color: var(--warn); }
.conn-status { font-size: .8rem; padding: 3px 9px; border-radius: 999px; background: var(--panel-2); color: var(--muted); }
.conn-status[data-status="open"] { color: var(--accent-2); }
.conn-status[data-status="reconnecting"], .conn-status[data-status="connecting"] { color: var(--warn); }
.conn-status[data-status="failed"], .conn-status[data-status="replaced"] { color: var(--danger); }

.table-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; }
.felt-wrap { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.felt {
  position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 330px;
  background: radial-gradient(ellipse at center, #198754 0%, var(--felt) 70%);
  border: 14px solid var(--felt-edge); border-radius: 50% / 50%;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, .55), 0 10px 30px rgba(0, 0, 0, .4);
}
.felt-center { position: absolute; left: 50%; top: 47%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.board { display: flex; gap: 5px; }
.pot { font-weight: 700; background: rgba(0, 0, 0, .35); padding: 3px 12px; border-radius: 999px; min-height: 1.5em; }
.pot:empty { visibility: hidden; }
.hand-info { font-size: .8rem; color: #cfe8d9; }

.seat { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 3px; z-index: 2; width: 130px; }
.seat-cards { display: flex; gap: 2px; min-height: 10px; justify-content: center; }
.seat-box { background: rgba(13, 17, 23, .92); border: 2px solid var(--line); border-radius: 10px; padding: 4px 10px; text-align: center; min-width: 104px; position: relative; overflow: hidden; }
.seat-name { font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.seat-stack { font-weight: 700; color: #ffd866; }
.seat-status { font-size: .7rem; text-transform: uppercase; color: var(--muted); }
.seat-hand { font-size: .72rem; color: #a5d6ff; }
.seat.mine .seat-box { border-color: #388bfd; }
.seat.to-act .seat-box { border-color: #ffd866; box-shadow: 0 0 12px rgba(255, 216, 102, .55); }
.seat.winner .seat-box { border-color: var(--accent-2); box-shadow: 0 0 14px rgba(63, 185, 80, .8); }
.seat.folded .seat-box { opacity: .55; }
.seat.folded.mine .seat-cards { opacity: .45; }
.seat-timer { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; display: none; }
.seat.to-act .seat-timer { display: block; }
.seat-timer-fill { height: 100%; background: #ffd866; transform-origin: left; transition-property: transform; transition-timing-function: linear; }
.seat.empty { width: auto; }
.btn-seat { background: rgba(13, 17, 23, .7); border: 1px dashed var(--muted); font-size: .8rem; }
.seat-free { font-size: .75rem; color: #cfe8d9; opacity: .7; }
.bet-chip { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); z-index: 1; background: #ffd866; color: #1b1f24; font-weight: 700; font-size: .8rem; padding: 1px 8px; border-radius: 999px; border: 2px dashed #8a6d00; }
.dealer-btn { position: absolute; left: calc(50% + 50px); bottom: 30px; z-index: 3; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: #111; font-weight: 800; font-size: .75rem; display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0, 0, 0, .6); }

/* ---------- cartas ---------- */
.card { width: 46px; height: 66px; border-radius: 6px; position: relative; flex: none; user-select: none; }
.card.small { width: 30px; height: 43px; border-radius: 4px; }
.card.face { background: var(--card); color: var(--black); box-shadow: 0 1px 3px rgba(0, 0, 0, .5); border: 1px solid #c9ced6; }
.card.face.red { color: var(--red); }
.card-rank { position: absolute; left: 4px; top: 2px; font-weight: 800; font-size: 1rem; line-height: 1; }
.card-suit { position: absolute; left: 4px; top: 18px; font-size: .85rem; line-height: 1; }
.card-pip { position: absolute; right: 4px; bottom: 2px; font-size: 1.6rem; line-height: 1; }
.card.small .card-rank { font-size: .78rem; left: 3px; top: 2px; }
.card.small .card-suit { font-size: .65rem; left: 3px; top: 14px; }
.card.small .card-pip { font-size: 1rem; right: 2px; bottom: 1px; }
.card.back { background: repeating-linear-gradient(45deg, #1f4e8c 0 4px, #2a62ad 4px 8px); border: 2px solid #f0f3f6; box-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.card.slot { border: 1px dashed rgba(255, 255, 255, .25); }
.card.win { outline: 2px solid var(--accent-2); }
.seat.mine .seat-cards .card.face { width: 46px; height: 66px; }
.seat-cards.four .card.small { margin-left: -8px; }
.seat-cards.four .card.small:first-child { margin-left: 0; }
.seat.mine .seat-cards.four .card { margin-left: -12px; }
.seat.mine .seat-cards.four .card:first-child { margin-left: 0; }
.seat-cards.five .card.small { margin-left: -12px; }
.seat.mine .seat-cards.five .card { margin-left: -18px; }
.seat-cards.five .card.small:first-child, .seat.mine .seat-cards.five .card:first-child { margin-left: 0; }

/* ---------- barra de ação ---------- */
.action-bar { background: var(--panel); border: 1px solid #ffd866; border-radius: var(--radius); padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.turn-timer { height: 5px; background: var(--panel-2); border-radius: 3px; overflow: hidden; }
.turn-timer-fill { height: 100%; background: var(--accent-2); transform-origin: left; }
.turn-timer-fill.low { background: var(--danger); }
.action-info { font-weight: 600; }
.raise-controls { display: grid; grid-template-columns: 1fr 110px; gap: 6px 10px; align-items: center; }
.raise-controls input[type="range"] { width: 100%; padding: 0; }
.raise-presets { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.raise-limits { grid-column: 1 / -1; font-size: .82rem; }
.action-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-action { flex: 1 1 120px; padding: 12px; font-size: 1rem; }
.btn-fold { background: #3d1d20; border-color: #6e2b30; }
.btn-check, .btn-call { background: #1d3557; border-color: #2c5282; }
.btn-bet, .btn-raise { background: #6b4e00; border-color: #9e7700; }

.player-controls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.topup { display: inline-flex; gap: 4px; }
.topup input { width: 110px; padding: 5px 8px; }
.offer { display: flex; gap: 10px; align-items: center; background: #3a2d00; border: 1px solid #9e7700; padding: 8px 12px; border-radius: var(--radius); }

/* ---------- lateral: log e chat ---------- */
.side { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; min-height: 0; max-height: 78vh; }
.tabs { display: flex; border-bottom: 1px solid var(--line); }
.tab { flex: 1; background: none; border: 0; color: var(--muted); padding: 9px; cursor: pointer; font: inherit; font-weight: 600; border-bottom: 2px solid transparent; }
.tab.active { color: var(--text); border-bottom-color: var(--accent-2); }
.tab.unread::after { content: " •"; color: var(--warn); }
.log, .chat-list { list-style: none; margin: 0; padding: 8px 10px; overflow-y: auto; flex: 1; font-size: .82rem; display: flex; flex-direction: column; gap: 3px; min-height: 200px; }
.log li { color: #c9d1d9; overflow-wrap: anywhere; }
.log-hand { color: #ffd866 !important; margin-top: 6px; font-weight: 600; }
.log-board { color: #a5d6ff !important; }
.log-win { color: var(--accent-2) !important; font-weight: 600; }
.log-show { color: #d2a8ff !important; }
.log-err { color: var(--danger) !important; }
.log-sys { color: var(--muted) !important; }
.log-me { color: #79c0ff !important; }
.chat { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.chat-list li { overflow-wrap: anywhere; }
.chat-list li.mine strong { color: #79c0ff; }
.chat-form { display: flex; gap: 6px; padding: 8px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; }

/* ---------- diálogo / toasts ---------- */
.dialog { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; width: min(380px, 92vw); }
.dialog::backdrop { background: rgba(0, 0, 0, .6); }
.dialog form { display: flex; flex-direction: column; gap: 10px; }
.dialog input[type="range"] { padding: 0; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
.toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 50; max-width: min(420px, calc(100vw - 32px)); }
.toast { background: var(--panel-2); border: 1px solid var(--line); border-left: 4px solid #388bfd; padding: 10px 14px; border-radius: 8px; box-shadow: 0 6px 20px rgba(0, 0, 0, .5); transition: opacity .3s; overflow-wrap: anywhere; }
.toast-error { border-left-color: var(--danger); }
.toast.leaving { opacity: 0; }

/* ---------- responsivo ---------- */
@media (max-width: 980px) {
  .table-layout { grid-template-columns: 1fr; }
  .side { max-height: 320px; }
}
@media (max-width: 640px) {
  main { padding: 10px; }
  .felt { aspect-ratio: 3 / 4; min-height: 420px; border-width: 9px; border-radius: 45% / 30%; }
  .seat { width: 96px; }
  .seat-box { min-width: 80px; padding: 3px 6px; }
  .seat-name { font-size: .72rem; max-width: 88px; }
  .dealer-btn { left: calc(50% + 38px); bottom: 28px; width: 20px; height: 20px; font-size: .65rem; }
  .card { width: 36px; height: 52px; }
  .card.small { width: 22px; height: 32px; }
  .card.small .card-pip { display: none; }
  .seat.mine .seat-cards .card.face { width: 38px; height: 54px; }
  .card-pip { font-size: 1.2rem; }
  .btn-action { padding: 14px 8px; }
}

/* ---------- entrada pelo site do club (launch) ---------- */
a { color: var(--accent-2); }
.auth-links { margin: 14px 0 0; font-size: .9rem; color: var(--muted); }

/* ---------- foto de perfil (avatarUrl do parceiro) ou iniciais ---------- */
.avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; border-radius: 50%;
  overflow: hidden; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); font-size: .8rem; font-weight: 700; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-sm { width: 26px; height: 26px; font-size: .68rem; }
.avatar-seat { margin: 2px auto 2px; }
.avatar-initials { letter-spacing: .02em; }

/* ---------- torneios ---------- */
.section-title { margin: 22px 0 10px; }
.badge-registering { background: var(--accent); color: #fff; }
.badge-running { background: var(--warn); color: #111; }
.badge-finished, .badge-cancelled, .badge-interrupted { background: var(--panel-2); color: var(--muted); }
.tournament-view .card-panel { margin-top: 12px; }
.info-grid { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 14px; }
.info-grid dt { color: var(--muted); }
.info-grid dd { margin: 0; }
.tournament-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.levels { border-collapse: collapse; width: 100%; max-width: 520px; font-size: .9rem; }
.levels th, .levels td { text-align: left; padding: 4px 8px; border-bottom: 1px solid var(--line); }
.tournament-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 10px; padding: 8px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.tournament-result { margin: 0 0 12px; border-color: var(--accent); }
.tournament-result ol { margin: 8px 0 12px; padding-left: 22px; }
.offer-count { font-variant-numeric: tabular-nums; color: var(--warn); margin: 0 6px; }

/* ---------- selos das variantes (img/variants; atribuição no rodapé) ---------- */
.variant-logo { width: 48px; height: 48px; flex: none; border-radius: 10px; object-fit: contain; }
.variant-logo-head { width: 44px; height: 44px; }
.table-card header { flex-direction: row; align-items: center; gap: 10px; }
.table-card-title { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

/* ---------- carteira e histórico (últimas 48 h) ---------- */
.lobby-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; margin-top: 22px; }
.wallet { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.wallet .section-title { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.window-tag { font-size: .72rem; font-weight: 600; color: var(--warn); border: 1px solid var(--warn); border-radius: 999px; padding: 1px 8px; }
.wallet-note { margin: 0; font-size: .85rem; }
.tx-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 420px; overflow-y: auto; }
.tx-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; background: var(--panel-2); border-radius: 8px; flex-wrap: wrap; }
.tx-main { display: flex; flex-direction: column; min-width: 0; }
.tx-where, .tx-date, .tx-ref { font-size: .78rem; }
.tx-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.tx-amount { font-weight: 700; font-variant-numeric: tabular-nums; }
.tx-credit .tx-amount, .hand-won .tx-amount { color: var(--accent-2); }
.tx-debit .tx-amount, .hand-lost .tx-amount { color: #ff9b94; }
.tx-status-pending .tx-status { color: var(--warn); }
.tx-status-failed .tx-status { color: var(--danger); }
.tx-status-failed .tx-amount { text-decoration: line-through; }
.hand-board { display: flex; gap: 2px; }
.wallet > .btn { align-self: center; }

/* ---------- créditos ---------- */
.credits { padding: 10px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; text-align: center; }
.credits p { margin: 0 auto; max-width: 900px; }

/* ---------- Omaha 5 Cartas: as 5 cartas próprias cabem sobre o assento ---------- */
.seat.mine:has(.seat-cards.five) { width: 170px; }
@media (max-width: 640px) {
  .seat.mine .seat-cards.five .card { margin-left: -16px; }
  .seat.mine:has(.seat-cards.five) { width: 140px; }
}

/* ---------- tema do launch (data-theme no <html>; ui.js) ----------
   --accent: fundo de botão/aba ativa com TEXTO BRANCO, escurecido até ≥ 4,5:1 com o branco
   (red #CD4335 4,7:1 · blue #287CB3 4,5:1 · orange #AF601A 4,7:1 · purple #8E44AD 5,9:1);
   --accent-2: a cor do tema clareada até ≥ 4,5:1 sobre os painéis (texto/realce); --brand: a cor
   exata (logomarca, filetes). Mesmos valores do Theme.cs do cliente Unity. */
html[data-theme="red"] { --accent: #CD4335; --accent-hover: #B83C2F; --accent-2: #EC7366; --brand: #E74C3C; --on-accent: #fff; }
html[data-theme="blue"] { --accent: #287CB3; --accent-hover: #236C9C; --accent-2: #579CC8; --brand: #2980B9; --on-accent: #fff; }
html[data-theme="orange"] { --accent: #AF601A; --accent-hover: #985316; --accent-2: #E67E22; --brand: #E67E22; --on-accent: #fff; }
html[data-theme="purple"] { --accent: #8E44AD; --accent-hover: #7A3A95; --accent-2: #B483C8; --brand: #9F60B9; --on-accent: #fff; }
.brand-accent { color: var(--brand, var(--accent-2)); }
.brand-suit { color: var(--brand, var(--accent-2)); }
html[data-theme] .topbar { border-bottom: 2px solid var(--brand); }
/* showLogo=false e aviso de deslogado: sem a logomarca ThePokerBrasil */
html[data-logo="off"] #brand-logo, body.logged-out #brand-logo { display: none; }

/* ---------- barra de navegação inferior (lobby) ---------- */
body.has-nav main { padding-bottom: 96px; }
body.has-nav .credits { padding-bottom: 86px; }
body.has-nav .toasts { bottom: 92px; }
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; justify-content: center; gap: 6px;
  padding: 6px max(10px, env(safe-area-inset-left)) calc(6px + env(safe-area-inset-bottom)); background: var(--panel); border-top: 1px solid var(--line); }
.bottom-nav button { flex: 1 1 0; max-width: 200px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 4px;
  background: transparent; border: 0; border-radius: 14px; color: var(--muted); font: inherit; font-size: .78rem; cursor: pointer; }
.bottom-nav svg { width: 26px; height: 26px; }
.bottom-nav button.active { background: var(--accent); color: var(--on-accent, #fff); font-weight: 700; }
.bottom-nav button:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 1px; }

/* ---------- abas de modalidade ---------- */
.variant-tabs { display: flex; gap: 8px; margin: 0 0 12px; flex-wrap: wrap; }
.variant-tab { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; flex: 1 1 160px; max-width: 280px;
  background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 12px; font: inherit; font-weight: 600; cursor: pointer; }
.variant-tab.active { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #fff); }
.variant-tab-logo { width: 36px; height: 36px; border-radius: 8px; object-fit: contain; flex: none; }
.variant-tab-label { flex: 1; text-align: left; }
.variant-tab-count { min-width: 28px; padding: 1px 8px; border-radius: 999px; background: var(--panel-2); color: var(--text); font-size: .8rem; text-align: center; }
.variant-tab.active .variant-tab-count { background: rgba(0, 0, 0, .25); color: var(--on-accent, #fff); }

/* ---------- perfil ---------- */
.profile { display: flex; align-items: center; gap: 14px; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.1rem; }
.profile-main { display: flex; flex-direction: column; gap: 2px; }
.profile-actions { display: flex; gap: 10px; margin-top: 12px; }
.profile-seed { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.seed-row { display: flex; gap: 8px; flex-wrap: wrap; }
.seed-row input { flex: 1 1 220px; min-width: 0; font-family: ui-monospace, monospace; font-size: .85rem; }
.verify-checks li.warn { color: var(--warn); }

/* ---------- aviso do parceiro / deslogado ---------- */
.partner-box { background: var(--panel-2); border-left: 4px solid var(--warn); border-radius: 8px; padding: 10px 14px; margin: 0 0 14px; }
.partner-box-title { color: var(--warn); font-size: .85rem; }
.partner-box-text, .partner-text { margin: 6px 0 0; font-weight: 600; white-space: pre-wrap; overflow-wrap: anywhere; }
.logged-out h1 { font-size: 1.25rem; }
.partner-dialog { width: min(460px, 92vw); }

/* ---------- replay (cartas desenhadas) ---------- */
.replay-dialog { width: min(640px, 94vw); }
.replay-board { display: flex; gap: 6px; justify-content: center; min-height: 66px; }
.replay-players, .replay-actions { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.replay-actions { max-height: 200px; overflow-y: auto; font-size: .85rem; color: var(--muted); }
.replay-player { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px; background: var(--panel-2); border-radius: 8px; }
.replay-player.won { outline: 1px solid var(--accent-2); }
.replay-cards { display: flex; gap: 3px; }
.log-cards { display: inline-flex; gap: 2px; vertical-align: middle; margin-left: 4px; }
.hand-row .btn { padding: 3px 10px; }

/* ---------- logo do club (ui.clubImageUrl): no lugar da ThePokerBrasil, contain, sem tinta do tema ---------- */
.club-logo { display: block; height: 40px; width: 160px; object-fit: contain; object-position: left center; }
html[data-club-logo="on"] #brand-logo { display: none; }
body.logged-out .club-logo { display: none; }
@media (max-width: 640px) { .club-logo { height: 34px; width: 136px; } }
/* ---- Verificar mão (embaralhamento verificável, verify.js) ---- */
.verify-dialog { width: min(560px, 94vw); }
.verify-body { display: flex; flex-direction: column; gap: 8px; max-height: 70vh; overflow-y: auto; }
.verify-ok { color: #4ade80; font-weight: 600; }
.verify-fail { color: #f87171; font-weight: 600; }
.verify-checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.verify-checks .ok { color: #4ade80; }
.verify-checks .fail { color: #f87171; }
.verify-row { display: flex; flex-direction: column; gap: 2px; }
.verify-val { word-break: break-all; font-size: 12px; }
.verify-deck { display: flex; flex-wrap: wrap; gap: 3px; }
