/* center.css, owner: track D1. Holds: bid panel, waiting panel, trump picker, bid progress lines.
   Load order 7 of 15: base, primitives, frame, home, room, friends, center, table, rails, chat, coach, meld, peek, results, dialogs.
   The panels are sized in em of the center's own type: --stage-type on a computer or tablet (DESIGN_SPEC.md 7.2 and 7.5), 1rem on a phone, where
   they keep the old table's numbers to the pixel (7.8: N * var(--px) is 1 px; css/table.css defines --px on .table-app). */

/* ---- the panel (7.5): bid, trump, waiting, and the meld board's base ---- */
.center-panel { display: flex; flex-direction: column; align-items: center; gap: 0.85em; width: clamp(18rem, calc(400 * var(--u)), 31rem); padding: 1.1em 1.25em 1em; border: 1px solid var(--hair); border-radius: var(--r-xl); background: var(--plate-fill-on); box-shadow: var(--e-2); font-size: max(0.75rem, var(--stage-type)); text-align: center; }
.meld-board { width: min(760px, 100%); align-items: stretch; gap: 0.75em; padding: 1em 1.125em; text-align: left; }
.trump-panel { width: clamp(18rem, calc(400 * var(--u)), 31rem); }
.bid-amount-display { color: var(--gold-strong); font-size: clamp(2.75rem, calc(58 * var(--u)), 4.5rem); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.bid-stepper { display: flex; align-items: center; gap: 0.75em; margin-top: 0.25em; }
.stepper-btn { width: 2.75rem; height: 2.75rem; border: 1px solid var(--line); border-radius: 50%; background: var(--panel-2); color: var(--text); font-size: max(1.5rem, 12px); line-height: 1; cursor: pointer; }
.stepper-btn:hover:not(:disabled) { background: var(--wash-press); }
.stepper-btn:disabled { border-color: var(--hair); color: var(--text-faint); cursor: default; }   /* a disabled control still reads (AC-04) */
.stepper-value { min-width: 3ch; color: var(--gold-strong); font-size: max(1.8rem, 12px); font-weight: 800; font-variant-numeric: tabular-nums; }
.bid-actions { display: flex; justify-content: center; gap: 0.6em; width: 100%; }
.bid-actions .btn { flex: 1; max-width: 10.625rem; padding-inline: 0.6em; white-space: nowrap; }
.center-panel .btn { min-height: 3.25rem; }   /* 7.5: Pass and Bid, the trump button, Confirm Meld are the 52 px size (3.25 rem: 52 at a 16 px root, bigger on a 1920 window and up; AC-13's scale is in rem); the phone's 44 is below */
.bid-group { display: contents; }
/* Larger Text (7.12, render/table.js pinPrimary): the panel scrolls inside itself, and Pass and Bid are a row of their own under the part that scrolls, never over it. */
.center-zone.is-large-text.has-pinned { overflow: hidden; }
.center-zone.has-pinned > .center-panel { max-height: 100%; min-height: 0; overflow: hidden; }
.eyebrow-high { display: none; }
.center-zone.is-large-text .bid-panel .eyebrow-high { display: inline; }
/* A part that scrolls inside its panel says so with a chevron at the panel's right edge while there is more below (render/table.js watchScrollCue; fix round 3 m6). A fade would
   wipe a scroll part that is only 45 px tall. */
.center-panel:has(> .panel-scroll.has-more-below) { position: relative; }
.center-panel:has(> .panel-scroll.has-more-below)::after {
  content: ""; position: absolute; top: 0.4em; right: 0.5em; width: 1.5em; height: 1.5em; background: var(--gold-strong); pointer-events: none;
  -webkit-mask: var(--chevron) center / contain no-repeat; mask: var(--chevron) center / contain no-repeat;
}
.center-panel > .panel-scroll { display: flex; flex: 1 1 auto; flex-direction: column; align-items: center; gap: 0.85em; width: 100%; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.meld-board > .panel-scroll, .trump-panel > .panel-scroll { align-items: stretch; gap: 0.75em; }
.center-zone.is-large-text.has-pinned :is(.bid-actions, .trump-actions, .meld-actions) { position: static; flex: none; background: none; box-shadow: none; }
/* The two-column panel of a phone on its side keeps its columns inside the part that scrolls. */
.center-zone.has-pinned > .bid-panel.fit-split { display: flex; flex-direction: column; gap: calc(4 * var(--px)); }
.bid-panel.fit-split > .panel-scroll { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); grid-template-areas: "info controls" "more controls"; align-items: center; column-gap: 1em; row-gap: 0.375em; }
.bid-panel.fit-split > .panel-scroll .bid-group-controls { align-self: start; }
.center-zone.is-large-text.has-pinned > .center-panel { gap: 0.5em; padding-block: 0.5em 0.6em; }   /* the part that scrolls gets the room the felt has */
.center-zone.is-large-text.has-pinned .bid-actions .btn { min-height: 44px; padding-block: 0; }
.center-zone.is-large-text.has-pinned .meld-board { gap: 0.25em; padding-block: 0.25em; }   /* review R1: at 852 x 393 and 28 px the felt is 104 px; the pinned row at 3.25rem (91 px) left the part that scrolls 0 px and Concede, Propose Forfeit, and the meld lists could not be reached */
.center-zone.is-large-text.has-pinned .meld-actions .btn.meld-confirm { min-height: 44px; padding-block: 0; }
/* Fix round 2 (review R1, R2): Concede stands beside Confirm Meld in the pinned row (a button 44 tall, whole, never in the sliver of the part that scrolls), and the line that says what finishes the concession stands over them, small, so it reads without a scroll */
.center-zone.is-large-text.has-pinned .meld-actions .btn { min-height: 44px; padding-block: 0; padding-inline: 0.5em; }
.center-zone.is-large-text.has-pinned .meld-actions .btn.concede-btn { flex: 0 1 auto; }
.center-zone.is-large-text.has-pinned .meld-actions .btn.meld-confirm { flex: 1 1 auto; }
.center-zone.is-large-text.has-pinned .meld-actions .concede-agreed { font-size: max(0.65rem, 12px); line-height: 1.2; }
.bid-signal-select { display: block; max-width: 100%; min-height: calc(44 * var(--px)); margin: 0.4em auto 0.1em; padding: 0.25em 0.75em; border: 1px solid var(--control-line); border-radius: var(--r-full); background: transparent; color: var(--text-dim); font: inherit; font-size: max(0.78rem, 12px); font-weight: 600; cursor: pointer; }
.bid-signal-select option, .bid-signal-select optgroup { background: var(--paper); color: var(--suit-black); }
.bid-signal-select.is-set { border-color: var(--gold); background: var(--gold); color: var(--ink-on-gold); }
.trump-actions { width: 100%; }
.trump-confirm { width: 100%; margin-top: 0.75em; }
.trump-confirm:disabled, .trump-confirm[aria-disabled="true"] { background: var(--gold-wash); color: var(--gold-strong); opacity: 1; box-shadow: none; }   /* the disabled primary reads (AC-04); it is aria-disabled, so it stays focusable and the click does nothing (center.js) */
.trump-confirm[aria-disabled="true"] { cursor: not-allowed; transform: none; }
.trump-confirm[aria-disabled="true"]:hover { background: var(--gold-wash); }
.trump-confirm .i { width: 1.1em; height: 1.1em; margin-inline-end: 0.4em; vertical-align: -0.15em; }
.trump-reason { margin: 0.5em 0 0; font: var(--t-small); color: var(--gold-strong); text-align: center; }
.trump-reason[hidden] { display: none; }
.trump-reason + .trump-confirm { margin-top: 0.25em; }
body.at-table .table-app .btn.btn-primary.trump-confirm[aria-disabled="true"]:focus-visible { outline-color: var(--gold-strong); box-shadow: none; }   /* on the wash the ring is the gold ring (AC-28), not the light one a gold fill takes */
.center-zone.is-large-text .trump-actions:has(.trump-reason:not([hidden])) { display: flex; flex-wrap: wrap; align-items: center; column-gap: 0.75em; }   /* Larger Text: the reason stands beside the button, not above it (a line the felt has no height for; AC-07) */
.center-zone.is-large-text .trump-reason:not([hidden]) { flex: 1 1 0; min-width: 0; margin: 0; line-height: 1.2; text-align: start; }
.center-zone.is-large-text .trump-reason:not([hidden]) + .trump-confirm { flex: 0 0 auto; width: auto; margin-top: 0; }

/* The bid panel on a computer or a tablet (7.5): "BIDDING  High bid · Matt 51" on one row, the stepper's number is the big one, Pass and Bid in a 1 to 1.25 grid with their key chips. */
@container stage (min-width: 600px) and (min-height: 421px) {
  .bid-panel .bid-group-info { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; column-gap: 0.75em; row-gap: 0.25em; }
  .bid-panel .bid-amount-display { display: none; }
  .bid-panel .panel-sub { color: var(--text-dim); }
  .bid-panel .panel-sub b { color: var(--text); }
  .bid-panel .stepper-value { min-width: 2.2ch; font-size: clamp(2.75rem, calc(58 * var(--u)), 4.5rem); line-height: 1; text-align: center; }
  .bid-panel .bid-stepper { gap: 1.25em; margin-top: 0; }
  .bid-panel .bid-actions { display: grid; grid-template-columns: 1fr 1.25fr; }
  .bid-panel .bid-actions .btn { max-width: none; }
  /* (review round 2 M1: the folded panel keeps the stepper's clamp above, 60 px at 1280 x 720; it was the 2.2 rem 35 px) */
}
@media (max-width: 599.98px), (max-height: 500px) { .bid-sub-amt { display: none; } }
.bid-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; }
.bid-actions .btn-primary kbd { border-color: currentcolor; opacity: 0.75; }
.trump-inspect-btn kbd { position: absolute; top: 0.35em; right: 0.35em; min-height: 1.125rem; border-color: var(--suit-black); opacity: 0.6; }
.trump-inspect-btn:disabled kbd { display: none; }

