[hidden] { display: none !important; }
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
body { position: fixed; inset: 0; width: 100%; }
.dev-table { height: 100svh; height: 100dvh; min-height: 0; grid-template-rows: auto minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; padding-top: max(8px, env(safe-area-inset-top)); padding-bottom: max(12px, env(safe-area-inset-bottom)); }
.dev-table > .opponent, .dev-table > .community, .dev-table > .player { container-type: size; align-self: stretch; justify-content: center; min-height: 0; }
.dev-table .playing-card { width: min(21vw, 92px, calc((100cqh - 52px) / 1.4)); }
.dev-table .opponent .playing-card { width: min(21vw, 92px, calc((100cqh - 74px) / 1.4)); }
.dev-table .board .playing-card { width: min(calc((100% - 48px) / 5), 86px, calc((100cqh - 92px) / 1.4)); }
.dev-table .eyebrow { margin-top: 10px; }
.dev-table .stage { margin-top: 8px; }
.dev-table .corner { font-size: clamp(12px, 12cqh, 25px); }
.dev-table .center-suit { font-size: clamp(18px, 18cqh, 38px); }
.dev-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 12px; color: #888; font-size: 11px; min-height: 56px; font-variant-numeric: tabular-nums; }
.header-net { min-height: 24px; display: flex; align-items: center; justify-content: center; white-space: nowrap; font-size: clamp(20px, 6vw, 26px); font-weight: 500; letter-spacing: -.035em; }
.hand-number { display: flex; align-items: center; min-height: 36px; }
.hand-info { display: flex; flex-direction: column; align-items: flex-start; }
.hand-info .hand-number { min-height: 24px; }
.settings-button { display: grid; place-items: center; min-width: 36px; min-height: 36px; padding: 6px; border: 0; background: transparent; color: #999; cursor: pointer; }
.hand-info .settings-button { margin-left: -6px; }
.settings-button:focus-visible { outline: 2px solid #ddd; outline-offset: 2px; border-radius: 4px; }
.settings-modal { width: min(340px, calc(100% - 40px)); padding: 18px 20px; border: 1px solid #333; border-radius: 14px; background: #111; color: #eee; }
.settings-modal::backdrop { background: #000b; }
.settings-heading, .settings-option { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.settings-heading h2 { margin: 0; font-size: 16px; font-weight: 500; }
.settings-heading .settings-button { font-size: 25px; }
.settings-option { min-height: 56px; font-size: 14px; cursor: pointer; }
.settings-option input { appearance: none; width: 38px; height: 22px; flex-shrink: 0; margin: 0; border: 1px solid #555; border-radius: 999px; background: #292929; cursor: pointer; }
.settings-option input::before { content: ''; display: block; width: 16px; height: 16px; margin: 2px; background: #999; border-radius: 50%; }
.settings-option input:checked { background: #e7e4dc; border-color: #e7e4dc; }
.settings-option input:checked::before { margin-left: 18px; background: #222; }
.settings-option input:focus-visible { outline: 2px solid #eee; outline-offset: 4px; }
.live-odds .percentage { font-size: clamp(25px, 8vw, 36px); }
.dev-table .player-row { gap: clamp(12px, 4vw, 26px); }
.session-info { display: flex; flex-direction: column; align-items: flex-end; min-height: 56px; }
.session-clock { display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-height: 20px; color: #aaa; }
.session-clock:has(#clock:empty) { visibility: hidden; }
.session-clock[data-tone="warning"] { color: #d7b26d; }
.session-clock[data-tone="urgent"] { color: #dd8585; }
#run-info[data-tone="positive"] { color: #8bb99b; }
#run-info[data-tone="negative"] { color: #ce8c8c; }
.opponent-action { margin-top: 6px; min-height: 14px; color: #bbb; font-size: 11px; font-variant-numeric: tabular-nums; }
.board-area { position: relative; width: 100%; }
.board-play { position: absolute; z-index: 1; top: 50%; left: 50%; transform: translate(-50%, -50%); min-width: 112px; border-radius: 999px; box-shadow: 0 0 0 10px #000, 0 8px 32px #0009; }
.board-area:has(.board-play:not([hidden])) .dev-board { opacity: .45; }
.pot-balance { display: flex; align-items: center; justify-content: center; gap: 10px; height: 32px; min-width: 84px; padding: 3px 13px; flex-shrink: 0; margin-bottom: 8px; border: 1px solid #373731; border-radius: 999px; background: #121310; }
.pot-balance:has(.pot:empty) { visibility: hidden; }
.chip-stack { position: relative; display: block; flex: 0 0 auto; width: calc(var(--stacks, 1) * 19px - 3px); height: 24px; }
.chip-stack:empty { display: none; }
.stack-chip { position: absolute; left: calc(var(--stack) * 19px); bottom: calc(2px + var(--layer) * 3px); width: 16px; height: 8px; border: 1px solid #b7b4aa; border-radius: 50%; background: repeating-linear-gradient(90deg, #555650 0 3px, #dedbd1 3px 5px); }
.stack-chip::after { content: ''; position: absolute; inset: 0 1px 2px; border: 1px solid #aaa79e; border-radius: 50%; background: #d5d2c8; }
.quiet-button { border: 0; background: transparent; color: #aaa; padding: 8px 0; font-size: 11px; cursor: pointer; min-height: 36px; }
.dev-board { cursor: default; }
.chip-count { margin-top: 8px; color: #aaa; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pot { color: #ddd; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dev-table .eyebrow { max-width: 100%; overflow-wrap: anywhere; text-align: center; }
.dev-table .stage { max-width: 100%; overflow-wrap: anywhere; }
.play-controls { position: relative; z-index: 2; background: #000; padding: 8px 0 0; }
.action-row { display: grid; grid-template-columns: .8fr 1.5fr 1fr; gap: 8px; }
.action-row .action-button { font-variant-numeric: tabular-nums; }
.action-button { border: 1px solid #444; background: #111; color: #eee; border-radius: 7px; padding: 13px 8px; min-height: 48px; font-size: 14px; cursor: pointer; touch-action: manipulation; }
.action-button.primary { background: #f3f0e9; border-color: #f3f0e9; color: #151515; }
.action-button.fold-button { background: #291416; border-color: #663238; color: #e4a0a5; }
.action-button:disabled, .quiet-button:disabled { opacity: .4; cursor: default; }
.action-button:focus-visible, .quiet-button:focus-visible, #raise-amount:focus-visible { outline: 2px solid #f3f0e9; outline-offset: 4px; }
.start-button { width: 100%; }
.raise-form { position: absolute; bottom: calc(100% - 2px); left: 0; right: 0; display: grid; gap: 10px; padding: 14px; border: 1px solid #333; border-radius: 12px; background: #111; box-shadow: 0 -12px 32px #0008; }
.bet-presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bet-presets .action-button { min-height: 44px; padding: 10px 8px; color: #bbb; }
.bet-amount { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; gap: 8px; }
#raise-amount { min-width: 0; width: 100%; background: #080808; color: #fff; border: 1px solid #444; border-radius: 6px; padding: 12px 8px; font: inherit; font-size: 18px; text-align: center; font-variant-numeric: tabular-nums; appearance: textfield; }
#raise-amount::-webkit-inner-spin-button, #raise-amount::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.notice { color: #ccc; font-size: 12px; line-height: 1.5; margin: 0 0 12px; overflow-wrap: anywhere; }
.recovery { display: block; margin: 8px auto 0; }
@media (max-height: 520px) and (min-width: 600px) {
  .dev-table { max-width: 100%; grid-template-columns: 1fr 1.6fr 1.3fr; grid-template-rows: auto minmax(0, 1fr) auto; column-gap: 20px; }
  .dev-header, .play-controls { grid-column: 1 / -1; }
  .dev-table .player-row { gap: 12px; }
  .dev-table .percentage { font-size: 28px; }
}
