/* Desktop and base Pokerzin visuals. Mobile geometry is owned exclusively by poker-mobile-final.css (V3). */
/* Pokerzin somente. Grid reserva espaço real para cada elemento. */
#poker-hand-guide, #poker-turn-clock { display:none; }
html body #game[data-match-type="poker"] {
  --pk-seat: 132px; --pk-row: 98px; --pk-card: 60px; --pk-own: 68px; --pk-guide: 208px;
  height:auto!important; min-height:100vh; min-height:100dvh; overflow:visible!important;
  padding:0 0 env(safe-area-inset-bottom)!important;
  background:radial-gradient(ellipse at 40% 35%,#173f34,#081c19 75%)!important;
  color:#f6f1de;
}
html body #game[data-match-type="poker"] .topbar {
  position:relative!important; inset:auto!important; width:100%; height:64px!important; min-height:0;
  padding:8px max(18px,env(safe-area-inset-right)) 8px max(74px,env(safe-area-inset-left));
  background:#0b241e; border-bottom:1px solid #b59b5240; gap:12px;
}
html body #game[data-match-type="poker"] #mode-label { font-size:17px; }
html body #game[data-match-type="poker"] .topbar span { font-size:12px; }
html body #game[data-match-type="poker"] .game-menu-wrap { top:9px!important; left:max(12px,env(safe-area-inset-left))!important; z-index:90; }
html body #game[data-match-type="poker"] #game-menu-toggle { width:44px!important; height:44px!important; min-height:44px; padding:8px; border-radius:12px; }
html body #game[data-match-type="poker"] .table-wrap {
  position:relative!important; display:grid!important;
  grid-template-columns:var(--pk-seat) repeat(3,minmax(0,1fr)) var(--pk-seat) var(--pk-guide);
  grid-template-rows:var(--pk-row) 56px var(--pk-row) 108px auto auto;
  gap:10px 14px; align-items:center; justify-items:stretch;
  width:calc(100% - 32px)!important; max-width:1320px; min-width:0!important;
  height:auto!important; min-height:0!important; margin:18px auto 0;
  padding:16px max(8px,env(safe-area-inset-right)) 12px max(8px,env(safe-area-inset-left))!important;
}
html body #game[data-match-type="poker"] .table-wrap::before {
  content:''; grid-area:1 / 1 / 5 / 6; align-self:stretch; z-index:0; pointer-events:none;
  margin:12px 8px 16px; border:10px solid #563e24; border-radius:45%;
  background:radial-gradient(ellipse at 50% 45%,#227452,#105338 72%,#0c3d2c);
  box-shadow:0 0 0 2px #ae8848,inset 0 0 0 2px #c7ad6850,0 12px 28px #0005;
}
html body #game[data-match-type="poker"] .plastic-table,
html body #game[data-match-type="poker"] #poker-board,
html body #game[data-match-type="poker"] #poker-seats { display:contents!important; }
html body #game[data-match-type="poker"] .plastic-table::before,
html body #game[data-match-type="poker"] .plastic-table::after,
html body #game[data-match-type="poker"] .table-shell,
html body #game[data-match-type="poker"] .molded-line,
html body #game[data-match-type="poker"] .actions { display:none!important; }
html body #game[data-match-type="poker"] .poker-seat {
  position:relative!important; inset:auto!important; transform:none!important; align-self:center;
  display:grid!important; grid-template-columns:38px minmax(0,1fr); grid-template-rows:auto auto;
  gap:3px 6px; width:100%!important; min-width:0!important; max-width:none; margin:0;
  padding:8px!important; border:1px solid #789b8055; border-radius:14px;
  background:#0b2a22f5; box-shadow:0 4px 10px #00140f55; z-index:2; box-sizing:border-box;
}
html body #game[data-match-type="poker"] .poker-seat[data-position="0"] { grid-area:1 / 2; }
html body #game[data-match-type="poker"] .poker-seat[data-position="1"] { grid-area:1 / 3; }
html body #game[data-match-type="poker"] .poker-seat[data-position="2"] { grid-area:1 / 4; }
html body #game[data-match-type="poker"] .poker-seat[data-position="3"] { grid-area:1 / 1 / 3 / 2; }
html body #game[data-match-type="poker"] .poker-seat[data-position="4"] { grid-area:1 / 5 / 3 / 6; }
html body #game[data-match-type="poker"] .poker-seat[data-position="5"] { grid-area:3 / 1; }
html body #game[data-match-type="poker"] .poker-seat[data-position="6"] { grid-area:3 / 5; }
html body #game[data-match-type="poker"] .poker-seat.active,
html body #game[data-match-type="poker"] #me.active { border-color:#f2ce67!important; box-shadow:0 0 0 2px #e9be4933!important; }
html body #game[data-match-type="poker"] .poker-seat .avatar { width:38px!important; height:38px!important; grid-row:1; border:2px solid #cbaa5c; border-radius:50%; }
html body #game[data-match-type="poker"] .poker-seat > div:not(.poker-card-backs) { display:grid; justify-items:start; gap:2px; width:100%; min-width:0; }
html body #game[data-match-type="poker"] .poker-seat strong { display:block; max-width:100%; min-width:0; font-size:12px!important; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; line-height:1.2; }
html body #game[data-match-type="poker"] .poker-seat small { font-size:10px!important; line-height:1.2; color:#c5d6ca; white-space:nowrap; }
html body #game[data-match-type="poker"] .seat-balance { font-size:12px!important; color:#f4d47b; white-space:nowrap; }
html body #game[data-match-type="poker"] .trucuzin-coin { width:15px!important; height:15px!important; }
html body #game[data-match-type="poker"] .poker-card-backs { position:static!important; transform:none!important; display:flex; justify-content:center; gap:3px; grid-column:1/-1; height:22px; margin:0; }
html body #game[data-match-type="poker"] .poker-card-backs i { width:15px!important; height:22px!important; border-radius:3px; box-shadow:none; }
html body #game[data-match-type="poker"] .dealer-foot { width:19px!important; height:19px!important; left:-5px!important; top:-5px!important; font-size:11px; }
html body #game[data-match-type="poker"] .poker-seat-empty { display:flex!important; justify-content:center; flex-direction:column; height:60px; opacity:.55; background:#092d2029; border:1px dashed #c5d6ca55; box-shadow:none; }
html body #game[data-match-type="poker"] .poker-seat-empty > span { font-size:21px; color:#ddcf9b; }
html body #game[data-match-type="poker"] .poker-pot-panel { grid-area:2 / 2 / 3 / 5; position:relative; z-index:1; justify-self:center; min-width:0; border:0; padding:3px 12px; background:#082f2380; box-shadow:none; border-radius:12px; }
html body #game[data-match-type="poker"] #poker-pot { font-size:22px; color:#ffdb7e; }
html body #game[data-match-type="poker"] #poker-street { font-size:10px; letter-spacing:.12em; text-transform:uppercase; }
html body #game[data-match-type="poker"] #poker-blinds { font-size:10px; color:#d5ddcc; }
html body #game[data-match-type="poker"] #poker-community { grid-area:3 / 2 / 4 / 5; position:relative; margin:0!important; display:flex; justify-content:center; gap:6px; width:auto!important; z-index:1; }
html body #game[data-match-type="poker"] #poker-community .table-card { width:var(--pk-card)!important; height:calc(var(--pk-card)*1.4)!important; min-width:0; flex:0 1 var(--pk-card); font-size:18px; border-radius:7px; }
html body #game[data-match-type="poker"] #poker-showdown { grid-area:3 / 2 / 4 / 5; position:relative!important; inset:auto!important; z-index:2; width:100%; max-height:var(--pk-row); margin:0; padding:6px; font-size:12px; pointer-events:auto; overflow:auto; }
html body #game[data-match-type="poker"] .poker-payout-title { font-size:12px; }
html body #game[data-match-type="poker"] .poker-payout-list article { font-size:11px; padding:3px; }
html body #game[data-match-type="poker"] #me { grid-area:4 / 2 / 5 / 3; position:relative!important; inset:auto!important; transform:none!important; display:flex; align-items:center; flex-wrap:wrap; gap:4px 7px; padding:7px!important; margin:0; width:100%; min-width:0; max-width:none; border:1px solid #b99b57; border-radius:13px; background:#0b2d24; z-index:2; box-shadow:none; justify-self:center; }
html body #game[data-match-type="poker"] #my-avatar-image { width:36px!important; height:36px!important; }
html body #game[data-match-type="poker"] #my-name { display:block; font-size:13px!important; max-width:110px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
html body #game[data-match-type="poker"] #turn-status { display:block; font-size:10px; }
html body #game[data-match-type="poker"] #poker-turn-clock { display:block; width:100%; font-size:10px; color:#e9d9a2; text-align:center; }
html body #game[data-match-type="poker"] #hand { grid-area:4 / 3 / 5 / 5; position:relative!important; inset:auto!important; transform:none!important; width:auto!important; min-width:0!important; padding:0!important; margin:0; gap:6px; justify-content:center; z-index:2; }
html body #game[data-match-type="poker"] #hand .card { position:relative!important; width:var(--pk-own)!important; height:calc(var(--pk-own)*1.4)!important; margin:0!important; transform:none!important; flex:none; filter:none!important; opacity:1!important; font-size:20px; pointer-events:none; cursor:default; }
html body #game[data-match-type="poker"] #message { grid-area:6 / 1 / 7 / 6; position:relative!important; inset:auto!important; transform:none!important; min-width:0; max-width:100%; margin:0; padding:2px 8px; font-size:11px; background:none; color:#bdcbbf; box-shadow:none; border:0; }
html body #game[data-match-type="poker"] #poker-actions { grid-area:5 / 1 / 6 / 6; position:relative!important; inset:auto!important; transform:none!important; display:grid; grid-template-columns:minmax(74px,.6fr) minmax(96px,.8fr) minmax(0,3fr); align-items:stretch; width:100%!important; max-width:none; min-width:0; padding:10px; margin:0; gap:8px; border:1px solid #b8995040; border-radius:16px; background:#071e18; z-index:2; box-sizing:border-box; }
html body #game[data-match-type="poker"] #poker-actions button { touch-action:manipulation; min-height:44px!important; min-width:0!important; width:auto!important; padding:6px!important; border:1px solid #ffffff20; border-radius:9px; font-size:13px!important; box-shadow:none; }
html body #game[data-match-type="poker"] #poker-actions button:focus-visible { outline:3px solid #fff0b0; outline-offset:2px; }
html body #game[data-match-type="poker"] #poker-actions button:disabled { opacity:.4; }
html body #game[data-match-type="poker"] .poker-bet-box { grid-column:3; display:grid; grid-template-columns:1fr; min-width:0; gap:4px; border:0; padding:0; background:none; }
html body #game[data-match-type="poker"] .poker-bet-box label { font-size:11px; line-height:1; }
html body #game[data-match-type="poker"] #poker-bet-range { width:100%; min-width:0; margin:0; height:24px; min-height:24px; }
html body #game[data-match-type="poker"] .poker-bet-buttons { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:5px; }
html body #game[data-match-type="poker"] #poker-hand-guide { grid-area:1 / 6 / 7 / 7; display:flex; flex-direction:column; align-self:stretch; margin-left:6px; padding:15px 10px; border:1px solid #b89b4f30; border-radius:18px; background:#061b16b3; min-width:0; z-index:2; }
html body #game[data-match-type="poker"] .poker-guide-heading { display:grid; gap:5px; padding:0 6px 12px; }
html body #game[data-match-type="poker"] .poker-guide-heading span { font-size:9px; letter-spacing:.14em; color:#b6aa7f; }
html body #game[data-match-type="poker"] .poker-guide-heading strong { font-size:17px; color:#f3e7c3; }
html body #game[data-match-type="poker"] #poker-hand-guide ol { list-style:none; padding:0; margin:0; display:grid; gap:4px; }
html body #game[data-match-type="poker"] #poker-hand-guide li { display:flex; align-items:center; gap:9px; padding:6px; border:1px solid transparent; border-radius:9px; min-width:0; position:relative; }
html body #game[data-match-type="poker"] #poker-hand-guide li > b { font-size:11px; color:#738d7d; }
html body #game[data-match-type="poker"] #poker-hand-guide li strong { display:block; font-size:12px; }
html body #game[data-match-type="poker"] #poker-hand-guide li small { display:block; font-size:10px; letter-spacing:1px; color:#9eb6a5; margin-top:3px; }
html body #game[data-match-type="poker"] #poker-hand-guide li.current { border-color:#e1bc60; background:#c99c2026; color:#ffdf86; }
html body #game[data-match-type="poker"] .poker-rank-current { display:none; }
html body #game[data-match-type="poker"] #poker-hand-guide li.current .poker-rank-current { display:block; margin-left:auto; font-size:7px; max-width:24px; text-align:right; }
html body #game[data-match-type="poker"] #poker-hand-guide p { font-size:10px; color:#b5c1b5; padding:0 6px; line-height:1.4; }
html body #game[data-match-type="poker"] #match-result { grid-area:4 / 1 / 6 / 6; position:relative!important; inset:auto!important; transform:none!important; width:100%!important; max-width:none!important; max-height:none; box-sizing:border-box; margin:0; padding:12px; background:#102f25; border:1px solid #dfbe6b; border-radius:14px; z-index:5; }
html body #game[data-match-type="poker"] #match-result > img { display:none; }
html body #game[data-match-type="poker"] #result-title { font-size:22px!important; line-height:1.2!important; text-shadow:none; }
html body #game[data-match-type="poker"] #result-message { font-size:12px!important; margin:6px; }
html body #game[data-match-type="poker"] #match-result .result-actions { display:flex; justify-content:center; gap:8px; }
html body #game[data-match-type="poker"] #match-result button { min-height:44px; padding:8px 14px; font-size:12px; }
html body #game[data-match-type="poker"][data-poker-result="true"] #me,
html body #game[data-match-type="poker"][data-poker-result="true"] #hand,
html body #game[data-match-type="poker"][data-poker-result="true"] #poker-actions { visibility:hidden; }
html body #game[data-match-type="poker"] .hidden { display:none!important; }








