/* ═══════════════════════════════════════════════════════════════════
   KG REVAMP — batch #228 (Oct 31, 2026): Karma's Gambit comfort layer.
   The LAST stylesheet in cards.html's head cascade: everything here is a
   deliberate finishing layer over the inline blocks + tavern-craft /
   game-readability / nox-vire / kg-ux-feedback / kg-tooltips. Seasonal
   skins (seasonal.css, injected later, html.<season> specificity) still
   win in season. Presentation only — no mechanics, no economy, no rules.

   WHAT LIVES HERE
   1. The #227 scale tokens (styles.css Rev 23). cards.html does not load
      styles.css, so the game carries its own copy of the scale: --fs-*,
      --sp-*, --r-lg, --ring. New KG CSS should spend these, not literals.
   2. The Oct 17 OVERHAUL bout-finish block, MOVED verbatim from the
      inline <style> block 1 (batch #228 consolidation; same cascade
      outcome — this sheet loads after the block it left).
   3. Workstream layers: WS1 bout comfort, WS2 lobby integration,
      WS3 deck-builder workbench, WS4 the resolved button system.

   THE BUTTON SYSTEM (WS4, resolved here — one family, four roles):
     .btn        base: touch geometry (min-height 50px, Cinzel caps) —
                 a deliberate divergence from the site .btn (a link-first
                 pill); game buttons are pressed with thumbs mid-bout.
     .btn-gold   PRIMARY (the action you came for: Ring the Bell, Descend)
     .btn-blood  DANGER/COMMIT (Distill, forfeit-class actions)
     .btn-ghost  SECONDARY (everything else)
     .btn-block  LAYOUT MODIFIER (full-width), not a variant.
   Faces (grain/wood/ember) live in tavern-craft.css and are untouched;
   the inline variants remain as load-order fallback. This sheet unifies
   radius + states + transitions so the family behaves as one system.

   THE THEME TOKENS (verified batch #228): the 15 scoped --gold
   redefinitions in cards.html are (a) the canonical :root and (b) 14
   :root[data-theme="…"] palettes — ember, gold, crimson, violet, bone,
   verdant, drowned, gloaming, eclipse, emberdeep, frostmere, mosslight,
   ashfall, cellarnoir. Those ARE the game's named theme tokens (the
   equippable Table Style themes); every one is deliberate. Do not
   "converge" them — a theme that cannot move --gold is not a theme.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --fs-xs: .78rem; --fs-sm: .88rem; --fs-base: 1rem; --fs-md: 1.13rem;
  --fs-lg: 1.35rem; --fs-xl: 1.7rem; --fs-2xl: 2.2rem;
  --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4.5rem;
  --r-lg: 14px; --ring: #e8c35a;
}

/* ── 2. MOVED VERBATIM (Oct 17 2026 OVERHAUL: bout finish) ────────── */
#kg-bout:not(.hidden) { animation: kgPhaseIn .55s cubic-bezier(.22,1,.36,1) both; }
#playerHand .hand-card:not(.unplayable) { box-shadow: 0 0 0 1px rgba(255,191,0,.32), 0 8px 20px rgba(0,0,0,.55); }
#playerHand .hand-card:not(.unplayable):hover { box-shadow: 0 0 0 1px rgba(255,215,106,.75), 0 14px 28px rgba(0,0,0,.6), 0 0 22px rgba(255,191,0,.3); }
#playerHand .hand-card.unplayable { box-shadow: 0 6px 16px rgba(0,0,0,.5); }
.bill-slip { background: linear-gradient(170deg, #1d1508, #0d0903); box-shadow: 0 8px 20px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,226,160,.12); }
.bill-slip.foe { border-color: rgba(150,110,255,.45); background: linear-gradient(170deg, #171126, #0a0716); }
.bill-head b { color: #ffe9a8; text-shadow: 0 0 12px rgba(255,191,0,.35); }
.bill-slip.foe .bill-head b { color: #cfc0ff; text-shadow: 0 0 12px rgba(150,110,255,.4); }
.stranger-figure .stranger-portrait { border-radius: 12px; border: 1px solid rgba(201,162,39,.55); box-shadow: 0 6px 18px rgba(0,0,0,.6), 0 0 22px rgba(122,92,255,.3); }
.lane { transition: box-shadow .25s ease, background-color .25s ease, border-color .25s ease; }
.speech { box-shadow: 0 10px 26px rgba(0,0,0,.5); }
@media (prefers-reduced-motion: reduce) { #kg-bout:not(.hidden) { animation: none; } }

/* ── WS1 · BOUT COMFORT ─────────────────────────────────────────────
   The table as a place: the bout already wears the playmat art and a
   vignette + wood rail (inline). This layer adds the room's light: a
   warm seam where the two mats meet, the far side sitting back in
   shadow (present, quieter), and a candle-line along the bout's top
   rim. Opponent dimming rides a ::before shade on the opp half only —
   playmat art (background on .mat-half itself) is untouched. */
#kg-bout {
  box-shadow: inset 0 0 120px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,220,150,0.10), 0 12px 44px rgba(0,0,0,0.55);
}
.mat-half.opp::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(3,2,6,0.40), rgba(3,2,6,0.12) 58%, rgba(3,2,6,0) 100%);
}
.mat-half.you { box-shadow: inset 0 1px 0 rgba(255,214,130,0.14); }

/* Calmer premium-mat embers: same drift, half the travel, slower —
   ambiance should breathe, not compete with a decision. */
.mat-half.premium::after { animation-duration: 14s; }

/* Resources in one glanceable row on wide stages (the 7 HUD boxes
   wrapped 4+3 under the base 4-column grid). */
@media (min-width: 1200px) {
  .hud { grid-template-columns: repeat(7, 1fr); }
}

/* The hand sits in a tray: a shallow felt well with a candle-line top,
   so the row reads as furniture, not cards floating over the mat.
   Geometry (padding/min-height) is the inline rule's — untouched. */
.hand {
  background: linear-gradient(180deg, rgba(0,0,0,0.16), rgba(0,0,0,0.32));
  border: 1px solid rgba(201,162,39,0.16); border-radius: var(--r-lg);
  box-shadow: inset 0 1px 0 rgba(255,220,150,0.07), inset 0 -18px 28px rgba(0,0,0,0.35);
  scrollbar-width: thin;
}

/* Turn state at a glance: the pill already says whose turn and what to
   do (syncTurnPill). Give YOUR turn the candle-glow it deserves; the
   foe pill stays quiet by design. */
.turn-pill { font-size: var(--fs-base); }
.turn-pill.your { box-shadow: 0 0 22px rgba(255,191,0,0.28), inset 0 1px 0 rgba(255,240,200,0.25); }

/* ── WS2 · LOBBY + GATE INTEGRATION ─────────────────────────────────
   The #220/#225 growth panels (Today at the Tavern, the chase, claim
   rows, the event banner) were styled as 860px guests inside a
   full-width lobby. Same panel voice as the lobby's own rooms, at a
   lobby width — integrated, not stacked strangers. kgx rules are
   single-class; these context selectors outrank them in the mounts
   that live on this page only (the shop's claim mount is untouched). */
#kg-growth-lobby .kgx-panel, #kg-growth-lobby .kgx-banner,
#kg-growth-gate .kgx-panel, #kg-growth-gate .kgx-banner {
  max-width: 1100px; border-color: rgba(201,162,39,0.35); border-radius: var(--r-lg);
}
#kg-growth-gate .kgx-strip { max-width: 1100px; margin-inline: auto; }

/* Choose Your Table is the lobby's reason to exist — title at the
   section-hero step of the scale. */
.play-menu-title { font-size: var(--fs-lg); }

/* Large lobby panels take the panel radius law (#227: --r-lg). */
#kg-lobby .deck-room, #kg-lobby .custom-room { border-radius: var(--r-lg); }

/* ── WS3 · DECK BUILDER AS WORKBENCH ────────────────────────────────
   In the fullscreen stage the lobby scrolls internally: pin the deck
   bar (count, legality range, Descend) to its top so building a
   40-card deck never loses the count or the way out. Near-solid ground
   so archive tiles slide beneath it, not through it. */
.kg-container:is(:fullscreen, :-webkit-full-screen, .kg-fakefs) #kg-lobby .deck-bar {
  position: sticky; top: var(--sp-2); z-index: 6;
  background: rgba(10,7,14,0.96); box-shadow: 0 10px 26px rgba(0,0,0,0.5);
}
/* Search is the primary browsing tool — it gets the row's first claim
   on space; the selects keep their natural size beside it. */
#fltSearch { flex: 1 1 230px; }
/* The filter row becomes a toolbar panel (lobby flow only — it is not
   part of the fitted fullscreen arithmetic). */
#kg-lobby .filter-bar {
  background: rgba(0,0,0,0.3); border: 1px solid rgba(201,162,39,0.18);
  border-radius: var(--r-lg); padding: var(--sp-3);
}

/* ── WS4 · THE BUTTON SYSTEM, RESOLVED ──────────────────────────────
   Radius joins the system (--r, the site's button corner); states and
   transitions are stated once, for the whole family. Faces stay in
   tavern-craft.css; geometry stays in the inline base (touch law). */
.btn { border-radius: var(--r); }
.btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.btn-gold, .btn-blood, .btn-ghost {
  transition: transform var(--ease-fast), box-shadow var(--ease-fast),
    filter var(--ease-fast), background-color var(--ease-fast),
    border-color var(--ease-fast), color var(--ease-fast);
}

/* ════════════════════════════════════════════════════════════════════
   #252 — FEEL, BOUT-FIRST (Oct 30, 2026)
   Brody's verdict on #227/#228: tokens moved, the bout didn't. This
   section is the bout itself: a faced opponent on a framed plate, a
   table with light and depth, cards that sit ON it, a hand that fans,
   and a dealer whose plays ARRIVE. Motion law (A16): transform /
   opacity / filter only — no layout properties are ever animated.
   ════════════════════════════════════════════════════════════════════ */

