/* receipt {"source":"kasten/platform/js/screen.css","source_sha":"f61d4888fe3d","why":"platform code, new_car_sow_001 scope item 9 SCREEN + WINDOW STACK (NEW-D-003)","writer":"kasten/platform/factory.py","writer_sha":"1a878b7c75b6"} */
/* THE PAINT ORDER (sow_099 1.10; the eight layers, CG-D-699 / sow_081 AMENDMENT-01 A3): one band per layer, painted bottom to top. Every page-level
   fixed or sticky thing reads its layer's band (+ its place inside it); windows are the overlay band + their row's height (screen.mjs zOf). The side tab
   lands on 30, the tier the skins' More tab and the felt's What next (31) are pinned to (end_sheet_over_tab.test.mjs). Inventory:
   cg design/SHOWROOM/PAINT_ORDER_INVENTORY_1.10.txt. Gate: gates/tests/one_paint_order.test.mjs. */
:root { --z-canvas: -1; --z-room: 0; --z-table: 1; --z-chrome: 28; --z-furniture: 40; --z-pieces: 50; --z-words: 60; --z-overlay: 100; }
/* Kasten screen: the door, the window stack and notices. Colours and type are the look rows' tokens (the page's :root). */
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; color: var(--felt_ink); font-family: var(--font); }
/* the felt on <html> alone (it fills the whole canvas): a background on <body> would paint over the room and rim behind it (sow 089 robot,
   2026-11-02: the rim's pixels were felt). The old car's frame sat in front of the felt for the same reason (look/room.css:38-42). */