/* Limites de conteúdo: nomes/saldos extensos não invadem o próximo assento. */
html body #game[data-match-type="poker"] .poker-seat small,
html body #game[data-match-type="poker"] .seat-balance { max-width:100%; overflow:hidden; text-overflow:ellipsis; }
html body #game[data-match-type="poker"] #me { display:grid; grid-template-columns:36px minmax(0,1fr); max-width:180px; justify-self:end; }
html body #game[data-match-type="poker"] #me > div { min-width:0; }
html body #game[data-match-type="poker"] #poker-turn-clock { grid-column:1/-1; white-space:nowrap; }
html body #game[data-match-type="poker"] #poker-community .poker-card { color:#151915; font-size:calc(var(--pk-card)*.25); }
html body #game[data-match-type="poker"] #poker-community .poker-card.red { color:#cd202c; }
html body #game[data-match-type="poker"] #hand .card { font-size:calc(var(--pk-own)*.25); }
html body #game[data-match-type="poker"] .poker-suit-center { font-size:1.7em; }
html body #game[data-match-type="poker"] .poker-seat[data-position="0"],
html body #game[data-match-type="poker"] .poker-seat[data-position="1"],
html body #game[data-match-type="poker"] .poker-seat[data-position="2"] { max-width:190px; justify-self:center; }