/* ── the table is a place: candle warmth pooled at the edges ── */
#kg-bout::before {
  content: ''; position: absolute; inset: 0; border-radius: 12px;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(430px 260px at 5% -4%, rgba(255,166,66,0.14), transparent 70%),
    radial-gradient(430px 260px at 95% -4%, rgba(255,166,66,0.11), transparent 70%),
    radial-gradient(640px 300px at 50% 110%, rgba(255,140,50,0.06), transparent 70%);
}

/* ── THE PLATE: a faced dealer hangs in a tavern frame ── */
.stranger-figure.dealer-face {
  width: 138px; height: 142px; border-radius: 12px;
  background: linear-gradient(165deg, #3a2413 0%, #241708 55%, #170d05 100%);
  border: 1px solid rgba(201,162,39,0.38);
  box-shadow: 0 16px 32px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,220,150,0.16),
    inset 0 -8px 16px rgba(0,0,0,0.5);
}
.stranger-figure.dealer-face .stranger-portrait {
  left: 0; right: 0; top: 6px; margin: 0 auto;
  width: 124px; height: 124px; object-fit: cover; border-radius: 7px;
  border: 2px solid rgba(10,6,2,0.9);
  box-shadow: inset 0 0 0 2px rgba(201,162,39,0.45), 0 8px 18px rgba(0,0,0,0.55);
  transition: filter 0.45s ease;
}
.stranger-title {
  font-family: var(--font-display); font-size: var(--fs-sm);
  color: var(--gold); opacity: 0.88; letter-spacing: 0.05em;
  text-align: center; margin-top: 1px;
}
.stranger-title:empty { display: none; }

