/* room.css, owner: track C. Holds: the room lobby, seat map, invite, options, action bar (DESIGN_SPEC.md 9.5).
   Load order 5 of 15: base, primitives, frame, home, room, friends, center, table, rails, chat, coach, meld, peek, results, dialogs.
   render/room.js builds div.lobby.lobby-room as: the page head, the felt (.lobby-table), then .lobby-actions, which holds the partner row,
   .lobby-side (the invite panel and the options), and the fixed action bar. lobby.js adds them one after the other and Home's old .lobby
   rules (home.css) still match the same div, so every property the page needs is set here. dialogs.css and table.css load later and carry
   global .settings-row, .settings-seg, .seat-avatar, and .seat-action rules: the ones that matter are out-ranked by a longer selector.
   The two columns start when the page itself is 50rem wide (a container query on .game-content, so the tablet band's wide pages get them). */

.game-content:has(> .lobby-room) { container: room / inline-size; }

/* ---- the page ---- */
.lobby.lobby-room {
  display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: var(--sp-5);
  flex: none; width: 100%; max-width: 46rem; min-height: 0; margin-inline: auto; padding: 0 0 calc(var(--sp-5) + var(--sp-6));   /* the page's own padding and this clear the 69 px bar by 19 px */
}
/* One column: the partner row, the invite panel, and the options are one stack with the page's own gap (two columns: display: contents below). */
.lobby-actions { display: grid; gap: var(--sp-5); min-width: 0; }
@media (max-width: 599.98px) { .lobby.lobby-room, .lobby-actions { gap: var(--sp-4); } }
@container room (min-width: 50rem) {
  .lobby.lobby-room {
    display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-rows: auto auto auto auto 1fr; align-items: start; gap: 0 var(--sp-6);
    grid-template-areas: "head head" "table side" "partner side" "watch side" ". side"; max-width: none;
  }
  .lobby-actions { display: contents; }
  .room-head { grid-area: head; }
  .lobby-table { grid-area: table; }
  .lobby-partner { grid-area: partner; margin-top: var(--sp-5); }
  .lobby-side { grid-area: side; }
  .spectator-list-lobby { grid-area: watch; margin-top: var(--sp-5); }
}
@container room (min-width: 62rem) { .lobby.lobby-room { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); } }
@media (min-width: 1024px) and (max-height: 800px) {
  .lobby-partner, .spectator-list-lobby { margin-top: var(--sp-4); }
}

/* ---- the page head ---- */
.room-head { align-items: flex-start; gap: var(--sp-1) var(--sp-5); margin-bottom: 0; }
@container room (min-width: 50rem) { .room-head { margin-bottom: var(--sp-5); } }
.room-head__title { flex: 1 1 22rem; min-width: 0; }
.room-head__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); }
.room-head__row .page-head__title { flex: none; color: var(--text); }
.room-sub { max-width: 46rem; margin-top: var(--sp-1); font: var(--t-small); color: var(--text-dim); }
.room-head .page-head__actions { align-self: flex-start; }
.room-head .btn-leave-lobby { opacity: 1; margin: 0; }
.room-head .btn-leave-lobby:hover { color: var(--bad); border-color: var(--bad-edge); }
.resume-banner { display: flex; align-items: center; gap: var(--sp-2); color: var(--gold-strong); font-weight: 700; }   /* a saved game: the line that replaces the invite sentence */
.resume-banner .i { flex: none; }
@media (min-width: 1024px) and (max-height: 800px) { .room-sub:not(.resume-banner) { display: none; } }
@container room (min-width: 50rem) { @media (max-height: 800px) { .room-head { margin-bottom: var(--sp-3); } } }