html { background: var(--felt); }
body { overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
/* THE ROOM AND ITS RIM (sow_089, a dress's rows; the old car's look/room.css:16-40): the material under its lamp, fixed behind the page
   (body::before), an optional grain over it (body::after, its strength and blend rows), and one line inset from the screen's edge (html::after).
   No dress row, nothing painted: the felt colour alone, as before. Paint only: no call, no timer. */
body::before, body::after, html::after { content: ""; position: fixed; inset: 0; z-index: var(--z-canvas); pointer-events: none; }
body::before { background: var(--room, none); background-blend-mode: var(--room-blend, normal); }
body::after { background: var(--room-grain, none); opacity: var(--room-grain-opacity, 1); mix-blend-mode: var(--room-grain-blend, normal); }
html::after { inset: var(--rim-inset, 0); border: var(--rim-line, none); border-radius: var(--rim-radius, 0); box-shadow: var(--rim-ring, none); }
button { font: inherit; color: inherit; cursor: pointer; }
#app { max-width: 560px; margin: 0 auto; padding: 16px; min-height: 100dvh; display: flex; flex-direction: column; }
.door { flex: 1; display: grid; place-content: center; gap: 24px; text-align: center; }
.door h1 { margin: 0; font-size: 2.6rem; letter-spacing: 0.02em; }
.deal { font-size: 1.4rem; padding: 16px 48px; border-radius: 999px; border: 0; background: var(--accent); color: var(--accent_ink); }
/* F9 (CG-D-1307): a gold button that is a link (an address to go to, friends.mjs newsCard) reads as the button beside it: no underline, its words centred */
a.deal { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
/* D2 FS0010 (the four-eyes look #3250): the try-again tap had no style of its own, so the page's ink sat on the browser's light grey. It takes the
   door's ghost (the ask gold, the rest ghost: train.js:589-592, as .again below), one rule for every .retry */
.retry { font: inherit; font-weight: 600; min-height: 44px; padding: 12px 28px; border-radius: 999px; border: 0; background: transparent;
  color: inherit; box-shadow: inset 0 0 0 2px var(--accent); }
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 560px; background: var(--sheet); color: var(--sheet_ink); border-radius: 16px 16px 0 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
/* sow_099 1.06 POPUPS_GROW_BIG (CG-D-337 F4, Carl 2026-10-04 of the invite on his desktop: "far too small"; the mule's ask.js:888-900):
   every pop-up that rises over a screen grows as one piece on an upright tablet (744+ wide) and a sideways screen 900+ wide and 600+ tall,
   the same steps the old car's popups took (--pk 1.3); a sideways PHONE and an upright phone never change. The end sheets keep their own
   --ek (below), so they are left out here. CSS only, +0 calls. [1.06:begin] */
@media (orientation: portrait) and (min-width: 744px), (min-width: 900px) and (min-height: 600px) {
  .scrim .sheet:not(:has(.results)):not(:has(.between)) { --pk: 1.3; zoom: var(--pk); width: min(100%, 560px); }
}
/* [1.06:end] */
.sheet header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sheet h2 { margin: 0; font-size: 1.2rem; }
.close { border: 0; background: none; font-size: 1.8rem; line-height: 1; padding: 4px 8px; }
/* THE RULES SHEET, EASIER TO READ (fix batch 1 n009, Carl's test round #9: "Rules need to be easier to read"). The words are the rows, word
   for word; only their setting changes: a touch larger, a long leading, a reading measure, air under every line; each rule line (the
   rulebook's `li`) a point of its own, as the old car's sheet set each rule as its own row (its surface/aids.js:100-104 .aidch
   .aidrow .aids); the chapter heading a small spaced label as its .aidch; a note quieter, as its .aidnote. Layout and type only. */
.rulesshort { font-size: 1.06rem; line-height: 1.55; max-width: 62ch; margin: 0 auto; text-wrap: pretty; }
.rulesshort h3 { margin: 18px 0 8px; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.rulesshort h3:first-child { margin-top: 2px; }
.rulesshort p { margin: 0 0 12px; }
.rulesshort p.li { position: relative; padding-left: 18px; }
.rulesshort p.li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.rulesshort p.note { font-size: .92em; opacity: .75; }
.rulesshort > .link { display: inline-block; margin: 4px 0 8px; }
.choices { display: grid; gap: 8px; }
.choice { padding: 14px; font-size: 1.15rem; border-radius: 12px; border: 1px solid rgba(0, 0, 0, 0.15); background: none; text-align: left; }
/* THE REASON (new_car_sow_022 AM-02 D4, FS0033-34): a form's message sits under the button that caused it, in a line whose room is kept
   from the first paint (.lline, three lines: the old car's surface/login.html:140-143), so nothing moves under a finger. The box fixed
   96px from the bottom went: on the Fold7 cover it covered the Deal button (AM-02 E2, W2). */
.reason { margin: 0; text-align: center; }
.reason .link { display: block; margin: 4px auto 0; }
/* what no form asked (a move, the table's own) is said on one line after the page, in its flow; stuck at the foot only while it would
   otherwise be off screen (sticky, never fixed: it takes its own room and covers nothing that is not scrolled under it) */
.said { position: sticky; bottom: 8px; z-index: var(--z-overlay); width: min(100% - 32px, 528px); box-sizing: border-box; margin: 8px auto; padding: 10px 14px;
  border-radius: 10px; background: var(--sheet); color: var(--sheet_ink); }
/* where a form's button rides a bar (Deal), its reason rides ONE block with it, stuck at the screen's foot, the felt behind it so nothing
   scrolling under shows through (the old car's #whofoot, surface/new.html:104-106) */
.form .foot { position: sticky; bottom: 0; z-index: var(--z-chrome); display: grid; gap: 4px; padding: 8px 0; background: var(--felt);
  box-shadow: 0 -10px 10px -6px rgba(0, 0, 0, 0.25); }
.form .foot .deal { margin-top: 0; }
.measure { margin: 8px 0 0; text-align: center; font-size: 0.85rem; opacity: 0.8; font-variant-numeric: tabular-nums; }
/* The door's forms and the lobby (new_car_sow_007 items 2-5). */
.door p { margin: 0; }
.form { display: grid; gap: 12px; text-align: left; width: min(100%, 360px); margin: 0 auto; }
.form h2 { margin: 8px 0 0; font-size: 1.2rem; }
.form label { display: grid; gap: 4px; }
.form input, .place input, .url { font: inherit; font-size: 1.1rem; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(0, 0, 0, 0.2);
  background: var(--sheet); color: var(--sheet_ink); width: 100%; }
.form .deal { justify-self: center; margin-top: 8px; }
.link { border: 0; background: none; text-decoration: underline; padding: 8px; font-size: 1rem; }
/* C4 (pilot B F8, F11, F16): a quiet link (8px round its words, ~38px tall) and a sheet's close (its glyph and 4px 8px, ~37px) were taps
   under the house's 44. Each now answers a tap over at least 44x44, centred on itself, from a box laid over it that takes no room: nothing
   on the page moves and nothing is painted. Below 44 the box reaches out by half the gap; at 44 or over it is the button's own box.
   OLD CAR FIRST: the old car sized its small closes to a 44px tap and kept the look by pulling the box back with negative margins
   (surface/home.html:145 .hero .x, :176 #lists .g .x; surface/app.css:1396 .endcard .x "the whole 44px is the button", :1571 .talksheet .x;
   surface/login.html:49 .backlink min-height 44px, margin -8px 0 -4px); here no margin is guessed from a face's height, the box is
   measured from the button's own. Zero specificity, so a part that places its own close (.whatnext .x, absolute) keeps its place. */
:where(.link, .close) { position: relative; }
:where(.link, .close)::after { content: ""; position: absolute; inset: min(0px, (100% - 44px) / 2); }
a.link { color: inherit; justify-self: center; }   /* X4: the privacy link is a link, dressed as the door's other quiet links (login.html:343) */
.places { display: grid; gap: 8px; width: min(100%, 400px); margin: 0 auto; text-align: left; }
.place { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.place b { flex: 1; }
.place.in span { color: var(--accent); }
.place .url { flex-basis: 100%; font-size: 0.85rem; }
.places .place { flex-wrap: wrap; }
.adds { display: flex; gap: 8px; flex-wrap: wrap; }
.setup { margin: 0 0 8px; text-align: center; opacity: 0.9; }
/* sow_009 turn 2: the door's game tiles (the old car's WHAT step): one per game, its name and its line; the picked one is marked. */
.games { display: grid; gap: 8px; width: min(100%, 400px); margin: 0 auto; text-align: left; }
.game { display: grid; gap: 2px; padding: 10px 14px; border-radius: 12px; border: 0; background: none; color: inherit; font: inherit; text-align: left;
  outline: 1px solid var(--felt_ink); }
.game small { opacity: 0.8; }
.game.on { outline: 3px solid var(--accent); }
.place small { opacity: 0.8; }
/* The house rules at the deal (new_car_sow_009 AMENDMENT-01 D3; the old car's rules block, surface/new.html:24-28): one line folded,
   then each rule's label, its ?, and its options as a row of pills, the picked one filled. */
.rules { display: grid; gap: 10px; width: min(100%, 400px); margin: 0 auto; text-align: left; }
.rule .lbl { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.rule .q { width: 28px; height: 28px; border-radius: 50%; border: 2px solid currentColor; background: none; color: inherit; font: inherit; padding: 0; }
.seg { display: flex; gap: 10px; }
.seg button { flex: 1; min-height: 44px; border-radius: 8px; border: 2px solid currentColor; background: none; color: inherit; font: inherit; font-weight: 600; }
.seg button.on { background: var(--accent); color: var(--accent_ink); border-color: var(--accent); }
.rule .fit { margin: 6px 0 0; opacity: 0.85; }
/* THE TOP BAR (new_car_sow_020 B1-B5). The old car's .topbar (surface/app.css:822-823): flex, space-between, 600 capitals .04em,
   links in the accent; its press (:648-649, scale .96, in 90ms out 180ms); signed out keeps only the name, hidden not gone (:1038);
   KEEP-07..09 (PART_075_KEEP_LIST_v0, CG-D-820): 46px tall (39.5 sideways), 5px 8px padding, 6px gaps, 14px type. Its finish is the
   look's rows (B5): --bar-band, --bar-ink, --bar-title-face, --press-in, --press-out; this file names no look. It takes the page's top
   padding and adds no gap under it, so a table that fit before the bar keeps its height to the pixel the bar can give back
   (the four-eyes on S0, #2748: the extra was spacing, not the bar's height). */
.topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; height: 46px; padding: 5px 8px; margin: -16px -16px 0;
  flex: none; font: 600 14px var(--font); letter-spacing: .04em; text-transform: uppercase; color: var(--bar-ink); background: var(--bar-band); }
.topbar > a, .topbar button { color: inherit; text-decoration: none; border: 0; background: none; font: inherit; letter-spacing: inherit;
  text-transform: inherit; padding: 6px 0; min-height: 36px; transition: transform var(--press-out) ease-out; }
.topbar > a:active, .topbar button:active { transform: scale(.96); transition-duration: var(--press-in); }
.topbar .brand { display: flex; align-items: center; gap: 6px; min-width: 0; text-transform: none; letter-spacing: .08em; }
.topbar .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .8; font: 700 14px var(--bar-title-face); letter-spacing: inherit; }
.topbar .aidq { width: 28px; height: 28px; min-height: 0; padding: 0; border: 2px solid currentColor; border-radius: 50%; line-height: 1; }
.topbar .exit { justify-self: start; } .topbar .invite { justify-self: end; visibility: hidden; }   /* the name keeps the middle (app.css:1058) */
/* FIX BATCH 1 n018 (Carl's test round, mail #14261 note 18: "Tables button at top needs better positioning and clearer that it's a
   button"): the back link is the dressed felt's pill on every table, here once: the old car's LIVE ROUND 5 (its surface/app.css:1612-1617,
   Carl "top row of buttons need to look more like buttons and need better spacing and alignment"), a rounded button 34px tall drawn, 44px to
   tap (its ::after), one line, in that felt's small plain type, so it takes no more of the bar than the bare word did (the robot at 360 and
   320: 66px wide before, 67-68 now, clear of the "?" and Rematch?); under 400 wide its sides step in to 9px (:1633 there). The bar's 36px
   floor for its taps (.topbar > a above) still holds, as on that felt today. Its type and line are named once (--pill-font, --pill-line) for
   a dressed felt that must say them over its own dress (its skin's app.css). */
.topbar { --pill-font: 600 13px system-ui, -apple-system, sans-serif; --pill-line: color-mix(in srgb, currentColor 34%, transparent); }
.topbar > a.exit { position: relative; display: inline-flex; align-items: center; flex: none; box-sizing: border-box; height: 34px; padding: 0 12px;
  border: 1.5px solid var(--pill-line); border-radius: 17px; font: var(--pill-font); letter-spacing: 0; text-transform: none; white-space: nowrap; }
.topbar > a.exit::after { content: ""; position: absolute; inset: -6px -3px; }
@media (max-width: 399.98px) { .topbar > a.exit { padding: 0 9px; } }
/* FIX BATCH 1 r3 F1 (new_car's TBL round 3; robot round 2: at 360 Aa on and at 320 the lobby's heading ran into the pill's lower line): the pill's
   tap box (36px, the bar's floor for its taps, kept) hangs 6px below the bar, and the lobby's heading, when the page is full, starts at the
   bar's foot. The lobby keeps the old car's room under its bar, 8px (its surface/app.css:653 the table's 16px gap less the bar's -8px foot,
   :822), counted from the pill's line: 6 + 8 = 14px over the lobby's first line. The lobby only; a table's bar and felt are as they were. */
.topbar ~ .door.lobby { padding-top: 14px; }
/* TOP BAR T2 R1 THE TAPS (MC-D-4148; the T3 robot: ? 28x28, Turns and Rematch? 36 tall): ?, Turns and Rematch? are a 44x44 tap as
   ‹ Tables is, their DRAWN size and their order unchanged, the old car's way: "every tappable one a rounded button 34px tall drawn (44px
   to tap: its ::after)" (the old car's surface/app.css:1613-1617, LIVE ROUND 5, its ::after inset -6px -3px at :1617). The tap grows up and
   down into the bar's own height; across, the ? (28 wide) reaches 8px into the 10px between it and Rematch?, Turns 3px into its 6px gaps, Rematch? none, so
   no tap lands on the next item. */
.topbar :is(.aidq, .turnstab, .rematchq) { position: relative; }
.topbar .aidq::after { content: ""; position: absolute; inset: -10px; }
.topbar .rematchq::after { content: ""; position: absolute; inset: -4px 0; }   /* 80 wide: no room taken across */
.topbar .turnstab::after { content: ""; position: absolute; inset: -4px -3px; }   /* the old car's -3px across: a 38-42px Turns (a dressed bar) still a 44 tap */
/* T12 ROUND 7 (MC-D-4159 item 1, "every 44px tap on every button"): Chat, the other talk tab, was drawn 36px tall with no tap of its own (the
   every-tap probe: 6-8 of 9 points missed at every size, mid-game and end); it takes Turns' own tap (the old car's #talktabs .ttab::after,
   surface/app.css:1626, inset -6px 0 there), drawn size and order unchanged */
.topbar .chattab { position: relative; }
.topbar .chattab::after { content: ""; position: absolute; inset: -4px min(0px, calc((100% - 44px) / 2)); }
/* where a narrow Turns and a narrow Chat stand together (a skin's 38 + 33px with 6px between: two 44 taps cannot both fit there), Turns' tap
   keeps its own drawn edge over Chat's reach, as before Chat had one (every-tap probe: no item newly failing) */
.topbar .turnstab::after { z-index: 1; }   /* 44 across where drawn narrower (a bare "Chat"), none where it is 44+ (no neighbour's tap covered) */
.topbar .barend { justify-self: end; display: flex; align-items: center; gap: 6px; min-width: 0; }   /* AM-08 v1 T1: Invite (or Rematch?) and the Chat tab */
/* T12 ROUND 7 (MC-D-4159 item 1): THE END BAR'S OWN GAP. At game end the right group (Rematch?, the tag, Turns, Chat) can stand inside the
   "?"'s 8px tap reach (R1; T3 robot: Rematch? 6px past the ?, 3/9 probes missed at 360 and 390). Where it does, the bar's fit (screen.mjs
   fitBar, data-endgap) steps the group's own gaps 6px -> 4px: 2px a gap back to the ?'s side; where that clears the ? it stays, where it does
   not the gap goes back to 6px and the ? steps into More (qStep). Only at the end, only while the ? needs it; mid-game never. */
.topbar[data-endgap] .barend { gap: 4px; }
.topbar .barend .invite[data-none] { display: none; }   /* nothing to send: out of the row, so Chat keeps the end (the grid's 1fr cells keep the name centred) */
.topbar .talktab { padding: 4px 6px; }
/* stage 1 Turns log: Turns | Chat side by side in the bar; on a phone the tabs' words step down as the old car's did (app.css:1562: 12px,
   5px padding) so Rematch?, Turns and Chat share the right cell */
@media (max-width: 400px) { .topbar .talktab { padding: 4px 4px; font-size: 12px; letter-spacing: .02em; } }
.turns { display: grid; gap: 6px; } .turns .tline, .turns .none { margin: 0; } .turns .more { justify-self: start; }
/* around.return (#5981/#5983): a row moved since this table's seen mark (screen.mjs turnsBody); the old car's Turns wore .new on a row
   newer than its last paint (hat.js:701, app.css:902); here it stays until the person's first tap at the table, so it is a still edge */
.turns .tline.new { border-left: 3px solid var(--accent); padding-left: 6px; }
/* stage 1 Unread mark: the count is words for a reader and a dot for the eye (the old car's app.css:1564-1565, round 8): 7px, the look's
   bar.dot red, a 1.5px dark ring, 4px right of the word (PART_075b TALK) */
.topbar .talktab .tcount { font-size: 0; }
.topbar .talktab .tcount::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 4px; border-radius: 50%; background: var(--bar-dot); box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .35); vertical-align: 2px; }
.topbar .talktab.on { box-shadow: var(--bar-tab-on); }   /* the open tab: the look's bar.tab.on, colour AND underline (PART_075b §2) */
/* CARL'S RULE (CG-D-1880, MC-D-4156): Chat never leaves the bar at the end, so C1's hidden Chat and its dots on the More tab / entry are gone;
   the unread dot is the tab's own (.tcount above) */
.topbar[data-out] .exit, .topbar[data-out] .invite, .topbar .invite[data-none] { visibility: hidden; }
@media (max-width: 400px) { .topbar .name { display: none; } }   /* KEEP-07 F3 as recorded: on a phone the name gives way to the ? alone */
/* TOPBAR (LS-3, #10581/#10584): a bar whose right cell has no room in the middle's thirds (Rematch?, Turns and Chat at the end on a phone) is
   packed (fitBar measures it): ‹ Home and the "?" from the left, the right group from the right, as the old car's bar
   (surface/app.css:1617-1621, :1636-1638: "the title gives its words up first, at any width, so nothing squeezes the ?") */
.topbar[data-packed] { grid-template-columns: auto auto minmax(0, 1fr); }
/* still no room: the title gives its words up, its "?" stays (the old car's app.css:1630-1634, :1636-1638: the brand's font-size 0, the "?"
   its own type); the "?" keeps the bar's 14px (KEEP-07) */
.topbar[data-bare] .brand { font-size: 0; letter-spacing: 0; }
.topbar[data-bare] .brand > .aidq { font-size: 14px; }
/* Wide, the bar runs the whole table's width, Back at its left edge and Invite at its right (app.css:1054, :1206, and the other wide
   layouts' grid-column 1 / -1, :1084, :1226; the four-eyes on S0, #2748). The page here is one centred column, so the bar reaches out of it to
   the felt's own edges; the name keeps the middle. */
@media (min-width: 600px) { .topbar { margin-inline: calc(50% - 50vw); padding-inline: 16px; } .topbar .invite { visibility: visible; }
  .topbar[data-out] .invite, .topbar .invite[data-none] { visibility: hidden; } }
@media (orientation: landscape) and (max-height: 500px) { .topbar { height: 39.5px; } }
@media (prefers-reduced-motion: reduce) { .topbar > a, .topbar button { transition: none; } }
/* INSIDE THE RIM (look five item 1, CG-D-1660; the robot's 7b03527 shots: "‹ TABLES" and CHAT sat on the frame's corners). OLD CAR FIRST:
   the old car's look/room.css:43-52, the room's contract (CG-D-597, Carl: the buttons and what you play "inside the board, not on the
   borders"): "the bar stops pulling itself up into the frame". Where a dress wears a rim (its rows rim.inset and rim.radius,
   html::after above) the bar stops pulling up into it, and its first and last items keep the rim's reach from the screen's edge, both
   sides alike: its inset and its corner's radius, so nothing sits on the rounded corner (the skinned felts' own bar in the same frame lands
   on the same line: the old room's 28px air and its 4px bar padding). The 16px is #app's own top air (above), never more. No rim worn: the
   reach is 0 and the bar is exactly as before. Paint and placement only: no call, no timer. */
.topbar { --rim-reach: calc(var(--rim-inset, 0px) + var(--rim-radius, 0px)); margin-top: calc(-16px + min(16px, var(--rim-reach))); padding-inline: max(8px, var(--rim-reach)); }
@media (min-width: 600px) { .topbar { padding-inline: max(16px, var(--rim-reach)); } }
/* THE METER (new_car_sow_022 X6): the old car's stats.html:17-26 fitted to this sheet: tiles in a grid of 120+, the number big in the
   accent, the label small; the day table scrolls sideways inside its own box, never the page; an empty cell faint. No new colour. */
.meter .tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.meter .tile { border: 2px solid currentColor; border-radius: 12px; padding: 12px; }
.meter .tile b { display: block; font-size: 30px; line-height: 1; color: var(--accent); }
.meter .tile span, .meter .funnel small { font-size: 12px; opacity: .8; }
.meter .funnel, .meter .wide, .meter .tiles { width: 100%; text-align: left; }
.meter .funnel { margin: 0; padding-left: 20px; box-sizing: border-box; }
.meter .funnel li { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; }
.meter .funnel li span { flex: 1; }
.meter .wide { overflow-x: auto; max-width: 100%; }
.meter table { border-collapse: collapse; font-size: 13px; }
.meter .rings { width: 100%; margin: 0; padding-left: 20px; box-sizing: border-box; text-align: left; display: grid; gap: 6px; overflow-wrap: anywhere; }   /* AMENDMENT-09 stage 2 car|admin.admin-ring: the reports and the Tell us lists (stats.html .rep) */
.meter .rings small { opacity: .7; }
.meter th, .meter td { padding: 6px 8px; text-align: right; white-space: nowrap; border-bottom: 1px solid currentColor; }
.meter th:first-child, .meter td:first-child { text-align: left; }
.meter td.zero { opacity: .35; }
/* THE PRACTICE FACE (new_car_sow_022 AMENDMENT-02 D1g; the old door's #practice, the old car's surface/login.html:73-139): the felt, the line
   above the gold button, the button that never looks dead (it keeps its gold while "Dealing…", aria-busy, not disabled: sow_066 S2), the
   live line that keeps its room from the first paint (sow_062, MC-D-2005: three lines, never display-toggled) and says why past 10 s by
   an animation's delay, never a timer; the quiet link under it. */
.practice { gap: 14px; max-width: 420px; width: 100%; justify-self: center; }
.practice .felt { outline: none; }
.practice .felt:focus-visible { outline: 2px solid var(--accent); border-radius: 16px; }
.practice .ph { font-size: 1.6rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.practice .deal { width: 100%; }
.practice .deal[aria-busy="true"] { pointer-events: none; }
/* car|first_minute.door-game-pick: the door's pick sits above the one gold button, so the picked game is RINGED gold, never filled (the
   old door's #pgame, the old car's surface/login.html:82-83: a quiet ground, gold words and a gold ring; the others a faint ring); the
   page keeps one gold button. Its 44px tap stays (the car's own floor, .seg button). */
.practice .pgame button { border-width: 1.5px; border-color: rgba(255, 255, 255, 0.35); }
.practice .pgame button.on { background: rgba(255, 255, 255, 0.12); color: var(--accent); border-color: var(--accent); }
.practice .fit { opacity: 0.85; }
.lline { min-height: calc(3 * 1.3em); line-height: 1.3; }
/* D3 FS0021: the @ line under the name, and the @ box's own line, keep their room from the first paint (the old car's .hline,
   surface/login.html:321, test_door_handle_line): words change in them, nothing moves under a finger */
.hline, .hmsg { min-height: calc(2 * 1.3em); line-height: 1.3; margin: -4px 0 0; opacity: 0.85; }
.hline .link { padding: 0; }
.rule_line { margin: 0; opacity: 0.85; text-align: center; }
.practice.waiting .lline::after { content: attr(data-slow); visibility: hidden; animation: slowline 0s linear 10s forwards; }
@keyframes slowline { to { visibility: visible; } }
@media (max-height: 700px) { .practice .ph { display: none; } }
/* THE COACH (new_car_sow_022 AMENDMENT-02 D1d; the old car's training box, its surface/train.css): the teacher's lines above the table,
   his name first; at a pause the ask and one button per choice, full width, never a buzzer. One block that keeps to the top of the
   table and scrolls inside itself, so the table under it never jumps far (train.js:651-656, "lack of unnecessary movement"). */
.coach { margin: 6px 10px 0; padding: 10px 12px; border-radius: 12px; background: var(--sheet); color: var(--sheet_ink);
  max-height: 50vh; overflow-y: auto; box-sizing: border-box; }
.coach .lines { font-size: 0.9rem; }
.coach .lines p { margin: 0 0 4px; line-height: 1.3; }
/* CLAMP (cg #6030 item 4, A): one or two short lines at a time (the old car's train.css:25-26, its AMENDMENT-02 D2a): folded, the
   teacher's line is at most two lines high, "more ›" at its end, which opens every line in place and "less ‹" folds it (screen.mjs coachBox).
   The ask and its answers are never in it. At a pause the words step down a little (the old car's train.css:48, 15px to 14.5px), so the
   ask and its answers take less of the screen. */
.coach .lines .told > p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
/* the coach's lines are words in its box, never the page's own said-line block (.said above: sticky, its own padding and width): in the
   box that padding showed a third line under the clamp and set the lines in from the ask */
.coach .lines .said { position: static; width: auto; padding: 0; border-radius: 0; }
.coach.paused .lines p { font-size: calc(1em * 14.5 / 15); }
.coach .fold { display: flex; align-items: flex-end; column-gap: 8px; }
.coach .fold > .told { flex: 1 1 auto; min-width: 0; }
.coach .fold.open { display: block; }
.coach .fold .more { flex: none; min-height: 44px; margin: 0 0 -4px auto; padding: 0 2px; font-size: inherit; color: inherit; text-decoration: none; opacity: 0.8; white-space: nowrap; }
.coach .fold.open .more { display: block; }
.coach .fold .more[hidden] { display: none; }
.coach .lines b { margin-right: 4px; }
.coach .ask { font-weight: 700; }
.coach .opts { display: grid; gap: 8px; margin-top: 4px; }
.coach .opt { font: inherit; text-align: left; padding: 10px 12px; min-height: 44px; border-radius: 10px; border: 2px solid var(--accent);
  background: transparent; color: inherit; }
.coach.paused { outline: 2px solid var(--accent); }
.coach .finish, .coach .why, .coach .skip { margin-top: 2px; }   /* stage 3: "skip ahead" in the same foot row (train.js:657) */   /* LEARN (a) step 2: "Why?" sits where "finish" does (the old training table's train.js:657, one foot row) */
.pick { display: block; text-align: center; text-decoration: none; margin: 4px 0 10px; }
/* the fold (train.js:653-655 "more ›"), and the box's room: at the practice table the box takes the others' row's place (the old car's
   seatsSlot, train.js:57-60: on the coached hand that row says nothing the box doesn't), so your hand stays on the screen under it. */
.coach .opt { padding: 8px 10px; min-height: 40px; font-size: 0.92rem; line-height: 1.3; }
.coach ~ main .others, #app:has(> .coach) > .chiprow { display: none; }   /* TOP BAR T2: the places' row is the platform's chip row now, above the coach */
/* the ask after (D1e): gold and first; the end window's other way on steps back to a ghost (the old car's withPick, train.js:589-592:
   the ask gold, the rest ghost) */
.sheet .pick ~ * .again { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px var(--accent); }
/* the beat (the four-eyes look #3190): one run of an animation per opening entry, its end shows the next (screen.mjs coachBox). An element
   with no size, never a loop; the old car's computers took their go after about 0.9 s (computer.js:14, BEAT_MS 900). */
.coach .beat { display: inline-block; width: 0; height: 0; overflow: hidden; animation: beat 0.9s linear 1; }
/* a table with no coach: the beat alone, out of the flow, so pacing never moves the table */
.pace { position: absolute; width: 0; height: 0; overflow: hidden; }
.pace .beat { display: inline-block; width: 0; height: 0; overflow: hidden; animation: beat 0.9s linear 1; }
@keyframes beat { from { opacity: 0.99; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .coach .beat, .pace .beat { animation-duration: 0.2s; } }
/* THE DOOR'S FACE (new_car_sow_022 AMENDMENT-02 D2, FS0007-FS0009; the old door, the old door's login.html:61-70, :151-187). A phone
   lays the signed-out door out as one column, exactly as before (the panes are display: contents); the strap is quiet under the name and
   Carl's line quieter still, in italic (:70, the old car's sow_062 D8). */
.door.out .pane { display: contents; }
.lead { display: grid; gap: 6px; max-width: 420px; justify-self: center; }
.lead .strap { opacity: 0.7; }
.lead .story { font-size: 0.9rem; line-height: 1.35; font-style: italic; opacity: 0.85; }
/* car|door.door-page: "See the games" under the lines, the bare door's form only (the old car's #peek, login.html:67-68: 15px, no
   underline); a 44px tap from the link's own padding */
.door .peek { margin: 0; justify-self: center; }
.door .peek .link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; text-decoration: none; padding: 0 8px; color: var(--accent, inherit); }
/* Two panes on a laptop or an upright iPad (:157-187, the old car's sow_052, CG-D-247; the stage centred top to bottom, CG-D-351): the name and
   its lines in the left half, the rest of the door in the right, each centred in its half. A phone held sideways (900+ wide, short) keeps
   the phone door (:163, review 2026-09-30). Layout only. */
@media (min-width: 744px) and (orientation: portrait), (min-width: 900px) and (min-height: 600px) {
  #app:has(> .door.out) { max-width: 1120px; }
  .door.out { grid-template-columns: minmax(0, 1fr) minmax(340px, 420px); column-gap: 72px; place-content: center stretch; align-items: center; }
  .door.out.practice { max-width: none; }
  .door.out .pane { display: grid; gap: 20px; align-content: center; }
  .door.out .pane.left h1 { font-size: 4rem; color: var(--accent); }
  .door.out .pane.left .strap { font-size: 1.4rem; opacity: 0.85; }
  .door.out .pane.right { justify-items: stretch; }   /* the felt and the button take the pane's width, as on a phone */
}
/* THE WELCOME (D2, FS0011; the old car's sow_069, the old door's #welcome, login.html:190-275): three pages over the practice face, the whole
   screen, above everything on it; the words in two rows every page shares, so neither the headline nor the line under it moves between
   pages (:214, D-01), and the dots, Back and the button never move either (:221, :226). Its scenes: below. */
html.welcoming { overflow: hidden; }   /* the page under it never scrolls or shows its bar (the old door's html.welcoming, login.html:559) */
.welcome { position: fixed; inset: 0; z-index: calc(var(--z-overlay) + 3); display: flex; flex-direction: column; justify-content: center; gap: 18px; text-align: center;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom)); background: var(--felt); color: var(--felt_ink); touch-action: pan-y; }
.welcome .wmark { font-size: 2.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.welcome .wwel { opacity: 0.85; margin-top: 6px; }
.welcome .wwords { display: grid; grid-template-rows: auto auto; max-width: 480px; margin: 0 auto; }
.welcome .wpg { grid-area: 1 / 1 / 3 / 2; display: grid; grid-template-rows: subgrid; }
.welcome .wpg:not(.on) { visibility: hidden; }
.welcome .whead { margin: 0; align-self: start; font-size: clamp(1.55rem, 8vw, 1.9rem); line-height: 1.08; text-transform: uppercase; letter-spacing: 0.03em; text-wrap: balance; }
.welcome .wsub { margin: 10px 8px 0; line-height: 1.35; opacity: 0.85; text-wrap: balance; }
.welcome .wctl { width: 100%; max-width: 420px; margin: 0 auto; }
.welcome .wdots { display: flex; gap: 7px; justify-content: center; margin: 18px 0; }
.welcome .wdots i { width: 8px; height: 8px; border-radius: 5px; background: currentColor; opacity: 0.35; }
.welcome .wdots i.on { width: 22px; background: var(--accent); opacity: 1; }
/* Back and Continue are ONE set (fix batch 1 n002, Carl's test round #2 "continue and back buttons need redesigning so they look better
   when there's 2 on the page"): one row of one height (the row stretches both), Back the gold button's outline twin, the same pill and the
   same gold as Continue, at full strength (it was a faded 14px-cornered square beside a bright pill). The old door's pair was one .btn of
   one height and radius (the old car's surface/login.html:222-225). */
.welcome .wnav { display: flex; align-items: stretch; gap: 10px; }
.welcome .wnav .wnext { flex: 1; min-width: 0; padding: 16px 8px; }
.welcome .wback { flex: 0 0 72px; font-size: 1.6rem; border-radius: 999px; border: 2px solid var(--accent); color: var(--accent); background: none; }
/* page 1 has no Back (fix batch 1 n001, Carl's test round #1 "continue button needs centring"): it takes no room, so Continue is the
   row's whole width and sits centred. The old door kept the empty slot so Continue never moved (the old car's surface/login.html:226,
   D4a); Carl's word now is the centre: Continue keeps its row and height, and only widens on page 1. */
.welcome .wback.hid { display: none; }
.welcome .wsign { margin: 10px 0 0; opacity: 0.9; }
.welcome .wsign a { color: inherit; display: inline-block; padding: 10px 4px; }
/* THE WELCOME'S SCENES (car|first_minute.welcome-pages; the old door's .wscenes, login.html:201-260): the stage takes the room the words
   leave (:201), a 300 x 260 stage centred in it (:206) and scaled down where the room is short (:207-210). Only the shown page's scene runs,
   once (:235, :245-248, :258); reduced motion holds each scene's last frame (:262-263). The felt places its own pieces (felt.css .wst). */
.welcome .wscenes { flex: 1 1 auto; min-height: 120px; display: grid; container-type: size; }
.welcome .wscene { grid-area: 1 / 1; position: relative; }
.welcome .wscene:not(.on) { visibility: hidden; }
.welcome .wst { position: absolute; left: 50%; top: 50%; width: 300px; height: 260px; translate: -50% -50%; }
@container (max-width: 299px) { .welcome .wst { scale: 0.92; } }
@container (max-height: 259px) { .welcome .wst { scale: 0.82; } }
@container (max-height: 215px) { .welcome .wst { scale: 0.66; } }
@container (max-height: 175px) { .welcome .wst { scale: 0.5; } }
.welcome .wphone { position: absolute; width: 78px; height: 140px; border-radius: 15px; border: 3px solid rgba(0, 0, 0, 0.75);
  background: radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, 0.14), rgba(0, 0, 0, 0.25)); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4); }