/* his Tab, chalked on a slate that hangs on his plate */
.plate-tab {
  display: inline-flex; align-items: baseline; gap: 4px; margin-top: 6px;
  padding: 3px 11px 4px; border-radius: 5px;
  background: linear-gradient(168deg, #262c2e, #14181a 72%);
  border: 2px solid #3a2a16;
  box-shadow: inset 0 0 14px rgba(0,0,0,0.7), 0 4px 10px rgba(0,0,0,0.5);
  color: #aeb8ae; font-family: var(--font-display);
  font-size: var(--fs-xs); letter-spacing: 0.14em;
}
.plate-tab b { color: #f5f2e2; font-size: var(--fs-base); letter-spacing: 0.02em; }
.plate-tab .plate-tab-lim { opacity: 0.55; letter-spacing: 0.02em; }
.plate-tab.cutoff { border-color: var(--blood); color: #ffb3a3; }
.plate-tab.cutoff b { color: #ffd9cf; }

/* the foe's bill-slip is the same slate, down on the table */
#billFoe {
  background: linear-gradient(168deg, #262c2e, #14181a 72%);
  border: 2px solid #3a2a16;
  box-shadow: inset 0 0 18px rgba(0,0,0,0.7), 0 8px 18px rgba(0,0,0,0.45);
}
#billFoe .bill-total { color: #f5f2e2; text-shadow: 0 0 8px rgba(255,255,255,0.22); }

/* ── reactions: the talkhead wobble owns the figure's transform, so
      every reaction lives on the portrait (transform/filter) ── */
@keyframes kgNpcFlinch {
  0% { transform: translateX(0); } 18% { transform: translateX(-7px) rotate(-1.3deg); }
  42% { transform: translateX(5px) rotate(0.8deg); } 64% { transform: translateX(-3px); }
  100% { transform: translateX(0); }
}
.stranger-figure.npc-flinch .stranger-portrait {
  animation: kgNpcFlinch 0.5s ease-out; filter: brightness(1.28) saturate(1.12);
}
@keyframes kgNpcStir {
  0% { transform: scale(1); } 35% { transform: scale(1.05); } 100% { transform: scale(1); }
}
.stranger-figure.npc-stir .stranger-portrait {
  animation: kgNpcStir 1.1s ease-in-out; filter: brightness(1.14);
}
.stranger-figure.npc-defeated .stranger-portrait {
  filter: grayscale(0.78) brightness(0.58) contrast(0.96);
  transform: translateY(3px);
  transition: filter 0.9s ease, transform 0.9s ease;
}
.stranger-figure.npc-triumphant { box-shadow: 0 16px 32px rgba(0,0,0,0.6), 0 0 26px rgba(201,162,39,0.4), inset 0 1px 0 rgba(255,220,150,0.2); }
.stranger-figure.npc-triumphant .stranger-portrait { filter: brightness(1.16) saturate(1.14); }

/* ── lanes are felt wells now, not dashed boxes ── */
.board .lane {
  border: 1px solid rgba(0,0,0,0.62); border-radius: 12px;
  background:
    radial-gradient(ellipse 130% 95% at 50% 0%, rgba(150,102,48,0.20), rgba(0,0,0,0) 56%),
    linear-gradient(180deg, rgba(34,23,13,0.6), rgba(13,9,5,0.68));
  box-shadow: inset 0 3px 12px rgba(0,0,0,0.78), inset 0 -1px 0 rgba(255,215,140,0.07),
    0 1px 0 rgba(255,215,140,0.05);
}

/* ── board cards SIT on the table: shadow + a hand-laid tilt ── */
.bcreature canvas {
  box-shadow: 0 12px 20px rgba(0,0,0,0.55), 0 3px 6px rgba(0,0,0,0.5);
}
#dealerBoard .lane:nth-child(odd) .bcreature { rotate: -0.7deg; }
#dealerBoard .lane:nth-child(even) .bcreature { rotate: 0.6deg; }
#playerBoard .lane:nth-child(odd) .bcreature { rotate: 0.55deg; }
#playerBoard .lane:nth-child(even) .bcreature { rotate: -0.5deg; }
/* his cards start hidden and ARRIVE with their animation job (#252) */
#dealerBoard .bcreature { transition: opacity 0.3s ease; }
.bcreature.kg-incoming { opacity: 0; }

/* damage numbers carry weight */
.dmg-num { text-shadow: 0 2px 0 rgba(0,0,0,0.85), 0 0 14px rgba(255,90,60,0.35); }

/* ── desktop: bout cards at a size a person can read ── */
@media (min-width: 1150px) {
  .bcreature { width: 164px; }
  .board .lane { min-height: 216px; }
}

/* ── the hand fans ── */
.hand { padding-top: 16px; }
.hand-card {
  transform-origin: 50% 130%;
  rotate: var(--fanR, 0deg);
  transition: transform var(--ease-fast), border-color var(--ease-fast),
    box-shadow var(--ease-fast), rotate 0.18s ease;
}
.hand-card:hover, .hand-card.selected { rotate: 0deg; }

/* ── turn pill: his move is unmistakable too ── */
.turn-pill.foe {
  background: linear-gradient(180deg, rgba(43,34,64,0.94), rgba(24,19,38,0.94));
  border-color: rgba(150,128,205,0.45); color: #c4b8e6;
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);
}

/* ── the Tide reads at a glance ── */
.hud-box.tide[data-tide="drift"] .val { color: #a8c8e8; }
.hud-box.tide[data-tide="pull"] .val { color: #c9a2ff; }
.hud-box.tide[data-tide="crush"] .val { color: #ff9d7a; }
.hud-box.tide[data-tide="slack"] .val { color: var(--mist); }

/* ── small screens: the plate still fits the table ── */
@media (max-width: 480px) {
  .stranger-figure.dealer-face { width: 118px; height: 122px; }
  .stranger-figure.dealer-face .stranger-portrait { width: 104px; height: 104px; }
}

/* #252 (late add, from the 360px capture): outside the fullscreen stage,
 * a five-across grid crushes bout cards to thumbnails at phone width.
 * The lanes become a scroll-snap row — each card at a readable 134px,
 * lanes 4–5 a swipe away. Fullscreen keeps its fitted grid untouched
 * (the :not gates see to that). */
@media (max-width: 760px) {
  .kg-container:not(:fullscreen):not(:-webkit-full-screen):not(.kg-fakefs) .board {
    display: flex; overflow-x: auto; scroll-snap-type: x proximity;
    padding-bottom: 6px;
  }
  .kg-container:not(:fullscreen):not(:-webkit-full-screen):not(.kg-fakefs) .board .lane {
    flex: 0 0 150px; min-height: 200px; scroll-snap-align: center;
  }
  .kg-container:not(:fullscreen):not(:-webkit-full-screen):not(.kg-fakefs) .board .bcreature {
    width: 134px;
  }
}

/* ════════════════════════════════════════════════════════════════════
   #260 — THE STAGE GRID (Nov 1, 2026)
   Brody, fullscreen at 1920x1080: "full screen still pinches the field
   and looks ugly and tiny." Measured from his screenshot: hand cards
   86x117px, board lanes ~35-55px tall, the faced dealer's plate crushed
   to ~40px, the HUD wrapped to two rows. The flex "fit" arithmetic
   (Oct 10 + Oct 13 programs) starves the mat because the stacked chrome
   (dealer zone + bill slips + 2-row HUD + opp-hand row + two trap rows
   + two side labels + 84px log) eats the stage before the boards see a
   pixel, and the model constants drifted from the shipped chrome.

   The fix is composition, not more arithmetic. Inside fullscreen on a
   real stage (min-width 1100px AND min-height 701px — the same gate as
   the tall-stage blocks; the short-height fold program and the phone
   scroll-snap lanes live below 701px and are untouched), #kg-bout
   becomes a GRID:
     - the battle log leaves the stack and becomes a full-height right
       rail (it was a designed scroller all along);
     - the two bill slips ride the dealer row's right end instead of
       owning a full-width row of their own;
     - the HUD is one flex row however many boxes the game adds (the
       Karma Scale box made the 7-col grid wrap to two rows);
     - inside .mat-main (also a grid) the two boards own the rows while
       the trap rows and his face-down hand ride the boards' edges —
       the fold program's own proven trick (#27/#28), promoted to the
       big stage;
     - the hand row is a viewport clamp; the mat row is 1fr, so every
       extra pixel of screen height lands in the field, and board
       creatures (height-driven) scale with it.
   Pure CSS: no transforms (the combat-arrow SVG is viewport-fixed and
   feeds on client rects — a scaled ancestor would mispoint it), no JS,
   no DOM moves. Specificity: FS + #kg-bout (1,3,0) outranks the core
   FS rules (0,3,0) and this sheet's own earlier layers.
   ════════════════════════════════════════════════════════════════════ */
@media (min-width: 1100px) and (min-height: 701px) {
  .kg-container:is(:fullscreen, :-webkit-full-screen, .kg-fakefs) #kg-bout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    grid-template-rows: auto auto minmax(0, 1fr) auto clamp(180px, 23vh, 250px) auto;
    column-gap: 10px; row-gap: 6px;
  }
  .kg-container:is(:fullscreen, :-webkit-full-screen, .kg-fakefs) #kg-bout > * { min-width: 0; }

  /* ── row 1: the dealer, faced — plate restored, name/title/Tab beside it ── */
  .kg-container:is(:fullscreen, :-webkit-full-screen, .kg-fakefs) #kg-bout .stranger-zone {
    grid-area: 1 / 1; margin: 2px 0; padding: 8px 292px 8px 12px; align-items: center;
  }
  .kg-container:is(:fullscreen, :-webkit-full-screen, .kg-fakefs) #kg-bout .stranger-fig-wrap {
    display: grid; grid-template-columns: 104px minmax(0, auto);
    column-gap: 10px; align-items: center; flex: 0 0 auto;
  }
  .kg-container:is(:fullscreen, :-webkit-full-screen, .kg-fakefs) #kg-bout .stranger-fig-wrap .stranger-figure {
    grid-row: 1 / 5; width: 104px; height: 108px; margin: 0;
  }
  .kg-container:is(:fullscreen, :-webkit-full-screen, .kg-fakefs) #kg-bout .stranger-figure .stranger-portrait {
    width: 92px; height: 92px; top: 6px;
  }
  .kg-container:is(:fullscreen, :-webkit-full-screen, .kg-fakefs) #kg-bout .stranger-name {
    display: block; font-size: .82rem; margin-top: 0;
  }
  .kg-container:is(:fullscreen, :-webkit-full-screen, .kg-fakefs) #kg-bout .speech { font-size: .98rem; }

  /* ── the bill slips ride the dealer row's right end ── */
  .kg-container:is(:fullscreen, :-webkit-full-screen, .kg-fakefs) #kg-bout .tab-wrap {
    grid-area: 1 / 1; justify-self: end; align-self: start;
    flex-direction: column; gap: 4px; width: 276px; max-width: 276px; margin: 2px 0 0;
  }
  .kg-container:is(:fullscreen, :-webkit-full-screen, .kg-fakefs) #kg-bout .bill-slip { padding: 5px 10px; }
  .kg-container:is(:fullscreen, :-webkit-full-screen, .kg-fakefs) #kg-bout .bill-head {
    font-size: .8rem; padding-bottom: 1px; margin-bottom: 1px;
  }
  .kg-container:is(:fullscreen, :-webkit-full-screen, .kg-fakefs) #kg-bout .bill-items {
    max-height: 18px; font-size: .85rem;
  }

  /* ── row 2: one HUD row, whatever the box count ── */
  .kg-container:is(:fullscreen, :-webkit-full-screen, .kg-fakefs) #kg-bout .hud {
    grid-area: 2 / 1; display: flex; gap: 6px; margin: 2px 0;
  }
  .kg-container:is(:fullscreen, :-webkit-full-screen, .kg-fakefs) #kg-bout .hud-box {
    flex: 1 1 0; min-width: 0; padding: 6px 4px;
  }
  .kg-container:is(:fullscreen, :-webkit-full-screen, .kg-fakefs) #kg-bout .hud-box .lbl { font-size: .78rem; }
  .kg-container:is(:fullscreen, :-webkit-full-screen, .kg-fakefs) #kg-bout .hud-box .val { font-size: 1.18rem; }

  /* ── row 3: the mat — boards own the rows, traps + his hand ride the edges ── */
  .kg-container:is(:fullscreen, :-webkit-full-screen, .kg-fakefs) #kg-bout .mat-row {
    grid-area: 3 / 1; margin: 0; min-height: 0; min-width: 0;
  }
  .kg-container:is(:fullscreen, :-webkit-full-screen, .kg-fakefs) #kg-bout .mat-main {
    display: grid; grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto minmax(0, 1fr);
    row-gap: 4px; min-height: 0; min-width: 0;
  }
  .kg-container:is(:fullscreen, :-webkit-full-screen, .kg-fakefs) #kg-bout .board-side-label {
    margin: 0; font-size: .95rem; min-width: 0;
  }
  .kg-container:is(:fullscreen, :-webkit-full-screen, .kg-fakefs) #kg-bout #dealerBoard {
    grid-area: 2 / 1; margin: 0; min-height: 0; min-width: 0;
  }
  .kg-container:is(:fullscreen, :-webkit-full-screen, .kg-fakefs) #kg-bout #playerBoard {
    grid-area: 4 / 1; margin: 0; min-height: 0; min-width: 0;
  }
  .kg-container:is(:fullscreen, :-webkit-full-screen, .kg-fakefs) #kg-bout #dealerTraps {
    grid-area: 2 / 1; align-self: start; justify-self: end;
    position: relative; z-index: 4; margin: 6px 8px 0 0; min-height: 0;
  }
  .kg-container:is(:fullscreen, :-webkit-full-screen, .kg-fakefs) #kg-bout #playerTraps {
    grid-area: 4 / 1; align-self: end; justify-self: end;
    position: relative; z-index: 4; margin: 0 8px 6px 0; min-height: 0;
  }
  .kg-container:is(:fullscreen, :-webkit-full-screen, .kg-fakefs) #kg-bout .opp-hand {
    grid-area: 2 / 1; align-self: start; justify-self: center;
    position: relative; z-index: 3; margin: 4px 0 0; padding: 0; min-height: 0;
  }
  .kg-container:is(:fullscreen, :-webkit-full-screen, .kg-fakefs) #kg-bout .opp-hand-card { height: 44px; width: auto; }
  .kg-container:is(:fullscreen, :-webkit-full-screen, .kg-fakefs) #kg-bout .trap-back { width: 30px; height: 42px; }
  .kg-container:is(:fullscreen, :-webkit-full-screen, .kg-fakefs) #kg-bout #fieldAnnexHolder.annex-holder {
    width: 120px; height: 168px;
  }

  /* ── rows 4-6: hand label (+ mode note), the hand itself, actions ── */
  .kg-container:is(:fullscreen, :-webkit-full-screen, .kg-fakefs) #kg-bout .hand-label {
    grid-area: 4 / 1; margin: 2px 0; font-size: 1rem;
  }
  .kg-container:is(:fullscreen, :-webkit-full-screen, .kg-fakefs) #kg-bout .mode-note {
    grid-area: 4 / 1; justify-self: end; align-self: center;
    margin: 0; max-width: 46%; text-align: right;
  }
  .kg-container:is(:fullscreen, :-webkit-full-screen, .kg-fakefs) #kg-bout .hand {
    grid-area: 5 / 1; min-height: 0; height: 100%;
  }
  .kg-container:is(:fullscreen, :-webkit-full-screen, .kg-fakefs) #kg-bout .hand-card { width: auto; height: 100%; }
  .kg-container:is(:fullscreen, :-webkit-full-screen, .kg-fakefs) #kg-bout .hand-card canvas { width: auto; height: 100%; }
  .kg-container:is(:fullscreen, :-webkit-full-screen, .kg-fakefs) #kg-bout .turn-pill {
    grid-area: 5 / 1; justify-self: center; align-self: end;
    position: relative; z-index: 6; margin-bottom: -16px; pointer-events: none;
  }
  .kg-container:is(:fullscreen, :-webkit-full-screen, .kg-fakefs) #kg-bout .action-bar {
    grid-area: 6 / 1; margin-top: 2px;
  }

  /* ── overlays inside the mat row: combat banner + reassemble picker ── */
  .kg-container:is(:fullscreen, :-webkit-full-screen, .kg-fakefs) #kg-bout #combatBanner {
    grid-area: 3 / 1; align-self: end; justify-self: center;
    position: relative; z-index: 6; margin: 0 0 8px; max-width: min(680px, 92%);
  }
  .kg-container:is(:fullscreen, :-webkit-full-screen, .kg-fakefs) #kg-bout #reassemblePicker {
    grid-area: 3 / 1; align-self: start; justify-self: center;
    position: relative; z-index: 7; margin-top: 8px !important; max-width: min(680px, 92%);
  }

  /* ── the right rail: the battle log, full height, still a scroller ── */
  .kg-container:is(:fullscreen, :-webkit-full-screen, .kg-fakefs) #kg-bout .battle-log {
    grid-area: 1 / 2 / -1 / 3; align-self: stretch;
    max-height: none; margin: 0; font-size: .92rem;
  }
}

/* ── #260 refinement: shorter stages (701-860px tall) trade hand and
      plate height back to the boards ── */
@media (min-width: 1100px) and (min-height: 701px) and (max-height: 860px) {
  .kg-container:is(:fullscreen, :-webkit-full-screen, .kg-fakefs) #kg-bout {
    grid-template-rows: auto auto minmax(0, 1fr) auto clamp(158px, 22vh, 196px) auto;
  }
  .kg-container:is(:fullscreen, :-webkit-full-screen, .kg-fakefs) #kg-bout .stranger-zone { padding-right: 264px; }
  .kg-container:is(:fullscreen, :-webkit-full-screen, .kg-fakefs) #kg-bout .stranger-fig-wrap {
    grid-template-columns: 78px minmax(0, auto);
  }
  .kg-container:is(:fullscreen, :-webkit-full-screen, .kg-fakefs) #kg-bout .stranger-fig-wrap .stranger-figure {
    width: 78px; height: 82px;
  }
  .kg-container:is(:fullscreen, :-webkit-full-screen, .kg-fakefs) #kg-bout .stranger-figure .stranger-portrait {
    width: 66px; height: 66px;
  }
  .kg-container:is(:fullscreen, :-webkit-full-screen, .kg-fakefs) #kg-bout .tab-wrap { width: 252px; max-width: 252px; }
}

