/* The games, restyled for the ink page. Everything below the token block is the previous site's
   games stylesheet, unchanged, so the class contract poker.js and blackjack.js rely on still holds;
   only the tokens differ. */
.games {
  --ground:      #000;
  --ground-lift: #0b0b0b;
  --ink:         #ececec;
  --mid:         rgba(236, 236, 236, .7);
  --accent:      #ececec;
  --accent-lift: #fff;
  --suit:        #8c8c8c;
  --suit-face:   #7a7a7a;
  --card-face:   #ececec;
  --card-ink:    #111;
  --card-radius: 4px;
  --card-back:
    repeating-linear-gradient(45deg,  rgba(236, 236, 236, .07) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(-45deg, rgba(236, 236, 236, .07) 0 1px, transparent 1px 7px),
    #0c0c0c;
  --line:        rgba(236, 236, 236, .16);
  --line-strong: rgba(236, 236, 236, .22);
  --display: 'Cormorant Garamond', Georgia, serif;
  --text:    'Cormorant Garamond', Georgia, serif;
  --mono:    'Cormorant Garamond', Georgia, serif;
  --dls: 0;
  --fs-meta: .9rem;
  --fs-micro: .8rem;
  --fs-body: 1.125rem;
  --t-fast: .10s; --t-mid: .15s; --t-slow: .26s;
  --ease: cubic-bezier(.2, .8, .25, 1);
  --radius: 2px;
}
/* Cormorant's x-height is small: size it up to read like the old UI face, with lining, even-width figures */
.games, .games * { font-size-adjust: .5; font-weight: 500; font-variant-numeric: lining-nums tabular-nums; }

/* ---------------------------------------------------------
   The games. Blackjack and Hold'em.

   The class contract is fixed: poker.js, blackjack.js and
   games_switcher.js emit these names and know nothing about
   presentation. Every id, class and state class the old
   stylesheet answered is answered here. What changed is the
   surface, not the structure — the old pass was glassmorphism
   (20px backdrop blurs, 999px pills, inset highlights, blue
   glow on hover, an infinite pulse on Deal, mono tracked to
   .22em), and none of that survives contact with this file's
   rules.

   Every fixed height and grid template below is load-bearing:
   both tables are a fixed 580px and every row inside them
   reserves its tallest state, so nothing reflows as cards
   arrive, bets resolve, or hands flip up at showdown.
   --------------------------------------------------------- */

/* ---- switcher: two labels and a rule that slides ---- */
.game-switcher {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  width: max-content; margin: 0 auto 1.75rem;
  border-bottom: 1px solid var(--line);
}
.game-tab {
  background: none; border: 0; padding: .55rem 1.6rem;
  font-family: var(--mono); font-size: var(--fs-meta); letter-spacing: .015em;
  color: var(--mid); cursor: pointer; text-align: center;
  transition: color var(--t-mid) ease;
}
.game-tab:hover:not(.is-active) { color: var(--accent-lift); }
.game-tab.is-active { color: var(--ink); }
.game-tab-indicator {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 50%;
  background: var(--accent);
  transition: transform var(--t-slow) var(--ease);
}
.game-switcher[data-active="poker"] .game-tab-indicator { transform: translateX(100%); }

.game-panel[hidden] { display: none; }

/* ---- the rules line: a spec, so it is set as one ---- */
.bj-rules {
  display: flex; justify-content: center; flex-wrap: wrap; gap: .55rem;
  margin: 0 0 1.25rem;
  font-family: var(--mono); font-size: var(--fs-micro); letter-spacing: .015em;
  color: var(--mid);
  font-feature-settings: "tnum" 1;
}
.bj-rules strong { color: var(--ink); font-weight: 400; }
.bj-rules-sep { color: var(--mid); opacity: .45; }

/* ---- the table: the same framed-instrument surface the
        project graphics use, at table scale ---- */
.bj-table, .pk-table {
  position: relative; overflow: hidden;
  max-width: 45rem; margin: 0 auto;
  height: 580px;
  padding: 1.6rem 1.5rem;
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .012);
}
.bj-table { gap: 1.3rem; }
.pk-table { gap: 1.1rem; }

/* The Fourier tracer sits under the content. It runs once, when the shoe
   is prepared, and then stops — see js/blackjack_fourier.js. */