.welcome .wphone::before { content: ""; position: absolute; left: 26px; top: 5px; width: 20px; height: 4px; border-radius: 2px; background: rgba(0, 0, 0, 0.75); }
.welcome .wphone.p1 { left: 12px; top: 86px; } .welcome .wphone.p2 { left: 111px; top: 6px; } .welcome .wphone.p3 { left: 210px; top: 86px; }
.welcome .wcity { position: absolute; width: 98px; font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; }
.welcome .wcity.c1 { left: 2px; top: 234px; } .welcome .wcity.c2 { left: 101px; top: 154px; } .welcome .wcity.c3 { left: 200px; top: 234px; }
/* the old door's dashed trail between the phones (:233, an SVG path), drawn as two dashed arcs */
.welcome .wtrail { position: absolute; width: 50px; height: 60px; border: 2px dashed var(--accent); border-bottom: 0; opacity: 0.6; }
.welcome .wtrail.t1 { left: 60px; top: 46px; border-right: 0; border-radius: 40px 0 0 0; }
.welcome .wtrail.t2 { left: 190px; top: 46px; border-left: 0; border-radius: 0 40px 0 0; }
.welcome .w1.on .wtrail { animation: wfade 0.9s ease-out 0.1s both; }
@keyframes wfade { from { opacity: 0; } }
.welcome .wname { position: absolute; font-weight: 700; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.8; }
.welcome .wname.go { opacity: 1; color: var(--accent); }
.welcome .wname.n1 { left: 6px; top: 122px; } .welcome .wname.n2 { right: 6px; top: 122px; } .welcome .wname.n3 { left: 126px; top: 226px; }
.welcome .wnudge { position: absolute; right: 0; top: 0; z-index: 1; background: var(--sheet); color: var(--sheet_ink); border-radius: 14px; padding: 10px 14px;
  font-size: 14px; font-weight: 600; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); white-space: nowrap; }
