.button{border-width:1px;border-color:var(--color-border-strong);border-radius:var(--radius);background:var(--color-surface-raised);min-height:28px;color:var(--color-text);font:inherit;padding:0 10px}.button:enabled:not([aria-disabled=true]){cursor:pointer;border-style:solid}.button:hover:enabled:not([aria-disabled=true]):not([aria-pressed=true]):not([aria-selected=true]){background:var(--color-surface-sunken)}.button--icon{border-color:var(--color-none);background:var(--color-none);width:28px;height:28px;color:var(--color-text-secondary);flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.icon{box-sizing:border-box;flex:none;width:16px;height:16px;display:inline-block;position:relative}.icon:before,.icon:after{box-sizing:border-box;content:"";position:absolute}.icon--copy:before{border-top:1.5px solid;border-left:1.5px solid;border-top-left-radius:2px;width:9px;height:9px;top:1px;left:1px}.icon--copy:after{border:1.5px solid;border-radius:2px;width:10px;height:10px;top:5px;left:5px}.icon--check:before{border-bottom:2px solid;border-left:2px solid;width:12px;height:6px;top:3px;left:2px;transform:rotate(-45deg)}.icon--failed:before{border:1.5px solid;border-radius:50%;inset:1px}.icon--failed:after{background:currentColor;width:2px;height:5px;top:4px;left:7px;box-shadow:0 7px 0 -.25px}.icon--kebab:before{background:currentColor;border-radius:50%;width:3px;height:3px;top:6.5px;left:6.5px;box-shadow:0 -5px,0 5px}.icon--close:before,.icon--close:after{background:currentColor;width:12px;height:2px;top:7px;left:2px}.icon--close:before{transform:rotate(45deg)}.icon--close:after{transform:rotate(-45deg)}.icon--gear{width:20px;height:20px}.icon--gear:before{border:3px dotted;border-radius:50%;inset:1px}.icon--gear:after{border:1.5px solid;border-radius:50%;inset:6px}.icon--pop-out:before{border:1.5px solid;border-radius:1.5px;width:10px;height:10px;bottom:1px;left:1px}.icon--pop-out:after{background:linear-gradient(to bottom right, var(--color-none) calc(50% - .75px), currentcolor calc(50% - .75px), currentcolor calc(50% + .75px), var(--color-none) calc(50% + .75px));border-top:1.5px solid;border-right:1.5px solid;width:8px;height:8px;top:0;right:0}.icon--dock:before{border:1.5px solid;border-radius:1.5px;inset:2px}.icon--dock:after{background:currentColor;height:1.5px;top:6px;left:2px;right:2px}.button--ghost{background:var(--color-surface)}.button--ghost[aria-expanded=true]{border-color:var(--color-accent);color:var(--color-accent)}.button--compact{min-height:24px;padding:0 8px;font-size:12px}.button--danger{border-color:var(--color-danger);color:var(--color-danger)}.segmented{flex-wrap:wrap;align-items:center;gap:4px 8px;display:inline-flex}.segmented__label{color:var(--color-text-secondary)}.segmented__options{background:var(--color-surface-sunken);border-radius:8px;flex-wrap:wrap;gap:4px;padding:3px;display:inline-flex}.segmented__option{border-color:var(--color-none);background:var(--color-none)}.segmented__option[aria-pressed=true]{border-color:var(--color-accent);background:var(--color-accent);color:var(--color-on-accent);font-weight:600}.tabs{box-sizing:border-box;border-radius:var(--radius);background:var(--color-surface-sunken);flex-wrap:wrap;flex-shrink:0;gap:2px;max-width:100%;padding:2px;display:flex}.tabs__tab{border-color:var(--color-none);background:var(--color-none);min-height:26px;color:var(--color-text-secondary);white-space:nowrap;border-radius:4px;flex:none;padding:0 10px;font-size:13px;font-weight:500}.tabs__tab:hover:enabled:not([aria-disabled=true]):not([aria-pressed=true]):not([aria-selected=true]){background:var(--color-surface-raised);color:var(--color-text)}.tabs__tab[aria-selected=true]{border-color:var(--color-border);background:var(--color-surface);color:var(--color-text);font-weight:600}.settings-menu{display:inline-block;position:relative}.settings-menu__dialog{z-index:1000;box-sizing:border-box;border:1px solid var(--color-border-strong);background:var(--color-surface-raised);border-radius:10px;flex-direction:column;gap:12px;width:260px;max-height:calc(100vh - 64px);padding:12px;display:flex;position:absolute;top:calc(100% + 4px);right:0;overflow-y:auto}.settings-menu__title{color:var(--color-text-secondary);letter-spacing:.06em;text-transform:uppercase;margin:0;font-size:12px;font-weight:700}.settings-menu__dialog .segmented{flex-direction:column;align-items:stretch;gap:6px;display:flex}.settings-menu__dialog .segmented__options{display:flex}.settings-menu__dialog .segmented__option{flex:1;font-size:12px}.copy-button{z-index:1;background:var(--color-surface);position:absolute;top:8px;right:8px}.copy-button[data-status=copied]{color:var(--color-success)}.copy-button[data-status=failed]{color:var(--color-danger)}.copyable{box-sizing:border-box;border:1px solid var(--color-border);border-radius:var(--radius-card);background:var(--color-surface-raised);flex-direction:column;flex:auto;min-width:0;min-height:0;padding-right:44px;display:flex;position:relative}.copyable__text{box-sizing:border-box;flex:auto;min-width:0;max-width:100%;min-height:0;margin:0;padding:16px 0 16px 16px;font-size:13px;line-height:1.5;overflow:auto}.copyable__text:focus-visible{outline-offset:-2px}.copyable--compact{flex:none;min-height:36px;max-height:30%;padding-right:40px}.copyable--compact>.copy-button{top:4px;right:4px}.copyable__text--compact{padding:8px 0 8px 12px}.card{box-sizing:border-box;border:1px solid var(--color-border);border-radius:var(--radius-card);background:var(--color-surface-raised);padding:12px 16px}.status-bar{border-radius:var(--radius-card);background:var(--color-surface-sunken);margin:0;padding:6px 12px}.actions-note{color:var(--color-text-muted);margin:0;padding:4px 0;font-size:13px}.history{flex-direction:column;flex:auto;gap:2px;min-height:0;margin:0;padding:4px;list-style:none;display:flex;overflow-y:auto}.history__item{box-sizing:border-box;background:var(--color-none);width:100%;color:var(--color-text-muted);font:inherit;text-align:left;border:0;border-radius:4px;align-items:center;gap:8px;padding:6px 10px;font-size:13px;display:flex}.history__row[data-standing=played] .history__item{color:var(--color-text)}button.history__item:not([aria-disabled=true]){cursor:pointer}button.history__item:hover:not([aria-disabled=true]){background:var(--color-surface-sunken);color:var(--color-text)}.history__row[aria-current=step] .history__item,.history__row[aria-current=step] button.history__item:hover:not([aria-disabled=true]){background:var(--color-accent-soft);color:var(--color-accent);font-weight:600}.history__turn{min-width:32px;color:var(--color-text-muted);font-variant-numeric:tabular-nums}.history__row[aria-current=step] .history__turn{color:var(--color-accent)}.history__label{overflow-wrap:anywhere;flex:1;min-width:0}.history__row[data-collapsed=true] .history__label{color:var(--color-text-muted);font-style:italic}.legal{flex-direction:column;flex:auto;gap:8px;min-height:0;display:flex}.legal__list{flex-direction:column;gap:2px;margin:0;padding:4px;list-style:none;display:flex;overflow-y:auto}.legal-window{flex:auto;min-height:240px;padding:4px;position:relative;overflow-y:auto}.legal-window__track{position:relative}.legal-window__slot{position:absolute;left:0;right:0}.legal__row{box-sizing:border-box;border:1px solid var(--color-border);background:var(--color-surface-raised);width:100%;height:100%;color:var(--color-text);font:inherit;text-align:left;border-radius:4px;align-items:center;gap:8px;padding:6px 10px;font-size:13px;display:flex}button.legal__row:not([aria-disabled=true]){cursor:pointer}button.legal__row:hover:not([aria-disabled=true]){border-color:var(--color-accent);background:var(--color-accent-soft)}.legal__id{min-width:32px;color:var(--color-text-muted);font-variant-numeric:tabular-nums}.legal__label{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.legal__probability{background:var(--color-accent-soft);color:var(--color-text);border-radius:999px;margin-left:6px;padding:2px 6px;font-size:12px;display:inline-block}.history-text{flex-direction:column;flex:auto;gap:12px;min-width:0;min-height:0;display:flex}.history-text__options{flex-wrap:wrap;gap:12px;display:flex}.history-text__options .segmented__options{border-radius:var(--radius);background:var(--color-surface-sunken);gap:2px;padding:2px}.history-text__options .segmented__option{background:var(--color-none);min-height:28px;color:var(--color-text-muted);border:0;border-radius:4px;padding:4px 10px;font-size:12px;font-weight:500}.history-text__options .segmented__option[aria-pressed=true]{background:var(--color-surface);color:var(--color-text);font-weight:600}.history__item[aria-disabled=true],.legal__row[aria-disabled=true]{border-style:solid}.history-text__options .segmented__label{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.bot-output{flex-direction:column;gap:8px;padding:4px;font-size:13px;display:flex}.bot-output__move{color:var(--color-text-muted);margin:0}.bot-output__played{color:var(--color-text);font-weight:600}.bot-output__facts{flex-wrap:wrap;gap:4px 16px;margin:0;display:flex}.bot-output__fact{gap:6px;display:flex}.bot-output__fact dt{color:var(--color-text-muted)}.bot-output__fact dd{color:var(--color-text);font-variant-numeric:tabular-nums;margin:0}.bot-output__policy{flex-direction:column;gap:2px;margin:0;padding:0;list-style:none;display:flex}.bot-output__row{color:var(--color-text);border-radius:4px;grid-template-columns:minmax(0,1fr) auto;gap:2px 8px;padding:6px 10px;display:grid}.bot-output__row[data-chosen=true]{background:var(--color-accent-soft);color:var(--color-accent);font-weight:600}.bot-output__label{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.bot-output__prob{font-variant-numeric:tabular-nums;text-align:right}.bot-output__bar{background:var(--color-surface-sunken);border-radius:2px;grid-column:1/-1;height:4px;overflow:hidden}.bot-output__fill{background:var(--color-accent);height:100%;display:block}.field-form{flex-direction:column;gap:12px;display:flex}.field-form__field{grid-template-columns:minmax(90px,min(140px,40%)) minmax(0,1fr);align-items:center;gap:4px 12px;display:grid}.field-form__label{overflow-wrap:anywhere;align-items:center;gap:4px;min-width:0;font-size:13px;display:flex}.field-form__required{color:var(--color-danger)}.control{border:1px solid var(--color-border-strong);border-radius:var(--radius);background:var(--color-surface);min-height:28px;color:var(--color-text);font:inherit;padding:0 6px}.control[aria-invalid=true]{border-color:var(--color-danger)}.field-form__field .control{box-sizing:border-box;width:100%;min-width:0;max-width:100%}.field-form__check{justify-self:start;margin:0}.field-form__error{color:var(--color-danger);grid-column:2;margin:0;font-size:13px}.field-form__with-presets{flex-direction:column;gap:6px;min-width:0;display:flex}.field-form__presets{flex-wrap:wrap;gap:4px;display:flex}.field-form__preset{border:1px solid var(--color-border-strong);border-radius:var(--radius);background:var(--color-surface);color:var(--color-text);font:inherit;padding:2px 8px;font-size:12px}.field-form__preset:enabled:not([aria-disabled=true]){cursor:pointer}.field-form__preset[aria-pressed=true]{border-color:var(--color-accent);background:var(--color-accent);color:var(--color-on-accent)}.field-info{align-items:center;display:inline-flex}.field-info__button{background:var(--color-none);min-width:20px;min-height:20px;color:var(--color-accent);font:inherit;border:none;border-radius:4px;justify-content:center;align-items:center;padding:2px;font-size:13px;line-height:1;display:inline-flex}.field-info__button:enabled:not([aria-disabled=true]){cursor:pointer}.field-info__button:hover:enabled:not([aria-disabled=true]){background:var(--color-surface-sunken)}.field-info__popover{z-index:1050;box-sizing:border-box;border:1px solid var(--color-border-strong);border-radius:var(--radius);background:var(--color-surface-raised);width:max-content;max-width:min(280px,100vw - 16px);color:var(--color-text);padding:8px 10px;font-size:12px;line-height:1.4;position:fixed}.field-info__popover[data-placed=false]{visibility:hidden}.players{box-sizing:border-box;flex-direction:column;gap:12px;height:100%;min-height:0;padding:14px 16px 0;display:flex}.players__title{margin:0;font-size:18px}.players__status{color:var(--color-text-secondary);margin:0}.players__scroll{flex:1;min-height:0;padding-right:4px;overflow-y:auto}.players__seats{flex-direction:column;gap:12px;margin:0;padding:0 0 12px;list-style:none;display:flex}.seat{border:1px solid var(--color-border);border-radius:var(--radius);background:var(--color-surface-raised);flex-direction:column;gap:12px;padding:12px;display:flex;container-type:inline-size}.seat__row{grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:8px 12px;display:grid}@container (width<=260px){.seat__row{grid-template-columns:minmax(0,1fr)}}.seat__details{overflow-wrap:anywhere;flex-direction:column;gap:4px;min-width:0;display:flex}.seat__name{font-size:15px;font-weight:600}.seat__controller-line{align-items:baseline;gap:8px;min-width:0;display:flex}.seat__controller{min-width:0;color:var(--color-text-secondary);flex:0 auto;font-size:13px}.seat__notice{min-width:0;color:var(--color-text-secondary);text-overflow:ellipsis;white-space:nowrap;flex:1 1 0;font-size:13px;overflow:hidden}.seat__actions{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.seat__chevron{background:var(--color-none);color:var(--color-text-secondary);font:inherit;border:none;padding:4px 8px;font-size:12px}.seat__chevron:enabled:not([aria-disabled=true]){cursor:pointer}.seat__chevron:hover:enabled:not([aria-disabled=true]){color:var(--color-text)}.seat__failure{color:var(--color-danger)}.seat__failure p{margin:0}.seat__failure .copyable{margin-top:4px}.seat__failure-message{white-space:pre-wrap;overflow-wrap:anywhere}.seat__settings[hidden]{display:none}.seat__summary{flex-direction:column;gap:6px;padding:0 12px;display:flex}.seat__summary-rows{flex-direction:column;gap:6px;margin:0;display:flex}.seat__summary-row{grid-template-columns:auto 1fr;align-items:baseline;gap:8px;font-size:13px;display:grid}.seat__summary-row dt{color:var(--color-text-secondary);white-space:nowrap;font-weight:600}.seat__summary-row dt:after{content:":"}.seat__summary-row dd{overflow-wrap:anywhere;margin:0}.seat__summary-json{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}.seat-editor{flex-direction:column;gap:12px;display:flex}.seat-editor__field{grid-template-columns:minmax(90px,min(140px,40%)) minmax(0,1fr);align-items:center;gap:4px 12px;display:grid}.seat-editor__field-label{font-size:13px}.seat-editor__controller-row{flex-wrap:wrap;align-items:center;gap:6px 12px;min-width:0;display:flex}.seat-editor__controller-row>select{flex:140px;min-width:0}.seat-editor__autoplay{white-space:nowrap;align-items:center;gap:6px;font-size:13px;display:inline-flex}.seat-editor__unavailable{color:var(--color-warning);grid-column:2;margin:0;font-size:13px}.seat-editor__json{flex-direction:column;gap:4px;display:flex}.seat-editor__json textarea{min-height:140px;font-family:var(--font-family-monospace);resize:vertical;padding:10px;font-size:13px}.seat-editor__error{color:var(--color-danger);margin:0}.seat-editor__save-bar{z-index:2;background:var(--color-surface-raised);flex-wrap:wrap;align-items:center;gap:8px;display:flex}.seat-editor__save-bar--top{border-bottom:1px solid var(--color-border);padding:6px 0;position:sticky;top:0}.seat-editor__save-bar--bottom{border-top:1px solid var(--color-border);padding:10px 0 0}.players__scroll--short .seat-editor__save-bar--top{position:static}.players__scroll--short .seat-editor__save-bar--bottom{padding:6px 0;position:sticky;bottom:0}.seat-editor__state{color:var(--color-text-muted);margin-right:auto;font-size:12px}.seat-editor__state[data-changed=true]{color:var(--color-text);font-weight:600}.seat-editor__state[data-refused=true],.seat-editor__refusal{color:var(--color-danger);font-weight:600}.seat-editor__refusal{font-size:12px}.seat-editor__unsaved-dot{background:var(--color-warning);vertical-align:middle;border-radius:50%;width:7px;height:7px;margin-left:6px;display:inline-block}.seat-editor__save-bar .button{white-space:nowrap}.setup{box-sizing:border-box;flex-direction:column;gap:16px;padding:14px 16px;display:flex}.setup__notice{color:var(--color-text-secondary);margin:0;padding:12px}.setup-card{border:1px solid var(--color-border);border-radius:var(--radius);background:var(--color-surface-raised);flex-direction:column;gap:10px;padding:12px;display:flex}.setup-card__title{letter-spacing:.08em;text-transform:uppercase;margin:0;font-size:13px}.setup-card__description{color:var(--color-text-muted);margin:4px 0 0;font-size:12px}.setup-card__header>.setup-card__description:first-child{margin-top:0}.setup-form{flex-direction:column;gap:12px;display:flex}.setup-form__problem{color:var(--color-danger);margin:0;font-size:13px}.setup-field{border-radius:var(--radius);background:var(--color-surface-sunken);flex-wrap:wrap;align-items:center;gap:8px 12px;margin:0;padding:10px 14px;display:flex}.setup-field__label{min-width:120px;font-weight:500}.setup-field__checkbox{width:18px;height:18px;margin:0}.setup-field__description{width:100%;color:var(--color-text-muted);margin:0;font-size:13px}.setup-field__notice{width:100%;color:var(--color-danger);margin:0;font-size:13px}.setup-input{box-sizing:border-box;border:1px solid var(--color-border-strong);border-radius:var(--radius);background:var(--color-surface);min-width:120px;max-width:100%;min-height:28px;color:var(--color-text);font:inherit;flex:1;padding:4px 8px}select.setup-input{flex:1 0 auto}textarea.setup-input{width:100%;font-family:var(--font-family-monospace);resize:vertical}.setup-input[aria-invalid=true]{border-color:var(--color-danger)}.setup-values{flex-direction:column;gap:12px;margin:0;display:flex}.setup-values__value{white-space:pre-wrap;flex:1;min-width:120px;margin:0}.setup-position__buttons{flex-wrap:wrap;align-items:flex-start;gap:8px;display:flex}.setup-set-state{flex-direction:column;gap:6px;display:inline-flex}.setup-set-state:has(.setup-set-state__panel){flex-basis:100%}.setup-set-state>.button{align-self:flex-start}.setup-set-state__panel{border:1px solid var(--color-border);border-radius:var(--radius);background:var(--color-surface);flex-direction:column;gap:6px;padding:10px;display:flex}.setup-set-state__label{color:var(--color-text-muted);font-size:12px}.setup-set-state__actions{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.setup-set-state__applied{color:var(--color-success);font-size:12px}.setup-set-state__problem{color:var(--color-danger);font-size:12px}.setup-confirm{z-index:1000;box-sizing:border-box;border:1px solid var(--color-border-strong);border-radius:var(--radius);background:var(--color-surface-raised);width:280px;color:var(--color-text);padding:10px;position:fixed}.setup-confirm__warning{margin-bottom:10px}.setup-confirm__warning strong{margin-bottom:4px;font-size:14px;display:block}.setup-confirm__warning p{color:var(--color-text-secondary);margin:0;font-size:13px}.state-panel__missing{color:var(--color-text-muted);margin:0;padding:4px 0;font-size:13px}.replay{border-radius:var(--radius);background:var(--color-surface-sunken);flex-wrap:wrap;flex:auto;align-items:center;gap:6px;min-width:0;padding:4px 8px;display:flex}.replay__button{border:1px solid var(--color-border-strong);background:var(--color-surface-raised);min-width:28px;color:var(--color-text);font-family:var(--font-family-monospace);white-space:nowrap;border-radius:4px;flex-shrink:0;padding:4px 8px;font-size:12px;font-weight:700;line-height:1.2}.replay__button:not([aria-disabled=true]){cursor:pointer}.replay__button:hover:not([aria-disabled=true]){background:var(--color-surface)}.replay__slider{width:auto;min-width:0;accent-color:var(--color-accent);flex:60px}.replay__slider:not([aria-disabled=true]){cursor:pointer}.replay__count{min-width:44px;color:var(--color-text-secondary);font-variant-numeric:tabular-nums;text-align:center;white-space:nowrap;flex-shrink:0;font-size:12px}.replay__skip-chance{color:var(--color-text-muted);white-space:nowrap;align-items:center;gap:6px;font-size:13px;display:flex}.replay__skip-chance:has(input:enabled):not([aria-disabled=true]){cursor:pointer}.replay__skip-chance:hover:has(input:enabled):not([aria-disabled=true]){color:var(--color-text)}.replay__skip-chance input{width:14px;height:14px;accent-color:var(--color-accent)}.replay__skip-chance input:enabled:not([aria-disabled=true]){cursor:pointer}.state-panel__section{box-sizing:border-box;flex-direction:column;flex:auto;min-height:0;padding:14px 16px;display:flex}.view{box-sizing:border-box;flex-direction:column;gap:16px;padding:14px 16px;display:flex}.view-card{border:1px solid var(--color-border);border-radius:var(--radius);background:var(--color-surface-raised);flex-direction:column;gap:10px;padding:12px;display:flex}.view-field{flex-direction:column;gap:4px;font-size:13px;display:flex}.view-field__select{border:1px solid var(--color-border-strong);border-radius:var(--radius);background:var(--color-surface);min-width:0;max-width:100%;min-height:28px;color:var(--color-text);font:inherit;padding:4px 8px}.view-note{color:var(--color-text-secondary);margin:0;font-size:13px}.poker-gameplay{height:100%;min-height:0;color:var(--poker-ink);grid-template-rows:auto min-content auto minmax(96px,auto);align-content:start;gap:10px;display:grid;container:poker-gameplay/inline-size}.poker-handbar{color:var(--poker-muted);border:1px solid var(--poker-handbar-border);background:linear-gradient(180deg, var(--poker-handbar-bg), var(--poker-handbar-bg-2));border-radius:8px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;padding:8px 10px;font-size:.9rem;display:flex}.poker-handbar__title{flex:none;align-items:baseline;gap:9px;display:flex}.poker-handbar__title strong{color:var(--poker-ink);font-size:1rem}.poker-handbar__title span,.poker-handbar__meta span{white-space:nowrap;border:1px solid var(--poker-span-border);background:var(--poker-span-bg);border-radius:6px;padding:4px 6px}.poker-handbar__meta{flex-wrap:wrap;flex:220px;justify-content:center;gap:5px;display:flex}.poker-handbar__street{text-align:center;min-width:5.6em;display:inline-block}.poker-new-hand{border:1px solid var(--poker-span-border);background:var(--poker-span-bg);border-radius:7px;align-items:center;gap:7px;padding:4px;display:flex}.poker-new-hand label{color:var(--poker-muted);font-size:.8rem}.poker-new-hand select,.poker-new-hand button{min-height:28px;color:var(--poker-ink);border:1px solid var(--poker-select-border);background:var(--poker-select-bg);border-radius:6px}.poker-new-hand select{padding:3px 7px}.poker-new-hand button{padding:4px 9px;font-weight:700}.poker-new-hand button:not([aria-disabled=true]){cursor:pointer}.poker-new-hand button:disabled{cursor:not-allowed;border-style:dashed}.poker-table-stage{aspect-ratio:1.62;justify-self:center;width:min(100%,660px);min-height:300px;margin:18px 0 48px;position:relative}.poker-table-stage--3,.poker-table-stage--4,.poker-table-stage--5,.poker-table-stage--6{margin-top:52px}.poker-table{border:12px solid var(--poker-rail);background:radial-gradient(ellipse at 50% 43%, var(--poker-table-bg), var(--poker-table-bg-2) 26%), radial-gradient(ellipse at 50% 52%, var(--poker-table-bg-3), var(--poker-table-bg-2) 42%), radial-gradient(ellipse at center, var(--poker-table-bg-4) 0%, var(--poker-felt) 48%, var(--poker-felt-dark) 100%);box-shadow:inset 0 0 0 2px var(--poker-table-shadow), inset 0 0 42px var(--poker-table-shadow-2), 0 18px 36px var(--poker-table-shadow-3);border-radius:50%/42%;position:absolute;inset:7% 3%;overflow:visible}.poker-table:before,.poker-table:after{content:"";pointer-events:none;position:absolute}.poker-table:before{border:2px solid var(--poker-span-border);border-radius:inherit;inset:8px}.poker-table:after{border:1px solid var(--poker-table-border);border-radius:inherit;inset:18px 22px}.poker-board{place-items:center;gap:8px;width:min(340px,50%);display:grid;position:absolute;top:52%;left:50%;transform:translate(-50%,-50%)}.poker-table--3 .poker-board,.poker-table--4 .poker-board,.poker-table--5 .poker-board,.poker-table--6 .poker-board{width:min(300px,44%)}.poker-board__cards,.poker-seat__cards{justify-content:center;gap:6px;display:flex}.poker-pot{text-align:center;border:1px solid var(--poker-pot-border);background:var(--poker-pot-bg);border-radius:999px;gap:2px;min-width:84px;padding:5px 10px;display:inline-grid}.poker-pot span{color:var(--poker-muted);text-transform:uppercase;font-size:.75rem}.poker-pot strong{color:var(--poker-accent);font-size:1rem}.poker-table--terminal .poker-board{gap:6px}.poker-card{aspect-ratio:.72;width:clamp(34px,4.5vw,48px);color:var(--poker-card-text);border:1px solid var(--poker-card-border);background:linear-gradient(145deg, var(--poker-card-bg), var(--poker-card-bg-2)), var(--poker-card-bg-3);box-shadow:0 4px 10px var(--poker-card-shadow), inset 0 0 0 1px var(--poker-card-shadow-2);border-radius:7px;padding:4px;font-family:ui-serif,Georgia,Times New Roman,serif;font-weight:900;line-height:1;display:block;position:relative}.poker-card__corner{justify-items:center;gap:1px;font-size:clamp(.75rem,1.1vw,.92rem);display:grid;position:absolute;top:4px;left:4px}.poker-card__corner--bottom{inset:auto 4px 4px auto;transform:rotate(180deg)}.poker-card__pip{font-size:clamp(1.25rem,2vw,1.8rem);position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.poker-card--red{color:var(--poker-card-red-text)}.poker-card--s{color:var(--poker-card-text)}.poker-card--h{color:var(--poker-card-h-text)}.poker-card--d{color:var(--poker-card-d-text)}.poker-card--c{color:var(--poker-card-c-text)}.poker-card--empty{background:var(--poker-card-empty-bg);box-shadow:none;border-style:dashed}.poker-card--plays{outline:3px solid var(--poker-accent);outline-offset:1px;translate:0 -6px}.poker-card--deal{animation:poker-card-deal var(--poker-flight-ms) cubic-bezier(.2, .8, .2, 1) var(--poker-delay-ms) both}.poker-card--reveal{animation:poker-card-reveal var(--poker-flight-ms) cubic-bezier(.2, .8, .2, 1) var(--poker-delay-ms) both}@keyframes poker-card-deal{0%{transform:translateY(-48px)rotateY(90deg)}to{transform:none}}@keyframes poker-card-reveal{0%{transform:rotateY(90deg)}to{transform:none}}.poker-chip-flight{z-index:5;min-width:34px;color:var(--poker-action-dark);text-align:center;pointer-events:none;border:2px solid var(--poker-ink);background:var(--poker-accent);box-shadow:0 2px 6px var(--poker-table-shadow-2);animation:poker-chip-travel var(--poker-flight-ms) ease-out var(--poker-delay-ms,0s) both;border-radius:999px;padding:3px 8px;font-size:.8rem;font-weight:800;line-height:1.2;position:absolute;transform:translate(-50%,-50%)}@keyframes poker-chip-travel{0%{opacity:0;transform:translate(-50%,-50%)}1%{opacity:1}to{transform:translate(calc(-50% + var(--chip-dx)), calc(-50% + var(--chip-dy)))}}.poker-seat{top:var(--seat-y);left:clamp(calc(var(--seat-w) / 2), var(--seat-x), calc(100% - var(--seat-w) / 2));--seat-w:clamp(126px, 14vw, 158px);width:var(--seat-w);justify-items:center;gap:5px;display:grid;position:absolute;transform:translate(-50%,-50%)}.poker-table--2 .poker-seat,.poker-table--3 .poker-seat,.poker-table--4 .poker-seat{--seat-w:clamp(138px, 15vw, 166px)}.poker-table--5 .poker-seat,.poker-table--6 .poker-seat{--seat-w:clamp(108px, 12vw, 132px)}.poker-table--5 .poker-card,.poker-table--6 .poker-card{border-radius:5px;width:clamp(26px,3vw,34px);padding:3px}.poker-table--5 .poker-board .poker-card,.poker-table--6 .poker-board .poker-card{width:clamp(30px,3.5vw,40px)}.poker-card--compact .poker-card__corner{font-size:.75rem}.poker-card--compact .poker-card__pip{font-size:1.1rem}.poker-table--5 .poker-seat__body,.poker-table--6 .poker-seat__body{padding:6px 7px}.poker-table--5 .poker-seat__metrics,.poker-table--6 .poker-seat__metrics,.poker-table--5 .poker-seat__best,.poker-table--6 .poker-seat__best{font-size:.75rem}.poker-table--5 .poker-seat__best,.poker-table--6 .poker-seat__best{display:none}.poker-seat__folded{color:var(--poker-muted);font-size:.75rem;font-style:italic}.poker-seat__body{border:1px solid var(--poker-span-border);background:var(--poker-seat-body-bg);width:100%;box-shadow:0 8px 20px var(--poker-pot-bg);border-radius:8px;gap:4px;padding:7px 8px;display:grid}.poker-seat--active .poker-seat__body{border-color:var(--poker-seat-body-border);box-shadow:0 0 0 2px var(--poker-seat-body-shadow), 0 8px 20px var(--poker-pot-bg)}.poker-seat--winner .poker-seat__body{border-color:var(--poker-seat-body-border-2);box-shadow:0 0 0 2px var(--poker-seat-body-shadow-2), 0 8px 20px var(--poker-pot-bg)}.poker-seat__name-row,.poker-seat__metrics{justify-content:space-between;align-items:center;gap:6px;display:flex}.poker-seat__name{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-weight:700;overflow:hidden}.poker-seat__badge{min-width:22px;color:var(--poker-seat-badge-text);text-align:center;background:var(--poker-accent);border-radius:999px;flex:none;padding:2px 5px;font-size:.75rem;font-weight:800}.poker-seat__metrics{color:var(--poker-muted);font-size:.78rem}.poker-seat__best{color:var(--poker-seat-best-text);text-overflow:ellipsis;white-space:nowrap;font-size:.76rem;overflow:hidden}.poker-seat__return{color:var(--poker-seat-return-text);font-size:.75rem;font-weight:700}.poker-seat__return--positive{color:var(--poker-seat-return-positive-text)}.poker-controls{border:1px solid var(--poker-handbar-border);background:linear-gradient(180deg, var(--poker-controls-bg), var(--poker-controls-bg-2)), var(--poker-controls-bg-3);width:min(100%,660px);box-shadow:0 10px 22px var(--poker-table-shadow-3);border-radius:8px;justify-self:center;align-items:center;gap:7px;padding:5px 7px;display:flex}.poker-controls--terminal{display:block}.poker-terminal{justify-content:space-between;align-items:center;gap:12px;display:flex}.poker-terminal strong{color:var(--poker-accent)}.poker-controls__primary{flex:none;align-self:stretch;gap:4px;display:flex}.poker-action,.poker-betbox__presets button{min-height:32px;color:var(--poker-action-text);text-shadow:0 1px 0 var(--poker-action-text-shadow);border:1px solid var(--poker-span-border);background:linear-gradient(180deg, var(--poker-action-bg) 0%, var(--poker-action-red) 47%, var(--poker-action-red-dark) 100%);box-shadow:inset 0 1px 0 var(--poker-action-shadow), 0 1px 2px var(--poker-action-shadow-2);border-radius:4px;padding:5px 12px;font-size:.84rem;font-weight:700;line-height:1.1}.poker-action:not([aria-disabled=true]){cursor:pointer}.poker-action:disabled{cursor:not-allowed;border-style:dashed;border-color:var(--poker-muted);background:var(--poker-action-dark)}.poker-action--fold{background:linear-gradient(180deg, var(--poker-action-fold-bg) 0%, var(--poker-action-fold-bg-2) 48%, var(--poker-action-fold-bg-3) 100%)}.poker-action--call{background:linear-gradient(180deg, var(--poker-action-bg) 0%, var(--poker-action-red) 47%, var(--poker-action-red-dark) 100%)}.poker-action--bet{background:linear-gradient(180deg, var(--poker-action-bg) 0%, var(--poker-action-red) 47%, var(--poker-action-red-dark) 100%);min-width:104px}.poker-betbox{border:1px solid var(--poker-handbar-border);background:linear-gradient(180deg, var(--poker-betbox-bg), var(--poker-betbox-bg-2));border-radius:5px;flex:300px;gap:3px;max-width:360px;padding:4px 7px;display:grid}.poker-betbox input[type=number]{width:70px;min-width:0;min-height:24px;color:var(--poker-ink);border:1px solid var(--poker-select-border);background:var(--poker-input-type-number-bg);border-radius:4px;padding:3px 7px}.poker-betbox__slider{width:100%;height:14px}.poker-betbox__presets{flex-wrap:nowrap;align-items:center;gap:5px;display:flex}.poker-betbox__presets button{min-height:24px;color:var(--poker-ink);background:linear-gradient(180deg, var(--poker-button-bg) 0%, var(--poker-action-dark) 100%);padding:3px 7px;font-size:.75rem}.poker-betbox__presets button:disabled{cursor:not-allowed;border-style:dashed;border-color:var(--poker-muted);background:var(--poker-action-dark)}.poker-betbox__hint{color:var(--poker-betbox-hint-text);font-size:.78rem}.poker-history{border:1px solid var(--poker-handbar-border);background:var(--poker-rail);border-radius:8px;min-height:0;padding:9px 10px;overflow:auto}.poker-history h3{margin:0 0 6px;font-size:.9rem}.poker-history p,.poker-history ol{color:var(--poker-muted);margin:0;font-size:.82rem}.poker-history ol{grid-template-columns:minmax(42px,max-content) minmax(0,1fr);gap:3px 8px;padding-left:20px;display:grid}.poker-history li{grid-column:1/-1;grid-template-columns:subgrid;display:grid}.poker-history li>span:first-child{text-overflow:ellipsis;white-space:nowrap;max-width:16ch;overflow:hidden}.poker-error{align-content:center;gap:10px;display:grid}.poker-gameplay{position:relative}.poker-gameplay,.poker-gameplay *,.poker-gameplay :before,.poker-gameplay :after{box-sizing:border-box}.poker-notice{z-index:5;background:var(--gin-fault-fill);color:var(--gin-fault-text);overflow-wrap:anywhere;border-radius:6px;padding:8px 12px;font-size:13px;position:absolute;top:8px;left:8px;right:8px}@media (width<=760px){.poker-gameplay{grid-template-rows:auto min-content auto minmax(96px,auto)}}@container poker-gameplay (width<=560px){.poker-table-stage{aspect-ratio:auto;width:100%;height:max(390px,122cqi);min-height:0;margin:4px 0 8px}.poker-table{border-width:10px;border-radius:42%/50%;inset:3% 2%}.poker-table--2 .poker-seat{--seat-w:min(236px, 72%);grid-template-columns:auto minmax(0,1fr);align-items:center;gap:6px}.poker-table--2 .poker-seat__cards{gap:3px}.poker-table--3 .poker-seat,.poker-table--4 .poker-seat{--seat-w:min(128px, 36%);--seat-h:136px}.poker-table--5 .poker-seat,.poker-table--6 .poker-seat{--seat-w:min(108px, 32%);--seat-h:112px}.poker-table--3 .poker-seat,.poker-table--4 .poker-seat,.poker-table--5 .poker-seat,.poker-table--6 .poker-seat{top:clamp(calc(var(--seat-h) / 2), var(--seat-y), calc(100% - var(--seat-h) / 2))}.poker-table--4 .poker-seat--0,.poker-table--4 .poker-seat--3{top:21%}.poker-table--4 .poker-seat--1,.poker-table--4 .poker-seat--2{top:79%}.poker-table--5 .poker-seat--1,.poker-table--5 .poker-seat--4{top:24%}.poker-table--4 .poker-seat__best{display:none}.poker-table--4 .poker-seat--0,.poker-table--4 .poker-seat--1{left:calc(100% - var(--seat-w) / 2)}.poker-table--4 .poker-seat--2,.poker-table--4 .poker-seat--3{left:calc(var(--seat-w) / 2)}.poker-table--2 .poker-seat--1{top:16%;left:50%}.poker-table--2 .poker-seat--0{top:84%;left:50%}.poker-controls{flex-direction:column;align-items:stretch}.poker-betbox{flex:none;max-width:none}.poker-betbox__presets input[type=number]{flex:60px}}.poker-history-list{flex-direction:column;gap:2px;margin:0;padding:0;list-style:none;display:flex}.poker-history-list__empty,.poker-history-list__error{color:var(--color-text);margin:0;padding:8px}.game-page{height:100%}.panel{box-sizing:border-box;flex-direction:column;height:100%;display:flex}.panel__error{border-bottom:1px solid var(--color-border);color:var(--color-danger);margin:0;padding:8px}.panel__content{flex:auto;min-height:0;overflow:auto}.gameplay{box-sizing:border-box;flex-direction:column;gap:12px;height:100%;padding:14px 16px;display:flex;position:relative}.gameplay__status{border-radius:var(--radius);background:var(--color-surface-raised);margin:0;padding:8px 12px;font-size:14px;line-height:1.45}.gameplay__board{flex:auto;min-height:0}.gameplay__notices{z-index:20;pointer-events:none;flex-direction:column;align-items:center;gap:6px;width:min(560px,100% - 24px);display:flex;position:absolute;top:10px;left:50%;transform:translate(-50%)}.gameplay__notices:empty{display:none}.gameplay__notice{box-sizing:border-box;border:1px solid var(--color-border-strong);border-radius:var(--radius);background:var(--color-surface-raised);max-width:100%;box-shadow:0 1px 3px var(--color-shadow);color:var(--color-text);overflow-wrap:anywhere;align-items:center;gap:10px;padding:6px 12px;font-size:13px;line-height:1.35;display:flex}.gameplay__notice[data-tone=error]{color:var(--color-danger);font-weight:500}.gameplay__notice-text{min-width:0;max-height:33vh;overflow-y:auto}.gameplay__notice button{pointer-events:auto}.gameplay__notice-dismiss{background:var(--color-none);width:22px;height:22px;color:inherit;border:0;border-radius:50%;flex:none;padding:0;font-size:16px;line-height:1}.gameplay__notice-dismiss:not([aria-disabled=true]){cursor:pointer}.gameplay__notice-dismiss:hover:not([aria-disabled=true]){background:var(--color-surface-sunken)}.session-panel__details{gap:4px;margin:0;display:grid}.session-panel__details div{grid-template-columns:7em 1fr;gap:8px;display:grid}.session-panel__details dt{color:var(--color-text-secondary)}.session-panel__details dd{overflow-wrap:anywhere;margin:0}.session-panel__seats{overflow-wrap:anywhere;gap:4px;margin:0;padding:0;list-style:none;display:grid}.session-panel__failure{color:var(--color-danger)}.renderer{box-sizing:border-box;flex-direction:column;gap:12px;height:100%;min-height:0;padding:12px;display:flex;overflow:auto}.renderer__line{color:var(--color-text-secondary);margin:0}.renderer__piles,.renderer__buttons{flex-wrap:wrap;gap:12px;display:flex}.renderer__error{color:var(--color-danger);margin:0}.board{box-sizing:border-box;flex-direction:column;gap:8px;height:100%;min-height:0;padding:12px;display:flex}.board__text{color:var(--color-text);white-space:pre}.board__missing{color:var(--color-text-secondary);margin:0}.lobby{box-sizing:border-box;grid-template-columns:minmax(0,1fr) minmax(320px,440px);align-items:center;gap:64px;max-width:1040px;min-height:100%;margin:0 auto;padding:48px 32px;display:grid;overflow-y:auto}.lobby__intro h2{max-width:12ch;margin:16px 0 24px;font-size:clamp(36px,4vw,56px);line-height:1.08}.lobby__intro p{max-width:45ch;color:var(--color-text-secondary);font-size:17px;line-height:1.6}.lobby__suits{color:var(--color-text);font-size:32px}.lobby__intro a{color:var(--color-accent);margin-top:12px;display:inline-block}.lobby__form{border:1px solid var(--color-border);border-radius:var(--radius-card);background:var(--color-surface-raised);gap:20px;padding:28px;display:grid}.lobby__form h3{margin:0 0 4px;font-size:22px}.lobby__field{gap:7px;min-width:0;font-size:14px;display:grid}.lobby__field input{box-sizing:border-box;width:100%;padding:10px 12px}.lobby__stakes{grid-template-columns:1.3fr 1fr 1fr;gap:12px;display:grid}.lobby__hint,.lobby__error{margin:0;font-size:13px;line-height:1.5}.lobby__hint{color:var(--color-text-secondary)}.lobby__error{color:var(--color-danger)}.lobby__form>button{padding:12px;font-size:16px;font-weight:600}@media (width<=760px){.lobby{grid-template-columns:1fr;align-content:start;gap:28px;padding:28px 20px}.lobby__intro h2{max-width:17ch}.lobby__form{padding:20px}}html,body,#root{height:100%}.app{flex-direction:column;height:100%;display:flex}.app__header{box-sizing:border-box;border-bottom:1px solid var(--color-border);background:var(--color-surface-raised);flex:none;align-items:center;gap:16px;height:48px;padding:0 16px;display:flex}.app__brand{flex:1;align-items:baseline;gap:10px;min-width:0;display:flex}.app__home{color:var(--color-text);letter-spacing:-.01em;flex-shrink:0;font-size:20px;font-weight:700;text-decoration:none}.app__separator{color:var(--color-text-muted);flex-shrink:0;font-size:14px}.app__title{min-width:0;color:var(--color-text-secondary);text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:15px;font-weight:500;overflow:hidden}.app__actions,.app__page-actions{flex-shrink:0;align-items:center;gap:12px;min-width:0;display:flex}.app__page-actions:empty{display:none}.app__main{flex:auto;min-height:0}.app__message{margin:0;padding:16px}