/* ---- the felt and its four seats ---- */
.lobby-table {
  position: relative; display: grid; gap: var(--sp-3); padding: var(--sp-4); align-items: center; border-radius: var(--r-2xl);
  background: radial-gradient(ellipse 80% 70% at 50% 40%, var(--felt), var(--table) 55%, var(--felt-edge)); box-shadow: inset 0 0 0 1px var(--hair);
  grid-template-areas: "top top top" "left cloth right" "bottom bottom bottom"; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr);
}
/* Tab goes top, left, right, you (what the eye reads), not by seat number: the cards stay in seat order in the page (tests read them so), and Chrome 137 and later follow the grid. */
.lobby-table { reading-flow: grid-rows; }
.lobby-group { display: none; }
.lobby-top { grid-area: top; }
.lobby-left { grid-area: left; }
.lobby-right { grid-area: right; }
.lobby-bottom { grid-area: bottom; }
.lobby-top, .lobby-bottom { justify-self: center; width: min(100%, 15rem); }
.lobby-cloth {
  grid-area: cloth; display: grid; align-content: center; gap: var(--sp-1); padding: var(--sp-3); border: 1px solid var(--hair); border-radius: var(--r-xl);
  background: var(--plate-fill); text-align: center;
}
.lobby-teams { display: grid; gap: var(--sp-1); font: var(--t-label); overflow-wrap: anywhere; }
.lobby-teams .vs { opacity: 1; color: var(--text-dim); font: var(--t-body); font-family: var(--font-serif); font-style: italic; }
.lobby-cloth .panel-hint { max-width: none; font: var(--t-caption); color: var(--text-dim); }

.lobby-seat {
  display: grid; gap: var(--sp-2); min-width: 0; padding: var(--sp-3); border: 1px solid var(--hair); border-radius: var(--r-xl); background: var(--plate-fill);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.lobby-seat.is-open { border-style: dashed; border-color: var(--line); background: var(--plate-fill-on); }
.lobby-seat.is-waiting { border-style: dashed; border-color: var(--line); }
.lobby-seat.is-movable { cursor: pointer; }
.lobby-seat.is-selected { border-color: var(--gold); box-shadow: var(--glow-gold); }
.lobby-seat.lobby-bottom:has(.seat-avatar.is-mine) { border-color: var(--gold-line); }
@media (hover: hover) and (pointer: fine) { .lobby-seat.is-movable:hover { border-color: var(--gold-line); } }
.seat-head { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; border-radius: var(--r-lg); }
.lobby-seat .seat-head:focus-visible { outline-offset: var(--sp-1); }
.lobby-left .seat-head, .lobby-right .seat-head { flex-direction: column; text-align: center; gap: var(--sp-1); }
.lobby-seat .seat-avatar {
  flex: none; width: var(--hit); height: var(--hit); display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%;
  background: var(--panel-2); color: var(--text); font-size: max(1.375rem, 12px); font-weight: 400;
}
.lobby-seat.is-open .seat-avatar { border-style: dashed; color: var(--gold); }
.lobby-seat .seat-avatar .i { width: 1.25rem; height: 1.25rem; }
.lobby-seat.team-ns .seat-avatar { border-color: var(--team-ns); background: var(--panel-2); }
.lobby-seat.team-ew .seat-avatar { border-color: var(--team-ew); background: var(--panel-2); }
.lobby-seat button.seat-avatar.is-mine { padding: 0; cursor: pointer; font-family: inherit; }
.lobby-seat .seat-info { display: grid; gap: 0; min-width: 0; }
.lobby-seat .player-name { min-width: 0; overflow: hidden; font: var(--t-label); text-overflow: ellipsis; white-space: nowrap; }
.lobby-seat .seat-role { font: var(--t-caption); color: var(--text-dim); }
.seat-role-main, .seat-role-kind { display: block; white-space: nowrap; }
.seat-role-sep { display: none; }
/* The word Computer is written above the select, so the line that said it is not needed there. */
.lobby-seat:has(.seat-computer) :is(.seat-role-kind, .seat-role-sep) { display: none; }
.seat-actions { display: grid; gap: var(--sp-2); min-width: 0; }
.lobby-seat .seat-action { width: 100%; min-height: var(--hit-sm); padding: 0 var(--sp-1); font-size: max(0.875rem, 12px); white-space: normal; text-align: center; line-height: 1.2; }
.lobby-seat .seat-action.is-quiet { color: var(--text-dim); }
.seat-computer { display: grid; gap: var(--sp-1); min-width: 0; }
.seat-computer-label { font: var(--t-caption); color: var(--text-dim); }
.lobby-seat .seat-computer-select {
  min-width: 0; max-width: 100%; min-height: var(--hit); padding: 0 var(--sp-7) 0 var(--sp-3); border-radius: var(--r-lg); font: var(--t-small); font-weight: 600; color-scheme: dark;
  text-overflow: ellipsis; background-position: right var(--sp-3) center;
}
.lobby-seat .seat-computer-select:focus-visible { outline-offset: 1px; }
@media (any-pointer: coarse) { .lobby-seat .seat-action { min-height: var(--hit); } }

/* Fix round 3 m1 (9.7: the four slots are one size, fixes ENT-25): beside the felt the two sides are one grid row and stretch to the same height whether they hold a person, an open seat with its buttons,
   or a computer, and the top seat's two buttons share a row (it was 157 tall). The top and your own seat keep their own heights (a seat with buttons is taller than yours; equal rows added 49 px to the
   lobby page at 1440 x 900 and AC-19 stopped it). No min-height: AC-13 holds a named part to the height scale. */
@media (min-width: 600px) {
  .lobby-table { align-items: stretch; }
  .lobby-top, .lobby-bottom { align-self: center; }
  .lobby-seat { align-content: center; }
  .lobby-top .seat-actions, .lobby-bottom .seat-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); }
}