.welcome .w2.on .wname.n3 { animation: wwas 1.5s linear 0.1s both; }
.welcome .w2.on .wname.n2 { animation: wturn 1.5s linear 0.1s both; }
.welcome .w2.on .wnudge { animation: wpop 1.5s ease-out 0.1s both; }
@keyframes wwas { 0%, 45% { opacity: 1; color: var(--accent); } 55%, 100% { opacity: 0.8; color: inherit; } }
@keyframes wturn { 0%, 50% { opacity: 0.8; color: inherit; } 60%, 100% { opacity: 1; color: var(--accent); } }
@keyframes wpop { 0%, 60% { opacity: 0; translate: 0 -10px; scale: 0.85; } 80% { opacity: 1; scale: 1.04; } 100% { opacity: 1; translate: 0 0; scale: 1; } }
/* page 3's coach bubble over the hand (the old door's #welcome .wbubble, surface/login.html:254-258): the sheet's colours, its tail */
.welcome .wbubble { position: absolute; left: 6px; right: 6px; top: 0; z-index: 1; background: var(--sheet); color: var(--sheet_ink); border-radius: 16px;
  padding: 12px 14px; font-size: 15px; line-height: 1.35; text-align: left; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); }
.welcome .wbubble b { display: block; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 2px; }
.welcome .wbubble::after { content: ""; position: absolute; bottom: -10px; left: 88px; border: 10px solid transparent; border-top-color: var(--sheet); border-bottom: 0; }
.welcome .w3.on .wbubble { animation: wpop 0.6s ease-out 0.1s both; }
@media (prefers-reduced-motion: reduce) { .welcome *, .welcome *::before, .welcome *::after { animation: none !important; } }