/* Resultado da mão na banda de ações, mantendo a mesa e o board visíveis. */
html body #game[data-match-type="poker"] #poker-showdown {
 grid-area:5 / 1 / 6 / 6; display:block; max-height:none; padding:8px; margin:0;
 border:1px solid #c1a65b66; border-radius:14px; background:#09251e; overflow:hidden; width:100%; box-sizing:border-box;
}
html body #game[data-match-type="poker"] .poker-result-heading { display:flex; align-items:center; justify-content:space-between; gap:6px; margin-bottom:5px; color:#f6d782; }
html body #game[data-match-type="poker"] .poker-result-heading small { color:#b6cdbd; font-size:10px; }
html body #game[data-match-type="poker"] .poker-result-hands { display:flex; gap:6px; overflow-x:auto; padding:2px 0 5px; scrollbar-width:thin; }
html body #game[data-match-type="poker"] .poker-result-hand { flex:1 0 128px; min-width:0; max-width:220px; padding:5px; display:grid; gap:3px; justify-items:center; border:1px solid #7c9e8050; border-radius:9px; background:#0f3328; }
html body #game[data-match-type="poker"] .poker-result-hand.won { border-color:#e4c26d; background:#574b192e; }
html body #game[data-match-type="poker"] .poker-result-hand > strong { font-size:12px; max-width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
html body #game[data-match-type="poker"] .poker-result-hand > b { color:#f1cc75; font-size:11px; }
html body #game[data-match-type="poker"] .poker-result-cards { display:flex; gap:4px; align-items:center; min-height:30px; }
html body #game[data-match-type="poker"] .poker-result-card { display:inline-flex; align-items:center; justify-content:center; min-width:32px; height:30px; padding:0 3px; background:#fffdf4; color:#15231d; border-radius:4px; font-size:18px; font-weight:900; }
html body #game[data-match-type="poker"] .poker-result-card.red { color:#c22031; }
html body #game[data-match-type="poker"] .poker-result-rank { font-size:11px; color:#f9efd2; }
html body #game[data-match-type="poker"] .poker-best-five { font-size:10px; letter-spacing:1px; color:#c7d5c9; }
html body #game[data-match-type="poker"] .poker-cards-private { color:#afc5b6; font-size:10px; }
html body #game[data-match-type="poker"] .poker-reveal-choice { display:flex; gap:6px; align-items:center; flex-wrap:wrap; margin-top:4px; font-size:11px; }
html body #game[data-match-type="poker"] .poker-reveal-choice button { min-height:44px; padding:6px 10px; border:1px solid #c3aa5e; border-radius:8px; background:#164b37; color:#ffe6a5; font-size:11px; touch-action:manipulation; }
html body #game[data-match-type="poker"][data-poker-hand-ended="true"][data-poker-result="true"] #match-result { grid-area:7 / 1 / 8 / 6; }
html body #game[data-match-type="poker"] .poker-clock-active::after { content:''; position:absolute; bottom:0; left:5%; height:3px; width:calc(var(--poker-clock-left)*.9); background:#f8d36c; border-radius:3px; pointer-events:none; }
.poker-seat-clock { display:none; }
html body #game[data-match-type="poker"] .poker-seat-clock:not([hidden]) { display:block; position:absolute; right:2px; top:-8px; background:#f7d06b; color:#183223; border-radius:6px; padding:1px 4px; font-weight:900; font-size:10px; line-height:13px; }




