.game-page h1{font-size:clamp(34px,5vw,64px);font-weight:700}.game-page h2{font-size:23px;font-weight:650;letter-spacing:-.025em}.game-page h3{font-size:18px;margin:24px 0 12px}.game-menu-heading{margin-bottom:8px}.game-menu-heading>div:first-child{flex:1}.game-menu-heading .poker-artwork{width:280px;flex-shrink:0}.game-menu-heading h1{font-size:clamp(34px,4.8vw,62px)}.design-link{font-size:13px;margin-top:14px}.game-step{margin:30px 0 18px}.mode-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:20px;max-width:900px}.mode-card{border:var(--line);background:var(--ui-panel);padding:24px;text-align:left;display:grid;grid-template-columns:56px 1fr 24px;gap:7px 18px;border-radius:14px;min-height:120px;align-items:center}.mode-emblem{grid-row:span 2;display:grid;place-items:center;width:56px;height:62px;background:#f5f1e8;border-radius:10px}.mode-emblem .icon{width:32px;height:36px}.mode-card strong{font-size:22px;line-height:1.2;font-weight:650}.mode-card>span:not(.mode-emblem){font-size:14px;color:var(--ui-muted);grid-column:2}.mode-card>.mode-check{grid-column:3;grid-row:1 / span 2;color:var(--ui-accent);visibility:hidden}.mode-card[aria-pressed=true]{background:var(--ui-raised);border-color:var(--ui-accent)}.mode-card[aria-pressed=true]>.mode-check{visibility:visible}.mode-card:hover,.game-kind button:hover{border-color:var(--ui-accent)}.game-setup{max-width:900px;margin-top:26px;display:grid;gap:20px}.game-setup>.game-step{margin-bottom:0}.game-kind{display:grid;grid-template-columns:1fr 1fr;gap:14px}.game-kind button{background:var(--ui-panel);border:var(--line);border-radius:12px;padding:18px;text-align:left;font-size:18px;font-weight:600;min-height:100px;display:grid;grid-template-columns:32px 1fr;gap:4px 12px;align-items:center}.game-kind button>.icon{grid-row:span 2;color:var(--ui-accent);width:29px;height:29px}.game-kind button[aria-pressed=true]{background:var(--ui-raised);border-color:var(--ui-accent)}.game-kind span{display:block;font-size:13px;font-weight:400;color:var(--ui-muted);grid-column:2}.game-name{max-width:380px}.game-settings{background:var(--ui-panel);border:var(--line);border-radius:14px;padding:24px}.game-settings label{display:block}.game-settings .checkbox{display:flex}.game-settings label>input:not([type=checkbox]),.game-settings label>select,.game-settings label>textarea{display:block;width:100%;margin-top:7px}.game-settings .form-grid{gap:18px;margin-block:18px}.game-settings .field small{font-size:12px;color:var(--ui-muted);display:block;margin-top:5px}.game-settings .muted{font-size:13px;margin-top:12px}.settings-overview{font-size:14px;margin:15px 0;color:var(--ui-muted)}.game-customize{border-top:var(--line);padding-top:10px}.game-customize>summary,.game-rules>summary{font-weight:550;cursor:pointer;min-height:48px;padding-block:12px}.game-setup>.btn{justify-self:start}.game-join{max-width:900px;border-top:var(--line);margin-top:48px;padding-top:26px}.game-join h2{margin-bottom:20px}.game-links{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0 30px}.game-error{border-color:#b85c5c;color:#ffc5c5;margin-bottom:20px}[data-theme=classic] .game-error{color:#a41616}.game-page input[type=checkbox]{min-width:22px;width:22px;height:22px}.game-page .checkbox{min-height:44px}
/* The same table renderer serves live games and the development design preview. */
#game-table{max-width:1160px;padding-top:24px}.game-table-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:15px}.game-table-heading h1{font-size:34px;font-weight:600;letter-spacing:-.04em;margin-top:7px}.game-table-heading .eyebrow{font-size:10px}.table-title-dot{color:var(--ui-accent)}.game-table-heading>.text-link{font-size:12px}.design-preview-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 14px;border:1px dashed var(--ui-border);border-radius:10px;font-size:12px;margin-bottom:14px}.design-preview-bar>span{display:flex;align-items:center;gap:7px;color:var(--ui-muted)}.design-preview-bar .icon{width:17px;height:17px}.design-preview-bar>div{display:flex;gap:3px}.design-preview-bar button{background:transparent;border:1px solid transparent;border-radius:6px;min-height:38px;padding:8px 12px;color:var(--ui-muted);font-size:12px}.design-preview-bar button[aria-pressed=true]{background:var(--ui-raised);color:var(--ui-fg);border-color:var(--ui-border)}
#connection-status{font-size:11px;display:flex;align-items:center;gap:6px;min-height:17px}#connection-status::before{content:'';width:5px;height:5px;border-radius:50%;background:#7eaf94;flex-shrink:0}#connection-status[data-disconnected=true]{color:#ffa6a6}#connection-status[data-disconnected=true]::before{background:currentColor}.table-status{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0 0;padding:12px 0;border-top:var(--line);font-size:13px}.table-status strong{font-weight:550;display:flex;gap:8px;align-items:center}.table-status .icon{width:17px;height:17px;color:var(--ui-accent)}.table-status>span{color:var(--ui-muted);font-size:12px}.game-invite{display:flex;align-items:end;gap:12px;padding:16px;border:var(--line);margin-block:12px;background:var(--ui-panel);border-radius:10px}.game-invite label{flex:1;min-width:0;font-size:12px}.game-invite input{display:block;width:100%;margin-top:6px;font-size:13px}
.poker-arena{height:575px;position:relative;isolation:isolate;margin:6px auto 10px;max-width:1100px}.table-rail{position:absolute;inset:64px 36px 67px;border-radius:48%;background:linear-gradient(145deg,var(--rail-edge),var(--rail) 30%,#171b18 65%,var(--rail-edge));padding:18px;box-shadow:0 20px 36px #0005,0 1px 1px #ffffff40 inset,0 -3px 2px #0008 inset}.table-felt{width:100%;height:100%;position:relative;border-radius:inherit;background:radial-gradient(ellipse at 45% 35%,var(--felt-top),var(--felt-bottom));box-shadow:0 7px 20px #0007 inset;border:1px solid #050e0990}.table-felt:after{content:'';position:absolute;inset:0;border-radius:inherit;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath filter='url(%23n)' opacity='.12' d='M0 0h160v160H0z'/%3E%3C/svg%3E");mix-blend-mode:soft-light;pointer-events:none}.felt-line{position:absolute;inset:17px;border:1px solid var(--table-line);border-radius:inherit}.felt-wordmark{position:absolute;top:15%;left:0;right:0;text-align:center;font-size:20px;font-weight:650;letter-spacing:.24em;color:#e3e8cf55}.felt-wordmark span{display:block;font-size:7px;letter-spacing:.22em;margin-top:3px}.table-board{position:absolute;left:50%;top:51%;transform:translate(-50%,-50%);width:360px;max-width:58%;text-align:center;color:#fff9eb;z-index:1}.board-stage{font-size:9px;font-weight:600;text-transform:uppercase;letter-spacing:.18em;color:#dbe6d0c9;margin-bottom:7px}.pot-label{font-size:24px;letter-spacing:-.03em;font-weight:600;line-height:1.2}.pot-caption{font-size:10px;letter-spacing:.06em;color:#e5ebd7;margin-bottom:2px}.pot-display{display:flex;align-items:center;justify-content:center;gap:12px}.chip-stack{position:relative;width:40px;height:39px;flex-shrink:0;display:inline-block;color:#f0d599}.chip-stack .icon{position:absolute;width:32px;height:32px;left:0;bottom:0;transform:scaleY(.63);border-radius:50%;background:#9a5830;box-shadow:0 3px 0 #482e1b}.chip-stack .icon:nth-child(2){bottom:5px}.chip-stack .icon:nth-child(3){bottom:10px}.chip-stack .icon:nth-child(4){left:14px;bottom:-3px;background:#315b78;color:#c6dce8}.community-cards{display:flex;justify-content:center;gap:7px;margin:16px 0 10px}.poker-card{display:inline-flex;position:relative;flex-direction:column;justify-content:space-between;align-items:flex-start;width:38px;height:52px;flex-shrink:0;background:#fffdf7;border:1px solid #dedbd0;border-radius:5px;padding:4px;color:#111111;line-height:1;box-shadow:0 3px 5px #0003}.poker-card strong{font-size:18px;font-weight:700}.poker-card svg{width:18px;height:18px;flex-shrink:0;align-self:flex-end}.red-card{color:#b71c1c}.card-back{border:3px solid #e8e2d4;background:repeating-linear-gradient(45deg,#284259,#284259 2px,#36536a 2px,#36536a 4px)}.card-back:after{content:'';position:absolute;inset:3px;border:1px solid #91a6b48c;border-radius:2px}.community-cards .poker-card,.card-slot{width:56px;height:77px;border-radius:6px}.community-cards .poker-card{padding:6px}.community-cards .poker-card strong{font-size:26px}.community-cards .poker-card svg{width:28px;height:28px}.card-slot{border:1px solid #c7dbc13d;background:#05140c12;display:grid;place-items:center;color:#dde6d43d;font-size:22px}.board-result{font-size:12px;background:#0a221ad9;border:1px solid #c8d7b43b;border-radius:7px;padding:5px 8px;margin-top:5px}.board-idle{font-size:15px;font-weight:500}.board-idle small{display:block;color:#d2e2cc;font-size:11px;margin-top:5px}
.table-players{position:absolute;inset:0;pointer-events:none}.poker-seat{position:absolute;left:var(--seat-x);top:var(--seat-y);transform:translate(-50%,-50%);width:146px;text-align:center;z-index:2;pointer-events:auto}.seat-panel{position:relative;background:var(--seat-bg);border:1px solid var(--ui-border);border-radius:12px;padding:10px 10px 8px;box-shadow:0 8px 16px #0003}.seat-avatar{width:34px;height:34px;border-radius:50%;border:2px solid var(--ui-border);background:var(--ui-raised);margin:-28px auto 5px;display:flex;align-items:center;justify-content:center;color:var(--ui-muted);font-size:14px;font-weight:600;box-shadow:0 2px 5px #0003}.seat-avatar .icon{width:19px;height:19px}.poker-seat h2{font-size:13px;line-height:1.3;letter-spacing:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:550}.seat-kind{display:block;color:var(--ui-muted);font-size:9px;margin-top:1px}.seat-stack{display:flex;justify-content:center;align-items:center;gap:5px;font-size:18px;line-height:1.35;margin-top:3px;letter-spacing:-.02em;font-weight:600}.seat-stack .icon{width:13px;height:13px;color:var(--ui-accent)}.seat-action{font-size:10px;color:var(--ui-muted);line-height:1.2;margin-top:4px;min-height:12px;overflow-wrap:anywhere}.seat-cards{position:absolute;display:flex;gap:4px;justify-content:center;left:50%;bottom:calc(100% + 6px);transform:translateX(-50%);z-index:-1}.seat-cards:not(:empty)+.seat-panel .seat-avatar{margin-top:-10px}.own-seat{width:174px;z-index:4}.own-seat .seat-cards{bottom:calc(100% - 2px);z-index:1;gap:5px}.own-seat .seat-cards .poker-card{width:53px;height:73px;padding:5px}.own-seat .seat-cards .poker-card strong{font-size:26px}.own-seat .seat-cards .poker-card svg{width:27px;height:27px}.own-seat .seat-avatar{display:none}.own-seat .seat-panel{padding-top:10px}.own-seat h2{font-size:14px}.own-seat .seat-stack{font-size:20px}.own-seat .seat-kind{display:none}.active-seat .seat-panel{border-color:var(--ui-accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--ui-accent),transparent 78%),0 8px 24px #0004}.active-seat .seat-avatar{border-color:var(--ui-accent);color:var(--ui-accent)}.active-seat .seat-action{color:var(--ui-accent)}.folded-seat .seat-panel{border-style:dashed}.folded-seat .seat-cards{display:none}.inactive-seat .seat-action{color:var(--ui-muted)}.seat-positions{position:absolute;right:-9px;top:-12px;display:flex;gap:3px}.position-disc{background:#efe9d7;color:#282b25;border:2px solid #dad4c3;box-shadow:0 2px 4px #0004;border-radius:50%;width:24px;height:24px;display:grid;place-items:center;font-size:9px;font-weight:750}.position-disc.dealer{background:#fffdf7;color:#111;font-size:13px}.seat-bet{position:absolute;display:flex;gap:4px;align-items:center;justify-content:center;left:50%;top:calc(100% + 5px);transform:translateX(-50%);font-size:10px;white-space:nowrap;color:#f9f5e4;text-shadow:0 1px 4px #000}.seat-bet .icon{width:15px;height:15px;color:#e8c788;filter:drop-shadow(0 2px 0 #493421)}.own-seat .seat-bet{top:auto;bottom:calc(100% + 78px)}.turn-clock{position:absolute;bottom:-18px;left:0;right:0;color:var(--ui-accent);font-size:10px;font-weight:600;white-space:nowrap}.empty-seat .seat-panel{background:color-mix(in srgb,var(--ui-bg),transparent 25%);border-style:dashed;padding:12px 8px;color:var(--ui-muted);box-shadow:none}.empty-seat .seat-panel>.icon{margin:0 auto 5px;width:18px;height:18px}.empty-seat .seat-panel>span{font-size:11px}.seat-spacer{height:0}
/* Positions are relative to the local player; seat zero is always at the bottom. */
.poker-seat[data-position="0"]{--seat-x:50%;--seat-y:87%}
[data-capacity="2"] [data-position="1"]{--seat-x:50%;--seat-y:18%}
[data-capacity="3"] [data-position="1"]{--seat-x:18%;--seat-y:34%}[data-capacity="3"] [data-position="2"]{--seat-x:82%;--seat-y:34%}
[data-capacity="4"] [data-position="1"]{--seat-x:13%;--seat-y:53%}[data-capacity="4"] [data-position="2"]{--seat-x:50%;--seat-y:18%}[data-capacity="4"] [data-position="3"]{--seat-x:87%;--seat-y:53%}
[data-capacity="5"] [data-position="1"]{--seat-x:14%;--seat-y:65%}[data-capacity="5"] [data-position="2"]{--seat-x:29%;--seat-y:18%}[data-capacity="5"] [data-position="3"]{--seat-x:71%;--seat-y:18%}[data-capacity="5"] [data-position="4"]{--seat-x:86%;--seat-y:65%}
[data-capacity="6"] [data-position="1"]{--seat-x:15%;--seat-y:71%}[data-capacity="6"] [data-position="2"]{--seat-x:15%;--seat-y:29%}[data-capacity="6"] [data-position="3"]{--seat-x:50%;--seat-y:18%}[data-capacity="6"] [data-position="4"]{--seat-x:85%;--seat-y:29%}[data-capacity="6"] [data-position="5"]{--seat-x:85%;--seat-y:71%}
[data-capacity="7"] [data-position="1"]{--seat-x:16%;--seat-y:74%}[data-capacity="7"] [data-position="2"]{--seat-x:12%;--seat-y:38%}[data-capacity="7"] [data-position="3"]{--seat-x:35%;--seat-y:17%}[data-capacity="7"] [data-position="4"]{--seat-x:65%;--seat-y:17%}[data-capacity="7"] [data-position="5"]{--seat-x:88%;--seat-y:38%}[data-capacity="7"] [data-position="6"]{--seat-x:84%;--seat-y:74%}
[data-capacity="8"] [data-position="1"]{--seat-x:23%;--seat-y:81%}[data-capacity="8"] [data-position="2"]{--seat-x:11%;--seat-y:51%}[data-capacity="8"] [data-position="3"]{--seat-x:23%;--seat-y:22%}[data-capacity="8"] [data-position="4"]{--seat-x:50%;--seat-y:16%}[data-capacity="8"] [data-position="5"]{--seat-x:77%;--seat-y:22%}[data-capacity="8"] [data-position="6"]{--seat-x:89%;--seat-y:51%}[data-capacity="8"] [data-position="7"]{--seat-x:77%;--seat-y:81%}
[data-capacity="9"] [data-position="1"]{--seat-x:25%;--seat-y:84%}[data-capacity="9"] [data-position="2"]{--seat-x:11%;--seat-y:60%}[data-capacity="9"] [data-position="3"]{--seat-x:14%;--seat-y:28%}[data-capacity="9"] [data-position="4"]{--seat-x:38%;--seat-y:16%}[data-capacity="9"] [data-position="5"]{--seat-x:62%;--seat-y:16%}[data-capacity="9"] [data-position="6"]{--seat-x:86%;--seat-y:28%}[data-capacity="9"] [data-position="7"]{--seat-x:89%;--seat-y:60%}[data-capacity="9"] [data-position="8"]{--seat-x:75%;--seat-y:84%}
.table-actions{background:var(--ui-panel);border:var(--line);border-radius:14px;padding:18px 22px;display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:12px auto 24px;position:relative;z-index:5;min-height:80px}.action-heading{display:flex;gap:8px;align-items:center;color:var(--ui-muted);font-size:13px;margin-right:auto}.action-heading .icon{width:18px;height:18px;color:var(--ui-accent)}.action-heading strong{color:var(--ui-fg);font-weight:600}.table-actions>.btn{min-width:130px}.raise-form{display:grid;grid-template-columns:150px 1fr 140px;gap:12px 18px;align-items:end;width:100%;padding-top:16px;border-top:var(--line)}.raise-form label{font-size:11px;color:var(--ui-muted)}.raise-form input[type=number]{display:block;width:100%;margin-top:5px;font-size:18px;padding-block:8px;min-height:44px;color:var(--ui-fg)}.raise-slider{display:flex;flex-direction:column;gap:7px;min-width:0}.raise-slider input[type=range]{width:100%;padding:0;min-height:24px;height:24px;accent-color:var(--ui-accent);cursor:pointer}.raise-presets{display:flex;gap:5px}.raise-presets button{flex:1;background:var(--ui-raised);border:var(--line);border-radius:5px;min-height:32px;font-size:11px;padding:5px}.raise-presets button:hover{border-color:var(--ui-accent)}.raise-form>.btn{height:48px;align-self:end}.preview-action-note{font-size:11px;color:var(--ui-muted);width:100%}.game-rules{border-bottom:var(--line);margin-block:6px;padding-bottom:5px}.game-rules>summary{display:flex;align-items:center;gap:10px;list-style:none;font-size:13px;color:var(--ui-muted)}.game-rules>summary::-webkit-details-marker{display:none}.game-rules>summary:after{content:'+';font-size:21px;margin-left:auto;font-weight:400}.game-rules[open]>summary:after{content:'−'}.game-rules>summary>.icon{width:17px;height:17px}.game-rule-list{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:20px}.game-rule-list>div{border-bottom:var(--line);padding-bottom:8px;min-width:0}.game-rule-list dt{font-size:11px;color:var(--ui-muted)}.game-rule-list dd{margin:3px 0 0;overflow-wrap:anywhere;font-size:13px}#table-log{font-size:13px;padding-left:24px;max-height:280px;overflow:auto;margin-bottom:16px;color:var(--ui-muted)}#table-log li{padding-block:4px}.leave-confirm{margin-top:20px;max-width:460px;font-size:13px;color:var(--ui-muted)}.leave-confirm summary{display:flex;gap:8px;align-items:center;cursor:pointer;min-height:44px;list-style:none}.leave-confirm .icon{width:17px;height:17px}.leave-confirm .btn{margin-top:12px}.leave-confirm summary::-webkit-details-marker{display:none}
@media(max-width:850px) and (min-width:640px){.poker-seat{width:119px}.own-seat{width:146px}.poker-arena{height:560px}.table-rail{inset-inline:12px}.table-board{max-width:50%}.community-cards{gap:5px}.community-cards .poker-card,.card-slot{width:44px;height:63px}.community-cards .poker-card strong{font-size:23px}.community-cards .poker-card svg{width:24px;height:24px}}
@media(max-width:639px){.game-menu-heading .poker-artwork{display:none}.game-page h1{font-size:40px}.game-menu-heading>.eyebrow{font-size:9px}.game-settings{padding:17px}.mode-card{padding:18px;gap:6px 12px;grid-template-columns:46px 1fr 20px}.mode-emblem{width:46px;height:54px}.mode-card strong{font-size:19px}.game-kind{gap:10px}.game-kind button{display:flex;flex-direction:column;align-items:flex-start;font-size:16px;padding:15px;gap:7px}.game-kind span{font-size:11px}.game-kind button>.icon{width:25px;height:25px}.game-setup>.btn{width:100%}.game-table-heading h1{font-size:26px}.game-table-heading>.text-link{font-size:0;gap:0}.game-table-heading>.text-link .icon{width:22px;height:22px}.game-table-heading .eyebrow{font-size:8px}#game-table{padding-top:20px}.design-preview-bar{flex-wrap:wrap;gap:4px;padding:8px 10px}.design-preview-bar>span{font-size:11px}.design-preview-bar>div{width:100%}.design-preview-bar button{flex:1;min-height:38px}.table-status{gap:6px;padding-bottom:0;font-size:12px}.table-status>span{font-size:10px}.table-status .icon{width:14px;height:14px}.game-invite{flex-wrap:wrap}.game-invite label{flex-basis:100%}.poker-arena{height:650px;margin-top:5px;margin-inline:-5px}.table-rail{inset:68px 13px 58px;border-radius:46%;padding:12px}.felt-line{inset:11px}.felt-wordmark{top:19%;font-size:14px}.felt-wordmark span{font-size:6px}.poker-seat{width:98px}.seat-panel{padding:7px 5px 6px;border-radius:9px}.seat-avatar{width:28px;height:28px;margin-top:-20px;margin-bottom:2px}.seat-avatar .icon{width:16px;height:16px}.poker-seat h2{font-size:11px}.seat-kind{font-size:8px}.seat-stack{font-size:15px;margin-top:2px}.seat-stack .icon{width:11px;height:11px}.seat-action{font-size:9px;margin-top:2px}.seat-cards{gap:3px;bottom:calc(100% + 3px)}.seat-cards .poker-card{width:27px;height:38px;padding:3px;border-radius:4px}.seat-cards .poker-card strong{font-size:13px}.seat-cards .poker-card svg{width:13px;height:13px}.seat-cards .card-back{border-width:2px}.seat-cards .card-back:after{inset:2px}.seat-positions{right:-5px;top:-10px;gap:2px}.position-disc{width:20px;height:20px;font-size:7px}.position-disc.dealer{font-size:11px}.own-seat{width:130px}.own-seat h2{font-size:12px}.own-seat .seat-stack{font-size:18px}.own-seat .seat-cards .poker-card{width:43px;height:60px;padding:4px}.own-seat .seat-cards .poker-card strong{font-size:23px}.own-seat .seat-cards .poker-card svg{width:22px;height:22px}.own-seat .seat-bet{bottom:calc(100% + 65px)}.seat-bet{font-size:9px;gap:3px;top:calc(100% + 3px)}.seat-bet .icon{width:13px;height:13px}.turn-clock{font-size:9px;bottom:-15px}.table-board{top:51%;width:100%;max-width:70%}.community-cards{gap:4px;margin:10px 0 7px}.community-cards .poker-card,.card-slot{width:37px;height:53px;border-radius:4px}.community-cards .poker-card{padding:4px}.community-cards .poker-card strong{font-size:20px}.community-cards .poker-card svg{width:19px;height:19px}.pot-label{font-size:21px}.pot-caption{font-size:9px}.board-stage{font-size:8px;margin-bottom:4px}.chip-stack{transform:scale(.85);margin-right:-4px}.pot-display{gap:6px}.board-result{font-size:10px;line-height:1.3;padding:4px}.board-idle{font-size:12px}.board-idle small{font-size:10px}.empty-seat .seat-panel>span{font-size:10px}
.poker-seat[data-position="0"]{--seat-y:89%}
[data-capacity="2"] [data-position="1"]{--seat-y:17%}
[data-capacity="3"] [data-position="1"]{--seat-x:18%;--seat-y:26%}[data-capacity="3"] [data-position="2"]{--seat-x:82%;--seat-y:26%}
[data-capacity="4"] [data-position="1"]{--seat-x:16%;--seat-y:59%}[data-capacity="4"] [data-position="3"]{--seat-x:84%;--seat-y:59%}
[data-capacity="5"] [data-position="1"]{--seat-x:16%;--seat-y:69%}[data-capacity="5"] [data-position="2"]{--seat-x:22%;--seat-y:24%}[data-capacity="5"] [data-position="3"]{--seat-x:78%;--seat-y:24%}[data-capacity="5"] [data-position="4"]{--seat-x:84%;--seat-y:69%}
[data-capacity="6"] [data-position="1"]{--seat-x:16%;--seat-y:70%}[data-capacity="6"] [data-position="2"]{--seat-x:16%;--seat-y:34%}[data-capacity="6"] [data-position="3"]{--seat-y:15%}[data-capacity="6"] [data-position="4"]{--seat-x:84%;--seat-y:34%}[data-capacity="6"] [data-position="5"]{--seat-x:84%;--seat-y:70%}
.poker-arena:is([data-capacity="7"],[data-capacity="8"],[data-capacity="9"]){height:800px}
[data-capacity="7"] [data-position="1"]{--seat-x:17%;--seat-y:74%}[data-capacity="7"] [data-position="2"]{--seat-x:16%;--seat-y:34%}[data-capacity="7"] [data-position="3"]{--seat-x:34%;--seat-y:16%}[data-capacity="7"] [data-position="4"]{--seat-x:70%;--seat-y:16%}[data-capacity="7"] [data-position="5"]{--seat-x:84%;--seat-y:34%}[data-capacity="7"] [data-position="6"]{--seat-x:83%;--seat-y:74%}
[data-capacity="8"] [data-position="1"]{--seat-x:17%;--seat-y:74%}[data-capacity="8"] [data-position="2"]{--seat-x:16%;--seat-y:37%}[data-capacity="8"] [data-position="3"]{--seat-x:17%;--seat-y:20%}[data-capacity="8"] [data-position="4"]{--seat-x:50%;--seat-y:10%}[data-capacity="8"] [data-position="5"]{--seat-x:83%;--seat-y:20%}[data-capacity="8"] [data-position="6"]{--seat-x:84%;--seat-y:37%}[data-capacity="8"] [data-position="7"]{--seat-x:83%;--seat-y:74%}
[data-capacity="9"] [data-position="1"]{--seat-x:17%;--seat-y:78%}[data-capacity="9"] [data-position="2"]{--seat-x:16%;--seat-y:64%}[data-capacity="9"] [data-position="3"]{--seat-x:16%;--seat-y:33%}[data-capacity="9"] [data-position="4"]{--seat-x:32%;--seat-y:16%}[data-capacity="9"] [data-position="5"]{--seat-x:69%;--seat-y:16%}[data-capacity="9"] [data-position="6"]{--seat-x:84%;--seat-y:33%}[data-capacity="9"] [data-position="7"]{--seat-x:84%;--seat-y:64%}[data-capacity="9"] [data-position="8"]{--seat-x:83%;--seat-y:78%}
.table-actions{padding:15px;gap:10px;margin-top:0}.action-heading{flex-basis:100%;font-size:12px}.table-actions>.btn{flex:1;min-width:110px;font-size:13px;padding:12px;gap:7px}.raise-form{grid-template-columns:1fr 1fr;gap:10px;padding-top:12px}.raise-form label{grid-column:1}.raise-form>.btn{grid-column:2;grid-row:1;font-size:13px;padding:12px;gap:7px}.raise-slider{grid-column:1/-1;grid-row:2}.raise-presets button{min-height:40px;font-size:12px}.raise-slider input[type=range]{min-height:36px}.game-rule-list{grid-template-columns:1fr}.game-join .form-grid{grid-template-columns:1fr}}
@media(max-width:359px){.poker-seat{width:88px}.own-seat{width:118px}.community-cards{gap:3px}.community-cards .poker-card,.card-slot{width:32px;height:46px}.community-cards .poker-card strong{font-size:17px}.community-cards .poker-card svg{width:17px;height:17px}.game-kind{grid-template-columns:1fr}.design-preview-bar button{padding-inline:8px}.table-status>span{font-size:9px}.seat-kind{font-size:7px}.poker-seat h2{font-size:10px}}
/* Compact player plaques leave more felt visible without hiding player information. */
.seat-avatar{position:absolute;left:50%;top:-16px;transform:translateX(-50%);margin:0}.seat-cards:not(:empty)+.seat-panel .seat-avatar{margin:0}.seat-panel{padding-top:22px}.seat-cards{bottom:calc(100% + 10px)}.own-seat .seat-panel{padding-top:10px}.own-seat .seat-cards{bottom:calc(100% - 2px)}
.appearance button,.design-preview-bar button,.raise-presets button{min-height:44px}
@media(max-width:639px){.seat-avatar{width:25px;height:25px;top:-13px}.seat-panel{padding-top:15px}.seat-cards{bottom:calc(100% + 12px)}.poker-arena:is([data-capacity="7"],[data-capacity="8"],[data-capacity="9"]) .poker-seat:not(.own-seat) .card-back{width:22px;height:30px}.poker-arena[data-capacity="9"] [data-position="2"],.poker-arena[data-capacity="9"] [data-position="7"]{--seat-y:65%}.poker-arena[data-capacity="9"] [data-position="1"],.poker-arena[data-capacity="9"] [data-position="8"]{--seat-y:80%}.raise-presets button{min-height:44px}.appearance button{min-height:44px}.design-preview-bar button{min-height:44px}}
.folded-seat .seat-cards{display:flex}
@media(max-width:639px){.poker-arena:is([data-capacity="7"],[data-capacity="8"],[data-capacity="9"]) .table-board{top:47%}}
@media(min-width:640px){.felt-wordmark{top:22%}}
[data-theme=classic] .seat-bet{background:#183c2ded;padding:2px 6px;border-radius:10px;text-shadow:none}
.hand-results{width:100%;display:grid;gap:8px;padding-bottom:14px;border-bottom:var(--line)}.hand-results>p{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;font-size:13px}.hand-results .icon{color:var(--ui-accent);width:19px;height:19px}.hand-results strong{margin-left:auto;font-size:13px;color:var(--ui-accent)}.hand-results span{overflow-wrap:anywhere;min-width:0;flex:1}
@media(min-width:640px){.felt-wordmark{font-size:12px;line-height:1.15}.felt-wordmark span{font-size:6px;line-height:1.2}}
@media(max-width:639px){.table-board{top:45%}.poker-arena[data-capacity="4"] [data-position="1"],.poker-arena[data-capacity="4"] [data-position="3"]{--seat-y:70%}}
.raise-slider input[type=range]{min-height:44px;height:44px}
.poker-arena.has-hand .felt-wordmark{display:none}
/* Chip stacks are a size comparison; the adjacent number is the exact stack. */
.chip-rack{display:inline-flex;position:relative;align-items:flex-end;justify-content:center;width:60px;height:34px;flex-shrink:0;padding-right:7px;vertical-align:middle;pointer-events:none}.chip-tower{position:relative;width:13px;height:34px;flex-shrink:0;--chip-face:#79532a;--chip-rim:#efd095;--chip-edge:#392b1c}.chip-tower[data-tone=blue]{--chip-face:#315a74;--chip-rim:#bed9e8;--chip-edge:#183041}.chip-tower[data-tone=red]{--chip-face:#853e40;--chip-rim:#f0beb8;--chip-edge:#482024}.chip-tower[data-tone=ivory]{--chip-face:#ded6c1;--chip-rim:#706650;--chip-edge:#918570}.chip-rack .chip-disc.icon{position:absolute;left:0;bottom:0;width:23px;height:23px;max-width:none;border-radius:50%;background:var(--chip-face);color:var(--chip-rim);box-shadow:0 3px 0 var(--chip-edge),0 4px 4px #0004;transform:scaleY(.52);transform-origin:center bottom}.chip-disc[data-level="1"]{bottom:3px!important}.chip-disc[data-level="2"]{bottom:6px!important}.chip-disc[data-level="3"]{bottom:9px!important}.chip-disc[data-level="4"]{bottom:12px!important}.chip-disc[data-level="5"]{bottom:15px!important}.chip-disc[data-level="6"]{bottom:18px!important}.chip-disc[data-level="7"]{bottom:21px!important}.chip-rack[data-chips="0"]:after{content:'—';font-size:15px;color:var(--ui-muted);line-height:24px}.seat-stack{gap:3px;min-height:34px;margin-top:0;line-height:1.1}.seat-stack>.chip-rack{width:53px}.stack-amount{min-width:0;font-size:17px}.seat-stack[data-large=true] .stack-amount{font-size:13px}.own-seat .stack-amount{font-size:20px}.own-seat .seat-stack[data-large=true] .stack-amount{font-size:15px}.pot-display>.chip-rack{width:68px;height:36px;margin-right:0}.pot-display .chip-tower{width:15px}.pot-display .chip-disc.icon{width:26px;height:26px}.chip-motion-layer{position:absolute;inset:0;z-index:8;pointer-events:none;overflow:visible}.chip-flight{position:absolute;left:0;top:0;display:block;pointer-events:none;will-change:transform,opacity;filter:drop-shadow(0 5px 5px #0005)}.chip-flight>.chip-rack{width:60px;height:34px}
.preview-playback{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}.preview-playback .btn{font-size:12px;gap:7px;min-height:44px}.preview-playback .icon{width:17px;height:17px}
.round-summary{background:var(--ui-panel);border:1px solid var(--ui-border);border-radius:15px;padding:24px;margin:0 0 26px;box-shadow:0 12px 28px #0001}.round-summary-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.round-summary-heading h2{font-size:25px;margin-top:10px;font-weight:600}.round-summary-heading .eyebrow{font-size:10px;letter-spacing:.12em;gap:7px}.round-summary-heading .eyebrow>.icon{color:var(--ui-accent)}.personal-result{text-align:right;flex-shrink:0}.personal-result small{font-size:11px;color:var(--ui-muted);display:block;margin-bottom:3px}.personal-result strong{font-size:27px;font-weight:650;letter-spacing:-.04em}.result-positive{color:#8bdbad}.result-negative{color:#ffb3ac}.result-even{color:var(--ui-muted)}[data-theme=classic] .result-positive{color:#22633e}[data-theme=classic] .result-negative{color:#a02626}.summary-board-row{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:18px;padding-bottom:16px;border-bottom:var(--line)}.summary-board-row>.muted{font-size:12px}.history-board{display:flex;gap:4px;align-items:center;min-width:0}.history-board .poker-card{width:28px;height:39px;padding:3px;border-radius:4px}.history-board .poker-card strong{font-size:14px}.history-board .poker-card svg{width:14px;height:14px}.history-board .muted{font-size:11px}.round-outcomes{list-style:none;margin:17px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.round-outcome{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:7px;padding:12px;border:var(--line);border-radius:9px;background:var(--ui-input);min-width:0}.round-outcome.is-me{border-color:var(--ui-accent)}.outcome-name{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:500;min-width:0;overflow-wrap:anywhere}.outcome-name>.icon{width:15px;height:15px;color:var(--ui-muted)}.round-outcome>strong{font-size:15px;letter-spacing:-.02em}.outcome-stacks{grid-column:1/-1;color:var(--ui-muted);font-size:10px}.result-explanation{font-size:11px;color:var(--ui-muted);margin-top:15px}.hand-history{margin-top:32px;margin-bottom:22px}.history-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.history-heading h2{display:flex;gap:9px;align-items:center;font-size:21px}.history-heading .icon{width:20px;height:20px;color:var(--ui-accent)}.history-heading>.muted{font-size:11px}.history-empty{border:1px dashed var(--ui-border);padding:22px;border-radius:12px;color:var(--ui-muted);font-size:13px}.history-hand{border:var(--line);border-radius:11px;background:var(--ui-panel);margin-top:9px;overflow:hidden}.history-hand>summary{display:grid;grid-template-columns:minmax(140px,1fr) auto 175px 16px;gap:20px;align-items:center;padding:16px 20px;min-height:74px;cursor:pointer;list-style:none}.history-hand>summary::-webkit-details-marker{display:none}.history-hand>summary:after{content:'+';color:var(--ui-muted);font-size:22px;font-weight:400;grid-column:4;grid-row:1}.history-hand[open]>summary:after{content:'−'}.history-hand-label{display:flex;flex-direction:column;gap:3px}.history-hand-label>strong{font-size:14px;font-weight:600}.history-hand-label>small{font-size:11px;color:var(--ui-muted)}.history-hand>summary>strong{font-size:16px;white-space:nowrap;text-align:right}.history-hand>summary>.history-board{justify-content:flex-end}.history-hand-body{border-top:var(--line);padding:8px 20px 16px}.history-results{border-collapse:collapse;width:100%;font-size:12px}.history-results th,.history-results td{padding:12px 10px;border-bottom:var(--line);text-align:right;overflow-wrap:anywhere}.history-results th:first-child{text-align:left;padding-left:0}.history-results th:last-child,.history-results td:last-child{padding-right:0}.history-results thead th{font-size:10px;color:var(--ui-muted);font-weight:500}.history-results tbody th{font-weight:500}.history-results td:last-child{font-weight:600}.history-results tbody tr:last-child>*{border-bottom:0}.history-pots{font-size:11px;color:var(--ui-muted);padding:12px 0 0 18px;margin:0;border-top:var(--line)}.history-pots li{padding-block:3px}
@media(max-width:850px) and (min-width:640px){.seat-stack>.chip-rack{width:42px}.seat-stack .stack-amount{font-size:14px}.seat-stack[data-large=true] .stack-amount{font-size:11px}.seat-stack .chip-tower{width:9px}.seat-stack .chip-disc.icon{width:18px;height:18px}.round-outcomes{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:639px){.seat-stack{min-height:29px;gap:2px}.seat-stack>.chip-rack{width:39px;height:27px;padding-right:5px}.seat-stack .chip-tower{width:9px;height:27px}.seat-stack .chip-disc.icon{width:16px;height:16px}.stack-amount{font-size:14px}.seat-stack[data-large=true] .stack-amount{font-size:10px}.own-seat .stack-amount{font-size:17px}.own-seat .seat-stack[data-large=true] .stack-amount{font-size:13px}.own-seat .seat-stack>.chip-rack{width:44px}.pot-display>.chip-rack{width:54px;height:30px}.pot-display .chip-tower{width:12px;height:30px}.pot-display .chip-disc.icon{width:22px;height:22px}.round-summary{padding:17px 14px}.round-summary-heading{gap:8px}.round-summary-heading h2{font-size:20px}.round-summary-heading .eyebrow{font-size:8px;letter-spacing:.09em}.round-summary-heading .eyebrow>.icon{width:14px;height:14px}.personal-result strong{font-size:22px}.personal-result small{font-size:10px}.summary-board-row{align-items:flex-start;flex-direction:column;gap:10px;margin-top:16px}.round-outcomes{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:13px}.round-outcome{padding:9px;grid-template-columns:1fr;gap:5px}.round-outcome>strong{font-size:18px;grid-row:2}.outcome-name{font-size:11px}.outcome-stacks{font-size:9px}.result-explanation{font-size:10px}.history-heading h2{font-size:19px}.history-heading>.muted{font-size:10px}.history-empty{font-size:12px;padding:17px}.history-hand>summary{grid-template-columns:1fr auto 14px;gap:9px 12px;padding:14px}.history-hand>summary:after{grid-column:3;grid-row:1}.history-hand>summary>.history-board{grid-column:1 / -1;grid-row:2;justify-content:flex-start}.history-hand>summary>strong{font-size:17px}.history-hand-body{padding:2px 14px 14px}.history-results,.history-results tbody{display:block}.history-results thead{display:none}.history-results tr{display:grid;grid-template-columns:1fr 1fr;gap:7px 16px;padding:14px 0;border-bottom:var(--line)}.history-results tr:last-child{border:0}.history-results th,.history-results td{padding:0;border:0;min-width:0;text-align:left;display:flex;justify-content:space-between;gap:5px;font-size:11px;align-items:center}.history-results tbody th{grid-column:1/-1;font-size:13px;margin-bottom:4px}.history-results td:before{content:attr(data-label);font-size:9px;color:var(--ui-muted);font-weight:400}.preview-playback{gap:6px}.preview-playback .btn{flex:1;padding:10px 8px;font-size:11px;min-width:130px}.preview-playback .btn[hidden]{display:none!important}}
@media(max-width:359px){.seat-stack>.chip-rack{width:32px}.seat-stack .chip-tower{width:7px}.seat-stack .chip-disc.icon{width:14px;height:14px}.stack-amount{font-size:12px}.seat-stack[data-large=true] .stack-amount{font-size:9px}.personal-result strong{font-size:19px}.round-summary-heading h2{font-size:18px}}
.winning-seat .seat-panel{border-color:#78b58f;box-shadow:0 0 0 2px #78b58f18,0 8px 16px #0003}.seat-action.result-positive{color:#8bdbad}.seat-action.result-negative{color:#ffb3ac}[data-theme=classic] .seat-action.result-positive{color:#22633e}[data-theme=classic] .seat-action.result-negative{color:#a02626}.pot-display>.chip-rack[data-chips="0"]:after{color:#d5e4d2}

/* Turn focus and the player's decision dock. Motion never changes suit colors. */
.active-seat{--turn-color:var(--ui-accent)}
.active-seat .seat-panel{border-color:var(--turn-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--turn-color),transparent 92%),0 0 32px color-mix(in srgb,var(--turn-color),transparent 87%),0 10px 24px #0004}
.active-seat .seat-action{color:var(--turn-color)}
.active-seat .seat-action:before,.turn-beacon{content:'';display:inline-block;vertical-align:middle;width:5px;height:5px;background:currentColor;border-radius:50%;margin-right:5px;box-shadow:0 0 8px color-mix(in srgb,currentColor,transparent 40%)}
.active-seat[data-urgent=true]{--turn-color:#f3b87b}
[data-theme=classic] .active-seat[data-urgent=true]{--turn-color:#99510c}
.seat-seconds{font-variant-numeric:tabular-nums;white-space:nowrap}
.seat-time-track{position:absolute;bottom:2px;left:9px;width:calc(100% - 18px);height:3px;color:var(--turn-color);pointer-events:none}
.time-track,.time-remaining{fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round}
.time-track{opacity:.16}.time-remaining{transition:stroke-dashoffset .2s linear}
.turn-arriving .seat-panel{animation:turn-arrive .65s ease-out both}
.action-received{animation:action-received .5s ease-out both}
.card-dealt{animation:card-dealt .38s cubic-bezier(.2,.7,.3,1) both}
.card-dealt[data-deal="1"]{animation-delay:70ms}.card-dealt[data-deal="2"]{animation-delay:140ms}.card-dealt[data-deal="3"]{animation-delay:210ms}.card-dealt[data-deal="4"]{animation-delay:280ms}
@keyframes turn-arrive{from{box-shadow:0 0 0 7px color-mix(in srgb,var(--turn-color),transparent 82%),0 0 38px color-mix(in srgb,var(--turn-color),transparent 75%)}to{box-shadow:0 0 0 3px color-mix(in srgb,var(--turn-color),transparent 92%),0 0 32px color-mix(in srgb,var(--turn-color),transparent 87%),0 10px 24px #0004}}
@keyframes action-received{from{transform:translateY(3px);color:var(--ui-accent)}to{transform:translateY(0)}}
@keyframes card-dealt{from{transform:translateY(-9px)}to{transform:translateY(0)}}
.table-actions{max-width:820px;border-radius:19px;background:linear-gradient(145deg,color-mix(in srgb,var(--ui-raised),transparent 12%),var(--ui-panel));padding:18px;gap:12px;box-shadow:0 14px 38px #0002,inset 0 1px 0 #ffffff05;margin-top:0}
.table-actions[data-mode=decision]{border-color:color-mix(in srgb,var(--ui-accent),var(--ui-border) 70%)}
.table-actions[data-mode=decision]:before{content:'';position:absolute;top:-20px;left:50%;height:19px;width:1px;background:linear-gradient(transparent,var(--ui-accent));opacity:.5}
.table-actions[aria-busy=true]{cursor:progress}
.decision-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:0 3px 3px}
.decision-context{display:flex;flex-direction:column;gap:4px;min-width:0}
.decision-context>strong{font-size:15px;font-weight:550;display:flex;align-items:center;gap:4px}
.decision-context .turn-beacon{color:var(--ui-accent);width:6px;height:6px}
.decision-detail{font-size:11px;color:var(--ui-muted)}
.decision-time{display:flex;align-items:center;gap:8px;flex-shrink:0;color:var(--ui-accent)}
.decision-time>span:not(.turn-dial){font-size:10px;color:var(--ui-muted)}
.decision-time>.icon{width:16px;height:16px;color:var(--ui-muted)}
.decision-time[data-urgent=true]{color:#f3b87b}
[data-theme=classic] .decision-time[data-urgent=true]{color:#99510c}
.turn-dial{position:relative;width:42px;height:42px;display:grid;place-items:center}
.turn-ring{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg)}
.turn-dial>strong{font-size:14px;font-weight:550;font-variant-numeric:tabular-nums}
.decision-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:100%}
.decision-choices:has(>button:last-child:nth-child(2)){grid-template-columns:repeat(2,minmax(0,1fr))}
.decision-button{display:flex;align-items:center;justify-content:center;gap:12px;min-height:64px;padding:10px 16px;border:1px solid var(--ui-border);border-radius:12px;background:var(--ui-raised);color:var(--ui-fg);transition:transform .16s,background .16s,border-color .16s,box-shadow .16s}
.decision-button>.icon{width:20px;height:20px;flex-shrink:0}
.decision-button>span{display:flex;flex-direction:column;gap:2px;text-align:left;min-width:0}
.decision-button strong{font-size:15px;font-weight:550;line-height:1.25}
.decision-button small{font-size:11px;line-height:1.3;font-variant-numeric:tabular-nums}
.decision-fold{background:transparent;color:var(--ui-muted)}
.decision-call{background:color-mix(in srgb,var(--ui-accent),var(--ui-panel) 94%);border-color:color-mix(in srgb,var(--ui-accent),var(--ui-border) 75%)}
.decision-call>.icon{color:var(--ui-accent)}
.decision-call small{color:var(--ui-muted)}
.decision-raise{background:var(--ui-accent);color:var(--ui-accent-ink);border-color:var(--ui-accent)}
.decision-raise[aria-expanded=true]{background:color-mix(in srgb,var(--ui-accent),var(--ui-panel) 91%);color:var(--ui-accent)}
@media(hover:hover){.decision-button:hover:not(:disabled){transform:translateY(-2px);border-color:var(--ui-accent);box-shadow:0 5px 14px #0002}.decision-fold:hover:not(:disabled){border-color:#bd7974;color:var(--ui-fg)}}
.decision-button:active:not(:disabled){transform:translateY(1px);box-shadow:none}
.decision-button:disabled{cursor:default;opacity:.6}
.raise-form{grid-template-columns:140px minmax(0,1fr) 185px;gap:8px 18px;padding-top:17px;margin-top:2px;border-color:color-mix(in srgb,var(--ui-border),transparent 30%)}
.raise-form[hidden]{display:none!important}
.raise-form:not([hidden]){animation:raise-open .22s ease-out both}
@keyframes raise-open{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
.raise-form label{font-size:11px}
.raise-form input[type=number]{font-size:21px;font-variant-numeric:tabular-nums;font-weight:550;background:var(--ui-input);border-radius:9px;padding:9px 12px}
.raise-form .raise-submit{min-height:50px;height:auto;padding:12px;font-size:13px;white-space:normal;line-height:1.2}
.raise-submit>.icon{width:18px;height:18px;flex-shrink:0}
.raise-presets{gap:5px}.raise-presets button{background:transparent;border:1px solid transparent;min-height:44px;font-size:11px;border-radius:7px;color:var(--ui-muted)}
.raise-presets button:hover,.raise-presets button[aria-pressed=true]{background:var(--ui-raised);color:var(--ui-accent);border-color:var(--ui-border)}
.raise-slider{gap:0}.raise-slider input[type=range]{min-height:32px;background:transparent;border:0;accent-color:var(--ui-accent)}
.raise-cost{grid-column:1/-1;color:var(--ui-muted);font-size:11px;margin-top:2px;font-variant-numeric:tabular-nums}
.thinking-dots{display:flex;align-items:center;gap:4px;padding:0 5px}
.thinking-dots i{width:4px;height:4px;background:var(--ui-accent);border-radius:50%;animation:thinking-dot 1.6s ease-in-out infinite}
.thinking-dots i:nth-child(2){animation-delay:.15s}.thinking-dots i:nth-child(3){animation-delay:.3s}
@keyframes thinking-dot{0%,65%,100%{opacity:.3;transform:translateY(0)}30%{opacity:1;transform:translateY(-2px)}}
.table-actions[data-mode=waiting]{min-height:70px}.table-actions[data-mode=waiting] .action-heading{flex:1}
.preview-action-note{font-size:10px;opacity:.8}
.preview-time{display:flex;gap:8px;align-items:center;margin-left:auto;color:var(--ui-muted);font-size:11px}
.preview-time select{font-size:12px;min-height:44px;padding:7px 24px 7px 10px}
@media(max-width:639px){
    .table-actions{padding:13px;border-radius:16px;gap:10px;margin-bottom:22px}
    .decision-heading{padding:0 2px 4px;gap:6px}.decision-context>strong{font-size:13px}.decision-detail{font-size:10px}
    .decision-time{gap:5px}.decision-time>span:not(.turn-dial){font-size:9px}.turn-dial{width:37px;height:37px}.turn-dial>strong{font-size:12px}
    .decision-choices{gap:6px}.decision-button{min-height:67px;padding:10px 5px;gap:4px;flex-direction:column;border-radius:10px}
    .decision-button>.icon{width:16px;height:16px}.decision-button>span{text-align:center;gap:2px}.decision-button strong{font-size:12px}.decision-button small{font-size:10px}
    .raise-form{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:7px 12px;padding-top:12px}
    .raise-form label{grid-column:1;grid-row:1}.raise-form>.raise-submit{grid-column:2;grid-row:1;font-size:12px;min-height:47px;padding:10px}
    .raise-slider{grid-column:1/-1;grid-row:2}.raise-cost{grid-row:3;font-size:10px}.raise-form input[type=number]{font-size:19px}
    .raise-presets button{font-size:11px}.raise-slider input[type=range]{min-height:36px}
    .preview-time{width:100%;justify-content:space-between}.preview-time select{flex:1;max-width:185px}
    .seat-time-track{left:6px;width:calc(100% - 12px);height:2px}.active-seat .seat-action:before{display:none}
    .active-seat .seat-action{white-space:nowrap;font-size:8px}.own-seat.active-seat .seat-action{font-size:9px}
}
@media(prefers-reduced-motion:reduce){.turn-arriving .seat-panel,.action-received,.card-dealt,.thinking-dots i,.raise-form:not([hidden]){animation:none}.time-remaining,.decision-button{transition:none}.decision-button:hover:not(:disabled),.decision-button:active:not(:disabled){transform:none}}
@media(max-width:639px){.seat-stack .chip-tower{width:8px}.seat-stack .chip-disc.icon{width:14px;height:14px}.poker-arena:is([data-capacity="7"],[data-capacity="8"],[data-capacity="9"]) .poker-seat:not(.own-seat) .poker-card{width:22px;height:30px;padding:2px}.poker-arena:is([data-capacity="7"],[data-capacity="8"],[data-capacity="9"]) .poker-seat:not(.own-seat) .poker-card strong{font-size:11px}.poker-arena:is([data-capacity="7"],[data-capacity="8"],[data-capacity="9"]) .poker-seat:not(.own-seat) .poker-card svg{width:11px;height:11px}.poker-arena[data-capacity="9"] [data-position="1"],.poker-arena[data-capacity="9"] [data-position="8"]{--seat-y:82%}.poker-arena:is([data-capacity="7"],[data-capacity="8"],[data-capacity="9"]) .table-board{top:45%}}

/* Minimal table: compact player plaques with graphic status cues. */
.seat-panel{padding:20px 8px 9px}.own-seat .seat-panel{padding:9px 8px}
.poker-seat .seat-stack{display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;margin:2px 0 0;padding:0;background:transparent;border:0;border-radius:7px;line-height:1;cursor:pointer}
.seat-stack:hover{background:color-mix(in srgb,var(--ui-accent),transparent 94%)}
.seat-stack:focus-visible{outline-offset:0}
.seat-stack>.chip-rack,.own-seat .seat-stack>.chip-rack{width:80px;height:37px;padding:0 12px 3px 0}
.seat-stack .chip-tower{width:14px;height:34px}.seat-stack .chip-disc.icon{width:23px;height:23px}
.seat-action{position:absolute;left:7px;bottom:7px;display:grid;place-items:center;min-height:0;width:17px;height:17px;margin:0;padding:0;color:var(--ui-muted);pointer-events:auto}
.seat-action>.icon{width:13px;height:13px}.active-seat .seat-action:before{display:none}
.seat-action[hidden]{display:none}.active-seat .seat-action{color:var(--turn-color)}
.position-disc{width:24px;height:24px;font-size:10px;line-height:1;letter-spacing:0;font-weight:750}.position-disc.dealer{font-size:14px}
.own-seat .seat-cards{bottom:calc(100% + 10px)}
.own-seat .seat-bet{top:calc(100% + 9px);bottom:auto;left:50%;transform:translateX(-50%);padding:2px 7px;border-radius:12px;background:var(--ui-bg);color:var(--ui-fg);text-shadow:none;border:1px solid var(--ui-border)}
.own-seat .seat-bet>.icon{color:var(--ui-accent);filter:none}
.poker-arena{margin-bottom:22px}
.table-actions{max-width:500px;padding:12px;gap:12px;min-height:68px;border-radius:18px;justify-content:center}
.table-actions .decision-heading{width:auto;padding:0;order:2;flex:0 0 42px;justify-content:center}
.table-actions .decision-context.sr-only{width:1px;min-width:0;display:block}
.decision-choices{order:1;flex:1;min-width:0;width:auto;gap:9px}
.decision-button{min-height:64px;padding:10px;gap:6px;flex-direction:row}
.decision-button>.icon{width:25px;height:25px}
.decision-button>.decision-amount{font-size:12px;font-weight:550;font-variant-numeric:tabular-nums;display:block}
.decision-time>.icon{width:25px;height:25px;color:var(--ui-muted)}
.table-actions>.icon-only{min-width:48px;min-height:48px;padding:12px;flex:0 0 auto;order:4}
.table-actions>.icon-only>.icon{width:22px;height:22px}
.table-actions .action-heading{flex:none;min-height:30px;margin:0;justify-content:center}.action-heading>.icon{width:24px;height:24px}
.table-actions[data-mode=waiting] .action-heading{flex:none}
.raise-form{order:3;grid-template-columns:110px minmax(0,1fr) 120px;gap:10px 12px;padding-top:12px;margin-top:0}
.raise-form label{position:relative;min-width:0}.raise-form input[type=number]{margin-top:0;font-size:19px;padding:10px;min-height:48px}
.raise-form .raise-submit{min-height:48px;align-self:start;font-size:14px;gap:7px;padding:10px}
.raise-form .raise-submit>.icon{width:20px;height:20px}
.raise-slider{gap:4px}.raise-presets .icon-only{display:flex;align-items:center;justify-content:center;position:relative;min-width:0;min-height:44px;padding:8px;border:1px solid var(--ui-border)}
.raise-presets .icon{width:21px;height:21px}.preset-fraction{position:absolute;right:2px;bottom:2px;line-height:1;font-size:11px;padding:1px;background:var(--ui-panel);border-radius:3px}
.raise-cost{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;font-size:11px;min-width:0}
.raise-cost>span{display:flex;align-items:center;gap:6px}.raise-cost .icon{width:16px;height:16px;color:var(--ui-accent)}
@media(max-width:850px) and (min-width:640px){.seat-stack>.chip-rack,.own-seat .seat-stack>.chip-rack{width:70px;padding-right:10px}.seat-stack .chip-tower{width:12px}.seat-stack .chip-disc.icon{width:21px;height:21px}}
@media(max-width:639px){
    .seat-panel{padding:15px 4px 6px}.own-seat .seat-panel{padding:7px 5px}.poker-arena{margin-bottom:25px}
    .seat-stack>.chip-rack,.own-seat .seat-stack>.chip-rack{width:62px;height:34px;padding:0 9px 3px 0}.seat-stack .chip-tower{width:11px;height:31px}.seat-stack .chip-disc.icon{width:19px;height:19px}
    .seat-action{width:13px;height:13px;left:3px;bottom:5px}.seat-action>.icon{width:11px;height:11px}
    .own-seat .seat-cards{bottom:calc(100% + 9px)}.own-seat .seat-bet{top:calc(100% + 7px)}
    .poker-arena[data-capacity="6"]{height:710px}
    .poker-arena[data-capacity="6"] .table-board{top:48%}
    .poker-arena[data-capacity="9"]{height:840px;margin-bottom:34px}
    .poker-arena[data-capacity="9"] [data-position="0"]{--seat-y:94%}
    .poker-arena[data-capacity="9"] [data-position="2"],.poker-arena[data-capacity="9"] [data-position="7"]{--seat-y:64%}
    .poker-arena[data-capacity="9"] [data-position="3"],.poker-arena[data-capacity="9"] [data-position="6"]{--seat-y:34%}
    .position-disc{width:20px;height:20px;font-size:9px}.position-disc.dealer{font-size:12px}
    .table-actions{padding:10px;gap:8px;min-height:66px;border-radius:15px}
    .table-actions .decision-heading{flex-basis:34px}.turn-dial{width:34px;height:34px}.decision-time>.icon{width:21px;height:21px}
    .decision-choices{gap:6px}.decision-button{min-height:56px;padding:7px 4px;flex-direction:column;gap:2px}.decision-button>.icon{width:22px;height:22px}.decision-button>.decision-amount{font-size:10px}
    .raise-form{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.raise-form input[type=number]{font-size:18px}
    .raise-form>.raise-submit{grid-column:2;grid-row:1;font-size:13px}.raise-slider{grid-column:1/-1;grid-row:2}.raise-cost{grid-row:3;font-size:10px}
}

/* Stack values sit on a small tray below the chips; the whole plaque is a disclosure. */
.seat-panel{width:100%;transform:translateX(0)}
.poker-seat .seat-stack{flex-direction:column;gap:2px;min-height:50px;margin-top:3px;cursor:inherit}
.seat-stack:hover{background:transparent}
.seat-stack>.chip-rack,.own-seat .seat-stack>.chip-rack{height:30px;padding-bottom:3px}
.seat-stack .chip-tower{height:27px}
.seat-stack .chip-disc[data-level]{bottom:calc(var(--chip-level) * 2px)!important}
.stack-value{display:block;max-width:100%;min-width:58px;padding:2px 8px;border:1px solid color-mix(in srgb,var(--ui-accent),transparent 66%);border-bottom:2px solid color-mix(in srgb,var(--ui-accent),transparent 40%);border-radius:4px 4px 7px 7px;background:var(--ui-raised);color:var(--ui-fg);font-size:12px;line-height:14px;font-weight:600;letter-spacing:.015em;white-space:nowrap;box-shadow:0 2px 3px #0002}
.own-seat .stack-value{font-size:14px;min-width:68px}
.stack-value[data-digits=medium]{font-size:10px;letter-spacing:0}.stack-value[data-digits=long]{font-size:9px;letter-spacing:0;padding-inline:2px}
.seat-panel>h2{padding-inline:10px}
.seat-action{top:8px;bottom:auto}
.seat-toggle{position:absolute;inset:0;z-index:3;width:100%;height:100%;padding:0;border:0;border-radius:inherit;background:transparent;color:var(--ui-muted);cursor:pointer}
.seat-toggle:hover{box-shadow:inset 0 0 0 1px var(--ui-accent)}
.seat-toggle:focus-visible{outline-offset:3px}
.seat-panel:has(.seat-toggle:hover) .stack-value{border-color:var(--ui-accent)}
.poker-seat.is-expanded{z-index:10}
.is-expanded .seat-panel{width:var(--expanded-width);transform:translateX(var(--panel-shift));background:var(--ui-panel);border-color:var(--ui-accent);box-shadow:0 14px 32px #0007,0 0 0 3px color-mix(in srgb,var(--ui-accent),transparent 88%)}
.is-expanded.expand-animated .seat-panel{transition:width 200ms cubic-bezier(.2,.7,.3,1),transform 200ms cubic-bezier(.2,.7,.3,1)}
.is-expanded .seat-action{top:8px;bottom:auto}
.is-expanded .seat-bet{visibility:hidden}
.seat-details{margin-top:10px;padding:10px 7px 2px;border-top:1px solid var(--ui-border);text-align:left;cursor:pointer}
.seat-details[hidden]{display:none}
.expand-animated .seat-details{animation:seat-details-in 180ms ease-out both}
.seat-detail-kind{font-size:11px;color:var(--ui-muted);margin-bottom:10px}
.seat-metrics{display:grid;grid-template-columns:1fr 1fr;gap:12px 16px;margin:0}
.seat-metrics>div{min-width:0}.seat-metrics dt{font-size:10px;color:var(--ui-muted);line-height:1.3}.seat-metrics dd{margin:3px 0 0;font-size:16px;font-weight:550;line-height:1.2;overflow-wrap:anywhere}
.seat-detail-status{display:flex;align-items:center;gap:6px;margin-top:12px;padding-top:9px;border-top:1px solid var(--ui-border);font-size:11px;color:var(--ui-accent);line-height:1.4}.seat-detail-status>.icon{width:14px;height:14px}
.poker-arena{margin-bottom:calc(22px + var(--seat-clearance,0px))}
@media(min-width:640px){.poker-arena[data-capacity="9"]{height:610px}}
@keyframes seat-details-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:639px){
    .poker-seat .seat-stack{min-height:48px;gap:2px}
    .seat-stack>.chip-rack,.own-seat .seat-stack>.chip-rack{height:28px;padding-bottom:3px}.seat-stack .chip-tower{height:25px}
    .stack-value{font-size:11px;line-height:13px;padding:1px 5px;min-width:52px}.own-seat .stack-value{font-size:12px;min-width:62px}
    .seat-panel>h2{padding-inline:7px}
    .seat-action,.is-expanded .seat-action{top:5px;bottom:auto}
    .poker-arena{margin-bottom:calc(25px + var(--seat-clearance,0px))}.poker-arena[data-capacity="9"]{margin-bottom:calc(34px + var(--seat-clearance,0px))}
    .seat-details{padding-inline:9px}
}
@media(prefers-reduced-motion:reduce){.is-expanded.expand-animated .seat-panel{transition:none}.expand-animated .seat-details{animation:none}}

/* One local plaque: cards and stack above, compact actions below. Its top stays
   fixed when controls open; ResizeObserver reserves the space underneath. */
@media(min-width:640px) and (max-width:767px){.poker-arena[data-capacity="9"]{height:710px}}
.poker-seat.own-seat{width:250px;transform:translate(-50%,-52px)}
.own-seat .seat-panel{display:grid;grid-template-columns:108px minmax(0,1fr);gap:3px 8px;padding:12px 10px}
.own-seat .seat-cards{position:relative;inset:auto;transform:none;z-index:auto;grid-column:1;grid-row:1/span 2;justify-self:center;align-self:center;width:max-content;max-width:100%;gap:5px;padding:7px;border:1px solid var(--ui-border);border-radius:9px;background:color-mix(in srgb,var(--ui-bg),transparent 16%);box-shadow:inset 0 2px 7px #0003}
.own-seat .seat-cards .poker-card{width:43px;height:60px;padding:4px}
.own-seat .seat-cards .poker-card strong{font-size:23px}.own-seat .seat-cards .poker-card svg{width:22px;height:22px}
.own-seat .seat-panel>h2{grid-column:2;grid-row:1;align-self:end;margin:0;padding:0}
.own-seat .seat-stack{grid-column:2;grid-row:2;align-self:start;margin:0}
.own-seat .seat-details{grid-column:1/-1;grid-row:4}
.own-seat .seat-cards:empty{display:none}
.own-seat:not(.has-pocket) .seat-panel>h2,.own-seat:not(.has-pocket) .seat-stack{grid-column:1/-1}
.own-seat .seat-action,.own-seat.is-expanded .seat-action{left:8px;right:auto;top:4px;width:13px;height:13px}
.own-seat.is-expanded .seat-positions{right:8px}
.own-seat .table-actions{grid-column:1/-1;grid-row:3;position:relative;z-index:4;width:100%;min-width:0;min-height:53px;max-width:none;align-self:start;margin:7px 0 0;padding:8px 0 0;gap:6px;border:0;border-top:1px solid var(--ui-border);border-radius:0;background:transparent;box-shadow:none;cursor:default}
.own-seat .table-actions:before{display:none}
.own-seat .table-actions .decision-heading{flex-basis:28px}
.own-seat .decision-choices{gap:5px}
.own-seat .decision-button{min-height:44px;padding:5px 3px;gap:2px;flex-direction:column;border-radius:8px}
.own-seat .decision-button>.icon{width:18px;height:18px}
.own-seat .decision-button>.decision-amount{font-size:10px;line-height:12px}
.own-seat .turn-dial{width:28px;height:28px}.own-seat .turn-dial>strong{font-size:11px}
.own-seat .decision-time>.icon{width:19px;height:19px}
.own-seat .table-actions>.icon-only{min-width:44px;min-height:44px;padding:10px}
.own-seat .table-actions>.icon-only>.icon,.own-seat .action-heading>.icon{width:18px;height:18px}
.own-seat .raise-form{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;padding-top:8px}
.own-seat .raise-form label{grid-column:1;grid-row:1}
.own-seat .raise-form input[type=number]{min-height:44px;font-size:17px;padding:8px}
.own-seat .raise-form>.raise-submit{grid-column:2;grid-row:1;min-height:44px;padding:8px;font-size:12px}
.own-seat .raise-slider{grid-column:1/-1;grid-row:2}
.own-seat .raise-slider input[type=range]{min-height:44px}
.own-seat .raise-cost{grid-row:3;gap:8px;font-size:10px}
.own-seat .raise-presets .icon{width:18px;height:18px}
@media(max-width:1023px){
    .poker-seat.own-seat{top:calc(100% - 65px);transform:translateX(-50%)}
    .poker-arena:is([data-capacity="7"],[data-capacity="8"],[data-capacity="9"]) .own-seat{top:calc(100% - 25px)}
}
@media(max-width:639px){
    .poker-seat.own-seat{top:calc(100% - 85px)}
    .poker-arena:is([data-capacity="7"],[data-capacity="8"],[data-capacity="9"]) .own-seat{top:calc(100% - 65px)}
}
@media(min-width:1024px){
    .poker-seat.own-seat{width:286px}
    .own-seat .seat-panel{grid-template-columns:128px minmax(0,1fr);gap:3px 12px;padding:14px 12px}
    .own-seat .seat-cards .poker-card{width:53px;height:73px;padding:5px}
    .own-seat .seat-cards .poker-card strong{font-size:26px}.own-seat .seat-cards .poker-card svg{width:27px;height:27px}
}