/* SWARM T2 THE PLACE LINK + THE LOBBY (groups 03 + 04): Your tables (the old car's surface/home.html: the invite, the hero, the rows, their
   two columns on a big screen, sow_068 S2), the tag in the top bar (switcher.js), the news window. Layout only; no timer. */
.lobby .window, .lobby .rules_line, .lobby .signed { margin: 4px 0; opacity: .9; }
.lobby .theirs { font-weight: 600; }
.tables { width: min(100%, 720px); }
.tables .tablehead { display: flex; align-items: center; justify-content: space-between; }
.tables .tablehead h2 { margin: 0; }
.tables .refresh { font-size: 1.4rem; min-width: 44px; min-height: 44px; }
.tables .inv, .tables .hero { border: 2px solid var(--accent); border-radius: 14px; padding: 12px 14px; display: grid; gap: 8px; position: relative; }
.tables .inv .t { margin: 0; }
.tables .inv .btns { display: flex; align-items: center; gap: 14px; }
.tables .hero .k { margin: 0; color: var(--accent); font-weight: 700; }
.tables .hero h2 { margin: 0; }
.tables .hero p { margin: 0; }
.tables .hero .herogo { justify-self: start; text-decoration: none; }
.tables .cols { display: grid; gap: 10px; }
.tables .col { display: grid; gap: 8px; align-content: start; }
@media (min-width: 760px) { .tables .cols { grid-template-columns: 1fr 1fr; } }
.tables .row { color: inherit; text-decoration: none; display: grid; grid-template-columns: 1fr auto auto auto; grid-template-areas: "gm age chev x" "st st st st";
  align-items: center; gap: 2px 10px; padding: 8px 4px; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.tables .row .gm { grid-area: gm; } .tables .row .st { grid-area: st; opacity: .9; } .tables .row .age { grid-area: age; } .tables .row .chev { grid-area: chev; }
.tables .row.gold .st { color: var(--accent); }
.tables .x { grid-area: x; border: 0; background: none; color: inherit; font: inherit; min-width: 44px; min-height: 44px; opacity: .7; }
.tables .hero .x { position: absolute; top: 4px; right: 4px; }
.topbar .tag, .topbar .nexttable { flex: none; white-space: nowrap; color: var(--accent); }   /* in .barend's row, before Chat (robot 15 F46) */
.topbar .tag[hidden], .topbar .nexttable[hidden], .topbar .turnstab[hidden], .topbar .bigaa[hidden] { display: none; }
/* look.size Aa (mail #5973): the old car's bar Aa (surface/app.css .bigaa, hat.js:43-46), a 44px tap last in the right cell; pressed wears the open tab's mark */
.topbar .bigaa { flex: none; min-width: 44px; min-height: 44px; margin-block: -4px; padding: 0 6px; }   /* robot 24 F1: the 44px tap overhangs the bar's 36px row, never grows it (the bar did not move a pixel before Aa) */
.topbar .bigaa[aria-pressed="true"] { box-shadow: var(--bar-tab-on); }
/* CG-D-1360 Q2 Next table ›, over the felt, bottom centre (the old car's app.css:1009 #swnext): over the ONE side tab (30), under every sheet */
.nexttable { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); transform: translateX(-50%); z-index: calc(var(--z-overlay) + 1); min-width: 180px;
  padding: 12px 20px; border: 2px solid var(--accent); border-radius: 999px; color: var(--accent); background: var(--sheet); text-align: center;
  text-decoration: none; font-weight: 600; box-shadow: 0 8px 22px rgba(0, 0, 0, .45); }
