#pokerView{--poker-green:#166958;--poker-gold:#eed393;--poker-muted:#698078}
#pokerView .page-heading p:not(.kicker){margin:8px 0;color:var(--text-secondary,#64748b);font-size:14px}
.poker-room-card small,.poker-control-info small{color:var(--text-secondary,#64748b)}
.poker-notice{min-height:1.4em;font-size:14px;color:var(--text-secondary,#526e75);overflow-wrap:anywhere}
.poker-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.poker-mode{padding:26px!important;display:flex;align-items:flex-start;flex-direction:column;gap:18px}
.poker-mode h2{margin:6px 0}
.poker-mode p{margin:8px 0}
.poker-mode small{line-height:1.7;color:var(--text-secondary,#637b80)}
.poker-mode-icon{display:grid;place-items:center;width:48px;height:48px;background:#17695515;border-radius:14px;font-size:30px;color:var(--poker-green)}
.poker-mode-practice .poker-mode-icon{background:#927cde1a;color:#7762ac}
.poker-mode button{margin-top:auto}
.poker-list-heading{display:flex;align-items:center;justify-content:space-between;margin:28px 0 16px}
.poker-list-heading h2{margin:0}
.poker-rooms{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}
.poker-room-card{display:flex;flex-direction:column;gap:12px;padding:22px!important}
.poker-room-card p{font-size:14px;margin:0;color:var(--text-secondary,#637b80)}
.poker-room-card>strong{font-size:23px}
.poker-room-card small{font-weight:400;font-size:12px}
.poker-room-card button{margin-top:5px}
.poker-room-title{display:flex;gap:10px;align-items:flex-start;justify-content:space-between}
.poker-room-title h3{margin:0;overflow-wrap:anywhere;font-size:18px}
.poker-badge{display:inline-flex;align-items:center;white-space:nowrap;border-radius:30px;padding:6px 11px;background:#16695815;color:var(--poker-green);font-size:12px}
.poker-empty{grid-column:1/-1;text-align:center;padding:35px!important}
.poker-empty>span{font-size:26px;letter-spacing:.5em;color:var(--poker-green)}
.poker-empty p{color:var(--text-secondary,#637b80)}
.poker-rules,.poker-history{padding:20px!important;margin-top:20px;line-height:1.85;font-size:14px}
.poker-rules summary,.poker-history summary{cursor:pointer;font-weight:600}
.poker-resume{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:18px;border-radius:16px;background:#16695812;margin-bottom:20px}
/* Original table presentation. Motion concepts informed by Pip and Elite-Poker. */
#pokerView {
  --poker-cloth:#17654e; --poker-cloth-light:#24846a; --poker-cloth-dark:#0e493a;
  --poker-rail:#252b2b; --poker-room:#15221f; --poker-paper:#fffdf5; --poker-ink:#202a28;
  --poker-cream:#f5e8c2; --poker-gold:#e7c17b; --poker-soft:#bcd2c5; --poker-red:#ad3545;
  --color-base-100:#fffdf5; --color-base-200:#f2ede2; --color-base-300:#e3ddce; --color-base-content:#203d34;
  --color-primary:#1a624d; --color-primary-content:#fffdf5; --color-secondary:#e7c17b; --color-secondary-content:#24382f;
  --color-accent:#e7c17b; --color-accent-content:#24382f; --color-neutral:#263a33; --color-neutral-content:#fffdf5;
  --color-info:#2468e8; --color-info-content:#fff; --color-success:#17654e; --color-success-content:#fff;
  --color-warning:#e7c17b; --color-warning-content:#24382f; --color-error:#ad3545; --color-error-content:#fff;
  --radius-field:.65rem; --radius-selector:.65rem; --radius-box:1rem; --size-field:.25rem; --size-selector:.25rem;
  --border:1px; --depth:1; --noise:0;
}
#pokerView *,#pokerView *::before,#pokerView *::after {box-sizing:border-box}
#pokerView ::selection {background:var(--poker-gold);color:var(--poker-ink)}
#pokerView button:focus-visible,#pokerView input:focus-visible,#pokerView summary:focus-visible {outline:3px solid #2468e8;outline-offset:3px}
#pokerView button:disabled {opacity:.45;cursor:not-allowed}
#pokerView .pk-btn {font:inherit;font-weight:650;min-height:44px;line-height:1.2;cursor:pointer;gap:.5rem;box-shadow:none;border-radius:.65rem;text-transform:none;letter-spacing:0}
.poker-extension-nav {margin-bottom:18px}
.poker-room-screen {min-width:0;width:100%;max-width:1320px;margin-inline:auto;container-type:inline-size;container-name:pokerRoom}
.poker-toolbar {display:flex;align-items:center;gap:18px;margin:0 0 10px}
.poker-toolbar .poker-quiet {padding:10px 12px}
.poker-room-heading {flex:1;min-width:0}
.poker-room-heading h2 {font-size:1.375rem;margin:0 0 4px;overflow-wrap:anywhere;letter-spacing:-.02em}
.poker-room-heading small {font-size:.8125rem;color:var(--text-secondary,#526c64)}
.poker-room-tools {display:flex;gap:4px;align-items:center}
#pokerView .poker-quiet {border:0;background:transparent;color:var(--text-secondary,#526c64);box-shadow:none}
#pokerView .poker-quiet:hover {background:#17654e0d;color:#174e3d}
#pokerView .poker-notice:empty {display:none}
.poker-table {position:relative;isolation:isolate;height:clamp(580px,50cqw,660px);container-type:inline-size;background:radial-gradient(ellipse at 50% 40%,#30473e 0,var(--poker-room) 72%);border-radius:20px;box-shadow:0 18px 38px #132b241a;color:var(--poker-paper);overflow:hidden}
.poker-felt {position:absolute;inset:64px 54px;border:21px solid var(--poker-rail);border-radius:50%;background:radial-gradient(ellipse at 50% 30%,var(--poker-cloth-light),var(--poker-cloth) 58%,var(--poker-cloth-dark));box-shadow:0 10px 0 #0b1211,0 17px 24px #0008,inset 0 4px 16px #001e1580;transform:perspective(1100px) rotateX(9deg)}
.poker-felt::before {content:'';position:absolute;inset:-15px;border:1px dashed #83897975;border-radius:50%;pointer-events:none}
.poker-felt::after {content:'';position:absolute;inset:0;border-radius:inherit;background:repeating-linear-gradient(14deg,#ffffff05 0 1px,transparent 1px 3px);mix-blend-mode:soft-light;pointer-events:none}
.poker-felt-line {position:absolute;inset:111px 111px;border:1px solid #afc6a54a;border-radius:50%;pointer-events:none;transform:perspective(1100px) rotateX(9deg)}
.poker-community {position:absolute;left:50%;top:47%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:12px;z-index:2;width:max-content;max-width:100%;text-align:center}
.poker-street {font-size:.8125rem;color:#d3e4d7;min-height:20px}
.poker-board {display:flex;justify-content:center;gap:8px;perspective:600px}
.poker-card {position:relative;display:inline-flex;flex-shrink:0;width:56px;height:78px;background:linear-gradient(135deg,#fffef9,#eeeade);color:var(--poker-ink);border-radius:5px;box-shadow:0 3px 0 #c2bfb3,0 5px 8px #001c1860;line-height:1;font-family:Georgia,'Times New Roman',serif;transform-origin:50% 80%;backface-visibility:hidden}
.poker-card-corner {position:absolute;left:5px;top:5px;display:flex;align-items:center;flex-direction:column;gap:1px;line-height:.9}
.poker-card-corner b {font-size:19px;font-weight:700}
.poker-card-corner i {font-size:13px;font-style:normal}
.poker-card-corner-bottom {left:auto;top:auto;right:5px;bottom:5px;transform:rotate(180deg)}
.poker-card-pip {position:absolute;left:50%;top:51%;transform:translate(-50%,-50%);font-size:29px}
.poker-card-red {color:var(--poker-red)}
.poker-card-back {background:repeating-conic-gradient(#143f58 0 25%,#20526c 0 50%) 0 0 / 7px 7px;border:3px solid #ece4cc;box-shadow:0 3px 0 #a9a68e,0 5px 8px #001c1855}
.poker-card-seal {position:absolute;inset:7px;border:1px solid #cabd8e;border-radius:50%;background:radial-gradient(ellipse,#d0bd81 0 9%,transparent 10% 22%,#d0bd8155 23% 25%,transparent 26%)}
.poker-card-slot {background:#032b2326;border:1px solid #bcd2c53d;box-shadow:inset 0 2px 5px #062d232b}
.poker-deck {position:absolute;left:40%;top:27%;width:30px;height:42px;transform:rotate(-16deg);z-index:1}
.poker-deck i {position:absolute;inset:0;border:2px solid #e6ddc1;background:repeating-conic-gradient(#143f58 0 25%,#20526c 0 50%) 0 0 / 6px 6px;border-radius:3px;box-shadow:0 2px 3px #001c1866}
.poker-deck i:nth-child(1) {transform:translate(-2px,4px)}
.poker-deck i:nth-child(2) {transform:translate(-1px,2px)}
.poker-pot {display:flex;align-items:center;justify-content:center;gap:13px;min-height:47px}
.poker-pot>div {display:flex;flex-direction:column;align-items:flex-start;gap:3px}
.poker-pot small {font-size:.6875rem;color:#d3e4d7}
.poker-pot strong {font-size:1.625rem;font-weight:700;color:var(--poker-cream);font-variant-numeric:tabular-nums;line-height:1}
.poker-pot-chips {display:inline-flex;align-items:center;justify-content:center;width:40px;height:36px}
.poker-turn {font-size:.75rem;color:#d3e4d7;min-height:18px;margin:0}
.poker-turn strong {color:var(--poker-cream);margin-left:8px;font-variant-numeric:tabular-nums}
.poker-chips {position:relative;display:inline-flex;width:30px;height:25px;transform:rotateX(25deg);vertical-align:middle}
.poker-chip {position:absolute;left:0;bottom:calc(var(--chip-layer)*3px);display:block;width:29px;height:23px;border-radius:50%;background:repeating-conic-gradient(var(--chip-color) 0 27deg,#f3e5c7 27deg 39deg,var(--chip-color) 39deg 60deg);border:1px solid var(--chip-edge);box-shadow:0 2px 0 var(--chip-edge),0 3px 3px #0004}
.poker-chip::after {content:'';position:absolute;inset:4px;border:1px dashed #fff9;border-radius:50%;background:var(--chip-color)}
.poker-chip-gold {--chip-color:#b38b3f;--chip-edge:#735518}
.poker-chip-blue {--chip-color:#386785;--chip-edge:#183f5a}
.poker-chip-red {--chip-color:#b54c4e;--chip-edge:#792c32}
.poker-chip-ivory {--chip-color:#d6cdb7;--chip-edge:#9a8b6b}
.poker-bets,.poker-seats {position:absolute;inset:0;pointer-events:none}
.poker-bet {position:absolute;left:var(--seat-x);top:var(--seat-y);transform:translate(-50%,-50%);display:flex;align-items:center;gap:7px;min-width:35px;min-height:25px;z-index:3}
.poker-bet strong {font-size:.75rem;color:var(--poker-cream);font-variant-numeric:tabular-nums;font-weight:650}
.poker-bet-empty {opacity:0}
.poker-seat {position:absolute;left:var(--seat-x);top:var(--seat-y);transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;width:132px;z-index:4;pointer-events:auto}
.poker-hole {position:absolute;display:flex;justify-content:center;gap:4px;bottom:84px;min-height:42px;z-index:0;transform:rotate(-4deg);perspective:600px}
.poker-hole .poker-card {width:36px;height:50px}
.poker-hole .poker-card:first-child {transform:rotate(-8deg)}
.poker-hole .poker-card:nth-child(2) {transform:rotate(8deg)}
.poker-hole .poker-card-corner {left:3px;top:3px}
.poker-hole .poker-card-corner-bottom {right:3px;bottom:3px;left:auto;top:auto}
.poker-hole .poker-card-corner b {font-size:13px}
.poker-hole .poker-card-corner i {font-size:9px}
.poker-hole .poker-card-pip {font-size:19px}
.poker-avatar-wrap {position:relative;display:grid;place-items:center;width:50px;height:50px;z-index:2;margin-bottom:-4px}
.poker-avatar {display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:radial-gradient(circle at 35% 25%,#b99775,#6c4c37);box-shadow:0 3px 6px #00181066;color:#fff7e4;font-size:1.125rem;font-weight:600;border:2px solid #dfcfad}
.poker-avatar-bot {background:radial-gradient(circle at 35% 25%,#648887,#314f56);border-color:#abc5bf}
.poker-timer {position:absolute;inset:0;overflow:visible;transform:rotate(-90deg);opacity:0}
.poker-timer circle {fill:none;stroke:#ffffff25;stroke-width:2.5}
.poker-timer .poker-timer-progress {stroke:var(--poker-gold);stroke-width:3;stroke-dasharray:138.23;stroke-linecap:round;transition:stroke-dashoffset .25s linear,stroke .2s}
.poker-seat-turn .poker-timer {opacity:1}
.poker-seat-urgent .poker-timer-progress {stroke:#ff9385}
.poker-dealer {position:absolute;right:-4px;bottom:2px;display:grid;place-items:center;width:21px;height:21px;border-radius:50%;color:#24362d;background:var(--poker-cream);box-shadow:0 2px 3px #00191066;font-size:.6875rem;z-index:3}
.poker-seat-plate {width:100%;position:relative;display:flex;flex-direction:column;align-items:center;background:linear-gradient(#34433c,#1e2b26);border-radius:9px;padding:8px 9px 7px;box-shadow:0 4px 8px #001c1859}
.poker-seat-name {display:flex;align-items:center;justify-content:center;gap:5px;max-width:100%;font-size:.75rem;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#e7e9dc;font-weight:500}
.poker-seat-name>span {font-size:.5625rem;border:1px solid #dcc48366;border-radius:3px;padding:0 3px;color:var(--poker-cream)}
.poker-stack {font-size:1rem;line-height:1.4;letter-spacing:.01em;font-variant-numeric:tabular-nums;color:var(--poker-cream)}
.poker-seat-status {min-height:20px;line-height:1.5;padding:2px 9px 0;font-size:.6875rem;color:#d2e0d6;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.poker-seat-turn .poker-seat-plate {background:linear-gradient(#49634c,#2c4938);box-shadow:0 4px 8px #001c1859,inset 0 0 0 1px #e7c17b}
.poker-seat-own .poker-seat-plate {background:linear-gradient(#314b40,#142c22)}
.poker-seat-own .poker-hole {bottom:75px;gap:5px;z-index:1}
.poker-seat-own .poker-hole .poker-card {width:49px;height:68px}
.poker-seat-own .poker-hole .poker-card-corner b {font-size:17px}
.poker-seat-own .poker-hole .poker-card-corner i {font-size:12px}
.poker-seat-own .poker-hole .poker-card-pip {font-size:27px}
.poker-seat-own .poker-avatar-wrap {margin-bottom:-6px;transform:translateY(5px)}
.poker-seat-own .poker-avatar {width:35px;height:35px;font-size:.875rem}
.poker-seat-folded .poker-hole,.poker-seat-folded .poker-avatar,.poker-seat-folded .poker-seat-plate {opacity:.45;filter:saturate(.35)}
.poker-seat-winner .poker-seat-plate {background:linear-gradient(#5c5637,#353c27);box-shadow:0 4px 8px #001c1859,inset 0 0 0 1px var(--poker-gold)}
.poker-seat-winner .poker-seat-status {font-weight:700;color:var(--poker-gold)}
.poker-seat-action {color:var(--poker-cream);font-weight:650}
.poker-seat-empty {gap:4px;width:74px;color:#cad8cf}
.poker-empty-seat-number {display:grid;place-items:center;width:39px;height:39px;border-radius:50%;border:1px dashed #c5d1bf73;background:#122b2345;font-size:.875rem}
.poker-seat-empty small {font-size:.6875rem;color:#b8cfc1}
.poker-motion-layer {position:absolute;inset:0;pointer-events:none;z-index:8;overflow:hidden}
.poker-flying-token {position:absolute;display:block;width:30px;height:30px;transform:translate(-50%,-50%);pointer-events:none}
.poker-table-caption {position:absolute;bottom:18px;left:22px;right:22px;font-size:.625rem;color:#adc4b3;text-align:right}
.poker-controls {display:grid;grid-template-columns:minmax(140px,1fr) minmax(400px,2fr) auto;align-items:center;column-gap:14px;row-gap:12px;padding:18px;background:#fffdf7;border-radius:0 0 16px 16px;box-shadow:0 8px 18px #17372a0a;position:relative;z-index:10}
.poker-control-info {display:flex;flex-direction:column;gap:5px;min-width:0;grid-column:1;grid-row:1}
.poker-control-info>strong {font-size:.9375rem;color:#1d4335;overflow-wrap:anywhere}
.poker-control-info>small {font-size:.6875rem;color:#536b60;font-variant-numeric:tabular-nums;line-height:1.6}
.poker-action-buttons {display:flex;gap:8px;grid-column:2;grid-row:1;justify-content:flex-end;align-items:center;flex-wrap:wrap}
#pokerView .poker-action-buttons .pk-btn {flex:1;padding:12px 16px;font-size:.875rem;white-space:nowrap;min-width:75px}
#pokerView .poker-fold {background:#efece4;color:#5d6054;border-color:transparent}
#pokerView .poker-call {background:#265846;color:#fffdf4;border-color:transparent}
#pokerView .poker-raise {background:#e9ce93;color:#3a3627;border-color:transparent}
#pokerView .poker-allin {background:#fffdf7;color:#953d3b;border-color:#d9c4b6}
#pokerView .poker-action-buttons .pk-btn:hover {filter:brightness(.95)}
#pokerView .poker-action-buttons .pk-btn:active {transform:translateY(1px)}
.poker-leave {grid-column:3;grid-row:1;align-self:center;font-size:.75rem!important}






.poker-quick-bets {display:flex;gap:5px}
#pokerView .poker-quick {min-height:36px;padding:7px 11px;background:#efece3;border:0;color:#4d5f50;font-size:.6875rem;border-radius:6px;white-space:nowrap}
.poker-result {margin-top:14px;padding:15px 18px;background:#eee8d7;border-radius:10px;color:#405137;line-height:1.7}
.poker-result>div {display:flex;gap:18px;flex-wrap:wrap;align-items:center}
.poker-result strong {font-size:.8125rem}
.poker-result span {font-size:.875rem;font-variant-numeric:tabular-nums;font-weight:600}
.poker-result small {display:block;margin-top:3px;color:#5d6850;font-size:.75rem}
.poker-history {margin-top:14px;padding:14px 0;font-size:.8125rem;color:var(--text-secondary,#526c64);border-bottom:1px solid #d8e1dc}
.poker-history summary {cursor:pointer;min-height:24px}
.poker-history summary>span {margin-left:8px;color:var(--text-secondary,#526c64);font-weight:400;font-size:.6875rem}
.poker-history ol {line-height:1.8;max-height:180px;overflow:auto;scrollbar-color:#9eafa2 transparent;scrollbar-width:thin}
.poker-room-help {padding:14px 0;font-size:.8125rem;line-height:1.8;color:var(--text-secondary,#526c64);max-width:72ch}
.poker-dialog {
  --pd-bg:var(--panel,#fff);--pd-text:var(--ink,#1c273a);--pd-secondary:var(--muted,#64748b);
  --pd-line:var(--line,#dce3ee);--pd-fill:var(--canvas,#f5f7fb);--pd-accent:var(--blue,#6676b0);--pd-button:#fff;
  position:fixed!important;inset:0;margin:auto;
  box-sizing:border-box;width:min(560px,calc(100vw - 32px));max-height:calc(100dvh - 40px);
  padding:0;border:0;border-radius:16px;background:var(--pd-bg);color:var(--pd-text);
  box-shadow:0 24px 80px #101b3540;overflow:auto;overscroll-behavior:contain;
  scrollbar-width:thin;scrollbar-color:var(--pd-line) transparent;color-scheme:light;
}
.poker-dialog[data-site-themed="true"] {
  --pd-bg:var(--site-block-background,var(--site-elevated));--pd-text:var(--site-text);
  --pd-secondary:var(--site-secondary);--pd-line:var(--site-border);--pd-fill:var(--site-fill);
  --pd-accent:var(--site-accent);--pd-button:var(--site-button-text);
  border-radius:var(--site-block-radius,16px);
}
html[data-site-mode="dark"] .poker-dialog{color-scheme:dark}
.poker-dialog::backdrop{background:var(--site-overlay-dim,#17243b66);backdrop-filter:none}
.poker-dialog *{box-sizing:border-box}
.poker-dialog ::selection{background:var(--pd-accent);color:var(--pd-button)}
.poker-dialog-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:28px 28px 22px;border-bottom:1px solid var(--pd-line)}
.poker-dialog .poker-dialog-header h2{margin:0;color:var(--pd-text);font-size:23px;font-weight:750;line-height:1.35;letter-spacing:-.02em}
.poker-dialog p{line-height:1.7;font-size:14px;margin:0;color:var(--pd-secondary)}
.poker-dialog .poker-dialog-header p{margin-top:8px;font-size:13px}
.poker-dialog .pk-btn{font:inherit;font-weight:650;min-height:44px;border-radius:10px;cursor:pointer;text-transform:none;box-shadow:none;transition:background-color .16s,color .16s}
.poker-dialog .poker-dialog-close{display:grid;place-items:center;flex:none;width:44px;height:44px;padding:0;margin:-8px -10px 0 0;border:0;background:transparent;color:var(--pd-secondary)}
.poker-dialog .poker-dialog-close:hover{background:var(--pd-fill);color:var(--pd-text)}
.poker-dialog-content{padding:24px 28px 0}
.poker-dialog-content>.extension-form{gap:20px;background:transparent}
.poker-dialog-content>p{margin:20px 0}
.poker-dialog .extension-form label{gap:9px;font-size:14px;font-weight:650;color:var(--pd-text);min-width:0}
.poker-dialog .extension-form :is(input,select){width:100%;max-width:none;min-width:0;min-height:46px;padding:11px 13px;border:1px solid var(--pd-line);border-radius:10px;background:var(--pd-fill);color:var(--pd-text);font:inherit;font-weight:500;caret-color:var(--pd-accent)}
.poker-dialog .extension-form input::placeholder{color:var(--pd-secondary);opacity:1}
.poker-dialog :is(button,input,select):focus-visible{outline:2px solid var(--pd-accent);outline-offset:3px}
.poker-dialog .extension-form small{color:var(--pd-secondary);font-size:12px;font-weight:400;line-height:1.7}
.poker-dialog-fields{display:grid;grid-template-columns:1fr 1fr;gap:20px 16px}
.poker-dialog-fields>label:last-child:nth-child(odd){grid-column:1/-1}
.poker-dialog-note{padding:16px 18px;background:var(--pd-fill);border-radius:10px}
.poker-dialog-note strong{display:block;color:var(--pd-text);font-size:14px;margin-bottom:6px}
.poker-dialog .poker-dialog-note p{font-size:13px}
.poker-dialog .extension-actions{position:sticky;bottom:0;z-index:1;margin:4px -28px 0;padding:18px 28px 24px;background:var(--pd-bg);border-top:1px solid var(--pd-line);gap:10px}
.poker-dialog .extension-actions .pk-btn{padding:12px 20px;min-width:90px;font-size:14px;border:1px solid var(--pd-line)}
.poker-dialog .primary-button{background:var(--pd-accent);color:var(--pd-button);border-color:transparent!important}
.poker-dialog .secondary-button{background:var(--pd-fill);color:var(--pd-text)}
.poker-dialog .extension-actions button:hover:not(:disabled){filter:brightness(.96)}
.poker-dialog button:disabled{cursor:not-allowed;opacity:.5}
.poker-dialog [role=alert]:empty{display:none}
.poker-dialog [role=alert]:not(:empty){padding:12px 14px;border:1px solid currentColor;border-radius:9px;font-size:13px;color:var(--pd-text)}
@media(max-width:540px){
  .poker-dialog{max-height:calc(100dvh - 24px);width:calc(100vw - 24px)}
  .poker-dialog-header{padding:22px 20px 18px}.poker-dialog .poker-dialog-header h2{font-size:21px}
  .poker-dialog-content{padding:20px 20px 0}.poker-dialog .extension-actions{margin-left:-20px;margin-right:-20px;padding:16px 20px 20px}
  .poker-dialog .extension-actions .pk-btn{flex:1;min-width:0;padding:12px 10px}
  .poker-dialog-fields{gap:18px 12px}
}
.poker-entry {border:0;cursor:pointer;text-align:left;font:inherit;width:100%;color:white;background:linear-gradient(145deg,#407d70,#123b34)}
.poker-entry .extension-placeholder {background:transparent;color:#eed393}
.poker-entry .extension-copy {background:linear-gradient(transparent,#0a2c2ad9)}
.poker-resume {display:flex;justify-content:space-between;align-items:center;gap:15px;padding:18px;border-radius:16px;background:#16695812;margin-bottom:20px}
#pokerView:fullscreen {background:var(--bg-primary,#f5f8fc);padding:18px clamp(12px,4vw,70px);overflow:auto}
#pokerView:fullscreen .poker-room-screen {max-width:1250px;margin:auto}
@media(min-width:701px) and (max-width:1100px) {.poker-modes{grid-template-columns:1fr}.poker-mode{display:grid;grid-template-columns:auto 1fr auto;align-items:center}.poker-mode button{margin:0}.poker-mode>small{grid-column:2/-1}}
@media(min-width:701px) {
  @container(max-width:850px) {
    .poker-seat {width:108px}.poker-seat-name {font-size:.6875rem}.poker-hole{bottom:78px}.poker-avatar-wrap{width:44px;height:44px}.poker-avatar{width:36px;height:36px;font-size:.9375rem}.poker-stack{font-size:.875rem}
    .poker-card {width:45px;height:63px}.poker-card-pip{font-size:24px}.poker-card-corner b{font-size:15px}.poker-card-corner i{font-size:10px}.poker-board{gap:5px}
    .poker-hole .poker-card{width:32px;height:45px}.poker-seat-own .poker-hole .poker-card{width:43px;height:60px}
  }
}
@media(max-width:900px) and (min-width:701px) {.poker-controls{grid-template-columns:140px 1fr;gap:14px}.poker-leave{grid-column:1;grid-row:3;justify-self:start}.poker-quick-bets{grid-column:2}.poker-action-buttons{grid-row:1;grid-column:2}.poker-room-tools .pk-btn span{display:none}}
@media(max-width:700px) {
  .poker-modes{grid-template-columns:1fr}.poker-mode{padding:22px!important;gap:14px}.poker-resume{align-items:flex-start;flex-direction:column}
  .poker-toolbar {gap:8px;flex-wrap:wrap;margin-bottom:8px}.poker-toolbar>.pk-btn{font-size:.6875rem;padding:8px!important;min-height:40px!important}.poker-toolbar>.pk-btn span{display:none}
  .poker-room-heading h2{font-size:1.0625rem;margin:0 0 4px}.poker-room-heading small{font-size:.625rem}.poker-room-tools{gap:0}.poker-room-tools .pk-btn{font-size:.6875rem;min-height:40px!important;padding:8px!important}.poker-room-tools .pk-btn span{display:none}.poker-room-tools [data-fullscreen]{display:none}
  .poker-table {height:510px;border-radius:14px}.poker-table-crowded {height:600px}
  .poker-felt {inset:38px 23px 42px;border-width:12px;border-radius:47%;transform:none;box-shadow:0 7px 0 #0b1211,0 12px 17px #0006,inset 0 3px 14px #001e1570}
  .poker-felt::before{inset:-8px}.poker-felt-line{inset:69px 48px;border-radius:46%;transform:none}
  .poker-community {top:47%;gap:9px}.poker-street{font-size:.6875rem;min-height:16px}.poker-board{gap:4px}
  .poker-board .poker-card {width:31px;height:45px;border-radius:3px}.poker-card-corner{left:3px;top:3px}.poker-card-corner-bottom{left:auto;top:auto;right:3px;bottom:3px}.poker-board .poker-card-corner b{font-size:12px}.poker-board .poker-card-corner i{font-size:8px}.poker-board .poker-card-pip{font-size:17px}
  .poker-seat {left:var(--seat-mobile-x);top:var(--seat-mobile-y);width:86px}
  .poker-table-crowded .poker-seat{width:72px}
  .poker-avatar-wrap{width:38px;height:38px;margin-bottom:-3px}.poker-avatar{width:31px;height:31px;font-size:.8125rem;border-width:1px}
  .poker-seat-plate{padding:6px 5px 5px;border-radius:7px}.poker-seat-name{font-size:.625rem;gap:3px}.poker-stack{font-size:.8125rem}.poker-seat-name>span{font-size:.5rem;padding:0 2px}
  .poker-seat-status{font-size:.5625rem;min-height:17px;padding-top:2px}.poker-dealer{width:17px;height:17px;font-size:.5625rem;right:-2px}
  .poker-hole{bottom:66px;gap:3px;min-height:33px}.poker-hole .poker-card{width:25px;height:35px;border-radius:3px}.poker-hole .poker-card-corner{left:2px;top:2px}.poker-hole .poker-card-corner-bottom{left:auto;top:auto;right:2px;bottom:2px}.poker-hole .poker-card-corner b{font-size:9px}.poker-hole .poker-card-corner i{font-size:7px}.poker-hole .poker-card-pip{font-size:13px}.poker-card-back{border-width:2px}.poker-card-seal{inset:5px}
  .poker-seat-own .poker-hole{bottom:60px}.poker-seat-own .poker-hole .poker-card{width:38px;height:53px}.poker-seat-own .poker-hole .poker-card-corner b{font-size:13px}.poker-seat-own .poker-hole .poker-card-corner i{font-size:8px}.poker-seat-own .poker-hole .poker-card-pip{font-size:20px}.poker-seat-own .poker-avatar{width:28px;height:28px;font-size:.75rem}
  .poker-deck{width:20px;height:28px;left:32%;top:32%}.poker-pot{gap:6px;min-height:38px}.poker-pot small{font-size:.5625rem}.poker-pot strong{font-size:1.25rem}.poker-pot-chips{width:28px;height:25px}
  .poker-chips{width:24px;height:20px}.poker-chip{width:23px;height:18px;bottom:calc(var(--chip-layer)*2px)}.poker-chip::after{inset:3px}.poker-bet{left:var(--seat-mobile-x);top:var(--seat-mobile-y);gap:3px}.poker-bet strong{font-size:.5625rem}
  .poker-turn{font-size:.5625rem;min-height:16px}.poker-turn strong{margin-left:4px}.poker-table-caption{font-size:.5rem;bottom:10px;right:13px}
  .poker-controls{position:sticky;bottom:0;grid-template-columns:1fr auto;gap:10px;padding:13px 12px max(13px,env(safe-area-inset-bottom));border-radius:0 0 12px 12px;box-shadow:0 -4px 16px #17372a12}
  .poker-control-info{grid-column:1;grid-row:1;gap:2px}.poker-control-info>strong{font-size:.8125rem}.poker-control-info>small{font-size:.625rem}
  .poker-leave{grid-row:1;grid-column:2;font-size:.625rem!important;min-height:36px!important;padding:8px!important}
  .poker-action-buttons{grid-column:1/-1;grid-row:3;width:100%;gap:6px;justify-content:stretch;flex-wrap:nowrap}.poker-action-buttons:empty{display:none}
  #pokerView .poker-action-buttons .pk-btn{font-size:.75rem;min-height:44px;padding:10px 8px;min-width:0;gap:4px}
.poker-quick-bets{justify-content:space-between}.poker-quick-bets .pk-btn{flex:1;font-size:.625rem!important;min-height:32px!important;padding:6px 8px!important}
  .poker-result{padding:12px 14px}.poker-result>div{gap:6px 14px}.poker-result span{font-size:.8125rem}.poker-result small{font-size:.6875rem}.poker-history{font-size:.75rem}
}
@media(max-width:380px) {
  .poker-table{height:495px}.poker-table-crowded{height:590px}.poker-table-crowded .poker-seat{width:66px}.poker-board .poker-card{width:27px;height:40px}.poker-board{gap:3px}.poker-seat-name{font-size:.5625rem}.poker-table-crowded .poker-seat-name>span{display:none}.poker-pot strong{font-size:1.125rem}.poker-felt{inset-inline:17px}.poker-felt-line{inset-inline:40px}
}
@media(prefers-reduced-motion:reduce) {
  #pokerView * {scroll-behavior:auto;animation-duration:.01ms!important;transition-duration:.01ms!important}
  .poker-timer .poker-timer-progress{transition:none}
}



@media(max-width:700px){
  .poker-controls{position:relative}

  #pokerView .poker-quick-bets .pk-btn{min-height:44px!important}
  #pokerView .poker-raise{flex-wrap:wrap;gap:2px 4px}
}

/* The platform navigation can leave a narrow table on a desktop viewport. */
@container pokerRoom (max-width:650px) {
  .poker-modes{grid-template-columns:1fr}.poker-mode{padding:22px!important;gap:14px}.poker-resume{align-items:flex-start;flex-direction:column}
  .poker-toolbar {gap:8px;flex-wrap:wrap;margin-bottom:8px}.poker-toolbar>.pk-btn{font-size:.6875rem;padding:8px!important;min-height:40px!important}.poker-toolbar>.pk-btn span{display:none}
  .poker-room-heading h2{font-size:1.0625rem;margin:0 0 4px}.poker-room-heading small{font-size:.625rem}.poker-room-tools{gap:0}.poker-room-tools .pk-btn{font-size:.6875rem;min-height:40px!important;padding:8px!important}.poker-room-tools .pk-btn span{display:none}.poker-room-tools [data-fullscreen]{display:none}
  .poker-table {height:510px;border-radius:14px}.poker-table-crowded {height:600px}
  .poker-felt {inset:38px 23px 42px;border-width:12px;border-radius:47%;transform:none;box-shadow:0 7px 0 #0b1211,0 12px 17px #0006,inset 0 3px 14px #001e1570}
  .poker-felt::before{inset:-8px}.poker-felt-line{inset:69px 48px;border-radius:46%;transform:none}
  .poker-community {top:47%;gap:9px}.poker-street{font-size:.6875rem;min-height:16px}.poker-board{gap:4px}
  .poker-board .poker-card {width:31px;height:45px;border-radius:3px}.poker-card-corner{left:3px;top:3px}.poker-card-corner-bottom{left:auto;top:auto;right:3px;bottom:3px}.poker-board .poker-card-corner b{font-size:12px}.poker-board .poker-card-corner i{font-size:8px}.poker-board .poker-card-pip{font-size:17px}
  .poker-seat {left:var(--seat-mobile-x);top:var(--seat-mobile-y);width:86px}
  .poker-table-crowded .poker-seat{width:72px}
  .poker-avatar-wrap{width:38px;height:38px;margin-bottom:-3px}.poker-avatar{width:31px;height:31px;font-size:.8125rem;border-width:1px}
  .poker-seat-plate{padding:6px 5px 5px;border-radius:7px}.poker-seat-name{font-size:.625rem;gap:3px}.poker-stack{font-size:.8125rem}.poker-seat-name>span{font-size:.5rem;padding:0 2px}
  .poker-seat-status{font-size:.5625rem;min-height:17px;padding-top:2px}.poker-dealer{width:17px;height:17px;font-size:.5625rem;right:-2px}
  .poker-hole{bottom:66px;gap:3px;min-height:33px}.poker-hole .poker-card{width:25px;height:35px;border-radius:3px}.poker-hole .poker-card-corner{left:2px;top:2px}.poker-hole .poker-card-corner-bottom{left:auto;top:auto;right:2px;bottom:2px}.poker-hole .poker-card-corner b{font-size:9px}.poker-hole .poker-card-corner i{font-size:7px}.poker-hole .poker-card-pip{font-size:13px}.poker-card-back{border-width:2px}.poker-card-seal{inset:5px}
  .poker-seat-own .poker-hole{bottom:60px}.poker-seat-own .poker-hole .poker-card{width:38px;height:53px}.poker-seat-own .poker-hole .poker-card-corner b{font-size:13px}.poker-seat-own .poker-hole .poker-card-corner i{font-size:8px}.poker-seat-own .poker-hole .poker-card-pip{font-size:20px}.poker-seat-own .poker-avatar{width:28px;height:28px;font-size:.75rem}
  .poker-deck{width:20px;height:28px;left:32%;top:32%}.poker-pot{gap:6px;min-height:38px}.poker-pot small{font-size:.5625rem}.poker-pot strong{font-size:1.25rem}.poker-pot-chips{width:28px;height:25px}
  .poker-chips{width:24px;height:20px}.poker-chip{width:23px;height:18px;bottom:calc(var(--chip-layer)*2px)}.poker-chip::after{inset:3px}.poker-bet{left:var(--seat-mobile-x);top:var(--seat-mobile-y);gap:3px}.poker-bet strong{font-size:.5625rem}
  .poker-turn{font-size:.5625rem;min-height:16px}.poker-turn strong{margin-left:4px}.poker-table-caption{font-size:.5rem;bottom:10px;right:13px}
  .poker-controls{position:sticky;bottom:0;grid-template-columns:1fr auto;gap:10px;padding:13px 12px max(13px,env(safe-area-inset-bottom));border-radius:0 0 12px 12px;box-shadow:0 -4px 16px #17372a12}
  .poker-control-info{grid-column:1;grid-row:1;gap:2px}.poker-control-info>strong{font-size:.8125rem}.poker-control-info>small{font-size:.625rem}
  .poker-leave{grid-row:1;grid-column:2;font-size:.625rem!important;min-height:36px!important;padding:8px!important}
  .poker-action-buttons{grid-column:1/-1;grid-row:3;width:100%;gap:6px;justify-content:stretch;flex-wrap:nowrap}.poker-action-buttons:empty{display:none}
  #pokerView .poker-action-buttons .pk-btn{font-size:.75rem;min-height:44px;padding:10px 8px;min-width:0;gap:4px}
.poker-quick-bets{justify-content:space-between}.poker-quick-bets .pk-btn{flex:1;font-size:.625rem!important;min-height:32px!important;padding:6px 8px!important}
  .poker-result{padding:12px 14px}.poker-result>div{gap:6px 14px}.poker-result span{font-size:.8125rem}.poker-result small{font-size:.6875rem}.poker-history{font-size:.75rem}


  #pokerView .poker-quick-bets .pk-btn{min-height:44px!important}
  #pokerView .poker-raise{flex-wrap:wrap;gap:2px 4px}
}

.poker-blind{position:absolute;left:-12px;bottom:1px;display:grid;place-items:center;width:23px;height:20px;background:#b9cbc0;color:#173b2c;border-radius:5px;font-size:.5625rem;box-shadow:0 2px 3px #00191055;z-index:3}
.poker-big-blind{background:#e7c17b}

/* Keep player information legible at the platform's 14px root size. */
.poker-seat-name{font-size:.875rem}
.poker-stack{font-size:1.125rem}
.poker-seat-status{font-size:.75rem}
.poker-table-caption{font-size:.6875rem}
@container pokerRoom (max-width:850px){
  .poker-seat-name{font-size:.75rem}
  .poker-stack{font-size:.9375rem}
  .poker-seat-status{font-size:.6875rem}
}
@media(max-width:700px){
  .poker-seat-name{font-size:.75rem}
  .poker-stack{font-size:.9375rem}
  .poker-seat-status{font-size:.6875rem}
  .poker-table-caption{font-size:.625rem}
}
@media(max-height:740px){
  /* On short screens, scroll the hand and controls together instead of covering cards. */
  .poker-controls{position:relative}
}
.poker-capacity{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;padding:12px 0;color:var(--text-secondary,#526c64);font-size:.875rem}
.poker-capacity strong{color:var(--text-primary,#1d4335);font-variant-numeric:tabular-nums}
.poker-capacity span{font-size:.8125rem}

/* Fullscreen owns the complete game surface, including betting controls. */
.poker-fullscreen-exit,.poker-drawer-toggle{display:none}
body.poker-fullscreen-page{overflow:hidden}
#pokerView.poker-fullscreen{
  position:fixed;inset:0;z-index:10000;box-sizing:border-box;margin:0;
  width:100%;height:100%;max-width:none;padding:12px;overflow:hidden;background:var(--poker-room);
}
#pokerView.poker-fullscreen .poker-room-screen{
  position:relative;display:flex;flex-direction:column;width:100%;height:100%;max-width:min(100%,calc((100dvh - 140px)*2));margin:auto;gap:0;
}
#pokerView.poker-fullscreen .poker-toolbar{flex:none;min-height:44px;margin:0 0 8px;color:#f1ecda}
#pokerView.poker-fullscreen .poker-toolbar .poker-quiet,#pokerView.poker-fullscreen .poker-room-heading small{color:#d3e1d5}
#pokerView.poker-fullscreen .poker-table{flex:1;min-height:0;height:auto;border-radius:14px 14px 0 0;box-shadow:none}
#pokerView.poker-fullscreen .poker-controls{position:relative;flex:none;padding:12px 18px;gap:10px 16px}

#pokerView.poker-fullscreen .poker-history,#pokerView.poker-fullscreen .poker-result{display:none}
#pokerView.poker-fullscreen .poker-room-help{position:absolute;z-index:15;inset:58px 12px auto;max-height:55%;overflow:auto;background:#fffdf7;border-radius:12px;padding:16px;color:#294b3d}
#pokerView.poker-fullscreen .poker-notice:not(:empty){flex:none;margin:0;padding:6px 12px;background:#fff1d1;color:#594626;font-size:.8125rem}

/* Phones use a landscape stage even when orientation locking is unavailable. */
#pokerView.poker-fullscreen-mobile{padding:0}
#pokerView.poker-fullscreen-mobile .poker-room-screen{
  --drawer-width:max(30px,calc(var(--poker-number-chars,2)*6px + 10px));
  width:var(--poker-game-width);height:var(--poker-game-height);max-width:none;margin:0;
  display:block;container-type:normal;background:var(--poker-room);
}
#pokerView.poker-fullscreen-portrait .poker-room-screen{
  --drawer-width:max(30px,calc(var(--poker-number-chars,2)*6px + 10px));
  transform-origin:0 0;transform:translateX(var(--poker-game-height)) rotate(90deg);
}
#pokerView.poker-fullscreen-mobile .poker-toolbar{display:none}
#pokerView.poker-fullscreen-mobile .poker-table{
  position:absolute;inset:0;width:auto;height:auto;min-height:0;border-radius:0;
}
#pokerView.poker-fullscreen-mobile .poker-felt{inset:34px 32px 30px;border-width:12px;border-radius:48%;transform:none}
#pokerView.poker-fullscreen-mobile .poker-felt::before{inset:-8px}
#pokerView.poker-fullscreen-mobile .poker-felt-line{inset:55px 55px;border-radius:47%;transform:none}
#pokerView.poker-fullscreen-mobile .poker-community{top:49%;gap:5px}
#pokerView.poker-fullscreen-mobile .poker-street{font-size:.625rem;min-height:13px}
#pokerView.poker-fullscreen-mobile .poker-board{gap:4px}
#pokerView.poker-fullscreen-mobile .poker-board .poker-card{width:31px;height:44px;border-radius:3px}
#pokerView.poker-fullscreen-mobile .poker-board .poker-card-pip{font-size:17px}
#pokerView.poker-fullscreen-mobile .poker-board .poker-card-corner b{font-size:12px}
#pokerView.poker-fullscreen-mobile .poker-board .poker-card-corner i{font-size:8px}
#pokerView.poker-fullscreen-mobile .poker-pot{gap:5px;min-height:28px}
#pokerView.poker-fullscreen-mobile .poker-pot small{font-size:.5625rem}
#pokerView.poker-fullscreen-mobile .poker-pot strong{font-size:1.0625rem}
#pokerView.poker-fullscreen-mobile .poker-pot-chips{width:24px;height:22px}
#pokerView.poker-fullscreen-mobile .poker-turn{font-size:.625rem;min-height:14px;margin:0}
#pokerView.poker-fullscreen-mobile .poker-deck{width:18px;height:25px;left:32%;top:34%}
#pokerView.poker-fullscreen-mobile .poker-seat{left:var(--seat-x);top:var(--seat-y);width:78px}
#pokerView.poker-fullscreen-mobile .poker-table-crowded .poker-seat{width:66px}
#pokerView.poker-fullscreen-mobile .poker-avatar-wrap{width:30px;height:30px;margin-bottom:-3px}
#pokerView.poker-fullscreen-mobile .poker-avatar{width:25px;height:25px;font-size:.6875rem;border-width:1px}
#pokerView.poker-fullscreen-mobile .poker-seat-plate{padding:4px 4px 3px;border-radius:6px}
#pokerView.poker-fullscreen-mobile .poker-seat-name{font-size:.625rem;gap:2px}
#pokerView.poker-fullscreen-mobile .poker-stack{font-size:.8125rem}
#pokerView.poker-fullscreen-mobile .poker-seat-name>span{font-size:.5rem;padding:0 2px}
#pokerView.poker-fullscreen-mobile .poker-seat-status{font-size:.5625rem;min-height:13px;padding-top:1px}
#pokerView.poker-fullscreen-mobile .poker-hole{bottom:49px;gap:2px;min-height:24px}
#pokerView.poker-fullscreen-mobile .poker-hole .poker-card{width:20px;height:28px;border-radius:3px}
#pokerView.poker-fullscreen-mobile .poker-hole .poker-card-corner{left:2px;top:2px}
#pokerView.poker-fullscreen-mobile .poker-hole .poker-card-corner-bottom{left:auto;top:auto;right:2px;bottom:2px}
#pokerView.poker-fullscreen-mobile .poker-hole .poker-card-corner b{font-size:9px}
#pokerView.poker-fullscreen-mobile .poker-hole .poker-card-corner i{font-size:7px}
#pokerView.poker-fullscreen-mobile .poker-hole .poker-card-pip{font-size:12px}
#pokerView.poker-fullscreen-mobile .poker-seat-own .poker-hole{bottom:47px}
#pokerView.poker-fullscreen-mobile .poker-seat-own .poker-hole .poker-card{width:27px;height:38px}
#pokerView.poker-fullscreen-mobile .poker-seat-own .poker-hole .poker-card-corner b{font-size:11px}
#pokerView.poker-fullscreen-mobile .poker-seat-own .poker-hole .poker-card-pip{font-size:16px}
#pokerView.poker-fullscreen-mobile .poker-blind{width:18px;height:15px;font-size:.5rem;left:-10px}
#pokerView.poker-fullscreen-mobile .poker-dealer{width:16px;height:16px;font-size:.5rem;right:-5px}
#pokerView.poker-fullscreen-mobile .poker-bet{left:var(--seat-x);top:var(--seat-y);gap:2px}
#pokerView.poker-fullscreen-mobile .poker-bet strong{font-size:.5625rem}
#pokerView.poker-fullscreen-mobile .poker-chips{width:22px;height:18px}
#pokerView.poker-fullscreen-mobile .poker-chip{width:21px;height:16px;bottom:calc(var(--chip-layer)*2px)}
#pokerView.poker-fullscreen-mobile .poker-chip::after{inset:3px}
#pokerView.poker-fullscreen-mobile .poker-table-caption{display:none}
#pokerView.poker-fullscreen-mobile .poker-controls{
  position:absolute;inset:12px max(12px,env(safe-area-inset-right)) 8px auto;
  width:var(--drawer-width);box-sizing:border-box;padding:14px 12px;display:flex;flex-direction:column;
  align-items:stretch;justify-content:flex-start;gap:12px;border-radius:12px;background:#fffdf7;
  box-shadow:0 6px 24px #00180f55;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#a2b5a7 transparent;
  transform:translateX(calc(100% + 24px));visibility:hidden;pointer-events:none;
}
#pokerView.poker-fullscreen-mobile.poker-drawer-open .poker-controls{transform:none;visibility:visible;pointer-events:auto}
#pokerView.poker-fullscreen-mobile .poker-control-info{order:0;gap:3px;flex:none}
#pokerView.poker-fullscreen-mobile .poker-control-info>strong{font-size:.875rem}
#pokerView.poker-fullscreen-mobile .poker-control-info>small{font-size:.6875rem;line-height:1.5}
#pokerView.poker-fullscreen-mobile .poker-action-buttons{order:2;display:grid;grid-template-columns:1fr;gap:8px;flex:none;width:100%}
#pokerView.poker-fullscreen-mobile .poker-action-buttons .pk-btn{flex:none;width:100%;min-height:44px;padding:10px;font-size:.8125rem}




#pokerView.poker-fullscreen-mobile .poker-quick-bets{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
#pokerView.poker-fullscreen-mobile .poker-quick-bets .pk-btn{min-height:44px;padding:8px;font-size:.625rem}

#pokerView.poker-fullscreen-mobile .poker-leave{order:3;align-self:stretch;flex:none;margin-top:auto;min-height:44px;font-size:.75rem}
#pokerView.poker-fullscreen-mobile .poker-fullscreen-exit{
  position:absolute;display:flex;z-index:20;top:max(8px,env(safe-area-inset-top));left:max(8px,env(safe-area-inset-left));
  min-height:44px;padding:10px 12px;font-size:.75rem;background:#203c32;color:#fff5df;border:0;box-shadow:0 3px 9px #00190f45;
}
#pokerView.poker-fullscreen-mobile .poker-drawer-toggle{
  display:flex;position:absolute;z-index:20;top:50%;right:6px;transform:translateY(-50%);width:44px;min-height:90px;
  flex-direction:column;padding:10px 6px;font-size:.6875rem;background:#e9ce9399;color:#302918;border:0;box-shadow:0 3px 9px #00190f45;
}
#pokerView.poker-fullscreen-mobile.poker-drawer-open .poker-drawer-toggle{right:calc(var(--drawer-width) + 12px)}
#pokerView.poker-fullscreen-mobile:not(.poker-drawer-open) .poker-drawer-toggle svg{transform:rotate(180deg)}
#pokerView.poker-fullscreen-mobile .poker-notice:not(:empty){position:absolute;z-index:15;left:120px;right:calc(var(--drawer-width) + 36px);top:8px;max-height:44px;overflow:auto;border-radius:6px}
/* Keep the fullscreen entry visible on narrow screens and inside the platform sidebar. */
#pokerView .poker-room-tools [data-fullscreen]{display:inline-flex}

/* One editable raise control; the four presets live in its caret popover. */
.poker-raise-control{position:relative;display:flex;align-items:stretch;gap:4px;padding:4px;flex:1.4;min-width:184px;height:52px;background:#e9ce93;color:#3a3627;border-radius:.65rem;isolation:isolate}
.poker-raise-control:focus-within{outline:2px solid #9c7331;outline-offset:2px}
.poker-raise-field{display:flex;align-items:stretch;flex:1;min-width:0;border:1px solid #a88142;border-radius:8px;background:#fff8e45c}
#pokerView .poker-raise-control input{min-width:0;width:64px;flex:1;border:0;background:transparent;padding:8px 0 8px 10px;font:inherit;font-size:16px;font-weight:650;color:#3a3627;outline:0;box-shadow:none;caret-color:#594626;appearance:textfield;border-radius:8px 0 0 8px}
#pokerView .poker-raise-control input::-webkit-inner-spin-button,#pokerView .poker-raise-control input::-webkit-outer-spin-button{appearance:none;margin:0}
#pokerView .poker-raise-control input::placeholder{color:#51442b;opacity:1}
#pokerView .poker-action-buttons .poker-raise-control>.pk-btn{flex:none;width:60px;min-width:60px;min-height:44px;padding:8px;background:transparent;color:#3a3627;font-size:.8125rem;border:0;border-radius:6px}
#pokerView .poker-action-buttons .poker-raise-field>.pk-btn{flex:none;width:44px;min-width:44px;min-height:44px;padding:8px 4px;background:transparent;color:#3a3627;border:0;border-radius:0 8px 8px 0}
#pokerView .poker-raise-control .pk-btn:hover{background:#d6b773}
.poker-raise-presets{position:absolute;right:0;bottom:calc(100% + 8px);width:240px;max-width:calc(100vw - 40px);padding:8px;background:#fffdf5;border-radius:10px;box-shadow:0 5px 20px #001c1460;z-index:25}
.poker-raise-presets[hidden]{display:none}
.poker-raise-presets .poker-quick-bets{display:grid;grid-template-columns:1fr 1fr;gap:6px}
#pokerView .poker-raise-presets .pk-btn{min-width:0;min-height:44px;padding:8px;font-size:.75rem}
@container pokerRoom (max-width:900px) and (min-width:651px){
  .poker-controls{grid-template-columns:1fr auto;gap:12px}
  .poker-control-info{grid-column:1;grid-row:1}
  .poker-leave{grid-column:2;grid-row:1;justify-self:end}
  .poker-action-buttons{grid-column:1/-1;grid-row:2}
}
@media(max-width:700px){
  .poker-action-buttons{grid-row:2;flex-direction:column;flex-wrap:nowrap;align-items:stretch}
  #pokerView .poker-action-buttons>.pk-btn{flex:none;width:100%}
  .poker-raise-control{order:0;flex:none;width:100%}
}
@container pokerRoom (max-width:650px){
  .poker-controls{position:relative}
  .poker-action-buttons{grid-row:2;flex-direction:column;flex-wrap:nowrap;align-items:stretch}
  #pokerView .poker-action-buttons>.pk-btn{flex:none;width:100%}
  .poker-raise-control{order:0;flex:none;width:100%}
}
#pokerView.poker-fullscreen-mobile .poker-raise-control{order:0;grid-column:1/-1;width:100%;min-width:0}
#pokerView.poker-fullscreen-mobile .poker-action-buttons .poker-raise-control>.pk-btn{width:60px;min-width:60px}
#pokerView.poker-fullscreen-mobile .poker-allin{grid-column:1/-1}
#pokerView.poker-fullscreen-mobile .poker-raise-presets{width:100%;max-width:none;bottom:auto;top:calc(100% + 6px)}
#pokerView.poker-fullscreen-mobile .poker-raise-presets .poker-quick-bets{grid-template-columns:1fr;gap:6px}

/* A single narrow column of vertical labels leaves the landscape table visible. */
#pokerView.poker-fullscreen-mobile .poker-controls{
  padding:6px;gap:4px;right:max(8px,env(safe-area-inset-right));background:#fffdf7e8;border-radius:10px;
}
#pokerView.poker-fullscreen-mobile .poker-action-buttons{gap:4px}
#pokerView.poker-fullscreen-mobile .poker-action-buttons>.pk-btn,
#pokerView.poker-fullscreen-mobile .poker-leave,
#pokerView.poker-fullscreen-mobile .poker-raise-control>.pk-btn{
  writing-mode:vertical-rl;text-orientation:upright;letter-spacing:1px;justify-content:center;align-items:center;
  font-size:11px!important;line-height:1.2;padding:6px!important;min-width:0;width:100%;height:44px;min-height:44px;
}
#pokerView.poker-fullscreen-mobile .poker-call:has(.poker-action-amount){height:64px}
#pokerView.poker-fullscreen-mobile .poker-leave{height:64px;min-height:64px}
#pokerView.poker-fullscreen-mobile .poker-action-amount{writing-mode:horizontal-tb;letter-spacing:0;white-space:nowrap;font-size:10px;line-height:1.1}
#pokerView.poker-fullscreen-mobile .poker-raise-control{
  display:flex;flex-direction:column;gap:3px;padding:3px;height:104px;min-height:104px;border-radius:8px;
}
#pokerView.poker-fullscreen-mobile .poker-action-buttons .poker-raise-control>.pk-btn{width:100%;min-width:0;flex:1;min-height:44px;height:44px}
#pokerView.poker-fullscreen-mobile .poker-raise-field{position:relative;flex:none;width:100%;height:47px;min-height:47px;border-radius:5px}
#pokerView.poker-fullscreen-mobile .poker-raise-control input{width:100%;height:29px;min-height:0;padding:2px;text-align:center;font-size:16px;line-height:1.2;border-radius:5px}
#pokerView.poker-fullscreen-mobile .poker-action-buttons .poker-raise-field>.pk-btn{
  position:absolute;inset:auto 0 0;width:100%;height:16px;min-height:16px;min-width:0;padding:0;border-radius:0 0 5px 5px;
}
#pokerView.poker-fullscreen-mobile .poker-raise-presets{
  inset:auto calc(100% + 10px) 0 auto;width:136px;max-width:none;
}
#pokerView.poker-fullscreen-mobile .poker-raise-presets .poker-quick-bets{grid-template-columns:1fr 1fr;gap:6px}
#pokerView.poker-fullscreen-mobile .poker-raise-presets .pk-btn{font-size:10px;min-height:44px;padding:6px}
#pokerView.poker-fullscreen-mobile .poker-mobile-presets{
  position:absolute;z-index:30;inset:50% calc(var(--drawer-width) + 20px) auto auto;transform:translateY(-50%);width:128px;
}
#pokerView.poker-fullscreen-mobile .poker-drawer-toggle{
  width:36px;min-height:44px;padding:6px 3px;font-size:10px;right:4px;
}
#pokerView.poker-fullscreen-mobile .poker-drawer-toggle span{writing-mode:vertical-rl;text-orientation:upright;letter-spacing:2px}
#pokerView.poker-fullscreen-mobile.poker-drawer-open .poker-drawer-toggle{right:calc(var(--drawer-width) + 8px)}
#pokerView.poker-fullscreen-mobile .poker-mobile-status{
  position:absolute;z-index:9;left:max(8px,env(safe-area-inset-left));right:auto;bottom:max(8px,env(safe-area-inset-bottom));
  max-width:calc(100% - var(--drawer-width) - 130px);padding:6px 9px;gap:2px;pointer-events:none;
  align-items:flex-start;text-align:left;border-radius:7px;background:#142c23c9;color:#f4eddb;
}
#pokerView.poker-fullscreen-mobile .poker-mobile-status>strong{font-size:11px;color:#fff3ce}
#pokerView.poker-fullscreen-mobile .poker-mobile-status>small{font-size:10px;color:#d4e1d5;line-height:1.4}
#pokerView.poker-fullscreen-mobile:not(.poker-drawer-open) .poker-mobile-status{right:auto}
#pokerView.poker-fullscreen-mobile .poker-mobile-tools{position:absolute;z-index:5;top:max(6px,env(safe-area-inset-top));right:max(8px,env(safe-area-inset-right));display:flex;gap:4px}
#pokerView.poker-fullscreen-mobile .poker-mobile-tools .pk-btn{min-height:44px;padding:8px 10px;background:#203c32cc;color:#fff5df;font-size:11px}
#pokerView.poker-fullscreen-mobile .poker-mobile-tools [data-sound] span,#pokerView.poker-fullscreen-mobile .poker-mobile-tools [data-fullscreen]{display:none}
#pokerView.poker-fullscreen-mobile .poker-room-help{inset:56px 84px auto 12px;max-width:none;max-height:calc(100% - 72px);box-sizing:border-box;font-size:12px}
#pokerView.poker-fullscreen-mobile .poker-controls{padding:4px 2px;gap:2px}
#pokerView.poker-fullscreen-mobile .poker-action-buttons{gap:2px}
#pokerView.poker-fullscreen-mobile .poker-action-buttons>.pk-btn,
#pokerView.poker-fullscreen-mobile .poker-leave,
#pokerView.poker-fullscreen-mobile .poker-action-buttons .poker-raise-control>.pk-btn{
  height:auto;min-height:44px;padding:5px 2px!important;white-space:nowrap;word-break:keep-all;overflow-wrap:normal;
  letter-spacing:.5px;gap:4px;line-height:1.15;
}
#pokerView.poker-fullscreen-mobile .poker-action-amount{font-size:10px!important;line-height:1.1;font-variant-numeric:tabular-nums}
#pokerView.poker-fullscreen-mobile .poker-raise-control{height:auto;min-height:0;gap:0;padding:1px}
#pokerView.poker-fullscreen-mobile .poker-action-buttons .poker-raise-control>.pk-btn{flex:none}
#pokerView.poker-fullscreen-mobile .poker-raise-field{height:36px;min-height:36px}
#pokerView.poker-fullscreen-mobile .poker-raise-control input{height:22px;padding:2px 0;font-size:10px!important;line-height:1.1;font-variant-numeric:tabular-nums}
#pokerView.poker-fullscreen-mobile .poker-action-buttons .poker-raise-field>.pk-btn{height:14px;min-height:14px}
/* Outside fullscreen, compact controls follow the desktop's horizontal action row. */
@container pokerRoom (max-width:650px){
  #pokerView:not(.poker-fullscreen-mobile) .poker-controls{display:flex;flex-wrap:wrap;padding:10px 8px;gap:7px 4px;position:relative}
  #pokerView:not(.poker-fullscreen-mobile) .poker-control-info{flex:0 0 100%}
  #pokerView:not(.poker-fullscreen-mobile) .poker-action-buttons{display:flex;flex:1;min-width:0;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:4px;width:auto}
  #pokerView:not(.poker-fullscreen-mobile) .poker-action-buttons>.pk-btn{flex:1;width:auto;min-width:0;padding:8px 4px;font-size:10px;min-height:44px;white-space:nowrap}
  #pokerView:not(.poker-fullscreen-mobile) .poker-raise-control{order:0;flex:1.8;width:132px;min-width:126px;height:48px;padding:2px;gap:2px}
  #pokerView:not(.poker-fullscreen-mobile) .poker-raise-control input{width:34px;padding:4px;font-size:16px}
  #pokerView:not(.poker-fullscreen-mobile) .poker-raise-control>.pk-btn{width:36px;min-width:36px;padding:4px;font-size:10px}
  #pokerView:not(.poker-fullscreen-mobile) .poker-raise-field>.pk-btn{width:28px;min-width:28px;padding:2px}
  #pokerView:not(.poker-fullscreen-mobile) .poker-leave{flex:none;width:auto;min-height:44px;padding:8px 3px!important;font-size:10px!important;margin:0;white-space:nowrap}
}
