:root { --sai-top: max(env(safe-area-inset-top, 0px), 20px); }   /* the top safe area: never less than a status bar */
/* Tall phones have a Dynamic Island: keep at least its height clear even when the
   host reports no inset (a browser, or a web view that doesn't pass it on). */
@media (min-height: 780px) and (max-width: 500px) { :root { --sai-top: max(env(safe-area-inset-top, 0px), 59px); } }
html.sim-island { --sai-top: 59px; }
/* Odds & Dens · one-item market. Paper palette from the approved mockup.
 * Scene geometry uses --s = phone width / 432 logical points (SCENE-LAYERS.json). */
:root {
  --paper: #f6efe0; --paper-2: #efe4cc; --card: #fffdf7; --ink: #2f2a24; --ink-2: #6d6254; --line: #d9ccb2;
  --footer-h: 66px; --accent: #2f6f5e; --accent-2: #e3efe9; --warn: #b5541c; --display: Georgia, 'Iowan Old Style', 'Times New Roman', serif; --shadow: 0 1px 2px rgba(60,40,10,.18), 0 4px 12px rgba(60,40,10,.10); --accent-ink: #1f5446; --gold: #f2c14e; --gold-deep: #c99a1e; --gold-ink: #8a6a1f; --red: #c7362b; --red-ink: #8a3a2c; --warn-ink: #7a3610; --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --shadow-2: 0 10px 30px rgba(35,28,18,.22), 0 2px 6px rgba(35,28,18,.12);
  --tap: 44px;
  /* Every gift card face is 1.6:1, height from width (founder rule 2026-11-02; DS.CardFace.aspect in the app,
     PARITY row DESIGN-03). Chips and swatches set --face-w only; their height is --face-w / this. */
  --card-face-aspect: 1.6;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: #cfc6b4; color: var(--ink); font: 16px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif; }
button { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { min-height: 100%; display: flex; justify-content: center; align-items: center; }

/* Phone: full screen on a phone, framed on a desktop. */
.phone { --s: .9; position: relative; width: 100vw; height: 100vh; height: 100dvh; overflow: hidden; background: var(--paper); isolation: isolate; }
@media (min-width: 520px) and (min-height: 700px) {
  .wrap { padding: 20px; }
  .phone { width: 390px; height: min(844px, calc(100vh - 40px)); border-radius: 38px; box-shadow: 0 0 0 10px #111, 0 24px 60px rgba(60,40,10,.35); }
}
#scene { position: absolute; left: 0; top: 0; z-index: 0; will-change: transform; transition: none; }

/* Top: market label and the one active objective */
#top { position: absolute; z-index: 5; left: 0; right: 0; top: 0; padding: max(10px, var(--sai-top)) 12px 0; }
.market-label { margin: 0 0 6px; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.55); }
.objective { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 60px; padding: 8px 12px; border: 0; border-radius: 16px; background: rgba(251,247,238,.95); box-shadow: var(--shadow); text-align: left; cursor: pointer; }
.objective img { width: 44px; height: 44px; object-fit: contain; flex: none; }
.objective .obj-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.objective b { font-size: 18px; }
.objective small { color: var(--ink-2); font-size: 14px; }
.objective.done { background: #eaf4ee; }
.objective.last { cursor: default; }
.objective .check { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 22px; flex: none; }
.dots { display: flex; gap: 4px; margin-top: 3px; flex-wrap: wrap; }
.dots i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--accent); }
.dots i.on { background: var(--accent); }
.chev { font-size: 20px; color: var(--ink-2); transition: transform .2s; }
.objective[aria-expanded="true"] .chev { transform: rotate(180deg); }
.obj-list { margin-top: 6px; max-height: 56vh; overflow: auto; border-radius: 14px; background: rgba(251,247,238,.97); box-shadow: var(--shadow); padding: 6px 12px 10px; }
.li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.li:last-of-type { border-bottom: 0; }
.li img { width: 30px; height: 30px; object-fit: contain; }
.li span:not(.n) { flex: 1; display: flex; flex-direction: column; }
.li small { color: var(--ink-2); font-size: 13px; }
.li .n { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.li.active b { color: var(--accent); }
.li.done { opacity: .6; }
.fine { font-size: 13px; color: var(--ink-2); margin: 6px 0; }
.fine.center { text-align: center; }

/* Speech on the scenic stage, right of the resting seller */
.bubble { position: absolute; z-index: 4; left: calc(222px * var(--s)); width: calc(196px * var(--s)); top: calc(286px * var(--s)); padding: 9px 12px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); font-size: 15px; transition: transform .35s, opacity .25s; }
.bubble::before { content: ""; position: absolute; left: -7px; top: 26px; border: 7px solid transparent; border-right-color: var(--card); border-left: 0; }
.bubble .who { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.bubble .plan { display: block; margin-top: 4px; color: var(--accent); font-weight: 600; font-size: 13px; }
.shopping .bubble { transform: translateY(calc(-118px * var(--s))); }

/* Sheet: comparison rows and the attached purchase */
.sheet { position: absolute; z-index: 3; left: 0; right: 0; top: calc(548px * var(--s)); bottom: calc(64px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; background: linear-gradient(to bottom, rgba(246,239,224,.0), var(--paper) 18px); transition: top .35s ease; }
.shopping .sheet { top: calc(432px * var(--s)); }
.sheet-body { flex: 1; overflow-y: auto; padding: 14px 12px 12px; overscroll-behavior: contain; }
.rows-label { margin: 2px 4px 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.row { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); margin-bottom: 10px; overflow: hidden; }
.row.selected { outline: 2px solid var(--accent); }
.row.gone-soon { opacity: .5; }
.row-top { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 64px; padding: 8px 12px; border: 0; background: none; text-align: left; cursor: pointer; }
.portrait { width: 52px; height: 52px; border-radius: 50%; flex: none; background: #fff5df; border: 3px solid var(--b); overflow: hidden; }
.portrait canvas { width: 100%; height: 100%; }
.row-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-name { font-size: 17px; }
.row-shop, .row-stock { font-size: 12px; color: var(--ink-2); }
.row-price { display: flex; flex-direction: column; align-items: flex-end; text-align: right; align-self: flex-start; padding-top: 2px; }
.row-price b { font-size: 19px; font-variant-numeric: tabular-nums; }
.row-price small { font-size: 12px; color: var(--ink-2); }
.card-line { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--accent); }
.card-line.none { color: var(--ink-2); font-weight: 400; font-style: italic; }
.soon { font-style: normal; font-size: 11px; font-weight: 700; color: var(--warn); background: #fbe9dc; border-radius: 6px; padding: 1px 5px; }
.mini { position: relative; --face-w: 30px; width: var(--face-w); height: calc(var(--face-w) / var(--card-face-aspect)); border-radius: 4px; flex: none; background: var(--b); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), 0 1px 2px rgba(60,40,10,.25); display: inline-grid; place-items: center; }
.mini i { width: 13px; height: 13px; background: var(--i); -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.mini img { height: 14px; }
.mini.big { --face-w: 46px; }
.mini.big i { width: 20px; height: 20px; }
.mini.big img { height: 22px; }
.env { width: 46px; height: 29px; border-radius: 4px; flex: none; background: linear-gradient(135deg, #e9d7ae, #d8bf86); box-shadow: 0 1px 2px rgba(60,40,10,.25); display: inline-grid; place-items: center; }
.env img { height: 20px; }
.linkbtn { min-height: var(--tap); padding: 0 12px; border: 0; background: none; color: var(--accent); font-size: 14px; font-weight: 600; cursor: pointer; }
.row { position: relative; }
.row-top { padding-bottom: 30px; }
.goods-toggle { position: absolute; right: 2px; bottom: 0; min-height: 40px; font-size: 13px; }
.row.selected .row-top { padding-bottom: 8px; }
.goods { border-top: 1px dashed var(--line); padding: 4px 12px 10px; }
.good { display: flex; align-items: center; gap: 8px; width: 100%; min-height: var(--tap); padding: 4px 6px; border: 0; background: none; font-size: 14px; text-align: left; }
.good img { width: 30px; height: 30px; object-fit: contain; }
.good span:not(.p) { flex: 1; display: flex; flex-direction: column; }
.good .p { color: var(--ink-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.good.pick { cursor: pointer; border-radius: 10px; }
.good.pick:hover, .good.pick:focus-visible { background: var(--paper-2); }
.good.sold { opacity: .45; }
.tag { align-self: flex-start; margin-top: 2px; font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-2); border-radius: 6px; padding: 1px 5px; }

.checkout { border-top: 1px solid var(--line); background: #fbf7ee; padding: 10px 12px 12px; }
.qtyrow { display: flex; align-items: center; gap: 12px; }
.qtytile { display: flex; align-items: center; gap: 6px; min-height: 56px; padding: 6px 12px; border: 2px solid var(--accent); border-radius: 12px; background: var(--card); cursor: pointer; }
.qtytile img { width: 38px; height: 38px; object-fit: contain; }
.qtytile .x { font-size: 20px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.qtyhint { font-size: 13px; color: var(--ink-2); }
.qtyhint b { color: var(--ink); font-weight: 600; }
.bill { margin: 10px 0 8px; font-size: 16px; font-variant-numeric: tabular-nums; }
.src { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 54px; margin-bottom: 6px; padding: 7px 10px; border: 2px solid transparent; border-radius: 12px; background: var(--card); text-align: left; cursor: pointer; box-shadow: 0 1px 2px rgba(60,40,10,.12); }
.src.sel { border-color: var(--accent); background: #eef6f2; }
.src:disabled { opacity: .5; cursor: default; }
.src-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.src-text small { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.src .take { font-weight: 700; color: var(--accent); text-align: right; font-variant-numeric: tabular-nums; }
.src.cash .take { color: var(--ink); font-weight: 600; }
.owed { margin: 6px 2px; font-weight: 700; color: var(--ink-2); }
.owed.ready { color: var(--accent); }
details { margin-top: 4px; border-top: 1px dashed var(--line); }
summary { min-height: var(--tap); display: flex; align-items: center; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--accent); }
.other, .adj { display: flex; align-items: center; gap: 8px; min-height: 40px; font-size: 14px; }
.other span { flex: 1; }
.other small { color: var(--ink-2); }
.adj span { flex: 1; }
.adj button { width: var(--tap); height: var(--tap); border-radius: 10px; border: 1px solid var(--line); background: var(--card); font-size: 20px; cursor: pointer; }
.adj button:disabled { opacity: .35; }

.paybar { display: flex; gap: 10px; padding: 8px 12px; background: var(--paper); border-top: 1px solid var(--line); }
.primary, .ghost { min-height: 50px; padding: 0 18px; border-radius: 14px; font-weight: 700; cursor: pointer; }
.primary { border: 0; background: var(--accent); color: #fff; }
.primary:disabled { background: #b8c7c0; cursor: default; }
.ghost { border: 1.5px solid var(--line); background: var(--card); }
.ghost.small, .primary.small { min-height: var(--tap); padding: 0 12px; font-size: 14px; }
.wide { width: 100%; margin-top: 8px; }
.pay { flex: 1; font-size: 18px; }
.danger { color: var(--red-ink); }
.error { color: var(--red-ink); font-weight: 600; margin: 6px 4px; }
.impossible { background: #fbe9dc; border-radius: 14px; padding: 10px 12px; margin-bottom: 10px; }
.impossible p { margin: 0 0 8px; font-weight: 600; }
.ack { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px; background: #eaf4ee; border-radius: 16px; }
.ack img { width: 64px; height: 64px; object-fit: contain; }

/* Footer: small cash/star wallet entry */
.footer { position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 8px; min-height: 64px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--paper-2); border-top: 1px solid var(--line); flex-wrap: wrap; }
.cashbox { flex: 1; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 4px 10px; border: 0; border-radius: 12px; background: var(--card); box-shadow: var(--shadow); cursor: pointer; text-align: left; }
.cashbox span:not(.stars) { display: flex; flex-direction: column; }
.cashbox b { font-size: 18px; font-variant-numeric: tabular-nums; }
.cashbox small { font-size: 12px; color: var(--ink-2); }
.stars { margin-left: auto; color: var(--gold-deep); font-size: 18px; letter-spacing: .06em; }
.save-problem { flex-basis: 100%; margin: 0; font-size: 12px; color: var(--red-ink); }
.toast { position: absolute; z-index: 7; left: 16px; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); padding: 10px 14px; border-radius: 12px; background: rgba(47,42,36,.92); color: #fff; font-size: 14px; text-align: center; pointer-events: none; }
#fx { position: absolute; inset: 0; z-index: 8; pointer-events: none; }
.flight { position: absolute; width: 36px; height: 36px; object-fit: contain; }

/* Overlays */
.overlay { position: absolute; inset: 0; z-index: 20; background: rgba(40,32,20,.45); display: flex; align-items: flex-end; }
.overlay[data-kind="opening"], .overlay[data-kind="settle"] { background: var(--paper); align-items: stretch; }
.sheet-dialog { width: 100%; max-height: 86%; overflow: auto; background: var(--paper); border-radius: 20px 20px 0 0; padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; }
.dialog-head h2 { margin: 0; font-size: 20px; }
.wallet-row { display: flex; align-items: center; gap: 10px; min-height: 52px; border-bottom: 1px solid var(--line); }
.wallet-row span { flex: 1; display: flex; flex-direction: column; }
.wallet-row small { color: var(--ink-2); font-size: 13px; }
.wallet-row .bal { font-size: 18px; font-variant-numeric: tabular-nums; }
.wallet-row.dim { opacity: .55; }
.toggle { display: flex; align-items: center; gap: 10px; min-height: var(--tap); }
.toggle input { width: 26px; height: 26px; }
.settle { width: 100%; overflow: auto; padding: calc(18px + var(--sai-top)) 18px calc(18px + env(safe-area-inset-bottom)); text-align: center; }
.eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.settle h2 { margin: 6px 0; font-size: 24px; }
.score { font-size: 40px; color: var(--gold-deep); letter-spacing: 4px; }
.home-wrap { position: relative; margin: 8px auto; width: min(100%, 320px); aspect-ratio: 1024 / 1536; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.home-wrap canvas { width: 100%; height: 100%; display: block; }
.home-wrap .cue { position: absolute; right: -6%; bottom: 8%; width: 44%; transform: scaleX(-1); }
.opening { width: 100%; display: flex; flex-direction: column; padding: 0 0 calc(12px + env(safe-area-inset-bottom)); }   /* the painting runs to the top edge, under the status bar (owner, 12 Oct 2026); Skip stays inside the safe area */
.opening .skip { position: absolute; z-index: 2; top: calc(10px + var(--sai-top)); right: 12px; min-width: 60px; }
.opening-art { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.opening-art canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.opening-art.lab canvas { object-position: 50% 65%; }
.flyer { position: absolute; right: 8%; top: 38%; width: 36%; padding: 12px 10px; background: #fbf4e2; border-radius: 4px; box-shadow: 2px 3px 8px rgba(60,40,10,.25); transform: rotate(3deg); display: flex; flex-direction: column; gap: 4px; text-align: center; }
.flyer b { font-size: 17px; } .flyer small { font-size: 9px; letter-spacing: .06em; } .flyer i { font-size: 12px; }
.caption { margin: 14px 28px 8px; font-size: 18px; line-height: 1.35; min-height: 3.8em; }
.opening-nav { display: flex; gap: 16px; margin: 0 24px; }
.opening-nav > :first-child { width: 84px; }
.opening-nav .primary { flex: 1; }

/* Tutorial coach marks: they never block the highlighted control */
.coach { position: absolute; inset: 0; z-index: 15; pointer-events: none; }
/* The tips coach: a light paper note, not a dark box. */
.coach .tip { position: absolute; z-index: 1; left: 14px; right: 14px; padding: 12px 14px 8px; border-radius: 14px; background: linear-gradient(180deg, var(--card), #f8f0dd); color: var(--ink); border: 1px solid rgba(120,90,40,.22); box-shadow: 0 2px 4px rgba(60,40,10,.18), 0 10px 24px rgba(40,25,10,.22); pointer-events: auto; font-size: 15px; line-height: 1.35; }
.coach .tip p { margin: 0 0 4px; }
.coach .tip div { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.coach .tip .linkbtn { color: var(--ink-2); }
.coach .ring { position: absolute; border: 3px solid var(--gold); border-radius: 16px; box-shadow: 0 0 0 4000px rgba(20,16,10,.28); }
.loading { position: absolute; inset: 0; z-index: 30; margin: 0; padding: 24px 12px; display: flex; flex-direction: column; justify-content: center; align-items: center; background: var(--paper); color: var(--ink-2); text-align: center; }
.loading img { display: block; width: 100%; max-width: 520px; height: auto; }
.loading img[hidden] { display: none; }
.loading h1 { margin: 0 0 24px; color: var(--accent-ink); font: 700 38px var(--display); }
.loading p { max-width: 30em; margin: 0; line-height: 1.5; overflow-wrap: anywhere; }
.loading[hidden] { display: none; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before { transition: none !important; animation: none !important; } }
@media (prefers-reduced-transparency: reduce) { .objective, .obj-list { background: var(--paper); } }
/* Large text: content reflows and scrolls; controls keep 44-point targets. */
/* Text size comes from the app, not from Safari's inflation heuristic: CardCue sets
   --t (1 / 1.15 / 1.3) on <html> from the player's iOS text size (OddsAndDensScreen.swift),
   and the most-read sizes below are calc(px * var(--t)). Deliberate (audit 11 §1.1). */
:root { --t: 1; }
@media (min-resolution: 1dppx) { html { -webkit-text-size-adjust: 100%; } }

/* ===================================================== 28 Sep 2026 layout
 * List chips (pick any item), brand-vs-brand storefronts, 1.6:1 gift cards,
 * quantity checkboxes and a score bar. These rules override the ones above. */

/* List bar: the whole list, always visible */
.listbar { background: rgba(251,247,238,.95); border-radius: 16px; box-shadow: var(--shadow); padding: 8px 10px 10px; }
.listbar.done { display: flex; align-items: center; gap: 10px; background: #eaf4ee; }
.listbar.done .obj-text { display: flex; flex-direction: column; }
.listbar.done small { color: var(--ink-2); }
.listbar .check { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 20px; flex: none; }
.list-title { margin: 0 2px 6px; font-weight: 700; font-size: 15px; }
.listbar.acked .list-title { color: var(--accent); }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chip { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 52px; min-height: 56px; padding: 4px 2px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; }
.chip img { width: 30px; height: 30px; object-fit: contain; }
.chip-n { font-size: 12px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.chip.on { border-color: var(--accent); background: #eef6f2; box-shadow: 0 0 0 2px var(--accent) inset; }
.chip.on .chip-n { color: var(--accent); }
.chip.done { opacity: .5; cursor: default; background: #eaf4ee; }
.chip.done .chip-n { color: var(--accent); }

/* Brand vs brand storefronts */
.versus { display: flex; align-items: stretch; gap: 0; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.versus .vs { flex: none; align-self: center; z-index: 2; width: 30px; height: 30px; margin: 0 -9px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 800 12px/30px -apple-system, sans-serif; text-align: center; text-transform: uppercase; box-shadow: 0 2px 6px rgba(60,40,10,.3); }
.store { position: relative; flex: 0 0 calc(50% - 6px); scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; min-height: 196px; padding: 0 8px 10px; border: 0; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; text-align: center; cursor: pointer; }
.versus.count-3 .store { flex-basis: 42%; }
.store.selected { box-shadow: 0 0 0 3px var(--b), var(--shadow); }
.store.gone-soon { opacity: .5; cursor: default; justify-content: flex-start; }
.awning { align-self: stretch; display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 -8px; min-height: 40px; padding: 6px 8px 12px; background: var(--b); color: var(--i);
  -webkit-mask: radial-gradient(circle 7px at 50% 100%, transparent 98%, #000) 0 0 / 16px 100% repeat-x; mask: radial-gradient(circle 7px at 50% 100%, transparent 98%, #000) 0 0 / 16px 100% repeat-x; }
.store-logo { width: 20px; height: 20px; flex: none; background: var(--i); -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.store-name { font-size: 12.5px; font-weight: 800; letter-spacing: .01em; line-height: 1.15; }
.store .portrait { width: 46px; height: 46px; margin-top: 6px; }
.store-badge { position: absolute; top: 44px; right: 6px; padding: 2px 6px; border-radius: 8px; background: var(--gold); color: #3b2c07; font-size: 10.5px; font-weight: 800; }
.store-owner { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.store-price { margin-top: 4px; }
.store-price b { font-size: 26px; font-variant-numeric: tabular-nums; }
.store-price small { font-size: 12px; color: var(--ink-2); margin-left: 3px; }
.store-stock { font-size: 12px; color: var(--ink-2); }
.store-pay { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--accent); }
.store-pay.none, .store-pay.cash-only { font-weight: 600; color: var(--ink-2); font-style: italic; }
.store-pay.cash-only { font-style: normal; background: var(--paper-2); border-radius: 8px; padding: 3px 8px; }
.goods-links { display: flex; flex-wrap: wrap; gap: 0 4px; justify-content: center; }
.goods-title { margin: 4px 0 2px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.goods { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); border-top: 0; }

/* 1.6:1 gift cards: logo, shop name, amount, expiry */
.gc { position: relative; display: inline-flex; flex-direction: column; justify-content: space-between; flex: none; aspect-ratio: var(--card-face-aspect) / 1; border-radius: 8px; padding: 6% 7%; background:
  linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,0) 45%), var(--b); color: var(--i); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3), 0 2px 5px rgba(60,40,10,.25); overflow: hidden; text-align: left; }
.gc::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 2px, transparent 2px 5px); pointer-events: none; }
.gc-top { display: flex; align-items: center; gap: 5%; min-width: 0; }
.gc-logo { flex: none; width: 1.5em; height: 1.5em; background: var(--i); -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.gc-logo.img { background: none; object-fit: contain; }
.gc-name { font-weight: 800; font-size: .78em; line-height: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 4px; }
.gc-amt { font-size: 1.45em; line-height: 1; font-variant-numeric: tabular-nums; }
.gc-exp { font-size: .58em; font-weight: 800; letter-spacing: .06em; opacity: .9; white-space: nowrap; }
/* A card with a condition (design D2, 14 Oct 2026): two words on the face, before the end date; hidden on the xs face like the date. */
.gc-cond { font-size: .58em; font-weight: 800; letter-spacing: .02em; white-space: nowrap; padding: 0 .35em; border-radius: 999px; background: rgba(255,255,255,.28); color: var(--i); }
.gc-xs .gc-cond { display: none; }
.gc.spent { filter: grayscale(.85); opacity: .6; }
.gc-xs { width: 54px; font-size: 7px; border-radius: 4px; }
.gc-sm { width: 96px; font-size: 10px; }
.gc-md { width: 104px; font-size: 11px; }
.gc-lg { width: 100%; font-size: 15px; border-radius: 12px; }
.bill { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 2.35 / 1; border-radius: 4px; background: linear-gradient(135deg, #e9e3c6, #cdd5b8); box-shadow: 0 2px 5px rgba(60,40,10,.2); color: #365947; flex: none; overflow: hidden; }
.bill img { width: 80%; opacity: .75; }
.bill b { position: absolute; right: 7%; bottom: 6%; font-size: 1.2em; }
.bill.gc-md { width: 104px; font-size: 11px; }
.bill.gc-lg { width: 100%; font-size: 15px; }

/* Checkout: storefront-colored, quantity boxes, card row */
.checkout { margin-top: 2px; border: 0; border-top: 5px solid var(--b); border-radius: 14px; background: var(--card); box-shadow: var(--shadow); }
.checkout-at { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.qtyrow { align-items: flex-start; }
.qtytile { position: relative; flex: none; width: 64px; height: 64px; justify-content: center; }
.qtytile img { width: 44px; height: 44px; }
.qtytile .plus { position: absolute; right: -8px; top: -8px; min-width: 26px; height: 22px; border-radius: 11px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; line-height: 22px; text-align: center; }
.qboxes { flex: 1; min-width: 0; }
.qbox-row { display: flex; flex-wrap: wrap; gap: 6px; }
.qbox { width: 38px; height: 38px; border: 2px solid var(--accent); border-radius: 8px; background: var(--card); color: #fff; font-size: 20px; font-weight: 800; line-height: 1; cursor: pointer; }
.qbox.on { background: var(--accent); }
.qtyhint { display: block; margin-top: 4px; }
.sources { display: grid; grid-template-columns: 1fr; gap: 6px; }
.src { gap: 12px; }
.src-text .take { font-size: 18px; color: var(--accent); }
.src.cash .src-text b { font-size: 15px; }
.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0; }
.card-grid.small { grid-template-columns: 1fr 1fr; }
.card-grid .other { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.wallet-card { display: flex; flex-direction: column; gap: 3px; }

/* Score bar: status, not a control */
.footer { padding: 0 0 env(safe-area-inset-bottom); background: var(--ink); border-top: 0; min-height: 58px; }
.score-bar { flex: 1; display: flex; align-items: center; gap: 4px; min-height: 58px; padding: 6px 8px 6px 16px; color: var(--paper); }
.score-bar .stat { display: flex; flex-direction: column; line-height: 1.15; padding-right: 14px; margin-right: 10px; border-right: 1px solid rgba(246,239,224,.18); }
.score-bar .stat small { font-size: 10px; font-weight: 800; letter-spacing: .06em; color: rgba(246,239,224,.62); }
.score-bar .stat b { font-size: 19px; font-variant-numeric: tabular-nums; }
.score-bar .stars { color: var(--gold); letter-spacing: .06em; font-size: 17px; margin: 0; }
.score-bar .goal { border-right: 0; }
.bar-tools { margin-left: auto; display: flex; gap: 2px; }
.icon-btn { width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--paper); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover, .icon-btn:focus-visible { background: rgba(246,239,224,.12); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.save-problem { padding: 0 16px 6px; color: #f5b5a6; }
.sheet { bottom: calc(var(--footer-h) + env(safe-area-inset-bottom)); }
.toast { bottom: calc(70px + env(safe-area-inset-bottom)); }
/* legibility pass */
.gc-xs { width: 70px; font-size: 8px; padding: 5px 6px; }
.gc-xs .gc-name { display: none; }
.gc-xs .gc-logo { width: 13px; height: 13px; }
.gc-xs .gc-amt { font-size: 15px; }
.gc-xs .gc-exp { font-size: 6.5px; }
.gc-md { width: 128px; font-size: 11px; }
.bill.gc-md { width: 128px; }
.store-pay { flex-direction: column; gap: 2px; }
.store-badge { position: static; margin-top: 6px; }
.score-bar .stat small { white-space: nowrap; }
.score-bar .stat { padding-right: 12px; margin-right: 8px; }
/* fit pass: storefronts fit the compare sheet; collapse to brand tabs while checking out */
.sheet { top: calc(512px * var(--s)); }
.shopping .sheet { top: calc(392px * var(--s)); }
.sheet-body { padding-top: 8px; }
.rows-label { margin-bottom: 4px; }
.store { min-height: 0; padding-bottom: 8px; }
.awning { min-height: 34px; padding: 4px 8px 10px; }
.store .portrait { width: 40px; height: 40px; margin-top: 4px; }
.store-owner { font-size: 11px; }
.store-price { margin-top: 0; }
.store-price b { font-size: 22px; }
.store-pay { margin-top: 4px; }
.gc-xs .gc-exp { display: none; }
.store-badge { margin-top: 4px; font-size: 10px; }
.shopping .versus { padding-bottom: 6px; }
.shopping .store { flex-basis: auto; min-width: 118px; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 0 6px; padding-bottom: 6px; }
.shopping .store .portrait, .shopping .store-owner, .shopping .store-stock, .shopping .store-pay, .shopping .store-badge { display: none; }
.shopping .store .awning { flex-basis: 100%; }
.shopping .store-price b { font-size: 17px; }
.shopping .versus .vs { width: 24px; height: 24px; line-height: 24px; font-size: 10px; margin: 0 -7px; }
/* shop count layouts: everything stays on screen */
.versus { overflow-x: visible; scroll-snap-type: none; }
.versus.count-1 .store { flex: 1 1 auto; }
.versus.count-2 .store { flex: 1 1 0; min-width: 0; }
.versus.count-3 .store { flex: 1 1 0; min-width: 0; padding: 0 5px 8px; }
.versus.count-3 .awning { margin: 0 -5px; padding: 4px 4px 10px; gap: 3px; flex-direction: column; min-height: 46px; }
.versus.count-3 .store-name { font-size: 10.5px; }
.versus.count-3 .store-logo { width: 16px; height: 16px; }
.versus.count-3 .store .portrait { width: 34px; height: 34px; }
.versus.count-3 .store-price b { font-size: 19px; }
.versus.count-3 .store-price small { display: block; margin: 0; font-size: 10px; }
.versus.count-3 .store-stock, .versus.count-3 .store-owner { font-size: 10.5px; }
.versus.count-3 .gc-xs { width: 60px; }
.versus.count-3 .store-pay small { font-size: 10.5px; }
.versus.count-3 .store-badge { font-size: 9px; padding: 2px 4px; }
.versus.count-3 .vs { width: 24px; height: 24px; line-height: 24px; font-size: 10px; margin: 0 -8px; }
.versus.count-many { flex-wrap: wrap; gap: 8px; }
.versus.count-many .store { flex: 1 1 calc(50% - 8px); }
.shopping .versus.count-3 .store { min-width: 0; }
.shopping .versus.count-3 .awning { flex-direction: row; min-height: 30px; }
/* list / wallet toggle, wallet strip, basket lines, multiple tags */
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.list-head .list-title { margin: 0; flex: 1; min-width: 0; }
.mode-toggle { flex: none; display: flex; padding: 2px; border-radius: 10px; background: var(--paper-2); }
.mode-toggle button { min-height: 32px; min-width: 56px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; font-size: 13px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.mode-toggle button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(60,40,10,.15); }
.cards-strip { gap: 8px; }
.walletchip { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 3px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; }
.walletchip.on { box-shadow: 0 0 0 3px var(--accent); }
.walletchip.away { opacity: .45; cursor: default; }
.walletchip.away small { font-size: 10px; color: var(--ink-2); }
.walletchip .gc-sm { width: 88px; }
.store-has { display: flex; justify-content: center; gap: 2px; min-height: 26px; margin-top: 4px; }
.store-has img { width: 24px; height: 24px; object-fit: contain; }
.store-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; margin-top: 5px; }
.store-badges .store-badge { margin: 0; }
.shopping .store-badges, .shopping .store-has { display: none; }
.basket .line { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.basket .line.locked { opacity: .5; }
.line-item { flex: none; width: 50px; height: 50px; border: 2px solid var(--accent); border-radius: 12px; background: var(--card); display: grid; place-items: center; cursor: pointer; }
.line-item:disabled { border-color: var(--line); cursor: default; }
.line-item img { width: 36px; height: 36px; object-fit: contain; }
.line-body { flex: 1; min-width: 0; }
.line-name { margin: 0 0 5px; font-size: 14px; }
.line-name small { color: var(--ink-2); }
.line .tag { font-size: 10.5px; }
.line .tag.need { background: #fbe9dc; color: var(--warn); }
.line .qbox { width: 32px; height: 32px; font-size: 17px; }
.line .qbox:disabled { border-color: var(--line); background: var(--paper-2); cursor: default; }
.line-total { flex: none; min-width: 34px; text-align: right; font-variant-numeric: tabular-nums; }
.phone.wallet-mode.shopping .bubble { display: none; }
/* funding rows: card face (tap on/off) + stepper with tappable amount */
.fund-order { margin: 2px 0 6px; font-size: 12px; color: var(--ink-2); }
.src { display: flex; align-items: center; gap: 10px; padding: 8px 10px; cursor: default; }
.src-face { flex: none; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 10px; }
.src:not(.sel) .src-face { opacity: .55; filter: grayscale(.4); }
.src-body { flex: 1; min-width: 0; }
.src-name { margin: 0 0 4px; font-size: 14px; }
.src-name small { color: var(--ink-2); }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); overflow: hidden; }
.stepper button { min-width: 42px; height: 42px; border: 0; background: none; font-size: 20px; font-weight: 700; color: var(--accent); cursor: pointer; }
.stepper button:disabled { color: #c9c0ad; cursor: default; }
.stepper .amt { min-width: 64px; font-size: 18px; color: var(--ink); border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-decoration: underline dotted var(--ink-2); text-underline-offset: 4px; }
.src-note { display: block; margin-top: 3px; font-size: 12px; color: var(--ink-2); }
/* cash looks like the bill itself, no card behind it */
.cash-bill { display: block; width: 104px; height: auto; filter: drop-shadow(0 2px 3px rgba(0,0,0,.2)); }
.wallet-card .bill { background: none; box-shadow: none; aspect-ratio: auto; }
.wallet-card .bill img { width: 100%; opacity: 1; }
.wallet-card .bill b { position: static; font-size: 20px; }
.keypad .kp-value { margin: 6px 0 0; text-align: center; font-size: 40px; font-weight: 800; font-variant-numeric: tabular-nums; }
.kp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.kp-grid button { min-height: 54px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); font-size: 22px; font-weight: 700; cursor: pointer; }
/* keep the seller and their speech visible while shopping */
.shopping .sheet { top: calc(512px * var(--s)); }
.shopping .bubble { transform: none; }
.phone.wallet-mode.shopping .bubble { display: block; }
.phone.wallet-mode.shopping .bubble[hidden] { display: none; }
.bubble { max-height: calc(512px * var(--s) - 300px); overflow: auto; }
.list-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shopping .versus { padding: 2px 2px 4px; }
.shopping .store .awning { min-height: 26px; padding: 3px 6px 8px; }
.shopping .store-price b { font-size: 15px; }
.checkout { padding: 8px 10px 10px; }
/* selected wallet card: the ring hugs the card itself */
.walletchip { padding: 0; border-radius: 8px; }
.walletchip.on { box-shadow: none; }
.walletchip.on .gc { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--accent), 0 4px 10px rgba(60,40,10,.25); transform: translateY(-2px); }
.walletchip .gc { transition: transform .15s; }
.cards-strip { padding: 6px 6px 8px; margin: 0 -6px; }
.basket-empty { margin: 4px 0 8px; font-size: 14px; color: var(--ink-2); }
.shopping .versus.count-many { gap: 6px; }
.shopping .versus.count-many .store { flex: 1 1 calc(33.3% - 6px); min-width: 0; }
.shopping .versus.count-many .store-name { font-size: 11px; }
.shopping .versus.count-many .store-logo { width: 14px; height: 14px; }
/* compact funding tiles: all sources side by side above Pay */
.checkout .qtyrow { gap: 10px; }
.checkout .qtytile { width: 56px; height: 56px; }
.checkout .qtytile img { width: 38px; height: 38px; }
.checkout .bill { margin: 6px 0 4px; }
.fund-order { margin: 0 0 4px; font-size: 11.5px; }
.sources { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px; }
.src { flex-direction: column; align-items: center; gap: 4px; padding: 6px 4px 6px; margin: 0; min-height: 0; text-align: center; }
.src-body { display: flex; flex-direction: column; align-items: center; width: 100%; }
.src .gc-sm { width: 92px; font-size: 9.5px; }
.cash-bill { width: 92px; }
.src-name { margin: 0 0 2px; font-size: 12px; }
.stepper button { min-width: 30px; height: 38px; font-size: 18px; }
.stepper .amt { min-width: 40px; font-size: 16px; padding: 0 2px; }
.src-note { font-size: 11px; margin-top: 2px; }
.src .soon { font-size: 9.5px; }
.owed { margin: 4px 2px 0; }
.bill-line { margin: 6px 0 4px; font-size: 16px; font-variant-numeric: tabular-nums; }
.shopping .sheet-body > .rows-label { display: none; }
.shopping .sheet-body { padding-top: 6px; }
.qboxes .bill-line { margin: 6px 0 0; font-size: 15px; }
.checkout .qbox-row { gap: 5px; }
.checkout .qbox { width: 34px; height: 34px; font-size: 18px; }
.fund-order { margin-top: 8px; }
.src .gc-sm, .cash-bill { width: 80px; }
.src .gc-sm { font-size: 8.5px; }
.checkout .qtytile { width: 48px; height: 48px; }
.checkout .qtytile img { width: 32px; height: 32px; }
.checkout .qbox { width: 30px; height: 30px; font-size: 16px; }
.sources { margin-top: 8px; }
.src-note { display: none; }
.src.sel .src-note { display: block; }
/* checkout without the storefront row: brand strip + quantity line */
.shop-strip { display: flex; align-items: center; gap: 8px; margin: -8px -10px 8px; padding: 7px 12px; border-radius: 14px 14px 0 0; background: var(--b); color: var(--i); font-size: 14px; }
.shop-strip .store-logo { width: 18px; height: 18px; }
.checkout { border-top: 0; }
.checkout .qtyrow { align-items: center; }
.qbox-row { align-items: center; }
.qty-each { margin-left: 6px; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.qty-total { flex: none; margin-left: auto; font-size: 22px; font-variant-numeric: tabular-nums; }
.basket .line-total { font-size: 17px; }

/* ======================= slide-in shop panel, market board, condensed stores */
.sheet { transform: translateY(calc(100% + 80px)); transition: transform .38s cubic-bezier(.2,.8,.2,1), top .35s ease; visibility: hidden; }
.panel-open .sheet { transform: none; visibility: visible; }
@media (prefers-reduced-motion: reduce) { .sheet { transition: none; } }
.panel-close { display: block; width: 100%; height: 22px; margin: -6px 0 2px; padding: 0; border: 0; background: none; cursor: pointer; }
.panel-close span { display: block; width: 44px; height: 5px; margin: 0 auto; border-radius: 4px; background: var(--line); }
#board { position: absolute; z-index: 3; left: 12px; right: 12px; bottom: calc(70px + env(safe-area-inset-bottom)); }
#board:empty { display: none; }
.board { padding: 10px 12px; border-radius: 16px; background: rgba(251,247,238,.94); box-shadow: var(--shadow); }
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.board-prompt { margin: 0; font-weight: 700; font-size: 15px; }
.board-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.board-stats span { display: flex; flex-direction: column; padding: 6px 8px; border-radius: 10px; background: var(--card); }
.board-stats small { font-size: 10px; font-weight: 800; letter-spacing: .06em; color: var(--ink-2); }
.board-stats b { font-size: 18px; font-variant-numeric: tabular-nums; }
.board-stats .warn { background: #fbe9dc; }
.board-stats .warn b { color: var(--warn); }
.board-note { margin: 6px 2px 0; font-size: 12.5px; color: var(--warn); font-weight: 600; }

/* condensed storefront: portrait beside price/stock, one foot row */
.store { padding: 0 8px 8px; }
.store-body { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 6px; }
.store-body .portrait { margin: 0; width: 38px; height: 38px; }
.store-main { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.store-main .store-price b { font-size: 21px; }
.store-main .store-stock { font-size: 11px; }
.store-owner { margin-top: 3px; font-size: 11px; }
.store-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; margin-top: 5px; }
.store-foot .store-pay { flex-direction: row; margin: 0; gap: 4px; }
.store-foot .store-badges { margin: 0; }
.store-foot .store-badge, .store-foot .soon { font-size: 9.5px; padding: 1px 5px; }
.store-foot .gc-xs { width: 52px; }
.store-main .store-has { justify-content: flex-start; min-height: 22px; margin: 0; }
.versus.count-3 .store-body { flex-direction: column; gap: 3px; }
.versus.count-3 .store-main { align-items: center; }

/* clear gift / prepaid / cash separation */
.group-label { margin: 0 0 4px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.sources.grouped { display: flex; gap: 0; align-items: stretch; }
.src-group { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 0 6px; }
.src-group + .src-group { border-left: 1.5px dashed var(--line); }
.src-group .src { box-shadow: none; background: transparent; padding: 2px 0 4px; }
.src-group .src.sel { background: #eef6f2; }
.wallet-group { margin: 10px 0; padding: 10px; border: 1.5px solid var(--line); border-radius: 14px; }
.wallet-group .card-grid { margin: 4px 0 0; }
.wallet-group.cash .card-grid { grid-template-columns: 1fr 1fr; align-items: center; }
.strip-label { margin: 2px 2px 2px; }
/* suspense: stakes on Pay, Mallow's hunger, Star Jar, coming up */
.paybar { flex-wrap: wrap; }
.stakes { flex-basis: 100%; margin: 0 0 2px; font-size: 13px; font-weight: 700; text-align: center; }
.stakes.free { color: var(--accent); }
.stakes.keep { color: var(--ink-2); }
.stakes.drop { color: #b5541c; animation: pulse 1.2s ease-in-out 2; }
.paybar.at-risk .pay { background: #b5541c; }
@keyframes pulse { 50% { transform: scale(1.04); } }
.hunger { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 6px 8px; border-radius: 10px; background: #f3ecd8; }
.hunger .portrait { width: 34px; height: 34px; }
.hunger p { flex: 1; margin: 0; font-size: 13px; line-height: 1.15; }
.hunger small { color: var(--ink-2); }
.hay-pips { display: flex; gap: 2px; }
.hay-pips i { width: 7px; height: 16px; border-radius: 4px; background: #d9b44a; }
.hay-pips i.next { background: #b5541c; animation: pulse 1.6s ease-in-out infinite; }
.jar { margin: 10px 0; padding: 10px 12px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); text-align: left; }
.jar-head { display: flex; justify-content: space-between; font-size: 15px; }
.jar-head span { font-weight: 800; color: var(--gold-deep); }
.jar-bar { position: relative; height: 10px; margin: 8px 0; border-radius: 6px; background: var(--paper-2); overflow: visible; }
.jar-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--gold), var(--gold-deep)); }
.jar-bar em { position: absolute; top: -3px; width: 2px; height: 16px; background: var(--ink-2); opacity: .4; }
.jar-friends { display: flex; justify-content: space-between; gap: 4px; }
.friend { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; color: var(--ink-2); }
.friend .portrait { width: 38px; height: 38px; filter: grayscale(1) brightness(.6); opacity: .45; }
.friend.on .portrait { filter: none; opacity: 1; }
.friend.new .portrait { box-shadow: 0 0 0 3px var(--gold); animation: pulse 1s ease-in-out 3; }
.coming { margin: 8px 0; padding: 8px 12px; border-radius: 14px; background: var(--paper-2); text-align: left; }
.coming-items { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; font-size: 13px; font-weight: 700; }
.coming-items span { display: flex; align-items: center; gap: 2px; }
.coming-items img { width: 26px; height: 26px; object-fit: contain; }
.fine.warn { color: #b5541c; font-weight: 600; }
.qbox.off { display: inline-block; border: 2px dashed var(--line); background: var(--paper-2); cursor: not-allowed; }
/* compare panel: sized to its content, with an explicit collapse button */
.sheet { top: auto; max-height: calc(100% - 300px * var(--s) - 58px); }
.shopping .sheet { top: calc(512px * var(--s)); max-height: none; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 2px 6px; }
.panel-head .rows-label { margin: 0; }
.collapse-btn, .expand-btn { flex: none; min-height: 36px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 18px; background: var(--card); font-size: 13px; font-weight: 700; color: var(--accent); cursor: pointer; }
.collapse-btn span, .expand-btn span { font-size: 15px; }
/* shop counter beside the seller: item, checkboxes, price */
.counter { position: absolute; z-index: 4; left: calc(214px * var(--s)); right: 10px; max-height: calc(512px * var(--s) - 150px); overflow-y: auto; }
.counter-card { padding: 8px 10px 10px; border-radius: 16px; background: rgba(255,253,247,.97); box-shadow: var(--shadow); border-top: 5px solid var(--b); }
.counter-speech { margin: 0 0 6px; font-size: 13px; font-style: italic; color: var(--ink-2); }
.counter-item { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.counter .qtytile { width: 46px; height: 46px; }
.counter .qtytile img { width: 32px; height: 32px; }
.counter .line-name { margin: 0; font-size: 14px; }
.counter .qty-each { display: block; margin: 0; font-size: 12.5px; }
.counter .qbox-row { gap: 4px; flex-wrap: wrap; }
.counter .qbox { width: 28px; height: 28px; font-size: 15px; border-radius: 6px; }
.cline { display: flex; align-items: flex-start; gap: 6px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.cline:last-child { border-bottom: 0; }
.cline.locked { opacity: .45; }
.cline .line-item { width: 38px; height: 38px; }
.cline .line-item img { width: 26px; height: 26px; }
.cline .line-body { flex: 1; min-width: 0; }
.cline .line-total { font-size: 14px; }
.strip-sum { margin-left: auto; font-weight: 700; font-size: 13px; opacity: .95; }
.toast { bottom: auto; z-index: 9; }
.phone:has(#counter:not([hidden])) .toast { left: calc(214px * var(--s)); right: 10px; }
/* hard container for the bottom panel; icon-only collapse / expand */
.sheet { background: var(--paper); border-top: 1.5px solid var(--line); border-radius: 20px 20px 0 0; box-shadow: 0 -6px 18px rgba(40,30,15,.18); }
.sheet-body { padding-top: 10px; }
.collapse-btn, .expand-btn { width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: 50%; display: grid; place-items: center; font-size: 20px; line-height: 1; border: 1.5px solid var(--line); background: var(--card); color: var(--accent); cursor: pointer; }
.collapse-btn span, .expand-btn span { font-size: 20px; }
/* wider basket lines in the counter */
.counter { left: calc(200px * var(--s)); }
.cline { display: block; padding: 6px 0; }
.cline-head { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.cline-head .line-name { flex: 1; min-width: 0; margin: 0; display: flex; flex-direction: column; font-size: 13px; line-height: 1.15; }
.cline .qbox-row { gap: 3px; }
.cline .qbox { width: 24px; height: 24px; font-size: 13px; border-radius: 6px; }
/* wallet bar: same height as the list bar */
.cards-strip { padding: 3px 4px 4px; margin: 0 -4px; gap: 6px; }
.walletchip { position: relative; }
.walletchip .gc-sm { width: 88px; font-size: 8.5px; padding: 5px 7px; border-radius: 6px; }
.walletchip .gc-sm .gc-amt { font-size: 17px; }
.walletchip.away .gc { opacity: .45; filter: grayscale(.9); }
.away-tag { position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%); padding: 1px 6px; border-radius: 6px; background: rgba(47,42,36,.85); color: var(--paper); font-size: 9.5px; font-weight: 700; white-space: nowrap; }
.walletchip.on .gc { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); transform: none; }
.away-tag { top: 3px; right: 3px; bottom: auto; left: auto; transform: none; }
/* panel slides both ways: hide only after the slide-down finishes */
.sheet { transition: transform .38s cubic-bezier(.2,.8,.2,1), visibility 0s linear .38s; }
.panel-open .sheet { transition: transform .38s cubic-bezier(.2,.8,.2,1), visibility 0s linear 0s; }
#board { transition: opacity .25s ease .15s; }
@media (prefers-reduced-motion: reduce) { .sheet, .panel-open .sheet { transition: none; } }
/* rule next to each wallet container title */
.group-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.group-rule { font-size: 11.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink-2); opacity: .9; }
.src-group .group-rule { font-size: 10px; }
/* challenge card at the start of every market */
.overlay[data-kind="intro"] { background: rgba(40,32,20,.55); align-items: center; justify-content: center; }
.intro { width: calc(100% - 28px); max-height: 92%; overflow: auto; padding: 18px 18px 16px; border-radius: 22px; background: var(--paper); box-shadow: 0 12px 40px rgba(60,40,10,.35); text-align: center; }
.intro h2 { margin: 4px 0 0; font-size: 26px; }
.intro-scene { margin: 2px 0 10px; color: var(--ink-2); font-size: 14px; }
.intro-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 12px; font-weight: 800; font-size: 13px; }
.intro-list span { display: flex; align-items: center; gap: 2px; padding: 4px 8px; border-radius: 10px; background: var(--card); box-shadow: var(--shadow); }
.intro-list img { width: 26px; height: 26px; object-fit: contain; }
.intro-hint { margin: 0 0 12px; padding: 10px 12px; border-radius: 14px; background: #eef6f2; border: 1.5px solid #cfe3d8; text-align: left; }
.intro-hint b { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.intro-hint p { margin: 4px 0 0; font-size: 15px; line-height: 1.35; }
.intro-stars { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; font-size: 14px; }
.intro-stars b { color: var(--gold-deep); letter-spacing: .06em; }
.intro-stars .fine { flex-basis: 100%; margin: 2px 0 0; }
.intro-news { margin: 8px 0 0; font-size: 14px; font-weight: 600; }
.intro-news.warn { color: #b5541c; }

/* ======================= Liquid glass panels (28 Sep 2026)
 * Translucent frosted fill that picks up the scene, a specular top edge,
 * a thin light rim and soft depth. Reduce Transparency falls back to paper. */
:root {
  --glass-fill: linear-gradient(180deg, rgba(255,255,255,.62) 0%, rgba(255,252,244,.42) 55%, rgba(255,250,238,.50) 100%);
  --glass-rim: inset 0 1px 0 rgba(255,255,255,.95), inset 0 0 0 1px rgba(255,255,255,.55), inset 0 -1px 0 rgba(120,100,70,.10);
  --glass-depth: 0 10px 30px rgba(35,28,18,.22), 0 2px 6px rgba(35,28,18,.12);
  --glass-blur: blur(14px) saturate(1.25) brightness(1.02);
}
.listbar, .counter-card, .board, .bubble, .intro {
  background: var(--glass-fill);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-rim), var(--glass-depth);
  border: 0;
}
.listbar, .counter-card, .board { border-radius: 22px; position: relative; overflow: hidden; }
/* specular sheen across the top of each glass panel */
.listbar::before, .counter-card::before, .board::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 46%; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0));
  border-radius: inherit; mix-blend-mode: soft-light;
}
.listbar > *, .counter-card > *, .board > * { position: relative; }
.bubble { border-radius: 18px; }
.bubble::before { border-right-color: rgba(255,255,255,.6); }
/* the inventory counter: brand tint glows through the glass instead of a flat bar */
.counter-card { border-top: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--b) 22%, rgba(255,255,255,.55)) 0%, rgba(255,252,244,.44) 38%, rgba(255,250,238,.52) 100%); }
.counter-card .qtytile, .counter-card .line-item { background: rgba(255,255,255,.7); }
.chip, .mode-toggle, .board-stats span, .hunger { background: rgba(255,255,255,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.chip { border-color: rgba(255,255,255,.7); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 3px rgba(60,40,10,.08); }
.chip.on { background: rgba(238,246,242,.8); }
.mode-toggle { box-shadow: inset 0 1px 2px rgba(60,40,10,.08); }
/* bottom panel: crisper, more opaque glass with a defined edge */
.sheet {
  background: linear-gradient(180deg, rgba(252,248,240,.86), rgba(246,239,224,.93));
  -webkit-backdrop-filter: blur(26px) saturate(1.5); backdrop-filter: blur(26px) saturate(1.5);
  border-top: 1px solid rgba(255,255,255,.9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 -8px 26px rgba(35,28,18,.22);
}
.checkout { background: rgba(255,255,255,.55); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 4px rgba(60,40,10,.08); }
@media (prefers-reduced-transparency: reduce) {
  .listbar, .counter-card, .board, .bubble, .intro, .sheet, .chip, .board-stats span, .hunger { background: var(--paper) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}

/* steppers stay inside their card column */
.src-group { min-width: 0; padding: 0 4px; }
.src-group .src { width: 100%; min-width: 0; padding-left: 0; padding-right: 0; }
.src-body { width: 100%; min-width: 0; }
.stepper { display: flex; width: 100%; max-width: 132px; margin: 0 auto; box-sizing: border-box; }
.stepper button { flex: 0 0 30px; min-width: 0; width: 30px; height: 36px; font-size: 17px; }
.stepper .amt { flex: 1 1 auto; min-width: 0; width: auto; font-size: 15px; padding: 0 2px; overflow: hidden; text-overflow: clip; white-space: nowrap; }
.src .gc-sm, .cash-bill { width: 100%; max-width: 84px; }
.gc-left { margin-left: 3px; font-size: .5em; font-weight: 800; letter-spacing: .02em; opacity: .9; }
.src .src-name b { font-size: 16px; }
/* a touch more glass opacity for legibility on dark scenes */
:root { --glass-fill: linear-gradient(180deg, rgba(255,255,255,.72) 0%, rgba(255,252,244,.56) 55%, rgba(255,250,238,.62) 100%); }
.counter-card { background: linear-gradient(180deg, color-mix(in srgb, var(--b) 20%, rgba(255,255,255,.66)) 0%, rgba(255,252,244,.58) 38%, rgba(255,250,238,.64) 100%); }
.qty-line { display: flex; align-items: center; gap: 6px; }
.qty-label { font-size: 10px; font-weight: 800; letter-spacing: .06em; color: var(--ink-2); }
.qty-line .qbox-row { flex: 1; min-width: 0; }
.qty-count { min-width: 18px; font-size: 17px; font-variant-numeric: tabular-nums; color: var(--accent); text-align: right; }
.counter .qtytile .plus { display: none; }
/* all three funding tiles share one shape so their steppers line up */
.sources.grouped { align-items: stretch; }
.src-group { display: flex; flex-direction: column; }
.src-group .src { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; gap: 6px; padding: 6px 4px 8px; border: 2px solid transparent; border-radius: 14px; }
.src-group .src.sel { border-color: var(--accent); }
.src-face { height: 56px; display: grid; place-items: center; }
.cash-face { position: relative; display: block; width: 92px; height: 52px; }
.cash-face .cash-bill { width: 100%; height: 100%; max-width: none; object-fit: contain; }
.cash-left { position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%); padding: 1px 7px; border-radius: 8px; background: rgba(54,89,71,.92); color: var(--paper); font-size: 12.5px; white-space: nowrap; box-shadow: 0 1px 3px rgba(60,40,10,.25); }
.cash-left small { font-size: 10px; font-weight: 700; }
.src-body { margin-top: auto; }

/* Equal-height funding columns: the headers share one row (subgrid), so a
   header that wraps to two lines pushes every tile down together. */
.sources.grouped { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
.sources.grouped .src-group { grid-row: span 2; display: grid; grid-template-rows: subgrid; gap: 6px; }
.src-list { display: flex; flex-direction: column; gap: 6px; }
.src-list .src { flex: 1; }

/* Storefront: brand logo, shop name and shopkeeper together in the awning;
   the item itself sits in the body above its price. */
.store .awning { flex-direction: column; gap: 4px; padding-bottom: 12px; }
.awning-brand { display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; }
.store .awning .portrait { width: 34px; height: 34px; margin: 0; box-shadow: 0 0 0 2px var(--i); }
.versus.count-3 .store .awning .portrait { width: 30px; height: 30px; }
.versus.count-3 .awning-brand { flex-direction: column; gap: 2px; }
.store-item { width: 44px; height: 44px; object-fit: contain; flex: none; }
.versus.count-3 .store-item { width: 38px; height: 38px; }
.shopping .store .awning { flex-direction: row; }

/* Storefront header: shopkeeper portrait and name under the shop name. */
.awning-owner { display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; }
.owner-name { font-size: 11.5px; font-weight: 700; opacity: .9; }
.versus.count-3 .owner-name { font-size: 10.5px; }
/* Accepted payment list: one line per form of payment, with the balance. */
.store-pay.list { display: flex; flex-direction: column; align-items: stretch; gap: 3px; margin: 6px 0 0; width: 100%; font-style: normal; color: var(--ink); }
.pay-line { display: flex; align-items: center; gap: 5px; min-width: 0; padding: 3px 6px; border-radius: 8px; background: var(--paper-2, #f1ece1); font-size: 11.5px; font-weight: 700; }
.pay-sw { flex: none; --face-w: 26px; width: var(--face-w); height: calc(var(--face-w) / var(--card-face-aspect)); border-radius: 4px; display: grid; place-items: center; background: var(--b); color: var(--i); box-shadow: 0 1px 2px rgba(60,40,10,.2); }
.pay-sw .gc-logo { width: 11px; height: 11px; background: var(--i); -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.pay-sw .gc-logo.img { background: none; object-fit: contain; }
img.pay-sw.cash { background: none; box-shadow: none; object-fit: contain; }
.pay-kind { flex: 1; min-width: 0; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); font-weight: 600; }
.pay-amt { font-variant-numeric: tabular-nums; }
.versus.count-3 .pay-line { gap: 3px; padding: 2px 4px; font-size: 10.5px; }
.versus.count-3 .pay-sw { --face-w: 20px; }
.store-foot { flex-direction: column; width: 100%; }

/* Pass and cash in the wallet strip, sized to match the gift cards. */
.walletchip.cash .cash-face { width: 88px; height: 55px; }
.walletchip.cash .cash-left { font-size: 13px; bottom: 2px; }

/* Speech bubble: across the top of the stage, above the shopkeeper, with its
   tail pointing down at them. It no longer moves for the shop panel. */
.bubble, .shopping .bubble { left: 12px; right: 12px; width: auto; max-height: none; transform: none; font-size: 14px; }
.bubble::before { left: 22%; top: auto; bottom: -8px; border: 8px solid transparent; border-top-color: rgba(255,255,255,.6); border-bottom: 0; }
.phone.wallet-mode.shopping .bubble { display: block; }
.phone.wallet-mode.shopping .bubble[hidden] { display: none; }

/* Gift cards on storefronts are the same card as in the wallet strip. */
.pay-card { display: flex; justify-content: center; }
.store .pay-card .gc-sm { width: 88px; max-width: 100%; }
.store-pay.list .pay-card + .pay-line { margin-top: 3px; }
.wstore .store-body { flex-direction: column; }
.wstore .store-has { display: flex; justify-content: center; gap: 6px; }
.wstore .store-has img { width: 26px; height: 26px; object-fit: contain; }
/* Storefront gift cards use the wallet strip's exact card styling; the
   storefront's own `.store-pay small` / `b` rules must not reach inside. */
.store .store-pay .pay-card .gc-sm { width: 88px; max-width: 100%; font-size: 8.5px; padding: 5px 7px; border-radius: 6px; }
.store .store-pay .pay-card .gc-sm .gc-amt { font-size: 17px; }
.store .store-pay .pay-card .gc-sm .gc-name { font-size: .78em; }
.store .store-pay .pay-card .gc-sm .gc-exp { font-size: .58em; margin: 0; display: inline; }

/* Board tips carousel (Mallow's hunger, hints, stars, cards, Star Jar). */
.tips { margin-top: 8px; }
.tips-row { display: flex; align-items: stretch; gap: 4px; }
.tip-body { flex: 1; min-width: 0; min-height: 58px; display: flex; }
.tip-body > * { flex: 1; margin: 0; }
.tip-body .hunger { margin: 0; }
.tip-slide { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: rgba(255,255,255,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.tip-slide p { flex: 1; min-width: 0; margin: 0; font-size: 13px; line-height: 1.15; }
.tip-slide small { color: var(--ink-2); }
.tip-icon { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2, #f1ece1); color: var(--accent); font-size: 18px; }
.tip-slide .portrait { flex: none; width: 34px; height: 34px; }
.tip-card { flex: none; width: 54px; display: flex; }
.tip-card .gc-xs { width: 54px; }
.tip-arrow { flex: none; width: 28px; border: 0; border-radius: 10px; background: rgba(255,255,255,.55); color: var(--accent); font-size: 22px; font-weight: 800; line-height: 1; cursor: pointer; }
.tip-arrow:disabled { opacity: .35; cursor: default; }
.tip-dots { display: flex; justify-content: center; gap: 2px; margin-top: 4px; }
.tip-dot { width: 20px; height: 16px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; }
.tip-dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: var(--ink-2); opacity: .35; }
.tip-dot.on::after { background: var(--accent); opacity: 1; }
@media (prefers-reduced-transparency: reduce) { .tip-slide, .tip-arrow { background: var(--paper) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; } }
.tip-body { min-height: 76px; }

/* Board: the prompt moved to the top bar; the ⌃ button ends the stats row. */
.board-stats { grid-template-columns: repeat(3, 1fr) auto; align-items: center; margin-top: 0; }

/* Checkout funding cards: fill their column so the details are readable. */
.src-face { height: auto; min-height: 64px; width: 100%; padding: 0; border: 0; background: none; }
.src-group .src .gc-sm { width: 100%; max-width: 124px; max-height: none; font-size: 11px; padding: 6px 8px; border-radius: 8px; }
.src-group .src .gc-sm .gc-amt { font-size: 21px; }
.src-group .src .gc-sm .gc-left { font-size: 11px; }
.src-group .src .gc-sm .gc-exp { font-size: 7px; }
.src-group .src .cash-face { width: 100%; max-width: 124px; height: auto; aspect-ratio: 1.6 / 1; }
.src-group .src .cash-left { font-size: 14px; }

/* Storefront payments in one row: main card, then small symbols. */
.store .store-pay.pay-row { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 6px; width: 100%; margin: 6px 0 0; }
.store .pay-main { flex: 0 1 88px; min-width: 0; display: flex; }
.store .store-pay.pay-row .pay-main .gc-sm { width: 100%; max-width: 88px; font-size: 8.5px; padding: 5px 7px; border-radius: 6px; }
.store .store-pay.pay-row .pay-main .gc-sm .gc-amt { font-size: 17px; }
.store .store-pay.pay-row .pay-main .gc-sm .gc-name { font-size: .78em; }
.store .store-pay.pay-row .pay-main .gc-sm .gc-exp { font-size: .58em; margin: 0; display: inline; }
.store .pay-main .cash-face { width: 100%; max-width: 88px; height: auto; aspect-ratio: 1.6 / 1; }
.store .pay-main .cash-left { font-size: 12px; }
.pay-side { flex: none; display: flex; flex-direction: column; gap: 4px; }
.pay-mini { display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 11.5px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.pay-mini .pay-sw { --face-w: 30px; }
.pay-note { display: block; margin-top: 3px; font-size: 11px; font-weight: 700; color: var(--ink-2); }
/* Three-across checkout: keep amount, "left" and expiry on one line. */
.sources.grouped:has(.src-group:nth-child(3)) .src .gc-sm .gc-amt { font-size: 18px; }
.sources.grouped:has(.src-group:nth-child(3)) .src .gc-sm .gc-left { font-size: 9px; }
.sources.grouped:has(.src-group:nth-child(3)) .src .gc-sm .gc-exp { font-size: 6px; letter-spacing: .02em; }
.sources.grouped:has(.src-group:nth-child(3)) .src .gc-sm { padding: 6px 6px; }
.store .store-pay.pay-row { flex-wrap: nowrap; }

/* List badge (items left) and Wallet total on the mode toggle. */
.mode-toggle button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.mode-badge { position: absolute; top: -7px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 8px; background: var(--warn); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px #fff; }
.mode-total { font-size: 12px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.mode-toggle { overflow: visible; }
/* Three-across storefronts: shrink the card text so the expiry fits. */
.versus.count-3 .store .store-pay.pay-row .pay-main .gc-sm { padding: 4px 5px; }
.versus.count-3 .store .store-pay.pay-row .pay-main .gc-sm .gc-amt { font-size: 14px; }
.versus.count-3 .store .store-pay.pay-row .pay-main .gc-sm .gc-exp { font-size: 5px; letter-spacing: .02em; }
.versus.count-3 .pay-mini { font-size: 10.5px; }
.versus.count-3 .pay-mini .pay-sw { --face-w: 24px; }

/* List badge sits inline after the label so it never covers Wallet. */
.mode-badge { position: static; box-shadow: none; min-width: 17px; height: 17px; line-height: 17px; font-size: 10.5px; padding: 0 4px; }
.versus.count-3 .store .store-pay.pay-row .pay-main .gc-sm .gc-exp { font-size: 6px; }

/* Expiry warnings: the board tile and cards in the wallet strip. */
.warn-sym { color: var(--warn); font-size: 1.15em; }
.walletchip { position: relative; }
.card-warn { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--warn); color: #fff; font-size: 12px; line-height: 1; box-shadow: 0 0 0 2px #fff; z-index: 1; }
.cards-strip { padding-top: 6px; }

.gc-exp.ending { color: #fff; background: var(--warn); padding: 1px 4px; border-radius: 4px; opacity: 1; }
/* Mallow's hay: big now → next prices. */
.hunger p { display: flex; flex-direction: column; gap: 2px; }
.hay-change { display: flex; align-items: center; gap: 8px; }
.hay-change > span { display: flex; align-items: baseline; gap: 4px; }
.hay-change b { font-size: 20px; font-variant-numeric: tabular-nums; }
.hay-change small { font-size: 11px; }
.hay-change .up b { color: var(--warn); }
.hay-change i { font-style: normal; font-weight: 800; color: var(--ink-2); }

/* No scrolling in checkout: one-line shop header, taller sheet allowance. */
.shop-strip { flex-wrap: nowrap; }
.shop-strip .store-name, .shop-strip b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sheet { max-height: calc(100% - 180px * var(--s) - 58px); }
.src-group .src { padding-bottom: 6px; gap: 5px; }
.shop-strip b { flex: 1; }
.shop-strip .strip-sum { flex: none; white-space: nowrap; margin-left: auto; }

.hunger p { gap: 1px; }
.hay-change { gap: 4px; align-items: baseline; white-space: nowrap; }
.hay-change b { font-size: 17px; }
.hay-change small { font-size: 11px; margin-right: 2px; }
.hay-change .up { color: var(--warn); }
.hunger p > small { line-height: 1.15; }
/* Checkout fits without scrolling. */
.owed.sr-only { margin: 0; }
.src-group .src .gc-sm, .src-group .src .cash-face { max-width: 112px; }
.src-face { min-height: 0; }
.sources.grouped { margin-top: 6px; }
.src-group .src { padding: 4px 4px 5px; }

/* Score bar stats are buttons that open info panels. */
.score-bar .stat { border: 0; border-right: 1px solid rgba(246,239,224,.18); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; padding: 4px 10px 4px 0; margin-right: 8px; border-radius: 0; }
.score-bar .stat:last-of-type { border-right: 0; }
.score-bar .stat b { font-size: 18px; }
.score-bar .stat:active { opacity: .7; }
.score-bar { padding-left: 12px; gap: 0; }
.score-bar .stars-stat { border-right: 0; }
.info p { margin: 10px 0; font-size: 14px; line-height: 1.35; }
.info-stars, .info-cards, .info-sum { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.info-stars li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--card); opacity: .6; }
.info-stars li.on { opacity: 1; }
.info-stars .stars { color: var(--gold-deep); letter-spacing: .06em; min-width: 52px; }
.info-stars em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 800; color: var(--accent); }
.info-cards li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; background: var(--card); }
.info-cards li > span { display: flex; flex-direction: column; }
.info-cards small { color: var(--ink-2); }
.info-cards .gc-xs { width: 60px; }
.info-sum li { display: flex; justify-content: space-between; padding: 6px 10px; border-radius: 8px; background: var(--card); font-size: 14px; }
.info-sum li.total { background: none; border-top: 2px solid var(--line); border-radius: 0; font-weight: 800; }

.info-stars li { justify-content: flex-start; text-align: left; }
.info-stars li > span:last-of-type { flex: 1; }
/* Prompt at the foot of the board, just above the score bar. */
.board .board-prompt { margin: 8px 0 0; text-align: center; font-size: 14px; font-weight: 700; color: var(--ink-2); }

/* Board: tips, then the prompt with the ⌃ button. */
.board-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.board-foot .board-prompt { margin: 0; flex: 1; text-align: left; }
/* Money that expires today shows in red on the card. */
.gc-amt.ending { color: #fff; background: var(--red); padding: 0 5px; border-radius: 6px; }

.info-callout { padding: 10px 12px; border-radius: 10px; background: #e7f1ec; color: var(--accent); font-weight: 700; }
.info-h { margin: 14px 0 6px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.info-year { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.info-year li { display: flex; flex-direction: column; align-items: center; padding: 4px 0; border-radius: 8px; background: var(--card); opacity: .55; }
.info-year li.done, .info-year li.now { opacity: 1; }
.info-year li.now { box-shadow: inset 0 0 0 2px var(--accent); }
.info-year small { font-size: 10px; font-weight: 800; color: var(--ink-2); }
.info-year .stars { font-size: 11px; color: var(--gold-deep); letter-spacing: 0; }
.ending-note { color: var(--red) !important; font-weight: 700; }

/* Bottom dock: tips board, then the list / wallet strip, then the score bar. */
#board { display: flex; flex-direction: column; gap: 8px; }
.tip-foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-top: 4px; }
.tip-foot .tip-dots { margin: 0; }
.tip-extra { justify-self: end; }
.tip-extra .expand-btn { width: 34px; height: 34px; min-height: 34px; font-size: 17px; }
#top-objective:empty { display: none; }
.info-year .stars { font-size: 13px; font-weight: 800; }

/* Storefronts sit side by side with a small gap now that "vs" is gone. */
.versus.count-2, .versus.count-3 { gap: 8px; }
.store-badge.cash-tag { background: #dff0e6; color: var(--accent); }

/* Compact shop counter: tidy rows, stepper past five, total at the foot. */
.counter-card { padding: 8px 10px 8px; }
.cline { display: block; padding: 6px 0; }
.cline-head { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 7px; }
.cline .line-item { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); }
.cline .line-item img { width: 22px; height: 22px; }
.cline .line-name { margin: 0; min-width: 0; line-height: 1.15; }
.cline .line-name b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cline .qty-each { font-size: 11.5px; }
.cline .line-total { font-size: 14px; font-variant-numeric: tabular-nums; }
.counter .qty-line { margin: 5px 0 0 37px; gap: 6px; }
.counter .qty-label { font-size: 9.5px; }
.counter .qbox { width: 24px; height: 24px; font-size: 13px; border-radius: 6px; }
.counter .qbox-row { gap: 3px; }
.counter .qty-count { font-size: 15px; }
.qty-line.stepped { display: flex; align-items: center; }
.qty-stepper { max-width: none; width: auto; height: 30px; }
.qty-stepper button { width: 30px; }
.qty-stepper .amt { min-width: 30px; display: grid; place-items: center; font-size: 15px; font-variant-numeric: tabular-nums; }
.qty-of { font-size: 11.5px; color: var(--ink-2); font-weight: 700; }
.also-sells { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 4px 0 0; padding-top: 6px; border-top: 1px dashed var(--line); opacity: .6; }
.also-sells small { width: 100%; font-size: 10.5px; color: var(--ink-2); }
.also-sells img { width: 20px; height: 20px; object-fit: contain; }
.counter-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; padding-top: 6px; border-top: 2px solid var(--line); font-size: 13px; font-weight: 700; color: var(--ink-2); }
.counter-total b { font-size: 18px; color: var(--ink); font-variant-numeric: tabular-nums; }
/* Checkout cards: the warning shrinks to ⚠ so nothing leaks past the edge. */
.gc-bottom { min-width: 0; overflow: hidden; }
.gc-exp.ending { flex: none; }

/* The counter slides in from the right once the seller is idle, and back out. */
.counter { transition: transform .38s cubic-bezier(.2,.8,.2,1), opacity .25s ease, visibility 0s linear .38s; transform: translateX(calc(100% + 24px)); opacity: 0; visibility: hidden; }
.counter.in { transform: none; opacity: 1; visibility: visible; transition: transform .42s cubic-bezier(.2,.8,.2,1), opacity .25s ease, visibility 0s; }
.counter:empty { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .counter, .counter.in { transition: none; } }

/* ---------------------------------------------------------------- motion polish */
/* Overlays: backdrop fades, sheets slide up from below and back down. */
@keyframes ovIn { from { background-color: rgba(40,32,20,0); } }
@keyframes ovOut { to { background-color: rgba(40,32,20,0); } }
@keyframes dlgUp { from { transform: translateY(100%); } }
@keyframes dlgDown { to { transform: translateY(100%); } }
@keyframes popIn { from { transform: translateY(24px) scale(.96); opacity: 0; } }
@keyframes popOut { to { transform: translateY(16px) scale(.97); opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
.overlay.ov-in { animation: ovIn .3s ease both; }
.overlay.ov-out { animation: ovOut .26s ease both; pointer-events: none; }
.overlay.ov-in .sheet-dialog { animation: dlgUp .42s cubic-bezier(.2,.8,.2,1) both; }
.overlay.ov-out .sheet-dialog { animation: dlgDown .26s cubic-bezier(.4,0,1,1) both; }
.overlay.ov-in .intro { animation: popIn .38s cubic-bezier(.2,.8,.2,1) both; }
.overlay.ov-out .intro { animation: popOut .24s ease-in both; }
.overlay.ov-in[data-kind="opening"] > *, .overlay.ov-in[data-kind="settle"] > * { animation: fadeIn .4s ease both; }
.overlay.ov-out[data-kind="opening"] > *, .overlay.ov-out[data-kind="settle"] > * { animation: fadeOut .26s ease both; }
/* Docked panels (menu, wallet, info) rise out from behind the score bar. */
.overlay.docked { bottom: calc(var(--footer-h) + env(safe-area-inset-bottom)); overflow: hidden; }
.overlay.docked .sheet-dialog { padding-bottom: 16px; border-radius: 20px 20px 0 0; box-shadow: 0 -6px 24px rgba(60,40,10,.18); }
.phone.overlay-docked .footer { z-index: 25; }
.score-bar .stat.on small, .score-bar .stat.on b { color: var(--gold); }
.score-bar .stat.on { box-shadow: inset 0 -3px 0 var(--gold); }
.icon-btn.on { color: var(--gold); }
/* The tips + list dock slides down out of the way when the shop panel opens. */
#board { transition: transform .38s cubic-bezier(.2,.8,.2,1), opacity .28s ease, visibility 0s linear 0s; }
#board.away { transform: translateY(calc(100% + 70px)); opacity: 0; visibility: hidden; pointer-events: none; transition: transform .32s cubic-bezier(.4,0,1,1), opacity .22s ease, visibility 0s linear .32s; }
/* Tips slide sideways in the direction you move. */
@keyframes tipNext { from { transform: translateX(28px); opacity: 0; } }
@keyframes tipPrev { from { transform: translateX(-28px); opacity: 0; } }
.tip-body.anim-next > * { animation: tipNext .32s cubic-bezier(.2,.8,.2,1) both; }
.tip-body.anim-prev > * { animation: tipPrev .32s cubic-bezier(.2,.8,.2,1) both; }
/* List ↔ Wallet: the strip cross-slides. */
@keyframes swapIn { from { transform: translateY(8px); opacity: 0; } }
.listbar.swap .chips, .listbar.swap .list-title { animation: swapIn .3s cubic-bezier(.2,.8,.2,1) both; }
/* Speech bubble eases in. */
@keyframes bubbleIn { from { transform: translateY(-8px) scale(.97); opacity: 0; } }
.bubble:not([hidden]) { animation: bubbleIn .3s cubic-bezier(.2,.8,.2,1) both; }
/* Folds (used cards, etc.) open and close smoothly where supported. */
:root { interpolate-size: allow-keywords; }
details::details-content { height: 0; overflow: clip; transition: height .3s ease, content-visibility .3s allow-discrete; }
details[open]::details-content { height: auto; }
/* Reduced motion (system or Menu): no slides, no fades. */
.phone.reduced *, .phone.reduced *::details-content { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { .overlay *, #board, .counter { animation: none !important; transition: none !important; } }

/* Storefront foot: card row, then small tags. Expiry reads as ⚠ on the card. */
.store .exp-word { display: none; }
.store-foot { gap: 5px; margin-top: 6px; }
.store-foot .store-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.store-foot .store-badge { font-size: 10.5px; line-height: 1.15; padding: 3px 7px; border-radius: 999px; }
.versus.count-3 .store-foot .store-badge { font-size: 9.5px; padding: 2px 6px; }
.pay-mini { font-size: 12px; }
.pay-mini .pay-sw.cash { width: 30px; height: 17px; }
/* Pass / cash sit beside the card as single lines spread over its height. */
.store .store-pay.pay-row { align-items: stretch; }
.pay-side { justify-content: space-evenly; gap: 2px; }
.pay-mini { flex-direction: row; align-items: center; gap: 4px; }
.pay-mini .pay-sw { --face-w: 24px; }
.pay-mini .pay-sw.cash { width: 26px; height: 15px; }
/* Three across: symbols go in a row under the card so the card keeps its width. */
.versus.count-3 .store .store-pay.pay-row { flex-direction: column; align-items: center; gap: 4px; }
.versus.count-3 .store .pay-main { flex: none; width: 100%; max-width: 88px; }
.versus.count-3 .pay-side { flex-direction: row; justify-content: center; gap: 8px; }
/* Collapse / expand buttons: a drawn chevron, centered, instead of ⌄ / ⌃ glyphs. */
.collapse-btn .chev, .expand-btn .chev { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; display: block; }
.tip-extra .expand-btn .chev { width: 19px; height: 19px; }
.collapse-btn .chev, .expand-btn .chev { stroke: var(--accent); }
/* Storefront header: a clean straight edge with a thin brand-accent stripe
   (replaces the scalloped awning edge). */
.store .awning { -webkit-mask: none; mask: none; padding-bottom: 8px; box-shadow: inset 0 -4px 0 var(--a, rgba(60,40,10,.15)); }
.versus.count-3 .store .awning { padding-bottom: 7px; }
/* Compact tips board: no expand button, tighter box and dots. */
.board { padding: 6px 8px 4px; }
.tips { margin-top: 0; }
.tip-body { min-height: 60px; }
.tip-slide { padding: 5px 8px; gap: 7px; }
.tip-slide p, .hunger p { font-size: 12.5px; line-height: 1.22; }
.tip-icon, .tip-slide .portrait, .hunger .portrait { width: 30px; height: 30px; font-size: 16px; }
.tip-arrow { width: 24px; font-size: 20px; }
.tip-dots { margin-top: 2px; }
.tip-dot { width: 16px; height: 12px; }
.tip-dot::after { width: 6px; height: 6px; margin: -3px; }

/* Tappable tips: the whole slide is the button, with a small action label. */
.tip-link { flex: 1; display: flex; flex-direction: column; align-items: stretch; margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; position: relative; }
.tip-link > .tip-slide, .tip-link > .hunger { flex: 1; padding-right: 64px; }
.tip-go { position: absolute; right: 8px; bottom: 6px; font-size: 11.5px; font-weight: 800; color: var(--accent); background: #e7f1ec; border-radius: 999px; padding: 2px 8px; }
.tip-link:active > * { filter: brightness(.97); }
/* Cash + Cards = Wallet reads as one sum; Stars sits apart. */
.score-bar .sum { display: flex; align-items: center; margin-right: 10px; padding-right: 10px; border-right: 1px solid rgba(246,239,224,.18); }
.score-bar .sum .stat { border-right: 0; margin-right: 0; padding-right: 0; }
.score-bar .sum .op { font-style: normal; font-size: 17px; font-weight: 800; color: rgba(246,239,224,.45); margin: 14px 7px 0; }
.score-bar .sum .stat.total { padding: 3px 8px; border-radius: 8px; background: rgba(246,239,224,.1); }
.score-bar .sum .stat.total b { color: #fff; }
/* Action label sits at the top right, beside the title, never over the text. */
.tip-link > .tip-slide, .tip-link > .hunger { padding-right: 8px; }
.tip-go { top: 6px; bottom: auto; right: 6px; font-size: 11px; padding: 2px 7px; }
.tip-link p > b:first-child { display: block; padding-right: 78px; }

/* Tips: a finger-swipe strip that snaps to each tip, with the neighbours peeking. */
.tips-row, .tip-arrow { display: none; }
.tip-track { display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 9%; margin: 0 -8px; -webkit-overflow-scrolling: touch; }
.tip-track::-webkit-scrollbar { display: none; }
.tips.single .tip-track { padding: 0; margin: 0; }
.tip-page { flex: 0 0 100%; min-height: 60px; display: flex; scroll-snap-align: center; scroll-snap-stop: always; transition: opacity .25s ease, transform .25s ease; }
.tips.many .tip-page { flex-basis: 100%; }
.tips.many .tip-page:not(.on) { opacity: .55; transform: scale(.97); }
.tip-page > .tip-slide, .tip-page > .hunger, .tip-page > .tip-link { flex: 1; margin: 0; }
.phone.reduced .tip-track { scroll-behavior: auto; }

/* A real speech bubble: solid paper, rounded, tail pointing down at the head. */
.bubble, .shopping .bubble { left: 12px; right: auto; transform: none; padding: 9px 13px 10px; border-radius: 20px; background: var(--card) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border: 2px solid rgba(60,40,10,.14); box-shadow: 0 6px 18px rgba(40,30,10,.22); font-size: 14px; line-height: 1.35; overflow: visible; }
.bubble::before { content: ""; position: absolute; top: auto; bottom: -13px; left: var(--tail-x, 40px); width: 22px; height: 14px; border: 0; background: var(--card); clip-path: polygon(0 0, 100% 0, 30% 100%); filter: drop-shadow(0 2px 0 rgba(60,40,10,.14)); }
.bubble .who { font-size: 10.5px; margin-bottom: 1px; }
.bubble .plan { font-size: 12.5px; }
/* Tip positions are measured against the strip itself. */
.tip-track { position: relative; }
/* Tips box: a small "Tips" header with the dots, then vertically centered tips. */
.board { padding: 7px 8px 8px; }
.tips-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 5px; }
.tips-title { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.tips-title .bulb { width: 15px; height: 15px; fill: #f2d27a; stroke: var(--gold-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tips-head .tip-dots { margin: 0; }
.tip-page { align-items: stretch; }
.tip-slide, .tip-page .hunger { align-items: center; padding: 8px 10px; }
.tip-slide p, .hunger p { display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.tip-slide p > b, .hunger p > b { display: block; }
.tip-link p > b:first-child { padding-right: 78px; }

/* No market title on the play screen (it's on the challenge card). */
#market-label { display: none; }
/* Dock: the list row and the wallet row stacked, compact. */
#board { gap: 6px; }
#board .listbar { padding: 7px 9px 8px; }
#board .list-head { margin-bottom: 5px; gap: 8px; }
#board .list-title { font-size: 14px; }
.row-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--warn); color: #fff; font-size: 11.5px; font-weight: 800; line-height: 20px; text-align: center; }
.hint-btn { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px 0 8px; border: 1.5px solid var(--line); border-radius: 15px; background: var(--card); font-size: 12.5px; font-weight: 800; color: var(--ink); cursor: pointer; }
.hint-btn .bulb, .tips-h .bulb { width: 17px; height: 17px; fill: #f2d27a; stroke: var(--gold-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hint-btn.on { border-color: var(--accent); }
.hint-dot { position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 2px #fff; }
#board .listbar.wallet-mode .list-head .warn-sym { margin-left: auto; }
#board .chips .chip { min-height: 0; }
.tips-h { display: inline-flex; align-items: center; gap: 6px; }
.tips-panel .tips { margin-top: 6px; }
.tips-panel .tips-head { justify-content: center; padding-bottom: 8px; }

/* Shop open: the dock keeps just the row you shopped from, and the panel sits on it. */
#board { z-index: 5; }
#board[data-trim="list"] .listbar.wallet-mode, #board[data-trim="wallet"] .listbar:not(.wallet-mode) { display: none; }
.sheet, .shopping .sheet { top: auto; bottom: calc(var(--footer-h) + env(safe-area-inset-bottom) + var(--dock-h, 0px)); max-height: calc(100% - var(--footer-h) - var(--dock-h, 0px) - 150px); z-index: 4; }
.sheet .sheet-body { overflow-y: auto; }
/* The amount between − and + is a label now (no keypad). */
.stepper .amt { display: grid; place-items: center; min-width: 40px; font-size: 16px; font-variant-numeric: tabular-nums; text-decoration: none; border: 0; background: none; }
/* The list and wallet rows share one glass container, split by a divider. */
.dock-card { position: relative; overflow: hidden; border-radius: 22px; background: var(--glass-fill); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-rim), var(--glass-depth); }
.dock-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 30%; pointer-events: none; background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0)); mix-blend-mode: soft-light; }
.dock-card .listbar { background: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: none !important; border-radius: 0; overflow: visible; }
.dock-card .listbar::before { display: none; }
.dock-card .listbar + .listbar { border-top: 1.5px solid rgba(60,40,10,.14); box-shadow: inset 0 1px 0 rgba(255,255,255,.6) !important; }
#board .dock-card .listbar { padding: 8px 10px 9px; }
@media (prefers-reduced-transparency: reduce) { .dock-card { background: var(--paper) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; } }
/* The shop panel runs down behind the dock row, so no scene shows between them. */
.sheet, .shopping .sheet { bottom: calc(var(--footer-h) + env(safe-area-inset-bottom)); max-height: calc(100% - var(--footer-h) - 150px); padding-bottom: var(--dock-h, 0px); }
/* Three shops: two per row, the third centered underneath at the same width. */
.versus.count-three, .versus.count-many { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; overflow: visible; }
.versus.count-three .store, .versus.count-many .store { flex: 0 0 calc(50% - 4px); min-width: 0; }
/* Three or more shops: slimmer storefronts so two rows fit without scrolling. */
.versus.count-three .store, .versus.count-many .store { padding-bottom: 6px; }
.versus.count-three .store .awning, .versus.count-many .store .awning { padding-top: 5px; padding-bottom: 6px; gap: 2px; min-height: 0; }
.versus.count-three .awning-brand, .versus.count-many .awning-brand { flex-direction: row; }
.versus.count-three .store .awning .portrait, .versus.count-many .store .awning .portrait { width: 26px; height: 26px; }
.versus.count-three .store-body, .versus.count-many .store-body { margin-top: 4px; gap: 6px; }
.versus.count-three .store-item, .versus.count-many .store-item { width: 32px; height: 32px; }
.versus.count-three .store-main .store-price b, .versus.count-many .store-main .store-price b { font-size: 19px; }
.versus.count-three .store-stock, .versus.count-many .store-stock { font-size: 11px; }
.versus.count-three .store .store-pay.pay-row, .versus.count-many .store .store-pay.pay-row { margin-top: 4px; }
.versus.count-three .store-foot, .versus.count-many .store-foot { margin-top: 4px; }

/* Dock: no row titles. Item chips with the count and Tips at the end; the
   wallet cards below. Both rows always show, and every panel rises above them. */
#board .dock-card .listbar { padding: 7px 9px; }
.row-line { display: flex; align-items: center; gap: 8px; }
.row-line .chips { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.row-line .chips::-webkit-scrollbar { display: none; }
.row-tools { flex: none; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.row-tools .row-count { margin: 0; }
.row-tools .hint-btn { height: 30px; padding: 0 8px; }
.row-tools .hint-btn span { display: none; }
#board .chips .chip { padding: 6px 8px 5px; min-width: 50px; }
#board .chip img { width: 30px; height: 30px; }
#board .cards-strip { padding-top: 2px; }
/* Menu, Tips and the score-bar panels also rise from above the dock. */
.overlay.docked { bottom: calc(var(--footer-h) + env(safe-area-inset-bottom) + var(--dock-h, 0px)); }
.phone.overlay-docked #board { z-index: 24; }
/* Tips lives in the score bar, between Stars and the menu. */
.score-bar .bar-tools { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.tips-btn { position: relative; }
.tips-btn .bulb { width: 22px; height: 22px; fill: #f2d27a; stroke: var(--paper); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.tips-btn .hint-dot { top: 6px; right: 6px; box-shadow: 0 0 0 2px var(--ink); }
.score-bar .sum .op { margin: 14px 5px 0; }
.score-bar .sum { margin-right: 8px; padding-right: 8px; }
.score-bar .stars { font-size: 16px; }
/* The dock spans the full width and sits on the score bar; panels rise from it edge to edge. */
#board { left: 0; right: 0; bottom: calc(var(--footer-h) + env(safe-area-inset-bottom)); }
.dock-card { border-radius: 22px 22px 0 0; box-shadow: 0 -4px 16px rgba(40,30,10,.16), inset 0 1px 0 rgba(255,255,255,.7); }
#board .dock-card .listbar { padding-left: 12px; padding-right: 12px; }
/* Counter line: name on top; price, QTY and the boxes share the row under it. */
.cline-head { align-items: start; }
.line-mid { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.line-title { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.line-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.line-sub .qty-each { font-size: 11.5px; color: var(--ink-2); }
.counter .line-sub .qty-line { margin: 0; gap: 4px; }
.counter .line-sub .qty-count { display: none; }
.cline .line-total { align-self: center; }
/* A clear break between the payment panel and the dock below it. */
.dock-card { background: linear-gradient(180deg, #efe6d2, #e8dec8) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border-top: 2px solid rgba(60,40,10,.22); box-shadow: 0 -6px 18px rgba(40,30,10,.22), inset 0 1px 0 rgba(255,255,255,.6) !important; }
.dock-card::before { display: none; }
.sheet .paybar { margin-bottom: 10px; }
.counter .line-sub .qty-label { display: none; }
.line-sub { flex-wrap: nowrap; }

/* List chips while a shop is open: in the basket = full highlight; sold here = light outline. */
#board .chip.here { border-color: var(--accent); box-shadow: 0 0 0 1.5px rgba(46,111,90,.45) inset; background: rgba(238,246,242,.6); }
#board .chip.here .chip-n { color: var(--accent); }

/* ---- Shop counter: a tidy basket card ---- */
.counter-card { padding: 10px 12px 10px; border-radius: 20px; }
.cline { padding: 8px 0; border-bottom: 1px solid rgba(60,40,10,.10); }
.cline:last-of-type { border-bottom: 0; }
.cline-head { display: grid; grid-template-columns: 44px minmax(0, 1fr) 40px; align-items: center; gap: 10px; }
.cline .line-item { width: 44px; height: 44px; padding: 0; display: grid; place-items: center; border-radius: 12px; background: var(--card); border: 0; box-shadow: inset 0 0 0 1.5px var(--line), 0 1px 2px rgba(60,40,10,.08); }
.cline .line-item img { width: 34px; height: 34px; object-fit: contain; margin: 0; display: block; }
.line-mid { gap: 4px; }
.line-title { font-size: 14px; line-height: 1.15; white-space: normal; overflow: visible; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.line-sub { gap: 8px; }
.line-sub .qty-each { min-width: 30px; font-size: 12px; font-weight: 600; }
.counter .qbox { width: 26px; height: 26px; font-size: 14px; }
.cline .line-total { justify-self: end; font-size: 15px; }
.counter-total { margin-top: 4px; padding-top: 8px; border-top: 2px solid rgba(60,40,10,.18); font-size: 12.5px; }
.counter-total b { font-size: 20px; }
/* Wider counter so each line reads cleanly; tiles sized to fit. */
.counter { left: 37%; right: 10px; }
.cline-head { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 9px; }
.cline .line-item { width: 40px; height: 40px; }
.cline .line-item img { width: 30px; height: 30px; }
.line-title { font-size: 14px; }
.line-sub { flex-wrap: wrap; gap: 4px 8px; }
.counter .line-sub .qty-line { display: inline-flex; }
.counter .qbox-row { flex-wrap: wrap; gap: 4px; }
.cline .line-total { min-width: 30px; text-align: right; }
.bubble { font-size: 14px; }
/* The dock is a dark tray that joins the score bar, clearly apart from the light panels above. */
.dock-card { background: linear-gradient(180deg, #4a4137, #3a332b) !important; border-top: 0; box-shadow: 0 -8px 22px rgba(20,14,6,.35), inset 0 1px 0 rgba(255,255,255,.12) !important; }
.dock-card .listbar + .listbar { border-top: 1px solid rgba(246,239,224,.14); box-shadow: inset 0 1px 0 rgba(60,40,10,.25) !important; }
#board .chip { background: #fbf6ea; border-color: transparent; box-shadow: 0 1px 3px rgba(60,40,10,.35); }
#board .chip.on { background: #eaf6ef; box-shadow: 0 0 0 3px #8fd1b3, 0 1px 3px rgba(60,40,10,.35); }
#board .chip.here { background: #fbf6ea; box-shadow: 0 0 0 2px rgba(143,209,179,.7), 0 1px 3px rgba(60,40,10,.35); }
#board .walletchip.on .gc { box-shadow: 0 0 0 3px #8fd1b3, 0 4px 10px rgba(60,40,10,.4); }
.footer { border-top: 1px solid rgba(246,239,224,.08); }
/* Room for the highlight ring on the first and last chip. */
.row-line .chips { padding: 4px 4px; margin: -4px 0; }
#board .cards-strip { padding: 5px 4px 4px; }
/* Odds & Dens: a paper ribbon banner strung over the open ground. */
.market-banner { position: relative; display: flex; justify-content: center; padding: 18px 0 14px; pointer-events: none; }
.mb-line { position: absolute; left: 6%; right: 6%; top: 10px; height: 16px; border-top: 2px solid rgba(70,50,30,.55); border-radius: 50%; }
.mb-cloth { position: relative; transform: rotate(-1.5deg); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 44px 10px; background: linear-gradient(180deg, #fbf4e2, #f1e6cc); color: #5a3a24; clip-path: polygon(0 0, 100% 0, 94% 50%, 100% 100%, 0 100%, 6% 50%); filter: drop-shadow(0 3px 4px rgba(40,25,10,.35)); }
.mb-cloth::before { content: ""; position: absolute; inset: 4px 7%; border-top: 1.5px dashed rgba(138,58,44,.45); border-bottom: 1.5px dashed rgba(138,58,44,.45); pointer-events: none; }
.mb-cloth b { font-family: var(--display); font-size: 22px; font-weight: 800; letter-spacing: .02em; color: var(--red-ink); line-height: 1; }
.mb-cloth small { font-size: 9px; font-weight: 800; letter-spacing: .16em; color: #6b5540; }
/* Dynamic Island / notch: one safe top used everywhere (plus a small buffer). */
.phone { --safe-top: max(12px, calc(var(--sai-top) + 6px)); }
#top { padding-top: var(--safe-top); }
.overlay { padding-top: var(--safe-top); }
.overlay .sheet-dialog { max-height: calc(100% - 8px); }
.overlay[data-kind="opening"], .overlay[data-kind="settle"] { padding-top: 0; }
.sheet, .shopping .sheet { max-height: calc(100% - var(--footer-h) - 150px - var(--safe-top)); }

/* Shopkeepers drawn again above the counter; the bubble stays on top of them. */
#actors { position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none; will-change: transform; }
.bubble { z-index: 6; }
/* A proper speech tail: outline and fill, joined to the bubble's edge. */
.bubble::before { content: ""; position: absolute; top: auto; bottom: -15px; left: var(--tail-x, 40px); width: 26px; height: 16px; border: 0; background: rgba(60,40,10,.2); clip-path: polygon(0 0, 100% 0, 38% 100%); filter: none; }
.bubble::after { content: ""; position: absolute; bottom: -11px; left: calc(var(--tail-x, 40px) + 3px); width: 20px; height: 13px; background: var(--card); clip-path: polygon(0 0, 100% 0, 38% 100%); }
.bubble.tight .plan { display: none; }
.bubble.tight { font-size: 13px; padding: 7px 11px 8px; }
/* Dark tray: no drop shadow; more room between the rows and the tray edge. */
.dock-card { box-shadow: none !important; }
#board .dock-card .listbar { padding: 12px 16px; }
#board .dock-card .listbar.list-row { padding-top: 14px; }
.dock-card .listbar + .listbar { box-shadow: none !important; }
.dialog-head h2.with-bill { display: inline-flex; align-items: center; gap: 10px; }
.info-bill { width: 74px; height: auto; filter: drop-shadow(0 1px 2px rgba(0,0,0,.2)); }
/* Wallet breakdown: the real card or bill on each line. */
.info-sum.with-art li { align-items: center; padding: 6px 10px; }
.sum-name { display: inline-flex; align-items: center; gap: 10px; }
.sum-name .gc-xs { width: 54px; flex: none; }
.sum-bill { width: 54px; height: auto; flex: none; filter: drop-shadow(0 1px 1px rgba(0,0,0,.2)); }
.sum-name .gc-xs .gc-amt, .sum-name .gc-xs .gc-exp { display: none; }

/* A panel rising from the list covers the banner; hide it while one is up. */
.phone.overlay-docked .market-banner { visibility: hidden; }
/* Pass and cash sit apart from the gift cards, after a thin divider. */
.walletchip.first-shared { margin-left: 10px; position: relative; }
.walletchip.first-shared::before { content: ""; position: absolute; left: -10px; top: 10%; bottom: 10%; width: 1.5px; background: rgba(246,239,224,.22); border-radius: 1px; }
/* Narrower counter so the shopkeeper leaves the item images clear. */
.counter { left: 45%; }
.cline-head { gap: 8px; }
.line-title { overflow: hidden; font-size: 13px; }

/* Challenge card: bright, solid paper (no dim glass) and a tighter layout. */
.intro { background: var(--card) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: 0 12px 36px rgba(30,20,8,.35), inset 0 1px 0 #fff !important; }
.intro::before { display: none !important; }
.overlay[data-kind="intro"] { background: rgba(40,32,20,.35); }
.intro .intro-hint { background: #eaf5ee; border-color: #cfe6d8; }
.intro .intro-hint p { font-size: 15px; }
.intro-stars { gap: 2px; }
.intro-targets { margin: 0; font-size: 17px; font-weight: 700; color: var(--ink); }
.intro-targets b { color: var(--gold-deep); letter-spacing: .06em; }
.intro-targets i { font-style: normal; color: var(--ink-2); margin: 0 6px; }
/* Tray reads apart from any ground: darker, with a thin light top edge. */
.dock-card { background: linear-gradient(180deg, #342e27, #2a2520) !important; border-top: 2px solid rgba(246,239,224,.28); }
/* The banner lives on the ground under every panel; panels slide over it. */
#banner { position: absolute; z-index: 2; left: 0; right: 0; bottom: calc(var(--footer-h) + env(safe-area-inset-bottom) + var(--dock-h, 0px)); pointer-events: none; }
.phone.overlay-docked .market-banner { visibility: visible; }
/* Three shops: two across, then one wide shop across the full width.
   Four: two rows of two. An odd last shop (5+) goes wide too. */
.versus.count-three .store:nth-child(3),
.versus.count-many .store:last-child:nth-child(odd) { flex: 0 0 100%; display: grid; grid-template-columns: 1fr 1fr; align-items: center; column-gap: 10px; }
.versus.count-three .store:nth-child(3) .awning,
.versus.count-many .store:last-child:nth-child(odd) .awning { grid-column: 1 / -1; flex-direction: row; justify-content: center; gap: 12px; }
.versus.count-three .store:nth-child(3) .store-body,
.versus.count-many .store:last-child:nth-child(odd) .store-body { justify-content: center; margin: 6px 0; }
.versus.count-three .store:nth-child(3) .store-foot,
.versus.count-many .store:last-child:nth-child(odd) .store-foot { margin: 6px 0; }
/* Wide shop: card + payment on the left, items and price on the right. */
.versus.count-three .store:nth-child(3) .store-foot,
.versus.count-many .store:last-child:nth-child(odd) .store-foot { grid-column: 1; grid-row: 2; justify-self: center; }
.versus.count-three .store:nth-child(3) .store-body,
.versus.count-many .store:last-child:nth-child(odd) .store-body { grid-column: 2; grid-row: 2; justify-self: center; }
.versus.count-three .store:nth-child(3) > .store-owner,
.versus.count-many .store:last-child:nth-child(odd) > .store-owner { grid-column: 1 / -1; }
/* Paper price tag hanging off each item's image. */
.line-art { position: relative; display: block; width: 40px; height: 40px; }
.price-tag { position: absolute; right: -10px; bottom: -8px; display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px 1px 11px; background: #f6e7b8; color: #5a3a14; font-size: calc(11.5px * var(--t)); font-weight: 800; font-variant-numeric: tabular-nums; clip-path: polygon(7px 0, 100% 0, 100% 100%, 7px 100%, 0 50%); transform: rotate(-8deg); filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
.price-tag i { position: absolute; left: 6px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: rgba(90,58,20,.55); }
.cline-head { column-gap: 14px; }
/* Tighter counter rows so three items and the total fit. */
.cline { padding: 6px 0; }
.line-mid { gap: 3px; }
.line-title { -webkit-line-clamp: 1; white-space: nowrap; text-overflow: ellipsis; display: block; }
.counter .qbox { width: 24px; height: 24px; }
.counter-card { padding: 8px 12px 8px; }
.counter-total { margin-top: 2px; padding-top: 6px; }
/* Pay row belongs to the same panel as the cards: no divider, no gap. */
.sheet .paybar { border-top: 0; background: transparent; padding: 2px 12px 8px; margin-bottom: 6px; }
.sheet .sheet-body { padding-bottom: 4px; }
.sheet .checkout { margin-bottom: 0; }
/* Keep the tip's action label inside its card, clear of the strip's clip edge. */
.tip-track { padding-top: 6px; padding-bottom: 6px; }
.tip-go { top: 10px; right: 10px; }
.tip-link p > b:first-child { padding-right: 84px; }
/* Docked panels run down behind the dock, filling in behind its rounded corners. */
.overlay.docked { bottom: calc(var(--footer-h) + env(safe-area-inset-bottom)); }
.overlay.docked .sheet-dialog { padding-bottom: calc(16px + var(--dock-h, 0px)); max-height: calc(100% - 8px); }

/* After Pay: every item bought, with a check on the ones that are now done. */
.ack { flex-direction: column; align-items: stretch; text-align: center; gap: 10px; }
.ack-items { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.ack-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 62px; padding: 8px 4px 6px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); }
.ack-item img { width: 36px; height: 36px; object-fit: contain; }
.ack-item b { font-size: 13px; }
.ack-item.done { box-shadow: inset 0 0 0 2px var(--accent); background: #eaf6ef; }
.ack-item i { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; font-style: normal; font-size: 12px; font-weight: 800; display: grid; place-items: center; }

/* Game over */
.game-over { text-align: center; }
.game-over h2 { margin: 0 0 4px; font-size: 22px; color: var(--red-ink); }
.game-over p { margin: 0 0 12px; }
.go-actions { display: flex; flex-direction: column; gap: 8px; }
.settle .game-over { margin-top: 12px; padding: 14px; border-radius: 14px; background: #f8e9e4; }

/* Odds & Dens across the top, just under the Dynamic Island. */
#top { padding-left: 0; padding-right: 0; }
#banner { position: static; pointer-events: none; }
#banner .market-banner { padding: 2px 0 4px; }
#banner .mb-line { display: none; }
#banner .mb-cloth { width: calc(100% - 20px); padding: 6px 30px 7px; transform: none; clip-path: polygon(0 0, 100% 0, 97% 50%, 100% 100%, 0 100%, 3% 50%); }
#banner .mb-cloth b { font-size: 19px; }
#banner .mb-cloth small { font-size: 8px; }
/* Used gift cards: after the cash, faded, at $0. */
.walletchip.used { opacity: .45; filter: grayscale(.6); cursor: default; }
.walletchip.used.first-shared { margin-left: 10px; }
/* The Mountain Pass reads as prepaid on every card face. */
.gc-kind { position: absolute; top: 5%; right: 6%; padding: 1px 5px; border-radius: 4px; background: rgba(255,255,255,.85); color: #3b4d6b; font-size: .56em; font-weight: 800; letter-spacing: .06em; line-height: 1.35; }
.gc-xs .gc-kind { display: none; }
.gc-top { padding-right: 34%; }
.gc:not(:has(.gc-kind)) .gc-top { padding-right: 0; }
/* Game over as its own card. */
.overlay[data-kind="gameover"] { background: rgba(30,20,10,.55); align-items: center; justify-content: center; }
.game-over-card .impossible { background: none; padding: 0; }
.gc-top { padding-right: 0; }
/* Side-by-side storefronts line up: same-height payment row, tags along the bottom. */
.store { justify-content: flex-start; }
.store .store-foot { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; }
.store .store-pay.pay-row { min-height: 60px; align-items: center; }
.store .store-foot .store-badges { margin-top: auto; padding-top: 4px; }
.store .pay-main .cash-face { max-width: 84px; }
/* Challenge card list: same tiles as the shopping list (picture on top, ×N below). */
.intro .intro-list { display: flex; flex-wrap: nowrap; justify-content: center; gap: 6px; margin: 10px 0 12px; }
.intro .intro-list span { flex: 0 1 52px; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px 2px 5px; border-radius: 12px; background: var(--card); box-shadow: 0 1px 3px rgba(60,40,10,.15); font-size: 14px; font-weight: 800; color: var(--ink-2); }
.intro .intro-list img { width: 30px; height: 30px; object-fit: contain; margin: 0; }
/* Storefront item wears a price tag, like the shop counter. */
.store-body.tagged { flex-direction: column; gap: 4px; }
.store-art { position: relative; display: block; width: 52px; height: 44px; margin: 0 auto; }
.store-art .store-item { width: 44px; height: 44px; }
.store-art .price-tag { right: -22px; bottom: -4px; font-size: 13px; padding: 2px 7px 2px 12px; }
.store-body.tagged .store-stock { font-size: 11.5px; margin-top: 4px; }
/* Tag tucked against the item's corner; the stock line always holds its row. */
.store-art { width: 64px; height: 42px; }
.store-art .store-item { width: 40px; height: 40px; }
.store-art .price-tag { right: -2px; bottom: 2px; font-size: 12.5px; }
.store-body.tagged { gap: 0; margin-top: 4px; }
.store-body.tagged .store-stock { margin-top: 2px; line-height: 1.15; min-height: 1.2em; }
.store-body.tagged .store-stock.blank { visibility: hidden; }
/* Trim so two rows of shops plus a wide one fit without scrolling. */
.store .store-body.tagged .store-stock { font-size: 11px; }
.store .store-pay.pay-row { min-height: 54px; margin-top: 2px; }
.store .store-foot .store-badges { gap: 3px; padding-top: 3px; }
.store-foot .store-badge { padding: 2px 7px; }
.versus.count-three .store:nth-child(3) .store-body, .versus.count-three .store:nth-child(3) .store-foot { margin: 2px 0; }
.versus.count-three, .versus.count-many { gap: 6px; }
.store .awning { padding-top: 4px; }
/* Challenge card chunks. */
.intro-goals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 4px 0 10px; }
.intro-goals span { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 7px 4px; border-radius: 12px; background: var(--card); box-shadow: 0 1px 3px rgba(60,40,10,.12); }
.intro-goals .st { color: var(--gold-deep); font-size: 14px; letter-spacing: .06em; }
.intro-goals b { font-size: 19px; font-variant-numeric: tabular-nums; }
.intro-goals .have { background: #eaf5ee; }
.intro-goals .have small { font-size: calc(11px * var(--t)); font-weight: 800; letter-spacing: .06em; color: var(--accent); }
.intro-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 10px; }
.ichip { padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; }
.ichip.new { background: #e3f2e8; color: var(--accent); }
.ichip.warn { background: #f8e3dc; color: var(--red-ink); }
/* Story gift cards (wage pass, 17 Oct 2026): who gave each of the month's cards, one line each, on the month's first card. */
.gift-lines { list-style: none; margin: 0 auto 10px; padding: 0; max-width: 34em; display: grid; gap: 3px; }
.gift-lines li { font-size: 13px; line-height: 1.3; font-weight: 650; color: #3f3423; background: #fbf4e4; border: 1px solid #ead9b3; border-radius: 10px; padding: 4px 10px; text-align: center; }
/* The card's face with its amount leads the line (owner, 18 Oct 2026); the words sit beside it, left-aligned, and may take two lines. */
.gift-lines li:has(.gl-card) { display: flex; align-items: center; gap: 10px; text-align: left; padding: 4px 10px 4px 6px; }
.gift-lines .gl-card { flex: none; display: block; line-height: 0; }
.gift-lines .gl-card .gc-xs { width: 46px; }
.gift-lines .gl-words { flex: 1; min-width: 0; }
.intro.payday .gift-lines { margin-bottom: 12px; }
.info-cards .gift-from { font-style: italic; opacity: .85; }
@media (max-height: 700px) { .gift-lines { gap: 2px; } .gift-lines li { font-size: 12px; padding: 2px 8px; line-height: 1.25; } }   /* December's four lines fit a 375×667 phone without scrolling */
.intro-tip { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 0 12px; font-size: calc(14px * var(--t)); color: var(--ink-2); }
.intro-tip .bulb { width: 18px; height: 18px; flex: none; fill: #f2d27a; stroke: var(--gold-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* Odds & Dens back on the ground above the list (its own layer under the panels). */
#banner { position: absolute; z-index: 2; left: 0; right: 0; bottom: calc(var(--footer-h) + env(safe-area-inset-bottom) + var(--dock-h, 0px)); pointer-events: none; }
#banner .market-banner { padding: 18px 0 14px; }
#banner .mb-line { display: block; }
#banner .mb-cloth { width: auto; padding: 9px 44px 10px; transform: rotate(-1.5deg); clip-path: polygon(0 0, 100% 0, 94% 50%, 100% 100%, 0 100%, 6% 50%); }
#banner .mb-cloth b { font-size: 22px; }
#banner .mb-cloth small { font-size: 9px; }
#top { padding-left: 12px; padding-right: 12px; }
/* Messages: a full-width strip across the top, under the Dynamic Island. */
.toast { top: var(--safe-top) !important; left: 0; right: 0; bottom: auto; border-radius: 0; padding: 10px 16px; text-align: center; background: rgba(47,42,36,.94); box-shadow: 0 2px 10px rgba(60,40,10,.25); z-index: 30; }
.phone .toast, .phone:has(#counter:not([hidden])) .toast { left: 0 !important; right: 0 !important; }
/* Results screen: the continue button floats at the bottom, always reachable. */
.settle > .primary.wide, .settle > .game-over { position: sticky; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 3; box-shadow: 0 6px 18px rgba(30,20,8,.3), 0 0 0 8px rgba(246,239,224,.85); }
.settle > .game-over { box-shadow: 0 6px 18px rgba(30,20,8,.3); }

/* ---------------------------------------------------------------- party jar */
.jar-svg { display: block; overflow: visible; }
.jar-svg.xs { width: 22px; height: 27px; }
.jar-svg.sm { width: 60px; height: 74px; }
.jar-svg.lg { width: 170px; height: 140px; }
.jar-glass { fill: rgba(255,255,255,.45); }
.jar-fill { fill: #e7b358; }
.jar-extra { fill: rgba(231,179,88,.38); }
.jar-cookies circle { fill: #c98a3a; stroke: #a8702c; stroke-width: 1; }
.jar-line { stroke: rgba(90,60,20,.45); stroke-width: 1.4; stroke-dasharray: 3 3; }
.jar-line.hit { stroke: var(--accent); stroke-dasharray: none; }
.jar-tick { stroke: #7a6a55; stroke-width: 1.4; }
.jar-lbl { font: 800 11px -apple-system, system-ui, sans-serif; fill: #7a6a55; }   /* party labels: never under 11 px (audit 11 §1.1) */
.jar-lbl.hit { fill: var(--accent); }
.jar-rim { fill: none; stroke: #8fa8a0; stroke-width: 2.4; }
.jar-neck { fill: rgba(255,255,255,.6); stroke: #8fa8a0; stroke-width: 2; }
.jar-lid { fill: #b9773d; stroke: #8a5328; stroke-width: 1.5; }
.jar-knob { fill: #8a5328; }
.jar-string { fill: none; stroke: #8a6a3a; stroke-width: 1.2; }
.jar-tag { fill: #fbf1d8; stroke: #c9a86a; stroke-width: 1; }
.jar-hole { fill: #c9a86a; }
.jar-tagtxt { font: 800 8.4px Georgia, serif; fill: var(--red-ink); text-anchor: middle; }
.score-bar .jar-stat { display: inline-flex; align-items: center; gap: 4px; }
.score-bar .jar-stat .jar-glass { fill: rgba(255,255,255,.18); }
.score-bar .jar-stat .jar-rim, .score-bar .jar-stat .jar-neck { stroke: rgba(246,239,224,.7); }
.jar-hero { display: flex; align-items: center; gap: 12px; margin: 6px 0 4px; }
.jar-tiers { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.jar-tiers li { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 8px; padding: 6px 10px; border-radius: 10px; background: var(--card); opacity: .7; }
.jar-tiers li.on { opacity: 1; box-shadow: inset 0 0 0 2px var(--accent); }
.jar-tiers li b { font-size: 13px; } .jar-tiers li span { font-weight: 800; font-variant-numeric: tabular-nums; }
.jar-tiers li small, .jar-tiers li em { grid-column: 1 / -1; font-size: 11.5px; color: var(--ink-2); font-style: normal; }
.jar-tiers li em { color: var(--accent); font-weight: 800; }
.info-year li.met b { color: var(--accent); }
.info-year b { font-size: 12px; font-variant-numeric: tabular-nums; }
/* Challenge card: today's cash · save for Bash · jar */
.intro-goals span small { font-size: calc(11px * var(--t)); font-weight: 800; letter-spacing: .06em; color: var(--ink-2); }
.intro-goals .pace { background: #fbf1d8; }
.intro-goals .have { flex-direction: row; justify-content: center; gap: 4px; }
/* Results: jar and today's savings */
.settle-jar { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 6px 0 10px; }
.settle-saved { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.settle-saved small { font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--ink-2); }
.settle-saved b { font-size: 34px; color: var(--accent); font-variant-numeric: tabular-nums; }
.settle-saved .on-pace { font-weight: 800; color: var(--accent); }
.settle-saved .off-pace { font-weight: 800; color: var(--red-ink); }
/* Finale: party picker and the party itself */
.party-pick { margin: 10px 0 80px; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.party-pick h3 { margin: 0 0 2px; font-size: 16px; text-align: center; }
.party { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); text-align: left; cursor: pointer; position: relative; }
.party.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.party-emoji { font-size: 28px; }
.party-text { display: flex; flex-direction: column; } .party-text small { color: var(--ink-2); }
.party-screen { width: 100%; height: 100%; overflow: auto; padding: calc(24px + var(--sai-top)) 18px 24px; text-align: center; background: radial-gradient(circle at 50% 20%, #fff6dc, #f3e4c2); }
.party-screen.bash { background: radial-gradient(circle at 50% 18%, #6b4bb8, #221638); color: #fbeaff; }
.party-screen.bash .ghost { color: var(--ink); }
.party-screen.bash small { color: #e2d2ff; }
.party-screen.karaoke { background: radial-gradient(circle at 50% 18%, #ffd27a, #e0823d); }
.party-hero { display: block; width: auto; height: min(50vh, 480px); max-width: 100%; object-fit: contain; margin: 12px auto 16px; border-radius: 12px; }
.party-continue { margin-bottom: 8px; }
.overlay[data-kind="party"], .overlay[data-kind="ending"] { background: #000; align-items: stretch; padding-top: 0; }
/* Tips drops down from the top, over whatever is there. */
.overlay[data-kind="tips"] { background: rgba(30,20,8,.25); align-items: flex-start; }
.overlay[data-kind="tips"] .sheet-dialog { border-radius: 0 0 20px 20px; padding-top: calc(12px + var(--safe-top, 12px)); box-shadow: 0 8px 24px rgba(60,40,10,.25); max-height: 70%; }
@keyframes dlgDownIn { from { transform: translateY(-100%); } }
@keyframes dlgUpOut { to { transform: translateY(-100%); } }
.overlay[data-kind="tips"].ov-in .sheet-dialog { animation: dlgDownIn .42s cubic-bezier(.2,.8,.2,1) both; }
.overlay[data-kind="tips"].ov-out .sheet-dialog { animation: dlgUpOut .26s cubic-bezier(.4,0,1,1) both; }
.overlay[data-kind="tips"] { padding-top: 0; }
.jar-svg.lg { width: 210px; height: 134px; }
.party-screen .eyebrow { color: inherit; opacity: .8; }
.party-pick { margin: 4px 0 14px; }

/* ------------------------------------------------------------------ 29 Sep 2026
 * Shop facts panel (engine/facts.js) and storefront headline: big price, how it
 * compares, and what it takes from the jar. Facts are neutral paper; only the
 * pros & cons columns carry colour, and only on their + / − marks and heads. */
.facts { margin: 0 2px 8px; padding: 6px 9px 5px; border-radius: 12px; background: var(--card); box-shadow: var(--shadow); text-align: left; }
.facts-head { display: flex; align-items: center; gap: 8px; margin: 0; min-height: 26px; }
.facts-head b { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.facts-head small { flex: 1; font-size: 10.5px; color: var(--ink-2); font-style: italic; }
.facts-toggle { flex: none; min-height: 26px; padding: 0 10px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 11.5px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.facts.folded { padding-bottom: 6px; }
.fact-shop { margin-top: 4px; padding: 1px 0 3px 8px; border-left: 3px solid var(--b); }
.fact-shop + .fact-shop { margin-top: 5px; }
.fact-shop-name { display: flex; align-items: center; gap: 4px; margin: 0 0 1px; font-size: 11.5px; font-weight: 800; color: var(--ink); }
.fact-shop-name .store-logo { width: 12px; height: 12px; background: var(--b); }
.facts ul { list-style: none; margin: 0; padding: 0; }
.fact { display: flex; gap: 4px; font-size: 11.5px; line-height: 1.15; color: var(--ink); }
.fact + .fact { margin-top: 1px; }
.fact-mark { flex: none; width: 9px; font-style: normal; font-weight: 800; text-align: center; color: var(--ink-2); }
.fact.none { color: var(--ink-2); }
.fact-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fact-col-h { margin: 0; font-size: 9.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.fact-col.pros .fact-col-h, .facts.procon .fact.pro .fact-mark { color: var(--accent); }
.fact-col.cons .fact-col-h, .facts.procon .fact.con .fact-mark { color: var(--warn); }
.fact-list.also { margin-top: 2px; }
.fact-list.also .fact { color: var(--ink-2); }
.basket .facts { margin: 8px 0; box-shadow: none; border: 1px solid var(--line); }
.basket .facts .fact-shop { margin-top: 2px; }
.basket .facts .fact-shop-name { display: none; }

/* Storefront headline */
.store.headline .store-body.tagged { flex-direction: row; align-items: center; justify-content: center; gap: 8px; margin-top: 6px; }
.store.headline .store-art { width: 44px; height: 44px; margin: 0; }
.store-big { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.store-big b { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; color: var(--ink); }
.store-big small { margin-top: 2px; font-size: 11px; font-weight: 700; color: var(--ink-2); }
.store-delta { display: inline-block; margin-top: 5px; padding: 2px 8px; border-radius: 999px; background: var(--paper-2); color: var(--ink); font-size: 11.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.store.headline .store-stock { margin-top: 3px; font-size: 11px; }
.store.headline .store-foot { flex: none; margin-top: 6px; width: 100%; }
.store-jar { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 0 5px; width: 100%; padding: 5px 8px; border-radius: 10px; background: var(--paper-2); }
.store-jar small { font-size: 10px; font-weight: 800; letter-spacing: .06em; color: var(--ink-2); }
.store-jar b { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); }
.store-jar-by { flex-basis: 100%; font-size: 11px; font-weight: 600; color: var(--ink-2); }
.versus.count-three .store-big b, .versus.count-many .store-big b { font-size: 25px; }
.versus.count-three .store.headline .store-art, .versus.count-many .store.headline .store-art { width: 36px; height: 36px; }
.wstore.headline .store-main { align-items: center; }
.wstore .store-big.list-total { align-items: center; margin-top: 3px; }
.wstore .store-big.list-total b { font-size: 24px; }
.wstore.headline .store-foot { gap: 6px; }

/* Menu → Pros & cons */
.menu-setting { margin: 6px 0 10px; }
.menu-setting-h { margin: 0 0 6px; font-weight: 700; }
.segmented { display: flex; gap: 0; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.segmented .seg { flex: 1; min-height: var(--tap); border: 0; background: var(--card); font-size: 14px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.segmented .seg + .seg { border-left: 1.5px solid var(--line); }
.segmented .seg.on { background: var(--accent); color: #fff; }
/* With the facts panel open, storefronts drop the portrait row so they stay in view. */
/* Compact storefronts keep the shopkeeper's name (it matches the table's columns); only the portrait goes. */
.facts ~ .versus .store .awning-owner .portrait { display: none; }
.facts ~ .versus .store .awning-owner { margin-top: -1px; }
.facts ~ .versus .store .awning-owner .owner-name { font-size: 12px; opacity: .9; }
.facts ~ .versus .store .awning { padding-top: 6px; padding-bottom: 6px; min-height: 0; }
.facts ~ .versus .store.headline .store-body.tagged { margin-top: 4px; }
.facts ~ .versus .store-big b { font-size: 26px; }
/* Payment columns: clear space on both sides of each dashed divider so a
 * selected card's outline never touches the line or the next column. */
.sources.grouped { column-gap: 0; }
.sources.grouped .src-group { padding: 0 9px; }
.sources.grouped .src-group:first-child { padding-left: 0; }
.sources.grouped .src-group:last-child { padding-right: 0; }
.sources.grouped .src-group { grid-template-columns: minmax(0, 1fr); }
.sources.grouped .src-group > * { min-width: 0; }
.sources.grouped .stepper { width: 100%; max-width: 100%; }
.sources.grouped .stepper button { flex: 0 0 28px; width: 28px; }
.sources.grouped .stepper .amt { flex: 1 1 0; min-width: 0; }

/* Acorns: Pika Cash's symbol (29 Sep 2026). The icon is a mask, so it takes
 * the colour of the text it sits in, and is sized in em to match that text. */
tom-acorn.acorn { display: inline-block; width: .7em; height: .9em; margin-right: .06em; vertical-align: -.08em; color: inherit; }
.acorn svg { display: block; width: 100%; height: 100%; overflow: visible; }
/* Weight 400 → 2.6, 700 → 4.0, 800 → 4.4: heavier text, heavier acorn, but the shape never closes up. */
.acorn path { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: calc(2.6px + (var(--aw, 400) - 400) * .0045px); }
.acorn .a-hatch { stroke-width: calc(1.2px + (var(--aw, 400) - 400) * .0015px); }
.money { white-space: nowrap; }

/* ⓘ in the shop header and its "at a glance" card (29 Sep 2026). The card
 * grows up out of the header over the scene; nothing behind it moves. */
.shop-strip .strip-div { flex: none; width: 1px; align-self: stretch; margin: 2px 2px; background: currentColor; opacity: .35; }
.shop-strip .info-btn { position: relative; flex: none; display: grid; place-items: center; width: 32px; height: 32px; margin: -4px -4px -4px 0; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.16); color: var(--i); cursor: pointer; }
.shop-strip .info-btn::after { content: ""; position: absolute; inset: -6px; }
.shop-strip .info-btn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.shop-strip .info-btn .dot { fill: currentColor; stroke-width: 2.4; }
.shop-strip .info-btn.on { background: var(--i); color: var(--b); }
.phone.shop-info-open .sheet { z-index: 7; }
.phone.shop-info-open #board { z-index: 8; }
.shop-info { position: absolute; z-index: 3; left: 10px; right: 10px; bottom: calc(100% - 48px); overflow-y: auto; overscroll-behavior: contain; padding: 10px 12px 12px; border-radius: 18px; background: var(--card); box-shadow: 0 0 0 1.5px var(--b), 0 -10px 30px rgba(40,30,15,.30); text-align: left; }
.shop-info.opening { animation: siGrow .36s cubic-bezier(.2,.8,.2,1) both; }
.shop-info.closing { animation: siFold .24s cubic-bezier(.4,0,1,1) both; }
@keyframes siGrow { from { clip-path: inset(calc(100% - 40px) 0 0 0 round 18px); } to { clip-path: inset(0 0 0 0 round 18px); } }
@keyframes siFold { from { clip-path: inset(0 0 0 0 round 18px); } to { clip-path: inset(calc(100% - 40px) 0 0 0 round 18px); opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .shop-info.opening, .shop-info.closing { animation: none; } }
.phone.reduced .shop-info { animation: none; }
.si-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.si-head b { font-size: 14px; font-weight: 800; }
.si-head small { flex: 1; font-size: 11px; font-style: italic; color: var(--ink-2); }
.si-close { flex: none; width: 32px; height: 32px; border: 1.5px solid var(--line); border-radius: 50%; background: var(--paper); font-size: 14px; font-weight: 800; color: var(--ink-2); cursor: pointer; }
.si-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chip-fact { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 8px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); font-size: 12px; font-weight: 650; line-height: 1.15; color: var(--ink); }
.chip-fact i { font-style: normal; font-weight: 800; color: var(--ink-2); }
.chip-fact.pro { border-color: rgba(47,111,94,.35); background: var(--accent-2); color: #22584a; } .chip-fact.pro i { color: var(--accent); }
.chip-fact.con { border-color: rgba(181,84,28,.30); background: #fbeee4; color: #7f3a12; } .chip-fact.con i { color: var(--warn); }
.si-h { margin: 12px 0 5px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.vs-cols, .vs-row { display: grid; grid-template-columns: minmax(0, 1.4fr) 54px minmax(0, 1fr) 46px; align-items: center; column-gap: 6px; }
.vs-cols { padding: 0 8px 3px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.vs-cols span:nth-child(2) { text-align: center; }
.vs-table { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.vs-row { padding: 5px 8px; border-radius: 12px; background: var(--paper); }
.vs-item { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12.5px; font-weight: 700; }
.vs-item img { flex: none; width: 28px; height: 28px; object-fit: contain; }
.vs-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-item small { font-weight: 700; color: var(--ink-2); }
.vs-here { text-align: center; padding: 3px 0; border-radius: 8px; background: color-mix(in srgb, var(--b) 14%, transparent); }
.vs-here b { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.vs-there { display: flex; align-items: baseline; gap: 5px; min-width: 0; }
.vs-there b { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.vs-there.none { font-size: 11.5px; font-style: italic; color: var(--ink-2); }
.vs-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; color: var(--ink-2); }
.vs-who em { margin-left: 4px; padding: 0 5px; border-radius: 6px; background: var(--paper-2); font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.vs-diff { justify-self: end; padding: 2px 7px; border-radius: 999px; background: var(--paper-2); font-size: 11.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.si-money { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 6px; }
.mchip { display: flex; flex-direction: column; gap: 1px; padding: 7px 9px; border-radius: 12px; background: var(--paper); line-height: 1.15; }
.mchip small { font-size: 9.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.mchip b { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.mchip.card { background: var(--b); color: var(--i); } .mchip.card small { color: inherit; opacity: .8; }
.mchip.pass { background: #7B8FAD; color: #F2EFE6; } .mchip.pass small { color: inherit; opacity: .8; }
/* Compact at-a-glance: chips share lines, rows stay inside the card. */
.si-head { margin-bottom: 6px; } .si-head b { flex: 1; }
.shop-info { padding: 9px 10px 10px; transform-origin: bottom center; }
.si-chips { gap: 5px; }
.chip-fact { padding: 3px 9px 3px 7px; font-size: 11.5px; font-weight: 600; }
.si-h { margin: 10px 0 4px; }
.vs-cols, .vs-row { grid-template-columns: minmax(0, 1fr) 48px minmax(0, .9fr) auto; column-gap: 5px; }
.vs-table, .si-chips, .si-money, .vs-cols { width: 100%; min-width: 0; }
.vs-row { padding: 4px 6px; min-width: 0; }
.vs-item img { width: 24px; height: 24px; }
.vs-here b { font-size: 16px; }
.mchip { padding: 6px 8px; }
#sheet .shop-info { width: auto; }
.si-h { margin: 8px 0 3px; } .vs-table { gap: 3px; } .si-head { margin-bottom: 4px; } .shop-info { padding-bottom: 12px; }

/* ------------------------------------------------------------------ fact pills
 * One fact = one pill: icon + a few words. Neutral paper in facts mode;
 * soft green / orange with + / − in pros & cons mode. */
.facts.pillbox { padding: 7px 9px 8px; }
.facts.pillbox .facts-head { gap: 8px; }
.facts.pillbox .facts-head small { flex: 1; }
.facts-legend { flex: 1; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--ink-2); }
.facts-legend .lg { display: inline-grid; place-items: center; width: 15px; height: 15px; margin-left: 4px; border-radius: 50%; font-style: normal; font-weight: 800; font-size: 11px; color: #fff; }
.facts-legend .lg.pro { background: var(--accent); } .facts-legend .lg.con { background: var(--warn); }
.fact-rows { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fact-row { display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: start; gap: 6px; }
.fr-name { display: flex; align-items: center; gap: 4px; min-height: 26px; font-size: 11.5px; font-weight: 800; color: var(--ink); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fr-name .store-logo { flex: none; width: 13px; height: 13px; background: var(--b); }
.pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.pill { display: inline-flex; min-width: 0; }
.pill-in { display: inline-flex; align-items: center; gap: 4px; min-height: 26px; padding: 2px 9px 2px 5px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); font-size: 12px; font-weight: 700; line-height: 1.15; color: var(--ink); white-space: nowrap; }
.pill-t { overflow: hidden; text-overflow: ellipsis; }
.pill.pro .pill-in { border-color: rgba(47,111,94,.30); background: var(--accent-2); color: var(--accent-ink); }
.pill.con .pill-in { border-color: rgba(181,84,28,.28); background: #fbece1; color: var(--warn-ink); }
.pill.neutral .pill-in { color: var(--ink-2); }
.pill-mark { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; font-size: 11px; font-weight: 800; color: #fff; background: var(--accent); }
.pill.con .pill-mark { background: var(--warn); }
.pill-svg { flex: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.pill-card { position: relative; flex: none; display: inline-grid; place-items: center; --face-w: 22px; width: var(--face-w); height: calc(var(--face-w) / var(--card-face-aspect)); border-radius: 3.5px; background: var(--b); box-shadow: inset 0 0 0 1px rgba(60,40,10,.12); }
.pill-card .store-logo { width: 10px; height: 10px; background: var(--i); }
.pill-card img { width: 11px; height: 11px; object-fit: contain; }
.pill-card.crossed::after { content: ""; position: absolute; left: -2px; right: -2px; top: 50%; height: 1.8px; background: var(--ink); transform: rotate(-24deg); border-radius: 2px; }
.pill-item { flex: none; width: 17px; height: 17px; object-fit: contain; }
.pill-items { display: inline-flex; gap: 1px; } .pill-items img { width: 17px; height: 17px; object-fit: contain; }
.basket .facts.pillbox .fact-row { grid-template-columns: minmax(0, 1fr); }
.basket .facts.pillbox .fr-name { display: none; }

/* ------------------------------------------------------------------ ⓘ card, v2
 * Flush on top of the shop sheet, full width, so the panel reads as one piece
 * that grew taller. Brand-coloured header band, pills, then two clean blocks. */
#sheet .shop-info { left: 0; right: 0; width: auto; padding: 0 12px 12px; border-radius: 20px 20px 0 0; box-shadow: 0 -10px 28px rgba(40,30,15,.26); background: var(--paper); }
.phone.shop-info-open .bubble { opacity: 0; pointer-events: none; }
.shop-info .si-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 8px; margin: 0 -12px 10px; padding: 10px 12px; border-radius: 20px 20px 0 0; background: var(--b); color: var(--i); }
.shop-info .si-head .store-logo { width: 18px; height: 18px; background: var(--i); }
.shop-info .si-head b { flex: 1; font-size: 15px; font-weight: 800; }
.shop-info .si-close { width: 30px; height: 30px; border: 0; background: rgba(255,255,255,.2); color: var(--i); font-size: 13px; }
.shop-info .pills { margin-bottom: 2px; }
.shop-info .si-h { margin: 12px 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .02em; text-transform: none; color: var(--ink); }
.shop-info .vs-table { gap: 6px; }
.shop-info .vs-row { grid-template-columns: minmax(0, 1fr) 62px 74px auto; column-gap: 8px; padding: 6px 8px; border-radius: 14px; background: var(--card); box-shadow: 0 1px 2px rgba(60,40,10,.10); }
.shop-info .vs-item { font-size: 14px; } .shop-info .vs-item img { width: 30px; height: 30px; }
.shop-info .vs-here, .shop-info .vs-there { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 0; padding: 3px 4px; border-radius: 10px; line-height: 1; }
.shop-info .vs-here { background: color-mix(in srgb, var(--b) 16%, var(--card)); }
.shop-info .vs-there { background: var(--paper); }
.shop-info .vs-here small, .shop-info .vs-there small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 700; color: var(--ink-2); }
.shop-info .vs-here b { font-size: 18px; } .shop-info .vs-there b { font-size: 16px; }
.shop-info .vs-there.none { background: none; }
.shop-info .vs-diff { font-size: 12px; padding: 3px 8px; }
.shop-info .si-money { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); align-items: stretch; gap: 6px; }
.shop-info .mchip { justify-content: center; min-height: 58px; padding: 7px 10px; border-radius: 14px; background: var(--card); box-shadow: 0 1px 2px rgba(60,40,10,.10); }
.shop-info .mchip small { font-size: 10px; letter-spacing: .06em; }
.shop-info .mchip b { font-size: 17px; }
.shop-info .mchip.m-card { background: var(--b); color: var(--i); } .shop-info .mchip.m-card small { color: inherit; opacity: .85; }
.shop-info .mchip.m-pass { background: #7B8FAD; color: #F2EFE6; } .shop-info .mchip.m-pass small { color: inherit; opacity: .85; }
/* Tighter at-a-glance rows so three items and the money fit without scrolling. */
.shop-info .vs-row { padding: 4px 6px; }
.shop-info .vs-item img { width: 26px; height: 26px; }
.shop-info .vs-here, .shop-info .vs-there { flex-direction: row; gap: 5px; padding: 5px 6px; }
.shop-info .vs-here b { font-size: 16px; } .shop-info .vs-there b { font-size: 15px; }
.shop-info .vs-row { grid-template-columns: minmax(0, 1fr) auto auto auto; }
.shop-info .si-h { margin: 10px 0 5px; }
.shop-info .mchip { min-height: 0; padding: 6px 10px; }

/* ------------------------------------------------------------------ compare table
 * One column per shop, rows in plain words. Colour only in pros & cons mode:
 * green cells help you, orange cells cost you. */
.facts.cmpbox { padding: 7px 8px 8px; }
.facts.cmpbox .facts-head { gap: 8px; margin-bottom: 4px; }
.facts.cmpbox .facts-head small { flex: 1; }
.cmp-key { flex: 1; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--ink-2); }
.cmp-key i { width: 11px; height: 11px; margin-left: 6px; border-radius: 4px; }
.cmp-key i.tone-good { background: var(--accent-2); box-shadow: inset 0 0 0 1.5px rgba(47,111,94,.45); }
.cmp-key i.tone-bad { background: #fbece1; box-shadow: inset 0 0 0 1.5px rgba(181,84,28,.45); }
.cmp-scroll { overflow-x: auto; margin: 0 -2px; padding: 0 2px; scrollbar-width: none; }
.cmp { display: grid; grid-template-columns: 76px repeat(var(--n), minmax(0, 1fr)); min-width: 100%; }
.cmp.wide { grid-template-columns: 76px repeat(var(--n), 92px); }
.cmp-row { display: contents; }
.cmp-label, .cmp-cell, .cmp-shop { padding: 5px 6px; border-bottom: 1px solid var(--line); }
.cmp-row:last-child > * { border-bottom: 0; }
.cmp-label { position: sticky; left: 0; z-index: 1; display: flex; align-items: center; background: var(--card); font-size: 11px; font-weight: 700; line-height: 1.15; color: var(--ink-2); }
.cmp-head .cmp-label { border-bottom: 0; }
.cmp-shop { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 0 2px 2px; border: 0; border-radius: 8px; background: var(--b); color: var(--i); font-size: 11.5px; font-weight: 800; white-space: nowrap; overflow: hidden; }
.cmp-shop span { overflow: hidden; text-overflow: ellipsis; }
.cmp-shop .store-logo { flex: none; width: 12px; height: 12px; background: var(--i); }
.cmp-cell { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; margin: 0 2px; text-align: center; font-size: 13px; font-weight: 700; line-height: 1.15; color: var(--ink); font-variant-numeric: tabular-nums; }
.cmp-cell small { font-size: 10.5px; font-weight: 600; color: var(--ink-2); }
.cmp-cell.tone-good { background: var(--accent-2); color: var(--accent-ink); border-radius: 6px; }
.cmp-cell.tone-bad { background: #fbece1; color: var(--warn-ink); border-radius: 6px; }
.cmp-cell.tone-good small, .cmp-cell.tone-bad small { color: inherit; opacity: .8; }
.cmp-items { display: inline-flex; gap: 2px; } .cmp-items img { width: 22px; height: 22px; object-fit: contain; }
.cmp-cheaper { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; } .cmp-cheaper img { width: 20px; height: 20px; object-fit: contain; }

/* ⓘ card: plain label / value rows */
.si-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 6px; margin: 0; }
.si-kv > div { display: flex; flex-direction: column; gap: 1px; padding: 7px 10px; border-radius: 12px; background: var(--card); box-shadow: 0 1px 2px rgba(60,40,10,.10); }
.si-kv dt { font-size: 11px; font-weight: 700; color: var(--ink-2); }
.si-kv dd { margin: 0; font-size: 15px; font-weight: 800; color: var(--ink); }
.si-kv > .tone-good { background: var(--accent-2); } .si-kv > .tone-good dd { color: var(--accent-ink); }
.si-kv > .tone-bad { background: #fbece1; } .si-kv > .tone-bad dd { color: var(--warn-ink); }
/* Compact comparison: tighter cells, amounts never split from their acorn. */
.cmp-label, .cmp-cell, .cmp-shop { padding: 3px 5px; }
.cmp-cell { font-size: 12.5px; }
.cmp-cell .money, .cmp-cell .nw { white-space: nowrap; display: inline-flex; align-items: baseline; }
.cmp-key i { flex: none; align-self: center; }
.cmp-cheaper { display: grid; grid-template-columns: auto auto; column-gap: 3px; align-items: center; justify-items: start; }
.cmp-cheaper img { grid-row: span 2; }
.cmp-cheaper small { font-size: 10px; line-height: 1; }
.cmp-cheaper + .cmp-cheaper { margin-top: 2px; }
.si-kv > div { padding: 5px 10px; }
.si-kv dd { font-size: 14px; }
.cmp-txt { display: block; font-size: 12px; line-height: 1.15; } .cmp-txt + .cmp-txt { margin-top: 2px; }
.shop-info .si-h.first { margin-top: 2px; }
.shop-info .si-money { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shop-info .mchip.kv small { text-transform: none; letter-spacing: 0; font-size: 10.5px; }
.shop-info .mchip.tone-good { background: var(--accent-2); color: var(--accent-ink); }
.shop-info .mchip.tone-bad { background: #fbece1; color: var(--warn-ink); }

/* Storefront: the item big enough to see, stock as dots beneath it (29 Sep 2026). */
.store.headline .store-body.tagged { gap: 10px; margin-top: 8px; }
.store.headline .store-art.big { display: flex; flex-direction: column; align-items: center; gap: 5px; width: auto; height: auto; margin: 0; }
.store.headline .store-art.big .store-item { width: 68px; height: 68px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(60,40,10,.18)); }
.versus.count-three .store.headline .store-art.big .store-item, .versus.count-many .store.headline .store-art.big .store-item { width: 56px; height: 56px; }
.facts ~ .versus .store.headline .store-art.big .store-item { width: 60px; height: 60px; }
.facts ~ .versus.count-three .store.headline .store-art.big .store-item, .facts ~ .versus.count-many .store.headline .store-art.big .store-item { width: 50px; height: 50px; }
.stock-pips { display: flex; align-items: center; justify-content: center; gap: 3px; min-height: 8px; }
.stock-pips i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.stock-pips i.need { background: var(--accent); }
.stock-pips i.miss { background: none; box-shadow: inset 0 0 0 1.5px var(--warn); border-radius: 50%; outline: 1px dashed var(--warn); outline-offset: -1px; }
.stock-pips small { font-size: 10px; font-weight: 800; color: var(--ink-2); }
.store.headline .store-delta { margin-top: 6px; }
/* Wallet storefronts: the list items this shop has, big enough to recognise. */
.wstore .store-has { gap: 6px; min-height: 44px; }
.wstore .store-has img { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(60,40,10,.16)); }
.versus.count-three .wstore .store-has img, .versus.count-many .wstore .store-has img { width: 34px; height: 34px; }
/* Three or more shops: every storefront keeps the same shape (the odd one out
 * is centred at the same width), and the art box sizes to its image + dots. */
.versus .store.headline .store-art.big { width: auto; height: auto; }
.versus.count-three .store.headline:nth-child(3), .versus.count-many .store.headline:last-child:nth-child(odd) { display: flex; flex-direction: column; align-items: center; flex: 0 0 calc(50% - 4px); }
.versus.count-three .store.headline:nth-child(3) .awning, .versus.count-many .store.headline:last-child:nth-child(odd) .awning { flex-direction: column; gap: 2px; }
.versus.count-three .store.headline:nth-child(3) .store-body, .versus.count-many .store.headline:last-child:nth-child(odd) .store-body { margin: 8px 0 0; }

/* Price later: a tiny staircase of what Mallow's hay costs after each finished item. */
.stairs { display: inline-flex; align-items: flex-end; gap: 3px; height: 38px; }
.stair { display: flex; align-items: flex-end; justify-content: center; width: 19px; height: calc(12px + var(--h) * 7px); border-radius: 4px 4px 2px 2px; background: rgba(181,84,28,.22); }
.stair.now { background: rgba(60,40,10,.14); }
.stair b { margin-bottom: 1px; font-size: 9.5px; font-weight: 800; line-height: 1; color: inherit; }
.cmp-cell:not(.tone-bad) .stair { background: rgba(60,40,10,.12); }
.cmp-cell .stairs + small { margin-top: 2px; font-size: 9.5px; line-height: 1.15; }
.stock-pips .stock-n { margin-left: 4px; font-size: 12px; font-weight: 800; line-height: 1; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.stock-pips .stock-n.short { color: var(--warn); }
/* Paid with: the card as a small chip in its shop's colours. */
.cmp-cardchip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px 6px; border-radius: 6px; background: var(--b); color: var(--i); font-size: 11.5px; font-weight: 800; white-space: nowrap; box-shadow: inset 0 0 0 1px rgba(60,40,10,.1); }
.cmp-cardchip .store-logo { width: 12px; height: 12px; background: var(--i); }
.cmp-cardchip img { width: 12px; height: 12px; object-fit: contain; }
/* Pinned row labels fully cover anything scrolling underneath them: no scroll
 * padding to peek through, and a solid backing that reaches the left edge. */
.cmp-scroll { margin: 0; padding: 0; }
.cmp-label { z-index: 2; background: var(--card); box-shadow: -10px 0 0 var(--card), 3px 0 4px -3px rgba(60,40,10,.18); }
.cmp-head .cmp-label { box-shadow: -10px 0 0 var(--card); }

/* Compare shops / Today's shops: the panel may rise to just under the market
 * label, so the table and every storefront fit without scrolling. A checkout
 * keeps its lower cap so the shopkeeper stays in view. */
.phone:not(.shopping) .sheet { max-height: calc(100% - var(--footer-h) - env(safe-area-inset-bottom) - var(--safe-top, 0px) - 34px); }

/* Three or more shops: one row of three compact storefronts (a second row for
 * 4–6 in wallet mode), so the whole panel fits without scrolling. */
.versus.count-three, .versus.count-many { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding-bottom: 4px; }
.versus.count-three .store, .versus.count-many .store,
.versus.count-three .store.headline:nth-child(3), .versus.count-many .store.headline:last-child:nth-child(odd),
.versus.count-three .store:nth-child(3), .versus.count-many .store:last-child:nth-child(odd) { grid-column: auto; flex: none; width: auto; min-width: 0; display: flex; flex-direction: column; align-items: stretch; padding: 0 4px 6px; }
.versus.count-three .store .awning, .versus.count-many .store .awning { flex-direction: column; gap: 1px; margin: 0 -4px; padding: 5px 4px 6px; min-height: 0; }
.versus.count-three .store .awning-brand, .versus.count-many .store .awning-brand { flex-direction: row; gap: 3px; justify-content: center; }
.versus.count-three .store .store-name, .versus.count-many .store .store-name { font-size: 10.5px; line-height: 1.15; white-space: normal; text-align: center; }
.versus.count-three .store .store-logo, .versus.count-many .store .store-logo { width: 12px; height: 12px; }
.versus.count-three .store .awning-owner .portrait, .versus.count-many .store .awning-owner .portrait { display: none; }
.versus.count-three .store .owner-name, .versus.count-many .store .owner-name { font-size: 10.5px; }
.versus.count-three .store.headline .store-body.tagged, .versus.count-many .store.headline .store-body.tagged { flex-direction: column; gap: 2px; margin: 6px 0 0; }
.versus.count-three .store.headline .store-art.big .store-item, .versus.count-many .store.headline .store-art.big .store-item { width: 44px; height: 44px; }
.versus.count-three .store-big, .versus.count-many .store-big { align-items: center; }
.versus.count-three .store-big b, .versus.count-many .store-big b { font-size: 21px; }
.versus.count-three .store-big small, .versus.count-many .store-big small { font-size: 10px; margin-top: 0; }
.versus.count-three .store-delta, .versus.count-many .store-delta { align-self: center; margin-top: 4px; padding: 1px 6px; font-size: 10px; }
.versus.count-three .stock-pips i, .versus.count-many .stock-pips i { width: 6px; height: 6px; }
.versus.count-three .stock-pips .stock-n, .versus.count-many .stock-pips .stock-n { font-size: 10.5px; margin-left: 2px; }
/* Wallet storefronts in the same grid */
.versus.count-three .wstore .store-has img, .versus.count-many .wstore .store-has img { width: 26px; height: 26px; }
.versus.count-three .wstore .store-has, .versus.count-many .wstore .store-has { gap: 2px; min-height: 28px; flex-wrap: wrap; justify-content: center; }
.versus.count-three .wstore .store-big.list-total b, .versus.count-many .wstore .store-big.list-total b { font-size: 19px; }
.versus.count-three .wstore .store-big.list-total small, .versus.count-many .wstore .store-big.list-total small { font-size: 10px; }
.versus.count-three .wstore .store-foot, .versus.count-many .wstore .store-foot { display: none; }
.cmp-label, .cmp-cell, .cmp-shop { padding-top: 2px; padding-bottom: 2px; } .versus.count-three .store.headline .store-body.tagged { margin-top: 4px; }

/* Closing never pops (29 Sep 2026): exits ease in and out over a touch longer
 * than entrances, so a tall panel leaves at a readable speed. */
.sheet { transition: transform .46s cubic-bezier(.45,0,.55,1), visibility 0s linear .46s; }
.panel-open .sheet { transition: transform .38s cubic-bezier(.2,.8,.2,1), visibility 0s linear 0s; }
.overlay.ov-out { animation: ovOut .36s ease both; }
.overlay.ov-out .sheet-dialog { animation: dlgDown .36s cubic-bezier(.45,0,.55,1) both; }
.overlay[data-kind="tips"].ov-out .sheet-dialog { animation: dlgUpOut .36s cubic-bezier(.45,0,.55,1) both; }
.overlay.ov-out .intro { animation: popOut .3s ease-in-out both; }
.overlay.ov-out[data-kind="opening"] > *, .overlay.ov-out[data-kind="settle"] > * { animation: fadeOut .36s ease both; }
@media (prefers-reduced-motion: reduce) { .sheet, .panel-open .sheet { transition: none; } }
.phone.reduced .sheet { transition: none; }
/* Wallet / Cards panels: the same card faces as the wallet row. */
.walletchip.face { cursor: default; flex: none; }
.info-cards li, .info-sum.with-art li { align-items: center; }
.info-cards li .walletchip.face, .info-sum.with-art .walletchip.face { margin-right: 10px; }
.info-sum.with-art .sum-name { display: flex; align-items: center; }

/* Dock labels (29 Sep 2026): "Cue's shopping list" over the chips, and one
 * row of section labels over the wallet strip, each above its own cards. */
.dock-label { margin: 0 0 3px 2px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: rgba(246,239,224,.62); line-height: 1; white-space: nowrap; }
.cards-strip { display: flex; align-items: flex-start; gap: 0; }
.ws-group { flex: none; display: flex; flex-direction: column; }
.ws-group + .ws-group { margin-left: 10px; padding-left: 10px; border-left: 1.5px solid rgba(246,239,224,.22); }
.ws-row { display: flex; gap: 6px; }
/* Your year: each market's goal in grey under what was saved. */
.info-year .yr-goal { font-style: normal; font-size: 9.5px; font-weight: 700; color: var(--ink-2); opacity: .8; line-height: 1.15; }
/* Party list: the name runs full width on top; the amount and "to go" sit below. */
.jar-tiers li { grid-template-columns: 1fr auto; grid-template-areas: "name name" "left amt"; row-gap: 1px; }
.jar-tiers li b { grid-area: name; line-height: 1.15; }
.jar-tiers li span { grid-area: amt; align-self: end; }
.jar-tiers li small, .jar-tiers li em { grid-area: left; align-self: end; }
/* Score bar: today's goal beside CASH, in grey. */
.score-bar .bar-goal { margin-left: 4px; font-style: normal; font-weight: 700; letter-spacing: 0; text-transform: none; color: rgba(246,239,224,.5); }
/* The goal floats in the bar's top padding above CASH, so it takes no width. */
.score-bar .stat { position: relative; }
.score-bar .bar-goal { position: absolute; left: 0; bottom: 100%; margin: 0 0 1px; font-size: 9.5px; line-height: 1; white-space: nowrap; pointer-events: none; }

/* One title row: "Meadow hay · compare shops  [Hide] [⌄]"; the table's own
 * header is gone and its colour key sits in the top-left corner. */
.panel-head { gap: 8px; }
.panel-head .rows-label { flex: 1; min-width: 0; }
.panel-head .facts-toggle { flex: none; }
.facts.cmpbox { padding: 5px 7px 6px; }
.facts.folded { display: none; }
.cmp-head .cmp-label { align-items: flex-end; padding-bottom: 3px; }
.cmp-key { flex-direction: column; align-items: flex-start; gap: 2px; font-size: 9.5px; line-height: 1; }
.cmp-key span { display: inline-flex; align-items: center; gap: 3px; }
.cmp-key i { margin-left: 0; width: 9px; height: 9px; }
.sheet-body { padding-top: 8px; }
/* Dock labels: a little more air above the chips and cards. */
.dock-label { margin-bottom: 7px; }
/* With the table open, three-across storefronts drop what the table already says. */
.facts:not(.folded) ~ .versus.count-three .store-delta, .facts:not(.folded) ~ .versus.count-many .store-delta { display: none; }
.facts:not(.folded) ~ .versus.count-three .wstore .store-big.list-total small, .facts:not(.folded) ~ .versus.count-many .wstore .store-big.list-total small { display: none; }
.stairs { height: 30px; } .stair { width: 17px; height: calc(10px + var(--h) * 5px); }
.phone:not(.shopping) .sheet { max-height: calc(100% - var(--footer-h) - env(safe-area-inset-bottom) - var(--safe-top, 0px) - 20px); }
.facts:not(.folded) ~ .versus.count-three .wstore .store-has img, .facts:not(.folded) ~ .versus.count-many .wstore .store-has img { width: 22px; height: 22px; }
.facts:not(.folded) ~ .versus.count-three .wstore .store-has, .facts:not(.folded) ~ .versus.count-many .wstore .store-has { min-height: 22px; }
.versus.count-three .wstore .store-body, .versus.count-many .wstore .store-body { margin-top: 3px; }
.facts:not(.folded) ~ .versus.count-three .store.headline .store-art.big .store-item { width: 38px; height: 38px; }
.facts:not(.folded) ~ .versus.count-three .store.headline { padding-bottom: 4px; }
.cmp-txt { font-size: 11px; }
/* Table chips never spill out of their cell; a skipped card is crossed out. */
.cmp-cardchip { max-width: 100%; overflow: hidden; }
.cmp-cardchip > span { overflow: hidden; text-overflow: ellipsis; }
.cmp-cardchip.crossed { position: relative; opacity: .75; }
.cmp-cardchip.crossed::after { content: ""; position: absolute; left: 3px; right: 3px; top: 50%; height: 1.8px; background: currentColor; transform: rotate(-12deg); border-radius: 2px; }
/* Cash panel: keep vs free-to-spend. */
.cash-split-wrap { margin: 10px 0 6px; }
.cash-split { display: flex; gap: 3px; height: 54px; }
.cs-seg { display: flex; flex-direction: column; justify-content: center; min-width: 74px; padding: 6px 10px; border-radius: 12px; line-height: 1.15; }
.cs-seg small { font-size: 10.5px; font-weight: 800; letter-spacing: .02em; }
.cs-seg b { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cs-seg.keep { background: #d9ecdf; color: var(--accent-ink); box-shadow: inset 0 0 0 1.5px rgba(47,111,94,.35); }
.cs-seg.spend { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.cs-cap, .cs-short { margin: 5px 2px 0; font-size: 12.5px; color: var(--ink-2); }
.cs-short { color: var(--warn); font-weight: 700; }

/* ⓘ info inside the shop panel, right under its header (29 Sep 2026). */
#sheet .shop-info.inline { position: static; left: auto; right: auto; bottom: auto; max-height: none; overflow: visible; margin: -2px 0 8px; padding: 2px 0 8px; border-radius: 0; background: none; box-shadow: none; border-bottom: 1.5px dashed var(--line); animation: none; }
.phone.shop-info-open .sheet { z-index: 4; }
.phone.shop-info-open .bubble { opacity: 0; pointer-events: none; }
/* While it's open the shop panel may rise to just under the market label. */
.phone.shop-info-open.shopping .sheet { max-height: calc(100% - var(--footer-h) - env(safe-area-inset-bottom) - var(--safe-top, 0px) - 20px); }

/* Payment columns: the card face keeps its 1.6:1 shape (2026-11-02: it used to grow with its text) and
 * stacks its bottom line, the expiry (SUMMER / NO EXPIRY) on its own line; what is left rides the capsule. */
.sources.grouped .src .gc-sm { min-height: 0; max-height: none; gap: 3px; }
.sources.grouped .src .gc-sm .gc-bottom { flex-direction: column; align-items: flex-start; gap: 1px; }
.sources.grouped .src .gc-sm .gc-amt { white-space: nowrap; }
.sources.grouped .src .gc-sm .gc-exp { font-size: 7.5px; letter-spacing: .06em; opacity: .9; display: block; }
.sources.grouped .src .gc-sm .gc-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone.shop-info-open .sheet { z-index: 6; }

/* Ambient: a shopkeeper peeking over Cue's shopping list. */
.peek { position: absolute; z-index: 4; width: 118px; height: 118px; pointer-events: none; transform: translateY(100%); transform-origin: 50% 100%; }
/* The peek is drawn from the rig each frame (still pose, blinking). */
.peek canvas { display: block; }
.peek canvas { width: 100%; height: 100%; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
#board { z-index: 5; }

/* Storefront, simplified (29 Sep 2026): a big item, the price in its own box
 * beside it, and the stock dots + count underneath (no comparison pill). */
.store.headline .store-body.tagged { flex-direction: row; align-items: center; justify-content: center; gap: 8px; }
.store.headline .store-art.big .store-item { width: 78px; height: 78px; }
.store.headline .price-box { align-items: center; padding: 6px 10px 5px; border-radius: 12px; background: var(--paper-2); box-shadow: inset 0 0 0 1.5px var(--line); }
.store.headline .price-box b { font-size: 26px; }
.store.headline > .stock-pips { margin-top: 7px; }
.versus.count-three .store.headline .store-body.tagged, .versus.count-many .store.headline .store-body.tagged { flex-direction: column; gap: 4px; }
.versus.count-three .store.headline .store-art.big .store-item, .versus.count-many .store.headline .store-art.big .store-item { width: 58px; height: 58px; }
.facts:not(.folded) ~ .versus.count-three .store.headline .store-art.big .store-item { width: 50px; height: 50px; }
.versus.count-three .store.headline .price-box, .versus.count-many .store.headline .price-box { padding: 3px 8px; }
.versus.count-three .store.headline .price-box b, .versus.count-many .store.headline .price-box b { font-size: 20px; }
.versus.count-three .store.headline > .stock-pips, .versus.count-many .store.headline > .stock-pips { margin-top: 4px; }
.ack[data-action="ack"] { cursor: pointer; padding-bottom: 14px; }

/* Settle: saved today as one tidy, left-aligned card. */
.settle-jar { align-items: center; gap: 12px; }
.settle-jar-art { flex: 1 1 210px; min-width: 0; max-width: 210px; height: 134px; position: relative; }
.settle-jar-art .jar-svg.lg { width: 100%; height: 100%; }
.settle-saved { align-items: stretch; gap: 6px; min-width: 150px; padding: 12px 14px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); text-align: left; }
.settle-saved .ss-label { font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--ink-2); }
.settle-saved .ss-amt { font-size: 36px; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.settle-saved .ss-pill { align-self: flex-start; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; line-height: 1.15; white-space: nowrap; }
.settle-saved .ss-pill.on-pace { background: var(--accent-2); color: var(--accent-ink); }
.settle-saved .ss-pill.off-pace { background: #fbece1; color: var(--warn-ink); }
.settle-saved .ss-jar { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 2px; padding-top: 7px; border-top: 1.5px dashed var(--line); }
.settle-saved .ss-jar small { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.settle-saved .ss-jar b { font-size: 18px; color: var(--ink); font-variant-numeric: tabular-nums; }

/* Bought: the items alone, big, with their ✓ — they fly down into the list. */
.ack.big { display: flex; justify-content: center; padding: 16px 12px 18px; }
.ack.big .ack-items { gap: 16px; }
.ack.big .ack-item { width: 104px; height: 104px; padding: 8px; border-radius: 22px; }
.ack.big .ack-item img { width: 72px; height: 72px; }
.ack.big .ack-item b { font-size: 15px; }
.flight { position: absolute; z-index: 30; object-fit: contain; pointer-events: none; transform-origin: 0 0; }
/* Shop names: two rows at most — the shop on one line, the shopkeeper below. */
.store .awning-brand { min-width: 0; max-width: 100%; }
.store .awning-brand .store-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.versus.count-three .store .store-name, .versus.count-many .store .store-name { font-size: 10px; letter-spacing: -.01em; white-space: nowrap; }
#sheet .ack.big .ack-item { width: 108px; height: auto; padding: 10px 8px 8px; border-radius: 22px; }
#sheet .ack.big .ack-item img { width: 76px; height: 76px; }
#sheet .ack.big .ack-item.flown img { visibility: hidden; }
/* Settle card: pills wrap inside the card instead of spilling out. */
.settle-saved { max-width: 190px; }
.settle-saved .ss-pill { white-space: normal; max-width: 100%; }

/* Every amount is one unbreakable row with the acorn on the left, like "$":
 * the same shape in any container (flex columns included). */
.money { display: inline-flex; align-items: center; gap: .04em; white-space: nowrap; line-height: inherit; vertical-align: baseline; }
.money > tom-acorn.acorn { margin-right: .02em; vertical-align: 0; flex: none; }
/* Challenge card: the third tile is labelled like the others. */
.intro-goals .have { flex-direction: column; }
/* Challenge card: the tile style is for the tiles, not the amount inside them. */
.intro-goals .money { display: inline-flex; flex-direction: row; align-items: center; gap: .04em; padding: 0; border-radius: 0; background: none; box-shadow: none; }
/* Jar tag: the words sit inside the tag. */
.jar-tagtxt { font-size: 11px; text-anchor: middle; }
.intro-goals .have { gap: 1px; } .intro-goals .have small { font-size: calc(11px * var(--t)); letter-spacing: .06em; }

/* Challenge card: what's different about this market. */
.intro-twists { margin: 4px 0 8px; padding: 8px 12px; border-radius: 12px; background: #fbf1d8; text-align: left; }
.intro-twists .it-h { margin: 0 0 4px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #8a5a12; }
.intro-twists ul { margin: 0; padding-left: 18px; }
.intro-twists li { font-size: 14px; line-height: 1.35; color: var(--ink); }
.intro-twists li + li { margin-top: 2px; }
.settle-retry { margin-top: 8px; }

/* Top-left paper hint tag, tucked in from the side. */
.next-tag { position: absolute; z-index: 6; left: -6px; top: calc(var(--safe-top, 12px) + 26px); max-width: 62%; display: flex; align-items: center; gap: 7px; padding: 7px 12px 7px 16px; border-radius: 0 10px 10px 0; background: #fbf1d8; color: #5a3a14; font-size: 12.5px; font-weight: 700; line-height: 1.15; box-shadow: 0 2px 6px rgba(40,30,15,.25); transform: rotate(-3deg); transform-origin: 0 50%; pointer-events: none; border: 1px solid #d8bf8a; border-left: 0; }
.next-tag .nt-hole { flex: none; width: 7px; height: 7px; border-radius: 50%; background: rgba(90,58,20,.45); box-shadow: inset 0 1px 1px rgba(60,40,10,.3); }
.phone.panel-open.shopping .next-tag { top: calc(var(--safe-top, 12px) + 26px); }
.next-tag { transition: opacity .25s; } .phone.speaking .next-tag { opacity: 0; }
/* Hint tag: low on the left above the banner, with its own ✕. */
.next-tag { top: auto; max-width: 70%; padding-right: 6px; pointer-events: auto; }
.next-tag .nt-close { flex: none; width: 26px; height: 26px; margin-left: 2px; border: 0; border-radius: 50%; background: rgba(90,58,20,.1); color: #5a3a14; font-size: 12px; font-weight: 800; cursor: pointer; }
.next-tag .nt-close::after { content: ""; position: absolute; inset: -9px; }   /* 27 px ✕ → a 45 px hit box (audit 11 §1.10) */
.next-tag .nt-close { position: relative; }

/* The month sticker: die-cut, slapped over the banner cloth's top-right corner.
   It sits outside the clipped cloth (inside .mb-wrap) so nothing cuts it off. */
.mb-wrap { position: relative; display: flex; justify-content: center; }
#banner .mb-wrap { width: min(360px, 100%); }
#banner .mb-logo { display: block; width: 100%; height: clamp(70px, 22vw, 90px); object-fit: cover; }
.mb-sticker { position: absolute; z-index: 1; top: -13px; right: -20px; transform: rotate(8deg); transform-origin: 50% 60%;
  display: flex; align-items: center; gap: 3px; padding: 2px 9px 3px 6px; border-radius: 999px;
  background: var(--stk, #3f8a4a); color: var(--card); border: 2.5px solid var(--card);
  box-shadow: 0 0 0 .5px rgba(60,40,20,.25), 0 2px 3px rgba(40,25,10,.35); pointer-events: none; }
.mb-sticker[hidden] { display: none; }
.mb-sticker .stk-icon { flex: none; width: 19px; height: 19px; }
.mb-sticker .stk-name { font-family: var(--display); font-style: italic; font-size: 17px; font-weight: 700; line-height: 1; white-space: nowrap;
  text-shadow: 0 1px 0 rgba(0,0,0,.18); }

/* "Compare" in the table's top-left cell; the colour key in one line under the table. */
.cmp-corner { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); align-self: end; }
.cmp-key.under { flex-direction: row; justify-content: flex-end; gap: 10px; margin: 5px 2px 0; font-size: 10px; }

/* Mags' line under her tail: the tail points up at her. */
.bubble.under::before { top: -15px; bottom: auto; clip-path: polygon(38% 0, 100% 100%, 0 100%); }
.bubble.under::after { top: -11px; bottom: auto; clip-path: polygon(38% 0, 100% 100%, 0 100%); }

/* The month review on the settle card: two receipts, then the verdict. */
.review { margin: 2px auto 6px; width: min(100%, 340px); display: grid; gap: 4px; font-size: calc(14px * var(--t)); line-height: 1.15; color: var(--ink); }
.review .rv-wait { margin: 0; color: var(--ink-2); font-size: 13px; }
.review .rv-line { margin: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.review .rv-line b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rv-receipts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rv-receipt { padding: 7px 9px 8px; border-radius: 4px; text-align: left; box-shadow: 0 1px 2px rgba(60,40,10,.18), 0 4px 10px rgba(60,40,10,.10);
  -webkit-mask: radial-gradient(4px at 50% 100%, #0000 98%, #000) 50% 100% / 10px 100% repeat-x; mask: radial-gradient(4px at 50% 100%, #0000 98%, #000) 50% 100% / 10px 100% repeat-x; padding-bottom: 11px; }
.rv-receipt.rv-low { background: #ece6d8; color: var(--ink-2); }
.rv-receipt.rv-you { background: var(--card); }
.rv-receipt .rv-title { margin: 0 0 4px; font-size: calc(11px * var(--t)); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.rv-receipt .rv-line { padding: 2px 0; border-top: 1px dashed var(--line); }
.rv-receipt .rv-kept b { font-size: 15px; }
.rv-receipt.rv-you .rv-kept b { font-weight: 800; }
.rv-delta { display: block; font-style: normal; font-size: 11px; font-weight: 800; text-align: right; }
.rv-delta.up { color: #2f7a4f; } .rv-delta.down { color: #b5541c; }
.review .rv-headline { justify-content: center; font-weight: 800; font-size: 16px; color: var(--accent); }
.review .rv-best { padding: 2px 4px; color: var(--ink-2); border-bottom: 1px dashed var(--line); }
.review .rv-diff { justify-content: center; font-size: 12px; color: var(--ink-2); text-align: center; }
.review .rv-headline, .review .rv-diff { display: block; text-align: center; }
.review .rv-headline .money, .review .rv-diff .money { white-space: nowrap; }
/* Native text stays readable over the lower part of the decorative rosette. */
.review .rv-stamp { --rosette-size: 128px; position: relative; isolation: isolate; justify-self: center; margin: 0;
  display: grid; justify-items: center; align-content: start; gap: 2px; width: min(100%, 260px); min-height: var(--rosette-size);
  padding: calc(var(--rosette-size) * .59) 0 0; border: 0; color: var(--accent-ink); background: none; transform: rotate(-4deg); box-shadow: none; }
.review .rv-stamp::before { content: ""; position: absolute; z-index: -1; top: 0; left: 50%; width: var(--rosette-size); height: var(--rosette-size);
  transform: translateX(-50%); background: url("assets/art/settle/tom_stamp_perfect.webp") center / contain no-repeat; pointer-events: none; }
/* The back of Cue's head and ears peeks up beside the stamp (8 Oct 2026: she is only ever seen from
   behind); the box's bottom edge cuts her off, and view/app.js gives her ears one small wiggle. */
.cue-delight { position: absolute; left: calc(50% - var(--rosette-size) * 1.4); top: calc(var(--rosette-size) * .05);
  width: calc(var(--rosette-size) * .82); aspect-ratio: 1024 / 676; overflow: hidden; pointer-events: none; }
.cue-delight img { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; transform: translateY(56%); transform-origin: 50% 100%; }
.review .rv-stamp b { padding: 2px 10px; border-radius: 4px; background: #f4e9d2; box-shadow: 0 1px 2px rgba(60,40,10,.16);
  font-family: var(--display); font-size: 20px; line-height: 1.15; letter-spacing: .02em; }
.review .rv-stamp small { padding: 0 5px; border-radius: 2px; background: var(--paper); color: var(--ink-2); font-size: 11.5px; font-weight: 700; }
@media (max-height: 740px) {
  .review .rv-stamp { --rosette-size: 108px; }
  .review .rv-stamp b { font-size: 18px; }
  .review .rv-stamp small { font-size: 10.5px; }
}
/* The home picture: a landscape window onto Cue's room, so the card fits. */
.settle .home-wrap { aspect-ratio: 2 / 1; }
.settle .home-wrap canvas { object-fit: cover; object-position: 50% 62%; }
.fx-burst { position: absolute; inset: 0; z-index: 30; pointer-events: none; overflow: hidden; }
.burst-acorn { position: absolute; width: 38px; height: 38px; }
.burst-acorn img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* Score bar on narrow phones (30 Sep 2026): three-digit totals must never push
   Tips and Menu off-screen. Cells may shrink; operators and gaps tighten. */
.score-bar { min-width: 0; }
.score-bar .sum, .score-bar .stat { min-width: 0; }
.score-bar .bar-tools { flex: none; }
@media (max-width: 430px) {
  .score-bar { padding-left: 10px; padding-right: 4px; }
  .score-bar .stat { padding-right: 6px; margin-right: 6px; }
  .score-bar .stat b { font-size: clamp(14px, 4.4vw, 18px); }
  .score-bar .stat small { font-size: 9px; letter-spacing: .06em; }
  .score-bar .sum { margin-right: 6px; padding-right: 6px; }
  .score-bar .sum .op { margin: 12px 3px 0; font-size: 14px; }
  .score-bar .sum .stat.total { padding: 3px 5px; }
  .score-bar .jar-stat svg { width: 12px; }
  .score-bar .icon-btn { width: 38px; min-width: 38px; }
}

/* Wallet strip: Pika Cash (what you're trying to keep) is pinned at the right
   edge and always visible; the cards scroll underneath it (30 Sep 2026). */
.cards-strip { overflow-x: auto; scrollbar-width: none; }
.cards-strip::-webkit-scrollbar { display: none; }
.cards-strip .ws-group.cash { position: sticky; right: 0; z-index: 1; margin-left: auto; padding-left: 10px; background: var(--dock-bg, var(--ink)); box-shadow: -14px 0 12px -6px var(--dock-bg, var(--ink)), 12px 0 0 0 var(--dock-bg, var(--ink)); }

/* Short phones (iPhone SE, 375×667): while a shop or the compare table is open
   the wallet strip steps aside (the shop shows the same money), and the
   payment rows tighten, so prices, steppers and Pay all fit (30 Sep 2026). */
@media (max-height: 740px) {
  .phone.panel-open #board .listbar.wallet-mode { display: none; }
  .phone.panel-open #board .dock-card > .listbar:first-child { padding-bottom: 6px; }
  .src .gc-sm { width: 74px; }
  .src .gc-sm .gc-amt { font-size: 15px; }
  .src .cash-face { transform: scale(.85); transform-origin: 50% 100%; }
  .sources.grouped .group-label { margin-bottom: 2px; }
  .paybar .pay, .paybar .ghost { min-height: 46px; }
  .cmp-key.under { display: none; }
  .versus .store img { max-height: 44px; }
}
@media (max-width: 380px) {
  .sources.grouped .stepper { padding-left: 2px; padding-right: 2px; }
  .sources.grouped .stepper button { flex: 0 0 22px; width: 22px; padding: 0; }
  .sources.grouped .stepper .amt { font-size: 14px; white-space: nowrap; }
  .sources.grouped .stepper .amt .acorn { width: .75em; }
}

/* Pay waits for the counter: until the shopkeeper arrives it is dimmed and inert. */
.phone.shopping:not(.counter-in) .paybar .pay { opacity: .55; pointer-events: none; transition: opacity .25s; }

/* Landscape on a phone can't fit the shop: ask for upright instead of breaking. */
.rotate-card { display: none; }
@media (orientation: landscape) and (max-height: 560px) {
  .rotate-card { display: grid; place-items: center; position: absolute; inset: 0; z-index: 60; margin: 0; padding: 24px; background: var(--paper); color: var(--ink); font-size: 18px; font-weight: 700; text-align: center; }
}
/* The hint tag never sits on top of a full-screen card (game over, settle, menus). */
.phone:has(#overlay:not([hidden])) .next-tag { display: none; }
/* Menu confirm state */
.ghost.wide.sure { background: #f8e3dc; }
/* Month sticker legibility on light colours (June gold, May pink, Aug coral, Oct orange). */
.mb-sticker .stk-name { text-shadow: 0 1px 0 rgba(0,0,0,.35), 0 0 3px rgba(0,0,0,.35); }

/* Share button under the month review. */
.review .rv-share { justify-self: center; margin-top: 2px; min-height: 34px; padding: 0 16px; font-size: 13px; }

/* Choose the month card's shape before sharing or saving. */
.share-preview { width: 100%; height: 100%; overflow: auto; padding: calc(20px + var(--sai-top)) 18px 24px; background: rgba(47,42,36,.94); color: var(--paper); text-align: center; }
.share-preview img { display: block; width: auto; max-width: 100%; height: auto; max-height: 58vh; margin: 0 auto; border-radius: 12px; box-shadow: 0 10px 30px rgba(60,40,10,.4); }
.share-preview p { max-width: 420px; margin: 12px auto; font-size: 14px; line-height: 1.35; }
.share-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.share-formats { display: flex; gap: 8px; justify-content: center; margin: 0 0 14px; }
.share-formats .ghost, .share-actions .ghost { color: var(--paper); background: #ffffff14; border-color: var(--paper)66; }
.share-formats [aria-pressed="true"] { background: #f4e9d2; color: var(--accent-ink); border-color: #f4e9d2; }
.share-actions .primary { display: inline-grid; place-items: center; padding: 0 20px; min-height: 44px; border-radius: 12px; text-decoration: none; }

/* Card faces (30 Sep 2026): the amount is a capsule in front of the card's
   bottom edge, like the Pika bill's; the face shows the shop and its end date. */
.gcw { position: relative; display: inline-flex; flex: none; vertical-align: top; margin-bottom: .55em; }
.gcw .gc-bottom { justify-content: flex-start; padding-bottom: 12%; }
.gcw .gc-exp { font-size: .72em; letter-spacing: .06em; opacity: .95; }
.gc-pill { position: absolute; left: 50%; bottom: -.55em; transform: translateX(-50%); z-index: 1; padding: 1px 8px; border-radius: 8px; background: rgba(54,89,71,.95); color: var(--paper); font-size: calc(12.5px * var(--t)); font-weight: 800; line-height: 1.35; white-space: nowrap; font-variant-numeric: tabular-nums; box-shadow: 0 1px 3px rgba(60,40,10,.28); }
.gc-pill small { font-size: .78em; font-weight: 700; }
.gc-pill.ending { background: var(--red); }
.gc-pill.spent { background: rgba(90,80,70,.9); }
.gcw-xs { margin-bottom: .45em; }
.gcw-xs .gc-pill { font-size: 9px; padding: 0 5px; border-radius: 6px; }
.gcw-xs .gc-exp { display: none; }
.gcw-md .gc-pill { font-size: 14px; }
.gcw-lg { display: flex; }
.gcw-lg .gc-pill { font-size: 17px; padding: 2px 12px; border-radius: 12px; }
.src .gc-pill { font-size: 14px; }
.sum-name .gcw-xs .gc-pill { display: none; }


/* The pinned Cash group runs the strip's full height (its divider and shadow
   too), and the group before it stops short of the shadow at full scroll. */
.cards-strip { align-items: stretch; }
.cards-strip .ws-group.cash { align-self: stretch; margin-top: -6px; margin-bottom: -6px; padding-top: 6px; padding-bottom: 6px; }
.cards-strip .ws-group:has(+ .ws-group.cash) { margin-right: 26px; }
/* With the amount on the capsule, the end date on small faces can be read. */
.sources.grouped .src .gcw .gc-exp, .src-group .src .gcw .gc-exp { font-size: 9px; }
.walletchip .gcw .gc-exp { font-size: calc(11px * var(--t)); max-width: 100%; overflow: hidden; text-overflow: ellipsis; }   /* the only place expiry is written during play: never under 11 px (audit 11 §1.1) */
/* 'EXPIRES TODAY' on the face fits small cards (it replaces the end date). */
.gcw .gc-exp.ending { font-size: .64em; letter-spacing: .06em; padding: 1px 4px; white-space: nowrap; }
.walletchip .gcw .gc-exp.ending { font-size: 11px; }   /* "EXPIRES TODAY" fills the 126 px card at 11 px already; at --t 1.3 it would clip to "EXPIRES TO…", so this one capsule stays put */
.src .gcw .gc-exp.ending { font-size: 8px; }
.exp-warn { font-style: normal; }
.gcw-sm .gc-exp.ending .exp-warn, .gcw-xs .gc-exp.ending .exp-warn { display: none; }
.gcw-sm .gc-exp.ending { letter-spacing: .01em; padding: 1px 3px; }


/* Wallet strip polish (30 Sep 2026): the end date clears the capsule; the cash
   capsule sits level with the card capsules, just over the bill's bottom edge;
   a small gap before Cash; the row scrolls sideways only. */
.gcw .gc-bottom { padding-bottom: 24%; }
.walletchip.cash .cash-face { position: relative; margin-bottom: .55em; }
.walletchip.cash .cash-left, #board .walletchip.cash .cash-left { bottom: -7px; }
.cards-strip { overflow-y: hidden; overscroll-behavior: contain; touch-action: pan-x; }
.cards-strip .ws-group.cash { margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; }
.cards-strip .ws-group:has(+ .ws-group.cash) { margin-right: 12px; }

/* Payment rows (30 Sep 2026): every card fills its column the same way, its
   capsule fits inside the card's width, and the stepper always fits its amount. */
.sources.grouped .src .src-face { width: 100%; display: flex; justify-content: center; }
.sources.grouped .src .gcw { width: min(100%, 104px); }
.sources.grouped .src .gcw .gc { width: 100%; }
.sources.grouped .src .gc-pill, .sources.grouped .src .cash-left { font-size: 12px; padding: 1px 6px; max-width: 96%; }
.sources.grouped .src .gc-pill small, .sources.grouped .src .cash-left small { font-size: 10px; }
.sources.grouped .stepper { gap: 0; padding-left: 2px; padding-right: 2px; }
.sources.grouped .stepper button { flex: 0 0 24px; width: 24px; padding: 0; }
.sources.grouped .stepper .amt { flex: 1 1 0; min-width: 0; font-size: 15px; white-space: nowrap; }
.sources.grouped .stepper .amt .acorn { width: .8em; }

/* The register roll: Pay waits, and an arrow shows which way the money goes
   (orange down: out of the card into the payment; green up: back to the card). */
.phone.rolling .paybar .pay { opacity: .55; pointer-events: none; transition: opacity .2s; }
.sources.grouped .src { position: relative; }
.flow-arrow { position: absolute; left: 50%; top: 50%; z-index: 3; width: 18px; height: 18px; margin: -9px 0 0 -9px; display: grid; place-items: center; border-radius: 50%; background: var(--card); box-shadow: 0 1px 3px rgba(60,40,10,.25); font-style: normal; font-size: 10px; line-height: 1; pointer-events: none; animation: flowPulse .45s ease-in-out infinite; }
.flow-arrow.down { color: #b5541c; }
.flow-arrow.up { color: #2f7a4f; animation-direction: reverse; }
@keyframes flowPulse { from { opacity: .35; translate: 0 -3px; } to { opacity: 1; translate: 0 3px; } }

/* A divider between Cash and the used cards (clear of Cash's backing). */
.cards-strip .ws-group.cash + .ws-group { margin-left: 22px; padding-left: 10px; border-left: 1.5px solid rgba(246,239,224,.22); }
/* Steppers fit two-digit amounts in the narrowest (selected) column. */
.sources.grouped .stepper button { flex: 0 0 20px; width: 20px; }
.sources.grouped .stepper .amt { font-size: 14px; letter-spacing: -.02em; }
.sources.grouped .stepper .amt .acorn { width: .7em; margin-right: 1px; }

/* Counter: the whole item name (up to two lines), each line's total in the
   same right-hand column as the order total. */
.counter-card .line-title, .cline .line-name b { white-space: normal; overflow: hidden; text-overflow: clip; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.15; }
.counter-card .line-total { align-self: start; min-width: 38px; text-align: right; font-size: 15px; font-weight: 800; }
.counter-card .counter-total b { min-width: 38px; text-align: right; }

/* No orphans where the browser can help (a lone last word on its own line). */
/* text-wrap-style only: the text-wrap shorthand would also switch wrapping back on and undo every nowrap. */
.phone, .phone p, .phone li, .phone small, .phone b, .phone span { text-wrap-style: pretty; }
.phone h2, .phone h3 { text-wrap-style: balance; }

/* Give item names the room: the total column is only as wide as its amount. */
.counter-card .cline-head { gap: 5px; }
.counter-card .line-total, .counter-card .counter-total b { min-width: 0; }
/* Even spacing on both sides of every divider: Prepaid | Cash | Used cards. */
.cards-strip .ws-group:has(+ .ws-group.cash) { margin-right: 10px; }
.cards-strip .ws-group.cash { box-shadow: -14px 0 12px -6px var(--dock-bg, var(--ink)), 8px 0 0 0 var(--dock-bg, var(--ink)); }
.cards-strip .ws-group.cash + .ws-group { margin-left: 10px; }

/* Payment rows: the +/- steppers sit on one line across Gift / Prepaid / Cash
   (the face area takes the spare height and bottom-aligns each card). "left"
   sits beside the amount on every capsule, never under it. */
.sources.grouped .src { display: flex; flex-direction: column; }
.sources.grouped .src .src-face { flex: 1 1 auto; align-items: flex-end; }
.sources.grouped .src .src-body { flex: none; margin-top: 6px; }
.gc-pill, .cash-left { white-space: nowrap; max-width: none; }
.gc-pill small, .cash-left small { display: inline; margin-left: 2px; }
.sources.grouped .src .gc-pill, .sources.grouped .src .cash-left { font-size: 11.5px; padding: 1px 6px; }
/* Today's shops: a card that expires today says so in red. */
.cmp-cell .cmp-expires { color: var(--red); font-weight: 800; }
.cmp .cmp-cell .cmp-expires { color: var(--red); font-weight: 800; text-transform: uppercase; font-size: .78em; letter-spacing: .06em; }

/* Settle card (30 Sep 2026): the comparison lives behind an ⓘ beside SAVED
   TODAY; the card keeps the Perfect stamp and Share, and shows more of home. */
.settle { position: relative; }
.settle-saved .ss-label { display: flex; align-items: center; gap: 6px; }
.ss-info { width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: rgba(47,111,94,.12); color: var(--accent); display: inline-grid; place-items: center; cursor: pointer; position: relative; }
.ss-info::after { content: ""; position: absolute; inset: -10px; }
.ss-info svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ss-info svg .dot { fill: currentColor; }
.review.card { margin: 4px auto 6px; justify-items: center; }
.settle .home-wrap { aspect-ratio: 4 / 3; }
.review-pop { position: absolute; inset: 0; z-index: 20; display: grid; align-items: center; padding: calc(16px + var(--sai-top)) 14px 16px; background: rgba(47,42,36,.55); animation: rpIn .28s cubic-bezier(.2,.8,.2,1) both; }
.review-pop .rp-card { max-height: 100%; overflow: auto; padding: 16px 14px 14px; border-radius: 18px; background: var(--paper); box-shadow: 0 12px 30px rgba(60,40,10,.35); }
.review-pop h3 { margin: 0 0 10px; font-size: 17px; text-align: center; }
.review-pop .review { margin-bottom: 12px; }
@keyframes rpIn { from { opacity: 0; } }
.review-pop .rp-card { animation: rpCard .32s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rpCard { from { transform: translateY(16px) scale(.98); opacity: 0; } }

/* "Total saved" sits above its amount so a three-digit jar always fits the box. */
.settle-saved .ss-jar { display: grid; grid-template-columns: 1fr; justify-items: end; gap: 0; }
.settle-saved .ss-jar small { justify-self: start; }
.settle-saved .ss-jar b { white-space: nowrap; }
/* Short phones: the settle card still fits without scrolling (a wider, shorter
   window onto home, tighter spacing). */
@media (max-height: 740px) {
  .settle .home-wrap { aspect-ratio: 3 / 1; margin: 4px auto; }
  .settle h2 { margin: 2px 0; font-size: 20px; }
  .settle-jar { margin: 2px 0 4px; }
  .settle .fine { margin: 3px 0; }
  .settle .primary.wide, .settle .ghost.wide { min-height: 44px; }
  .settle .jar-svg-lg, .settle-jar svg { max-height: 120px; }
  .settle-jar-art { height: 120px; }
}
/* Cards that rise from the bottom (intro, game over) never reach the island. */
.overlay > .intro, .overlay > .game-over-card, .overlay > .impossible { max-height: calc(100% - var(--sai-top) - 16px); }

/* Compare table: "Paid with" is just chips (a Cash chip with the acorn joins the
   card chips); a card that would go unused is shown as it is, with the words. */
.cmp-chips { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 3px; }
.cmp-cardchip.cash { background: #3f6b54; color: var(--paper); }
.cmp-cardchip.cash .acorn { width: 11px; height: 13px; }
.cmp-unused { display: block; margin-top: 2px; font-size: 10.5px; font-weight: 800; color: var(--red); }

/* Cash split bar: a segment is never narrower than its own label ("Free to spend"). */
.cs-seg { min-width: max-content; }
.cs-seg small, .cs-seg b { white-space: nowrap; }

/* Speech bubble ✕ (tap the shopkeeper to hear it again). */
.bubble { pointer-events: auto; }
.bubble .bubble-x { float: right; width: 22px; height: 22px; margin: -3px -5px 0 6px; padding: 0; border: 0; border-radius: 50%; background: rgba(90,58,20,.1); color: #5a3a14; font-size: 14px; font-weight: 800; line-height: 1; cursor: pointer; position: relative; }
.bubble .bubble-x::after { content: ""; position: absolute; inset: -10px; }
/* Both end-date labels have the same box, so tapping +/- never changes a card's height. */
.gcw .gc-exp { display: inline-block; padding: 1px 4px; line-height: 1.15; border-radius: 4px; }
.gcw .gc-exp:not(.ending) { padding-left: 0; }

/* The counter card's frosted blur is clipped to its rounded corners (it used to
   show square corners inside the scrolling counter). */
.counter-card { clip-path: inset(0 round 20px); }
/* The first-payment hint floats above the payment panel. */
.fund-hint { position: absolute; z-index: 6; left: 12px; right: 12px; display: flex; align-items: center; gap: 10px; padding: 9px 10px 9px 12px; border-radius: 14px; background: #fff6d8; box-shadow: inset 0 0 0 1.5px rgba(184,135,42,.45), 0 6px 16px rgba(40,25,10,.22); font-size: 12.5px; line-height: 1.35; color: var(--ink); }
.fund-hint[hidden] { display: none; }
.fund-hint b { display: block; font-size: 13px; }
.fund-hint .linkbtn { flex: none; min-height: 40px; padding: 0 10px; font-weight: 800; }

/* Cue's chirp button in the dock's top-right corner. */
.dock-card .chirp-btn { position: absolute; z-index: 2; top: 8px; right: 12px; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: rgba(246,239,224,.12); box-shadow: inset 0 0 0 1.5px rgba(246,239,224,.25); overflow: hidden; cursor: pointer; }
.dock-card .chirp-btn::after { content: ""; position: absolute; inset: -6px; }
.dock-card .chirp-btn img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.12); pointer-events: none; }   /* CardCue Pro's Cue head */

/* Paged speech: at most two lines per page, a ▸ for the next, dots for how many. */
.bubble .bubble-text { display: block; cursor: default; }
.bubble .bubble-text[data-action] { cursor: pointer; }
.bubble .bubble-next { float: right; clear: right; margin: 2px -4px 0 6px; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; line-height: 1; cursor: pointer; position: relative; }
.bubble .bubble-next::after { content: ""; position: absolute; inset: -8px; }
.bubble .bubble-dots { display: flex; gap: 4px; margin-top: 4px; }
.bubble .bubble-dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(90,58,20,.25); }
.bubble .bubble-dots i.on { background: #5a3a14; }

/* Intro tiles: a small line under each number says what it is. */
.intro-goals em { display: block; margin-top: 2px; font-style: normal; font-size: calc(11px * var(--t)); font-weight: 600; line-height: 1.15; color: var(--ink-2); }

/* ☰ lives at the top right, under the Dynamic Island. */
.menu-top { position: absolute; z-index: 7; top: calc(max(10px, var(--sai-top)) + 2px); right: 12px; width: 40px; height: 40px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(47,42,36,.72); color: var(--paper); box-shadow: 0 2px 8px rgba(60,40,10,.25); cursor: pointer; }
.menu-top::after { content: ""; position: absolute; inset: -4px; }
.menu-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.menu-top { transition: opacity .25s, transform .25s cubic-bezier(.2,.8,.2,1); }
.menu-top.away { opacity: 0; transform: scale(.8); pointer-events: none; }   /* any panel open: it has its own Close */

/* The Can keep meter, horizontal, in the score bar: red (keep nothing) → green. */
.kmh { flex: 1; min-width: 0; display: grid; gap: 5px; padding-right: 4px; }
.kmh-title { display: flex; justify-content: space-between; gap: 6px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; color: rgba(246,239,224,.62); }
.kmh-title em { font-style: normal; letter-spacing: .02em; text-transform: none; color: var(--paper); }
.kmh-bar { position: relative; height: 22px; }
.kmh-steps { position: absolute; left: 0; right: 0; top: 7px; height: 8px; border-radius: 4px; background: linear-gradient(to right,
  var(--red) 0 20%, #e2703a 20% 40%, #e8b64a 40% 60%, #9ccf6a 60% 80%, #3f9a5f 80% 100%); box-shadow: inset 0 0 0 1px rgba(60,40,10,.2); }
.kmh-steps::after { content: ""; position: absolute; inset: 0; border-radius: 4px; background: repeating-linear-gradient(to right, transparent 0 calc(20% - 1.5px), var(--ink) calc(20% - 1.5px) 20%); }
.kmh-goal { position: absolute; top: 2px; width: 3px; height: 18px; margin-left: -1.5px; border-radius: 2px; background: var(--paper); box-shadow: 0 0 0 1px var(--ink); }
.kmh-mark { position: absolute; top: 0; left: clamp(22px, var(--at), calc(100% - 22px)); transform: translateX(-50%); }
.kmh-mark b { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 800; white-space: nowrap; box-shadow: 0 0 0 2px var(--ink), 0 1px 3px rgba(60,40,10,.35); }
.kmh.short .kmh-mark b { background: #ffd9c7; }

/* Menu: the four switches in two columns. */
.sheet-dialog .toggles { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
.sheet-dialog .toggles .toggle { min-width: 0; }
.sheet-dialog .menu-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.sheet-dialog .menu-actions > * { margin: 0; min-height: 48px; padding: 6px 8px; font-size: 14px; line-height: 1.15; }
.sheet-dialog .menu-actions > :last-child:nth-child(odd) { grid-column: 1 / -1; }


/* Two intro tiles: cash you bring and the savings goal. */
.intro-goals { grid-template-columns: repeat(2, 1fr); }

/* An amount lines up with the words around it by its digits, not the acorn's
   bottom edge (which lifted mid-sentence amounts like the expiry pill's). */
.money { align-items: baseline; }
.money > tom-acorn.acorn { align-self: center; }

/* Every shop's card has its own pattern, and it follows the shop's colour
   everywhere: gift cards, shop name labels, card chips, the shop panel head,
   the compare table. Keyed off the brand colour each element already carries
   inline (--b), so anything painted in a shop's colour gets that shop's pattern. */
[style*="--b:#4F7D52" i] { /* Mallow: polka dots */
  --pat: radial-gradient(circle, rgba(255,255,255,0.12) 1.3px, transparent 1.7px); --pat-size: 7px 7px; }
[style*="--b:#AD4B2D" i], [style*="--b:#C65A3A" i] { /* Fox & Fern: diamond lattice (base darkened 6 Oct 2026 for the card name's contrast; the old hex still matches a stale save) */
  --pat: repeating-linear-gradient(45deg, rgba(255,255,255,0.084) 0 1px, transparent 1px 6px), repeating-linear-gradient(-45deg, rgba(255,255,255,0.084) 0 1px, transparent 1px 6px); --pat-size: auto, auto; }
[style*="--b:#2E6F73" i] { /* Rook: square grid */
  --pat: linear-gradient(rgba(255,255,255,0.084) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.084) 1px, transparent 1px); --pat-size: 8px 8px, 8px 8px; }
[style*="--b:#366E9B" i], [style*="--b:#3B78A8" i] { /* Skytrail: level sky lines (base darkened 6 Oct 2026, as Fern's) */
  --pat: repeating-linear-gradient(0deg, rgba(255,255,255,0.09) 0 1.5px, transparent 1.5px 5px); --pat-size: auto; }
[style*="--b:#6B5A4A" i] { /* Bram: bold workshop stripes */
  --pat: repeating-linear-gradient(45deg, rgba(255,255,255,0.06) 0 4px, transparent 4px 9px); --pat-size: auto; }
[style*="--b:#D8832F" i] { /* Pip: checkerboard */
  --pat: conic-gradient(rgba(255,255,255,0.078) 25%, transparent 0 50%, rgba(255,255,255,0.078) 0 75%, transparent 0); --pat-size: 8px 8px; }
[style*="--b:#6B4A75" i] { /* Mags: harlequin diamonds */
  --pat: conic-gradient(from 45deg, rgba(255,255,255,0.072) 25%, transparent 0 50%, rgba(255,255,255,0.072) 0 75%, transparent 0); --pat-size: 10px 10px; }
[style*="--b:#8A3F4D" i] { /* Sable: pinstripes */
  --pat: repeating-linear-gradient(90deg, rgba(255,255,255,0.084) 0 1px, transparent 1px 5px); --pat-size: auto; }
[style*="--b:#2F2B35" i] { /* Clove: rings */
  --pat: repeating-radial-gradient(circle at 0 0, rgba(255,255,255,0.072) 0 1px, transparent 1px 4px); --pat-size: 12px 12px; }
[style*="--b:#7B8FAD" i] { /* Mountain Pass (Prepaid): peaks */
  --pat: linear-gradient(135deg, rgba(255,255,255,0.096) 25%, transparent 25%), linear-gradient(225deg, rgba(255,255,255,0.096) 25%, transparent 25%); --pat-size: 10px 10px, 10px 10px; }
.gc::after { background: var(--pat, none); background-size: var(--pat-size, auto); }
.awning, .shop-strip, .shop-info .si-head, .cmp-shop, .cmp-cardchip, .mchip.card, .shop-info .mchip.m-card, .pay-sw, .mini, .pill-card {
  background-image: var(--pat, none) !important; background-size: var(--pat-size, auto) !important; }

/* Card faces: the shopkeeper's short name, bigger, with a bigger logo and a
   soft shadow so it reads over the shop's pattern. */
.gcw .gc-top { gap: 4px; }
.gcw .gc-logo { width: min(2em, 17px); height: min(2em, 17px); }
.gcw .gc-name { font-size: calc(min(1.25em, 11.5px) * var(--t)); font-weight: 800; letter-spacing: .01em; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.gcw-xs .gc-logo { width: 13px; height: 13px; }

/* Brighter lettering on shop-coloured surfaces: each shop's ink, lifted toward
   white (Pip's dark ink on orange stays as is). */
[style*="--b:#" i] { --ib: color-mix(in srgb, var(--i) 55%, #fff); }
[style*="--b:#D8832F" i], [style*="--b:#7B8FAD" i][style*="--i:#253949" i] { --ib: var(--i); }
.awning, .awning .store-name, .awning .owner-name, .gc-name, .shop-strip, .shop-info .si-head, .cmp-shop, .cmp-cardchip, .mchip.card, .shop-info .mchip.m-card { color: var(--ib, var(--i)); }
.awning .owner-name, .mchip.card small, .shop-info .mchip.m-card small { opacity: 1; }
.awning .store-name, .awning .owner-name, .shop-strip, .shop-info .si-head { text-shadow: 0 1px 2px rgba(0,0,0,.3); }


/* No scrollbars inside the game (like iOS): a desktop scrollbar took width and
   pushed the panel content left the moment a panel started to scroll. */
#phone, #phone * { scrollbar-width: none; }
#phone ::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* Speech bubble: see-through (a soft frosted card), and ✕ / ▸ sit on the
   corners so the words get the full width and a page stays within two lines. */
.bubble, .shopping .bubble { background: rgba(255,253,247,.8) !important; -webkit-backdrop-filter: blur(6px) saturate(1.1) !important; backdrop-filter: blur(6px) saturate(1.1) !important; padding: 9px 16px 10px; }
.bubble::after { background: rgba(255,253,247,.8); }
.bubble .bubble-x { float: none; position: absolute; top: -9px; right: -9px; margin: 0; width: 24px; height: 24px; background: var(--card); box-shadow: 0 0 0 1.5px rgba(60,40,10,.18), 0 2px 5px rgba(40,30,10,.2); }
.bubble .bubble-next { float: none; position: absolute; right: -10px; bottom: -10px; margin: 0; box-shadow: 0 2px 5px rgba(40,30,10,.25); }
.bubble .bubble-text { text-wrap-style: balance; }
.bubble.small-text { font-size: 12.5px; }

/* ‹ back to the price comparison, at the left of the checkout's shop header. */
.shop-strip .strip-back { flex: none; display: grid; place-items: center; width: 30px; height: 30px; margin: -4px -2px -4px -6px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.16); color: var(--ib, var(--i)); cursor: pointer; position: relative; }
.shop-strip .strip-back::after { content: ""; position: absolute; inset: -7px; }
.shop-strip .strip-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.shop-strip .strip-back:active { background: rgba(255,255,255,.3); }

/* The label column stays on top as the table scrolls sideways: nothing (the
   shop name chips included) shows through it. */
.cmp-label { z-index: 4; background: var(--card); }
.cmp-label { box-shadow: -10px 0 0 var(--card), 4px 0 0 var(--card); }
.cmp-head .cmp-label { align-self: stretch; margin-top: -6px; padding-top: 6px; }
.cmp-key.under { position: sticky; left: 2px; width: max-content; }

/* Can keep is a button in the score bar (opens its explainer); bigger in the panel. */
button.kmh { border: 0; background: none; font: inherit; color: inherit; text-align: left; padding: 4px 4px 2px 0; cursor: pointer; border-radius: 8px; }
button.kmh:active { opacity: .75; }
button.kmh.on .kmh-title { color: var(--gold); }
.kmh.big { margin: 10px 0 14px; padding: 12px 12px 10px; border-radius: 14px; background: var(--ink); }
.kmh.big .kmh-title { font-size: 11px; }
.kmh.big .kmh-bar { height: 26px; }
.kmh.big .kmh-steps { top: 8px; height: 10px; }

/* Stock later: what another shopper leaves after each item you finish. */
.stock-later { display: inline-flex; align-items: center; gap: 3px; font-variant-numeric: tabular-nums; }
.stock-later b { min-width: 16px; padding: 1px 4px; border-radius: 6px; background: rgba(181,84,28,.12); font-size: 12px; text-align: center; }
.stock-later b.now { background: rgba(47,111,94,.14); }
.stock-later b.gone { background: none; color: var(--red-ink); font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.stock-later i { font-style: normal; font-size: 10px; opacity: .6; }

/* "Cue's September shopping list": the month stands out. */
.dock-label .dl-month { font-style: normal; color: var(--gold); }

/* Cue fills the chirp circle: the head is left of centre in the image (the
   chirp lines sit to its right), so it is nudged over and scaled up. */
.dock-card .chirp-btn img { transform: translate(5%, 2%) scale(.98); }
/* The chirp button sits on the list panel's top edge, like a notification badge. */
.dock-card .chirp-btn { top: -17px; right: 14px; width: 36px; height: 36px; background: var(--ink); box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 1.5px rgba(246,239,224,.3), 0 3px 8px rgba(60,40,10,.3); }
.dock-card { overflow: visible; }

/* The counter scrolls inside its own rounded shape, so its top and bottom
   corners stay rounded however far the list is scrolled. */
.counter { border-radius: 20px; clip-path: inset(0 round 20px); overscroll-behavior: contain; }

/* A bigger look at the home on the settle card: full width, filling whatever
   height the card has left (at least a strip), never pushing the buttons off. */
.settle { display: flex; flex-direction: column; }
.settle > * { flex: none; }
.settle .home-wrap { flex: 1 1 0; min-height: 150px; width: 100%; aspect-ratio: auto; }
.settle .home-wrap canvas { object-fit: cover; object-position: 50% 60%; }
@media (max-height: 740px) { .settle .home-wrap { min-height: 110px; aspect-ratio: auto; } }

/* Checkout: two columns in the order money comes out (gift cards soonest-
   ending first, Prepaid, cash); an odd cash tile runs across the bottom. */
.sources.grouped.grid2 { display: grid; grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-columns: auto; row-gap: 8px; column-gap: 0; }
.sources.grouped.grid2 .src-group { grid-row: auto; display: flex; flex-direction: column; gap: 6px; padding: 0 9px; border-left: 0; }
.sources.grouped.grid2 .src-group:nth-child(even) { border-left: 1.5px dashed var(--line); }
.sources.grouped.grid2 .src-group:nth-child(n+3) { border-top: 1.5px dashed var(--line); padding-top: 8px; }
.sources.grouped.grid2 .src-group.span2 { grid-column: 1 / -1; border-left: 0; }
.sources.grouped.grid2 .span2 .src { display: flex; flex-direction: row; align-items: center; gap: 12px; }
.sources.grouped.grid2 .span2 .src-face { flex: 0 0 42%; max-width: 150px; }
.sources.grouped.grid2 .span2 .src-body { flex: 1; min-width: 0; }
/* The cash row across the bottom is one short line: label, bill, stepper. */
.sources.grouped.grid2 .src-group.span2 { flex-direction: row; align-items: center; gap: 10px; padding-top: 6px; }
.sources.grouped.grid2 .span2 .group-label { flex: none; width: 46px; margin: 0; }
.sources.grouped.grid2 .span2 .src-list { flex: 1; min-width: 0; }
.sources.grouped.grid2 .span2 .src { gap: 10px; min-height: 0; padding: 4px 6px; }
.sources.grouped.grid2 .span2 .src-face { flex: 0 0 104px; max-width: 104px; }
.sources.grouped.grid2 .span2 .cash-face { max-width: 104px; }
.sources.grouped.grid2 .span2 .cash-bill { height: 42px; width: auto; }
.sources.grouped.grid2 .span2 .cash-left { font-size: 11px; }
.sources.grouped.grid2 .span2 .stepper { min-height: 40px; }
/* Tighter tiles in the two-column checkout so the whole panel fits. */
.sources.grouped.grid2 { row-gap: 4px; }
.sources.grouped.grid2 .src-group { gap: 4px; }
.sources.grouped.grid2 .src-group:nth-child(n+3) { padding-top: 4px; }
.sources.grouped.grid2 .src { padding-top: 5px; padding-bottom: 5px; gap: 6px; }
.sources.grouped.grid2 .stepper { min-height: 38px; }
.sources.grouped.grid2 .span2 .cash-bill { height: 34px; }
.sources.grouped.grid2 .span2 .src { padding-top: 2px; padding-bottom: 2px; }
/* The two-column checkout needs a little more height: less is kept for the scene above. */
.phone.shopping .sheet:has(.grid2) { max-height: calc(100% - var(--footer-h) - 118px - var(--safe-top)); }
@media (max-height: 740px) { .phone.shopping .sheet:has(.grid2) { max-height: calc(100% - var(--footer-h) - 104px - var(--safe-top)); } }

/* Settle card: Share is the share symbol in the top-left corner; top right is the Menu's alone (P0-4, 9 Oct 2026). */
.settle { position: relative; }
.settle .rv-share.icon { position: absolute; z-index: 3; top: calc(max(10px, var(--sai-top)) + 2px); left: 14px; right: auto; width: 40px; height: 40px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line), 0 2px 6px rgba(40,30,10,.15); cursor: pointer; }
.settle .rv-share.icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* The whole room, uncropped, as large as the card's spare height allows. */
.settle .home-wrap { display: flex; justify-content: center; align-items: stretch; background: none; box-shadow: none; overflow: visible; border-radius: 0; }
.settle .home-wrap canvas { height: 100%; width: auto; max-width: 100%; aspect-ratio: 1024 / 1536; object-fit: contain; border-radius: 14px; box-shadow: var(--shadow); }
/* Acorns flying into the jar. */
.jar-fly { position: absolute; z-index: 40; width: 36px; height: 36px; pointer-events: none; }
.jar-fly img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(60,35,10,.3)); }
.settle .eyebrow { padding: 0 50px; }

/* Expired paper wear sits over the card face; labels remain native text. */
.gc.expired { filter: none; opacity: 1; }
.gc-expired-overlay { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: fill; pointer-events: none; }
.gc.expired .gc-top, .gc.expired .gc-bottom { position: relative; z-index: 2; }
.settle .settle-expired { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; margin-top: -4px; }
.settle-expired-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.settle-expired-cards .gcw { margin-bottom: 0; }
.settle-expired-cards .gc-pill { display: none; }
/* The expired card's own fact under its tile (design D3, 14 Oct 2026): what expired, what of it the list could have used. */
.settle-expired-cards .sx-card { display: flex; flex-direction: column; align-items: center; gap: 2px; max-width: 150px; }
.settle-expired-cards .sx-line { display: block; color: var(--red-ink, #9b3a2a); font-weight: 700; font-size: .8em; line-height: 1.25; text-align: center; padding: 0 2px; }

/* Mags can explain her cash-only rule when a player tries a card. */
.mags-no-cards { margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--line); }
.mags-no-cards > p { margin: 0 0 3px; }
.mags-card-strip { display: flex; gap: 12px; overflow-x: auto; padding: 3px 2px 8px; overscroll-behavior-x: contain; }
.mags-rejected-source { flex: none; display: flex; align-items: center; gap: 4px; }
.mags-card-face { padding: 0 3px; border: 0; background: none; min-width: 76px; min-height: 54px; }
.mags-card-plus { width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--accent); font-size: 21px; font-weight: 700; }
/* Keep her face and raised wing below the speech, even on a short phone.
   The existing payment-body scroll retains access to every card control. */
.phone.shopping .sheet:has(.mags-no-cards) { max-height: calc(100% - var(--footer-h) - var(--sai-top) - 220px); }

/* Mallow's nibble is a picture beside the existing live toast text. */
.toast.has-art:not([hidden]) { display: flex; align-items: center; gap: 8px; padding: 8px 14px; text-align: left; }
.toast .toast-art { flex: none; width: 104px; height: 104px; object-fit: contain; margin: -10px -12px -8px -10px; }
.toast .toast-text { min-width: 0; }

/* Heavy checkout (3+ basket lines or more than two ways to pay): compact tiles,
   three across (the card face over its stepper); a 4th or 5th wraps to a second row. */
.sources.grouped.compact { display: grid; grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; grid-auto-columns: auto; gap: 4px 0; }
.sources.grouped.compact .src-group.tile { grid-row: auto; flex: none; min-height: 0; height: auto; display: flex; flex-direction: column; gap: 3px; padding: 0 4px; border: 0; grid-template-rows: none; }
.sources.grouped.compact .src-group.tile:not(:nth-child(3n+1)) { border-left: 1.5px dashed var(--line); }
.sources.grouped.compact .src-group.tile:nth-child(n+4) { border-top: 1.5px dashed var(--line); padding-top: 4px; }
.sources.grouped.compact .src-group.tile .group-label { display: none; }
.sources.grouped.compact .src-group.tile .src { flex-direction: column; align-items: center; gap: 4px; padding: 3px 2px 4px; margin: 0; min-height: 0; border-width: 1.5px; }
.sources.grouped.compact .src-group.tile .src-face { width: auto; }
.sources.grouped.compact .src-group.tile .gcw .gc-sm { width: 70px; font-size: 7px; padding: 3px 5px; border-radius: 6px; }
.sources.grouped.compact .src-group.tile .gcw .gc-pill { font-size: 9px; padding: 0 5px; }
.sources.grouped.compact .src-group.tile .cash-face { max-width: 70px; }
.sources.grouped.compact .src-group.tile .cash-bill { height: 26px; width: auto; }
.sources.grouped.compact .src-group.tile .cash-left { font-size: 10px; }
.sources.grouped.compact .src-group.tile .src-body { width: 100%; display: flex; justify-content: center; }
.sources.grouped.compact .src-group.tile .stepper { min-height: 32px; }
.sources.grouped.compact .src-group.tile .stepper .amt { min-width: 36px; font-size: 15px; padding: 0 2px; }
.sources.grouped.compact .src-group.tile .stepper button { width: 30px; }
.phone.shopping .sheet:has(.compact) { max-height: calc(100% - var(--footer-h) - 118px - var(--safe-top)); }
/* Heavy counter: one tight line per item (up to four lines). */
.counter-card.heavy { padding: 5px 8px 6px; }
.counter-card.heavy .cline { padding: 2px 0; gap: 5px; align-items: center; }
.counter-card.heavy .cline .line-item img, .counter-card.heavy .cline .line-item { width: 26px; height: 26px; }
.counter-card.heavy .cline .line-title { font-size: 12px; }
.counter-card.heavy .cline .qbox { width: 20px; height: 20px; font-size: 10.5px; border-radius: 6px; }
.counter-card.heavy .cline .line-total { font-size: 14px; }
.counter-card.heavy .price-tag { font-size: 8.5px; }
.counter-card.heavy .counter-total { padding-top: 3px; font-size: 12.5px; }
/* Tiles in a row match heights: a fixed face area, so the steppers line up. */
.sources.grouped.compact .src-group.tile .src-list, .sources.grouped.compact .src-group.tile .src { height: 100%; }
.sources.grouped.compact .src-group.tile .src { justify-content: flex-end; }
.sources.grouped.compact .src-group.tile .src-face { height: 56px; display: flex; align-items: center; justify-content: center; }
.sources.grouped.grid2 .src-group:not(.span2) .src-face { min-height: 70px; display: flex; align-items: center; justify-content: center; }

/* Shopkeeper lines are floating captions, not speech balloons: no tail, so
   they never have to point at a mouth and can sit wherever there is room. */
.bubble::before, .bubble::after, .bubble.under::before, .bubble.under::after { display: none !important; content: none !important; }
.bubble, .shopping .bubble { padding: 9px 16px 10px; }

/* Tutorial: everything the tip is not about falls back into shadow, so the
   lit part is what to look at. The ring frames it; no ring means the tip alone. */
.coach .ring { box-shadow: 0 0 0 4000px rgba(20,16,10,.58); border-color: var(--gold); }
.coach .scrim { position: absolute; inset: 0; background: rgba(20,16,10,.5); }

/* Compact counter lines keep the item and its price tag readable. */
.counter-card.heavy .cline .line-item img, .counter-card.heavy .cline .line-item { width: 34px; height: 34px; }
.counter-card.heavy .price-tag { font-size: 10px; }
.counter-card.heavy .cline .line-title { font-size: 12.5px; }

.counter-card.heavy .cline { padding: 1px 0; }
.counter-card.heavy .counter-total { padding-top: 2px; }

/* The list row of items is centred (labels stay left); the row still scrolls if it overflows. */
.listbar .row-line .chips > :first-child { margin-left: auto; }
.listbar .row-line .chips > :last-child { margin-right: auto; }
/* Bigger item pictures at the counter. */
.counter .qtytile, .counter .cline .line-item, .counter .cline .line-item img { width: 54px; height: 54px; }
.counter-card.heavy .cline .line-item img, .counter-card.heavy .cline .line-item { width: 42px; height: 42px; }
/* Price tags hang off the item: tilted toward it, string end up. */
.price-tag { transform: rotate(7deg); }
.store-art .price-tag { transform: rotate(7deg); }
/* Four big-pictured lines still fit the compact counter. */
.counter-card.heavy .cline { padding: 0; }
.counter-card.heavy .cline .line-mid { gap: 1px; }
.counter-card.heavy .cline-head { align-items: center; }
.counter-card.heavy { padding: 4px 8px 4px; }
.counter-card.heavy .counter-total { padding-top: 0; }

/* Compact counter, laid out cleanly: a 40px picture tile, the name over its
   checkboxes, the price at the right; even gaps, and the tag hangs off the tile
   into the row's lower margin instead of into the next line. */
#counter .counter-card.heavy { padding: 6px 10px 4px; }
#counter .counter-card.heavy .cline { display: block; padding: 3px 0 7px; gap: 0; border-bottom: 1px dashed var(--line); }
#counter .counter-card.heavy .cline:last-of-type { border-bottom: 0; }
#counter .counter-card.heavy .cline-head { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; column-gap: 10px; align-items: start; }
#counter .counter-card.heavy .cline .line-art { position: relative; width: 40px; height: 40px; }
#counter .counter-card.heavy .cline .line-item { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 10px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); }
#counter .counter-card.heavy .cline .line-item img { width: 30px; height: 30px; }
#counter .counter-card.heavy .cline .price-tag { left: 16px; right: auto; bottom: -9px; font-size: 10px; padding: 0 5px 0 10px; }
#counter .counter-card.heavy .cline .price-tag i { left: 4px; width: 3.5px; height: 3.5px; }
#counter .counter-card.heavy .cline .line-mid { display: flex; flex-direction: column; gap: 3px; padding-top: 1px; min-width: 0; }
#counter .counter-card.heavy .cline .line-title { font-size: 13px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#counter .counter-card.heavy .cline .line-sub { gap: 4px; margin: 0; }
#counter .counter-card.heavy .cline .qbox { width: 20px; height: 20px; font-size: 10.5px; border-radius: 6px; }
#counter .counter-card.heavy .cline .line-total { font-size: 14px; padding-top: 1px; }
#counter .counter-card.heavy .counter-total { padding: 6px 0 0; margin-top: 2px; font-size: 13px; border-top: 1px dashed var(--line); }

/* While a heavy basket is open the dock shows only the list: the wallet row
   folds away (the panel already shows every card), giving the counter its room. */
.phone.heavy-counter #board .listbar.wallet-mode { display: none; }

/* ============================================================================
   Motion language (1 Oct 2026). Five durations, three curves. Taps stay
   instant; reveals and transitions take their time. Later rules win, so these
   retune the earlier declarations rather than editing them in place.
   ============================================================================ */
:root {
  --t-tap: 100ms; --t-small: 240ms; --t-medium: 420ms; --t-large: 640ms; --t-scene: 900ms;
  --e-enter: cubic-bezier(.2,.8,.2,1);     /* arriving, settling */
  --e-exit: cubic-bezier(.4,0,1,1);        /* leaving */
  --e-move: cubic-bezier(.45,0,.55,1);     /* travelling A → B while visible */
}
.chev { transition: transform var(--t-tap) var(--e-enter); }
.walletchip .gc { transition: transform var(--t-tap) var(--e-enter); }
.bubble, .shopping .bubble { transition: none; }                       /* bubbleIn covers the entrance */
.bubble:not([hidden]) { animation: bubbleIn var(--t-medium) var(--e-enter) both; }
.sheet { transition: transform var(--t-medium) var(--e-exit), visibility 0s linear var(--t-medium); }
.panel-open .sheet { transition: transform var(--t-medium) var(--e-enter), visibility 0s linear 0s; }
.counter { transition: transform var(--t-medium) var(--e-exit), opacity var(--t-small) ease, visibility 0s linear var(--t-medium); }
.counter.in { transition: transform var(--t-medium) var(--e-enter), opacity var(--t-small) ease, visibility 0s; }
.overlay.ov-in { animation: ovIn var(--t-medium) ease both; }
.overlay.ov-out { animation: ovOut var(--t-medium) ease both; }
.overlay.ov-in .sheet-dialog { animation: dlgUp var(--t-medium) var(--e-enter) both; }
.overlay.ov-out .sheet-dialog { animation: dlgDown var(--t-medium) var(--e-exit) both; }
.overlay.ov-in .intro { animation: popIn var(--t-medium) var(--e-enter) both; }
.overlay.ov-out .intro { animation: popOut var(--t-medium) var(--e-exit) both; }
.overlay.ov-in[data-kind="opening"] > *, .overlay.ov-in[data-kind="settle"] > * { animation: fadeIn var(--t-scene) ease both; }
.overlay.ov-out[data-kind="opening"] > *, .overlay.ov-out[data-kind="settle"] > * { animation: fadeOut var(--t-medium) ease both; }
.overlay[data-kind="tips"].ov-in .sheet-dialog { animation: dlgDownIn var(--t-medium) var(--e-enter) both; }
.overlay[data-kind="tips"].ov-out .sheet-dialog { animation: dlgUpOut var(--t-medium) var(--e-exit) both; }
/* One screen transition (presentation pass, 10 Oct 2026): during a swap the backdrop is driven by view/app.js (swapOut /
   swapIn), so the overlay's own fade from clear is off; the cards keep their usual entrances. */
.overlay.ov-in.ov-held { animation: none; }
.overlay.ov-swap { pointer-events: none; }
/* The year's end screens had no entrance of their own (the party cut in over the settle): they fade in like the opening. */
.overlay.ov-in:is([data-kind="party"], [data-kind="drawer"], [data-kind="ending"]) > * { animation: fadeIn var(--t-large) ease both; }
details::details-content { transition: height var(--t-medium) var(--e-enter), content-visibility var(--t-medium) allow-discrete; }
.tip-page { transition: opacity var(--t-small) ease, transform var(--t-small) ease; }
.next-tag { transition: opacity var(--t-small) ease; }
.phone.shopping:not(.counter-in) .paybar .pay, .phone.rolling .paybar .pay { transition: opacity var(--t-small) ease; }
.review-pop .rp-card { animation: rpCard var(--t-medium) var(--e-enter) both; }
.menu-top { transition: opacity var(--t-small) ease, transform var(--t-small) var(--e-enter); }
/* The coach ring glides from target to target instead of jumping. */
.coach .ring { transition: left var(--t-medium) var(--e-enter), top var(--t-medium) var(--e-enter), width var(--t-medium) var(--e-enter), height var(--t-medium) var(--e-enter); }
/* The register arrow bobs back and forth instead of jumping. */
.flow-arrow { animation-direction: alternate; }
.flow-arrow.up { animation-direction: alternate-reverse; }
/* Opening pages cross-fade (the picture and the words). */
.opening .opening-art, .opening .caption, .opening .headline { animation: fadeIn var(--t-medium) ease both; }

/* ---- The opening, five beats ------------------------------------------------ */
.opening .headline { margin: 14px 28px 0; font-family: var(--display); font-size: calc(26px * var(--t)); font-weight: 700; line-height: 1.15; letter-spacing: -.005em; color: var(--ink); }
.opening .caption { margin: 8px 28px 10px; font-size: calc(16px * var(--t)); line-height: 1.45; min-height: 3.2em; color: var(--ink-2); }
.opening .opening-dots { display: flex; justify-content: center; gap: 7px; margin: 8px 0 0; }
.opening .opening-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(90,58,20,.22); }
.opening .opening-dots i.on { background: var(--accent); }
/* A slow drift on every picture (never a cut). */
.opening-art canvas { animation: fadeIn var(--t-scene) ease both, kenBurns 18s var(--e-move) both; transform-origin: 50% 60%; }
@keyframes kenBurns { from { transform: scale(1.02) translateY(0); } to { transform: scale(1.09) translateY(-1.5%); } }
.opening-art.beat-winter canvas { object-position: 50% 30%; }
.opening-art.beat-den canvas { object-position: 50% 70%; }
/* The list's items drift in one by one. */
.intro-items { position: absolute; inset: auto 6% 7% 6%; display: flex; justify-content: center; gap: 5%; }
.intro-items span { display: grid; place-items: center; width: 15%; aspect-ratio: 1; border-radius: 16px; background: rgba(255,253,247,.92); box-shadow: 0 6px 16px rgba(60,40,10,.22); animation: itemIn var(--t-large) var(--e-enter) both; animation-delay: calc(400ms + var(--k) * 260ms); }
.intro-items img { width: 70%; height: 70%; object-fit: contain; }
@keyframes itemIn { from { opacity: 0; transform: translateY(18px) scale(.9); } }
/* Payday: a hand of cards fans out beside Cue, the bill last. */
.pay-fan { position: absolute; right: 4%; bottom: 4%; width: 44%; aspect-ratio: 1 / 1; }
.pay-fan > span { position: absolute; left: 10%; bottom: 10%; width: 72%; transform-origin: 50% 120%; rotate: calc((var(--k) - 1.5) * 13deg); translate: calc((var(--k) - 1.5) * 13%) 0; animation: cardIn var(--t-large) var(--e-enter) both; animation-delay: calc(700ms + var(--k) * 240ms); filter: drop-shadow(0 6px 10px rgba(60,40,10,.28)); }
.pay-fan .gcw, .pay-fan .gc-sm { width: 100%; }
.pay-fan .pay-cash img { width: 100%; display: block; border-radius: 4px; }
@keyframes cardIn { from { opacity: 0; transform: translateY(26px); } }
/* The jar fills as the words land. */
.intro-jar { position: absolute; left: 44%; bottom: 4%; width: 56%; }
.intro-jar .jar-svg { width: 100%; height: auto; filter: drop-shadow(0 10px 24px rgba(60,40,10,.3)); }
.intro-jar .jar-fill { animation: jarRise 2.8s var(--e-move) both; animation-delay: 900ms; }
.intro-jar .jar-acorns g { animation: fadeIn 600ms ease both; animation-delay: 1600ms; }
@keyframes jarRise { from { transform: translateY(70px); } }
/* The flyer sits in the market. */
.opening-art.beat-market .flyer { right: 10%; top: 30%; animation: fadeIn var(--t-large) ease both; animation-delay: 500ms; }

/* ---- Type: one display face for every title (1 Oct 2026) ------------------ */
.dialog-head h2, .settle h2, .intro h2, .game-over h2, .party-pick h3, .review-pop h3, .info-panel h2, .menu-panel h2, .kmh h2, .toast-title { font-family: var(--display); font-weight: 700; letter-spacing: -.005em; line-height: 1.15; }
.dialog-head h2 { font-size: 22px; }
.settle h2 { font-size: 26px; }
.party-pick h3 { font-size: 18px; }
.review-pop h3 { font-size: 19px; }

/* ---- Counter lines: the bigger item tile gets its own column (1 Oct 2026) ---- */
#counter .counter-card:not(.heavy) .cline-head { grid-template-columns: 54px minmax(0, 1fr) auto; column-gap: 12px; align-items: center; }
#counter .counter-card:not(.heavy) .cline .line-art { position: relative; width: 54px; height: 54px; }
#counter .counter-card:not(.heavy) .cline .line-item { width: 54px; height: 54px; display: grid; place-items: center; padding: 0; }
#counter .counter-card:not(.heavy) .cline .line-item img { width: 42px; height: 42px; }
#counter .counter-card:not(.heavy) .cline .price-tag { left: auto; right: -8px; bottom: -8px; }
#counter .counter-card:not(.heavy) .cline .line-mid { min-width: 0; }
#counter .counter-card:not(.heavy) .cline .line-total { justify-self: end; min-width: 34px; text-align: right; }

/* The first-payment note's ring: everything but the payment rows goes dark. */
.fund-ring { position: absolute; z-index: 5; pointer-events: none; border: 3px solid var(--gold); border-radius: 16px; box-shadow: 0 0 0 4000px rgba(20,16,10,.58); transition: left var(--t-medium) var(--e-enter), top var(--t-medium) var(--e-enter), width var(--t-medium) var(--e-enter), height var(--t-medium) var(--e-enter); animation: fadeIn var(--t-medium) ease both; }
.fund-ring[hidden] { display: none; }
/* The share preview is its own dark room: no safe-area strip of scene above it. */
.overlay[data-kind="share"] { padding: 0; }
/* Cash spanning both columns: the bill sits level with the stepper and its capsule hangs off the bill (1 Oct 2026). */
.sources.grouped.grid2 .span2 .src-face { display: flex; align-items: center; justify-content: center; }
.sources.grouped.grid2 .span2 .cash-face { width: auto; height: auto; aspect-ratio: auto; margin-bottom: 9px; }
.sources.grouped.grid2 .span2 .cash-bill { height: 40px; width: auto; display: block; }
.sources.grouped.grid2 .span2 .cash-left { bottom: -9px; }

/* ---- Paper: a faint grain on every panel, and the dock (1 Oct 2026) --------- */
:root { --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35 0 0 0 0 .27 0 0 0 0 .18 0 0 0 .55 0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>"); }
.sheet::after, .sheet-dialog::after, .counter-card::after, .listbar::after, .dock-card::after, .intro::after, .opening-art::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--grain); background-size: 160px 160px; opacity: .09; mix-blend-mode: multiply; border-radius: inherit; }
.sheet::after { opacity: .06; }
.sheet-dialog, .intro { position: relative; }
.dock-card::after { opacity: .16; mix-blend-mode: soft-light; }
.opening-art::after { opacity: .05; }
@media (prefers-reduced-transparency: reduce) { .sheet::after, .sheet-dialog::after, .counter-card::after, .listbar::after, .dock-card::after, .intro::after, .opening-art::after { display: none; } }
/* Counter item names wrap to two lines instead of clipping. */
#counter .counter-card:not(.heavy) .cline .line-title { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; text-overflow: clip; line-height: 1.15; }

/* ---- Wallet row: always in the dock, folds with a caret (1 Oct 2026) -------- */
.phone.heavy-counter #board .listbar.wallet-mode, .phone.panel-open #board .listbar.wallet-mode { display: block; }
#board .listbar.wallet-mode .wallet-head { display: flex; align-items: center; gap: 8px; min-height: 22px; }
#board .listbar.wallet-mode .wallet-head .dock-label { margin: 0 0 0 2px; }
#board .listbar.wallet-mode .wallet-head .warn-sym { margin-left: 0; }
.wallet-caret { margin-left: auto; width: 30px; height: 26px; padding: 0; border: 0; border-radius: 8px; background: rgba(246,239,224,.1); color: rgba(246,239,224,.8); display: grid; place-items: center; }
.wallet-caret svg { width: 16px; height: 16px; transition: transform var(--t-medium) var(--e-enter); }
.listbar.wallet-mode.folded .wallet-caret svg { transform: rotate(-90deg); }
#board .listbar.wallet-mode.folded { padding-bottom: 6px; }
/* ---- Storefronts: what the shop takes, down the left ------------------------ */
.store .store-body.tagged { flex-direction: row; align-items: center; justify-content: center; gap: 10px; }
.store .store-main-col { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.store .pay-col { display: flex; flex-direction: column; justify-content: center; gap: 5px; flex: none; }
.store .pay-col .pay-mini { flex-direction: column; align-items: center; gap: 1px; font-size: 10.5px; line-height: 1; }
.store .pay-col .pay-mini .pay-sw { --face-w: 28px; }
.store .pay-col .pay-mini .pay-sw.cash { width: 28px; height: 15px; }
.store .pay-col .pay-mini.used { opacity: .38; filter: grayscale(.8); }
.versus.count-3 .store .store-body.tagged { gap: 6px; }
.versus.count-3 .store .pay-col .pay-mini .pay-sw { --face-w: 22px; }
.versus.count-3 .store .pay-col .pay-mini { font-size: 9.5px; }

/* Wallet row: the sum in its header, the body folding as one motion. */
#board .listbar.wallet-mode .wallet-body { overflow: hidden; }
#board .listbar.wallet-mode.folded .wallet-body { height: 0; }
#board .listbar.wallet-mode .wallet-head { gap: 6px; min-height: 34px; }
#board .listbar.wallet-mode .wallet-head .sum { margin: 0 0 0 4px; padding: 0; border-right: 0; display: flex; align-items: center; }
#board .listbar.wallet-mode .wallet-head .sum .stat { padding: 2px 6px 2px 0; margin: 0; line-height: 1; }
#board .listbar.wallet-mode .wallet-head .sum .stat small { font-size: 9px; letter-spacing: .06em; font-weight: 800; color: rgba(246,239,224,.62); }
#board .listbar.wallet-mode .wallet-head .sum .stat b { font-size: 15px; font-variant-numeric: tabular-nums; }
#board .listbar.wallet-mode .wallet-head .sum .op { margin: 10px 5px 0 0; font-size: 14px; }
#board .listbar.wallet-mode .wallet-head .sum .stat.total { padding: 2px 7px; border-radius: 8px; background: rgba(246,239,224,.1); }
#board .listbar.wallet-mode .wallet-head .sum .stat.on small, #board .listbar.wallet-mode .wallet-head .sum .stat.on b { color: var(--gold); }
#board .listbar.wallet-mode .wallet-head .sum .stat.on { box-shadow: inset 0 -2px 0 var(--gold); }
/* The footer is the meter, edge to edge. */
.score-bar.meter-only { padding: 6px 14px 6px 14px; gap: 0; }
.score-bar.meter-only .kmh { padding: 4px 0 2px; }
.score-bar.meter-only .kmh-bar { height: 24px; }
.score-bar.meter-only .kmh-steps { top: 8px; height: 9px; }
.score-bar.meter-only .kmh-title { font-size: 10.5px; }
/* The header's stats are plain text, like the footer's were (no button chrome). */
#board .listbar.wallet-mode .wallet-head .sum .stat { display: flex; flex-direction: column; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
#board .listbar.wallet-mode .wallet-head .sum .stat.total { background: rgba(246,239,224,.1); }
#board .listbar.wallet-mode .wallet-head .sum .stat:active { opacity: .7; }
#board .listbar.wallet-mode .wallet-head .sum .stat, #board .listbar.wallet-mode .wallet-head .sum .stat b { color: var(--paper); }
/* Storefront payment options in two columns above the item (shorter cards). */
.store .store-body.tagged { flex-direction: column; gap: 6px; }
.store .pay-col { display: grid; grid-template-columns: repeat(2, minmax(0, auto)); justify-content: center; align-items: start; gap: 4px 12px; }
.store .pay-col .pay-mini:only-child, .store .pay-col .pay-mini:nth-child(3):last-child { grid-column: 1 / -1; justify-self: center; }
.versus.count-3 .store .pay-col { gap: 3px 8px; }

/* ---- The meter: goal and best marks under the bar, the saved pill above it ---- */
.kmh-bar { height: 40px; }
.kmh-steps { top: 15px; height: 9px; }
.kmh-mark { top: 0; }
.kmh-mark b { height: 20px; font-size: 12.5px; padding: 0 7px; border-radius: 10px; }
.kmh-mark::after { content: ""; position: absolute; left: 50%; top: 18px; width: 2px; height: 7px; margin-left: -1px; background: var(--paper); }
.kmh-goal, .kmh-best { position: absolute; top: 13px; width: 0; height: 0; margin: 0; border: 0; background: none; box-shadow: none; }
.kmh-goal i, .kmh-best i { position: absolute; left: -1.5px; top: 0; width: 3px; height: 13px; border-radius: 2px; background: var(--paper); box-shadow: 0 0 0 1px var(--ink); }
.kmh-best i { background: var(--gold); }
.kmh-goal small, .kmh-best small { position: absolute; top: 14px; font-size: 8.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1; white-space: nowrap; color: rgba(246,239,224,.75); }
.kmh-goal small { right: 3px; }
.kmh-best small { left: 3px; color: var(--gold); }
.kmh.big .kmh-bar { height: 44px; }
.kmh.big .kmh-steps { top: 16px; height: 10px; }
.kmh.big .kmh-goal small, .kmh.big .kmh-best small { font-size: 9.5px; top: 15px; }
.score-bar.meter-only .kmh-bar { height: 40px; }
.score-bar.meter-only .kmh-steps { top: 15px; height: 9px; }

/* The best mark's label sits above the bar (right-aligned to its tick) so it never runs off the end; it steps aside when the pill is on top of it. */
.kmh-best small { top: auto; bottom: 14px; left: auto; right: 3px; }
.kmh.near-best .kmh-best small { display: none; }
/* The footer meter keeps the footer at its 58px: a shorter bar, labels tucked under it. */
.score-bar.meter-only { padding: 4px 14px 3px; }
.score-bar.meter-only .kmh { gap: 2px; padding: 0; }
.score-bar.meter-only .kmh-title { font-size: 10px; }
.score-bar.meter-only .kmh-bar { height: 36px; }
.score-bar.meter-only .kmh-steps { top: 13px; height: 8px; }
.score-bar.meter-only .kmh-mark { top: -1px; }
.score-bar.meter-only .kmh-mark b { height: 19px; font-size: 12px; }
.score-bar.meter-only .kmh-mark::after { top: 17px; height: 5px; }
.score-bar.meter-only .kmh-goal, .score-bar.meter-only .kmh-best { top: 11px; }
.score-bar.meter-only .kmh-goal i, .score-bar.meter-only .kmh-best i { height: 12px; }
.score-bar.meter-only .kmh-goal small { top: 13px; font-size: 8px; }
.score-bar.meter-only .kmh-best small { bottom: 13px; font-size: 8px; }
.score-bar.meter-only .kmh-bar { height: 34px; }
.score-bar.meter-only .kmh-goal small { top: 12px; }
.score-bar.meter-only .kmh-best small { bottom: 12px; }

/* The meter's title is the month's savings goal; the goal figure sits with it, not at the far end. */
.kmh-title { justify-content: flex-start; gap: 5px; }
.kmh-title em { color: var(--paper); letter-spacing: 0; }
.score-bar.meter-only { padding-top: 3px; min-height: 0; }

/* ---- Storefront layouts (1 Oct 2026) ------------------------------------------
   Three shops: one column each, four fixed rows (pay, item, price, stock) so the
   same fact sits on the same line across the row. Two shops: quadrants. */
.versus.count-3 .store.headline, .versus.count-three .store.headline, .versus.count-three .store.headline:nth-child(3) { display: grid; grid-template-columns: 1fr; grid-template-rows: 54px 60px 50px 46px 20px; grid-template-areas: "awning" "pay" "art" "price" "pips"; align-items: center; justify-items: center; row-gap: 0; flex: 1 1 0; }
.versus.count-2 .store.headline { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 66px 50px; grid-template-areas: "awning awning" "pay art" "pips price"; align-items: center; justify-items: center; row-gap: 2px; column-gap: 6px; }
.versus.count-3 .store.headline .store-body.tagged, .versus.count-three .store.headline .store-body.tagged, .versus.count-three .store.headline:nth-child(3) .store-body.tagged, .versus.count-2 .store.headline .store-body.tagged, .versus.count-3 .store.headline .store-main-col, .versus.count-three .store.headline .store-main-col, .versus.count-three .store.headline:nth-child(3) .store-main-col, .versus.count-2 .store.headline .store-main-col { display: contents; }
.versus.count-3 .store.headline .awning, .versus.count-three .store.headline .awning, .versus.count-three .store.headline:nth-child(3) .awning, .versus.count-2 .store.headline .awning { grid-area: awning; justify-self: stretch; flex-direction: column; }
.versus.count-3 .store.headline .awning, .versus.count-three .store.headline .awning, .versus.count-three .store.headline:nth-child(3) .awning { height: 54px; box-sizing: border-box; overflow: hidden; }
.versus.count-3 .store.headline .pay-col, .versus.count-three .store.headline .pay-col, .versus.count-three .store.headline:nth-child(3) .pay-col, .versus.count-2 .store.headline .pay-col { grid-area: pay; align-self: center; }
.versus.count-3 .store.headline .store-art, .versus.count-three .store.headline .store-art, .versus.count-three .store.headline:nth-child(3) .store-art, .versus.count-2 .store.headline .store-art { grid-area: art; }
.versus.count-3 .store.headline .price-box, .versus.count-three .store.headline .price-box, .versus.count-three .store.headline:nth-child(3) .price-box, .versus.count-2 .store.headline .price-box { grid-area: price; }
.versus.count-3 .store.headline .stock-pips, .versus.count-three .store.headline .stock-pips, .versus.count-three .store.headline:nth-child(3) .stock-pips, .versus.count-2 .store.headline .stock-pips { grid-area: pips; margin: 0; }
.versus.count-2 .store.headline .pay-col { grid-template-columns: repeat(2, minmax(0, auto)); }
.versus.count-2 .store.headline .store-art .store-item { width: 48px; height: 48px; }

/* Bands sized by difficulty: 8 / 14 / 20 / 26 / 32 % of the width for equal fifths of the money. */
.kmh-steps { background: linear-gradient(to right, var(--red) 0 8%, #e2703a 8% 22%, #e8b64a 22% 42%, #9ccf6a 42% 68%, #3f9a5f 68% 100%); }
.kmh-steps::after { background: linear-gradient(to right, transparent 0 calc(8% - .75px), var(--ink) calc(8% - .75px) calc(8% + .75px), transparent calc(8% + .75px) calc(22% - .75px), var(--ink) calc(22% - .75px) calc(22% + .75px), transparent calc(22% + .75px) calc(42% - .75px), var(--ink) calc(42% - .75px) calc(42% + .75px), transparent calc(42% + .75px) calc(68% - .75px), var(--ink) calc(68% - .75px) calc(68% + .75px), transparent calc(68% + .75px) 100%); }
/* In the explainer the best label also sits above the bar, clear of the goal label. */
.kmh.big .kmh-best small { top: auto; bottom: 15px; }

/* ---- Meter marks with leaders (1 Oct 2026) ----------------------------------
   The bar's top and height are variables; ticks sit on the bar, a dotted leader
   runs down from BEST (with its amount) and up from GOAL to their ticks. */
.kmh-bar, .score-bar.meter-only .kmh-bar { --bt: 13px; --bh: 8px; height: 37px; }
.kmh.big .kmh-bar { --bt: 16px; --bh: 10px; height: 46px; }
.kmh-steps, .score-bar.meter-only .kmh-steps, .kmh.big .kmh-steps { top: var(--bt); height: var(--bh); }
.kmh .kmh-goal, .kmh .kmh-best, .score-bar.meter-only .kmh-goal, .score-bar.meter-only .kmh-best { top: var(--bt); }
.kmh .kmh-goal i, .kmh .kmh-best i, .score-bar.meter-only .kmh-goal i, .score-bar.meter-only .kmh-best i { top: -2px; height: calc(var(--bh) + 4px); }
.kmh .kmh-goal::after { content: ""; position: absolute; left: -0.75px; top: calc(var(--bh) + 2px); height: 6px; border-left: 1.5px dotted rgba(246,239,224,.85); }
.kmh .kmh-goal small, .score-bar.meter-only .kmh-goal small, .kmh.big .kmh-goal small { top: calc(var(--bh) + 9px); right: 3px; bottom: auto; }
.kmh .kmh-best::before { content: ""; position: absolute; left: -0.75px; bottom: 2px; height: 11px; border-left: 1.5px dotted var(--gold); }
.kmh .kmh-best small, .score-bar.meter-only .kmh-best small, .kmh.big .kmh-best small { top: auto; bottom: 14px; right: 3px; left: auto; }
.kmh .kmh-best small .acorn { --aw: 800; }
.kmh-mark, .score-bar.meter-only .kmh-mark { top: -1px; }
.kmh-mark::after, .score-bar.meter-only .kmh-mark::after { top: 17px; height: 5px; }
.kmh.big .kmh-mark { top: 0; }
.kmh.big .kmh-mark::after { top: 18px; height: 7px; }

/* Footer: 63px tall, the meter sitting 5px up from the bottom; the dock and panels stack on --footer-h. */
.score-bar.meter-only { min-height: var(--footer-h); }
/* On a phone the home-indicator inset belongs to the footer too: the dock sits at
   --footer-h plus the inset, so the footer must be that tall or a strip of scene shows between them. */
#footer { min-height: calc(var(--footer-h) + env(safe-area-inset-bottom)); }
.score-bar.meter-only { padding: 3px 14px 8px; }
.score-bar.meter-only .kmh-title { line-height: 1; }
.score-bar.meter-only .kmh-bar { height: 36px; }
/* The saved pill reaches the very start of the bar: at nothing saved its left edge is at 0, covering the red. */
.kmh-mark { left: clamp(20px, var(--at), calc(100% - 20px)); }
.kmh-mark b { min-width: 40px; justify-content: center; box-sizing: border-box; }

/* ---- Meter: Your savings / Goal on the title line, a flag for the goal, bigger words ---- */
#footer { height: calc(var(--footer-h) + env(safe-area-inset-bottom)); box-sizing: border-box; }
.kmh-title, .score-bar.meter-only .kmh-title, .kmh.big .kmh-title { justify-content: space-between; font-size: 11px; line-height: 1; }
.kmh-title em { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--paper); }
.kmh-bar, .score-bar.meter-only .kmh-bar { height: 40px; }
.kmh.big .kmh-bar { height: 48px; }
.kmh .kmh-goal small, .score-bar.meter-only .kmh-goal small, .kmh.big .kmh-goal small { font-size: 9.5px; top: calc(var(--bh) + 10px); color: var(--paper); }
.kmh .kmh-best small, .score-bar.meter-only .kmh-best small, .kmh.big .kmh-best small { font-size: 9.5px; }
.kmh.big .kmh-goal small, .kmh.big .kmh-best small { font-size: 10.5px; }
/* The goal flag: a taller, wider pole with a pennant, so it reads as the thing to reach. */
.kmh .kmh-goal i, .score-bar.meter-only .kmh-goal i { left: -2px; top: -6px; width: 4px; height: calc(var(--bh) + 9px); border-radius: 2px; background: var(--paper); box-shadow: 0 0 0 1px var(--ink); }
.kmh .kmh-goal i::before { content: ""; position: absolute; left: 4px; top: 0; border-style: solid; border-width: 4px 0 4px 9px; border-color: transparent transparent transparent var(--paper); filter: drop-shadow(0 0 1px var(--ink)); }
.kmh .kmh-goal::after { top: calc(var(--bh) + 3px); height: 6px; }
.kmh-mark, .score-bar.meter-only .kmh-mark { top: 0; }
.kmh-mark b, .score-bar.meter-only .kmh-mark b { height: 20px; font-size: 13px; }
.kmh-mark::after, .score-bar.meter-only .kmh-mark::after { top: 18px; height: 4px; }

/* ---- Meter: the flag carries the goal; BEST sits under the bar with its leader running up ---- */
.kmh .kmh-goal small, .score-bar.meter-only .kmh-goal small, .kmh.big .kmh-goal small { display: none; }
.kmh .kmh-goal::after { display: none; }
.kmh .kmh-best::before { bottom: auto; top: calc(var(--bh) + 2px); height: 7px; }
.kmh .kmh-best small, .score-bar.meter-only .kmh-best small, .kmh.big .kmh-best small { top: calc(var(--bh) + 10px); bottom: auto; right: 2px; left: auto; }
.kmh.big .kmh-best small { top: calc(var(--bh) + 11px); }
.kmh.near-best .kmh-best small { display: block; }
/* Quadrant storefronts: "Qty." beside the dots and the count. */
.stock-pips .pips-word { display: none; font-size: 10.5px; font-weight: 800; letter-spacing: .02em; color: var(--ink-2); margin-right: 3px; }
.versus.count-2 .store.headline .stock-pips .pips-word { display: inline; }
.versus.count-2 .store.headline .stock-pips { gap: 4px; }
.versus.count-2 .store.headline .stock-pips .stock-n { font-size: 13px; color: var(--ink); }

/* ---- Meter title: YOUR SAVINGS left, "Goal 🌰x ⚑" centred; no leaders ---- */
.kmh-title, .score-bar.meter-only .kmh-title, .kmh.big .kmh-title { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; }
.kmh-title em { grid-column: 2; display: inline-flex; align-items: center; gap: 4px; justify-self: center; }
.kmh-title .kmh-flag { width: 12px; height: 12px; color: var(--paper); }
.kmh .kmh-best::before, .kmh .kmh-goal::after { display: none; }

/* The goal flag on the bar is the same glyph as in the title, its pole planted on the bar. */
.kmh .kmh-goal .kmh-flag { position: absolute; width: 20px; height: 20px; left: -4.3px; top: calc(var(--bh) + 2px - 20px); color: var(--paper); filter: drop-shadow(0 0 1px var(--ink)) drop-shadow(0 1px 1px rgba(20,16,10,.5)); }
.kmh.big .kmh-goal .kmh-flag { width: 24px; height: 24px; left: -5.1px; top: calc(var(--bh) + 2px - 24px); }

/* A card ending today reads red on the storefront, as it does in the wallet. */
.store .pay-col .pay-mini.expiring b { color: var(--red); }
.store .pay-col .pay-mini.expiring .pay-sw { box-shadow: 0 0 0 2px var(--red), 0 1px 2px rgba(60,40,10,.2); }
.kmh-title, .score-bar.meter-only .kmh-title, .kmh.big .kmh-title { gap: 14px; }

/* ---- Meter title: savings | Goal from 3/5 across | Best at the right edge ---- */
.kmh-title, .score-bar.meter-only .kmh-title, .kmh.big .kmh-title { grid-template-columns: 60% 1fr auto; gap: 6px; }
.kmh-title em { grid-column: 2; justify-self: start; }
.kmh-title .kmh-best-text { grid-column: 3; justify-self: end; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.kmh .kmh-best small, .score-bar.meter-only .kmh-best small, .kmh.big .kmh-best small { display: none; }
.kmh-bar, .score-bar.meter-only .kmh-bar { height: 30px; }
.kmh.big .kmh-bar { height: 36px; }
.score-bar.meter-only { padding-bottom: 6px; }
.kmh-title, .score-bar.meter-only .kmh-title, .kmh.big .kmh-title { grid-template-columns: 50% 1fr auto; }
/* BEST's last digit lines up with the outer edge of the gold tick (the tick overhangs the bar by 1.5px; uppercase tracking leaves ~.7px after the last glyph). */
.kmh-title .kmh-best-text { margin-right: -2px; }
/* Breathing room between the awning and the payment options (the expiring ring was touching the rule). */
.versus.count-3 .store.headline .pay-col, .versus.count-three .store.headline .pay-col, .versus.count-three .store.headline:nth-child(3) .pay-col, .versus.count-2 .store.headline .pay-col { margin-top: 9px; }
.versus.count-3 .store.headline, .versus.count-three .store.headline, .versus.count-three .store.headline:nth-child(3) { grid-template-rows: 54px 64px 50px 46px 20px; }

/* ---- Settle card revamp (1 Oct 2026): the den is the star, the jar stands on its table ---- */
.settle { position: relative; }
.settle .settle-share { position: absolute; z-index: 3; top: calc(12px + var(--sai-top)); right: 14px; }
.settle-today { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 10px; margin: 2px 0 10px; }
.settle-today .ss-amt { font-size: 40px; line-height: 1; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.settle-today .ss-word { font-size: 16px; font-weight: 700; color: var(--ink-2); }
.settle-today .ss-info { width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: var(--accent-2); color: var(--accent-ink); display: inline-grid; place-items: center; }
.settle-today .ss-info svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.settle-today .ss-info svg .dot { fill: currentColor; stroke: none; }
.settle-today .ss-pill { padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; line-height: 1.15; white-space: nowrap; }
.settle-today .ss-pill.on-pace { background: var(--accent-2); color: var(--accent-ink); }
.settle-today .ss-pill.off-pace { background: #fbece1; color: var(--warn-ink); }
.settle .home-wrap.stage { width: 100%; max-width: 372px; aspect-ratio: 1024 / 900; margin: 4px auto 8px; border-radius: 18px; }
.settle .home-wrap.stage canvas { object-fit: fill; object-position: 50% 50%; }
/* The jar: its bottom centre sits on the table top (home coords 386,1044 → 37.7% / 73.8% of this crop). The SVG is 310 units wide with the jar's centre 146 units from its left edge (47%); the jar bottom sits 93.5% down. */
.settle-jar-over { position: absolute; left: calc(37.7% - 0.47 * 84%); top: calc(73.8% - 0.935 * (84% * 124 / 310) * 1024 / 900); width: 84%; pointer-events: none; }
.settle-jar-over .jar-svg.stage { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 6px 8px rgba(40,30,10,.28)); }
.jar-svg.stage .jar-glass { fill: rgba(236,244,246,.42); }
.jar-svg.stage .jar-rim { fill: none; stroke: rgba(255,255,255,.75); stroke-width: 1.6; }
.jar-svg.stage .jar-line { stroke-width: 1.2; }
.jar-svg.stage .jar-tick { stroke: rgba(251,246,234,.95); stroke-width: 1.6; stroke-dasharray: 2.5 2; }
.jar-svg.stage .jar-tick.hit { stroke: var(--accent); stroke-dasharray: none; }
.jar-svg.stage .jar-tick.now { stroke: var(--accent); stroke-dasharray: none; stroke-width: 2; }
.jar-svg.stage .jar-notebg { fill: rgba(251,246,234,.94); stroke: rgba(60,40,10,.22); stroke-width: .8; }
.jar-svg.stage .jar-note.hit .jar-notebg { fill: var(--accent-2); stroke: var(--accent); }
.jar-svg.stage .jar-note.now .jar-notebg { fill: var(--accent); stroke: var(--accent-ink); }
.jar-svg.stage .jar-notetxt { font: 800 8.6px -apple-system, system-ui, sans-serif; fill: var(--ink); }
.jar-svg.stage .jar-notetxt.num { font-variant-numeric: tabular-nums; }
.jar-svg.stage .jar-note.hit .jar-notetxt { fill: var(--accent-ink); }
.jar-svg.stage .jar-note.now .jar-notetxt { fill: var(--paper); }
.jar-svg.stage .svg-acorn path { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.jar-svg.stage .svg-acorn path:nth-child(2) { fill: var(--ink); }
.jar-svg.stage .jar-note.now .svg-acorn path { stroke: var(--paper); }
.jar-svg.stage .jar-note.now .svg-acorn path:nth-child(2) { fill: var(--paper); }
.jar-svg.stage .jar-acorns image { filter: drop-shadow(0 1px 1px rgba(60,40,10,.25)); }
/* The perfect-month ribbon straddles the top edge of the den picture, where a
   notification would sit: the rosette at its left, the words on cream beside
   it, so nothing has to be read against the cottage. */
.settle .home-wrap.stage { overflow: visible; }
.settle .home-wrap.stage:has(.review.perfect) { margin-top: 28px; }
.settle .home-wrap.stage .review.card { position: absolute; inset: 0; width: auto; margin: 0; display: block; pointer-events: none; overflow: visible; }
.settle .home-wrap.stage .review.card .rv-stamp { --rosette-size: 52px; position: absolute; top: -26px; left: 50%; transform: translateX(-50%); margin: 0; width: max-content; max-width: calc(100% - 20px); min-height: 0;
  display: grid; grid-template-columns: var(--rosette-size) auto; align-items: center; justify-items: start; column-gap: 9px; row-gap: 1px; padding: 5px 16px 5px 6px; border-radius: 999px;
  background: var(--paper); color: var(--accent-ink); box-shadow: 0 8px 22px rgba(40,30,10,.30), 0 1px 2px rgba(40,30,10,.18); text-align: left; isolation: auto; }
.settle .home-wrap.stage .review.card .rv-stamp::before { position: static; grid-row: 1 / span 2; width: var(--rosette-size); height: var(--rosette-size); transform: none; }
.settle .home-wrap.stage .review.card .rv-stamp b { grid-column: 2; margin: 0; padding: 0; background: none; box-shadow: none; font-size: 15.5px; line-height: 1.1; color: var(--accent-ink); }
.settle .home-wrap.stage .review.card .rv-stamp small { grid-column: 2; margin: 0; padding: 0; background: none; font-size: 11px; line-height: 1.2; color: var(--ink-2); }
/* Payday popup (in place of the payday toast): the intro's paper, fewer rows. */
.intro.payday h2 { margin-top: 2px; }
.intro .intro-scene, .intro.payday .intro-scene { margin: 4px 0 12px; font-size: calc(15px * var(--t)); font-weight: 600; color: var(--ink); }
.payday-label { margin: 0 0 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.intro.payday .intro-chips { margin-bottom: 14px; }
.settle .home-wrap.stage canvas { width: 100%; height: 100%; aspect-ratio: auto; object-fit: fill; border-radius: 0; box-shadow: none; }
/* The stage keeps the crop's own shape (no flex stretch), so the table is where the jar expects it. */
.settle .home-wrap.stage { flex: 0 0 auto; height: auto; min-height: 0; }

/* Bigger jar: the SVG spans the stage; its jar centre is 41.4% from the left edge, the glass bottom 93.5% down. */
.settle-jar-over { width: 100%; left: calc(37.7% - 41.4%); top: calc(73.8% - 0.935 * (100% * 124 / 280) * 1024 / 900 - 1.6%); }

/* The total is a number beside the jar; the SVG's jar centre is now 36.4% from its left edge. */
.settle-jar-over { left: calc(37.7% - 36.4%); top: calc(73.8% - 0.935 * (100% * 124 / 258) * 1024 / 900 - 1.6%); }

/* ---- Opening beats, Cue's story (1 Oct 2026, afternoon) ---- */
.opening-art.beat-cottage canvas { object-position: 50% 65%; }
.opening-art.beat-pay canvas { object-position: 50% 80%; }
.opening-art.beat-pay .pay-fan { right: 8%; bottom: 10%; width: 46%; }
/* Settle card: rounded cottage picture; the title sits clear of the Dynamic Island. */
.settle .home-wrap.stage canvas { border-radius: 18px; }
.settle { padding-top: calc(34px + var(--sai-top)); }
.settle .settle-share { top: calc(28px + var(--sai-top)); }
/* Payday: the pay lies on the tabletop; the cookie jar stands on the table too. */
.opening-art.beat-pay .pay-fan { left: 13%; right: auto; bottom: 37%; width: 44%; }
.opening-art.beat-pay .pay-fan > span { width: 58%; left: 12%; bottom: 6%; }
.opening-art.beat-jar .intro-jar { left: 15%; bottom: 39%; width: 46%; }

/* Panel 4: three shopkeeper friends peek in at the round window, one after another. */
.intro-friends { position: absolute; left: 3%; top: 10%; width: 36%; display: flex; justify-content: center; align-items: flex-end; gap: 2%; }
.intro-friend { display: block; width: 32%; animation: friendIn var(--t-large) var(--e-enter) both; animation-delay: calc(500ms + var(--k) * 320ms); }
.intro-friend .portrait { width: 100%; height: auto; aspect-ratio: 1; margin: 0; box-shadow: 0 2px 6px rgba(60,40,10,.3); }
.intro-friend:nth-child(2) { margin-bottom: 10%; }
@keyframes friendIn { from { opacity: 0; transform: translateY(14px); } }

/* The friends at the window: heads and shoulders of the idle masters, round-cropped. */
.intro-friend { width: 30%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: rgba(255,253,247,.25); box-shadow: 0 0 0 2px rgba(255,253,247,.6), 0 2px 6px rgba(60,40,10,.3); }
.intro-friend img { display: block; width: 180%; height: auto; margin: 4% 0 0 -40%; }

/* ---- Simplification, pass 1 (2 Oct 2026): a bigger list, no compare table,
   the wallet read-only behind a footer button ---- */
/* The list: bigger pictures and title; the row scrolls sideways when it must. */
#board .list-row .dock-label { font-size: 14px; letter-spacing: .07em; margin: 2px 0 10px 2px; }
#board .list-row .chips { gap: 10px; padding: 6px 6px; margin: -6px -2px; }
#board .list-row .chip { width: 78px; min-height: 88px; gap: 3px; border-radius: 18px; }
#board .list-row .chip img { width: 50px; height: 50px; }
#board .list-row .chip-n { font-size: calc(16px * var(--t)); }
/* The footer: the meter gives up a little width to the wallet button at its right. */
.score-bar.meter-only { gap: 12px; }
.wallet-btn { flex: none; width: 48px; height: 42px; margin-right: -2px; border: 0; border-radius: 12px; background: rgba(246,239,224,.14); color: var(--paper); display: grid; place-items: center; cursor: pointer; }
.wallet-btn svg { width: 28px; height: 24px; }
.wallet-btn[aria-pressed="true"] { background: var(--gold); color: var(--ink); }
.wallet-btn[aria-pressed="true"] svg path[fill^="var"] { fill: var(--gold); }
/* The raised wallet is for looking, not tapping. */
#board .listbar.wallet-mode .walletchip { cursor: default; }
#board .listbar.wallet-mode .wallet-caret svg { transform: rotate(0); }

/* Pass 2 (2 Oct 2026): the wallet rises above the list, bigger; the meter is
   taller with bigger type and more room at the bottom of the screen. */
#board .listbar.wallet-mode .dock-label { font-size: 13px; letter-spacing: .07em; }
#board .listbar.wallet-mode .wallet-head { min-height: 32px; gap: 12px; margin-bottom: 4px; }
#board .listbar.wallet-mode .sum .stat small { font-size: calc(12px * var(--t)); }
#board .listbar.wallet-mode .sum .stat b { font-size: calc(20px * var(--t)); }
#board .listbar.wallet-mode .wallet-caret { width: 38px; height: 34px; border-radius: 10px; }
#board .listbar.wallet-mode .wallet-caret svg { width: 20px; height: 20px; }
#board .listbar.wallet-mode .cards-strip { padding-top: 8px; padding-bottom: 10px; }
#board .listbar.wallet-mode .ws-row { gap: 10px; }
#board .listbar.wallet-mode .gc-sm { width: 126px; font-size: 13px; border-radius: 10px; }
#board .listbar.wallet-mode .cash-face { width: 122px; height: 68px; }
#board .listbar.wallet-mode .cash-left { font-size: 15px; padding: 2px 9px; }
#board .listbar.wallet-mode .ws-group + .ws-group { margin-left: 14px; padding-left: 14px; }
/* The meter: taller, bigger words, and a margin under it before the home indicator. */
:root { --footer-h: 100px; }
.score-bar.meter-only { position: relative; padding: 12px 18px 18px; gap: 0; }
/* The title keeps the full width; only the bar gives way to the wallet button beside it. */
.score-bar.meter-only .kmh { gap: 6px; min-width: 0; }
/* At larger text sizes the title gives up its letter-spacing and some of the gap before
   the goal, so it still ends before the wallet button (at --t 1.3 it ran under it). */
.score-bar.meter-only .kmh-title { font-size: calc(13px * var(--t)); letter-spacing: max(0em, calc(.06em - (var(--t) - 1) * .2em)); }
.score-bar.meter-only .kmh-title > .kmh-sep { min-width: max(6px, calc(16px - (var(--t) - 1) * 30px)); }
.kmh-title .kmh-best-text { font-size: calc(13px * var(--t)); letter-spacing: .06em; }
.score-bar.meter-only .kmh-bar { --bt: 14px; --bh: 10px; height: 40px; margin-right: 72px; }
.score-bar.meter-only .kmh-mark b { font-size: calc(16px * var(--t)); }
.score-bar.meter-only .kmh-goal small, .score-bar.meter-only .kmh-best small { font-size: 10px; }
.wallet-btn { position: absolute; right: 18px; bottom: 16px; width: 58px; height: 46px; margin: 0; border-radius: 14px; }
.wallet-btn svg { width: 32px; height: 28px; }
/* The meter's colour bands follow the widening scale (stops set inline by keepMeterHtml). */
.kmh-steps { background: linear-gradient(to right, var(--red) 0 var(--s1, 8%), #e2703a var(--s1, 8%) var(--s2, 22%), #e8b64a var(--s2, 22%) var(--s3, 42%), #9ccf6a var(--s3, 42%) var(--s4, 68%), #3f9a5f var(--s4, 68%) 100%); }
/* The wallet slides up when raised (view/app.js animates it back down before it leaves). */
#board .listbar.wallet-mode { overflow: hidden; animation: walletRise var(--t-medium) var(--e-enter) both; }
@keyframes walletRise { from { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; transform: translateY(18px); } to { max-height: 340px; opacity: 1; transform: none; } }
.phone.reduced #board .listbar.wallet-mode { animation: none; }
@media (prefers-reduced-motion: reduce) { #board .listbar.wallet-mode { animation: none; } }

/* Pass 4 (2 Oct 2026): the item leads the shops panel's header, big; each
   storefront stacks what pays (with end dates) on the left and shows the
   available quantity over the price each on the right; two or more shops are
   equal cards in a row that scrolls sideways. */
.panel-head.with-item { align-items: center; gap: 12px; margin-bottom: 10px; }
.panel-head .panel-item { flex: none; width: 68px; height: 68px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(60,40,10,.22)); }
.panel-head .ph-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.panel-head .ph-text .rows-label { margin: 0; font-size: calc(21px * var(--t)); line-height: 1.1; }
.panel-head .ph-sub { font-size: calc(13px * var(--t)); font-weight: 600; color: var(--ink-2); }
.versus.count-scroll { display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 2px 2px 10px; margin: 0 -2px; scrollbar-width: none; }
.versus.count-scroll::-webkit-scrollbar { display: none; }
.versus.count-scroll .store { flex: 0 0 calc(50% - 7px); min-width: 164px; scroll-snap-align: start; }
.versus.count-1 .store.shopcard { width: 100%; }
.store.shopcard { display: flex; flex-direction: column; min-width: 0; padding: 0 0 10px; }
.store.shopcard .sc-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; padding: 8px 8px 0; align-items: stretch; }
.versus.count-1 .store.shopcard .sc-body { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); padding: 10px 12px 0; }
.pay-stack { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 8px 6px; border-radius: 12px; background: rgba(255,253,247,.85); box-shadow: inset 0 0 0 1px rgba(60,40,10,.08); }
.ps-row { display: grid; grid-template-columns: 30px 1fr; grid-template-areas: "sw amt" "sw when"; column-gap: 6px; align-items: center; font-size: 15px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.ps-row .pay-sw { grid-area: sw; --face-w: 30px; }
.ps-row .pay-sw.cash { height: 16px; }
.ps-row b { grid-area: amt; }
.ps-row .ps-when { grid-area: when; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.ps-row .ps-when.ending { color: var(--red-ink); }
.ps-row.used { opacity: .4; filter: grayscale(.8); }
.ps-none { font-size: 12px; font-weight: 700; color: var(--ink-2); text-align: center; }
.sc-facts { display: grid; grid-template-rows: 1fr 1fr; gap: 8px; }
.sc-box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 6px 4px; border-radius: 12px; background: rgba(255,253,247,.85); box-shadow: inset 0 0 0 1px rgba(60,40,10,.08); }
.store.shopcard .sc-box small { font-size: 9.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); text-align: center; line-height: 1.15; max-width: 100%; white-space: normal; }
.sc-box b { font-size: 24px; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.sc-qty b.short { color: var(--warn-ink); }
.sc-qty b em { font-style: normal; font-size: 12px; margin-left: 3px; color: var(--ink-2); }
.store.shopcard.selected .sc-box, .store.shopcard.selected .pay-stack { box-shadow: inset 0 0 0 1.5px var(--accent); }

/* Pass 5 (2 Oct 2026): the storefront keeps only the shop's name on its
   awning, bigger; what pays stacks from the top with no box of its own; the
   Each box carries a soft highlight; the two columns sit closer. The meter
   loses BEST and "Your"; the wallet button tops out with the title. */
.store.shopcard .awning-owner { display: none; }
.store.shopcard .awning { justify-content: center; min-height: 0; padding: 10px 8px; }
.store.shopcard .awning-brand { justify-content: center; gap: 6px; }
.store.shopcard .store-name { font-size: 16px; line-height: 1.1; white-space: normal; text-align: center; }
.store.shopcard .store-logo { width: 16px; height: 16px; }
.store.shopcard .sc-body { gap: 4px; padding: 8px 6px 0; }
.versus.count-scroll .store { flex-basis: calc(50% - 4px); }
.versus.count-scroll { gap: 8px; }
.store.shopcard .pay-stack { justify-content: flex-start; padding: 4px 2px 0; background: none; box-shadow: none; gap: 8px; }
.store.shopcard.selected .pay-stack { box-shadow: none; }
.store.shopcard .sc-price { background: var(--accent-2); box-shadow: inset 0 0 0 1px rgba(47,111,94,.22); }
.store.shopcard .sc-price small { color: var(--accent-ink); }
.store.shopcard .sc-price b { color: var(--accent-ink); }
.score-bar.meter-only .kmh-title { justify-content: space-between; }
.wallet-btn { top: 12px; bottom: 18px; height: auto; }
/* Pass 6 (2 Oct 2026): stock as pips (one per unit on the shelf, up to six; the
   count only past that), the two columns further apart, EXP. MAY on the cards. */
.store.shopcard .sc-body { gap: 14px; padding: 10px 10px 0; }
.store.shopcard .pay-stack { align-items: flex-start; padding: 2px 0 0; gap: 10px; }
.ps-row { grid-template-columns: 32px 1fr; column-gap: 7px; }
.ps-row .pay-sw { --face-w: 32px; }
.ps-row .ps-when { font-size: 9.5px; letter-spacing: .04em; white-space: nowrap; }
.sc-qty { padding: 8px 6px; }
.sc-pips { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; max-width: 64px; }
.sc-pips i { width: 14px; height: 14px; border-radius: 50%; background: var(--b); box-shadow: inset 0 0 0 2px rgba(255,253,247,.55), 0 1px 2px rgba(60,40,10,.18); }
.sc-qty.short .sc-pips i { background: var(--warn); }
.sc-qty b { font-size: 18px; }
/* Pass 7 (2 Oct 2026): the goal moves into a capsule under the bar, centred,
   with a dotted leader that runs sideways then turns up to the flag. The
   wallet button is a square again. */
:root { --footer-h: 124px; }
.score-bar.meter-only .kmh { gap: 5px; }
.kmh-goalline { position: relative; display: block; height: 28px; margin-right: 72px; }
.kmh-goal-cap { position: absolute; left: 50%; top: 4px; transform: translateX(-50%); padding: 4px 11px; border-radius: 999px; background: rgba(246,239,224,.14); color: var(--paper); font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; line-height: 1; }
/* The leader: from the capsule's edge to the goal's x, then straight up into the bar to the flag. */
.kmh-leader { position: absolute; top: 14px; left: calc(50% + 46px); width: calc(var(--g) - 50% - 46px); height: 0; border-top: 2px dotted rgba(246,239,224,.55); }
.kmh-leader::after { content: ""; position: absolute; right: -2px; bottom: 0; width: 0; height: 36px; border-right: 2px dotted rgba(246,239,224,.55); }
.kmh-goalline.left .kmh-leader { left: var(--g); width: calc(50% - 46px - var(--g)); }
.kmh-goalline.left .kmh-leader::after { right: auto; left: -2px; }
.wallet-btn { top: 50%; bottom: auto; transform: translateY(-50%); width: 52px; height: 52px; }
/* Pass 8 (2 Oct 2026): cards narrower than half the row so the next one always
   peeks in (the cue to slide); the quantity box is QTY over ×n. */
.versus.count-scroll .store { flex-basis: min(176px, 46%); min-width: 158px; }
.versus.count-scroll { scroll-padding-left: 2px; }
/* In the narrower card the end month sits under the amount, not beside the swatch. */
.store.shopcard .sc-body { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 10px; }
.ps-row { grid-template-columns: 30px 1fr; grid-template-areas: "sw amt" "when when"; row-gap: 1px; }
.ps-row .pay-sw { --face-w: 30px; }
.ps-row .ps-when { grid-area: when; }
.store.shopcard .sc-qty { padding: 6px 4px; gap: 3px; }
.store.shopcard .sc-qty b { font-size: 24px; }
.store.shopcard .sc-qty.short b { color: var(--warn-ink); }
/* Pass 9 (2 Oct 2026): a quieter leader (sparser, fainter dots) that reaches
   the flag's pole in the footer and in the big explainer meter alike. */
.kmh-leader { border-top: 0; height: 2px; background: repeating-linear-gradient(to right, rgba(246,239,224,.42) 0 2px, transparent 2px 8px); }
.kmh-leader::after { border-right: 0; width: 2px; right: 0; height: 42px; background: repeating-linear-gradient(to bottom, rgba(246,239,224,.42) 0 2px, transparent 2px 8px); }
.kmh-goalline.left .kmh-leader::after { left: 0; }
.kmh.big .kmh-goalline { margin-right: 0; }
.kmh.big .kmh-leader::after { height: 46px; }
.info-retry { margin-top: 12px; }
/* Pass 10 (2 Oct 2026): wider cards that run to the screen's edge; all cards
   the height of the tallest stack (up to five forms of payment), with the
   right-hand boxes stretching to match; a fixed right column so the EXP line
   can never run under it. */
.versus.count-scroll { margin: 0 -12px; padding: 2px 12px 12px; gap: 10px; scroll-padding-left: 12px; align-items: stretch; }
.versus.count-scroll .store { flex-basis: min(210px, 56%); min-width: 180px; }
.store.shopcard .sc-body { flex: 1; grid-template-columns: minmax(0, 1fr) 76px; gap: 12px; padding: 10px 10px 0; align-items: stretch; }
.versus.count-1 .store.shopcard .sc-body { grid-template-columns: minmax(0, 1fr) 120px; }
.store.shopcard .pay-stack { align-items: stretch; min-width: 0; gap: 9px; }
.ps-row { min-width: 0; }
.ps-row b, .ps-row .ps-when { overflow: hidden; text-overflow: ellipsis; }
.ps-row .ps-when { font-size: 9px; letter-spacing: .03em; }
.sc-facts { align-self: stretch; grid-template-rows: 1fr 1fr; }
.store.shopcard .sc-box { min-height: 54px; }
.store.shopcard .sc-qty b, .store.shopcard .sc-price b { font-size: 21px; }
.store.shopcard .sc-box small { font-size: 9px; }
/* Pass 11 (2 Oct 2026): the payment options sit under the cards when a shop is chosen. */
.pay-under { margin-top: 6px; padding-top: 10px; border-top: 1.5px solid var(--line); }
/* With a shop open the old shopping-state rules reshaped storefronts and capped
   the sheet; the new cards keep their shape and the sheet may grow to hold the
   cards and the payment row together. */
.shopping .versus.count-scroll .store.shopcard { flex-direction: column; flex-wrap: nowrap; flex-basis: min(210px, 56%); min-width: 180px; justify-content: flex-start; gap: 0; padding: 0 0 10px; }
.shopping .versus.count-1 .store.shopcard { flex-direction: column; flex-wrap: nowrap; flex-basis: auto; width: 100%; min-width: 0; gap: 0; padding: 0 0 10px; }
.shopping .store.shopcard .awning { flex-basis: auto; flex-direction: row; min-height: 0; padding: 10px 8px; }
.shopping .versus.count-scroll { padding: 2px 12px 12px; }
.phone.shopping .sheet:has(.pay-under) { max-height: calc(100% - var(--footer-h) - var(--sai-top) - 24px); }
.store.shopcard.selected { outline: 3px solid var(--accent); outline-offset: -3px; }
/* Pass 12 (2 Oct 2026): the chosen shop expands across the row with Back,
   payment steppers, a quantity stepper, the total and Pay inside it. */
.versus.count-scroll .store.shopcard.expanded, .shopping .versus.count-scroll .store.shopcard.expanded, .versus.count-1 .store.shopcard.expanded { flex: 0 0 calc(100% - 4px); min-width: 0; width: auto; outline: 0; }
.store.shopcard.expanded .awning { position: relative; padding: 10px 44px; }
.store.shopcard.expanded .sc-back { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,253,247,.22); color: #fff; font-size: 26px; line-height: 1; display: grid; place-items: center; padding: 0 0 3px; cursor: pointer; }
.store.shopcard.expanded .sc-x-body { display: grid; grid-template-columns: minmax(0, 1fr) 118px; gap: 12px; padding: 10px 10px 0; align-items: start; }
.sc-x-pay { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.xsrc { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 12px; background: rgba(255,253,247,.7); box-shadow: inset 0 0 0 1px rgba(60,40,10,.08); }
.xsrc.on { background: var(--accent-2); box-shadow: inset 0 0 0 1.5px var(--accent); }
.xsrc-face { display: flex; align-items: center; gap: 7px; min-width: 0; }
.xsrc-face .pay-sw { --face-w: 30px; flex: none; }
.xsrc-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.xsrc-text b { font-size: 15px; font-weight: 800; color: var(--ink); }
.xsrc-text .ps-when { font-size: 9px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-2); }
.xstep { display: flex; align-items: center; gap: 0; max-width: none; margin: 0; }
.xstep button { width: 34px; height: 34px; border: 0; border-radius: 10px; background: #fff; color: var(--accent-ink); font-size: 20px; font-weight: 700; box-shadow: 0 1px 2px rgba(60,40,10,.15); }
.xstep button:disabled { opacity: .35; }
.xstep .amt { min-width: 44px; text-align: center; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sc-x-right { display: flex; flex-direction: column; gap: 8px; }
.store.shopcard.expanded .sc-qty { padding: 8px 6px; gap: 4px; }
.store.shopcard.expanded .sc-qty .xstep button { width: 30px; height: 30px; }
.store.shopcard.expanded .sc-qty .xstep .amt { min-width: 30px; font-size: 20px; }
.store.shopcard.expanded .sc-total { background: var(--accent-2); box-shadow: inset 0 0 0 1px rgba(47,111,94,.22); padding: 8px 6px; }
.store.shopcard.expanded .sc-total small { color: var(--accent-ink); text-transform: none; letter-spacing: 0; font-size: 11px; }
.store.shopcard.expanded .sc-total b { font-size: 22px; color: var(--accent-ink); }
.store.shopcard.expanded .owed { margin: 8px 12px 0; font-size: 12.5px; font-weight: 700; color: var(--ink-2); text-align: center; }
.store.shopcard.expanded .owed.ready { color: var(--accent-ink); }
.store.shopcard.expanded .sc-pay { display: block; width: calc(100% - 20px); margin: 8px 10px 0; height: 54px; font-size: 18px; }
/* The counter above the trail duplicates the quantity now in the card. */
#phone:has(.store.shopcard.expanded) #counter { display: none; }
/* With a card expanded the sheet sizes to its content (no pinned top), up to the Dynamic Island. */
.phone.shopping .sheet:has(.store.shopcard.expanded) { top: auto !important; max-height: calc(100% - var(--footer-h) - var(--sai-top) - 24px); }
.phone.shopping .sheet:has(.store.shopcard.expanded) .sheet-body { padding-bottom: 14px; }
/* Pass 13 (2 Oct 2026): the raised wallet is the card strip alone (no Wallet / sums / chevron row). */
#board .listbar.wallet-mode { padding-top: 10px; }
#board .listbar.wallet-mode .cards-strip { padding-top: 2px; }
/* Pass 14 (2 Oct 2026, afternoon): every shop card expanded. Wallet-sized
   card faces in two columns with cash beneath, a glass stepper capsule over
   each face, QTY checkboxes, a big total and Pay in every card. */
.versus.count-scroll .store.shopcard, .shopping .versus.count-scroll .store.shopcard, .versus.count-scroll .store.shopcard.expanded, .shopping .versus.count-scroll .store.shopcard.expanded { flex: 0 0 min(352px, 90%); min-width: 316px; width: auto; }
.versus.count-1 .store.shopcard, .versus.count-1 .store.shopcard.expanded { flex-basis: auto; width: 100%; min-width: 0; }
.store.shopcard .awning { padding: 11px 10px; }
.store.shopcard .store-name { font-size: 17px; }
.pgrid { display: grid; grid-template-columns: 1fr; gap: 14px 10px; padding: 14px 10px 0; justify-items: center; }
.pgrid.two { grid-template-columns: 1fr 1fr; }
.pgrid .pcash { grid-column: 1 / -1; display: flex; justify-content: center; }
.ptile { position: relative; display: inline-flex; justify-content: center; }
.ptile .gcw.gcw-sm, .ptile .gc-sm { width: 138px; font-size: 13.5px; border-radius: 10px; }
.ptile .cash-face { width: 138px; height: 78px; }
.ptile .cash-left { font-size: 15px; padding: 2px 9px; }
/* The stepper floats over the face's middle, glass-like; the balance pill stays readable at the foot. */
.glass-step { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255,253,247,.55); -webkit-backdrop-filter: blur(10px) saturate(1.3); backdrop-filter: blur(10px) saturate(1.3); box-shadow: 0 2px 8px rgba(40,30,10,.22), inset 0 1px 0 rgba(255,255,255,.75), inset 0 0 0 1px rgba(255,255,255,.4); }
.glass-step button { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.72); color: var(--accent-ink); font-size: 20px; font-weight: 700; line-height: 1; cursor: pointer; }
.glass-step button:disabled { opacity: .35; }
.glass-step .amt { min-width: 48px; text-align: center; font-size: 15px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.ptile.on .glass-step { background: rgba(227,239,233,.78); box-shadow: 0 2px 8px rgba(40,30,10,.22), inset 0 0 0 1.5px var(--accent); }
.store.shopcard .qty-line { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 14px 12px 0; }
.store.shopcard .qty-label { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
.store.shopcard .qbox-row { display: flex; flex-wrap: wrap; gap: 8px; }
.store.shopcard .qbox { width: 42px; height: 42px; border: 2.5px solid var(--accent); border-radius: 12px; background: #fff; color: var(--accent-ink); font-size: 20px; font-weight: 800; display: grid; place-items: center; padding: 0; }
.store.shopcard .qbox.on { background: var(--accent); color: #fff; }
.store.shopcard .qbox.off { border-style: dashed; border-color: var(--line); background: transparent; }
.store.shopcard .sc-total.big { display: flex; align-items: baseline; justify-content: center; gap: 12px; margin: 14px 12px 0; padding: 12px 10px; border-radius: 16px; background: var(--accent-2); box-shadow: inset 0 0 0 1px rgba(47,111,94,.22); }
.store.shopcard .sc-total.big small { font-size: 16px; font-weight: 700; color: var(--accent-ink); text-transform: none; letter-spacing: 0; }
.store.shopcard .sc-total.big b { font-size: 30px; line-height: 1; color: var(--accent-ink); }
.store.shopcard .owed { margin: 8px 12px 0; }
.store.shopcard .sc-pay { display: block; width: calc(100% - 24px); margin: 10px 12px 0; height: 54px; font-size: 18px; }
.store.shopcard.expanded.active { outline: 3px solid var(--accent); outline-offset: -3px; }
.sheet-body.ack-hold { min-height: 120px; }
/* Compact enough that Pay shows without scrolling on a 390×844 phone. */
.store.shopcard .awning { padding: 9px 10px; }
.pgrid { gap: 10px 10px; padding: 10px 10px 0; }
.ptile .gcw.gcw-sm, .ptile .gc-sm { width: 128px; font-size: 12.5px; }
.ptile .cash-face { width: 128px; height: 72px; }
.glass-step button { width: 30px; height: 30px; font-size: 18px; }
.glass-step .amt { min-width: 44px; font-size: 14px; }
.store.shopcard .qty-line { margin: 10px 12px 0; gap: 5px; }
.store.shopcard .qbox { width: 40px; height: 40px; }
.store.shopcard .sc-total.big { margin: 10px 12px 0; padding: 9px 10px; }
.store.shopcard .sc-total.big b { font-size: 26px; }
.store.shopcard .owed { margin: 6px 12px 0; font-size: 12px; }
.store.shopcard .sc-pay { margin: 8px 12px 0; height: 48px; font-size: 17px; }
.phone.shopping .sheet:has(.store.shopcard) .sheet-body, .phone .sheet:has(.store.shopcard.expanded) .sheet-body { padding-top: 8px; }
.sheet:has(.store.shopcard.expanded) .panel-head.with-item { margin-bottom: 6px; }
.sheet:has(.store.shopcard.expanded) .panel-head .panel-item { width: 56px; height: 56px; }
.sheet:has(.store.shopcard.expanded) .panel-head .ph-text .rows-label { font-size: calc(19px * var(--t)); }
.store.shopcard .qbox { width: 38px; height: 38px; }
.store.shopcard .sc-total.big b { font-size: 24px; }
/* The counter above the trail duplicates the quantity now in the cards; the sheet sizes to its content. */
#phone:has(.store.shopcard.expanded) #counter { display: none; }
.phone.shopping .sheet:has(.store.shopcard), .phone .sheet:has(.store.shopcard.expanded) { top: auto !important; max-height: calc(100% - var(--footer-h) - var(--sai-top) - 24px); }
/* Pass 15 (2 Oct 2026): faces stacked on the left, their steppers in a column
   on the right with Pay (carrying the total) under them; the quantity line
   pinned to the card's foot so it aligns across every shop. */
.store.shopcard.expanded { display: flex; flex-direction: column; }
.pay-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 12px; padding: 10px 10px 0; align-items: center; }
.pface { display: flex; align-items: center; }
.pface .gcw.gcw-sm, .pface .gc-sm { width: 116px; font-size: 12px; border-radius: 10px; }
.pface .cash-face { width: 116px; height: 64px; }
.pay-grid { gap: 6px 12px; padding-top: 8px; }
.store.shopcard .qty-foot { padding-top: 8px; }
/* One row: QTY, the boxes (five to a row, then they wrap), × price each; smaller boxes. */
.store.shopcard .qty-foot { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.store.shopcard .qty-foot .qbox-row { display: grid; grid-template-columns: repeat(5, 30px); gap: 5px; justify-content: start; }
.store.shopcard .qty-foot .qbox { width: 30px; height: 30px; border-radius: 9px; font-size: 15px; border-width: 2px; }
.store.shopcard .qty-each { margin-left: 0; font-size: 16px; }
.pface .cash-left { font-size: 14px; padding: 2px 8px; }
.pstep { display: flex; justify-content: center; }
.pstep .glass-step { position: static; transform: none; }
.pstep.on .glass-step { background: rgba(227,239,233,.85); box-shadow: 0 2px 8px rgba(40,30,10,.18), inset 0 0 0 1.5px var(--accent); }
.pay-grid .sc-pay { grid-column: 2; justify-self: stretch; width: auto; margin: 4px 0 0; height: 46px; font-size: 17px; border-radius: 14px; }
.pay-grid .ps-none { grid-column: 1 / -1; }
.store.shopcard .qty-foot { display: flex; align-items: center; gap: 8px; margin: auto 12px 0; padding: 10px 0 2px; border-top: 1.5px solid var(--line); }
.store.shopcard .qty-foot .qty-label { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); margin-right: 2px; }
.store.shopcard .qty-foot .qbox-row { display: flex; flex-wrap: wrap; gap: 6px; }
.store.shopcard .qty-foot .qbox { width: 36px; height: 36px; border-radius: 10px; font-size: 18px; }
.store.shopcard .qty-each { margin-left: auto; font-size: 17px; font-weight: 800; color: var(--accent-ink); white-space: nowrap; }
.store.shopcard .owed { margin: 6px 12px 0; }
/* Pass 16 (2 Oct 2026): one grid for the whole card. A 104 px face column on
   the left, steppers right-aligned beside their faces, and a single foot row:
   QTY and the boxes at the far left, Pay at the far right, its edge under the
   steppers. Faces, capsules and boxes a step smaller so it all breathes. */
.pay-grid { grid-template-columns: 104px minmax(0, 1fr); gap: 8px 12px; padding: 10px 12px 0; align-items: center; }
.pface .gcw.gcw-sm, .pface .gc-sm { width: 104px; font-size: 11px; border-radius: 9px; }
.pface .cash-face { width: 104px; height: 58px; }
.pface .cash-left { font-size: 13px; padding: 1px 7px; }
.pstep { justify-content: flex-end; }
.glass-step { padding: 2px; }
.glass-step button { width: 28px; height: 28px; font-size: 17px; }
.glass-step .amt { min-width: 40px; font-size: 14px; }
.store.shopcard .owed { margin: 6px 12px 0; }
.store.shopcard .qty-foot { grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 6px; margin: auto 12px 0; padding: 10px 0 0; align-items: center; }
.store.shopcard .qty-foot .qty-label { font-size: 10px; margin-right: 0; }
.store.shopcard .qty-foot .qbox-row { grid-template-columns: repeat(4, 26px); gap: 4px; }
.store.shopcard .qty-foot .qbox { width: 26px; height: 26px; border-radius: 8px; font-size: 13px; border-width: 2px; }
.store.shopcard .qty-foot .qty-each { font-size: 15px; justify-self: start; }
.store.shopcard .qty-foot .sc-pay { grid-column: 4; justify-self: end; width: 104px; height: 40px; margin: 0; font-size: 15px; border-radius: 12px; padding: 0; }
/* Pass 17 (2 Oct 2026): card faces two to a row with the stepper riding over
   each face; cash alone on the last row; the foot row keeps QTY left and Pay right. */
.pay-grid { grid-template-columns: 1fr; gap: 10px 12px; padding: 10px 12px 0; justify-items: center; align-items: start; }
.pay-grid.two { grid-template-columns: 1fr 1fr; }
.pay-grid .pcash { grid-column: 1 / -1; display: flex; justify-content: center; }
.ptile { position: relative; display: inline-flex; justify-content: center; }
.ptile .gcw.gcw-sm, .ptile .gc-sm { width: 118px; font-size: 11.5px; border-radius: 9px; }
.ptile .cash-face { width: 118px; height: 66px; }
.ptile .cash-left { font-size: 13px; padding: 1px 7px; }
/* Swapped (2 Oct 2026): the balance pill sits mid-face; the stepper hangs off the foot, just overlapping it. */
.ptile { padding-bottom: 20px; }
.ptile .gc-pill, .ptile .cash-left { bottom: auto !important; top: 72%; transform: translate(-50%, -50%) !important; }
.ptile .gc .gc-bottom { margin-top: -2px; }
.ptile .glass-step { position: absolute; left: 50%; top: auto; bottom: 0; transform: translateX(-50%); padding: 2px; }
.ptile .glass-step button { width: 27px; height: 27px; font-size: 16px; }
.ptile .glass-step .amt { min-width: 38px; font-size: 13.5px; }
.ptile.on .glass-step { background: rgba(227,239,233,.85); box-shadow: 0 2px 8px rgba(40,30,10,.2), inset 0 0 0 1.5px var(--accent); }
/* Foot row (2 Oct 2026): QTY and the boxes hug the left, Pay hugs the right, a clear gap between. */
.store.shopcard .qty-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.store.shopcard .qty-foot .qty-each { margin-right: 12px; }
.store.shopcard .qty-foot .sc-pay { margin-left: auto; width: auto; min-width: 104px; padding: 0 18px; text-align: center; flex: none; }
/* Pass 18 (2 Oct 2026): faces stacked on the left (the pill = what's LEFT);
   on the right QTY × price, a labelled ledger of what is PAID from each with
   a small − / + per row, and Pay at the bottom. */
.sc-grid { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 0 14px; padding: 10px 12px 12px; align-items: stretch; }
.col-label { display: block; font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 6px 2px; }
.sc-faces { display: flex; flex-direction: column; gap: 10px; }
.sface { display: flex; }
.sface .gcw.gcw-sm, .sface .gc-sm { width: 104px; font-size: 11px; border-radius: 9px; }
.sface .cash-face { width: 104px; height: 58px; }
.sface .cash-left { font-size: 13px; padding: 1px 7px; }
.sface.on .gc, .sface.on .cash-face { box-shadow: 0 0 0 2.5px var(--accent); border-radius: 9px; }
.sc-right { display: flex; flex-direction: column; min-width: 0; }
.qty-row { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.qty-row .qty-label { font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
.qty-row .qbox-row { display: grid; grid-template-columns: repeat(4, 26px); gap: 4px; }
.qty-row .qbox { width: 26px; height: 26px; border: 2px solid var(--accent); border-radius: 8px; background: #fff; color: var(--accent-ink); font-size: 13px; font-weight: 800; display: grid; place-items: center; padding: 0; }
.qty-row .qbox.on { background: var(--accent); color: #fff; }
.qty-row .qbox.off { border-style: dashed; border-color: var(--line); background: transparent; }
.qty-row .qty-each { margin-left: auto; font-size: 15px; font-weight: 800; color: var(--accent-ink); white-space: nowrap; }
.ledger { display: flex; flex-direction: column; gap: 4px; }
.lrow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 6px; padding: 4px 6px 4px 8px; border-radius: 10px; background: rgba(255,253,247,.7); box-shadow: inset 0 0 0 1px rgba(60,40,10,.08); }
.lrow.on { background: var(--accent-2); box-shadow: inset 0 0 0 1.5px var(--accent); }
.lrow-name { font-size: 10.5px; font-weight: 800; letter-spacing: .02em; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow.on .lrow-name { color: var(--accent-ink); }
.lrow-amt { font-size: 15px; font-weight: 800; color: var(--ink); min-width: 36px; text-align: right; font-variant-numeric: tabular-nums; }
.mini-step { display: inline-flex; gap: 3px; }
.mini-step button { width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--accent-ink); font-size: 15px; font-weight: 800; line-height: 1; box-shadow: 0 1px 2px rgba(60,40,10,.15); cursor: pointer; }
.mini-step button:disabled { opacity: .3; }
.sc-right .owed { margin: 6px 0 0; font-size: 11.5px; }
.sc-right .sc-pay { display: block; width: 100%; margin: 10px 0 0; margin-top: auto; padding-top: 0; height: 44px; font-size: 16px; border-radius: 12px; }
.sc-right .ledger + .sc-pay, .sc-right .owed + .sc-pay { margin-top: 10px; }
/* The floor (2 Oct 2026): a month under it can't open the next one; the settle card says so. */
.settle-block { display: grid; gap: 4px; margin: 10px 0 6px; padding: 12px 16px; border-radius: 16px; background: #fbece1; color: var(--warn-ink); text-align: center; }
.settle-block b { font-size: 16px; line-height: 1.2; }
.settle-block small { font-size: 13px; font-weight: 600; color: var(--warn-ink); }
/* The dark lines between the bands sit at the same curved stops as the colours. */
.kmh-steps::after { background: linear-gradient(to right,
  transparent 0 calc(var(--s1, 20%) - 1.5px), var(--ink) calc(var(--s1, 20%) - 1.5px) var(--s1, 20%),
  transparent var(--s1, 20%) calc(var(--s2, 40%) - 1.5px), var(--ink) calc(var(--s2, 40%) - 1.5px) var(--s2, 40%),
  transparent var(--s2, 40%) calc(var(--s3, 60%) - 1.5px), var(--ink) calc(var(--s3, 60%) - 1.5px) var(--s3, 60%),
  transparent var(--s3, 60%) calc(var(--s4, 80%) - 1.5px), var(--ink) calc(var(--s4, 80%) - 1.5px) var(--s4, 80%),
  transparent var(--s4, 80%) 100%); }
/* Pass 19 (2 Oct 2026): fixed places. EACH top-left, QTY top-right; then one
   row per payment source: the face on the left, its Paying-with pill on the
   right, bottom-aligned with the face and tall enough to tap; Pay across the
   whole bottom. Every card in a market stands as tall as the tallest. */
.store.shopcard.expanded { display: flex; flex-direction: column; }
.store.shopcard.expanded .sc-grid.v2 { flex: 1 1 auto; display: flex; flex-direction: column; gap: 0; padding: 10px 12px 12px; }
.sc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.sc-each { display: inline-flex; align-items: baseline; gap: 7px; padding: 5px 11px; border-radius: 11px; background: var(--accent-2); white-space: nowrap; }
.sc-each small { font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
.sc-each b { font-size: 17px; font-weight: 800; color: var(--accent-ink); }
.sc-top .qty-row { margin: 0; justify-content: flex-end; gap: 8px; }
.sc-top .qbox-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; max-width: 170px; }
.sc-top .qbox { width: 30px; height: 30px; border-radius: 9px; font-size: 14px; }
.sc-heads, .srow { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 0 14px; }
.sc-heads .col-label { margin-bottom: 4px; }
.sc-rows { margin-bottom: 14px; }
.sc-rows.ledger { gap: 10px; }
.srow { align-items: end; }
.srow .lrow { min-height: 42px; padding: 6px 8px 6px 12px; border-radius: 12px; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
.srow .lrow-name { font-size: 11.5px; }
.srow .lrow-amt { font-size: 16px; }
.srow .mini-step { gap: 4px; }
.srow .mini-step button { width: 30px; height: 30px; font-size: 17px; }
.sc-grid.v2 .owed { margin: 0 0 10px; font-size: 11.5px; }
.sc-grid.v2 .ps-none { margin: 0 0 14px; }
.sc-grid.v2 .sc-pay { display: block; width: 100%; margin: auto 0 0; padding-top: 0; height: 50px; font-size: 18px; border-radius: 13px; }
/* Pass 20 (2 Oct 2026): no column labels; each pill's bottom meets the card
   rectangle (not the amount pill that hangs 6px under a gift card); the foot
   row carries TOTAL under the faces, right-aligned to their edge, and Pay in
   the right column at exactly the pills' width. */
.srow .sface.gift + .lrow, .srow .sface.prepaid + .lrow { margin-bottom: 6px; }
.sc-rows { margin-bottom: 16px; }
.sc-foot { align-items: center; margin-top: auto; }
.sc-total { justify-self: end; display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.sc-total small { font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
.sc-total b { font-size: 18px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.sc-grid.v2 .sc-foot .sc-pay { width: 100%; margin: 0; height: 50px; font-size: 18px; border-radius: 13px; }
/* The price leads: a big amount, then "each" as quiet subtext. */
.sc-each { gap: 5px; padding: 4px 11px 4px 10px; }
.sc-each b { font-size: 20px; }
.sc-each small { font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: lowercase; color: var(--ink-2); }
/* Blank slots stand as tall as a card row so cash and Pay share rows across a market. */
.srow.blank { height: 71px; }
/* Just the word "Total:" at the faces' right edge; the Pay button carries the amount. */
.store.shopcard.expanded .sc-foot .sc-total { background: none; box-shadow: none; padding: 0 2px 0 0; justify-self: end; font-size: 15px; font-weight: 800; color: var(--ink-2); letter-spacing: .01em; }
/* Pass 21 (2 Oct 2026): cards top-aligned and only as tall as their rows.
   Each adjuster shares its face's top edge, drops the name, and holds the
   amount between − and + at the cash face's full height (bill plus pill). */
.versus.count-scroll, .shopping .versus.count-scroll { align-items: flex-start; }
.store.shopcard.expanded .sc-grid.v2 { flex: 0 0 auto; }
.sc-rows { margin-bottom: 14px; }
.srow { align-items: start; }
.srow .sface.gift + .lrow, .srow .sface.prepaid + .lrow { margin-bottom: 0; }
.srow.blank { display: none; }
.sc-foot { margin-top: 0; }
.srow .lrow { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; height: 60px; min-height: 0; padding: 0 10px; gap: 6px; border-radius: 14px; }
.srow .lrow-amt { text-align: center; font-size: 19px; min-width: 0; }
.srow .lrow button { width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--accent-ink); font-size: 21px; font-weight: 800; line-height: 1; box-shadow: 0 1px 2px rgba(60,40,10,.15); cursor: pointer; }
.srow .lrow button:disabled { opacity: .3; }
/* The price chip: a big gold amount as tall as the QTY boxes; "each" sits outside it as subtext. */
.sc-each { background: none; padding: 0; gap: 7px; align-items: center; }
.sc-each b { display: inline-flex; align-items: center; height: 30px; padding: 0 11px; border-radius: 9px; background: #f2c65a; color: #3a2a0b; font-size: 22px; line-height: 1; box-shadow: inset 0 0 0 1.5px rgba(120,80,10,.28), 0 1px 2px rgba(60,40,10,.12); }
.sc-each small { font-size: 12px; font-weight: 700; color: var(--ink-2); text-transform: lowercase; letter-spacing: .02em; }
.sc-each b { height: 38px; padding: 0 13px; border-radius: 11px; font-size: 26px; }
/* "each" sits on the chip's bottom edge; QTY's top meets the first box's top. */
.sc-each { align-items: flex-end; }
.sc-each small { line-height: 1; margin-bottom: -2px; }
.sc-top .qty-row { align-items: flex-start; }
.sc-top .qty-label { line-height: 1; margin-top: 1px; }
.sc-top { align-items: flex-start; }
.sc-top .qty-label { margin-top: -1px; }
/* Five to eight boxes (the campaign's largest list line is 8): smaller boxes,
   four to a row, so the top row never grows past two lines. */
.sc-top .qbox-row.many { max-width: 135px; gap: 5px; }
.store.shopcard .sc-top .qbox-row.many .qbox { width: 30px; height: 30px; border-radius: 9px; font-size: 14px; border-width: 2px; }
/* The header item sits on the same cream card as its list chip, so it stands off the panel. */
.panel-head .ph-card { flex: none; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 18px; background: #fbf6ea; box-shadow: 0 1px 3px rgba(60,40,10,.35); }
.panel-head .ph-card .panel-item, .sheet:has(.store.shopcard.expanded) .panel-head .ph-card .panel-item { width: 50px; height: 50px; }
/* Pass 22 (2 Oct 2026): the gold chip stacks the amount over "each" and fills
   the faces column; the top row shares the two-column grid, so QTY's Q starts
   where the adjusters start and four 32px boxes a row hold up to eight. */
.sc-top { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 0 14px; align-items: start; margin-bottom: 12px; }
.sc-each { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; width: 104px; padding: 6px 0 5px; border-radius: 12px; background: #f2c65a; box-shadow: inset 0 0 0 1.5px rgba(120,80,10,.28), 0 1px 2px rgba(60,40,10,.12); }
.sc-each b { height: auto; padding: 0; border-radius: 0; background: none; box-shadow: none; font-size: 26px; line-height: 1; color: #3a2a0b; }
.sc-each small { margin: 3px 0 0; line-height: 1; font-size: 11px; font-weight: 700; color: #5a4310; }
.sc-top .qty-row { justify-content: flex-start; align-items: flex-start; gap: 6px; }
.sc-top .qty-label { margin-top: 0; padding-top: 2px; }
.sc-top .qbox-row, .sc-top .qbox-row.many { display: grid; grid-template-columns: repeat(4, 32px); gap: 6px; max-width: none; justify-content: start; }
.store.shopcard .sc-top .qbox, .store.shopcard .sc-top .qbox-row.many .qbox { width: 32px; height: 32px; border-radius: 10px; font-size: 15px; border-width: 2px; }
/* No stroke on a face in use; the green adjuster says it (2 Oct 2026). */
.sface.on .gc, .sface.on .cash-face { box-shadow: none; }
/* Mallow's nibble popup (2 Oct 2026): his picture above the line and the facts. */
.intro.nibble .nibble-art { display: block; width: 120px; height: 120px; margin: 0 auto 4px; object-fit: contain; }
.intro.nibble h2 { margin-top: 0; }
/* The answer key (2 Oct 2026): a numbered list of the month's perfect purchases. */
.settle-key { margin-top: 6px; }
.key-sub { margin: -4px 0 10px; text-align: center; font-size: 13.5px; color: var(--ink-2); }
.key-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.key-step { display: grid; grid-template-columns: 22px 36px minmax(0, 1fr); align-items: center; gap: 8px; padding: 6px 8px; border-radius: 12px; background: #fbf6ea; box-shadow: 0 1px 3px rgba(60,40,10,.18); }
.key-n { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.key-step img { width: 36px; height: 36px; object-fit: contain; }
.key-text { display: grid; gap: 1px; min-width: 0; }
.key-text b { font-size: 14px; line-height: 1.2; }
.key-text small { font-size: 12px; color: var(--ink-2); }
/* Market-change popups sit in the middle of the screen (2 Oct 2026). */
.overlay[data-kind="notice"] { background: rgba(40,32,20,.45); align-items: center; justify-content: center; padding: 16px; }
.overlay[data-kind="notice"] .intro.notice { width: min(100%, 340px); max-height: 86%; }
.intro.notice .notice-art { display: grid; place-items: center; margin: 0 auto 6px; }
.intro.notice .notice-art .portrait { width: 96px; height: 96px; }
.intro.notice .notice-art canvas { width: 100%; height: 100%; }
/* The perfect stamp rests centred by margins, not a transform, so its one
   stamp-down animation can't shove it sideways (2 Oct 2026). */
.settle .home-wrap.stage .review.card .rv-stamp { left: 0; right: 0; margin: 0 auto; transform: none; }
/* The intro's second window: what to look out for, one bullet per beat (2 Oct 2026). */
.intro .lookout { margin: 8px 0 10px; padding: 10px 12px 10px 30px; border-radius: 12px; background: #fbf1d8; text-align: left; }
.intro .lookout li { margin: 5px 0; font-size: 14.5px; line-height: 1.4; color: var(--ink); }
.intro.intro-p2 .intro-tip { margin-bottom: 14px; }
.intro button.primary[disabled] { opacity: .45; }
/* Compact pass (2 Oct 2026): the market sheet loses about 45px of air on a
   three-row card without anything getting smaller to read. */
.sheet:has(.store.shopcard.expanded) .panel-head { margin-bottom: 4px; }
.sheet:has(.store.shopcard.expanded) .panel-head .ph-card { width: 54px; height: 54px; border-radius: 14px; }
.sheet:has(.store.shopcard.expanded) .panel-head .ph-card .panel-item { width: 40px; height: 40px; }
.sheet:has(.store.shopcard.expanded) .sheet-body { padding-top: 6px; }
.shopping .versus.count-scroll, .versus.count-scroll { padding-bottom: 8px; }
.store.shopcard .awning { padding: 7px 8px; }
.store.shopcard.expanded .sc-grid.v2 { padding: 8px 12px 10px; }
.sc-top { margin-bottom: 8px; }
.sc-rows.ledger { gap: 8px; }
.sc-rows { margin-bottom: 10px; }
.sc-grid.v2 .sc-foot .sc-pay { height: 46px; }
.shopping .store.shopcard.expanded .awning, .store.shopcard.expanded .awning { padding: 7px 44px; }
/* Inside CardCue (2 Oct 2026): an X at the top left goes straight back to the wallet. */
.app-back { left: 12px; right: auto; }
.app-back svg { stroke-width: 2.4; }
.phone.in-app #market-label { padding-left: 52px; }
/* The welcome card (2 Oct 2026): resume the year, start a new one, or the Daily Market. */
.overlay[data-kind="welcome"] { background: rgba(40,32,20,.55); align-items: center; justify-content: center; padding: 16px; }
.intro.welcome { width: min(100%, 340px); }
.intro.welcome .welcome-logo { display: block; width: 210px; height: auto; margin: 0 auto 2px; }
.intro.welcome h2 { margin-top: 0; }
.intro.welcome .welcome-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.intro.welcome .welcome-actions .wide { margin: 0; }
/* A bigger sale (2 Oct 2026): paper confetti with the acorns, and a Sold! tag over the seller. */
#fx .sale-burst { position: absolute; inset: 0; z-index: 6; pointer-events: none; overflow: visible; }
#fx .sale-burst .burst-acorn { position: absolute; width: 22px; height: 22px; }
#fx .sale-burst .burst-acorn img { width: 100%; height: 100%; object-fit: contain; }
#fx .sale-burst .burst-paper { position: absolute; border-radius: 2px; box-shadow: 0 1px 1px rgba(60,40,10,.25); }
#fx .sold-tag { position: absolute; padding: 6px 14px 7px; border-radius: 8px; background: #f4e9d2; color: var(--accent-ink); font-family: inherit; font-size: 20px; font-weight: 900; letter-spacing: .02em; box-shadow: 0 3px 10px rgba(60,40,10,.3), inset 0 0 0 1.5px rgba(120,80,10,.25); white-space: nowrap; }

/* Hang on the list (3 Oct 2026): the painted head rises behind the dock, the paws grip its edge in front. */
.peek.hang { height: auto; }
.peek.hang img { position: absolute; display: block; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
.peek-paws { position: absolute; z-index: 6; pointer-events: none; overflow: visible; }
.peek-paws img { position: absolute; display: block; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }

/* The painted Sold tag (3 Oct 2026): the kraft tag picture with the word on its cream label. */
#fx .sold-tag.painted { background: none; padding: 0; width: 156px; height: 70px; box-shadow: none; border: 0; }
#fx .sold-tag.painted img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
#fx .sold-tag.painted b { position: absolute; left: 38%; right: 9%; top: 18%; bottom: 18%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 900; letter-spacing: .02em; color: var(--accent-ink); }

/* Backstage (3 Oct 2026): the secret month jump, dev builds only. */
.backstage { width: 100%; height: 100%; overflow: auto; padding: calc(20px + var(--sai-top)) 18px 24px; background: #f4e9d2; color: #2f2a24; }
.backstage h3 { margin: 0 0 4px; font-size: 22px; }
.backstage p { margin: 6px 0 10px; font-size: 13px; opacity: .8; }
.bs-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bs-row { text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(47,42,36,.15); background: #fff8e8; font: inherit; }
.bs-row.on { outline: 2px solid #4f7d52; }
.bs-row b { display: block; font-size: 15px; }
.bs-row small { display: block; font-size: 11px; opacity: .7; }
.bs-plays { display: flex; flex-wrap: wrap; gap: 6px; }
.bs-plays .ghost { padding: 6px 10px; font-size: 13px; }
.bs-actions { display: flex; gap: 10px; margin-top: 16px; justify-content: flex-end; }
/* The party stage (3 Oct 2026): the picture with the garland over it, and the Bash's lights and disco ball. */
.party-stage { position: relative; width: fit-content; max-width: 100%; margin: 12px auto 16px; }
.party-stage .party-hero { margin: 0; }
.party-garland { position: absolute; left: -4%; right: -4%; top: -6%; width: 108%; height: auto; pointer-events: none; filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); }
.party-lights { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 12px; pointer-events: none; mix-blend-mode: screen; }
.disco-ball { position: absolute; left: 50%; top: 2%; width: 15%; height: auto; transform: translateX(-50%); transform-origin: 50% 0; animation: disco-swing 3.4s ease-in-out infinite alternate; pointer-events: none; }
@keyframes disco-swing { from { transform: translateX(-50%) rotate(-5deg); } to { transform: translateX(-50%) rotate(5deg); } }
@media (prefers-reduced-motion: reduce) { .disco-ball { animation: none; } }

/* The month-intro card centred (3 Oct 2026): middle of the screen, both ways. */
.overlay[data-kind="intro"] { align-items: center !important; justify-content: center !important; }
.overlay[data-kind="intro"] .intro { margin: auto; }

/* The list-complete card, centred (3 Oct 2026). */
.overlay[data-kind="listdone"] { align-items: flex-start !important; justify-content: center !important; padding-top: 24%; }   /* the list stays up and lit below (owner, 7 Oct 2026) */
.overlay[data-kind="listdone"] .intro { margin: auto; width: min(100% - 28px, 340px); text-align: center; }
.intro.listdone h2 { margin: 4px 0 6px; }
.intro.listdone p { margin: 0 0 14px; }

/* The month-start card centred too (3 Oct 2026). */
.overlay[data-kind="payday"] { align-items: center !important; justify-content: center !important; }
.overlay[data-kind="payday"] > * { margin: auto; }

/* Shop by seller (3 Oct 2026, night): the keeper's own shop. One wide card:
   the list items they sell on the left (picture wearing its price tag, QTY
   checkboxes beside it), a rule, the register on the right. */
.phone.shop-by .counter { visibility: hidden !important; }
.panel-head .ph-card.ph-shop { display: grid; place-items: center; background: var(--b); }
.panel-head .ph-card.ph-shop .store-logo { width: 34px; height: 34px; background: var(--i); }
.store.sellershop .awning { min-height: 0; height: 12px; padding: 0; }
.store.ss-card .ss-body { display: grid; grid-template-columns: minmax(0, 1fr) 1.5px minmax(0, 1.12fr); gap: 10px; padding: 10px 12px 12px; align-items: start; }
.store.ss-card .ss-rule { align-self: stretch; background: var(--line); border-radius: 1px; }
.store.ss-card .ss-items { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.store.ss-card .ss-line { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 10px; align-items: center; }
.store.ss-card .ss-art { position: relative; width: 50px; height: 50px; }
.store.ss-card .ss-art img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(60,40,10,.2)); }
.store.ss-card .ss-art .price-tag { right: -12px; bottom: -6px; font-size: 11.5px; }
.store.ss-card .ss-q { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.store.ss-card .ss-name { font-size: 12.5px; font-weight: 800; line-height: 1.15; color: var(--ink); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.store.ss-card .ss-q .qty-line { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.store.ss-card .ss-q .qty-label, .ss-q .qty-count { display: none; }
.store.ss-card .ss-q .qbox-row { display: flex; flex-wrap: wrap; gap: 4px; }
.store.ss-card .ss-q .qbox { width: 24px; height: 24px; border-radius: 6px; font-size: 14px; border-width: 1.5px; }
.store.ss-card .ss-q .qty-stepper button { width: 28px; height: 28px; }
.store.ss-card .ss-register { padding: 0 !important; min-width: 0; }
.store.ss-card .ss-register .sc-rows.ledger { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.store.ss-card .ss-register .srow { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 6px; align-items: center; }
.store.ss-card .ss-register .sface .gcw.gcw-sm, .ss-register .sface .gc-sm { width: 64px; font-size: 7px; border-radius: 6px; }
.store.ss-card .ss-register .sface .cash-face { width: 64px; height: 36px; }
.store.ss-card .ss-register .sface .cash-left { font-size: 10px; padding: 0 5px; }
.store.ss-card .ss-register .srow .lrow { height: 44px; padding: 0 5px; gap: 2px; border-radius: 12px; }
.store.ss-card .ss-register .srow .lrow button { width: 28px; height: 28px; font-size: 17px; }
.store.ss-card .ss-register .srow .lrow-amt { font-size: 15px; }
.store.ss-card .ss-register .sc-foot { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px; align-items: center; }
.store.ss-card .ss-register .sc-foot .sc-pay { height: 44px; font-size: 16px; }
.store.ss-card .ss-q { align-items: flex-start; text-align: left; }
.store.ss-card .ss-q .qty-line { display: flex !important; flex-direction: row !important; margin: 0; padding: 0; }
.store.ss-card .ss-q .qbox-row { display: flex !important; flex-direction: row !important; flex-wrap: wrap; gap: 5px; justify-content: flex-start; }
.store.ss-card .ss-q .qbox { width: 26px !important; height: 26px !important; min-width: 0; border-radius: 7px; font-size: 15px; padding: 0; }
.store.ss-card .ss-name { white-space: normal !important; overflow-wrap: normal; word-break: normal; hyphens: manual; -webkit-line-clamp: 3; max-width: 100%; }

/* The item's shop cards share the keeper's-shop layout (3 Oct 2026): the
   card in the sideways row is as wide as the layout needs. */
.versus.count-scroll .store.ss-card.itemshop { min-width: min(340px, 86vw); }
.store.ss-card.itemshop .ss-body { padding-top: 12px; }
/* The register gets the room it needs: amounts never meet the − / + (3 Oct 2026). */
.store.ss-card .ss-body { grid-template-columns: minmax(0, .82fr) 1.5px minmax(0, 1.3fr); gap: 8px; padding-left: 10px; padding-right: 10px; }
.store.ss-card .ss-register .srow { grid-template-columns: 58px minmax(0, 1fr); gap: 5px; }
.store.ss-card .ss-register .sface .gcw.gcw-sm, .store.ss-card .ss-register .sface .gc-sm, .store.ss-card .ss-register .sface .cash-face { width: 58px; }
.store.ss-card .ss-register .srow .lrow { grid-template-columns: 26px minmax(0, 1fr) 26px; padding: 0 4px; gap: 2px; }
.store.ss-card .ss-register .srow .lrow button { width: 26px; height: 26px; font-size: 16px; }
.store.ss-card .ss-register .srow .lrow-amt { font-size: 14px; white-space: nowrap; text-align: center; }
/* The item's name across the whole left column, the picture and checkboxes beneath (3 Oct 2026). */
.store.ss-card .ss-line { grid-template-columns: 46px minmax(0, 1fr); grid-template-areas: 'name name' 'art boxes'; row-gap: 4px; column-gap: 12px; }
.store.ss-card .ss-q { display: contents; }
.store.ss-card .ss-name { grid-area: name; font-size: 12.5px; -webkit-line-clamp: 2; }
.store.ss-card .ss-art { grid-area: art; width: 46px; height: 46px; align-self: start; }
.store.ss-card .ss-q .qty-line { grid-area: boxes; align-self: start; }
/* Bigger item side, register sized for two digits (owner, 4 Oct 2026): the
   register takes exactly what its widest row needs (a face and a − ₳88 +
   stepper), the item side takes the rest of the card, edge to edge. */
.store.ss-card .ss-body { grid-template-columns: minmax(0, 1fr) 1.5px max-content; gap: 8px; padding: 10px 8px 12px; }
.store.ss-card .ss-register .srow { grid-template-columns: 54px max-content; gap: 5px; }
.store.ss-card .ss-register .sface .gcw.gcw-sm, .store.ss-card .ss-register .sface .gc-sm, .store.ss-card .ss-register .sface .cash-face { width: 54px; }
.store.ss-card .ss-register .srow .lrow { grid-template-columns: 26px minmax(3.4ch, max-content) 26px; min-width: 0; padding: 0 4px; gap: 3px; }
.store.ss-card .ss-register .srow .lrow-amt { min-width: 3.4ch; font-size: 15px; font-variant-numeric: tabular-nums; }
.store.ss-card .ss-line { grid-template-columns: 58px minmax(0, 1fr); column-gap: 10px; row-gap: 6px; }
.store.ss-card .ss-art { width: 58px; height: 58px; }
.store.ss-card .ss-art .price-tag { font-size: 13px; right: -10px; bottom: -8px; }
.store.ss-card .ss-name { font-size: 14px; }
.store.ss-card .ss-q .qbox { width: 30px !important; height: 30px !important; font-size: 17px; border-radius: 8px; }
.store.ss-card .ss-q .qbox-row { gap: 6px; }

/* List or Wallet (owner, 4 Oct 2026): one footer button switches the dock
   between the two panels, which share a shape and height. */
#board .dock-card .listbar.wallet-row { display: block !important; min-height: var(--list-h, 0px); padding-top: 14px; }
#board .listbar.wallet-row .dock-label { margin-bottom: 7px; }
#board .listbar.wallet-row .wallet-body { overflow: visible; }
#board .dock-card .listbar.wallet-row { box-sizing: border-box; height: var(--list-h, auto); min-height: 0; padding-top: 12px; overflow: hidden; }
#board .listbar.wallet-row .dock-label { margin-bottom: 6px; }
/* The wallet's group labels match the list heading (4 Oct 2026). */
#board .listbar.wallet-row .ws-group .dock-label { font-size: 14px; letter-spacing: .07em; margin: 2px 0 10px 2px; color: rgba(246,239,224,.62); }
/* The list and the wallet swap in place: no rise, just new contents (owner, 4 Oct 2026). */
#board .listbar.wallet-mode.wallet-row { animation: none !important; }
#board .listbar.wallet-row .ws-group .dock-label .warn-sym { margin-left: 6px; color: #E0603C; font-style: normal; }
/* The reversed cash meter: the pill glides down as cash is paid (4 Oct 2026). */
.kmh.reversed .kmh-mark { transition: left .7s cubic-bezier(.2,.8,.2,1); }
.phone.reduced .kmh.reversed .kmh-mark { transition: none; }
/* A capped panel scrolls; Total and Pay stay in view at its foot (4 Oct 2026). */
.store.ss-card .ss-register .sc-foot { position: sticky; bottom: 0; z-index: 2; padding: 8px 0 4px; background: linear-gradient(to bottom, rgba(255,252,244,0), #fffcf4 30%); }
.store.ss-card .ss-register { align-self: stretch; display: flex; flex-direction: column; }
.store.ss-card .ss-register .sc-foot { margin-top: auto; }
.store.ss-card { overflow: clip; }
.store.ss-card .ss-register .sc-foot { padding-top: 14px; background: linear-gradient(to bottom, rgba(255,252,244,0), #fffcf4 12px); }
/* Compact item lines (4 Oct 2026, owner: no vertical scrolling): the name beside
   the picture, the checkboxes under the name, so each item takes one band. */
.store.ss-card .ss-line { grid-template-columns: 50px minmax(0, 1fr); grid-template-areas: 'art name' 'art boxes'; column-gap: 10px; row-gap: 4px; align-items: start; }
.store.ss-card .ss-art { width: 50px; height: 50px; }
.store.ss-card .ss-items { gap: 10px; }
/* Tighter register rows (4 Oct 2026): four payment rows fit without scrolling. */
.store.ss-card .ss-register .sc-rows.ledger { gap: 6px; margin-bottom: 6px; }
.store.ss-card .ss-register .srow .lrow { height: 38px; }
.store.ss-card .ss-register .srow .lrow button { width: 24px; height: 24px; font-size: 15px; }
.store.ss-card .ss-register .srow { grid-template-columns: 50px max-content; }
.store.ss-card .ss-register .sface .gcw.gcw-sm, .store.ss-card .ss-register .sface .gc-sm, .store.ss-card .ss-register .sface .cash-face { width: 50px; }
.store.ss-card .ss-register .sc-foot .sc-pay { height: 40px; }
.store.ss-card .ss-body { padding-top: 8px; padding-bottom: 8px; }
.store.ss-card .ss-body { padding-top: 6px; padding-bottom: 6px; } .store.ss-card .ss-items { gap: 7px; }
/* Room for the back row up the hill (4 Oct 2026): slimmer awning band, rows and Pay row. */
.store.ss-card.itemshop .awning { min-height: 0; padding-top: 3px; padding-bottom: 3px; }
.store.ss-card .ss-register .sc-rows.ledger { gap: 4px; margin-bottom: 4px; }
.store.ss-card .ss-register .srow .lrow { height: 34px; }
.store.ss-card .ss-register .srow .lrow button { width: 22px; height: 22px; font-size: 14px; }
.store.ss-card .ss-register .sc-foot { padding-top: 6px; padding-bottom: 0; }
.store.ss-card .ss-register .sc-foot .sc-pay { height: 38px; }
.store.ss-card .ss-items { gap: 4px; }
.store.ss-card .ss-line { grid-template-columns: 46px minmax(0, 1fr); row-gap: 3px; }
.store.ss-card .ss-art { width: 46px; height: 46px; }
/* The footer button's acorn (owner, 4 Oct 2026). */
.wallet-btn .btn-acorn { display: grid; place-items: center; }
.wallet-btn .btn-acorn tom-acorn, .wallet-btn .btn-acorn svg { width: 26px; height: 34px; }
/* The month-start card's mini cash meter: full at the start, the goal flag at two thirds. */
.intro-goals .mini-meter { position: relative; display: block; width: 100%; max-width: 150px; height: 18px; margin: 6px auto 2px; }
.intro-goals .mini-meter .mm-bar { position: absolute; left: 0; right: 0; top: 7px; height: 6px; border-radius: 3px; background: linear-gradient(to right, #C23B2E 0 22%, #E2703A 22% 44%, #E8B64A 44% 66.7%, #9CCF6A 66.7% 84%, #3F9A5F 84% 100%); }
.intro-goals .mini-meter .mm-flag { position: absolute; left: 66.7%; top: 2px; width: 2px; height: 16px; margin-left: -1px; border-radius: 1px; background: #3a2a1a; }
.intro-goals .mini-meter .mm-pill { position: absolute; right: -2px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fffdf6; box-shadow: 0 0 0 2px #3a2a1a; }
/* The dock button lines up with the top of the CASH SAVINGS heading (owner, 4 Oct 2026). */
.score-bar.meter-only .wallet-btn { top: 15px; bottom: auto; transform: none; }
/* The goal capsule sits in the top row (owner, 4 Oct 2026): between the heading
   and the button, its top level with theirs, centred over the goal flag, with a
   short dotted line down to the flag. The row under the bar is gone. */
.score-bar .kmh { position: relative; }
.score-bar .kmh-goalline { position: absolute; left: 0; right: 0; top: 0; height: 0; margin: 0; width: auto; }
.score-bar .kmh-goalline .kmh-goal-cap { left: var(--g); top: 0; transform: translateX(-50%); }
.score-bar .kmh-goalline .kmh-leader, .score-bar .kmh-goalline.left .kmh-leader { left: var(--g); top: 20px; width: 2px; height: 9px; margin-left: -1px; background: repeating-linear-gradient(to bottom, rgba(246,239,224,.5) 0 2px, transparent 2px 4px); border: 0; }
.score-bar .kmh-goalline .kmh-leader::after { display: none; }
/* One top line for the heading, the goal capsule and the button (4 Oct 2026):
   the footer's contents sit from the top instead of being centred. */
.score-bar.meter-only { align-items: flex-start; padding-top: 30px; }
.score-bar.meter-only .wallet-btn { top: 30px; }
/* The current-savings capsule sits centred on the bar (owner, 4 Oct 2026). */
.score-bar .kmh-mark::after, .score-bar .kmh-mark::before { display: none; }
.score-bar .kmh-goalline { right: 72px; }   /* the same width as the bar, so --g lands on the flag */
/* A shorter footer (owner, 4 Oct 2026): the meter row starts 14 px down and the
   button keeps a 22 px margin above the bottom (safe area added on phones); the
   36 px saved go to the panels and the scene. */
:root { --footer-h: 88px; }
.score-bar.meter-only { padding-top: 14px; }
.score-bar.meter-only .wallet-btn { top: 14px; }
/* The savings capsule's bottom meets the button's bottom (owner, 4 Oct 2026). */
.score-bar.meter-only .kmh-mark { top: 12px; }
/* The word sits on the tag's paper (40–74 % of the picture), never past its edge;
   the tag is larger so the word reads (owner, 4 Oct 2026). */
#fx .sold-tag.painted { width: 214px; height: 95px; }
#fx .sold-tag.painted b { left: 40.5%; right: 26.5%; top: 27%; bottom: 27%; font-size: 21px; letter-spacing: 0; white-space: nowrap; }
/* Card rows in the panel (owner, 4 Oct 2026): they slide within the same edges as
   the shopping list (14 px from the screen), the next card peeks in, and a round
   glass arrow over the peek slides to it (pointing back from the last card). */
.versus-wrap { position: relative; }
.sheet .versus-wrap .versus.count-scroll { margin: 0 2px; padding: 2px 0 12px; scroll-padding-left: 0; gap: 10px; }
.sheet .versus-wrap .versus.count-scroll .store.shopcard.expanded { flex: 0 0 calc(100% - 46px); min-width: 0; scroll-snap-align: start; }
.card-next.glass { position: absolute; right: 6px; top: calc(50% - 6px); transform: translateY(-50%); z-index: 3; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; padding: 0; cursor: pointer;
  color: var(--accent-ink); background: linear-gradient(160deg, rgba(255,255,255,.62), rgba(255,255,255,.22)); border: 1px solid rgba(255,255,255,.75);
  -webkit-backdrop-filter: blur(10px) saturate(1.8); backdrop-filter: blur(10px) saturate(1.8);
  box-shadow: 0 6px 16px rgba(40,30,15,.24), inset 0 1px 0 rgba(255,255,255,.9), inset 0 -3px 8px rgba(40,30,15,.08); }
.card-next.glass svg { width: 26px; height: 26px; transition: transform .25s ease; }
.versus-wrap.at-end .card-next.glass svg { transform: rotate(180deg); }
.card-next.glass:active { transform: translateY(-50%) scale(.94); }
/* Wider cards (a narrow card wraps its items and grows taller): a 16 px peek, the arrow smaller. */
.sheet .versus-wrap .versus.count-scroll { gap: 6px; }
.sheet .versus-wrap .versus.count-scroll .store.shopcard.expanded { flex: 0 0 calc(100% - 22px); }
.card-next.glass { width: 40px; height: 40px; right: 0; }
.card-next.glass svg { width: 22px; height: 22px; }
/* More than four to buy: the checkboxes run under the picture across the whole
   item column, so a long row of boxes takes two lines, not four (4 Oct 2026). */
.store.ss-card .ss-line.many { grid-template-areas: 'art name' 'boxes boxes'; }
.store.ss-card .ss-line.many .ss-art { height: 40px; }
.store.ss-card .ss-line.many .qbox-row { gap: 5px; }
/* The share screen fits without scrolling (owner, 4 Oct 2026): a column that
   fills the screen; the picture takes whatever height is left, never more. */
.share-preview { display: flex; flex-direction: column; align-items: center; overflow: hidden; padding: calc(14px + var(--sai-top, 0px)) 18px calc(14px + env(safe-area-inset-bottom)); gap: 10px; box-sizing: border-box; }
.share-preview > * { flex: none; }
.share-preview img { flex: 1 1 auto; min-height: 0; max-height: none; width: auto; max-width: 100%; height: auto; object-fit: contain; margin: 0; }
.share-preview p { margin: 0 auto; font-size: 13px; }
/* The keeper-shop header slides with the cards (4 Oct 2026): a strip of titles
   clipped to the header's space; the ▾ stays put. */
.panel-head.ph-slider { display: flex; align-items: center; gap: 8px; }
.panel-head.ph-slider .ph-viewport { flex: 1; min-width: 0; overflow: hidden; }
.panel-head.ph-slider .ph-track { display: flex; will-change: transform; }
.panel-head.ph-slider .ph-slide { flex: 0 0 100%; display: flex; align-items: center; gap: 12px; min-width: 0; }
.panel-head.ph-slider .ph-slide .ph-text { min-width: 0; }
/* In the keeper-shop row the header names the open shop; no outline jumping from card to card. */
.store.ss-card.sellershop.active { outline: none; }
.intro.listdone .listdone-retry { margin-top: 10px; }
/* Long shop names in the header shrink to fit, never cut (owner, 4 Oct 2026). */
#sheet .panel-head .rows-label { white-space: nowrap; overflow: hidden; display: block; }
#sheet .panel-head .ph-text { min-width: 0; flex: 1; }
/* Keeper shops: each slide carries its header and its card (4 Oct 2026). */
.sheet-body { position: relative; }
.sheet .versus-wrap .versus.count-scroll > .shop-slide { flex: 0 0 calc(100% - 22px); min-width: 0; scroll-snap-align: start; display: flex; flex-direction: column; }
.shop-slide .card-head { padding-right: 56px; margin-bottom: 8px; }
.shop-slide .store.shopcard.expanded { flex: 1 1 auto; width: 100%; }
.sheet-body > .slide-close { position: absolute; top: 14px; right: 12px; z-index: 2; }
/* The goal capsule stays clear of the heading; an L-shaped dotted leader runs from
   it across and down to the flag wherever the scale puts it (4 Oct 2026). */
.score-bar .kmh-goalline .kmh-goal-cap { left: max(var(--g), 168px); }
.score-bar .kmh-goalline .kmh-leader, .score-bar .kmh-goalline.left .kmh-leader { left: var(--g); top: 10px; width: calc(max(var(--g), 168px) - var(--g)); height: 20px; margin-left: -1px; background: none;
  border-left: 2px dotted rgba(246,239,224,.55); border-top: 2px dotted rgba(246,239,224,.55); border-top-left-radius: 4px; }
/* The month card's mini meter follows the same scale. */
.intro-goals .mini-meter .mm-bar { background: linear-gradient(to right, #C23B2E 0 var(--s1), #E2703A var(--s1) var(--s2), #E8B64A var(--s2) var(--s3), #9CCF6A var(--s3) var(--s4), #3F9A5F var(--s4) 100%); }
.intro-goals .mini-meter .mm-flag { left: var(--g); }
.score-bar .kmh-goalline .kmh-goal-cap { left: max(var(--g), 190px); }
.score-bar .kmh-goalline .kmh-leader, .score-bar .kmh-goalline.left .kmh-leader { top: 22px; height: 9px; width: calc(max(var(--g), 190px) - var(--g)); border-top-left-radius: 3px; }
/* Gift card faces (owner, 4 Oct 2026): the logo in the upper left, the name to its
   right, the expiry left-aligned halfway down; the amount capsule stays below. */
.gc { position: relative; display: block; text-align: left; }
.gc .gc-top { position: absolute; left: 8%; right: 6%; top: 9%; display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: .45em; margin: 0; text-align: left; }
.gc .gc-top > :first-child { flex: none; width: 1.6em; height: 1.6em; margin: 0; }
.gc .gc-top svg, .gc .gc-top img { width: 100%; height: 100%; }
.gc .gc-name { display: block; margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.gc .gc-bottom { position: absolute; left: 8%; right: 6%; top: 50%; transform: translateY(-50%); display: block; margin: 0; text-align: left; }
.gc .gc-exp { display: block; text-align: left; margin: 0; }
.gcw .gc .gc-bottom { padding-bottom: 0; }
.gc.expired .gc-top, .gc.expired .gc-bottom { position: absolute; z-index: 2; }
/* The Menu in labeled sections (owner, 4 Oct 2026). */
.menu-dialog .menu-sec { margin: 14px 0 0; padding: 0; border: 0; }
.menu-dialog .menu-sec h3 { margin: 0 0 6px 2px; font-size: calc(11px * var(--t)); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.menu-dialog .menu-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 12px; margin: 0 0 6px; border-radius: 12px; background: var(--card, #fffdf6); box-shadow: inset 0 0 0 1.5px var(--line); font-size: 15px; }
.menu-dialog .menu-toggle input { width: 28px; height: 28px; margin: 0; accent-color: var(--accent); }   /* 28 px: this rule wins over .toggle input's 26 (14 Oct 2026, layout audit: the boxes read 22 px) */
.menu-dialog .menu-row { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; min-height: 52px; padding: 8px 12px; margin: 0 0 6px; border: 0; border-radius: 12px; background: var(--card, #fffdf6); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.menu-dialog .menu-row b { font-size: calc(15px * var(--t)); font-weight: 800; }
.menu-dialog .menu-row small { font-size: calc(12.5px * var(--t)); color: var(--ink-2); }
.menu-dialog .menu-row.danger b { color: var(--red-ink, #8a3a2c); }
.menu-dialog .menu-row.danger.sure { box-shadow: inset 0 0 0 2px var(--red, #c7362b); }
.menu-dialog .menu-app { margin-top: 10px; }
/* Compact Menu: toggles two to a row, slimmer rows (no scrolling). */
.menu-dialog .menu-sec.grid2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 6px; }
.menu-dialog .menu-sec.grid2 h3 { grid-column: 1 / -1; }
.menu-dialog .menu-toggle { min-height: 44px; font-size: calc(14px * var(--t)); }   /* the label is the tap target for its 22 px box */
.menu-dialog .menu-row { min-height: 46px; padding: 6px 12px; }
.menu-dialog .menu-sec { margin-top: 10px; }
.menu-dialog .menu-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.menu-dialog .menu-pair .menu-row { margin: 0; }
.menu-dialog .menu-rule { border: 0; border-top: 1.5px solid var(--line); margin: 10px 2px; }

/* Payment rows (4 Oct 2026): too small for an expiry line; the name and amount only. */
.sface .gc .gc-bottom{display:none}

/* The Daily Market's perfect page (4 Oct 2026): a garland swings down over the
   top, Cue hops beside the stamp, confetti rains (view/app.js confettiRain). */
.settle.daily.perfect { padding-top: calc(100px + var(--sai-top)); overflow-x: hidden; isolation: isolate; }
/* The smallest phones (375×667): the Daily's page runs 80 px past the screen and its sticky button sat over the
   seven-day strip and the tomorrow line (14 Oct 2026, 375 sweep); there the button stays in the flow, after them. */
@media (max-height: 700px) { .settle.daily > .primary.wide { position: static; box-shadow: 0 6px 18px rgba(30,20,8,.3); } }
/* The Daily as a result (design D2, 14 Oct 2026): the caption carries the acorn pictures; the seven-day strip is seven
   small squares, a played day filled to its share of the day's best, a missed day empty, today outlined. */
.settle.daily .eyebrow.daily-caption { text-transform: none; letter-spacing: .02em; font-size: 13.5px; color: var(--ink); }
.daily-strip { display: inline-flex; gap: 5px; align-items: flex-end; margin: 6px auto 2px; }
.daily-strip .ds-day { position: relative; display: block; width: 18px; height: 18px; border-radius: 4px; background: #efe6d2; box-shadow: inset 0 0 0 1.5px #d9cbaa; overflow: hidden; }
.daily-strip .ds-day b { position: absolute; left: 0; right: 0; bottom: 0; height: var(--h, 0%); min-height: 0; background: #4f9a5e; border-radius: 0; display: block; }
.daily-strip .ds-day.played b { min-height: 3px; }
.daily-strip .ds-day.perfect b { background: #d9b44a; }
.daily-strip .ds-day.today { box-shadow: inset 0 0 0 2px #8a5a12; }
.daily-strip.on-home { display: flex; justify-content: center; margin: 4px auto 0; }
.daily-garland { position: absolute; z-index: -1; left: 50%; top: calc(var(--sai-top) - 22px); width: 160%; max-width: none; height: auto;
  transform: translateX(-50%); transform-origin: 50% 0; pointer-events: none; filter: drop-shadow(0 2px 2px rgba(60,40,10,.22));
  animation: garland-in 900ms cubic-bezier(.2,.8,.2,1) 200ms both; }
@keyframes garland-in { from { transform: translateX(-50%) translateY(-90px) rotate(-3deg); } 60% { transform: translateX(-50%) translateY(4px) rotate(1.2deg); } to { transform: translateX(-50%); } }
.phone.reduced .daily-garland { animation: none; }
@media (prefers-reduced-motion: reduce) { .daily-garland { animation: none; } }
.fx-rain { position: fixed; z-index: 40; }
.fx-rain .burst-paper { position: absolute; display: block; filter: drop-shadow(0 1px 1px rgba(60,40,10,.25)); }
.fx-rain .burst-acorn { width: 26px; height: 26px; }

/* The cookie jar page (4 Oct 2026): the jar stands on the counter between the
   cloth and the paper, big enough to read, without its tier labels or tag. */
.opening-art.beat-jar .intro-jar { left: 7%; bottom: 17%; width: 82%; }
.opening-art.beat-jar .intro-jar :is(.jar-lbl, .jar-tag, .jar-tagtxt, .jar-string, .jar-hole) { display: none; }
.opening-art.beat-jar .intro-jar .jar-cost { position: absolute; left: 70%; transform: translateY(-50%); white-space: nowrap;
  padding: 3px 8px; border-radius: 4px; background: #f4e9d2; color: var(--ink); font-size: 13px; font-weight: 700; box-shadow: 0 1px 2px rgba(60,40,10,.25); }
.opening-art.beat-jar .intro-jar .jar-cost b { color: var(--accent-ink); font-weight: 800; }
.opening-art.beat-jar .intro-jar .jar-svg { filter: drop-shadow(0 8px 10px rgba(60,40,10,.35)); }

/* Month / year titles are longer (4 Oct 2026): the goal capsule keeps clear of
   the title on the left and of the acorn button on the right. */
.score-bar .kmh-goalline { --cap: clamp(214px, var(--g), calc(100% - 50px)); }
.score-bar .kmh-goalline .kmh-goal-cap { left: var(--cap); }
.score-bar .kmh-goalline .kmh-leader, .score-bar .kmh-goalline.left .kmh-leader { width: max(0px, calc(var(--cap) - var(--g))); }

/* Goal capsule (owner, 4 Oct 2026): no leader line; the flag sits after the
   amount, so the capsule says what the flag on the bar means. */
.score-bar .kmh-goalline .kmh-leader { display: none; }
.kmh-goal-cap { display: inline-flex; align-items: center; gap: 4px; }
.kmh-goal-cap .kmh-flag { width: 12px; height: 12px; color: var(--paper); }

/* ---- The tutorial (view/tutorial.js, 4 Oct 2026) ---- */
.tut { position: absolute; inset: 0; z-index: 300; display: flex; background: var(--paper); animation: tutIn 280ms var(--e-enter, ease-out) both; }
.tut.leaving { animation: tutOut 240ms ease-in both; }
@keyframes tutIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes tutOut { to { opacity: 0; transform: translateY(16px); } }
.tut-card { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 0; padding: calc(14px + var(--sai-top, 20px)) 18px calc(10px + env(safe-area-inset-bottom)); }
.tut-skip { position: absolute; top: calc(8px + var(--sai-top, 20px)); right: 14px; }
.tut-title { margin: 6px 70px 10px 0; font-family: var(--serif, Georgia, serif); font-size: 28px; line-height: 1.1; color: var(--ink); }
.tut-steps { display: flex; gap: 6px; }
.tut-step { flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 40px; padding: 0 6px; border: 0; border-radius: 12px; background: var(--card, #fffdf7); box-shadow: inset 0 0 0 1.5px var(--line, #d9ccb0); color: var(--ink-2, #6b5f50); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.tut-step b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--line, #d9ccb0); color: var(--ink); font-size: 11.5px; }
.tut-step svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.tut-step.seen svg { opacity: .7; }
.tut-step.on { background: var(--accent, #3f6e5f); box-shadow: none; color: #fff; }
.tut-step.on b { background: rgba(255,255,255,.25); color: #fff; }
.tut-caption { min-height: 2.6em; margin: 10px 2px 8px; font-size: 15.5px; line-height: 1.3; color: var(--ink); }
.tut-screen { position: relative; flex: 1; min-height: 0; display: flex; justify-content: center; align-items: flex-start; }
.tut-scale { position: relative; overflow: hidden; border-radius: 22px; box-shadow: 0 0 0 5px #1d1a17, 0 10px 24px rgba(40,30,10,.25); background: #1d1a17; }
.tut-frame { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; pointer-events: none; }
.tut-finger { position: absolute; left: -17px; top: -17px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,253,247,.55); box-shadow: 0 0 0 3px rgba(255,253,247,.95), 0 3px 10px rgba(30,20,10,.45); opacity: 0; pointer-events: none;
  transition: transform 600ms cubic-bezier(.3,.7,.3,1), opacity 250ms ease, scale 160ms ease; }
.tut-finger.shown { opacity: 1; }
.tut-finger.down { scale: .72; background: rgba(255,253,247,.85); }
.tut-lines { flex: 1; margin: 10px 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.tut-lines li { padding: 14px 16px; border-radius: 14px; background: var(--card, #fffdf7); box-shadow: inset 0 0 0 1.5px var(--line, #d9ccb0); font-size: 17px; line-height: 1.35; color: var(--ink); animation: tutIn 420ms ease-out both; animation-delay: calc(var(--k) * 160ms); }
.tut-nav { display: flex; gap: 10px; margin-top: 10px; }
.tut-nav > * { flex: 1; }
.tut-nav .primary { flex: 2; }
.tut-dots { display: flex; justify-content: center; gap: 6px; margin: 8px 0 0; }
.tut-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line, #d9ccb0); }
.tut-dots i.on { background: var(--accent, #3f6e5f); }
.tut-step { white-space: nowrap; font-size: 12.5px; gap: 4px; }
.tut-screen[hidden], .tut-lines[hidden] { display: none; }
html.demo #next-tag { display: none !important; }

/* Month or year on the savings bar (owner, 4 Oct 2026): the view's word in colour. */
.kmh-title b.kmh-view { font: inherit; letter-spacing: inherit; text-transform: inherit; }
.kmh-title .kmh-view.month { color: var(--gold, #e9b949); }
.kmh-title .kmh-view.year { color: #8fd1b3; }

/* A shop card's awning keeps one height whether the shop is only previewed or
   is the open sale (owner, 4 Oct 2026: the first − or + made the panel jump). */
#sheet .ss-card .awning, .shopping #sheet .ss-card .awning { padding-top: 3px; padding-bottom: 3px; min-height: 0; }
#sheet-body:has(> .versus-wrap), .shopping #sheet-body:has(> .versus-wrap) { padding-bottom: 4px; }

/* The goal on the header row (owner, 5 Oct 2026): plain text, right-aligned to
   the end of the total pill, after a thin divider; no capsule. */
.score-bar .kmh .kmh-title { display: flex !important; align-items: center; justify-content: space-between; gap: 8px; width: auto; margin-right: 64px; }
.score-bar .kmh-goal-text { display: inline-flex; align-items: center; gap: 6px; color: var(--paper); font-size: inherit; letter-spacing: inherit; }
.score-bar .kmh-goal-text .kmh-sep { width: 1.5px; height: 12px; border-radius: 1px; background: rgba(246,239,224,.4); }
.score-bar .kmh-goal-text .kmh-flag { width: 11px; height: 11px; color: var(--paper); margin-left: -2px; }

/* Dock gift cards (owner, 5 Oct 2026): the expiry reads on any card colour. */
.walletchip .gc .gc-bottom { left: 7%; right: auto; max-width: 86%; width: max-content; padding: 2px 6px; border-radius: 4px; background: rgba(20,14,8,.55); color: #fff8ea; font-weight: 800; letter-spacing: .04em; text-shadow: none; }
.walletchip .gc.ending .gc-bottom, .walletchip .gc .gc-bottom.ending { background: rgba(150,30,20,.85); }

/* Shops and keepers stand out from the scenery (owner, 5 Oct 2026): a thin
   cream cut-paper edge and a soft shadow around everything on the actors
   layer, and the scenery a touch quieter behind them. */
/* (5 Oct 2026: the owner preferred a soft glow to the white edge.) */
#actors { filter: drop-shadow(0 0 6px rgba(255,246,222,.6)) drop-shadow(0 2px 3px rgba(35,22,10,.25)); }
#scene { filter: saturate(.82) brightness(.95); }
.walletchip .gc .gc-bottom .gc-exp { color: #fff8ea !important; opacity: 1; text-shadow: none; }

/* ===== Pocket wallet (prototype, 5 Oct 2026) ===== */
/* The register is a wallet: each way to pay is a card whose top half stands up
   out of its own leather pocket; − amount + sit right on the card. Pay floats
   on the card's bottom edge (outside the cards) and shows the card in view. */
.pocket-mode .ss-card .ss-body { align-items: stretch; }
.pocket-mode .ss-card .ss-items { flex: 1 1 0; min-width: 0; }
.pocket-mode .ss-register.pocket-reg { flex: 0 0 47%; display: block; padding: 2px 0 22px; min-width: 0; }
.pocket { container-type: inline-size; display: flex; flex-direction: column; padding: 6px 6px 0; border-radius: 10px;
  background: #6e4b2f radial-gradient(circle at 30% 20%, rgba(255,255,255,.08), transparent 60%); box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.25), 0 2px 4px rgba(40,25,10,.25); }
.pk-slot { position: relative; height: 34cqw; overflow: hidden; margin-top: -3cqw; }
.pk-slot:first-child { margin-top: 0; }
.pk-card { position: absolute; left: 2cqw; right: 2cqw; top: 1.5cqw; height: 60cqw; border-radius: 6px; overflow: hidden; box-shadow: 0 -1px 3px rgba(0,0,0,.25); }
.pk-face { position: absolute; inset: 0; display: block; }
.pk-face.gift { background: var(--b); color: var(--i); background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 2px, transparent 2px 6px); }
.pk-face.cash { background: #dfe9d0; }
.pk-face.cash img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pk-top { display: flex; align-items: center; gap: 4px; padding: 3cqw 3cqw 0; }
.pk-top .store-logo, .pk-top i, .pk-top img { flex: 0 0 auto; width: 9cqw; height: 9cqw; }
/* The card's name reads in the same lifted ink as the dock cards (--ib: the brand ink
   mixed with white; Pip's dark ink stays), so Fern's cream on red and Gale's on blue
   clear 4.5:1 with the registry's base tweaks (audit 11 §1.2). */
.pk-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(max(11px, 8.5cqw) * var(--t)); font-weight: 800; color: var(--ib, var(--i)); }
.pk-left { flex: 0 0 auto; padding: 1px 6px; border-radius: 999px; background: rgba(20,14,8,.55); color: #fff8ea; font-size: calc(max(11px, 8cqw) * var(--t)); font-weight: 800; line-height: 1.3; }
.pk-face.cash .pk-left { position: absolute; top: 3cqw; right: 3cqw; background: #2f5d43; }
.pk-left.ending { background: #b3361f; }
.pk-lip { position: absolute; left: 0; right: 0; bottom: 0; height: 7cqw; background: #7c5536; border-top: 1.5px solid rgba(0,0,0,.35);
  box-shadow: inset 0 3px 0 -1.5px rgba(255,236,200,.25); }
.pk-lip::after { content: ""; position: absolute; left: 4%; right: 4%; top: 40%; border-top: 1.5px dashed rgba(255,228,180,.55); }
.pocket-mode .pk-slot .lrow { position: absolute; z-index: 2; left: 6cqw; right: 6cqw; bottom: 8.5cqw; height: max(28px, 15cqw); margin: 0; display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  padding: 0 3px; border-radius: 999px; background: rgba(255,251,242,.94); box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.pocket-mode .pk-slot .lrow.on { box-shadow: 0 0 0 2px var(--accent, #3f6e5f), 0 1px 3px rgba(0,0,0,.3); }
.pocket-mode .pk-slot .lrow button { width: max(24px, 13cqw); height: max(24px, 13cqw); }
.pocket-mode .pk-slot .lrow-amt { text-align: center; font-size: max(13px, 9cqw); }
.pocket-mode .pk-slot:not(.on) .pk-card { filter: saturate(.75); }
/* The item side gets the room the register gave up. */
.pocket-mode .ss-card .ss-line { gap: 10px; }
.pocket-mode .ss-card .ss-art img { width: 64px; height: 64px; }
.pocket-mode .ss-card .ss-name { font-size: 16.5px; line-height: 1.15; white-space: normal; }
.pocket-mode .ss-card .qbox-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pocket-mode .ss-card .qbox { width: 32px; height: 32px; }
/* The floating Pay. */
.pocket-wrap { position: relative; padding-bottom: 32px; }
.float-pay { position: absolute; left: 50%; top: 100%; z-index: 6; transform: translate(-50%, -50%); min-width: 160px; height: 46px; padding: 0 22px; border-radius: 23px; font-size: calc(18px * var(--t)); box-shadow: 0 4px 12px rgba(30,40,30,.35); }
.float-pay[disabled] { opacity: 1; filter: saturate(.3) brightness(1.15); }
.float-pay.busy[disabled] { filter: none; background: var(--accent); color: #fff; }   /* Paying… / Paid ✓: the order went through, so it never wears the faded "can't pay" look (12 Oct 2026) */
.pocket-mode .store.ss-card .ss-body { grid-template-columns: minmax(0, 1fr) 1.5px 48%; align-items: stretch; }
.pocket-mode .ss-register.pocket-reg { width: 100%; }
.pocket-mode .store.ss-card .ss-body { width: 100%; box-sizing: border-box; justify-self: stretch; align-self: stretch; }
.pocket-mode .store.ss-card .ss-line { grid-template-columns: 64px minmax(0, 1fr); width: 100%; }
/* Pocket tune: the card's name and balance read above a slimmer − amount +. */
.pk-slot { height: 42cqw; }
.pocket-mode .pk-slot .lrow { left: 10cqw; right: 10cqw; bottom: 9cqw; height: 24px; padding: 0 2px; }
.pocket-mode .pk-slot .lrow button { width: 20px; height: 20px; font-size: 14px; line-height: 1; padding: 0; }
.pocket-mode .pk-slot .lrow-amt { font-size: 13.5px; }
.pocket-mode .store.ss-card .ss-name { font-size: 16px; line-height: 1.15; white-space: normal; }
.pocket-mode .store.ss-card .ss-q { gap: 8px; }
.pocket-mode .store.ss-card.sellershop .ss-name, .pocket-mode .store.ss-card.itemshop .ss-name { font-size: 16px; }
.pocket-mode .store.ss-card.sellershop .ss-name, .pocket-mode .store.ss-card.itemshop .ss-name { font-size: 16px; }
/* No leather (owner, 5 Oct 2026): the cards tuck into plain slits in the cream shop card. */
.pocket { padding: 0; border-radius: 0; background: none; box-shadow: none; }
.pk-lip { background: var(--card, #fffdf7); border-top: 0; box-shadow: 0 -1.5px 0 rgba(90,70,40,.28), 0 -4px 6px -3px rgba(60,40,10,.25); }
.pk-lip::after { display: none; }
.pocket-mode #sheet .store.ss-card .ss-name { font-size: 16px; }
.pocket-mode #sheet .store.ss-card .ss-name { overflow: visible !important; text-overflow: clip !important; }

/* ---- Pocket, round 2 (owner, 5 Oct 2026) ---- */
/* The card is cut at its slit; the − amount + capsule straddles the slit, a
   little below the card's bottom edge, see-through but readable. */
.pk-slot { height: auto; overflow: visible; margin-top: 0; padding-bottom: 16px; }
.pk-card { position: relative; left: auto; right: auto; top: auto; margin: 0 2cqw; height: 36cqw; }
.pk-face.gift { height: auto; aspect-ratio: var(--card-face-aspect) / 1; bottom: auto; }
.pk-lip { bottom: 16px; height: 3px; }
.pocket-mode .pk-slot .lrow { left: 7cqw; right: 7cqw; bottom: 1px; height: 32px; padding: 0; border-radius: 999px;
  background: rgba(255,251,242,.72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); box-shadow: 0 1px 3px rgba(0,0,0,.22); }
.pocket-mode .pk-slot .lrow button { width: 40px; height: 32px; padding: 0; border: 0 !important; background: none !important; box-shadow: none !important; border-radius: 999px;
  font-size: 24px; font-weight: 700; line-height: 1; color: var(--ink, #2e2a26); }
.pocket-mode .pk-slot .lrow button:disabled { opacity: .55; }   /* 3.4:1, still plainly dimmer than the live ink (audit 11 §1.2) */
.pocket-mode .pk-slot .lrow button:active:not(:disabled) { background: rgba(63,110,95,.15) !important; }
.pocket-mode .pk-slot .lrow-amt { font-size: calc(15px * var(--t)); }
/* What's left: higher and further right. */
.pk-top { padding: 1.5cqw 1.5cqw 0 3cqw; }
.pk-top .pk-left { margin-left: auto; margin-right: -.5cqw; }
/* Pika cash: smaller, bill-shaped (about 2.3:1), square corners. */
.pk-slot.cash .pk-card { margin: 0 13cqw; height: 26cqw; border-radius: 0; }
.pk-slot.cash .pk-face.cash img { object-fit: fill; }
.pk-face.cash .pk-left { top: 1.5cqw; right: 1.5cqw; }
/* Pay sits under the whole stack, clear of the last way to pay. */
.pocket-wrap { padding-bottom: 54px; }
/* The item side: whole words, and the price tag beside the picture, not on it. */
.pocket-mode #sheet .store.ss-card .ss-name { font-size: 15px; overflow-wrap: normal; word-break: normal; hyphens: manual; }
.pocket-mode .store.ss-card .ss-line { grid-template-columns: 56px minmax(0, 1fr); }
.pocket-mode .store.ss-card .ss-art { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pocket-mode .store.ss-card .ss-art img { width: 52px; height: 52px; }
.pocket-mode .store.ss-card .ss-art .price-tag { position: static; transform: rotate(-4deg); }
.pk-slot { padding-bottom: 24px; }
.pk-lip { bottom: 24px; }
.pocket-mode .pk-slot .lrow { bottom: 0; height: 30px; }
.pocket-mode .pk-slot .lrow button { height: 30px; }
.pocket-mode .store.ss-card .ss-items { display: flex; flex-direction: column; gap: 14px; }
.pocket-mode .store.ss-card .ss-line { align-items: start; height: auto; }
.pocket-mode .store.ss-card .ss-q { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.pocket-mode #sheet .store.ss-card .ss-name { display: block; max-width: 100%; }
/* Round 3 (owner, 5 Oct 2026): the adjuster sits mostly on its card, just over the slit. */
.pk-slot { padding-bottom: 10px; }
.pk-lip { bottom: 10px; }
.pocket-mode .pk-slot .lrow { bottom: 1px; }
/* The price tag overlaps the picture's corner again, without covering it. */
.pocket-mode .store.ss-card .ss-art { display: block; position: relative; width: 52px; height: 52px; }
.pocket-mode .store.ss-card .ss-art .price-tag { position: absolute; right: -18px; bottom: -10px; transform: rotate(-6deg); }
.pocket-mode .store.ss-card .ss-line { grid-template-columns: 52px minmax(0, 1fr); column-gap: 18px; }
.pocket-mode #sheet .store.ss-card .ss-name { white-space: nowrap; }
.pocket-mode .store.ss-card .ss-body { grid-template-columns: minmax(0, 1fr) 1.5px 45%; column-gap: 8px; }
/* Each adjuster stays clear of the card below it (owner, 5 Oct 2026). */
.pk-slot { padding-bottom: 17px; }
.pk-lip { bottom: 17px; }
.pocket-mode .pk-slot .lrow { bottom: 7px; }

/* ---- Pocket, round 4 (owner, 5 Oct 2026) ---- */
/* Adjusters three-quarters on their card. */
.pk-slot { padding-bottom: 15px; }
.pk-lip { bottom: 15px; }
.pocket-mode .pk-slot .lrow { bottom: 7px; }
/* Cash: the same slot height as a card, the bill at the top of it, no box behind. */
.pk-slot.cash .pk-card { margin: 0 2cqw; height: 36cqw; background: none; box-shadow: none; overflow: visible; border-radius: 0; }
.pk-slot.cash .pk-face.cash { inset: auto; top: 0; left: 50%; transform: translateX(-50%); width: 62cqw; height: 27cqw; background: none; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.pk-slot.cash .pk-face.cash img { object-fit: fill; }
.pk-slot.cash .pk-face.cash .pk-left { top: 1cqw; right: -6cqw; }
.pk-slot.cash .pk-lip { display: none; }
/* The shop's name has room above and below. */
#sheet .ss-card .awning, .shopping #sheet .ss-card .awning { padding-top: 7px; padding-bottom: 7px; }
/* Shop by item: picture + name, then price tag × quantity on its own row. */
.pocket-mode .store.ss-card .ss-line.pk-item { display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-areas: 'art name' 'qty qty'; column-gap: 10px; row-gap: 8px; align-items: center; }
.pk-item .ss-art { grid-area: art; }
.pk-item .ss-name { grid-area: name; }
.pk-qty { grid-area: qty; display: flex; align-items: center; gap: 6px; min-width: 0; }
.pk-qty .price-tag { position: static !important; transform: none !important; flex: 0 0 auto; font-size: 15px; padding: 3px 9px 3px 14px; }
.pk-x { flex: 0 0 auto; font-style: normal; font-weight: 800; font-size: 16px; color: var(--ink-2, #6b5f50); }
/* The quantity is a single bar of ticks: one segment per unit, never wrapping,
   so a long list can't push Pay off the screen. Tap a segment to fill up to it. */
.pocket-mode .store.ss-card .qbox-row { flex: 1 1 auto; display: flex; flex-wrap: nowrap; gap: 2px; min-width: 0; max-width: 100%; }
.pocket-mode .store.ss-card .qbox { flex: 1 1 0; min-width: 0; width: auto; max-width: 34px; height: 30px; margin: 0; border-radius: 3px; font-size: 15px; padding: 0; }
.pocket-mode .store.ss-card .qbox:first-child { border-radius: 8px 3px 3px 8px; }
.pocket-mode .store.ss-card .qbox:last-child { border-radius: 3px 8px 8px 3px; }
.pocket-mode .store.ss-card .qbox:only-child { border-radius: 8px; }
.pocket-mode .store.ss-card .qty-line { width: 100%; }
/* A softer, wider glow around the shops (not a stroke). */
#actors { filter: drop-shadow(0 0 14px rgba(255,246,222,.5)) drop-shadow(0 2px 4px rgba(35,22,10,.18)); }
/* A keeper's shop with several items stays short enough for Pay to show. */
.pocket-mode .store.ss-card.sellershop .ss-items { gap: 8px; }
.pocket-mode .store.ss-card.sellershop .ss-art, .pocket-mode .store.ss-card.sellershop .ss-art img { width: 44px; height: 44px; }
.pocket-mode .store.ss-card.sellershop .ss-line { grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; }
.pocket-mode .store.ss-card.sellershop .ss-art .price-tag { font-size: calc(11.5px * var(--t)); right: -16px; bottom: -8px; }
.pocket-mode .store.ss-card.sellershop .ss-q { gap: 4px; }
.pocket-mode .store.ss-card.sellershop .qbox { height: 26px; }
#sheet > .float-pay { position: absolute; z-index: 8; }

/* ---- Pocket, round 5 (owner, 5 Oct 2026): the most packed card fits ---- */
/* Shorter card slots: the name row and the adjuster, little else. */
.pk-card { height: 30cqw; }
.pk-slot.cash .pk-card { height: 30cqw; }
.pk-slot.cash .pk-face.cash { height: 25cqw; width: 58cqw; }
/* A keeper's shop with three or more items: compact lines. */
.pocket-mode .store.ss-card.sellershop.many-items .ss-items { gap: 6px; }
.pocket-mode .store.ss-card.sellershop.many-items .ss-line { grid-template-columns: 36px minmax(0, 1fr); column-gap: 12px; align-items: center; }
.pocket-mode .store.ss-card.sellershop.many-items .ss-art, .pocket-mode .store.ss-card.sellershop.many-items .ss-art img { width: 36px; height: 36px; }
.pocket-mode .store.ss-card.sellershop.many-items .ss-art .price-tag { font-size: calc(11px * var(--t)); padding: 0 5px 0 9px; right: -12px; bottom: -7px; }
.pocket-mode .store.ss-card.sellershop.many-items .ss-q { gap: 3px; }
.pocket-mode #sheet .store.ss-card.sellershop.many-items .ss-name { font-size: 13.5px; }
.pocket-mode .store.ss-card.sellershop.many-items .qbox { height: 22px; font-size: 13px; }
.pocket-mode .store.ss-card.sellershop.many-items .ss-body { padding-top: 6px; padding-bottom: 6px; }
.pocket-mode .store.ss-card.sellershop.many-items .ss-items { gap: 4px; }
.pocket-mode .store.ss-card.sellershop.many-items .ss-q { gap: 1px; }
.pocket-mode #sheet .store.ss-card.sellershop.many-items .ss-name { line-height: 1.05; }
.pocket-mode .store.ss-card.sellershop.many-items .qbox { height: 20px; }
.pocket-mode .store.ss-card.sellershop.many-items .ss-body { grid-template-columns: minmax(0, 1fr) 1.5px 42%; }
/* Four ways to pay (two of one shop's cards, the Pass, cash): tighter slots. */
.pocket.dense .pk-card, .pocket.dense .pk-slot.cash .pk-card { height: 24cqw; }
.pocket.dense .pk-slot { padding-bottom: 13px; }
.pocket.dense .pk-lip { bottom: 13px; }
.pocket-mode .pocket.dense .pk-slot .lrow { height: 26px; bottom: 6px; }
.pocket-mode .pocket.dense .pk-slot .lrow button { height: 26px; font-size: 21px; }
.pocket.dense .pk-slot.cash .pk-face.cash { height: 21cqw; width: 48cqw; }
.pocket.dense .pk-top { padding-top: 1cqw; }
/* Quantity (owner, 5 Oct 2026): boxes never thinner than a tap; a long count
   goes onto a second row instead. */
.pocket-mode .store.ss-card .qbox-row { flex-wrap: wrap; gap: 4px; }
.pocket-mode .store.ss-card .qbox, .pocket-mode .store.ss-card .qbox:first-child, .pocket-mode .store.ss-card .qbox:last-child { flex: 0 0 28px; width: 28px; max-width: none; height: 28px; border-radius: 6px; }
.pocket-mode .store.ss-card.sellershop.many-items .qbox { flex-basis: 24px; width: 24px; height: 24px; border-radius: 5px; }
.pocket-mode .store.ss-card .qbox { min-height: 0; aspect-ratio: 1; box-sizing: border-box; }
.pocket-mode #sheet .store.ss-card .qbox-row .qbox { width: 28px; height: 28px; flex: 0 0 28px; }
.pocket-mode #sheet .store.ss-card.sellershop.many-items .qbox-row .qbox { width: 24px; height: 24px; flex: 0 0 24px; }
.pocket-mode #sheet .store.ss-card .ss-q .qbox, .pocket-mode #sheet .store.ss-card .pk-qty .qbox { width: 28px !important; height: 28px !important; }
.pocket-mode #sheet .store.ss-card.sellershop.many-items .ss-q .qbox { width: 24px !important; height: 24px !important; font-size: 13px; }

/* ---- Pocket, round 6 (owner, 5 Oct 2026): the cards use the room down to Pay ---- */
.pocket-mode .pocket-wrap { padding-bottom: 0; }
.pocket-mode .pocket-wrap .versus { align-items: stretch; }
.pocket-mode .pocket-wrap .versus > .store.ss-card { min-height: var(--card-h, 0px); display: flex; flex-direction: column; }
.pocket-mode .pocket-wrap .store.ss-card .ss-body { flex: 1 1 auto; }
.pocket-mode .ss-register.pocket-reg { display: flex; flex-direction: column; padding-bottom: 28px; }
.pocket-mode .pocket { flex: 1 1 auto; display: flex; flex-direction: column; }
.pocket-mode .pocket .pk-slot { flex: 1 1 0; display: flex; flex-direction: column; min-height: 0; }
.pocket-mode .pocket .pk-card { flex: 1 1 auto; height: auto; min-height: 24cqw; max-height: 46cqw; }
.pocket-mode .pocket .pk-slot.cash .pk-card { max-height: 46cqw; }
.pocket-mode .pocket .pk-slot.cash .pk-face.cash { height: 27cqw; width: 62cqw; }
/* Grow only: each slot keeps its own height and takes a share of any spare room. */
.pocket-mode .pocket .pk-slot { flex: 1 0 auto; }
.pocket-mode .pocket .pk-card { flex: 1 0 auto; height: 30cqw; min-height: 0; max-height: 46cqw; }
.pocket-mode .pocket.dense .pk-card { height: 24cqw; }
.pocket-mode .pocket .pk-slot.cash .pk-face.cash { height: 25cqw; width: 58cqw; }
.pocket-mode .pocket.dense .pk-slot.cash .pk-face.cash { height: 21cqw; width: 48cqw; }
.pocket-mode .ss-register.pocket-reg { padding-bottom: 20px; }
.pocket-mode .pocket .pk-card { height: 28cqw; }
.pocket-mode .pocket.dense .pk-card { height: 22cqw; }
.pocket-mode .pocket .pk-slot.cash .pk-face.cash { height: 23cqw; width: 54cqw; }
.pocket-mode .pocket.dense .pk-slot.cash .pk-face.cash { height: 20cqw; width: 46cqw; }
.pocket-mode .pocket-wrap .ss-register.pocket-reg { padding-bottom: var(--pay-room, 20px); }
.pocket-mode .pocket-wrap { padding-bottom: 36px; }
/* More room for the cards: a slimmer panel header and tighter four-way slots. */
.pocket-mode .sheet:has(.store.shopcard.expanded) .panel-head .ph-card { width: 44px; height: 44px; border-radius: 12px; }
.pocket-mode .sheet:has(.store.shopcard.expanded) .panel-head { margin-bottom: 2px; }
.pocket-mode .pocket.dense .pk-slot { padding-bottom: 11px; }
.pocket-mode .pocket.dense .pk-lip { bottom: 11px; }
.pocket-mode .pocket.dense .pk-slot .lrow { bottom: 5px; }
.pocket-mode #sheet .store.ss-card.sellershop.many-items .ss-q .qbox { width: 22px !important; height: 22px !important; flex-basis: 22px !important; }
.pocket-mode .store.ss-card.sellershop.many-items .qbox-row { gap: 3px; }
.pocket-mode .store.ss-card.sellershop.many-items .ss-items { gap: 2px; }
.pocket-mode .pocket.dense .pk-slot.cash .pk-card { height: 18cqw; }
.pocket-mode .pocket.dense .pk-slot.cash .pk-face.cash { height: 17cqw; width: 40cqw; }
.pocket-mode .pocket .pk-slot.cash .pk-card { height: 24cqw; }
.pocket-mode .pocket.dense .pk-slot, .pocket-mode .pocket.dense .pk-card { flex-grow: 0; }
/* Four ways to pay: the plain stacked layout (no stretching). */
.pocket-mode .pocket.dense { display: block; flex: 0 0 auto; }
.pocket-mode .pocket.dense .pk-slot { display: block; }
.pocket-mode .pocket.dense .pk-card { display: block; height: 24cqw !important; max-height: none; }
.pocket-mode .pocket.dense .pk-slot.cash .pk-card { height: 18cqw !important; }
/* Four ways in a narrow register: half the adjuster on the card, so the card's name still shows. */
.pocket-mode .pocket.dense .pk-slot { padding-bottom: 14px; }
.pocket-mode .pocket.dense .pk-lip { bottom: 14px; }
.pocket-mode .pocket.dense .pk-slot .lrow { height: 24px; bottom: 2px; }
.pocket-mode .pocket.dense .pk-slot .lrow button { height: 24px; }
.pocket-mode .pocket:not(.dense) .pk-card { height: 26cqw; }

/* ---- Pocket, round 7 (owner, 5 Oct 2026): bigger cards, adjusters stay on them ---- */
/* No stretching: each slot is its card strip plus the adjuster, sized by app.js (--vis). */
.pocket-mode .pocket, .pocket-mode .pocket.dense { display: block; flex: 0 0 auto; }
.pocket-mode .pocket .pk-slot, .pocket-mode .pocket.dense .pk-slot { display: block; flex: none; }
.pocket-mode .pocket .pk-card, .pocket-mode .pocket.dense .pk-card { display: block; flex: none; height: var(--vis, 26cqw) !important; max-height: none; min-height: 0; }
.pocket-mode .pocket .pk-slot.cash .pk-card, .pocket-mode .pocket.dense .pk-slot.cash .pk-card { height: var(--vis, 24cqw) !important; }
/* Cash: as big as its strip allows, bill-shaped (2.3:1). */
.pocket-mode .pocket .pk-slot.cash .pk-face.cash, .pocket-mode .pocket.dense .pk-slot.cash .pk-face.cash { height: min(calc(var(--vis, 24cqw) - 4px), 34cqw); width: auto; aspect-ratio: 2.3; }
/* Shop by item: the register takes more of the card, so its cards are bigger. */
.pocket-mode .store.ss-card.itemshop .ss-body { grid-template-columns: minmax(0, 1fr) 1.5px 57%; }
/* The item side in its narrower column: name on top, then the picture beside price × ticks. */
.pocket-mode .store.ss-card.itemshop .ss-body { grid-template-columns: minmax(0, 1fr) 1.5px 54%; }
.pocket-mode .store.ss-card .ss-line.pk-item { grid-template-columns: 48px minmax(0, 1fr); grid-template-areas: 'name name' 'art qty'; row-gap: 6px; column-gap: 8px; }
.pocket-mode .store.ss-card .ss-line.pk-item .ss-art, .pocket-mode .store.ss-card .ss-line.pk-item .ss-art img { width: 48px; height: 48px; }
.pocket-mode .pk-qty { flex-wrap: wrap; gap: 4px 5px; }
.pocket-mode .pk-qty .price-tag { font-size: calc(13.5px * var(--t)); padding: 2px 8px 2px 12px; }
.pocket-mode .pk-qty .qbox-row { flex: 1 0 100%; }
.pocket-mode .pk-qty .pk-x { display: none; }
.pocket-mode .pk-qty .price-tag::after { content: ' ×'; font-weight: 800; }

/* Layered party scenes (5 Oct 2026): guests stand in the painted room. */
.party-stage.cast { overflow: hidden; border-radius: 12px; }
.party-guest { position: absolute; z-index: 1; width: auto; transform: translateX(-50%); pointer-events: none; filter: drop-shadow(0 3px 3px rgba(30,20,10,.35)); }
.party-guest.flip { transform: translateX(-50%) scaleX(-1); }
.party-stage.cast .party-garland, .party-stage.cast .party-lights, .party-stage.cast .disco-ball { z-index: 2; }
/* The shops' glow, barely there (owner, 5 Oct 2026: too much at night). */
#actors { filter: drop-shadow(0 0 14px rgba(255,246,222,.22)) drop-shadow(0 2px 3px rgba(35,22,10,.14)); }

/* An adjuster whose card or cash is paying part of this purchase (more than 0)
   shows on a light green capsule (owner, 5 Oct 2026). */
.pocket-mode #sheet .pk-slot .lrow.on { background: rgba(214,238,214,.9); box-shadow: 0 0 0 1.5px rgba(63,110,95,.55), 0 1px 3px rgba(0,0,0,.22); }
.pocket-mode #sheet .pk-slot .lrow.on .lrow-amt { color: #1f5a3f; }

/* Shop by item (owner, 5 Oct 2026): one item, always laid out the same: the
   picture big and centred, then the price tag, ×, and the quantity boxes. */
.pocket-mode .store.ss-card .ss-line.pk-item { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 4px; }
.pocket-mode .store.ss-card .ss-line.pk-item .ss-art, .pocket-mode .store.ss-card .ss-line.pk-item .ss-art img { width: 84px; height: 84px; }
.pocket-mode .store.ss-card .ss-line.pk-item .pk-qty { justify-content: center; flex-wrap: wrap; gap: 6px; }
.pocket-mode .store.ss-card .ss-line.pk-item .pk-qty .price-tag { font-size: calc(18px * var(--t)); padding: 4px 11px 4px 16px; }
.pocket-mode .store.ss-card .ss-line.pk-item .pk-qty .price-tag::after { content: none; }
.pocket-mode .store.ss-card .ss-line.pk-item .pk-qty .pk-x { display: inline; font-size: 18px; }
.pocket-mode .store.ss-card .ss-line.pk-item .pk-qty .qbox-row { flex: 0 1 auto; justify-content: center; max-width: 132px; }
/* A fresh Pay stays out of sight until it has been placed (no flash at the default spot). */
.float-pay:not(.placed) { visibility: hidden; }
/* Every "left" pill ends at the same right edge, cards and cash alike. */
.pocket-mode .pk-slot.cash .pk-card { position: relative; overflow: visible; }
.pocket-mode .pk-left-cash { position: absolute; z-index: 1; top: 1.5cqw; right: 1cqw; background: #2f5d43; }

/* No quantity ticked yet (owner, 5 Oct 2026): the ways to pay are locked. The
   cards dim a little, each adjuster greys out with a padlock for its amount, and
   a tap anywhere on them nudges the quantity boxes. */
.pocket-mode .pocket.locked .pk-card { filter: saturate(.55) brightness(.94); opacity: .82; }
.pocket-mode #sheet .pk-slot .lrow.locked { background: rgba(236,232,224,.92); box-shadow: 0 0 0 1.5px rgba(90,80,66,.28), 0 1px 3px rgba(0,0,0,.16); }
.pocket-mode #sheet .pk-slot .lrow.locked button { color: rgba(70,60,50,.6); cursor: not-allowed; }   /* 3.2:1 on the grey capsule; was 1.75 (audit 11 §1.2) */
.lrow-lock { width: 15px; height: 15px; fill: none; stroke: #6d6252; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; vertical-align: -2px; }
.lrow-lock rect { fill: #6d6252; stroke: none; }
.store.shopcard .qbox.nudge { animation: qbox-nudge .9s ease-out 1; }
@keyframes qbox-nudge {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(63,110,95,.6); }
  25% { transform: scale(1.14); box-shadow: 0 0 0 6px rgba(63,110,95,.28); }
  55% { transform: scale(.97); }
  100% { transform: scale(1); box-shadow: 0 0 0 10px rgba(63,110,95,0); }
}
@media (prefers-reduced-motion: reduce) { .store.shopcard .qbox.nudge { animation: none; outline: 3px solid rgba(63,110,95,.6); outline-offset: 2px; } }

/* No vertical scrolling in the panel (owner, 5 Oct 2026): a shop card in the
   swipe row is as tall as what it holds (a rule meant for the row's width gave it
   a fixed height inside its slide, so its foot overflowed and the row scrolled). */
.sheet .versus-wrap .versus.count-scroll > .shop-slide > .store.shopcard.expanded { flex: 0 0 auto; }
/* ...and every card in the row is as tall as the tallest (syncFloatPay sets --card-h);
   the shorter ones give the room to their ways to pay. */
.pocket-mode .sheet .versus-wrap .versus.count-scroll > .shop-slide > .store.ss-card { min-height: var(--card-h, 0px); display: flex; flex-direction: column; }
.sheet .versus-wrap .versus.count-scroll { overflow-y: hidden; }

/* The | between the meter's title and its goal sits centred in the gap between
   them, however long either one is (owner, 5 Oct 2026). */
.score-bar .kmh .kmh-title { gap: 0; }
.score-bar .kmh-title > .kmh-sep { flex: 1 1 auto; min-width: 16px; height: 12px; background: linear-gradient(rgba(246,239,224,.4), rgba(246,239,224,.4)) center / 1.5px 100% no-repeat; }

/* Shop by item: more than three boxes go in even rows, three across at most
   (owner, 5 Oct 2026: not four and one). */
.pocket-mode .store.ss-card .ss-line.pk-item .pk-qty .qbox-row.grid { display: grid; grid-template-columns: repeat(var(--cols, 3), 28px); gap: 6px; max-width: none; justify-content: center; }

/* The mode picker (5 Oct 2026): three cards, the current one marked. */
.intro.welcome.modes .mode-cards { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 10px; }
.mode-card { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "level level" "name go" "blurb blurb"; gap: 2px 10px; text-align: left; padding: 12px 14px; border-radius: 16px; border: 2px solid rgba(90,80,66,.18); background: #fff; color: var(--ink, #2b2217); cursor: pointer; }
.mode-card.on { border-color: #3f6e5f; box-shadow: 0 0 0 3px rgba(63,110,95,.18); }
.mode-card .mode-level { grid-area: level; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #6d6252; }
.mode-card.level-gentle .mode-level { color: #3f6e5f; }
.mode-card.level-hard .mode-level { color: #a84a2e; }
.mode-card .mode-name { grid-area: name; font-size: 19px; font-weight: 800; }
.mode-card .mode-blurb { grid-area: blurb; font-size: 13.5px; line-height: 1.3; color: #4a4036; }
.mode-card .mode-go { grid-area: go; align-self: center; font-size: 12.5px; font-weight: 800; padding: 5px 10px; border-radius: 999px; background: #3f6e5f; color: #fff; white-space: nowrap; }
.mode-card.on .mode-go { background: rgba(63,110,95,.14); color: #1f5a3f; }

/* The floating Pay shows only once syncFloatPay has placed it (owner, 5 Oct 2026:
   it flashed at the top of the panel and dropped as the panel opened). */
#sheet > .float-pay:not(.placed), .pocket-wrap .float-pay:not(.placed) { visibility: hidden; }

/* The mode picker fills the phone (owner, 5 Oct 2026), like Cue's story does. */
.intro.welcome.modes { position: absolute; inset: 0; width: 100%; max-height: none; border-radius: 0; box-shadow: none; display: flex; flex-direction: column; justify-content: center; padding: calc(10px + var(--sai-top, 20px)) 18px calc(14px + env(safe-area-inset-bottom)); }
.intro.welcome.modes .welcome-logo { width: 180px; }
.intro.welcome.modes .intro-scene { margin-bottom: 4px; }

/* The painted jar's base sits higher in its box than the drawn glass did (86% of
   the SVG, not 93.5%): set it down on the table top (owner, 5 Oct 2026). */
.settle-jar-over { top: calc(73.8% - 0.86 * (100% * 124 / 258) * 1024 / 900 - 1.6%); }

/* The Perfect month rosette is a grid item in the settle card's pill: the base
   rule's z-index −1 put it behind the pill's paper (owner, 5 Oct 2026: the art vanished). */
.settle .home-wrap.stage .review.card .rv-stamp::before { z-index: 0; }

/* ===== Plan B accessibility (6 Oct 2026; audit 11 §1.10, 03 §4) ===== */
/* Tap targets of 44 pt without moving or growing the visual squares: an invisible
   ::after box grows the hit area. The − / + sit in a 30 px capsule (24 px dense), so
   the box reaches 7–10 px above and below, within its own slot. Quantity boxes stand
   in rows a few px apart: each takes 44 px of height and its own width plus half the
   gap, so a tap between two boxes goes to the nearer one and neighbours never claim
   each other's face. */
.pocket-mode .pk-slot .lrow button { position: relative; }
.pocket-mode .pk-slot .lrow button::after { content: ""; position: absolute; inset: calc((100% - 44px) / 2); }
.store.shopcard .qbox, .pocket-mode .store.ss-card .qbox { position: relative; }
.store.shopcard .qbox::after, .pocket-mode .store.ss-card .qbox::after { content: ""; position: absolute; top: calc((100% - 44px) / 2); bottom: calc((100% - 44px) / 2); left: -4px; right: -4px; }   /* offsets are from the padding box: −4 px clears the 2 px border and half the 4 px gap */
.pocket-mode .store.ss-card .ss-line.pk-item .pk-qty .qbox::after { left: -5px; right: -5px; }   /* 6 px gaps */
/* The panel chevron (40 px, 1.5 px border) and the settle card's Share (40 px, no border) reach 44. */
.collapse-btn, .expand-btn { position: relative; }
.collapse-btn::after, .expand-btn::after { content: ""; position: absolute; inset: -3.5px; border-radius: inherit; }
.settle .rv-share.icon::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; }
/* The review's Close shrank to 43 px on a 375×667 phone. */
[data-key="review-close"] { min-height: 44px; }

/* ===== Plan B view changes (6 Oct 2026; audits 02 §5, 03, 05, 06, 09, 10, 11) ===== */
/* The register pill says "left"; expiry is written on the card face, not only coloured. */
.pk-left .pk-left-word { font-size: .68em; font-weight: 700; margin-left: 3px; opacity: .85; letter-spacing: .02em; }
/* (.pk-face is already absolutely positioned in its slot.) Only the top of a face stands out of its
   pocket, so the date sits just under the pill, at the right. */
.pk-face .pk-exp { position: absolute; right: 8px; top: 27px; font-size: calc(9.5px * var(--t, 1)); font-weight: 800; letter-spacing: .05em; color: var(--i, #2f2a24); opacity: .92; line-height: 1; white-space: nowrap; }
.pk-face .pk-exp.ending { color: #fff8ee; background: #b3361f; padding: 2px 5px; border-radius: 4px; opacity: 1; }
/* Mags' register says why there is only cash; the price tag says "each" when more than one can be bought. */
.ss-register .ss-cashonly, .sym-row .ss-cashonly { display: block; font-size: calc(10.5px * var(--t, 1)); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #8a6a43; margin: 0 0 4px; }
.price-tag .tag-each { font-size: .58em; font-weight: 700; margin-left: 3px; opacity: .85; }
/* What this Pay sets off: one line of facts under the awning (the floating Pay covers the card's foot). */
.store.ss-card > .pay-after { display: block; padding: 6px 12px 5px; font-size: calc(11px * var(--t, 1)); font-weight: 600; line-height: 1.25; color: #6d6254; border-bottom: 1px dashed rgba(109,98,84,.25); text-align: center; }
.store.ss-card > .pay-after .acorn { width: .62em; }
.kmh-title .kmh-judge { margin-left: 0; }
/* The floating Pay carries the cash consequence beneath the amount. */
.float-pay .fp-main { display: block; }
.float-pay .fp-sub { display: block; font-size: calc(11px * var(--t, 1)); font-weight: 600; line-height: 1.1; margin-top: 1px; opacity: .88; }
.float-pay.under .fp-sub { color: #ffd9c9; opacity: 1; }
/* The meter says what the chime says, for a moment after each Pay. */
.kmh-title .kmh-judge { margin-left: 6px; font-style: normal; font-size: calc(10.5px * var(--t, 1)); font-weight: 800; padding: 1px 7px; border-radius: 999px; white-space: nowrap; animation: judgeIn .42s var(--e-enter, ease-out) both; }
.kmh-title .kmh-judge.ok { background: #cfe6c8; color: #2f6e5f; }
.kmh-title .kmh-judge.bad { background: #f3c9b8; color: #9a2a1f; }
@keyframes judgeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.phone.reduced .kmh-title .kmh-judge { animation: none; }
/* A month whose best was "spend nothing": a quiet line where the rosette would be. */
.review .rv-stamp.quiet::before { display: none; }
/* No rosette, no room for one (design D2, 14 Oct 2026; audit F8: the band above "You kept all of it" on the Daily's page was the hidden rosette's box). */
.review .rv-stamp.quiet, .review .rv-stamp.lost { min-height: 0; padding-top: 6px; transform: rotate(-2deg); }
.review .rv-stamp.quiet b { color: #5a3a14; background: #fbf1d8; }
/* On the month card it is a small paper pill on the picture's top edge, where the rosette would stand. */
.settle .home-wrap.stage .review.card .rv-stamp.quiet { display: flex; flex-direction: column; align-items: center; gap: 1px; top: -15px; padding: 5px 14px; border-radius: 999px; min-height: 0; background: #fbf1d8; box-shadow: 0 1px 4px rgba(60,40,10,.18); }
.settle .home-wrap.stage .review.card .rv-stamp.quiet b { font-size: 14.5px; background: none; color: #5a3a14; }
.settle .home-wrap.stage .review.card .rv-stamp.quiet small { font-size: 10.5px; color: #6d6254; }
/* Card money that died this month, on the receipt. */
.review .rv-lost b { color: #9a2a1f; }
.settle .settle-daily { display: block; margin: 2px auto 0; min-height: 44px; padding: 6px 12px; border: 0; background: none; color: #2f6e5f; font: inherit; font-size: calc(13px * var(--t, 1)); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }   /* quiet, from April on (audit 8 Oct 2026) */

/* ===== Plan C view changes (6 Oct 2026; tension investigation C3, C4, C5) ===== */
/* The register, collapsed: the faces keep their "left" pills and dates; no − / +
   under each card, so the slits sit closer; one line of facts names what pays, and
   a small Adjust (28 px tall, a 44 px hit box) shows the steppers for this card. */
.pocket-mode .pocket.collapsed .pk-slot { padding-bottom: 8px; }
.pocket-mode .pocket.collapsed .pk-lip { bottom: 8px; }
.pk-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 5px 2px 0; }
.pk-foot.adjusting { justify-content: flex-end; }
.pk-paid { flex: 1 1 auto; min-width: 0; font-size: calc(11px * var(--t, 1)); font-weight: 700; line-height: 1.25; color: #4a4036; text-align: left; }
.pk-paid.locked { display: inline-flex; align-items: center; gap: 4px; color: #6d6252; }
.pk-paid.locked .lrow-lock { flex: none; width: 13px; height: 13px; vertical-align: 0; }
.pk-foot .pk-adjust { position: relative; flex: none; min-height: 28px; padding: 0 10px; border-radius: 999px; font-size: calc(12px * var(--t, 1)); font-weight: 800; color: #2f6e5f; border: 1.5px solid rgba(63,110,95,.45); background: transparent; box-shadow: none; }
.pk-foot .pk-adjust::after { content: ""; position: absolute; top: calc((100% - 44px) / 2); bottom: calc((100% - 44px) / 2); left: -6px; right: -6px; }
.pk-foot .pk-adjust[aria-expanded="true"] { background: rgba(63,110,95,.12); }
.pk-foot .pk-adjust:active { background: rgba(63,110,95,.2); }
/* The decision trail on the review: the list itself, one fact per item, left-aligned. */
.review .trail { display: flex; flex-direction: column; gap: 3px; margin: 8px 0 2px; text-align: left; }
.review .rv-line.trail-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; justify-content: start; gap: 7px; padding: 3px 7px 3px 5px; border-radius: 8px; background: #fbf6ea; font-size: calc(12px * var(--t, 1)); line-height: 1.25; box-shadow: 0 1px 2px rgba(60,40,10,.12); }
.review .trail-row img { width: 24px; height: 24px; object-fit: contain; }
.review .trail-row .trail-text { min-width: 0; color: #4a4036; font-weight: 600; }
.review .trail-row .trail-text b { white-space: normal; font-weight: 800; color: var(--ink); }
.review .trail-row .trail-text .money { white-space: nowrap; }
.trail-mark { width: 16px; height: 16px; flex: none; }
.trail-mark.leaf { fill: #3f8a4a; }
.trail-mark.coin { fill: none; stroke: #b07a1e; stroke-width: 2; }
.trail-mark.coin circle:last-child { fill: #e8c25a; stroke: none; }
.review .rv-line.trail-row.leaf { box-shadow: inset 2.5px 0 0 #3f8a4a, 0 1px 2px rgba(60,40,10,.12); }
.review .rv-line.trail-row.coin { box-shadow: inset 2.5px 0 0 #b07a1e, 0 1px 2px rgba(60,40,10,.12); }
/* A short phone (375×667): the popup's trail keeps to one line per item. */
@media (max-height: 700px) {
  .review-pop .review .rv-line.trail-row { font-size: 11px; padding: 2px 6px 2px 4px; gap: 5px; grid-template-columns: 20px minmax(0, 1fr) auto; }
  .review-pop .review .trail-row img { width: 20px; height: 20px; }
  .review-pop .review .trail { gap: 2px; margin-top: 6px; }
}
/* The horizon: next month's shops on the settle card; a held card whose shop is away. */
.settle .horizon { display: flex; flex-direction: column; gap: 1px; }
.horizon .horizon-away { display: block; color: #8a5a32; font-weight: 700; }
.intro .intro-away { margin: -4px 0 10px; text-align: center; }
/* The wallet dock's Away group: carried cards for shops not here today, with when they are next. */
.cards-strip .ws-group.away .walletchip.away { display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: default; }
.walletchip.away .ws-next { font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: rgba(246,239,224,.72); line-height: 1; white-space: nowrap; }
/* With the steppers shown, the foot holds only Adjust: less air above it; on a short phone the button is slimmer. */
.pk-foot.adjusting { padding-top: 2px; }
@media (max-height: 700px) {
  .pk-foot { padding-top: 3px; }
  .pk-foot .pk-adjust { min-height: 24px; font-size: 11px; padding: 0 8px; }
}
/* While the steppers show, Adjust is a slim text control (its 44 px hit box stays), so the
   expanded card is no taller than the always-open register was before Plan C. */
.pk-foot.adjusting { padding-top: 0; }
.pk-foot.adjusting .pk-adjust { min-height: 20px; padding: 0 6px; border: 0; background: none; font-size: calc(11.5px * var(--t, 1)); letter-spacing: .02em; text-decoration: underline; text-underline-offset: 2px; }
.pk-foot.adjusting .pk-adjust[aria-expanded="true"] { background: none; }

/* ===== 6 Oct 2026, owner's notes: hint tag from the right, goal banner, chip grades, header hint, Settings, tutorial focus ===== */
/* The hint tag comes out from the right edge at the campfire's height; the hole sits on the attached edge. */
.next-tag { left: auto; right: -6px; border-radius: 10px 0 0 10px; border-left: 1px solid #d8bf8a; border-right: 0; padding: 7px 16px 7px 10px; transform: rotate(3deg); transform-origin: 100% 50%; flex-direction: row-reverse; }
.next-tag .nt-close { margin-left: 0; margin-right: 2px; }
/* The goal banner after a purchase: the toast, in three colours. */
.toast[data-kind="judge-ok"] { background: rgba(47,110,95,.95); }
.toast[data-kind="judge-risk"] { background: rgba(168,114,12,.95); }
.toast[data-kind="judge-bad"] { background: rgba(154,42,31,.95); }
/* Where each decision landed: the finished chip's colour (green · yellow · orange · red). */
#board .list-row .chip.done.grade-green, #board .list-row .chip.done.grade-yellow, #board .list-row .chip.done.grade-orange, #board .list-row .chip.done.grade-red { opacity: .96; }
#board .list-row .chip.done.grade-green { background: #cfe6c8; }
#board .list-row .chip.done.grade-yellow { background: #f7e8a8; }
#board .list-row .chip.done.grade-orange { background: #f6c9a0; }
#board .list-row .chip.done.grade-red { background: #f3b3a6; }
#board .list-row .chip.done[class*="grade-"] .chip-n { color: #2f2a24; }
.review .trail-row.grade-green { box-shadow: inset 3px 0 0 #4f9a5e; }
.review .trail-row.grade-yellow { box-shadow: inset 3px 0 0 #d9b44a; }
.review .trail-row.grade-orange { box-shadow: inset 3px 0 0 #e08a3c; }
.review .trail-row.grade-red { box-shadow: inset 3px 0 0 #c65a3a; }
.review .trail-key { font-size: calc(10.5px * var(--t, 1)); color: #6d6254; margin: 4px 0 0; line-height: 1.3; }
/* The item's consequence, once, in the panel header. */
.panel-head .ph-sub .ph-after { display: block; margin-top: 2px; font-weight: 600; color: #6d6254; }
/* Menu: one clear line per button; Settings is its own screen with Back. */
.menu-dialog .menu-row.plain { padding: 12px 14px; }
.menu-dialog .menu-row.plain b { font-size: calc(16px * var(--t, 1)); }
.settings-dialog .dialog-head { display: flex; align-items: center; gap: 8px; }
.settings-dialog .dialog-head h2 { flex: 1; text-align: center; }
/* Tutorial: the frame shows only the part of the phone the step is about, and says what to do on it. */
.tut-callout { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); z-index: 3; padding: 7px 14px; border-radius: 999px; background: rgba(47,42,36,.92); color: #fff; font-size: 13.5px; font-weight: 700; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .25s; }
.tut-callout.shown { opacity: 1; }

/* 6 Oct 2026 (afternoon), owner: change the stall, not the text · what each source pays on the
   source itself · the answer key in the list's green · shorter intro lines · dead-end facts. */
/* A price tag that ticks: the old price struck, the new one in. `scale` composes with the tag's own rotate. */
.price-tag.fc { background: #fbd98a; }
.price-tag.fc s { font-weight: 700; opacity: .6; margin-right: 3px; }
@keyframes fc-tick { 0% { scale: .7; } 60% { scale: 1.15; } 100% { scale: 1; } }
.ss-line.fc .price-tag.fc, .cline .price-tag.fc { animation: fc-tick .45s cubic-bezier(.2,.8,.2,1) both; }
/* The unit that goes (Mallow eats it, or the other shopper takes it): crossed, not gone yet. */
.qbox.fc-gone { border-style: dashed; border-color: #c65a3a; background-image: repeating-linear-gradient(45deg, transparent 0 4px, rgba(198,90,58,.28) 4px 6px); }
.qbox.fc-gone.on { background-color: rgba(198,90,58,.35); color: #fff; }
/* The list chip of the affected item: an orange ring and small symbols on its corner (owner, 6 Oct
   2026: no price on the chip, several shops may sell the item; nothing that makes the chip taller).
   ↑ price going up · −1 another shopper about to buy · ✕ another shopper bought · ◷ a card ends today. */
#board .list-row .chip { position: relative; }
#board .list-row .chip.fc { border-color: #e08a3c; box-shadow: 0 0 0 2px rgba(224,138,60,.55) inset, 0 1px 3px rgba(60,40,10,.35); }
.chip-badges { position: absolute; top: 3px; right: 3px; display: flex; flex-direction: row-reverse; gap: 2px; pointer-events: none; }   /* inside the chip: the dock clips anything above it (owner, 6 Oct 2026) */
.cb { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; color: #fff8ea; font-size: 11px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; box-shadow: 0 1px 2px rgba(60,40,10,.35), 0 0 0 1.5px #fbf6ea; font-style: normal; }
.cb-price-up { background: #e08a3c; }
.cb-taken { background: #c65a3a; font-size: 10px; }
.cb-ending { background: #3f6f9f; font-size: 13px; }
.chip-badges.fresh .cb { animation: fc-tick .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes fc-wobble { 0%, 100% { rotate: 0deg; } 30% { rotate: -2.5deg; } 60% { rotate: 2.5deg; } }
#board .list-row .chip.fc:has(.chip-badges.fresh) { animation: fc-wobble .5s ease-in-out; }
/* The intro teaches the symbols: the line about Mallow's hay or the other shopper wears its badge. */
.intro-twists li.with-badge { list-style: none; margin-left: -18px; display: flex; align-items: center; gap: 7px; }
.intro-twists li.with-badge .cb { flex: none; }
@media (prefers-reduced-motion: reduce) { .chip-badges.fresh .cb, #board .list-row .chip.fc:has(.chip-badges.fresh), .ss-line.fc .price-tag.fc, .cline .price-tag.fc { animation: none; } }
/* What each source pays, written on the source. Hidden while its steppers are out (they say it). */
.pk-pay { position: absolute; left: 6px; top: 22px; transform: rotate(-3deg); z-index: 2; padding: 0 7px; border-radius: 999px; background: #b3361f; color: #fff8ea; font-size: calc(11.5px * var(--t, 1)); font-weight: 800; line-height: 1.35; box-shadow: 0 1px 3px rgba(0,0,0,.3); white-space: nowrap; font-variant-numeric: tabular-nums; }   /* on the expiry row, left side (owner, 6 Oct 2026: the next card stacks over anything lower) */
.pk-face.cash .pk-pay { top: 50%; transform: translate(-50%, -50%) rotate(-4deg); }
.pocket.adjusting .pk-pay { display: none; }
/* Adjust stays right-aligned in both states (owner, 6 Oct 2026); nothing shares its row now. */
.pk-foot, .pk-foot.adjusting { justify-content: flex-end; }
/* The answer key: every step in the list's green for a good decision. */
.key-step.grade-green { background: #cfe6c8; box-shadow: inset 3px 0 0 #4f9a5e, 0 1px 3px rgba(60,40,10,.18); }
/* Dead end: the facts under the title. */
.impossible .go-facts { margin: 0 0 10px; font-size: calc(13px * var(--t, 1)); font-weight: 600; color: #4a4036; line-height: 1.35; }
/* Intro: one short line each, a little bigger. */
.intro-twists li { font-size: 15px; font-weight: 600; }
.lookout li.with-badge { list-style: none; display: flex; align-items: center; gap: 8px; }
.lookout li.with-badge .cb { flex: none; }
/* No panel header (owner, 6 Oct 2026): the ▾ floats over the first card's awning; the keeper's
   shop card wears the shop's name on its awning like the item panel's cards do. */
.sheet-body > .slide-close { top: 4px; right: 8px; width: 34px; height: 34px; }
#sheet .store.sellershop .awning { height: auto; min-height: 0; padding: 7px 10px; }
/* Nothing ticked yet: the sources grey out and "Pick how many" sits over them. */
.pocket.locked { position: relative; }
.pocket.locked .pk-pick { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; margin: 0; padding: 0 8px; border-radius: 10px; background: rgba(251,246,234,.62); color: #2f2a24; font-size: calc(14px * var(--t, 1)); font-weight: 800; text-align: center; letter-spacing: .01em; pointer-events: none; text-shadow: 0 1px 0 rgba(255,255,255,.7); }
.pk-foot:empty { display: none; }
/* One visual language for "ends today" (owner, 6 Oct 2026): a single red warning mark, on the list chip and
   beside EXPIRES TODAY on the card. The "left" pill and the "−🌰" pill lose their red. */
.cb-ending { background: #b3361f; font-size: 12px; }
.pk-face .pk-exp.ending { display: inline-flex; align-items: center; gap: 4px; color: var(--i, #2f2a24); background: none; padding: 0; opacity: .95; }
.pk-face .pk-exp.ending .cb { width: 15px; height: 15px; font-size: 10.5px; box-shadow: 0 1px 2px rgba(60,40,10,.35); }
.pk-left.ending { background: rgba(20,14,8,.55); }
.pk-pay { background: rgba(20,14,8,.72); }

/* 6 Oct 2026, night — the year made visible, the symbols explained, the symbol on the line it maps to. */
.eyebrow.with-strip { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.year-strip { display: inline-flex; gap: 4px; align-items: center; }
.ys-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: rgba(60,40,10,.16); box-shadow: inset 0 0 0 1px rgba(60,40,10,.18); }
.ys-dot.done.ok { background: #4f9a5e; box-shadow: none; }
.ys-dot.done.short { background: #d9b44a; box-shadow: none; }
.ys-dot.now { background: #2f6e5f; box-shadow: 0 0 0 2px rgba(47,110,95,.28); transform: scale(1.2); }
.settle .coming-with { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 5px; margin: 2px 0 4px; }
.settle .coming-with b { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: #8a5a12; margin-right: 2px; }
.ichip.carry { background: #fbf1d8; border: 1px solid #e3cf9e; color: #4a3a1a; }
.ichip.carry small { opacity: .75; font-weight: 600; margin-left: 2px; }
.ichip.carry.jar { background: #e4efe6; border-color: #b9d3bf; color: #22584a; }
.ichip.carry.none { opacity: .7; }
/* Help → Symbols. */
.sym-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sym-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #fbf6ea; font-size: calc(15px * var(--t, 1)); font-weight: 600; color: var(--ink); }
.sym-row .cb { flex: none; width: 24px; height: 24px; font-size: 14px; }
/* The list's symbol on the shop line it maps to (owner, 6 Oct 2026). */
.ss-art, .line-art { position: relative; }
.line-mark { position: absolute; top: -6px; right: -6px; left: auto; z-index: 2; }   /* top-right, never clipped by the card's left edge (owner, 13 Oct 2026) */
.toast[data-kind^="symbol-"] { background: rgba(47,42,36,.95); }
/* Most cash kept, but a card died: the stamp's place, without the rosette (6 Oct 2026). */
.review .rv-stamp.lost { background: #fbeee4; color: #7f3a12; }
.review .rv-stamp.lost b { color: #7f3a12; }
/* Help → Your year, and the settle card's record line. */
.record-dialog .rec-head, .record-dialog .rec-row { display: grid; grid-template-columns: minmax(0, 1fr) 56px 56px 56px; align-items: center; gap: 6px; }
.record-dialog .rec-head { margin: 0 0 4px; padding: 0 10px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #8a5a12; }
.record-dialog .rec-head b { font-weight: 800; }
.rec-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.rec-row { padding: 5px 10px; border-radius: 9px; background: #fbf6ea; font-size: calc(13.5px * var(--t, 1)); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.rec-row.ok { box-shadow: inset 3px 0 0 #4f9a5e; } .rec-row.short { box-shadow: inset 3px 0 0 #d9b44a; } .rec-row.now { background: #eef6f2; }
.rec-row .rec-this, .rec-row .rec-best, .rec-row .rec-goal, .rec-head .rec-this, .rec-head .rec-best, .rec-head .rec-goal { text-align: right; }
.rec-row .rec-goal { color: #6d6254; font-weight: 600; }
.record-dialog .rec-jar { margin: 8px 0 0; text-align: center; font-weight: 700; color: #22584a; }
.record-dialog .rec-years-h { margin: 10px 0 2px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #8a5a12; }
.rec-years { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: calc(13px * var(--t, 1)); font-weight: 600; }
.settle .fine.record { color: #6d6254; } .settle .fine.record.new { color: #22584a; font-weight: 800; }
/* 7 Oct 2026 — all shops at a glance; next month's list and the carry complement on the settle card. */
.glance { display: flex; gap: 6px; margin: 0 44px 8px 2px; }
.gl { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 2px 4px; border-radius: 10px; border: 1.5px solid transparent; background: #fbf6ea; box-shadow: 0 1px 2px rgba(60,40,10,.15); color: var(--ink); cursor: pointer; font: inherit; }
.gl .store-logo { width: 18px; height: 18px; background: var(--i, #2f2a24); }
.gl b { font-size: calc(13px * var(--t, 1)); font-weight: 800; font-variant-numeric: tabular-nums; }
.gl small { font-size: calc(10px * var(--t, 1)); font-weight: 700; color: #6d6254; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.gl.least { border-color: #4f9a5e; background: #eef6f2; } .gl.least small { color: #22584a; }
.horizon .horizon-list { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 6px; vertical-align: middle; }
.horizon .horizon-list span { display: inline-flex; align-items: center; gap: 1px; font-size: 11px; font-weight: 700; color: var(--ink); }
.horizon .horizon-list img { width: 18px; height: 18px; object-fit: contain; }
.horizon .horizon-good { display: block; color: #22584a; font-weight: 700; }
/* Next month's list in the intro (look-ahead, 10 Oct 2026): one line, the icons at the list's own small size. */
.horizon .horizon-next { display: block; color: var(--ink); font-weight: 700; white-space: nowrap; }
.horizon .horizon-next .horizon-list { margin-left: 4px; flex-wrap: nowrap; }
/* The glance row as a slim quick look (owner, 7 Oct 2026): one line per shop, "3×2 = 6 · card". */
.glance { gap: 4px; margin-bottom: 6px; }
.gl { flex-direction: row; justify-content: center; gap: 4px; padding: 3px 5px; border-radius: 8px; min-height: 26px; }
.gl .store-logo { width: 13px; height: 13px; flex: none; }
.gl .gl-sum { font-size: calc(11px * var(--t, 1)); font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gl small { font-size: calc(9.5px * var(--t, 1)); }
/* "Show a perfect month" as a quiet link inside the ⓘ popup (owner, 7 Oct 2026). */
.review-pop .link-btn { display: block; margin: 6px auto 10px; padding: 6px 10px; border: 0; background: none; color: #2f6e5f; font: inherit; font-size: calc(13px * var(--t, 1)); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* The Pay button's subtext in its own capsule (owner, 7 Oct 2026): what the cash does, set apart from the price. */
.float-pay .fp-sub { display: table; margin: 2px auto 0; padding: 1px 8px 2px; border-radius: 999px; background: rgba(255,255,255,.2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); opacity: 1; font-weight: 700; }
.float-pay:disabled .fp-sub { background: rgba(255,255,255,.35); box-shadow: none; }
.float-pay { height: 50px; }
/* Menu row icons (owner, 7 Oct 2026). */
.menu-dialog .menu-row.plain { flex-direction: row; align-items: center; gap: 12px; }
.menu-dialog .menu-row .mr-icon { flex: none; width: 22px; height: 22px; fill: none; stroke: #2f6e5f; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.menu-dialog .menu-row.danger .mr-icon { stroke: var(--red-ink, #8a3a2c); }
/* A green buy on the meter (owner, 7 Oct 2026): flying acorns, a glowing pop, "+🌰N kept · 3 in a row". */
.kmh-fly { position: absolute; z-index: 40; width: 18px; height: 18px; pointer-events: none; }
.kmh-mark.cheer b { animation: kmh-cheer .9s cubic-bezier(.2,.8,.2,1); }
@keyframes kmh-cheer { 0% { transform: scale(1); box-shadow: 0 0 0 2px var(--ink); } 30% { transform: scale(1.28); box-shadow: 0 0 0 2px #2f6e5f, 0 0 0 7px rgba(79,154,94,.45), 0 0 18px rgba(120,200,120,.8); background: #e4f3e2; } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .kmh-mark.cheer b { animation-duration: .01s; } }
/* Settle page: the Menu in the top-right corner, Share top-left (owner, 7 Oct 2026). */
.phone:has(#overlay[data-kind="settle"]) #menu-top { z-index: 30; }
.settle > .settle-share { right: auto; left: 12px; }
/* The locked next month, said plainly. */
.settle-block { position: relative; padding-top: 14px; }
.settle-block .sb-lock { justify-self: center; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #f3d3c1; }
.settle-block .sb-lock svg { width: 18px; height: 18px; fill: none; stroke: var(--warn-ink, #8a3a2c); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* The item's name above it when shopping from the list (owner, 7 Oct 2026: the header is gone). */
.ss-line.pk-item .pk-item-name { display: block; margin: 0 0 2px; font-size: calc(14px * var(--t, 1)); font-weight: 800; color: var(--ink); text-align: center; line-height: 1.15; }
/* The hint tag slides off before the panel rises (owner, 7 Oct 2026). */
.phone.tag-out .next-tag { transform: translateX(115%) rotate(3deg); opacity: 0; transition: transform .2s cubic-bezier(.4,0,1,1), opacity .2s; }
.phone.tag-out.panel-open .sheet { transition-delay: .18s; }
/* Side quest: the Meet tag over a keeper not yet met, and the vignette card (owner, 7 Oct 2026). */
#meet-tags { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.meet-tag { position: absolute; transform: translate(-50%, -100%); display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 4px; border: 0; border-radius: 999px; background: #fbf1d8; color: #5a3a14; font: inherit; font-size: calc(11.5px * var(--t, 1)); font-weight: 800; white-space: nowrap; box-shadow: 0 2px 6px rgba(40,30,15,.3); pointer-events: auto; cursor: pointer; animation: meet-bob 2.4s ease-in-out infinite; }
.meet-tag::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: #fbf1d8; transform: translateX(-50%) rotate(45deg); border-radius: 2px; z-index: -1; }
.meet-tag i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #d9b44a; color: #fff8ea; font-style: normal; font-weight: 900; }
@keyframes meet-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3px; } }   /* translate, not margin: margin snaps to whole pixels and the text stepped (owner, 8 Oct 2026) */
.meet-tag { will-change: translate; backface-visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .meet-tag { animation: none; } }
.meet-dialog { text-align: center; }
.meet-dialog .meet-hero { margin: -6px auto 4px; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--b) 35%, #fbf6ea), #fbf6ea 70%); display: grid; place-items: end center; overflow: hidden; }
.meet-dialog .meet-hero img { width: 140px; height: 140px; object-fit: contain; object-position: bottom; }
.meet-dialog h2 { margin: 0 0 6px; } .meet-dialog h2 small { display: block; font-size: calc(13px * var(--t, 1)); font-weight: 700; color: #8a5a12; letter-spacing: .02em; }
.meet-dialog p { margin: 0 0 8px; font-size: calc(14px * var(--t, 1)); line-height: 1.4; }
.meet-dialog .meet-quirk { padding: 8px 10px; border-radius: 10px; background: #fbf1d8; font-weight: 700; }
.meet-dialog .meet-tell b { color: #8a5a12; } .meet-dialog .meet-line { font-style: italic; color: #4a4036; }
/* Trophies. */
.trophies-dialog h2 small, .trophies-dialog .tr-h small { font-size: .7em; font-weight: 700; color: #8a5a12; margin-left: 4px; }
.trophies-dialog .tr-h { margin: 12px 0 6px; font-size: calc(11px * var(--t, 1)); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #8a5a12; }
.tk-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.tk { display: grid; justify-items: center; gap: 2px; padding: 4px 0; border: 0; border-radius: 10px; background: #fbf6ea; font: inherit; cursor: pointer; }
.tk .portrait { width: 44px; height: 44px; } .tk canvas { width: 44px; height: 44px; }
.tk:not(.met) .portrait { filter: grayscale(1) brightness(.5) opacity(.45); } .tk small { font-size: 10.5px; font-weight: 700; }
.tr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tr { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; background: #f3ede0; color: #8d8270; }
.tr b { display: block; font-size: calc(14px * var(--t, 1)); } .tr small { font-size: calc(12px * var(--t, 1)); }
.tr .tr-medal { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #cfc6b3; box-shadow: inset 0 0 0 3px rgba(255,255,255,.4); }
.tr.got { background: #fbf6ea; color: var(--ink); } .tr.got .tr-medal { background: #4f9a5e; }
/* "New" in the trophy case (design D2, 14 Oct 2026): a counting medal earned quietly is found here. */
.tr .tr-new { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: #8a5a12; color: #fff8ea; font-size: 9.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; font-style: normal; }
.menu-dialog .menu-row .menu-note, .home-links .menu-note { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: #8a5a12; color: #fff8ea; font-size: 10.5px; font-weight: 800; }
.tr.got.tier-bronze .tr-medal { background: #b8794a; } .tr.got.tier-silver .tr-medal { background: #a9b2b8; } .tr.got.tier-gold .tr-medal { background: #d9b44a; } .tr.got.tier-crown .tr-medal { background: radial-gradient(circle, #f6d77a, #c8952a); }
.toast[data-kind="trophy"] { background: rgba(138,90,18,.96); }
/* The item's name wraps inside its column, never past the card (owner, 7 Oct 2026). */
.ss-line.pk-item { min-width: 0; }
.ss-line.pk-item .pk-item-name { width: 100%; max-width: 100%; box-sizing: border-box; padding: 0 4px; white-space: normal; overflow-wrap: normal; word-break: normal; hyphens: none; text-wrap: wrap; font-size: calc(13px * var(--t, 1)); line-height: 1.15; }
.ss-items { min-width: 0; overflow: hidden; }
/* Trophies earned this month, on the settle card (owner, 7 Oct 2026). */
.settle-trophies { margin: 4px 0 6px; }
.settle-trophies .st-h { margin: 0 0 4px; text-align: center; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #8a5a12; }
.settle-trophies .st-row { display: grid; gap: 4px; }
.st-chip { display: flex; align-items: center; gap: 9px; padding: 6px 10px; border-radius: 10px; background: #fbf1d8; box-shadow: inset 0 0 0 1px #e3cf9e; text-align: left; animation: st-in .5s cubic-bezier(.2,.8,.2,1) both; }
.st-chip b { display: block; font-size: calc(13.5px * var(--t, 1)); } .st-chip small { font-size: calc(11.5px * var(--t, 1)); color: #6d6254; }
.st-chip .tr-medal { flex: none; width: 20px; height: 20px; border-radius: 50%; background: #4f9a5e; box-shadow: inset 0 0 0 3px rgba(255,255,255,.4); }
.st-chip.tier-bronze .tr-medal { background: #b8794a; } .st-chip.tier-silver .tr-medal { background: #a9b2b8; } .st-chip.tier-gold .tr-medal { background: #d9b44a; } .st-chip.tier-crown .tr-medal { background: radial-gradient(circle, #f6d77a, #c8952a); }
@keyframes st-in { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .st-chip { animation: none; } }
/* A trophy just earned (owner, 13 Oct 2026: no medal over the header): it pops gently in its own place in the row, its
   medal a little bump and a warm ring that fades. Same size before and after (transform and shadow only). */
.st-chip.fresh { animation: st-in .5s cubic-bezier(.2,.8,.2,1) both, st-glow 1.8s ease-out .35s both; }
.st-chip.fresh .tr-medal { animation: st-medal .6s cubic-bezier(.2,1.5,.4,1) .3s both; }
@keyframes st-glow { 0% { box-shadow: inset 0 0 0 1px #e3cf9e, 0 0 0 0 rgba(217,180,74,0); } 25% { box-shadow: inset 0 0 0 1px #d9b44a, 0 0 0 4px rgba(217,180,74,.45); } 100% { box-shadow: inset 0 0 0 1px #e3cf9e, 0 0 0 10px rgba(217,180,74,0); } }
@keyframes st-medal { from { transform: scale(.6) rotate(-12deg); } 60% { transform: scale(1.14) rotate(3deg); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .st-chip.fresh, .st-chip.fresh .tr-medal { animation: none; } }
.phone.reduced .st-chip.fresh, .phone.reduced .st-chip.fresh .tr-medal { animation: none; }
/* Trophy badge pictures over the dot; locked ones in grey (7 Oct 2026). */
.tr-medal { position: relative; overflow: visible; }
.tr-medal img { position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; transform: translate(-50%, -50%); object-fit: contain; }
.tr-medal:has(img) { background: none !important; box-shadow: none !important; width: 34px; height: 34px; }
.tr:not(.got) .tr-medal img { filter: grayscale(1) opacity(.45); }
.st-chip .tr-medal:has(img) { width: 34px; height: 34px; }
/* Brilliant! (8 Oct 2026): the aha, stamped over the market sky as it happens. */
.brilliant-stamp { position: absolute; z-index: 42; left: 50%; top: 22%; transform: translate(-50%, 0) rotate(-4deg); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 20px 11px; border-radius: 14px; background: #fff8ea; border: 3px solid #2f6e5f; box-shadow: 0 6px 18px rgba(30,60,40,.35), inset 0 0 0 2px rgba(47,110,95,.18); pointer-events: none; max-width: calc(100% - 48px); text-align: center; }
.brilliant-stamp b { font-family: var(--display); font-size: calc(30px * var(--t, 1)); font-weight: 800; line-height: 1; letter-spacing: .01em; color: #2f6e5f; }
.brilliant-stamp span { font-size: calc(11px * var(--t, 1)); font-weight: 700; line-height: 1.2; letter-spacing: .02em; color: #4a6b60; }
/* The dead-card rule on the settle (8 Oct 2026), and the near miss on the month's card. */
.review.card .rv-near { margin: 0 auto; text-align: center; }
.review.card .rv-near b { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #fff8ea; color: var(--ink); font-weight: 800; box-shadow: 0 2px 8px rgba(60,40,10,.22); }
/* The shop panel never scrolls sideways (8 Oct 2026, playthrough): the next shop's slide waits off to the right. */
.sheet .sheet-body { overflow-x: hidden; }

/* ---- Accessibility pass, 8 Oct 2026 (planning/audit-2026-10-05/planc/ACCESSIBILITY_2026-10-08.md).
   Colours nudged only where they failed, within their own hue; hit areas grown with invisible pseudo-elements. */
/* Pay's subtext capsule: white on the lightened green was 3.8:1 at 11 px; a lighter wash gives 4.6:1. */
.float-pay .fp-sub { background: rgba(255,255,255,.12); }
/* "Takes the cash under the goal": the peach words sit on a darker green capsule (3.5 → 5.9:1). */
.float-pay.under .fp-sub { background: rgba(16,44,36,.28); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
/* Trophies not yet earned: the words were 3.2:1 on their grey row; same warm grey, darker (4.7:1). */
.tr { color: #73685a; }
/* List symbols: "−1" is words (4.0 → 4.7:1); the ↑ is a sign (2.5 → 3.4:1, over the 3:1 for a graphic). */
.cb-price-up { background: #c97220; }
.cb-taken { background: #b84f31; }
/* Meet tags: 24 px tall to the eye, 44 px to the finger (::after is the tag's pointer, so ::before). */
.meet-tag::before { content: ""; position: absolute; left: -4px; right: -4px; top: calc((100% - 44px) / 2); bottom: calc((100% - 44px) / 2); }
/* The panel's close chevron: 34 × 40 with a 3.5 px rim fell short of 44 wide. */
.collapse-btn::after, .expand-btn::after { inset: -5px; }
/* The tutorial's page title takes focus on each page for VoiceOver; no ring drawn for it. */
.tut-title:focus { outline: none; }
/* The "at risk" goal toast: white on amber was 4.1:1; the same amber a shade deeper is 5.1:1. */
.toast[data-kind="judge-risk"] { background: rgba(150,100,10,.95); }
/* Expiry text readable on every brand card (owner, 8 Oct 2026, accessibility): dark ink on a soft
   paper backing for "EXP. NOV" (was 2.3:1 on Mallow), and a deeper red for "EXPIRES TODAY". */
.gc .gc-exp:not(.ending) { opacity: 1; color: #2f2a24; background: rgba(255,248,234,.86); padding: 0 .35em; border-radius: 3px; }
.gc .gc-exp.ending { opacity: 1; color: #fff; background: #9a3420; }
.pk-face .pk-exp { opacity: 1; color: #2f2a24; background: rgba(255,248,234,.9); padding: 1px .45em; border-radius: 4px; width: fit-content; }
/* A card with a condition (design D2, 14 Oct 2026): the condition on the register's face, bottom left, in the end date's pill style. */
.pk-face .pk-cond { position: absolute; left: 8px; bottom: 7px; z-index: 1; font-size: calc(9.5px * var(--t, 1)); font-weight: 800; letter-spacing: .02em; line-height: 1; white-space: nowrap; color: #2f2a24; background: rgba(255,248,234,.9); padding: 1px .45em; border-radius: 4px; }
.pocket-mode .pk-face .pk-cond { position: absolute; left: 8px; bottom: 22px; }   /* never inline with the name (it squeezed "Sable" to "S.."); above the amount pill on the card's bottom edge (15 Oct 2026, audit N4: the −🌰15 covered it) */
.pk-face .pk-exp.ending { color: #8a2a1c; background: rgba(255,248,234,.92); padding: 1px .45em 1px 1px; opacity: 1; }
/* The lesson story (8 Oct 2026): before the month's intro, and from Menu → Lessons. */
.lesson { text-align: center; }
.lesson .lesson-hero { margin: 2px auto 6px; width: 118px; height: 118px; border-radius: 50%; background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--b) 35%, #fbf6ea), #fbf6ea 70%); display: grid; place-items: end center; overflow: hidden; }
.lesson .lesson-hero img { width: 110px; height: 110px; object-fit: contain; object-position: bottom; }
.lesson h2 { margin: 0 0 10px; }
.lesson .lesson-beats { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; text-align: left; }
.lesson .lesson-beats li { position: relative; padding: 0 0 0 26px; font-size: calc(15px * var(--t, 1)); line-height: 1.4; color: var(--ink); }
.lesson .lesson-beats li::before { content: counter(list-item); position: absolute; left: 0; top: 1px; width: 19px; height: 19px; border-radius: 50%; background: color-mix(in srgb, var(--b) 22%, #fbf1d8); color: #4a3a22; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.lesson .lesson-principle { margin: 0 0 8px; padding: 10px 12px; border-radius: 12px; background: #fbf1d8; box-shadow: inset 0 0 0 1.5px rgba(138,106,31,.25); }
.lesson .lesson-principle b { font-size: calc(15.5px * var(--t, 1)); line-height: 1.35; color: #3b2c14; }
.lesson .lesson-note { margin: 0 0 10px; font-size: calc(12.5px * var(--t, 1)); line-height: 1.35; color: #5d4a30; }
.lessons-list { list-style: none; margin: 0; padding: 0; }
.lessons-list .lesson-row { display: flex; align-items: baseline; gap: 10px; width: 100%; text-align: left; }
.lessons-list .lesson-row small { min-width: 74px; font-weight: 700; color: #6b5636; }
.lessons-list .lesson-row:disabled b { color: #6f6458; font-weight: 600; }
/* "Meet X" tags never sit over an open panel or dialog (8 Oct 2026). */
#phone:has(#overlay:not([hidden])) #meet-tags { visibility: hidden; }
/* The wallet strip forced its expiry text white (line ~4036); on the new paper backing it must be dark ink. */
.walletchip .gc .gc-bottom .gc-exp:not(.ending) { color: #2f2a24 !important; }
.walletchip .gc .gc-bottom .gc-exp.ending { color: #fff !important; }
/* The story is an example, not the puzzle (owner, 8 Oct 2026): a dashed story card with its tag, then the trick. */
.lesson .lesson-example { position: relative; margin: 6px 0 12px; padding: 16px 12px 8px; border: 1.5px dashed rgba(107,86,54,.45); border-radius: 12px; background: rgba(251,241,216,.35); }
.lesson .lesson-example .lx-tag { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); padding: 1px 9px; border-radius: 999px; background: #6b5636; color: #fff8ea; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.lesson .lesson-example .lesson-beats { margin: 0 0 6px; }
.lesson .lesson-example .lx-own { margin: 0; font-size: calc(12px * var(--t, 1)); font-style: italic; color: #5d4a30; }
.lesson .lesson-principle small { display: block; margin-bottom: 3px; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #8a6a1f; }
/* No word alone on a line (owner, 8 Oct 2026). */
.nowrap { white-space: nowrap; }
.intro p, .intro li, .lesson li, .lesson p, .lesson b, .lookout li, .settle p, .meet-dialog p, .toast { text-wrap: pretty; }
/* "Look out for", stylised (owner, 8 Oct 2026): a felt patch with stitched edges; each thing to watch is its own
   stitched note with its badge, laid out like the market's paper tags. */
.intro.intro-p2 { outline: 1.5px dashed rgba(107,86,54,.32); outline-offset: -9px; }
.intro.intro-p2 h2 { position: relative; display: inline-block; padding: 0 26px; }
.intro.intro-p2 h2::before, .intro.intro-p2 h2::after { content: ''; position: absolute; top: 50%; width: 16px; height: 2px; border-radius: 2px; background: #c9a24a; }
.intro.intro-p2 h2::before { left: 0; } .intro.intro-p2 h2::after { right: 0; }
.intro .lookout { list-style: none; margin: 10px 0 14px; padding: 0; background: none; display: grid; gap: 8px; }
.intro .lookout li.with-badge { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 10px 12px; border-radius: 10px; background: #fbf1d8; border: 1.5px dashed rgba(138,106,31,.38); box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 2px 6px rgba(60,40,10,.10); text-align: left; font-size: calc(14.5px * var(--t, 1)); line-height: 1.4; }
.intro .lookout li.with-badge:nth-child(odd) { transform: rotate(-.6deg); } .intro .lookout li.with-badge:nth-child(even) { transform: rotate(.5deg); }
.intro .lookout li .cb, .intro .lookout li .lo-mark { flex: none; margin-top: 1px; }
.intro .lookout .lo-mark { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #f2c14e; color: #4a3410; font-size: 12px; font-weight: 900; box-shadow: 0 1px 2px rgba(60,40,10,.3); }
@media (prefers-reduced-motion: reduce) { .intro .lookout li.with-badge { transform: none; } }
.intro.lesson { outline: 1.5px dashed rgba(107,86,54,.32); outline-offset: -9px; }
/* Warnings on the stalls and awnings (owner, 8 Oct 2026). */
#stall-warn { position: absolute; inset: 0; pointer-events: none; z-index: 24; }
#stall-warn .stall-warn { position: absolute; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; gap: 4px; }
#stall-warn .sw-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 999px; background: #fff8ea; color: #2f2a24; font-size: calc(13px * var(--t, 1)); font-weight: 800; white-space: nowrap; box-shadow: 0 2px 8px rgba(40,25,5,.32), inset 0 0 0 1.5px rgba(138,106,31,.3); }
#stall-warn .sw-pill .cb { position: static; flex: none; }
#stall-warn .stall-warn::after { content: ''; width: 10px; height: 6px; margin-top: -4px; background: #fff8ea; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.awning .awning-warn { display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: middle; }
.awning .awning-warn .cb { position: static; width: 18px; height: 18px; font-size: 10.5px; }
#phone:has(#overlay:not([hidden])) #stall-warn { visibility: hidden; }
/* Meet the shopkeeper, four voices, four looks (owner, 8 Oct 2026). */
.meet-dialog .meet-top { display: flex; align-items: center; justify-content: center; gap: 10px; margin: -6px 0 4px; }
.meet-dialog .meet-top .meet-hero { margin: 0; width: 118px; height: 118px; flex: none; }
.meet-dialog .meet-top .meet-hero img { width: 110px; height: 110px; }
.meet-dialog .meet-line { position: relative; flex: 0 1 auto; max-width: 190px; margin: 0; padding: 9px 12px; border-radius: 16px; background: #fff; color: #3b2c14; font-family: var(--display); font-style: italic; font-size: calc(15px * var(--t, 1)); line-height: 1.3; text-align: left; box-shadow: 0 2px 8px rgba(60,40,10,.16), inset 0 0 0 1.5px color-mix(in srgb, var(--b) 40%, transparent); }
.meet-dialog .meet-line::before { content: ''; position: absolute; left: -8px; top: 50%; width: 12px; height: 14px; margin-top: -7px; background: #fff; clip-path: polygon(100% 0, 0 50%, 100% 100%); }
.meet-dialog .meet-rule { margin: 6px 0 12px; padding: 10px 12px 11px 14px; border-radius: 12px; background: #fbf1d8; border-left: 5px solid var(--b); text-align: left; box-shadow: 0 2px 6px rgba(60,40,10,.10); }
.meet-dialog .meet-rule h3, .meet-dialog .meet-extra h3 { margin: 0 0 3px; font-family: inherit; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.meet-dialog .meet-rule h3 { color: #8a5a12; }
.meet-dialog .meet-rule p { margin: 0; font-size: calc(15px * var(--t, 1)); font-weight: 800; line-height: 1.35; color: #2f2a24; }
.meet-dialog .meet-extra { display: grid; gap: 8px; margin: 0 0 12px; text-align: left; }
.meet-dialog .meet-extra h3 { color: #6b5636; }
.meet-dialog .meet-extra p { margin: 0; font-size: calc(13px * var(--t, 1)); line-height: 1.4; color: #5d4a30; }
/* Stall warnings look nothing like the Meet bubble (owner, 8 Oct 2026): a solid painted sign in the warning's
   colour, white letters, a darker edge, standing still; tap for the details. */
#stall-warn .stall-warn { pointer-events: auto; border: 0; padding: 0; background: none; font: inherit; cursor: pointer; }
#stall-warn .stall-warn::before { content: ""; position: absolute; left: -6px; right: -6px; top: -8px; bottom: -8px; }
#stall-warn .sw-pill { gap: 6px; padding: 4px 11px 4px 4px; border-radius: 8px; color: #fff; box-shadow: 0 3px 0 rgba(0,0,0,.22), 0 4px 10px rgba(40,25,5,.35); }
#stall-warn .sw-pill .cb { box-shadow: 0 0 0 1.5px rgba(255,255,255,.85); }
#stall-warn .sw-price-up { background: #a8561a; }
#stall-warn .sw-taken { background: #9c3f27; }
#stall-warn .sw-ending { background: #9a3420; }
#stall-warn .sw-pill .money { color: #fff; }
#stall-warn .stall-warn::after { background: #6f3a14; width: 10px; height: 7px; }
#stall-warn .stall-warn:has(.sw-ending)::after, #stall-warn .stall-warn:has(.sw-taken)::after { background: #6e2516; }
/* The details popup. */
.warn-dialog .warn-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; text-align: left; }
.warn-dialog .warn-top img { width: 72px; height: 72px; object-fit: contain; object-position: bottom; flex: none; border-radius: 50%; background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--b) 35%, #fbf6ea), #fbf6ea 70%); }
.warn-dialog .warn-top h2 { margin: 0; }
.warn-dialog .wd-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.warn-dialog .wd-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #fbf1d8; text-align: left; font-size: calc(14.5px * var(--t, 1)); line-height: 1.4; color: #2f2a24; }
.warn-dialog .wd-row .cb { flex: none; margin-top: 1px; }
.warn-dialog .wd-row b { font-weight: 800; }
/* Symbol-only stall badges (owner, 8 Oct 2026): sitting on the stall's roof, tap for the Heads up. */
#stall-warn .stall-warn { transform: translate(-50%, -50%); flex-direction: row; gap: 3px; padding: 3px; border-radius: 999px; background: #fff8ea; box-shadow: 0 2px 6px rgba(40,25,5,.4); }
#stall-warn .stall-warn::after { display: none; }
#stall-warn .stall-warn .cb { width: 26px; height: 26px; font-size: 14px; box-shadow: none; }
#stall-warn .stall-warn .cb-taken { font-size: 12px; }
.warn-dialog .wd-row.here { box-shadow: inset 0 0 0 2px rgba(138,106,31,.45); }
#stall-warn .stall-warn[hidden] { display: none; }
/* Quieter badges (owner, 8 Oct 2026): noticeable, not the loudest thing in the market. */
#stall-warn .stall-warn { padding: 2px; gap: 2px; background: rgba(255,248,234,.82); box-shadow: 0 1px 4px rgba(40,25,5,.28); }
#stall-warn .stall-warn .cb { width: 20px; height: 20px; font-size: 11px; }
#stall-warn .stall-warn .cb-taken { font-size: 9.5px; }
#stall-warn .cb-price-up, .card-warn .cb-price-up, .awning-warn .cb-price-up { background: #9c6238; }   /* was #b8794a, 3.38:1 under the ↑; 4.71:1 (14 Oct 2026, copy & a11y audit) */
#stall-warn .cb-taken, .card-warn .cb-taken, .awning-warn .cb-taken { background: #a55e4a; }   /* was #a8604c, 4.47:1 under the −1; 4.62:1 (14 Oct 2026, copy & a11y audit P2) */
#stall-warn .cb-ending, .card-warn .cb-ending, .awning-warn .cb-ending { background: #a5483a; }
/* On the gift card's top-right corner. */
.walletchip, .wallet-card { position: relative; }
.card-warn { position: absolute; top: -6px; right: -6px; display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px; background: rgba(255,248,234,.9); box-shadow: 0 1px 3px rgba(40,25,5,.3); pointer-events: none; z-index: 2; }
.card-warn .cb { width: 16px; height: 16px; font-size: 9.5px; box-shadow: none; }
/* Every warning badge a true circle with its symbol centred (owner, 8 Oct 2026: offset, oval). */
.awning-warn, .card-warn, #stall-warn .stall-warn { align-items: center; }
.awning-warn .cb, .card-warn .cb, #stall-warn .stall-warn .cb { display: grid; place-items: center; flex: none; aspect-ratio: 1 / 1; padding: 0; margin: 0; line-height: 1; text-align: center; text-indent: 0; letter-spacing: 0; font-family: -apple-system, system-ui, sans-serif; font-weight: 800; }
.awning-warn .cb { width: 18px; height: 18px; min-height: 0; align-self: center; }
/* The shop header in item view opens that shop's whole list (owner, 8 Oct 2026). */
.ss-card .awning[data-action] { cursor: pointer; }
.ss-card .awning[data-action] .store-name::after { content: ' ›'; opacity: .7; }
.ss-card .ss-art[data-action] { cursor: pointer; }
/* A warning on the item it is about (owner, 8 Oct 2026): a small badge on the item's corner in the shop. */
.ss-art { position: relative; }
.ss-art .row-warn { position: absolute; top: -4px; right: -4px; display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px; background: rgba(255,248,234,.92); box-shadow: 0 1px 3px rgba(40,25,5,.3); pointer-events: none; z-index: 2; }
.pk-qty .row-warn { display: inline-flex; align-self: center; gap: 2px; margin-left: 4px; }
.row-warn .cb { display: grid; place-items: center; width: 17px; height: 17px; aspect-ratio: 1 / 1; padding: 0; font-size: 10px; line-height: 1; box-shadow: none; font-family: -apple-system, system-ui, sans-serif; }
.row-warn .cb-price-up { background: #9c6238; } .row-warn .cb-taken { background: #a55e4a; font-size: 9px; }   /* −1 4.62:1 (14 Oct 2026) */ .row-warn .cb-ending { background: #a5483a; }
/* The amount a source pays: one pill on the bottom edge of its card, centred; Adjust puts − and + beside it
   without moving it (owner, 8 Oct 2026). The old pill on the card face and the stepper row are retired. */
.pk-face .pk-pay { display: none !important; }
.pk-adj { position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%); z-index: 3; display: block; }
.pk-adj .pk-amt { display: inline-block; padding: 1px 9px; border-radius: 999px; background: rgba(20,14,8,.78); color: #fff8ea; font-size: calc(13px * var(--t, 1)); font-weight: 800; line-height: 1.35; white-space: nowrap; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.pk-adj .pk-amt.zero { background: rgba(20,14,8,.45); }
.pk-adj button { position: absolute; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border: 0; border-radius: 50%; background: #fff8ea; color: #2f2a24; font: inherit; font-size: 18px; font-weight: 800; line-height: 1; display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.3); cursor: pointer; }
.pk-adj button::after { content: ""; position: absolute; inset: -9px; }
.pk-adj .step-less { right: 100%; margin-right: 6px; } .pk-adj .step-more { left: 100%; margin-left: 6px; }
.pk-adj button:disabled { opacity: .45; cursor: default; }
.pk-adj { bottom: -10px; z-index: 6; }
.pk-adj .pk-amt { min-width: 3.6em; text-align: center; box-sizing: border-box; }
/* The pill sits on the card strip's bottom edge, half hanging off it (owner, 8 Oct 2026); the card itself stays clipped
   so its face never shows behind the next one. With Adjust on, a cream pill sits behind − amount +. */
.pocket-mode .pk-slot { position: relative; }
.pk-adj { top: var(--vis, 26cqw); bottom: auto; transform: translate(-50%, -50%); }
.pocket-mode .pk-slot.cash .pk-adj { top: var(--vis, 24cqw); }
.pk-adj.open { display: flex; align-items: center; gap: 6px; padding: 3px; border-radius: 999px; background: rgba(255,248,234,.94); box-shadow: 0 1px 4px rgba(40,25,5,.3); }
.pk-adj.open button { position: static; transform: none; margin: 0; box-shadow: none; background: #efe3c8; }
/* Owner, 8 Oct 2026: the − amount + group never reaches the card below — room under each card, the group's top half
   on the card's edge; a lighter backing; Adjust at the card's bottom right beside Pay; item badges never clipped. */
.pocket-mode .pocket.collapsed .pk-slot { padding-bottom: 14px; }
.pocket-mode .pocket.adjusting .pk-slot { padding-bottom: 26px; }
.pk-adj { transform: translate(-50%, -45%); }
.pk-adj.open { background: rgba(255,248,234,.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); box-shadow: 0 1px 3px rgba(40,25,5,.18); }
.pk-adj.open button { background: rgba(255,248,234,.92); }
.ss-card.expanded { position: relative; }
.ss-card .pk-adjust { position: absolute; right: 12px; bottom: 10px; z-index: 4; margin: 0; }
.ss-art .row-warn { top: 1px; right: 0; }
.ss-card .pk-adjust { bottom: 4px; }
.pocket-mode .pocket.collapsed .pk-slot { padding-bottom: 22px; }   /* clear of the card below (owner, 8 Oct 2026) */
.pocket-mode .pocket.adjusting .pk-slot { padding-bottom: 30px; }
/* Cash: the note is drawn shorter than its slot, so the pill sits on the note's own bottom edge (owner, 8 Oct 2026). */
.pocket-mode .pocket .pk-slot.cash .pk-adj { top: min(calc(var(--vis, 24cqw) - 4px), 34cqw); }
/* The room under each card grows with the text size, so a bigger pill never reaches the next card (owner, 8 Oct 2026). */
.pocket-mode .pocket.collapsed .pk-slot { padding-bottom: calc(24px * var(--t, 1)); }
.pocket-mode .pocket.adjusting .pk-slot { padding-bottom: calc(32px * var(--t, 1)); }
/* Opening (owner, 8 Oct 2026): the back of Cue's head and ears at the foot of the picture, looking at the cottage;
   the winter list in the same labelled dock as in play. */
.cue-back-wrap { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.cue-back { position: absolute; left: 50%; bottom: 0; width: 46%; transform: translate(-50%, 56%); animation: fadeIn var(--t-scene) ease both; }
@media (prefers-reduced-motion: reduce) { .cue-back { animation: none; } }
.intro-items.listed { inset: auto 4% 4% 4%; display: block; padding: 9px 10px 11px; border-radius: 18px; background: #2b2520; box-shadow: 0 8px 20px rgba(40,25,5,.3); }
.intro-items.listed .dock-label { margin: 0 0 8px 4px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,248,234,.78); text-align: left; }
.intro-items.listed .dl-month { font-style: normal; color: #f2c14e; }
.intro-items.listed .ii-row { display: flex; justify-content: space-between; gap: 3%; }
.intro-items.listed .ii-row span { width: 18%; }
.intro-jar.plain .jar-line, .intro-jar.plain .jar-lbl, .intro-jar.plain .jar-tick { display: none; }
/* Tap a non-green buy for why (owner, 8 Oct 2026). */
.chip .chip-info { position: absolute; top: 4px; right: 4px; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,248,234,.92); color: #6b3a1c; font: 800 10.5px/1 Georgia, serif; font-style: italic; box-shadow: 0 1px 2px rgba(40,25,5,.3); }
.grade-dialog .warn-top img { border-radius: 14px; background: #fbf1d8; padding: 8px; }
.grade-dialog .wd-row.better { background: #e4f1e1; }

/* ===== Audit fixes, 8 Oct 2026 (planc/AUDIT_FIXES_2026-10-08.md) ===== */
/* F7: while the Menu button shows, a toast sits just under it, never over it. */
.phone:has(#menu-top:not(.away)) .toast { top: calc(max(10px, var(--sai-top)) + 48px) !important; }
/* "Tap to skip": quiet words over the scene during the first Pays of a year; fades, never pops. */
#skip-hint { position: absolute; left: 50%; z-index: 8; margin: 0; transform: translateX(-50%); padding: 4px 12px; border-radius: 999px; background: rgba(251,241,216,.86); color: #6d6254; font-size: calc(12.5px * var(--t, 1)); font-weight: 700; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .4s ease; }
#skip-hint.on { opacity: 1; }
/* With Adjust on, the group hangs mostly below the card so it never covers the card's expiry line (owner, 8 Oct 2026). */
.pocket.adjusting .pk-adj.open { transform: translate(-50%, -18%); }
/* Notice cards replace the coloured toasts (owner, 8 Oct 2026): a cream paper card in the game's look, under the Menu,
   with a small picture for what it is about, a short title and one line. A thin accent bar is the only colour. */
.toast.notice-card:not([hidden]) { display: flex; align-items: center; gap: 12px; left: 14px !important; right: 14px !important; padding: 10px 14px 10px 10px; border-radius: 16px; background: #fff8ea; color: #2f2a24; text-align: left; box-shadow: 0 6px 18px rgba(40,25,5,.28), inset 0 0 0 1.5px rgba(138,106,31,.22); outline: 1.5px dashed rgba(107,86,54,.28); outline-offset: -6px; border-left: 5px solid #c9a24a; }
.toast.notice-card[data-kind="judge-risk"] { border-left-color: #c98a3a; }
.toast.notice-card[data-kind="judge-bad"] { border-left-color: #a5483a; }
.toast.notice-card[data-kind="judge-ok"], .toast.notice-card[data-kind="trophy"] { border-left-color: #4f8a5e; }
.notice-card .nc-vis { flex: none; width: 48px; height: 48px; display: grid; place-items: center; }
.notice-card .nc-vis img { width: 48px; height: 48px; object-fit: contain; }
.notice-card .nc-medal { width: 48px; height: 48px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #fff3d0, #e9d3a0); display: grid; place-items: center; overflow: hidden; }
.notice-card .nc-medal img { width: 44px; height: 44px; }
.notice-card .nc-face { width: 48px; height: 48px; border-radius: 50%; background: #f3e6c8; overflow: hidden; display: grid; place-items: end center; }
.notice-card .nc-face img { width: 46px; height: 46px; object-fit: contain; object-position: bottom; }
.notice-card .nc-i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #efe3c8; color: #6b5636; font: italic 800 16px/1 Georgia, serif; }
/* A trophy is just the trophy (owner, 12 Oct 2026: "just the trophy part, not a whole banner"): the medal alone, centred
   under the top edge, popping in; its words stay in the live region for VoiceOver, out of sight. */
.toast.notice-card[data-kind="trophy"]:not([hidden]) { left: 50% !important; right: auto !important; width: 84px; height: 84px; margin-left: -42px; padding: 0; justify-content: center; border: 0; border-radius: 50%; background: none; box-shadow: none; outline: 0; pointer-events: none; }
.toast.notice-card[data-kind="trophy"] .nc-vis { width: 84px; height: 84px; }
.toast.notice-card[data-kind="trophy"] .nc-medal { width: 84px; height: 84px; box-shadow: 0 6px 16px rgba(40,25,5,.3), 0 0 0 3px #fff8ea, 0 0 0 5px rgba(201,162,74,.7); animation: ncTrophyPop .55s cubic-bezier(.2,1.4,.4,1) both; }
.toast.notice-card[data-kind="trophy"] .nc-medal img { width: 76px; height: 76px; }
.toast.notice-card[data-kind="trophy"] .nc-body { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
@keyframes ncTrophyPop { from { transform: scale(.55); opacity: 0; } 60% { transform: scale(1.06); opacity: 1; } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .toast.notice-card[data-kind="trophy"] .nc-medal { animation: none; } }
.phone.reduced .toast.notice-card[data-kind="trophy"] .nc-medal { animation: none; }
.notice-card .nc-meter { position: relative; width: 46px; height: 10px; border-radius: 999px; background: #e6dcc6; box-shadow: inset 0 0 0 1px rgba(60,40,10,.15); }
.notice-card .nc-meter .nc-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: #4f8a5e; }
.notice-card .nc-meter.judge-risk .nc-fill { background: #c98a3a; } .notice-card .nc-meter.judge-bad .nc-fill { background: #a5483a; }
.notice-card .nc-meter .nc-flag { position: absolute; top: -6px; width: 2px; height: 22px; background: #2f2a24; border-radius: 1px; }
.notice-card .nc-meter .nc-flag::after { content: ''; position: absolute; left: 2px; top: 0; width: 8px; height: 6px; background: #2f2a24; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.notice-card .nc-body { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.notice-card .nc-title { font-family: var(--display); font-size: calc(15px * var(--t, 1)); font-weight: 700; line-height: 1.2; color: #2f2a24; }
.notice-card .nc-text { font-size: calc(13.5px * var(--t, 1)); line-height: 1.3; color: #4a3a22; }
.phone .toast.notice-card, .phone:has(#counter:not([hidden])) .toast.notice-card { left: 12px !important; right: 12px !important; width: auto !important; box-sizing: border-box; }
/* The expiry date tucked right under the "left" pill, its right edge in line (owner, 8 Oct 2026), clear of the amount pill below. */
.pk-top .pk-stack { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.pk-top .pk-stack .pk-left { margin-left: 0; }
.pocket-mode .pk-face .pk-stack .pk-exp { position: static; top: auto; right: auto; line-height: 1.15; }
/* One alignment for every item row (owner, 8 Oct 2026: "what are the items/text/qty aligned to?").
   Shop view: a fixed picture column (picture, its price tag right under it, both centred) and a text column whose
   name and boxes share one left edge. Item view: the name, picture, price and boxes share one centre line. */
.store.ss-card.sellershop .ss-line { display: grid !important; grid-template-columns: 64px minmax(0, 1fr) !important; grid-template-areas: 'art text' !important; column-gap: 12px !important; row-gap: 0 !important; align-items: start !important; }
.store.ss-card.sellershop .ss-art { grid-area: art; width: 64px !important; height: auto !important; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.store.ss-card.sellershop .ss-art img { width: 50px; height: 50px; object-fit: contain; position: static; }
.store.ss-card.sellershop .ss-art .price-tag { position: static !important; transform: none !important; margin: 0; }
.store.ss-card.sellershop .ss-art .row-warn { top: -4px; right: 2px; }
.store.ss-card.sellershop .ss-q { grid-area: text; display: flex !important; flex-direction: column; align-items: flex-start !important; gap: 6px; text-align: left; padding-top: 2px; }
.store.ss-card.sellershop .ss-q .ss-name { text-align: left; margin: 0; }
.store.ss-card.sellershop .ss-q .qbox-row, .store.ss-card.sellershop .ss-q .qty-row { justify-content: flex-start; margin: 0; }
.store.ss-card.itemshop .ss-items { display: flex; flex-direction: column; align-items: center; text-align: center; }
.store.ss-card.itemshop .pk-item-name, .store.ss-card.itemshop .ss-items .ss-name { text-align: center; align-self: center; }
.store.ss-card.itemshop .pk-qty { justify-content: center; align-self: center; flex-wrap: wrap; }
.store.ss-card.itemshop .pk-qty .qbox-row { justify-content: center; }
/* The expiry date hangs under the "left" pill without taking room from the shop's name. */
.pk-top .pk-stack { position: relative; display: block; }
.pocket-mode .pk-face .pk-stack .pk-exp { position: absolute; top: 100%; right: 0; margin-top: 2px; white-space: nowrap; }
.store.ss-card.itemshop .ss-line.pk-item { display: flex !important; flex-direction: column !important; align-items: center !important; text-align: center; width: 100%; }
.store.ss-card.itemshop .ss-line.pk-item .ss-art { margin: 0 auto !important; align-self: center !important; }
.store.ss-card.itemshop .ss-line.pk-item .pk-qty { display: flex !important; justify-content: center !important; align-items: center; align-self: center !important; margin-left: auto !important; margin-right: auto !important; }
.store.ss-card.itemshop .ss-line.pk-item .qbox-row { justify-content: center !important; }

/* ---- The ending and Home (owner, 8 Oct 2026) -------------------------------------------
   February's settle → the party → the year's last card → Home. One button on each.
   Cue is only ever seen from behind: the upper half of her head and ears, cut off by the
   picture's bottom edge (.cue-back-wrap / .cue-back above). */
.settle .settle-retry.final { display: block; margin: 2px auto 0; min-height: 44px; padding: 6px 12px; border: 0; background: none; color: #2f6e5f; font: inherit; font-size: calc(13px * var(--t, 1)); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.party-pick { gap: 6px; }
.party-pick .party { min-height: 52px; padding: 8px 12px; }
/* The party: every room the same size, the den drawn on its canvas, Cue at the foot. */
.party-stage.cast { height: min(52vh, 480px); aspect-ratio: 1024 / 1536; width: auto; max-width: 100%; }
.party-stage.cast .party-hero { width: 100%; height: 100%; object-fit: cover; }
.party-stage .party-cue { z-index: 2; border-radius: 12px; }
.party-stage.karaoke .party-cue .cue-back { left: 46%; }
/* At the Bash she dances: a slow sway from the shoulders; at karaoke a small bob to the song. */
.party-stage.bash .party-cue .cue-back { transform-origin: 50% 100%; animation: fadeIn var(--t-scene) ease both, cueSway 1.9s ease-in-out infinite alternate; }
.party-stage.karaoke .party-cue .cue-back { animation: fadeIn var(--t-scene) ease both, cueSing 2.6s ease-in-out infinite; }
@keyframes cueSway { from { transform: translate(-50%, 56%) rotate(-3deg); } to { transform: translate(-50%, 55%) rotate(3deg); } }
@keyframes cueSing { 50% { transform: translate(-50%, 54.5%); } }
.phone.reduced .party-stage .party-cue .cue-back { animation: none; }
@media (prefers-reduced-motion: reduce) { .party-stage .party-cue .cue-back { animation: none; } }
.party-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.party-screen > * { flex: none; }
.party-screen h2 { margin: 2px 0 4px; font-family: var(--display); font-size: min(26px, 6vw); line-height: 1.15; text-wrap: balance; }
.party-screen .party-blurb { margin: 0 0 14px; font-size: 16px; }
.party-screen .party-continue { width: min(100%, 340px); margin: 0 auto; }
/* The year's last card: Cue at her spring cottage, four facts, Home. */
.ending-screen { background: radial-gradient(circle at 50% 18%, #fff8e4, #efdfbb); }
.ending-art { position: relative; height: min(40vh, 380px); aspect-ratio: 780 / 1140; max-width: 100%; margin: 0 auto 12px; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 18px rgba(60,40,10,.22); }
.ending-art .ending-hero { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.ending-screen h2 { margin: 0 0 10px; }
.year-done { width: min(100%, 340px); margin: 0 auto 16px; padding: 4px 14px; border-radius: 14px; background: rgba(255,255,255,.7); text-align: left; }
.yd-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; padding: 8px 0; font-size: calc(15px * var(--t, 1)); }
.yd-row + .yd-row { border-top: 1px solid rgba(90,70,40,.14); }
.yd-row span { color: var(--ink-2); }
.yd-row b { text-align: right; }
.ending-screen > .primary { width: min(100%, 340px); margin: 0 auto; }
/* Home: the logo, the three years, today's Daily and two small links. */
.intro.welcome.modes.home .welcome-logo { width: 200px; margin-bottom: 6px; }
.intro.welcome.modes.home h2 { margin: 0 0 4px; }
.intro.welcome.modes.home .mode-card { min-height: 64px; }
.intro.welcome.modes.home .home-daily { margin: 0; }
.home-links { display: flex; justify-content: center; align-items: center; gap: 4px; margin: 6px 0 0; color: #6d6252; }
.home-links .link-btn { min-height: 44px; padding: 6px 12px; border: 0; background: none; color: #2f6e5f; font: inherit; font-size: calc(14px * var(--t, 1)); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
/* Shop view: the price tag hangs on the item's lower right again, overlapping it a little (owner, 9 Oct 2026);
   the single-item card keeps its centred layout. */
.store.ss-card.sellershop .ss-art { position: relative !important; display: block !important; width: 64px !important; height: 56px !important; }
.store.ss-card.sellershop .ss-art img { position: absolute !important; left: 2px; top: 0; width: 50px; height: 50px; }
.store.ss-card.sellershop .ss-art .price-tag { position: absolute !important; right: -8px; bottom: -2px; transform: none !important; z-index: 2; }
/* The amount coming off a card or the cash: brick red with its minus sign, on a small paper tag, not a capsule (owner, 9 Oct 2026). */
.pk-adj .pk-amt.on { background: #fff8ea; color: #8a2a1c; border-radius: 5px; box-shadow: 0 1px 3px rgba(40,25,5,.3), inset 0 0 0 1.5px rgba(138,42,28,.35); }
.pk-adj .pk-amt.zero { background: rgba(255,248,234,.85); color: #6b5f52; border-radius: 5px; box-shadow: inset 0 0 0 1.5px rgba(107,95,82,.25); }
.pocket-mode .store.ss-card.sellershop .ss-art { height: 54px !important; }
.pocket-mode .store.ss-card.sellershop .ss-art img { width: 50px !important; height: 50px !important; object-fit: contain; }
.pocket-mode .store.ss-card.sellershop .ss-art .price-tag { bottom: -2px !important; right: -6px !important; top: auto !important; transform: rotate(-4deg) !important; }

/* Shopkeeper chatter (owner, 9 Oct 2026): one short line beside or above its keeper, tail pointing at them
   (app.js chatFrame places it; --tail is where the tail sits along the edge facing the keeper). Only the ✕
   takes taps: the stage and the panel stay tappable through it. Fades in and out (Web Animations), no bounce. */
.bubble.chat, .shopping .bubble.chat { width: max-content; max-width: min(232px, calc(100% - 32px)); right: auto; padding: 8px 15px 9px; font-size: 14px; line-height: 1.3; font-weight: 600; color: #3a2a14;
  background: rgba(255,253,247,.96) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border: 2px solid rgba(60,40,10,.14);
  pointer-events: none; z-index: 6; animation: none !important; transform: none; transition: none; overflow: visible; }
.bubble.chat .bubble-text { text-wrap-style: balance; }
.bubble.chat .bubble-x { pointer-events: auto; top: -10px; right: -10px; font-size: 11px; }
.bubble.chat .chat-tail { position: absolute; display: block; background: rgba(255,253,247,.96); filter: drop-shadow(0 1.5px 0 rgba(60,40,10,.18)); pointer-events: none; }
.bubble.chat.chat-above .chat-tail { left: calc(var(--tail, 40px) - 9px); bottom: calc(1px - var(--tail-len, 12px)); width: 18px; height: var(--tail-len, 12px); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.bubble.chat.chat-right .chat-tail { left: -12px; top: calc(var(--tail, 20px) - 9px); width: 12px; height: 18px; clip-path: polygon(100% 0, 100% 100%, 0 50%); filter: drop-shadow(-1.5px 0 0 rgba(60,40,10,.18)); }
.bubble.chat.chat-left .chat-tail { right: -12px; top: calc(var(--tail, 20px) - 9px); width: 12px; height: 18px; clip-path: polygon(0 0, 0 100%, 100% 50%); filter: drop-shadow(1.5px 0 0 rgba(60,40,10,.18)); }
#bubble-probe { pointer-events: none !important; left: 0; top: 0; }
/* Pack price (9 Oct 2026; engine/policy.js bill): a paper ribbon beside the price tag, "2 for 🌰6".
   With a full pack ticked it reads "Pack price" in the tag's ink. No motion: it only changes colour. */
.pack-deal { display: inline-block; flex: 0 0 auto; padding: 1px 8px; border: 1px dashed rgba(90,58,20,.5); border-radius: 3px; background: #f6e7b8; color: #5a3a14; font-size: calc(11.5px * var(--t, 1)); font-weight: 800; line-height: 1.35; white-space: nowrap; font-variant-numeric: tabular-nums; box-shadow: 0 1px 1px rgba(0,0,0,.18); }
.pack-deal.on { background: #5a3a14; color: #f6e7b8; border-style: solid; border-color: #5a3a14; }
.store.ss-card.itemshop .ss-line.pk-item .pack-deal { align-self: center; margin-top: -4px; font-size: calc(13px * var(--t, 1)); }
.store.ss-card .ss-q .pack-deal { align-self: flex-start; margin: 1px 0 2px; }
/* The Menu button sits above panels and popups (owner, 9 Oct 2026). */
#menu-top { z-index: 40; }
/* Glass arrows on the shop row (owner, 9 Oct 2026): frosted, round, on the row's middle; hidden where there is no more. */
.versus-wrap { position: relative; }
.versus-wrap .card-arrow { position: absolute; top: 46%; transform: translateY(-50%); z-index: 6; width: 40px; height: 40px; padding: 0; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.65); background: rgba(255,252,245,.38); -webkit-backdrop-filter: blur(10px) saturate(1.6); backdrop-filter: blur(10px) saturate(1.6); box-shadow: 0 4px 14px rgba(40,25,5,.22), inset 0 1px 0 rgba(255,255,255,.7); cursor: pointer; transition: opacity .2s ease; }
.versus-wrap .card-arrow svg { width: 22px; height: 22px; fill: none; stroke: #2f2a24; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.versus-wrap .card-arrow.prev { left: 4px; } .versus-wrap .card-arrow.next { right: 4px; }
.versus-wrap .card-arrow::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; }
.versus-wrap.at-start .card-arrow.prev, .versus-wrap.at-end .card-arrow.next, .versus-wrap.single .card-arrow { opacity: 0; pointer-events: none; }
/* The panel's down caret is a true circle (owner, 9 Oct 2026: oval). */
.sheet-body > .slide-close, .collapse-btn.slide-close { width: 38px !important; height: 38px !important; min-height: 0 !important; min-width: 0 !important; padding: 0 !important; aspect-ratio: 1 / 1; border-radius: 50% !important; box-sizing: border-box; }
/* The Menu is on top of every popup and dialog (owner, 9 Oct 2026). */
#menu-top { z-index: 1000 !important; }
/* The glass arrows a little smaller and out over the card edges, clear of the item pictures. */
.versus-wrap .card-arrow { width: 34px; height: 34px; }
.versus-wrap .card-arrow svg { width: 19px; height: 19px; }
.versus-wrap .card-arrow.prev { left: -6px; } .versus-wrap .card-arrow.next { right: -6px; }
/* Deals (9 Oct 2026; planning/audit-2026-10-05/planc/DEALS_2026-10-09.md): opportunities, so the same round badge as
   the warnings in friendlier tints — a pack "2×" in deep gold, buy 1 get 1 "1+1" in meadow green, a flash sale's bolt
   and the Pays it has left in bright gold with dark ink. Static: nothing pops (no animation on any of them). */
.cb.cb-deal { box-shadow: 0 1px 2px rgba(60,40,10,.3), 0 0 0 1.5px #fbf6ea, inset 0 0 0 1px rgba(255,248,234,.35); font-family: -apple-system, system-ui, sans-serif; font-weight: 800; letter-spacing: -.04em; }
.cb-pack { background: #8a6d1c; color: #fff8ea; font-size: 10px; }
.cb-bogo { background: #487c4d; color: #fff8ea; font-size: 8.5px; }   /* was #4d8452, 4.19:1 under the 1+1; 4.66:1 (14 Oct 2026, copy & a11y audit P2) */
.cb-flash { background: #e0b23c; color: #3b2a06; font-size: 10px; gap: 0; grid-auto-flow: column; }
.cb-flash .cb-bolt { width: 7px; height: 10px; fill: currentColor; display: block; }
.cb-flash .cb-n { font-size: 10px; font-weight: 800; line-height: 1; margin-left: .5px; }
#stall-warn .stall-warn .cb-pack, .row-warn .cb-pack, .awning-deal .cb-pack { background: #8a6d1c; font-size: 9.5px; }
#stall-warn .stall-warn .cb-bogo, .row-warn .cb-bogo, .awning-deal .cb-bogo { background: #487c4d; font-size: 8px; }   /* 4.66:1 (14 Oct 2026) */
#stall-warn .stall-warn .cb-flash, .row-warn .cb-flash, .awning-deal .cb-flash { background: #e0b23c; color: #3b2a06; display: inline-flex; align-items: center; justify-content: center; }
.row-warn .cb-flash .cb-bolt { width: 6px; height: 9px; } .row-warn .cb-flash .cb-n { font-size: 9px; }
/* Surprises (18 Oct 2026; planning/overhaul-2026-10-16/SURPRISES_2026-10-18.md). The "?" mark (the look-out row and the icon
   key only) in the deals' tint; a deal a surprise just started slams onto its stall and its item picture once (scale 1.5 → 1
   with one bounce, 420 ms; Reduce Motion: the global rule above stops every animation, so it appears). The ⚡ inside the
   pill's words is the flash badge at text size. */
.cb-surprise { background: #6f5a9c; color: #fff8ea; font-size: 11px; }
#stall-warn .stall-warn .cb-surprise, .row-warn .cb-surprise { background: #6f5a9c; }
@keyframes cb-slam { 0% { transform: scale(2.2); opacity: 0; } 45% { transform: scale(.88); opacity: 1; } 70% { transform: scale(1.1); } 100% { transform: scale(1); } }
#stall-warn .stall-warn.slam { animation: cb-slam .42s cubic-bezier(.2,.8,.2,1) both; transform-origin: 50% 50%; }
.row-acts .cb.slam, .ss-art .row-acts .cb.slam { animation: cb-slam .42s cubic-bezier(.2,.8,.2,1) both; }
.pay-next .pn-bolt, .pn-row-text .pn-bolt { display: inline-grid; width: 16px; height: 16px; vertical-align: -3px; margin: 0 2px; font-size: 9px; }
.pay-next .pn-bolt .cb-bolt { width: 7px; height: 10px; }
.pay-next-dialog .pn-urgent { margin-bottom: 10px; }
.pay-next-dialog .pn-urgent .pn-row { background: #fbe7b6; }
.row-warn .cb-bogo { font-size: 7.5px; } .row-warn .cb-pack { font-size: 9px; }
/* On the shop's header in the panel, after its name. */
.awning .awning-deal { display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: middle; align-items: center; }
.awning .awning-deal .cb { position: static; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; aspect-ratio: 1 / 1; padding: 0; line-height: 1; box-shadow: 0 0 0 1.5px rgba(255,248,234,.9); }
/* The popup's deal rows: the paper tone of the tag ribbons, a heading over them when warnings come first. */
.warn-dialog .wd-sec { margin: 4px 0 6px; font-size: calc(12.5px * var(--t, 1)); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #6b5420; text-align: left; }
.warn-dialog .wd-row.wd-deal { background: #f3ecd0; box-shadow: inset 0 0 0 1px rgba(90,58,20,.18); }
.warn-dialog .wd-row .cb.cb-deal { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; }
.symbols-dialog .sym-sec { margin: 14px 2px 8px; font-size: calc(12.5px * var(--t, 1)); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #6b5420; }
.sym-row .cb.cb-deal { display: inline-flex; align-items: center; justify-content: center; }
.sym-row .cb-bogo { font-size: 10px; } .sym-row .cb-pack { font-size: 12px; } .sym-row .cb-flash .cb-bolt { width: 9px; height: 13px; }
/* The icon key's last rows (15 Oct 2026): the mark as play draws it (the same classes), a few words beside it. Only the
   pill's placement is undone here (in play it floats over the panel); its look is .pay-next's own. */
.sym-row .cb-flash .cb-n { font-size: 10px; }
.symbols-dialog .sym-list { gap: 4px; }
.symbols-dialog .sym-row { padding: 3px 10px; min-height: 36px; box-sizing: border-box; gap: 10px; }
.symbols-dialog .sym-sec { margin: 8px 2px 4px; }
.symbols-dialog .sym-card .gcw-sm { zoom: .8; }   /* the wallet's own face, a fifth smaller so the key fits 375 × 667 */
.symbols-dialog .sym-row .eq-cap { font-size: calc(14px * var(--t, 1)); }
.symbols-dialog .sym-row .sym-mark { min-width: 32px; }
.sym-row .sym-mark { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 24px; }
.sym-row .eq.sym-words .eq-row { display: none; }
.sym-row .sym-mark .ss-cashonly { margin: 0; }
.sym-row .sym-mark .pay-next { position: static; transform: none; z-index: auto; height: auto; min-height: 30px; max-width: 132px; padding: 4px 10px; font-size: calc(12px * var(--t, 1)); pointer-events: none; }
.sym-row .sym-mark .qbox { width: 28px; height: 28px; }
.intro .lookout li .cb.cb-deal, .intro-twists li .cb.cb-deal { display: inline-flex; align-items: center; justify-content: center; }
/* The tag ribbons: BOGO in green paper, a flash sale in gold with its bolt. Same size as the pack ribbon. */
.pack-deal.bogo-deal { background: #dcebd2; color: #2f5a35; border-color: rgba(47,90,53,.5); }
.pack-deal.bogo-deal.on { background: #2f5a35; color: #eaf3e2; border-color: #2f5a35; }
.pack-deal.flash-deal { display: inline-flex; align-items: center; gap: 4px; background: #f7e3a6; color: #4a3508; border-color: rgba(74,53,8,.5); }
.pack-deal.flash-deal .cb-bolt { width: 7px; height: 10px; fill: currentColor; flex: none; }
/* The flash tag in pictures, one line (owner, 13 Oct 2026): [⚡N] [🌰3] —N buys→ [🌰7], the second tag faded. */
.pack-deal.flash-deal.fd-pic { display: inline-flex; max-width: none; padding: 2px 5px 2px 3px; white-space: nowrap !important; overflow: visible; }
.fd-row { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.fd-row .cb.on-ribbon { margin: 0 1px 0 0 !important; }
.fd-tag { position: relative; display: inline-flex; align-items: center; padding: 0 4px 0 8px; background: #fffaf0; color: #4a3508; font-weight: 800; line-height: 1.35; clip-path: polygon(5px 0, 100% 0, 100% 100%, 5px 100%, 0 50%); filter: drop-shadow(0 1px 0 rgba(74,53,8,.35)); }
.fd-tag::before { content: ''; position: absolute; left: 4px; top: 50%; width: 3px; height: 3px; margin-top: -1.5px; border-radius: 50%; background: rgba(74,53,8,.5); }
.fd-tag.was { opacity: .68; }
.fd-then { display: inline-grid; justify-items: center; color: #6b5636; line-height: 1; }
.fd-then small { font-size: calc(9px * var(--t, 1)); font-weight: 800; line-height: 1; white-space: nowrap; }
.fd-then svg { width: 18px; height: 8px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* A ribbon never runs past the shop line's column: it wraps instead (a flash sale with several Pays left). */
.store.ss-card .ss-q .pack-deal { max-width: 100%; white-space: normal; }

/* The intro's two windows share one height (P1-7, 9 Oct 2026): view/app.js introHeight sets min-height; the
   button keeps to the foot so the shorter window doesn't leave a gap under it. */
.intro.fixed-h { display: flex; flex-direction: column; }
.intro.fixed-h > * { flex: none; }
.intro.fixed-h > .primary.wide:last-child { margin-top: auto; }
/* Hit areas of 44 (P1-16, 9 Oct 2026); the visuals are unchanged. Stall badges: 24 px faces, −10 px each way.
   The shop arrows: 34 px faces, −5 px. A tick box alone in its row: the full 44 × 44 around its face. Boxes that
   share a row stand 25 px apart, so they keep the share of the row they have (half the gap each side); 44 there
   would need a wider row. */
#stall-warn .stall-warn::before { left: -10px; right: -10px; top: -10px; bottom: -10px; }
.versus-wrap .card-arrow::after { inset: -5px; }
.store.shopcard .qbox:only-child::after, .pocket-mode .store.ss-card .qbox:only-child::after { left: calc((100% - 44px) / 2); right: calc((100% - 44px) / 2); }
/* The item card's lone box (deals depth, 10 Oct 2026): it can sit flush with the line's right edge (June's pot), where
   a hit area centred on it ran 2 px past the line; the 44 px reach toward the price tag instead (24 px padding box). */
.pocket-mode .store.ss-card .ss-line.pk-item .pk-qty .qbox:only-child::after { left: -18px; right: -2px; }
/* Two boxes in a row: spread to a 44 px pitch (22 px faces, 22 px apart) so each reaches 44 without claiming its
   neighbour's face. Three or more keep the row's share. */
.store.shopcard .qbox-row:has(> .qbox:first-child:nth-last-child(2)), .pocket-mode .store.ss-card .qbox-row:has(> .qbox:first-child:nth-last-child(2)) { gap: max(3px, calc(44px - var(--qb, 22px))); }
.store.shopcard .qbox-row:has(> .qbox:first-child:nth-last-child(2)) > .qbox::after, .pocket-mode .store.ss-card .qbox-row:has(> .qbox:first-child:nth-last-child(2)) > .qbox::after { left: calc((100% - 44px) / 2); right: calc((100% - 44px) / 2); }
/* The settle fits the screen (P0-1, 9 Oct 2026: 971 px on a Perfect March, 1316 at year end, in 844). Cuts, not a
   new layout: the month's trophies are one row of medals and names; the party picker is one row of names; a month
   that kept its best has no "Try the month again" (nothing to improve); and the den picture gives up height first
   (down to 190 px, the jar and stamp scale with it) when the rest still needs the room. Order and look unchanged. */
.settle-trophies.compact { margin: 2px 0 4px; }
.settle-trophies.compact .st-h { display: none; }
.settle-trophies.compact .st-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; }
.settle-trophies.compact .st-chip { gap: 6px; padding: 3px 10px 3px 4px; border-radius: 999px; }
.settle-trophies.compact .st-chip b { font-size: calc(12.5px * var(--t, 1)); white-space: nowrap; }
.settle-trophies.compact .st-chip .tr-medal:has(img) { width: 32px; height: 32px; }
.party-pick.compact { margin: 2px 0 8px; gap: 6px; }
.party-pick.compact h3 { margin: 0; font-size: 16px; }
.party-pick.compact .pp-row { display: flex; gap: 6px; }
.party-pick.compact .party { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 6px 4px; justify-content: center; text-align: center; }
.party-pick.compact .party-text { align-items: center; }
.party-pick.compact .party-text b { font-size: calc(14px * var(--t, 1)); }
.settle:has(#review .rv-stamp) .settle-retry { display: none; }
.settle .home-wrap.stage { flex: 0 1 calc(min(100vw - 36px, 372px) * 900 / 1024); min-height: 190px; width: auto; max-width: min(100%, 372px); align-self: center; aspect-ratio: 1024 / 900; }
.settle > :nth-last-child(1 of :not(.primary.wide, .game-over, .settle-retry, .settle-daily, .review-pop, .key-pop, [hidden])) { margin-bottom: 12px; }
.rv-receipt .rv-best-in { margin-top: 4px; padding-top: 4px; border-top: 1px dashed var(--line); }
.rv-receipt .rv-best-in b { font-size: 15px; }
/* The round ▾ caret floats over the panel's top-right corner (P2-18, 9 Oct 2026): the awning's name and badges are
   centred in the part the caret leaves clear. */
#sheet:has(.slide-close) .store.shopcard .awning, #sheet:has(.slide-close) .store.ss-card .awning { padding-right: 46px; }
/* The hint tag stays inside the screen's edge (P2-16, 9 Oct 2026: it ran 7 px past it). */
.next-tag { right: 2px; }
/* The deal's badge on its ribbon in a keeper's shop (P2-19, 9 Oct 2026). */
.pack-deal .cb.on-ribbon { position: static; display: inline-grid; place-items: center; width: 17px; height: 17px; margin: 0 5px 0 -2px; padding: 0; border-radius: 50%; vertical-align: -3px; font-size: 9px; line-height: 1; color: #fff; box-shadow: none; font-family: -apple-system, system-ui, sans-serif; }
.pack-deal .cb-pack.on-ribbon { background: #8a6d1c; } .pack-deal .cb-bogo.on-ribbon { background: #487c4d; font-size: 7.5px; }   /* 4.66:1 (14 Oct 2026) */
.pack-deal .cb-flash.on-ribbon { background: #e0b23c; color: #3b2a06; display: inline-flex; align-items: center; justify-content: center; width: auto; min-width: 17px; padding: 0 3px; border-radius: 999px; }
.pack-deal .cb-flash.on-ribbon .cb-bolt { width: 6px; height: 9px; fill: currentColor; } .pack-deal .cb-flash.on-ribbon .cb-n { font-size: 9px; }
/* The drawer (10 Oct 2026: back after the party; audit 10 Oct fault 5). One quiet paper screen: the year's
   unspent cards tumble out, then the total, then off the mountain (one fact, its source, one CardCue line), one button.
   It never scrolls: at most six tiles (markup.js DRAWER_MAX), and the gaps tighten on short screens. */
.overlay[data-kind="drawer"] { background: #000; align-items: stretch; padding-top: 0; }
.drawer-screen { width: 100%; height: 100%; overflow: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: calc(24px + var(--sai-top)) 20px calc(20px + env(safe-area-inset-bottom)); text-align: center; background: linear-gradient(180deg, var(--paper-2), #e3d3b0); }
.drawer-screen > * { flex: none; }
.drawer-screen h2 { margin: 0 0 6px; font-family: var(--display); font-weight: 700; font-size: min(26px, 6vw); line-height: 1.15; }
.drawer-intro { margin: 0 0 4px; font-size: calc(15px * var(--t, 1)); color: var(--ink-2); }
.drawer-cards { list-style: none; margin: 10px auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 330px; }
.drawer-card { display: grid; justify-items: center; align-content: start; gap: 3px; width: 96px; animation: drawerTumble var(--t-large) var(--e-enter) both; animation-delay: calc(min(var(--i), 10) * 350ms + 450ms); }   /* 140 → 350 ms per card (14 Oct 2026, one at a time) */
.drawer-card .gc { filter: grayscale(.85) brightness(.95); }
.drawer-card small { font-size: 11px; color: var(--ink-2); font-weight: 700; }
.drawer-more span { display: grid; place-items: center; --face-w: 96px; width: var(--face-w); height: calc(var(--face-w) / var(--card-face-aspect)); border-radius: 8px; border: 1.5px dashed rgba(90,70,40,.35); font-weight: 800; font-size: 14px; color: var(--ink-2); }
@keyframes drawerTumble { from { opacity: 0; transform: translateY(-60px) rotate(-14deg); } 70% { opacity: 1; transform: translateY(4px) rotate(1.5deg); } to { opacity: 1; transform: none; } }
.drawer-total { margin: 4px auto 0; max-width: 320px; font-size: calc(18px * var(--t, 1)); font-weight: 800; color: var(--red-ink); animation: fadeIn var(--t-medium) ease both; animation-delay: calc(min(var(--i), 10) * 350ms + 800ms); }   /* one gap after the last card (14 Oct 2026) */
.drawer-empty { margin: 8px auto 0; max-width: 320px; font-size: calc(17px * var(--t, 1)); font-weight: 800; color: var(--accent); }
.drawer-empty span { color: var(--gold-deep); font-size: 22px; }
.drawer-screen .real-world { width: min(100%, 340px); margin: 18px auto 16px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.62); text-align: left; font-size: calc(14px * var(--t, 1)); line-height: 1.38; animation: fadeIn var(--t-medium) ease both; animation-delay: calc(min(var(--i), 10) * 350ms + 1150ms); }   /* one gap after the total (14 Oct 2026) */
.real-world h3 { margin: 0 0 6px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.real-world p { margin: 0; }
.real-world .real-fact { font-weight: 800; }
.real-world .real-source { font-weight: 600; font-size: .86em; color: var(--ink-2); white-space: nowrap; }
.real-world .real-cardcue { margin-top: 6px; color: var(--ink); }
.drawer-screen > .primary { width: min(100%, 340px); margin: 0 auto; min-height: 48px; }
@media (max-height: 700px) { .drawer-cards { margin: 6px auto; gap: 8px; } .drawer-screen .real-world { margin: 12px auto 12px; } .drawer-screen { padding-top: calc(16px + var(--sai-top)); } }
.drawer-screen > button.primary { animation: fadeIn var(--t-medium) ease both; animation-delay: calc(min(var(--i, 0), 10) * 350ms + 1500ms); }   /* the button last, one gap after the fact (14 Oct 2026) */
.phone.reduced .drawer-card, .phone.reduced .drawer-total, .phone.reduced .drawer-screen .real-world, .phone.reduced .drawer-screen > button.primary { animation: none; }
@media (prefers-reduced-motion: reduce) { .drawer-card, .drawer-total, .drawer-screen .real-world, .drawer-screen > button.primary { animation: none; } }

/* The Pay preview (10 Oct 2026; planning/audit-2026-10-05/planc/PAY_PREVIEW_2026-10-10.md): one quiet line under the
   capsule, what this Pay changes for the rest of the month. Paper on the panel, never a tap target; its room under
   the capsule is always kept (app.js syncFloatPay), so the capsule never moves when the line comes or goes. It tucks
   2 px under the capsule, attached to it, and stays clear of the list dock (11 Oct 2026). */
.float-pay .fp-next { position: absolute; left: 50%; top: calc(100% - 2px); transform: translateX(-50%); white-space: nowrap; max-width: calc(100vw - 28px); overflow: hidden; text-overflow: ellipsis; padding: 1px 9px 2px; border-radius: 999px; background: rgba(251,246,234,.97); color: #4a4036; font-size: calc(11px * var(--t, 1)); font-weight: 700; line-height: 1.25; box-shadow: 0 1px 3px rgba(30,40,30,.22); pointer-events: none; }
/* The review's rows share the month's shortfall (10 Oct 2026): a row that lost acorns ends in its share. */
.review .rv-line.trail-row { grid-template-columns: 24px minmax(0, 1fr) auto auto; }
.review .trail-row .trail-loss { font-size: calc(11px * var(--t, 1)); font-weight: 800; color: #9a4a2c; white-space: nowrap; }
.review .trail-row .trail-loss .money { white-space: nowrap; }
@media (max-height: 700px) { .review-pop .review .rv-line.trail-row { grid-template-columns: 20px minmax(0, 1fr) auto auto; } }
/* The row's colour is its share of the shortfall (10 Oct 2026): it wins over the leaf and coin stripes (the glyphs stay). */
.review .rv-line.trail-row.grade-green { box-shadow: inset 3px 0 0 #4f9a5e, 0 1px 2px rgba(60,40,10,.12); }
.review .rv-line.trail-row.grade-yellow { box-shadow: inset 3px 0 0 #d9b44a, 0 1px 2px rgba(60,40,10,.12); }
.review .rv-line.trail-row.grade-orange { box-shadow: inset 3px 0 0 #e08a3c, 0 1px 2px rgba(60,40,10,.12); }
.review .rv-line.trail-row.grade-red { box-shadow: inset 3px 0 0 #c65a3a, 0 1px 2px rgba(60,40,10,.12); }
.review .trail-key { display: block; }

/* ---- 44 pt taps, 7-row Menu (10 Oct 2026) ---- */
/* A sub-page's head: Back, the title centred, an empty slot the width of Back (one exit per page, P1-20). */
.dialog-head.sub { display: grid; grid-template-columns: minmax(64px, 1fr) auto minmax(64px, 1fr); align-items: center; gap: 8px; }
.dialog-head.sub > :first-child { justify-self: start; }
.dialog-head.sub h2 { text-align: center; }
.dialog-head.sub .ghost.small { min-height: 44px; min-width: 64px; }
/* Symbols as the Lessons list's last row; Trophies as Your year's last row. */
.lessons-list .sym-link { margin-top: 6px; }
.record-dialog .rec-trophies { margin-top: 12px; }
/* Ways to play holds Start a new year (the Menu row "New year or mode"). */
.intro.welcome.modes .modes-restart { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; margin: 0 0 8px; border: 0; border-radius: 12px; background: var(--card, #fffdf6); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--red-ink, #8a3a2c); font: inherit; font-weight: 800; font-size: calc(15px * var(--t, 1)); cursor: pointer; }
.intro.welcome.modes .modes-restart.sure { box-shadow: inset 0 0 0 2px var(--red, #c7362b); }
.intro.welcome.modes .modes-restart .mr-icon { flex: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Trophies: a keeper who has come to market can be met here (the stage's Meet tag shows in three months only). */
.tk.meetable .portrait { filter: grayscale(.35) opacity(.85); }
.tk.meetable { box-shadow: inset 0 0 0 1.5px rgba(217,180,74,.7); }
/* 44 pt (P1-16, 10 Oct 2026). The glass arrow's hit area reaches 44 even where the panel edge clips its right side. */
.versus-wrap .card-arrow::after { inset: -6px; }
.versus-wrap .card-arrow.next::after { left: -12px; }
/* A shop's awning (tap: shop there) is 33 px tall in the item view; its hit area runs 44 down into the card's top. */
.store.shopcard .awning[data-action] { position: relative; }
.store.shopcard .awning[data-action]::after { content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: min(0px, calc(100% - 44px)); }
/* Tick boxes at any count (P1-16 residual, 10 Oct 2026): every box wears a 44×44 hit square centred on it, and a
   row spaces its boxes 44 apart, centre to centre, wrapping as the column allows. A group of three or four 28 or
   22 px boxes restacks two (or three) to a row instead of squeezing to a 25–33 px pitch. The boxes keep their size. */
.pocket-mode #sheet .store.ss-card .qbox-row { --qb: 28px; display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; column-gap: calc(44px - var(--qb)) !important; row-gap: calc(44px - var(--qb)) !important; }
.pocket-mode #sheet .store.ss-card.sellershop.many-items .ss-q .qbox-row { --qb: 22px; }
.pocket-mode #sheet .store.ss-card .ss-line.pk-item .pk-qty .qbox-row.grid { display: grid !important; grid-template-columns: repeat(var(--cols, 3), 28px); }
.pocket-mode #sheet .store.ss-card .qbox::after, .pocket-mode #sheet .store.ss-card .qbox:only-child::after, .pocket-mode #sheet .store.ss-card .ss-line.pk-item .pk-qty .qbox:only-child::after { top: calc((100% - 44px) / 2) !important; bottom: calc((100% - 44px) / 2) !important; left: calc((100% - 44px) / 2) !important; right: calc((100% - 44px) / 2) !important; }
/* Adjust sat 10 px off the card's clipped foot, so its hit area lost 4 px there; the square now grows upward. */
.ss-card .pk-adjust::after { top: -20px; bottom: 0; }
/* A card in the register (tap: tick a box first) is at least 44 tall. */
.pocket-mode #sheet .pk-slot .pk-card { min-height: 44px !important; }
/* Lines in a keeper's shop sit 6 px apart (was 2), so one line's boxes and the next line's keep whole 44 px squares. */
.pocket-mode #sheet .store.ss-card.sellershop .ss-items { row-gap: 6px; }
/* The item column clips its content; a box on its last line lost the foot of its hit square. The clip box now
   reaches 10 px further down without moving anything (padding in, the same margin out). */
.pocket-mode #sheet .store.ss-card .ss-items { padding-bottom: 10px; margin-bottom: -10px; }
/* A price tag beside the boxes never takes their taps (it is part of the item picture, which stays tappable). */
.pocket-mode #sheet .store.ss-card .ss-art .price-tag { pointer-events: none; }
/* In the item view the floating Pay overlaps the card's foot: a box's square sits 4 px higher there (still 44). */
.pocket-mode #sheet .store.ss-card .ss-line.pk-item .pk-qty .qbox::after, .pocket-mode #sheet .store.ss-card .ss-line.pk-item .pk-qty .qbox:only-child::after { top: calc((100% - 44px) / 2 - 4px) !important; bottom: calc((100% - 44px) / 2 + 4px) !important; }
/* The item column's clip box also reaches 10 px to the right (a box at the column's edge lost its square there). */
.pocket-mode #sheet .store.ss-card .ss-items { padding-right: 10px; margin-right: -10px; }
/* The ▾ moves left of the Menu when the panel's top would put it under the Menu button (app.js caretClear). */
#sheet.caret-left .sheet-body > .slide-close { right: 62px; }
.pocket-mode #sheet .store.ss-card.sellershop.many-items .ss-items { row-gap: 8px; }   /* 22 px boxes need 22 px between lines */
.bubble .bubble-x { z-index: 3; }   /* its 44-pt square sits over the bubble's own text (which also taps) */
/* In a keeper's shop the item column can be the card's tallest (February's eight hay boxes): its last boxes keep
   their squares clear of the card's foot and the floating Pay (10 px of real room under the column). */
.pocket-mode #sheet .store.ss-card.sellershop .ss-items { margin-bottom: 0; padding-bottom: 12px; }
/* ===== 10 Oct 2026: arrows off the pictures; a short phone's keeper shop fits (planning/audit-2026-10-05/planc/LIFECYCLE_CHECKS_2026-10-10.md) ===== */
/* The glass arrows sit on the cards' bottom edge, beside the floating Pay, clear of every item picture (the left one
   covered 1–3 px of the second card's picture, leaving it 41–43 × 54). Nothing else lives in those two corners. */
.pocket-mode .versus-wrap.pocket-wrap { --wrap-pb: 36px; }
.pocket-mode .versus-wrap.pocket-wrap .card-arrow { top: auto; bottom: calc(var(--wrap-pb) - 17px); transform: none; }
/* 375 × 667, a real year: February's shops scrolled 107 px and their Pay sat 91 px under the list (every shop of a
   month shares the tallest card's height). Compacted, not redesigned, on short phones only: a line of three or more
   boxes puts its boxes under the picture and the name, four to a row on the same 44 px grid (hay ×8: two rows, not
   four), each square whole (the picture's row is 44 tall, the boxes' squares sit 11 px clear of it); a deal's pill
   gets its own row under a short line; the list's chips are a little smaller and, while a shop is open, the list's
   title steps out. Every square stays 44 × 44 (layout-check.cjs sweeps them). */
@media (max-height: 740px) {
  /* (11 Oct 2026: the lines of three or more boxes no longer put their boxes under the picture; three to a row,
     close together, fit beside it. See the end of the file.) */
  .pocket-mode #sheet .store.ss-card.sellershop .ss-line:has(.pack-deal):not(:has(.qbox-row > .qbox:nth-child(3))) { grid-template-columns: 64px minmax(0, 1fr) !important; grid-template-areas: none !important; row-gap: 4px !important; }
  .pocket-mode #sheet .store.ss-card.sellershop .ss-line:has(.pack-deal):not(:has(.qbox-row > .qbox:nth-child(3))) .ss-q { display: contents !important; }
  .pocket-mode #sheet .store.ss-card.sellershop .ss-line:has(.pack-deal):not(:has(.qbox-row > .qbox:nth-child(3))) .ss-art { grid-column: 1; grid-row: 1 / span 2; }
  .pocket-mode #sheet .store.ss-card.sellershop .ss-line:has(.pack-deal):not(:has(.qbox-row > .qbox:nth-child(3))) .ss-name { grid-column: 2; grid-row: 1; }
  .pocket-mode #sheet .store.ss-card.sellershop .ss-line:has(.pack-deal):not(:has(.qbox-row > .qbox:nth-child(3))) .qty-line { grid-column: 2; grid-row: 2; }
  .pocket-mode #sheet .store.ss-card.sellershop .ss-line:has(.pack-deal):not(:has(.qbox-row > .qbox:nth-child(3))) .pack-deal { grid-column: 1 / -1; grid-row: 3; margin: 0 0 0 11px !important; }
  #board .list-row .chip { min-height: 70px; }
  #board .list-row .chip img { width: 40px; height: 40px; }
  #phone.shopping #board .list-row .dock-label { display: none; }
  .pocket-mode .versus-wrap.pocket-wrap { padding-bottom: 22px; --wrap-pb: 22px; }
  .ss-card .pk-adjust::after { top: calc(100% - 44px); }   /* the slimmer Adjust (24 px) still has its 44: it was 66 × 43 */
  /* The settle card: June with two medals and the Daily link scrolled 31 px (August, October, December 11–15). The
     picture of home may give a little more of its height (190 → 150 px at the least). */
  .settle .home-wrap.stage { min-height: 150px; }
}
/* 375 × 667: April's and May's lessons scrolled 34 and 11 px, Ways to play 27 px (its Back under the screen's foot).
   The keeper's picture, the logo and the mode cards' padding give the room. */
@media (max-height: 740px) {
  .lesson .lesson-hero { width: 84px; height: 84px; margin: 0 auto 4px; }
  .lesson .lesson-hero img { width: 78px; height: 78px; }
  .lesson .lesson-beats { gap: 5px; }
  .intro.welcome.modes:not(.home) .welcome-logo { width: 124px; }
  .intro.welcome.modes:not(.home) .mode-cards { gap: 8px; margin: 6px 0 8px; }
  .intro.welcome.modes:not(.home) .mode-card { padding: 9px 12px; }
}

/* ===== Presentation pass (10 Oct 2026) ===== */
/* Readable card faces (P2-21/23 art pass; accessibility 8 Oct: Mallow's name was 3.3:1). The shop's short name sits
   on a printed band in a deeper shade of its own card colour, the way the expiry sits on its paper band, above the
   card's sheen and pattern, so the brand's lifted ink reads at 4.5:1 or more on every card. Pip's dark ink on orange
   gets a light band instead. The band adds no height: same line box as before. */
.gc .gc-name, .pk-face .pk-name { position: relative; z-index: 1; flex: 0 1 auto; width: fit-content; max-width: 100%; box-sizing: border-box; padding: 0 .3em; border-radius: 3px;
  background: var(--plate, color-mix(in srgb, var(--b) 52%, #140d07)); color: var(--ib, var(--i)); text-shadow: none; }
[style*="--b:#D8832F" i] { --plate: color-mix(in srgb, var(--b) 38%, #fff4e2); }
.gc .gc-exp { position: relative; z-index: 1; }
/* The party lights (view/app.js partyLights) run on the party screen's own scope; under Reduce Motion, the game's own
   setting included, the lights are one still frame and the disco ball hangs still. */
.phone.reduced .disco-ball { animation: none; }

/* The Meet card's ✕ (owner, 10 Oct 2026): its one exit, top right like the other panels' Close, a 44-pt round
   ghost button. The keeper's picture and bubble keep clear of it. */
.meet-dialog .meet-x { position: absolute; top: 10px; right: 10px; z-index: 2; width: var(--tap); height: var(--tap); min-height: var(--tap); padding: 0; border-radius: 50%; display: grid; place-items: center; color: var(--ink); }
.meet-dialog .meet-x svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.meet-dialog .meet-top { padding: 0 40px; }
.meet-dialog .meet-extra { margin-bottom: 4px; }

/* Wallet dock chips (owner, 10 Oct 2026: "the acorn to the left of the amount, not above it"). The old wallet
   dialog's `.wallet-row span` column rule reached the amount's own .money span in the dock and stacked the acorn
   over the number; here it is one line again, like the meter's chip. */
.listbar.wallet-mode .money { display: inline-flex; flex: none; flex-direction: row; align-items: center; gap: .04em; }

/* ===== CardCue Pro (owner, 10 Oct 2026) ===== */
/* The wordmark: the lockup PNG cropped by its background to "CardCue Pro" alone (source rect 651,300 1206×200 of
   1916×821, as the share card crops it, P0-5), so the pika face beside it never shows: Cue is only ever seen from
   behind. Sized by its height (--ccp-h); the width follows the crop's 1206:200. Percentages keep the crop right at
   any pixel size (the bundle's WebP copy included). */
.ccp-mark { --ccp-h: 16px; display: inline-block; flex: none; height: var(--ccp-h); width: calc(var(--ccp-h) * 6.03); vertical-align: middle;
  background: url(assets/art/brand/cardcuepro-lockup.webp) 91.69% 48.31% / 158.87% auto no-repeat; font-style: normal; }
/* The launch card: under the Odds & Dens title, "A [CardCue Pro] edu-tainment experience", fading in with the title.
   The card leaves with a fade (view/app.js boot), never a cut. */
.loading .ccp-line { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 7px; max-width: 340px; margin: -38px auto 24px; color: var(--ink-2); font-size: 15px; font-weight: 600; line-height: 1.3; letter-spacing: .01em; }
.loading .ccp-line .ccp-mark { --ccp-h: 18px; margin-top: 1px; }   /* the logo PNG has ~64 px of clear paper under its banner at 390 wide: the line tucks up into it */
.loading #loading-logo, .loading #loading-title, .loading .ccp-line { animation: ccp-in .7s cubic-bezier(.2,.8,.2,1) both; }
.loading .ccp-line { animation-delay: .12s; }
@keyframes ccp-in { from { opacity: 0; } to { opacity: 1; } }
.loading { transition: opacity .42s ease; }
.loading.leaving { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .loading #loading-logo, .loading #loading-title, .loading .ccp-line { animation: none; } .loading { transition: none; } }
/* The year's last card: one quiet sign-off under Home. */
.ending-screen .ccp-signoff { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px 0 0; color: var(--ink-2); font-size: calc(12.5px * var(--t, 1)); font-weight: 600; letter-spacing: .02em; }
.ending-screen .ccp-signoff .ccp-mark { --ccp-h: 14px; }
/* The Menu's main page: the wordmark, small and quiet, under the last row (not a button: nothing to tap). Inside the
   app the footer is the way back, "Back to" and the wordmark, a full-width 44-pt ghost button. */
.menu-dialog .ccp-foot { display: flex; justify-content: center; margin: 12px 0 0; opacity: .72; pointer-events: none; }
.menu-dialog .ccp-foot .ccp-mark { --ccp-h: 13px; }
.menu-dialog .menu-app { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: var(--tap, 44px); }
.menu-dialog .menu-app .ccp-mark { --ccp-h: 15px; }
/* The shameless plug (a keeper holds up a card, deadpan; view/app.js plugTick): the ordinary chat bubble with a
   little CardCue-blue card in the keeper's paw and a ✦ that glints a few times. The bubble behaves like any other:
   it fades, its ✕ closes it, taps pass through it. */
.bubble.chat .plug-card { display: inline-grid; place-items: center; --face-w: 22px; width: var(--face-w); height: calc(var(--face-w) / var(--card-face-aspect)); margin: 0 6px 0 0; vertical-align: -2px; border-radius: 3.5px;
  background: linear-gradient(160deg, #14a3ff, #5b2bf5); box-shadow: 0 1px 0 rgba(30,20,90,.35), inset 0 0 0 1px rgba(255,255,255,.35); transform: rotate(-8deg); }
.bubble.chat .plug-card::after { content: ''; width: 12px; height: 2px; border-radius: 1px; background: rgba(255,255,255,.8); transform: translateY(3px); }
.bubble.chat .plug-shine { position: absolute; left: -7px; top: -10px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,253,247,.98); box-shadow: 0 1.5px 0 rgba(60,40,10,.18), 0 0 10px rgba(255,205,90,.55); color: #d3961a; font-size: 15px; line-height: 1; pointer-events: none; animation: plug-glint 1.1s ease-in-out 3 both; }
@keyframes plug-glint { 0% { transform: scale(.6) rotate(-25deg); } 40% { transform: scale(1.22) rotate(18deg); } 70% { transform: scale(.92) rotate(0deg); } 100% { transform: scale(1) rotate(0deg); } }
.phone.reduced .bubble.chat .plug-shine { animation: none; }
@media (prefers-reduced-motion: reduce) { .bubble.chat .plug-shine { animation: none; } }

/* ---- Good-call nods and the month's best to chase (11 Oct 2026; planning/audit-2026-10-05/planc/NODS_AND_BEST_2026-10-10.md) ---- */
/* The nod: a small paper tag over the keeper, the symbol and a tick, then the fact. Lighter than the Brilliant stamp:
   smaller, under it in the stack, no stamp-down. Absolutely placed, untappable; the view fades it under Reduce Motion. */
.nod-tag { position: absolute; z-index: 41; transform: translate(-50%, 0) rotate(-3deg); display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 6px; border-radius: 9px; background: #fff8ea; border: 2px solid var(--nod, #2f6e5f); box-shadow: 0 3px 10px rgba(60,40,10,.28); pointer-events: none; white-space: nowrap; color: var(--ink); }
.nod-tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: rgba(60,40,10,.28); box-shadow: inset 0 1px 1px rgba(0,0,0,.25); }   /* the tag's string hole */
.nod-tag b { font-size: calc(13.5px * var(--t, 1)); font-weight: 800; line-height: 1.15; letter-spacing: .005em; }
.nod-tag .nod-mark { display: inline-flex; align-items: center; gap: 2px; }
.nod-tag .nod-mark .cb { width: 21px; height: 21px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.nod-tag .nod-mark .cb-bogo { font-size: 8.5px; } .nod-tag .nod-mark .cb-pack { font-size: 10.5px; } .nod-tag .nod-mark .cb-taken { font-size: 10px; } .nod-tag .nod-mark .cb-ending { font-size: 12.5px; }
.nod-tag .nod-mark .cb-flash .cb-bolt { width: 8px; height: 12px; }
.nod-tag .nod-tick { font-style: normal; font-weight: 900; font-size: 14px; line-height: 1; color: #2f6e5f; }
.nod-tag.nod-flash { --nod: #d9a92f; } .nod-tag.nod-bogo { --nod: #4d8452; } .nod-tag.nod-pack { --nod: #8a6d1c; }
.nod-tag.nod-shopper { --nod: #b84f31; } .nod-tag.nod-nibble { --nod: #c97220; } .nod-tag.nod-card { --nod: #b3361f; } .nod-tag.nod-route { --nod: #2f6e5f; padding-left: 8px; }
.nod-tag.nod-route .nod-mark { display: none; }

/* The month's best on a retry: a faint gold second flag beside the goal, its words under the bar to the right of the
   pole (the saved pill rides above the bar, so they never meet). */
.kmh .kmh-best.chase { position: absolute; top: var(--bt, 13px); width: 0; height: 0; }
.kmh .kmh-best.chase::before { display: none; }
.kmh .kmh-best.chase .kmh-flag { position: absolute; width: 16px; height: 16px; left: -3.4px; top: calc(var(--bh) + 2px - 16px); color: var(--gold); opacity: .7; filter: drop-shadow(0 0 1px var(--ink)); }
.kmh .kmh-best.chase small, .score-bar.meter-only .kmh-best.chase small, .kmh.big .kmh-best.chase small, .kmh.near-best .kmh-best.chase small { display: block; position: absolute; left: 1px; right: auto; top: calc(var(--bh) + 2px); bottom: auto; font-size: 9px; font-weight: 800; letter-spacing: .03em; text-transform: none; line-height: 1; white-space: nowrap; color: var(--gold); opacity: .85; }

/* The settle card's "Best possible" line: a cream pill on the den picture's top edge, like the quiet stamp. */
.settle .home-wrap.stage .review.card .rv-invite { position: absolute; top: -15px; left: 0; right: 0; margin: 0 auto; width: max-content; max-width: calc(100% - 20px); display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 14px; border-radius: 999px; background: #fff8ea; box-shadow: 0 1px 4px rgba(60,40,10,.2); text-align: center; }
.settle .home-wrap.stage .review.card .rv-invite b { display: block; padding: 0; background: none; box-shadow: none; font-size: 14.5px; line-height: 1.15; font-weight: 800; color: var(--ink); }
.settle .home-wrap.stage .review.card .rv-invite small { font-size: 10.5px; line-height: 1.2; font-weight: 600; color: #6d6254; }
/* 14 Oct 2026 (audit F4): the "Best possible" pill rises 15 px over the den; a dead-card sentence above it leaves that room, so the two stack. */
/* 14 Oct 2026 (layout audit #8): the wallet dialog's Close sits left of the Menu ☰ (as the panel's ⌄ does), portrait only. */
html:not(.aspect-wide) .overlay[data-kind="wallet"] .dialog-head > .ghost.small, html:not(.aspect-wide) .overlay[data-kind^="info:"] .dialog-head > .ghost.small { margin-right: 46px; }   /* the info popups' Close too (14 Oct 2026, 375×667 sweep: it sat under the Menu ☰) */
/* The review's good calls: one quiet line under the receipts. */
.review .rv-calls { justify-content: center; text-align: center; font-size: 12.5px; font-weight: 700; color: #2f6e5f; }

/* ============================================================================
   One motion system (transition pass, 11 Oct 2026; planning/audit-2026-10-05/planc/TRANSITIONS_2026-10-11.md).
   Four kinds of transition, one set of durations and curves (view/app.js MOTION has the same numbers):
     overlay  a popup over play: the dim eases in and the card rises into place (380 ms); out, it sinks (240 ms).
              The Menu grows out of its own button, top right, and shrinks back into it; the game behind dims and
              softens.
     page     the Menu's pages: a push slides the next page in from the right, a pop from the left (160 ms out,
              320 ms in); the dim and the soft focus hold.
     scene    a paper screen and the world: the page turns up and away like a calendar leaf (860 ms) to show the new
              month; it tips back on a retry; it comes down over the market when the month ends (600 ms). The month's
              name settles as the page clears.
     panel    the shop panel and the docked panels slide from the dock (420 ms; unchanged).
   Only transform and opacity move (the dim's colour is the one backdrop that eases). Reduce Motion: every kind is a
   short crossfade (view/app.js, Web Animations), nothing moves.
   ============================================================================ */
:root {
  --m-out: 240ms; --m-overlay: 380ms; --m-page-out: 160ms; --m-page-in: 320ms; --m-panel: 420ms;
  --m-leaf: 860ms; --m-cover: 600ms; --m-settle: 700ms;
  --e-paper: cubic-bezier(.5,.05,.3,1);   /* the leaf: slow off the table, then away */
}
@keyframes mRise { from { opacity: 0; transform: translateY(18px) scale(.97); } 55% { opacity: 1; } }
@keyframes mSink { to { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes mPushIn { from { opacity: 0; transform: translateX(36px); } 70% { opacity: 1; } }
@keyframes mPopIn { from { opacity: 0; transform: translateX(-36px); } 70% { opacity: 1; } }
@keyframes mSettle { from { opacity: 0; transform: translateY(-8px) scale(1.06); } }
@keyframes mDot { 0% { transform: scale(.3); } 60% { transform: scale(1.35); } 100% { transform: none; } }

/* overlay: popups */
.overlay.ov-in { animation: ovIn var(--m-overlay) ease-out both; }
.overlay.ov-out { animation: ovOut var(--m-out) ease-in both; pointer-events: none; }
.overlay.ov-in .intro, .overlay.ov-in > .game-over-card, .overlay.ov-in > .impossible { animation: mRise var(--m-overlay) var(--e-enter) both; }
.overlay.ov-out .intro, .overlay.ov-out > .game-over-card, .overlay.ov-out > .impossible { animation: mSink var(--m-out) var(--e-exit) both; }
.overlay.ov-in .sheet-dialog { animation: dlgUp var(--m-overlay) var(--e-enter) both; }
.overlay.ov-out .sheet-dialog { animation: dlgDown var(--m-out) var(--e-exit) both; }
.overlay.ov-out[data-kind="opening"] > *, .overlay.ov-out[data-kind="settle"] > * { animation: fadeOut var(--m-out) ease both; }
.overlay[data-kind="tips"].ov-in .sheet-dialog { animation: dlgDownIn var(--m-overlay) var(--e-enter) both; }
.overlay[data-kind="tips"].ov-out .sheet-dialog { animation: dlgUpOut var(--m-out) var(--e-exit) both; }
.overlay.ov-in.ov-held { animation: none; }
.overlay.ov-busy { pointer-events: none; }
/* 14 Oct 2026 (robustness audit): the opening's Skip and Back stay live through the 420 ms beat (a Skip right after Continue was a dead button) */
.overlay.ov-busy :is([data-action="opening-skip"], [data-action="opening-back"]) { pointer-events: auto; }
/* 14 Oct 2026 (motion audit): the settle held under the Menu (view/app.js holdScreen) stays put below the fresh overlay the Menu opens in */
.overlay.held-screen { z-index: 19; pointer-events: none; }
/* docked panels keep their slide from the dock, at the panel's pace */
.overlay.docked.ov-in .sheet-dialog { animation-duration: var(--m-panel); }
.overlay.docked.ov-out { animation-duration: var(--m-panel); }
.overlay.docked.ov-out .sheet-dialog { animation: dlgDown var(--m-panel) var(--e-exit) both; }

/* overlay: the Menu. Its pages are cards anchored in the top-right corner, where the Menu button sits; the button is
   the card's corner (and its ✕ while the Menu is open). The game behind dims and softens. */
.overlay.ov-menu { align-items: flex-start; justify-content: center; padding: calc(max(10px, var(--sai-top)) - 4px) 8px 8px;
  background: rgba(36,28,18,.16); -webkit-backdrop-filter: blur(3px) saturate(.9); backdrop-filter: blur(3px) saturate(.9); }   /* .42 → .16 with the look's menu profile (owner, 11 Oct 2026) */
.overlay.ov-menu > .sheet-dialog { border-radius: 22px; max-height: 100%; padding-top: 4px; padding-bottom: 14px;
  box-shadow: 0 18px 44px rgba(30,20,8,.34), 0 0 0 1px rgba(60,40,10,.07); transform-origin: calc(100% - 24px) 26px; }
.overlay.ov-menu > .sheet-dialog > .dialog-head { min-height: 44px; }
.menu-dialog .menu-head .dh-spacer { flex: none; width: 44px; height: 44px; }
.menu-dialog .menu-head h2 { padding-left: 2px; }
@keyframes mVeilIn { from { background-color: rgba(36,28,18,0); -webkit-backdrop-filter: blur(0px) saturate(1); backdrop-filter: blur(0px) saturate(1); } }
@keyframes mVeilOut { to { background-color: rgba(36,28,18,0); -webkit-backdrop-filter: blur(0px) saturate(1); backdrop-filter: blur(0px) saturate(1); } }
@keyframes mGrow { from { opacity: 0; transform: translateY(-28px); } 45% { opacity: 1; } }   /* a slide down from the top, no grow (owner, 13 Oct 2026) */
@keyframes mShrink { 60% { opacity: 1; } to { opacity: 0; transform: translateY(-28px); } }
.overlay.ov-menu.ov-in:not(.ov-held) { animation: mVeilIn var(--m-overlay) ease-out both; }
.overlay.ov-menu.ov-out { animation: mVeilOut var(--m-out) ease-in both; }
.overlay.ov-menu.ov-in:not(.ov-held) > .sheet-dialog { animation: mGrow var(--m-overlay) var(--e-enter) both; }
.overlay.ov-menu.ov-out > .sheet-dialog { animation: mShrink var(--m-out) var(--e-exit) both; }
.overlay.ov-menu.ov-out > .intro.welcome.modes { animation: fadeOut var(--m-out) ease both; }
/* the Menu button: ☰ while closed, ✕ while the Menu is open (its three strokes turn; no size change) */
#menu-top svg path { transform-box: view-box; transform-origin: 12px 12px; transition: transform var(--m-overlay) var(--e-enter), opacity var(--m-out) ease; }
#menu-top[aria-expanded="true"] .mt-a { transform: translateY(5px) rotate(45deg); }
#menu-top[aria-expanded="true"] .mt-b { opacity: 0; transform: scaleX(.2); }
#menu-top[aria-expanded="true"] .mt-c { transform: translateY(-5px) rotate(-45deg); }
#menu-top:active { transform: scale(.94); }
/* the launch card and a reload: the Menu button waits for the screen under it */
.phone:has(#loading:not([hidden]):not(.leaving)) #menu-top, .phone.reloading #menu-top { opacity: 0; pointer-events: none; }

/* page: inside the Menu (and the opening's and the intro's page turns) */
.overlay.ov-in.ov-held.ov-push > *, .overlay.ov-in.ov-held.ov-push > .sheet-dialog, .overlay.ov-in.ov-held.ov-push > .intro { animation: mPushIn var(--m-page-in) var(--e-enter) both; }
.overlay.ov-in.ov-held.ov-pop > *, .overlay.ov-in.ov-held.ov-pop > .sheet-dialog, .overlay.ov-in.ov-held.ov-pop > .intro { animation: mPopIn var(--m-page-in) var(--e-enter) both; }
/* the opening's pages: the words turn, the picture fades in its frame */
.overlay[data-kind="opening"].ov-in.ov-held:is(.ov-push, .ov-pop) > .opening { animation: fadeIn var(--m-page-in) ease both; }
.overlay[data-kind="opening"].ov-in.ov-held.ov-push .opening :is(.headline, .caption) { animation: mPushIn var(--m-page-in) var(--e-enter) both; }
.overlay[data-kind="opening"].ov-in.ov-held.ov-pop .opening :is(.headline, .caption) { animation: mPopIn var(--m-page-in) var(--e-enter) both; }

/* scene: the leaf. A sheet of the screen's own paper over the world (z 25: over every screen, under the launch card
   and the Menu button). It turns about its top edge, and darkens a little as it turns from the light. */
/* Only the phone's own children (11 Oct 2026): "leaf" is also the review's leaf-row class (.rv-line.trail-row.leaf,
   .trail-mark.leaf), and an unscoped .leaf blew such a row up over the whole ⓘ popup. :where keeps it at class weight. */
:where(#phone) > .leaf { position: absolute; inset: 0; z-index: 25; pointer-events: none; background: var(--paper); backface-visibility: hidden; will-change: transform, opacity; }
.overlay.leaf { z-index: 25; pointer-events: none; }
.leaf-lift, .leaf-cover, .leaf-top { transform-origin: 50% 0; }
.leaf-drop { transform-origin: 50% 100%; }
.leaf.leaf-top { z-index: 1001; }   /* a reload's cover: over the Menu button too */
.loading.leaf { z-index: 30; transform-origin: 50% 0; }
.leaf > .leaf-shade { position: absolute; inset: 0; z-index: 99; pointer-events: none; opacity: 0; background: linear-gradient(180deg, rgba(40,28,14,.05), rgba(40,28,14,.5)); }
.leaf-drop > .leaf-shade { background: linear-gradient(0deg, rgba(40,28,14,.05), rgba(40,28,14,.5)); }
.leaf-cover { box-shadow: 0 10px 30px rgba(30,20,8,.25); }
/* scene: the new screen under the leaf. Its dim is already there (held); its card rises as the page clears, and the
   month's name and its dot on the year strip settle in last. */
.overlay.ov-scene > .intro { animation: mRise 520ms var(--e-enter) 300ms both; }
.overlay.ov-scene > .sheet-dialog { animation: dlgUp var(--m-overlay) var(--e-enter) 260ms both; }
.overlay.ov-scene:is([data-kind="party"], [data-kind="drawer"], [data-kind="ending"], [data-kind="home"]) > * { animation: fadeIn var(--t-large) ease 200ms both; }
.overlay.ov-scene .intro :is(.eyebrow, #intro-title, #payday-title) { animation: mSettle var(--m-settle) var(--e-enter) 460ms both; }
.overlay.ov-scene .ys-dot.now { animation: mDot 560ms var(--e-enter) 820ms both; }
/* a retry: the page tipped back; the same month comes back without the settling (it is not news) */
.overlay.ov-scene-drop .intro :is(.eyebrow, #intro-title, #payday-title), .overlay.ov-scene-drop .ys-dot.now { animation: none; }

/* Reduce Motion: no CSS motion at all (the crossfades are Web Animations in view/app.js) */
@media (prefers-reduced-motion: reduce) { #menu-top svg path { transition: none; } #menu-top:active { transform: none; } }
.phone.reduced #menu-top svg path { transition: none; }
@media (prefers-reduced-transparency: reduce) { .overlay.ov-menu { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(36,28,18,.55); } }
/* after a cover the paper is already down: the settle's pictures and words come up on it a little quicker */
.overlay.ov-in.ov-held[data-kind="settle"] > *, .overlay.ov-in.ov-held[data-kind="opening"] > * { animation: fadeIn 560ms ease 100ms both; }
/* the opening's pages dissolve (view/app.js): the new page is already in place under the fading old one; its picture
   only fades if it is still arriving, and its words turn in from the side once the old words have gone */
.leaf-dissolve { z-index: 25; }
.overlay[data-kind="opening"].ov-in.ov-held.ov-dissolve > .opening, .overlay.ov-dissolve .opening .opening-art { animation: none; }
.overlay.ov-dissolve .opening .opening-art canvas { animation: fadeIn 240ms ease both, kenBurns 18s var(--e-move) both; }
.overlay[data-kind="opening"].ov-in.ov-held.ov-dissolve.ov-push .opening :is(.headline, .caption) { animation: mPushIn var(--m-page-in) var(--e-enter) 110ms both; }
.overlay[data-kind="opening"].ov-in.ov-held.ov-dissolve.ov-pop .opening :is(.headline, .caption) { animation: mPopIn var(--m-page-in) var(--e-enter) 110ms both; }
/* the Menu arriving over a popup or a paper screen (after a swap, over the held dim) grows from its button too */
.overlay.ov-menu.ov-in.ov-held:not(.ov-push):not(.ov-pop) > .sheet-dialog { animation: mGrow var(--m-overlay) var(--e-enter) both; }
/* the settle's ⓘ review and answer key: the same popup motion as the rest (they close in view/app.js) */
.review-pop { animation: rpIn var(--m-overlay) ease-out both; }
.review-pop .rp-card { animation: mRise var(--m-overlay) var(--e-enter) both; }
.review-pop.held { animation: none; }
.review-pop.held .rp-card { animation: mPushIn var(--m-page-in) var(--e-enter) both; }
/* the intro's page turn: the card that stays while its pages change (view/app.js; under the pages, over the dim) */
.overlay > .turn-frame { position: absolute; z-index: -1; margin: 0; pointer-events: none; background: var(--card); box-shadow: 0 12px 36px rgba(30,20,8,.35); animation: none !important; }
.overlay[data-kind="intro"].ov-in.ov-held:is(.ov-push, .ov-pop) > .intro { box-shadow: none; }
.overlay[data-kind="intro"].ov-in.ov-held:is(.ov-push, .ov-pop) > .intro { animation: fadeIn 280ms ease both; }

/* ===== The look's post pass (phase A, 11 Oct 2026; view/post.js, content/look.js) =====
   #world-post and #actors-post are the graded copies of #scene and #actors, at the same place and z. While the post
   pass runs (.look-post) the sources stay drawn but hidden; the UI above is never touched. */
#world-post { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; display: none; }
#actors-post { position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none; display: none; will-change: transform; }
.look-post #world-post, .look-post #actors-post { display: block; }
.look-post #scene, .look-post #actors { visibility: hidden; }
/* the game before the look (the Backstage look panel's "today") */
.look-legacy .overlay.ov-menu { background: rgba(36,28,18,.42); }

/* ===== Fill-to tick boxes, three to a row (owner, 11 Oct 2026: "three per row, and the distance from the 1st row
   to the 2nd row of boxes needs to be reduced") =====
   The boxes keep their size (28 px; 22 in a keeper's shop with many items) and sit 5 px apart both ways, three to a
   row at most. Each keeps its 44 × 44 square (centred, as before); neighbours' squares now overlap, and app.js
   nearestBox sends a tap in an overlap to the box whose centre is nearest. A keeper's shop with a line of three or more
   boxes gives its pictures 50 px (was 64) and 8 px beside it (was 12), so three boxes fit beside it down to
   375 px wide. */
.pocket-mode #sheet .store.ss-card .qbox-row { column-gap: 5px !important; row-gap: 5px !important; max-width: calc(3 * var(--qb, 28px) + 10px); }
.pocket-mode #sheet .store.ss-card .ss-line.pk-item .pk-qty .qbox-row.grid { gap: 5px !important; max-width: none; }
.pocket-mode #sheet .store.ss-card.sellershop:has(.qbox-row > .qbox:nth-child(3)) .ss-line { grid-template-columns: 50px minmax(0, 1fr) !important; column-gap: 8px !important; }   /* every line of that shop, so the names line up */
.pocket-mode #sheet .store.ss-card.sellershop:has(.qbox-row > .qbox:nth-child(3)) .ss-line .ss-art { width: 50px !important; }   /* its picture, tag and warning keep to the 50 px column, clear of the name */
.pocket-mode #sheet .store.ss-card.sellershop:has(.qbox-row > .qbox:nth-child(3)) .ss-items { row-gap: 9px; }   /* a first-column box's square stays clear of the next line's picture */
.pocket-mode #sheet .store.ss-card.sellershop.many-items:has(.qbox-row > .qbox:nth-child(3)) .ss-items { row-gap: 13px; }   /* 22 px boxes: their squares reach 11 px under them */

/* ---- Picture rows (owner, 11 Oct 2026: "use the symbols, list item images, etc. to teach … instead of blocks of
   text"; markup.js eqRow). The game's own pieces at one calm size: items, the paper price tag, the badges, card faces,
   Pika Cash, keeper faces. One row, a few words under it; nothing animates. */
.eq { display: grid; justify-items: start; gap: 3px; min-width: 0; }
.eq-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 5px; min-height: 32px; }
.eq-cap { font-size: calc(13.5px * var(--t, 1)); font-weight: 700; line-height: 1.25; color: #3b2c14; text-align: left; }
.eq-say { display: block; margin-top: 1px; font-size: calc(13px * var(--t, 1)); font-weight: 500; line-height: 1.3; color: #5a4a30; text-align: left; text-wrap: pretty; }   /* the picture's sentence (owner, 12 Oct 2026) */
.eq-itemw { position: relative; flex: none; display: inline-grid; }
.eq-item { width: 30px; height: 30px; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(60,40,10,.22)); }
.eq-any { flex: none; width: 24px; height: 24px; margin: 3px; border-radius: 6px; border: 2px dashed rgba(107,86,54,.55); background: #fffaf0; }
.eq-tag { position: relative; flex: none; display: inline-flex; align-items: center; padding: 2px 7px 2px 12px; background: #f6e7b8; color: #5a3a14; font-size: calc(13px * var(--t, 1)); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; clip-path: polygon(7px 0, 100% 0, 100% 100%, 7px 100%, 0 50%); transform: rotate(-5deg); filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
.eq-tag::before { content: ''; position: absolute; left: 5px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: rgba(90,58,20,.55); }
.eq-op { flex: none; min-width: 10px; text-align: center; font-size: 18px; font-weight: 800; line-height: 1; color: #6b5636; }
.eq-or { flex: none; width: 1.5px; height: 26px; margin: 0 4px; border-radius: 1px; background: rgba(107,86,54,.32); }
.eq-then { flex: none; display: inline-grid; justify-items: center; gap: 0; color: #6b5636; }
.eq-then small { font-size: calc(10.5px * var(--t, 1)); font-weight: 800; line-height: 1.1; white-space: nowrap; }
.eq-then svg { width: 24px; height: 10px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.eq-left, .eq-need { flex: none; padding: 2px 7px; border-radius: 999px; background: #efe3c4; color: #4a3a22; font-size: calc(12px * var(--t, 1)); font-weight: 800; line-height: 1.2; white-space: nowrap; font-variant-numeric: tabular-nums; }
.eq-need { background: #fbf6ea; box-shadow: inset 0 0 0 1.5px rgba(107,86,54,.3); }
.eq-face { flex: none; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; object-position: 50% 14%; background: #fbf1d8; box-shadow: inset 0 0 0 1.5px rgba(107,86,54,.22); }
.eq-card { position: relative; flex: none; display: inline-grid; }
.eq-card .gcw-xs { margin: 0 0 .45em; }
.eq-card > .cb { position: absolute; top: -5px; right: -6px; width: 16px; height: 16px; font-size: 11px; }
.eq-cash { position: relative; flex: none; display: inline-grid; justify-items: center; }
.eq-cash img { width: 40px; height: auto; display: block; filter: drop-shadow(0 1px 1px rgba(60,40,10,.25)); }
.eq-cash-n { margin-top: -6px; padding: 0 5px; border-radius: 6px; background: #fff8ea; color: #2f2a24; font-size: 10.5px; font-weight: 800; box-shadow: 0 1px 2px rgba(60,40,10,.2); }
.eq-anycard { position: relative; flex: none; --face-w: 40px; width: var(--face-w); height: calc(var(--face-w) / var(--card-face-aspect)); border-radius: 4px; background: linear-gradient(#b9a37a 0 30%, #efe3c4 30%); box-shadow: 0 1px 2px rgba(60,40,10,.3); }
.eq-mark { position: absolute; right: -6px; bottom: -5px; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 900; font-style: normal; color: #fff8ea; box-shadow: 0 0 0 1.5px #fbf6ea; }
.eq-mark.ok { background: #4d8452; } .eq-mark.no { background: #b24a3a; }
.eq-itemw .eq-mark { right: -4px; bottom: -3px; }
.eq-tick { flex: none; width: 18px; height: 18px; border-radius: 4px; display: grid; place-items: center; background: #fffaf0; box-shadow: inset 0 0 0 1.5px rgba(37,94,74,.55); color: #fff; font-size: 11px; font-weight: 900; font-style: normal; }
.eq-tick.on { background: #2f6b55; box-shadow: none; }
.eq-acorn { flex: none; font-size: 22px; color: #6b4a1e; }
.eq .cb { flex: none; width: 22px; height: 22px; font-size: 12px; }
.eq .cb.cb-deal { display: inline-flex; align-items: center; justify-content: center; }
.eq-card > .cb.cb-ending { width: 16px; height: 16px; font-size: 11px; }
/* where they sit */
.warn-dialog .wd-body { display: grid; gap: 6px; min-width: 0; }
.warn-dialog .wd-body > b { line-height: 1.25; }
.intro .lookout li.with-pic { list-style: none; margin: 0; padding: 9px 12px 8px; border-radius: 10px; background: #fbf1d8; border: 1.5px dashed rgba(138,106,31,.38); box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 2px 6px rgba(60,40,10,.10); }
.intro .lookout li.with-pic:nth-child(odd) { transform: rotate(-.6deg); } .intro .lookout li.with-pic:nth-child(even) { transform: rotate(.5deg); }
.lesson .lesson-beats.pics li { padding-left: 26px; }
.lesson .lesson-beats.pics li::before { top: 6px; }
.lesson .lesson-beats.pics { gap: 9px; }
.lesson .deal-note .eq { margin-top: 2px; }
.sym-row .eq { flex: 1; }
.sym-row .eq-cap { font-size: calc(13.5px * var(--t, 1)); }
.notice .notice-pics { display: grid; justify-items: center; gap: 8px; margin: 0 0 12px; }
.notice .notice-pics .eq { justify-items: center; }
/* picture rows, tightened (11 Oct 2026, after the 390 × 844 shots): a pack as an overlapped stack, the parcel for "any
   item", card faces a size down, and the picture lessons' hero smaller so every beat fits without scrolling */
.eq-row { gap: 3px 4px; }
.eq-item { width: 28px; height: 28px; }
svg.eq-any { width: 26px; height: 26px; margin: 1px; border: 0; border-radius: 0; background: none; }
svg.eq-any .p-box { fill: #e8d3a2; stroke: #8a6a3a; stroke-width: 1.4; }
svg.eq-any .p-string { fill: none; stroke: #b0533a; stroke-width: 1.6; }
svg.eq-any .p-bow { fill: #c8644a; stroke: #8a3a28; stroke-width: .8; }
.eq-stack { flex: none; display: inline-flex; }
.eq-stack > * + * { margin-left: -13px; }
.eq-tag { padding: 2px 6px 2px 11px; font-size: calc(12.5px * var(--t, 1)); }
.eq-op { min-width: 8px; font-size: 16px; }
.eq-or { margin: 0 3px; }
.eq-face { width: 30px; height: 30px; }
.eq-facew { position: relative; flex: none; display: inline-grid; }
.eq-card .gcw-xs { zoom: .78; }
.eq-then small { font-size: calc(10px * var(--t, 1)); }
.lesson:has(.lesson-beats.pics) .lesson-hero { width: 84px; height: 84px; margin-bottom: 4px; }
.lesson:has(.lesson-beats.pics) .lesson-hero img { width: 80px; height: 80px; }
.lesson:has(.lesson-beats.pics) h2 { margin-bottom: 8px; }
.lesson .lesson-beats.pics { gap: 7px; margin-bottom: 8px; }
.lesson .lesson-beats.pics li { padding-left: 24px; }
/* Under each picture row, the beat's own sentence (owner, 18 Oct 2026: pictures with a few words read as hieroglyphs): a plain
   line, not a bold label; the deal note's picture carries its note the same way. */
.lesson .lesson-beats.pics .eq-cap, .lesson .deal-note .eq-cap { font-size: calc(14px * var(--t, 1)); font-weight: 600; line-height: 1.3; margin-top: 3px; }
.lesson:has(.lesson-beats.pics) .lesson-example { padding: 14px 10px 6px; }
svg.eq-any .p-box { fill: #e4cf9e; stroke: #7a5a30; stroke-width: 1.3; stroke-linejoin: round; }
svg.eq-any .p-fold { fill: none; stroke: #7a5a30; stroke-width: 1.1; stroke-linejoin: round; opacity: .7; }
svg.eq-any .p-string { fill: none; stroke: #9a7442; stroke-width: 1.5; stroke-linecap: round; }
.eq-stack > * + *, .eq-stack > svg.eq-any + svg.eq-any { margin-left: -13px; }
.intro .lookout li.with-pic { display: grid; gap: 6px; }
.eq-card:not(.exp) .gc-exp:not(.ending) { visibility: hidden; }
.eq .cb.cb-deal { width: 25px; height: 25px; font-size: 10.5px; letter-spacing: -.04em; }
.eq .cb.cb-deal .cb-bolt { width: 8px; height: 11px; }
/* short phones (375 × 667): a picture lesson drops its hero portrait (its keeper is already in the rows) so the beats,
   the trick and the button fit without scrolling */
@media (max-height: 700px) {
  .lesson:has(.lesson-beats.pics) .lesson-hero { display: none; }
  .lesson:has(.lesson-beats.pics) .lesson-example { margin-top: 10px; }
}

/* ---- 12 Oct 2026 (owner): the consequence pill above the panel, the Pay preview on the meter ---------------- */
/* "If you buy this: …" sits just above the panel's top edge, mostly over the scene; an ⓘ (44 pt) when there is more. */
.pay-next { position: absolute; z-index: 6; left: 50%; transform: translateX(-50%); display: flex; align-items: center; max-width: calc(100% - 28px); box-sizing: border-box; min-height: 34px; padding: 6px 14px; border-radius: 999px; background: #fbf1d8; color: #2f2a24; font-size: calc(13.5px * var(--t, 1)); font-weight: 700; line-height: 1.2; box-shadow: 0 0 0 2px rgba(47,42,36,.82), 0 4px 12px rgba(40,25,5,.32); pointer-events: auto; }
.pay-next[hidden] { display: none; }
.pay-next .pn-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pay-next:has(.pn-info) { padding-right: 0; }
.pay-next .pn-info { flex: none; width: 44px; height: 44px; margin: -6px 0 -6px 2px; padding: 0; border: 0; background: none; display: grid; place-items: center; cursor: pointer; }
.pay-next .pn-info i { width: 26px; height: 26px; border-radius: 50%; background: #2f6e5f; color: #fff; display: grid; place-items: center; font: italic 800 15px/1 Georgia, serif; }
.pay-next-dialog h2 { margin: 0 0 10px; }
.pay-next-dialog .pn-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.pay-next-dialog .pn-row { padding: 10px 12px; border-radius: 10px; background: #fbf1d8; text-align: left; font-size: calc(15px * var(--t, 1)); font-weight: 600; line-height: 1.35; color: #2f2a24; }
/* The saved pill's pointer is on its left side; the preview's on its right, so the two always open away from each other. */
.score-bar .kmh .kmh-bar .kmh-mark { left: min(var(--at), calc(100% - 56px)); transform: none; }   /* never under the wallet button */
.score-bar .kmh .kmh-bar .kmh-mark b { position: relative; border-radius: 3px 11px 11px 3px; }
.score-bar .kmh .kmh-bar .kmh-mark b::before { content: ""; position: absolute; left: -2px; top: -5px; bottom: -5px; width: 4px; border-radius: 2px; background: var(--paper); }
.kmh-next { position: absolute; z-index: 2; top: 0; right: clamp(56px, calc(100% - var(--at)), calc(100% - 56px)); transition: right .45s cubic-bezier(.2,.8,.2,1), opacity .22s ease; pointer-events: none; }
.score-bar.meter-only .kmh-next { top: 12px; }
.kmh-next b { position: relative; display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 11px 3px 3px 11px; background: #cfe6f0; color: #1f3d4a; font-size: 13px; font-weight: 800; white-space: nowrap; box-shadow: 0 0 0 2px #2f6f8a, 0 1px 3px rgba(20,40,60,.35); }
.score-bar.meter-only .kmh-next b { font-size: calc(16px * var(--t)); height: 20px; }
.kmh-next::after { content: ""; position: absolute; right: -2px; top: -5px; bottom: -5px; width: 4px; border-radius: 2px; background: #9fd0e4; }
.kmh-next b { transform: translateX(calc(-1 * var(--shift, 0px))); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.kmh-next.apart::before { content: ""; position: absolute; right: 0; top: 50%; width: var(--shift, 0px); height: 2px; margin-top: -1px; background: #9fd0e4; }
.kmh-next.short b { background: #f6d6c6; color: #6b2414; box-shadow: 0 0 0 2px #b3361f, 0 1px 3px rgba(60,20,10,.35); }
.kmh-next.short::after, .kmh-next.short.apart::before { background: #f0b29a; }
.kmh-next.off { opacity: 0; transition: opacity .18s ease; }
.phone.reduced .kmh-next { transition: opacity .18s ease; }
@media (prefers-reduced-motion: reduce) { .kmh-next { transition: opacity .18s ease; } }
/* "Choose a qty first" rests at the foot of the greyed sources, clear of the stock tags. */
.pocket.locked .pk-pick { place-items: end center; padding-bottom: 6px; }
/* The flash tag gets its own row under the picture and the name at every size (owner, 13 Oct 2026: one line at 375 and
   390; beside the picture the column is ~94 px at 390, too narrow for [⚡N] [🌰3] —N buys→ [🌰7]). The same grid the short
   phones already use for a deal's pill. */
.pocket-mode #sheet .store.ss-card.sellershop .ss-line:has(.fd-pic):not(:has(.qbox-row > .qbox:nth-child(3))) { display: grid !important; grid-template-columns: 64px minmax(0, 1fr) !important; grid-template-areas: none !important; row-gap: 4px !important; align-items: start; }
.pocket-mode #sheet .store.ss-card.sellershop .ss-line:has(.fd-pic):not(:has(.qbox-row > .qbox:nth-child(3))) .ss-q { display: contents !important; }
.pocket-mode #sheet .store.ss-card.sellershop .ss-line:has(.fd-pic):not(:has(.qbox-row > .qbox:nth-child(3))) .ss-art { grid-column: 1; grid-row: 1 / span 2; }
.pocket-mode #sheet .store.ss-card.sellershop .ss-line:has(.fd-pic):not(:has(.qbox-row > .qbox:nth-child(3))) .ss-name { grid-column: 2; grid-row: 1; }
.pocket-mode #sheet .store.ss-card.sellershop .ss-line:has(.fd-pic):not(:has(.qbox-row > .qbox:nth-child(3))) .qty-line { grid-column: 2; grid-row: 2; }
.pocket-mode #sheet .store.ss-card.sellershop .ss-line:has(.fd-pic):not(:has(.qbox-row > .qbox:nth-child(3))) .pack-deal { grid-column: 1 / -1; grid-row: 3; justify-self: start; margin: 0 0 0 11px !important; }

/* 13 Oct 2026 (owner): a trophy toast sits over the goal meter at the bottom, the one place that covers no gameplay. */
.toast[data-kind="trophy"] { top: auto !important; bottom: calc(10px + env(safe-area-inset-bottom)) !important; left: 12px; right: 12px; border-radius: 14px; z-index: 30; }
/* The settle's ⓘ keeps a 44-pt square (independent audit F10, 13 Oct 2026). */
.ss-info { position: relative; }
.ss-info::after { content: ""; position: absolute; inset: -9px; }
/* Item view (owner, 13 Oct 2026): the warning and deal badges ride on the picture, above its price tag; the deal's words sit above the boxes. */
.pocket-mode .store.ss-card .ss-line.pk-item .pk-qty .pack-deal { flex: 1 0 100%; align-self: center; margin: 0; text-align: center; }
.store.ss-card .ss-line.pk-item .ss-art .row-warn { top: -4px; right: -6px; }
/* The flash line under the tag keeps its pictures but not a second ⚡ badge: the badge is on the item (13 Oct 2026). */
.pocket-mode .store.ss-card .ss-line.pk-item .pack-deal.flash-deal .cb { display: none; }

/* 13 Oct 2026 (owner). The flash line in words, wrapping: "🌰3 for your next 2 purchases, then 🌰7". */
.pack-deal.fd-words { white-space: normal; line-height: 1.25; text-align: left; }
.pack-deal.fd-words .fd-row { display: inline; white-space: normal; }   /* 14 Oct 2026 (layout audit #1): .fd-row's nowrap kept the line whole and cut it mid-word ("…for your next purch") */
.pack-deal.fd-words .fd-then-w { display: block; white-space: nowrap; }   /* the two parts of T.flashWords on their own lines (14 Oct 2026) */
/* The consequence pill keeps one height; "+N more" is a capsule, not an i. */
.pay-next { height: 40px; min-height: 40px; }
.pay-next .pn-info.pn-more { width: auto; margin-left: 6px; padding: 0 2px 0 0; }
.pay-next .pn-info.pn-more i { width: auto; height: 26px; padding: 0 10px; border-radius: 999px; font: 800 12px/1 -apple-system, system-ui, sans-serif; letter-spacing: .02em; }
/* The wallet's card badge stays inside its card, so it scrolls behind the divider with it. */
#board .dock-card .pk-face .card-warn, .wallet-body .pk-face .card-warn { top: 3px; right: 3px; }
/* The preview pill with no room beside the saved pill lifts above it, its stem reaching down (13 Oct 2026). */
.kmh-next.lift b { transform: translateY(-26px); }
.kmh-next.lift::before { content: ""; position: absolute; right: -1px; top: -4px; width: 2px; height: 22px; background: #9fd0e4; }
.kmh-next.short.lift::before { background: #f0b29a; }
/* 14 Oct 2026 (layout audit #9): the lifted pill is as tall as the bar, so above the saved pill it can only sit in the title's
   row ("GOAL 🌰7+" read "…OAL"); while it is lifted the title dims under it and comes back when the pill goes. */
.kmh-title { transition: opacity .2s ease; }
.kmh:has(.kmh-next.lift:not(.off)) .kmh-title { opacity: .22; }
/* 14 Oct 2026 (owner): a gift card's badge rode above the cash group as the cards scrolled under it. The cash (and used)
   groups paint above the gift cards' badges, so a card and its badge slide under the divider together. */
#board .listbar .ws-group.cash, #board .listbar .ws-group.used, .cards-strip .ws-group.cash, .cards-strip .ws-group.used { position: relative; z-index: 4; background: inherit; }
#board .walletchip .card-warn, .cards-strip .walletchip .card-warn { z-index: 1; }

/* The web version (cardcuepro.app/play, 16 Oct 2026; html.web from view/aspect.js). A landscape window gets the wide stage
   on its own, so the "turn your phone upright" card never shows; the Menu's last row is a plain link to the app's site. */
html.web .rotate-card { display: none !important; }
.menu-dialog a.menu-web { color: var(--ink-2); text-decoration: none; font-size: calc(14px * var(--t, 1)); font-weight: 700; }

/* ---- The Smart Shopping Score (overhaul pass B, 16 Oct 2026; planning/overhaul-2026-10-16/MECHANICS_2026-10-16.md §3.7) ----
   The bar is the wallet (left; tap raises the read-only wallet, as the acorn button did) and this visit's score (right).
   It replaces the keep meter in every year but a legacy Money Saver one. Every tap target is at least 44 pt. */
.score-bar.hud { min-height: var(--footer-h); padding: 6px 16px 8px; gap: 12px; justify-content: space-between; box-sizing: border-box; }
.hud-wallet { flex: 0 1 auto; min-width: 0; min-height: 48px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid rgba(246,239,224,.16); border-radius: 14px; background: rgba(246,239,224,.1); color: var(--paper); font: inherit; font-weight: 800; font-size: calc(18px * var(--t, 1)); line-height: 1; cursor: pointer; font-variant-numeric: tabular-nums; }
.hud-wallet .hw-sum { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-wallet .hw-list { display: inline-flex; align-items: center; gap: 8px; }
.hud-wallet .hw-list svg { width: 26px; height: 22px; }
.hud-wallet.to-list { background: var(--gold); color: var(--ink); border-color: transparent; }
.hud-wallet-gap { flex: 1; }
.hud-score { flex: none; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; min-height: 48px; line-height: 1; color: var(--paper); }
.hud-score small { font-size: calc(11px * var(--t, 1)); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(246,239,224,.66); }
.hud-score b { margin-top: 3px; font-size: calc(30px * var(--t, 1)); font-weight: 900; font-variant-numeric: tabular-nums; color: var(--gold); text-shadow: 0 1px 0 rgba(0,0,0,.25); }
.hud-score.bump b { animation: hudBump .46s var(--e-enter, cubic-bezier(.2,.8,.2,1)); }
@keyframes hudBump { 0% { transform: scale(1); } 40% { transform: scale(1.22); } 100% { transform: scale(1); } }

/* One message per Pay: a paper card over the sky (clear of the shop panel where there is room), never a tap target. The
   words on the left (the item, the label, the fact or hint), the points on the right; short enough to sit in the sky. */
.fb-card { position: absolute; z-index: 42; left: 50%; top: 22%; transform: translate(-50%, 0); display: grid; grid-template-columns: minmax(0, auto) auto; column-gap: 14px; align-items: center; box-sizing: border-box; width: max-content; max-width: min(336px, calc(100% - 32px)); padding: 9px 12px 10px 16px; border-radius: 14px; background: #fff8ea; border: 2.5px solid #2f6e5f; box-shadow: 0 6px 18px rgba(30,60,40,.3), inset 0 0 0 2px rgba(47,110,95,.14); pointer-events: none; text-align: left; color: var(--ink); }
.fb-card > p, .fb-card > b { grid-column: 1; margin: 0; }
.fb-card .fb-head { font-size: calc(15px * var(--t, 1)); font-weight: 800; line-height: 1.2; color: #2f4f45; }
.fb-card .fb-label { font-family: var(--display); font-weight: 800; font-size: calc(25px * var(--t, 1)); line-height: 1.08; letter-spacing: .01em; color: #2f6e5f; }
.fb-card .fb-body, .fb-card .fb-hint { margin-top: 2px; font-size: calc(13.5px * var(--t, 1)); font-weight: 700; line-height: 1.28; color: #4a5b52; }
.fb-card .fb-hint em { display: block; font-style: normal; font-weight: 800; color: #9a5a1c; }
.fb-card .fb-amt { white-space: nowrap; color: #7a4a1c; }
.fb-card .fb-pts { grid-column: 2; grid-row: 1 / span 4; align-self: center; padding: 5px 12px 6px; border-radius: 999px; background: var(--gold); color: #3a2a10; font-weight: 900; font-size: calc(19px * var(--t, 1)); line-height: 1; font-variant-numeric: tabular-nums; box-shadow: 0 1px 0 rgba(0,0,0,.18); }
.fb-card.fb-perfect { border-color: var(--gold-deep); box-shadow: 0 6px 20px rgba(120,80,10,.32), inset 0 0 0 2px rgba(201,154,30,.22); }
.fb-card.fb-perfect .fb-label { font-size: calc(28px * var(--t, 1)); color: var(--gold-ink); }
.fb-card.fb-hint { border-color: #b98a4a; }
.fb-fly { position: absolute; z-index: 43; padding: 3px 13px 4px; border-radius: 999px; background: var(--gold); color: #3a2a10; font-weight: 900; font-size: calc(18px * var(--t, 1)); line-height: 1; font-variant-numeric: tabular-nums; pointer-events: none; transform: translate(-50%, -50%); }

/* ---------------------------------------------------------------- overhaul pass C (17 Oct 2026): stars, the month-end card,
   the interim year's end (planning/overhaul-2026-10-16/MECHANICS_2026-10-16.md §3.4, §3.7). Paper stars, gold when on. */
.pstars { display: inline-flex; align-items: center; gap: 6px; }
.pstars .pstar { display: inline-grid; width: 38px; height: 38px; }
.pstars .pstar svg { width: 100%; height: 100%; fill: rgba(60,40,10,.10); stroke: rgba(60,40,10,.32); stroke-width: 1.4; stroke-linejoin: round; }
.pstars .pstar.on svg { fill: #e2b13c; stroke: #8a5a12; filter: drop-shadow(0 1px 1px rgba(60,40,10,.25)); }
.pstars.pending .pstar svg { stroke-dasharray: 3 3; }
/* The owner's paper stars (pass D2): full gold felt, or the empty cream star waiting; a pending row sits lighter. */
.pstars .pstar img { width: 100%; height: 100%; display: block; object-fit: contain; -webkit-user-drag: none; }
.pstars .pstar.on img { filter: drop-shadow(0 1px 1px rgba(60,40,10,.25)); }
.pstars.pending .pstar img { opacity: .6; }
.pstars.sm { gap: 2px; }
.pstars.sm .pstar { width: 15px; height: 15px; }
.pstars.sm .pstar svg { stroke-width: 1.8; }
.settle.scored .settle-stars { display: flex; flex-direction: column; align-items: center; justify-content: center; align-self: stretch; gap: 2px; margin: 2px 0 2px; }
.settle.scored .settle-stars .ss-best { font-size: calc(12px * var(--t, 1)); font-weight: 700; color: var(--ink-2); }
.settle.scored .settle-gap { margin: 0 0 4px; text-align: center; font-size: calc(14px * var(--t, 1)); font-weight: 700; color: var(--ink-2); min-height: 1.3em; }
.settle.scored .settle-gap .ss-wait { font-weight: 600; opacity: .75; }
.settle.scored .settle-points { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 6px; }
.settle.scored .settle-points .ss-pts { font-size: calc(16px * var(--t, 1)); font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.settle.scored .settle-points .ss-info { width: 26px; height: 26px; background: var(--accent-2); color: var(--accent-ink); }
.settle.scored .settle-retry.final { margin-top: 4px; }
.settle.daily.scored .settle-stars { margin-top: 4px; }
.coming-with .ichip.carry.cash { font-weight: 800; }
/* The year strip by stars: a month behind filled by its best stars (one, two, three: deeper gold). */
.ys-dot.done { background: rgba(60,40,10,.30); box-shadow: none; }
.ys-dot.done.s1 { background: #ecd28a; }
.ys-dot.done.s2 { background: #dcae47; }
.ys-dot.done.s3 { background: #a8741a; }
/* The Daily strip's starred days: ⅓, ⅔, full; gold at ★★★ (the .perfect rule). */
.daily-strip .ds-day.starred b { background: #dcae47; }
.daily-strip .ds-day.starred.s3 b { background: #d9b44a; }
/* The intro's two tiles in a scored year: Cue's pay and the wallet it joins. */
.intro-goals .wallet-now { background: #eaf5ee; }
/* The interim year's end. */
.year-sum { background: radial-gradient(circle at 50% 18%, #fff8e4, #efdfbb); gap: 8px; }
.year-sum h2 { margin: 0; }
.year-sum .ysum-points { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 0; }
.year-sum .ysum-points b { font-size: calc(22px * var(--t, 1)); color: var(--accent); font-variant-numeric: tabular-nums; }
.year-sum .ysum-points small { font-size: calc(13px * var(--t, 1)); font-weight: 700; color: var(--ink-2); }
.year-sum .ysum-h { margin: 6px 0 0; font-size: calc(12px * var(--t, 1)); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.year-sum .ysum-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 8px; width: min(100%, 340px); margin: 0 auto; padding: 8px 10px; border-radius: 14px; background: rgba(255,255,255,.7); }
.year-sum .ysum-m { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.year-sum .ysum-m small { font-size: calc(11px * var(--t, 1)); font-weight: 800; color: var(--ink-2); }
.year-sum .ysum-wallet { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 0 12px; width: min(100%, 340px); margin: 4px auto 0; padding: 8px 14px; border-radius: 14px; background: rgba(255,255,255,.7); text-align: left; }
.year-sum .ysum-wallet span { color: var(--ink-2); }
.year-sum .ysum-wallet b { font-size: calc(20px * var(--t, 1)); }
.year-sum .ysum-wallet small { grid-column: 1 / -1; font-size: calc(12px * var(--t, 1)); color: var(--ink-2); }
.year-sum .ysum-party { width: min(100%, 340px); margin: 6px auto 0; padding: 12px 14px; border-radius: 14px; background: #fbf1d8; font-weight: 700; }
.year-sum > .primary { width: min(100%, 340px); margin: 6px auto 0; }
/* Your year in a scored year: stars this year, points, best stars ever. */
.record-dialog.scored .rec-row .pstars.sm .pstar { width: 12px; height: 12px; }
@media (max-height: 700px) {
  .pstars .pstar { width: 32px; height: 32px; }
  .year-sum { gap: 5px; }
}
/* The year's summary sits on the overlay like the party, the drawer and the ending: full bleed, its own entrance. */
.overlay[data-kind="yearsum"] { background: #000; align-items: stretch; padding-top: 0; }
.overlay.ov-in[data-kind="yearsum"] > * { animation: fadeIn var(--t-large) ease both; }
.overlay.ov-scene[data-kind="yearsum"] > * { animation: fadeIn var(--t-large) ease 200ms both; }

/* ======================================================================== Cue's Party (overhaul pass D1, 17 Oct 2026)
   MECHANICS §3.6. The overlay 'cueparty' is full bleed (the invitation, the builder, the reveal, the after card); the
   album ('album') and its replay ('album-play') too. The scene is 1024 × 768 units (4:3), every piece placed in % of it
   by view/markup.js partySceneHtml; the cut-paper placeholders (.pp-*) stand in until the painted pieces land
   (content/party.js ASSETS). Every panel animates; nothing pops; Reduce Motion fades only. */
.overlay:is([data-kind="cueparty"], [data-kind="album"], [data-kind="album-play"]) { background: #000; align-items: stretch; padding-top: 0; }
.overlay.ov-in:is([data-kind="cueparty"], [data-kind="album"], [data-kind="album-play"]) > * { animation: fadeIn var(--t-large) ease both; }
.overlay.ov-scene:is([data-kind="cueparty"], [data-kind="album"], [data-kind="album-play"]) > * { animation: fadeIn var(--t-large) ease 200ms both; }

/* ---- the scene */
.cp-stage { position: relative; container-type: size; display: flex; align-items: center; justify-content: center; min-height: 0; }
.cp-scene { position: relative; width: min(100cqw, 133.333cqh); aspect-ratio: 4 / 3; overflow: hidden; border-radius: 14px; background: #2d2a33; box-shadow: var(--shadow-2); isolation: isolate; }
.cp-scene.still { box-shadow: none; }
.cp-world { position: absolute; inset: 0; transform-origin: 50% 62%; }
.cp-p, .cp-g, .cp-cue, .cp-sky, .cp-tint, .cp-fx { position: absolute; }
.cp-p > img, .cp-g > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; user-select: none; -webkit-user-drag: none; }
.cp-g > img { object-fit: fill; }
.cp-g.flip > img { transform: scaleX(-1); }
.cp-p.cp-back { inset: 0; overflow: hidden; }
.cp-p.cp-front { inset: 0; pointer-events: none; }
.cp-den { position: absolute; inset: 0; width: 100%; height: 100%; }
.cp-plate { position: absolute; max-width: none; }
.cp-layers { position: absolute; left: -18.555%; top: -64.844%; width: 137.012%; height: 348.177%; }
.cp-layers > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cp-sky { inset: 0; z-index: 0; }
.cp-scene.outdoor .cp-back { background: transparent; }
.cp-tint { inset: 0; z-index: 2; background: var(--tint); mix-blend-mode: multiply; opacity: .7; pointer-events: none; }
.cp-scene.revealing:not(.ended) .cp-tint { opacity: 0; }
.cp-scene.ended .cp-tint { opacity: 1; }
.cp-fx { inset: 0; z-index: 320; pointer-events: none; overflow: hidden; }
.cp-lights { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 300; mix-blend-mode: screen; pointer-events: none; }
.cp-glow { position: absolute; inset: -35%; background: radial-gradient(closest-side, var(--glow), transparent); opacity: .55; pointer-events: none; transition: opacity .6s ease; }
.cp-scene.revealing .cp-p.light:not(.lit) .cp-glow { opacity: 0; }
.cp-p.lit .cp-glow { opacity: .95; }
.cp-later { opacity: 0; }
/* Cue from behind, bottom centre: the top 55% of her picture shows (pass D2: was 42%, so the painted scarf at 44–69% of the
   canvas is in view); her cone hat sits between her ears (the scarf picture's ears sit 6% lower on its canvas). */
.cp-cue { left: 50%; bottom: 0; width: 25%; aspect-ratio: 1024 / 1536; transform: translate(-50%, 45%); z-index: 280; pointer-events: none; }
.cp-cue-x.hat > img { position: absolute; left: 39%; top: 10.5%; width: 22%; height: auto; aspect-ratio: 1; }
.cp-cue.scarf .cp-cue-x.hat > img { top: 16.5%; }
/* Painted pieces (pass D2): a square picture stands at its box's bottom; a hanging one hangs from its top. */
.cp-p:is(.l-stage, .l-table, .l-floor, .l-door) > img { object-position: 50% 100%; }
.cp-p.l-hang > img { object-position: 50% 0; }
.cp-place-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.cp-cue > img { width: 100%; height: 100%; display: block; }
.cp-icons { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; }
.cp-icons > img { flex: 1 1 0; min-width: 0; height: 100%; object-fit: contain; object-position: 50% 100%; }
.cp-icons.n3 > img { margin: 0 -4%; }
.cp-string { position: absolute; inset: 0; display: flex; justify-content: space-around; align-items: flex-start; }
.cp-string > img { width: 17%; height: auto; aspect-ratio: 1; margin-top: 6%; }
.cp-string > img:nth-child(2), .cp-string > img:nth-child(4) { margin-top: 14%; }
.cp-string > img:nth-child(3) { margin-top: 18%; }
img.on-plate { position: absolute; left: 14%; width: 72%; height: auto; bottom: 14%; aspect-ratio: 1; object-fit: contain; }
/* Fireflies, steam, confetti */
.cp-fly { position: absolute; top: -40%; width: 6px; height: 6px; border-radius: 50%; background: #fff2a8; box-shadow: 0 0 6px 3px rgba(255,236,140,.7); animation: cpFly calc(4.5s + var(--i) * .7s) ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.9s); }
@keyframes cpFly { 0% { transform: translate(0, 0); opacity: .3; } 50% { opacity: 1; } 100% { transform: translate(calc((var(--i) - 2.5) * 6px), -60px); opacity: .5; } }
.cp-steam { position: absolute; left: calc(30% + var(--i) * 18%); top: -10%; width: 16%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.5); filter: blur(4px); animation: cpSteam 3.2s ease-out infinite; animation-delay: calc(var(--i) * 1s); }
@keyframes cpSteam { from { transform: translateY(0) scale(.6); opacity: .7; } to { transform: translateY(-120%) scale(1.3); opacity: 0; } }
.cp-confetti { position: absolute; top: 0; width: 3.4%; aspect-ratio: 1; }
.phone.reduced :is(.cp-fly, .cp-steam) { animation: none; }
@media (prefers-reduced-motion: reduce) { :is(.cp-fly, .cp-steam) { animation: none; } }

/* ---- the cut-paper placeholders (content/party.js ASSETS `paper`): flat felt colours, short soft shadows, no outlines */
.pp { position: absolute; inset: 0; display: block; pointer-events: none; }
.pp-plate { top: auto; left: 4%; right: 4%; bottom: 0; height: 26%; border-radius: 50%; background: #f4e9d2; box-shadow: 0 2px 2px rgba(50,30,10,.28), inset 0 -3px 0 #e2d2b0; }
.pp-table { top: 0; height: 46%; border-radius: 10px 10px 4px 4px; background: #f4e9d2; box-shadow: 0 3px 3px rgba(50,30,10,.3);
  -webkit-mask: radial-gradient(10px 8px at 50% 100%, #0000 98%, #000) 0 0 / 22px 100%; mask: radial-gradient(10px 8px at 50% 100%, #0000 98%, #000) 0 0 / 22px 100%; }
.pp-table::before, .pp-table::after { content: ''; }
.k-table-long, .k-table-short { background: linear-gradient(90deg, transparent 6%, #a77a4c 6% 9%, transparent 9% 91%, #a77a4c 91% 94%, transparent 94%) 0 100% / 100% 60% no-repeat; }
.pp-cake { background: linear-gradient(to bottom, #f4e9d2 0 32%, #d9b44a 32% 64%, #c8a979 64%); clip-path: polygon(0 100%, 0 64%, 12% 64%, 12% 32%, 26% 32%, 26% 4%, 44% 4%, 46% 0, 54% 0, 56% 4%, 74% 4%, 74% 32%, 88% 32%, 88% 64%, 100% 64%, 100% 100%); filter: drop-shadow(0 2px 2px rgba(50,30,10,.3)); }
.pp-cake::after { content: ''; position: absolute; left: 44%; width: 12%; top: -9%; aspect-ratio: 1; border-radius: 50% 50% 46% 46%; background: #8a5a2b; }
.pp-flowers { background:
    radial-gradient(circle at 28% 22%, #c65a3a 0 11%, transparent 12%), radial-gradient(circle at 52% 12%, #d9b44a 0 11%, transparent 12%),
    radial-gradient(circle at 74% 24%, #f4e9d2 0 10%, transparent 11%), radial-gradient(circle at 40% 36%, #9fc7d4 0 9%, transparent 10%),
    linear-gradient(80deg, transparent 46%, #4f7d52 46% 50%, transparent 50%) 0 22% / 100% 40% no-repeat,
    linear-gradient(100deg, transparent 52%, #4f7d52 52% 56%, transparent 56%) 0 22% / 100% 40% no-repeat,
    linear-gradient(#cfe3e8, #9fc7d4) 25% 100% / 50% 46% no-repeat; border-radius: 0 0 6px 6px; filter: drop-shadow(0 2px 1px rgba(50,30,10,.3)); }
.pp-cord { top: 4%; height: 22%; border-bottom: 2px solid #6b4a2b; border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.pp-rope { height: 12%; border-bottom: 3px solid #6b4a2b; border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.pp-rope::before, .pp-rope::after { content: ''; position: absolute; top: 0; width: 1.1%; height: 470%; background: #7a5634; border-radius: 3px; box-shadow: 1px 1px 2px rgba(30,20,10,.3); }
.pp-rope::before { left: 0; } .pp-rope::after { right: 0; }
.pp-fence { background: repeating-linear-gradient(90deg, #c8a979 0 9%, transparent 9% 13%), linear-gradient(transparent 30%, #a77a4c 30% 38%, transparent 38% 68%, #a77a4c 68% 76%, transparent 76%); filter: drop-shadow(0 2px 2px rgba(50,30,10,.3)); }
.pp-dock { background: repeating-linear-gradient(90deg, #c8a979 0 11.5%, #a77a4c 11.5% 12.5%); border-radius: 4px; box-shadow: 0 4px 0 #7a5634, 0 6px 6px rgba(20,30,50,.35); }
.pp-lake { left: 0; right: 0; top: 30%; height: 3.2%; background: linear-gradient(#7aa6b6, #5d8aa0); box-shadow: inset 0 3px 0 rgba(255,255,255,.25); }
.pp-balloons { background:
    radial-gradient(ellipse 22% 17% at 30% 22%, #c65a3a 98%, transparent), radial-gradient(ellipse 22% 17% at 62% 16%, #d9b44a 98%, transparent),
    radial-gradient(ellipse 20% 15% at 48% 36%, #9fc7d4 98%, transparent),
    linear-gradient(100deg, transparent 47%, #6b4a2b 47% 49%, transparent 49%) 0 40% / 100% 60% no-repeat; filter: drop-shadow(0 2px 2px rgba(50,30,10,.3)); }
.pp-rug { top: auto; height: 60%; border-radius: 40%; background: #c65a3a; box-shadow: inset 0 0 0 4px #f4e9d2, 0 2px 2px rgba(50,30,10,.3); }
.l-floor .cp-icons { inset: 0 12% 30% 12%; }
.pp-mic { background: radial-gradient(closest-side, #e9dcbf 88%, transparent 92%) 50% 0 / 70% 18% no-repeat, linear-gradient(90deg, transparent 44%, #596273 44% 56%, transparent 56%) 0 14% / 100% 82% no-repeat, radial-gradient(closest-side, #596273 92%, transparent) 50% 100% / 90% 7% no-repeat; filter: drop-shadow(0 2px 2px rgba(30,20,10,.35)); }
.pp-screen { background: linear-gradient(#f4e9d2, #ece0c4) 6% 10% / 88% 72% no-repeat, linear-gradient(90deg, transparent 6%, #596273 6% 8%, transparent 8% 92%, #596273 92% 94%, transparent 94%) 0 0 / 100% 100% no-repeat, linear-gradient(#596273, #596273) 4% 6% / 92% 6% no-repeat; filter: drop-shadow(0 2px 2px rgba(30,20,10,.3)); }
.pp-decks { background: radial-gradient(circle at 28% 40%, #f4e9d2 0 15%, #d9b44a 16% 17%, transparent 18%), radial-gradient(circle at 72% 40%, #f4e9d2 0 15%, #d9b44a 16% 17%, transparent 18%), #596273; border-radius: 8px; box-shadow: 0 3px 3px rgba(30,20,10,.35); }
.pp-favours { background: linear-gradient(#c8a979, #c8a979) 6% 100% / 26% 70% no-repeat, linear-gradient(#c65a3a, #c65a3a) 38% 100% / 26% 80% no-repeat, linear-gradient(#2f6a55, #2f6a55) 70% 100% / 26% 66% no-repeat; filter: drop-shadow(0 2px 2px rgba(30,20,10,.3)); }
.pp-frame { inset: 0 18% 0 0; border: 9px solid #c8a979; border-radius: 6px; box-shadow: 0 2px 3px rgba(30,20,10,.35), inset 0 0 0 2px #a77a4c; }
.k-extra-booth .cp-icons { inset: auto 0 0 70%; height: 40%; }
/* Hats and Cue's extras sit in a box (.cp-hat on a guest's head anchor; .cp-cue-x the same crop as Cue's back.webp), so a
   painted piece (an <img>) or the paper stand-in fills the same place. */
.cp-hat { position: absolute; width: 14.8%; height: 12.8%; }
.cp-hat > img { width: 100%; height: 100%; object-fit: contain; }
.cp-cue-x { position: absolute; inset: 0; }
.cp-cue-x > img { width: 100%; height: 100%; }
.pp-hat { clip-path: polygon(50% 0, 100% 100%, 0 100%); background: repeating-linear-gradient(115deg, #c65a3a 0 18%, #f4e9d2 18% 32%); }
.cp-cue-x.hat .pp-hat { left: 44%; top: 8%; width: 12%; height: 10%; }
.cp-ico .pp-scarf { left: 0; width: 100%; top: 38%; height: 26%; }
.cp-ico .pp-hat { left: 18%; top: 4%; width: 64%; height: 90%; }
.cp-ico .pp-scarf, .cp-ico .pp-hat { right: auto; bottom: auto; }
.pp-scarf { inset: auto; left: 25%; width: 50%; top: 39%; height: 6.5%; border-radius: 40% 40% 50% 50%; background: repeating-linear-gradient(90deg, #c65a3a 0 12%, #d9b44a 12% 16%); box-shadow: 0 2px 2px rgba(30,20,10,.3); }
.pp-invite { border-radius: inherit; background: linear-gradient(135deg, #c65a3a 0 7%, transparent 7%) top left / 60px 60px no-repeat, linear-gradient(-45deg, #2f6a55 0 7%, transparent 7%) bottom right / 60px 60px no-repeat; opacity: .9; }
.pp-note::after { content: '♪'; position: absolute; inset: 0; display: grid; place-items: center; font: 700 22px var(--display); color: var(--accent-ink); }
.pp-place { border-radius: 8px; overflow: hidden; }
.pp-place.pl-den { background: linear-gradient(#f4e9d2 0 55%, #c8a979 55%); box-shadow: inset 0 0 0 3px #a77a4c; }
.pp-place.pl-meadow { background: radial-gradient(circle at 70% 30%, #f2c14e 0 12%, transparent 13%), linear-gradient(#6c5a86 0 50%, #4f7d52 50%); }
.pp-place.pl-lake { background: linear-gradient(#5d5f90 0 40%, #7aa6b6 40% 70%, #4f7d52 70%); }
.pp-place.pl-cabin { background: linear-gradient(#c8a979 0 70%, #a77a4c 70%); }
.pp-place.pl-cabin::after, .pp-place.pl-hall::after { content: '♪'; position: absolute; inset: 0; display: grid; place-items: center; font: 700 18px var(--display); color: #f4e9d2; }
.pp-place.pl-hall { background: linear-gradient(#6b4bb8 0 70%, #c65a3a 70%); }
.pp-place.pl-hall::after { content: '★'; }

/* ---- the builder */
.cp-build { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; gap: 8px; padding: calc(8px + var(--sai-top)) 12px calc(10px + env(safe-area-inset-bottom)); background: radial-gradient(circle at 50% 10%, #fff8e4, #efdfbb); color: var(--ink); }
.cp-title { margin: 0 56px; text-align: center; font: 700 calc(20px * var(--t, 1)) / 1.15 var(--display); min-height: 44px; display: grid; place-items: center; }
.cp-build > .cp-stage { flex: 1 1 auto; }
.cp-panel { flex: none; display: flex; flex-direction: column; gap: 6px; max-height: 420px; transition: opacity .3s ease, transform .3s cubic-bezier(.2,.8,.2,1), max-height .4s cubic-bezier(.2,.8,.2,1); }
.cp-build.look .cp-panel { opacity: 0; transform: translateY(24px); max-height: 0; pointer-events: none; overflow: hidden; }
.cp-lookback { position: absolute; inset: 0; border: 0; background: transparent; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 14px; animation: fadeIn .3s ease both; }
.cp-lookback span { min-height: 44px; display: grid; place-items: center; padding: 0 18px; border-radius: 22px; background: rgba(255,250,238,.92); box-shadow: var(--shadow); font-weight: 700; }
.cp-budget { display: flex; flex-direction: column; gap: 4px; padding: 6px 10px; border-radius: 12px; background: rgba(255,255,255,.75); }
.cpb-row { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.cpb-cell small { display: block; font-size: calc(11px * var(--t, 1)); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.cpb-cell b { font-size: calc(18px * var(--t, 1)); font-variant-numeric: tabular-nums; }
.cpb-cell.l b { color: var(--accent-ink); }
.cpb-bar { display: block; height: 6px; border-radius: 3px; background: #e6d8b8; overflow: hidden; }
.cpb-bar > i { display: block; height: 100%; background: var(--gold-deep); border-radius: 3px; transition: width .42s cubic-bezier(.2,.8,.2,1); }
.cp-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.cp-tab { min-height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); font-weight: 700; font-size: calc(13.5px * var(--t, 1)); padding: 0 2px; color: var(--ink); }
.cp-tab.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.cp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-auto-rows: 48px; grid-template-rows: repeat(4, 48px); gap: 6px; animation: fadeIn .26s ease both; }
.cp-opt { position: relative; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 8px; border-radius: 12px; border: 1.5px solid rgba(90,70,40,.2); background: #fffaf0; text-align: left; color: var(--ink); transition: background .2s ease, border-color .2s ease, opacity .2s ease; }
.cp-opt.on { border-color: var(--accent); background: #e7f1ea; box-shadow: inset 0 0 0 1.5px var(--accent); }
.cp-opt.on::after { content: '✓'; position: absolute; right: 6px; top: 4px; font: 800 12px/1 system-ui; color: var(--accent-ink); }
.cp-opt.off { opacity: .55; }
.cp-opt.cp-pagebtn { justify-content: center; text-align: center; background: transparent; border-style: dashed; }
.cp-ico { position: relative; flex: none; width: 34px; height: 34px; }
.cp-ico > img, .cp-ico .cp-icons { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cp-ico .cp-string > img { margin-top: 0 !important; width: 40%; }
.cp-ico .cp-string > img:nth-child(n+3) { display: none; }
.cp-opt.guest .portrait { width: 34px; height: 34px; border-width: 2px; }
.cp-txt { display: flex; flex-direction: column; min-width: 0; }
.cp-txt b { font-size: calc(13px * var(--t, 1)); line-height: 1.15; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cp-txt small { font-size: calc(11.5px * var(--t, 1)); color: var(--ink-2); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-opt.on .cp-txt small { color: var(--accent-ink); font-weight: 700; }
.cp-new { position: absolute; right: 4px; bottom: 3px; padding: 1px 5px; border-radius: 6px; background: var(--gold); color: var(--gold-ink); font: 800 9.5px/1.3 system-ui; letter-spacing: .04em; text-transform: uppercase; }
.cp-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.cp-actions > button { min-height: 48px; border-radius: 14px; font-weight: 800; }
.cp-confirm { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; padding: 20px; background: rgba(40,32,20,.45); animation: fadeIn .24s ease both; }
.cp-confirm-card { width: min(100%, 340px); padding: 18px 16px 14px; border-radius: 18px; background: var(--paper); box-shadow: var(--shadow-2); text-align: center; animation: cpRise .38s cubic-bezier(.2,.8,.2,1) both; }
.cp-confirm-card h3 { margin: 0 0 6px; font: 700 calc(20px * var(--t, 1)) var(--display); }
.cp-confirm-card p { margin: 0 0 14px; color: var(--ink-2); }
.cp-confirm-btns { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; }
.cp-confirm-btns > button { min-height: 48px; border-radius: 14px; font-weight: 800; }
@keyframes cpRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-height: 700px) { .cp-build { gap: 5px; } .cp-title { min-height: 36px; font-size: calc(18px * var(--t, 1)); } .cp-grid { grid-auto-rows: 46px; grid-template-rows: repeat(4, 46px); gap: 5px; } .cp-tab { min-height: 44px; } }

/* ---- the invitation (the year's summary folded in) */
.cp-invite { gap: 8px; }
.cp-invite .ysum-points { margin: 0; }
/* The invitation card: the owner's painted paper (pass D2, tom_party_invite.webp, 1024 × 640: a deckled cream card, a rust ribbon
   top left, a sprig bottom right; the words are type) fills the card box; the paper tile stays as the fallback. */
.cp-card { position: relative; width: min(100%, 340px); aspect-ratio: 1024 / 640; margin: 6px auto 0; padding: 8% 13% 7%; border-radius: 6px; display: flex; flex-direction: column; justify-content: center; transform: rotate(-1deg); text-align: center; filter: drop-shadow(0 2px 3px rgba(60,40,10,.22)) drop-shadow(0 10px 18px rgba(60,40,10,.12)); }
.cp-card > * { position: relative; }
.cp-card .cp-card-paper { position: absolute; inset: 0; width: 100%; height: 100%; display: block; -webkit-user-drag: none; }
.cp-card:not(:has(.cp-card-paper)) { background: #fffaf0; box-shadow: 0 2px 3px rgba(60,40,10,.25), 0 10px 22px rgba(60,40,10,.12); filter: none; }
.cp-card .pp-invite { position: absolute; }
.cp-card-eyebrow { margin: 0; font-size: calc(11px * var(--t, 1)); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--red-ink); }
.cp-card h2 { margin: 4px 0; font: 700 calc(22px * var(--t, 1)) / 1.15 var(--display); }
.cp-card-line { margin: 0 0 8px; }
.cp-card-wallet { display: flex; justify-content: center; align-items: baseline; gap: 8px; margin: 0; }
.cp-card-wallet span { color: var(--ink-2); }
.cp-card-wallet b { font-size: calc(22px * var(--t, 1)); }
.cp-invite > .primary { width: min(100%, 340px); margin: 8px auto 0; }

/* ---- the reveal and the album's replay */
.cp-reveal { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; gap: 10px; padding: calc(8px + var(--sai-top)) 12px calc(12px + env(safe-area-inset-bottom)); background: radial-gradient(circle at 50% 30%, #3b3346, #1d1922); color: #fbf3e2; }
.cp-reveal > .cp-stage { flex: 1 1 auto; }
.cp-skiparea { position: absolute; inset: 0; border: 0; background: transparent; z-index: 5; }
.cp-reveal.done .cp-skiparea { display: none; }
.cp-bubble { position: absolute; left: 50%; bottom: 17%; z-index: 330; width: min(86%, 340px); margin: 0; padding: 10px 14px; border-radius: 16px; background: #fffaf0; color: var(--ink); box-shadow: var(--shadow-2); text-align: center; font: 600 calc(clamp(12px, 3.4cqw, 16px) * var(--t, 1)) / 1.28 var(--display); opacity: 0; transform: translate(-50%, 10px); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.cp-bubble::after { content: ''; position: absolute; left: 50%; bottom: -9px; width: 18px; height: 10px; transform: translateX(-50%); background: inherit; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.cp-bubble.on { opacity: 1; transform: translate(-50%, 0); }
.cp-bubble-2 { display: block; margin-top: 4px; font-size: .9em; color: var(--ink-2); }
.cp-reveal-title { margin: 0 56px; min-height: 44px; display: grid; place-items: center; text-align: center; font: 700 calc(24px * var(--t, 1)) / 1.15 var(--display); opacity: 0; transform: translateY(6px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.cp-reveal-title.on { opacity: 1; transform: none; }
.cp-revealbtn { width: min(100%, 340px); margin: 0 auto; min-height: 48px; }
.cp-reveal .ghost { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .cp-bubble, .cp-reveal-title { transform: none !important; } }
.phone.reduced :is(.cp-bubble, .cp-reveal-title) { transform: translate(-50%, 0); }
.phone.reduced .cp-reveal-title { transform: none; }

/* ---- the after card */
.cp-after { gap: 6px; }
.cp-after > .cp-stage.small { width: 100%; height: min(36vh, 300px); flex: none; }
.cp-after h2 { margin: 6px 0 0; }
/* The party's share button (pass D2) beside the title, the settle's own round icon button. */
.cp-after-head { display: flex; align-items: center; justify-content: center; gap: 10px; }
.cp-after .rv-share.icon { width: 40px; height: 40px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line), 0 2px 6px rgba(40,30,10,.15); cursor: pointer; margin-top: 6px; }
.cp-after .rv-share.icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cp-after .rv-share.icon::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; }
.cp-after-line { margin: 0; font: italic 600 calc(16px * var(--t, 1)) / 1.3 var(--display); max-width: 340px; }
.cp-after-facts { margin: 4px 0 0; font-weight: 700; }
.cp-after-year { display: flex; flex-direction: column; align-items: center; margin: 2px 0 0; }
.cp-after-year b { color: var(--accent); font-size: calc(18px * var(--t, 1)); }
.cp-after-year small { color: var(--ink-2); font-weight: 700; }
.cp-after > .primary { width: min(100%, 340px); margin: 10px auto 0; }

/* ---- the album */
.album { width: 100%; height: 100%; display: flex; flex-direction: column; gap: 10px; padding: calc(12px + var(--sai-top)) 14px calc(14px + env(safe-area-inset-bottom)); background: radial-gradient(circle at 50% 10%, #fff8e4, #efdfbb); }
.album h2 { margin: 0 56px; text-align: center; font: 700 calc(24px * var(--t, 1)) var(--display); min-height: 44px; display: grid; place-items: center; }
.al-list { list-style: none; margin: 0; padding: 0; flex: 1 1 auto; overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.al-row { display: grid; grid-template-columns: 132px 1fr; gap: 10px; align-items: center; padding: 8px; border-radius: 14px; background: rgba(255,255,255,.75); animation: cpRise .4s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 90ms); }
.al-row .cp-stage.thumb { width: 132px; height: 99px; }
.al-row .cp-scene { border-radius: 10px; }
.al-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; text-align: left; }
.al-text span { font-weight: 700; }
.al-text small { color: var(--ink-2); }
.al-play { margin-top: 4px; min-height: 44px; border-radius: 12px; font-weight: 700; justify-self: start; align-self: flex-start; padding: 0 14px; }
.album > .primary { flex: none; }

/* ---- The story pass (17 Oct 2026; planning/overhaul-2026-10-16/STORY_PASS_2026-10-17.md) ---------------------------------
   The wallet moment on a month's first card (what carried over + this month's pay = the wallet; March and the Daily one
   number), the ask under it, the month-end card's carry line, the invitation's carry strip, the bar wallet's pulse. */
.wallet-moment { margin: 4px 0 10px; padding: 10px 8px 12px; border-radius: 16px; background: #fbf1d8; box-shadow: inset 0 0 0 1.5px rgba(201,154,30,.28), 0 1px 3px rgba(60,40,10,.12); }
.wm-row { display: flex; align-items: flex-end; justify-content: center; gap: 6px; }
.wm-part { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.wm-part small { font-size: calc(11px * var(--t, 1)); font-weight: 800; letter-spacing: .02em; color: var(--ink-2); text-align: center; line-height: 1.1; }
.wm-part b { font-size: calc(22px * var(--t, 1)); font-weight: 800; line-height: 1.05; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink); }
/* Cue's coin purse (pass D2, assets/art/ui/tom_wallet_purse.webp) beside the wallet's number: on the moment's total, the carry line and the bar. */
.wm-amt { display: inline-flex; align-items: center; gap: 4px; }
.wm-amt .purse { width: calc(26px * var(--t, 1)); height: auto; flex: none; }
.wallet-moment.solo .wm-amt .purse { width: calc(28px * var(--t, 1)); }
.settle-carry .sc-line .purse { width: calc(24px * var(--t, 1)); height: auto; align-self: center; flex: none; }
.hud-wallet .hw-sum .purse { width: 16px; height: auto; align-self: center; flex: none; margin-right: 1px; }
.wm-op { flex: none; font-size: calc(22px * var(--t, 1)); font-weight: 700; line-height: 1.05; color: var(--gold-ink); }
.wm-total b { font-size: calc(34px * var(--t, 1)); color: var(--gold-ink); }
.wm-total small { color: var(--gold-ink); }
.wallet-moment.solo .wm-total b { font-size: calc(36px * var(--t, 1)); }
.intro-ask { margin: 0 6px 10px; text-align: center; font-size: calc(13px * var(--t, 1)); font-weight: 600; line-height: 1.3; color: var(--ink-2); text-wrap: balance; }
.settle.scored .settle-carry { margin: 0 0 6px; text-align: center; }
.settle-carry .sc-line { display: inline-flex; align-items: baseline; gap: .32em; padding: 3px 16px 5px; border-radius: 999px; background: #fbf1d8; box-shadow: inset 0 0 0 1.5px rgba(201,154,30,.28); }
.settle-carry .sc-n { font-size: calc(28px * var(--t, 1)); font-weight: 800; color: var(--gold-ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
.settle-carry .sc-rest { font-size: calc(16px * var(--t, 1)); font-weight: 700; color: var(--ink); }
.year-sum .ysum-grid.carry .ysum-c { display: block; margin-top: 1px; font-size: calc(11px * var(--t, 1)); font-weight: 700; line-height: 1.1; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.year-sum .ysum-grid.carry [data-end] .ysum-c { color: var(--gold-ink); font-weight: 800; }
.opening-art.beat-wallet .pay-fan { left: auto; right: 9%; bottom: 20%; width: 34%; }
.hud-wallet.pulse { animation: walletPulse 1s cubic-bezier(.2,.8,.2,1); }
@keyframes walletPulse { 0% { box-shadow: 0 0 0 0 rgba(242,193,78,0); } 35% { box-shadow: 0 0 0 5px rgba(242,193,78,.45); transform: scale(1.04); } 100% { box-shadow: 0 0 0 11px rgba(242,193,78,0); transform: none; } }
@media (prefers-reduced-motion: reduce) { .hud-wallet.pulse { animation: none; } }

/* ---- The cleanup pass (17 Oct 2026; planning/overhaul-2026-10-16/CLEANUP_2026-10-17.md) ---- */
/* The stars' next line ("🌰1 more for ★★★") sits under the stars, small; the perfect line under it. */
.settle.scored .settle-next, .settle.daily.scored .settle-next { margin: 0; text-align: center; font-size: calc(12.5px * var(--t, 1)); font-weight: 700; color: var(--gold-ink); line-height: 1.25; }
.settle.scored .settle-gap { margin: 0 0 2px; color: var(--ink); }
/* The points of their maximum, the year beside them; the ⓘ keeps a 44 pt target around its 26 px disc. */
.settle.scored .settle-points { flex-wrap: wrap; column-gap: 8px; row-gap: 0; margin: 0 0 4px; }
.settle.scored .settle-points .ss-year { font-size: calc(13.5px * var(--t, 1)); font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.settle.scored .settle-points .ss-info { position: relative; }
.settle.scored .settle-points .ss-info::after { content: ''; position: absolute; inset: -9px; }
/* The carry line with the cards that carry: one or two lines, each card's end month small. */
.settle-carry.with-cards .sc-line { flex-wrap: wrap; justify-content: center; row-gap: 0; max-width: 100%; border-radius: 22px; }
.settle-carry .sc-plus { font-size: calc(18px * var(--t, 1)); font-weight: 800; color: var(--gold-ink); }
.settle-carry .sc-card { font-size: calc(15px * var(--t, 1)); font-weight: 800; color: var(--ink); white-space: nowrap; }
.settle-carry .sc-exp { margin-left: 4px; font-size: calc(10.5px * var(--t, 1)); font-weight: 700; letter-spacing: .04em; color: var(--ink-2); }
/* The den on a scored month's card: the whole room (shelves to the floor's last row of hay), never cropped, as large as the
   card's spare height allows; on a short phone it narrows rather than scroll. */
.settle.scored .home-wrap.stage { flex: 1 1 0; min-height: 96px; width: 100%; max-width: 100%; height: auto; aspect-ratio: auto; display: flex; justify-content: center; align-items: center; margin: 4px auto 8px; overflow: visible; border-radius: 0; background: none; box-shadow: none; }
.settle.scored .home-wrap.stage canvas { width: auto; height: auto; max-width: min(100%, 340px); max-height: 100%; aspect-ratio: 1024 / 1216; object-fit: contain; border-radius: 18px; box-shadow: var(--shadow); }
/* The compare sheet: the headline, the items that lost acorns as facts, what a point is. */
.review-pop.cmp-pop .cmp-head { margin: 2px 0 10px; text-align: center; }
.review-pop.cmp-pop .review.cmp { display: block; width: 100%; }
.cmp-list { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cmp-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: calc(15px * var(--t, 1)); font-weight: 700; color: var(--ink); line-height: 1.3; text-align: left; }
.cmp-row img { width: 36px; height: 36px; object-fit: contain; flex: none; }
.cmp-more { padding: 0 12px; font-size: calc(13px * var(--t, 1)); font-weight: 700; color: var(--ink-2); }
.cmp-info { margin: 4px 0 12px; font-size: calc(13px * var(--t, 1)); font-weight: 600; color: var(--ink-2); line-height: 1.35; text-align: center; }
/* Deals sit on the item's picture, upper left, a little over its edge (the shop warnings keep the upper right). */
.ss-art .row-deal { position: absolute; top: -4px; left: 0; display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px; background: rgba(255,248,234,.92); box-shadow: 0 1px 3px rgba(40,25,5,.3); pointer-events: none; z-index: 2; }
.row-deal .cb { display: grid; place-items: center; width: 19px; height: 19px; aspect-ratio: 1 / 1; padding: 0; font-size: 10px; line-height: 1; color: #fff; border-radius: 50%; box-shadow: none; font-family: -apple-system, system-ui, sans-serif; font-weight: 800; }
.row-deal .cb-pack { background: #8a6d1c; font-size: 9.5px; } .row-deal .cb-bogo { background: #487c4d; font-size: 8px; }
.row-deal .cb-flash { display: inline-flex; align-items: center; justify-content: center; gap: 1px; width: auto; min-width: 19px; padding: 0 4px; border-radius: 999px; background: #e0b23c; color: #3b2a06; }
.row-deal .cb-flash .cb-bolt { width: 6px; height: 9px; fill: currentColor; } .row-deal .cb-flash .cb-n { font-size: 9px; }
.pk-item .ss-art { position: relative; }
/* The bar's wallet: "🌰69 cash | 🌰15 cards" and a card ending today's red ! (cleanup pass, owner). */
.hud-wallet .hw-sum { display: inline-flex; align-items: baseline; gap: 4px; }
.hud-wallet .hw-sum b { font-weight: 800; }
.hud-wallet .hw-sep { margin: 0 4px; font-style: normal; opacity: .45; }
.hud-wallet .hw-ending { position: static; align-self: center; display: inline-grid; place-items: center; width: 17px; height: 17px; margin-left: 4px; border-radius: 50%; background: #a5483a; color: #fff; font-size: 11px; font-style: normal; font-weight: 800; line-height: 1; box-shadow: none; }
.review .rv-line.cmp-row { justify-content: flex-start; align-items: center; }
.review .rv-line.cmp-more, .review .rv-line.cmp-info { display: block; }

/* ---- the screens pass (17 Oct 2026) ---------------------------------------------------------------------------------- */
/* "Look out for", simplified (owner): one row per action icon in play this month, its icon (play's own badge) and a few
   words. Rows are paper strips like the old ones, one line where it fits. */
.intro .lookout.lo-simple { gap: 6px; margin: 8px 0 12px; }
.intro .lookout .lo-row { display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 12px; border-radius: 10px; background: #fbf1d8; border: 1.5px dashed rgba(138,106,31,.38); box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 2px 6px rgba(60,40,10,.10); text-align: left; font-size: calc(14.5px * var(--t, 1)); font-weight: 600; line-height: 1.3; color: var(--ink); }
.intro .lookout .lo-row:nth-child(odd) { transform: rotate(-.5deg); } .intro .lookout .lo-row:nth-child(even) { transform: rotate(.4deg); }
@media (prefers-reduced-motion: reduce) { .intro .lookout .lo-row { transform: none; } }
.lo-row .lo-icon { flex: 0 0 40px; display: grid; place-items: center; min-height: 26px; }
.lo-row .lo-icon .cb { width: 24px; height: 24px; font-size: 13px; }
.lo-row .lo-icon .cb.cb-deal { display: inline-flex; align-items: center; justify-content: center; }
.lo-row .lo-icon .cb-bogo { font-size: 10px; } .lo-row .lo-icon .cb-pack { font-size: 11.5px; } .lo-row .lo-icon .cb-flash .cb-bolt { width: 9px; height: 13px; }
.lo-row .lo-text { flex: 1 1 auto; min-width: 0; text-wrap: pretty; }
.lo-card { position: relative; display: inline-block; }
.lo-card .eq-anycard { display: block; --face-w: 36px; }
.lo-card .cb-flash { position: absolute; right: -7px; top: -7px; width: 17px; height: 17px; }
.lo-card .cb-flash .cb-bolt { width: 7px; height: 10px; }
.lo-pass .gift-card, .lo-pass > * { transform: scale(.9); transform-origin: center; }
/* Mags' "Cash only" (owner): a small standard capsule under the cash on her register, and the icon key's mark. */
.cash-only-cap { display: block; width: fit-content; margin: 8px auto 0; padding: 3px 10px 3px; border-radius: 999px; background: #efe1c4; border: 1px solid rgba(107,79,42,.28); color: #5e4523; font-size: calc(11.5px * var(--t, 1)); font-weight: 800; line-height: 1.2; letter-spacing: .02em; white-space: nowrap; }
.sym-row .sym-mark .cash-only-cap { margin: 0; }
/* The flash box in one line (owner): "🌰3 now, then 🌰7"; it may wrap to a second line only in the narrowest column. */
.pack-deal.fd-words .fd-then-w { display: inline; white-space: nowrap; }
.pack-deal.fd-words { white-space: normal; text-align: center; }
/* Every action icon on an item in one stack (owner): a column on the picture's upper-left corner (the deal badge's place),
   warnings first, then deals. A column keeps clear of the price tag (lower right, or under the picture in the item view)
   and of the boxes and the name (to the right). Three or more marks get the compact size. */
.ss-art .row-acts { position: absolute; top: -4px; left: -3px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 2px; border-radius: 11px; background: rgba(255,248,234,.92); box-shadow: 0 1px 3px rgba(40,25,5,.3); pointer-events: none; z-index: 2; box-sizing: border-box; }
.row-acts .cb { display: grid; place-items: center; width: 19px; height: 19px; aspect-ratio: 1 / 1; padding: 0; font-size: 10px; line-height: 1; color: #fff; border-radius: 50%; box-shadow: none; font-family: -apple-system, system-ui, sans-serif; font-weight: 800; }
.row-acts .cb-price-up { background: #9c6238; } .row-acts .cb-taken { background: #a55e4a; font-size: 9px; } .row-acts .cb-ending { background: #a5483a; }
.row-acts .cb-pack { background: #8a6d1c; font-size: 9.5px; } .row-acts .cb-bogo { background: #487c4d; font-size: 8px; }
.row-acts .cb-flash { display: inline-flex; align-items: center; justify-content: center; gap: 1px; width: auto; min-width: 19px; padding: 0 4px; border-radius: 999px; background: #e0b23c; color: #3b2a06; }
.row-acts .cb-flash .cb-bolt { width: 6px; height: 9px; fill: currentColor; } .row-acts .cb-flash .cb-n { font-size: 9px; }
.row-acts.n3 .cb, .row-acts.n4 .cb { width: 16px; height: 16px; font-size: 8.5px; } .row-acts.n3 .cb-flash, .row-acts.n4 .cb-flash { width: auto; min-width: 16px; padding: 0 3px; }
.row-acts.n3, .row-acts.n4 { gap: 1px; padding: 1.5px; top: -6px; }
.row-acts.n3 .cb-bogo, .row-acts.n4 .cb-bogo { font-size: 7px; }
.ss-art .row-acts, .row-acts.n3, .row-acts.n4 { top: 0; }   /* inside the picture's own box: the shop card's header sits right above the first line */
/* The list chips carry their item's stack (owner, 18 Oct 2026, from the phone): the same marks, compact, on the chip's upper-left
   corner over the picture's edge (the picture starts 14 px in), inside the chip (the row and the dock clip anything outside it,
   and the selected chip's inset ring runs 2 px in), clear of the ×N count and the ✓ at the chip's foot. No motion of its own
   (the old chip-badges tick is not used); the slam is the surprise's, stopped by Reduce Motion with every animation. */
.chip .row-acts.chip-acts { position: absolute; top: 3px; left: 3px; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 1.5px; border-radius: 10px; background: rgba(255,248,234,.92); box-shadow: 0 1px 3px rgba(40,25,5,.3); pointer-events: none; z-index: 2; box-sizing: border-box; }
.chip .row-acts.chip-acts .cb { width: 16px; height: 16px; font-size: 8.5px; }
.chip .row-acts.chip-acts .cb-flash { width: auto; min-width: 16px; padding: 0 3px; }
.chip .row-acts.chip-acts .cb-bogo { font-size: 7px; }
.chip .row-acts.chip-acts .cb-flash .cb-bolt { width: 5px; height: 8px; } .chip .row-acts.chip-acts .cb-flash .cb-n { font-size: 8px; }
/* The consequence pill and its ⓘ card lead with the affected item's picture and its action icons (owner). */
.pay-next .pn-pic { flex: none; position: relative; width: 30px; height: 30px; margin: -4px 8px -4px -6px; }
.pay-next .pn-pic img, .pay-next-dialog .pn-pic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pay-next .pn-pic .row-acts { top: -5px; left: -7px; transform: scale(.72); transform-origin: top left; }
.pay-next .pn-card { width: auto; height: auto; }
.pay-next .pn-card .gc-xs { width: 40px; }
.pay-next-dialog .pn-row { display: flex; align-items: center; gap: 12px; }
.pay-next-dialog .pn-pic { flex: none; position: relative; width: 44px; height: 44px; }
.pay-next-dialog .pn-pic .row-acts { top: -4px; left: -6px; }
.pay-next-dialog .pn-card { width: auto; height: auto; }
.pay-next-dialog .pn-row-text { min-width: 0; }
/* The card that holds a loss (owner): it stays until its × or a tap elsewhere; the × is a 44 pt target in the corner. */
.fb-card.sticky { pointer-events: auto; padding-right: 46px; display: block; }
.fb-card.sticky .fb-words { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center; }
.fb-card.sticky .fb-words > p { grid-column: 1; margin: 0; }
.fb-card.sticky .fb-pts { grid-column: 2; grid-row: 1 / span 3; }
.fb-card .fb-loss { margin-top: 3px; font-size: calc(14px * var(--t, 1)); font-weight: 700; line-height: 1.3; color: #5b4630; text-wrap: pretty; }
.fb-card.fb-loss { border-color: #b98a4a; }
.fb-card .fb-x { position: absolute; top: 0; right: 0; width: 44px; height: 44px; padding: 0; border: 0; background: none; display: grid; place-items: center; cursor: pointer; color: #6b5636; }
.fb-card .fb-x i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(107,86,54,.12); font: 800 18px/1 -apple-system, system-ui, sans-serif; font-style: normal; }
.lo-pass-face { display: grid; place-items: center; --face-w: 36px; width: var(--face-w); height: calc(var(--face-w) / var(--card-face-aspect)); border-radius: 4px; background: linear-gradient(#8f9aa3, #b8c1c8); box-shadow: 0 1px 2px rgba(60,40,10,.3); }
.lo-pass-face img { width: 16px; height: 16px; object-fit: contain; filter: brightness(1.6); }
.lo-pass .gift-card, .lo-pass > .gc { display: none; }
.pay-next.two { height: auto; min-height: 40px; padding-top: 4px; padding-bottom: 4px; }
.pay-next.two .pn-text { white-space: normal; text-overflow: clip; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; }
/* the 16:9 frame: the rows a little tighter so the longest month's card fits the 450-pt stage without scrolling */
html.aspect-wide .intro .lookout.lo-simple { gap: 4px; margin: 4px 0 8px; }
html.aspect-wide .intro .lookout .lo-row { padding: 5px 12px; }
/* A card's condition on its face ("+🌰12 on a sale"): dark paper and light ink, readable on every brand's face (owner,
   17 Oct 2026: on Sable's card in the wallet it read as an empty capsule). */
.gc-cond { background: rgba(28,18,8,.5); color: #fff8ea; }
.gc-cond tom-acorn, .gc-cond .acorn { color: inherit; }
/* Every action icon centred in its paper ring (owner, 17 Oct 2026: "more white at the bottom than the top"). The stall
   badge is a <button>, and WebKit gives a button's content its own line box, which sat the disc high on the phone: the
   ring is now an explicit size (the disc plus its 2-pt ring on every side), the button's own styling off, no line box. */
#stall-warn .stall-warn { -webkit-appearance: none; appearance: none; box-sizing: border-box; height: 24px; min-height: 0; line-height: 0; align-items: center; }
#stall-warn .stall-warn .cb { line-height: 1; }
.card-warn { box-sizing: border-box; height: 20px; line-height: 0; align-items: center; }
.card-warn .cb { line-height: 1; }
.row-acts .cb, .lo-row .cb { line-height: 1; }