/* robot 17 F51: a skin that lifts every child of the page into its frame (position: relative) must not pull Next table › into the flow: it
   floats over the felt on every look (the old car's #swnext sat on body, app.css:1009) */
html:root #app > .nexttable { position: fixed; z-index: calc(var(--z-overlay) + 1); }
.topbar:has(.tag) .invite, .topbar:has(.nexttable) .invite { display: none; }
.news .kicker { margin: 0; color: var(--accent); font-weight: 700; }
/* sow_099 2.02 BAIZE_INVITATION (the mule's ask.js:309-315): the invitation is the baize panel under its lamp, a thin cream line, the host's
   name large in gold, who is at the table, the game; centred. The look's own felt and accent (no colour of its own), so every dress wears it. */
.scrim:has(.news.invite) { align-items: center; }
.scrim .sheet:has(> .news.invite) { width: min(340px, calc(100% - 32px)); border-radius: 16px; margin-bottom: 0; text-align: center; color: var(--felt_ink);
  background: radial-gradient(ellipse at 50% 20%, rgba(255, 255, 255, 0.10), rgba(0, 0, 0, 0.22) 85%), var(--felt);
  border: 1.5px solid rgba(255, 255, 255, 0.55); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); animation: inviterise .28s cubic-bezier(.2, .9, .3, 1.1) both; }
.news.invite { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.news.invite .kicker { font: 700 13px/1 var(--bar-title-face, inherit); letter-spacing: .18em; text-transform: uppercase; opacity: .9; }
.news.invite .host { margin: 6px 0 0; font: 700 40px/1.05 var(--bar-title-face, inherit); letter-spacing: .04em; text-transform: uppercase; color: var(--accent);
  overflow-wrap: anywhere; }
.news.invite .t { margin: 0; font-weight: 600; opacity: .9; }
.news.invite .g { margin: 0; font-size: 13px; opacity: .75; }
.news.invite .choices { width: 100%; margin-top: 10px; }
@keyframes inviterise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sheet:has(> .news.invite) { animation: none; } }
.news .lookrow { margin: 12px 0 4px; }   /* sow_099 1.05: pick your table as you say yes (the mule look.js:53 .lookrow) */
.news .lookrow .lbl { margin: 0 0 6px; font-size: 15px; opacity: .85; }
.invsheet .opt { display: grid; text-align: left; gap: 2px; }
.ways { margin-top: 12px; }
/* SWARM T4 THE END (group 06; kasten/platform/js/end.mjs). FS0220 one size for every end sheet: narrow, its words growing on a big
   screen instead of a wide sheet of small letters (the old car's app.css:1421-1428, CG-D-604 and CG-D-606 "one design everywhere"):
   --ek is the sheet's own scale, 1 on a phone, up to 1.3 on a laptop or iPad; the sheet at most min(360px x ek, 470px). */