/* Pokerzin Premium V1: APRESENTACAO APENAS. Reversivel via data-poker-premium. */
html body #game[data-match-type="poker"][data-poker-premium="true"] {
  --pk-gold:#e8c679; --pk-ivory:#fff6df;
  background:radial-gradient(ellipse at 50% 18%,#224738 0%,#0a211b 58%,#04130f 100%)!important;
}
html body #game[data-match-type="poker"][data-poker-premium="true"] .topbar {
  background:linear-gradient(180deg,#17392e 0%,#081c17 100%);
  border-bottom:1px solid #ca9c4670; box-shadow:0 8px 22px #0005;
}
html body #game[data-match-type="poker"][data-poker-premium="true"] .table-wrap::before {
  border:clamp(6px,1.2vw,15px) solid #462b1a;
  background:
    radial-gradient(ellipse at 45% 36%,#258962 0%,#136547 42%,#083a2c 78%,#06261e 100%);
  box-shadow:0 0 0 2px #bd9450,0 0 0 5px #28190f,0 0 0 7px #d4aa6150,
    inset 0 0 0 3px #d6b56e8c,inset 0 0 35px #0009,0 24px 50px #0009;
}
html body #game[data-match-type="poker"][data-poker-premium="true"] .poker-seat,
html body #game[data-match-type="poker"][data-poker-premium="true"] #me {
  background:linear-gradient(155deg,#19483aef,#081e1af5)!important;
  border:1px solid #b5965d80!important;
  box-shadow:inset 0 1px #ffffff16,0 9px 20px #0008!important;
}
html body #game[data-match-type="poker"][data-poker-premium="true"] .poker-clock-active {
  border-color:#f9d47d!important;
  box-shadow:0 0 0 2px #e9b85355,0 0 18px #f4c66d55!important;
}
html body #game[data-match-type="poker"][data-poker-premium="true"] .poker-pot-panel {
  background:linear-gradient(180deg,#061d17e8,#123f31ee);
  border:1px solid #d8b46b75; border-radius:16px;
  box-shadow:0 5px 16px #0008,inset 0 1px #fff2;
}
html body #game[data-match-type="poker"][data-poker-premium="true"] #poker-pot {
  color:#ffe19a; font-weight:900; text-shadow:0 2px 9px #000c;
}
html body #game[data-match-type="poker"][data-poker-premium="true"] #poker-community .table-card,
html body #game[data-match-type="poker"][data-poker-premium="true"] #hand .card {
  border:1px solid #fffef1!important; border-radius:7px;
  box-shadow:0 2px 0 #b9aea0,0 6px 11px #0008!important;
}
html body #game[data-match-type="poker"][data-poker-premium="true"] #poker-actions {
  background:linear-gradient(180deg,#16382e,#071b15);
  border-color:#d2ab6870; box-shadow:0 9px 20px #0008;
}
html body #game[data-match-type="poker"][data-poker-premium="true"] #poker-actions button:not(:disabled) {
  box-shadow:inset 0 1px #ffffff20,0 3px 8px #0005;
  font-weight:800; letter-spacing:.025em;
}
html body #game[data-match-type="poker"][data-poker-premium="true"] #poker-actions button:active:not(:disabled) {
  transform:translateY(1px);
}
html body #game[data-match-type="poker"][data-poker-premium="true"] #poker-showdown:not(.hidden) {
  border:1px solid #f2cb7b; background:#0c2d23f7; box-shadow:0 14px 30px #000a;
}
html body #game[data-match-type="poker"] .poker-premium-switch {
  margin-left:8px; min-height:34px; padding:5px 10px;
  border:1px solid #d2b16c; border-radius:10px;
  background:#143e31; color:#ffe3a5; font-size:11px;
  font-weight:800; cursor:pointer; touch-action:manipulation;
}
html body #game[data-match-type="poker"] .poker-premium-switch:focus-visible,
html body #game[data-match-type="poker"] .poker-guide-toggle:focus-visible {
  outline:3px solid #ffe4a4; outline-offset:2px;
}
html body #game[data-match-type="poker"] .poker-guide-toggle {
  display:block; width:100%; min-height:38px; margin:0 0 5px;
  border:1px solid #c5a46488; border-radius:8px;
  background:#173d30; color:#fff0cc; font-weight:800; cursor:pointer;
}
html body #game[data-match-type="poker"][data-poker-premium="true"] #poker-hand-guide[data-collapsed="true"] ol,
html body #game[data-match-type="poker"][data-poker-premium="true"] #poker-hand-guide[data-collapsed="true"] p,
html body #game[data-match-type="poker"][data-poker-premium="true"] #poker-hand-guide[data-collapsed="true"] .poker-guide-heading {
  display:none;
}
html body #game[data-match-type="poker"][data-poker-premium="true"] #poker-hand-guide[data-collapsed="true"] {
  align-self:start; padding:5px; min-height:0;
}



/* O guia retratil pertence somente ao modo Premium; Classic permanece original. */
html body #game[data-match-type="poker"]:not([data-poker-premium="true"]) .poker-guide-toggle { display:none!important; }
html body #game[data-match-type="poker"][data-poker-premium="true"] .poker-guide-toggle { display:block; }