/* ── #260 refinement: narrower stages get a slimmer log rail ── */
@media (min-width: 1100px) and (max-width: 1300px) and (min-height: 701px) {
  .kg-container:is(:fullscreen, :-webkit-full-screen, .kg-fakefs) #kg-bout {
    grid-template-columns: minmax(0, 1fr) 208px;
  }
}

/* ── #266 — the Stranger's plate, lit ───────────────────────────────
   Browser-proven root cause: the practice dealer's plate art
   (campaign-xart/hooded-stranger.png) is a candle-lit painting with a
   measured mean luminance of 35.7/255 and only ~7% of its pixels
   above luminance 90 — shown at the plate's 92–124px under the bout's
   dark glass it read as an empty dark box, in fullscreen and normal
   view alike. The wiring was never broken. The stranger-plate hook
   (set by setStrangerPlate, cleared by clearDealerPortrait) lifts
   the Stranger's own portrait inside the frame and warms the frame
   with his candle's glow; campaign and seasonal portraits do not
   carry the hook and are untouched. #260's stage-grid plate sizes
   are NOT changed by this block. Measured: brightness(1.38) takes
   the art to mean luminance 48.9/255 with 15.3% of pixels above 90. */
.stranger-figure.dealer-face.stranger-plate {
  background:
    radial-gradient(120% 95% at 16% 88%, rgba(255, 150, 50, .38) 0%, rgba(255, 120, 30, .12) 46%, rgba(0, 0, 0, 0) 72%),
    linear-gradient(180deg, #2a1e38 0%, #120c1e 100%);
}
.stranger-figure.dealer-face.stranger-plate img.stranger-portrait {
  filter: brightness(1.38) saturate(1.07) contrast(1.04);
  object-position: 50% 20%;
}
/* The hood itself, strengthened here (this sheet loads after the core
   sheet, so it wins the tie): if a portrait ever fails to load, the
   plate still renders a lit hooded silhouette — a dome of cloth with
   a dark face pit and a candle-warm rim — never an empty black box. */
.stranger-figure .hood {
  background:
    radial-gradient(ellipse 34% 24% at 50% 42%, rgba(2, 1, 6, .94) 0%, rgba(2, 1, 6, 0) 72%),
    radial-gradient(ellipse 68% 54% at 50% 24%, #503f73 0%, #251b3d 56%, #0a0616 100%);
  box-shadow:
    inset 0 -16px 24px rgba(0, 0, 0, .55),
    inset 0 8px 14px rgba(255, 196, 96, .12);
}

/* ── #267 — the Stranger's plate, paint-locked ─────────────────────
   Second browser verification: the plate STILL read blank in a real
   browser while every harness passed. The full-page jsdom trace
   (real script order, real click path) proves the DOM end-state is
   correct — src set, hidden removed, dealer-face + stranger-plate
   on, 124×124 with the lift — so what remained was everything a vm
   cannot paint: the TalkHeads overlay the plate carried (fixed at
   the root in kg-talkheads.js: plates now ride static, no canvas,
   no wobble) and any cascade accident that could still mute the
   img. These rules lock the plate's paint directly: the portrait
   is a visible block above the figure's other children, and no
   TalkHeads canvas may cover it. #260's stage sizes are untouched. */
.stranger-figure.dealer-face.stranger-plate img.stranger-portrait {
  display: block; opacity: 1; visibility: visible; z-index: 2;
}
.stranger-figure.dealer-face.stranger-plate .th-canvas { display: none; }

/* The fold carve-out: DECISION-QUEUE #29's short-height fold
   compacts the stranger to a 20×24 speaking strip — a ruling from
   the hood-blob era, before the Stranger had a painted face. An
   18×18 portrait is not a face at any brightness. In the landscape
   501–700px band a FACED plate therefore floors at the core
   fullscreen fallback (44×52 figure / 44×44 portrait — the size
   fullscreen shipped with before the fold) instead of the strip.
   The hood state still compacts exactly as ruled, the ≤500px panic
   band is untouched, and #260's gate (≥1100×701) still wins by ID
   specificity wherever it applies. */
@media (orientation: landscape) and (min-height: 501px) and (max-height: 700px) {
  .kg-container:is(:fullscreen, :-webkit-full-screen, .kg-fakefs) .stranger-zone .stranger-figure.dealer-face {
    width: 44px; height: 52px;
  }
  .kg-container:is(:fullscreen, :-webkit-full-screen, .kg-fakefs) .stranger-zone .stranger-figure.dealer-face .stranger-portrait {
    width: 44px; height: 44px; top: 4px;
  }
}

/* ════════════════════════════════════════════════════════════════════
   #272 — THE PLAYING SURFACE (Nov 1, 2026; Brody: "the card game is
   still ugly to play")
   The face itself was rebuilt in cards-art.js (art window 29.6% →
   40.2% of the face, sigils off the painting's face, panel widened);
   cards.html lightened the mat wash so the equipped playmat reads as
   a place, and new hand cards finally flip in (.drawing). This layer
   is the table under the faces. PAINT AND MOTION ONLY: #260's stage
   grid geometry is settled law — nothing here sizes or positions a
   grid box; #267's plate rules are untouched; playmat painting
   (#264) untouched. Motion law (A16): transform / opacity only.
   ════════════════════════════════════════════════════════════════════ */

/* ── lanes: the felt well gains a gold rim ring, and the two sides
      dress differently — his wells sit in violet dusk, yours in
      firelight. Backgrounds replace #252's shared well paint
      layer-for-layer; geometry is not touched. ── */
.board .lane {
  box-shadow: inset 0 3px 12px rgba(0,0,0,0.78), inset 0 -1px 0 rgba(255,215,140,0.10),
    0 1px 0 rgba(255,215,140,0.05), inset 0 0 0 1px rgba(201,162,39,0.20);
}
#dealerBoard .lane {
  background:
    radial-gradient(ellipse 130% 95% at 50% 0%, rgba(104,88,168,0.22), rgba(0,0,0,0) 56%),
    linear-gradient(180deg, rgba(30,24,50,0.62), rgba(13,11,22,0.70));
}
#playerBoard .lane {
  background:
    radial-gradient(ellipse 130% 95% at 50% 0%, rgba(178,116,54,0.28), rgba(0,0,0,0) 56%),
    linear-gradient(180deg, rgba(46,30,15,0.62), rgba(17,11,6,0.70));
}
/* KG overhaul #4 micro-lift (Graphics, Nov 4 2026): the wells above were
   already dressed (rim + side washes, #272) — the census proved the
   "flat dark rectangle" read is a CONTRAST problem at phone brightness,
   not missing paint. Same layers, slightly stronger light; no geometry,
   no new elements, playable-state ring below untouched. */
.board .lane.playable {
  box-shadow: inset 0 3px 12px rgba(0,0,0,0.7), inset 0 0 0 1px rgba(255,191,0,0.45),
    inset 0 0 22px rgba(255,191,0,0.13);
}

/* ── YOUR plays arrive now, too. #252 gave the dealer's cards an
      arrival (kg-incoming + the queue's rise/settle); yours teleported
      and only popped (cardLand on the canvas). The just-played hook
      already exists in renderBout — this adds a short travel-settle on
      the player's board CONTAINER while the canvas keeps its cardLand.
      The board's hand-laid tilt rides the separate `rotate` property,
      and the animation ends at rest, so combat arrows (measured on
      settled elements) are untouched. Dealer side excluded on purpose:
      his arrival belongs to kg-anim; doubling it would double-move
      him. Reduced motion zeroes this via the core sheet's global
      duration kill, same as every other bout animation. ── */
@keyframes kgArrive272 {
  0% { transform: translateY(-30px) scale(1.06); opacity: 0.35; }
  62% { transform: translateY(2px) scale(0.995); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
#playerBoard .bcreature.just-played { animation: kgArrive272 0.38s cubic-bezier(0.22, 1, 0.36, 1); }

/* ── the annex holder becomes a felt well like the lanes it serves ── */
#fieldAnnexHolder.annex-holder {
  background:
    radial-gradient(ellipse 120% 90% at 50% 0%, rgba(150,102,48,0.18), rgba(0,0,0,0) 60%),
    linear-gradient(180deg, rgba(30,20,11,0.85), rgba(10,7,4,0.9));
  box-shadow: inset 0 3px 12px rgba(0,0,0,0.75), inset 0 0 0 1px rgba(201,162,39,0.18);
}

/* ── KG overhaul #6 (Graphics, Nov 4 2026): the annex STATE moves into
      the well. Until now the owner state lived only on the outer panel's
      border while the holder — where the eye sits, on the occupant —
      stayed neutral in every state. The holder now carries the state's
      ring + inner glow and the panel gains a faint state wash over its
      base gradient, in the panel's own palette (npc gray / wild violet /
      mine gold / theirs blood). Paint only: no geometry, no state logic;
      the valid-target pulse and raise-flash ride above this unchanged. ── */
#fieldAnnex.annex.npc #fieldAnnexHolder.annex-holder {
  box-shadow: inset 0 3px 12px rgba(0,0,0,0.75), inset 0 0 0 1px rgba(154,160,168,0.40),
    inset 0 0 26px rgba(154,160,168,0.13);
}
#fieldAnnex.annex.wild #fieldAnnexHolder.annex-holder {
  box-shadow: inset 0 3px 12px rgba(0,0,0,0.75), inset 0 0 0 1px rgba(168,85,247,0.50),
    inset 0 0 28px rgba(168,85,247,0.22);
}
#fieldAnnex.annex.mine #fieldAnnexHolder.annex-holder {
  box-shadow: inset 0 3px 12px rgba(0,0,0,0.75), inset 0 0 0 1px rgba(201,162,39,0.50),
    inset 0 0 26px rgba(201,162,39,0.16);
}
#fieldAnnex.annex.theirs #fieldAnnexHolder.annex-holder {
  box-shadow: inset 0 3px 12px rgba(0,0,0,0.75), inset 0 0 0 1px rgba(196,60,50,0.45),
    inset 0 0 26px rgba(154,20,20,0.22);
}
#fieldAnnex.annex.npc {
  background: radial-gradient(ellipse 120% 80% at 50% 0%, rgba(154,160,168,0.07), rgba(0,0,0,0) 60%),
    linear-gradient(170deg, rgba(46,32,18,0.92), rgba(12,8,6,0.94));
}
#fieldAnnex.annex.wild {
  background: radial-gradient(ellipse 120% 80% at 50% 0%, rgba(168,85,247,0.12), rgba(0,0,0,0) 60%),
    linear-gradient(170deg, rgba(46,32,18,0.92), rgba(12,8,6,0.94));
}
#fieldAnnex.annex.mine {
  background: radial-gradient(ellipse 120% 80% at 50% 0%, rgba(201,162,39,0.10), rgba(0,0,0,0) 60%),
    linear-gradient(170deg, rgba(46,32,18,0.92), rgba(12,8,6,0.94));
}
#fieldAnnex.annex.theirs {
  background: radial-gradient(ellipse 120% 80% at 50% 0%, rgba(154,20,20,0.12), rgba(0,0,0,0) 60%),
    linear-gradient(170deg, rgba(46,32,18,0.92), rgba(12,8,6,0.94));
}
/* the title becomes a plaque: a hairline rule under the lettering */
#fieldAnnex .annex-title {
  border-bottom: 1px solid rgba(201,162,39,0.25);
  padding-bottom: 6px;
}

