/* BondPoker — sala escura de cassino, feltro esmeralda, latão como acento.
   Layout: lobby em coluna única; mesa ocupa a tela com barra de ação fixa embaixo. */
/* BondPoker na identidade BondLabs: lobby claro em papel creme, mesa em verde #0D3B2E
   com detalhes em ouro. Títulos com serifa (como os cards do site), números condensados. */
:root {
  /* lobby (claro) */
  --ink: #f5f1e7;
  --ink-2: #ffffff;
  --ink-3: #efe9da;
  --line: #e2d9c4;
  --text: #10261e;
  --muted: #6a756e;
  --brass: #b8892f;
  --brass-2: #8c6619;
  --live: #1d7a57;
  --bond: #0d3b2e;
  --bond-2: #164f3d;
  /* mesa */
  --felt: #17634a;
  --felt-dark: #0d3b2e;
  --rail: #061611;
  --fold: #b8433b;
  --call: #1f7a55;
  --raise: #d4ab52;
  --spade: #16201b;
  --heart: #cf3434;
  --diamond: #2a6ad0;
  --club: #1b8048;
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
.game, .dark {
  --ink: #061a14;
  --ink-2: #0b2a20;
  --ink-3: #113829;
  --line: #1e4a3a;
  --text: #eef0e8;
  --muted: #8ea698;
  --brass: #d4ab52;
  --brass-2: #f0d58e;
  --live: #5bd6a8;
  color-scheme: dark;
  color: var(--text);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--text); font: 15px/1.45 var(--body);
  -webkit-tap-highlight-color: transparent; overscroll-behavior: none;
}
button { font: inherit; color: inherit; cursor: pointer; }
input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- casca / lobby ---------- */
.shell {
  max-width: 920px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: calc(env(safe-area-inset-top, 0px) + 18px) calc(env(safe-area-inset-bottom, 0px) + 32px);
  display: grid; gap: 22px;
}
.brand { display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.logo { font: 400 30px/1 var(--serif); display: flex; align-items: center; gap: 12px; color: var(--bond); }
.logo .chip { width: 40px; height: 40px; flex: none; }
.logo small { display: block; font: 600 11px var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); margin-top: 4px; }
.who { color: var(--muted); font-size: 14px; display: flex; gap: 8px; align-items: center; }
.who strong { color: var(--text); }
.linkbtn { background: none; border: 0; color: var(--brass); padding: 4px; text-decoration: underline; text-underline-offset: 3px; }