/* fitCenter's steps for a panel taller than the room (render/table.js): details fold first, then the parts sit side by side on a short felt. */
.center-panel.fit-compact { gap: 0.25em; }
.bid-panel.fit-compact { padding: 0.65em 0.85em; }
.bid-panel.fit-compact .bid-amount-display { font-size: max(2.2rem, 12px); }
.bid-panel.fit-compact .bid-stepper { margin-top: 0; }
.bid-panel.fit-compact .bid-group-info { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; column-gap: 0.5em; }
.bid-panel.fit-compact .bid-group-info .bid-amount-display { font-size: max(1.6rem, 12px); }
.bid-panel.fit-compact .panel-hint { display: none; }
.bid-panel.fit-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); grid-template-areas: "info controls" "more controls"; align-items: center; column-gap: 1em; row-gap: 0.375em; width: 600px; max-width: 100%; }   /* (not min(600px, 100%): a percentage is not definite in the grid's auto column, so the column took the panel's content width, 786, and the side seats got 70 px each at 1280 x 600) */
.bid-panel.fit-split .bid-group { display: flex; flex-direction: column; align-items: center; gap: 0.25em; min-width: 0; }
.bid-panel.fit-split .bid-group-info { grid-area: info; align-self: end; flex-direction: column; }
.bid-panel.fit-split .bid-group-info .bid-amount-display { font-size: max(2.2rem, 12px); }
/* With the misdeal line, the amount gives up height so the line stands whole above Pass and Bid on a phone on its side. */
.bid-panel.fit-split:has(.misdeal-hint) .bid-group-info .bid-amount-display { font-size: max(1.5rem, 12px); line-height: 1.1; }
.bid-panel.fit-split:has(.misdeal-hint) .bid-group-info .panel-eyebrow { display: none; }
.bid-panel.fit-split .bid-group-controls { grid-area: controls; gap: 0.375em; }
.bid-panel.fit-split .bid-group-more { grid-area: more; align-self: start; }