/* ── his face-down hand sits in a quiet tray, like yours ── */
.opp-hand { background: linear-gradient(180deg, rgba(0,0,0,0.20), rgba(0,0,0,0.04)); border-radius: 10px; }

/* ── scrollbars: the last stock-browser chrome in the bout. Thin,
      dark-tracked, gold-thumbed, on every scrolling bout surface —
      the hand, the phone board row, the log, the tab slips. ── */
.hand, .battle-log, .bill-items, .board {
  scrollbar-width: thin; scrollbar-color: rgba(201,162,39,0.45) rgba(0,0,0,0.3);
}
.hand::-webkit-scrollbar, .battle-log::-webkit-scrollbar,
.bill-items::-webkit-scrollbar, .board::-webkit-scrollbar { width: 6px; height: 6px; }
.hand::-webkit-scrollbar-thumb, .battle-log::-webkit-scrollbar-thumb,
.bill-items::-webkit-scrollbar-thumb, .board::-webkit-scrollbar-thumb {
  background: rgba(201,162,39,0.4); border-radius: 3px;
}
.hand::-webkit-scrollbar-track, .battle-log::-webkit-scrollbar-track,
.bill-items::-webkit-scrollbar-track, .board::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.25);
}

/* ── the Karma Scale box reads as furniture, not a widget ── */
#hudScaleBox {
  border-color: rgba(201,162,39,0.5);
  box-shadow: inset 0 2px 0 rgba(232,200,106,0.25), inset 0 -3px 6px rgba(0,0,0,0.5),
    0 0 14px rgba(201,162,39,0.12);
}
#hudScaleBox .val { font-size: 1.12rem; }

/* ════════════════════════════════════════════════════════════════════
   #272 FLAGS ADDENDUM (live-browser health check, Nov 1 2026)
   FLAG A: the arrival existed but ran 0.38s — over before a player (or a
   snapshot) could register it. It now travels farther and settles over
   0.62s. Damage numerals get their full float (the core dmgFloat ran
   0.9s and the JS removed spans at 950ms, clipping even the 1.1s kill
   float; spans now live 1300ms and the float runs 1.25s). The draw flip
   slows a touch for legibility. Reduced-motion carve-outs cover the
   container arrival, which the core sheet's list missed. All overrides
   ride the cascade after the original #272 rules — nothing above moves.
   ════════════════════════════════════════════════════════════════════ */
@keyframes kgArrive272b {
  0% { transform: translateY(-52px) scale(1.07); opacity: 0; }
  55% { transform: translateY(3px) scale(1); opacity: 1; }
  75% { transform: translateY(-1px); }
  100% { transform: translateY(0); opacity: 1; }
}
#playerBoard .bcreature.just-played { animation: kgArrive272b 0.62s cubic-bezier(0.22, 1, 0.36, 1); }
.dmg-num { animation-duration: 1.25s; }
.hand-card.drawing { animation-duration: .55s; }
@media (prefers-reduced-motion: reduce) {
  #playerBoard .bcreature.just-played { animation: none; }
}
:root[data-motion="reduced"] #playerBoard .bcreature.just-played { animation: none; }

/* ════════════════════════════════════════════════════════════════════
   #279 — THE LOBBY, READABLE (Nov 1, 2026; Brody's screenshots: "the
   background looks fucked plus hard to read text too text and blob
   heavy" / "the icons and the ui is still ugly as fuck to me and does
   not look playable the descent map is also ugly as fuck")
   Four moves, presentation only:
   1. THE BACKDROP — in the lobby state the app stops wearing the
      brightened playmat painting wall-to-wall. The painting becomes a
      dimmed mural band across the top (behind the header, where the
      display title can carry it) and the panel zone below sits on a
      quiet, warm, vignetted field. The bout keeps the stage backdrop
      exactly as #259/#272 left it: this rule only matches while the
      lobby is the visible section (:has), and degrades to the old
      backdrop where :has is unknown.
   2. DECLUTTER — the growth panels in the lobby mount clamp their
      copy (headline + one line; the action button carries the state),
      and the lobby's lavender note text warms to parchment.
   3. THE TILES — Choose Your Table becomes a row of doors: dark oak
      slabs with an iron-and-gold bezel, ONE engraved gold medallion
      language (the pastel per-tile tints are retired), a lit
      threshold step at the foot, and the two primary doors in deep
      bronze-gold instead of candy yellow.
   4. THE DESCENT MAP — parchment-and-ink register: a sepia map ground
      under the floorboard ink, the road ahead drawn as a dotted ink
      route and the road walked burned solid ember, node medallions
      seated as seals, name tags as parchment labels, and the player's
      tankard a struck-gold token with a breathing "you are here" ring.
   No geometry, no state, no behavior: paint and copy only.
   ════════════════════════════════════════════════════════════════════ */

/* ── 1 · the lobby backdrop: mural band above, quiet field below ── */
body.s259-art-cards #kg-app:has(> #kg-lobby:not(.hidden)) {
  background-image:
    radial-gradient(115% 70% at 50% 30%, transparent 58%, rgba(0, 0, 0, .42) 100%),
    radial-gradient(ellipse 62% 240px at 50% -60px, rgba(255, 150, 50, .13), transparent 70%),
    linear-gradient(180deg, rgba(12, 8, 5, .48) 0, rgba(11, 7, 4, .78) 240px, rgba(9, 6, 4, .93) 430px, rgba(8, 5, 3, .96) 640px, rgba(8, 5, 3, .97) 100%),
    url("/games/playmat-backdrop.jpg"),
    linear-gradient(180deg, #1a1109, #0a0605 60%, #070403);
  background-position: 50% 50%, 50% 0, 50% 0, 50% 0, 50% 0;
  background-size: 130% 100%, auto, auto, 100% 560px, auto;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
}
/* the lobby's own ground stays quiet even where :has is unknown */
#kg-lobby {
  background: linear-gradient(180deg, rgba(9, 6, 4, 0) 0, rgba(9, 6, 4, .34) 120px, rgba(8, 5, 3, .46) 100%);
}

/* ── the lobby's rooms warm from purple to tavern oak ── */
#kg-lobby .deck-room, #kg-lobby .custom-room, #kg-lobby .deck-bar, #kg-lobby .welcome-banner {
  background: linear-gradient(168deg, rgba(27, 19, 11, .96), rgba(12, 8, 5, .97));
  border-color: rgba(201, 162, 39, .38);
}
#kg-lobby .btn-ghost {
  background: linear-gradient(180deg, rgba(40, 29, 16, .9), rgba(19, 13, 7, .92));
}
#kg-lobby .oath-note { color: #c9bda6; }
#kg-lobby .deck-bar .lbl { color: #c9bda6; }
#kg-lobby .curve-bar span { color: #c9bda6; }

/* the header chrome joins the same register (app-wide furniture) */
.game-header .sound-btn, .game-header .help-toggle-btn, .game-header select.sound-btn {
  background: linear-gradient(180deg, rgba(43, 31, 17, .92), rgba(20, 14, 8, .94));
}

/* ── 2 · declutter: growth copy clamps in the lobby mount ── */
#kg-growth-lobby .kgx-panel, #kg-growth-lobby .kgx-banner { margin-bottom: 10px; }
#kg-growth-lobby .kgx-banner .kgx-btxt {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
#kg-growth-lobby .kgx-gone {
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 640px) {
  #kg-growth-lobby .kgx-rows { gap: 6px; }
  #kg-growth-lobby .kgx-row { padding: 7px 10px; }
  #kg-growth-lobby .kgx-row .kgx-txt {
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
  }
}