/* On a phone: two team groups side by side, "Us" (you and your partner) and "Them", each seat a small stack. */
@media (max-width: 599.98px) {
  .lobby-table {
    grid-template-areas: "gus gthem" "top left" "bottom right" "cloth cloth"; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; padding: var(--sp-3); gap: var(--sp-2);
  }
  .lobby-group { display: block; font: var(--t-eyebrow); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); }
  .lobby-group-us { grid-area: gus; }
  .lobby-group-them { grid-area: gthem; }   /* both are --text: the felt takes --text or --gold-strong only (3.7), and team teal is 4.38:1 here; the seats carry the team colors */
  .lobby-top, .lobby-bottom { justify-self: stretch; width: auto; }
  .lobby-seat { align-self: start; }
  .room-head .page-head__actions { margin-left: 0; }
  .lobby-seat .seat-head { flex-direction: column; text-align: center; gap: var(--sp-1); }
}
@media (min-width: 1024px) and (max-height: 800px) {
  .lobby-table { padding: var(--sp-3); gap: var(--sp-2); }
  .lobby-seat { padding: var(--sp-2) var(--sp-3); gap: var(--sp-1); }
}

/* ---- under the felt: the partner row ---- */
.lobby-partner { display: grid; gap: var(--sp-3); }
.lobby-choose-partner, .lobby-partner-line { font: var(--t-small); color: var(--text-dim); max-width: none; text-wrap: balance; }
.lobby-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.lobby-room .for-touch { display: none; }
@media not all and (hover: hover) and (pointer: fine) { .lobby-room .for-touch { display: inline; } .lobby-room .for-mouse { display: none; } }
/* "Same Opponents" with the names beside it (Home's own button of the same name keeps the stacked form below). */
.same-opponents-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-1); }
.same-opponents-names { font: var(--t-caption); color: var(--text-dim); }
.lobby-tools .same-opponents-btn { flex-direction: row; flex-wrap: wrap; gap: 0 var(--sp-2); height: auto; padding-block: var(--sp-1); }
.lobby-tools .avatar-btn { margin: 0; }