/* ---- the trump picker ---- */
.trump-inspector-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6em; width: 100%; }
.trump-inspect-btn { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.25em; min-width: 0; min-height: 4.5rem; padding: 0.85em 0.25em 0.75em; border: 1px solid var(--hair); border-radius: var(--r-lg); background: var(--paper); color: var(--suit-black); cursor: pointer; transition: transform 0.12s, box-shadow 0.12s; }
.trump-inspect-btn:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 0 0 3px var(--gold), var(--e-1); }
.trump-inspect-btn:disabled { background: var(--white-08); color: var(--text-dim); cursor: not-allowed; }
.trump-inspect-btn:disabled .trump-inspect-stats { opacity: 1; }   /* AC-04: the card count on an off tile is the dim text, whole */
.trump-inspect-btn.is-picked { outline: 3px solid var(--gold); outline-offset: 3px; box-shadow: var(--glow-gold); transform: translateY(-4px); }
.trump-inspect-symbol { font-size: max(2.2rem, 12px); line-height: 1; }
.trump-inspect-btn.red-suit:not(:disabled) .trump-inspect-symbol { color: var(--suit-red); }
body.four-color-deck .trump-inspect-btn.suit-C:not(:disabled) .trump-inspect-symbol { color: #1b7a2b; }
body.four-color-deck .trump-inspect-btn.suit-D:not(:disabled) .trump-inspect-symbol { color: #1565c0; }
.trump-inspect-name { font-size: max(0.85rem, 12px); font-weight: 700; }
.trump-inspect-stats { font-size: max(0.75rem, 12px); opacity: 0.75; }
.trump-inspect-stats > span { white-space: nowrap; }   /* "3 cards · no K+Q" wraps only at the "·" (F-005), never inside "K+Q" */

/* ---- bid progress (trick play) ---- */
.bid-progress { display: flex; flex-direction: column; gap: 0.3em; width: min(21.25rem, 100%); padding: 0.65em 0.75em; border: 1px solid var(--hair); border-radius: var(--r-lg); background: var(--plate-fill); font-size: max(0.75rem, var(--stage-type)); }
.bid-progress-text { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 0.6em; font-size: max(0.85rem, 12px); font-weight: 700; }
.bid-progress-text > span { max-width: 100%; }   /* wraps as whole phrases ("needs 12 more" drops to its own line); a phrase wider than the whole box (Larger Text, build 32's longer words) breaks inside itself rather than run out of it */
.bid-progress-text > span:last-child { color: var(--gold-strong); }
.bid-progress-sub { display: flex; justify-content: space-between; gap: var(--sp-2); color: var(--text-dim); font-size: max(0.75rem, 12px); }
.bid-progress-bar-bg { position: relative; height: 0.375rem; overflow: hidden; border-radius: var(--r-xs); background: var(--track); }
.bid-progress-bar-fill { height: 100%; border-radius: var(--r-xs); transition: width 0.5s ease; }
.bid-progress-tick { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: calc(var(--sp-1) * -0.25); background: var(--text); opacity: 0.7; }
.bid-progress-green { background: var(--good); }
.bid-progress-yellow, .bid-progress-gold { background: var(--gold); }
.bid-progress-team { background: var(--text-dim); }
.bid-progress-red { background: var(--bad); }
/* Build 28 (ISSUES row 84): the same numbers as one compact line, in place of the bars where the center is short (a phone on its side). Never under 12 px. */
.bid-progress-line { display: none; max-width: 100%; margin: 0; color: var(--text); font-size: max(0.75rem, 12px); font-weight: 600; line-height: 1.25; text-align: center; text-wrap: balance; }
.bp-row { display: flex; flex-direction: column; gap: var(--sp-1); }
.bp-row + .bp-row { padding-top: var(--sp-1); border-top: 1px solid var(--hair); }
.bp-twenty { flex: none; padding: 0 var(--sp-2); border: 1px solid var(--hair); border-radius: var(--r-full); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bp-twenty.is-done { color: var(--good); border-color: var(--good-wash); }

/* ---- the phone, upright or on its side: the old numbers (7.8) ---- */
@media (max-width: 599.98px), (max-height: 500px) {
  .center-panel, .bid-progress { font-size: max(1rem, 12px); }
  .center-panel .btn { min-height: calc(44 * var(--px)); }   /* 7.9: 44 on a phone (AC-13's scale is 36, 44, 52; the old 48 is not on it) */
  .center-panel { width: min(460px, 100%); gap: calc(8 * var(--px)); padding: calc(14 * var(--px)) calc(12 * var(--px)); border-radius: var(--r-2xl); background: var(--plate-fill); box-shadow: var(--e-2); }
  .meld-board { padding: calc(16 * var(--px)) calc(18 * var(--px)); gap: calc(12 * var(--px)); }
  .trump-panel { width: min(520px, 100%); }
  .bid-amount-display { font-size: max(2.3rem, 12px); }
  .bid-stepper { gap: calc(12 * var(--px)); margin-top: calc(4 * var(--px)); }
  .stepper-btn { width: 48px; height: 48px; }
  .bid-actions { gap: calc(10 * var(--px)); }
  .bid-signal-select { margin: calc(6 * var(--px)) auto calc(2 * var(--px)); padding: calc(4 * var(--px)) calc(10 * var(--px)); }
  .trump-inspector-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(10 * var(--px)); }
  .trump-inspect-btn { min-height: calc(44 * var(--px)); padding: calc(14 * var(--px)) calc(4 * var(--px)) calc(12 * var(--px)); }
  .trump-confirm { margin-top: calc(12 * var(--px)); }
  .center-panel.fit-compact { gap: calc(4 * var(--px)); }
  .bid-panel.fit-compact { padding: calc(10 * var(--px)) calc(14 * var(--px)); }
  .bid-panel.fit-compact .bid-group-info { column-gap: calc(8 * var(--px)); }
  .bid-panel.fit-split { column-gap: calc(16 * var(--px)); row-gap: calc(6 * var(--px)); }
  .bid-panel.fit-split .bid-group { gap: calc(4 * var(--px)); }
  .bid-panel.fit-split .bid-group-controls { gap: calc(6 * var(--px)); }
  .bid-progress { width: min(340px, 100%); padding: calc(10 * var(--px)) calc(12 * var(--px)); gap: calc(5 * var(--px)); }
  .bid-progress-text { gap: 0 calc(10 * var(--px)); }
  .bp-row { gap: calc(4 * var(--px)); }
  .bp-row + .bp-row { padding-top: calc(6 * var(--px)); }
  .bid-progress-sub { gap: var(--sp-2); }
  .bp-twenty { padding: 0 calc(6 * var(--px)); }
}
@container stage (max-width: 599.98px) and (max-height: 610px) { .bid-progress { padding: calc(3 * var(--px)) calc(8 * var(--px)); gap: calc(2 * var(--px)); } .bp-row { gap: calc(2 * var(--px)); } .bp-row + .bp-row { padding-top: calc(3 * var(--px)); } }
@container stage (max-width: 599.98px) and (max-height: 610px) { .bid-progress-text { font-size: max(0.75rem, 12px); } }   /* build 32's longer words ("17 more to keep their 24 meld") stay on one line beside the team's name on a 320 px phone: the floor size, so the trick card keeps its 46 px */
@container stage (max-width: 599.98px) and (max-height: 610px) { .bid-progress-sub { display: none; } }   /* the bars are as wide as the felt here (css/table.css), one line a row: the sums under them wait for a taller phone */
@media (max-height: 500px) and (orientation: landscape) {
  /* Review R6: the auction so far is one line that scrolls sideways (its right edge fades), not a box that the pinned Pass and Bid row cuts in half. */
  .bid-panel.fit-split .bid-history { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding-block: calc(2 * var(--px)); }
  .bid-panel.fit-split .bid-history.is-clipped { -webkit-mask-image: linear-gradient(to right, transparent, var(--mask-on) 24px); mask-image: linear-gradient(to right, transparent, var(--mask-on) 24px); }   /* review round 2 m5: the newest bid stands whole at the right edge (render/table.js endHistory); the older ones fade out at the left */
  .bid-panel.fit-split .bid-history-entry { flex: none; white-space: nowrap; }
  .center-zone .bid-progress { display: none; }
  .center-zone .bid-progress-line { display: block; }
  .center-zone .bid-progress-line > span[hidden] { display: inline; }   /* (the full stop and its space between the two clauses: they read "trick pointsWe need" with it hidden) */
  .center-zone .bid-progress-clause { display: inline; }   /* build 30's one clause to a line costs a row or two; on a short phone on its side the height is the scarce thing, so the clauses run together (the full stop between them is still in the text) */
  .center-panel { padding: calc(8 * var(--px)) calc(12 * var(--px)); gap: calc(6 * var(--px)); }
  /* The two-column bid panel of a phone on its side: the stepper and the signal pill fit whole above Pass and Bid (7.8: none of them is covered), the history box scrolls beside them. */
  .center-zone.has-pinned > .bid-panel.fit-split { padding-block: calc(5 * var(--px)); }
  .bid-panel.fit-split .stepper-btn { width: 44px; height: 44px; }
  .bid-panel.fit-split .bid-signal-select { margin-block: 0; }
  .bid-panel.fit-split > .panel-scroll .bid-group-controls { gap: calc(4 * var(--px)); }
  /* Build 28 (ISSUES row 84): the tricks-needed line stands in the row after the turn line and gives way to the cross first. */
  .center-zone:has(> .trick-area) > .bid-progress-line { flex: 0 1 min(calc(230 * var(--px) * var(--fit, 1)), 130px); min-width: min(calc(110 * var(--px) * var(--fit, 1)), 130px); max-width: min(calc(240 * var(--px) * var(--fit, 1)), 130px); text-align: start; }   /* the old center was zoomed by the fit, line and gaps with it: the widths follow --fit and the type stays at the 12 px floor */
  /* The four suits in one row of shorter buttons, so the whole picker and Confirm fit the short felt (N-004). */
  .trump-inspector-picker { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: calc(6 * var(--px)); }
  .trump-inspect-btn { gap: calc(1 * var(--px)); padding: calc(6 * var(--px)) calc(4 * var(--px)) calc(5 * var(--px)); }
  .trump-inspect-symbol { font-size: max(1.6rem, 12px); }
  .trump-confirm { margin-top: calc(8 * var(--px)); }
  .trump-panel.fit-compact { padding-block: calc(5 * var(--px)); }
  .trump-panel.fit-compact .panel-title { font-size: max(1rem, 12px); line-height: 1.2; }
  .trump-panel.fit-compact .trump-inspect-btn { display: grid; grid-template-columns: auto auto; grid-template-areas: "sym name" "stats stats"; justify-content: center; align-items: center; column-gap: calc(5 * var(--px)); row-gap: 0; padding: calc(3 * var(--px)) calc(6 * var(--px)); }
  .trump-panel.fit-compact .trump-inspect-symbol { grid-area: sym; font-size: max(1.15rem, 12px); }
  .trump-panel.fit-compact .trump-inspect-name { grid-area: name; }
  .trump-panel.fit-compact .trump-inspect-stats { grid-area: stats; }
  .trump-panel.fit-compact .trump-confirm { margin-top: calc(2 * var(--px)); min-height: calc(44 * var(--px)); }
}
/* Larger Text on a phone held upright (200%): the side seats join the top row in the bid and the trump panels (the panel gets the felt's whole width: a stepper, a name, and a button are never cut by a narrow middle column), and the suits are one column of full-width rows, each the suit beside its name (44 px at least), scrolling over Confirm. The side seats join the top row. */
@media (max-width: 599.98px) {
  .game-table.phase-declaring:has(.center-zone.is-large-text) { grid-template-areas: "left top right" "center center center" "bottom bottom bottom"; grid-template-columns: max-content minmax(0, 1fr) max-content; }
  .game-table.phase-declaring:has(.center-zone.is-large-text) .player-top { min-width: 0; max-width: 100%; }
  .game-table.phase-declaring:has(.center-zone.is-large-text) :is(.player-left, .player-top, .player-right) .seat-avatar { display: none; }
  .game-table.phase-declaring:has(.center-zone.is-large-text) :is(.player-left, .player-right) { align-self: start; }
  /* The meld board at Larger Text (AC-07, AC-34): the same arrangement. At a 28 px root the container rule of meld.css (min-height 24rem is 672 px) does not match a phone, and the board stood 131 px wide between two 84 px seats with Confirm Meld 98 px tall below the window. */
  .game-table.phase-meld:has(.center-zone.is-large-text) { grid-template-areas: "left top right" "center center center" "bottom bottom bottom"; grid-template-columns: max-content minmax(0, 1fr) max-content; }
  .game-table.phase-meld:has(.center-zone.is-large-text) .player-top { min-width: 0; max-width: 100%; }
  .game-table.phase-meld:has(.center-zone.is-large-text) :is(.player-left, .player-top, .player-right) .seat-avatar { display: none; }
  .game-table.phase-meld:has(.center-zone.is-large-text) :is(.player-left, .player-right) { align-self: start; max-height: none; }
  .game-table.phase-meld:has(.center-zone.is-large-text) .player-top .seat-plate, .game-table.phase-meld:has(.center-zone.is-large-text) .player-top .player-name-row { flex-wrap: wrap; justify-content: center; }
  .game-table.phase-bidding:has(.center-zone.is-large-text) { grid-template-areas: "left top right" "center center center" "bottom bottom bottom"; grid-template-columns: max-content minmax(0, 1fr) max-content; }
  .game-table.phase-bidding:has(.center-zone.is-large-text) .player-top { min-width: 0; max-width: 100%; }
  .game-table.phase-bidding:has(.center-zone.is-large-text) :is(.player-left, .player-top, .player-right) .seat-avatar { display: none; }
  .game-table.phase-bidding:has(.center-zone.is-large-text) :is(.player-left, .player-right) { align-self: start; }
  .game-table.phase-bidding:has(.center-zone.is-large-text) .player-top .seat-plate, .game-table.phase-bidding:has(.center-zone.is-large-text) .player-top .player-name-row { flex-wrap: wrap; justify-content: center; }
  /* Tricking at Larger Text (review R1): the same arrangement. The side seats join the top row so the cross, the lead tab, and the tricks-needed line have the felt's whole width ("Tomm y", a clipped tab, and a cut panel at 393 x 852). */
  .game-table.phase-tricking:has(.center-zone.is-large-text) { grid-template-areas: "left top right" "center center center" "bottom bottom bottom"; grid-template-columns: max-content minmax(0, 1fr) max-content; }
  .game-table.phase-tricking:has(.center-zone.is-large-text) .player-top { min-width: 0; max-width: 100%; }
  .game-table.phase-tricking:has(.center-zone.is-large-text) :is(.player-left, .player-top, .player-right) .seat-avatar { display: none; }
  .game-table.phase-tricking:has(.center-zone.is-large-text) :is(.player-left, .player-right) { align-self: stretch; }
  .game-table.phase-tricking:has(.center-zone.is-large-text) :is(.player-left, .player-right) .seat-plate { height: 100%; }   /* ("0 tricks" wraps to two lines at this size: the two plates stay one height, level) */
  .game-table.phase-tricking:has(.center-zone.is-large-text) .player-top .seat-plate, .game-table.phase-tricking:has(.center-zone.is-large-text) .player-top .player-name-row { flex-wrap: wrap; justify-content: center; }
  .center-zone.is-large-text .bid-actions kbd { display: none; }   /* the key chips are for a keyboard; at this size the words need their room */
  .center-zone.is-large-text .trump-panel > .panel-scroll > :is(.panel-title, .panel-eyebrow) { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }   /* review R7: at 320 x 568, root 28, the window is 102 px and the title took 76 of it (two lines) so no suit showed; the title stays for a screen reader, the suit rows and "Pick a Suit" say the same */
  .center-zone.is-large-text .trump-inspector-picker { grid-template-columns: minmax(0, 1fr); gap: calc(8 * var(--px)); }
  .center-zone.is-large-text .trump-inspect-btn { flex-direction: row; justify-content: flex-start; align-items: center; gap: calc(12 * var(--px)); padding: calc(6 * var(--px)) calc(14 * var(--px)); text-align: start; }
  .center-zone.is-large-text .trump-inspect-symbol { flex: none; font-size: max(1.6rem, 12px); }
  .center-zone.is-large-text .trump-inspect-name { font-size: max(1rem, 12px); }
  .center-zone.is-large-text .trump-inspect-stats { margin-inline-start: auto; font-size: max(0.85rem, 12px); }
}
.bid-progress-clause { display: block; }

/* 500: the bid grid (six to ten tricks by suit, and Nullo). */
.bid-grid { display: grid; gap: var(--sp-1); margin: var(--sp-2) auto; width: max-content; max-width: 100%; }
.bid-grid-row { display: grid; grid-template-columns: 1.6em repeat(5, minmax(2.9em, 1fr)); gap: var(--sp-1); align-items: center; }
.bid-grid-head span { text-align: center; font: var(--t-label); }
.bid-grid-suit.suit-H, .bid-grid-suit.suit-D { color: var(--bad); }
.bid-grid-n { text-align: right; font: var(--t-label); color: var(--text-dim); padding-right: var(--sp-1); }
.bid-cell {
  min-height: 2.2em; border-radius: var(--r-md); border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text); font: inherit; font-variant-numeric: tabular-nums; cursor: pointer;
}
.bid-cell:hover:not([disabled]) { border-color: var(--gold-line); }
.bid-cell[disabled] { opacity: 0.28; cursor: default; }
.bid-cell.is-picked { background: var(--gold); color: var(--ink-on-gold); font-weight: 700; border-color: transparent; }
.bid-cell.is-suggested { outline: 2px dashed var(--gold); outline-offset: 1px; }
.bid-grid-nullo { grid-template-columns: 1.6em 1fr; }
.bid-grid-nullo .bid-cell { grid-column: 2; }
.bury-count { margin: var(--sp-2) 0; font: var(--t-label); }
#hand-slot .card.discard-picked { transform: translateY(-22px); outline: 3px solid var(--gold); }
.joker-suit-backdrop { position: fixed; inset: 0; background: var(--scrim); display: grid; place-items: center; z-index: var(--z-dialog); }
.joker-suit-modal { background: var(--panel); color: var(--text); padding: var(--sp-5); border-radius: var(--r-xl); max-width: 26rem; text-align: center; }
.joker-suit-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); margin: var(--sp-3) 0; }
.joker-suit.suit-H, .joker-suit.suit-D { color: var(--bad); }