/* ── 3 · Choose Your Table: doors, not glyph buttons ── */
#kg-lobby .play-menu { margin: 18px 0 14px; }
#kg-lobby .play-menu-title { margin-bottom: 12px; }
#kg-lobby .play-card {
  min-height: 134px !important;
  padding: 16px 12px 15px !important;
  border-radius: 12px !important;
  background: linear-gradient(172deg, #251809 0%, #180f06 58%, #110905 100%) !important;
  border: 1px solid rgba(201, 162, 39, .45) !important;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .6),
    inset 0 1px 0 rgba(255, 226, 160, .15),
    inset 0 -16px 26px rgba(0, 0, 0, .5),
    0 12px 26px rgba(0, 0, 0, .5);
}
/* the threshold: a lit step at the foot of every door */
#kg-lobby .play-card::after {
  content: ''; position: absolute; left: 16%; right: 16%; bottom: 8px; height: 2px;
  border-radius: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 201, 90, .5), transparent);
  opacity: .5; transition: opacity .16s ease;
}
#kg-lobby .play-card:hover::after, #kg-lobby .play-card:focus-visible::after { opacity: 1; }
/* one medallion language: engraved gold on dark iron, every door */
#kg-lobby .play-card .pc-icon {
  width: 58px; height: 58px; font-size: 1.7rem; color: #ffd977;
  background: radial-gradient(circle at 50% 30%, #33230c, #191006 68%, #0e0805);
  border: 1px solid rgba(232, 195, 90, .8);
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .55), inset 0 0 0 4px rgba(232, 195, 90, .30),
    inset 0 2px 6px rgba(255, 226, 160, .20), 0 5px 12px rgba(0, 0, 0, .5);
}
/* the pastel per-tile tints (core menu block) retire to the register */
#kg-lobby .play-menu-grid > button:nth-child(2) .pc-icon,
#kg-lobby .play-menu-grid > button:nth-child(3) .pc-icon,
#kg-lobby .play-menu-grid > button:nth-child(4) .pc-icon,
#kg-lobby .play-menu-grid > button:nth-child(5) .pc-icon,
#kg-lobby .play-menu-grid > button:nth-child(6) .pc-icon {
  color: #ffd977; border-color: rgba(232, 195, 90, .8);
}
#kg-lobby .play-card .pc-sub { color: #d8cbae; }
/* the primary doors: deep bronze-gold, a struck seal for a medallion */
#kg-lobby .play-card.btn-gold {
  background: linear-gradient(172deg, #86641f 0%, #5d4517 58%, #463311 100%) !important;
  border-color: rgba(255, 233, 168, .85) !important; color: #ffeec2 !important;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .55),
    inset 0 1px 0 rgba(255, 244, 205, .5),
    inset 0 -16px 26px rgba(40, 26, 4, .55),
    0 14px 30px rgba(0, 0, 0, .5), 0 6px 22px rgba(255, 166, 0, .18);
}
#kg-lobby .play-card.btn-gold .pc-icon {
  background: radial-gradient(circle at 50% 30%, #ffeda6, #dfa93e 62%, #a87c22);
  color: #3a2708; border-color: rgba(58, 39, 8, .7);
  box-shadow: inset 0 0 0 3px rgba(58, 39, 8, .30), inset 0 2px 6px rgba(255, 255, 255, .55),
    0 5px 12px rgba(0, 0, 0, .4);
}
#kg-lobby .play-card.btn-gold .pc-label { color: #ffedb5; }
#kg-lobby .play-card.btn-gold .pc-sub { color: #ecd096; }
#kg-lobby .play-card.btn-gold::after {
  background: linear-gradient(90deg, transparent, rgba(255, 240, 200, .75), transparent);
}
@media (max-width: 640px) {
  #kg-lobby .play-card { min-height: 126px !important; }
  #kg-lobby .play-card .pc-icon { width: 52px; height: 52px; font-size: 1.55rem; }
}

/* ── 4 · the Descent map: parchment & ink ── */
#kg-map .map-path { color: #d8c69c; font-size: .95rem; }
#kg-map .map-lore { color: #b3a284; }
.pmap {
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(255, 190, 100, .07), transparent 55%),
    radial-gradient(90% 90% at 50% 115%, rgba(0, 0, 0, .5), transparent 60%),
    linear-gradient(168deg, #241809 0%, #1a1107 55%, #120b05 100%);
  border: 1px solid rgba(201, 162, 39, .55);
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .55), inset 0 0 0 4px rgba(201, 162, 39, .22),
    inset 0 0 90px rgba(0, 0, 0, .8), 0 12px 44px rgba(0, 0, 0, .5);
}
/* the road ahead is a dotted ink route; the road walked burns solid */
.pmap-path { stroke: rgba(219, 182, 110, .55); stroke-width: 3; stroke-dasharray: .5 6.5; }
.pmap-path.walked { stroke: rgba(255, 196, 92, .96); stroke-width: 3.5; stroke-dasharray: none; }
/* node medallions sit as seals on the map */
.pnode {
  background: radial-gradient(circle at 50% 32%, #2c1e0e, #150d06 74%);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .62), 0 0 0 3px rgba(201, 162, 39, .30),
    inset 0 2px 5px rgba(255, 226, 160, .13), 0 6px 14px rgba(0, 0, 0, .55);
}
.pnode.future { opacity: .5; filter: saturate(.5); }
.pnode.done { opacity: .68; }
.pnode.current {
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .62), 0 0 0 3px rgba(255, 201, 90, .9),
    0 0 24px rgba(255, 180, 80, .6), inset 0 2px 5px rgba(255, 226, 160, .16);
}
/* name tags are parchment labels now, not black pills */
.pnode .pn-label {
  background: linear-gradient(180deg, #ecdfc0, #dcc79e);
  color: #2b1d0d; border-color: rgba(107, 77, 31, .8); text-shadow: none; font-weight: 600;
}
.pnode .pn-badge.done { background: #2e2008; }
/* your tankard: a struck-gold token with a breathing here-ring */
.pmap-piece {
  background: radial-gradient(circle at 50% 30%, #ffe3a1, #cd9c31 60%, #8a6420);
  border: 2px solid #5e431a; color: #3a2708;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .5), 0 0 26px rgba(255, 190, 80, .85),
    0 6px 14px rgba(0, 0, 0, .5);
}
.pmap-piece .kg-ic { width: 25px; height: 25px; }
.pmap-piece::after {
  content: ''; position: absolute; inset: -8px; border-radius: 50%;
  border: 2px solid rgba(255, 201, 90, .55); pointer-events: none;
  animation: kgHere279 2.2s ease-in-out infinite;
}
@keyframes kgHere279 { 0%, 100% { opacity: .35; } 50% { opacity: .95; } }
@media (prefers-reduced-motion: reduce) { .pmap-piece::after { animation: none; } }
:root[data-motion="reduced"] .pmap-piece::after { animation: none; }
.pmap-fog {
  background: linear-gradient(to bottom, rgba(18, 11, 5, 0) 0%, rgba(18, 11, 5, .55) 55%, rgba(14, 9, 4, .96) 100%);
}
.pmap-depth { background: rgba(22, 14, 6, .88); border-color: rgba(232, 195, 90, .55); }
.pmap-legend .lg-room { background: rgba(22, 14, 6, .55); }

/* ════════════════════════════════════════════════════════════════════
   #281 — THE LOBBY LEFTOVERS (Nov 1, 2026; the parent's post-#279
   browser verification): three surfaces #279's layer could not
   reach because they live outside the files it owned.
   1. THE SEASON DOOR — its glyph was set by kg-growth.js as raw
      emoji text, and core's candy-gold class rule (#ffdf7e) is the
      loudest gold on the page. The glyph is now a drawn kg-icons
      seal (growth-side: tile-halloween / tile-christmas /
      tile-valentine), and the door's bronze register is pinned
      here under its own ID so no class-level gold rule can outrank
      it — the same values as #279's .btn-gold primary doors.
   2. THE NOTE SWEEP — every muted note line the lobby view can
      show now sits in ONE parchment (#e8dcc3), each rule a notch
      above the specificity that muted it (the audit table lives in
      the #281 notes): the lobby oath-notes, the deck-bar labels,
      the curve figures, and the seasonal chip's sub-line for all
      three seasons. The Christmas chip's ground deepens to dark
      pine on this page only — against its old mid-green, NO text
      color can reach 7:1 (white itself caps at ~6.3:1).
   3. THE EVENT PANELS — the Trick-or-Treat Door and the Great
      Pumpkin Hunt (halloween-fun.js renders them into the growth
      mounts as centered paragraph cards) become strips in the
      lobby mount only: left-aligned, the door art shrunk to a
      thumbnail at the side, the empty outcome line collapsed.
      The gate and portal copies keep their card treatment. The
      treatment is class-based (.hwf-door / .hwf-hunt inside
      #kg-growth-lobby), so a future season's fun pack riding the
      same panel classes inherits it.
   Paint only — no copy, state, or behavior changes.
   ════════════════════════════════════════════════════════════════════ */

/* ── 1 · the season door: bronze under its own name ── */
#kg-lobby #seasonCampaignBtn {
  background: linear-gradient(172deg, #86641f 0%, #5d4517 58%, #463311 100%) !important;
  border-color: rgba(255, 233, 168, .85) !important; color: #ffeec2 !important;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .55),
    inset 0 1px 0 rgba(255, 244, 205, .5),
    inset 0 -16px 26px rgba(40, 26, 4, .55),
    0 14px 30px rgba(0, 0, 0, .5), 0 6px 22px rgba(255, 166, 0, .18);
}
#kg-lobby #seasonCampaignBtn .pc-icon {
  background: radial-gradient(circle at 50% 30%, #ffeda6, #dfa93e 62%, #a87c22);
  color: #3a2708; border-color: rgba(58, 39, 8, .7);
  box-shadow: inset 0 0 0 3px rgba(58, 39, 8, .30), inset 0 2px 6px rgba(255, 255, 255, .55),
    0 5px 12px rgba(0, 0, 0, .4);
}
#kg-lobby #seasonCampaignBtn .pc-label { color: #ffedb5; }
#kg-lobby #seasonCampaignBtn .pc-sub { color: #ecd096; }
#kg-lobby #seasonCampaignBtn::after {
  background: linear-gradient(90deg, transparent, rgba(255, 240, 200, .75), transparent);
}
/* the growth rows' drawn glyphs sit on the text line */
#kg-growth-lobby .kgx-txt .kg-ic,
#kg-growth-lobby .kgx-btxt .kg-ic,
#kg-growth-lobby h3 .kg-ic { width: 1.14em; height: 1.14em; vertical-align: -0.2em; }

/* ── 2 · the note sweep: one parchment, ≥7:1 on its ground ── */
#kg-lobby p.oath-note { color: #e8dcc3; }
#kg-lobby .deck-bar span.lbl { color: #e8dcc3; }
#kg-lobby .curve-bar span { color: #e8dcc3; }
/* the seasonal chip rides at the top of this page in the lobby
 * view; its sub-line joins the register for all three seasons.
 * seasonal.js injects its sheet at runtime — AFTER this one —
 * so the pin carries !important: the cascade must not hinge on
 * an engine's specificity bookkeeping when the rival sheet
 * lands last (jsdom's cascade resolves it by order alone) */
body.s259-art-cards #halloweenChip .hw-sub,
body.s259-art-cards #christmasChip .hw-sub,
body.s259-art-cards #valentineChip .hw-sub { color: #e8dcc3 !important; }
/* the Christmas chip's mid-green ground caps any text at ~4.6:1 —
 * on this page it deepens to dark pine and the register holds */
body.s259-art-cards #christmasChip {
  background: linear-gradient(90deg, rgba(8, 20, 12, .97), rgba(19, 43, 26, .97), rgba(8, 20, 12, .97)) !important;
}

/* ── 3 · the event panels become strips (lobby mount only) ── */
#kg-growth-lobby .hwf-door, #kg-growth-lobby .hwf-hunt {
  text-align: left; padding: 12px 14px; display: flow-root;
}
#kg-growth-lobby .hwf-door > svg {
  float: left; width: 46px; height: auto; margin: 1px 12px 2px 0;
}
#kg-growth-lobby .hwf-door p, #kg-growth-lobby .hwf-hunt p { margin-top: 3px; }
#kg-growth-lobby .hwf-hunt .hwf-pips { font-size: 1rem; letter-spacing: .18em; }
#kg-growth-lobby .hwf-out:empty { min-height: 0; margin-top: 0; }

