:root { --lime:#c8ff3d; --blue:#4f63ff; }
body { margin:0; font:14px Manrope,Arial,sans-serif; }
button,input { font:inherit; } button { cursor:pointer; } button:disabled { cursor:not-allowed; opacity:.4; }
[hidden] { display:none!important; }
.app-shell { margin:auto; } .eyebrow { font-size:10px; letter-spacing:2px; font-weight:800; }
.notice { padding:14px 20px; border:1px solid var(--g-line); border-radius:14px; color:var(--g-ink); background:var(--g-paper); }
.topbar { display:flex; align-items:center; justify-content:space-between; gap:20px; padding-right:90px!important; }
.topbar__line,.topbar__room-meta,.topbar__actions { display:flex; align-items:center; gap:12px; }
.topbar__line h2 { margin:0; }.topbar__subtitle { color:var(--g-muted); font-size:12px; margin-bottom:0; }
.code-chip,.icon-chip { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:10px; background:var(--g-control-bg); color:var(--g-ink); border:1px solid var(--g-line); border-radius:12px; }
.code-chip svg { width:20px; height:20px; }.icon-chip svg { width:22px; height:22px; }
.compact-primary,.ghost-button { padding:12px 18px; border-radius:12px; border:1px solid var(--g-line); background:var(--g-control-bg); color:var(--g-ink); font-weight:700; }
.compact-primary { background:var(--lime); color:#172414; }
#start-practice { margin-top:12px; width:100%; min-height:44px; border:1px solid var(--g-line); border-radius:24px; background:transparent; color:var(--g-ink); font-size:12px; font-weight:700; }
.poker-surface { width:100%; max-width:1280px; margin:30px auto 0; }
.holdem-table { position:relative; height:620px; color:#f4f5e9; isolation:isolate; margin:0; }
.holdem-table:before { content:""; position:absolute; inset:0; z-index:-2; border:14px solid #443a33; border-radius:90px 90px 43% 43% / 70px 70px 24% 24%; background:radial-gradient(ellipse at 50% 38%,#246858,#0a352e); box-shadow:0 0 0 2px #827459,inset 0 0 0 3px #4b7665,0 12px 0 #17191c,0 18px 30px #0005; }
.holdem-table:after { content:""; position:absolute; inset:28px; z-index:-1; border:1px solid #d9e5b624; border-radius:66px 66px 42% 42% / 50px 50px 22% 22%; background:repeating-linear-gradient(28deg,transparent 0 3px,#ffffff01 3px 4px); }
.felt-brand { position:absolute; top:36px; left:50%; transform:translateX(-50%); display:flex; align-items:center; gap:8px; opacity:.5; font-size:10px; font-weight:800; letter-spacing:2px; }
.felt-brand img { width:30px; height:30px; }.felt-brand small { display:block; font-size:6px; letter-spacing:3px; margin-top:5px; text-align:center; }
.table-info { position:absolute; top:90px; left:50%; transform:translateX(-50%); display:flex; gap:12px; font-size:9px; color:#c0cdb1; white-space:nowrap; }
.community { position:absolute; left:50%; top:175px; transform:translateX(-50%); width:380px; text-align:center; }
.street { margin:0 0 10px; color:#d2e4b6; letter-spacing:2px; font-size:9px; font-weight:800; text-transform:uppercase; }
.pot { display:flex; align-items:center; justify-content:center; gap:8px; margin-bottom:20px; font-size:11px; }.pot strong { font-size:25px; margin-left:7px; font-variant-numeric:tabular-nums; }
.poker-chip { display:inline-grid; place-items:center; flex:none; width:30px; height:30px; border:1px solid #526722; border-radius:50%; color:#293c17; background:radial-gradient(circle,#c8e66a 0 52%,#819b3c 53% 57%,transparent 59%),repeating-conic-gradient(from 15deg,#fff3cf 0deg 17deg,#a7c837 17deg 60deg); box-shadow:inset 0 1px 2px #fff9,0 3px #435c24,0 5px 7px #001a2466; font-size:13px; font-weight:800; }
.board-cards { --card-width:66px; display:flex; justify-content:center; gap:9px; }
.poker-table .playing-card { flex:0 0 var(--card-width); width:var(--card-width); height:calc(var(--card-width)*1.42); position:relative; border:1px solid #e9e4d8; border-radius:7px; background:#f7f3e9; color:#3e4ce4; box-shadow:0 2px #b5b6b0,0 6px 10px #001b2433; overflow:hidden; }
.poker-table .playing-card.is-warm { color:#b34b2b; }
.poker-table .card-placeholder { display:grid; place-items:center; border:1px dashed #b2cdb636; background:#ffffff04; color:#d6e7bf19; box-shadow:none; font-size:26px; }
.poker-table .card-corner { position:absolute; top:5%; left:6%; font-size:calc(var(--card-width)*.21); line-height:1; font-weight:800; z-index:2; }
.poker-table .card-corner small { display:block; font-size:.72em; margin-top:2px; }
.poker-table .card-corner--bottom { inset:auto 6% 5% auto; transform:rotate(180deg); }
.poker-table .card-center { position:absolute; inset:16% 19%; display:flex; align-items:center; justify-content:center; }
.poker-table .card-center>span { font-size:calc(var(--card-width)*.55); }
.poker-table .card-back { border-color:#909cd2; background:#081127; }.card-back-art { width:100%; height:100%; object-fit:cover; display:block; }
.poker-table .card-back:before,.poker-table .card-back:after { display:none; }
.board-cards .playing-card { animation:card-in .3s ease-out; }
.community .table-status { min-height:18px; font-size:11px; line-height:1.5; margin:18px 0 0; }
.turn-clock { min-height:14px; margin:6px 0; font-size:9px; color:#d0ed9b; font-variant-numeric:tabular-nums; }
.poker-seat { position:absolute; width:180px; height:162px; transform:translateX(-50%); text-align:center; }
.poker-seat[data-position="0"] { left:35%; bottom:-4px; }
.poker-seat[data-position="2"] { left:14%; top:95px; }
.poker-seat[data-position="1"] { left:14%; bottom:95px; }
.poker-seat[data-position="5"] { left:65%; bottom:-4px; }
.poker-seat[data-position="4"] { left:86%; bottom:95px; }
.poker-seat[data-position="3"] { left:86%; top:95px; }
.seat-cards { margin:0 auto; --card-width:52px; display:flex; justify-content:center; gap:6px; height:83px; }
.poker-seat.is-self .seat-cards { --card-width:58px; }
.seat-cards .playing-card + .playing-card { margin-left:0; }
.seat-bet { position:absolute; top:36px; left:-28px; width:48px; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:3px; font-size:11px; color:#dce9bd; }
.seat-bet small { font-size:8px; color:#adc8b8; font-weight:400; }
.seat-identity { position:absolute; left:0; top:91px; width:100%; display:flex; justify-content:center; align-items:baseline; gap:5px; text-align:center; }
.seat-identity strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; font-weight:800; }
.seat-identity small { display:block; color:#afc5b6; font-size:9px; }
.seat-action { position:absolute; top:-20px; left:0; right:0; margin:0; font-size:9px; color:#c1d4be; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.poker-seat.is-turn .seat-identity strong,.poker-seat.is-turn .seat-action { color:#ddff8f; }
.poker-seat.is-turn .seat-cards { filter:drop-shadow(0 0 5px #c8ff3d55); }
.poker-seat.is-winner .seat-identity strong,.poker-seat.is-winner .seat-action { color:#f8d479; }
.seat-bankroll { position:absolute; top:120px; left:0; right:0; display:flex; justify-content:center; align-items:center; gap:8px; }
.seat-bankroll>strong { font-size:12px; line-height:17px; color:#eef3db; font-variant-numeric:tabular-nums; }
.poker-seat.is-folded .seat-cards { opacity:.25; }.poker-seat.is-folded .seat-action { color:#c6b5aa; }
.dealer-button { position:relative; flex:0 0 22px; display:grid; place-items:center; width:22px; height:22px; border-radius:50%; background:radial-gradient(circle at 35% 25%,#fffdf3,#e5d9b7); color:#354738; box-shadow:inset 0 1px 1px #fff,0 2px 0 #8a816b,0 3px 5px #001b2440; font-size:10px; line-height:1; font-weight:800; border:1px solid #f4ecd4; cursor:help; }
.dealer-button:before { content:""; position:absolute; inset:3px; border:1px solid #91866b80; border-radius:50%; pointer-events:none; }
.dealer-button:hover,.dealer-button:focus { z-index:10; }
.dealer-button:focus-visible { outline:2px solid #c8ff3d; outline-offset:4px; }
.dealer-tooltip { position:absolute; bottom:calc(100% + 10px); left:50%; transform:translateX(-50%); width:220px; padding:10px 12px; border:1px solid #6e826e; border-radius:10px; background:#102c25; color:#f4f5e9; box-shadow:0 6px 20px #0005; font-size:11px; font-weight:500; line-height:1.5; text-align:left; visibility:hidden; opacity:0; pointer-events:none; }
.dealer-button:hover .dealer-tooltip,.dealer-button:focus .dealer-tooltip { visibility:visible; opacity:1; }
.poker-seat:is([data-table-slot="0"],[data-table-slot="1"],[data-table-slot="2"]) .dealer-tooltip { left:0; transform:none; }
.poker-seat:is([data-table-slot="3"],[data-table-slot="4"],[data-table-slot="5"]) .dealer-tooltip { left:auto; right:0; transform:none; }
.poker-seat[data-table-slot] > .dealer-button { position:absolute; top:-50px; left:50%; right:auto; transform:translateX(-50%); }
.poker-seat:is([data-table-slot="1"],[data-table-slot="2"]) > .dealer-button { top:0; left:auto; right:-18px; transform:none; }
.poker-seat:is([data-table-slot="3"],[data-table-slot="4"]) > .dealer-button { top:0; left:-18px; right:auto; transform:none; }
.poker-seat.is-empty { display:flex; align-items:center; flex-direction:column; justify-content:flex-start; padding-top:14px; opacity:.35; }.empty-marker { display:grid; place-items:center; width:34px; height:34px; border-radius:50%; border:1px dashed #d1e4cb; font-size:21px; }.poker-seat.is-empty small { margin-top:8px; font-size:8px; }
/* Compact controls sit outside the felt, directly below the player's seat. */
.poker-console { width:410px; max-width:100%; margin:24px 0 28px calc(35% - 205px); padding:0; border:0; background:none; }
.console-summary { display:flex; justify-content:center; font-size:9px; margin-bottom:7px; color:var(--g-muted); }
.poker-console button,.primary-action { min-height:34px; border:1px solid var(--g-line); border-radius:18px; padding:6px 12px; background:var(--g-control-bg); color:var(--g-ink); font-size:11px; font-weight:800; }
.poker-console .primary-action,.primary-action { background:#c8ff3d; border-color:#c8ff3d; color:#172514; }
.action-row { display:grid; grid-template-columns:1fr 1.4fr 1fr; gap:6px; }.poker-console .fold { color:#eeab9c; }
#raise-form { display:grid; grid-template-columns:auto minmax(50px,1fr) auto; gap:6px; align-items:center; margin-top:6px; }
#raise-form label { font-size:9px; color:var(--g-muted); }
#raise-amount { width:100%; min-width:0; height:30px; border:1px solid var(--g-line); background:var(--g-control-bg); border-radius:9px; color:var(--g-ink); padding:5px 8px; font-size:11px; }
#raise { min-height:30px; background:#4f63ff; color:#fff; border-color:#4f63ff; }
.raise-presets { display:flex; justify-content:flex-end; gap:5px; margin-top:4px; }.raise-presets button { min-height:22px; font-size:8px; padding:3px 10px; background:transparent; }
#ready-controls { text-align:center; }#ready-controls>.primary-action { min-width:160px; }#ready-note,#waiting { margin:6px 0 0; text-align:center; font-size:10px; color:var(--g-muted); line-height:1.5; }
body[data-phase="finished"] .console-summary,body[data-phase="finished"] #ready-note { display:none; }
.hand-summary { margin:-10px 0 14px; color:#f8d479; }
.hand-summary h3 { margin:0 0 6px; font-size:9px; font-weight:800; text-transform:uppercase; letter-spacing:2px; }
.winner-list { display:flex; flex-wrap:wrap; justify-content:center; gap:8px 18px; max-height:110px; overflow:auto; }
.winner-result { display:grid; grid-template-columns:auto auto; align-items:baseline; gap:3px 8px; min-width:0; }
.winner-result>strong { max-width:190px; overflow:hidden; text-overflow:ellipsis; font-size:22px; }.winner-amount { font-size:18px; font-weight:800; }
.winner-result small { grid-column:1/-1; font-size:10px; color:#d9e4cb; }
body[data-phase="finished"] .community>.street,body[data-phase="finished"] .community>.pot,body[data-phase="finished"] #table-status { display:none; }
body[data-phase="finished"] .turn-clock { margin-top:12px; }
.poker-seat.is-turn .seat-identity:after { content:""; position:absolute; top:-5px; left:30px; right:30px; height:2px; border-radius:3px; background:#c8ff3d; transform:scaleX(var(--turn-left,1)); transform-origin:left; transition:transform .25s linear; }
.poker-notes { display:grid; grid-template-columns:repeat(3,1fr); gap:30px; padding:28px 10px; font-size:12px; line-height:1.7; color:var(--g-muted); }.poker-notes b { display:block; color:var(--g-ink); margin-bottom:8px; }
dialog { max-width:min(660px,calc(100% - 24px)); max-height:85vh; padding:30px; background:var(--g-paper); color:var(--g-ink); border:1px solid var(--g-line); border-radius:24px; }dialog::backdrop { background:#000b; }dialog p,dialog li { font-size:13px; line-height:1.7; }dialog li+li { margin-top:10px; }.dialog-close { float:right; background:none; border:0; color:inherit; font-size:28px; }
@keyframes card-in { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }
@media(max-width:1000px) { .poker-seat { width:170px; }.poker-seat[data-position="1"],.poker-seat[data-position="2"] { left:15%; }.poker-seat[data-position="3"],.poker-seat[data-position="4"] { left:85%; }.community { width:330px; }.board-cards { --card-width:60px; gap:6px; }.topbar { align-items:flex-start; }.topbar__actions { flex-wrap:wrap; justify-content:flex-end; } }
@media(max-width:800px) {
  .topbar { flex-direction:column; padding-right:65px!important; }.topbar__actions { justify-content:flex-start; }.topbar__line { flex-wrap:wrap; }.topbar__line h2 { font-size:32px!important; }.topbar__room-meta { gap:7px; }.code-chip,.icon-chip { padding:8px; }
  .holdem-table { height:780px; margin:0; }.holdem-table:before { border-width:9px; border-radius:45px 45px 80px 80px; }.holdem-table:after { inset:18px; border-radius:30px 30px 65px 65px; }
  .winner-list { max-height:80px; }.felt-brand { top:28px; }.table-info { top:75px; }.community { top:255px; width:100%; }.board-cards { --card-width:46px; gap:5px; }.pot { margin-bottom:14px; }.community .table-status { max-width:250px; margin:14px auto 0; font-size:10px; }
  .poker-seat { width:calc(50% - 18px); max-width:180px; height:132px; }
  .poker-seat[data-position="0"],.poker-seat[data-position="1"],.poker-seat[data-position="2"] { left:26%; }
  .poker-seat[data-position="3"],.poker-seat[data-position="4"],.poker-seat[data-position="5"] { left:74%; }
  .poker-seat[data-position="2"],.poker-seat[data-position="3"] { top:115px; }
  .poker-seat[data-position="1"],.poker-seat[data-position="4"] { bottom:150px; }
  .seat-identity { top:62px; }.seat-identity strong { font-size:10px; }.seat-identity small { font-size:8px; margin-top:3px; }
  .poker-seat.is-turn .seat-identity:after { left:calc(50% - 40px); right:calc(50% - 40px); }
  .seat-cards { --card-width:36px; margin:0 auto; width:80px; height:54px; gap:4px; }.poker-seat.is-self .seat-cards { --card-width:36px; }
  .seat-action { left:0; right:0; font-size:8px; text-align:center; }
  .seat-bet { top:22px; left:-4px; width:32px; gap:1px; font-size:10px; }.seat-bet small { font-size:7px; }
  .seat-bankroll { top:89px; left:0; right:0; gap:6px; }.seat-bankroll>strong { font-size:10px; line-height:12px; }
  .bankroll-pile { --chip-size:23px; --chip-height:18px; }.bankroll-chip { font-size:6px; }.bankroll-chip:before { inset:2px 3px; }.bankroll-stacks { gap:2px; }
  .dealer-button { flex-basis:20px; width:20px; height:20px; font-size:9px; }
  .poker-console { margin:24px auto; width:360px; }.poker-notes { grid-template-columns:1fr; gap:8px; }footer { font-size:8px; }.poker-surface { margin-top:22px; }
}
@media(max-width:420px) { .poker-console { padding:0 4px; }.winner-result>strong { font-size:18px; }.table-info { font-size:8px; } }
@media(prefers-reduced-motion:reduce) { .board-cards .playing-card { animation:none; } }

.blinds-info { position:relative; display:inline-flex; align-items:center; gap:6px; }
.blinds-help { display:grid; place-items:center; box-sizing:border-box; width:18px; height:18px; padding:0; border:1px solid #c0cdb14d; border-radius:50%; background:#082d254d; color:#d7e5ce; font-size:10px; font-weight:800; line-height:1; cursor:help; }
.blinds-help:hover,.blinds-help:focus-visible { border-color:#c8ff3d; color:#c8ff3d; }
.blinds-help:focus-visible { outline:2px solid #c8ff3d; outline-offset:3px; }
.blinds-tooltip { position:absolute; top:100%; right:0; z-index:5; box-sizing:border-box; width:260px; max-width:calc(100vw - 40px); padding:12px 14px; border:1px solid #54796a; border-radius:12px; background:#102f27; box-shadow:0 8px 24px #00171066; color:#f4f5e9; font-size:11px; font-weight:400; line-height:1.6; white-space:normal; text-align:left; }
.blinds-tooltip strong { display:block; margin-bottom:5px; font-size:12px; }

#rules-dialog { width:660px; max-width:calc(100% - 24px); max-height:85svh; overflow:auto; scrollbar-width:thin; }
#rules-dialog .dialog-close { position:sticky; top:0; display:grid; place-items:center; width:34px; height:34px; padding:0; border:1px solid var(--g-line); border-radius:50%; background:var(--g-paper); z-index:1; line-height:1; }
#rules-dialog h2 { margin:0 36px 14px 0; font-size:28px; line-height:1.2; }
#rules-dialog .eyebrow { margin-bottom:10px; font-size:9px; }
#rules-dialog .rules-lead { color:var(--g-muted); }
.rules-quickstart,.rules-example { padding:16px 18px; margin:18px 0; border:1px solid var(--g-line); border-radius:14px; background:var(--g-control-bg); }
.rules-quickstart>strong,.rules-example>strong { font-size:13px; }
.rules-quickstart p,.rules-example p { margin:8px 0; }
.rules-quickstart small { display:block; color:var(--g-muted); line-height:1.6; font-size:11px; }
.rules-section { border-top:1px solid var(--g-line); padding:0 0 2px; }
.rules-section>summary { padding:16px 0; cursor:pointer; font-size:13px; font-weight:800; line-height:1.5; }
.rules-section>summary:hover { color:var(--g-muted); }
.rules-section>summary:focus-visible { outline:2px solid #9bbf39; outline-offset:2px; border-radius:4px; }
#rules-dialog .rules-section p,#rules-dialog .rules-section li { font-size:12px; }
.rules-section ul { padding-left:20px; }
.rules-streets { padding-left:23px; margin:16px 0 20px; }
.rules-streets li::marker { font-weight:800; color:#9bbf39; }
.rules-streets li>div { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:4px 12px; }
.rules-streets li>div>span { font-size:10px; color:var(--g-muted); }
.rules-streets li p { margin:5px 0 16px; color:var(--g-muted); }
.rules-actions { margin:0 0 16px; }
.rules-actions>div { display:grid; grid-template-columns:105px minmax(0,1fr); gap:12px; padding:12px 0; border-bottom:1px solid var(--g-line); }
.rules-actions dt { font-size:12px; font-weight:800; }
.rules-actions dd { margin:0; color:var(--g-muted); font-size:12px; line-height:1.7; }
.rules-footnote { color:var(--g-muted); }
#rules-done { margin-top:18px; width:100%; min-height:42px; }
@media(max-width:600px) {
  #rules-dialog { padding:20px; }
  #rules-dialog h2 { font-size:24px; }
  .rules-actions>div { grid-template-columns:1fr; gap:4px; }
  .rules-quickstart,.rules-example { padding:14px; }
}