/* Pokerzin V2: geometria e textura exclusivas, reversiveis pelo botao Classic. */
html body #game[data-match-type="poker"][data-poker-premium="true"]{background:radial-gradient(ellipse at 50% 18%,#234b3e,#071711 68%,#030b09)!important}
html body #game[data-match-type="poker"][data-poker-premium="true"] .table-wrap{--pk-guide:0px;width:min(98vw,1470px)!important;max-width:none;grid-template-columns:var(--pk-seat) repeat(3,minmax(0,1fr)) var(--pk-seat) 0px;grid-template-rows:minmax(72px,12vh) minmax(55px,9vh) minmax(105px,22vh) minmax(95px,15vh) auto auto;gap:4px 9px;margin:8px auto 0;padding:7px!important}
html body #game[data-match-type="poker"][data-poker-premium="true"] .table-wrap::before{grid-area:1/1/5/6;margin:0 -5px;border:0;border-radius:0;background:url('/assets/pokerzin/table-premium-v2.svg') center / 100% 100% no-repeat!important;box-shadow:none!important;filter:drop-shadow(0 17px 15px #000a)}
html body #game[data-match-type="poker"][data-poker-premium="true"] #poker-hand-guide{grid-area:auto!important;position:absolute;top:2px;right:5px;width:min(195px,22vw);height:auto;min-height:0;margin:0;z-index:8;background:#071b16f2}
html body #game[data-match-type="poker"][data-poker-premium="true"] .poker-seat{align-self:center;border-radius:40px!important;padding:5px 9px!important;background:linear-gradient(160deg,#1b4034ef,#061712f5)!important;border:1px solid #c5a16a!important;box-shadow:0 8px 14px #0009,inset 0 1px #fff2!important}
html body #game[data-match-type="poker"][data-poker-premium="true"] .poker-seat-empty{height:44px;opacity:.36;border-style:solid!important}
html body #game[data-match-type="poker"][data-poker-premium="true"] .poker-seat .avatar{border:2px solid #f0c77a;box-shadow:0 3px 9px #0009}
html body #game[data-match-type="poker"][data-poker-premium="true"] .poker-seat[data-position="0"]{grid-area:1/2;transform:translateY(-9px)!important}
html body #game[data-match-type="poker"][data-poker-premium="true"] .poker-seat[data-position="1"]{grid-area:1/3;transform:translateY(-15px)!important}
html body #game[data-match-type="poker"][data-poker-premium="true"] .poker-seat[data-position="2"]{grid-area:1/4;transform:translateY(-9px)!important}
html body #game[data-match-type="poker"][data-poker-premium="true"] .poker-seat[data-position="3"]{grid-area:1/1/3/2}
html body #game[data-match-type="poker"][data-poker-premium="true"] .poker-seat[data-position="4"]{grid-area:1/5/3/6}
html body #game[data-match-type="poker"][data-poker-premium="true"] .poker-seat[data-position="5"]{grid-area:3/1}
html body #game[data-match-type="poker"][data-poker-premium="true"] .poker-seat[data-position="6"]{grid-area:3/5}
html body #game[data-match-type="poker"][data-poker-premium="true"] #me{grid-area:4/3/5/4;justify-self:center!important;align-self:end;width:min(100%,200px)!important;max-width:200px;border-radius:45px!important;border:2px solid #e7bf76!important;background:linear-gradient(135deg,#265442,#071c15)!important;box-shadow:0 12px 16px #000a!important;z-index:4}
html body #game[data-match-type="poker"][data-poker-premium="true"] #hand{grid-area:4/4/5/5;justify-self:start;align-self:end;gap:4px;transform:translateX(-4px)!important}
html body #game[data-match-type="poker"][data-poker-premium="true"] #hand .card,html body #game[data-match-type="poker"][data-poker-premium="true"] #poker-community .table-card{background:linear-gradient(145deg,#fff,#f2eddf)!important;border:2px solid #fff!important;box-shadow:0 2px #ad9f87,0 7px 10px #000a!important}
html body #game[data-match-type="poker"][data-poker-premium="true"] #poker-community{grid-area:3/2/4/5;align-self:start;margin-top:3px!important}
html body #game[data-match-type="poker"][data-poker-premium="true"] .poker-pot-panel{grid-area:2/2/3/5;padding:7px 18px;border-radius:30px;background:linear-gradient(145deg,#194737,#061911);border:1px solid #e9bf74;box-shadow:0 8px 13px #0009}
html body #game[data-match-type="poker"][data-poker-premium="true"] .poker-pot-panel::before{content:'';display:inline-block;vertical-align:middle;width:28px;height:13px;margin-right:7px;border:3px solid #f1dcad;border-radius:50%;background:repeating-linear-gradient(90deg,#9d2035 0 5px,#f4dca5 5px 8px);box-shadow:0 4px #921d35,0 7px #e0be85,0 9px 5px #0009}
html body #game[data-match-type="poker"][data-poker-premium="true"] #poker-actions{grid-area:5/1/6/6;background:linear-gradient(170deg,#1b3a2f,#071911);border:1px solid #c5a067;border-radius:17px;box-shadow:0 12px 22px #0009}
html body #game[data-match-type="poker"][data-poker-premium="true"] #poker-actions button{border-radius:11px;font-weight:900}
html body #game[data-match-type="poker"][data-poker-premium="true"] #message{grid-area:6/1/7/6;text-align:center}