/* ════════════════════════════════════════════════════════════════════
   #283 — THE LOBBY CORRECTIVE PASS (Nov 1, 2026; the parent's
   post-#281 LIVE guest verification, 19:15 CST). Three items:
   1. THE SEASON DOOR STILL GLOWED — its slab's brightest point
      sat above the oak register even wearing #281's bronze (the
      same stops as the primary doors). The season slab's own
      gradient deepens below the primary stops (top #6e511a vs
      #86641f — relative luminance ≈ 0.093 vs ≈ 0.143, pinned
      numerically in cards-lobby-283 §1: season top ≤ primary
      top + 0.01, and strictly deeper). The door stays the LIT
      primary door — struck-gold medallion, lit label, threshold
      (all from the #281 block above) — its slab is simply no
      longer a different material from Story's.
   2. THE EVENT PANELS WERE STILL CARDS — #281's strip rules
      matched the lobby copies, but the strips were never real:
      the fun pack's own sheet (runtime-injected) centers the
      panel BLOCK (margin: 0 auto; max-width: 860px), styles its
      text-align/padding at class weight, and the hunt's heading
      and paragraph carry inline margins — none of which #281's
      layer contested. The strips below are scoped to the panels'
      REAL ancestor chain (page class + the lobby SECTION — the
      copies' true chain is body.s259-art-cards > #kg-app >
      section#kg-lobby > #kg-growth-lobby > .hwf-door, proven
      from the real page boot in cards-lobby-283 §2) and contest
      every property that made them cards: block centering gone,
      one headline, the copy on one flowing line, the button
      inline at the end of it. The GATE copies (section#kg-gate)
      and the portal copies keep their card treatments — neither
      chain matches this scope.
   3. (kg-growth.js) "the The Hollow Eve" — the doubled article
      is fixed at its templates; see withThe() there.
   Paint only — no copy, state, or behavior changes.
   ════════════════════════════════════════════════════════════════════ */

/* ── 1 · the season door: the slab deepens into the oak register ── */
#kg-lobby #seasonCampaignBtn {
  background: linear-gradient(172deg, #6e511a 0%, #4d3712 58%, #382a0e 100%) !important;
}

/* ── 2 · the event panels: strips on their real chain ── */
body.s259-art-cards #kg-lobby .hwf-door,
body.s259-art-cards #kg-lobby .hwf-hunt {
  text-align: left !important;
  margin: 0 0 10px !important;
  max-width: none !important;
  padding: 10px 14px !important;
  display: flow-root;
}
body.s259-art-cards #kg-lobby .hwf-door > svg {
  float: left; width: 46px; height: auto; margin: 1px 12px 2px 0;
}
body.s259-art-cards #kg-lobby .hwf-door h3,
body.s259-art-cards #kg-lobby .hwf-hunt h3 {
  margin: 0 0 2px !important;
}
body.s259-art-cards #kg-lobby .hwf-door h3 .kg-ic,
body.s259-art-cards #kg-lobby .hwf-hunt h3 .kg-ic {
  width: 1.05em; height: 1.05em; vertical-align: -0.16em;
}
body.s259-art-cards #kg-lobby .hwf-hunt h3 { display: inline; }
body.s259-art-cards #kg-lobby .hwf-hunt .hwf-pips {
  display: inline-block; margin-left: 10px; font-size: 1rem; letter-spacing: .18em;
}
body.s259-art-cards #kg-lobby .hwf-door p,
body.s259-art-cards #kg-lobby .hwf-hunt p {
  display: inline; margin: 0 !important;
}
body.s259-art-cards #kg-lobby .hwf-door .hwf-knock,
body.s259-art-cards #kg-lobby .hwf-hunt .hwf-knock {
  margin-left: 10px;
}
body.s259-art-cards #kg-lobby .hwf-out { margin-top: 4px; }
body.s259-art-cards #kg-lobby .hwf-out:empty { min-height: 0; margin-top: 0; }

/* ═══════════════════════════════════════════════════════════════════
 * BATCH #284 — THE DOUBLE ZOOM: ART BOX BUTTON + RAW-ART LAYER STATES
 * (Brody's order, Oct 30 + re-issued Nov 1 2026: "click the card
 * magnifier then also have the option to click the art box to get a
 * full screen image of the art itself"). Stage 1 is the Read view
 * (#224/#267). Stage 2 lives in kg-inspect.js; these rules give the
 * Read view its clickable art box and the art layer its states:
 *   .kg-artmode                    the layer is up (core paints the img)
 *   .kg-artmode.kg-art-loading     painting still loading: veil shows,
 *                                  img held transparent underneath
 *   .kg-artmode.kg-art-shown       painting revealed (fade, unless
 *                                  reduced motion — either switch)
 *   .kg-art-none                   this card has no usable painting:
 *                                  the art box button hides
 * The face's art window sits at 14,84 272x186 of the 300x420 face
 * (cards-art.js), so the button covers 4.67% / 20% / 90.67% / 44.29%
 * of the canvas wrap — the painting region and nothing else.
 * ═══════════════════════════════════════════════════════════════════ */
.inspectArtWrap { position: relative; }
.inspect-art-btn {
  position: absolute; left: 4.67%; top: 20%; width: 90.67%; height: 44.29%;
  padding: 0; margin: 0; background: transparent; border: 0; border-radius: 6px;
  cursor: zoom-in; z-index: 3; -webkit-tap-highlight-color: transparent;
}
.inspect-art-btn .iab-chip {
  position: absolute; right: 6px; bottom: 6px; width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(10, 5, 8, 0.78);
  border: 1.5px solid var(--gold); color: var(--gold-lt);
  opacity: 0.55; pointer-events: none;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.inspect-art-btn .iab-chip svg { width: 19px; height: 19px; }
.inspect-art-btn:hover { background: rgba(201, 162, 39, 0.07); }
.inspect-art-btn:hover .iab-chip,
.inspect-art-btn:focus-visible .iab-chip { opacity: 1; background: rgba(10, 5, 8, 0.94); }
.inspect-art-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
#inspectOverlay.kg-art-none #inspectArtBtn { display: none; }

#inspectArtVeil { display: none; }
#inspectOverlay.kg-artmode.kg-art-loading #inspectArtVeil {
  display: flex; position: fixed; inset: 0; z-index: 1700;
  max-width: none; max-height: none; overflow: visible;
  align-items: center; justify-content: center; background: #000;
  color: #c9bda6; font-family: 'IM Fell English', Georgia, serif;
  font-size: 1.02rem; letter-spacing: 0.04em; cursor: zoom-out;
}
#inspectOverlay.kg-artmode #inspectArtImg { opacity: 0; transition: opacity 0.18s ease-out; }
#inspectOverlay.kg-artmode.kg-art-shown #inspectArtImg { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  #inspectOverlay.kg-artmode #inspectArtImg { transition: none; }
  .inspect-art-btn .iab-chip { transition: none; }
}
:root[data-motion="reduced"] #inspectOverlay.kg-artmode #inspectArtImg { transition: none; }
:root[data-motion="reduced"] .inspect-art-btn .iab-chip { transition: none; }

/* ════════════════════════════════════════════════════════════════════
   #851 (Nov 8, 2026) — THE RICHNESS PASS. Brody: "keep working on the
   card games visuals, i want the whole thing to look better."
   Audit (real frames, wave-851): the bones are strong — ornate stone
   header, gold display type — but the interior drops the language:
   ghost buttons render near-invisible (the whole Practice Table reads
   flat), utility pills are bare outlines floating over busy carved
   stone, panels are flat black with hairline borders, and board cards
   sit without weight. This layer is PAINT ONLY — backgrounds, borders,
   shadows, glows; no geometry, no mechanics, no new keyframes. Every
   color rides the theme variables so all profile themes inherit it.
   Fullscreen-stage rules in the core sheet keep their higher
   specificity and are untouched.
   ════════════════════════════════════════════════════════════════════ */

/* ── the header gets a scrim: controls stop fighting the carved stone ── */
.game-header { background: linear-gradient(180deg, rgba(5,3,2,0.50), rgba(5,3,2,0.22) 72%, rgba(5,3,2,0)); border-radius: 10px; }
.game-header .game-sub { color: #a99cc0; }

/* ── utility pills become instruments: filled bronze, lit top edge ── */
.help-toggle-btn, .sound-btn, .acct-btn {
  background: linear-gradient(180deg, rgba(76,54,22,0.55), rgba(32,22,10,0.68));
  border-color: rgba(201,162,39,0.55); color: var(--gold-lt);
  box-shadow: inset 0 1px 0 rgba(255,220,150,0.22), 0 3px 10px rgba(0,0,0,0.45);
}
.help-toggle-btn:hover, .sound-btn:hover, .acct-btn:hover {
  background: linear-gradient(180deg, rgba(96,68,28,0.62), rgba(40,27,12,0.72));
  border-color: var(--gold); color: var(--gold-lt);
  box-shadow: inset 0 1px 0 rgba(255,220,150,0.3), 0 0 14px rgba(255,191,0,0.22), 0 3px 10px rgba(0,0,0,0.45);
}
.bgm-chip {
  background: linear-gradient(180deg, rgba(76,54,22,0.5), rgba(32,22,10,0.62));
  border: 1px solid rgba(201,162,39,0.5); border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,220,150,0.2), 0 3px 10px rgba(0,0,0,0.45);
}

