/* receipt {"source":"kasten/platform/js/menu.css","source_sha":"5ef4da4effbc","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 MENU (new_car_sow_022 AM-05 T6). The bar's SHAPE and RULES are Kasten's; its icons and colours are the four-eyes team's look set (CG-D-743):
   tokens only here. The old car's nav.js:37-41 (sticky at the foot, the lit door gold with a 20px bar above it, 44px targets, a press
   shrinks it) and app.css:2047 (off the phone, the frame's last row across the full width, CG-D-610). */
/* fix batch 1 n004 (Carl's test round #4: "Icons at the bottom should sit on the table and not have the layer they seem to have that's
   blocking the table underneath"): the bar draws no layer of its own. The old car's bar had a band, a blur and a hairline (nav.js:37
   background shadow-a35, backdrop-filter blur(8px), border-top white-a12), lifted here; Carl's word now is the table under the doors, so
   all three go. The doors read on the felt by their own ink: a shadow under each word and each drawing, and each stays a 44px tap. */
.navbar { position: sticky; bottom: 0; z-index: calc(var(--z-chrome) + 1); display: flex; justify-content: space-around; margin: auto -16px -16px; padding: 4px 8px max(4px, env(safe-area-inset-bottom));
  background: none; }
/* N04 ROUND 2 (the review of n04: with no band, the page's own text and buttons ran under the doors): THE PAGE SCROLLS IN ITS OWN BOX above
   the doors. A page with the bar is the screen's height; the page (what menu.mjs withBar puts before the bar) takes the room left and
   scrolls inside it, and the bar holds its own height (the doors and the safe-area inset) at the foot, out of that box. So nothing written
   or tappable is ever under a door, at rest or scrolled, while the felt and the table's frame (drawn behind #app) run under the doors.
   The old car's own "the page is the screen" rule for its lists (nav.js:43-46, CG-D-386 D1a/D2a), here for the whole page. */
#app:has(> .navbar) { height: 100dvh; min-height: 0; overflow: hidden; }
#app:has(> .navbar) > :first-child:not(.navbar) { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 12px; }
#app:has(> .navbar) > .navbar { position: relative; flex: none; margin-top: 0; }
.navbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 56px; min-height: 44px;
  color: inherit; text-decoration: none; opacity: .85; font: 600 11px/1 var(--font); letter-spacing: .04em; text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .9), 0 0 6px rgba(0, 0, 0, .6); transition: transform var(--press-out, 180ms); }
.navbar a:active { transform: scale(.94); transition-duration: var(--press-in, 90ms); }
.navbar a.on { opacity: 1; color: var(--accent); }
.navbar a.on::before { content: ""; position: absolute; top: -4px; left: 50%; width: 20px; height: 3px; margin-left: -10px; border-radius: 0 0 4px 4px; background: var(--accent); }
/* the doors' icons (stage 2 menu.four-doors-bar; the old car's nav.js:38-41): Hark's drawings colour themselves from these roles, set on each
   door: the line in the door's ink, a tone of it inside, one glint of the sheet's light; the lit door's tone stronger and its glint brighter. */