/* RODADA 3: jogo visivelmente centralizado e assentos em arco; somente Poker Premium. */
html body #game[data-match-type="poker"][data-poker-premium="true"] .table-wrap{
  --pk-seat:clamp(104px,10vw,146px);
  grid-template-columns:var(--pk-seat) repeat(3,minmax(0,1fr)) var(--pk-seat) 0px;
  grid-template-rows:76px 65px minmax(110px,21vh) 120px auto auto;
}
html body #game[data-match-type="poker"][data-poker-premium="true"] .table-wrap::before{margin:10px 1.6% 2px;filter:drop-shadow(0 16px 15px #000b)}
html body #game[data-match-type="poker"][data-poker-premium="true"] .poker-seat[data-position="0"]{grid-area:1/2;justify-self:end;transform:translate(22px,-4px)!important}
html body #game[data-match-type="poker"][data-poker-premium="true"] .poker-seat[data-position="1"]{grid-area:1/3;justify-self:center;transform:translateY(-14px)!important}
html body #game[data-match-type="poker"][data-poker-premium="true"] .poker-seat[data-position="2"]{grid-area:1/4;justify-self:start;transform:translate(-22px,-4px)!important}
html body #game[data-match-type="poker"][data-poker-premium="true"] .poker-seat[data-position="3"]{grid-area:2/1/3/2;align-self:start;justify-self:center;transform:translateY(2px)!important}
html body #game[data-match-type="poker"][data-poker-premium="true"] .poker-seat[data-position="4"]{grid-area:2/5/3/6;align-self:start;justify-self:center;transform:translateY(2px)!important}
html body #game[data-match-type="poker"][data-poker-premium="true"] .poker-seat[data-position="5"]{grid-area:3/1;align-self:end;transform:translateY(15px)!important}
html body #game[data-match-type="poker"][data-poker-premium="true"] .poker-seat[data-position="6"]{grid-area:3/5;align-self:end;transform:translateY(15px)!important}
html body #game[data-match-type="poker"][data-poker-premium="true"] #me{grid-area:4/3/5/4;align-self:end;justify-self:center!important;transform:translateY(0)!important}
html body #game[data-match-type="poker"][data-poker-premium="true"] #hand{grid-area:4/3/5/4;align-self:start;justify-self:center!important;transform:translateY(-17px)!important;z-index:5}
html body #game[data-match-type="poker"][data-poker-premium="true"] .poker-seat:not(.poker-seat-empty) .seat-balance::before,
html body #game[data-match-type="poker"][data-poker-premium="true"] #me .seat-balance::before{
 content:'';display:inline-block;width:20px;height:12px;margin-right:5px;vertical-align:middle;
 border:2px solid #eed28e;border-radius:50% / 38%;
 background:repeating-linear-gradient(90deg,#b82537 0 4px,#f5dfaf 4px 7px,#17694f 7px 11px);
 box-shadow:0 3px #a82238,0 5px #d3b872,0 7px 3px #0009;
}
html body #game[data-match-type="poker"][data-poker-premium="true"] #poker-actions{grid-template-columns:minmax(100px,.65fr) minmax(115px,.78fr) minmax(0,3fr)}
html body #game[data-match-type="poker"][data-poker-premium="true"] #poker-actions button{min-height:46px!important;font-size:clamp(11px,1vw,14px)!important}




/* RODADA 4 — assinatura oficial do feltro e cartas do jogador. Escopo Premium apenas. */
html body #game[data-match-type="poker"][data-poker-premium="true"] .table-wrap::before {
  filter:drop-shadow(0 13px 14px #000a);
}
html body #game[data-match-type="poker"][data-poker-premium="true"] #hand{
  grid-area:4/3/5/4; justify-self:center!important; align-self:start!important;
  transform:translateY(-29px)!important; gap:7px; z-index:6;
}
html body #game[data-match-type="poker"][data-poker-premium="true"] #me{
  grid-area:4/3/5/4; align-self:end; justify-self:center!important;
  transform:translateY(0)!important; padding-top:16px!important;
}
html body #game[data-match-type="poker"][data-poker-premium="true"] #hand .card{
  border:2px solid #fffdf3!important;
  border-radius:9px!important;
  background:linear-gradient(145deg,#fffefb,#f4efe7)!important;
  box-shadow:0 2px 0 #b6ab96,0 7px 14px #000b!important;
  font-weight:800;
}
html body #game[data-match-type="poker"][data-poker-premium="true"] #poker-community .table-card{
  border:2px solid #fffdf3!important;
  border-radius:8px!important;
  box-shadow:0 2px 0 #b6ab96,0 7px 11px #0009!important;
}
html body #game[data-match-type="poker"][data-poker-premium="true"] #poker-community{
  transform:translateY(-3px);
}




/* Rodada 4.1: cartas acima do avatar, assento totalmente legivel, lugares vazios discretos. */
html body #game[data-match-type="poker"][data-poker-premium="true"] .table-wrap{
  grid-template-rows:76px 65px minmax(125px,23vh) 137px auto auto;
}
html body #game[data-match-type="poker"][data-poker-premium="true"] #hand{
  align-self:start!important; transform:translateY(-12px)!important;
  gap:8px; pointer-events:none; z-index:5;
}
html body #game[data-match-type="poker"][data-poker-premium="true"] #me{
  align-self:end!important; transform:translateY(8px)!important;
  padding:9px 12px!important; min-height:66px; z-index:6;
}
html body #game[data-match-type="poker"][data-poker-premium="true"] .poker-seat-empty{
  width:74px!important; max-width:74px!important;
  min-height:35px;height:35px!important; padding:1px 3px!important;
  justify-self:center; opacity:.26; border-radius:50%!important;
  background:#071e17a6!important; border:1px dashed #dfc8898a!important;
}
html body #game[data-match-type="poker"][data-poker-premium="true"] .poker-seat-empty > span{
  font-size:16px; line-height:1;
}




/* Rodada 5: verso oficial Pokerzin e profundidade material da mesa (somente Premium). */
html body #game[data-match-type="poker"][data-poker-premium="true"] .table-wrap::before{
 filter:drop-shadow(0 14px 2px #1d100bc9) drop-shadow(0 25px 18px #000b);
}
html body #game[data-match-type="poker"][data-poker-premium="true"] .poker-seat .poker-card-backs{
 display:flex!important;grid-column:1/-1;gap:5px;min-height:29px;
 overflow:visible;align-items:center;justify-content:center;
}
html body #game[data-match-type="poker"][data-poker-premium="true"] .poker-card-backs i{
 display:block!important;flex:0 0 auto;width:21px!important;height:30px!important;
 border:2px solid #f7ead0!important;border-radius:4px!important;
 background:
  url('/assets/pokerzin/card-back-v5.svg') center / cover no-repeat!important;
 box-shadow:1px 2px 0 #af9a75,2px 5px 8px #000b!important;
 transform:rotate(-8deg);
}
html body #game[data-match-type="poker"][data-poker-premium="true"] .poker-card-backs i + i{
 transform:rotate(8deg);margin-left:-3px;
}
html body #game[data-match-type="poker"][data-poker-premium="true"] .poker-seat:not(.poker-seat-empty){
 backdrop-filter:blur(4px);
}