/* ---- the invite panel ---- */
.lobby-side { display: grid; gap: var(--sp-5); min-width: 0; }
.lobby-side .panel { padding: var(--sp-4) var(--sp-5); }
.invite-panel {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title title" "main qr" "link link" "share share"; gap: var(--sp-3) var(--sp-5); align-items: center;
}
.invite-title { grid-area: title; font: var(--t-title-3); color: var(--text); }
.invite-main { grid-area: main; display: grid; gap: var(--sp-1); min-width: 0; }
.invite-note { max-width: 38ch; font: var(--t-caption); color: var(--text-dim); }
.room-code-value {
  justify-self: start; min-height: var(--hit); padding: 0; border: 0; background: none; color: var(--text); cursor: pointer; text-align: left; user-select: all;
  font: var(--t-title-1); font-family: var(--font-mono); font-size: clamp(2.25rem, 3.4vw, 3.25rem); font-weight: 800; line-height: 1.1; letter-spacing: 0.16em; overflow-wrap: anywhere;
}
.qr-section { grid-area: qr; display: grid; justify-items: center; gap: var(--sp-1); }
.qr-code { width: 7.5rem; height: 7.5rem; border-radius: var(--r-md); }
.qr-caption { font: var(--t-caption); color: var(--text-dim); }
.invite-link {
  grid-area: link; display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-1) var(--sp-1) var(--sp-1) var(--sp-3);
  border: 1px solid var(--control-line); border-radius: var(--r-lg); background: var(--panel-2);
}
.invite-url { flex: 1; min-width: 0; font: var(--t-small); font-family: var(--font-mono); overflow-wrap: anywhere; user-select: all; }
.invite-link .btn { flex: none; }
.room-share { grid-area: share; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.qr-toggle { display: none; }
/* A wide page (1920 and up): the link and the ways to share it sit on one row, so the panel is a row shorter and the page needs no scrolling. */
@container room (min-width: 80rem) {
  .invite-panel { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "title title title" "main main qr" "link share share"; }
}
@media (min-width: 1024px) and (max-height: 800px) {
  .lobby-side { gap: var(--sp-4); }
  .invite-panel { grid-template-areas: "title qr" "main qr" "link link" "share share"; gap: var(--sp-2) var(--sp-5); }   /* the QR beside the title and the code, the whole link on a row of its own */
  .qr-section { align-self: start; }
  .room-code-value { font-size: max(2.25rem, 12px); }
  .qr-code { width: 7rem; height: 7rem; }
  .invite-note, .qr-caption { display: none; }
}
@media (max-width: 599.98px) {
  .invite-panel { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "main" "qr" "link" "share"; }
  .qr-section:not(.is-open) { display: none; }
  .qr-code { width: 9rem; height: 9rem; }
  .qr-toggle { display: inline-flex; }
  .room-share .btn { flex: 1 1 8rem; }
}
@media (any-pointer: coarse) { .invite-link .btn { min-height: var(--hit); } }

/* ---- the table options ---- */
.lobby-options { display: grid; gap: var(--sp-3); }
.lobby-options-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--sp-1) var(--sp-4); }
.lobby-options-title { font: var(--t-title-3); color: var(--text); }
.lobby-options-cap { font: var(--t-caption); color: var(--text-dim); }
.options-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.lobby-options .settings-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-1) var(--sp-4); width: 100%; min-height: 0; padding: 0.125rem 0;
  border: 0; border-top: 1px solid var(--hair); border-radius: 0; background: none; color: var(--text); font: var(--t-body); text-align: left;
}
.lobby-options .settings-row:first-child { border-top: 0; }
.lobby-options .settings-label { font: var(--t-label); color: var(--text); }
.lobby-options .settings-value { max-width: none; font: var(--t-label); color: var(--text-dim); overflow: visible; white-space: normal; }
.lobby-options .seg { flex: none; max-width: 100%; padding: 0.1875rem; border: 1px solid var(--control-line); border-radius: var(--r-lg); background: var(--panel); }
.lobby-options .seg__item {
  min-height: var(--hit-sm); padding: 0 var(--sp-3); border: 1px solid transparent; border-radius: var(--r-md); background: transparent; color: var(--text-dim);
  font-size: max(0.875rem, 12px); font-weight: 600;
}
.lobby-options .seg__item.is-on { border-color: var(--gold-line); background: var(--gold-wash); color: var(--gold-strong); font-weight: 600; }
.lobby-options .seg__item:disabled { color: var(--text-faint); cursor: not-allowed; }
.lobby-options .seg__item[aria-checked="true"]:disabled { color: var(--gold-strong); }
@media (any-pointer: coarse) { .lobby-options .seg__item { min-width: var(--hit); min-height: var(--hit); } }
/* A switch row: the words, On or Off, and the 44 by 26 track (8.2). */
.lobby-options .settings-switch { min-height: var(--hit); cursor: pointer; flex-wrap: nowrap; }
.lobby-options .settings-text { display: grid; gap: 0; min-width: 0; flex: 1; }
.lobby-options .settings-caption { font: var(--t-caption); color: var(--text-dim); }
.lobby-options .settings-state { flex: none; min-width: 0; font: var(--t-caption); font-weight: 700; color: var(--text-dim); }
.lobby-options .settings-switch[aria-checked="true"] .settings-state { color: var(--gold-strong); }
.lobby-options .settings-toggle {
  position: relative; flex: none; width: var(--hit); height: 1.625rem; border: 1px solid var(--control-line); border-radius: var(--r-full); background: var(--panel); transition: background-color var(--dur-fast);
}
.lobby-options .settings-thumb {
  position: absolute; top: 0.1875rem; left: 0.1875rem; width: 1.0625rem; height: 1.0625rem; border-radius: 50%; background: var(--text-dim); transition: left var(--dur-fast) var(--ease-out);
}
.lobby-options .settings-switch[aria-checked="true"] .settings-toggle { border-color: var(--gold); background: var(--gold); }
/* Fix (ISSUES 148): dialogs.css slides every checked thumb with `translate: 1.125rem 0`; this table-options switch places its thumb with `left`, so both applied and the On thumb sat 18 px past the end of its track. The lobby switch uses `left` only. */
.lobby-options .settings-switch[aria-checked="true"] .settings-thumb { left: calc(100% - 1.0625rem - 0.1875rem); background: var(--ink-on-gold); transform: none; translate: none; }
.lobby-options .settings-switch:disabled { opacity: 1; cursor: not-allowed; }
.lobby-options .settings-switch:disabled .settings-text { opacity: 0.7; }
.lobby-options .lobby-teach-toggle { position: static; }
.options-note { display: none; }
/* Build 32: the host's fact while the table waits, and the rule set's source line, show on a phone (which scrolls). A desktop keeps the lobby on one screen (AC-19, zero scroll at 1920 x 1080); the rule set's source is on the Rules page and the Learn page. */
.lobby-side .fact-line--host, .lobby-options .rules-set-source { display: none; }
@media (max-width: 599.98px) { .lobby-side .fact-line--host, .lobby-options .rules-set-source { display: block; } .lobby-options .rules-set-source { display: inline; } }
@media (min-height: 1000px) and (min-width: 900px) { .options-note { display: block; } }
.options-note summary { display: flex; align-items: center; min-height: var(--hit-sm); padding: 0; color: var(--text-dim); font: var(--t-small); cursor: pointer; }
.options-note summary:hover { color: var(--text); }
.lobby-options-hint { max-width: none; padding-bottom: var(--sp-2); }
@media (any-pointer: coarse) { .options-note summary { min-height: var(--hit); } }
@container room (min-width: 62rem) {
  .options-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-auto-flow: row dense; gap: 0 var(--sp-5); }   /* (the Rules row is the widest: Parlor, Hoyle/Pagat, and Tournament need 251 px at this item size, fix round 2 M3) */
  .lobby-options .seg__item { padding: 0 var(--sp-2); font-size: max(0.8125rem, 12px); }
  .options-grid > .rules-set-caption { grid-column: 1 / -1; margin: 0; }   /* what the chosen set is and where it comes from (build 32): the full width, run together as one paragraph, after the row of choices it explains */
  .rules-set-caption p { display: inline; }
  .rules-set-caption p + p::before { content: " "; }
  .lobby-options .settings-row { flex-direction: column; align-items: flex-start; justify-content: center; padding: 0.125rem 0; }
  .lobby-options .settings-row:nth-child(2) { border-top: 0; }
  .lobby-options .settings-switch { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: var(--sp-1) var(--sp-2); }
}
@media (min-width: 1024px) and (max-height: 800px) {
  .lobby-side .panel { padding: var(--sp-4); }
  .lobby-options { gap: var(--sp-2); }
  .lobby-options .settings-row { padding: 0; }
  .lobby-options .seg__item { padding: 0 var(--sp-2); }   /* three choices and a label stay on one line in a 397 px column */
  .lobby-options .settings-caption, .options-note { display: none; }
}