.bj-fourier-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 1; opacity: .8;
}
.bj-table > *:not(.bj-fourier-canvas) { position: relative; z-index: 2; }
.pk-table > * { position: relative; z-index: 2; }

/* =========================================================
   Cards. The same object the doorway reads, dealt small.
   ========================================================= */
.bj-card {
  position: relative; flex-shrink: 0;
  width: 60px; height: 84px;
  border-radius: var(--card-radius);
  user-select: none;
  background: var(--card-face);
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .75);
}
.bj-card-rank {
  position: absolute; top: 3px; left: 6px;
  font-family: var(--display); font-weight: 400; letter-spacing: -.01em;
  font-size: 1.05rem; line-height: 1;
}
.bj-card-center {
  position: absolute; bottom: 5px; right: 7px;
  font-family: var(--display); font-weight: 400;
  font-size: 1.55rem; line-height: 1;
}
.bj-card--red  .bj-card-rank, .bj-card--red  .bj-card-center { color: var(--suit-face); }
.bj-card--dark .bj-card-rank, .bj-card--dark .bj-card-center { color: var(--card-ink); }

/* Face-down: the doorway's lattice, same token. */
.bj-card--back {
  background: none; overflow: hidden;
  border: 1px solid var(--line);
}
.bj-card-back-pattern { width: 100%; height: 100%; background: var(--card-back); }

/* An empty community slot: the outline of a card that has not been dealt. */
.bj-card.pk-card--empty {
  background: none; box-shadow: none;
  border: 1px solid var(--line);
}

/* A card arriving. User-initiated — you pressed Deal — so it is allowed to
   move. It slides in; it does not zoom. */
@keyframes bj-card-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
.bj-card--enter { animation: bj-card-in var(--t-slow) var(--ease) both; }

/* =========================================================
   Blackjack
   ========================================================= */
.bj-area-label,
.bj-bank-label,
.bj-bet-label,
.bj-hand-label,
.pk-pot-label,
.pk-seat-name {
  font-family: var(--mono); font-size: var(--fs-micro); letter-spacing: .015em;
  color: var(--mid);
}