/* ── GHOST BUTTONS GET A FACE (the big one: Practice Table, deck
      source, half the lobby tiles and every quiet corner used these) ── */
.btn-ghost {
  background: linear-gradient(165deg, rgba(52,37,17,0.88), rgba(18,13,7,0.92));
  border-color: rgba(201,162,39,0.5); color: var(--parch);
  box-shadow: inset 0 1px 0 rgba(255,220,150,0.16), 0 4px 14px rgba(0,0,0,0.45);
}
.btn-ghost:hover:not(:disabled) {
  border-color: var(--gold); color: var(--gold-lt);
  box-shadow: inset 0 1px 0 rgba(255,220,150,0.24), 0 0 16px rgba(255,191,0,0.2), 0 4px 14px rgba(0,0,0,0.45);
}
.practice-diff.selected, .practice-decksrc.selected {
  background: linear-gradient(165deg, rgba(88,62,24,0.9), rgba(30,20,9,0.94));
  color: var(--gold-lt);
}

/* ── gold + blood primaries: a lit top edge so they read as cast metal ── */
.btn-gold { box-shadow: inset 0 1px 0 rgba(255,240,200,0.55), inset 0 -2px 6px rgba(90,58,4,0.45), 0 4px 18px rgba(201,162,39,0.35); }
.btn-blood { box-shadow: inset 0 1px 0 rgba(255,190,170,0.4), inset 0 -2px 6px rgba(30,2,2,0.5), 0 4px 18px rgba(139,26,26,0.4); }

/* ── lobby head: the meta line becomes a proper status strip ── */
.lobby-head h2 { color: var(--gold-lt); text-shadow: 0 2px 0 #000, 0 0 22px rgba(201,162,39,0.35); }
.lobby-meta {
  background: rgba(8,5,3,0.55); border: 1px solid rgba(201,162,39,0.32); border-radius: 999px;
  padding: 7px 16px; box-shadow: inset 0 1px 0 rgba(255,220,150,0.12), 0 4px 14px rgba(0,0,0,0.4);
}
#refreshCollBtn {
  border: 1px solid rgba(201,162,39,0.55); border-radius: 999px; padding: 3px 12px;
  background: rgba(201,162,39,0.12); text-decoration: none; color: var(--gold-lt);
}
#refreshCollBtn:hover { background: rgba(201,162,39,0.22); border-color: var(--gold); }

/* ── mode tiles (non-gold): same cast-bronze face as the ghost fix,
      deeper seat, icon halo ── */
.play-card:not(.btn-gold) {
  background: linear-gradient(165deg, rgba(52,37,17,0.9), rgba(16,11,6,0.95));
  border: 1px solid rgba(201,162,39,0.42);
  box-shadow: inset 0 1px 0 rgba(255,220,150,0.18), 0 8px 22px rgba(0,0,0,0.5);
}
.play-card:not(.btn-gold):hover { border-color: var(--gold); box-shadow: inset 0 1px 0 rgba(255,220,150,0.26), 0 0 20px rgba(255,191,0,0.22), 0 10px 26px rgba(0,0,0,0.55); }
.play-menu-title { color: var(--gold-lt); text-shadow: 0 2px 0 #000, 0 0 16px rgba(201,162,39,0.3); }

/* ── section heads everywhere take the title's letterpress ── */
.map-head h2, .kg-panel h2 { color: var(--gold-lt); text-shadow: 0 2px 0 #000, 0 0 18px rgba(201,162,39,0.32); }

/* ── panels stop being flat black: warm gradient, hairline crown ── */
.kg-panel, .oath-wrap, .practice-panel {
  background: linear-gradient(170deg, rgba(32,22,12,0.88), rgba(10,7,5,0.94));
  border: 1px solid rgba(201,162,39,0.42); border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255,220,150,0.15), 0 12px 32px rgba(0,0,0,0.55);
}
.practice-panel h3 { text-shadow: 0 1px 0 #000, 0 0 12px rgba(201,162,39,0.25); }

/* ── event / node choices match the panel richness ── */
.choice-btn {
  background: linear-gradient(165deg, rgba(40,29,14,0.9), rgba(13,9,5,0.94));
  border-color: rgba(201,162,39,0.45);
  box-shadow: inset 0 1px 0 rgba(255,220,150,0.14), 0 4px 14px rgba(0,0,0,0.45);
}
.choice-btn:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,220,150,0.22), 0 0 16px rgba(255,191,0,0.18), 0 8px 18px rgba(0,0,0,0.5); }

/* ── the table: lanes sit deeper, cards carry weight ── */
.lane { box-shadow: inset 0 12px 26px rgba(0,0,0,0.6), inset 0 -8px 16px rgba(0,0,0,0.42); }
.lane.playable { box-shadow: inset 0 0 24px rgba(255,191,0,0.2), inset 0 12px 26px rgba(0,0,0,0.55); }
.bcreature canvas { box-shadow: 0 7px 16px rgba(0,0,0,0.62); }
.hand-card canvas { box-shadow: 0 9px 20px rgba(0,0,0,0.58); border-radius: 8px; }
.card-tile { box-shadow: 0 5px 14px rgba(0,0,0,0.5); }
.bill-slip { box-shadow: inset 0 1px 0 rgba(255,220,150,0.13), 0 7px 18px rgba(0,0,0,0.5); }

/* ════════════════════════════════════════════════════════════════════
   #852 (Nov 8, 2026) — ROUND 2: THE TABLE ITSELF. Brody: "keep going."
   Judged from a REAL mid-bout (scripted practice duel, 3 creatures in
   play; frames in wave-852/): the card art is rich, but the board is
   mostly EMPTY LANES and they read as flat placeholder slabs — violet
   smudges on his side, brown smudges on mine — nearly vanishing into
   the darkened playmat. The annex panel proves the house style works
   when applied; this layer applies it to the table furniture. Paint
   only again: no geometry, no mechanics, no keyframes.
   ════════════════════════════════════════════════════════════════════ */

/* ── empty lanes become felt slots: warm radial felt over the weave,
      a brass edge you can see, depth you can feel ── */
.lane {
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.016) 0 2px, rgba(0,0,0,0) 2px 4px),
    radial-gradient(ellipse at 50% 36%, rgba(96,70,38,0.52), rgba(20,13,8,0.62) 76%);
  border-color: rgba(201,162,39,0.42);
  box-shadow: inset 0 16px 30px rgba(0,0,0,0.62), inset 0 -10px 18px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,220,150,0.08);
}
.lane.playable {
  border-color: rgba(255,191,0,0.75);
  box-shadow: 0 0 0 1px rgba(255,191,0,0.22), 0 0 20px rgba(255,191,0,0.13), inset 0 0 26px rgba(255,191,0,0.14), inset 0 16px 30px rgba(0,0,0,0.55);
}
.lane .empty-hint { color: rgba(203,189,151,0.4); text-shadow: 0 2px 6px rgba(0,0,0,0.8); }
.board-side-label { text-shadow: 0 1px 0 #000, 0 0 10px rgba(0,0,0,0.6); }

/* ── the hand sits in its tray in page mode too (inset ring — the
      fullscreen stage's fitted geometry is untouched) ── */
.hand {
  background: linear-gradient(180deg, rgba(26,18,11,0.5), rgba(10,7,5,0.3));
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(201,162,39,0.22), inset 0 1px 0 rgba(255,220,150,0.1), inset 0 16px 28px rgba(0,0,0,0.35);
}
.hand-label { text-shadow: 0 1px 0 #000; }

/* ── bout furniture joins the panel family ── */
.hud-box {
  background: linear-gradient(170deg, rgba(36,25,14,0.88), rgba(10,7,5,0.92));
  border-color: rgba(201,162,39,0.4);
  box-shadow: inset 0 1px 0 rgba(255,220,150,0.15), 0 4px 12px rgba(0,0,0,0.45);
}
.stranger-zone {
  background: linear-gradient(170deg, rgba(28,15,34,0.75), rgba(9,6,14,0.88));
  border-color: rgba(191,64,191,0.34);
  box-shadow: inset 0 1px 0 rgba(230,180,255,0.1), 0 8px 22px rgba(0,0,0,0.5);
}
.speech { box-shadow: inset 0 1px 0 rgba(255,220,150,0.08), 0 4px 12px rgba(0,0,0,0.4); }
.battle-log {
  background: linear-gradient(180deg, rgba(17,12,8,0.9), rgba(7,5,4,0.94));
  border-color: rgba(201,162,39,0.34);
  box-shadow: inset 0 1px 0 rgba(255,220,150,0.1), inset 0 12px 24px rgba(0,0,0,0.4);
}
.turn-pill.foe {
  background: linear-gradient(170deg, rgba(40,40,50,0.75), rgba(14,13,18,0.85));
  border-color: rgba(154,160,168,0.45); color: #b9c0cc;
  box-shadow: inset 0 1px 0 rgba(220,225,235,0.12), 0 4px 12px rgba(0,0,0,0.4);
}
.grave-pile {
  background: linear-gradient(170deg, rgba(40,38,44,0.88), rgba(12,11,14,0.92));
  box-shadow: inset 0 1px 0 rgba(220,225,235,0.15), 0 4px 12px rgba(0,0,0,0.45);
}
.grave-item { background: linear-gradient(170deg, rgba(28,26,31,0.88), rgba(10,9,12,0.92)); }

/* ── the deck room (vault workbench shell) takes the panel face too ── */
.deck-room {
  background: linear-gradient(170deg, rgba(32,22,13,0.88), rgba(10,7,5,0.94));
  border-color: rgba(201,162,39,0.44);
  box-shadow: inset 0 1px 0 rgba(255,220,150,0.14), 0 10px 26px rgba(0,0,0,0.5);
}
.deck-room h3 { color: var(--gold-lt); text-shadow: 0 1px 0 #000; }