.navbar a { --i-line: currentColor; --i-tone: color-mix(in srgb, currentColor 13%, transparent); --i-glint: color-mix(in srgb, var(--sheet, #fff) 55%, transparent); }
.navbar a.on { --i-tone: color-mix(in srgb, currentColor 22%, transparent); --i-glint: color-mix(in srgb, var(--sheet, #fff) 80%, transparent);
  --i-felt: var(--icon-felt); --i-wood: var(--icon-wood); }   /* stage 2 menu.icons: the lit door's baize and walnut fills (nav.js:40; CG-D-742 Hark's lifted fills; the look's rows) */
.navbar .ic { display: block; width: 24px; height: 24px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .85)); }
/* stage 2 door.install-bar (the old car's install.js:31-36): docked 8px above the bar, inside its box so it never sits on a door; the gold band */
.navbar .installbar { position: absolute; left: 12px; right: 12px; bottom: calc(100% + 8px); display: flex; gap: 10px; align-items: center; padding: 10px 12px;
  border-radius: 12px; background: var(--accent); color: var(--accent_ink); box-shadow: 0 6px 24px rgba(0, 0, 0, .35); text-transform: none; letter-spacing: normal; }
.navbar .installbar p { flex: 1; margin: 0; font: 600 15px/1.3 var(--font); }
.navbar .installbar button { min-height: 44px; min-width: 44px; border: 0; border-radius: 8px; font: 700 15px var(--font); }
.navbar .installbar .go { padding: 0 14px; background: var(--accent_ink); color: var(--accent); }
.navbar .installbar .x { background: transparent; color: var(--accent_ink); font-size: 18px; }

/* the menu's pages: one column on a phone; the page frame's columns off it (CG-D-610, home.html:136-137) */
.menupage { flex: 1; display: flex; flex-direction: column; gap: 14px; text-align: left; }
.menupage .pagehead { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.menupage .pagehead h1 { margin: 0; font-size: 1.8rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menupage .who { display: flex; flex-direction: column; min-width: 0; }
.menupage .who .at { opacity: .75; }
/* #6276 N7 (sow_082 S2, room to grow): My tables' two pickers ride one group. When the row cannot hold the name and both, the group drops
   under the name and wraps in itself; the name keeps its line and no picker word is cut, in any language, at 320 */
.menupage .pagehead:has(> .picks) { flex-wrap: wrap; row-gap: 8px; }
.menupage .pagehead > .who:has(+ .picks) { flex: 1 1 9rem; }
.menupage .pagehead > .picks { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-left: auto; max-width: 100%; }
.menupage .pagehead > .picks select { max-width: 100%; }
.menupage .brand { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.menupage .pbody { display: flex; flex-direction: column; gap: 14px; }
.menupage .pcol { display: contents; }
.menupage .section { display: grid; gap: 8px; }
.menupage .lbl { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.menupage .empty, .menupage .fit { margin: 0; opacity: .85; }
.menupage a { color: inherit; }
.menupage .btn, .menupage .deal { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border-radius: 999px; text-decoration: none; font-size: 1rem; }
.menupage .btn { border: 0; background: transparent; box-shadow: inset 0 0 0 2px var(--accent); color: inherit; }
.menupage .deal { background: var(--accent); color: var(--accent_ink); }
.menupage .btn:active, .menupage .deal:active { transform: scale(.97); }
.menupage .tlink { display: flex; align-items: center; min-height: 44px; text-decoration: none; opacity: .9; }
/* MARRY (G10 #3347 R5): the picker is signed (FS0287, cg #3102); it wore the browser's own white box. Dressed as the old car's (home.html:127-128):
   44px, see-through on the page, the page's ink, a thin border; its open list on the sheet's colours so the names stay readable. The name gives
   way first, never the picker (home.html:123-124). */
.names select { min-height: 44px; max-width: 9.5rem; border-radius: 8px; padding: 0 6px; font: inherit; font-weight: 600; letter-spacing: .04em;
  color: inherit; background: transparent; border: 1px solid color-mix(in srgb, currentColor 30%, transparent); }
.names select option { color: var(--sheet_ink); background: var(--sheet); }
/* #6276 COST: the language picker draws each language's own name in the phone's own font. A select is measured by every option in its
   own face, so "Ελληνικά" alone made an English page fetch the Greek companion (5,264 B), the door's first paint too; in the phone's font
   no face is fetched for a name, and a page in Greek still fetches its face for its own words */
.names.lang select, .names.lang option { font-family: system-ui, sans-serif; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* My tables: the hero, the empty table, the pair (home.html:300-311) */
/* stage 3 car|offline.that-was-me: "Was that you?", a box at the top of Results (the old car's .offask, home.html:35), its two answers side by side */
.menupage .offask { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: rgba(0, 0, 0, .18); }
.menupage .offask .t { margin: 0; }
.menupage .offask .btns { display: flex; flex-wrap: wrap; gap: 8px; }
.tables .hero { display: grid; gap: 8px; padding: 14px; border-radius: 14px; background: rgba(0, 0, 0, .18); box-shadow: inset 0 0 0 2px var(--accent); }
.tables .hero h2 { margin: 0; font-size: 1.3rem; }
.tables .hero .k { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.tables .hero .hlink { text-decoration: none; }
/* CG-D-1681 item 5: the hero's leave ✕ top right, out of the grid's flow (the old car's .hero .x, home.html:145; a row's grid-area x is not the hero's) */
.menupage .hero > .x { grid-area: auto; }
.tables .fresh { display: grid; gap: 10px; justify-items: center; padding: 18px 12px; border-radius: 16px; background: rgba(0, 0, 0, .18); text-align: center; }
.tables .fresh .mine { display: grid; justify-items: center; gap: 4px; }
.tables .fresh .chair { font-size: 2.4rem; }
.tables .fresh .q { margin: 0; font-size: 1.1rem; }
.tables .acts { display: flex; gap: 10px; }
.tables .acts > * { flex: 1; }
/* MARRY (G10 #3354 question): T2's table rows are "place row" and lay out as screen.css's grid (the ✕ on the top line, the
   old car's home.html:41 and :212 "the ✕ stays inside its row"); this flex rule, the same weight and loaded later, wrapped the › and ✕
   onto a line of their own. It now leaves T2's rows alone. */
.tables .place:not(.row) { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; flex-wrap: wrap; }
.tables .place.in b { color: var(--accent); }
.sc, .res { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; min-height: 44px; align-items: center; text-decoration: none; }
.sc .sub { grid-column: 1 / -1; font-size: .85rem; opacity: .75; }
.res { grid-template-columns: 4.2rem 1fr 2.6rem; }
.reshead { display: grid; grid-template-columns: 4.2rem 1fr 2.6rem; gap: 10px; font-size: .75rem; opacity: .7; text-transform: uppercase; letter-spacing: .06em; }
.res .pos, .reshead .pos { text-align: right; }
.res .pos.first { color: var(--accent); font-weight: 700; }
.res .mk { opacity: .75; }
/* the fold, link and button alike (My tables' "See all your games ›", All your games' "Didn't finish (N) ›"): the old car's look, gold,
   centred, 14px, no underline -- surface/history.html:69 and surface/home.html:72 (.resfold: justify-content center, font-size 14px,
   color var(--gold), text-decoration none); the car's gold is --accent. One rule for both: new_car_sow_022 AMENDMENT-09 stage 2,
   car|board.the-board, cg #6167 R3a. The page's link rule at :38 (.menupage a, colour inherit) is more specific than a bare .resfold and would repaint the link. */
.resfold, .menupage a.resfold { display: flex; align-items: center; justify-content: center; min-height: 44px; font-size: 14px; color: var(--accent); text-decoration: none; }
/* the fold as a button wears the link's look, not the browser's grey button: surface/history.html:69 (border 0, background none,
   font inherit). Stage 2 walk W2. */
button.resfold { border: 0; background: none; padding: 0; }

/* Games: Explore, the list, a game's page (browse.html) */
.games .first { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; box-shadow: inset 0 0 0 2px var(--accent); text-decoration: none; }
.games .chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { min-height: 44px; min-width: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); background: transparent; }
.seg button.on { background: var(--accent); color: var(--accent_ink); border-color: transparent; }
.games .list { display: grid; gap: 8px; }
.gcard { display: grid; grid-template-columns: 3rem 1fr auto; align-items: center; gap: 10px; min-height: 56px; padding: 8px 12px; border-radius: 12px; background: rgba(0, 0, 0, .18); text-decoration: none; }
.gcard .n { font-weight: 700; text-align: center; }
.gcard .mkc { display: flex; flex-direction: column; align-items: center; gap: 2px; }   /* the drawn piece over who it takes (browse.html:52-53) */
.gcard .mk, .gpage .mk { display: block; width: 30px; height: 39px; }
.gcard .gb { display: grid; }
.gcard .one { font-size: .9rem; opacity: .8; }
.gpage { display: grid; gap: 10px; }
.gpage h3 { margin: 0; font-size: 1.4rem; }
.gpage .ghead { display: flex; align-items: center; gap: 12px; }   /* the mark beside the name and line (browse.html:72-73) */
.gpage .ghead .mk { flex: none; width: 40px; height: 52px; }
.gpage p { margin: 0; }
.gpage .story { display: grid; gap: 6px; }
.gpage .sh { font-weight: 700; }
.gpage .src { font-size: .8rem; opacity: .7; overflow-wrap: anywhere; }
.gpage .gacts { display: flex; flex-wrap: wrap; gap: 8px; }
.gpage .deal, .gpage .btn { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: 999px; text-decoration: none; color: inherit; }
.gpage .deal { background: var(--accent); color: var(--accent_ink); }
.gpage .btn { box-shadow: inset 0 0 0 2px var(--accent); }
.rules .book { display: grid; gap: 8px; }
.rules .book h2 { margin: 10px 0 0; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.rules .book p, .rules .book .li { margin: 0; line-height: 1.5; }
.rules .book .li { padding-left: 14px; position: relative; }
.rules .book .li::before { content: "·"; position: absolute; left: 2px; }
.rules .book .note { padding: 12px; border-radius: 10px; background: rgba(0, 0, 0, .2); }

/* You: Settings rows, each its line under it (login.html:390-444) */
.you .setrow { display: grid; gap: 6px; }
.you .setrow > .btn { justify-content: flex-start; }
.you .why { font-size: .9rem; }
.you .me-box { display: grid; gap: 6px; padding: 12px; border-radius: 12px; background: rgba(0, 0, 0, .18); }
.you .me-box .nm { text-align: left; padding: 0; text-decoration: none; font-size: 1.2rem; }
.you .setgap { height: 12px; }
.you .form { display: grid; gap: 10px; }
.you .form label { display: grid; gap: 4px; }
.you .form input { min-height: 44px; font: inherit; padding: 0 10px; border-radius: 8px; border: 1px solid rgba(0, 0, 0, .2); }
.you .help { display: grid; gap: 8px; }

/* the Board (board.html) */
.board .wrap { overflow-x: auto; }
.board table { width: 100%; border-collapse: collapse; }
.board th, .board td { padding: 8px 6px; text-align: left; }
.board .num { text-align: right; }
.board .zero { opacity: .45; }
.board tr.mine td { color: var(--accent); }
.history .backlink { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.history .pagehead { flex-direction: column; align-items: flex-start; gap: 0; }
.history .summary { display: none; }
.history .stat b { font-size: 1.6rem; margin-right: 6px; }
/* stage 2 my_games.all-your-games (history.html:56-64): Which game / Who with rows smaller, Finished at the foot under a rule; a table that
   did not finish reads dim (history.html:116) */
.history .stat.sub b { font-size: 1.1rem; }
.history .stat.tot { border-top: 1px solid rgba(255, 255, 255, .25); padding-top: 8px; }
.history .res.dim { opacity: .65; }
.history .filter { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 44px; margin: 0; }
.history .filter a { display: inline-flex; align-items: center; min-height: 44px; }

/* "+ Tell us" and "End game?" (ask.js:509-525, :606-635): narrow tabs on the window's right edge; End game? just above Tell us */
.sidetab { position: fixed; right: 0; z-index: calc(var(--z-chrome) + 2); min-height: 44px; min-width: 44px; padding: 10px 8px; border: 0; border-radius: 10px 0 0 10px;
  writing-mode: vertical-rl; transform: rotate(180deg); background: var(--sheet); color: var(--sheet_ink); font-size: .85rem; letter-spacing: .04em; opacity: .9; }
.sidetab.tellus { bottom: 30%; }
.sidetab.more { bottom: 30%; }   /* AM-07 M1+M2: at a table, ONE tab where Tell us sits on the menu pages (CG-D-564/597) */
/* fix batch 1 n010 (Carl's test round #10): the hand's picks open from a small icon in the same right-edge gutter, just under the More tab,
   by the hand (screen.mjs handPicksBody). A 44px square, upright; its drawing is two fanned pieces in CSS (never an emoji, as the bar's doors).
   In the window, the sheet's title says "Your hand", so the picks' own heading is not said twice. */
/* #app > : a dressed skin puts every child of #app in its flow (a dressed skin's room.css html[data-look^="sv-"] #app > * { position: relative });
   the icon stays fixed on the edge, so it never pushes the table about */
#app > .sidetab.handpick { position: fixed; z-index: calc(var(--z-chrome) + 2); bottom: calc(30% - 52px); width: 44px; padding: 0; writing-mode: horizontal-tb; transform: none; display: grid; place-items: center; }
.sidetab.handpick .hp { position: relative; display: block; width: 22px; height: 20px; }
.sidetab.handpick .hp::before, .sidetab.handpick .hp::after { content: ""; position: absolute; bottom: 0; width: 11px; height: 16px; border: 2px solid currentColor;
  border-radius: 3px; background: var(--sheet); transform-origin: 50% 100%; }
.sidetab.handpick .hp::before { left: 2px; rotate: -16deg; }
.sidetab.handpick .hp::after { right: 2px; rotate: 16deg; }
.handpicks { display: grid; justify-items: center; gap: 8px; padding-bottom: 8px; }
.handpicks .wayhead { display: none; }
/* the tab keeps its own gutter on a phone, so it never sits on a line (the old car's --tabgut, nav.js:39). Keyed on the TAB, not on a page's
   class, as the old car keeps the room "only when the page HAS a side tab" whatever the page is (surface/app.css:2024-2030,
   ask.js:808-815; app.css:1431-1435 "stop 28px from the edge (22 + 6 air)": ours is 44 wide, so 16 + 40). Keyed on .menupage it missed
   Friends (.friends.page) and the tab sat on Add / Invite / Share (stage 2 walk W1, 390x844 and 320x640). The page is what menu.mjs withBar
   puts BEFORE the bar and the tab; what screen.mjs paint adds after the tab (the scrim and its sheet) keeps the whole width. */
@media (max-width: 767px) { #app:has(> .sidetab.tellus) > :not(.navbar, .sidetab, .sidetab ~ *) { padding-right: 40px; } }
.tell textarea, .tell input[name="tellname"] { width: 100%; min-height: 9rem; font: inherit; padding: 10px; border-radius: 10px; border: 1px solid rgba(0, 0, 0, .2); }
.tell input[name="tellname"] { min-height: 44px; }   /* AMENDMENT-09 stage 2 car|feedback.tell-us: the name box for someone signed out: one line, a 44px target */

/* Bigger pieces and words (look.size, mail #5973; Carl's lock sow_034 S4 D2 "+25% on each step", the old car's surface/app.css:1354-1356, its
   html.big from hat.js:39-46): Aa on is ONE dial, --aa, the look's size step; off, --aa is unset and every reader takes 1. The words grow
   by it on every screen, a phone too (the 768px-only 118% of FS0290, login.html:399-400, goes: #5973 b); each felt multiplies its pieces. */
html[data-big] { --aa: var(--size-step, 1); font-size: calc(100% * var(--aa)); }

/* off the phone: the frame's columns (CG-D-610): My tables three, Games and You two, the bar the frame's last row across the full width */
@media (min-width: 768px) {
  #app:has(.menupage) { max-width: 1120px; }
  .menupage .pbody { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; gap: 24px; }
  .menupage .pcol { display: grid; gap: 14px; align-content: start; }
  .tables .pcol[data-col="c"] .tally { max-height: 40vh; overflow-y: auto; overscroll-behavior: contain; }
  .history .summary { display: grid; }
  .navbar { margin: auto -16px -16px; }
}

/* AM-08 v1 T1 THE CHAT TAB + SHEET (the old car's Turns | Chat panel, surface/hat.js:718-850, and its Say box, ask.js:670-760), every table */
.talk { display: grid; gap: 8px; min-width: min(86vw, 420px); }
.talklog { max-height: min(50vh, 360px); min-height: 96px; overflow-y: auto; overscroll-behavior: contain; display: grid; align-content: start; gap: 6px; }
.talklog .tline { overflow-wrap: anywhere; line-height: 1.35; }
.talklog .tline .who { text-transform: capitalize; }
.talklog .tline.own .who { opacity: .7; }
.talklog .tline.newrule::before { content: attr(data-new); display: flex; align-items: center; gap: 10px; margin: 2px 0 6px; color: #b3261e; font-size: .7rem; font-weight: 700; letter-spacing: .12em; }
.talklog .none { opacity: .7; }
.talksay { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.talksay[hidden] { display: none; }
.talksay input { min-height: 44px; min-width: 0; font: inherit; padding: 0 10px; }
.talksay .say { min-height: 44px; padding: 0 16px; }
/* sow_099 4.01 THE SAVOY CHAT, every game (the mule's hat.js:851-875, ask.js:719-731, Hark's chat.png): the lacquer panel, a speaker's coin
   in their place colour with the name and the time, a reaction in gold, the six reactions above the Say box; a calling panel under the sender's
   chip that fades on its own (CSS, no timer). The look's own tokens (sheet, accent), so every dress wears it. */
.talk { background: linear-gradient(180deg, color-mix(in srgb, var(--sheet) 92%, #000), var(--sheet)); border-radius: 12px; padding: 10px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.talklog .tline { display: grid; grid-template-columns: 26px auto 1fr; column-gap: 8px; align-items: baseline; }
.talklog .tline .tcoin { grid-row: span 2; align-self: start; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font: 700 12px/1 var(--bar-title-face, inherit);
  background: var(--sc, var(--accent)); color: color-mix(in srgb, var(--sc, var(--accent)) 30%, #1a120c); }
.talklog .tline .at { font-size: .72rem; opacity: .6; }
.talklog .tline .said { grid-column: 2 / -1; }
.talklog .tline.react .said { color: var(--accent); font-weight: 700; font-size: 1.1rem; }
.talk .reacts { display: flex; flex-wrap: wrap; gap: 6px; }
.talk .reacts[hidden] { display: none; }
.talk .reacts .react { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--accent); background: transparent; color: var(--accent); font: inherit; font-weight: 600; }
.talk .reacts .react:disabled { opacity: .45; }
