:root {
  color-scheme: dark;
  --bg: #101611;
  --panel: #191f18;
  --text: #fbf1dc;
  --muted: #bfbfad;
  --gold: #edbb76;
  --gold-dim: #af8960;
  --green: #285c41;
  --line: #383a2c;
  --danger: #ffb39e;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { min-height: 100svh; margin: 0; color: var(--text); background: var(--bg); font: 400 15px/1.5 var(--sans); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
.sending button { cursor: progress; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
button, input { min-height: 42px; }
input { width: 100%; padding: 8px 11px; border: 1px solid #514b38; border-radius: 7px; background: #0e1510; color: var(--text); }
label { display: grid; gap: 4px; color: var(--muted); font-size: .85rem; font-weight: 650; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.button { display: inline-flex; flex: none; gap: .5rem; justify-content: center; align-items: center; padding: .57rem .85rem; background: #292e23; border: 1px solid #464632; border-radius: 7px; color: var(--text); line-height: 1.25; font-size: .86rem; font-weight: 690; text-decoration: none; }
.button:not(:disabled):hover { filter: brightness(1.22); }
.button.primary { background: var(--gold); color: #1d160e; border-color: var(--gold); }
.button.outline { background: transparent; color: var(--gold); border-color: #806746; }
.button.subtle { background: transparent; border-color: #444338; color: var(--muted); }
.eyebrow { margin: 0; color: var(--gold); font-size: .69rem; font-weight: 750; text-transform: uppercase; letter-spacing: .19em; }
.wordmark { display: flex; flex: none; gap: .72rem; align-items: center; color: var(--text); font-size: .68rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.monogram { display: grid; flex: none; place-items: center; width: 39px; height: 39px; border: 1px solid var(--gold-dim); border-radius: 50%; color: var(--gold); font: italic 700 17px/1 var(--serif); letter-spacing: -.06em; }
.gate { min-height: 100svh; position: relative; isolation: isolate; display: grid; align-items: center; }
.gate-scene { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,#08110e 0%,#08110ef2 30%,#08110e94 52%,#08110e0d 82%), url("/private-table-v3.webp") center right / cover; }
.gate-content { width: min(100%, 48rem); padding: clamp(2rem, 7vw, 7rem); }
.gate .wordmark { margin-bottom: 36px; }
.gate h1 { margin: .65rem 0 .75rem; font: 400 clamp(3.4rem, 8vw, 7rem)/.95 var(--serif); letter-spacing: -.08em; }
.gate h1 em { color: var(--gold); }
.gate-intro { color: var(--muted); }
.gate-panel { margin-top: 1.55rem; width: min(100%, 24rem); border: 1px solid #534833; border-radius: 11px; background: #111813ef; padding: 1.15rem; box-shadow: 0 14px 46px #0006; }
.auth-tabs { display: flex; margin-bottom: 14px; gap: 8px; border-bottom: 1px solid var(--line); }
.auth-tabs button { font-size: .9rem; font-weight: 700; color: var(--muted); border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 0 9px; }
.auth-tabs button[aria-pressed="true"] { color: var(--gold); border-bottom-color: var(--gold); }
#auth-form { display: grid; gap: 11px; }
#auth-form h2 { font: 1.4rem var(--serif); }
#auth-form button { margin-top: 3px; width: 100%; }
.feedback { border: 1px solid #766142; border-radius: 7px; padding: .58rem .7rem; color: var(--gold); background: #2a2217; }
.feedback.error { border-color: #784737; color: var(--danger); background: #36231c; }
#auth-error { margin-top: .8rem; }

/* ---------- Room shell ---------- */
.room {
  --ink: #0a0c0f;
  --surface: #15181d;
  --surface-2: #1d2128;
  --edge: #ffffff1a;
  --room-text: #f2f0ec;
  --room-muted: #9aa0ab;
  --room-gold: #e9bf7a;
  --felt: #8a2136;
  min-height: 100svh;
  color: var(--room-text);
  background: var(--ink);
}
.room.in-table { height: 100dvh; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.room-header {
  position: relative; z-index: 10; flex: none;
  display: flex; align-items: center; gap: 14px;
  height: 52px; padding: 0 clamp(10px, 1.6vw, 22px);
  border-bottom: 1px solid var(--edge); background: #0d0f13;
}
.room-header .wordmark { gap: 9px; }
.room-header .monogram { width: 32px; height: 32px; border-color: #e9bf7a99; background: radial-gradient(circle at 35% 30%, #a02a43, #5d1626); color: #fff1dc; font-size: 15px; }
.brand-lines { display: grid; gap: 3px; line-height: 1; white-space: nowrap; }
.brand-lines strong { font: 600 1rem var(--serif); letter-spacing: .01em; text-transform: none; }
.brand-lines > span { color: #a89a86; font-size: .5rem; letter-spacing: .22em; }
.in-table .brand-lines { display: none; }
.table-context { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.back-button { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 0 11px 0 8px; border: 1px solid var(--edge); border-radius: 6px; background: var(--surface); color: #d4d0c8; font-size: 1.05rem; line-height: 1; }
.back-button span { font-size: .74rem; font-weight: 650; }
.back-button:hover { background: var(--surface-2); }
.table-title { min-width: 0; display: grid; gap: 2px; }
.table-title h2 { font: 700 .92rem/1.15 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-meta { display: flex; gap: 8px; color: var(--room-muted); font-size: .7rem; line-height: 1.1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.game-meta > span + span::before { content: "·"; margin-right: 8px; color: #5d626c; }
#blinds { color: #d9c19b; }
.account { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: .78rem; color: #c9ccd3; }
.account-avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #3a2029; border: 1px solid #a8566a; font-size: .58rem; font-weight: 800; }
.reserve-shortcut { display: flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 10px; border: 1px solid var(--edge); border-radius: 6px; background: var(--surface); color: #f1d7a8; font-size: .78rem; font-variant-numeric: tabular-nums; }
.reserve-shortcut:hover, #open-tools:hover { background: var(--surface-2); }
.chip-icon { display: inline-block; flex: none; width: 17px; height: 17px; border-radius: 50%; background: url("/play/envato/pot-chips.webp") 80% 0 / 600% 100% no-repeat; }
.reserve-label { color: var(--room-muted); }
#open-tools { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 11px; border: 1px solid var(--edge); border-radius: 6px; background: var(--surface); color: #e4e1da; font-size: .76rem; font-weight: 650; }
#tools-count, .tool-count { display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding-inline: 4px; border-radius: 9px; background: var(--room-gold); color: #23180a; font-size: .62rem; font-weight: 800; }
.room .button { min-height: 38px; border-radius: 6px; font-weight: 700; font-size: .8rem; }
.room .button.primary { border-color: #f3d193; color: #23180a; background: linear-gradient(180deg, #f2d49c, #dcae66); box-shadow: inset 0 1px 0 #fff5, 0 2px 6px #0006; }
.room .button.outline { color: #ece8df; border-color: #ffffff30; background: var(--surface-2); }
.room .button.subtle { color: #c3c6cd; border-color: var(--edge); background: transparent; }
#sign-out { min-height: 34px; padding: 0 10px; font-size: .72rem; }
.room input { background: #0c0e12; border-color: #ffffff2b; }
.room input:focus { border-color: var(--room-gold); }
.room-body { position: relative; width: min(100%, 1120px); margin: 0 auto; padding: 22px 20px 36px; }
.in-table .room-body { flex: 1; min-height: 0; width: 100%; padding: 0; display: flex; }
.game { min-width: 0; }
.in-table .game { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.room-status { position: fixed; z-index: 30; top: 62px; left: 50%; transform: translateX(-50%); width: max-content; max-width: min(90vw, 440px); box-shadow: 0 10px 30px #000a; font-size: .83rem; }

/* ---------- Lobby ---------- */
.lobby-hero { border: 1px solid var(--edge); border-radius: 12px; padding: clamp(24px, 4vw, 44px); background: linear-gradient(90deg, #0d0f13f5, #0d0f13e0 38%, #0d0f1333), url("/private-table-v3.webp") center 62% / cover; }
.lobby-hero h1 { font: 400 clamp(2.4rem, 5vw, 4rem)/1.05 var(--serif); letter-spacing: -.04em; margin: 10px 0; }
.lobby-hero p:last-child { color: #cfc8bb; }
.lobby-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 26px 0 12px; }
.lobby-heading h2 { font-size: 1rem; }
.lobby-status { margin: 12px 0; }
.table-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.table-card { padding: 18px; border: 1px solid var(--edge); border-radius: 10px; background: linear-gradient(160deg, #1b1f26, #12151a); }
.table-card-name { display: flex; gap: 10px; align-items: center; }
.table-card h3 { font: 600 1.15rem var(--serif); }
.table-emblem { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #ffe2bd; background: radial-gradient(circle at 35% 30%, #a02a43, #5d1626); }
.table-card-meta { display: flex; gap: 18px; margin: 16px 0; }
.table-card-meta > div { flex: 1; padding-top: 10px; border-top: 1px solid var(--edge); }
.table-card-meta dt { color: var(--room-muted); font-size: .7rem; }
.table-card-meta dd { margin: 2px 0 0; font-size: .9rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.table-card .button { width: 100%; }
.panel { padding: 18px; border: 1px solid var(--edge); border-radius: 10px; background: var(--surface); }
.panel h2 { font-size: 1.05rem; margin-bottom: 8px; }
#create-form { margin-top: 16px; max-width: 560px; }
.form { display: grid; gap: 10px; }
.form-row { display: flex; align-items: flex-end; gap: 8px; }
.form-row label { min-width: 0; }
.muted, .activity-empty { color: var(--room-muted); font-size: .8rem; }

/* ---------- Tools drawer ---------- */
.side { position: fixed; z-index: 25; right: 12px; top: 60px; width: min(340px, calc(100vw - 24px)); max-height: calc(100dvh - 72px); overflow: auto; border: 1px solid #ffffff2b; border-radius: 12px; background: #14171cf7; box-shadow: 0 24px 70px #000c; backdrop-filter: blur(8px); }
.side-heading { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 6px; }
.side-heading h2 { font-size: .92rem; }
#close-tools { min-width: 32px; min-height: 32px; background: none; color: #d8d5ce; border: 0; font-size: 1.5rem; line-height: 1; }
.tool-selector { display: flex; gap: 3px; padding: 3px; margin: 0 12px; border: 1px solid var(--edge); background: #0b0d10; border-radius: 8px; }
.tool-selector button { flex: 1; min-height: 34px; padding: 5px; font-size: .75rem; font-weight: 700; border: 0; border-radius: 5px; background: none; color: var(--room-muted); }
.tool-selector button[aria-pressed="true"] { background: #2a2f38; color: #ffe3b3; }
.tool-pane { padding: 15px; }
.tool-label { color: var(--room-muted); font-size: .65rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.activity { list-style: none; padding: 0; margin: 8px 0 0; max-height: 46dvh; overflow: auto; scrollbar-width: thin; font-size: .8rem; }
.activity-entry { padding: 7px 0; border-bottom: 1px solid #ffffff12; color: #c2c5cc; }
.activity-entry:first-child { color: #ffe0ad; }
.wallet { display: flex; align-items: center; gap: 7px; margin: 6px 0 16px; color: var(--room-muted); font-size: .8rem; }
.wallet strong { font-size: 1.8rem; line-height: 1.1; color: #f8d79e; font-variant-numeric: tabular-nums; }
.request-heading { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--edge); }
.refill-row { padding: 8px 0; }
.refill-row .button { margin-top: 8px; }
.refill-status, #invite-hint { margin-top: 10px; }
.invite { margin-top: 12px; }
.invite input { font-size: .74rem; }
.invite .button { margin: 7px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---------- Table client ---------- */
.client {
  flex: 1; min-height: 0; display: flex; flex-direction: column;
  background:
    radial-gradient(ellipse 75% 62% at 50% 40%, #39404d55, transparent 70%),
    linear-gradient(180deg, #0b0d10d9, #07080ae6),
    url("/play/envato/poker-backdrop.webp") center / cover;
}
.stage { flex: 1; min-height: 0; container-type: size; display: grid; place-items: center; padding: 6px 10px 0; }
.poker-table {
  position: relative; container-type: size;
  width: min(100cqw, 100cqh * 1.8, 1560px); aspect-ratio: 1.8;
}
.poker-table.portrait { width: min(100cqw, 100cqh / 1.35); aspect-ratio: 1 / 1.35; }
.felt {
  position: absolute; left: 6%; right: 6%; top: 9%; aspect-ratio: 1510 / 780;
  background: url("/play/envato/poker-table.webp") center / 100% 100% no-repeat;
}
.portrait .felt {
  inset: auto; left: 50%; top: 50%; width: 126cqw; height: 84cqw; aspect-ratio: auto;
  transform: translate(-50%, -50%) rotate(90deg);
}
.table-layer {
  position: absolute; inset: 0;
  --card: 5.3cqw; --hole: 3.9cqw; --hero: 5.7cqw;
  --pod-w: 12.6cqw; --pod-h: 4.3cqw; --chip: 2.2cqw; --unit: 1cqw;
  --fs: clamp(11px, 1.08cqw, 16px);
  font-size: var(--fs);
}
.portrait .table-layer {
  --card: 8.4cqw; --hole: 7cqw; --hero: 12.4cqw;
  --pod-w: 21.5cqw; --pod-h: 8.4cqw; --chip: 4.4cqw; --unit: 1.9cqw;
  --fs: clamp(10px, 2.85cqw, 14px);
}
#table-mark {
  position: absolute; left: 50%; top: 47.5%; transform: translate(-50%, -50%);
  display: none; justify-items: center; color: #ffd9c259; text-align: center; pointer-events: none; user-select: none;
}
.portrait #table-mark { top: 50%; }
#table-mark span { font: italic 500 calc(var(--unit) * 6)/.85 Georgia, serif; letter-spacing: -.08em; }
#table-mark small { margin-top: calc(var(--unit) * .7); font: 700 calc(var(--unit) * .8)/1 var(--sans); letter-spacing: .34em; padding-left: .34em; }
.poker-table.waiting #table-mark { display: grid; }
.poker-table.waiting .board { visibility: hidden; }

/* Cards */
.cards { display: flex; justify-content: center; }
.card {
  --w: var(--card);
  position: relative; flex: none; display: block; width: var(--w); aspect-ratio: 5 / 7;
  border-radius: calc(var(--w) * .085);
  background: linear-gradient(180deg, #ffffff, #f0ede6);
  box-shadow: 0 calc(var(--w) * .035) calc(var(--w) * .1) #000000a6, inset 0 0 0 1px #0000001f;
  color: #14171c; font: 800 calc(var(--w) * .52)/1 var(--sans);
  overflow: hidden; user-select: none;
}
.card.red { color: #c5142f; }
.card .rank { position: absolute; top: 5%; left: 8%; letter-spacing: -.07em; }
.card .rank.ten { letter-spacing: -.13em; left: 4%; font-size: .94em; }
.card svg { position: absolute; fill: currentColor; }
.card .pip { left: 9%; top: 43%; width: 27%; height: auto; }
.card .suit-big { right: 7%; bottom: 6%; width: 50%; height: auto; }
.card.back {
  border: calc(var(--w) * .06) solid #f6f1e7;
  background:
    repeating-linear-gradient(45deg, transparent 0 calc(var(--w) * .11), #f3cf9a2e calc(var(--w) * .11) calc(var(--w) * .135)),
    repeating-linear-gradient(-45deg, transparent 0 calc(var(--w) * .11), #f3cf9a2e calc(var(--w) * .11) calc(var(--w) * .135)),
    radial-gradient(circle at 50% 40%, #a22a44, #651527);
}
.card.empty { background: #00000021; box-shadow: inset 0 0 0 1px #ffffff17; }
.card.dealt { animation: deal-card .26s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes deal-card { from { opacity: 0; transform: translateY(-22%) scale(.94); } to { opacity: 1; transform: none; } }

/* Board */
.board { position: absolute; left: 50%; top: 47.5%; transform: translate(-50%, -50%); }
.portrait .board { top: 50%; }
.community { gap: calc(var(--card) * .1); }
.pot {
  position: absolute; left: 50%; bottom: calc(100% + var(--unit) * 1.1); transform: translateX(-50%);
  display: flex; align-items: center; gap: calc(var(--unit) * .6); white-space: nowrap;
  padding: calc(var(--unit) * .3) calc(var(--unit) * .9) calc(var(--unit) * .3) calc(var(--unit) * .5);
  border-radius: 99px; background: #0000008c; box-shadow: inset 0 0 0 1px #ffffff1f;
  font-weight: 800; font-size: 1.12em; font-variant-numeric: tabular-nums; color: #fff;
}
.pot small { font: inherit; font-weight: 650; font-size: .8em; color: #d8c9b4; letter-spacing: .08em; text-transform: uppercase; margin-right: .1em; }
.hand-result {
  position: absolute; left: 50%; top: calc(100% + var(--unit) * 1.1); transform: translateX(-50%);
  width: max-content; max-width: calc(var(--unit) * 44); text-align: center;
  padding: calc(var(--unit) * .45) calc(var(--unit) * 1.1); border-radius: calc(var(--unit) * .6);
  background: linear-gradient(180deg, #f3d7a2, #dbad65); color: #24180a; font-weight: 800; font-size: 1.05em; line-height: 1.25;
  box-shadow: 0 4px 14px #0008;
}
.portrait .hand-result { max-width: 60cqw; }

/* Chips */
.chips { position: relative; flex: none; width: var(--chip); height: calc(var(--chip) * (1 + var(--n, 1) * .16 - .16)); }
.chip {
  position: absolute; left: 0; bottom: calc(var(--chip) * .16 * var(--i, 0)); width: var(--chip); height: var(--chip); border-radius: 50%;
  background: url("/play/envato/pot-chips.webp") calc(var(--c, 0) * 20%) 0 / 600% 100% no-repeat;
  box-shadow: 0 calc(var(--chip) * .07) 0 #00000099, 0 calc(var(--chip) * .12) calc(var(--chip) * .16) #00000080;
}
.table-bets { position: absolute; inset: 0; pointer-events: none; }
.wager { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: calc(var(--unit) * .45); }
.wager-amount { padding: .12em .5em; border-radius: 99px; background: #00000080; color: #fff; font-weight: 800; font-size: 1.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dealer {
  position: absolute; transform: translate(-50%, -50%); display: grid; place-items: center;
  width: calc(var(--chip) * .95); height: calc(var(--chip) * .95); border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #e4dccb); color: #1c1a16; font-weight: 900; font-size: .82em;
  box-shadow: 0 calc(var(--chip) * .07) 0 #9a917f, 0 calc(var(--chip) * .14) calc(var(--chip) * .18) #000a;
}

/* Seats */
.seat { position: absolute; z-index: 2; width: var(--pod-w); height: var(--pod-h); transform: translate(-50%, -50%); }
.pod {
  position: relative; height: 100%; overflow: hidden;
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 1fr 1fr; align-items: center; column-gap: .6em;
  padding: 0 .7em 0 .45em; border-radius: calc(var(--pod-h) * .2);
  background: linear-gradient(180deg, #2a2e36, #15181d); box-shadow: inset 0 0 0 1px #ffffff26, 0 .3em .9em #000c;
}
.seat-avatar {
  grid-row: 1 / 3; display: grid; place-items: center; width: calc(var(--pod-h) * .68); height: calc(var(--pod-h) * .68); border-radius: 50%;
  background: hsl(var(--hue, 350) 42% 36%); box-shadow: inset 0 0 0 1px #ffffff40; color: #fff; font-weight: 800; font-size: .8em;
}
.seat-name { align-self: end; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #e9e7e2; font-weight: 650; font-size: .92em; line-height: 1.15; }
.seat-stack { align-self: start; color: #fff; font-weight: 800; font-size: 1.08em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.seat-timer { position: absolute; left: 0; right: 0; bottom: 0; height: 12%; min-height: 3px; background: #00000080; display: none; }
.seat-timer i { display: block; height: 100%; width: var(--turn-left, 100%); background: linear-gradient(90deg, #e9bf7a, #ffe2ad); transition: width .25s linear; }
.seat.time-low .seat-timer i { background: #ff7a6b; }
.seat.acting .seat-timer { display: block; }
.seat.acting .pod { box-shadow: inset 0 0 0 2px #f4cf8e, 0 0 0 .25em #f4cf8e33, 0 0 1.6em #f4cf8e80, 0 .3em .9em #000c; background: linear-gradient(180deg, #3a362c, #1c1a15); }
.seat.you .pod { box-shadow: inset 0 0 0 1px #e9bf7a8c, 0 .3em .9em #000c; }
.seat.you.acting .pod { box-shadow: inset 0 0 0 2px #f4cf8e, 0 0 0 .25em #f4cf8e33, 0 0 1.6em #f4cf8e80, 0 .3em .9em #000c; }
.seat.winner .pod { box-shadow: inset 0 0 0 2px #f4cf8e, 0 0 1.8em #f4cf8ea6, 0 .3em .9em #000c; }
.seat.folded .pod, .seat.away .pod { opacity: .58; }
.seat .cards { position: absolute; z-index: -1; left: 50%; bottom: calc(var(--pod-h) * .55); transform: translateX(-50%); gap: calc(var(--hole) * .07); }
.seat .card { --w: var(--hole); }
.seat .card.back + .card.back { margin-left: calc(var(--hole) * -.42); }
.seat .cards.shown { bottom: calc(100% - var(--pod-h) * .1); }
.seat.you .cards { bottom: calc(100% + var(--unit) * .45); gap: calc(var(--hero) * .08); }
.seat.you .card { --w: var(--hero); }
.seat.you.folded .cards { opacity: .45; filter: grayscale(.6); }
.complete .seat:not(.winner) .cards { filter: brightness(.82); }
.seat-tag {
  position: absolute; left: 50%; top: calc(100% + var(--unit) * .35); transform: translateX(-50%);
  padding: .14em .6em; border-radius: 99px; white-space: nowrap;
  background: #0b0d10d9; box-shadow: inset 0 0 0 1px #ffffff26; color: #e7e3da; font-weight: 750; font-size: .84em; line-height: 1.3;
}
.seat-tag.win { background: linear-gradient(180deg, #f3d7a2, #dbad65); color: #24180a; box-shadow: none; }
.seat-tag.allin { background: #b3203b; color: #fff; box-shadow: none; }
.seat-tag.bet { color: #ffe2ad; }
.seat.empty-seat { display: grid; place-items: center; }
.seat.empty-seat span { padding: .25em .9em; border-radius: 99px; border: 1px dashed #ffffff33; color: #ffffff59; font-size: .82em; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; background: #0000004d; }

/* ---------- Dock ---------- */
.dock { flex: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 18px; padding: 8px clamp(10px, 1.6vw, 22px) 14px; height: 192px; }
.dock-info { align-self: end; min-width: 0; display: grid; gap: 3px; padding-bottom: 4px; }
.dock-status { display: flex; align-items: baseline; gap: 10px; font-size: .95rem; font-weight: 750; }
.is-your-turn .dock-status { color: #f6d9a6; }
.turn-timer { font-size: .85rem; font-weight: 750; color: #d8c9b4; font-variant-numeric: tabular-nums; }
.time-low .turn-timer { color: #ff9a8e; }
.dock-log { color: var(--room-muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.controls { display: grid; gap: 8px; justify-items: end; width: 480px; max-width: 100%; }
.sending .controls { opacity: .7; }
.sizing { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; align-items: center; width: 100%; padding: 8px 10px; border: 1px solid var(--edge); border-radius: 10px; background: #101317e6; }
.bet-presets { display: flex; gap: 5px; }
.room .preset { flex: 1; min-width: 50px; min-height: 30px; padding: 0 8px; border-radius: 5px; border: 1px solid #ffffff24; background: #232831; color: #e4e1da; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.room .preset:hover { background: #2e343f; }
.bet-amount { display: flex; align-items: center; gap: 4px; }
.bet-amount input { width: 92px; min-height: 30px; padding: 2px 8px; text-align: right; font-size: .95rem; font-weight: 800; font-variant-numeric: tabular-nums; border-radius: 5px; -moz-appearance: textfield; appearance: textfield; }
.bet-amount input::-webkit-inner-spin-button { -webkit-appearance: none; }
.room .step { min-width: 30px; min-height: 30px; padding: 0; border-radius: 5px; border: 1px solid #ffffff24; background: #232831; color: #fff; font-size: 1.05rem; font-weight: 700; line-height: 1; }
.bet-slider { grid-column: 1 / -1; width: 100%; min-height: 22px; padding: 0; border: 0; background: none; accent-color: #e9bf7a; cursor: pointer; }
.control-actions { display: flex; gap: 8px; justify-content: flex-end; width: 100%; }
.room .act { flex: 1; min-width: 148px; min-height: 58px; padding: 4px 14px; border-radius: 9px; border: 1px solid transparent; display: grid; place-content: center; gap: 1px; text-align: center; color: #fff; font-size: 1.02rem; font-weight: 800; line-height: 1.15; box-shadow: inset 0 1px 0 #ffffff33, 0 3px 10px #0008; }
.room .act small { font: inherit; font-size: .86em; font-weight: 750; opacity: .92; font-variant-numeric: tabular-nums; }
.room .act:not(:disabled):hover { filter: brightness(1.12); }
.room .act:active { transform: translateY(1px); }
.room .act.fold { background: linear-gradient(180deg, #4a505b, #2c313a); border-color: #6a717e; }
.room .act.call { background: linear-gradient(180deg, #2f9b6a, #1b6a47); border-color: #52b98a; }
.room .act.raise { background: linear-gradient(180deg, #f2d49c, #d9a95f); border-color: #f6dcae; color: #23180a; }
.room .act.allin { background: linear-gradient(180deg, #c62d49, #8a1a30); border-color: #e0627a; }
.control-actions .button { min-height: 50px; min-width: 132px; font-size: .9rem; }

/* ---------- Small screens ---------- */
@media (max-width: 720px) {
  .room-header { height: 46px; gap: 8px; padding: 0 8px; }
  .room-header .monogram { width: 28px; height: 28px; font-size: 13px; }
  .brand-lines strong { font-size: .88rem; }
  #account-name, .account-avatar, .reserve-label, .back-button span, #open-tools .tools-word { display: none; }
  .account { gap: 5px; }
  .reserve-shortcut, #open-tools, .back-button { min-height: 32px; padding: 0 8px; }
  #sign-out { min-height: 32px; padding: 0 8px; }
  .in-table #sign-out { display: none; }
  .table-title h2 { font-size: .82rem; }
  .game-meta { font-size: .64rem; gap: 5px; }
  .game-meta > span + span::before { margin-right: 5px; }
  .room-body { padding: 12px 10px 24px; }
  .stage { padding: 4px 4px 0; }
  .dock { grid-template-columns: 1fr; gap: 6px; padding: 4px 8px 10px; height: 186px; align-content: end; }
  .controls { width: 100%; }
  .dock-info { display: flex; align-items: baseline; gap: 10px; padding: 0 2px; }
  .dock-status { font-size: .84rem; flex: none; }
  .dock-log { font-size: .74rem; }
  .controls { justify-items: stretch; }
  .sizing { padding: 6px 8px; gap: 6px 8px; }
  .room .preset { min-width: 0; padding: 0 4px; min-height: 32px; font-size: .72rem; }
  .bet-amount input { width: 72px; min-height: 32px; }
  .room .step { min-width: 32px; min-height: 32px; }
  .bet-slider { min-height: 28px; }
  .room .act { min-width: 0; min-height: 54px; padding: 4px 6px; font-size: .95rem; }
  .control-actions .button { flex: 1; min-width: 0; min-height: 48px; padding-inline: 6px; }
  .side { right: 6px; top: 52px; width: calc(100vw - 12px); max-width: 360px; }
  .table-list { grid-template-columns: 1fr; }
  .gate-content { padding: 1.4rem; }
  .gate-scene { background-image: linear-gradient(90deg, #08110ef2, #08110ed1 55%, #08110e9a), url("/private-table-v3.webp"); }
}
@media (prefers-reduced-motion: reduce) { .card.dealt { animation: none; } .seat-timer i { transition: none; } }