.bj-total,
.bj-bank-value,
.bj-hand-total,
.pk-pot-value,
.pk-seat-stack,
.pk-seat-bet,
.bj-message,
.pk-message {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.bj-side { min-height: 95px; display: flex; flex-direction: column; gap: .45rem; }
.bj-side-header { display: flex; align-items: baseline; gap: .7rem; }
.bj-total { font-size: var(--fs-meta); color: var(--ink); min-height: 1em; }

.bj-cards { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; }

/* Fills the leftover vertical space inside the table's fixed 580px so the
   cards stay centred rather than leaving a hollow strip. */
.bj-player-area {
  display: flex; gap: 1.5rem; flex-wrap: wrap;
  min-height: 95px; flex: 1;
  align-items: center; align-content: center;
}

.bj-hand { display: flex; flex-direction: column; gap: .6rem; }
.bj-hand-label { display: flex; align-items: baseline; gap: .6rem; }
.bj-hand--player.is-active .bj-hand-label { color: var(--accent-lift); }
.bj-hand-total { color: var(--ink); }
.bj-hand-bet { color: var(--mid); }

/* Outcome is typographic. Red is not available here: on this page red means
   a suit is present, and a lost hand is not a suit. Green was never in the
   palette at all. So a win is the accent, a push is muted, and a loss is
   muted with the total struck through — the hand itself is crossed out. */
.bj-hand-tag {
  font-family: var(--mono); font-size: var(--fs-micro); letter-spacing: .015em;
  color: var(--mid);
}
.bj-hand-tag--win  { color: var(--accent); }
.bj-hand-tag--bj   { color: var(--accent-lift); }
.bj-hand-tag--push { color: var(--mid); }
.bj-hand-tag--lose,
.bj-hand-tag--bust { color: var(--mid); }
.bj-hand--lose .bj-hand-total,
.bj-hand--bust .bj-hand-total {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  color: var(--mid);
}

.bj-message {
  text-align: center; font-size: var(--fs-meta);
  color: var(--mid); min-height: 1.4em; letter-spacing: .015em;
  transition: color var(--t-slow) ease;
}

.bj-divider { height: 1px; background: var(--line); margin: .25rem 0; }

/* ---- controls ---- */
.bj-controls { display: flex; flex-direction: column; gap: .8rem; }
.bj-bank-row { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.bj-bank-info { display: flex; flex-direction: column; gap: .2rem; }
.bj-bank-value { font-size: var(--fs-meta); color: var(--ink); }
.bj-bet-display { display: flex; align-items: baseline; gap: .6rem; }

.bj-btn-ghost {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--text); font-size: var(--fs-micro);
  color: var(--mid);
  border-bottom: 1px solid var(--line); padding-bottom: .05rem;
  transition: color var(--t-mid) ease, border-color var(--t-mid) ease;
}
.bj-btn-ghost:hover:not(:disabled) { color: var(--ink); border-bottom-color: var(--accent); }
.bj-btn-ghost:disabled { opacity: .35; cursor: not-allowed; }

.bj-bet-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.bj-bet-label { margin-right: .25rem; }

/* Chips carry amounts, so they are mono and tabular. */
.bj-chip {
  background: none;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: .24rem .6rem; cursor: pointer;
  font-family: var(--mono); font-size: var(--fs-micro); letter-spacing: -.01em;
  color: var(--mid);
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1;
  transition: color var(--t-mid) ease, border-color var(--t-mid) ease;
}
.bj-chip:hover:not(:disabled) { color: var(--accent-lift); border-color: var(--accent); }
.bj-chip:disabled { opacity: .3; cursor: not-allowed; }

.bj-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

/* A button label is a command you issue, not a number a machine produced,
   so the actions are set in the text face — and not tracked out. */
.bj-btn {
  padding: .5rem 1rem; min-width: 5rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: none; cursor: pointer;
  font-family: var(--text); font-size: var(--fs-meta); font-weight: 500;
  color: var(--mid);
  transition: color var(--t-mid) ease, border-color var(--t-mid) ease;
}
.bj-btn:hover:not(:disabled) { color: var(--ink); border-color: var(--accent); }
.bj-btn:disabled { opacity: .3; cursor: not-allowed; }

/* Deal is the primary action and the only filled element on the page. It
   needs no pulse: between hands it is the only button that is not disabled,
   which says "next" more clearly than a glow ever did. */
.bj-btn--deal {
  background: var(--accent); border-color: var(--accent);
  color: var(--ground); font-weight: 700;
  min-width: 6rem;
}
.bj-btn--deal:hover:not(:disabled) {
  background: var(--accent-lift); border-color: var(--accent-lift);
  color: var(--ground);
}
/* A disabled primary must not out-shout an enabled secondary: mid-hand,
   Deal is unavailable while Hit and Stand are not, so it drops the fill
   and joins the other disabled buttons. */
.bj-btn--deal:disabled {
  background: none; border-color: var(--line);
  color: var(--mid); font-weight: 500;
  opacity: .3;
}

/* =========================================================
   Hold'em
   ========================================================= */
/* Opponents across row 1, board filling row 2. minmax(0,1fr) plus the
   fixed card slots below is what stops the board from pushing the hero
   seat down as the hand develops. */
.pk-arena {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 1.2rem .4rem;
  align-items: start;
  padding: .2rem .2rem 0;
  flex: 1; min-height: 0;
}
.pk-seat[data-seat="1"] { grid-column: 1; grid-row: 1; }
.pk-seat[data-seat="2"] { grid-column: 2; grid-row: 1; }
.pk-seat[data-seat="3"] { grid-column: 3; grid-row: 1; }
.pk-seat[data-seat="4"] { grid-column: 4; grid-row: 1; }
.pk-seat[data-seat="5"] { grid-column: 5; grid-row: 1; }
.pk-board               { grid-column: 1 / -1; grid-row: 2; align-self: stretch; }

.pk-seat {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  transition: opacity var(--t-slow) ease;
}
.pk-seat:not(.pk-seat--hero).is-folded { opacity: .3; }
/* The hero's own name and stack stay legible after folding — only the
   cards and their column dim. */
.pk-seat--hero.is-folded .pk-hero-center,
.pk-seat--hero.is-folded .pk-hero-empty { opacity: .3; }

.pk-seat-name { transition: color var(--t-mid) ease; }
.pk-seat.is-active .pk-seat-name { color: var(--accent-lift); }
.pk-seat.is-winner .pk-seat-name { color: var(--ink); }

/* Whose turn it is: a static mark, plus the timer ring, which carries the
   urgency honestly because it shows the time actually remaining. */
.pk-seat.is-active .pk-seat-name::before {
  content: ''; display: inline-block;
  width: 4px; height: 4px; margin-right: .4rem; vertical-align: middle;
  background: var(--accent);
}
/* The dealer button is a white disc with a D on it. Drawn as one. */
.pk-seat.is-dealer .pk-seat-name::after {
  content: 'D'; margin-left: .4rem;
  display: inline-block; width: 1.2em; height: 1.2em; line-height: 1.2em;
  text-align: center; font-size: .82em;
  color: var(--ground); background: var(--ink); border-radius: 50%;
}

/* The hero sits below the divider, outside the arena grid, so the board can
   fill the whole middle. Its info reads as one line — You / stack / bet —
   with clearance below for the showdown card lift. */
.pk-seat--hero {
  flex-direction: column; justify-content: center; align-items: center;
  gap: .2rem; padding: 0 .8rem;
}
.pk-seat-info { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.pk-seat--hero .pk-seat-info {
  flex-direction: row; align-items: center; gap: .5rem;
  margin-bottom: .6rem;
}
.pk-seat-stack { font-size: var(--fs-meta); color: var(--ink); }
.pk-seat-sep { font-family: var(--mono); font-size: var(--fs-micro); color: var(--mid); opacity: .4; }
.pk-seat-profile {
  font-family: var(--mono); font-size: calc(var(--fs-micro) * .82);
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); opacity: .75; line-height: 1;
}
.pk-seat-profile:empty { display: none; }

/* Dollars: an outlined slot, always reserving its space so the seat never
   changes height between no-bet, bet and all-in equity. */
.pk-seat-bet {
  display: inline-flex; align-items: center; justify-content: center;
  height: 18px; min-width: 2.6em; padding: 0 .4rem;
  box-sizing: border-box; line-height: 1; text-align: center;
  font-size: var(--fs-micro); letter-spacing: -.01em;
  color: var(--accent-lift);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.pk-seat-bet.is-empty { visibility: hidden; }
/* All in. The game has toggled this class all along with nothing listening;
   a committed stack should say so. */
.pk-seat.is-allin .pk-seat-stack::after {
  content: ' all in'; color: var(--accent); letter-spacing: .015em;
}
/* Percentages, not dollars — so it inverts, flatly. */
.pk-seat-bet.is-equity {
  background: var(--accent); border-color: var(--accent);
  color: var(--ground);
}

.pk-seat-cards { display: flex; gap: 4px; align-items: center; justify-content: center; }
/* Both slots reserve their tallest state: the hero's full-size cards, and
   the opponents' showdown size (50px) even while showing 32px backs. */
.pk-seat--hero .pk-seat-cards { min-height: 84px; }
.pk-seat:not(.pk-seat--hero) .pk-seat-cards { height: 50px; }

.pk-seat:not(.pk-seat--hero) .pk-seat-cards .bj-card {
  width: 22px; height: 32px; border-radius: 3px;
  transition: width var(--t-slow) ease, height var(--t-slow) ease;
}
.pk-seat:not(.pk-seat--hero) .pk-seat-cards .bj-card-rank   { font-size: .46rem; top: 1px; left: 2px; }
.pk-seat:not(.pk-seat--hero) .pk-seat-cards .bj-card-center { font-size: .62rem; bottom: 1px; right: 2px; }

.pk-seat.is-showing:not(.pk-seat--hero) .pk-seat-cards .bj-card {
  width: 36px; height: 50px; border-radius: 4px;
}
.pk-seat.is-showing:not(.pk-seat--hero) .pk-seat-cards .bj-card-rank   { font-size: .66rem; top: 2px; left: 3px; }
.pk-seat.is-showing:not(.pk-seat--hero) .pk-seat-cards .bj-card-center { font-size: .92rem; bottom: 2px; right: 3px; }

.pk-seat--hero .pk-seat-cards .bj-card { width: 60px; height: 84px; }

/* ---- board ---- */
.pk-board {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .7rem; padding: .3rem .2rem; overflow: hidden; min-height: 0;
}
.pk-pot-display { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.pk-pot-value { font-size: var(--fs-meta); color: var(--accent-lift); }

.pk-community { display: flex; gap: 4px; justify-content: center; flex-wrap: nowrap; }
.pk-community .bj-card { width: 50px; height: 70px; }
.pk-community .bj-card-rank   { font-size: .88rem; top: 3px; left: 5px; }
.pk-community .bj-card-center { font-size: 1.3rem; bottom: 4px; right: 5px; }

/* Locked to one line, with clearance below: at showdown the community cards
   lift ~11px and would otherwise clip into it. */
.pk-message {
  width: 100%; text-align: center;
  font-size: var(--fs-micro); color: var(--mid);
  height: 1.2em; line-height: 1.2; letter-spacing: .015em;
  margin: 0 0 .6rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color var(--t-slow) ease;
}

/* ---- hero row: actions left, cards centre, right column reserved.
        min-height is sized for the raise widget open, so opening it never
        reflows the table. ---- */
.pk-hero-row {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 1.4rem;
  min-height: 124px; width: 100%;
}
.pk-hero-actions {
  display: flex; flex-direction: column; align-items: stretch; justify-content: center;
  gap: 5px; width: 130px; justify-self: start;
}
.pk-hero-center {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .25rem; justify-self: center;
  transition: opacity var(--t-slow) ease;
}
.pk-hero-empty { width: 130px; justify-self: end; }

.pk-hero-actions .bj-btn {
  width: 100%; min-width: 0;
  padding: .42rem .6rem; font-size: var(--fs-micro);
}

/* ---- raise widget ---- */
.pk-raise-chips { display: flex; gap: 4px; }
.pk-raise-chips[hidden], .pk-raise-commit[hidden] { display: none; }
.pk-hero-actions .pk-raise-chip {
  flex: 1; padding: .2rem 0; text-align: center;
  font-size: calc(var(--fs-micro) * .92);
}
.pk-raise-commit { display: flex; gap: 4px; }
.pk-hero-actions .pk-raise-x {
  width: 1.9rem; min-width: 0; flex: none; padding: .42rem 0; text-align: center;
}
.pk-hero-actions .pk-raise-confirm { flex: 1; }
/* The widget needs more lateral room than the plain action stack. */
.pk-hero-actions.is-raising { width: 172px; }

/* The only range input on the page. It inherited these values from the
   figure-control slider, which is now deleted along with the steering dial it
   was built for. */
.pk-raise-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 1.25rem;
  background: transparent; cursor: pointer;
}
.pk-raise-slider::-webkit-slider-runnable-track { height: 1px; background: var(--line-strong); }
.pk-raise-slider::-moz-range-track { height: 1px; background: var(--line-strong); }
.pk-raise-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 11px; height: 11px; margin-top: -5px;
  border: 0; border-radius: 50%; background: var(--accent);
}
.pk-raise-slider::-moz-range-thumb {
  width: 11px; height: 11px; border: 0; border-radius: 50%; background: var(--accent);
}
.pk-raise-slider:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.pk-raise-slider:disabled { opacity: .35; cursor: not-allowed; }

/* ---- showdown ---- */
/* `forwards` holds the lifted state: the render loop repaints continuously
   and would otherwise reset the transform every frame. */
@keyframes pk-card-pop-up {
  from { transform: none; }
  to   { transform: translateY(-11px); }
}
.pk-card--best { animation: pk-card-pop-up var(--t-slow) var(--ease) forwards; }
/* Not part of the best hand. The lift on .pk-card--best already says which
   cards count, so this only needs to recede — at .32 a light card turned
   muddy grey and its red suits went brown, which read as a rendering fault
   rather than de-emphasis. */
.pk-card--dim { opacity: .55; filter: saturate(.25); }
.pk-seat.is-loser .pk-seat-info,
.pk-seat.is-loser .pk-seat-bet { opacity: .45; }

/* ---- timer ring: the honest turn indicator. Depletion is driven by
        stroke-dashoffset from the game's own loop. ---- */
.pk-timer-ring {
  position: absolute; top: -5px; right: 2px;
  width: 26px; height: 26px; pointer-events: none; z-index: 4;
}
/* Not on the hero. The bots act against a real clock (poker.js gives them a
   durationMs); the hero has unlimited time, and for it poker.js falls back to
   an "unbounded sweep at 8s period — pure ambient motion". A ring that
   depletes forever and never expires is a spinner pretending to be a timer,
   which is precisely principle 1. The hero seat also spans the full table
   width, so the ring landed at the far right edge, nowhere near "You". */
.pk-seat--hero .pk-timer-ring { display: none; }
.pk-timer-ring[hidden] { display: none; }
.pk-timer-bg  { fill: none; stroke: var(--line); stroke-width: 2.4; }
.pk-timer-arc {
  fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round;
  transition: stroke var(--t-mid) ease;
}

/* ---- games, narrow. Ported from the old stylesheet's 600px block: every
        card size, card slot and grid row here was tuned to keep the tables
        from reflowing on a phone, so the geometry carries over intact and
        only the type and colour tokens change. ---- */
@media (max-width: 600px) {
  .bj-table, .pk-table { max-width: 100%; }
  .bj-table { padding: 1.4rem 1rem; }
  .pk-table { padding: 1.1rem .7rem; }

  .bj-rules { gap: .4rem; }

  .bj-card { width: 54px; height: 76px; }
  .bj-card-rank   { font-size: .95rem; }
  .bj-card-center { font-size: 1.4rem; }

  /* actions share the row evenly rather than each holding a 5rem minimum */
  .bj-btn { flex: 1 1 0; min-width: 0; padding: .5rem .5rem; font-size: var(--fs-micro); }
  .bj-bank-row { gap: 1.25rem; }
  .bj-bet-row { flex-wrap: nowrap; gap: .35rem; }
  .bj-bet-label { display: none; }
  .bj-chip {
    flex: 1 1 0; min-width: 0; padding: .3rem .25rem; text-align: center;
    font-size: calc(var(--fs-micro) * .92);
  }

  .pk-arena { grid-template-rows: auto minmax(110px, 1fr); gap: .9rem .2rem; }
  .pk-seat { padding: .15rem; gap: .2rem; }

  .pk-seat:not(.pk-seat--hero) .pk-seat-cards { height: 42px; }
  .pk-seat:not(.pk-seat--hero) .pk-seat-cards .bj-card { width: 18px; height: 26px; border-radius: 2px; }
  .pk-seat:not(.pk-seat--hero) .pk-seat-cards .bj-card-rank   { font-size: .42rem; top: 1px; left: 2px; }
  .pk-seat:not(.pk-seat--hero) .pk-seat-cards .bj-card-center { font-size: .58rem; bottom: 1px; right: 2px; }

  .pk-seat.is-showing:not(.pk-seat--hero) .pk-seat-cards .bj-card { width: 30px; height: 42px; border-radius: 3px; }
  .pk-seat.is-showing:not(.pk-seat--hero) .pk-seat-cards .bj-card-rank   { font-size: .56rem; top: 1px; left: 2px; }
  .pk-seat.is-showing:not(.pk-seat--hero) .pk-seat-cards .bj-card-center { font-size: .8rem; bottom: 2px; right: 3px; }

  .pk-seat--hero .pk-seat-cards { min-height: 70px; }
  .pk-seat--hero .pk-seat-cards .bj-card { width: 50px; height: 70px; }

  .pk-seat-name  { font-size: calc(var(--fs-micro) * .82); }
  .pk-seat-stack { font-size: var(--fs-micro); }
  .pk-seat-bet   { font-size: calc(var(--fs-micro) * .82); min-width: 2.2em; }

  .pk-community .bj-card { width: 38px; height: 54px; }
  .pk-community .bj-card-rank   { font-size: .72rem; }
  .pk-community .bj-card-center { font-size: 1rem; }

  /* No room for the reserved right column: collapse to actions | cards. */
  .pk-hero-row { grid-template-columns: auto auto; justify-content: center; gap: .6rem; min-height: 130px; }
  .pk-hero-actions, .pk-hero-actions.is-raising { width: 100px; justify-self: start; }
  .pk-hero-empty { display: none; }
  /* The quick-bet presets crowd a 100px column; the slider and the
     cancel/confirm row are what fit. */
  .pk-raise-chips { display: none; }
  .pk-hero-actions .pk-raise-x { width: 24px; }

  /* the ring is a badge on a seat, and a mobile seat is much smaller */
  .pk-timer-ring { width: 20px; height: 20px; top: -4px; right: 0; }

  .game-switcher { width: 100%; max-width: 17rem; }
  .game-tab { padding: .5rem .4rem; font-size: var(--fs-micro); }
}