.sheet:has(.results), .sheet:has(.between) { --ek: 1; width: min(calc(360px * var(--ek)), 470px, 100%); border-radius: 16px; margin-bottom: 12px; }
@media (min-width: 700px) { .sheet:has(.results), .sheet:has(.between) { --ek: 1.3; } .scrim:has(.results), .scrim:has(.between) { align-items: center; } }
/* FS0222 the results sheet (kit.js:37-61; app.css:942-975): the places tick in one by one, the crown lands; settled on a repaint */
.results .rres { display: flex; flex-direction: column; gap: 4px; padding-bottom: 8px; }
/* sow_099 4.02, the end panel (the mule's hat.js:476-485, its svfinal table: I · II · III by a CSS counter): the order in roman numerals, the
   place word kept for a screen reader (.vh); the kicker over the order says how long the game ran (end.mjs rkick) */
.results .rpos[data-n]::before { content: counter(rpos, upper-roman); }
.results .rres { counter-reset: rpos; } .results .rrow { counter-increment: rpos; }
.results .rpos .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.results .rkick { margin: 0 0 8px; font: 700 calc(13px * var(--ek)) / 1 var(--bar-title-face, inherit); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.results .rrow { display: flex; align-items: baseline; gap: 10px; padding: 5px 0; border-bottom: 1px solid rgba(0, 0, 0, .12); opacity: 0; animation: rtick .35s ease-out both; }
.results .rrow:last-child { border-bottom: 0; }
.results .rpos { text-transform: uppercase; /* MARRY: one word "1st" (T6's board, history.html:170), capitals here as the old results sheet did (app.css:952) */ font: 700 calc(22px * var(--ek)) / 1 var(--bar-title-face, inherit); letter-spacing: .04em; width: calc(48px * var(--ek)); opacity: .6; flex: none; }
.results .rnm { font: 700 calc(18px * var(--ek)) / 1.1 var(--bar-title-face, inherit); letter-spacing: .04em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.results .rsc { font-size: calc(18px * var(--ek)); font-weight: 700; }
.results .rrow.first .rpos, .results .rrow.first .rnm, .results .rnm.you { color: var(--accent); opacity: 1; }
.results .rwho { text-align: center; padding: 10px 0 4px; border-top: 1px solid rgba(0, 0, 0, .12); }
.results .rwho .is { margin: 4px 0 0; font: 700 calc(18px * var(--ek)) / 1.2 var(--bar-title-face, inherit); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.results .crown.big { display: inline-block; font-size: calc(44px * var(--ek)); line-height: 1; opacity: 0; animation: rfall .9s cubic-bezier(.2, .9, .3, 1.25) both; }
.results .crown.small { font-size: .9em; }
/* the felt's own sheet under it: its how-line is the caption, its tables stay; its head and list are the rows above (no twice) */
.results .result > .head, .results .result > ol { display: none; }
.results .result .how { text-align: center; font-size: calc(15px * var(--ek)); }
@keyframes rtick { from { transform: translateX(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rfall { 0% { transform: translateY(-160px) rotate(-30deg); opacity: 0; } 15% { opacity: 1; } 70% { transform: translateY(6px) rotate(-14deg); } 100% { transform: rotate(-8deg); opacity: 1; } }
.results.settled .rrow, .results.settled .crown.big { animation: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .results .rrow, .results .crown.big { animation: none; opacity: 1; } }
/* SH1 THE MARK'S MOMENT (the old car lane's mule walk 2026-11-18 fault 1; the old car's app.css:958-975): under the places the caption
   over the big name, the mark falling onto it (end.mjs sets each delay; rfall above is the crown's fall); settled on a repaint */
.results .rrow.last .rnm { opacity: .6; }
.results .mark.small { font-size: 1.1em; }
.results .rhi { position: relative; display: grid; grid-template-rows: auto 1fr auto; padding: 14px 0 8px; border-top: 1px solid rgba(0, 0, 0, .12); text-align: center; justify-items: center; min-height: calc(190px * var(--ek)); }
.results .rcap { animation: wfade .5s ease-out both; }
.results .rcap .is { margin: 0; font: 700 calc(22px * var(--ek)) / 1 var(--bar-title-face, inherit); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.results .rcap .hand { margin: 6px 0 0; font-weight: 600; font-size: calc(15px * var(--ek)); line-height: 1.3; opacity: .85; }
.results .rmark { align-self: end; position: relative; display: inline-block; max-width: 100%; }
.results .rbig { font: 700 calc(48px * var(--ek)) / .95 var(--bar-title-face, inherit); letter-spacing: .04em; text-transform: uppercase; color: var(--accent); overflow-wrap: anywhere; animation: wfade .3s ease-out both; }
.results .mark.big { position: absolute; font-size: calc(56px * var(--ek)); line-height: 1; left: calc(-44px * var(--ek)); top: calc(-46px * var(--ek)); filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .45)); opacity: 0; animation: rfall .9s cubic-bezier(.2, .9, .3, 1.25) both; }
.results.settled :is(.rcap, .rbig, .mark.big) { animation: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .results :is(.rcap, .rbig, .mark.big) { animation: none; opacity: 1; } }
/* FS0218 the between-hands sheet (hat.js:625-657; app.css .roundcard) */
.between .k { margin: 0 0 6px; font: 700 calc(20px * var(--ek)) / 1.2 var(--bar-title-face, inherit); letter-spacing: .04em; }
.between .line { margin: 0 0 4px; font-size: calc(15px * var(--ek)); }
.between .rtab { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: calc(16px * var(--ek)); }
.between .rtab th { font-weight: 600; font-size: .8em; opacity: .7; text-align: right; } .between .rtab th:first-child { text-align: left; }
.between .rtab td { padding: 6px 0; text-align: right; border-top: 1px solid rgba(0, 0, 0, .1); }
.between .rtab td.who { text-align: left; font-weight: 600; }
.between .rtab tr.top td.who, .between .rtab tr.top td.tot { color: var(--accent); }
.between .rtab td.tot { font-size: calc(22px * var(--ek)); font-weight: 700; width: 22%; } .between .rtab td.pts { width: 30%; }
.between .rtab td.plus, .between .rtab .up { color: #2e8b57; } .between .rtab td.minus, .between .rtab .down { color: #c0392b; }
.between .foot { margin: 6px 0 10px; font-size: calc(16px * var(--ek)); opacity: .8; }
.between .deal { display: block; width: 100%; padding: 14px; font-size: calc(18px * var(--ek)); }
/* FS0229-FS0231 What next, under the felt, with its fold (hat.js:469-527) */
.whatnext { position: relative; margin: 12px 0; padding: 14px 16px; border-radius: 14px; background: var(--sheet); color: var(--sheet_ink); display: grid; gap: 10px; text-align: center; }
.whatnext .k { margin: 0; font-weight: 700; font-size: 1.15rem; } .whatnext .line { margin: 0; }
.whatnext .x { position: absolute; top: 4px; right: 6px; min-width: 44px; min-height: 44px; }
/* robot 15 F47 (360 + 390, server tables): the ONE side tab (fixed, right 0, 44px reach) sat over What next's ✕; on a phone the
   panel keeps clear of it, as the end banner does (the end part's F37) */
@media (max-width: 699px) { body:has(.sidetab.more:not([hidden])) .whatnext { margin-right: 44px; } }
.whatnext .rematch { justify-self: stretch; padding: 14px; }
.whatnext .pair, .results .ladder, .whatnext .ladder { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }   /* LEARN (a) step 3: the ladder's two ways on, as What next's pair */
.results .ladder { margin-top: 12px; }
:is(.results, .whatnext) .ladder .deal { grid-column: 1 / -1; font-size: 1.1rem; padding: 14px 16px; }   /* stage 3 ladder-end: the gold way on, a row of its own (train.js endButtons, one gold) */
:is(.results, .whatnext) .lsay { margin: 12px 0 0; }   /* stage 3 ladder-end: the record line over the ways on (train.js:351-362) */
.whatnext .reason.lline { min-height: 1.4em; }   /* the panel's one refusal is one short line (the reason part, its room kept) */
.whatnext .pair .again, :is(.results, .whatnext) .ladder .again { background: transparent; display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px; text-decoration: none; color: inherit; box-shadow: inset 0 0 0 2px var(--accent); font-weight: 600; }
.whatnext.folded { padding: 0; background: none; } .whatnext .endfold { min-height: 44px; width: 100%; color: var(--felt_ink); }   /* on the felt, in the felt's ink */
.topbar .rematchq { justify-self: end; color: var(--accent); font-weight: 700; }
/* FS0236 the End game? tab at the edge while a game is in play, drawn once by the platform; the felt's own menu button gives way to it */
/* THE MOVE IN FLIGHT (Handling motion.in-flight; the old app.css:756, :779-783, sow_052 D7 CG-D-246): from the tap to the answer the table says so: a
   wait cursor, and a button tapped dims at once and past 300 ms pulses, still working. CSS only: a repaint of the page, no timer. */
#app[data-sending] main { cursor: progress; }
#app[data-sending] main button:disabled { filter: brightness(.65) saturate(.5); animation: working .8s ease-in-out .3s infinite alternate; }
@keyframes working { to { opacity: .4; } }
@media (prefers-reduced-motion: reduce) { #app[data-sending] main button:disabled { animation: none; } }
button { text-wrap: balance; }   /* words on two lines split evenly (the old car's Handling gaps:33) */
/* THE YOUR-GO CUE (cue.mjs; stage 1 item 10; the old car's aids.js:110-119, the old car's sow_047 D5): the banner lies inside the top bar and
   nothing else, never over the felt; it waits unseen for its delay (the 25 s clock: the time left, set at each paint) and fades in, and
   its animationstart is the buzz; once up it stays (.on) until a touch. The pulse is a transform, so nothing moves. Reduced motion keeps
   the clock (a 1ms fade) and drops the pulse. */
.topbar { position: relative; }
/* GOBAR (the old car lane's ruling #10517, after the swap nudge's #10503 ruling 2): EVERY banner sits just below the bar inside the page's gutter (the
   bar runs 16px past it, margin -16px), so a first tap on Turns, Chat or '‹ Tables' always lands; over the bar it took that tap (a tile table's go). */
.gocue { position: absolute; inset: auto 16px auto 16px; top: calc(100% + 6px); padding: 8px 12px; z-index: 5; display: flex; align-items: center;
  justify-content: center; text-align: center; line-height: 1.3; border-radius: 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
  background: var(--accent); color: var(--accent_ink); font-weight: 700; letter-spacing: .04em; visibility: hidden; opacity: 0;
  animation: gocue .25s ease-out forwards; }
.gocue.on { visibility: visible; opacity: 1; animation: none; }
/* THE SWAP NUDGE's banner (CELLS4 cell 4; #10503 ruling 2) is a sentence: it reads in sentence case; its place is every banner's (above) */
.gocue.ready { text-transform: none; letter-spacing: normal; }
@keyframes gocue { from { visibility: visible; opacity: 0; } to { visibility: visible; opacity: 1; } }
@keyframes cuepulse { 0% { transform: scale(1); } 40% { transform: scale(1.14); } 100% { transform: scale(1); } }
.cuepulse, [data-cuepulse] [data-go-cue] { animation: cuepulse .9s ease-out var(--cue-at, 0ms) 1; }   /* the page's pulse (cue.mjs): any go line, drawn when it may be */
@media (prefers-reduced-motion: reduce) { .gocue { animation-duration: 1ms; } .cuepulse, [data-cuepulse] [data-go-cue] { animation: none; } }
/* YOUR COLOUR (screen.mjs colourPick, stage 1 item 12): the palette's swatches in the ? sheet, each a round button in its colour (the felt's
   .oN gives --sc), the one worn ringed; the old car's chip picker (hat.js SWATCHES) */
.way.colour .swatches { flex-wrap: wrap; justify-content: center; }
.way.colour .sw { width: 44px; height: 44px; min-width: 44px; min-height: 44px; flex: none; padding: 0;   /* round: the button rules' 44px floor made them 36x44 ovals (robot 11 F-D3) */
   border-radius: 50%; background: var(--sc); border: 2px solid rgba(0, 0, 0, 0.35); }
.way.colour .sw[aria-checked="true"] { box-shadow: 0 0 0 3px var(--accent); border-color: transparent; }
/* sow_099 1.07 THE BANNER (sow_070 D2a; the mule's #yourgo, ask.js:437-445): another table's news slides down from the top over the bar,
   the sheet's own colours, one tap to go, ✕ to let it go; never over a window (it waits for the window's close) */
.newsbanner { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 8px); left: 50%; transform: translateX(-50%); z-index: calc(var(--z-overlay) + 2);
  width: min(calc(100% - 16px), 560px); box-sizing: border-box; display: flex; align-items: stretch; gap: 4px; padding: 4px;
  background: var(--sheet); color: var(--sheet_ink); border-radius: 14px; box-shadow: 0 6px 24px rgba(0, 0, 0, .35); animation: bannerdown .28s ease-out both; }
.newsbanner .go { flex: 1; min-height: 44px; display: grid; gap: 2px; text-align: left; padding: 8px 10px; border: 0; background: none; color: inherit; font: inherit; }
.newsbanner .l1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.newsbanner .l2 { font-size: .85em; color: var(--accent); font-weight: 600; }
.newsbanner .x { min-width: 44px; min-height: 44px; border: 0; background: none; color: inherit; font-size: 1.2rem; }
@keyframes bannerdown { from { transform: translate(-50%, -120%); } to { transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .newsbanner { animation: none; } }
@media (orientation: portrait) and (min-width: 744px), (min-width: 900px) and (min-height: 600px) { .newsbanner { zoom: 1.3; width: min(calc(100% - 16px), 560px); } }

/* sow_099 4.04 OPENING THE TABLE (the mule's app.css .opening): a quiet panel over the empty felt until the first answer, faded in past 300 ms */
.opening { margin: 30vh auto 0; padding: 12px 18px; border-radius: 12px; background: var(--sheet); color: var(--sheet_ink); text-align: center; width: fit-content;
  animation: openingin .25s ease .3s both; }
@keyframes openingin { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .opening { animation: none; } }

/* sow_099 4.04 "HOW WAS THAT?" (the mule's .howwas, ask.js:551-575): under the practice end panel's ladder, quiet, the sheet's own ink */
.howwas { display: grid; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent); text-align: center; }
.howwas .hk { margin: 0; font-weight: 600; }
.howwas input { font: inherit; padding: 8px 10px; border-radius: 8px; border: 1px solid color-mix(in srgb, currentColor 30%, transparent); background: transparent; color: inherit; }
.howwas .hm { display: flex; gap: 10px; justify-content: center; } .howwas .hm button { min-width: 64px; min-height: 44px; font-size: 20px; }
.howwas .hf { margin: 0; font-size: 13px; }
.results .lookhint { margin: 10px 0 0; font-size: 14px; text-align: center; opacity: .9; }   /* sow_099 4.04 the look, named once */