/* ---- the action bar: fixed at the bottom of the page, over the content column ---- */
.actionbar {
  position: fixed; right: 0; bottom: 0; left: var(--nav-w); z-index: var(--z-bar); padding: var(--sp-2) var(--page-pad) calc(var(--sp-2) + var(--safe-b));
  border-top: 1px solid var(--line); background: var(--ink-92); backdrop-filter: blur(12px);
}
.actionbar__inner { display: flex; align-items: center; gap: var(--sp-3); max-width: var(--page-max); margin-inline: auto; }
.actionbar__status { display: contents; }
.actionbar__pill { order: 0; flex: none; }
.actionbar__fill { order: 1; flex: none; margin-left: auto; }
.actionbar__reason { order: 2; flex: 0 1 18rem; min-width: 0; max-width: none; font: var(--t-small); color: var(--text-dim); text-align: right; text-wrap: balance; }
.actionbar__pill + .actionbar__reason { margin-left: auto; }
.actionbar__inner:has(.actionbar__fill) .actionbar__reason { margin-left: 0; }
.actionbar .start-game-btn { order: 3; flex: none; min-width: 11rem; }
@media (max-width: 599.98px) { .actionbar { bottom: calc(var(--bar-h) + var(--safe-b)); left: 0; padding-bottom: var(--sp-2); } }
/* Under 52rem of page (a phone, a tablet, or large text, which shrinks the page in rem) the bar is two lines: the status, then the buttons. */
@container room (max-width: 51.99rem) {
  .lobby.lobby-room { padding-bottom: calc(var(--sp-9) + var(--sp-3)); }
  .actionbar__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-2); }
  .actionbar__status { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--sp-2); min-width: 0; }
  .actionbar__reason { flex: 1; font: var(--t-caption); text-align: left; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .actionbar__pill + .actionbar__reason { margin-left: 0; }
  .actionbar__fill { margin-left: 0; white-space: normal; overflow-wrap: anywhere; line-height: 1.2; padding-inline: var(--sp-3); }
  .actionbar .start-game-btn { min-width: 0; padding-inline: var(--sp-3); overflow-wrap: anywhere; }
  .actionbar__inner > :last-child:nth-child(2) { grid-column: 1 / -1; }
}
@media (min-width: 1024px) { .actionbar__reason { flex-basis: 26rem; } }