.hero-strip {
  position: relative; border-radius: 18px; overflow: hidden; background: var(--bond); color: #f3efe4;
  padding: 26px 24px; display: grid; gap: 8px;
}
.hero-strip > * { position: relative; }
.hero-strip::before, .hero-strip::after { content: ""; position: absolute; border-radius: 50%; border: 1.5px solid rgba(212, 171, 82, 0.28); }
.hero-strip::before { width: 260px; height: 260px; right: -60px; top: -120px; }
.hero-strip::after { width: 120px; height: 120px; left: -40px; bottom: -70px; }
.hero-strip .eyebrow { font: 700 12px var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: #d4ab52; }
.hero-strip h1 { margin: 0; font: 400 clamp(26px, 4vw, 36px)/1.1 var(--serif); text-wrap: balance; max-width: 22ch; }
.hero-strip p { margin: 0; color: #cfe0d6; max-width: 58ch; }
.hero-strip .row { margin-top: 8px; }

.tabs { display: flex; gap: 6px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; padding: 4px; width: fit-content; }
.tabs button { border: 0; background: none; padding: 8px 16px; border-radius: 9px; font: 600 15px var(--display); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.tabs button[aria-pressed="true"] { background: var(--bond); color: #f3efe4; }

.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.spacer { flex: 1; }

.btn {
  border: 1px solid var(--line); background: var(--ink-3); border-radius: 10px;
  padding: 10px 16px; font: 700 15px var(--display); letter-spacing: 0.05em; text-transform: uppercase;
}
.btn:hover { border-color: #3a4a64; }
.btn.gold { background: linear-gradient(180deg, #e9c877, #d0a54a); color: #241804; border-color: #b8923c; }
.btn.green { background: var(--bond); color: #f3efe4; border-color: var(--bond); }
.btn.ghost { background: transparent; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.list { display: grid; gap: 8px; }
.room {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
.room .buy { font: 800 24px/1 var(--display); color: var(--bond); text-align: center; }
.room .buy small { display: block; font: 600 11px var(--body); color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 4px; }
.room .title { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room .meta { color: var(--muted); font-size: 13px; display: flex; gap: 10px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 5px; font: 600 11px var(--body); letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
.pill.open { color: var(--live); border-color: currentColor; }
.pill.run { color: var(--brass-2); border-color: var(--brass); }
.pill.done { color: var(--muted); }
.empty { color: var(--muted); padding: 22px; text-align: center; border: 1px dashed var(--line); border-radius: 12px; }

.panel { background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: grid; gap: 16px; }
.panel h2 { margin: 0; font: 400 26px/1.15 var(--serif); color: var(--text); }
.field { display: grid; gap: 6px; }
.field > span { font: 600 12px var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button { border: 1px solid var(--line); background: var(--ink); border-radius: 9px; padding: 8px 14px; font-weight: 600; min-width: 52px; }
.seg button[aria-pressed="true"] { border-color: var(--bond); color: #f3efe4; background: var(--bond); }
.text { background: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; }

.modal-bg { position: fixed; inset: 0; background: rgba(4, 18, 13, 0.6); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal-bg .panel { width: min(460px, 100%); max-height: 90vh; overflow: auto; }

.wait { display: grid; gap: 14px; }
.names { display: flex; flex-wrap: wrap; gap: 6px; }
.names span { background: var(--ink-3); border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; font-size: 14px; }
.share { display: flex; gap: 8px; align-items: center; background: var(--ink); border: 1px dashed var(--line); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.share code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--brass-2); user-select: all; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.kv div { background: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.kv small { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; }
.kv b { font: 700 20px var(--display); }

/* ---------- mesa ---------- */
.game { position: fixed; inset: 0; height: 100%; height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: radial-gradient(130% 90% at 50% 40%, #0f3326 0%, var(--ink) 72%); }
.topbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: calc(env(safe-area-inset-top, 0px) + 8px) max(12px, env(safe-area-inset-right, 0px)) 8px max(12px, env(safe-area-inset-left, 0px));
  background: rgba(6, 26, 20, 0.92); border-bottom: 1px solid var(--line); font-size: 13px;
}
.topbar .back { border: 1px solid var(--line); background: var(--ink-2); border-radius: 8px; padding: 6px 10px; font-weight: 600; }
.topbar .tname { font: 400 18px var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; max-width: 40vw; }
.stat { display: grid; line-height: 1.1; }
.stat small { color: var(--muted); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.stat b { font: 700 15px var(--display); }
.stat b.gold { color: var(--brass); }

.stage { position: relative; min-height: 0; display: grid; place-items: center; padding: 10px; overflow: hidden; }
.tablebox { position: relative; width: min(100%, calc((100vh - 230px) * 1.75)); aspect-ratio: 1.75; max-width: 1100px; }
.tablebox.portrait { width: min(100%, calc((100vh - 250px) * 0.68)); aspect-ratio: 0.68; }
.felt {
  position: absolute; inset: 9% 7%; border-radius: 999px;
  background: radial-gradient(70% 70% at 50% 45%, #1f7a5a 0%, var(--felt) 45%, var(--felt-dark) 100%);
  box-shadow: 0 0 0 1.5px rgba(212, 171, 82, 0.55), 0 0 0 11px var(--rail), 0 0 0 12.5px rgba(212, 171, 82, 0.45), 0 18px 50px rgba(0, 0, 0, 0.6), inset 0 0 60px rgba(0, 0, 0, 0.45);
}
.portrait .felt { inset: 8% 10%; }
.felt::after { content: "BondPoker"; position: absolute; left: 50%; top: 68%; transform: translate(-50%, -50%); font: 400 clamp(18px, 3.6vw, 40px) var(--serif); color: rgba(240, 213, 142, 0.13); pointer-events: none; white-space: nowrap; }
.felt::before { content: "♠"; position: absolute; left: 50%; top: 22%; transform: translate(-50%, -50%); font-size: clamp(18px, 3vw, 34px); color: rgba(240, 213, 142, 0.12); pointer-events: none; }
.center { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 8px; width: 80%; }
.potlabel { font: 700 clamp(12px, 1.6vw, 17px) var(--display); color: #f6e7b5; background: rgba(0, 0, 0, 0.35); padding: 3px 12px; border-radius: 99px; }
.board { display: flex; gap: 0.6%; justify-content: center; min-height: 1px; }

.card {
  --w: clamp(30px, 5.2vw, 62px);
  width: var(--w); height: calc(var(--w) * 1.4); border-radius: calc(var(--w) * 0.12);
  background: #fbfaf6; color: var(--spade); position: relative; display: grid; align-content: start;
  padding: calc(var(--w) * 0.06) calc(var(--w) * 0.1); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  font-family: var(--display); font-weight: 800;
}
.board .card { --w: clamp(34px, 5.6vw, 66px); }
.portrait .board .card { --w: clamp(34px, 12.5vw, 60px); }
.card .r { font-size: calc(var(--w) * 0.52); line-height: 1; }
.card .s { font-size: calc(var(--w) * 0.42); line-height: 1; margin-top: 2%; }
.card.anim { animation: deal 0.25s ease-out both; }
.card.h { color: var(--heart); } .card.d { color: var(--diamond); } .card.c { color: var(--club); }
.card.back { background: radial-gradient(circle at 50% 50%, transparent 0 28%, rgba(212,171,82,.35) 29% 31%, transparent 32%), repeating-linear-gradient(45deg, #0d3b2e 0 4px, #134a3a 4px 8px); border: 2px solid #e9dcb6; }
.card.dim { filter: brightness(0.55); }
.card.hi { box-shadow: 0 0 0 2px var(--brass-2), 0 0 14px rgba(240, 213, 142, 0.7); transform: translateY(-4%); }
@keyframes deal { from { opacity: 0; transform: translateY(-12px) scale(0.92); } to { opacity: 1; transform: none; } }

.seat { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; width: 17%; min-width: 86px; z-index: 2; }
.portrait .seat { width: 27%; min-width: 0; }
.seat .hole { display: flex; gap: 2px; margin-bottom: -18%; z-index: 1; }
.seat:not(.me) .hole { margin-bottom: -12%; }
/* cartas pequenas dos adversários: valor e naipe lado a lado (K♠), sempre visíveis acima da placa */
.seat:not(.me) .hole .card { display: flex; align-items: baseline; gap: 1px; padding: calc(var(--w) * 0.05) calc(var(--w) * 0.08); }
.seat:not(.me) .hole .card .r { font-size: calc(var(--w) * 0.5); letter-spacing: -0.04em; }
.seat:not(.me) .hole .card .s { font-size: calc(var(--w) * 0.42); margin-top: 0; }
.seat:not(.me) .hole .card.ten .r { font-size: calc(var(--w) * 0.4); }
.seat:not(.me) .hole .card.ten .s { font-size: calc(var(--w) * 0.34); }
.seat.me .hole .card { --w: clamp(38px, 6vw, 70px); }
.portrait .seat.me .hole .card { --w: clamp(40px, 13vw, 64px); }
.seat .hole .card { --w: clamp(26px, 3.8vw, 46px); }
.portrait .seat .hole .card { --w: clamp(22px, 7vw, 36px); }
.seat.folded .hole { opacity: 0.25; }
.plate {
  position: relative; z-index: 2; width: 100%; background: linear-gradient(180deg, #123a2d, #0a241b);
  border: 1.5px solid #24543f; border-radius: 12px; padding: 5px 8px 6px; text-align: center;
}
.plate .nm { font-weight: 600; font-size: clamp(11px, 1.25vw, 14px); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plate .st { font: 700 clamp(13px, 1.5vw, 18px) var(--display); color: #f0d58e; }
.seat.me .plate { border-color: var(--brass); }
.seat.me .plate .nm { color: var(--brass-2); }
.seat.turn .plate { border-color: var(--live); box-shadow: 0 0 0 2px rgba(79, 209, 165, 0.35), 0 0 18px rgba(79, 209, 165, 0.35); }
.seat.away .plate { opacity: 0.6; }
.timer { position: absolute; left: 6px; bottom: 2px; height: 3px; max-width: calc(100% - 12px); border-radius: 2px; background: var(--live); transition: width 0.25s linear; }
.timer.low { background: var(--fold); }
.tag { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); z-index: 3; font: 700 11px var(--display); letter-spacing: 0.06em; text-transform: uppercase; padding: 1px 8px; border-radius: 99px; background: var(--ink-3); border: 1px solid var(--line); white-space: nowrap; }
.tag.Fold { color: #f19b94; } .tag.Raise, .tag.Bet { color: var(--brass-2); } .tag.All-in { background: var(--fold); color: #fff; border-color: var(--fold); }
.tag.Call, .tag.Check { color: #9fe6c7; }
.tag.win { background: var(--brass); color: #2a1d05; border-color: var(--brass); }
.handname { font-size: 11px; line-height: 1.25; color: #f6e7b5; margin-top: 3px; text-align: center; text-wrap: balance; }
.dealer { position: absolute; width: clamp(16px, 2vw, 24px); height: clamp(16px, 2vw, 24px); border-radius: 50%; background: #fff4d0; color: #3d2a05; font: 800 clamp(10px, 1.2vw, 13px)/1 var(--display); display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.5); transform: translate(-50%, -50%); z-index: 3; }
.betchip { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 4px; font: 700 clamp(11px, 1.3vw, 15px) var(--display); color: #fff; background: rgba(0,0,0,.35); padding: 1px 8px 1px 2px; border-radius: 99px; z-index: 2; white-space: nowrap; }
.betchip i { width: 14px; height: 14px; border-radius: 50%; background: conic-gradient(var(--brass) 0 25%, #fff 0 50%, var(--brass) 0 75%, #fff 0); border: 2px solid #7a5c1a; }
.emptyseat { position: absolute; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; border: 1.5px dashed rgba(255,255,255,.12); }

/* barra de ação */
.actionbar {
  background: rgba(6, 26, 20, 0.97); border-top: 1px solid var(--line);
  padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 10px) max(12px, env(safe-area-inset-left, 0px));
  display: grid; gap: 8px; min-height: 76px;
}
.acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 760px; width: 100%; margin: 0 auto; }
.acts .a { border: 0; border-radius: 10px; padding: 12px 6px; font: 800 17px/1.05 var(--display); letter-spacing: 0.03em; text-transform: uppercase; color: #fff; }
.acts .a small { display: block; font-size: 15px; opacity: 0.9; }
.a.fold { background: var(--fold); } .a.call { background: var(--call); } .a.raise { background: var(--raise); color: #241602; }
.sizing { display: grid; grid-template-columns: auto minmax(0, 1fr) 92px; gap: 10px; align-items: center; max-width: 760px; width: 100%; margin: 0 auto; }
.presets { display: flex; gap: 4px; }
.presets button { border: 1px solid var(--line); background: var(--ink-3); border-radius: 7px; padding: 5px 8px; font: 700 12px var(--display); }
.sizing input[type="range"] { width: 100%; accent-color: var(--brass); }
.sizing input[type="number"] { width: 100%; background: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; text-align: right; }
.waitmsg { color: var(--muted); text-align: center; align-self: center; font-size: 14px; }
.banner { max-width: 760px; margin: 0 auto; width: 100%; display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; text-align: center; }

.logbtn { position: absolute; right: max(10px, env(safe-area-inset-right, 0px)); bottom: 10px; z-index: 5; border: 1px solid var(--line); background: var(--ink-2); border-radius: 8px; padding: 6px 10px; font-size: 13px; }
.log { position: absolute; right: max(10px, env(safe-area-inset-right, 0px)); bottom: 46px; width: min(340px, calc(100% - 20px)); max-height: 46%; overflow: auto; background: rgba(6,26,20,.96); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; z-index: 6; display: grid; gap: 3px; }
.log div:first-child { color: var(--muted); }
.tablesel { position: absolute; left: max(10px, env(safe-area-inset-left, 0px)); bottom: 10px; z-index: 5; }
.tablesel select { background: var(--ink-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }

.results table { width: 100%; border-collapse: collapse; }
.results td, .results th { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.results th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; }
.results td.r { text-align: right; }
.results .first td { color: var(--brass-2); font-weight: 700; }
.settle { display: grid; gap: 6px; }
.settle div { background: var(--ink); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; }
.note { color: var(--muted); font-size: 13px; }

#toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 100px); transform: translateX(-50%); background: var(--ink-3); border: 1px solid var(--brass); border-radius: 10px; padding: 10px 16px; z-index: 99; max-width: calc(100% - 32px); }

@media (max-width: 560px) {
  .topbar .hide-sm { display: none; }
  .sizing { grid-template-columns: minmax(0, 1fr) 84px; }
  .presets { grid-column: 1 / -1; justify-content: space-between; }
  .presets button { flex: 1; }
  .room { grid-template-columns: 52px minmax(0, 1fr); }
  .room .go { grid-column: 1 / -1; }
  .room .go .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .card { animation: none; } .timer { transition: none; } }

.modebadge { font: 700 11px var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--bond); background: #e7dfc9; padding: 4px 10px; border-radius: 99px; }
.dark .settle div, .dark .kv div { background: var(--ink); }

/* selo do tipo de bot na placa */
.bottag { position: absolute; bottom: -7px; right: 6px; z-index: 3; font: 700 9px var(--display); letter-spacing: 0.06em; text-transform: uppercase; padding: 0 5px; border-radius: 4px; background: #24543f; color: #cfe0d6; }
.bottag.padson { background: #6b1f2a; color: #ffd9de; }
.bottag.gto { background: #1d4b7a; color: #d9eaff; }
.bottag.bond { background: #7a5c1a; color: #fff1cc; }

/* BondCoach */
.coachbtn { position: absolute; right: max(10px, env(safe-area-inset-right, 0px)); bottom: 48px; z-index: 5; border: 1px solid var(--brass); background: var(--ink-2); color: var(--brass-2); border-radius: 8px; padding: 6px 10px; font-size: 13px; font-weight: 600; }
.coachbg { z-index: 60; }
.panel.coach { width: min(640px, 100%); }
.panel.coach .tabs button[aria-pressed="true"] { background: var(--ink-3); color: var(--text); }
.leak { background: var(--ink); border: 1px solid var(--line); border-left: 3px solid var(--fold); border-radius: 9px; padding: 9px 12px; }
.leak.ok { border-left-color: var(--live); }
.leak b { font-weight: 600; }
.leak span { color: var(--muted); font-size: 13px; margin-left: 6px; }
.leak p { margin: 4px 0 0; font-size: 14px; color: #cfe0d6; }
.ctable { display: grid; gap: 2px; }
.cgrp { font: 700 12px var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass); margin-top: 8px; }
.crow { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(70px, 1fr) 64px; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.crow .cl { font-size: 14px; min-width: 0; }
.crow .cl small, .crow .cv small { display: block; color: var(--muted); font-size: 11px; }
.crow .cv { text-align: right; font: 700 16px var(--display); }
.crow.baixo .cv, .crow.alto .cv { color: #f19b94; }
.crow.ok .cv { color: var(--live); }
.crow.pouca .cv { color: var(--muted); }
.cbar { position: relative; height: 8px; background: var(--ink); border-radius: 99px; border: 1px solid var(--line); }
.cbar .band { position: absolute; top: 0; bottom: 0; background: rgba(91, 214, 168, 0.35); border-radius: 99px; }
.cbar .dot { position: absolute; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--brass-2); transform: translate(-50%, -50%); box-shadow: 0 0 0 2px var(--ink); }
@media (max-width: 560px) { .coachbtn { bottom: 46px; } }

/* ---------- outros jogos (8-Game) ---------- */
.gpill { display: inline-block; font: 700 11px var(--body); letter-spacing: 0.06em; text-transform: uppercase; color: #f3efe4; background: var(--bond); border-radius: 6px; padding: 2px 7px; margin-right: 8px; vertical-align: 1px; }
.gamebadge { font: 400 clamp(14px, 2vw, 22px) var(--serif); color: #f0d58e; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.streetname { font: 600 12px var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: #cfe0d6; opacity: 0.85; }
/* Omaha: 4 cartas */
.seat.me .hole.n4 .card { --w: clamp(32px, 4.6vw, 54px); }
.portrait .seat.me .hole.n4 .card { --w: clamp(34px, 10vw, 48px); }
.seat:not(.me) .hole.n4 .card { --w: clamp(22px, 3vw, 36px); }
.portrait .seat:not(.me) .hole.n4 .card { --w: clamp(18px, 5.4vw, 28px); }
/* Stud: até 7 cartas, sobrepostas; as fechadas do próprio jogador ficam marcadas */
.hole.stud, .hole.draw { gap: 0; }
.seat:not(.me) .hole.stud .card, .seat:not(.me) .hole.draw .card { --w: clamp(22px, 2.8vw, 34px); }
.portrait .seat:not(.me) .hole.stud .card, .portrait .seat:not(.me) .hole.draw .card { --w: clamp(18px, 5vw, 26px); }
.hole.stud .card + .card, .hole.draw .card + .card { margin-left: calc(var(--w) * -0.42); }
.seat.me .hole.stud .card, .seat.me .hole.draw .card { --w: clamp(34px, 4.6vw, 56px); }
.portrait .seat.me .hole.stud .card, .portrait .seat.me .hole.draw .card { --w: clamp(34px, 11vw, 50px); }
.seat.me .hole.draw .card + .card { margin-left: calc(var(--w) * -0.18); }
.card.down { box-shadow: 0 2px 6px rgba(0,0,0,.45), inset 0 -4px 0 #0d3b2e; transform: translateY(-6%); }
.card.down::after { content: "fechada"; position: absolute; left: 0; right: 0; bottom: 1px; text-align: center; font: 700 7px var(--body); letter-spacing: .04em; text-transform: uppercase; color: #f0d58e; }
/* 2-7: escolher descarte */
.card.pick { cursor: pointer; transition: transform .12s ease; }
.card.pick:hover { transform: translateY(-6%); }
.card.pick.sel { transform: translateY(-22%); box-shadow: 0 0 0 2px var(--fold), 0 6px 14px rgba(0,0,0,.5); filter: brightness(.92); }
.acts.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.acts .a:disabled { opacity: .4; cursor: not-allowed; }
.drawbar span { color: #f0d58e; font-weight: 600; }
.flinfo { text-align: center; color: var(--muted); font-size: 13px; }
.tag.Bring-in, .tag.Completa { color: var(--brass-2); }
.tag.Manteve { color: #9fe6c7; }
/* stud/draw: valor e naipe lado a lado, cartas acima da placa */
.hole.stud .card, .hole.draw .card { display: flex; align-items: baseline; gap: 1px; padding: calc(var(--w) * 0.05) calc(var(--w) * 0.08); }
.hole.stud .card .r, .hole.draw .card .r { font-size: calc(var(--w) * 0.48); letter-spacing: -0.04em; }
.hole.stud .card .s, .hole.draw .card .s { font-size: calc(var(--w) * 0.4); margin-top: 0; }
.hole.stud .card.ten .r, .hole.draw .card.ten .r { font-size: calc(var(--w) * 0.38); }
.seat.me .hole.stud, .seat.me .hole.draw { margin-bottom: -6%; }
@media (max-width: 560px) {
  .logbtn { top: 8px; bottom: auto; }
  .coachbtn { top: 46px; bottom: auto; }
  .log { top: 46px; bottom: auto; }
}
/* Omaha: valor e naipe lado a lado nas 4 cartas */
.hole.n4 .card { display: flex; align-items: baseline; gap: 1px; padding: calc(var(--w) * 0.05) calc(var(--w) * 0.08); }
.hole.n4 .card .r { font-size: calc(var(--w) * 0.48); letter-spacing: -0.04em; }
.hole.n4 .card .s { font-size: calc(var(--w) * 0.4); margin-top: 0; }
.hole.n4 .card.ten .r { font-size: calc(var(--w) * 0.38); }
.seat.me .hole.n4 { margin-bottom: -6%; }

/* rabbit hunt */
.card.rabbit { opacity: 0.78; filter: saturate(0.6); box-shadow: 0 0 0 2px rgba(240, 213, 142, 0.55), 0 2px 6px rgba(0,0,0,.45); }
.rabbitbtn { border: 1px solid var(--brass); background: rgba(6, 26, 20, 0.85); color: var(--brass-2); border-radius: 99px; padding: 5px 14px; font: 700 13px var(--body); cursor: pointer; }
.rabbitbtn:disabled { opacity: .5; }
.rabbitlabel { font: 600 11px var(--body); letter-spacing: .08em; text-transform: uppercase; color: #f0d58e; opacity: .85; }

/* escolher bots um a um */
.addbots { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.addbot { text-align: left; border: 1px solid var(--line); background: var(--ink); border-radius: 10px; padding: 9px 11px; display: grid; gap: 2px; cursor: pointer; }
.addbot b { font: 700 15px var(--display); letter-spacing: .03em; }
.addbot small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.addbot:hover { border-color: var(--bond); }
.addbot.padson b { color: #8e2a37; } .addbot.gto b { color: #1d5a94; } .addbot.bond b { color: #8c6619; }
.names .botname { display: inline-flex; align-items: center; gap: 6px; }
.names .bottag { position: static; font-style: normal; }
.rmbot { border: 0; background: none; color: var(--muted); font-size: 16px; line-height: 1; padding: 0 0 0 2px; cursor: pointer; }
.rmbot:hover { color: var(--fold); }

/* ---------- Smart HUD (estilo GG) ---------- */
.plate[data-seat] { cursor: pointer; }
.plate[data-seat]:hover { border-color: var(--brass); }
.hudbg { z-index: 70; }
.panel.hud { position: relative; width: min(500px, 100%); gap: 14px; background: #0b1f19; }
.hudx { position: absolute; top: 8px; right: 10px; border: 0; background: none; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; }
.hudhead { display: flex; gap: 14px; align-items: center; }
.avatar { width: 56px; height: 56px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 400 28px var(--serif); color: #f0d58e; background: radial-gradient(circle at 35% 30%, #1f7a5a, #0d3b2e); box-shadow: 0 0 0 2px var(--brass); }
.avatar.padson { box-shadow: 0 0 0 2px #8e2a37; } .avatar.gto { box-shadow: 0 0 0 2px #1d5a94; } .avatar.bond { box-shadow: 0 0 0 2px #b8892f; }
.hudname { font: 600 20px var(--body); display: flex; align-items: center; gap: 8px; }
.hudname .bottag { position: static; font-style: normal; }
.rings { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; text-align: center; }
.ring { --c: #5d6b66; display: grid; justify-items: center; gap: 4px; }
.ring > div { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), #1c2f29 0); position: relative; }
.ring > div::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #0b1f19; }
.ring b { position: relative; font: 700 16px var(--display); }
.ring small { font: 700 12px var(--display); letter-spacing: .06em; color: #cfe0d6; }
.ring.hands > div { background: none; }
.ring.ok { --c: #3fbf6f; } .ring.perto { --c: #e0b23a; } .ring.baixo, .ring.alto { --c: #d9534f; }
.hcols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; background: #10271f; border-radius: 10px; padding: 12px; }
.hcol { display: grid; gap: 6px; align-content: start; min-width: 0; }
.hcol h4 { margin: 0 0 2px; text-align: center; font: 700 14px var(--display); letter-spacing: .08em; }
.hbar { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 6px; align-items: center; font: 600 12px var(--display); }
.hbar .hl { color: #cfe0d6; }
.hbar .ht { position: relative; height: 16px; background: #1c2f29; border-radius: 3px; overflow: hidden; }
.hbar .ht i { position: absolute; inset: 0 auto 0 0; background: #5d6b66; }
.hbar .ht em { position: relative; font-style: normal; padding-left: 4px; line-height: 16px; color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.6); }
.hbar.ok i { background: #2fa85c; } .hbar.perto i { background: #d6a52c; } .hbar.baixo i, .hbar.alto i { background: #c9443f; }
.hbar.plain .hv { text-align: right; font-weight: 700; }
.hprof { display: grid; gap: 10px; background: #10271f; border-radius: 10px; padding: 12px; }
.hbig small, .hgrid small { display: block; color: var(--muted); font-size: 12px; }
.hbig b { font: 700 26px var(--display); }
.hbig b.pos { color: #f0d58e; } .hbig b.neg { color: #f19b94; }
.hgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.hgrid > div { background: #0b1f19; border-radius: 8px; padding: 8px; text-align: center; }
.hgrid b { font: 700 18px var(--display); }
.hudlegend { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12px; }
.dotc { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-left: 6px; background: #5d6b66; }
.dotc.ok { background: #3fbf6f; } .dotc.perto { background: #e0b23a; } .dotc.alto { background: #d9534f; }
.fmtchips { display: flex; gap: 6px; flex-wrap: wrap; }
.fmtchips button { border: 1px solid var(--line); background: var(--ink); border-radius: 99px; padding: 5px 12px; font: 600 13px var(--body); color: var(--muted); }
.fmtchips button[aria-pressed="true"] { border-color: var(--brass); color: var(--brass-2); }
@media (max-width: 480px) {
  .ring > div { width: 50px; height: 50px; }
  .ring b { font-size: 14px; }
  .hcols { gap: 8px; padding: 10px; }
  .hbar { grid-template-columns: 28px minmax(0, 1fr); font-size: 11px; }
  .hgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* botão fichas ↔ BB (igual PS/GG) */
.bbtoggle { font: 700 12px/1 Barlow, sans-serif; letter-spacing: .06em; padding: 6px 10px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--brass-2, #d8b25a); border: 1px solid currentColor; opacity: .75; }
.bbtoggle[aria-pressed="true"] { background: var(--brass-2, #d8b25a); color: #0d1a14; opacity: 1; }