/* Pokerzin Premium: dialogo exclusivo e nao bloqueante do navegador. */
.poker-dialog-overlay{position:fixed;inset:0;z-index:99999;display:grid;place-items:center;padding:16px;background:#020b09c9;backdrop-filter:blur(7px)}
.poker-dialog-card{width:min(420px,100%);max-height:calc(100dvh - 28px);overflow:auto;padding:26px 24px 20px;border:2px solid #d2ae6c;border-radius:22px;background:radial-gradient(ellipse at 50% 0%,#215344,#071e18 76%);box-shadow:0 25px 70px #000c,inset 0 1px #ffe0a038;text-align:center;color:#fff4d9}
.poker-dialog-mark{display:block;color:#e7c77d;font-size:14px;font-weight:900;letter-spacing:.18em}
.poker-dialog-card h2{margin:12px 0;font-size:clamp(19px,3vw,25px);color:#ffe4a8}
.poker-dialog-message{font-size:15px;line-height:1.55;margin:8px 0 24px}
.poker-dialog-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.poker-dialog-actions button{min-height:48px;border-radius:11px;font-weight:900;cursor:pointer;touch-action:manipulation}
.poker-dialog-actions [data-poker-cancel]{background:#153b30;color:#f5e8c9;border:1px solid #ac9265}
.poker-dialog-actions [data-poker-confirm]{background:linear-gradient(#c89b4e,#966226);color:#130d07;border:1px solid #edcb88}
.poker-dialog-actions button:focus-visible{outline:3px solid #fff1b9;outline-offset:3px}
{.poker-dialog-card{padding:10px 18px}.poker-dialog-card h2{margin:5px}.poker-dialog-message{margin:5px 0 10px}.poker-dialog-actions button{min-height:40px}}
{.poker-dialog-card{animation:poker-dialog-in .16s ease-out}@keyframes poker-dialog-in{from{opacity:.5;transform:scale(.96)}to{opacity:1;transform:scale(1)}}}


/* Rodada 6.1: areas independentes para cartas e assento - sem sobreposicao. */
html body #game[data-match-type="poker"][data-poker-premium="true"] .table-wrap{
  grid-template-rows:76px 65px minmax(125px,23vh) 172px auto auto;
}
html body #game[data-match-type="poker"][data-poker-premium="true"] #hand{
  grid-area:4/3/5/4;align-self:start!important;justify-self:center!important;
  transform:none!important;z-index:5;gap:8px;
}
html body #game[data-match-type="poker"][data-poker-premium="true"] #me{
  grid-area:4/3/5/4;align-self:end!important;justify-self:center!important;
  transform:none!important;z-index:6;margin:0!important;
  min-height:66px;padding:8px 12px!important;
}
html body #game[data-match-type="poker"][data-poker-premium="true"] .poker-seat-empty{
  pointer-events:none;
}




/* Pokerzin V2: catalogo visual de seis mesas (precos apenas informativos). */
html body #game[data-match-type="poker"][data-poker-premium="true"][data-poker-table-theme="emerald"] .table-wrap::before{filter:drop-shadow(0 12px 3px #190f09) drop-shadow(0 21px 15px #000a)}
html body #game[data-match-type="poker"][data-poker-premium="true"][data-poker-table-theme="sapphire"] .table-wrap::before{filter:hue-rotate(104deg) saturate(1.14) drop-shadow(0 22px 17px #000c)}
html body #game[data-match-type="poker"][data-poker-premium="true"][data-poker-table-theme="ruby"] .table-wrap::before{filter:hue-rotate(227deg) saturate(1.16) brightness(.92) drop-shadow(0 22px 17px #000c)}
html body #game[data-match-type="poker"][data-poker-premium="true"][data-poker-table-theme="midnight"] .table-wrap::before{filter:hue-rotate(126deg) saturate(.87) brightness(.70) drop-shadow(0 22px 17px #000c)}
html body #game[data-match-type="poker"][data-poker-premium="true"][data-poker-table-theme="onyx"] .table-wrap::before{filter:grayscale(.82) sepia(.19) brightness(.63) drop-shadow(0 22px 17px #000e)}
html body #game[data-match-type="poker"][data-poker-premium="true"][data-poker-table-theme="platinum"] .table-wrap::before{filter:grayscale(.74) hue-rotate(125deg) brightness(1.2) drop-shadow(0 22px 17px #000b)}

/* Prévia da Loja: mesma arte e mesmo filtro cromático da mesa efetiva no jogo. */
.poker-table-replica[data-poker-table-theme="emerald"] img.poker-replica-image{filter:drop-shadow(0 12px 3px #190f09) drop-shadow(0 21px 15px #000a)}
.poker-table-replica[data-poker-table-theme="sapphire"] img.poker-replica-image{filter:hue-rotate(104deg) saturate(1.14) drop-shadow(0 22px 17px #000c)}
.poker-table-replica[data-poker-table-theme="ruby"] img.poker-replica-image{filter:hue-rotate(227deg) saturate(1.16) brightness(.92) drop-shadow(0 22px 17px #000c)}
.poker-table-replica[data-poker-table-theme="midnight"] img.poker-replica-image{filter:hue-rotate(126deg) saturate(.87) brightness(.70) drop-shadow(0 22px 17px #000c)}
.poker-table-replica[data-poker-table-theme="onyx"] img.poker-replica-image{filter:grayscale(.82) sepia(.19) brightness(.63) drop-shadow(0 22px 17px #000e)}
.poker-table-replica[data-poker-table-theme="platinum"] img.poker-replica-image{filter:grayscale(.74) hue-rotate(125deg) brightness(1.2) drop-shadow(0 22px 17px #000b)}
/* Fichas tridimensionais: decoracao nao representa saldo nem altera numeros. */
html body #game[data-match-type="poker"][data-poker-premium="true"] .poker-seat:not(.poker-seat-empty) .seat-balance::before,
html body #game[data-match-type="poker"][data-poker-premium="true"] #me .seat-balance::before{
  content:'';display:inline-block;width:28px;height:20px;margin-right:7px;vertical-align:middle;
  background:url('/assets/pokerzin/stack-v2.svg') center / contain no-repeat;
  border:0;border-radius:0;box-shadow:none;
}
/* Baralhos locais: verso compartilhado pela mesa, apenas no visual. */
html body #game[data-match-type="poker"][data-poker-premium="true"][data-poker-deck-theme="classic"] .poker-card-backs i{
  filter:saturate(.7) brightness(1.2);
}
html body #game[data-match-type="poker"][data-poker-premium="true"][data-poker-deck-theme="royal"] .poker-card-backs i{
  filter:sepia(.7) saturate(1.7) hue-rotate(353deg) brightness(1.1);
}
.poker-cosmetics-overlay{position:fixed;inset:0;z-index:99998;background:#020c09e8;display:grid;place-items:center;padding:12px;backdrop-filter:blur(6px)}
.poker-cosmetics-panel{width:min(610px,100%);max-height:calc(100dvh - 24px);overflow:auto;padding:19px;border:2px solid #d1ad68;border-radius:20px;background:linear-gradient(145deg,#214436,#081b16);color:#ffe6b4;box-shadow:0 20px 65px #000b}
.poker-cosmetics-panel h2{font-size:22px;margin:0 0 6px}.poker-cosmetics-panel h3{font-size:15px;margin:14px 0 8px}
.poker-cosmetics-panel p{font-size:12px;color:#e1d0aa;line-height:1.4}
.poker-cosmetics-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.poker-cosmetics-grid button,.poker-cosmetics-close{min-height:45px;border-radius:10px;border:1px solid #b89857;background:#12372c;color:#ffe8b8;font-weight:800;padding:9px;cursor:pointer}
.poker-cosmetics-grid button[aria-pressed="true"]{background:#b68a3f;color:#17120b;box-shadow:0 0 0 2px #f2d498}
.poker-cosmetics-close{width:100%;margin-top:14px;background:#ad8035;color:#10100b}
{.poker-cosmetics-panel{padding:12px}.poker-cosmetics-grid{grid-template-columns:1fr}.poker-cosmetics-grid button{min-height:38px}}


/* V2.1: baralhos distintos, não filtros de cor sobre a mesma carta. */
html body #game[data-match-type="poker"][data-poker-premium="true"][data-poker-deck-theme="crown"] .poker-card-backs i{background:url('/assets/pokerzin/card-back-v5.svg') center/cover no-repeat!important;filter:none!important}
html body #game[data-match-type="poker"][data-poker-premium="true"][data-poker-deck-theme="classic"] .poker-card-backs i{background:url('/assets/pokerzin/card-back-classic-v2.svg') center/cover no-repeat!important;filter:none!important}
html body #game[data-match-type="poker"][data-poker-premium="true"][data-poker-deck-theme="royal"] .poker-card-backs i{background:url('/assets/pokerzin/card-back-royal-v2.svg') center/cover no-repeat!important;filter:none!important}


/* V3.1 independent hand guide: never occupies or overlaps the table when closed.
   Its content is portal-rendered under <body> and stays outside game geometry. */
body > #poker-guide-curtain{
  position:fixed!important;inset:0!important;z-index:19000!important;
  background:rgba(0,10,8,.74);backdrop-filter:blur(4px);
}
body > #poker-guide-curtain.hidden{display:none!important}
body > #poker-hand-guide{
  position:fixed!important;z-index:19001!important;
  top:0!important;bottom:0!important;right:0!important;left:auto!important;
  width:min(390px,100vw)!important;max-width:100vw!important;
  height:100dvh!important;max-height:100dvh!important;
  display:flex!important;flex-direction:column!important;gap:5px!important;
  padding:calc(18px + env(safe-area-inset-top,0px)) 17px
          calc(18px + env(safe-area-inset-bottom,0px))!important;
  margin:0!important;box-sizing:border-box!important;
  border:1px solid #a9894e!important;border-radius:18px 0 0 18px!important;
  background:linear-gradient(150deg,#174334,#061b16)!important;color:#f9ecc8;
  box-shadow:-12px 0 40px #0009!important;overflow-y:auto!important;
  overscroll-behavior:contain;
}
body > #poker-hand-guide.hidden{display:none!important;}
body > #poker-hand-guide #poker-guide-close{
  display:block!important;position:sticky;top:0;flex:none;z-index:1;
  align-self:flex-end;min-height:44px;min-width:100px;
  padding:9px;border:1px solid #e4c585;border-radius:10px;
  background:#163a2e;color:#fff0cf;font-weight:800;cursor:pointer;
}
body > #poker-hand-guide .poker-guide-heading{
  display:grid!important;gap:6px;margin:5px 0 12px;
  color:#ffe9b5;flex:none;
}
body > #poker-hand-guide ol{
  display:grid!important;gap:5px!important;list-style:none!important;
  margin:0!important;padding:0!important;
}
body > #poker-hand-guide li{
  display:flex!important;align-items:center;gap:9px;
  padding:7px;border:1px solid #aa97664d;border-radius:9px;
}
body > #poker-hand-guide li strong{display:block!important;font-size:13px!important;}
body > #poker-hand-guide li small{display:block!important;font-size:11px!important;}
body > #poker-hand-guide li.current{border-color:#e8be65;background:#9e783531;}
body > #poker-hand-guide p{font-size:12px!important;color:#cbd9ce;line-height:1.4;}
html body #game #poker-guide-trigger{
  min-height:44px!important;border:1px solid #bca470!important;
  border-radius:9px!important;background:#123c2f!important;
  color:#f7e9c6!important;font-weight:800!important;
}
@media(max-width:900px) and (orientation:portrait){
 body > #poker-hand-guide{
  width:100vw!important;max-width:100vw!important;
  top:auto!important;bottom:0!important;height:min(75dvh,580px)!important;
  max-height:75dvh!important;border-radius:18px 18px 0 0!important;
  padding:14px 14px calc(14px + env(safe-area-inset-bottom,0px))!important;
 }
}