/* ---- the people watching ---- */
.spectator-list-lobby {
  display: grid; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); border: 1px dashed var(--line); border-radius: var(--r-xl); background: var(--panel); font: var(--t-small); color: var(--text-dim);
}
.spectator-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); max-width: none; font: var(--t-small); }
.spectator-line strong { color: var(--text); }
.promote-seat-select { min-height: var(--hit); }

/* Your own seat's avatar opens the picker (build 20); the hit area is 44 by 44. */
/* base.css reads .team-ns button.seat-avatar.is-mine as a gold fill (the old table's); here it is a panel-colored disc, so it gets the plain ring back (the leading body out-ranks base.css by one type selector). */
body .lobby-seat.team-ns button.seat-avatar.is-mine:focus-visible { outline: 2px solid var(--gold-strong); outline-offset: 2px; box-shadow: none; }

@media (prefers-reduced-motion: reduce) {
  .lobby-seat, .lobby-options .settings-toggle, .lobby-options .settings-thumb { transition: none; }
}

/* ---- the three-seat lobby (Three-Handed Cutthroat): you at the foot, the other two seats above, no teams ---- */
.lobby-table.lobby-table--3 { grid-template-areas: "cloth cloth" "s1 s2" "s0 s0"; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.lobby-table--3 .lobby-cloth { grid-area: cloth; }
.lobby-table--3 .lobby-s0 { grid-area: s0; justify-self: center; width: min(100%, 15rem); }
.lobby-table--3 .lobby-s1 { grid-area: s1; }
.lobby-table--3 .lobby-s2 { grid-area: s2; }
.lobby-table--3 .lobby-seat { align-self: start; }
.lobby-table--3 .lobby-teams--3 { display: block; font: var(--t-label); }
@media (max-width: 599.98px) { .lobby-table--3 .lobby-seat .seat-head { flex-direction: column; text-align: center; gap: var(--sp-1); } }
