/*
   Lavender Coast — the design system.

   Everything visual hangs off the tokens in :root. The rule is that no rule below
   this block hard-codes a colour, a radius, a shadow or a duration: it names a token.
   Change the token and the whole game changes together, including the SVG scenes,
   which read the same custom properties.

   Type: Fraunces for anything that wants to feel hand-set (headings, money, the
   wordmark), Nunito for everything you actually have to read quickly. Both are
   bundled as latin-subset variable fonts — about 105 KB together — so the game looks
   the same offline, on a plane, on a borrowed laptop.
*/

@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 500 800;
    font-display: swap;
    src: url(../fonts/fraunces.woff2) format('woff2');
}

@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url(../fonts/nunito.woff2) format('woff2');
}

:root {
    /* ---- type ---------------------------------------------------------- */
    --font-ui: 'Nunito', ui-sans-serif, -apple-system, "Segoe UI", system-ui, sans-serif;
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --wonk: 'SOFT' 40, 'WONK' 1;

    --fs-xs:  .69rem;
    --fs-sm:  .81rem;
    --fs-md:  .94rem;
    --fs-base: 1rem;
    --fs-lg:  1.16rem;
    --fs-xl:  1.45rem;
    --fs-2xl: 1.95rem;
    --fs-3xl: 2.55rem;

    /* ---- warm paper and ink -------------------------------------------- */
    --paper:      #fbf6ec;
    --paper-sunk: #f4ede0;
    --card:       #fffdf8;
    --card-warm:  #fdf8ee;
    --line:       #e9dfcd;
    --line-soft:  #f1e9db;
    --line-firm:  #dbcdb5;

    --ink:        #33283c;
    --ink-soft:   #6d6079;

    /* Two quiet greys, not one. LC-038's legibility gate measured the old single
       --ink-faint at 2.6:1 against paper, which is not a colour text can be. It is kept
       for what it was always fine at — hairlines, dividers, the stroke on a small icon —
       and --ink-quiet is what de-emphasised TEXT uses. Hierarchy comes from size and
       weight now, which is where it should have come from anyway. */
    --ink-faint:  #a295ad;
    --ink-quiet:  #655c6d;
    --ink-invert: #fffdf8;

    /* ---- lavender, the whole point ------------------------------------- */
    --lav-50:  #f5f0fc;
    --lav-100: #eae0f8;
    --lav-200: #d7c6f1;
    --lav-300: #bda3e6;
    --lav-400: #9f7fd6;
    --lav-500: #8460c3;
    --lav-600: #6d4aa8;
    --lav-700: #573a87;
    --lav-800: #422c66;

    --sage-50:  #eef4ec;
    --sage-200: #cfe0c8;
    --sage-400: #8bb283;
    --sage-600: #58895a;
    --sage-700: #416b46;

    --clay-50:  #fbeee8;
    --clay-400: #d98366;
    --clay-600: #b8563a;

    --gold-50:  #fbf2dc;
    --gold-400: #e0ae4d;
    --gold-600: #a97c22;

    /* ---- semantic ------------------------------------------------------ */
    /* These are the colours that carry MEANING in text — a margin that is too thin, a
       fair that is coming, a thing somebody loves. Each is the palette colour darkened
       just far enough to clear 4.5:1 on the lightest ground it is ever used on. The
       scales themselves are untouched, because the scenes draw with them. */
    --accent:      #7b59b5;
    --accent-deep: var(--lav-700);
    --accent-wash: var(--lav-50);
    --good:        #4b744c;
    --good-wash:   var(--sage-50);
    --bad:         #ab5036;
    --bad-small:   #944428;   /* for 11px text on sunk paper, where --bad measures 4.4:1 */
    --bad-wash:    var(--clay-50);
    --warn:        #89641c;
    --warn-wash:   var(--gold-50);

    /* back-compat aliases: older rules still name these */
    --lavender:      var(--accent);
    --lavender-deep: var(--lav-700);
    --lavender-wash: var(--lav-50);
    --sage:          var(--good);
    --sage-wash:     var(--sage-50);
    --clay:          var(--bad);
    --clay-wash:     var(--clay-50);
    --gold:          var(--warn);

    /* ---- space and shape ----------------------------------------------- */
    --s-1: 4px;  --s-2: 6px;  --s-3: 8px;  --s-4: 12px;
    --s-5: 16px; --s-6: 20px; --s-7: 28px; --s-8: 40px;

    --r-xs:   6px;
    --r-sm:   9px;
    --r-md:   13px;
    --r-lg:   18px;
    --r-xl:   24px;
    --r-pill: 999px;
    --radius: var(--r-md);

    /* Warm shadows. Cool grey shadows are what make a cozy scene look like a form. */
    --sh-1: 0 1px 2px rgba(84, 62, 40, .07);
    --sh-2: 0 1px 2px rgba(84, 62, 40, .05), 0 7px 18px -6px rgba(84, 62, 40, .13);
    --sh-3: 0 2px 5px rgba(84, 62, 40, .06), 0 18px 38px -14px rgba(84, 62, 40, .22);
    --sh-lift: 0 3px 6px rgba(84, 62, 40, .07), 0 14px 30px -10px rgba(84, 62, 40, .2);
    --shadow: var(--sh-2);
    --edge-top: inset 0 1px 0 rgba(255, 255, 255, .75);

    /* ---- motion --------------------------------------------------------- */
    --ease-out:  cubic-bezier(.22, .68, .32, 1);
    --ease-soft: cubic-bezier(.4, .12, .2, 1);
    --ease-pop:  cubic-bezier(.28, 1.42, .52, 1);
    --t-quick: .16s;
    --t-base:  .32s;
    --t-slow:  .58s;
}

/*  Round 36: the game has one look. Joe's phone is in dark mode, and these blocks still followed it: light ink on the
    game skin's parchment cards (rounds 33–35), Nell's list white on cream — "i cant even read it". The game's world,
    its windows and its panels are one painted thing, the same on every device, so the device's dark setting no longer
    reaches it: each dark block below is kept for the record and matches no screen (max-width: 0). */
:root { color-scheme: light; }
@media (prefers-color-scheme: dark) and (max-width: 0px) {
    :root {
        --paper:      #17131d;
        --paper-sunk: #120f17;
        --card:       #211b29;
        --card-warm:  #251e2e;
        --line:       #362d42;
        --line-soft:  #2b2434;
        --line-firm:  #46394f;

        --ink:        #efe8f3;
        --ink-soft:   #ac9fba;
        --ink-faint:  #7d7189;
        --ink-quiet:  #a294b1;
        --ink-invert: #1b1622;

        --lav-50:  #261e35;
        --lav-100: #322646;
        --lav-200: #463560;
        --lav-300: #6d54a0;
        --lav-400: #9b7ed8;
        --lav-500: #b79aef;
        --lav-600: #cbb4f7;
        --lav-700: #ddccfb;
        --lav-800: #ece2ff;

        --sage-50:  #1b2620;
        --sage-200: #2c3f31;
        --sage-400: #6f9b74;
        --sage-600: #92c49a;
        --sage-700: #b0d8b6;

        --clay-50:  #2d1f1b;
        --clay-400: #c9765a;
        --clay-600: #ea9d84;

        --gold-50:  #2b2416;
        --gold-400: #c69c46;
        --gold-600: #e2bb69;

        /* On a dark ground the scale colours are already well clear of 4.5:1, so the
           semantic tokens go back to being the scale rather than a darkened version of
           it. Darkening for contrast is a light-mode problem only. */
        --accent: var(--lav-500);
        --good:   var(--sage-600);
        --bad:    var(--clay-600);
        --bad-small: var(--clay-400);
        --warn:   var(--gold-600);

        --sh-1: 0 1px 2px rgba(0, 0, 0, .4);
        --sh-2: 0 1px 2px rgba(0, 0, 0, .35), 0 7px 18px -6px rgba(0, 0, 0, .5);
        --sh-3: 0 2px 5px rgba(0, 0, 0, .4), 0 18px 38px -14px rgba(0, 0, 0, .6);
        --sh-lift: 0 3px 6px rgba(0, 0, 0, .4), 0 14px 30px -10px rgba(0, 0, 0, .55);
        --edge-top: inset 0 1px 0 rgba(255, 255, 255, .06);
    }
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--paper);
    color: var(--ink);
    font: var(--fs-base)/1.58 var(--font-ui);
    -webkit-font-smoothing: antialiased;
    /* Only a real phone does these (LC-072): a drag down the world is a pull-to-refresh
       in Chrome, and a turn of the phone is a text-size change in Safari. */
    overscroll-behavior: none;
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
}

/* A whisper of paper tooth under everything. One tiled data-URI, no repaint cost. */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E");
}

@media (prefers-color-scheme: dark) and (max-width: 0px) {
    body::before { opacity: .28; }
}

main {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: var(--s-7) var(--s-6) 90px;
}

h1, h2, h3 {
    margin: 0 0 .4em;
}

h1, h2 {
    font-family: var(--font-display);
    font-variation-settings: var(--wonk);
    font-weight: 700;
    letter-spacing: -.012em;
    line-height: 1.16;
}

h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }

h3 {
    font-family: var(--font-ui);
    font-size: var(--fs-xs);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--ink-quiet);
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .9em;
    background: var(--accent-wash);
    color: var(--accent-deep);
    padding: .1em .35em;
    border-radius: var(--r-xs);
}

/* ---------------------------------------------------------------- top bar */

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-6);
    flex-wrap: wrap;
    padding: var(--s-4) var(--s-6);
    background: linear-gradient(180deg, var(--card) 0%, var(--card-warm) 100%);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-1);
    position: sticky;
    top: 0;
    z-index: 20;
}

.brand { display: flex; align-items: center; gap: var(--s-3); }

.wordmark {
    font-family: var(--font-display);
    font-variation-settings: var(--wonk);
    font-weight: 700;
    font-size: var(--fs-lg);
    letter-spacing: -.015em;
}

.tag {
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .13em;
    color: var(--accent-deep);
    background: var(--accent-wash);
    border: 1px solid var(--lav-100);
    padding: .2em .62em;
    border-radius: var(--r-pill);
}

/* A sprig of lavender, drawn in CSS. Stands in for a logo without pretending to be one. */
.sprig {
    width: 12px;
    height: 20px;
    flex: none;
    background:
        radial-gradient(ellipse 4px 6px at 50% 22%, var(--lav-400) 60%, transparent 62%),
        radial-gradient(ellipse 3px 5px at 50% 47%, var(--lav-400) 60%, transparent 62%),
        radial-gradient(ellipse 2px 4px at 50% 70%, var(--lav-400) 60%, transparent 62%),
        linear-gradient(var(--sage-600), var(--sage-600)) 50% 68% / 1.5px 32% no-repeat;
}

.stats { display: flex; gap: var(--s-5); align-items: center; flex-wrap: wrap; }

.stat {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 54px;
    padding: 2px var(--s-3) 3px;
    border-radius: var(--r-sm);
}

.stat .label {
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .11em;
    color: var(--ink-quiet);
}

.stat .value {
    font-family: var(--font-display);
    font-variation-settings: var(--wonk);
    font-weight: 700;
    font-size: 1.06rem;
    letter-spacing: -.01em;
    font-variant-numeric: tabular-nums;
}

.stat.money { background: var(--accent-wash); }
.stat.money .value { color: var(--accent-deep); }

.meter {
    display: block;
    width: 78px;
    height: 7px;
    margin-top: 5px;
    background: var(--paper-sunk);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    overflow: hidden;
}

.meter .fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--lav-300), var(--lav-500));
    border-radius: var(--r-pill);
    transition: width var(--t-slow) var(--ease-out);
}

.meter.charm .fill { background: linear-gradient(90deg, var(--sage-400), var(--sage-600)); }

/* ---------------------------------------------------------------- layout */

.columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 334px;
    gap: 20px;
    align-items: start;
}

@media (max-width: 940px) {
    .columns { grid-template-columns: minmax(0, 1fr); }
}

.side { display: flex; flex-direction: column; gap: 20px; }

.panel {
    position: relative;
    background:
        linear-gradient(180deg, var(--card) 0%, var(--card-warm) 100%);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-2), var(--edge-top);
    padding: var(--s-6) 22px;
}

/* A hairline of lavender along the top of every panel. Ties the whole UI together
   without adding another box. */
.panel::after {
    content: '';
    position: absolute;
    inset: 0 14px auto;
    height: 2px;
    border-radius: var(--r-pill);
    background: linear-gradient(90deg, transparent, var(--lav-200) 22%, var(--lav-200) 78%, transparent);
    opacity: .75;
    pointer-events: none;
}

.panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--s-4);
    margin-bottom: var(--s-4);
}

.panel-head h2 { margin: 0; }

.forecast {
    font-size: var(--fs-sm);
    font-weight: 700;
    padding: .26em .8em;
    border-radius: var(--r-pill);
    background: var(--accent-wash);
    color: var(--accent-deep);
    border: 1px solid transparent;
    white-space: nowrap;
    box-shadow: var(--sh-1);
}

.forecast.rain, .forecast.heavyrain, .forecast.fog { background: var(--paper-sunk); color: var(--ink-soft); }
.forecast.goldenhour { background: var(--gold-50); color: var(--gold-600); }
.forecast.clear { background: var(--sage-wash); color: var(--sage-700); }

@media (prefers-color-scheme: dark) and (max-width: 0px) {
    .forecast.rain, .forecast.heavyrain, .forecast.fog { background: #1d2733; color: var(--ink-soft); }
    .forecast.goldenhour { background: #2e2718; color: var(--gold); }
    .forecast.clear { background: var(--sage-wash); color: var(--sage); }
}

/* ---------------------------------------------------------------- intro */

.intro {
    max-width: 620px;
    margin: 0;
    max-height: min(92vh, 780px);
    overflow-y: auto;
    overscroll-behavior: contain;
}
.titlepage .intro p { margin-bottom: .7em; }
.titlepage .intro .naming { margin: var(--s-4) 0; }
.intro h1 { margin-bottom: .35em; }
.lede { font-size: 1.08rem; color: var(--ink); }
.quiet { color: var(--ink-soft); }
.small { font-size: .84rem; }

/* ---------------------------------------------------------------- products */

table { width: 100%; border-collapse: collapse; }

.products { margin: 6px 0 4px; }

.products th {
    text-align: left;
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--ink-quiet);
    font-weight: 800;
    padding: 0 var(--s-3) var(--s-2);
    border-bottom: 1px solid var(--line);
}

.products td { padding: 11px var(--s-3); border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.products tbody tr { transition: background var(--t-quick) var(--ease-out); }
.products tbody tr:hover { background: var(--accent-wash); }
.products tr:last-child td { border-bottom: none; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

.off-shelf { opacity: .5; }
.off-shelf:hover { opacity: .78; }

.pname { font-weight: 700; }
.pcat { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em; color: var(--ink-quiet); }
.cost { color: var(--ink-soft); }

.price-input {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    border: 1px solid var(--line-firm);
    border-radius: var(--r-sm);
    padding: 3px var(--s-3);
    background: var(--paper);
    box-shadow: inset 0 1px 2px rgba(84, 62, 40, .06);
    transition: border-color var(--t-quick) var(--ease-out), box-shadow var(--t-quick) var(--ease-out);
}

.price-input:focus-within { border-color: var(--lav-400); box-shadow: 0 0 0 3px var(--lav-100); }
.price-input span { color: var(--ink-quiet); font-size: .84rem; }

.price-input input {
    width: 62px;
    font-weight: 700;
    border: none;
    background: none;
    color: var(--ink);
    font: inherit;
    font-variant-numeric: tabular-nums;
    text-align: right;
    padding: 2px 0;
}

.price-input input:focus { outline: none; }

.margin { font-size: .68rem; color: var(--ink-quiet); margin-top: 2px; }
.margin.thin { color: var(--clay); }

.stock { font-family: var(--font-display); font-variation-settings: var(--wonk); font-weight: 700; font-size: 1.02rem; }
.stock.empty { color: var(--clay); }

.restock { white-space: nowrap; }

.restock button {
    font-size: var(--fs-sm);
    font-weight: 800;
    padding: .26em .6em;
    margin-left: 3px;
    border: 1px solid var(--line-firm);
    border-radius: var(--r-xs);
    background: var(--card);
    color: var(--ink-soft);
    cursor: pointer;
    box-shadow: var(--sh-1);
    transition: all var(--t-quick) var(--ease-out);
}

.restock button:hover:not(:disabled) { border-color: var(--lav-300); color: var(--accent-deep); transform: translateY(-1px); }
.restock button:active:not(:disabled) { transform: translateY(1px); box-shadow: none; }
.restock button:disabled { opacity: .35; cursor: not-allowed; }

.shelf button {
    font-size: var(--fs-sm);
    font-weight: 700;
    padding: .32em .8em;
    border-radius: var(--r-pill);
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: all var(--t-quick) var(--ease-out);
}

.shelf-on { background: var(--lav-100); color: var(--accent-deep); border-color: var(--lav-200); font-weight: 800; }
.shelf-off { background: none; color: var(--ink-quiet); border-color: var(--line) !important; }
.shelf-off:hover { color: var(--lavender-deep); border-color: var(--lavender) !important; }

/* ---------------------------------------------------------------- buttons */

button { font-family: inherit; }

.primary {
    background: linear-gradient(180deg, var(--lav-400) 0%, var(--lav-600) 100%);
    color: #fff;
    border: none;
    border-radius: var(--r-md);
    padding: .64em 1.5em;
    font-family: var(--font-ui);
    font-size: var(--fs-md);
    font-weight: 800;
    letter-spacing: .005em;
    cursor: pointer;
    box-shadow: var(--sh-2), inset 0 1px 0 rgba(255, 255, 255, .3);
    transition: transform var(--t-quick) var(--ease-out),
                box-shadow var(--t-quick) var(--ease-out),
                filter var(--t-quick) var(--ease-out);
}

.primary:hover:not(:disabled) { filter: brightness(1.07); transform: translateY(-1px); box-shadow: var(--sh-lift), inset 0 1px 0 rgba(255, 255, 255, .34); }
.primary:active:not(:disabled) { transform: translateY(1px); box-shadow: var(--sh-1); filter: brightness(.96); }
.primary:disabled { opacity: .38; cursor: not-allowed; box-shadow: none; }

@media (prefers-color-scheme: dark) and (max-width: 0px) {
    .primary { color: #1a1520; }
}

.big { padding: .78em 1.9em; font-size: var(--fs-lg); border-radius: var(--r-lg); }

.ghost {
    background: var(--card);
    border: 1px solid var(--line-firm);
    border-radius: var(--r-md);
    padding: .62em 1.15em;
    color: var(--ink-soft);
    font-family: var(--font-ui);
    font-size: var(--fs-md);
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--sh-1);
    transition: border-color var(--t-quick) var(--ease-out),
                color var(--t-quick) var(--ease-out),
                transform var(--t-quick) var(--ease-out);
}

.ghost:hover { border-color: var(--lav-300); color: var(--accent-deep); transform: translateY(-1px); }
.ghost:active { transform: translateY(1px); }

:where(button, a, input, select):focus-visible {
    outline: 2px solid var(--lav-400);
    outline-offset: 2px;
    border-radius: var(--r-sm);
}

.actions { display: flex; gap: 10px; align-items: center; margin-top: 18px; flex-wrap: wrap; }

.hint { color: var(--ink-soft); font-size: .88rem; margin: 0 0 10px; }
.warn { color: var(--clay); font-size: .85rem; margin: 8px 0 0; }

/* ---------------------------------------------------------------- day report */

.beats { margin: 4px 0 18px; }

.beat {
    margin: 0 0 var(--s-2);
    padding: 11px var(--s-5);
    border-radius: var(--r-md);
    border-left: 4px solid var(--line-firm);
    background: var(--paper);
    box-shadow: var(--sh-1);
    font-size: var(--fs-md);
    animation: beatin .4s var(--ease-out) both;
}

.beat:nth-child(2) { animation-delay: .05s; }
.beat:nth-child(3) { animation-delay: .1s; }
.beat:nth-child(4) { animation-delay: .15s; }
.beat:nth-child(5) { animation-delay: .2s; }

@keyframes beatin { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .beat { animation: none; } }

.beat.good { border-left-color: var(--sage-600); background: var(--sage-50); }
.beat.bad { border-left-color: var(--clay-600); background: var(--clay-50); }
.beat.neutral { border-left-color: var(--ink-quiet); }

.figures {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: 10px;
    margin: 16px 0;
}

.figure {
    padding: var(--s-4) var(--s-5);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: linear-gradient(180deg, var(--card) 0%, var(--card-warm) 100%);
    box-shadow: var(--sh-1), var(--edge-top);
}

.figure .fl {
    display: block;
    font-size: var(--fs-xs);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--ink-quiet);
}

.figure .fv {
    display: block;
    font-family: var(--font-display);
    font-variation-settings: var(--wonk);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -.015em;
    font-variant-numeric: tabular-nums;
}

.figure.good .fv { color: var(--sage-700); }
.figure.bad .fv { color: var(--clay-600); }

.sales { margin-top: 6px; font-size: .9rem; }

.sales th {
    text-align: left;
    font-size: .64rem;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--ink-quiet);
    padding: 0 8px 6px;
    border-bottom: 1px solid var(--line);
}

.sales td { padding: 8px; border-bottom: 1px solid var(--line); }
.sales tr:last-child td { border-bottom: none; }
.sales .zero { color: var(--ink-quiet); }
.sales .missed { color: var(--clay); font-weight: 600; }

/* ---------------------------------------------------------------- upgrades */

.upgrade {
    padding: var(--s-4);
    margin-bottom: var(--s-2);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-md);
    background: var(--paper);
    transition: border-color var(--t-quick) var(--ease-out),
                box-shadow var(--t-quick) var(--ease-out),
                transform var(--t-quick) var(--ease-out);
}

.upgrade:last-child { margin-bottom: 0; }
.upgrade:hover:not(.owned):not(.locked) { border-color: var(--lav-200); box-shadow: var(--sh-2); transform: translateY(-1px); }
.upgrade.owned { opacity: .62; background: var(--sage-50); border-color: var(--sage-200); }
.upgrade.locked { opacity: .5; }

.urow { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.uname { font-size: var(--fs-md); font-weight: 800; }
.udesc { font-size: var(--fs-sm); color: var(--ink-soft); margin-top: 3px; }

.buy {
    background: linear-gradient(180deg, var(--lav-100), var(--lav-200));
    color: var(--accent-deep);
    border: 1px solid var(--lav-200);
    border-radius: var(--r-sm);
    padding: .34em .8em;
    font-family: var(--font-ui);
    font-size: var(--fs-sm);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: var(--sh-1);
    transition: all var(--t-quick) var(--ease-out);
}

.buy:hover:not(:disabled) { background: linear-gradient(180deg, var(--lav-400), var(--lav-600)); border-color: var(--lav-600); color: var(--card); transform: translateY(-1px); box-shadow: var(--sh-2); }
.buy:active:not(:disabled) { transform: translateY(1px); box-shadow: none; }
.buy:disabled { opacity: .38; cursor: not-allowed; box-shadow: none; }

.ubadge {
    font-size: var(--fs-xs);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--sage-700);
}

/* ---------------------------------------------------------------- history */

.spark {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 3px;
    height: 100px;
    margin: 4px 0 14px;
}

/* The zero line, so a bar hanging downwards reads as money lost rather than as a block. */
.spark::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 50%;
    height: 1px;
    background: var(--line-firm);
}

.barcell {
    position: relative;
    flex: 1;
    min-width: 4px;
    max-width: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bar { display: block; border-radius: 2px 2px 0 0; background: var(--good); margin-top: auto; }
.bar.pos { align-self: stretch; margin-top: auto; margin-bottom: 50%; }
.bar.neg { background: var(--bad); border-radius: 0 0 2px 2px; margin-top: 50%; margin-bottom: auto; }

.hlist { list-style: none; margin: 0; padding: 0; font-size: .85rem; }

.hlist li {
    display: grid;
    grid-template-columns: 3.6em 1fr auto;
    gap: 8px;
    padding: 5px 0;
    border-bottom: 1px solid var(--line);
}

.hlist li:last-child { border-bottom: none; }
.hd { color: var(--ink-soft); }
.hw { color: var(--ink-quiet); font-size: .8rem; }
.hn { font-variant-numeric: tabular-nums; font-weight: 550; }
.hn.good { color: var(--sage); }
.hn.bad { color: var(--clay); }

/* ---------------------------------------------------------------- survey */

.survey { max-width: 640px; margin: 30px auto; }
.q { margin: 22px 0; }
.q label { display: block; font-weight: 550; margin-bottom: 8px; }

.scale { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

.scale button {
    min-width: 42px;
    padding: .42em .8em;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--paper);
    color: var(--ink-soft);
    cursor: pointer;
    font-size: .9rem;
}

.scale button.on { background: var(--lavender); border-color: var(--lavender); color: var(--card); font-weight: 600; }

@media (prefers-color-scheme: dark) and (max-width: 0px) {
    .scale button.on { color: #1a1520; }
}

.scale-ends { font-size: .75rem; color: var(--ink-quiet); margin-left: 6px; }

textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    padding: 10px 12px;
    resize: vertical;
}

textarea:focus { outline: none; border-color: var(--lavender); box-shadow: 0 0 0 3px var(--lavender-wash); }

/* ---------------------------------------------------------------- misc */

.loading {
    position: fixed; inset: 0;
    display: grid; place-items: center;
    overflow: hidden;
    background: #2a1f38;
    color: #fffdf8;
}
.load-sky { position: absolute; inset: 0; background: linear-gradient(180deg, #3b2f58 0%, #7a5a86 45%, #d9906f 78%, #f0b784 100%); }
.load-ridge { position: absolute; left: -10%; right: -10%; bottom: 0; height: 34%;
    background: radial-gradient(ellipse 34% 60% at 22% 100%, #3d3352 0 60%, transparent 61%),
                radial-gradient(ellipse 40% 72% at 58% 100%, #34294a 0 60%, transparent 61%),
                radial-gradient(ellipse 30% 52% at 88% 100%, #3d3352 0 60%, transparent 61%),
                linear-gradient(180deg, transparent 0%, #2a1f38 100%); }
.load-mark { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; animation: markin 1s var(--ease-out) both; }
.load-sprig { position: relative; width: 84px; height: 168px; }
.load-sprig svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.load-sprig .ls-back { opacity: .55; }
/* the coloured sprig shows from the bottom up, as far as the download has come */
.ls-fill { position: absolute; left: 0; right: 0; bottom: 0; height: var(--blazor-load-percentage, 8%); overflow: hidden; transition: height .35s ease; }
.ls-fill svg { position: absolute; left: 0; bottom: 0; height: 168px; width: 84px; }
.load-name { font-family: var(--font-display); font-variation-settings: 'SOFT' 60, 'WONK' 1; font-weight: 800; font-size: 2rem; letter-spacing: -.015em; text-shadow: 0 2px 14px rgba(24, 14, 34, .5); }
.load-pct { font-variant-numeric: tabular-nums; font-weight: 700; font-size: var(--fs-md); opacity: .85; min-height: 1.3em; }
.load-pct::after { content: var(--blazor-load-percentage-text, ""); }
.load-line { font-size: var(--fs-sm); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; opacity: .7; animation: loadpulse 1.8s ease-in-out infinite; }
@keyframes loadpulse { 0%, 100% { opacity: .45; } 50% { opacity: .85; } }
@media (prefers-reduced-motion: reduce) { .load-line, .load-mark { animation: none; } }

.fatal { max-width: 640px; margin: 60px auto; padding: 0 22px; line-height: 1.6; }
.fatal h1 { font-size: 1.5rem; margin-bottom: .6em; }
.fatal p { margin: 0 0 1em; }
.fatal a { color: var(--lavender-deep); }

.fatal pre {
    background: var(--clay-wash);
    color: var(--clay);
    padding: 14px;
    border-radius: 8px;
    white-space: pre-wrap;
    font-size: .85rem;
}

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 20px;
    background: var(--gold-50);
    color: #4a3a14;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, .1);
}

#blazor-error-ui .dismiss { cursor: pointer; float: right; }

/* ---------------------------------------------------------------- narrow screens

   Playtesters will open the link on a phone. The product table becomes a stack of
   cards rather than a table that bursts out of its container.
*/

.table-wrap { margin: 6px 0 4px; }

@media (max-width: 720px) {
    main { padding: 16px 12px 60px; }

    .topbar { padding: 10px 14px; gap: 12px; }
    .stats { gap: 14px; row-gap: 8px; }
    .stat { min-width: 46px; }

    .panel { padding: 16px 15px; }
    .panel-head { flex-wrap: wrap; gap: 8px; }

    .products thead { display: none; }

    .products, .products tbody, .products tr, .products td { display: block; width: 100%; }

    .products tr {
        border: 1px solid var(--line);
        border-radius: 9px;
        padding: 12px 14px;
        margin-bottom: 10px;
        background: var(--paper);
    }

    .products tr.on-shelf { border-color: var(--lavender); background: var(--card); }

    .products td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 5px 0;
        border-bottom: none;
        text-align: left;
    }

    .products td[data-label]::before {
        content: attr(data-label);
        font-size: .68rem;
        text-transform: uppercase;
        letter-spacing: .08em;
        color: var(--ink-quiet);
        flex: none;
    }

    .products td:first-child { padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
    .products td.num { text-align: right; }

    .products td.shelf { padding-top: 10px; }
    .products td.shelf button { width: 100%; padding: .55em; font-size: .85rem; }

    .price-input input { width: 78px; }
    .margin { text-align: right; }

    .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .actions { flex-direction: column; align-items: stretch; }
    .actions button { width: 100%; }

    .intro, .survey { margin: 18px auto; }
    h1 { font-size: 1.5rem; }
}

/* Very narrow: let the two stat meters drop rather than squeeze everything. */
@media (max-width: 430px) {
    .meter-stat { display: none; }
    .sales { font-size: .84rem; }
    .sales td, .sales th { padding: 7px 5px; }
}

/* ================================================================= the place */

.scene {
    position: relative;
    width: 100%;
    aspect-ratio: 1000 / 520;
    min-height: 260px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--lav-100);
    box-shadow: inset 0 0 0 1px rgba(42, 36, 49, .08);
}

.scene svg { display: block; width: 100%; height: 100%; }

/* LC-043: a scene is several SVG layers stacked in one box, each its own surface, so
   an animation in one repaints only that one. The life layer (people, floating money)
   is a second .scene box laid exactly over the first. */
.scene > svg.lyr { position: absolute; inset: 0; pointer-events: none; }
.scene > svg.lyr .hit { pointer-events: none; }
.scene > svg.lyr .hotlayer.live .hit { pointer-events: all; }
.scene.life { position: absolute; inset: 0; background: none; box-shadow: none; pointer-events: none; }

/* Sky and light shift over a few seconds rather than snapping between days. */
.scene svg linearGradient stop,
.scene svg radialGradient stop { transition: stop-color 1.2s ease, stop-opacity 1.2s ease; }
.scene svg rect, .scene svg path { transition: fill .9s ease, opacity .9s ease; }

.signtext {
    font: 600 9px ui-sans-serif, system-ui, sans-serif;
    letter-spacing: .11em;
}

.roadsign { font: 700 11px ui-sans-serif, system-ui, sans-serif; letter-spacing: .13em; }
.roadsign.small { font-size: 7px; letter-spacing: .18em; opacity: .8; }

/* People glide rather than teleport between playback frames. */
.folk g { transition: transform .55s linear, opacity .5s ease; }

/* Rain used to animate every drop separately: on a wet day that was ninety-five
   simultaneous animations and cost roughly half the frame budget (measured, 32fps
   against 57 on a dry one). The drops are now laid out twice, one tile above the
   other, inside a single group that slides one tile-height and repeats — so it is
   ONE animation, it never seams, and every drop falls at the same speed, which is
   what rain actually does. */
.rainsheet {
    animation: raindown .62s linear infinite;
    will-change: transform;
}

.rain.heavy .rainsheet { animation-duration: .4s; }
.rain line { opacity: .55; }
.rain.heavy line { opacity: .8; }

@keyframes raindown {
    from { transform: translate(9px, -78px); }
    to   { transform: translate(0, 0); }
}

.snowsheet { animation: snowdown 3.4s linear infinite; will-change: transform; }
@keyframes snowdown {
    from { transform: translate(18px, -78px); }
    to   { transform: translate(0, 0); }
}

.fairy circle { animation: twinkle 3.4s ease-in-out infinite; }

@keyframes twinkle {
    0%, 100% { opacity: .55; }
    50%      { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .rain line, .fairy circle { animation: none; }
    .folk g, .scene svg rect, .scene svg path { transition: none; }
}

/* ================================================================= stage & HUD */

.stage { position: relative; margin-bottom: var(--s-6); }

.hud {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-5);
    flex-wrap: wrap;
    padding: 34px var(--s-6) var(--s-4);
    background: linear-gradient(transparent, rgba(24, 16, 34, .28) 42%, rgba(24, 16, 34, .68));
    color: #fff;
}

.hud .clock {
    font-family: var(--font-display);
    font-variation-settings: var(--wonk);
    font-variant-numeric: tabular-nums;
    font-size: 1.72rem;
    font-weight: 700;
    letter-spacing: -.015em;
    text-shadow: 0 1px 5px rgba(0, 0, 0, .55);
}

.hud .tally {
    display: flex;
    gap: var(--s-6);
    align-items: baseline;
    font-size: var(--fs-md);
    font-weight: 600;
    text-shadow: 0 1px 5px rgba(0, 0, 0, .55);
}

.hud .tally strong {
    font-family: var(--font-display);
    font-variation-settings: var(--wonk);
    font-weight: 700;
    font-size: 1.1em;
    font-variant-numeric: tabular-nums;
}

.dc-figs .dc-gaveup { color: var(--bad, #b24a3c); }
.dc-figs .dc-gaveup b { color: inherit; }

/*  LC-091. The attention layer: where you are, who is waiting, and who is coming.

    All of it lives in the HUD over the scene rather than in a panel, because it is meant
    to be read at a glance while something else has your eye, and acted on without
    leaving the stand.                                                                   */
.hud .clock.elsewhere {
    color: var(--warn-ink, #ffd9a8);
    display: flex;
    align-items: baseline;
    gap: var(--s-3);
}
.hud .clk-where {
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: lowercase;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(214, 138, 54, .34);
    border: 1px solid rgba(255, 214, 160, .5);
    white-space: nowrap;
}
/* round 72: away on a trip (the barn, or home in the van), the pill fills as the trip goes, left to right */
.hud .clk-where.trip { background: linear-gradient(90deg, rgba(214, 138, 54, .78) calc(var(--trip, 0) * 100%), rgba(214, 138, 54, .26) calc(var(--trip, 0) * 100%)); }

.hud .queue {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(24, 16, 34, .42);
    border: 1px solid rgba(255, 255, 255, .26);
}
.hud .queue.long {
    background: rgba(168, 58, 48, .48);
    border-color: rgba(255, 190, 178, .6);
    animation: queuepush 1.8s ease-in-out infinite;
}
@keyframes queuepush { 0%, 100% { transform: none; } 50% { transform: translateY(-1px); } }

/*  Somebody is always on the path. Three states — plain, ready, alarm — and only the
    alarm carries a verb, so the card is quiet until it is not.                          */
.coming {
    flex: 0 1 380px;
    min-width: 0;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: var(--s-4);
    padding: 7px 10px;
    border-radius: 14px;
    background: rgba(24, 16, 34, .58);
    border: 1px solid rgba(255, 255, 255, .22);
    backdrop-filter: blur(3px);
    transition: background var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out);
}
/*  The tints sit over a bright sky at a low opacity, so they have to be saturated to read
    as anything at all — a tasteful 40% dark green over pale blue is just slate.          */
.coming.ready { border-color: rgba(190, 236, 178, .8); background: rgba(30, 88, 44, .78); }
.coming.alarm { border-color: rgba(255, 198, 158, .9); background: rgba(150, 52, 24, .84); }
.coming .cu-face { flex: 0 0 auto; width: 34px; height: 34px; }
.coming .cu-face svg { width: 100%; height: 100%; display: block; }
.coming .cu-body { display: flex; flex-direction: column; min-width: 0; gap: 0; }
.coming .cu-eyebrow {
    font-size: .6rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .66;
}
.coming .cu-body b {
    font-size: var(--fs-sm);
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.coming .cu-line { font-size: var(--fs-xs); font-weight: 600; opacity: .92; }
.coming .cu-do {
    margin-left: auto;
    flex: 0 0 auto;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 226, 190, .8);
    background: rgba(255, 226, 190, .92);
    color: #3a1f12;
    font-weight: 800;
    font-size: var(--fs-xs);
    cursor: pointer;
    animation: cudo 1.6s ease-in-out infinite;
}
.coming .cu-do:hover { background: #fff; }
@keyframes cudo { 0%, 100% { transform: none; } 50% { transform: scale(1.035); } }
@media (prefers-reduced-motion: reduce) {
    .hud .queue.long, .coming .cu-do { animation: none; }
}
@media (max-width: 640px) {
    .coming { flex-basis: 100%; order: -1; }
    .coming .cu-body b { white-space: normal; }
}

.hud .takings {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #cdf7d8;
}

.ghost.tiny {
    padding: .38em .9em;
    font-size: var(--fs-sm);
    font-weight: 800;
    color: #fff;
    border-color: rgba(255, 255, 255, .4);
    background: rgba(22, 14, 30, .34);
    backdrop-filter: blur(6px);
    box-shadow: none;
}

.ghost.tiny:hover { border-color: var(--card); color: var(--card); background: rgba(22, 14, 30, .5); }

.stat .value.flash { color: var(--sage); transition: color .1s ease; }

/* ================================================================= naming */

.naming { margin: 22px 0 8px; }

.naming label {
    display: block;
    font-size: .82rem;
    color: var(--ink-soft);
    margin-bottom: 6px;
}

.naming input {
    width: 100%;
    max-width: 340px;
    font: 600 1.12rem ui-sans-serif, system-ui, sans-serif;
    letter-spacing: -.01em;
    padding: .5em .7em;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
}

.naming input:focus {
    outline: none;
    border-color: var(--lavender);
    box-shadow: 0 0 0 3px var(--lavender-wash);
}

/* ================================================================= misc */

.swatch {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 2px;
    margin-right: 7px;
    vertical-align: baseline;
}

.upkeep { color: var(--clay); white-space: nowrap; }

@media (max-width: 720px) {
    .hud { padding: 9px 11px; gap: 8px; }
    .hud .clock { font-size: 1.15rem; }
    .hud .tally { gap: 11px; font-size: .8rem; }
    .stage { margin-bottom: 14px; }
}

/* ================================================================= live feed */

.feedlist { list-style: none; margin: 4px 0 0; padding: 0; }

.feedlist li {
    display: grid;
    grid-template-columns: 3.6em 1fr;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid var(--line);
    font-size: .92rem;
    animation: slidein .3s ease;
}

.feedlist li:last-child { border-bottom: none; }
.feedlist .ft { color: var(--ink-quiet); font-variant-numeric: tabular-nums; font-size: .84rem; }
.feedlist li.good .fx { color: var(--ink); }
.feedlist li.bad .fx { color: var(--ink-soft); }
.feedlist li.neutral .fx { color: var(--ink-quiet); }

@keyframes slidein {
    from { opacity: 0; transform: translateY(-5px); }
    to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) { .feedlist li { animation: none; } }

/* ================================================================= scene life */

/* The ferry crosses the water over a couple of minutes, endlessly. */
.ferry {
    /* The negative delay starts the crossing partway through, so the boat is
       usually somewhere on the water rather than waiting off screen. */
    animation: sail 140s linear infinite;
    animation-delay: -46s;
}

@keyframes sail {
    from { transform: translateX(-80px); }
    to   { transform: translateX(1080px); }
}

/* Clouds drift a little. The group has no SVG transform of its own, so this is safe. */
.clouds {
    animation: drift 80s ease-in-out infinite alternate;
}

@keyframes drift {
    from { transform: translateX(-14px); }
    to   { transform: translateX(14px); }
}

/* Foreground lavender sways in the wind. */
.sway {
    transform-box: fill-box;
    transform-origin: 50% 100%;
    /* Mid-distance clumps: after the rows, before the grass at your feet. */
    animation: sway var(--gust-cycle) ease-in-out infinite;
    animation-delay: 2.1s;
}

@keyframes sway {
    0%, 100% { transform: rotate(-1.4deg); }
    50%      { transform: rotate(1.9deg); }
}

/* People bob slightly as they move, so they read as walking rather than sliding. */
.pbob {
    transform-box: fill-box;
    transform-origin: 50% 100%;
    animation: pidle 3.1s var(--ease-soft) infinite alternate;
}

/* Standing still is not standing frozen: a slow weight shift keeps people alive. */
@keyframes pidle {
    from { transform: translateY(0) scaleY(1); }
    to   { transform: translateY(-.35px) scaleY(1.012); }
}

.walking .pbob { animation: pbob .29s ease-in-out infinite alternate; }

@keyframes pbob {
    from { transform: translateY(.5px); }
    to   { transform: translateY(-1.1px); }
}

/* Children bounce more than they walk. */
.folk-fig.child.walking .pbob { animation-duration: .23s; }
.folk-fig.child.walking .legL,
.folk-fig.child.walking .legR { animation-duration: .46s; }

/* Snow falls slower than rain, and drifts sideways a little. */
.snowfall circle { opacity: .9; }

@keyframes snowdrop {
    from { transform: translate(0, -30px); }
    to   { transform: translate(-10px, 34px); }
}

@media (prefers-reduced-motion: reduce) {
    .ferry { animation: none; transform: translateX(430px); }
    .clouds, .sway, .pbob, .snowfall circle, .torso, .head, .bagswing, .scarftail { animation: none; }
}

/* ============================================================ coziness pass */

/* Small price tags on the crates, and text in thought bubbles. */
.shelftag {
    font: 700 5.2px ui-sans-serif, system-ui, sans-serif;
    letter-spacing: .02em;
}
.moodq text {
    font: 700 6.5px ui-sans-serif, system-ui, sans-serif;
    text-anchor: middle;
    fill: #6a6076;
}

/* Money earned floats up from the counter, then fades. */
.salefloat {
    font: 700 13px ui-sans-serif, system-ui, sans-serif;
    text-anchor: middle;
    fill: #3c6e47;
    paint-order: stroke;
    stroke: #f6efdd;
    stroke-width: 3px;
    stroke-linejoin: round;
    animation: floatup 1.7s ease-out forwards;
}
@keyframes floatup {
    0%   { transform: translateY(6px);  opacity: 0; }
    12%  { transform: translateY(0);    opacity: 1; }
    70%  {                              opacity: 1; }
    100% { transform: translateY(-30px); opacity: 0; }
}

/* ---- the walk -----------------------------------------------------------------

   A stride is .58s. Everything else in the body is phase-locked to it: the legs swing
   at that rate, the arms swing opposite, the torso leans into the step, and the whole
   figure rises twice per stride (once per footfall) rather than floating on its own
   unrelated timer, which is what made an earlier version look like it was hovering. */

.legL, .legR, .armL, .armR {
    transform-box: fill-box;
    transform-origin: 50% 4%;
}

.walking .legL { animation: stepL .58s ease-in-out infinite; }
.walking .legR { animation: stepR .58s ease-in-out infinite; }
.walking .armL { animation: swingR .58s ease-in-out infinite; }
.walking .armR { animation: swingL .58s ease-in-out infinite; }
.walking .torso { animation: torsolean .58s ease-in-out infinite; }
.walking .head  { animation: headnod .58s ease-in-out infinite; }
.walking .bagswing { animation: bagswing .58s ease-in-out infinite; }
.walking .scarftail { animation: scarfflick .58s ease-in-out infinite; }

@keyframes stepL {
    0%, 100% { transform: rotate(19deg); }
    50%      { transform: rotate(-19deg); }
}
@keyframes stepR {
    0%, 100% { transform: rotate(-19deg); }
    50%      { transform: rotate(19deg); }
}
/* Arms trail the legs slightly — a real arm is a pendulum, it lags the hip. */
@keyframes swingL {
    0%, 100% { transform: rotate(-13deg); }
    46%      { transform: rotate(15deg); }
}
@keyframes swingR {
    0%, 100% { transform: rotate(13deg); }
    46%      { transform: rotate(-15deg); }
}
.torso, .head, .bagswing, .scarftail { transform-box: fill-box; }
.torso { transform-origin: 50% 100%; }
.head  { transform-origin: 50% 100%; }
.bagswing { transform-origin: 50% 4%; }
.scarftail { transform-origin: 20% 4%; }
@keyframes torsolean {
    0%, 100% { transform: rotate(1.6deg); }
    50%      { transform: rotate(-1.6deg); }
}
@keyframes headnod {
    0%, 100% { transform: translateY(.18px) rotate(-1.2deg); }
    50%      { transform: translateY(-.18px) rotate(1.2deg); }
}
@keyframes bagswing {
    0%, 100% { transform: rotate(-7deg); }
    50%      { transform: rotate(7deg); }
}
@keyframes scarfflick {
    0%, 100% { transform: rotate(-9deg); }
    50%      { transform: rotate(6deg); }
}

/* The porch cat flicks its tail now and then. */
.cattail {
    transform-box: fill-box;
    transform-origin: 10% 90%;
    animation: tailflick 5s ease-in-out infinite;
}
@keyframes tailflick {
    0%, 78%, 100% { transform: rotate(0deg); }
    84%           { transform: rotate(-14deg); }
    90%           { transform: rotate(6deg); }
}

/* Bunting sways gently in the breeze after a fresh coat of paint. */
.bunting {
    transform-box: fill-box;
    transform-origin: 50% 0%;
    animation: flutter var(--gust-cycle) ease-in-out infinite;
    animation-delay: 2.35s;
}
@keyframes flutter {
    0%, 100% { transform: rotate(-1.1deg); }
    50%      { transform: rotate(1.3deg); }
}

/* Lavender scent drifts up off the fragrant goods. */
.wisp {
    opacity: 0;
    animation: wisprise 3.8s ease-in-out infinite;
}
@keyframes wisprise {
    0%   { transform: translateY(4px); opacity: 0; }
    30%  { opacity: .4; }
    70%  { opacity: .22; }
    100% { transform: translateY(-7px); opacity: 0; }
}

/* Cloud shadows crawl across the fields on clear days. */
/* LC-043: the drifting cloud shadow repainted the whole field every frame for a movement
   nobody could see at 74 seconds a pass. It holds still now. */
.cloudshadow { animation: none; }
@keyframes shadowdrift {
    from { transform: translateX(-70px); }
    to   { transform: translateX(90px); }
}

/* A bee's wings beat; a butterfly wanders the near clump. (LC-100: the barnyard's own bees
   are the 3D world's now.) */
.beewing { animation: beeflap .12s linear infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes beeflap {
    from { transform: scaleY(.5); }
    to   { transform: scaleY(1.15); }
}
.butterfly { animation: flitter 21s ease-in-out infinite alternate; }
.bwingL, .bwingR { transform-box: fill-box; }
.bwingL { transform-origin: 100% 50%; animation: bflapL .5s ease-in-out infinite alternate; }
.bwingR { transform-origin: 0% 50%;   animation: bflapR .5s ease-in-out infinite alternate; }
@keyframes flitter {
    0%   { transform: translate(140px, 468px); }
    30%  { transform: translate(210px, 440px); }
    55%  { transform: translate(120px, 430px); }
    80%  { transform: translate(230px, 462px); }
    100% { transform: translate(150px, 452px); }
}
@keyframes bflapL { from { transform: scaleX(1); } to { transform: scaleX(.35); } }
@keyframes bflapR { from { transform: scaleX(1); } to { transform: scaleX(.35); } }

/* Raindrops splash where they land. */
.splash {
    opacity: 0;
    transform-box: fill-box;
    transform-origin: 50% 100%;
    animation: splashpop 1.4s ease-out infinite;
}
@keyframes splashpop {
    0%   { transform: scale(.3); opacity: 0; }
    12%  { transform: scale(.6); opacity: .7; }
    32%  { transform: scale(1.15); opacity: 0; }
    100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .walking .legL, .walking .legR, .walking .armL, .walking .armR,
    .cattail, .bunting, .wisp, .cloudshadow,
    .beewing, .butterfly, .bwingL, .bwingR,
    .splash, .salefloat { animation: none; }
    .wisp { opacity: .35; }
    .butterfly { transform: translate(170px, 455px); }
    .splash { opacity: 0; }
}

/* ====================================================== depth & light pass */

/* Gulls flap in two frames and the little flock drifts across the sky. */
.flock { animation: flockdrift 76s ease-in-out infinite alternate; }
@keyframes flockdrift {
    from { transform: translate(0, 0); }
    to   { transform: translate(-110px, 14px); }
}
.gull .wB { opacity: 0; }
.gull .wA { animation: flapA .62s steps(1) infinite; }
.gull .wB { animation: flapB .62s steps(1) infinite; }
.gull.g2 .wA, .gull.g2 .wB { animation-delay: .21s; }
.gull.g3 .wA, .gull.g3 .wB { animation-delay: .43s; }
@keyframes flapA { 0%, 44% { opacity: 1; } 45%, 100% { opacity: 0; } }
@keyframes flapB { 0%, 44% { opacity: 0; } 45%, 100% { opacity: 1; } }

/* Sunlight breathing gently. */
.sunhalo {
    transform-box: fill-box;
    transform-origin: 50% 50%;
    animation: halopulse 7s ease-in-out infinite alternate;
}
@keyframes halopulse {
    from { transform: scale(1);    opacity: .22; }
    to   { transform: scale(1.12); opacity: .3; }
}

/* Light moving on the water. */
.shimmer { animation: shimmerdrift 11s ease-in-out infinite alternate; }
.shimmer.s2 { animation-duration: 15s; animation-delay: -6s; }
@keyframes shimmerdrift {
    from { transform: translateX(-13px); }
    to   { transform: translateX(13px); }
}

@media (prefers-reduced-motion: reduce) {
    .flock, .gull .wA, .gull .wB, .sunhalo, .shimmer { animation: none; }
    .gull .wB { opacity: 0; }
}

/* A gust rolling across the lavender, back rows first, then the near ones. */
/* ================================== one wind (LC-034) ======================

   Everything that moves in the wind used to move on its own timer: the rows on 7
   seconds, the awning hem on 5.2, the bunting on 4.6, the clump grasses on 5.5.
   The result was a scene where four different winds blew at once, which reads as
   fidgeting rather than weather.

   They all share one cycle now, and each layer's delay is set by how far away it
   is: the treeline first, then the far rows, the near rows, the stand's own cloth,
   and finally the grass at your feet. The gust visibly crosses the field. That one
   change does more for the sense of a real place than any amount of extra detail,
   and it costs nothing — it is the same animations with their numbers aligned. */

:root { --gust-cycle: 7s; }

.windrow { animation: gust var(--gust-cycle) ease-in-out infinite; will-change: transform; }
@keyframes gust {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(var(--amp, 2px)); }
}

/* The near plane: last to feel it, and it feels it most. */
/* LC-043: the band along the whole bottom edge no longer sways — a thousand-unit-wide
   invalidation every frame for a two-pixel lean. The clumps still do. */
.fgband { transform-box: fill-box; transform-origin: 50% 100%; }

.fgclump {
    transform-box: fill-box;
    transform-origin: 50% 100%;
}
.fgclump:nth-child(odd) { animation: fgsway var(--gust-cycle) ease-in-out infinite; will-change: transform; }

@keyframes fgsway {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    50%      { transform: translateX(var(--fgamp, 3px)) rotate(2.2deg); }
}

@media (prefers-reduced-motion: reduce) {
    /* LC-087. `.fgclump` alone (0,1,0) loses to `.fgclump:nth-child(odd)` (0,2,0), so
       the foreground kept swaying for anyone who had asked the whole page to hold still.
       Four elements out of sixty-eight, found by tools/bots/still.mjs, which opens the
       game both ways and lists what is still moving. Matching the specificity is the
       whole fix. */
    .windrow, .fgband,
    .fgclump, .fgclump:nth-child(odd) { animation: none; }
}

/* ================================================== the stand feels physical */

/* The awning unrolls when the stand opens for the day. */
.unroll {
    transform-box: fill-box;
    transform-origin: 50% 0%;
    animation: unroll .9s cubic-bezier(.2, .85, .3, 1.12) 1;
}
@keyframes unroll {
    0%  { transform: scaleY(.12); }
    70% { transform: scaleY(1.05); }
    100%{ transform: scaleY(1); }
}

/* The scalloped hem breathes; the name board sways on its struts. */
.hemsway {
    animation: hemsway var(--gust-cycle) ease-in-out infinite;
    animation-delay: 2.5s;
}
@keyframes hemsway {
    0%, 100% { transform: translateX(-1.1px); }
    50%      { transform: translateX(1.3px); }
}
.signswing {
    transform-box: fill-box;
    transform-origin: 50% 0%;
    animation: signswing 6.4s ease-in-out infinite alternate;
}
@keyframes signswing {
    from { transform: rotate(-.7deg); }
    to   { transform: rotate(.7deg); }
}

/* Cold lemonade sweats in summer. */
.drip { animation: dripfall 3.4s ease-in infinite; }
@keyframes dripfall {
    0%   { transform: translateY(0);   opacity: 0; }
    12%  { opacity: .8; }
    45%  { transform: translateY(7px); opacity: 0; }
    100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .unroll, .hemsway, .signswing, .drip { animation: none; }
}

/* ========================================================== deeper weather */

/* Fog hangs in layered banks that drift at their own speeds. */
.fogbank { animation: fogdrift 46s ease-in-out infinite alternate; }
.fogbank.fb2 { animation-duration: 64s; animation-direction: alternate-reverse; }
.fogbank.fb3 { animation-duration: 38s; animation-delay: -19s; }
@keyframes fogdrift {
    from { transform: translateX(-56px); }
    to   { transform: translateX(56px); }
}

/* Puddles grow slowly while the rain keeps falling. */
.puddle {
    transform-box: fill-box;
    transform-origin: 50% 50%;
    opacity: 0;
    animation: puddlegrow 19s ease-out forwards;
}
@keyframes puddlegrow {
    0%   { transform: scale(.25); opacity: 0; }
    18%  { opacity: .35; }
    100% { transform: scale(1); opacity: .5; }
}

/* Snow builds up softly on ledges once it starts. */
.snowsettle { animation: settlein 13s ease-out forwards; opacity: 0; }
@keyframes settlein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .fogbank { animation: none; }
    .puddle { animation: none; opacity: .5; }
    .snowsettle { animation: none; opacity: 1; }
}

/* Children skip rather than walk; dog tails never stop. */
.pbob.skip { animation: pskip .48s ease-in-out infinite alternate; }
@keyframes pskip {
    from { transform: translateY(0); }
    to   { transform: translateY(-3px); }
}
.dogtail {
    transform-box: fill-box;
    transform-origin: 90% 90%;
    animation: tailwag .55s ease-in-out infinite alternate;
}
@keyframes tailwag {
    from { transform: rotate(-10deg); }
    to   { transform: rotate(14deg); }
}
@media (prefers-reduced-motion: reduce) { .pbob.skip, .dogtail { animation: none; } }

/* ============================================== people and progression (D+E) */

/* Spoken lines in the day's feed. */
.fq {
    display: block;
    color: var(--ink-soft);
    font-style: italic;
    margin-top: 2px;
}

/* The morning's goal line. */
.goal {
    margin: 0 0 10px;
    padding: 8px 12px;
    background: var(--lav-50);
    border-left: 3px solid #8a6fc8;
    border-radius: 6px;
    font-size: 14px;
}
.goal-label { font-weight: 700; color: var(--accent-deep); }

/* A milestone landing, at the top of the evening report. */
.milestone-done {
    margin: 0 0 12px;
    padding: 12px 14px;
    background: linear-gradient(135deg, var(--lav-50), var(--sage-50));
    border: 1px solid var(--lav-200);
    border-radius: 10px;
}
.milestone-done .m-title {
    display: block;
    font-weight: 800;
    color: var(--accent-deep);
    margin-bottom: 2px;
}
.milestone-done .m-line { color: var(--ink-soft); font-size: 14px; }
@media (prefers-color-scheme: dark) and (max-width: 0px) {
    /* on the dark wash the deep accent measured 3.9:1; the lighter scale step reads */
    .milestone-done .m-title { color: #cbbcef; }
    .milestone-done .m-line { color: #efe8f3; }
}

/* Familiar faces panel. */
.faces .faceslist { list-style: none; margin: 0; padding: 0; }
.faces li {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    padding: 7px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 13.5px;
}
.faces li:last-child { border-bottom: none; }
.face-dot {
    flex: none;
    width: 13px; height: 13px;
    margin-top: 2px;
    border-radius: 50%;
    border: 3px solid;
}
.face-tag { display: block; color: var(--ink-quiet); font-style: italic; font-size: 12.5px; }

/* Season recap. */
.recap { max-width: 660px; margin: 24px auto; text-align: center; }
.recap h1 { margin-bottom: 18px; }
.recap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 0 0 18px;
}
.recap-grid > div {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 8px;
}
.recap-grid dt { font-size: 12.5px; color: var(--ink-quiet); margin-bottom: 4px; }
.recap-grid dd { margin: 0; font-weight: 800; font-size: 17px; color: var(--ink); }
@media (max-width: 640px) { .recap-grid { grid-template-columns: repeat(2, 1fr); } }
.recap-year { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: #f6efd6; border: 1px solid #e3d29a; color: #5a4a1e; font-weight: 700; font-size: var(--fs-sm); }   /* the year, when it turns (LC-065) */

/* Continue-a-saved-game box on the opening screen. */
.continue-box { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

/* ================================================== photo mode (Phase F) */

.stage { position: relative; }
.photo-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border: none;
    border-radius: 999px;
    background: rgba(30, 24, 40, 0.55);
    color: #f3eee4;
    font: 600 13px ui-sans-serif, system-ui, sans-serif;
    cursor: pointer;
    backdrop-filter: blur(3px);
    transition: background .2s ease, transform .15s ease;
}
.photo-btn:hover { background: rgba(30, 24, 40, 0.75); transform: scale(1.04); }
.photo-btn.saved { background: #3c6e47; }

/* The then-and-now card overlay. */
.card-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(22, 16, 32, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.card-box {
    background: var(--card);
    border-radius: 16px;
    padding: 22px 26px;
    max-width: 1060px;
    width: 100%;
    box-shadow: 0 18px 50px rgba(20, 12, 34, 0.35);
}
.card-box h2 { margin: 0 0 14px; color: var(--ink); }
.card-scenes { display: flex; gap: 16px; }
.card-scenes figure { flex: 1; margin: 0; min-width: 0; }
.card-scenes .scene { border-radius: 10px; overflow: hidden; }
.card-scenes figcaption {
    margin-top: 7px;
    font: 600 13.5px ui-sans-serif, system-ui, sans-serif;
    color: var(--ink-soft);
}
.card-box .actions { margin-top: 16px; display: flex; gap: 10px; }
@media (max-width: 760px) { .card-scenes { flex-direction: column; } }

/* ============================================ favorites and the notebook */

/* The favorite moment in the feed reads warmer than an ordinary sale. */
.feedlist li.fav { background: var(--gold-50); border-left: 3px solid #d9a83c; }
.feedlist li.fav .fx { color: var(--gold-600); }

/* What the notebook knows about each regular. */
.face-fav {
    display: block;
    margin-top: 1px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--clay-600);
}
.face-fav.mystery { color: var(--ink-quiet); font-weight: 500; font-style: italic; }

/* Morning stock table: who loves this product. */
.lovedby {
    margin-top: 3px;
    font-size: 12px;
    font-weight: 600;
    color: var(--clay-600);
    background: var(--clay-50);
    border-radius: 6px;
    padding: 2px 7px;
    display: inline-block;
}
.lb-heart { margin-right: 3px; }

/* The big favorite heart pulses once as it appears. */
.bigheart {
    transform-box: fill-box;
    transform-origin: 50% 50%;
    animation: heartpop .6s cubic-bezier(.2, 1.4, .4, 1) 1;
}
@keyframes heartpop {
    0%   { transform: scale(.4); }
    60%  { transform: scale(1.25); }
    100% { transform: scale(1); }
}
.favsparkle { animation: sparklefade 1.8s ease-in-out infinite alternate; }
@keyframes sparklefade {
    from { opacity: .3; }
    to   { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .bigheart, .favsparkle { animation: none; } }

/* ======================================== another layer of ambient motion */

/* Petals and leaves drift down across the rows. */
.petal { animation: petaldrift 8.8s linear infinite; }
@keyframes petaldrift {
    0%   { transform: translate(0, -34px) rotate(0deg); opacity: 0; }
    8%   { opacity: .85; }
    88%  { opacity: .8; }
    100% { transform: translate(46px, 176px) rotate(150deg); opacity: 0; }
}
.leaf { animation: leaftumble 10.2s linear infinite; transform-box: fill-box; }
@keyframes leaftumble {
    0%   { translate: 0 -30px; rotate: 0deg; opacity: 0; }
    7%   { opacity: .9; }
    86%  { opacity: .85; }
    100% { translate: -60px 180px; rotate: -280deg; opacity: 0; }
}

/* Fireflies blink and wander on warm summer evenings. */
.firefly { animation: fireflyfloat 5s ease-in-out infinite; }
@keyframes fireflyfloat {
    0%   { transform: translate(0, 0);      opacity: 0; }
    18%  { opacity: .95; }
    38%  { transform: translate(9px, -7px); opacity: .2; }
    58%  { transform: translate(-5px, -13px); opacity: .9; }
    80%  { transform: translate(6px, -20px);  opacity: .15; }
    100% { transform: translate(0, -26px);   opacity: 0; }
}

/* Grass tufts lean with the gusts. */
.tuft {
    transform-box: fill-box;
    transform-origin: 50% 100%;
    animation: tuftlean 5.4s ease-in-out infinite alternate;
}
@keyframes tuftlean {
    from { transform: skewX(-3deg); }
    to   { transform: skewX(4deg); }
}

/* A storm flickers twice, then broods. */
.lightning { animation: stormflash 13s linear infinite; }
@keyframes stormflash {
    0%, 61%, 65%, 100% { opacity: 0; }
    62%   { opacity: .5; }
    63%   { opacity: .08; }
    63.8% { opacity: .38; }
}

/* Steam curls off the kettle. */
.steam {
    opacity: 0;
    animation: steamrise 3.2s ease-in-out infinite;
}
@keyframes steamrise {
    0%   { transform: translateY(3px); opacity: 0; }
    25%  { opacity: .65; }
    70%  { opacity: .3; }
    100% { transform: translateY(-6px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .petal, .leaf, .firefly, .tuft, .lightning, .steam { animation: none; }
    .lightning { opacity: 0; }
    .firefly { opacity: .7; }
    .steam { opacity: .35; }
}

/* ================================================= the new prep stage (LC-022) */

.today-card {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    margin: 0 0 10px;
    padding: 10px var(--s-5);
    background: linear-gradient(180deg, var(--lav-50), var(--card-warm));
    border: 1px solid var(--line-soft);
    border-radius: var(--r-md);
    font-size: 14px;
}
.today-day { font-family: var(--font-display); font-variation-settings: var(--wonk); font-weight: 700; font-size: 1.06rem; color: var(--accent-deep); }
.today-kind { color: var(--ink-quiet); font-size: 12.5px; font-weight: 700; }
.today-kind.weekend { color: var(--clay-600); font-weight: 800; }
.today-likely { color: var(--ink-soft); }

.special-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 12px 0 2px;
    padding: 11px var(--s-5);
    background: var(--gold-50);
    border: 1px dashed var(--gold-400);
    border-radius: var(--r-md);
}
.special-row label { font-weight: 800; color: var(--gold-600); font-size: 13.5px; }
.special-row select {
    padding: 6px 10px;
    border: 1px solid var(--gold-400);
    border-radius: var(--r-sm);
    background: var(--card);
    color: var(--ink);
    font: inherit;
    font-weight: 700;
}
.special-row .quiet { flex-basis: 100%; }

.guestbook .gblist { list-style: none; margin: 0; padding: 0; }
.guestbook li {
    display: flex;
    gap: var(--s-3);
    padding: var(--s-3) 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 13px;
}
.guestbook li:last-child { border-bottom: none; }
.gb-text strong { display: block; color: var(--ink); font-weight: 800; }
.gb-line { display: block; }
.gb-goodwill { display: block; margin-top: 2px; font-size: 12.5px; font-style: italic; }
.gb-goodwill.cold { color: var(--ink-quiet); }
.gb-goodwill.neutral { color: var(--ink-quiet); }
.gb-goodwill.warm { color: var(--clay-600); font-weight: 700; }
.gb-goodwill.devoted { color: #a8324e; font-weight: 800; }
@media (prefers-color-scheme: dark) and (max-width: 0px) { .gb-goodwill.devoted { color: #f0899f; } }

/* Upgrade store cards read at a glance. */
.upgrade .uicon {
    flex: none;
    display: inline-flex;
    width: 30px; height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--lav-100);
    color: var(--accent-deep);
    margin-right: 8px;
}
.upgrade.owned .uicon { background: var(--sage-50); color: var(--sage-700); }
.upgrade .urow { display: flex; align-items: center; }
.upgrade .uname { flex: 1; }

/* ==================================================== the farm (Phase G) */

.farm-block {
    margin: 0 0 14px;
    padding: 12px 14px;
    background: var(--sage-50);
    border: 1px solid var(--line);
    border-radius: 10px;
}
.farm-block h3 { margin: 0 0 10px; color: var(--ink); }
.farm-block h4 { margin: 12px 0 6px; color: var(--ink-soft); font-size: 13.5px; }

.plots-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 760px) { .plots-row { grid-template-columns: repeat(2, 1fr); } }
.plotcard {
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--card);
    border: 1px solid var(--line);
    font-size: 12.5px;
}
.plotcard.locked { opacity: .55; background: var(--paper-sunk); }
.plotcard.empty { border-color: var(--line-firm); background: var(--paper); }
.plotcard.growing { border-color: var(--sage-200); background: var(--sage-50); }
.plotcard.inbloom { border-color: var(--lav-200); background: var(--lav-50); }
.plot-name { display: block; font-weight: 700; color: var(--ink); }
.plot-state { display: block; color: var(--ink-soft); margin-top: 2px; }
.plotcard.inbloom .plot-state { color: var(--accent-deep); font-weight: 600; }
.plotcard.growing .plot-state { color: var(--sage-700); }

.goods-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; font-size: 13px; }
.goods-row .good em { font-style: normal; font-weight: 800; color: var(--ink); }
.goods-row .good.warn { color: var(--clay-600); font-weight: 700; }

.crew-row, .hire-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 13.5px;
}
.crew-row:last-child, .hire-row:last-child { border-bottom: none; }
.crew-name { min-width: 0; }
.crew-name .face-tag { font-size: 12px; }
.crew-row select {
    appearance: none;
    -webkit-appearance: none;
    padding: 9px 38px 9px 14px;
    min-height: 40px;
    border: 1.5px solid var(--lav-300);
    border-radius: var(--r-pill);
    background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23573a87' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 14px;
    color: var(--accent-deep);
    font: inherit;
    font-size: var(--fs-sm);
    font-weight: 800;
    max-width: 60%;
    box-shadow: var(--sh-1);
    cursor: pointer;
}
.crew-row select:focus { outline: 3px solid var(--lav-100); }

.craft-row-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 13.5px;
}
.craft-row-item:last-child { border-bottom: none; }
.craft-name { font-weight: 700; color: var(--ink); min-width: 130px; }
.craft-needs { flex: 1; min-width: 150px; }
.craft-buttons { display: flex; gap: 6px; }
.craft-buttons button {
    padding: 4px 10px;
    border: 1px solid var(--sage-200);
    background: var(--sage-50);
    color: var(--sage-700);
    border-radius: 7px;
    font: 600 12.5px ui-sans-serif, system-ui, sans-serif;
    cursor: pointer;
}
.craft-buttons button:disabled { opacity: .4; cursor: default; }
.craft-buttons button:not(:disabled):hover { background: var(--sage-200); }

.feedlist li.farm { background: var(--sage-50); border-left: 3px solid #7a9a5a; }
.feedlist li.farm .fx { color: var(--ink); }

/* Hens peck; the crew works. */
.hen { animation: henwander 9s ease-in-out infinite alternate; }
@keyframes henwander {
    0%   { transform: translate(0, 0); }
    45%  { transform: translate(9px, 3px); }
    100% { transform: translate(-7px, 6px); }
}
.henhead {
    transform-box: fill-box;
    transform-origin: 80% 90%;
    animation: peck 2.3s ease-in-out infinite;
}
@keyframes peck {
    0%, 62%, 100% { transform: rotate(0deg); }
    70%, 82%      { transform: rotate(38deg); }
    76%           { transform: rotate(20deg); }
}
.workswing {
    transform-box: fill-box;
    transform-origin: 10% 80%;
    animation: swingcut 1.6s ease-in-out infinite;
}
@keyframes swingcut {
    0%, 100% { transform: rotate(0deg); }
    45%      { transform: rotate(-26deg); }
    60%      { transform: rotate(8deg); }
}
.worklean {
    transform-box: fill-box;
    transform-origin: 10% 20%;
    animation: leandig 2.4s ease-in-out infinite;
}
@keyframes leandig {
    0%, 100% { transform: rotate(0deg); }
    50%      { transform: rotate(14deg); }
}
@media (prefers-reduced-motion: reduce) {
    .hen, .henhead, .workswing, .worklean { animation: none; }
}

/* ================================================= the barnyard (Phase H) */

.goat { animation: goatwander 11s ease-in-out infinite alternate; }
@keyframes goatwander {
    0%   { transform: translate(0, 0); }
    55%  { transform: translate(7px, 1px); }
    100% { transform: translate(-5px, 2px); }
}
.goathead {
    transform-box: fill-box;
    transform-origin: 85% 30%;
    animation: graze 5.2s ease-in-out infinite;
}
@keyframes graze {
    0%, 40%, 100% { transform: rotate(0deg); }
    55%, 78%      { transform: rotate(26deg); }
}
.goattail {
    transform-box: fill-box;
    transform-origin: 10% 90%;
    animation: tailwag .8s ease-in-out infinite alternate;
}
.donkeyhead {
    transform-box: fill-box;
    transform-origin: 90% 20%;
    animation: donkeynod 8s ease-in-out infinite;
}
@keyframes donkeynod {
    0%, 70%, 100% { transform: rotate(0deg); }
    80%, 90%      { transform: rotate(9deg); }
}
.donkeyear {
    transform-box: fill-box;
    transform-origin: 80% 100%;
    animation: earflick 6.4s ease-in-out infinite;
}
@keyframes earflick {
    0%, 86%, 100% { transform: rotate(0deg); }
    90%           { transform: rotate(-24deg); }
    94%           { transform: rotate(8deg); }
}
.donkeytail {
    transform-box: fill-box;
    transform-origin: 10% 10%;
    animation: tailswish 3.6s ease-in-out infinite alternate;
}
@keyframes tailswish {
    from { transform: rotate(-8deg); }
    to   { transform: rotate(10deg); }
}
.hivebee { animation: hivebuzz 4.2s ease-in-out infinite; }
.hivebee.b2 { animation-duration: 5.4s; animation-delay: -2s; }
@keyframes hivebuzz {
    0%   { transform: translate(0, 0); opacity: .9; }
    30%  { transform: translate(6px, -5px); opacity: .5; }
    60%  { transform: translate(-4px, -9px); opacity: .9; }
    100% { transform: translate(0, 0); opacity: .9; }
}
.glassglint { animation: glint 9s ease-in-out infinite; }
@keyframes glint {
    0%, 78%, 100% { opacity: 0; }
    84%           { opacity: .5; }
    90%           { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .goat, .goathead, .goattail, .donkeyhead, .donkeyear, .donkeytail,
    .hivebee, .glassglint { animation: none; }
}

/* ================================================== festivals (Phase I) */

.fest-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    margin: 0 0 10px;
    padding: 10px 14px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--gold-50), var(--lav-50));
    border: 1px solid var(--line-firm);
    box-shadow: var(--sh-1);
}
.fest-banner.today {
    border-color: var(--gold-400);
    box-shadow: 0 0 0 2px var(--gold-50) inset, var(--sh-2);
}
.fest-title { font-family: var(--font-display); font-variation-settings: var(--wonk); font-weight: 700; font-size: 1.05rem; color: var(--warn); }
.fest-blurb { color: var(--ink-soft); font-size: 13.5px; flex: 1; min-width: 200px; }
.fest-banner button { flex: none; }

.festprep { max-width: 900px; margin: 20px auto; }
.festprep h1 { margin-bottom: 6px; }
.fest-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 12px 0 16px;
    padding: 10px 14px;
    background: var(--gold-50);
    border: 1px dashed var(--gold-400);
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--gold-600);
}
.fest-facts .quiet { font-weight: 500; flex-basis: 100%; }
.booth-table tr.favored { background: var(--gold-50); }
.fav-flag {
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--gold-400);
    color: #4a3510;
    font-size: 11px;
    font-weight: 700;
}
.booth-table input[type="number"] {
    width: 72px;
    padding: 5px 8px;
    border: 1px solid var(--line-firm);
    border-radius: var(--r-sm);
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    text-align: right;
}

.fest-result {
    margin: 0 0 12px;
    padding: 13px 15px;
    border-radius: 10px;
    background: var(--lav-50);
    border: 1px solid var(--lav-200);
}
.fest-result.won {
    background: linear-gradient(135deg, #fdf3dc, #f7f0fb);
    border-color: #d9a83c;
}
.fr-title { display: block; font-weight: 800; color: #6d4a8a; margin-bottom: 3px; }
.fr-ribbon { display: block; font-weight: 800; color: #a8761e; }
.fr-sub { display: block; color: var(--ink-soft); font-size: 14px; }
.fr-sold { display: block; margin-top: 4px; color: var(--ink-quiet); font-size: 13px; }

/* Ribbons settle on the post when they arrive, then hang still. */
.rosette {
    transform-box: fill-box;
    transform-origin: 50% 0%;
    animation: rosettehang 3.4s ease-in-out infinite alternate;
}
@keyframes rosettehang {
    from { transform: rotate(-2.4deg); }
    to   { transform: rotate(2.4deg); }
}
@media (prefers-reduced-motion: reduce) { .rosette { animation: none; } }

/* ============================================ the coast & contracts (J) */

.contract-block {
    margin: 12px 0 2px;
    padding: 10px 13px;
    background: var(--paper-sunk);
    border: 1px solid var(--line);
    border-radius: 8px;
}
.contract-block h4 { margin: 0 0 6px; color: var(--ink); font-size: 13.5px; }
.contract-live, .contract-offer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
}
.c-what { font-weight: 700; color: var(--ink); }
.c-due { color: var(--ink-soft); font-size: 12.5px; }
.c-due.urgent { color: var(--clay-600); font-weight: 700; }

.coast .cutting {
    padding: 9px 0;
    border-bottom: 1px solid var(--line-soft);
}
.coast .cutting:last-child { border-bottom: none; }
.coast .cutting.owned .uname { color: var(--sage-700); }
.cut-swatch {
    flex: none;
    width: 22px; height: 22px;
    border-radius: 6px;
    border: 3px solid;
    margin-right: 8px;
}
.cut-from { font-size: 12px; color: var(--ink-quiet); font-style: italic; margin: 1px 0 3px 30px; }
.cut-traits {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
}
.cut-traits span {
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--lav-100);
    color: var(--ink-soft);
    font-size: 11.5px;
    font-weight: 600;
}
.cut-traits span.good { background: var(--sage-50); color: var(--sage-700); }

/* ================================================================================
   ANIMATION OVERHAUL
   Motion has a grammar here: nothing moves linearly, nothing arrives all at once,
   and every player action gets an acknowledgement within 200ms. The variables are
   the vocabulary — change them here and the whole game re-times.
   ================================================================================ */

:root {
    --ease-out: cubic-bezier(.22, .68, .35, 1);
    --ease-soft: cubic-bezier(.32, .72, .38, 1);
    --ease-pop: cubic-bezier(.2, 1.35, .4, 1);
    --t-quick: .16s;
    --t-base: .32s;
    --t-slow: .58s;
}

/* ---- the scene itself eases between hours and weathers ----
   Scoped to DIRECT children of the svg: those are the big background shapes (sky,
   ridges, water, fields) that actually change colour with the light. Applying this
   to every node instead costs a transition on ~1100 elements on every playback
   tick, which measurably drops the frame rate for no visible gain. */
.scene > svg > rect, .scene > svg > path { transition: fill var(--t-slow) var(--ease-soft); }
.scene svg stop { transition: stop-color var(--t-slow) var(--ease-soft); }

/* People arrive and leave with weight, not just opacity. */
.folk > g {
    transition: transform .55s var(--ease-soft), opacity .45s var(--ease-out);
}

/* ---- panels and cards arrive in sequence instead of all at once ---- */
.panel {
    animation: panelrise var(--t-base) var(--ease-out) both;
}
@keyframes panelrise {
    from { opacity: 0; transform: translateY(9px); }
    to   { opacity: 1; transform: translateY(0); }
}
.columns > .panel { animation-delay: .02s; }
.columns > .side > .panel:nth-child(1) { animation-delay: .06s; }
.columns > .side > .panel:nth-child(2) { animation-delay: .10s; }
.columns > .side > .panel:nth-child(3) { animation-delay: .14s; }
.columns > .side > .panel:nth-child(4) { animation-delay: .18s; }
.columns > .side > .panel:nth-child(5) { animation-delay: .22s; }

/* Rows inside the stock table stagger in behind their panel. */
.stock-table tbody tr {
    animation: rowin .3s var(--ease-out) both;
}
@keyframes rowin {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: translateY(0); }
}
.stock-table tbody tr:nth-child(1) { animation-delay: .08s; }
.stock-table tbody tr:nth-child(2) { animation-delay: .12s; }
.stock-table tbody tr:nth-child(3) { animation-delay: .16s; }
.stock-table tbody tr:nth-child(4) { animation-delay: .20s; }
.stock-table tbody tr:nth-child(5) { animation-delay: .24s; }
.stock-table tbody tr:nth-child(6) { animation-delay: .28s; }
.stock-table tbody tr:nth-child(7) { animation-delay: .32s; }

/* Plot cards deal out left to right, like laying cards on a table. */
.plotcard { animation: dealcard .34s var(--ease-pop) both; }
@keyframes dealcard {
    from { opacity: 0; transform: translateY(8px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.plots-row .plotcard:nth-child(1) { animation-delay: .04s; }
.plots-row .plotcard:nth-child(2) { animation-delay: .09s; }
.plots-row .plotcard:nth-child(3) { animation-delay: .14s; }
.plots-row .plotcard:nth-child(4) { animation-delay: .19s; }

/* ---- every control answers the player ---- */
button {
    transition: background var(--t-quick) var(--ease-out),
                border-color var(--t-quick) var(--ease-out),
                color var(--t-quick) var(--ease-out),
                transform var(--t-quick) var(--ease-pop),
                box-shadow var(--t-quick) var(--ease-out);
}
button:not(:disabled):hover { transform: translateY(-1px); }
button:not(:disabled):active { transform: translateY(1px) scale(.985); }
button:disabled { transition: opacity var(--t-quick) var(--ease-out); }

input[type="number"], input[type="text"], select {
    transition: border-color var(--t-quick) var(--ease-out),
                box-shadow var(--t-quick) var(--ease-out);
}
input:focus-visible, select:focus-visible, button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(138, 111, 200, .32);
}

/* Anything that just changed value gives a quiet nudge. */
.stat .value.flash {
    animation: valuepop .6s var(--ease-pop);
}
@keyframes valuepop {
    0%   { transform: scale(1); }
    35%  { transform: scale(1.13); color: var(--sage-700); }
    100% { transform: scale(1); }
}

/* Meters fill smoothly rather than jumping. */
.meter .fill { transition: width .7s var(--ease-soft); }

/* ---- the live day ---- */
.feedlist li { animation: feedin .34s var(--ease-out) both; }
@keyframes feedin {
    from { opacity: 0; transform: translateX(-10px); }
    to   { opacity: 1; transform: translateX(0); }
}
.hud { animation: hudin .5s var(--ease-out) both; }
@keyframes hudin {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hud .takings { transition: color var(--t-base) var(--ease-out); }

/* Milestones and festival results land with a bit of ceremony. */
.milestone-done, .fest-result {
    animation: ceremony .62s var(--ease-pop) both;
}
@keyframes ceremony {
    from { opacity: 0; transform: translateY(14px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.milestone-done:nth-of-type(2) { animation-delay: .12s; }
.milestone-done:nth-of-type(3) { animation-delay: .24s; }

/* Guest-book and familiar-face entries cascade. */
.faceslist li, .gblist li, .cutting {
    animation: feedin .3s var(--ease-out) both;
}
.faceslist li:nth-child(2), .gblist li:nth-child(2), .cutting:nth-child(2) { animation-delay: .05s; }
.faceslist li:nth-child(3), .gblist li:nth-child(3), .cutting:nth-child(3) { animation-delay: .10s; }
.faceslist li:nth-child(4), .gblist li:nth-child(4), .cutting:nth-child(4) { animation-delay: .15s; }
.faceslist li:nth-child(5), .gblist li:nth-child(5) { animation-delay: .20s; }
.gblist li:nth-child(6) { animation-delay: .25s; }

/* The banners that matter breathe very slightly so the eye finds them. */
.fest-banner.today {
    animation: panelrise var(--t-base) var(--ease-out) both,
               attentionglow 3.6s ease-in-out 1s infinite;
}
@keyframes attentionglow {
    0%, 100% { box-shadow: 0 0 0 2px #fbecc7 inset; }
    50%      { box-shadow: 0 0 0 3px #f0d79a inset; }
}

@media (prefers-reduced-motion: reduce) {
    .panel, .stock-table tbody tr, .plotcard, .feedlist li, .hud,
    .milestone-done, .fest-result, .faceslist li, .gblist li, .cutting,
    .fest-banner.today, .stat .value.flash {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .scene svg rect, .scene svg path, .scene svg ellipse, .scene svg circle,
    .folk > g, .meter .fill, button { transition: none !important; }
}

/* ============================================ orientation for new players */

.morning-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 0 0 14px;
    padding: 0;
}
.morning-steps li {
    display: flex;
    align-items: flex-start;
    gap: var(--s-3);
    padding: 10px var(--s-4);
    border-radius: var(--r-md);
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--sh-1);
    transition: background var(--t-base) var(--ease-out),
                border-color var(--t-base) var(--ease-out),
                box-shadow var(--t-base) var(--ease-out);
}
.morning-steps li.done { background: var(--sage-50); border-color: var(--sage-200); }
.morning-steps li.ready {
    background: var(--lav-50);
    border-color: var(--lav-300);
    box-shadow: 0 0 0 3px var(--lav-100), var(--sh-2);
}
.step-num {
    flex: none;
    width: 22px; height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--lav-400), var(--lav-600));
    color: #fff;
    font: 800 12px var(--font-ui);
    box-shadow: var(--sh-1);
}
.morning-steps li.done .step-num { background: linear-gradient(180deg, var(--sage-400), var(--sage-600)); }
.step-body strong { display: block; font-size: 13.5px; font-weight: 800; color: var(--ink); }
.step-body em {
    display: block;
    font-style: normal;
    font-size: 12px;
    color: var(--ink-soft);
    margin-top: 1px;
}
@media (max-width: 760px) {
    .morning-steps { grid-template-columns: 1fr; }
    .step-body em { display: none; }
}

/* Section rules break the long morning into places you can be. */
.section-rule {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 10px;
    font: 700 12px ui-sans-serif, system-ui, sans-serif;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-quiet);
}
.section-rule::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, #e4dcee, transparent);
}


/* ---------------------------------------------------------------- film grain
   This lived inside the SVG as a <pattern> with a ~10KB base64 image attribute,
   which meant Blazor re-diffed that entire string on every playback tick. As a
   CSS layer the browser parses it once and composites it for free. */
.scene { position: relative; }
.scene::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .5;
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAQAAABIkb+zAAA8SUlEQVR42hSbZdiWRROGH2J2Zmd2lg7plu6U7m6Q7u6Qlm6QUlA6pLu7u0OkWxqkQwmJb7+DX+9x8D7c9+7MdZ0nL0QW4XFIq9k5qXaCzHLR/GiuQFFK7k9ANyhlL2IhP1sbmqacQ1P4ZL6du8rP/SOeTg0pg5+un/m+TWsu4hr8KHHNPN7gv/jHJpt9bZLbe/YQi9uEBV0ymowD5ajLgPdlAl7XCbJFemFGrEy94b1vZCdBBdnlF2Bid1ROSh53CpqZ9q6mWe0TmYivrLlYTXu/F4fwdlfEfHD/uLmmvFlj/0GhyDZUnWZG6A7cTEupBZ2i1vqJPUx0w2mtW88ZKDe9pJX0zkfcWlNYWrsGstwcd6dMdSwOlf1zfM1VtSSgKSstyNuO9ke/OLx4cv7bX9ISWlmta+SjYl187Qtrcn5nklIzG888VG/ucGv7UN/qQB2ubVwZKSJ3OC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Op1GUvhkwfsDNIbboZZwftNG2kblcMadoXbmIKFNtGedJdtWk2ZhlN4CpeQJf5WCgDY6XOrpSvscNvxvogjh/LBu3AXWF/ov5taqmSxshqu9ds42rfxM/D53zS/+IKzZBE6AH+yvW7p2U1TIdGPeD3BNxe90U40f6HSzTK37oGWme7dabNsRP8bh2Wcr9Q6uFSQPerPMJtmEXNesiWQDwl2n/hgi81ibQHb7hSk2ln8vf2QzpqduDL0Oqu2SR3kHOgQGOKNFvS/V43KhskSeukQB6nBlrsXjIj/hH4I0C13+zWqZgQQuUQ19toyNMySA3p0OuS4ZTM1lQd0aOSaJrsNHmTKhWoBPLw3cD+UmijTjmNUVds7pHLbiq0B5rUyya/lS64Sa4ZBik+zFGCboYoc0jshyFiPsUVphOu4ADuhceQpUVv6pAc93dhlXPq8SpHgmXMk+Xh6IYxZoodj3NgCS2kfDpOO2lUsqjEnDDTzXv0kLlfD/tIuJuCO2fP1wK511C/nNYIAXVJiqv16W6L7OdOLIeNeMSv45W2kIt0Pu2gs5qOo5iCedIYoureQKF3tMuccg3mA19t+20NrYJCvy24XOadX12kBw7Y9Vjj18ocyuOnwpych0IIxVKaqcNmKge9WWqOuVv4Gp73F0y7HjHPyv8O41N8s9H+ywAAAABJRU5ErkJggg==");
    background-size: 96px 96px;
    /* no blend mode: compositing a multiply layer over the whole scene every frame
       costs more than the diff it saves (measured 14fps vs 20fps). */
    opacity: .32;
}
@media (prefers-reduced-motion: reduce) { .scene::after { opacity: .35; } }

/* ==================================================== the other places (K) */

/* Goats chew and look around; the donkey flicks an ear. */
.goathead, .donkeyhead {
    transform-box: fill-box;
    transform-origin: 10% 60%;
    animation: chew 3.8s ease-in-out infinite;
}
@keyframes chew {
    0%, 62%, 100% { transform: rotate(0deg); }
    70%           { transform: rotate(-7deg); }
    78%           { transform: rotate(2deg); }
    86%           { transform: rotate(-4deg); }
}
.goattail, .donkeytail {
    transform-box: fill-box;
    transform-origin: 90% 10%;
    animation: tailswish 2.2s ease-in-out infinite alternate;
}
@keyframes tailswish {
    from { transform: rotate(-12deg); }
    to   { transform: rotate(14deg); }
}
.donkeyear {
    transform-box: fill-box;
    transform-origin: 50% 100%;
    animation: earflick 6.5s ease-in-out infinite;
}
@keyframes earflick {
    0%, 80%, 100% { transform: rotate(0deg); }
    86%           { transform: rotate(-18deg); }
    92%           { transform: rotate(6deg); }
}

@media (prefers-reduced-motion: reduce) {
    .goathead, .donkeyhead,
    .goattail, .donkeytail, .donkeyear { animation: none; }
}

/* ---------------------------------------------------------- getting around */

.placebar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin: 10px 0 0;
}
.placebar .place {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    padding: 10px var(--s-4);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: linear-gradient(180deg, var(--card) 0%, var(--card-warm) 100%);
    color: var(--ink-soft);
    cursor: pointer;
    text-align: left;
    font: inherit;
    box-shadow: var(--sh-1), var(--edge-top);
    transition: transform var(--t-quick) var(--ease-out),
                box-shadow var(--t-quick) var(--ease-out),
                border-color var(--t-quick) var(--ease-out),
                background var(--t-quick) var(--ease-out);
}
.placebar .place:hover { border-color: var(--lav-200); color: var(--accent-deep); transform: translateY(-2px); box-shadow: var(--sh-2); }
.placebar .place:active { transform: translateY(0); }
.placebar .place.here {
    background: linear-gradient(180deg, var(--lav-400) 0%, var(--lav-600) 100%);
    border-color: var(--lav-600);
    color: #fffdf8;
    box-shadow: var(--sh-lift), inset 0 1px 0 rgba(255, 255, 255, .28);
    transform: translateY(-2px);
}
.placebar .place.here .place-icon { opacity: 1; }
.place-icon { display: block; opacity: .82; transition: opacity var(--t-quick) var(--ease-out); }
.placebar .place:hover .place-icon { opacity: 1; }
.place-name { font-weight: 800; font-size: 13.5px; letter-spacing: -.005em; }
.place-sub { font-size: 11.5px; opacity: .74; }
.placebar .place.here .place-sub { opacity: .85; }

@media (max-width: 900px) {
    .placebar { grid-template-columns: repeat(5, 1fr); gap: 4px; }
    .placebar .place { padding: 8px 6px; align-items: center; text-align: center; }
    .place-name { font-size: 11.5px; }
    .place-sub { display: none; }
}

/* (F2: the fairground's picture is gone — the fair is in the 3D world, west of the barnyard) */

/* (LC-030's painted valley map is gone: since LC-101 the map is the 3D farm seen from above) */

/* ---- arriving somewhere -------------------------------------------------- */

/* The scene lets go before the new one takes hold: a beat of travel rather than a cut. */
.stage .scene { transition: opacity .19s var(--ease-out), transform .19s var(--ease-out); }
.stage.leaving .scene { opacity: 0; transform: scale(1.014); }

.placecard {
    position: absolute;
    left: 0;
    top: 18px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 9px 20px 9px 22px;
    background: linear-gradient(90deg, rgba(24, 16, 34, .62), rgba(24, 16, 34, .18));
    color: #fffdf8;
    border-left: 3px solid var(--lav-300);
    border-radius: 0 var(--r-md) var(--r-md) 0;
    backdrop-filter: blur(5px);
    pointer-events: none;
    animation: pcin .68s var(--ease-out) both;
    text-shadow: 0 1px 5px rgba(0, 0, 0, .5);
}

.pc-name {
    font-family: var(--font-display);
    font-variation-settings: var(--wonk);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -.01em;
}

.pc-sub { font-size: var(--fs-sm); font-weight: 600; opacity: .8; }

@keyframes pcin {
    0%   { opacity: 0; transform: translateX(-26px); }
    22%  { opacity: 1; transform: translateX(0); }
    72%  { opacity: 1; transform: translateX(0); }
    100% { opacity: .0; transform: translateX(-10px); }
}

@media (prefers-reduced-motion: reduce) {
    .placecard { animation: none; opacity: .9; }
    .stage .scene { transition: none; }
}

/* ============================================ the stock cards (LC-030) =====

   The morning used to be a table: seven rows of name, cost, price, stock. It read
   as a spreadsheet about a shop instead of a shop, which is exactly the complaint.
   Each product is now a card with the actual object drawn on it, a price you set on
   a real control, a stock meter you can read without counting, and a shelf toggle
   that looks like a slot you put something into. */

.stockgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
    gap: var(--s-4);
    margin: var(--s-4) 0 var(--s-2);
}

.stockcard {
    display: flex;
    gap: var(--s-4);
    padding: var(--s-4);
    background: linear-gradient(180deg, var(--card) 0%, var(--card-warm) 100%);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-1), var(--edge-top);
    transition: border-color var(--t-base) var(--ease-out),
                box-shadow var(--t-base) var(--ease-out),
                transform var(--t-base) var(--ease-out);
    animation: cardin .42s var(--ease-out) both;
}

.stockcard:nth-child(2) { animation-delay: .04s; }
.stockcard:nth-child(3) { animation-delay: .08s; }
.stockcard:nth-child(4) { animation-delay: .12s; }
.stockcard:nth-child(5) { animation-delay: .16s; }
.stockcard:nth-child(6) { animation-delay: .2s; }
.stockcard:nth-child(7) { animation-delay: .24s; }

@keyframes cardin {
    from { opacity: 0; transform: translateY(9px); }
    to   { opacity: 1; transform: none; }
}

.stockcard:hover { border-color: var(--lav-200); box-shadow: var(--sh-2); transform: translateY(-2px); }

/* On the stand today reads as lit; everything else sits back in the shed. */
.stockcard.up { border-color: var(--lav-200); background: linear-gradient(180deg, var(--card) 0%, var(--lav-50) 190%); }
.stockcard.down .sc-art { opacity: .72; }
.stockcard.out { border-color: var(--clay-400); }

.sc-art {
    position: relative;
    flex: none;
    width: 84px;
    align-self: flex-start;
    margin-top: -4px;
}

.sc-art .pa { display: block; width: 100%; height: auto; }
.sc-art .pa.dim { opacity: .55; filter: saturate(.55); }

.stockcard .pa { transition: transform var(--t-base) var(--ease-pop); transform-origin: 50% 88%; }
.stockcard:hover .pa { transform: translateY(-3px) scale(1.06) rotate(-1.5deg); }

.sc-flag {
    position: absolute;
    right: 2px;
    top: 2px;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--sage-400), var(--sage-600));
    color: #fff;
    box-shadow: var(--sh-1);
    animation: flagpop .34s var(--ease-pop) both;
}

@keyframes flagpop { from { transform: scale(0); } to { transform: scale(1); } }

.sc-body { flex: 1; min-width: 0; }

.sc-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-2); }

.sc-head h4 {
    margin: 0;
    font-family: var(--font-display);
    font-variation-settings: var(--wonk);
    font-weight: 700;
    font-size: 1.02rem;
    line-height: 1.2;
    letter-spacing: -.01em;
}

.sc-cat {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: var(--fs-xs);
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-quiet);
}

.sc-cat::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--cat, var(--lav-400));
}

.sc-loved {
    margin: 4px 0 0;
    font-size: var(--fs-sm);
    color: var(--clay-600);
    font-weight: 700;
}

.sc-money {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--s-3);
    margin-top: var(--s-3);
}

.sc-plabel {
    display: block;
    font-size: var(--fs-xs);
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
    color: var(--ink-quiet);
    margin-bottom: 2px;
}

.price-input.big { padding: 4px var(--s-3); border-radius: var(--r-md); }
.price-input.big input {
    width: 66px;
    font-family: var(--font-display);
    font-variation-settings: var(--wonk);
    font-size: 1.1rem;
    font-weight: 700;
}
.price-input.big span { font-size: var(--fs-md); font-weight: 700; }

.sc-econ { text-align: right; line-height: 1.35; }
.sc-cost { display: block; font-size: var(--fs-xs); color: var(--ink-quiet); font-weight: 700; }
.sc-margin { display: block; font-size: var(--fs-sm); font-weight: 800; color: var(--sage-700); }
.sc-margin.thin { color: var(--clay-600); }

.sc-stock {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    margin-top: var(--s-3);
}

.sc-meter {
    flex: 1;
    min-width: 40px;
    height: 8px;
    background: var(--paper-sunk);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    overflow: hidden;
}

.sc-fill {
    display: block;
    height: 100%;
    border-radius: var(--r-pill);
    background: linear-gradient(90deg, var(--lav-300), var(--lav-500));
    transition: width var(--t-slow) var(--ease-out);
}

.stockcard.out .sc-fill { background: var(--clay-400); }

.sc-count {
    flex: none;
    font-family: var(--font-display);
    font-variation-settings: var(--wonk);
    font-weight: 700;
    font-size: 1.02rem;
    font-variant-numeric: tabular-nums;
}

.sc-count em {
    display: block;
    font-family: var(--font-ui);
    font-style: normal;
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--ink-quiet);
    letter-spacing: .04em;
}

.stockcard.out .sc-count { color: var(--clay-600); }

.sc-buy { flex: none; display: flex; gap: 4px; }

.sc-buy button {
    padding: .3em .58em;
    border: 1px solid var(--line-firm);
    border-radius: var(--r-xs);
    background: var(--card);
    color: var(--ink-soft);
    font: 800 var(--fs-sm) var(--font-ui);
    cursor: pointer;
    box-shadow: var(--sh-1);
    transition: all var(--t-quick) var(--ease-out);
}

.sc-buy button:hover:not(:disabled) { border-color: var(--lav-300); color: var(--accent-deep); }
.sc-buy button:disabled { opacity: .35; cursor: not-allowed; box-shadow: none; }

/* The shelf toggle is a slot: empty when the product is in the shed, filled when
   it is out front. It is the same gesture as putting a jar on a shelf. */
.sc-shelf {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    width: 100%;
    margin-top: var(--s-3);
    padding: .48em .8em;
    border-radius: var(--r-md);
    font: 800 var(--fs-sm) var(--font-ui);
    cursor: pointer;
    transition: all var(--t-base) var(--ease-out);
}

.sc-slot {
    flex: none;
    width: 26px;
    height: 13px;
    border-radius: 3px;
    border: 1.5px solid currentColor;
    position: relative;
    opacity: .55;
}

.sc-slot::after {
    content: '';
    position: absolute;
    left: 2px;
    right: 2px;
    bottom: 1.5px;
    height: 0;
    background: currentColor;
    border-radius: 1px;
    transition: height var(--t-base) var(--ease-pop);
}

.sc-shelf.on { background: linear-gradient(180deg, var(--lav-400), var(--lav-600)); color: #fff; border: 1px solid var(--lav-600); box-shadow: var(--sh-2), inset 0 1px 0 rgba(255,255,255,.28); }
.sc-shelf.on .sc-slot { opacity: .9; }
.sc-shelf.on .sc-slot::after { height: 7px; }
.sc-shelf.off { background: var(--paper); color: var(--ink-soft); border: 1px dashed var(--line-firm); }
.sc-shelf.off:hover { border-color: var(--lav-400); color: var(--accent-deep); background: var(--lav-50); }
.sc-shelf.off:hover .sc-slot::after { height: 4px; }
.sc-shelf:active { transform: translateY(1px); }

.pa-sparkle { animation: pasparkle 3.4s var(--ease-out) infinite; transform-box: fill-box; transform-origin: 50% 50%; }
@keyframes pasparkle {
    0%, 72%, 100% { opacity: 0; transform: scale(.4); }
    82%           { opacity: 1; transform: scale(1.1); }
}

@media (max-width: 560px) {
    .stockgrid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .stockcard, .sc-flag, .pa-sparkle { animation: none; }
    .stockcard:hover .pa { transform: none; }
}

/* ================================== portraits, plots and crew (LC-030) ===== */

.portrait { display: block; width: 40px; height: 40px; flex: none; }
.portrait .pf-ring { fill: var(--card); stroke: var(--line-firm); stroke-width: 1.4; }
.portrait .pf-inner { stroke: rgba(255, 255, 255, .5); stroke-width: 1.2; }
.portrait.warm .pf-ring { stroke: var(--clay-400); }
.portrait.devoted .pf-ring { stroke: #d0637d; stroke-width: 2.2; }

.guestbook li { align-items: flex-start; }
.guestbook .portrait { margin-top: 2px; }

/* Plot cards carry the bed itself. */
.plotcard {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 0 var(--s-3);
    overflow: hidden;
    transition: transform var(--t-base) var(--ease-out),
                box-shadow var(--t-base) var(--ease-out);
}

.plotcard:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }

.plotart {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: var(--s-2);
    background: linear-gradient(180deg, var(--lav-50), var(--card-warm));
    border-bottom: 1px solid var(--line-soft);
}

.plot-name, .plot-state { padding: 0 10px; }

.crew-row { gap: var(--s-3); }
.crew-row .portrait { width: 34px; height: 34px; }
.crew-name { flex: 1; }

/* The goods line reads as a little inventory, not a sentence. */
.goods-row { gap: var(--s-3); }

.goods-row .good {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    padding: 4px 10px;
    background: var(--card);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-pill);
    box-shadow: var(--sh-1);
}

.goods-row .good em {
    font-family: var(--font-display);
    font-variation-settings: var(--wonk);
    font-size: 1.02rem;
}

.goods-row .good.quiet, .goods-row .good.warn { background: none; border: none; box-shadow: none; }
.goods-row .good.warn { background: var(--clay-50); border: 1px solid var(--clay-400); }

/* ============================== the upgrade store, as a store (LC-030) ===== */

.upgrade {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-areas: "icon head" "desc desc";
    column-gap: var(--s-3);
    row-gap: var(--s-2);
    align-items: center;
    position: relative;
    overflow: hidden;
}

.upgrade .urow { grid-area: head; }
.upgrade .udesc { grid-area: desc; }

.uicon {
    grid-area: icon;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: var(--r-md);
    background: linear-gradient(180deg, var(--lav-100), var(--lav-200));
    color: var(--accent-deep);
    box-shadow: var(--sh-1), inset 0 1px 0 rgba(255, 255, 255, .5);
    transition: transform var(--t-base) var(--ease-pop);
}

.upgrade:hover:not(.owned):not(.locked) .uicon { transform: translateY(-2px) rotate(-4deg) scale(1.06); }
.upgrade.owned .uicon { background: linear-gradient(180deg, var(--sage-200), var(--sage-400)); color: var(--sage-700); }
.upgrade.locked .uicon { background: var(--paper-sunk); color: var(--ink-quiet); }
.uicon svg { width: 24px; height: 24px; }

.upgrade .urow { min-width: 0; gap: var(--s-2); }
.upgrade .uname { flex: 1; min-width: 0; line-height: 1.25; }
.upgrade .buy { flex: none; }
.upgrade .udesc { margin-top: 0; }

/* The price reads as a paper tag hanging off the shelf. */
.buy {
    position: relative;
    padding-left: 1.15em;
}

.buy::before {
    content: '';
    position: absolute;
    left: .42em;
    top: 50%;
    width: 5px;
    height: 5px;
    margin-top: -2.5px;
    border-radius: 50%;
    background: currentColor;
    opacity: .45;
}

/* Built things get a stamp rather than a word in the corner. */
.ubadge {
    padding: .18em .6em;
    border: 1.5px solid var(--sage-600);
    border-radius: var(--r-xs);
    color: var(--sage-700);
    transform: rotate(-4deg);
}

.upgrade.poor .buy { opacity: .5; }

/* ================================================ small motions everywhere == */

/* Anything that reports a number counts up to it rather than snapping. */
.stat .value, .figure .fv, .sc-count, .goods-row .good em {
    transition: color var(--t-base) var(--ease-out);
}

/* A quiet toast for things that happened because you clicked. */
.toasts {
    /* In the world, not on the panel: bottom-left of the picture, just above the dock's
       top edge, where "have a look" points at something you can actually see. */
    position: absolute;
    left: var(--s-5);
    bottom: calc(var(--dock-h, 54vh) + var(--s-4));
    z-index: 30;
    max-width: min(420px, calc(100vw - 40px));
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    padding: 10px var(--s-5);
    background: linear-gradient(180deg, var(--card), var(--card-warm));
    border: 1px solid var(--line-firm);
    border-left: 4px solid var(--lav-400);
    border-radius: var(--r-md);
    box-shadow: var(--sh-3);
    font-size: var(--fs-md);
    font-weight: 700;
    color: var(--ink);
    animation: toastin .48s var(--ease-pop) both, toastout .4s var(--ease-out) 2.6s both;
}

.screenmode.dock-peek .toasts { bottom: calc(96px + var(--s-4)); }

.toast.good { border-left-color: var(--sage-600); }
.toast.bad { border-left-color: var(--clay-600); }

@keyframes toastin {
    from { opacity: 0; transform: translateY(14px) scale(.96); }
    to   { opacity: 1; transform: none; }
}
@keyframes toastout {
    to { opacity: 0; transform: translateX(20px); }
}

/* Panels arrive rather than appear. */
.side .panel { animation: panelin .5s var(--ease-out) both; }
.side .panel:nth-child(2) { animation-delay: .07s; }
.side .panel:nth-child(3) { animation-delay: .14s; }
.side .panel:nth-child(4) { animation-delay: .21s; }

@keyframes panelin {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .side .panel, .toast { animation: none; }
    .upgrade:hover .uicon { transform: none; }
}

/* ================================================ the title screen (LC-030) */

/*  The title screen is a SCREEN, not a page.

    It used to be a hero image with a panel flowing underneath it, in a column 860px
    wide. On a 1280x880 laptop that put "Open the stand" — the only button on the first
    screen anyone ever sees — half below the fold, and on a phone it pushed the whole
    panel off the bottom entirely. The first thing a tester met was a picture with no
    way into the game.

    Two columns that fit the viewport instead, stacking on narrow screens, with the
    panel scrolling inside itself if it ever has to. */
.titlepage {
    /* The bar is in normal flow above this, so the room left is the viewport minus it.
       ui.js publishes its real height; 75px is only the fallback before boot. */
    min-height: calc(100vh - var(--topbar-h, 75px));   /* an older Safari has no dvh (LC-072) */
    min-height: calc(100dvh - var(--topbar-h, 75px));
    max-width: 1180px;
    margin: 0 auto;
    padding: max(12px, 2.4vh) 20px;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(340px, 0.85fr);
    align-items: center;
    gap: clamp(16px, 3vw, 40px);
}

.titlehero {
    position: relative;
    /* The valley is a wide picture. Squeezing it into a tall box crops out the thing
       that makes it worth looking at. */
    aspect-ratio: 16 / 11;
    height: auto;
    max-height: min(66vh, 540px);
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--sh-3);
    animation: heroin .9s var(--ease-out) both;
}

.titlehero .scene, .titlehero .scene > svg { height: 100%; width: 100%; display: block; }

@media (max-width: 940px) {
    .titlepage {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
        align-content: stretch;
        gap: var(--s-4);
        padding-bottom: var(--s-4);
        height: calc(100vh - var(--topbar-h, 75px));   /* an older Safari has no dvh (LC-072) */
        height: calc(100dvh - var(--topbar-h, 75px));
    }
    .titlehero { height: min(26vh, 220px); }

    /*  The same rule the dock learned: the way in is never inside the scroll.
        On a phone the panel is taller than the room it has, so it scrolls — and the
        button sits under it, always on screen. */
    .titlepage .intro {
        max-height: none;
        min-height: 0;
        display: flex;
        flex-direction: column;
        padding-bottom: 0;
    }
    .titlepage .intro > :not(.intro-go) { flex: none; }
    .titlepage .intro-scroll { overflow-y: auto; min-height: 0; }
    .titlepage .intro-go {
        position: sticky;
        bottom: 0;
        margin: 0 calc(var(--s-6) * -1);
        padding: var(--s-4) var(--s-6);
        background: linear-gradient(180deg, transparent, var(--card) 24%);
    }
}

@keyframes heroin {
    from { opacity: 0; transform: scale(1.03); }
    to   { opacity: 1; transform: none; }
}

.titlehero .scene { border-radius: var(--r-xl); }

.titleveil {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(28, 18, 40, .42) 0%, rgba(28, 18, 40, 0) 42%,
                                        rgba(28, 18, 40, .18) 78%, rgba(28, 18, 40, .5) 100%);
    pointer-events: none;
}

.titlemark {
    position: absolute;
    left: 0; right: 0; top: 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: #fffdf8;
    text-align: center;
    text-shadow: 0 2px 12px rgba(24, 14, 34, .6);
    pointer-events: none;
}

.tm-name {
    font-family: var(--font-display);
    font-variation-settings: 'SOFT' 60, 'WONK' 1;
    font-weight: 800;
    font-size: clamp(2rem, 1.2rem + 3.4vw, 3.2rem);
    letter-spacing: -.018em;
    line-height: 1.05;
    animation: markin 1s var(--ease-out) .15s both;
}

.tm-sub {
    font-size: var(--fs-md);
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    opacity: .82;
    animation: markin 1s var(--ease-out) .3s both;
}

.tm-sprig {
    width: 16px;
    height: 26px;
    margin-bottom: 2px;
    background:
        radial-gradient(ellipse 5px 8px at 50% 20%, #d9c6f6 60%, transparent 62%),
        radial-gradient(ellipse 4px 7px at 50% 46%, #d9c6f6 60%, transparent 62%),
        radial-gradient(ellipse 3px 5px at 50% 70%, #d9c6f6 60%, transparent 62%),
        linear-gradient(#bcd8b0, #bcd8b0) 50% 68% / 2px 32% no-repeat;
    animation: markin 1s var(--ease-out) both;
}

@keyframes markin {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: none; }
}

/* The card overlaps the picture, so the page reads as one object. */
.titlepage .intro {
    max-width: 640px;
    margin: -46px auto 40px;
    position: relative;
    z-index: 2;
    animation: introin .7s var(--ease-out) .18s both;
}

@keyframes introin {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
    .titlepage .intro { margin-top: -28px; }
}

@media (prefers-reduced-motion: reduce) {
    .titlehero, .tm-name, .tm-sub, .tm-sprig, .titlepage .intro { animation: none; }
}

.faceslist li { display: flex; gap: var(--s-3); align-items: flex-start; }
.faceslist .portrait { width: 36px; height: 36px; margin-top: 1px; }
.face-text { flex: 1; min-width: 0; }

/* ================================= making the game legible (LC-031) ========
   Everything in this block exists because of one round of human testing: people
   could not tell where the game was, what they were building toward, or why a
   customer walked away. None of it needed new simulation — it needed the game to
   say out loud what it already knew. */

/* ---- why someone left, over their head, in words ------------------------- */

.reasontag rect { fill: rgba(28, 18, 40, .74); }
.reasontag path { fill: rgba(28, 18, 40, .74); }
.reasontag .rt-label text {
    font: 700 6.4px var(--font-ui);
    text-anchor: middle;
    fill: #fdf9f2;
    letter-spacing: .01em;
}
.reasontag.dear rect, .reasontag.dear path { fill: rgba(150, 62, 40, .82); }
.reasontag.gone rect, .reasontag.gone path { fill: rgba(140, 96, 22, .84); }
.reasontag.queue rect, .reasontag.queue path { fill: rgba(74, 62, 104, .82); }
.reasontag { animation: rtin .3s var(--ease-pop) both; }
.reasontag .rt-label { transform: translateY(1.6px); }
@keyframes rtin {
    from { opacity: 0; transform: translateY(4px) scale(.86); }
    to   { opacity: 1; }
}

/* ---- the read on the day ------------------------------------------------- */

.dayread {
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
    margin: 0 0 var(--s-4);
    padding: var(--s-4) var(--s-5);
    background: linear-gradient(180deg, var(--lav-50), var(--card-warm));
    border: 1px solid var(--line);
    border-left: 4px solid var(--lav-400);
    border-radius: var(--r-md);
    box-shadow: var(--sh-1);
}

.dr-line { display: flex; align-items: flex-start; gap: var(--s-3); font-size: var(--fs-md); }
.dr-icon { flex: none; color: var(--accent-deep); margin-top: 2px; }
.dr-line.watch { color: var(--clay-600); font-weight: 700; }
.dr-line.watch .dr-icon { color: var(--clay-600); }

.frostwarn {
    margin: 0 0 var(--s-4);
    padding: var(--s-4) var(--s-5);
    background: #eaf1f8;
    border: 1px solid #b8cbdd;
    border-left: 4px solid #6f97bd;
    border-radius: var(--r-md);
    font-size: var(--fs-md);
    color: #2f4a63;
}
.frostwarn strong { color: #23405a; }

@media (prefers-color-scheme: dark) and (max-width: 0px) {
    .frostwarn { background: #1a2733; border-color: #35506a; color: #b6cee2; }
    .frostwarn strong { color: #d8e8f4; }
}

/* ---- the day's ledger ---------------------------------------------------- */

/*  LC-038. The evening report is a thing you READ, not a thing you decide on, so it gets
    paper rather than a book: ruled lines, a red margin rule down the left, and a pencil
    underline on the one lever worth acting on. Making it a page-turning artifact would be
    the wrong kind of diegetic — beautiful, slower, and in the way of the one number the
    player came here for. */
.ledger {
    position: relative;
    margin: var(--s-5) 0 var(--s-4);
    padding: var(--s-5) var(--s-5) var(--s-5) calc(var(--s-6) + 14px);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background:
        repeating-linear-gradient(180deg,
            transparent 0 28px,
            color-mix(in srgb, var(--accent) 8%, transparent) 28px 29px),
        var(--paper);
    background-position: 0 10px;
    box-shadow: var(--sh-1);
}

/* The margin rule. Every ledger anyone has ever kept has one. */
.ledger::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: calc(var(--s-6) - 2px);
    width: 1.5px;
    background: color-mix(in srgb, var(--bad) 42%, transparent);
}

.ledger h4 {
    position: relative;
    margin: 0 0 var(--s-3);
    font-size: var(--fs-xs);
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-quiet);
}

.ledger-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-2); }

.ledger-list li {
    display: grid;
    grid-template-columns: 84px 30px 1fr;
    align-items: center;
    gap: var(--s-3);
    font-size: var(--fs-md);
}

.ld-bar {
    height: 9px;
    background: var(--paper-sunk);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    overflow: hidden;
}

.ld-bar span {
    display: block;
    height: 100%;
    border-radius: var(--r-pill);
    background: var(--ink-faint);
    animation: ldgrow .7s var(--ease-out) both;
}

@keyframes ldgrow { from { width: 0 !important; } }

.ledger-list li.good .ld-bar span { background: linear-gradient(90deg, var(--sage-400), var(--sage-600)); }
.ledger-list li.bad .ld-bar span { background: linear-gradient(90deg, var(--clay-400), var(--clay-600)); }

.ld-n {
    font-family: var(--font-display);
    font-variation-settings: var(--wonk);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.ledger-list li.good .ld-n { color: var(--sage-700); }
.ledger-list li.bad .ld-n { color: var(--clay-600); }

/* The one thing worth acting on, underlined in pencil the way you would underline it. */
.ledger-lever {
    position: relative;
    margin: var(--s-4) 0 0;
    padding-top: var(--s-3);
    border-top: 1px dashed var(--line-firm);
    font-size: var(--fs-md);
}

.ledger-lever::after {
    content: '';
    position: absolute;
    left: -2px; width: min(62%, 520px); bottom: -5px;
    height: 3px;
    border-radius: 2px;
    background: color-mix(in srgb, var(--accent) 46%, transparent);
    /* A ruler-drawn line is a computer line. This one wobbles. */
    clip-path: polygon(0 34%, 6% 8%, 19% 62%, 33% 18%, 48% 70%, 62% 24%, 76% 66%,
                       89% 22%, 100% 52%, 100% 100%, 0 100%);
}

.ledger-lever strong {
    font-family: var(--font-display);
    font-variation-settings: var(--wonk);
    color: var(--accent-deep);
    margin-right: 4px;
}

/* ---- the standing ladder ------------------------------------------------- */

.st-now { margin-bottom: var(--s-3); }

.st-rank {
    display: block;
    font-family: var(--font-display);
    font-variation-settings: var(--wonk);
    font-weight: 700;
    font-size: 1.24rem;
    line-height: 1.15;
    color: var(--accent-deep);
}

.st-flavour { display: block; font-size: var(--fs-sm); color: var(--ink-soft); margin-top: 2px; }

.st-track {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0 0 var(--s-4);
    padding: 0;
}

.st-track li {
    flex: 1;
    height: 7px;
    border-radius: var(--r-pill);
    background: var(--paper-sunk);
    border: 1px solid var(--line);
    transition: background var(--t-slow) var(--ease-out);
}

.st-track li.done { background: linear-gradient(90deg, var(--lav-300), var(--lav-500)); border-color: var(--lav-500); }
.st-track li.here { background: var(--lav-100); border-color: var(--lav-300); box-shadow: 0 0 0 2px var(--lav-50); }

.st-next {
    margin: 0 0 var(--s-2);
    font-size: var(--fs-xs);
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-quiet);
}

.st-needs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-2); }

.st-needs li {
    display: flex;
    align-items: flex-start;
    gap: var(--s-3);
    font-size: var(--fs-md);
    color: var(--ink-soft);
}

.st-needs li.got { color: var(--sage-700); font-weight: 700; }

.st-tick {
    flex: none;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border-radius: 50%;
    border: 1.6px solid var(--line-firm);
    font-size: 11px;
    font-weight: 800;
    color: #fff;
}

.st-needs li.got .st-tick { background: linear-gradient(180deg, var(--sage-400), var(--sage-600)); border-color: var(--sage-600); }

/* ---- the day-one coach --------------------------------------------------- */


@keyframes coachin { from { opacity: 0; transform: translateY(-8px); } }

.coach-body { flex: 1; }
.coach h4 {
    margin: 0 0 3px;
    font-family: var(--font-display);
    font-variation-settings: var(--wonk);
    font-weight: 700;
    font-size: 1.1rem;
    /* --gold-600 is a scale colour, tuned for how it looks on the art. --warn is the same
       colour taken far enough to be read as words on a gold ground. */
    color: var(--warn);
}
.coach p { margin: 0; font-size: var(--fs-md); }
.coach button { flex: none; }

@media (prefers-reduced-motion: reduce) {
    .coach, .reasontag, .ld-bar span { animation: none; }
}

/* ===================================== small warmths (LC-032) ==============

   The brief after the second playtest was the gentlest one yet: cozier, cuter,
   a bit more heartwarming, and NOT over the top. So this block is deliberately
   short. Every rule here is either something breathing slowly, something soft
   catching the light, or a little sprig where a bullet used to be. */

/* ---- the shop cat -------------------------------------------------------- */

.catbreath {
    transform-box: fill-box;
    transform-origin: 50% 100%;
    animation: catbreath 4.6s var(--ease-soft) infinite alternate;
}

@keyframes catbreath {
    from { transform: scaleY(1) translateY(0); }
    to   { transform: scaleY(1.045) translateY(-.3px); }
}

/* The tail moves about once every ten seconds. Any more and it looks anxious. */
.shopcat .cattail {
    transform-box: fill-box;
    transform-origin: 100% 50%;
    animation: cattailslow 9.5s var(--ease-soft) infinite;
}

@keyframes cattailslow {
    0%, 78%, 100% { transform: rotate(0deg); }
    84%           { transform: rotate(-11deg); }
    90%           { transform: rotate(5deg); }
}

.catblink { animation: catblink 7.4s ease-in-out infinite; }
@keyframes catblink {
    0%, 92%, 100% { opacity: 1; }
    95%           { opacity: .35; }
}

/* ---- the sale sparkle ---------------------------------------------------- */

.salepop {
    transform-box: fill-box;
    transform-origin: 50% 50%;
    animation: salepop 1.5s var(--ease-out) both;
}

@keyframes salepop {
    0%   { opacity: 0; transform: scale(.3); }
    22%  { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.25) translateY(-8px); }
}

/* ---- a sprig where a bullet used to be ----------------------------------- */

/* Every small-caps heading in the game gets one. It is four pixels wide and it is
   doing more for the mood than anything else in this file. */
.panel > h3::before,
.section-rule::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 11px;
    margin-right: 7px;
    vertical-align: -1px;
    background:
        radial-gradient(ellipse 2px 3px at 50% 18%, var(--lav-400) 62%, transparent 64%),
        radial-gradient(ellipse 1.6px 2.6px at 50% 46%, var(--lav-400) 62%, transparent 64%),
        radial-gradient(ellipse 1.2px 2px at 50% 72%, var(--lav-400) 62%, transparent 64%),
        linear-gradient(var(--sage-400), var(--sage-400)) 50% 70% / 1px 34% no-repeat;
    opacity: .85;
}

/* ---- things settle instead of stopping ----------------------------------- */

.primary, .ghost, .buy, .sc-shelf, .sc-buy button, .restock button {
    transition: transform .2s var(--ease-pop),
                box-shadow var(--t-quick) var(--ease-out),
                filter var(--t-quick) var(--ease-out),
                background var(--t-quick) var(--ease-out),
                border-color var(--t-quick) var(--ease-out),
                color var(--t-quick) var(--ease-out);
}

.primary:active:not(:disabled),
.buy:active:not(:disabled),
.sc-shelf:active,
.sc-buy button:active:not(:disabled) { transform: translateY(1px) scale(.97); }

/* ---- a kinder empty state ------------------------------------------------ */

.nowt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s-3);
    padding: var(--s-6) var(--s-5);
    text-align: center;
    color: var(--ink-soft);
    font-size: var(--fs-md);
}

.nowt svg { opacity: .55; }
.nowt .nowt-line { max-width: 30ch; line-height: 1.45; }

@media (prefers-reduced-motion: reduce) {
    .catbreath, .shopcat .cattail, .catblink, .salepop { animation: none; }
}

.forecast { display: inline-flex; align-items: center; gap: 6px; }
.wglyph { flex: none; display: block; }

/* The evening greets the place by name. It costs nothing and it is somebody's farm. */
.h2-day {
    display: block;
    margin-top: 2px;
    font-family: var(--font-ui);
    font-size: var(--fs-xs);
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--ink-quiet);
}

/* The sound control. Small, in the corner, and it remembers what you chose. */
.soundbtn {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: var(--r-md);
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--accent-deep);
    cursor: pointer;
    box-shadow: var(--sh-1);
    transition: all var(--t-quick) var(--ease-out);
}

.soundbtn:hover { border-color: var(--lav-300); transform: translateY(-1px); }
.soundbtn:active { transform: translateY(1px); }
.soundbtn.off { color: var(--ink-quiet); background: var(--paper-sunk); }

/* ==================================== the game is a screen (LC-035) ========

   Measured on a 1440x900 laptop, the game used to be 3.8 screens tall: one screen of
   picture and nearly three of cream cards below it. There were scroll positions with
   no game visible anywhere on them. Every detail pass of the last several phases was
   running into that ceiling — you cannot make a picture feel like a game when it is
   the header of a form.

   So: the world fills the viewport, and the work happens in a dock over it. Nothing
   scrolls the page; each pane scrolls inside itself. */

main.screenmode {
    position: fixed;
    inset: 0;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.screenmode .world {
    position: absolute;
    inset: 0;
    z-index: 0;
    transition: opacity .19s var(--ease-out);
}

/* Opacity only. The scale-out that used to live here has become a real pull-back in
   Camera, and the drift belongs to the wrappers inside. */
.screenmode .world.leaving { opacity: 0; transform: scale(1.03); transition: opacity .3s var(--ease-soft), transform .3s var(--ease-soft); }
.screenmode .world { animation: arrive .55s var(--ease-out) both; }
@keyframes arrive { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .screenmode .world { animation: none; } .screenmode .world.leaving { transform: none; } }

.screenmode .cam { position: absolute; inset: 0; }
.screenmode .cam > .lens { position: absolute; inset: 0; }
.screenmode .lens > .scene { position: absolute; inset: 0; }

.screenmode .world .scene,
.screenmode .world .scene > svg {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 0;
}

/* The bar floats on the world instead of sitting on a page above it. */
body:has(main.screenmode) .topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 30;
    background: linear-gradient(180deg, rgba(255, 253, 248, .94), rgba(253, 248, 238, .82));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(233, 223, 205, .7);
}

@media (prefers-color-scheme: dark) and (max-width: 0px) {
    body:has(main.screenmode) .topbar {
        background: linear-gradient(180deg, rgba(33, 27, 41, .94), rgba(37, 30, 46, .84));
        border-bottom-color: rgba(54, 45, 66, .8);
    }
}

/* ---- the dock ------------------------------------------------------------ */

.dock {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    height: var(--dock-h, 54vh);
    /* Never taller than the room under the bar. On a phone the bar is two rows deep and
       88vh reached up behind it, which hid the tabs and the map button — the only way
       out of the panel — under the day and the cash. (LC-041) */
    max-height: calc(100vh - var(--topbar-h, 75px) - var(--s-3));   /* an older Safari has no dvh (LC-072) */
    max-height: calc(100dvh - var(--topbar-h, 75px) - var(--s-3));
    background: linear-gradient(180deg, var(--card) 0%, var(--card-warm) 46%, var(--paper) 100%);
    border-top: 1px solid var(--line);
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    box-shadow: 0 -10px 40px -14px rgba(52, 36, 24, .34), var(--edge-top);
    transition: height .42s var(--ease-out);
}

/* The heights live on the shell, not the dock, because the world needs to know them
   as well: the trading HUD sits just above whatever the dock is currently doing. */
main.screenmode.dock-peek { --dock-h: 96px; }
main.screenmode.dock-open { --dock-h: 54vh; }
main.screenmode.dock-tall { --dock-h: 86vh; }

/* A lavender hairline along the very top of the dock, tying it to every panel. */
.dock::before {
    content: '';
    position: absolute;
    inset: 0 22% auto;
    height: 3px;
    border-radius: var(--r-pill);
    background: linear-gradient(90deg, transparent, var(--lav-300) 26%, var(--lav-300) 74%, transparent);
    opacity: .8;
}

.dock-grip {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
    padding: var(--s-4) var(--s-6) var(--s-3);
    flex: none;
}

.dock-title {
    font-family: var(--font-display);
    font-variation-settings: var(--wonk);
    font-weight: 700;
    font-size: 1.16rem;
    color: var(--accent-deep);
}

.dock-tabs { display: flex; gap: var(--s-2); flex-wrap: wrap; min-width: 0; }

.dtab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: .46em .9em;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--paper);
    color: var(--ink-soft);
    font: 800 var(--fs-sm) var(--font-ui);
    cursor: pointer;
    white-space: nowrap;
    box-shadow: var(--sh-1);
    transition: all var(--t-quick) var(--ease-out);
}

.dtab:hover { border-color: var(--lav-300); color: var(--accent-deep); transform: translateY(-1px); }
.dtab.on {
    background: linear-gradient(180deg, var(--lav-400), var(--lav-600));
    border-color: var(--lav-600);
    color: #fffdf8;
    box-shadow: var(--sh-2), inset 0 1px 0 rgba(255, 255, 255, .28);
}

.dtab.calling::after {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--gold-400);
    box-shadow: 0 0 0 2px var(--card);
}

.dtab-icon { display: block; opacity: .85; }
.dtab.on .dtab-icon { opacity: 1; }

.dock-tools { display: flex; align-items: center; gap: var(--s-2); flex: none; }

.mapbtn { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); background: var(--card); }
.mapbtn:hover { color: var(--accent-deep); }

.dock-handle {
    display: grid;
    place-items: center;
    width: 42px; height: 30px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--card);
    cursor: pointer;
    box-shadow: var(--sh-1);
}

.dock-handle span {
    display: block;
    width: 18px; height: 3px;
    border-radius: 2px;
    background: var(--ink-faint);
}

.dock-handle:hover span { background: var(--accent); }

.dock-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    /* The top padding is the height of the grip's scrim: at rest, nothing should be
       sitting underneath it, because text under a scrim reads as text you cannot read. */
    padding: var(--s-3) var(--s-6) var(--s-6);
}

.dock.peek .dock-body { display: none; }

.dock-head { margin-bottom: var(--s-4); }
.dock-pane { animation: paneIn .3s var(--ease-out) both; }

@keyframes paneIn {
    from { opacity: 0; transform: translateY(7px); }
    to   { opacity: 1; transform: none; }
}

/* Inside the dock a panel is already in a container: drop the second box. */
.dock-body .panel {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0 0 var(--s-5);
}

.dock-body .panel::after { display: none; }
.dock-body .columns { display: block; }
.dock-body .side { display: block; }
.dock-actions { position: sticky; bottom: 0; padding-top: var(--s-4); }

/* ---- the map, summoned ----------------------------------------------------
   LC-101. The map is the 3D world from above, with a chip over each place, so this is no
   longer a picture in a box over a dimmed screen: just a strip along the top saying what you
   are looking at (and its close button), and on a phone the list of places along the foot.
   Everything else lets taps through to the world, where the chips are. */
.mapover {
    position: fixed;
    inset: 0;
    z-index: 40;
    pointer-events: none;
    animation: fadeIn .22s var(--ease-out) both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.mapover-head {
    position: absolute; left: 50%; top: max(12px, env(safe-area-inset-top));
    transform: translateX(-50%);
    display: flex; align-items: center; gap: 10px;
    padding: 6px 6px 6px 16px; border-radius: 999px;
    background: rgba(36, 24, 44, .78); color: #f7efe2;
    box-shadow: 0 4px 16px rgba(20, 12, 30, .3);
    pointer-events: auto; white-space: nowrap;
    animation: mapIn .34s var(--ease-pop) both;
}
.mapover-head b { font-weight: 800; font-size: var(--fs-md, .95rem); }
.mapover-head span { font-size: var(--fs-sm, .82rem); opacity: .82; }
.mapover-head .mapover-x { position: static; width: 34px; height: 34px; }
@keyframes mapIn {
    from { opacity: 0; transform: translate(-50%, -12px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}
/* while it is open, the errand card and the place's name card step aside: the map is the errand's
   map now (Nell's hand points at the place her errand wants), and every place is named on it */
main.map-open .errand-pin, main.map-open .placecard { display: none; }
/* round 71 (the sharer, since round 66): a sheet up over the map — the day's card at closing — has its title clear; the
   strip waits under it, and comes back when the sheet's put away */
body:has(.sheet) .mapover-head { visibility: hidden; }
/* a phone's top row is the takings and the day: the strip goes under them, where the errand card was */
@media (max-width: 760px), (max-height: 500px) {
    .mapover-head { top: calc(env(safe-area-inset-top, 0px) + 62px); }
    .mapover-head span { display: none; }
}
.placebtn.here { border-color: var(--lav-300); background: var(--paper-sunk); }

@media (max-width: 760px) {
    main.screenmode.dock-open { --dock-h: 62vh; }
    main.screenmode.dock-tall { --dock-h: 88vh; }
    .dock-grip { padding: var(--s-3) var(--s-4) var(--s-2); }
    .dock-body { padding: 0 var(--s-4) var(--s-5); }
    .dtab-label { display: none; }
    .dtab { padding: .5em .68em; }
}

@media (prefers-reduced-motion: reduce) {
    .dock, .dock-pane, .mapover, .mapover-head { transition: none; animation: none; }
}

/* ---- the camera ----------------------------------------------------------

   The dock covers the bottom of the world, so the world has to look somewhere else.
   The whole scene is pushed and scaled by how much room it actually has: nearly all
   of it visible when the dock is a bar, framed tight on the stand when the dock is
   open, tighter still when it is tall. It is a transform on the svg element, which
   means every scene gets it without a line of markup, and it composites on the GPU
   so a camera move costs nothing.                                             */

/* LC-037. The framing used to live here as a matrix of class combinations — phase
   crossed with dock state, ten rules before a single place or event was involved. It is
   one rule now, fed by a Shot computed in C# and handed over as custom properties.
   Adding a framing is adding a row to a table, not a rule to a stylesheet. */
/*  LC-086. One transform, on one box.
    This rule used to sit on `.screenmode .world .scene > svg`, which is every layer of
    every scene — eight or more separately promoted compositing layers each running the
    same transition from the same variables. Sixteen transform transitions started on a
    single sheet-open, each layer starting its own twice, i.e. interrupted. Layers that
    make up one picture then land a frame or two apart and seams open between them,
    which is what the background "glitching on every action" actually was.
    `.lens` is one element between the drift and the scenes: it moves, they ride it. */
.screenmode .lens {
    position: absolute;
    inset: 0;
    transform-origin: 50% 82%;
    transform: translate(calc(var(--cam-x, 0px) + var(--pan-x, 0px)), calc(var(--cam-y, 0px) + var(--sheet-lift, 0px))) scale(var(--cam-z, 1));
    transition: transform var(--cam-t, .72s) var(--ease-soft);
    will-change: transform;
}

/* LC-042 put the picture at its full width and centred it so a phone could drag across
   instead of losing the sides. LC-087 supersedes the sizing — see "One rule for every
   window shape" below, which places and sizes every layer from the same --scene-over.
   The rule is kept here, gutted, so the next person to search for --scene-over finds the
   history rather than a mystery. */
.screenmode .world { touch-action: none; cursor: grab; background: #46583a; }

/* Only a real phone does these (LC-072). A second tap on "price +" inside a third of a
   second is a double-tap, and Safari zooms the page into the stepper unless the thing
   tapped says "manipulation" (pan and pinch, no double-tap zoom). A finger held on a
   bed's strip, or a shelf, is a long press: the text magnifier and the copy callout come
   up over the game unless the game's own surfaces refuse selection. The inputs keep it —
   a name is typed, a survey answer is written, the summary is copied. */
button, [role="button"], .hit, .slot, .shedtile, .placebtn, .vantile, .vt-all, .buychip, .step, .preset,
.playbar, .hud-top, .errand-pin, .nellcard, .sheet, .mapover, .handbar, .handwork, .coach, .turnphone, .recappage { touch-action: manipulation; }
main.screenmode, .playbar, .hud-top, .errand-pin, .nellcard, .sheet, .mapover, .handbar, .handwork, .hotlayer, .coach, .recappage, button {
    -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
input, textarea, .summary, .summary * { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
/* a field under sixteen pixels is a field Safari zooms the whole page into on focus: the name, the survey's answers */
input, textarea { font-size: max(16px, 1em); }
button, .hit, .slot, .shedtile, .placebtn, .vantile, .hw-strip { -webkit-tap-highlight-color: transparent; }
.screenmode .world:active { cursor: grabbing; }

.edgehints { position: absolute; inset: 0; pointer-events: none; z-index: 24; }
.edgehint {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: var(--r-pill);
    border: 0;
    background: #33283c;
    color: #fffdf8;
    font: inherit;
    font-size: var(--fs-sm);
    font-weight: 800;
    box-shadow: 0 6px 18px -6px rgba(20, 12, 28, .6);
    pointer-events: auto;
    cursor: pointer;
    animation: edgenudge 1.6s ease-in-out var(--announce);
}
.edgehint.left { left: 8px; }
.edgehint.right { right: 8px; flex-direction: row-reverse; }
.hot.offedge .hotlabel, .hot.offedge .hothand { opacity: 0; }   /* the chip says it; the label's end poking in at the edge did not (LC-064) */
/*  LC-074. This faded, and it was the fourth of the four things that made the picture
    flicker. An opacity in mid-animation inside the scene's SVG asks the browser for a
    compositing layer of its own, and a layer that appears and disappears under a camera
    that is already moving changes what is painted over what — the same bug as the
    parallax class, in a smaller place. It hides now, and nobody could see the quarter
    second it used to take.                                                              */
.sketch.offedge .sk-sign { opacity: 0; }                          /* the chip says it; the chalk sign half in at the edge said it twice (LC-073) */
.eh-chev { font-size: 1.3rem; line-height: 1; color: #f6e7a1; }
@keyframes edgenudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
.edgehint.left { animation-name: edgenudgel; }
@keyframes edgenudgel { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-4px); } }

/* ---- the idle -----------------------------------------------------------
   A frame that is perfectly still reads as a picture; one that breathes reads as a
   place. The path is the sum of two sine pairs at 2:3 and 3:5, sampled into sixteen
   keyframes — which looks irregular enough that nobody finds the beat, and loops
   seamlessly because every component completes a whole number of cycles in the
   minute.

   MEASURED: the first version put two drifts on two wrappers, on coprime periods, so
   the pattern would not repeat for twelve minutes. It also cost two frames a second,
   because each animated wrapper promotes a full-viewport compositing layer. One
   element with an irregular path is the same effect for half the price, and sixty-one
   seconds is already longer than anyone watches for a loop.                        */
.screenmode .cam { animation: camdrift 61s linear infinite; will-change: transform; }

@keyframes camdrift {
    0% { transform: translate(0.000vw, 0.000vh) }
    6.25% { transform: translate(0.416vw, 0.065vh) }
    12.5% { transform: translate(0.474vw, 0.247vh) }
    18.75% { transform: translate(0.168vw, -0.027vh) }
    25% { transform: translate(-0.190vw, -0.350vh) }
    31.25% { transform: translate(-0.313vw, -0.027vh) }
    37.5% { transform: translate(-0.206vw, 0.247vh) }
    43.75% { transform: translate(-0.065vw, 0.065vh) }
    50% { transform: translate(-0.000vw, -0.000vh) }
    56.25% { transform: translate(0.065vw, -0.065vh) }
    62.5% { transform: translate(0.206vw, -0.247vh) }
    68.75% { transform: translate(0.313vw, 0.027vh) }
    75% { transform: translate(0.190vw, 0.350vh) }
    81.25% { transform: translate(-0.168vw, 0.027vh) }
    87.5% { transform: translate(-0.474vw, -0.247vh) }
    93.75% { transform: translate(-0.416vw, -0.065vh) }
    100% { transform: translate(-0.000vw, 0.000vh) }
}

/* ---- parallax -----------------------------------------------------------
   The scenes are already built in depth bands, because that is how aerial perspective
   works. The same bands drive the parallax, so it costs a multiplier rather than a
   rewrite: the far ridge lags the camera, the near grass overshoots it, and the middle
   distance goes with it, which puts the pivot at the plane you are actually looking at —
   the same thing a real camera does. --par-x and --par-y are set by the pointer in ui.js
   and run -10 to 10. */
/* The drift lives entirely on .cam. The HUD, the photo button and the place card are
   siblings of it, so they stay nailed to the screen while the world breathes — a
   heads-up display that drifts is a heads-up display that looks broken. */

/*  MEASURED. The transform is scoped to .has-parallax, which ui.js adds while the pointer
    is leaning on the frame and removes a second and a half after it stops, because a
    transform on these two groups is not free even at translate(0,0): it gives six hundred
    nodes of backdrop and a plane of animated grass their own rendering context, and that
    showed up as three frames a second on an idle screen. Off the class, they are drawn
    exactly as they were.

    LC-074. will-change: transform used to be on both of these and it is the reason the
    scenery flickered. In SVG, paint order is document order — until a group is promoted
    to its own layer, and will-change promotes it. Promoting a <g> makes it a stacking
    context, so the backdrop and the foreground stopped being painted in the order they
    are written and started being composited against their siblings instead. The class
    went on and off many times a second, so that decision was remade constantly, and
    parts of the scene showed through parts that should have covered them.

    The transform alone is enough. The browser still composites it; it just does not
    hoist the group out of document order to do it, so what is in front stays in front. */
.screenmode.has-parallax .scene svg .backdrop {
    transform: translate(calc(var(--par-x, 0) * -1.7px), calc(var(--par-y, 0) * -1.1px));
    transition: transform .34s cubic-bezier(.25,.7,.3,1);
}

.screenmode.has-parallax .scene svg .foreground {
    transform: translate(calc(var(--par-x, 0) * 2.6px), calc(var(--par-y, 0) * 1.5px));
    transition: transform .28s cubic-bezier(.25,.7,.3,1);
}

@media (prefers-reduced-motion: reduce) {
    .screenmode .lens { transition: none; }
    .screenmode .cam { animation: none; }
    .screenmode .scene svg .backdrop,
    .screenmode .scene svg .foreground { transform: none; transition: none; }
}

/* The handbrake, for art review and for tests that need two comparable frames.
   Set by &still=1 in the preview URL; never reachable in a real session. */
.screenmode.camera-held .cam { animation: none; }
.screenmode.camera-held .scene svg .backdrop,
.screenmode.camera-held .scene svg .foreground { transform: none; transition: none; }

/* ---- the status in the grip ---------------------------------------------- */

.dock-status {
    display: inline-flex;
    align-items: center;
    gap: var(--s-3);
    margin-left: auto;
    padding-right: var(--s-3);
    font-size: var(--fs-sm);
    color: var(--ink-soft);
    white-space: nowrap;
}

.dock-status strong {
    font-family: var(--font-display);
    font-variation-settings: var(--wonk);
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--ink);
}

.ds-sep { width: 1px; height: 15px; background: var(--line-firm); }
.ds-weather { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; }

/* Actions pinned at the foot of a scrolling pane need something behind them. */
.dock-actions {
    position: sticky;
    bottom: 0;
    margin: var(--s-4) calc(var(--s-6) * -1) 0;
    padding: var(--s-4) var(--s-6);
    background: linear-gradient(180deg, rgba(251, 246, 236, 0), var(--paper) 34%);
    border-radius: 0;
}

@media (prefers-color-scheme: dark) and (max-width: 0px) {
    .dock-actions { background: linear-gradient(180deg, rgba(23, 19, 29, 0), var(--paper) 34%); }
}

@media (max-width: 900px) {
    .dock-status { display: none; }
}

/* The day's commit action belongs to the dock, not to a list inside it. */
.dock-foot {
    flex: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
    padding: var(--s-4) var(--s-6) var(--s-5);
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, var(--card-warm), var(--paper));
    box-shadow: 0 -6px 18px -14px rgba(52, 36, 24, .5);
}

/* The list runs *under* the footer rather than stopping dead at its border, so a
   half-visible row reads as "there is more below" instead of "this is broken".
   The mask keeps it theme-safe: it fades the real paper colour, not a white overlay. */
.dock-foot::before,
.dock-grip::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 26px;
    pointer-events: none;
    z-index: 3;
}

.dock-foot::before {
    bottom: 100%;
    background: var(--paper);
    -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 100%);
    mask-image: linear-gradient(to top, #000 10%, transparent 100%);
}

.dock-grip::after {
    top: 100%;
    background: var(--card);
    -webkit-mask-image: linear-gradient(to bottom, #000 8%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 8%, transparent 100%);
}

.dock.peek .dock-grip::after, .dock.peek .dock-foot::before { display: none; }

.dock.peek .dock-foot { border-top: none; padding-top: 0; }
.foot-note { min-width: 0; }
.foot-actions { display: flex; gap: var(--s-3); flex: none; }

@media (max-width: 700px) {
    .dock-foot { flex-direction: column; align-items: stretch; gap: var(--s-3); padding: var(--s-3) var(--s-4) var(--s-4); }
    .foot-actions { justify-content: stretch; }
    .foot-actions .primary { flex: 1; }
}


/* The day's clock and the way to skip it belong to the world, but they must never end
   up underneath the dock — which is exactly what happened the first time the game
   became a screen, and it left the player with no way to finish the day. */
/* The clock is status, not furniture. A full-width bar above the dock kept landing
   exactly on the counter — the one part of the picture you open the stand to watch —
   so it is a row of chips at the top of the frame instead, and the whole middle of
   the world stays clear. */
.screenmode .hud {
    /*  Below the bar, not under it.

        This was `top: 88px`, from measuring the topbar once at 75px on a desktop. On a
        phone the bar wraps to two rows and is 112px tall, so the clock sat underneath it
        and the day's time was unreadable — a hard-coded number that was right on one
        screen and wrong on another. ui.js publishes the bar's real height now and
        watches it for changes, so this is correct at every size by construction. */
    top: calc(var(--topbar-h, 75px) + 13px);
    bottom: auto;
    left: var(--s-5);
    right: var(--s-5);
    padding: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    align-items: flex-start;
}

.screenmode .hud .clock,
.screenmode .hud .tally {
    padding: 8px var(--s-5);
    border-radius: var(--r-pill);
    background: rgba(24, 16, 34, .46);
    backdrop-filter: blur(7px);
    box-shadow: var(--sh-2);
}

.screenmode .hud .tally { gap: var(--s-5); }
.screenmode .hud .clock { font-size: 1.4rem; padding: 4px var(--s-5) 6px; }

/* The photo button, likewise, keeps out of the dock's way. */
.screenmode .photo-btn { top: calc(var(--topbar-h, 75px) + 63px); }

@media (max-width: 720px) {
    .screenmode .hud { flex-direction: column; gap: var(--s-2); }
    .screenmode .hud .tally { font-size: var(--fs-sm); gap: var(--s-4); }
    .screenmode .photo-btn { top: calc(var(--topbar-h, 75px) + 8px); }
}

/* The camera's opinion about what you are doing used to live here as six more rules.
   It lives in Camera.Rest now, where it can be read as a table and reasoned about. */



/* ==========================================================================
   LC-038 — surfaces that belong to the farm

   The stand tab was a grid of cards with nine fields each. Two different jobs were
   mashed into one object: what to charge for the things you are selling, and what to
   restock. They are separate jobs done on separate things, so they are two objects
   now — a chalkboard and a row of crates — and between them they carry everything
   the card did in less room.

   The rule for the whole pass: an object may replace a control only if it is at
   least as legible as the control was. Tools/check-legibility.mjs is the gate.
   ========================================================================== */

.standwork { display: flex; flex-direction: column; gap: var(--s-6); }

/* ---- the chalkboard ------------------------------------------------------ */

.chalkboard {
    position: relative;
    border-radius: var(--r-md);
    padding: 9px 9px 17px;
    background:
        linear-gradient(180deg, #a97f52, #8d5a48 60%, #7a4c3c);
    box-shadow: var(--sh-2), inset 0 1px 0 rgba(255, 255, 255, .22);
}

.cb-face {
    --chalk: #f6f1e4;
    --chalk-soft: #cfd6cb;
    border-radius: 5px;
    padding: var(--s-5) var(--s-6) var(--s-6);
    background:
        radial-gradient(120% 90% at 20% 10%, rgba(255, 255, 255, .07), transparent 60%),
        linear-gradient(180deg, #34403a, #2b352f);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, .45);
    color: var(--chalk);
}

.cb-head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: var(--s-4); flex-wrap: wrap;
    padding-bottom: var(--s-3);
    border-bottom: 1px solid rgba(246, 241, 228, .3);
    margin-bottom: var(--s-4);
}

.cb-title {
    font-family: var(--font-display);
    font-variation-settings: var(--wonk);
    font-weight: 700;
    font-size: 1.24rem;
    color: var(--chalk);
    letter-spacing: .01em;
}

.cb-shelves { font: 700 var(--fs-sm) var(--font-ui); color: var(--chalk-soft); }

.cb-empty {
    color: var(--chalk-soft);
    font-size: var(--fs-md);
    line-height: 1.5;
    padding: var(--s-4) 0 var(--s-2);
    max-width: 46ch;
}

/* One chalked line. The name and the price sit on a baseline with a dotted lead
   between them, the way a real board is written; everything else is a note under it. */
.cb-row {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    grid-template-areas:
        "name lead price down"
        "note note note note";
    align-items: baseline;
    gap: 2px var(--s-3);
    padding: var(--s-3) 0;
    border-bottom: 1px dashed rgba(246, 241, 228, .16);
}

.cb-row:last-of-type { border-bottom: none; }

.cb-name {
    grid-area: name;
    font-family: var(--font-display);
    font-variation-settings: var(--wonk);
    font-weight: 600;
    font-size: 1.06rem;
    color: var(--chalk);
}

.cb-lead {
    grid-area: lead;
    align-self: center;
    height: 1px;
    background: repeating-linear-gradient(90deg,
        rgba(246, 241, 228, .42) 0 3px, transparent 3px 8px);
}

.cb-price {
    grid-area: price;
    display: inline-flex; align-items: baseline; gap: 1px;
    font-family: var(--font-display);
    font-variation-settings: var(--wonk);
    font-weight: 700;
    color: #ffe9b8;
    cursor: text;
}

.cb-cur { font-size: .92rem; opacity: .85; }

.cb-price input {
    width: 5.4ch;
    padding: 2px 0 3px;
    border: none;
    border-bottom: 1.5px solid rgba(255, 233, 184, .5);
    background: none;
    color: inherit;
    font: inherit;
    font-size: 1.18rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
    transition: border-color var(--t-quick) var(--ease-out), background var(--t-quick);
}

.cb-price input::-webkit-outer-spin-button,
.cb-price input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cb-price input { -moz-appearance: textfield; }

.cb-price:hover input { border-bottom-color: #ffe9b8; }
.cb-price input:focus {
    outline: none;
    border-bottom-color: #ffe9b8;
    background: rgba(255, 233, 184, .12);
}

.cb-down {
    grid-area: down;
    display: grid; place-items: center;
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(246, 241, 228, .3);
    background: rgba(246, 241, 228, .06);
    color: var(--chalk-soft);
    cursor: pointer;
    transition: all var(--t-quick) var(--ease-out);
}

.cb-down:hover { background: rgba(246, 241, 228, .18); color: var(--chalk); border-color: var(--chalk); }
.cb-down:active { transform: translateY(1px); }

.cb-note {
    grid-area: note;
    display: flex; flex-wrap: wrap; align-items: center; gap: 5px;
    font: 600 var(--fs-sm) var(--font-ui);
    color: var(--chalk-soft);
}

.cb-sep { opacity: .5; }
.cb-thin { color: #f0b58c; }
.cb-out { color: #f5a58a; font-style: normal; font-weight: 800; }
.cb-loved { color: #f2c9d8; display: inline-flex; align-items: center; gap: 4px; }
.cb-loved .lb-heart { color: #ef9fbb; }

.cb-row.gone .cb-name, .cb-row.gone .cb-price { opacity: .62; }

/* The tray along the bottom of the frame, with a stub of chalk and the duster on it. */
.cb-tray {
    position: absolute;
    left: 12%; right: 12%; bottom: 4px;
    height: 9px;
    display: flex; align-items: center; justify-content: center; gap: 14px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(180deg, #b48b5d, #8d5a48);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
}

.cb-tray i { display: block; border-radius: 2px; }
.cb-chalk { width: 20px; height: 4px; background: #f6f1e4; }
.cb-duster { width: 26px; height: 6px; background: #6f6558; border-top: 2px solid #cdc3ae; }

/* ---- the shed ------------------------------------------------------------ */

.shed-title {
    font-family: var(--font-display);
    font-variation-settings: var(--wonk);
    font-weight: 700;
    font-size: 1.06rem;
    color: var(--ink-soft);
    margin-bottom: var(--s-4);
}

.shed-empty { color: var(--ink-soft); font-size: var(--fs-md); }

.cratewall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(322px, 1fr));
    gap: var(--s-4);
}

/* A crate: slatted pine, a chalked tally on the end, and the job you can do with it. */
.crate {
    display: flex;
    gap: var(--s-4);
    padding: var(--s-4);
    border-radius: var(--r-sm);
    border: 1px solid var(--line-firm);
    background:
        repeating-linear-gradient(180deg,
            rgba(169, 127, 82, .09) 0 13px,
            rgba(169, 127, 82, .02) 13px 15px),
        var(--card);
    box-shadow: var(--sh-1);
    transition: box-shadow var(--t-quick) var(--ease-out), transform var(--t-quick) var(--ease-out);
}

.crate:hover { box-shadow: var(--sh-2); transform: translateY(-1px); }

/* An empty crate used to be dimmed with opacity, which also dimmed its text: the
   legibility gate caught it at 3.7:1. The state is carried by the tally badge and the
   faded artwork instead, both of which say "empty" without making the words harder to
   read. Opacity is not a way to mean something. */
.crate.bare { background-image: none; background-color: var(--paper-sunk); }

.crate-art { position: relative; flex: none; width: 68px; }
.crate-art :is(svg, img) { width: 100%; height: auto; display: block; }

.crate-tally {
    position: absolute; right: -6px; top: -4px;
    min-width: 24px; padding: 1px 6px;
    border-radius: var(--r-pill);
    background: var(--ink);
    color: var(--ink-invert);
    font: 800 var(--fs-xs) var(--font-ui);
    font-variant-numeric: tabular-nums;
    text-align: center;
    box-shadow: var(--sh-1);
}

.crate.bare .crate-tally { background: var(--clay); }

.crate-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--s-2); }

.crate-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); }

.crate-head h5 {
    font-family: var(--font-display);
    font-variation-settings: var(--wonk);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    color: var(--ink);
}

/* The product's own colour is chosen for how it looks in the art, not for how it reads
   as eleven-pixel type — the gate measured Fragrance at 2.99:1 on a dark ground. So the
   colour becomes a dot and the word stays legible. Same information, said twice. */
.crate-cat {
    flex: none;
    display: inline-flex; align-items: center; gap: 5px;
    font: 800 var(--fs-xs) var(--font-ui);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-quiet);
}

.crate-cat::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--cat, var(--ink-faint));
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}

.crate-loved {
    font: 700 var(--fs-sm) var(--font-ui);
    color: var(--accent-deep);
    display: flex; align-items: center; gap: 5px;
}

.crate-money { display: flex; align-items: baseline; gap: var(--s-3); flex-wrap: wrap; }

.crate-price {
    display: inline-flex; align-items: baseline; gap: 1px;
    padding: 3px 8px 4px;
    border: 1px solid var(--line-firm);
    border-radius: var(--r-xs);
    background: var(--paper);
    font-family: var(--font-display);
    font-variation-settings: var(--wonk);
    font-weight: 700;
    color: var(--ink);
    cursor: text;
}

.crate-price input {
    width: 5.4ch;
    border: none; background: none; color: inherit; font: inherit;
    font-size: 1.02rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.crate-price input::-webkit-outer-spin-button,
.crate-price input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.crate-price input { -moz-appearance: textfield; }
.crate-price:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--lav-100); }
.crate-price input:focus { outline: none; }

.crate-econ { font: 600 var(--fs-sm) var(--font-ui); color: var(--ink-soft); display: flex; gap: 5px; }

.crate-do { display: flex; align-items: center; gap: var(--s-3); margin-top: 2px; }

.crate-buy { display: inline-flex; gap: 4px; }

.crate-buy button {
    min-width: 44px; min-height: 32px;
    padding: 0 var(--s-3);
    border: 1px solid var(--line-firm);
    border-radius: var(--r-xs);
    background: var(--card-warm);
    color: var(--ink-soft);
    font: 800 var(--fs-sm) var(--font-ui);
    cursor: pointer;
    transition: all var(--t-quick) var(--ease-out);
}

.crate-buy button:hover:not([disabled]) { border-color: var(--gold-400); color: var(--warn); }
.crate-buy button:active:not([disabled]) { transform: translateY(1px); }
.crate-buy button[disabled] { opacity: .42; cursor: not-allowed; }

.crate-out {
    flex: 1;
    min-height: 36px;
    padding: 0 var(--s-4);
    white-space: nowrap;
    border: 1px solid var(--lav-300);
    border-radius: var(--r-xs);
    background: var(--lav-50);
    color: var(--accent-deep);
    font: 800 var(--fs-sm) var(--font-ui);
    cursor: pointer;
    transition: all var(--t-quick) var(--ease-out);
}

.crate-out:hover { background: var(--lav-100); border-color: var(--lav-400); }
.crate-out:active { transform: translateY(1px); }

@media (max-width: 700px) {
    .cratewall { grid-template-columns: 1fr; }
    .cb-face { padding: var(--s-4) var(--s-4) var(--s-5); }
    .cb-row { grid-template-columns: 1fr auto auto; grid-template-areas: "name price down" "note note note"; }
    .cb-lead { display: none; }
}

/* ---- the turn of a season (LC-039) --------------------------------------
   It was a cream page with a table on it: for one screen the game stopped looking
   like itself. The valley goes behind it now, in the season that is ending, and the
   card sits on top of it the way the title card does. */
main.recapmode { max-width: none; margin: 0; padding: 0; }
.recappage {
    position: relative;
    min-height: 100vh;   /* an older Safari has no dvh (LC-072) */
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 0;
    overflow: hidden;
}

.recaphero {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.recaphero .scene, .recaphero .scene > svg { width: 100%; height: 100%; display: block; }

.recapveil {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 90% at 50% 40%, rgba(28, 18, 40, .12), rgba(28, 18, 40, .58) 78%),
        linear-gradient(180deg, rgba(28, 18, 40, .3), rgba(28, 18, 40, .5));
    backdrop-filter: blur(2px);
}

.recappage .panel.recap {
    position: relative;
    z-index: 1;
    max-width: 640px;
    width: calc(100% - var(--s-7) * 2);
    max-height: calc(100vh - var(--s-8));   /* an older Safari has no dvh (LC-072) */
    max-height: calc(100dvh - var(--s-8));
    overflow-y: auto;
    margin: 0;
    box-shadow: var(--sh-3);
    /* G6: its own drop-in. It borrowed the map's, which moves the map half its width left to centre it
       (the map hangs from the middle of the screen): the season's recap and the deed's page sat against
       the left edge on a laptop, and half off it on a phone, "On to Summer" with them */
    animation: recapIn .42s var(--ease-pop) both;
}
@keyframes recapIn {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: none; }
}
/* the season's figures deserve the season's light: the sky behind the card, not a bar over it */
.recappage .panel.recap h1 { margin-top: 0; }

/* ==========================================================================
   LC-040 — the feed, as things that happened rather than a log

   Trading is the phase a person watches for longest, and it was a list of
   timestamped sentences. That was the loudest single reason testers said this did
   not feel like a game: the payoff screen was a log file. Each visit is a card
   now — who came, what they carried away, what it came to — and it arrives.
   ========================================================================== */

.feedcards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-3); }

.fcard {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: var(--s-4);
    padding: var(--s-3) var(--s-4);
    border: 1px solid var(--line);
    border-left: 3px solid var(--line-firm);
    border-radius: var(--r-sm);
    background: var(--card);
    box-shadow: var(--sh-1);
    animation: fcardin .42s var(--ease-pop) both;
}

@keyframes fcardin {
    from { opacity: 0; transform: translateX(-14px) scale(.985); }
    to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) { .fcard { animation: none; } }

.fcard.good { border-left-color: var(--good); }
.fcard.fav  { border-left-color: var(--accent); background: linear-gradient(90deg, var(--lav-wash), var(--card) 42%); }
.fcard.bad  { border-left-color: var(--bad); }
.fcard.farm { border-left-color: var(--warn); background: linear-gradient(90deg, var(--gold-wash), var(--card) 42%); }

.fc-face { display: block; width: 44px; }
.fc-face :is(svg, img) { width: 100%; height: auto; display: block; }

.fc-farmmark {
    display: grid; place-items: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--gold-wash);
    color: var(--warn);
    border: 1px solid var(--gold-400);
}

.fc-body { min-width: 0; display: flex; flex-direction: column; gap: 1px; }

.fc-top { display: flex; align-items: baseline; gap: var(--s-3); }

.fc-who {
    font-family: var(--font-display);
    font-variation-settings: var(--wonk);
    font-weight: 700;
    font-size: .99rem;
    color: var(--ink);
}

.fc-time {
    font: 700 var(--fs-xs) var(--font-ui);
    font-variant-numeric: tabular-nums;
    color: var(--ink-quiet);
}

.fc-what { font-size: var(--fs-md); color: var(--ink-soft); line-height: 1.4; }

/* Something they said, as something they said. */
.fc-quote {
    position: relative;
    align-self: flex-start;
    margin-top: 4px;
    padding: 5px 10px 6px;
    border-radius: var(--r-md) var(--r-md) var(--r-md) 3px;
    background: var(--paper-sunk);
    border: 1px solid var(--line);
    font: italic 400 var(--fs-sm)/1.35 var(--font-ui);
    color: var(--ink-soft);
}

.fc-quote::before { content: '\201C'; }
.fc-quote::after  { content: '\201D'; }

.fc-took { display: flex; align-items: center; gap: var(--s-3); flex: none; }

.fc-goods { display: inline-flex; align-items: center; }
.fc-goods .fc-good { display: block; width: 38px; margin-left: -11px; }
.fc-goods .fc-good:first-child { margin-left: 0; }
.fc-good :is(svg, img) { width: 100%; height: auto; display: block;
    filter: drop-shadow(0 1px 2px rgba(84, 62, 40, .22)); }

.fc-money {
    font-family: var(--font-display);
    font-variation-settings: var(--wonk);
    font-weight: 800;
    font-size: 1.04rem;
    font-variant-numeric: tabular-nums;
    color: var(--good);
    padding: 2px 9px 3px;
    border-radius: var(--r-pill);
    background: var(--good-wash);
}

.fcard.fav .fc-money { color: var(--accent-deep); background: var(--lav-100); }
.fc-nil { color: var(--ink-faint); display: grid; place-items: center; width: 38px; }

/* Nobody yet: a quiet road, not an apology. */
.feed-waiting {
    display: flex; flex-direction: column; align-items: center; gap: var(--s-4);
    padding: var(--s-7) var(--s-5);
    color: var(--ink-quiet);
    text-align: center;
}

.fw-path {
    display: block;
    width: 140px; height: 4px;
    border-radius: 2px;
    background: repeating-linear-gradient(90deg,
        var(--line-firm) 0 14px, transparent 14px 26px);
    animation: fwpath 2.4s linear infinite;
}

@keyframes fwpath { to { background-position: 26px 0; } }
@media (prefers-reduced-motion: reduce) { .fw-path { animation: none; } }

@media (max-width: 620px) {
    .fcard { grid-template-columns: 38px 1fr; grid-template-areas: "face body" "took took"; gap: var(--s-3); }
    .fc-face { grid-area: face; width: 38px; }
    .fc-body { grid-area: body; }
    .fc-took { grid-area: took; justify-content: flex-end; }
}

/* ---- the places, as buttons under the map (LC-041) ------------------------- */
.placelist {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--s-3);
    margin-top: var(--s-4);
}

.placebtn {
    display: flex; align-items: center; gap: var(--s-3);
    min-height: 56px;
    padding: var(--s-3) var(--s-4);
    border: 1px solid var(--line-firm);
    border-radius: var(--r-md);
    background: var(--card);
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    box-shadow: var(--sh-1);
    transition: transform var(--t-quick) var(--ease-out), box-shadow var(--t-quick) var(--ease-out),
                border-color var(--t-quick) var(--ease-out);
}

.placebtn:hover:not([disabled]) { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--lav-300); }
.placebtn:active:not([disabled]) { transform: translateY(0); }
.placebtn[disabled] { cursor: default; }

.placebtn.here { background: var(--lav-wash); border-color: var(--lav-300); }
.placebtn.calling { border-color: var(--gold-400); }
.placebtn.calling .pb-icon::after {
    content: ''; position: absolute; top: -3px; right: -3px;
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--gold-400); box-shadow: 0 0 0 2px var(--card);
}

.pb-icon {
    position: relative; flex: none;
    display: grid; place-items: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--paper-sunk);
    color: var(--accent-deep);
}

.placebtn.here .pb-icon { background: var(--lav-100); }

.pb-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pb-text b {
    font-family: var(--font-display); font-variation-settings: var(--wonk);
    font-weight: 700; font-size: .96rem; line-height: 1.15; color: var(--ink);
}
.pb-text em { font: 600 var(--fs-xs)/1.3 var(--font-ui); color: var(--ink-quiet); font-style: normal;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ================================ the store as a catalogue (LC-041) ======== */
/*
   Every ware is a card: a painted picture on a plate, the name, a few chips that say
   what it does, the prose under that, and one tag to press. The four states a ware can
   be in are told by the plate, not by a word in the corner: ready things sit in full
   colour; things you cannot yet afford keep their colour but the tag goes quiet and
   says how far short you are; locked things go to pencil with a padlock; built things
   get a rubber stamp across the picture.
*/

.wares {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(214px, 1fr));
    gap: var(--s-4);
    margin-top: var(--s-3);
}

.ware {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-1), var(--edge-top);
    overflow: hidden;
    transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out),
                border-color var(--t-base) var(--ease-out);
}

.ware.ready:hover { transform: translateY(-3px); box-shadow: var(--sh-lift); border-color: var(--lav-200); }
.ware.ready:hover .ware-art { transform: translateY(-2px) scale(1.04); }

.ware-plate {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 72 / 40;
    padding: var(--s-2) var(--s-6) 0;
    background:
        radial-gradient(120% 90% at 50% 100%, rgba(255, 255, 255, .55), transparent 60%),
        linear-gradient(180deg, var(--lav-50), var(--paper-sunk));
    border-bottom: 1px solid var(--line-soft);
}

.ware-art {
    width: 100%;
    max-height: 100%;
    overflow: visible;
    transition: transform var(--t-slow) var(--ease-pop), filter var(--t-base) var(--ease-out),
                opacity var(--t-base) var(--ease-out);
}

.ware-body { padding: var(--s-3) var(--s-4) var(--s-4); flex: 1; min-width: 0; }

/* Name on the left, the tag on the right, on the first line under the picture — so
   the price is in view even when the dock is at its shorter height. */
.ware-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--s-3);
}
.ware-head .ware-name { flex: 1; min-width: 0; padding-top: 4px; }
.ware-head .pricetag, .ware-head .ware-owned, .ware-head .ghost.tiny { flex: none; }
.ware-head .ware-owned { padding-top: 6px; }

.ware-note { margin-top: var(--s-2); display: inline-flex; align-items: center; gap: .35em; }

.ware-name {
    margin: 0;
    font-family: var(--font-display);
    font-variation-settings: var(--wonk);
    font-size: var(--fs-lg);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.005em;
    color: var(--ink);
}

.ware-from { margin-top: 2px; font-size: var(--fs-sm); font-style: italic; color: var(--ink-quiet); }

.ware-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: var(--s-2); }

.ware-chips .chip {
    display: inline-block;
    padding: .14em .58em;
    border-radius: var(--r-pill);
    background: var(--lav-100);
    color: var(--accent-deep);
    font-size: var(--fs-xs);
    font-weight: 800;
    letter-spacing: .01em;
    white-space: nowrap;
}

/*  LC-077. This was clamped to two lines and expanded to nine on hover. Measured on the
    Shop on the first morning: 272 words on the panel, 210 of them hidden — you could read
    62. The hidden ones are what the thing does, which is the entire question you are
    asking when you open a shop, and the hover that revealed them does not exist on a
    touch screen at all. A card is as tall as what it has to say.                        */
.ware-desc {
    margin: var(--s-2) 0 0;
    font-size: var(--fs-sm);
    line-height: 1.42;
    color: var(--ink-soft);
}

/* LC-077: nothing to expand any more — it is all there to begin with. */

/* The price is a paper tag on a string, and the whole tag is the button. */
.pricetag {
    position: relative;
    display: inline-flex;
    align-items: baseline;
    gap: .45em;
    min-height: 32px;
    margin: 0;
    padding: .25em .8em .25em 1.25em;
    border: 1.5px solid var(--lav-300);
    border-radius: 5px 12px 12px 5px;
    background: linear-gradient(180deg, var(--card), var(--lav-50));
    color: var(--accent-deep);
    font: inherit;
    font-weight: 800;
    font-size: var(--fs-md);
    line-height: 1.1;
    box-shadow: var(--sh-1);
    cursor: pointer;
    transition: transform var(--t-quick) var(--ease-out), box-shadow var(--t-base) var(--ease-out),
                background var(--t-base) var(--ease-out), color var(--t-base) var(--ease-out);
}

.pricetag::before {
    content: '';
    position: absolute;
    left: .5em;
    top: 50%;
    width: 5px;
    height: 5px;
    margin-top: -2.5px;
    border-radius: 50%;
    background: currentColor;
    opacity: .45;
}

.pricetag b { font-weight: 900; }
.pricetag small { font-size: var(--fs-xs); font-weight: 700; color: var(--bad-small); white-space: nowrap; }

.pricetag:hover:not(:disabled):not(.quiet) {
    background: linear-gradient(180deg, var(--lav-400), var(--lav-600));
    border-color: var(--lav-600);
    color: var(--ink-invert);
    transform: translateY(-1px) rotate(-2deg);
    box-shadow: var(--sh-2);
}

.pricetag:active:not(:disabled) { transform: translateY(1px); box-shadow: none; }

.pricetag:disabled, .pricetag.quiet {
    cursor: default;
    background: var(--paper-sunk);
    border-color: var(--line-firm);
    border-style: dashed;
    color: var(--ink-quiet);
    box-shadow: none;
}

.ware-upkeep { font-size: var(--fs-xs); color: var(--warn); font-weight: 700; }
.ware-needs { font-size: var(--fs-sm); color: var(--ink-quiet); font-weight: 700; }
.ware-thin { font-size: var(--fs-xs); color: var(--warn); font-weight: 700; line-height: 1.3; }   /* a purchase that leaves less than a day's stock (LC-059) */

.ware-owned {
    display: inline-flex;
    align-items: center;
    gap: .35em;
    font-size: var(--fs-sm);
    font-weight: 800;
    color: var(--good);
}

/* ---- states ---- */

.ware.poor .ware-plate { filter: saturate(.85); }

.ware.locked .ware-art { filter: grayscale(.85) contrast(.85); opacity: .55; }
.ware.locked .ware-plate { background: linear-gradient(180deg, var(--paper-sunk), var(--paper-sunk)); }
.ware.locked .ware-name { color: var(--ink-quiet); }
.ware.locked .ware-chips .chip { background: var(--paper-sunk); color: var(--ink-quiet); }

.ware-lock {
    position: absolute;
    right: 10px;
    top: 10px;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--card);
    color: var(--ink-quiet);
    box-shadow: var(--sh-1);
}

.ware.owned { border-color: var(--sage-200); background: var(--card-warm); }
.ware.owned .ware-plate { background: linear-gradient(180deg, var(--sage-50), var(--paper-sunk)); }

.ware-stamp {
    position: absolute;
    left: 50%;
    top: 50%;
    padding: .18em .75em;
    border: 2.5px solid var(--sage-600);
    border-radius: var(--r-xs);
    background: rgba(255, 253, 248, .78);
    color: var(--sage-700);
    font-family: var(--font-ui);
    font-size: var(--fs-md);
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    transform: translate(-50%, -50%) rotate(-12deg);
    box-shadow: 0 0 0 1.5px rgba(255, 253, 248, .8);
    pointer-events: none;
}

/* The stamp lands when you buy: big, then thumped down. Only on the card just bought. */
.ware.just .ware-stamp { animation: stampdown .55s var(--ease-pop) both; }
.ware.just .ware-art { animation: wareshake .5s var(--ease-out) both; }

@keyframes stampdown {
    0%   { transform: translate(-50%, -50%) rotate(-24deg) scale(2.2); opacity: 0; }
    55%  { transform: translate(-50%, -50%) rotate(-12deg) scale(.94); opacity: 1; }
    100% { transform: translate(-50%, -50%) rotate(-12deg) scale(1); opacity: 1; }
}

@keyframes wareshake {
    0%, 100% { transform: none; }
    30% { transform: translateY(2px) scale(.98); }
    60% { transform: translateY(-1px); }
}

/* Crew cards: the portrait sits on the plate instead of a drawn object. */
.crewcards .ware-plate.face { aspect-ratio: auto; padding: var(--s-4) 0 var(--s-2); }
.crewcards .ware-plate.face svg { width: 72px; height: 72px; }

@media (prefers-reduced-motion: reduce) {
    .ware.just .ware-stamp, .ware.just .ware-art { animation: none; }
    .ware.ready:hover, .ware.ready:hover .ware-art { transform: none; }
}

@media (max-width: 640px) {
    .wares { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
    .ware-body { padding: var(--s-3) var(--s-3) var(--s-1); }
    .ware-name { font-size: var(--fs-md); }
    /* LC-077: was -webkit-line-clamp: 2, with no hover on a phone to undo it. */
    .pricetag { min-height: 36px; }
}

/* ---- the goods line, drawn (LC-041) ---- */

.goods-row .good { align-items: center; gap: 6px; padding: 4px 11px 4px 6px; }
.goods-row .good .goodglyph { flex: none; width: 20px; height: 20px; }
.goods-row .good.none { opacity: .55; }
.goods-row .good.none .goodglyph { filter: grayscale(.7); }

/* ---- the bench: recipes as the things they make (LC-041) ---- */

.craftcards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--s-3);
}

.craftcard {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: var(--s-3);
    align-items: center;
    padding: var(--s-3);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--sh-1), var(--edge-top);
    transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}

.craftcard:not(.short):hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.craftcard.short { background: var(--card-warm); }

.craft-art {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: var(--r-sm);
    background: linear-gradient(180deg, var(--lav-50), var(--paper-sunk));
}

.craft-art .pa { width: 56px; height: 56px; }
.craft-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.craftcard .craft-name { min-width: 0; }
.craftcard .craft-needs { min-width: 0; line-height: 1.3; }
.craftcard .craft-note { display: block; font-size: var(--fs-xs); color: var(--warn); font-weight: 700; margin: 2px 0 4px; }   /* the still's claim on the dried (LC-064) */
/* round 65: the perfumery's blends, under the farm's own label — in the label's own italic, the lavender of the bottles' stoppers */
.craftcard .craft-label { display: block; font: italic 700 var(--fs-xs)/1.3 var(--font-display, Georgia, serif); color: #6b4fa8; margin: 1px 0 3px; }
/* round 66: what a vial sells for made into this (with more than one thing to make of a vial) */
.craftcard .craft-vial { display: block; font: 800 var(--fs-xs)/1.3 var(--font-ui, system-ui); color: #2f6a3e; margin: 1px 0 3px; }
.craftcard .craft-buttons { margin-top: 3px; }

@media (max-width: 640px) {
    .craftcards { grid-template-columns: 1fr; }
}

/* ================================================== the shell (LC-042) ======= */
/*
   The world fills the screen. Over it: a strip of figures at the top, one bar at the
   bottom with the next thing to do, a sheet that opens when you tap a thing in the
   picture and closes when you tap away, and — on the first day — one line and a hand.
   Nothing is open until you open it. This replaces the dock, which was a panel with
   tabs that opened by default and took most of the screen.
*/

/* the bar grows by the home indicator's inset on a phone that has one and no browser bar
   under it (LC-072); everything that sits on the bar — the sheet, the photo button, the
   toasts — is placed from this, so it all moves up together */
:root { --playbar-h: calc(78px + max(0px, env(safe-area-inset-bottom, 0px) - 10px)); --hud-h: 52px; }

main.screenmode { --dock-h: var(--playbar-h); }

/* ---- the top strip ---- */

.hud-top {
    position: absolute;
    left: 0; right: 0; top: 0;
    z-index: 25;
    display: flex;
    align-items: center;
    gap: var(--s-3);
    padding: 10px 12px;
    pointer-events: none;
}

.hud-top > * { pointer-events: auto; }

.hud-cash, .hud-day {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 12px 0 9px;
    border-radius: var(--r-pill);
    background: rgba(255, 253, 248, .86);
    border: 1px solid rgba(255, 255, 255, .7);
    box-shadow: 0 1px 2px rgba(40, 24, 50, .12), 0 6px 18px -8px rgba(40, 24, 50, .35);
    backdrop-filter: blur(8px);
    color: #33283c;                       /* the same in both themes: this sits on the picture */
    font-size: var(--fs-sm);
    font-weight: 700;
    white-space: nowrap;
}

.hud-cash b {
    font-family: var(--font-display);
    font-variation-settings: var(--wonk);
    font-size: 1.12rem;
    font-weight: 700;
    color: #573a87;
    letter-spacing: -.01em;
}

.hud-cash.flash b { animation: cashflash .9s var(--ease-out); }
@keyframes cashflash { 0% { color: #4b744c; transform: scale(1.18); } 100% { color: #573a87; transform: none; } }

.hud-day { margin-left: auto; color: #5f5469; }
.hud-day b { color: #33283c; }
.hud-sep { width: 1px; height: 14px; background: #dbcdb5; }
.hud-weather { display: inline-flex; align-items: center; gap: 4px; }
.hud-weather svg { width: 15px; height: 15px; }
.hud-w-short { display: none; }
@media (max-width: 640px) { .hud-w-long { display: none; } .hud-w-short { display: inline; } }

.hud-sound {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255, 253, 248, .86);
    border: 1px solid rgba(255, 255, 255, .7);
    box-shadow: 0 1px 2px rgba(40, 24, 50, .12);
    color: #573a87;
    display: grid; place-items: center;
    padding: 0;
}

/* the trading clock and tally sit under the strip now, not under a bar that is gone */
.screenmode .hud { top: calc(var(--hud-h) + 8px); }
.screenmode .photo-btn { top: auto; bottom: calc(var(--playbar-h) + 12px); right: 12px; }
.screenmode .placecard { top: calc(var(--hud-h) + 16px); }

@media (max-width: 640px) {
    .hud-day { font-size: var(--fs-xs); padding: 0 10px; gap: 5px; min-width: 0; }
    .hud-day > span:not(.hud-sep):not(.hud-weather) { display: none; }
    .hud-day .hud-sep:first-of-type { display: none; }
    /* "Heavy rain" on a narrow phone used to squeeze the sound button to 27px: the
       chips give way, the button never does, and a long weather word gets clipped. */
    .hud-cash { flex: none; }
    .hud-sound, .hud-help { flex: none; width: 36px; min-width: 36px; }
    .hud-day { flex: 0 1 auto; overflow: hidden; }
    .hud-weather span { overflow: hidden; text-overflow: ellipsis; }
    .screenmode .photo-btn span { display: none; }
}

/* ---- the bottom bar: three round buttons and one big verb ---- */

.playbar {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    height: var(--playbar-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-3);
    padding: 0 12px 10px;
    /* the home indicator, on a phone that has one and no browser bar under it (LC-072) */
    padding-bottom: max(10px, env(safe-area-inset-bottom, 0px));
    pointer-events: none;
    background: linear-gradient(180deg, rgba(20, 12, 28, 0) 0%, rgba(20, 12, 28, .28) 100%);
}

.playbar > * { pointer-events: auto; }
.pb-tools { display: flex; gap: 8px; }

.pb-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 58px;
    height: 58px;
    padding: 0;
    border-radius: 18px;
    background: rgba(255, 253, 248, .92);
    border: 1px solid rgba(255, 255, 255, .8);
    box-shadow: 0 2px 4px rgba(40, 24, 50, .14), 0 10px 22px -10px rgba(40, 24, 50, .45);
    color: #573a87;
    font: inherit;
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .02em;
    cursor: pointer;
    transition: transform var(--t-quick) var(--ease-out), background var(--t-base) var(--ease-out);
}

.pb-btn .pb-ico svg { width: 22px; height: 22px; }
.pb-btn:hover { transform: translateY(-2px); }
.pb-btn:active { transform: translateY(1px); }
.pb-btn.on { background: linear-gradient(180deg, var(--lav-400), var(--lav-600)); color: var(--ink-invert); border-color: var(--lav-600); }
.pb-btn.on .pb-ico { color: var(--ink-invert); }

.pb-verb { display: flex; align-items: center; gap: 8px; min-width: 0; }

.verb {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 6px 22px;
    border-radius: 18px;
    font: inherit;
    font-weight: 800;
    line-height: 1.1;
    cursor: pointer;
    transition: transform var(--t-quick) var(--ease-out), box-shadow var(--t-base) var(--ease-out), filter var(--t-base);
}

.verb.primary {
    background: linear-gradient(180deg, var(--lav-500), var(--lav-700));
    border: 1px solid var(--lav-800);
    color: var(--ink-invert);
    box-shadow: 0 2px 4px rgba(40, 24, 50, .18), 0 12px 26px -10px rgba(84, 62, 140, .7), inset 0 1px 0 rgba(255, 255, 255, .35);
}

.verb.primary b { font-size: var(--fs-lg); font-weight: 900; letter-spacing: -.005em; }
.verb.primary small { font-size: var(--fs-xs); font-weight: 700; opacity: .85; margin-top: 2px; white-space: nowrap; }
.verb.primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(40, 24, 50, .2), 0 18px 34px -12px rgba(84, 62, 140, .8), inset 0 1px 0 rgba(255, 255, 255, .35); }
.verb.primary:active:not(:disabled) { transform: translateY(1px); }
/* Not yet: the button goes to paper with dark ink, so the line that says what to do
   first is still readable — a faded lavender with white text measured 3.5:1. */
.verb.primary:disabled {
    cursor: not-allowed;
    opacity: 1;                           /* the generic disabled fade would take it to 2:1 */
    animation: none;
    background: #fffdf8;                  /* opaque: the bar's dark gradient bled through at 88% */
    border-color: rgba(255, 255, 255, .7);
    color: #5a5164;
    box-shadow: 0 2px 4px rgba(40, 24, 50, .12);
}
.verb.primary:disabled b { color: #5a5164; }
.verb.primary:disabled small { color: #5a5164; }

.verb.second {
    min-height: 44px;
    padding: 4px 14px;
    background: rgba(255, 253, 248, .94);
    border: 1px solid rgba(255, 255, 255, .8);
    color: #573a87;
    font-size: var(--fs-sm);
    box-shadow: 0 2px 4px rgba(40, 24, 50, .14);
}

/* the verb breathes while it is the only thing to do */
.ph-morning .verb.primary:not(:disabled), .ph-evening .verb.primary { animation: verbbreathe 2.6s ease-in-out var(--announce); }
@keyframes verbbreathe { 0%, 100% { box-shadow: 0 2px 4px rgba(40, 24, 50, .18), 0 12px 26px -10px rgba(84, 62, 140, .7); } 50% { box-shadow: 0 2px 4px rgba(40, 24, 50, .18), 0 12px 30px -6px rgba(123, 89, 181, .85); } }

@media (max-width: 640px) {
    .pb-btn { width: 52px; height: 52px; border-radius: 16px; font-size: .58rem; }
    .pb-btn .pb-ico svg { width: 20px; height: 20px; }
    .verb.primary { padding: 6px 16px; min-height: 54px; }
    .verb.primary b { font-size: var(--fs-md); }
    .verb.second { padding: 4px 10px; min-height: 40px; font-size: var(--fs-xs); }
    .playbar { padding: 0 10px 10px; padding-bottom: max(10px, env(safe-area-inset-bottom, 0px)); }
}

/* ---- the sheet: one thing, on top of the world, closes when you tap away ---- */

.sheet-scrim {
    position: absolute;
    inset: 0;
    z-index: 30;
    background: rgba(20, 12, 28, .12);
}

.sheet {
    position: absolute;
    left: 50%;
    bottom: calc(var(--playbar-h) + 4px);
    z-index: 35;
    width: min(760px, calc(100% - 24px));
    max-height: calc(100% - var(--hud-h) - var(--playbar-h) - 24px);
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--card) 0%, var(--card-warm) 60%, var(--paper) 100%);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    box-shadow: 0 -2px 6px rgba(40, 24, 50, .08), 0 24px 60px -18px rgba(40, 24, 50, .5), var(--edge-top);
    animation: sheetup .34s var(--ease-pop) both;
    overflow: hidden;
}

@keyframes sheetup { from { opacity: 0; transform: translate(-50%, 18px) scale(.98); } to { opacity: 1; transform: translateX(-50%); } }

.sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-3);
    padding: 12px 14px 8px 18px;
    border-bottom: 1px solid var(--line-soft);
}

.sheet-head h3 {
    margin: 0;
    font-family: var(--font-display);
    font-variation-settings: var(--wonk);
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -.01em;
}

.sheet-close {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--paper-sunk);
    color: var(--ink-soft);
    display: grid; place-items: center;
    padding: 0;
    cursor: pointer;
}
.sheet-close:hover { background: var(--lav-100); color: var(--accent-deep); }

.sheet-body {
    flex: 1 1 auto;
    min-height: 0;                        /* a flex child does not shrink without this — the body overflowed the sheet and the bottom of every card was unreachable */
    overflow: auto;
    overscroll-behavior: contain;
    padding: 12px 16px 16px;
    -webkit-overflow-scrolling: touch;
}

.sheet-body > .panel, .sheet-body > section.panel { border: 0; box-shadow: none; background: none; padding: 0; }
.sheet-body .panel > h3:first-child, .sheet-body .farm-block > h3:first-child { display: none; }
.sheet-body .actions { display: none; }         /* the verb lives in the bar, not in a sheet */
.sheet-body .special-row { margin-top: var(--s-4); }

/* a sheet's own list heading, when a sheet holds two blocks */
.sheet-body .crew-block, .sheet-body .craft-block { margin-top: var(--s-4); }

@media (max-width: 640px) {
    .sheet {
        left: 0; right: 0;
        width: auto;
        bottom: calc(var(--playbar-h) - 2px);
        transform: none;
        border-radius: var(--r-xl) var(--r-xl) 0 0;
        /* two thirds of the screen at most: the thing you tapped stays in view above it */
        max-height: min(68vh, calc(100% - var(--hud-h) - var(--playbar-h) - 12px));
    }
    @keyframes sheetup { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
    .sheet.wide { max-height: calc(100% - var(--hud-h) - var(--playbar-h) - 12px); }
    .sheet-head { padding: 10px 10px 8px 16px; }
    .sheet-head h3 { font-size: var(--fs-lg); }
    .sheet-body { padding: 10px 12px 14px; }
}

/* ---- the stand sheet: shelves as slots ---- */

.slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: 10px;
}

.slot {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-height: 132px;
    padding: 10px 8px 10px;
    border-radius: var(--r-md);
    border: 1.5px solid var(--line);
    background:
        linear-gradient(180deg, var(--lav-50), var(--card) 55%),
        var(--card);
    box-shadow: var(--sh-1), var(--edge-top);
    font: inherit;
    color: var(--ink);
    cursor: pointer;
    transition: transform var(--t-quick) var(--ease-out), box-shadow var(--t-base) var(--ease-out), border-color var(--t-base);
}

.slot::after {
    /* the shelf board the thing sits on */
    content: '';
    position: absolute;
    left: 8px; right: 8px; bottom: 8px;
    height: 5px;
    border-radius: 3px;
    background: linear-gradient(180deg, #c9a072, #8a6240);
    opacity: .85;
}

.slot:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.slot.on { border-color: var(--lav-400); box-shadow: 0 0 0 3px var(--lav-100), var(--sh-2); }
.slot.empty { border-style: dashed; background: var(--paper-sunk); color: var(--ink-quiet); }
.slot-art { width: 58px; height: 58px; }
.slot-art .pa { width: 58px; height: 58px; }
.slot-plus { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 2px dashed var(--line-firm); font-size: 1.5rem; font-weight: 300; color: var(--ink-faint); margin: 6px 0 4px; }
.slot-name { font-weight: 800; font-size: var(--fs-sm); line-height: 1.15; text-align: center; margin-top: 2px; }
.slot-tag {
    display: inline-block;
    margin-top: 3px;
    padding: 1px 9px 1px 11px;
    border-radius: 4px 9px 9px 4px;
    border: 1.5px solid var(--lav-300);
    background: var(--card);
    color: var(--accent-deep);
    font-weight: 900;
    font-size: var(--fs-sm);
}
.slot-sub { font-size: var(--fs-xs); color: var(--ink-quiet); font-weight: 700; margin-bottom: 10px; text-align: center; }

.shedrow { margin-top: 14px; }
.shedrow-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: var(--fs-sm); color: var(--ink-soft); }
.shedtiles {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px 8px;
    scroll-snap-type: x proximity;
}
.shedtile {
    flex: 0 0 122px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 6px 10px;
    border-radius: var(--r-md);
    border: 1px solid var(--line);
    background: var(--card);
    box-shadow: var(--sh-1);
    font: inherit;
    color: var(--ink);
    cursor: pointer;
    scroll-snap-align: start;
    transition: transform var(--t-quick) var(--ease-out), box-shadow var(--t-base);
}
.shedtile:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--lav-200); }
.shedtile.current { border-color: var(--lav-300); box-shadow: 0 0 0 3px var(--lav-100); }
.shedtile:disabled { opacity: .45; cursor: not-allowed; }
.st-art .pa { width: 50px; height: 50px; }
.st-name { font-size: var(--fs-sm); font-weight: 800; text-align: center; line-height: 1.15; }
.st-sub { font-size: var(--fs-xs); color: var(--ink-quiet); font-weight: 700; text-align: center; }
.st-loved { font-size: var(--fs-xs); color: var(--accent-deep); font-weight: 700; }

.slotdetail { margin-top: 14px; padding: 12px 14px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-1); animation: fadeup .28s var(--ease-out) both; }
@keyframes fadeup { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sd-head { display: flex; align-items: center; gap: 10px; }
.sd-art .pa { width: 46px; height: 46px; }
.sd-titles { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sd-titles b { font-family: var(--font-display); font-variation-settings: var(--wonk); font-size: var(--fs-lg); font-weight: 700; }
.sd-cat { font-size: var(--fs-xs); color: var(--ink-quiet); font-weight: 700; }
.sd-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.sd-lbl { min-width: 78px; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-quiet); }
.sd-note { font-size: var(--fs-xs); color: var(--ink-quiet); font-weight: 700; }
.sd-held { font-family: var(--font-display); font-size: 1.1rem; }

.stepper { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line-firm); border-radius: var(--r-pill); background: var(--paper-sunk); padding: 3px; }
.stepper .step {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--accent-deep);
    font: inherit; font-size: 1.25rem; font-weight: 800; line-height: 1;
    display: grid; place-items: center;
    cursor: pointer;
    box-shadow: var(--sh-1);
}
.stepper .step:hover { background: var(--lav-100); }
.stepper .step:active { transform: translateY(1px); }
.step-val { min-width: 72px; text-align: center; font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--accent-deep); }

.sd-buys { display: inline-flex; gap: 6px; }
.buychip {
    display: inline-flex; align-items: baseline; gap: 5px;
    min-height: 34px;
    padding: 4px 12px;
    border-radius: var(--r-pill);
    border: 1px solid var(--sage-200);
    background: var(--sage-50);
    color: var(--sage-700);
    font: inherit; font-weight: 800; font-size: var(--fs-sm);
    cursor: pointer;
}
.buychip small { font-size: var(--fs-xs); font-weight: 700; opacity: .8; }
.buychip:hover:not(:disabled) { background: var(--sage-200); }
.buychip:disabled { opacity: .4; cursor: not-allowed; }
/* round 70: the shed sold all it sells today — said in words, readable, not a faded button */
.buychip.shedout:disabled { opacity: 1; background: transparent; border-style: dashed; color: #6f6250; font-weight: 700; }
.sd-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }

/* ---- a bed ---- */

.ps-head { display: flex; gap: 12px; align-items: center; }
.ps-art { width: 96px; flex: none; border-radius: var(--r-sm); overflow: hidden; background: linear-gradient(180deg, var(--lav-50), var(--paper-sunk)); }
.ps-art svg { width: 100%; height: auto; display: block; }
.ps-titles { display: flex; flex-direction: column; gap: 4px; }
.ps-titles b { font-size: var(--fs-md); }
.ps-who { font-size: var(--fs-sm); color: var(--ink-soft); }
.ps-option { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 10px; padding: 10px 12px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); }
.ps-job { font-weight: 800; }
.ps-crew { display: flex; gap: 6px; flex-wrap: wrap; }
.crewchip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 12px 4px 4px;
    min-height: 40px;
    border-radius: var(--r-pill);
    border: 1px solid var(--line);
    background: var(--paper-sunk);
    color: var(--ink);
    font: inherit; font-size: var(--fs-sm); font-weight: 800;
    cursor: pointer;
}
.crewchip .portrait, .crewchip svg { width: 30px; height: 30px; }
.crewchip.on { background: linear-gradient(180deg, var(--lav-400), var(--lav-600)); color: var(--ink-invert); border-color: var(--lav-600); }
.crewchip:hover:not(.on) { background: var(--lav-100); }

/* ---- the day card ---- */

.daycard { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 6px 0 2px; }
.dc-weather { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-sm); color: var(--ink-quiet); font-weight: 700; }
.dc-take { display: flex; flex-direction: column; align-items: center; }
.dc-lbl { font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; font-weight: 800; color: var(--ink-quiet); }
.dc-big { font-family: var(--font-display); font-variation-settings: var(--wonk); font-size: 2.8rem; line-height: 1.05; font-weight: 700; color: var(--accent-deep); letter-spacing: -.02em; animation: countin .6s var(--ease-pop) both; }
@keyframes countin { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
.dc-profit { font-weight: 800; font-size: var(--fs-md); }
.dc-profit.good { color: var(--good); }
.dc-profit.bad { color: var(--bad); }
.dc-short { margin-top: 2px; font-size: var(--fs-sm); font-weight: 700; color: var(--ink-quiet); }   /* a money day missed by a little says by how much (LC-058) */
.dc-stars { display: flex; gap: 6px; font-size: 1.9rem; line-height: 1; }
.dc-stars .star { color: var(--line-firm); animation: starpop .5s var(--ease-pop) both; }
.dc-stars .star.lit { color: var(--gold-400); text-shadow: 0 2px 6px rgba(224, 174, 77, .5); }
@keyframes starpop { from { transform: scale(.4) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
.dc-figs { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; font-size: var(--fs-sm); color: var(--ink-soft); }
.dc-figs b { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); margin-right: 2px; }
.dc-best { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: var(--r-pill); background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-1); text-align: left; }
.dc-best-art .pa { width: 40px; height: 40px; }
.dc-best small { display: block; font-size: var(--fs-xs); color: var(--ink-quiet); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.dc-best em { font-style: normal; color: var(--ink-quiet); font-weight: 700; }
.dc-beat { margin: 4px 0 0; max-width: 46ch; font-size: var(--fs-md); color: var(--ink); }
/* round 70: a slow day says why, its label in the card's warm red (as "after costs" is when it loses) */
.dc-why b { color: var(--clay-600); font-weight: 800; }
.dc-lever { margin: 0; max-width: 46ch; font-size: var(--fs-sm); color: var(--ink-soft); }
.dc-lever b { color: var(--accent-deep); }
.dc-actions { display: flex; gap: 8px; margin-top: 6px; }
.daycard .tellus { align-self: center; margin: 2px 0 0; padding: .35em .9em; font-size: var(--fs-sm); color: var(--ink-soft); background: none; border-color: transparent; text-decoration: underline; text-decoration-color: var(--lav-300); text-underline-offset: .2em; }   /* the quiet exit, above the fold: a link, not another chip (LC-073) */

/* ---- the ticker over the world while the stand trades ---- */

.ticker {
    position: absolute;
    left: 12px; right: 12px;
    bottom: calc(var(--playbar-h) + 6px);
    z-index: 22;
    pointer-events: none;
}

.ticker .feedcards.mini {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0; padding: 0;
    width: min(340px, 100%);
    list-style: none;
    overflow: hidden;
}
.ticker .feedcards.mini .fcard { min-width: 0; animation: tickin .4s var(--ease-pop) both; }
.ticker .feedcards.mini .fcard:nth-child(2) { opacity: .82; }
.ticker .feedcards.mini .fcard:nth-child(3) { opacity: .62; }
.ticker .fc-quote { display: none; }
@keyframes tickin { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
.ticker-empty { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: var(--r-pill); background: rgba(255, 253, 248, .85); font-size: var(--fs-sm); color: var(--ink-soft); font-weight: 700; }

/* compact cards over the world: one line, a small face, no clock */
.ticker .feedcards.mini .fcard { grid-template-columns: 30px 1fr auto; padding: 7px 10px; gap: 8px; font-size: var(--fs-sm); background: rgba(255, 253, 248, .93); }
.ticker .feedcards.mini .fc-face, .ticker .feedcards.mini .fc-face svg, .ticker .feedcards.mini .fc-face .portrait { width: 30px; height: 30px; }
.ticker .feedcards.mini .fc-time { display: none; }
.ticker .feedcards.mini .fc-who { font-size: var(--fs-sm); }
.ticker .feedcards.mini .fc-what { font-size: var(--fs-xs); line-height: 1.3; }
.ticker .feedcards.mini .fc-good .pa { width: 26px; height: 26px; }

@media (max-width: 640px) {
    .ticker { right: 64px; }
    .ticker .feedcards.mini { width: 100%; }
    .ticker .feedcards.mini .fcard:nth-child(n + 3) { display: none; }
    .screenmode .photo-btn { top: auto; bottom: calc(var(--playbar-h) + 12px); right: 12px; width: 44px; height: 44px; padding: 0; justify-content: center; }
}

/* ---- the coach: one line, one hand ---- */

.coach {
    position: absolute;
    left: 50%;
    top: calc(var(--hud-h) + 14px);
    z-index: 45;
    transform: translateX(-50%);
    width: max-content;
    max-width: min(420px, calc(100% - 32px));
    margin: 0; padding: 0;
    background: none; border: 0; box-shadow: none;
    pointer-events: none;
    animation: coachin .5s var(--ease-pop) both;
}

@keyframes coachin { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translateX(-50%); } }

.coach-line {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: var(--r-lg);
    background: var(--ink);
    color: var(--ink-invert);
    font-size: var(--fs-md);
    font-weight: 700;
    box-shadow: 0 10px 30px -8px rgba(20, 12, 28, .6);
    pointer-events: none;                 /* a line of advice never blocks a tap */
}

/* While the coach is talking, a sheet starts under its line rather than behind it. */
main.coaching .sheet { max-height: calc(100% - var(--hud-h) - var(--playbar-h) - 76px); }

.coach-ok {
    pointer-events: auto; padding: 4px 10px; border-radius: var(--r-pill); border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); color: inherit; font: inherit; font-size: var(--fs-xs); cursor: pointer; }

.coach-hand {
    position: absolute;
    left: 50%;
    top: 54%;
    transform: translateX(-50%);
    animation: handtap 1.3s ease-in-out var(--announce);
    filter: drop-shadow(0 6px 8px rgba(20, 12, 28, .4));
    pointer-events: none;
}

@keyframes handtap { 0%, 100% { transform: translate(-50%, 0) rotate(-8deg); } 50% { transform: translate(-50%, -18px) rotate(-8deg) scale(.94); } }

/* whatever the coach points at gets a ring and a slow pulse, wherever it is */
.coach-target { position: relative; z-index: 46; animation: coachpulse 1.4s ease-in-out var(--announce); }
@keyframes coachpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(232, 195, 74, .0), 0 0 0 3px rgba(232, 195, 74, .9); } 50% { box-shadow: 0 0 0 10px rgba(232, 195, 74, .0), 0 0 0 3px rgba(232, 195, 74, .9); } }

@media (prefers-reduced-motion: reduce) {
    .coach-hand, .coach-target, .verb.primary { animation: none; }
}

/* ---- hotspots in the picture ---- */

.hotlayer .hit { fill: transparent; pointer-events: none; }
.hotlayer.live .hit { pointer-events: all; cursor: pointer; }
/* A soft lift on hover, not a dashed box: the thing under the pointer glows a little
   at its edges, the way a lit object reads in a painting rather than in a form. */
.hotlayer.live .hot:hover .hit { fill: rgba(255, 250, 235, .07); stroke: rgba(255, 250, 235, .22); stroke-width: 7; stroke-linejoin: round; filter: none; transition: fill .16s ease, stroke .16s ease; }
@media (hover: none) { .hotlayer.live .hot:hover .hit { fill: transparent; stroke: none; } }
.hotring { fill: none; stroke: #f6e7a1; stroke-width: 3; opacity: .9; transform-box: fill-box; transform-origin: center; animation: hotring 2.2s ease-out var(--announce); pointer-events: none; }
.hotring.second { animation-delay: 1.1s; }
.hotglow { fill: #fff2c2; opacity: .16; pointer-events: none; animation: hotglow 2.2s ease-in-out var(--announce) alternate; transform-box: fill-box; transform-origin: center; }
@keyframes hotglow { from { opacity: .1; transform: scale(.92); } to { opacity: .22; transform: scale(1.06); } }
.hotspark { fill: #fff6cf; opacity: 0; pointer-events: none; animation: hotspark 2.1s ease-in-out var(--announce); transform-box: fill-box; transform-origin: center; }
@keyframes hotspark { 0%, 55%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); } 70% { opacity: 1; transform: scale(1) rotate(30deg); } 85% { opacity: .6; transform: scale(.7) rotate(60deg); } }
.hotlayer:not(.live) .hotglow, .hotlayer:not(.live) .hotspark { display: none; }
@media (prefers-reduced-motion: reduce) { .hotglow, .hotspark { animation: none; } .hotspark { opacity: .7; } }
/*  ---- the interface announces, and then settles (LC-076) ---------------------------
    A tester on a desktop: "it's very clunky, it feels like a web app you threw together."
    Part of that is this. Twelve controls were animated `infinite`: the Go button on the
    errand, the big verb, the dock buttons, the edge chips, every hotspot's ring, glow,
    spark, label and hand. Nothing on screen ever stopped moving.

    Three things go wrong when everything pulses forever. The eye habituates in about two
    seconds, so the movement stops meaning "look here" and becomes wallpaper. Nothing can
    be emphasised, because everything already is. And a target that is still scaling when
    your hand arrives is a target you have to chase — the automation could not land a click
    on the Go button at all: it waited thirty seconds for the element to hold still, and
    gave up.

    So: the world moves and the interface announces. Bees, gulls, petals, weather, people
    walking — those stay infinite, because that is the place being alive. A control gets
    --announce repeats and then holds a clear resting state.

    The mechanism is the useful part. None of these use animation-fill-mode, so when the
    count runs out each element reverts to its own style — and each one's own style is
    already the resting state we want: .hotring is a steady ring at opacity .9, .hotglow
    sits at .16, the buttons sit unscaled. Announcing and settling is one word changed per
    rule, and a control that becomes relevant again gets its announcement again, because
    the class or the element is new.

    ?restless=1 puts the old behaviour back, for the comparison that settles it.         */
:root { --announce: 3; }
main.restless { --announce: infinite; }

@keyframes hotring { 0% { transform: scale(.55); opacity: .95; } 100% { transform: scale(1.25); opacity: 0; } }
.hotlabel { pointer-events: none; animation: hotlabelbob 2.2s ease-in-out var(--announce); }
.hotlabel rect { fill: #33283c; opacity: .92; }
.hotlabel .hotlabel-tip { fill: #33283c; opacity: .92; }
.hotlabel text { fill: #fffdf8; font-family: var(--font-ui); font-size: 15px; font-weight: 800; letter-spacing: .01em; }
@keyframes hotlabelbob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.hotlayer:not(.live) .hotring, .hotlayer:not(.live) .hotlabel { display: none; }

@media (prefers-reduced-motion: reduce) { .hotring, .hotlabel { animation: none; } }

/* the toasts sit above the bar now */
/* Toasts sit under the strip, top-left, above everything: a sheet at the bottom of a
   phone is exactly where they used to land. Under the coach's line while it is talking. */
.toasts { top: calc(var(--hud-h) + 10px); bottom: auto; left: 12px; right: auto; z-index: 48; max-width: min(360px, calc(100% - 24px)); }
.screenmode .toasts { top: calc(var(--hud-h) + 10px); bottom: auto; }
main.coaching .toasts { top: calc(var(--hud-h) + 74px); }
/* round 72 (round 71's 8): on a laptop, while the day plays, a toast lay over the clock and its day strip — it goes under them */
main.screenmode.ph-trading .toasts { top: calc(var(--hud-h) + 70px); }

/* the journal's blocks, stacked */
.journal > section, .journal > .contract-block { margin-top: var(--s-4); }
.journal > :first-child { margin-top: 0; }

/* ================================================== clunk, removed (LC-043) === */

/* A tap is felt before the app answers it. The browser does these itself, in the
   same frame, whatever the app is busy with. */
.slot:active, .shedtile:active:not(:disabled), .crewchip:active, .placebtn:active:not(:disabled),
.ware .pricetag:active:not(:disabled), .buychip:active:not(:disabled), .sheet-close:active,
.preset:active, .craftcard button:active:not(:disabled), .edgehint:active {
    transform: scale(.96) !important;
    transition: transform .05s linear !important;
}
.hotlayer.live .hot:active .hit { fill: rgba(255, 255, 255, .2); }

/* ---- the sheet beside the world, not over it (wide screens) ---- */
/*
   On a desktop the sheet used to sit in the middle of the picture, over the very thing
   you had tapped. It docks to the right now, the world stays in view, and the things
   you put on the stand appear on the stand as you tap them. Pages you read — the day
   card, the report, the fair, the journal — still take the middle.
*/
@media (min-width: 1000px) {
    .sheet:not(.wide) {
        left: auto;
        right: 12px;
        top: calc(var(--hud-h) + 8px);
        bottom: calc(var(--playbar-h) + 4px);
        width: 470px;
        max-height: none;
        transform: none;
        animation: sheetside .3s var(--ease-pop) both;
    }
    @keyframes sheetside { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
    .sheet:not(.wide) .wares { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sheet:not(.wide) .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sheet:not(.wide) .craftcards { grid-template-columns: 1fr; }
    /* the coach's line and the toasts keep clear of the panel */
    main.sheet-open .coach { left: calc((100% - 470px) / 2); }
    main.sheet-open .toasts { max-width: min(360px, calc(100% - 520px)); }
}

/* ---- on a phone the picture lifts so the stand stays above the sheet ---- */
@media (max-width: 640px) {
    main.sheet-open .lens { --sheet-lift: -13vh; }
}

/* ---- price presets ---- */
.presets { display: inline-flex; gap: 4px; }
.preset {
    display: inline-flex; flex-direction: column; align-items: center; gap: 0;
    min-width: 58px; min-height: 40px;
    padding: 3px 10px;
    border-radius: var(--r-md);
    border: 1px solid var(--line);
    background: var(--paper-sunk);
    color: var(--ink);
    font: inherit; font-size: var(--fs-xs); font-weight: 800; line-height: 1.1;
    cursor: pointer;
}
.preset small { font-size: .62rem; font-weight: 700; color: var(--ink-quiet); }
.preset.on { background: linear-gradient(180deg, var(--lav-400), var(--lav-600)); color: var(--ink-invert); border-color: var(--lav-600); }
.preset.on small { color: rgba(255, 255, 255, .85); }
.preset:hover:not(.on) { background: var(--lav-100); }

/* ---- the restock verb and the speed toggle ---- */
.verb.second.restock { flex-direction: column; gap: 0; padding: 4px 14px; }
.verb.second.restock small { font-size: var(--fs-xs); font-weight: 700; color: var(--ink-quiet); }
.verb.second.restock.calling { animation: verbbreathe 2.6s ease-in-out var(--announce); border-color: var(--lav-300); }
.verb.second.restock:disabled { opacity: .55; cursor: not-allowed; }
.verb.second.speed { min-width: 48px; font-family: var(--font-display); font-size: 1rem; font-weight: 700; }
.verb.second.speed.on { background: linear-gradient(180deg, var(--lav-400), var(--lav-600)); color: var(--ink-invert); border-color: var(--lav-600); }

/* ---- night ---- */
.night {
    position: absolute;
    inset: 0;
    z-index: 70;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: radial-gradient(120% 80% at 50% 60%, #1c1430 0%, #0d0a14 100%);
    color: #fffdf8;
    overflow: hidden;
    animation: nightin .6s ease-out both, nightsky 2.5s linear both, nightout .7s ease-in 1.9s both;
    pointer-events: none;
}
.night-sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.night-day, .night-sub { position: relative; }
.ns-stars circle { animation: nsstar 2.4s steps(5) infinite; }
@keyframes nsstar { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.ns-moon { animation: nsmoon 2.5s ease-in-out both; }
@keyframes nsmoon { from { transform: translate(300px, 260px); } 50% { transform: translate(500px, 110px); } to { transform: translate(720px, 200px); } }
@keyframes nightsky {
    0%, 55% { background: radial-gradient(120% 80% at 50% 60%, #1c1430 0%, #0d0a14 100%); }
    100%    { background: linear-gradient(180deg, #33437a 0%, #8f6a92 45%, #e8a17a 100%); }
}
.night-day { font-family: var(--font-display); font-variation-settings: var(--wonk); font-size: 2.6rem; font-weight: 700; letter-spacing: -.01em; animation: nightdayin .7s var(--ease-pop) .15s both; }
.night-sub { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-md); font-weight: 700; color: #cbbcef; animation: nightdayin .7s var(--ease-pop) .3s both; }
@keyframes nightin { from { opacity: 0; } to { opacity: 1; } }
@keyframes nightout { from { opacity: 1; } to { opacity: 0; } }
@keyframes nightdayin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .night { animation: none; } .night-day, .night-sub, .ns-stars circle, .ns-moon { animation: none; } .ns-moon { transform: translate(500px, 110px); } }

.verb.primary.busy:disabled { background: linear-gradient(180deg, var(--lav-500), var(--lav-700)); color: var(--ink-invert); opacity: .9; }
.verb.primary.busy:disabled b, .verb.primary.busy:disabled small { color: var(--ink-invert); }

/* ---- the bar on a phone, with a second verb in it (LC-043) ---- */
@media (max-width: 640px) {
    .playbar { gap: 6px; padding: 0 10px 8px; padding-bottom: max(8px, env(safe-area-inset-bottom, 0px)); }
    .pb-tools { gap: 6px; }
    .pb-btn { width: 46px; height: 46px; border-radius: 14px; font-size: .52rem; gap: 1px; }
    .pb-btn .pb-ico svg { width: 19px; height: 19px; }
    .pb-verb { flex: 1; min-width: 0; gap: 6px; justify-content: flex-end; }
    .verb.primary { flex: 1; min-width: 0; padding: 6px 10px; min-height: 50px; }
    .verb.primary b { font-size: var(--fs-md); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
    .verb.primary small { font-size: .6rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
    .pb-verb:has(.second) .verb.primary b { font-size: var(--fs-sm); }
    .pb-verb:has(.second) .verb.primary small { display: none; }
    .verb.second { padding: 4px 9px; min-height: 44px; font-size: .72rem; }
    .verb.second.restock small { font-size: .6rem; }
    .verb.second.shut small { display: none; }   /* "Keep it shut" alone: with its line the primary read "Open the…" (LC-068) */
    .verb.second.speed { min-width: 42px; font-size: .9rem; }
    .toasts { left: 10px; right: 10px; max-width: none; }
    main.coaching .toasts { top: calc(var(--hud-h) + 112px); }
    /* On a phone the top of the screen is spoken for — the pin, Nell, the coach, a
       sheet's title — and a toast there covered whichever of them mattered (LC-050).
       Toasts live above the bar instead, compact, the way a phone shows a message. */
    main.screenmode .toasts, main.screenmode.coaching .toasts, main.screenmode.sheet-open .toasts { top: auto; bottom: calc(var(--playbar-h, 76px) + 10px); }
    main.screenmode .toast { padding: 7px 12px; font-size: var(--fs-sm); }
    /* the trading feed sits there too; while the day plays, toasts go under the clock */
    main.screenmode.ph-trading .toasts { top: calc(var(--hud-h) + 86px); bottom: auto; }   /* (round 72: +86, it touched the tally's foot upright) */
    /* an input under 16px makes an iPhone zoom the whole page when it is tapped */
    input, select { font-size: 16px; }
    /* Nell's one thing wraps rather than trails off */
    .errand-pin .ep-text b { white-space: normal; line-height: 1.15; }
}

/* ---- the yard, drawn (LC-043) ---- */
.yardrow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s-4); }
.yardthing {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    width: 104px; padding: 6px 6px 8px;
    border-radius: var(--r-md);
    background: linear-gradient(180deg, var(--lav-50), var(--card) 60%);
    border: 1px solid var(--line);
    box-shadow: var(--sh-1);
    font-size: var(--fs-xs); font-weight: 800; color: var(--ink); text-align: center;
}
.yardthing .ware-art { width: 84px; }
.yardthing.empty { width: auto; flex-direction: row; gap: 8px; padding: 10px 14px; border-style: dashed; background: var(--paper-sunk); color: var(--ink-quiet); font: inherit; font-size: var(--fs-sm); font-weight: 800; cursor: pointer; }
.yt-plus { width: 28px; height: 28px; border-radius: 50%; border: 2px dashed var(--line-firm); display: grid; place-items: center; font-size: 1.1rem; }
/* one heading per sheet: the block's own repeats the title */
.sheet-bench .craft-block > h4:first-child { display: none; }

.edgehint.quiet { background: rgba(51, 40, 60, .78); animation: none; }
.edgehint.quiet .eh-chev { color: #cbbcef; }
.edgehint.find .eh-chev, .edgehint.find .eh-lbl { color: #f6e7a1; }

/* ?perf=1: the numbers under "clunky", in the corner, on the tester's own device */
.perfchip {
    position: fixed;
    left: 50%;
    bottom: 4px;
    transform: translateX(-50%);
    z-index: 9999;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(20, 12, 28, .78);
    color: #cbbcef;
    font: 700 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
    pointer-events: none;
    white-space: nowrap;
    text-align: center;
}
.perfchip b { color: #fffdf8; }
/* round 84: on a phone the chip stands in the middle of the screen: Safari's own bar lies over the foot of the page
   on some iPhones, and a readout that can't be seen can't be sent. Its lines may wrap there. */
@media (pointer: coarse) { .perfchip { bottom: auto; top: 46%; max-width: calc(100vw - 16px); white-space: normal; border-radius: 12px; line-height: 1.45; } }
.perfchip.bad { background: rgba(120, 40, 30, .85); }

/* ---- working a bed by hand (LC-044) -------------------------------------------
   The strips are the finger's target and nothing else: transparent, drawn last, and
   the only thing in the picture that takes a touch while a bed is being worked. A row
   is two drawings, before and after, and the class decides which one is visible. */
.handwork { pointer-events: none; }
.handwork .hw-strip { fill: rgba(255, 255, 255, 0); stroke: rgba(255, 253, 248, .5); stroke-width: 1.2; stroke-dasharray: 3 7; pointer-events: all; cursor: crosshair; touch-action: none; transition: fill .18s ease; }
.handwork .hw-strip:hover { fill: rgba(255, 255, 255, .08); }
.handwork .hw-strip.done { stroke: none; fill: rgba(255, 255, 255, 0); }
.scene.hand { position: absolute; inset: 0; background: none; box-shadow: none; pointer-events: none; }
.scene.hand > svg.lyr .hw-strip { pointer-events: all; }
.scene .row.done, .hw-after:not(.done) { display: none; }
.hw-after.done { animation: hwcut .28s ease-out both; }
@keyframes hwcut { from { opacity: .3; } to { opacity: 1; } }
.hw-petal { pointer-events: none; }
.hw-basket .hw-load { display: none; }
.hw-basket[data-fill="1"] .l1, .hw-basket[data-fill="2"] .l1, .hw-basket[data-fill="2"] .l2,
.hw-basket[data-fill="3"] .l1, .hw-basket[data-fill="3"] .l2, .hw-basket[data-fill="3"] .l3 { display: block; }
.hw-basket[data-fill="3"] { animation: hwfull .5s var(--ease-pop) both; transform-box: fill-box; transform-origin: center bottom; }
@keyframes hwfull { 0% { scale: 1; } 40% { scale: 1.12; } 100% { scale: 1; } }

/* the bar that appears above the play bar while a bed is being worked */
.handbar {
    position: absolute;
    left: 50%; top: calc(var(--hud-h) + 12px);
    z-index: 44;
    transform: translateX(-50%);
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;
    max-width: min(560px, calc(100% - 24px));
    padding: 10px 14px 10px 10px;
    border-radius: var(--r-lg);
    background: #33283c; color: #fffdf8;
    box-shadow: 0 12px 34px -10px rgba(20, 12, 28, .7);
    animation: coachin .45s var(--ease-pop) both;
}
/* Kept looping on purpose (LC-076): this hand is not decoration, it is the gesture
   being demonstrated, and a demonstration that plays once is a demonstration you missed. */
.handbar .hb-hand { display: inline-flex; width: 40px; height: 48px; animation: hbswipe 1.6s ease-in-out infinite; }
.handbar.started .hb-hand { animation: none; opacity: .55; }
@keyframes hbswipe { 0%, 100% { transform: translateX(-8px) rotate(-8deg); } 50% { transform: translateX(8px) rotate(6deg); } }
.handbar .hb-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.handbar .hb-text b { font-size: var(--fs-lg); font-variant-numeric: tabular-nums; }
.handbar .hb-text span { font-size: var(--fs-sm); font-weight: 700; opacity: .9; }
.handbar .hb-actions { display: flex; gap: 6px; }
.handbar .hb-actions .ghost.tiny { color: #fffdf8; border-color: rgba(255, 253, 248, .35); background: rgba(255, 253, 248, .08); }
.handbar .hb-actions .ghost.tiny:hover { background: rgba(255, 253, 248, .16); }
.handbar .hb-chips { display: flex; gap: 6px; flex-wrap: wrap; width: 100%; justify-content: center; }
.handbar .hb-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1.5px solid rgba(255, 253, 248, .3); background: rgba(255, 253, 248, .06); color: #fffdf8; font-size: var(--fs-sm); font-weight: 700; }
.handbar .hb-chip i { width: 12px; height: 12px; border-radius: 50%; background: var(--bloom, #8a6fc8); box-shadow: 0 0 0 2px rgba(255, 253, 248, .25); }
.handbar .hb-chip.on { background: #fffdf8; color: #33283c; border-color: #fffdf8; }
/* On a phone the bed fills the screen, so the bar goes up under the clock, in one
   row, and the edge chevrons step aside: the picture is the whole game for a moment. */
@media (max-width: 640px), (max-height: 520px) {
    .handbar { top: calc(var(--hud-h) + 10px); gap: 6px 10px; padding: 8px 12px; width: calc(100% - 16px); max-width: 420px; }
    .handbar .hb-hand { width: 26px; height: 32px; flex: none; }
    .handbar .hb-hand svg { width: 26px; height: 32px; }
    .handbar .hb-text { flex: 1 1 120px; }
    .handbar .hb-text b { font-size: var(--fs-md); white-space: nowrap; }
    .handbar .hb-text span { font-size: var(--fs-xs); line-height: 1.2; }
    .handbar .hb-actions { width: 100%; justify-content: center; gap: 8px; }
    .handbar .hb-actions .ghost.tiny { padding: 4px 10px; font-size: var(--fs-xs); white-space: nowrap; }
}
/* LC-097: on a sideways phone the bed fills the screen in 3D, and the bar sat over its far
   end. It goes to the corner under the money, in one row: the count, the words, Walk away. */
@media (max-height: 520px) and (min-aspect-ratio: 1/1) {
    .handbar { left: 10px; transform: none; top: calc(var(--hud-h) + 6px); width: auto; max-width: min(44%, 360px);
        flex-wrap: nowrap; gap: 8px; padding: 6px 10px 6px 8px; animation: none; }
    .handbar .hb-hand { width: 22px; height: 28px; }
    .handbar .hb-hand svg { width: 22px; height: 28px; }
    .handbar .hb-text { flex: 1 1 auto; }
    .handbar .hb-actions { width: auto; }
}
main.handing .edgehints { display: none; }
main.handing .hotlayer .hotring, main.handing .hotlayer .hotlabel { display: none; }
@media (prefers-reduced-motion: reduce) { .handbar .hb-hand, .hw-basket[data-fill="3"], .hw-row.done .hw-after { animation: none; } }

/* (LC-100: the yard's answers — hearts, a flutter, a hop, ears up, a burst of bees — are the
   3D barnyard's now, in world/world.js) */

/* (LC-098: the workshop's answers — the still's puffs, the racks' sway, the bench's pop —
   are the 3D barn's now, in world/world.js) */

/* ---- a neighbour's card (LC-044; their wave is the 3D coast's since LC-101) ---------- */
.nb-card { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.nb-face { flex: none; width: 88px; height: 88px; border-radius: 50%; overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 3px rgba(122, 96, 170, .18); }
.nb-face svg { width: 100%; height: 100%; }
.nb-words { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.nb-words b { font-size: var(--fs-lg); }
.nb-say { margin: 0; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--card); color: var(--ink); font-size: var(--fs-md); line-height: 1.35; box-shadow: 0 2px 0 rgba(51, 40, 60, .08); }

/* ---- the stand's own life (LC-044) -------------------------------------------- */
.shopcat { pointer-events: all; cursor: pointer; }
.shopcat .cateyes { display: none; }
.shopcat.awake .cateyes { display: block; }
.shopcat.awake .catblink { display: none; }
.shopcat.awake .catbreath { animation: catstretch 1.4s ease-in-out both; transform-box: fill-box; transform-origin: 20% 100%; }
@keyframes catstretch { 0% { transform: scale(1, 1); } 30% { transform: scale(1.16, .9); } 55% { transform: scale(1.06, 1.04); } 100% { transform: scale(1, 1); } }
.shopcat.awake .cattail { animation: tailup 1.4s ease-in-out both; transform-box: fill-box; transform-origin: 100% 100%; }
@keyframes tailup { 0%, 100% { transform: rotate(0deg); } 30%, 60% { transform: rotate(-38deg); } }
.shopcat .catheart { animation: catheart 1.5s ease-out both; }
@keyframes catheart { 0% { opacity: 0; translate: 0 6px; } 25% { opacity: 1; translate: 0 0; } 100% { opacity: 0; translate: 0 -16px; } }
.scene.life .folk .tappable { pointer-events: all; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .shopcat.awake .catbreath, .shopcat.awake .cattail, .shopcat .catheart { animation: none; } .shopcat .catheart { opacity: 1; } }

/* the map button wears a dot when somewhere else has work waiting (LC-044) */
.pb-btn.mapbtn { position: relative; }
.pb-btn.mapbtn.calling::after { content: ""; position: absolute; top: 5px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: #f0c24a; box-shadow: 0 0 0 2px var(--card); animation: mapdot 2.2s ease-in-out var(--announce); }
@keyframes mapdot { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
@media (prefers-reduced-motion: reduce) { .pb-btn.mapbtn.calling::after { animation: none; } }
/* and the Shop button, when Nell's thing is in it (LC-046) */
.pb-btn.shopbtn { position: relative; }
.pb-btn.shopbtn.calling::after, .pb-btn.bookbtn.calling::after { content: ""; position: absolute; top: 5px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: #f0c24a; box-shadow: 0 0 0 2px var(--card); animation: mapdot 2.2s ease-in-out var(--announce); }
.pb-btn.shopbtn.calling, .pb-btn.bookbtn.calling { animation: coachpulse 1.4s ease-in-out var(--announce); }   /* the Journal rings for the co-op's board (LC-059) */
@media (prefers-reduced-motion: reduce) { .pb-btn.shopbtn.calling::after, .pb-btn.shopbtn.calling, .pb-btn.bookbtn.calling::after, .pb-btn.bookbtn.calling { animation: none; } }
.coach-line .coach-who { color: #f0c24a; margin-right: .45em; font-weight: 800; letter-spacing: .01em; }
.coach-line .coach-who::after { content: "·"; margin-left: .45em; color: rgba(255, 253, 248, .5); font-weight: 400; }


/* ---- paint (LC-045) ------------------------------------------------------------
   A film grain over the whole world, blended, at a strength you feel rather than see:
   flat vector colour reads as a diagram; the same colour under a little tooth reads as
   paint. One small tile, repeated, on a layer of its own — the compositor draws it. */
:root { --grain: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAAAkFBMVEW/v7+ysrKsrKyoqKikpKShoaGfn5+dnZ2bm5uZmZmYmJiWlpaUlJSTk5OSkpKPj4+Ojo6MjIyLi4uJiYmGhoaFhYWEhISCgoKBgYF/f39+fn59fX18fHx7e3t6enp4eHh3d3d2dnZ0dHRzc3NxcXFubm5tbW1ra2toaGhlZWViYmJfX19dXV1ZWVlSUlJDQ0OJprAyAAAtiklEQVR42h2a2ZarKhRF7YsYOxoFOxRBBQz4/393OfflPGRU5RjZe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U3yIXoe5k+ql19FAqP8+9Pop9E43lqxdRqAdXW4XZTYI/KA1UdmJxlPDxGWMxFhpnc0vSryQARQ0KbreZPa4VrJ4z+i0l8GDmPHTsPuEbSFgjdflndnSevP55sM1r5eHjOAGT6bys5IJuHTL/5o5OqvAO17VQafq+BMGh2zTDPugK9neI/wouSm7fpTJ7FRY9Azoz3e/JhdfV8zYJjdnLwDRoy4BZcoJHO/Q07Fb1YjM+eb3Km9ftVK35FIxIvmkTjkuRzCKM+zyh2xbvNb1GD3npY8MgrXEf3OHc7BB0hKlgDLOaEgQZH8DwB4NDfNCnhdAAAAAElFTkSuQmCC"); }
.screenmode .world::after, .titlehero::after {
    content: "";
    position: absolute; inset: 0;
    z-index: 30;
    pointer-events: none;
    background-image: var(--grain);
    background-size: 96px 96px;
    mix-blend-mode: soft-light;
    opacity: .34;
}
.titlehero::after { z-index: 2; border-radius: inherit; }
/* a breath of warmth at the edges, over the grain */
.screenmode .world::before {
    content: "";
    position: absolute; inset: 0;
    z-index: 29;
    pointer-events: none;
    background: radial-gradient(ellipse 78% 70% at 50% 46%, rgba(0, 0, 0, 0) 60%, rgba(24, 14, 34, .22) 100%);
}


/* ---- the sky in layers (LC-045) ------------------------------------------------
   Roots the compositor moves: a transform or an opacity on the <svg> itself costs no
   paint at all. Anything inside that moves, moves in steps. */
.scene { isolation: isolate; }
.scene > svg:not(.lyr) { position: relative; z-index: 1; }
.scene > svg.lyr.under { z-index: 0; }
.scene > svg.lyr:not(.under) { z-index: 2; }        /* weather and life over an in-flow picture */
.lyr-cirrus { animation: skydrift 150s ease-in-out infinite alternate; will-change: transform; }
.lyr-clouds { animation: skydrift 80s ease-in-out infinite alternate-reverse; will-change: transform; }
@keyframes skydrift { from { transform: translateX(-1.4%); } to { transform: translateX(1.4%); } }
.lyr-rays { animation: raybreathe 9s ease-in-out infinite alternate; opacity: var(--ray-o, .1); will-change: opacity; }
@keyframes raybreathe { from { opacity: calc(var(--ray-o, .1) * .7); } to { opacity: var(--ray-o, .1); } }
.lyr-rays .rays { animation: rayturn 120s steps(60) infinite alternate; }
@keyframes rayturn { from { transform: rotate(-2.5deg); } to { transform: rotate(2.5deg); } }
.lyr-sky .stars.twA { animation: twinkleA 3.2s steps(6) infinite; }
.lyr-sky .stars.twB { animation: twinkleA 4.1s steps(7) infinite reverse; }
@keyframes twinkleA { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.lyr-sky .shooting { animation: shooting 23s linear infinite; }
.lyr-sky .shooting > g { transform: translate(-60px, 20px); }
@keyframes shooting {
    0%, 93%  { transform: translate(140px, 18px); opacity: 0; }
    93.5%    { opacity: .9; }
    97%      { transform: translate(620px, 118px); opacity: 0; }
    100%     { transform: translate(620px, 118px); opacity: 0; }
}
.lyr-flock { animation: flockcross 52s linear infinite; will-change: transform; }
@keyframes flockcross {
    0%   { transform: translateX(-16%); }
    38%  { transform: translateX(116%); }
    100% { transform: translateX(116%); }
}
.lyr-flock .bird .wA { animation: flapA .34s steps(1) infinite; }
.lyr-flock .bird .wB { animation: flapB .34s steps(1) infinite; }
@media (prefers-reduced-motion: reduce) {
    .lyr-cirrus, .lyr-clouds, .lyr-rays, .lyr-rays .rays, .lyr-sky .stars, .lyr-sky .shooting, .lyr-flock, .lyr-flock .bird .wA, .lyr-flock .bird .wB { animation: none; }
    .lyr-flock { transform: translateX(30%); }
    .lyr-sky .shooting { display: none; }
}

/* ---- what the air is doing (LC-045) --------------------------------------------
   The weather sheets are roots the compositor slides: one tile of drops, repeated,
   moved by exactly one tile per cycle so the seam is invisible. */
.lyr-rain { animation: rainsheet .62s linear infinite; will-change: transform; }
.lyr-rain.heavy { animation-duration: .42s; }
@keyframes rainsheet { from { transform: translate(.6%, -15%); } to { transform: translate(0, 0); } }
.lyr-snow { animation: snowsheet 3.6s linear infinite; will-change: transform; }
@keyframes snowsheet { from { transform: translate(-.8%, -15%); } to { transform: translate(0, 0); } }
.lyr-fog { animation: fogsheet 40s ease-in-out infinite alternate; will-change: transform; }
@keyframes fogsheet { from { transform: translateX(-3%); } to { transform: translateX(3%); } }
.lyr-life .mote { animation: moteup 9s linear infinite; }
@keyframes moteup {
    0%   { transform: translate(0, 0); opacity: 0; }
    12%  { opacity: .75; }
    50%  { transform: translate(6px, -34px); }
    88%  { opacity: .6; }
    100% { transform: translate(-4px, -70px); opacity: 0; }
}
.lyr-life .seed { animation: seedfloat 12s ease-in-out infinite; }
@keyframes seedfloat {
    0%   { transform: translate(0, 0); opacity: 0; }
    10%  { opacity: .9; }
    35%  { transform: translate(60px, -22px) rotate(20deg); }
    65%  { transform: translate(130px, 6px) rotate(-10deg); }
    90%  { opacity: .8; }
    100% { transform: translate(200px, -30px) rotate(30deg); opacity: 0; }
}
.lyr-life .bfly { animation: bflypath 16s ease-in-out infinite alternate; }
@keyframes bflypath {
    0%   { transform: translate(0, 0); }
    22%  { transform: translate(38px, -18px); }
    48%  { transform: translate(6px, -30px); }
    72%  { transform: translate(-42px, -12px); }
    100% { transform: translate(-10px, 6px); }
}
.lyr-life .abee { animation: abeepath 13s ease-in-out infinite; }
.lyr-life .abeebob { animation: beebob .34s ease-in-out infinite alternate; }
@keyframes abeepath {
    0%   { transform: translate(0, 0); }
    25%  { transform: translate(70px, -16px); }
    50%  { transform: translate(140px, 10px); }
    75%  { transform: translate(60px, 24px); }
    100% { transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .lyr-rain, .lyr-snow, .lyr-fog, .lyr-life .mote, .lyr-life .seed, .lyr-life .bfly, .lyr-life .abee, .lyr-life .abeebob { animation: none; }
    .lyr-life .mote, .lyr-life .seed { opacity: .6; }
}


/* ---- money you can see arrive (LC-045) ------------------------------------------ */
.coinfly {
    position: fixed; z-index: 60; pointer-events: none;
    width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff1b8 0%, #f0c24a 45%, #b8862e 100%);
    box-shadow: 0 0 0 1.5px rgba(184, 134, 46, .6), 0 2px 6px rgba(60, 40, 10, .35);
}
.coinfly::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 1.2px solid rgba(120, 80, 20, .35); }
.hud-cash.pop { animation: cashpop .42s var(--ease-pop); }
@keyframes cashpop { 0% { transform: scale(1); } 40% { transform: scale(1.09); box-shadow: 0 0 0 6px rgba(240, 194, 74, .35), 0 6px 18px -8px rgba(40, 24, 50, .35); } 100% { transform: scale(1); } }
.hud-cash b { font-variant-numeric: tabular-nums; }


/* ---- the title screen is the whole screen (LC-045) ------------------------------- */
.titlepage {
    position: fixed; inset: 0;
    min-height: 0; max-width: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: 1fr; grid-template-rows: 1fr;
    place-items: end center;
    overflow: hidden;
    background: #2a1f38;
}
.titlehero {
    position: absolute; inset: 0;
    aspect-ratio: auto; height: auto; max-height: none;
    border-radius: 0; box-shadow: none;
}
.titlehero .scene, .titlehero .scene > svg { border-radius: 0; }
.titlehero .scene { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; min-height: 0; }
.titleveil { background: linear-gradient(180deg, rgba(28, 18, 40, .38) 0%, rgba(28, 18, 40, 0) 34%, rgba(28, 18, 40, .06) 62%, rgba(28, 18, 40, .55) 100%); z-index: 3; }
.titletag {
    position: absolute; top: 14px; left: 14px; z-index: 4;
    background: rgba(255, 253, 248, .18); color: #fffdf8; border: 1px solid rgba(255, 253, 248, .35);
    backdrop-filter: blur(6px);
}
.titlemark { top: clamp(48px, 13vh, 150px); z-index: 4; gap: 6px; }
.titlemark .tm-name { font-size: clamp(2.6rem, 1.6rem + 4.6vw, 5rem); text-shadow: 0 3px 22px rgba(24, 14, 34, .55), 0 1px 2px rgba(24, 14, 34, .5); }
.titlemark .tm-sub { font-size: clamp(.78rem, .6rem + .6vw, 1rem); letter-spacing: .22em; }
.titlemark .tm-sprig { width: 22px; height: 36px; }
.titlepage .intro {
    position: relative; z-index: 4;
    margin: 0 0 max(18px, 4vh);
    width: min(540px, calc(100% - 28px));
    max-height: min(58vh, 520px);
    display: flex; flex-direction: column;
    background: color-mix(in srgb, var(--card) 90%, transparent);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    box-shadow: 0 24px 60px -24px rgba(20, 12, 28, .7), 0 0 0 1px rgba(255, 253, 248, .35);
    animation: introin .7s var(--ease-out) .35s both;
}
.titlepage .intro-scroll { overflow-y: auto; min-height: 0; }
.titlepage .intro h1 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); }
.titlepage .intro .lede { font-size: var(--fs-md); }
.titlepage .intro .naming { margin: var(--s-3) 0; }
.titlepage .intro-go { position: sticky; bottom: 0; padding-top: var(--s-3); }
@media (min-width: 941px) {
    /* wide screens: the card stands to one side, so the stand itself stays in view */
    .titlepage { place-items: end end; padding-right: clamp(24px, 6vw, 110px); }
}
@media (max-width: 940px) {
    .titlepage { height: auto; padding: 0; gap: 0; }
    .titlehero { height: auto; }
    .titlemark { top: clamp(36px, 9vh, 90px); }
    .titlepage .intro { max-height: 60vh; margin-bottom: max(12px, env(safe-area-inset-bottom, 0px) + 10px); }
    /* the button floated over the card's last lines — the name field under it on a Pixel (LC-067):
       it stands on a fade of the card's own colour now, so what is under it is plainly scrolled under */
    .titlepage .intro-go { margin: -18px 0 0; padding: 22px 0 0; background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--card) 96%, transparent) 46%); }
    .titlepage .intro-scroll { padding-bottom: 6px; }
}
@media (max-height: 560px) {
    .titlemark { top: 14px; }
    .titlemark .tm-name { font-size: 2rem; }
    .titlepage .intro { max-height: 74vh; }
}

/* ---- things arrive in order (LC-045) -------------------------------------------
   Cards in a sheet come up one after another, a breath apart, like a hand dealing them. */
.sheet .wares > .ware, .sheet .craftcards > .craftcard, .sheet .slots > .slot, .sheet .goods-row > * {
    animation: dealin .42s var(--ease-out) backwards;   /* backwards: lets go of the transform when done */
}
.sheet .wares > :nth-child(1), .sheet .craftcards > :nth-child(1), .sheet .slots > :nth-child(1) { animation-delay: .02s; }
.sheet .wares > :nth-child(2), .sheet .craftcards > :nth-child(2), .sheet .slots > :nth-child(2) { animation-delay: .06s; }
.sheet .wares > :nth-child(3), .sheet .craftcards > :nth-child(3), .sheet .slots > :nth-child(3) { animation-delay: .10s; }
.sheet .wares > :nth-child(4), .sheet .craftcards > :nth-child(4), .sheet .slots > :nth-child(4) { animation-delay: .14s; }
.sheet .wares > :nth-child(5), .sheet .craftcards > :nth-child(5), .sheet .slots > :nth-child(5) { animation-delay: .18s; }
.sheet .wares > :nth-child(6), .sheet .craftcards > :nth-child(6), .sheet .slots > :nth-child(6) { animation-delay: .22s; }
.sheet .wares > :nth-child(7), .sheet .craftcards > :nth-child(7) { animation-delay: .26s; }
.sheet .wares > :nth-child(8), .sheet .craftcards > :nth-child(8) { animation-delay: .30s; }
.sheet .wares > :nth-child(n+9), .sheet .craftcards > :nth-child(n+9) { animation-delay: .34s; }
@keyframes dealin { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sheet .wares > .ware, .sheet .craftcards > .craftcard, .sheet .slots > .slot, .sheet .goods-row > * { animation: none; } }

/* buttons answer the hand: a lift on hover where there is a hover, a press everywhere */
.verb, .pb-btn, .ghost, .primary, .pricetag, .crewchip, .hb-chip, .placebtn { transition: transform .16s var(--ease-out), box-shadow .16s var(--ease-out), background-color .16s ease, color .16s ease; }
@media (hover: hover) {
    .verb:not(:disabled):hover, .pb-btn:hover, .placebtn:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 8px 20px -10px rgba(40, 24, 50, .55); }
}

/* ---- Nell's errands (LC-046) ----------------------------------------------------
   The pin under the cash is the one thing to do. Her card is the coach's card with a
   face. The sheet is the list. Nothing here is a wall of text: one line each. */
.errand-pin {
    position: absolute; left: 12px; top: calc(var(--hud-h) + 6px); z-index: 26;
    display: flex; align-items: stretch; gap: 6px;
    max-width: min(420px, calc(100% - 24px));
    animation: pinin .5s var(--ease-pop) both;
}
@keyframes pinin { from { opacity: 0; transform: translateY(-8px) scale(.97); } to { opacity: 1; transform: none; } }
.errand-pin .ep-main {
    display: flex; align-items: center; gap: 10px; min-width: 0;
    padding: 6px 12px 6px 6px; border-radius: 18px;
    background: rgba(255, 253, 248, .92); color: #33283c;
    border: 1px solid rgba(255, 255, 255, .7);
    box-shadow: 0 1px 2px rgba(40, 24, 50, .12), 0 8px 22px -10px rgba(40, 24, 50, .45);
    backdrop-filter: blur(8px); text-align: left;
}
.errand-pin .ep-face { flex: none; width: 38px; height: 38px; border-radius: 50%; overflow: hidden; background: #efe9f8; box-shadow: inset 0 0 0 2px rgba(122, 96, 170, .25); }
.errand-pin .ep-face svg { width: 100%; height: 100%; display: block; }
.errand-pin .ep-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.errand-pin .ep-text small { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #7a5fa6; }
.errand-pin .ep-text small { display: flex; flex-wrap: wrap; column-gap: .3em; }   /* its parts — "· 17 days", "· 0 of 20" — wrap whole (LC-064) */
/* a part wider than the line ("· Winter Fest · today — press Go to the fair") still wraps inside itself rather than run under the $50 (LC-065) */
.errand-pin .ep-text b { font-size: var(--fs-md); white-space: normal; line-height: 1.15; }
/*  LC-076. This is the sentence that tells a new player what to do, and it was clamped to
    two lines on a laptop and display:none on a phone. What a tester actually saw on the
    first morning was "Press Go under my name, tap the purple bed, and swipe across th…" —
    the instruction, cut off mid-word, above a button that said the stand could not open.
    It is the most important line in the game on the most important screen. It shows. */
.errand-pin .ep-text em { font-style: normal; font-size: var(--fs-xs); color: #5f5469; line-height: 1.25; }
.errand-pin .ep-save { display: block; color: #7a5fa6; font-weight: 800; -webkit-line-clamp: 1; }
.errand-pin .ep-bar { display: block; height: 4px; margin-top: 4px; border-radius: 2px; background: rgba(122, 96, 170, .18); position: relative; overflow: hidden; }
.errand-pin .ep-bar::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--pct, 0%); border-radius: 2px; background: linear-gradient(90deg, #a98ad8, #7a5fa6); transition: width .6s var(--ease-out); }
.errand-pin .ep-reward { flex: none; font-weight: 800; color: #4b744c; background: #e8f0e4; border-radius: 999px; padding: 3px 9px; font-size: var(--fs-sm); }
.errand-pin .ep-go {
    flex: none; align-self: center; padding: 9px 12px; border-radius: 16px;
    background: #573a87; color: #fffdf8; font-weight: 800; font-size: var(--fs-sm); white-space: nowrap;
    box-shadow: 0 6px 16px -8px rgba(40, 24, 50, .6);
    animation: pinpulse 2.4s ease-in-out var(--announce);
}
@keyframes pinpulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@media (max-width: 640px) {
    .errand-pin { left: 8px; right: 8px; max-width: none; top: calc(var(--hud-h) + 4px); }
    .errand-pin .ep-main { flex: 1; padding: 5px 10px 5px 5px; gap: 8px; }
    .errand-pin .ep-face { width: 32px; height: 32px; }
    /* LC-076: was display:none. A phone got the errand's name and no instruction at all. */
    .errand-pin .ep-text em { display: block; font-size: var(--fs-xs); line-height: 1.2; }
    .errand-pin .ep-text em.ep-save { display: block; font-size: var(--fs-xs); }
    .errand-pin .ep-text b { font-size: var(--fs-sm); }
    .errand-pin .ep-go { padding: 8px 10px; }
    /* beside a "Go · Down the Coast" button the text had a third of the phone: four lines, the $5 on the
       countdown (LC-065). Nell's line and the errand take the width; the way there sits under them, at the right. */
    .errand-pin { flex-wrap: wrap; row-gap: 5px; }
    .errand-pin .ep-main { flex: 1 0 100%; }
    .errand-pin .ep-go { margin-left: auto; }
}
main.sheet-open .errand-pin { display: none; }        /* a sheet is the one thing on screen */
/* round 35: only the errand's card and its button take a tap — the gap round them is the world's (sideways, the hens'
   chip lay in it, and a tap there did nothing) */
.errand-pin { pointer-events: none; }
.errand-pin > * { pointer-events: auto; }

.nellcard {
    position: absolute; left: 50%; top: calc(var(--hud-h) + 14px); z-index: 46;
    transform: translateX(-50%);
    display: flex; gap: 12px; align-items: flex-start;
    width: max-content; max-width: min(520px, calc(100% - 24px));
    padding: 10px 12px 10px 10px; border-radius: var(--r-lg);
    background: #33283c; color: #fffdf8;
    box-shadow: 0 14px 40px -12px rgba(20, 12, 28, .7);
    animation: coachin .45s var(--ease-pop) both;
}
.nellcard .nc-face { flex: none; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: #4a3a5c; box-shadow: inset 0 0 0 2px rgba(255, 253, 248, .25); }
.nellcard .nc-face svg { width: 100%; height: 100%; display: block; }
.nellcard .nc-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.nellcard .nc-name { font-weight: 800; font-size: var(--fs-sm); color: #cbbcef; }
.nellcard .nc-name small { font-weight: 600; opacity: .7; margin-left: 6px; }
.nellcard p { margin: 0; font-size: var(--fs-md); font-weight: 600; line-height: 1.35; }
.nellcard .nc-ok { align-self: flex-end; padding: 6px 14px; border-radius: 999px; background: #fffdf8; color: #33283c; font-weight: 800; font-size: var(--fs-sm); }
@media (max-width: 640px) { .nellcard { top: calc(var(--hud-h) + 52px); max-width: calc(100% - 16px); padding: 8px 10px 8px 8px; } .nellcard .nc-face { width: 44px; height: 44px; } .nellcard p { font-size: var(--fs-sm); } }
main.handing .nellcard { display: none; }

.coach-line .coach-face { flex: none; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: #4a3a5c; box-shadow: inset 0 0 0 2px rgba(255, 253, 248, .25); }
.coach-line .coach-face svg { width: 100%; height: 100%; display: block; }

.hud-help { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 253, 248, .86); border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 1px 2px rgba(40, 24, 50, .12); color: #573a87; padding: 0; }
.hud-day { margin-left: 0; }
.hud-top { justify-content: flex-start; }
.hud-top .hud-day { margin-left: auto; }
.hud-top .hud-help { margin-left: 0; }

/* the errands sheet */
.errands { display: flex; flex-direction: column; gap: 12px; }
.errands h4 { margin: 6px 0 0; font-size: var(--fs-md); display: flex; align-items: baseline; gap: 8px; }
.errands h4 .quiet { font-size: var(--fs-xs); font-weight: 700; }
.er-nell { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-lg); background: var(--paper-sunk, rgba(0,0,0,.04)); }
.er-nell .er-face { flex: none; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 2px rgba(122, 96, 170, .25); }
.er-nell .er-face svg { width: 100%; height: 100%; display: block; }
.er-nell p { margin: 0; font-size: var(--fs-md); line-height: 1.35; }
.er-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.er-item { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); }
.er-item.done { opacity: .6; }
.er-item.done .er-text b { text-decoration: line-through; }
.er-item.now { border-color: var(--lav-400); box-shadow: 0 0 0 3px rgba(122, 96, 170, .12); }
.er-item.next { opacity: .75; }
.er-check { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: var(--paper-sunk, rgba(0,0,0,.05)); color: var(--ink-soft); }
.er-item.done .er-check { background: #4b744c; color: #fff; }
.er-item.now .er-check { background: var(--lav-500, #7a5fa6); color: #fff; }
.er-text { display: flex; flex-direction: column; min-width: 0; }
.er-text b { font-size: var(--fs-md); }
.er-text em { font-style: normal; font-size: var(--fs-xs); color: var(--ink-soft); }
.er-pay { font-weight: 800; color: #4b744c; font-size: var(--fs-sm); }
.er-help { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-sm); color: var(--ink-soft); }
.dc-errands { font-weight: 700; color: #4b744c; background: #e8f0e4; border-radius: 999px; padding: 4px 12px; font-size: var(--fs-sm); }

/* what you can tap, and the one thing Nell means */
.hotdot { pointer-events: none; }
.hotdot .hotdot-ring { fill: rgba(255, 253, 248, .22); stroke: rgba(255, 253, 248, .7); stroke-width: 1.2; animation: hotdot 2.6s ease-in-out var(--announce); transform-box: fill-box; transform-origin: center; }
.hotdot .hotdot-core { fill: #fffdf8; opacity: .9; }
@keyframes hotdot { 0%, 100% { transform: scale(1); opacity: .7; } 50% { transform: scale(1.35); opacity: 1; } }
.hotdot.ready .hotdot-ring { fill: rgba(240, 194, 74, .3); stroke: #f0c24a; stroke-width: 1.6; }
.hotdot.ready .hotdot-core { fill: #f6e7a1; }
.hotlayer:not(.live) .hotdot { display: none; }
main.handing .hotdot { display: none; }
.hothand { pointer-events: none; animation: hothand 1.4s ease-in-out var(--announce); }
@keyframes hothand { 0%, 100% { transform: translate(0, 0) rotate(-6deg); } 50% { transform: translate(-6px, -8px) rotate(2deg); } }

/* finds */
.scene.finds { position: absolute; inset: 0; background: none; box-shadow: none; pointer-events: none; }
.scene.finds > svg.lyr { z-index: 3; }
.find { cursor: pointer; }
.find .find-hit { fill: transparent; pointer-events: all; }
/* Kept looping on purpose (LC-076): a find is an object lying in the world, not a
   control. Its glint announces and settles; the float is the thing sitting there. */
.find .find-bob { animation: findbob 2.2s ease-in-out infinite; }
@keyframes findbob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.find .spark { fill: #fff6cf; opacity: 0; animation: hotspark 2.4s ease-in-out var(--announce); transform-box: fill-box; transform-origin: center; }
.find .find-glint { animation: findglint 2.6s ease-in-out var(--announce); transform-box: fill-box; transform-origin: center; }
@keyframes findglint { 0%, 100% { opacity: .55; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.12); } }
.find .spark.s2 { animation-delay: .8s; }
.find .spark.s3 { animation-delay: 1.6s; }
.find:hover .find-bob { animation-duration: .9s; }
@media (prefers-reduced-motion: reduce) {
    .errand-pin, .nellcard, .errand-pin .ep-go, .hotdot .hotdot-ring, .hothand, .find .find-bob, .find .spark, .find .find-glint { animation: none; }
    .find .spark { opacity: .8; }
}

/* ---- LC-052: the intro says what the game is — three beats, not a paragraph ---- */
.intro .beats { list-style: none; margin: var(--s-3) 0; padding: 0; display: grid; gap: 6px; counter-reset: beat; }
.intro .beats li {
    position: relative; padding: 7px 10px 7px 44px; font-size: var(--fs-md); line-height: 1.35;
    background: color-mix(in srgb, var(--accent, #7b5ea7) 9%, transparent); border-radius: 10px;
    counter-increment: beat;
}
.intro .beats li::before {
    content: counter(beat); position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
    width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
    background: var(--accent, #7b5ea7); color: #fff; font-weight: 800; font-size: 13px;
}
.intro .beats li b { color: var(--accent-deep); }
.errand-pin .ep-go { white-space: nowrap; }

/* ---- LC-053: what a place could have, sketched in where it would go ---- */
.sketch { pointer-events: none; }
.sketch .sk {
    fill: rgba(255, 250, 240, .05);
    stroke: #8b7a64; stroke-width: 3; stroke-dasharray: 9 7; stroke-linecap: round; stroke-linejoin: round;
}
.sketch .sk.thin { fill: none; stroke-width: 2; stroke-dasharray: 5 6; }
.sketch.can .sk { stroke: #7f6a52; }
.sketch.later { opacity: .62; }
.sketch .sk-post { stroke: #6d5238; stroke-width: 5; stroke-linecap: round; fill: none; }
.sketch .sk-tuft { stroke: #5f7a49; stroke-width: 3; fill: none; stroke-linecap: round; }
.sketch .sk-board { fill: #f2ede2; stroke: #6d5238; stroke-width: 1.6; }
.sketch .sk-name { fill: #5a4632; }
.sketch .sk-price { fill: #8a5c3c; }
.sketch.later .sk-price { fill: #8b7a64; }
.sketch.can .sk-board { fill: #f7f1e4; }
@media (prefers-color-scheme: dark) and (max-width: 0px) { .sketch .sk-board { fill: #efe7d8; } }

/* the Shop card you came for: lit, and scrolled to */
.ware.focus, .craftcard.focus { box-shadow: 0 0 0 3px var(--accent), 0 14px 34px -14px rgba(60, 30, 90, .5); animation: warefocus 1.6s ease-in-out 2; }
@keyframes warefocus { 0%, 100% { transform: none; } 30% { transform: translateY(-3px) scale(1.01); } }
@media (prefers-reduced-motion: reduce) { .ware.focus { animation: none; } }

/* ---- LC-054: the deed — what you are playing for ---- */
.hud-cash { position: relative; overflow: hidden; }
.hud-deed { position: absolute; left: 10px; right: 10px; bottom: 3px; height: 3px; border-radius: 2px; background: rgba(120, 90, 160, .18); }
.hud-deed::after { content: ""; position: absolute; inset: 0; width: var(--pct, 0%); border-radius: 2px; background: var(--accent); transition: width .6s var(--ease-out); }
.hud-deed.done::after { background: #c9a86a; width: 100%; }
.deedmeter { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 8%, transparent); margin: 8px 0 10px; }
.deedmeter.compact { margin: 6px 0 8px; padding: 8px 12px; }
.deedmeter .dm-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: var(--fs-sm); }
.deedmeter .dm-head b { letter-spacing: .04em; text-transform: uppercase; font-size: var(--fs-xs, .74rem); color: var(--accent-deep); }
.deedmeter .dm-head small { color: var(--ink-soft, #6b6478); }
.deedmeter .dm-figs { font-size: var(--fs-md); }
.deedmeter .dm-figs b { font-size: 1.15em; }
.deedmeter .dm-bar { display: block; height: 8px; border-radius: 4px; background: rgba(120, 90, 160, .16); position: relative; overflow: hidden; }
.deedmeter .dm-bar::after { content: ""; position: absolute; inset: 0; width: var(--pct, 0%); border-radius: 4px; background: linear-gradient(90deg, var(--accent), #b48ee6); transition: width .8s var(--ease-out); }
.deedmeter.done .dm-bar::after { background: linear-gradient(90deg, #c9a86a, #e6cf95); width: 100%; }
.deedmeter.done .dm-head b { color: #8a6a2c; }
.intro .deed-terms b { color: var(--accent-deep); }
.deedpage .panel.deed { text-align: left; }
.deedpage .deedtag { display: inline-block; margin-bottom: 6px; }
.deedpage .deed-nell { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0; padding: 12px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 8%, transparent); }
.deedpage .deed-nell p { margin: 0; font-size: var(--fs-md); line-height: 1.4; }
.deedpage .deed-nell .er-face { flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: #4a3a5c; }
.deedpage .deed-nell .er-face svg { width: 100%; height: 100%; display: block; }
@media (max-width: 640px) {
    /* the deed page on a phone: four figures, the line, Nell, the button — no scrolling to find "Keep going" */
    .deedpage .recap-grid > div:nth-child(3), .deedpage .recap-grid > div:nth-child(5) { display: none; }
    .deedpage .panel.recap .lede { font-size: var(--fs-md); }
    .deedpage .deed-nell p { font-size: var(--fs-sm); }
    .deedpage .panel.recap h1 { font-size: 1.5rem; }
}

/* ---- LC-055: fewer forms ---- */
.sd-row.plain .sd-pricetag { font-weight: 800; font-size: var(--fs-lg, 1.1rem); }
.sd-row.plain .sd-note { flex-basis: 100%; }

/*  LC-090. The stand is open and what you do here lands now, not tomorrow. It reads as a
    live line rather than a quiet aside, because quiet asides are what people skip.      */
.sd-live {
    margin: 2px 0 8px;
    padding: 7px 11px;
    border-radius: 10px;
    border: 1px solid var(--lav-300);
    background: color-mix(in srgb, var(--lav-100) 55%, transparent);
    color: var(--ink);
    font-weight: 700;
    line-height: 1.35;
}
.sd-live::before {
    content: "";
    display: inline-block;
    width: 7px; height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--lav-500, #7f5fbe);
    vertical-align: middle;
    animation: sdlive 2.2s ease-in-out infinite;
}
@keyframes sdlive { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .sd-live::before { animation: none; } }

.wares-fold { margin-top: 12px; }
.wares-fold > summary { cursor: pointer; font-weight: 700; color: var(--accent-deep); padding: 8px 4px; list-style: none; display: flex; gap: 8px; align-items: center; }
.wares-fold > summary::-webkit-details-marker { display: none; }
.wares-fold > summary::before { content: "›"; display: inline-block; transition: transform .2s; font-size: 1.2em; }
.wares-fold[open] > summary::before { transform: rotate(90deg); }
.wares-fold > .wares { margin-top: 6px; }

/* ---- LC-056: beta three — tell us how it went ---- */
.panel.tellus { display: grid; gap: 6px; padding: 12px 14px; }
.panel.tellus .ghost { justify-self: start; }
.survey .scale.devices { flex-wrap: wrap; }
.survey .scale.devices button { min-width: 0; padding: 8px 12px; }
.summary { display: grid; gap: 8px; margin: 12px 0 18px; }
.summary label { font-weight: 700; }
.summary textarea { width: 100%; font: inherit; font-size: 14px; line-height: 1.4; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-firm); background: var(--paper-sunk, #f4efe6); color: var(--ink); resize: vertical; }
.summary .primary { justify-self: start; }
/* a name next to a wide "short $33" tag wraps instead of being cut ("Apia…", LC-056) — between
   words: on a phone the tag drops under a long name rather than the name breaking as
   "Greenhou / se" (LC-063) */
.ware-head { flex-wrap: wrap; }
.ware-head .ware-name { overflow-wrap: normal; min-width: 8ch; }
@media (max-width: 640px) {
    .ware-head .pricetag:has(small) { flex-basis: 100%; justify-content: center; }
}

/* ---- LC-057: the van, packed by hand; the fair on the horizon ---- */
.vanload { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin: 12px 0; }
.vantile { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto auto; column-gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); }
.vantile .vt-art { grid-row: 1 / 4; width: 56px; height: 56px; display: grid; place-items: center; }
.vantile .vt-art svg, .vantile .vt-art img { width: 52px; height: 52px; }
.vantile .vt-name { font-size: var(--fs-md); line-height: 1.15; }
.vantile .vt-stock { color: var(--ink-quiet); font-size: var(--fs-xs, .74rem); }
.vantile .vt-steps { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; }
.vantile .vt-steps .step { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-firm); background: var(--paper); font: inherit; font-weight: 800; font-size: 1.1em; cursor: pointer; }
.vantile .vt-steps .step:disabled { opacity: .35; cursor: default; }
.vantile .vt-n { min-width: 2ch; text-align: center; font-size: 1.1em; }
.vantile .vt-all { border: 1px solid var(--line-firm); background: var(--paper); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: var(--fs-sm); font-weight: 700; cursor: pointer; min-height: 34px; }
.vantile .vt-all.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.vantile.favored { border-color: color-mix(in srgb, #c9a86a 70%, transparent); background: color-mix(in srgb, #c9a86a 10%, var(--card)); }
.vantile.packed { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent); }
.fest-facts .ff-wants { font-weight: 800; color: var(--accent-deep); }
.van-foot { display: grid; gap: 4px; margin-top: 6px; }
.van-restock { display: flex; align-items: baseline; gap: 8px; width: 100%; margin: 0 0 10px; padding: 10px 14px; border-radius: 12px;
    border: 1px solid #cdb9ea; background: #f3ecfb; color: #4a3271; font-weight: 800; font-size: var(--fs-sm); text-align: left; }   /* fill the shelves from the van sheet (LC-065) */
.van-restock small { font-weight: 700; color: #6d5a8a; }
.van-restock:disabled { opacity: .5; }
.van-restock.calling { border-color: #a98ad8; box-shadow: 0 0 0 3px rgba(122, 96, 170, .15); }
.dc-fair { margin: 6px 0; padding: 7px 12px; border-radius: 999px; background: color-mix(in srgb, #c9a86a 16%, transparent); font-weight: 700; font-size: var(--fs-sm); display: inline-block; }
.dc-fair.quiet { background: color-mix(in srgb, #c9a86a 8%, transparent); font-weight: 600; }
.dc-fairday { display: grid; gap: 2px; justify-items: center; margin: 4px 0 8px; padding: 8px 14px; border-radius: 12px; background: color-mix(in srgb, #c9a86a 14%, transparent); font-size: var(--fs-sm); }
.dc-fairday b { font-family: var(--font-display); font-size: var(--fs-md); }
.dc-fairday.won { background: color-mix(in srgb, #c9a86a 26%, transparent); box-shadow: inset 0 0 0 1.5px #c9a86a; }
/* fair day: the primary verb is the van (LC-057) */
.verb.primary.calling { animation: verbbreathe 2.6s ease-in-out var(--announce); box-shadow: 0 0 0 3px color-mix(in srgb, #c9a86a 55%, transparent); }
@media (prefers-reduced-motion: reduce) { .verb.primary.calling { animation: none; } }
/* ---- LC-058: the shelves stay one row on a phone ----
   Three shelves wrapped to two rows and pushed the price and the actions under the bar,
   where a finger could not reach them without knowing to scroll the sheet. One row, and
   a fourth shelf scrolls sideways like a real counter. */
@media (max-width: 640px) {
    .sheet:not(.wide) .slots { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(108px, 1fr); overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 4px; scrollbar-width: none; }
    .sheet:not(.wide) .slots::-webkit-scrollbar { display: none; }
    .sheet:not(.wide) .slots > .slot { scroll-snap-align: start; min-height: 122px; }
}

/* ---- the narrowest phones (LC-067): an iPhone SE is 320 wide, and the bar's verb read "Open…" ---- */
@media (max-width: 360px) {
    .playbar { gap: 4px; padding: 0 6px 8px; padding-bottom: max(8px, env(safe-area-inset-bottom, 0px)); }
    .pb-tools { gap: 4px; }
    .pb-btn { width: 42px; height: 42px; font-size: .5rem; }
    .verb.primary b { white-space: normal; overflow: visible; text-overflow: clip; font-size: var(--fs-sm); line-height: 1.05; }
    .verb.primary small { display: none; }
    .verb.second { padding: 4px 7px; font-size: .68rem; }
}

/* ---- a phone held sideways (LC-067) -------------------------------------------------
   340 pixels tall is no height for a stand and a sheet. The card asks for upright; it shows only
   on a touch screen that is wider than it is tall and short, and never on a laptop window. */
.turnphone { display: none; }
@media (orientation: landscape) and (max-height: 480px) and (pointer: coarse) {
    .turnphone { display: flex; position: fixed; inset: 0; z-index: 400; align-items: center; justify-content: center;
        background: rgba(51, 40, 60, .94); color: #fffdf8; padding: 16px; }
    .tp-card { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; max-width: 420px; }
    .tp-icon { color: #e8c34a; animation: tpturn 2.4s ease-in-out infinite; }
    @keyframes tpturn { 0%, 55%, 100% { transform: rotate(0); } 25%, 35% { transform: rotate(-90deg); } }
    .tp-card b { font-family: var(--font-display, inherit); font-size: 1.2rem; }
    .tp-card span { font-size: var(--fs-sm); color: #d9cfe6; }
    .tp-anyway { margin-top: 10px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 253, 248, .4);
        background: transparent; color: #fffdf8; font: inherit; font-size: var(--fs-sm); font-weight: 700; }
}

/* ---- a day the stand stayed shut (LC-068) ---- */
.daycard.shut .dc-shut { font-size: var(--fs-md); color: var(--ink); margin: 12px 0 8px; line-height: 1.45; }
.daycard.shut .dc-farm { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; font-size: var(--fs-sm); color: var(--ink-soft); }
.daycard.shut .dc-farm li::before { content: "· "; color: var(--ink-quiet); }
.daycard.shut .dc-shut-next { font-size: var(--fs-sm); color: var(--ink-soft); margin: 10px 0 0; line-height: 1.4; }
.verb.second.shut { border-style: dashed; }

/*  ---- what a thing will do on your shelf (LC-080) ---------------------------------
    The shed told you what a thing cost and nothing about what it would do, and the gap
    between the best and worst second shelf on a first day is nearly fourteen dollars. The
    chip is the same evaluation the day runs, in four words. The good news and the bad news
    do not look alike, because the whole point is to be readable at a glance.            */
.st-read, .slot-read {
    display: inline-block;
    margin-top: 4px;
    padding: .1em .55em;
    border-radius: var(--r-pill);
    font-size: var(--fs-xs);
    font-weight: 800;
    letter-spacing: .01em;
    line-height: 1.5;
    white-space: nowrap;
}
.st-read.best,    .slot-read.best    { background: #dff0d8; color: #33612f; }
.st-read.earns,   .slot-read.earns   { background: #e8f0e4; color: #4b744c; }
.st-read.thin,    .slot-read.thin    { background: #f3efe6; color: #7a6a4f; }
.st-read.costs,   .slot-read.costs   { background: #f6e2de; color: #8f4a3d; }
.st-read.nobodyasking, .slot-read.nobodyasking { background: #f2e7e7; color: #8a5a55; }

/*  LC-082: the price row's two readings — what the shelf is worth at this price, and which
    way the price wants to move. Both sit under the stepper and change as it moves. */
.sd-reads { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 2px; }
.price-hint {
    display: inline-block;
    padding: .1em .55em;
    border-radius: var(--r-pill);
    font-size: var(--fs-xs);
    font-weight: 800;
    line-height: 1.5;
    white-space: nowrap;
    background: #f4efe2;
    color: #7c6636;
}
.price-hint.toodear { background: #f6e2de; color: #8f4a3d; }

/* ---- what the neighbours want off you (LC-083) --------------------------------- */
/* One row per farm along the road. The state is in the left edge, not in a word:
   green means you can fill it now, amber means you have some, grey means it's done
   for today. That way the road reads at a glance from the overview. */
.cwants { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 16px; }
.cwants h4 { margin: 0 0 2px; font-size: var(--fs-md); }
.cwant-row { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; border-radius: var(--r-md); }
.cwant-row:focus-visible { outline: 2px solid var(--plum); outline-offset: 2px; }
.cwant {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: var(--r-md);
    background: var(--card); border: 1px solid var(--line);
    border-left: 4px solid var(--line);
}
.cwant.ready { border-left-color: var(--good); }
.cwant.short { border-left-color: var(--warn); }
.cwant.done  { opacity: .62; }
.cwant-art { flex: none; width: 46px; height: 46px; display: grid; place-items: center; }
.cwant-art svg { width: 100%; height: 100%; }
.cwant-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.cwant-body b { font-size: var(--fs-md); line-height: 1.25; }
.cwant .pricetag { flex: none; }
.cwant-row:hover .cwant.ready { border-color: var(--good); }

/* The bed's own work, straight on the sheet, for anyone who would rather tap than
   drag across the rows (LC-083). */
.pswork { width: 100%; margin: 4px 0 6px; }

@media (max-width: 420px) {
    .cwant { flex-wrap: wrap; }
    .cwant .pricetag { width: 100%; margin-top: 4px; }
}
.psbyhand { display: block; margin: 0 auto 8px; }

/* (LC-084's road between places — the painted walk — is gone: since LC-101 every trip is the
   3D camera's flight, in world/world.js) */
.cwant-warn { font-size: var(--fs-sm); color: var(--warn); }
/* The open button when it is about to buy stock on the way out: still the primary verb,
   but the amber edge says money is about to move. */
.verb.stockopen { box-shadow: inset 0 0 0 2px var(--warn); }

/* ---- the press, on the thing pressed (LC-086) ----------------------------------
   The camera no longer moves when you tap something, so the tap answers where it
   happened: the hit area flashes and a ring goes out from it. Both are on the hotspot's
   own group, which is already its own element — nothing in the picture moves. */
.hotlayer.live .hot.pressed .hit {
    fill: rgba(255, 253, 240, .26);
    stroke: rgba(255, 250, 235, .5);
    stroke-width: 7;
    stroke-linejoin: round;
    animation: hotpress .3s ease-out both;
}
@keyframes hotpress {
    0%   { fill: rgba(255, 253, 240, .34); stroke-opacity: .7; }
    100% { fill: rgba(255, 253, 240, 0);   stroke-opacity: 0; }
}
.hot.pressed .hotdot { animation: hotdotpress .3s ease-out both; transform-box: fill-box; transform-origin: center; }
@keyframes hotdotpress { 0% { transform: scale(1); } 45% { transform: scale(1.5); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
    .hotlayer.live .hot.pressed .hit, .hot.pressed .hotdot { animation: none; }
}

/* ---- the whole picture, on a window that is not the picture's shape (LC-086) ----
   Measured with tools/bots/shots.mjs at 1280x860, before this rule:

     stand     cut off at the edges: none
     fields    plot:2 [-199..90]   plot:3 [1194..1483]
     barn      the drying barn and the still, both half off the right
     barnyard  the donkey paddock, off the right
     coast     the Wends off the left, Saltmarsh off the right

   Every place but the stand was losing things you can buy or work at the edges of the
   frame. The cause is LC-042's design, which is right for a phone and wrong here: the
   scenes are drawn 1000x520, `preserveAspectRatio="slice"` covers the box, and --scene-over
   makes the box 29% wider than a 1280x860 window so the sides hang off and you drag to
   look around. Nobody drags on a desktop, so nobody ever saw those buildings.

   On a window wide enough to hold the picture, fit it across instead: the box is exactly
   as wide as the window once the resting zoom is applied, so `slice` has nothing to crop,
   and what is left above the sky is painted the sky's own colour. Below 5:4 — a phone,
   a tall narrow window — nothing changes and the drag design still applies. */
/*  One rule for every window shape (LC-087).

    LC-086 fitted the picture across on a wide window and left phones alone, which turned
    out to be hiding something much worse: at 390x844 the old overscan made the picture
    FOUR times the window's width, so the screen was flat green surround with four edge
    chevrons on it pointing at a farm you could not see.

    The picture no longer has to cover the window. ui.js decides how wide it is (see
    `over`): the whole thing when that reads, a bounded overscan when the band would
    otherwise be too shallow to be a scene, never more than 1.75 window-widths. Here it
    is simply drawn at that width, in the art's own proportion, standing on the bottom
    edge — so the ground meets the bottom of the window whatever the shape of it, and
    the room left above is sky.

    The 1/1.03 is the resting zoom: the box is that much smaller so that once the camera
    has scaled it, the rendered picture lands on the window's width exactly. */
.screenmode .world .scene > svg {
    position: absolute;
    left: calc((100% - 100% * var(--scene-over, 1) / 1.03) / 2);
    right: auto;
    top: auto;
    /*  --band-lift keeps the picture clear of the bar of controls. On a wide window the
        bar floats over a metre of foreground soil and nothing is lost, so it is zero.
        On a phone the picture is a band at the bottom and the bar sits exactly on top of
        it: tools/bots/clicks.mjs caught the Journal button taking the workbench's click
        and a verb button taking the petting corner's. Lifting the band is the fix, and
        the bot is how it stays fixed. */
    bottom: var(--band-lift, 0px);
    width: calc(100% * var(--scene-over, 1) / 1.03);
    margin-left: 0;
    height: calc(100vw * var(--scene-over, 1) / 1.03 / 1.9231);
}
@media (max-aspect-ratio: 1 / 1) {
    .screenmode .world { --band-lift: calc(var(--playbar-h, 78px) - 8px); }
}
.screenmode .world .scene,
.screenmode .world .scene > svg { border-radius: 0; }
/*  The scene boxes are full-window and paint their own pale ground, which would sit
    between the sky and the picture as a flat band. They are frames here; the sky
    belongs to the world. */
.screenmode .world .scene { background: none; box-shadow: none; }
.screenmode .world {
    background: linear-gradient(180deg,
        var(--sky-top, #46583a) 0%,
        var(--sky-top, #46583a) 45%,
        var(--sky-mid, var(--sky-top, #46583a)) 100%);
}


/* ---- quiet: the farm holds still (LC-087) --------------------------------------
   The operating system's "reduce motion" is honoured in fifty-three separate places in
   this stylesheet, and one of them had a specificity bug that let four elements keep
   swaying. Fifty-three chances to be wrong is too many for something a person turns on
   because movement makes them ill — and it is also not reachable by someone who simply
   wants the farm still on a tired laptop.

   So there is a switch in the game, and it is ONE rule, which cannot have a specificity
   bug: nothing inside the world animates. Transitions stay, so buttons, sheets and the
   camera still feel answered; it is the ambience that stops — the bees, the wind through
   the rows, the cat's tail, the ferry. Measured with tools/bots/still.mjs: 68 running
   animations to 0. */
html.quiet main.screenmode *:not([data-anim-start]),
html.quiet main.screenmode *::before,
html.quiet main.screenmode *::after,
html.quiet .topbar * { animation: none !important; }
/* (round 29: except a game's own clock — the sickle, the ring, the heat, the hunt's time — which is play, not
   ambience: with the leaf on they stood still and no game could be played. What lights on them goes calm below.) */

/* ---- somebody you just tapped (LC-089) ------------------------------------------
   The same card as Nell's, with a stripe down the edge that says how they feel about
   the place — the guest book's own four words, in a colour, so a face you know reads
   at a glance before you have read anything. */
.metcard { border-left: 5px solid var(--line); }
.metcard.cold     { border-left-color: var(--ink-quiet); }
.metcard.neutral  { border-left-color: var(--line); }
.metcard.warm     { border-left-color: var(--good); }
.metcard.devoted  { border-left-color: var(--plum, #7a60aa); }
.met-rhythm { display: block; margin-top: 2px; font-style: italic; }
.ff-weather { font-size: var(--fs-sm); }
/* round 75: the county show's entry — which of your animals goes in the ring (App.Show.cs) */
.show-entry { display: grid; gap: 6px; margin: 10px 0 4px; }
.show-entry > b { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .05em; color: var(--lav-700); }
.show-animals { display: flex; flex-wrap: wrap; gap: 8px; }
.show-animal { display: grid; gap: 1px; text-align: left; padding: 7px 12px; border-radius: 12px; border: 1.5px solid var(--lav-200); background: #fffdf8; font: inherit; color: var(--ink); min-width: 9.5em; }
.show-animal b { font-size: var(--fs-md); }
.show-animal small { font-size: var(--fs-xs); color: #6f6250; }
.show-animal .show-score { font-size: var(--fs-xs); font-weight: 800; color: #2f6a3e; }
.show-animal.on { border-color: var(--lav-500); background: var(--lav-100); box-shadow: 0 0 0 2px rgba(141, 106, 208, .25); }
.show-entry > .quiet { font-size: var(--fs-xs); }
/* round 78: the Lavender Festival's float on the parade's morning (App.Grand.cs): the farm's own goods, each on or off */
.float-pick { display: grid; gap: 6px; margin: 10px 0 4px; }
.float-pick > b { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .05em; color: var(--lav-700); }
.float-goods { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5em, 1fr)); gap: 8px; }
.float-good { position: relative; display: grid; gap: 1px; text-align: left; padding: 7px 12px; border-radius: 12px; border: 1.5px solid var(--lav-200); background: #fffdf8; font: inherit; color: var(--ink); }
.float-good b { font-size: var(--fs-sm); padding-right: 2.2em; }
.float-good small { font-size: var(--fs-xs); color: #6f6250; }
.float-good .float-pts { position: absolute; top: 6px; right: 9px; font-size: var(--fs-xs); font-weight: 800; color: #2f6a3e; }
.float-good.on { border-color: var(--lav-500); background: var(--lav-100); box-shadow: 0 0 0 2px rgba(141, 106, 208, .25); }
.float-good.full { opacity: .55; }
.float-pick .float-score { font-size: var(--fs-sm); font-weight: 800; color: #2f6a3e; }
.float-pick > .quiet { font-size: var(--fs-xs); }
.ff-weather.bad { color: var(--warn); }
.ff-weather.good { color: var(--good); }

/* ---- the 3D stand (LC-093) ------------------------------------------------------
   At the stand the world is a WebGL canvas drawn by world/world.js. It sits above the
   (now empty) camera so it gets the pointer, and below the grain and the vignette,
   which give it the same finish as every other place. The tap targets are plain
   buttons the bridge keeps over the things that can be tapped.                     */
.screenmode .world > .world3d { position: absolute; inset: 0; z-index: 1; }
.world3d-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.world3d-hots { position: absolute; inset: 0; pointer-events: none; }
.hot3d {
    position: absolute;
    pointer-events: auto;
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.hot3d:focus-visible { outline: 3px solid var(--lav-300, #bda3e6); outline-offset: 2px; }
.hot3d .hot3d-ring {
    position: absolute; left: 12%; right: 12%; bottom: 2%; height: 18%;
    border-radius: 50%;
    border: 3px solid rgba(255, 236, 170, .0);
    transition: border-color .25s ease-out;
}
.hot3d:hover .hot3d-ring { border-color: rgba(255, 236, 170, .55); }
.hot3d.calling .hot3d-ring { border-color: rgba(255, 228, 140, .95); box-shadow: 0 0 18px rgba(255, 214, 110, .7); animation: hot3dpulse 1.6s ease-in-out infinite; }
@keyframes hot3dpulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.12); opacity: .7; } }
.hot3d .hot3d-label {
    position: absolute; left: 50%; top: -14px; transform: translate(calc(-50% + var(--nudge, 0px)), calc(-100% + var(--drop, 0px)));
    padding: 5px 12px; border-radius: 999px; white-space: nowrap;
    background: rgba(36, 24, 44, .72); color: #f7efe2;
    font-weight: 800; font-size: var(--fs-sm, .82rem);
    opacity: 0; transition: opacity .2s ease-out; pointer-events: none;
}
.hot3d.calling .hot3d-label, .hot3d:hover .hot3d-label, .hot3d:focus-visible .hot3d-label { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hot3d.calling .hot3d-ring { animation: none; } }
/*  LC-094. Round 5 put the 3D canvas (z-index 1) over everything else in the world box,
    and the trading clock, the takings, the queue and the place card vanished at the stand.
    They float above it again. */
.screenmode .hud, .screenmode .placecard { z-index: 2; }

/*  Nell's pointing hand, over the thing she means (it pointed up from below in the picture). */
.hot3d .hot3d-hand {
    display: none; position: absolute; left: 50%; top: 14%;
    width: 30px; height: 42px; margin-left: -15px;
    filter: drop-shadow(0 2px 3px rgba(30, 20, 40, .35));
    transform: rotate(180deg);
    animation: hand3d 1.1s ease-in-out infinite;
    pointer-events: none;
}
.hot3d.pointed .hot3d-hand { display: block; }
@keyframes hand3d { 0%, 100% { transform: rotate(180deg) translateY(0); } 50% { transform: rotate(180deg) translateY(8px); } }

/*  A find on the ground glints in the world; its target needs no ring of its own. It sits above
    the places' own chips (LC-101: a shell on the beach lay inside High Bench's farmstead). */
.hot3d.find3d .hot3d-ring { display: none; }
.hot3d.find3d { z-index: 4; }   /* round 48: a find is over the beds' and the barn's labels (z-index 3), not under them (was 2) */

/*  LC-097. The beds at the Fields: the whole bed is the target, and its name and what it is
    waiting for sit on a chip at its near end, always — there is no hover on a phone. A bed
    Nell's errand points at (calling) gets a gold chip and her hand; one with work in it
    (ready) a green one. The cart says what it is when it is pointed at. */
.hot3d.bed3d { border-radius: 10px; }
.hot3d.bed3d .hot3d-ring { display: none; }
.hot3d.bed3d .hot3d-label {
    top: auto; bottom: 10%; transform: translate(calc(-50% + var(--nudge, 0px)), var(--drop, 0px)); opacity: 1;
    padding: 4px 10px; font-size: .72rem; max-width: min(260px, 70vw); overflow: hidden; text-overflow: ellipsis;
    background: rgba(36, 24, 44, .62);
}
.hot3d.bed3d.ready .hot3d-label { background: rgba(38, 92, 50, .86); }
.hot3d.bed3d.calling .hot3d-label { background: linear-gradient(180deg, #ffe48a, #f2bf3c); color: #3a2a06; box-shadow: 0 2px 10px rgba(120, 80, 10, .4); }
.hot3d.bed3d.pointed .hot3d-hand { top: auto; bottom: calc(10% + 30px); }
.hot3d.bed3d:hover { background: rgba(255, 246, 214, .08); }
.hot3d.cart3d .hot3d-ring { display: none; }
@media (max-width: 520px) { .hot3d.bed3d .hot3d-label { font-size: .64rem; padding: 3px 8px; bottom: 6%; } }
/*  LC-098. In the barn the racks, the bench, the still and what is chalked in carry their name
    and state on a chip at their foot, always, as the beds do: "The racks · 6 drying". */
.hot3d.barn3d { border-radius: 12px; }
.hot3d.barn3d .hot3d-ring { display: none; }
.hot3d.barn3d .hot3d-label {
    top: auto; bottom: 3%; transform: translate(calc(-50% + var(--nudge, 0px)), var(--drop, 0px)); opacity: 1;
    padding: 4px 10px; font-size: .72rem; max-width: min(260px, 70vw); overflow: hidden; text-overflow: ellipsis;
    background: rgba(36, 24, 44, .66);
}
.hot3d.barn3d.ready .hot3d-label { background: rgba(38, 92, 50, .88); }
.hot3d.barn3d.calling .hot3d-label { background: linear-gradient(180deg, #ffe48a, #f2bf3c); color: #3a2a06; box-shadow: 0 2px 10px rgba(120, 80, 10, .4); }
.hot3d.barn3d.pointed .hot3d-hand { top: auto; bottom: calc(3% + 30px); }
.hot3d.barn3d:hover { background: rgba(255, 246, 214, .08); }
@media (max-width: 520px) { .hot3d.barn3d .hot3d-label { font-size: .64rem; padding: 3px 8px; } }
/*  Round 60. What was just made at the bench, said on its card for a moment (a toast over the sheet lay on its foot). */
.craft-made {
    display: block; margin-top: 4px; font-size: .78rem; font-weight: 700; color: #2f6b3a;
    animation: craftmade 3.2s ease-out forwards;
}
@keyframes craftmade { 0% { opacity: 0; transform: translateY(4px); } 10% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .craft-made { animation: none; } }
/*  Round 59. The Tea Garden, chalked in across the lane, lies in front of the stand: its name over it sat on the stand's
    chip (a finger on it was a finger on the stand) and the cat's. It sits at the foot of its patch, on the grass. */
.hot3d[data-hot="build:building.tea_garden"] .hot3d-label { top: auto; bottom: 8%; transform: translate(calc(-50% + var(--nudge, 0px)), var(--drop, 0px)); }
/*  Round 60: and its name shows while it's there to be bought, as a barn's or a yard's does: on a phone a chalked thing's
    name showed only to a mouse, and the Tea Garden was a few white lines on the grass (R59's 5). */
.hot3d[data-hot="build:building.tea_garden"] .hot3d-label { opacity: 1; pointer-events: auto; z-index: 3; }
/*  LC-100. In the barnyard the animals and what is chalked in carry theirs over them, near the top
    of their patch: "The hens · say hello" (green until they have had it). */
.hot3d.yard3d { border-radius: 12px; }
.hot3d.yard3d .hot3d-ring { display: none; }
.hot3d.yard3d .hot3d-label {
    top: 8%; transform: translate(calc(-50% + var(--nudge, 0px)), var(--drop, 0px)); opacity: 1;
    padding: 4px 10px; font-size: .72rem; max-width: min(260px, 70vw); overflow: hidden; text-overflow: ellipsis;
    background: rgba(36, 24, 44, .66);
}
/* the pen sits between the coop and the paddock: its chip sits lower, or three side by side ran together */
.hot3d.yard3d[data-hot="pet:goats"] .hot3d-label, .hot3d.yard3d[data-hot="build:building.goat_pen"] .hot3d-label { top: 38%; }
.hot3d.yard3d.ready .hot3d-label { background: rgba(38, 92, 50, .88); }
.hot3d.yard3d.calling .hot3d-label { background: linear-gradient(180deg, #ffe48a, #f2bf3c); color: #3a2a06; box-shadow: 0 2px 10px rgba(120, 80, 10, .4); }
.hot3d.yard3d.pointed .hot3d-hand { top: calc(8% + 26px); }
@media (hover: hover) { .hot3d.yard3d:hover { background: rgba(255, 246, 214, .08); } }   /* a touch screen keeps :hover on the last thing touched */
@media (max-width: 520px) { .hot3d.yard3d .hot3d-label { font-size: .64rem; padding: 3px 8px; } }
/*  LC-101. Down the coast each farm carries the neighbour's name over the house, and under it
    what they want off you today: "The Wend Brothers / 4 × Soap wanted" (green when you could
    fill it now, or buy their cuttings). Any chip may carry such a second line. */
.hot3d .hot3d-sub { display: block; font-size: .68rem; font-weight: 700; opacity: .9; letter-spacing: .01em; }
.hot3d .hot3d-sub[hidden] { display: none; }
.hot3d.coast3d { border-radius: 14px; }
.hot3d.coast3d .hot3d-ring { display: none; }
.hot3d.coast3d .hot3d-label {
    top: 3%; transform: translate(calc(-50% + var(--nudge, 0px)), calc(0px - var(--lift, 0px))); opacity: 1;
    padding: 4px 12px 5px; border-radius: 12px; font-size: .76rem; line-height: 1.22; text-align: center;
    max-width: min(260px, 70vw); overflow: hidden; text-overflow: ellipsis;
    background: rgba(36, 24, 44, .7);
    /* round 45: a farm's label down the coast takes a tap itself (it's inside its farm's button, so the tap is the farm's):
       slid out from under Nell's errand (round 44), it stood off its farm's patch, and a finger on it found the sea */
    pointer-events: auto; z-index: 3;          /* (round 46: over the other farms' buttons too, as the map's are) */
}
.hot3d.coast3d.ready .hot3d-label { background: rgba(38, 92, 50, .9); }
.hot3d.coast3d.calling .hot3d-label { background: linear-gradient(180deg, #ffe48a, #f2bf3c); color: #3a2a06; box-shadow: 0 2px 10px rgba(120, 80, 10, .4); }
.hot3d.coast3d.pointed .hot3d-hand { top: calc(3% + 46px); }
/* a farmstead's tap area is a third of the screen: tinting it on hover read as a pane of glass */
@media (hover: hover) { .hot3d.coast3d:hover .hot3d-label { box-shadow: 0 0 0 2px rgba(255, 236, 170, .75); } }
@media (max-width: 520px) { .hot3d.coast3d .hot3d-label { font-size: .68rem; padding: 3px 10px 4px; } .hot3d.coast3d .hot3d-sub { font-size: .62rem; } }
/* round 71 (round 64's 10): on a short sideways phone (667×375) Saltmarsh's label, 224 px, didn't fit the 206 between the
   money and the day, and sat half under the money: there it takes the upright size, and fits between them (bridge.js) */
@media (max-height: 400px) { .hot3d.coast3d .hot3d-label { font-size: .68rem; padding: 3px 10px 4px; } .hot3d.coast3d .hot3d-sub { font-size: .62rem; } }
/*  LC-101. The map is the farm seen from above: a chip over each place — its name, and what is
    waiting there (gold) or "You are here" (lavender) — on a stem down to it. The chip itself is the
    button: a tap on it, or on the place, flies you there. */
.hot3d.map3d .hot3d-ring { display: none; }
.hot3d.map3d .hot3d-label {
    opacity: 1; pointer-events: auto; cursor: pointer;
    /* round 46: over every chip's button, not only its own: sideways, the stand's label stood over the Fields' button
       (on the map the Fields lie just above the stand), which came later in the page and took the tap — a finger on
       "The Stand" flew to the fields */
    z-index: 3;
    transform: translate(calc(-50% + var(--nudge, 0px)), calc(-100% - var(--lift, 0px)));
    padding: 6px 14px 7px; border-radius: 13px; text-align: center; line-height: 1.2; font-size: .86rem;
    background: rgba(36, 24, 44, .8); box-shadow: 0 3px 12px rgba(20, 12, 30, .32);
}
.hot3d.map3d .hot3d-label::after {
    content: ''; position: absolute; left: 50%; top: 100%; width: 2px; margin-left: -1px;
    height: calc(14px + var(--lift, 0px)); background: rgba(36, 24, 44, .6); pointer-events: none;
}
.hot3d.map3d.calling .hot3d-label { background: linear-gradient(180deg, #ffe48a, #f2bf3c); color: #3a2a06; }
.hot3d.map3d.calling .hot3d-label::after { background: #c9971f; }
.hot3d.map3d.here .hot3d-label { background: rgba(108, 75, 166, .94); }
.hot3d.map3d.pointed .hot3d-hand { top: auto; bottom: calc(100% + 30px + var(--lift, 0px)); }
@media (hover: hover) { .hot3d.map3d:hover .hot3d-label { box-shadow: 0 0 0 2px rgba(255, 236, 170, .85), 0 3px 12px rgba(20, 12, 30, .32); } }
@media (max-width: 520px) { .hot3d.map3d .hot3d-label { font-size: .76rem; padding: 5px 11px 6px; } .hot3d.map3d .hot3d-sub { font-size: .64rem; } }
/*  R9 #10: a touch screen has no hover, but the last thing tapped keeps it — the cart's label
    stayed lit over a bed's chip on a sideways phone. Only chips meant to stay show there. */
@media (hover: none) { .hot3d:not(.calling):not(.bed3d):not(.barn3d):not(.yard3d):not(.coast3d):not(.map3d):not(.hassub):hover .hot3d-label { opacity: 0; } }
/*  Round 16: a chip with something to say keeps saying it — the stand's "♥ Marge's wish" was there
    and invisible, because the stand's chip only lights for an errand or a mouse over it. */
.hot3d.hassub .hot3d-label { opacity: 1; }
.hot3d.hassub[data-hot="stand"] .hot3d-sub { color: #ffc9da; }
/*  Round 32: the chip today's game is played from — lit like an errand's, its line in gold. */
.hot3d.gamechip .hot3d-ring { border-color: rgba(255, 228, 140, .95); box-shadow: 0 0 18px rgba(255, 214, 110, .7); animation: hot3dpulse 1.6s ease-in-out infinite; }
.hot3d.gamechip .hot3d-sub { color: #ffe08a; }
@media (prefers-reduced-motion: reduce) { .hot3d.gamechip .hot3d-ring { animation: none; } }

/*  LC-094. The approach card as a speech bubble over the person coming up the path. */
.bubble3d {
    position: absolute; left: 0; top: 0; z-index: 3;
    max-width: min(260px, 72vw);
    display: grid; gap: 1px; justify-items: start;
    padding: 8px 12px 9px;
    border-radius: 14px;
    color: #fffdf8;
    background: rgba(24, 16, 34, .8);
    border: 1px solid rgba(255, 255, 255, .28);
    box-shadow: 0 6px 18px rgba(20, 10, 30, .28);
    pointer-events: none;
    will-change: transform;
}
.bubble3d::after {
    content: ''; position: absolute; left: var(--tail-x, 50%); bottom: -7px;
    width: 14px; height: 14px; margin-left: -7px;
    background: inherit; border-right: inherit; border-bottom: inherit;
    transform: rotate(45deg); border-bottom-right-radius: 4px;
}
.bubble3d[hidden] { display: none; }
.bubble3d.clamped::after { display: none; }
.bubble3d.ready { background: rgba(30, 88, 44, .92); border-color: rgba(190, 236, 178, .8); }
.bubble3d.alarm { background: rgba(150, 52, 24, .94); border-color: rgba(255, 198, 158, .9); }
.bubble3d .b3-eyebrow { font-size: .6rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.bubble3d .b3-name { font-size: var(--fs-sm); font-weight: 800; }
.bubble3d .b3-line { font-size: var(--fs-xs); font-weight: 600; opacity: .94; }
.bubble3d .b3-do {
    pointer-events: auto; margin-top: 5px;
    padding: 6px 12px; border-radius: 999px;
    border: 1px solid rgba(255, 226, 190, .8); background: rgba(255, 226, 190, .95);
    color: #3a1f12; font-weight: 800; font-size: var(--fs-xs); cursor: pointer;
    animation: cudo 1.6s ease-in-out infinite;
}
.bubble3d .b3-do[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .bubble3d .b3-do, .hot3d .hot3d-hand { animation: none; } }

.world3d-none { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); max-width: min(420px, 86vw);
    display: grid; gap: 6px; padding: 16px 18px; border-radius: 16px; text-align: center;
    background: rgba(36, 24, 44, .72); color: #f7efe2; font-weight: 600; }

/* ---- LC-095: the counter, served by hand ----------------------------------------------
   Everybody waiting at the counter has a round button over their head: the colour of
   what they picked up and what it costs (a tap takes the money), or a question mark for
   somebody on the fence (a tap is a word, and some say yes). The ring is their patience;
   it goes from green to rust as it runs out, and they start to fidget in the world. The
   button covers the person under it too (::after), because that is where a thumb goes. */
.guest3d {
    position: absolute; left: 0; top: 0; z-index: 4;
    width: 58px; height: 58px; padding: 0; margin: 0;
    border: 0; background: none; color: inherit;
    pointer-events: auto; cursor: pointer;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
    will-change: transform;
}
/*  Every button in the game eases its transform (the press and hover "answer"). This one is
    moved every frame by its transform, so the ease restarted every frame and never got
    anywhere: under a slow frame rate the button sat in the top-left corner, over the money,
    and a tap meant for a customer opened the Journal. It follows the person exactly. */
.guest3d, .guest3d:hover, .guest3d:active { transition: none; }
.guest3d::after { content: ''; position: absolute; left: 8px; right: 8px; top: 58px; height: var(--body, 40px); }
.guest3d .g3-ring, .guest3d .g3-face { animation: g3in .34s var(--ease-pop, cubic-bezier(.34,1.56,.64,1)) both; }
.guest3d .g3-ring { position: absolute; inset: 0; width: 58px; height: 58px; overflow: visible; rotate: -90deg; filter: drop-shadow(0 3px 6px rgba(30, 18, 40, .32)); }
.guest3d .g3-track { fill: rgba(255, 253, 248, .97); stroke: rgba(87, 58, 135, .16); stroke-width: 5; }
.guest3d .g3-left { fill: none; stroke: #4f9d5f; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 157.08; stroke-dashoffset: var(--ring, 0); transition: stroke .3s ease-out; }
.guest3d.hurry .g3-left { stroke: #d0643a; }
.guest3d .g3-face { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 3px; pointer-events: none; }
.guest3d .g3-goods { display: flex; gap: 3px; }
.guest3d .g3-goods i { display: block; width: 11px; height: 11px; border-radius: 50%; background: var(--c, #8d6ad0); box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .14); }
.guest3d .g3-price { font: 800 .86rem/1 var(--font-ui, system-ui); color: #33283c; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.guest3d.looking .g3-track { fill: rgba(246, 240, 255, .97); }
.guest3d.looking .g3-left { stroke: #9a7ed6; }
.guest3d.looking .g3-price { font: 700 1.3rem/1 var(--font-display, Georgia, serif); color: #6c4ba6; }
.guest3d:focus-visible { outline: none; }
.guest3d:focus-visible .g3-track { stroke: #573a87; }
.guest3d.hurry .g3-face { animation: g3hurry .7s ease-in-out infinite; }
.guest3d.pressed .g3-ring, .guest3d.pressed .g3-face { animation: g3out .2s ease-out forwards; }
.guest3d .g3-tip {
    display: none; position: absolute; left: 50%; top: -8px; translate: -50% -100%;
    white-space: nowrap; padding: 5px 11px; border-radius: 999px;
    background: rgba(36, 24, 44, .86); color: #fffdf8; font: 800 .76rem/1.2 var(--font-ui, system-ui);
    box-shadow: 0 4px 12px rgba(20, 10, 30, .3); pointer-events: none;
}
.guest3d.teaching .g3-tip { display: block; }
.guest3d .hot3d-hand {
    display: none; position: absolute; left: 50%; top: 52px; width: 30px; height: 42px; margin-left: -6px;
    filter: drop-shadow(0 2px 3px rgba(30, 20, 40, .35)); pointer-events: none;
    animation: g3hand 1.1s ease-in-out infinite;
}
.guest3d.teaching .hot3d-hand { display: block; }
/* round 74: the first face back — "back!" in gold after their name, while they're at the counter that day */
.guest3d.backagain .g3-who::after { content: " · " attr(data-back); color: #ffd66a; font-weight: 800; }
/* round 73 (round 72's 6: a lesson card pointed at nothing in the world): while Nell's card is about somebody at the counter,
   a gold ring breathes round their chip. On the face (not the chip, which the world moves by transform every frame) */
.guest3d.lessoned .g3-face { border-radius: 50%; animation: g3in .34s var(--ease-pop, cubic-bezier(.34,1.56,.64,1)) both, lessonGlow 1.4s ease-in-out .34s infinite; }
@keyframes lessonGlow { 0%, 100% { box-shadow: 0 0 0 3px rgba(255, 215, 106, .95), 0 0 10px 4px rgba(255, 200, 80, .45); } 50% { box-shadow: 0 0 0 5px rgba(255, 215, 106, .75), 0 0 18px 8px rgba(255, 200, 80, .3); } }
@media (prefers-reduced-motion: reduce) { .guest3d.lessoned .g3-face { animation: none; box-shadow: 0 0 0 4px rgba(255, 215, 106, .95); } }
@keyframes g3in { from { scale: .3; opacity: 0; } to { scale: 1; opacity: 1; } }
@keyframes g3out { from { scale: 1; opacity: 1; } to { scale: 1.25; opacity: 0; } }
@keyframes g3hurry { 0%, 100% { rotate: 0deg; } 25% { rotate: -7deg; } 75% { rotate: 7deg; } }
@keyframes g3hand { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* the coins from the counter to the till, and the till's little jump when they land */
.coin3d {
    position: fixed; left: 0; top: 0; z-index: 62; pointer-events: none;
    width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff1b8 0%, #f0c24a 45%, #b8862e 100%);
    box-shadow: 0 0 0 1.5px rgba(184, 134, 46, .6), 0 2px 6px rgba(60, 40, 10, .35);
}
.coin3d::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 1.2px solid rgba(120, 80, 20, .35); }
.hud-cash.bump { animation: cashpop .42s var(--ease-pop, cubic-bezier(.34,1.56,.64,1)); }
.hud-cash.bump b { animation: cashflash .9s var(--ease-out, ease-out); }

/* what just happened, said once over the person's head */
.float3d {
    position: fixed; z-index: 61; pointer-events: none; white-space: nowrap;
    translate: -50% -50%;
    font: 800 .9rem/1 var(--font-ui, system-ui); color: #fffdf8;
    text-shadow: 0 1px 2px rgba(30, 16, 40, .7), 0 2px 10px rgba(30, 16, 40, .45);
    animation: float3d 1.55s var(--ease-out, ease-out) forwards;
}
.float3d.paid, .float3d.won { font: 800 1.35rem/1 var(--font-display, Georgia, serif); color: #ffe7a0; }
.float3d.left { color: #ffd0bd; }
@keyframes float3d { 0% { opacity: 0; transform: translateY(8px) scale(.8); } 14% { opacity: 1; transform: translateY(-4px) scale(1.06); } 100% { opacity: 0; transform: translateY(-58px) scale(1); } }

/* sales in a row, beside the clock */
.hud .hud-streak {
    display: inline-block; vertical-align: middle; margin-left: 10px;
    padding: 4px 10px; border-radius: 999px;
    font: 800 .74rem/1.2 var(--font-ui, system-ui); letter-spacing: .01em; text-shadow: none;
    color: #3a2a06; background: linear-gradient(180deg, #ffe48a, #f2bf3c);
    box-shadow: 0 2px 8px rgba(120, 80, 10, .35);
    animation: streakpop .42s var(--ease-pop, cubic-bezier(.34,1.56,.64,1)) both;
}
@keyframes streakpop { 0% { scale: .5; opacity: 0; } 60% { scale: 1.15; opacity: 1; } 100% { scale: 1; } }

@media (prefers-reduced-motion: reduce) {
    .guest3d .g3-ring, .guest3d .g3-face, .guest3d.hurry .g3-face, .guest3d .hot3d-hand, .hud .hud-streak { animation: none; }
    .float3d { animation-duration: .01s; animation-delay: 1.2s; }
}
html.quiet .guest3d.hurry .g3-face { animation: none; }

/* ---- LC-096: the counter, round 8 ------------------------------------------------------
   Somebody who came for a thing that has run out stands there with a rust "!" — a tap
   sends the farmer for a crate — and, while it is fetched, with "…" and a sand-coloured
   ring that is the trip (nothing to tap). A named townsperson wears their name under
   the button, and a heart when what they hold is the thing they love. */
.guest3d.wanting .g3-track { fill: rgba(255, 244, 236, .98); }
.guest3d.wanting .g3-left { stroke: #c8643a; }
.guest3d.wanting .g3-price { font: 900 1.3rem/1 var(--font-display, Georgia, serif); color: #b0502a; }
.guest3d.fetching { pointer-events: none; }
.guest3d.fetching .g3-track { fill: rgba(250, 246, 236, .92); }
.guest3d.fetching .g3-left { stroke: #b99a5e; }
.guest3d.fetching .g3-price { font: 900 1.2rem/1 var(--font-display, Georgia, serif); color: #8a7650; }
.guest3d.fetching .g3-face { animation: g3wait 1.1s ease-in-out infinite; }
@keyframes g3wait { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }
.guest3d .g3-who {
    display: none; position: absolute; left: 50%; bottom: -8px; translate: -50% 0;
    padding: 1px 7px 2px; border-radius: 999px; white-space: nowrap;
    background: #46335c; color: #fffdf8; font: 800 .62rem/1.3 var(--font-ui, system-ui); letter-spacing: .01em;
    box-shadow: 0 2px 5px rgba(20, 10, 30, .3); pointer-events: none;
}
.guest3d.named .g3-who { display: block; }
.guest3d.named .hot3d-hand { top: 64px; }                 /* Nell's hand below the name, not over it */
.guest3d .g3-heart {
    display: none; position: absolute; right: -4px; top: -4px; width: 20px; height: 20px; border-radius: 50%;
    background: #de5a7c; color: #fff; font: 900 .74rem/20px var(--font-ui, system-ui); text-align: center;
    box-shadow: 0 2px 6px rgba(120, 20, 50, .35); pointer-events: none;
    animation: g3heart 1.4s ease-in-out infinite;
}
.guest3d.fav .g3-heart { display: block; }
.guest3d.pressed .g3-who, .guest3d.pressed .g3-heart { display: none; }
@keyframes g3heart { 0%, 100% { scale: 1; } 50% { scale: 1.16; } }

/* the money, what they left on top, and what they said: one little stack over the person */
.float3d { display: grid; justify-items: center; gap: 3px; }
.float3d b { font: inherit; color: inherit; }
.float3d em, .float3d i { font-style: normal; text-shadow: none; padding: 2px 9px 3px; border-radius: 999px; white-space: nowrap; }
.float3d em { order: -1; font: 800 .78rem/1.25 var(--font-ui, system-ui); color: #fffdf8; background: rgba(87, 58, 135, .9); box-shadow: 0 2px 8px rgba(30, 16, 40, .3); }
.float3d i { font: 800 .76rem/1.25 var(--font-ui, system-ui); color: #3a2a06; background: linear-gradient(180deg, #ffe48a, #f2bf3c); box-shadow: 0 2px 6px rgba(120, 80, 10, .3); }
.float3d.said, .float3d:has(i) { animation-duration: 2.05s; }

/* the busy hour, beside the clock while the coach's people are on the road */
.hud .hud-rush {
    display: inline-block; vertical-align: middle; margin-left: 10px;
    padding: 4px 10px; border-radius: 999px;
    font: 800 .74rem/1.2 var(--font-ui, system-ui); letter-spacing: .01em; text-shadow: none;
    color: #fffdf8; background: linear-gradient(180deg, #d4754a, #a8502c);
    box-shadow: 0 2px 8px rgba(110, 40, 10, .35);
    animation: rushpulse 1s ease-in-out infinite;
}
@keyframes rushpulse { 0%, 100% { scale: 1; } 50% { scale: 1.07; } }
@media (prefers-reduced-motion: reduce) { .hud .hud-rush { animation: none; } }
/* round 65: a party's tea things short before its coach — the Tea Garden's lavender, with a cup, until it's put right */
.hud .hud-teashort {
    display: inline-block; vertical-align: middle; margin-left: 10px; padding: 4px 10px 4px 22px; border-radius: 999px;
    font: 800 .74rem/1.2 var(--font-ui, system-ui); letter-spacing: .01em; text-shadow: none; white-space: nowrap;
    color: #3a2458; background: #fbf3e6 no-repeat 7px 50% / 11px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1 3h7v3a3.5 3.5 0 0 1-7 0z' fill='%238d6ad0'/%3E%3Cpath d='M8 4h1.4a1.4 1.4 0 0 1 0 2.8H8' fill='none' stroke='%238d6ad0' stroke-width='1.2'/%3E%3C/svg%3E");
    box-shadow: 0 0 0 2px #d9573f, 0 2px 8px rgba(110, 40, 10, .3);
    animation: rushpulse 1.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .hud .hud-teashort { animation: none; } }

/* the best day so far, beside the takings — gold once it is passed */
.hud .tally .tobeat {
    align-self: center; padding: 2px 9px 3px; border-radius: 999px;
    font: 800 .72rem/1.25 var(--font-ui, system-ui); text-shadow: none; white-space: nowrap;
    color: rgba(255, 253, 248, .86); background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
}
.hud .tally .tobeat.beaten {
    color: #3a2a06; background: linear-gradient(180deg, #ffe48a, #f2bf3c); box-shadow: 0 2px 8px rgba(120, 80, 10, .35);
    animation: streakpop .5s var(--ease-pop, cubic-bezier(.34,1.56,.64,1)) both;
}

/* the busy hour (a coach at the end of the lane), or a new best day: said big, once.
   (Not class "coach": that is Nell's coach mark, which centres itself with a transform.) */
.rushbanner {
    position: absolute; left: 50%; top: calc(var(--hud-h, 64px) + 64px); z-index: 3; translate: -50% 0;
    display: grid; justify-items: center; gap: 2px; padding: 10px 22px 12px; border-radius: 18px;
    width: max-content; max-width: calc(100% - 32px); text-align: center; pointer-events: none;
    color: #fffdf8; background: rgba(150, 62, 30, .92); box-shadow: 0 10px 30px rgba(40, 14, 4, .35);
    animation: rushin 3.6s var(--ease-out, ease-out) both;
}
.rushbanner b { font: 700 1.45rem/1.1 var(--font-display, Georgia, serif); letter-spacing: -.01em; }
.rushbanner span { font: 700 .82rem/1.25 var(--font-ui, system-ui); opacity: .92; }
.rushbanner.rb-best { color: #3a2a06; background: linear-gradient(180deg, #ffe9a0, #f0bd3a); box-shadow: 0 10px 30px rgba(110, 70, 0, .35); }
/* round 63: a full Tea Garden — the Tea Garden's lavender and cream */
.rushbanner.rb-tea { color: #3a2458; background: linear-gradient(180deg, #fbf3e6, #d9c6f2); box-shadow: 0 10px 30px rgba(70, 40, 110, .35); }
/* round 66: the market bell — brass on the square's slate blue */
.rushbanner.rb-bell { color: #fff6dc; background: linear-gradient(180deg, #4d6a8c, #2f4766); box-shadow: 0 10px 30px rgba(20, 35, 60, .4), inset 0 0 0 2px rgba(240, 200, 100, .55); }
.rushbanner.rb-bell b { color: #ffd76a; }
/* round 67: the stand's open — the sign's green, a cream edge, and a little shorter than a rush's word */
.rushbanner.rb-open { color: #fff6e2; background: linear-gradient(180deg, #3a8a55, #2f6f45); box-shadow: 0 10px 30px rgba(20, 60, 35, .35), inset 0 0 0 2px rgba(242, 210, 122, .7); animation-duration: 2.6s; }
.rushbanner.rb-open b { color: #fff6e2; letter-spacing: .01em; }
/* ---- round 67: the counter at a glance (App.Tray.cs) -----------------------------------------------------------
   While no order is open, a tray at the foot holds each thing on the counter — its picture, how many are left, its
   price; low ones ringed amber, sold-out ones greyed. Only to look at: every tap goes through it to the world. Not on a
   sideways phone, where that strip is the stand's. An order's bag comes up in its place. */
.ctray {
    position: absolute; left: 50%; bottom: calc(var(--playbar-h) + 6px); z-index: 42;
    transform: translateX(-50%);
    display: grid; gap: 6px; padding: 7px 10px 9px; border-radius: 16px;
    border: 2.5px solid var(--g-ink, #2f1f45);
    background: linear-gradient(180deg, rgba(255, 249, 236, .94), rgba(246, 230, 198, .94));
    box-shadow: inset 0 0 0 2px var(--g-rim, #f0d595), 0 4px 0 rgba(47, 31, 69, .55), 0 14px 28px -14px rgba(20, 10, 30, .6);
    pointer-events: none; transition: none; animation: ctrayin .28s ease-out both;
}
/* round 76: the county show's turn in the ring, where the tray stands (App.Show.cs). The marker walks the track by a
   transform animation, started from the game's own clock (ui.js: data-anim-start), so what's seen is what's judged. */
.ringgame {
    position: absolute; left: 50%; bottom: calc(var(--playbar-h) + 6px); z-index: 43; transform: translateX(-50%);
    width: min(320px, calc(100% - 24px)); display: grid; gap: 6px; padding: 9px 12px 11px; border-radius: 16px; text-align: center;
    border: 2.5px solid var(--g-ink, #2f1f45); background: linear-gradient(180deg, rgba(240, 248, 234, .96), rgba(214, 232, 200, .96));
    box-shadow: inset 0 0 0 2px #cfe3b8, 0 4px 0 rgba(47, 31, 69, .55), 0 14px 28px -14px rgba(20, 10, 30, .6);
    transition: none; animation: ctrayin .28s ease-out both;
}
.ringgame .rg-title { font: 400 1.05rem/1.1 var(--font-game, Georgia, serif); color: #2f4a2c; }
.ringgame .rg-how { font-size: var(--fs-xs); font-weight: 700; color: #4a5a3e; }
.ringgame .rg-track { position: relative; height: 40px; width: 100%; border-radius: 999px; border: 2px solid #6d8a52; background: #f6f1e2; padding: 0; overflow: hidden; touch-action: none; transition: none; }
.ringgame .rg-gold { position: absolute; left: 43.2%; width: 13.6%; top: 0; bottom: 0; background: linear-gradient(180deg, #ffe48a, #f2bf3c); }
/* round 77: the band a tap is still "Good" in (App.Show.cs: the gold within 0.068 of the middle, good within 0.204), so the
   gold drawn is the gold judged; and the marker a layer the track's width moved by transform alone, as the other timing
   games' are. Round 76's moved a fixed 266px, right only on a panel 320px wide — the knack panel's own width won on every
   phone, and a tap on the gold's middle was judged "Good". */
.ringgame .rg-good { position: absolute; left: 29.6%; width: 40.8%; top: 0; bottom: 0; background: rgba(143, 194, 122, .38); }
.ringgame .rg-marker { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; will-change: transform;
    animation-name: ringWalk; animation-timing-function: linear; animation-iteration-count: infinite; animation-fill-mode: both; }
.ringgame .rg-marker::before { content: ""; position: absolute; left: -13px; top: 5px; width: 26px; height: 26px; border-radius: 50%; background: #5a3d86;
    box-shadow: 0 0 0 3px #fffdf8, 0 2px 6px rgba(0,0,0,.3); }
@keyframes ringWalk { 0% { transform: translateX(0%); } 50% { transform: translateX(100%); } 100% { transform: translateX(0%); } }
/* (the knack panel's rules come later and are as specific: the ring keeps its own size and stack at every shape) */
.ringgame.knack { width: min(340px, calc(100% - 24px)); display: grid; grid-template-columns: 1fr; grid-template-areas: none; gap: 6px; padding: 9px 12px 11px;
    border-radius: 16px; z-index: 43; background: linear-gradient(180deg, rgba(240, 248, 234, .96), rgba(214, 232, 200, .96));
    box-shadow: inset 0 0 0 2px #cfe3b8, 0 4px 0 rgba(47, 31, 69, .55), 0 14px 28px -14px rgba(20, 10, 30, .6); animation: ctrayin .28s ease-out both; }
/* sideways (round 76's 9: it spread to two columns, the laps far from the track): the same stack, at the bottom left, clear
   of your entry in the middle of the picture */
@media (max-height: 500px) and (orientation: landscape) {
    .ringgame.knack { left: max(12px, env(safe-area-inset-left)); transform: none; width: 330px; gap: 4px; padding: 7px 12px 9px; animation: ringinside .28s ease-out both; }
    .ringgame .rg-track { height: 36px; }
    .ringgame .rg-marker::before { top: 3px; }
}
@keyframes ringinside { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ringgame.knack { animation: none; } }
.ringgame .rg-laps { display: flex; justify-content: center; gap: 8px; }
.ringgame .rg-laps i { font-style: normal; font-size: var(--fs-xs); font-weight: 800; min-width: 3.4em; padding: 2px 6px; border-radius: 999px; background: #e8efe0; color: #6a7a5e; }
.ringgame .rg-laps i.gold { background: #ffe48a; color: #6a4806; }
.ringgame .rg-laps i.good { background: #dff0cf; color: #2f6a3e; }
.ringgame .rg-laps i.wide { background: #f3e2dc; color: #8a4a3a; }
@keyframes ctrayin { from { transform: translate(-50%, 14px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.ctray .ctr-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 0 2px; }
.ctray .ctr-top b { font: 400 .92rem/1.1 var(--font-game, Georgia, serif); letter-spacing: .02em; color: var(--g-ink-2, #3d2b58); }
.ctray .ctr-note { font: 800 .72rem/1.1 var(--font-display, Georgia, serif); padding: 2px 8px 3px; border-radius: 999px; white-space: nowrap; }
.ctray .ctr-note.low { background: #fff0c9; color: #8a4f06; box-shadow: inset 0 0 0 1.5px #f0b443; }
.ctray .ctr-note.out { background: #efe6f2; color: #6a5a78; box-shadow: inset 0 0 0 1.5px #c9b8d6; }
/* (as wide as what's on the counter: two things are two tiles in the middle, not two long bars; six share the width) */
.ctray { width: max-content; min-width: min(220px, calc(100% - 16px)); max-width: calc(100% - 16px); }
.ctray .ctr-goods { display: flex; justify-content: center; gap: 5px; min-width: 0; }   /* (0: or the tray's track holds the tiles at full width, and the last runs past its edge) */
.ctray .ctr-good {
    flex: 0 1 auto; width: 64px; min-width: 50px;      /* (a width, not a basis: the tray's max-content is reckoned from it) */
    position: relative; display: grid; justify-items: center; gap: 1px; padding: 4px 2px 3px;
    border-radius: 11px; background: #fffdf8; border: 2px solid rgba(47, 31, 69, .22);
    box-shadow: 0 2px 0 rgba(47, 31, 69, .18);
}
.ctray .ctr-pic { position: relative; display: block; width: 36px; height: 36px; }
.ctray .ctr-pic .pa { display: block; width: 36px; height: 36px; }
.ctray .ctr-n {
    position: absolute; right: -9px; bottom: -3px; min-width: 22px; padding: 2px 4px 1px; border-radius: 999px; text-align: center;
    border: 2px solid var(--g-ink, #2f1f45); background: linear-gradient(180deg, #ffffff, #efe4fb); color: var(--g-ink, #2f1f45);
    font: 400 .86rem/1 var(--font-game, Georgia, serif); font-variant-numeric: tabular-nums;
    animation: hs-pop .5s cubic-bezier(.2, 1.6, .4, 1) both;
}
.ctray .ctr-price { font: 800 .7rem/1.15 var(--font-display, Georgia, serif); color: #2f6a3e; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ctray .ctr-good.low { border-color: #f0b443; background: #fff7e2; box-shadow: 0 2px 0 #d9952a, 0 0 0 2px rgba(240, 180, 67, .35); }
.ctray .ctr-good.low .ctr-n { background: linear-gradient(180deg, var(--g-gold-1, #ffe27a), var(--g-gold-2, #f4ae2c)); }
.ctray .ctr-good.out { background: #f1ecf3; border-style: dashed; box-shadow: none; }
.ctray .ctr-good.out .pa { filter: grayscale(1); opacity: .45; }
.ctray .ctr-good.out .ctr-n { background: #e6dfea; color: #7a6a88; border-color: #9a8aa8; }
.ctray .ctr-good.out .ctr-price { color: #7a6a88; font-size: .62rem; }
/* round 71: the shed has sold all of these it sells today — said where the price was */
.ctray .ctr-good.shedout .ctr-price { color: #8a4f06; font-size: .54rem; letter-spacing: -.02em; text-overflow: clip; }
.ctray .ctr-good.out.shedout .ctr-price { color: #6a5a78; }
.ctray.many .ctr-goods { flex-wrap: wrap; }
.ctray.many .ctr-good { flex: 0 0 auto; width: 52px; min-width: 0; }
.ctray.many .ctr-pic, .ctray.many .ctr-pic .pa { width: 30px; height: 30px; }
@media (min-width: 700px) {
    /* a laptop: the tray only as wide as what's in it (it wraps past 560px) */
    .ctray { min-width: 240px; max-width: min(560px, calc(100% - 16px)); }
    .ctray .ctr-goods { flex-wrap: wrap; }
    .ctray .ctr-good, .ctray.many .ctr-good { flex: 0 0 auto; width: 76px; }
    .ctray .ctr-pic, .ctray .ctr-pic .pa { width: 40px; height: 40px; }
}
/* upright: clear of the camera button at the foot's right (44px, 12px in) */
@media (max-width: 699px) { .ctray { left: calc(50% - 28px); max-width: calc(100% - 76px); min-width: min(200px, calc(100% - 76px)); } }
@media (max-height: 520px) and (min-aspect-ratio: 1/1) { .ctray { display: none; } }
@media (prefers-reduced-motion: reduce) { .ctray, .ctray .ctr-n { animation: none; } }
@keyframes rushin { 0% { opacity: 0; scale: .6; } 10% { opacity: 1; scale: 1.06; } 16% { scale: 1; } 85% { opacity: 1; } 100% { opacity: 0; } }

/* paused: the counter under a veil, one way back */
.pausedveil {
    position: absolute; inset: 0; z-index: 3;
    display: grid; place-items: center;
    background: rgba(36, 24, 44, .38); backdrop-filter: saturate(.6);
    cursor: pointer;
}
.pausedveil .pv-card {
    display: grid; justify-items: center; gap: 6px; padding: 18px 24px 16px; border-radius: 20px;
    max-width: min(340px, calc(100% - 32px)); text-align: center; cursor: default;
    background: rgba(255, 253, 248, .97); color: var(--ink, #33283c); box-shadow: 0 16px 40px rgba(20, 10, 30, .35);
}
.pausedveil .pv-card b { font: 700 1.6rem/1.1 var(--font-display, Georgia, serif); color: var(--accent-deep, #573a87); }
.pausedveil .pv-card span { font-size: var(--fs-sm, .86rem); color: var(--ink-soft, #5b5068); }
.pausedveil .pv-card .verb { margin-top: 6px; min-width: 150px; }
.verb.second.pausebtn { min-width: 48px; display: grid; place-items: center; padding-left: 12px; padding-right: 12px; }
.verb.second.pausebtn.on { background: linear-gradient(180deg, var(--lav-400), var(--lav-600)); color: var(--ink-invert); border-color: var(--lav-600); }

/* the day card: tips, and the day as it was played at the counter */
.dc-tips {
    margin-top: 4px; padding: 2px 10px 3px; border-radius: 999px;
    font: 800 var(--fs-sm, .86rem)/1.3 var(--font-ui, system-ui); color: #5a3d00;
    background: linear-gradient(180deg, #fff0b8, #f7d66a);
}
.dc-counter { display: flex; gap: 6px 14px; flex-wrap: wrap; justify-content: center; font-size: var(--fs-sm); color: var(--ink-soft); }
.dc-counter b { font-family: var(--font-display); font-size: 1.15rem; color: var(--accent-deep); margin-right: 2px; }
.dc-counter .dc-run b { font-family: inherit; font-size: inherit; font-weight: 800; color: #8a5a00; }
.dc-newbest {
    padding: 4px 14px 5px; border-radius: 999px;
    font: 800 var(--fs-sm, .86rem)/1.3 var(--font-ui, system-ui); color: #3a2a06;
    background: linear-gradient(180deg, #ffe48a, #f2bf3c); box-shadow: 0 2px 8px rgba(120, 80, 10, .3);
    animation: streakpop .5s var(--ease-pop, cubic-bezier(.34,1.56,.64,1)) .5s both;
}

@media (prefers-reduced-motion: reduce) {
    .guest3d .g3-heart, .guest3d.fetching .g3-face, .hud .tally .tobeat.beaten, .dc-newbest { animation: none; }
    .rushbanner { animation: rushfade 3.6s linear both; }
}
@keyframes rushfade { 0%, 90% { opacity: 1; } 100% { opacity: 0; } }
@media (max-width: 720px) { .rushbanner { top: calc(var(--hud-h, 64px) + 100px); padding: 8px 16px 10px; } .rushbanner b { font-size: 1.2rem; } }

/* ---- LC-095: the goal under the money ----------------------------------------------
   The money pill is a button now (it opens the Journal at the deed) and carries the one
   sentence the whole game hangs on: how much of the two thousand, and how long is left. */
button.hud-cash {
    height: auto; min-height: 40px; padding: 4px 12px 7px 9px;
    font: inherit; text-align: left; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
button.hud-cash:hover { background: rgba(255, 253, 248, .95); }
button.hud-cash:focus-visible { outline: 3px solid var(--lav-300, #bda3e6); outline-offset: 2px; }
.hud-cash .hc-figs { display: grid; gap: 1px; line-height: 1; }
.hud-cash .hc-figs b { line-height: 1.05; }
.hud-cash .hc-goal {
    font: 700 .64rem/1.1 var(--font-ui, system-ui); letter-spacing: .01em;
    color: #6b5f78; white-space: nowrap;
}
.hud-cash .hud-deed { bottom: 3px; }

/* (LC-095's list of places under the map on a phone is gone: since LC-101 the map is the 3D farm
   from above, and its chips are full-size buttons) */

/* ---- LC-095: a phone on its side ------------------------------------------------------
   390px tall, less a 56px strip at the top and a 78px bar at the bottom, left every sheet
   a 230px letterbox: the stand's shelves with the shed under the bar, the Shop's pictures
   without their names or prices, the day card cut off below the stars. Here a sheet takes
   the whole height above the bar (it covers the strip; it has its own close button), the
   bar is slimmer, and the tall parts of each sheet are shorter. */
@media (orientation: landscape) and (max-height: 500px) {
    :root { --playbar-h: calc(64px + max(0px, env(safe-area-inset-bottom, 0px) - 10px)); }
    .sheet {
        top: 6px; bottom: calc(var(--playbar-h) + 2px);
        max-height: none;
        width: min(920px, calc(100% - 20px));
        z-index: 45;
    }
    .sheet-head { padding: 6px 8px 5px 16px; }
    .sheet-head h3 { font-size: var(--fs-lg); }
    .sheet-close { width: 32px; height: 32px; }
    .sheet-body { padding: 8px 14px 12px; }
    /* the stand: slots and the shed side by side in height, not stacked */
    .slot { min-height: 0; padding: 6px 8px 8px; }
    .slot-plus { width: 30px; height: 30px; margin: 2px 0; font-size: 1.1rem; }
    .slot-art, .slot-art .pa { width: 40px; height: 40px; }
    .slot-sub { margin-bottom: 6px; }
    /* the shed's goods: all of them in one row of whole tiles, not a row cut by the edge */
    .shedtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); overflow-x: visible; scroll-snap-type: none; }
    .shedtile { min-width: 0; padding: 6px 4px 8px; }
    .st-art .pa { width: 38px; height: 38px; }
    /* the Shop: a short plate, so the name and the price are on screen with the picture */
    .ware-plate { aspect-ratio: auto; height: 64px; padding-top: 4px; }
    .ware-art { height: 58px; width: auto; }
    .wares { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--s-3); }
    /* the day card: the headline numbers fit, the rest scrolls under a fade */
    .daycard { gap: 6px; padding-top: 0; }
    .dc-big { font-size: 2.1rem; }
    .dc-stars { font-size: 1.4rem; }
    .sheet-body { -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 22px), transparent); }
    /* the bar */
    .playbar { padding-bottom: max(6px, env(safe-area-inset-bottom, 0px)); }
    .playbar .pb-btn { height: 50px; min-height: 0; }
    .playbar .verb { min-height: 50px; padding-top: 4px; padding-bottom: 4px; }
    .playbar .verb.big b { font-size: var(--fs-md); }
}

/* ---- LC-095: nothing clipped on an upright phone ----------------------------------------
   "Stock the shelve…", "Skip t…" and "Overca…": the bar's verbs were one line with an
   ellipsis, and the weather word was squeezed out of its chip. The verbs wrap onto a second
   line instead (they are big buttons; two short lines read better than one cut one), and
   on a narrow phone the weather is its picture, with the word in the button's title. */
@media (max-width: 640px) {
    .verb.primary b {
        white-space: normal; overflow: hidden; text-overflow: clip;
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
        line-height: 1.08; text-align: center;
    }
    .pb-verb:has(.second) .verb.primary b { font-size: .8rem; }
}
/* round 67: "Skip to closing" was cut to "Skip to.." upright: where the bar is narrow it says "Close up" */
.playbar .vb-short { display: none; }
@media (max-width: 520px) {
    /* (only beside Fetch more: without it — at a fair, or with nothing to fetch — the whole words have room) */
    .playbar .pb-verb:has(.restock) .vb-long { display: none; }
    .playbar .pb-verb:has(.restock) .vb-short { display: inline; }
    /* (the button is 55px across beside the pause, 35 of it inside its padding: "Close" fits at 13px, its padding 5) */
    main.screenmode .pb-verb:has(.restock) .verb.primary.big { padding-left: 5px; padding-right: 5px; }
    main.screenmode .pb-verb:has(.second):has(.restock) .verb.primary.big b { font-size: .84rem; line-height: 1.02; }
}
@media (max-width: 420px) {
    .hud-day .hud-w-short { display: none; }
    .hud-day .hud-weather svg { width: 17px; height: 17px; }
}

/* ---- LC-095: the welcome screen stands in front of the 3D stand ---------------------- */
.titlehero .world3d.intro3d { position: absolute; inset: 0; }
.titlehero .world3d.intro3d .world3d-canvas { touch-action: pan-y; }
.titleveil { background: linear-gradient(180deg, rgba(28, 18, 40, .34) 0%, rgba(28, 18, 40, 0) 30%, rgba(28, 18, 40, 0) 58%, rgba(28, 18, 40, .32) 100%); pointer-events: none; }
.titlepage .intro { max-height: min(52vh, 440px); }
.titlepage .intro .lede { margin-bottom: .55em; }
.titlepage .intro .deed-terms b { color: var(--accent-deep, #573a87); }
@media (max-width: 940px) {
    .titlepage .intro { max-height: 56vh; }
}

/*  LC-095. The scene boxes clipped the picture to their own box, and the box rides the
    camera: dragged (or slid to what is calling) by the overscan, the picture's edge came
    into the window with nothing beyond it — at the new overscan, a third of an upright
    phone was blank. The world box clips; the scenes inside it do not. */
.screenmode .world .lens > .scene { overflow: visible; }

/*  LC-095. The shed's goods were a row you scroll sideways, and on a phone the third tile
    was cut in half by the edge of the screen ("Lavend… So…"). On a narrow screen they
    wrap into a grid you scroll the way the sheet scrolls, so every tile is whole. */
@media (max-width: 640px) {
    .shedtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); overflow-x: visible; scroll-snap-type: none; }
    .shedtile { min-width: 0; }
}

/*  LC-095. Everywhere, not only on phones: the shed's goods are a grid of whole tiles. A row
    you scroll sideways always has one cut in half at the edge, which reads as broken. */
.shedtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); overflow-x: visible; scroll-snap-type: none; }
.shedtile { min-width: 0; }

/* ---- LC-099: bag it --------------------------------------------------------------------
   Tap somebody holding a basket and their order comes up here: who, what it comes to, their
   patience draining, the order as pictures (ticked as each thing goes in), and a tile for
   everything on the stand. A right tile flashes and drops in; a wrong one shakes and costs a
   second. A card at the foot of the screen on a laptop or an upright phone; on a sideways
   phone a column down the left, clear of the stand (which sits right of centre there).   */
.bagbar {
    position: absolute; left: 50%; bottom: calc(var(--playbar-h) + 6px); z-index: 43;
    transform: translateX(-50%);
    width: min(560px, calc(100% - 16px));
    display: grid; gap: 8px; align-content: start;
    padding: 10px 12px 12px;
    border-radius: 18px;
    background: #fffaf1; color: #33283c;
    box-shadow: 0 14px 36px -12px rgba(30, 18, 40, .55), 0 0 0 1px rgba(80, 60, 90, .12);
    animation: bagin .3s var(--ease-pop, ease-out) both;
    touch-action: manipulation;
}
@keyframes bagin { from { transform: translate(-50%, 22px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.bagbar .bb-top { display: flex; align-items: center; gap: 10px; }
.bagbar .bb-who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-md, 1rem); font-weight: 800; }
.bagbar .bb-price { font-weight: 800; font-variant-numeric: tabular-nums; color: #2f6a3e; }
.bagbar .bb-x {
    flex: none; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(51, 40, 60, .08); color: #33283c; cursor: pointer;
}
.bagbar .bb-time { height: 6px; border-radius: 3px; background: rgba(51, 40, 60, .1); overflow: hidden; }
.bagbar .bb-time i {
    display: block; height: 100%; border-radius: 3px;
    background: linear-gradient(90deg, #8a6fc8, #b39be0);
    transform-origin: 0 50%;
    animation-name: bbdrain; animation-timing-function: linear; animation-fill-mode: both;
}
.bagbar.hurry .bb-time i { background: linear-gradient(90deg, #d2573a, #f0a35a); }
.bagbar.held .bb-time i { animation-play-state: paused; }
@keyframes bbdrain { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.bagbar .bb-order { display: flex; flex-wrap: wrap; gap: 8px; }
.bagbar .bb-item {
    position: relative; display: inline-flex; align-items: center; gap: 2px;
    padding: 3px 9px 3px 3px; border-radius: 12px;
    background: #f1e9fa; border: 1.5px solid #d9cdee;
    font-variant-numeric: tabular-nums;
}
.bagbar .bb-item .pa { width: 34px; height: 36px; display: block; }
.bagbar .bb-item b { font-size: .82rem; font-weight: 800; }
.bagbar .bb-item:not(:has(b)) { padding-right: 3px; }
.bagbar .bb-tick {
    position: absolute; right: -7px; top: -7px; width: 20px; height: 20px; border-radius: 50%;
    display: none; place-items: center; background: #3c8a52; color: #fff;
    box-shadow: 0 2px 6px rgba(30, 70, 40, .35);
}
.bagbar .bb-tick svg { width: 14px; height: 14px; }
.bagbar .bb-item.part { background: #fbf3dc; border-color: #ead7a0; }
.bagbar .bb-item.done { background: #e4f1e6; border-color: #a7d0ae; }
.bagbar .bb-item.done .pa { opacity: .5; }
.bagbar .bb-item.done .bb-tick { display: grid; animation: tickpop .32s var(--ease-pop, ease-out) both; }
@keyframes tickpop { from { transform: scale(.2); } to { transform: scale(1); } }
.bagbar .bb-hint { font-size: var(--fs-sm, .82rem); font-weight: 700; color: #6b5a7e; line-height: 1.3; }
.bagbar .bb-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 6px; }
.bagbar .bb-tile {
    display: grid; justify-items: center; align-content: start; gap: 2px;
    min-height: 74px; padding: 6px 4px 5px;
    border-radius: 14px; border: 1.5px solid #e2d8ee; background: #fff; color: #33283c;
    font: inherit; font-size: .66rem; font-weight: 700; line-height: 1.1;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
    box-shadow: 0 2px 0 #e2d8ee;
}
.bagbar .bb-tile .pa { width: 42px; height: 44px; display: block; pointer-events: none; }
.bagbar .bb-tile span {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    text-align: center; pointer-events: none;
}
.bagbar .bb-tile:active { transform: translateY(2px); box-shadow: none; }
/* LC-100: on a keyboard, 1 to 9 bag the tiles in order — each wears its number where a mouse points */
.bagbar .bb-tile { position: relative; }
@media (hover: hover) and (pointer: fine) {
    .bagbar .bb-tile[data-key]::before {
        content: attr(data-key); position: absolute; left: 6px; top: 5px;
        min-width: 16px; height: 16px; border-radius: 5px; padding: 0 3px;
        display: grid; place-items: center;
        font-size: .62rem; font-weight: 800; line-height: 1; color: #6b5a7e;
        background: #f1e9fa; border: 1px solid #d9cdee;
    }
}
.bagbar .bb-tile.right { animation: tileright .38s ease-out; }
.bagbar .bb-tile.wrong { animation: tilewrong .42s ease-out; }
@keyframes tileright { 0% { background: #cfe9d4; border-color: #7fbf8c; transform: scale(.92); } 100% { background: #fff; transform: scale(1); } }
@keyframes tilewrong {
    0% { background: #f8d9d2; border-color: #e08a74; }
    15% { translate: -6px 0; } 35% { translate: 6px 0; } 55% { translate: -4px 0; } 75% { translate: 3px 0; }
    100% { translate: 0 0; background: #fff; }
}
@media (min-width: 700px) {
    .bagbar .bb-tiles { grid-template-columns: repeat(auto-fit, minmax(84px, 112px)); justify-content: center; }
    .bagbar .bb-tile { min-height: 70px; }
}
@media (max-height: 520px) and (min-aspect-ratio: 1/1) {
    .bagbar {
        left: 10px; transform: none; width: 268px;
        top: calc(var(--hud-h) + 46px); bottom: calc(var(--playbar-h) + 2px);
        padding: 8px 10px 10px; gap: 6px; overflow-y: auto;
        animation-name: baginside;
    }
    .bagbar .bb-tiles { grid-template-columns: repeat(3, 1fr); gap: 5px; }
    .bagbar .bb-tile { min-height: 58px; padding: 4px 3px; font-size: .6rem; }
    .bagbar .bb-tile .pa { width: 32px; height: 33px; }
    .bagbar .bb-item .pa { width: 28px; height: 30px; }
    .bagbar .bb-hint { font-size: .68rem; }
}
@keyframes baginside { from { transform: translateX(-18px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    /* the patience line still drains: it is the clock, not a flourish */
    .bagbar, .bagbar .bb-tile.right, .bagbar .bb-tile.wrong, .bagbar .bb-item.done .bb-tick { animation: none; }
}
/* the person whose order is up: their button rings gold */
.guest3d.bagging .g3-face { border-radius: 50%; box-shadow: 0 0 0 3px #ffd56a, 0 0 16px rgba(255, 205, 90, .75); }
.dc-perfect b { color: #2f6a3e; }

/* ==== The visual pass (V3): the counter, made of the farm's materials ======================
   Docs/ART_DIRECTION.md. Cream card and kraft paper, lavender ink, Fraunces for the numbers.
   These rules come last on purpose: they restyle what is above without moving anything a
   finger depends on (sizes, positions and tap areas are untouched).                      */
:root {
    --vp-paper: #fcf6ea; --vp-kraft: #e9d8b8; --vp-kraft-deep: #c9ab7c; --vp-ink: #33283c;
    --vp-lav-ink: #4c3576; --vp-leaf: #4f9a5c; --vp-amber: #e0a03a; --vp-rust: #cf5f37; --vp-gold: #f2c14e;
}
/* the person's button: a cream tag with a kraft rim, patience a thick ring round it */
.guest3d .g3-ring { filter: drop-shadow(0 4px 7px rgba(43, 26, 50, .34)); }
.guest3d .g3-track { fill: var(--vp-paper); stroke: var(--vp-kraft); stroke-width: 6; }
.guest3d .g3-left { stroke: var(--vp-leaf); stroke-width: 6; }
.guest3d.hurry .g3-left { stroke: var(--vp-rust); }
.guest3d .g3-price { font: 800 .95rem/1 var(--font-display, Georgia, serif); font-variation-settings: var(--wonk); color: var(--vp-ink); letter-spacing: -.015em; }
.guest3d .g3-goods i { box-shadow: 0 0 0 1.5px #fffaf0, 0 1px 2px rgba(40, 24, 50, .3); }
.guest3d .g3-who { background: var(--vp-lav-ink); font-family: var(--font-ui); box-shadow: 0 2px 5px rgba(30, 16, 40, .35), inset 0 -1px 0 rgba(0, 0, 0, .2); }
.guest3d.looking .g3-track { fill: #f6f0ff; stroke: #ddd0f2; }
.guest3d.wanting .g3-track { fill: #fff3e8; stroke: #f0cfb3; }
.guest3d.bagging .g3-face { box-shadow: 0 0 0 3px var(--vp-gold), 0 0 18px rgba(255, 205, 90, .8); }

/* what they paid, rising over them: the amount in gold with an ink edge, like the coin's own face */
.float3d.paid, .float3d.won {
    font: 900 1.5rem/1 var(--font-display, Georgia, serif); font-variation-settings: var(--wonk);
    color: #ffe9a6; -webkit-text-stroke: 5px #4a2f12; paint-order: stroke fill;
    text-shadow: 0 3px 10px rgba(40, 20, 10, .35);
}
/* round 37: solid gold over the ink edge. A gradient clipped to the text had the edge drawn over it, and what they paid
   read as a brown smudge ("+$10.70" unreadable; round 34's build drew it the same) */
.float3d.paid b, .float3d.won b { color: #ffe28a; -webkit-text-fill-color: #ffe28a; }
@keyframes float3d { 0% { opacity: 0; transform: translateY(10px) scale(.6); } 12% { opacity: 1; transform: translateY(-6px) scale(1.14); } 22% { transform: translateY(-10px) scale(1); } 100% { opacity: 0; transform: translateY(-64px) scale(1); } }

/* the coins on their way to the till: minted, with a glint */
.coin3d {
    width: 24px; height: 24px; margin: -12px 0 0 -12px;
    background: radial-gradient(circle at 34% 28%, #fffbe0 0%, #ffd866 32%, #e8a92e 70%, #a8711c 100%);
    box-shadow: 0 0 0 1.5px #fff6d8, 0 0 0 3px rgba(168, 113, 28, .55), 0 3px 8px rgba(60, 40, 10, .35);
}
.coin3d::after { inset: 5px; border-color: rgba(140, 92, 20, .45); }

/* the order: a slip of paper, its top edge torn off a pad, the price stamped in lavender */
.bagbar {
    background: linear-gradient(180deg, #fffaf0 0%, var(--vp-paper) 60%, #f7eedd 100%);
    border-radius: 18px;
    box-shadow: 0 16px 34px -12px rgba(43, 26, 50, .55), 0 0 0 1px rgba(150, 120, 80, .22), inset 0 -3px 0 rgba(201, 171, 124, .35);
}
/* the slip's tear line, under who it is for */
.bagbar .bb-top { padding-bottom: 7px; border-bottom: 2px dashed rgba(201, 171, 124, .7); }
.bagbar .bb-who { font: 800 1.02rem/1.15 var(--font-display, Georgia, serif); font-variation-settings: var(--wonk); color: var(--vp-lav-ink); }
.bagbar .bb-price {
    font: 800 .95rem/1 var(--font-display, Georgia, serif); color: #fffaf0;
    background: var(--vp-lav-ink); padding: 6px 10px 7px; border-radius: 999px;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .22), 0 2px 0 #2f2048; rotate: -3deg;
}
.bagbar .bb-time { height: 7px; background: rgba(201, 171, 124, .35); }
.bagbar .bb-time i { background: linear-gradient(90deg, #7b5cc4, #b39be0); }
.bagbar .bb-item { background: #f3ecfb; border-color: #dccff0; }
.bagbar .bb-item.done { background: #e6f3e8; border-color: #b2d8b8; }
.bagbar .bb-tick { background: var(--vp-leaf); }
.bagbar .bb-tile {
    background: #fffdf8; border: 1.5px solid var(--vp-kraft); border-radius: 12px;
    box-shadow: 0 3px 0 var(--vp-kraft-deep), 0 4px 10px -6px rgba(43, 26, 50, .4);
    color: var(--vp-ink); font-weight: 800;
}
.bagbar .bb-tile:active { transform: translateY(3px); box-shadow: 0 0 0 var(--vp-kraft-deep); }
@keyframes tileright { 0% { background: #d5ecd9; border-color: #7fbf8c; transform: scale(.9); } 55% { transform: scale(1.05); } 100% { background: #fffdf8; transform: scale(1); } }

/* the till: a bump of gold when the coins land */
.hud-cash.bump { box-shadow: 0 0 0 2px rgba(242, 193, 78, .9), 0 0 22px rgba(242, 193, 78, .7), 0 6px 18px -8px rgba(40, 24, 50, .35); }

/* ==== The visual pass (V6): the HUD and the menus, made of the same things =================
   Cream card with a kraft rim and a little lip underneath (something you could press), lavender
   ink, Fraunces for numbers and names; the dark plum of a chalkboard where the farm talks to you
   (Nell, the clock and the day's tally). Only colour, edge and shadow change here: no size, no
   position, nothing a finger has learnt.                                                    */
:root {
    --vp-card: rgba(252, 246, 234, .95); --vp-rim: #e6d3b1; --vp-lip: #cdb48a;
    --vp-board: rgba(45, 33, 56, .84); --vp-chalk: rgba(255, 240, 214, .2);
    --vp-shadow: 0 1px 2px rgba(43, 26, 50, .14), 0 8px 20px -10px rgba(43, 26, 50, .45);
}
/* the money and the day: cream tags */
.hud-cash, .hud-day {
    background: var(--vp-card);
    border: 1.5px solid var(--vp-rim);
    box-shadow: 0 2px 0 var(--vp-lip), var(--vp-shadow);
}
.hud-cash b { color: var(--vp-lav-ink); }
/* the round buttons: cream discs that press */
.soundbtn, .hud-help {
    background: var(--vp-card); border: 1.5px solid var(--vp-rim); color: var(--vp-lav-ink);
    box-shadow: 0 2px 0 var(--vp-lip), var(--vp-shadow);
}
.soundbtn:active, .hud-help:active { transform: translateY(2px); box-shadow: 0 0 0 var(--vp-lip), var(--vp-shadow); }
.soundbtn.off { background: #efe6d4; color: #8a7d70; }
/* the play bar's tiles: cream, kraft-rimmed, a lip; the icon in lavender ink */
.pb-btn {
    background: var(--vp-card); border: 1.5px solid var(--vp-rim); color: var(--vp-lav-ink);
    box-shadow: 0 3px 0 var(--vp-lip), 0 10px 22px -10px rgba(43, 26, 50, .5);
}
.pb-btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--vp-lip), 0 6px 14px -8px rgba(43, 26, 50, .5); }
.pb-btn.on { border-color: #4c3576; box-shadow: 0 3px 0 #3a2860, 0 10px 22px -10px rgba(43, 26, 50, .5); }
/* the one thing to do: lavender, with a darker lip and a glint along its top edge */
.verb.primary {
    background: linear-gradient(180deg, #a17fe0 0%, #7e5cc8 55%, #6a49b4 100%);
    border: 1.5px solid #4c3576;
    box-shadow: 0 4px 0 #3e2a66, 0 14px 28px -10px rgba(84, 62, 140, .75), inset 0 1.5px 0 rgba(255, 255, 255, .42);
}
.verb.primary:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 #3e2a66, 0 8px 18px -10px rgba(84, 62, 140, .7), inset 0 1.5px 0 rgba(255, 255, 255, .42); }
.verb.primary b { text-shadow: 0 1px 0 rgba(40, 20, 70, .35); }
.verb.primary:disabled { background: var(--vp-card); border-color: var(--vp-rim); box-shadow: 0 3px 0 var(--vp-lip), var(--vp-shadow); }
.verb.second { background: var(--vp-card); border: 1.5px solid var(--vp-rim); color: var(--vp-lav-ink); box-shadow: 0 3px 0 var(--vp-lip), var(--vp-shadow); }
@keyframes verbbreathe { 0%, 100% { box-shadow: 0 4px 0 #3e2a66, 0 14px 28px -10px rgba(84, 62, 140, .75), inset 0 1.5px 0 rgba(255, 255, 255, .42); } 50% { box-shadow: 0 4px 0 #3e2a66, 0 14px 34px -6px rgba(123, 89, 181, .95), inset 0 1.5px 0 rgba(255, 255, 255, .42); } }
/* Nell talks to you from a chalkboard: plum, a chalk hairline, her name in Fraunces */
.nellcard {
    background: linear-gradient(180deg, #3d2d4d 0%, #2f2340 100%);
    box-shadow: 0 0 0 1.5px var(--vp-chalk), 0 16px 40px -12px rgba(20, 12, 28, .75);
}
.nellcard .nc-name { font-family: var(--font-display); font-variation-settings: var(--wonk); font-size: var(--fs-md); color: #d9c8f6; letter-spacing: .005em; }
.nellcard .nc-ok { background: #fcf6ea; color: #33283c; box-shadow: 0 2px 0 #b9a27c; }
.nellcard .nc-ok:active { transform: translateY(2px); box-shadow: none; }
.nellcard .nc-face { box-shadow: inset 0 0 0 2px rgba(255, 240, 214, .35), 0 0 0 2px rgba(255, 240, 214, .12); }
/* the sheets: paper with a kraft rim; under the heading, the tear line of a pad */
.sheet {
    border: 1.5px solid var(--vp-rim);
    box-shadow: 0 -2px 6px rgba(40, 24, 50, .08), 0 24px 60px -18px rgba(40, 24, 50, .55), inset 0 -3px 0 rgba(205, 180, 138, .3);
}
.sheet-head { border-bottom: 2px dashed rgba(205, 180, 138, .65); }
.sheet-head h3 { color: var(--vp-lav-ink); }
.sheet-close { background: #f3ead8; border: 1.5px solid var(--vp-rim); box-shadow: 0 2px 0 var(--vp-lip); color: var(--vp-ink); }
.sheet-close:active { transform: translateY(2px); box-shadow: none; }
/* the clock and the day's tally: little chalkboards */
.screenmode .hud .clock, .screenmode .hud .tally { background: var(--vp-board); box-shadow: 0 0 0 1.5px var(--vp-chalk), 0 8px 18px -10px rgba(20, 12, 28, .6); }
/* Nell's errand, pinned: a cream card */
.errand-pin .ep-main { background: var(--vp-card); border: 1.5px solid var(--vp-rim); box-shadow: 0 2px 0 var(--vp-lip), var(--vp-shadow); }
/*  None of these needs the frosted glass any more (they are near-opaque), and frosting a
    3D picture that changes every frame makes the phone re-blur it under every card, every
    frame: off. */
.hud-cash, .hud-day, .errand-pin .ep-main, .screenmode .hud .clock, .screenmode .hud .tally { -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ==== The gameplay pass (G3): the trading day's rhythm ======================================
   Under the clock, the day's shape: a bar for each hour the stand is open, as tall as the hour is
   busy; the coach's stop (a little rust coach, gold once it has come); where the day is now. While
   nobody is at the counter or walking to it, the quiet hours pass quicker: the clock says so with
   a soft "››". The buzz of a stand serving briskly sits beside the run of sales.               */
.hud .daystrip {
    position: relative; display: inline-flex; align-items: flex-end; gap: 2px;
    width: 64px; height: 16px; margin-left: 10px; vertical-align: middle;
}
.hud .daystrip i { flex: 1; border-radius: 2px 2px 0 0; background: rgba(255, 240, 214, .62); }
.hud .daystrip i.past { background: rgba(255, 240, 214, .26); }
.hud .daystrip .ds-now {
    position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; border-radius: 1px;
    background: #ffd76a; box-shadow: 0 0 6px rgba(255, 215, 106, .7);
}
.hud .daystrip .ds-coach {
    position: absolute; top: -9px; width: 10px; height: 6px; margin-left: -5px; border-radius: 2px 3px 1px 1px;
    background: #d4754a; box-shadow: 0 1px 0 rgba(0, 0, 0, .35);
}
.hud .daystrip .ds-coach::after {   /* its windows */
    content: ""; position: absolute; left: 2px; right: 3px; top: 1px; height: 2px; border-radius: 1px;
    background: rgba(255, 244, 228, .85);
}
.hud .daystrip .ds-coach.here { background: #f2bf3c; }
/* round 66: the market bell's three rings — a little bell over the hour each falls in, brass once rung */
.hud .daystrip .ds-bell {
    position: absolute; top: -10px; width: 8px; height: 7px; margin-left: -4px; border-radius: 4px 4px 1px 1px;
    background: #b7c6d8; box-shadow: 0 1px 0 rgba(0, 0, 0, .35);
}
.hud .daystrip .ds-bell::after {   /* its clapper */
    content: ""; position: absolute; left: 3px; bottom: -2px; width: 2px; height: 2px; border-radius: 1px; background: inherit;
}
.hud .daystrip .ds-bell.here { background: #f2bf3c; }
.screenmode .hud .clock.quiet::after {
    content: "\203A\203A"; margin-left: 6px; font: 800 .82rem/1 var(--font-ui, system-ui);
    color: rgba(255, 240, 214, .7); letter-spacing: -.08em;
}
.hud .hud-buzz {
    display: inline-block; vertical-align: middle; margin-left: 8px;
    padding: 4px 10px; border-radius: 999px;
    font: 800 .74rem/1.2 var(--font-ui, system-ui); letter-spacing: .01em; text-shadow: none;
    color: #fffdf8; background: linear-gradient(180deg, #9a7fd9, #7253b8);
    box-shadow: 0 2px 8px rgba(60, 30, 110, .35);
    animation: streakpop .42s var(--ease-pop, cubic-bezier(.34,1.56,.64,1)) both;
}
.hud .hud-buzz.b2 { background: linear-gradient(180deg, #b48cf0, #8257d0); }
.hud .hud-buzz.b3 { background: linear-gradient(180deg, #d7a0ff, #9a5ae0); box-shadow: 0 2px 12px rgba(150, 80, 230, .55); animation: streakpop .42s var(--ease-pop, cubic-bezier(.34,1.56,.64,1)) both, buzzglow 1.4s ease-in-out .5s infinite; }
@keyframes buzzglow { 0%, 100% { box-shadow: 0 2px 10px rgba(150, 80, 230, .45); } 50% { box-shadow: 0 2px 18px rgba(190, 120, 255, .8); } }
.rushbanner.rb-sum { animation-duration: 4.2s; }
@media (prefers-reduced-motion: reduce) {
    .hud .hud-buzz, .hud .hud-buzz.b3 { animation: none; }
    .rushbanner.rb-sum { animation: rushfade 4.2s linear both; }
}
html.quiet .hud .hud-buzz, html.quiet .hud .hud-buzz.b3 { animation: none; }
/* the coach's time in the morning's day pill */
.hud-day .hud-coach { display: inline-flex; align-items: center; gap: 4px; color: #b0502a; font-weight: 800; font-variant-numeric: tabular-nums; }
.hud-day .hud-coach svg { flex: none; }
/* round 62: a Tea Garden coin whose table lies under the play bar (sideways) stands on the bar's top edge over its table:
   a gold coin to tap there, bobbing (it had no chip at all, and the money was taken without it being seen) */
.hot3d[data-hot^="teatip:"].onbar { border-radius: 50%; }
.hot3d[data-hot^="teatip:"].onbar .hot3d-ring { display: none; }
.hot3d[data-hot^="teatip:"].onbar::before {
    content: ""; position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff1b8 0%, #f0c24a 45%, #b8862e 100%);
    box-shadow: 0 0 0 2px rgba(184, 134, 46, .75), 0 0 14px rgba(255, 214, 110, .8), 0 3px 6px rgba(60, 40, 10, .35);
    animation: teacoinbob 1.6s ease-in-out infinite; pointer-events: none;
}
@keyframes teacoinbob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3px; } }
@media (prefers-reduced-motion: reduce) { .hot3d[data-hot^="teatip:"].onbar::before { animation: none; } }
/* round 62: a weekend's coach party, out for tea at the Tea Garden — the coach and a cup, in the Tea Garden's lavender */
.hud-day .hud-coach.party { color: #7a52b8; }
.hud-day .hud-coach .hud-cup { margin-left: -2px; }
/* the chalkboard's special, in the stand sheet (G3) */
.specialrow { display: grid; gap: 8px; margin: 12px 0 4px; padding: 10px 12px 12px; border-radius: 14px; background: var(--vp-board, rgba(45, 33, 56, .84)); color: #fff4e2; box-shadow: 0 0 0 1.5px rgba(255, 240, 214, .2); }
.specialrow .sp-head { display: grid; gap: 2px; }
.specialrow .sp-head b { font: 700 1.05rem/1.2 var(--font-display, Georgia, serif); }
.specialrow .sp-head span { font-size: var(--fs-sm, .86rem); opacity: .82; }
.specialrow .sp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.specialrow .sp-chip { min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1.5px dashed rgba(255, 240, 214, .55); background: transparent; color: #fff4e2; font: 800 .9rem/1.2 var(--font-ui, system-ui); }
.specialrow .sp-chip.on { border-style: solid; border-color: #f2d38a; background: rgba(242, 211, 138, .2); color: #ffe7a8; }
.rushbanner.rb-done { background: rgba(70, 50, 100, .93); }
/* G3: an upright phone's top row has no room across for the coach's time, so it goes under the day:
   "Day 1 ☁" over "🚌 13:07", in a pill no wider than the day and its weather were */
@media (max-width: 640px) {
    .hud-day:has(> .hud-coach) { display: grid; grid-template-columns: auto auto; justify-content: center; align-content: center; column-gap: 4px; row-gap: 1px; padding: 1px 9px 0; }
    .hud-day:has(> .hud-coach) > .hud-sep { display: none; }
    .hud-day > span.hud-coach:not(.hud-sep) { display: inline-flex; grid-column: 1 / -1; justify-content: center; gap: 3px; font-size: 10.5px; line-height: 1.05; }
    .hud-day > span.hud-coach svg { width: 12px; height: 9px; }
    /* round 62: a party's coach is its cup here (the coach and the cup both ran the time off the pill: "13:1") */
    .hud-day > span.hud-coach.party > svg:not(.hud-cup) { display: none; }
    .hud-day > span.hud-coach .hud-cup { width: 11px; height: 10px; margin-left: 0; }
}
/* round 63: upright, "Day 62" lost its D under the pill's edge with the coach's time under it (since round 59 at least):
   on a coach day the top row stands a little closer, and the pill's words and weather a little smaller, so it fits */
@media (max-width: 640px) {
    main.screenmode .hud-top:has(.hud-coach) { gap: 6px; }
    main.screenmode .hud-day:has(> .hud-coach) { padding: 1px 6px 0; column-gap: 2px; }
    main.screenmode .hud-day:has(> .hud-coach) > b { font-size: .9em; letter-spacing: -.01em; }
    main.screenmode .hud-day:has(> .hud-coach) .hud-weather svg { width: 13px; height: 13px; }
}
/* G4: the farm matters — what was made here, and what only the farm makes */
.shedtile.madehere .st-sub { color: #4b744c; }
.shedtile.farmonly { opacity: 1; background: repeating-linear-gradient(-45deg, rgba(232, 240, 228, .7) 0 8px, rgba(255, 255, 255, .5) 8px 16px); border-style: dashed; }
.shedtile.farmonly:disabled { opacity: .82; }
.shedtile.farmonly .st-sub { color: #4b744c; font-weight: 700; text-wrap: balance; }
.sd-stock .sd-made { margin-left: 8px; padding: 2px 9px 3px; border-radius: 999px; background: #e8f0e4; color: #3f6a40; font: 800 var(--fs-xs, .74rem)/1.3 var(--font-ui, system-ui); white-space: nowrap; }
.sd-stock .sd-farmonly { margin-left: 8px; color: #4b744c; font: 700 var(--fs-xs, .74rem)/1.3 var(--font-ui, system-ui); }
.dc-made { display: inline-flex; align-items: center; gap: 7px; margin: 2px auto 0; padding: 4px 13px 5px; border-radius: 999px; background: #e8f0e4; color: #3f6a40; font: 800 var(--fs-sm, .86rem)/1.3 var(--font-ui, system-ui); }
.dc-made .dm-sprig { width: 14px; height: 14px; flex: none; background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 13V5' stroke='%234b744c' stroke-width='1.6' stroke-linecap='round'/%3E%3Cellipse cx='7' cy='3' rx='1.6' ry='2.4' fill='%238d6ad0'/%3E%3Cellipse cx='4.6' cy='6' rx='1.3' ry='2' transform='rotate(-30 4.6 6)' fill='%238d6ad0'/%3E%3Cellipse cx='9.4' cy='6' rx='1.3' ry='2' transform='rotate(30 9.4 6)' fill='%238d6ad0'/%3E%3C/svg%3E"); }
.slot .slot-sub.made { color: #3f6a40; }
/* G5: a regular's hearts, in a row under their name at the counter */
.guest3d .g3-hearts {
    display: none; position: absolute; left: 50%; bottom: -20px; translate: -50% 0;
    padding: 0 5px 1px; border-radius: 999px; background: rgba(255, 250, 244, .92);
    color: #d94f74; font: 900 .58rem/1.25 var(--font-ui, system-ui); letter-spacing: .5px; white-space: nowrap;
    box-shadow: 0 1px 3px rgba(20, 10, 30, .25); pointer-events: none;
}
.guest3d.named.hearted .g3-hearts { display: block; }
.guest3d.named.hearted .hot3d-hand { top: 76px; }
.guest3d.pressed .g3-hearts { display: none; }
/* G5: people you know — hearts in a row, a regular's wish on the stand, the people page */
.hearts { display: inline-block; color: #d94f74; font: 900 .8rem/1 var(--font-ui, system-ui); letter-spacing: 1.5px; white-space: nowrap; }
.metcard .hearts { display: block; margin: 3px 0 1px; color: #ff9cbc; }
.guestbook .gb-text .hearts { display: block; margin: 2px 0 3px; font-size: .74rem; }
.wishrow {
    display: flex; align-items: center; gap: 10px; width: 100%; margin: 12px 0 4px; padding: 10px 14px;
    border-radius: 14px; border: 1.5px dashed #e3a5b7; background: #fdf1f4; color: #7a2944;
    text-align: left; font: 700 var(--fs-sm, .86rem)/1.35 var(--font-ui, system-ui); cursor: pointer;
}
.wishrow .wr-heart { flex: none; color: #d94f74; font-size: 1.15rem; line-height: 1; opacity: .55; }
.wishrow .wr-text { display: grid; gap: 2px; text-wrap: balance; }
.wishrow .wr-how { display: block; font-weight: 600; font-size: var(--fs-xs, .78rem); color: #8e4a60; }
.wishrow.met { border-style: solid; border-color: #d94f74; background: #fbe4eb; }
.wishrow.met .wr-heart { opacity: 1; }
.metcard .met-wish { display: block; margin-top: 6px; color: #ffc4d6; font-weight: 800; font-size: 12.5px; }
.guestbook li.gb-person { cursor: pointer; border-radius: 10px; }
.guestbook li.gb-person:hover { background: rgba(217, 79, 116, .06); }
.guestbook li.gb-person:focus-visible { outline: 2px solid #d94f74; outline-offset: 2px; }
.dc-wish { display: inline-flex; align-items: center; gap: 7px; margin: 6px auto 0; padding: 4px 13px 5px; border-radius: 999px; background: #fbe4eb; color: #8e2a4a; font: 800 var(--fs-sm, .86rem)/1.3 var(--font-ui, system-ui); }
.dc-wish .wr-heart { color: #d94f74; }
/* G6: the deed in three parts — the part now due, paying it, and the day card's word at a season's turn */
.deedmeter .dm-part { font-size: var(--fs-sm, .86rem); font-weight: 700; color: var(--ink, #2c2433); text-wrap: balance; }
.deedmeter .dm-pay { justify-self: start; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: none; background: var(--accent, #7a5bb5); color: #fff; font: 800 var(--fs-sm, .86rem)/1.2 var(--font-ui, system-ui); box-shadow: 0 2px 0 rgba(60, 40, 100, .35); }
.dc-deed { display: inline-flex; align-items: center; gap: 7px; margin: 6px auto 0; padding: 4px 13px 5px; border-radius: 999px; background: #f4ead2; color: #7a5a1e; font: 800 var(--fs-sm, .86rem)/1.3 var(--font-ui, system-ui); text-wrap: balance; }
.dc-deed.rolled { background: #efe9f4; color: #5d4a7a; }
/* G7: the season's recap and the deed's page on a sideways phone — the whole card, button and all, on
   one screen (they were taller than the 390 pixels there, the button below the fold of a card that
   scrolls inside itself) */
@media (max-height: 500px) {
    .recappage .panel.recap { padding: 10px 16px 12px; max-height: calc(100dvh - 12px); }
    .recappage .panel.recap h1 { font-size: 1.25rem; margin: 0 0 6px; }
    .recappage .panel.recap .lede { font-size: .82rem; line-height: 1.35; margin: 6px 0; }
    .recappage .recap-grid { grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 0 0 6px; }
    .recappage .recap-grid > div { padding: 5px 6px; }
    .recappage .recap-grid dt { font-size: 10px; margin-bottom: 2px; }
    .recappage .recap-grid dd { font-size: 12.5px; }
    .recappage .panel.recap button.big { padding: .5em 1.4em; font-size: var(--fs-md, 1rem); }
    .deedpage .deedtag { margin-bottom: 2px; }
    .deedpage .deed-nell { margin: 6px 0; padding: 6px 10px; }
    .deedpage .deed-nell p { font-size: .78rem; line-height: 1.3; }
    .deedpage .deed-nell .er-face { width: 32px; height: 32px; }
    .deedpage .panel.recap > p.quiet.small { display: none; }
}
/* R16: the wish where the eye already is — the person who came for it, in the wish's pink at the
   counter (their name, and the heart they carry), and a line on the stand's chip in the morning */
.guest3d.wishing .g3-who { background: #c9416a; color: #fff; }
.guest3d.wishing .g3-who::before { content: "\2665\00a0"; }
/* R16: on the shelf, the farm's own of today's wish is kept for whoever wished for it */
.slot .slot-kept { display: block; margin-top: 2px; color: #b8365e; font: 800 var(--fs-xs, .74rem)/1.25 var(--font-ui, system-ui); }


/*  Round 16: what sells this season, where the choosing is. The game's own season numbers
    (ProductDefinition.SeasonLean), not a guess: Nell's "honey's the thing now" on the tile. */
.st-season { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .01em; line-height: 1.3; white-space: nowrap; }
.st-season.in, .sd-season.in { color: #3f7a3a; }
.st-season.out, .sd-season.out { color: #8a6f5a; }
.st-season.in::before { content: "\273F\00a0"; }
.sd-season { font-weight: 800; }
/*  The shelf's detail borrows the chalkboard's separator and its "loved by" (.cb-sep, .cb-loved),
    which were drawn for chalk on a dark board: on the detail's light card the dot sat hard against
    the words ("Botanical·In season") and the pink name was too pale to read. */
.sd-cat .cb-sep { margin: 0 .4em; }
.sd-cat .cb-loved { color: #a63a62; }
.sd-cat .cb-loved .lb-heart { color: #c9416a; }
.slot .slot-season { display: block; margin-top: 2px; font: 800 var(--fs-xs, .74rem)/1.25 var(--font-ui, system-ui); }
.slot .slot-season.out { color: #8a6f5a; }
/*  Round 16: the last one put by for today's wisher — said once a day, in the wish's pink, not the
    alarm's red: nothing at the counter can be done about it but make more. */
.bubble3d.kept { background: rgba(150, 40, 86, .92); border-color: rgba(255, 196, 216, .9); }
.coming.kept { border-color: rgba(255, 196, 216, .9); background: rgba(150, 40, 86, .84); }   /* the same, off the 3D world */
/*  Round 16: the shelf board (.slot::after, 8px up from the foot) and the tallest shelf's last line
    met — the reading chip sat on the board, and with a shelf saying both "kept for Ren" and "Out of
    season" it went behind it. The foot of a shelf clears its board. */
.slot { padding-bottom: 18px; }
@media (orientation: landscape) and (max-height: 500px) { .slot { padding-bottom: 16px; } }
/*  Round 17: "Best thing you've got" was wider than a shelf on an upright phone and ran off both
    edges (since LC-080). The reading may take two lines inside its shelf rather than leave it. */
.st-read, .slot-read { max-width: 100%; box-sizing: border-box; }
.slot .slot-read, .shedtile .st-read { white-space: normal; text-align: center; text-wrap: balance; border-radius: 10px; line-height: 1.25; padding: .15em .55em; }
/*  Round 17: the season's shelves in one tap — the wish row's shape, in the season tag's green. */
.seasonrow {
    display: flex; align-items: center; gap: 10px; width: 100%; margin: 10px 0 4px; padding: 10px 12px 10px 14px;
    border-radius: 14px; border: 1.5px dashed #9cc495; background: #f1f8ee; color: #2f5a2c;
    text-align: left; font: 700 var(--fs-sm, .86rem)/1.35 var(--font-ui, system-ui); cursor: pointer;
}
.seasonrow .sr-leaf { flex: none; color: #3f7a3a; font-size: 1.1rem; line-height: 1; }
.seasonrow .sr-text { flex: 1; text-wrap: balance; }
.seasonrow .sr-do { flex: none; padding: 6px 12px; border-radius: 999px; background: #3f7a3a; color: #fff; font-weight: 800; font-size: var(--fs-xs, .78rem); white-space: nowrap; }
/*  Round 17: on a sideways phone a full counter leaves no spot where the approach bubble covers
    nothing; without its eyebrow it is a line shorter, and usually fits above the buttons. */
@media (orientation: landscape) and (max-height: 500px) {
    .bubble3d .b3-eyebrow { display: none; }
    .bubble3d { padding: 6px 11px 7px; }
}
/*  Round 18: the walker a moved bubble is about — a dot over their head in the bubble's colour. */
.bubble3d-mark {
    position: absolute; left: 0; top: 0; z-index: 3; width: 16px; height: 16px; border-radius: 50%;
    background: rgba(24, 16, 34, .8); border: 2px solid #fffdf8; box-shadow: 0 2px 6px rgba(20, 10, 30, .35);
    pointer-events: none; will-change: transform;
}
.bubble3d-mark[hidden] { display: none; }
.bubble3d-mark::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid currentColor; opacity: .0; animation: markping 1.6s ease-out infinite; }
.bubble3d-mark.ready { background: rgba(30, 88, 44, .92); color: rgba(190, 236, 178, .9); }
.bubble3d-mark.alarm { background: rgba(150, 52, 24, .94); color: rgba(255, 198, 158, .95); }
.bubble3d-mark.kept  { background: rgba(150, 40, 86, .92); color: rgba(255, 196, 216, .95); }
@keyframes markping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bubble3d-mark::after { animation: none; } }
/*  Round 18: a stranger's slip says who they are ("For a visitor off the ferry"), longer than
    "tourist's order" — and the slip's one grid column grew to the heading's full width (a grid's auto
    track takes its items' min-content, and an ellipsis heading's min-content is all of it): on a
    sideways phone the price and the third tile went past the slip's edge. The column keeps to the slip. */
.bagbar { grid-template-columns: minmax(0, 1fr); }
/* and the heading takes two lines rather than lose who it is to an ellipsis ("For a visitor …") */
.bagbar .bb-who { white-space: normal; overflow: visible; text-overflow: clip; text-wrap: balance; }
/* on a sideways phone the slip is 268 wide: the heading a size smaller, so a stranger's two lines
   ("For someone from the village") do not push the tiles under the slip's foot */
@media (max-height: 520px) and (min-aspect-ratio: 1/1) {
    .bagbar .bb-who { font-size: .84rem; line-height: 1.12; text-wrap: pretty; }
    .bagbar .bb-price { font-size: .86rem; padding: 5px 9px 6px; }
}

/* ---- The fairs, by hand (F1b) ------------------------------------------------------------
   The judge at your table: a navy button with a rosette's gold edge instead of a price, and
   the tasting sheet — one card per thing on the stall, the ones they are judging first, the
   good ones edged in leaf, the not-quite in kraft, the wrong kind dimmed. */
.guest3d.judging .g3-track { fill: #263252; stroke: #e2b54a; }
.guest3d.judging .g3-left { stroke: #f2c95a; }
.guest3d.judging .g3-price { font: 900 .9rem/1 var(--font-display, Georgia, serif); color: #fff3cf; letter-spacing: .01em; }
.guest3d.judging .g3-who { background: #263252; }
.guest3d.judging .g3-who::before { content: "\2605\00a0"; color: #f2c95a; }
.guest3d.judging .g3-face { animation: g3judge 1.6s ease-in-out infinite; }
@keyframes g3judge { 0%, 100% { scale: 1; } 50% { scale: 1.08; } }
.float3d.judge { font: 800 1.05rem/1 var(--font-display, Georgia, serif); color: #fff3cf; }
@media (prefers-reduced-motion: reduce) { .guest3d.judging .g3-face { animation: none; } }
html.quiet .guest3d.judging .g3-face { animation: none; }

.judge-lede { margin: 0 0 12px; color: var(--vp-ink, #33283c); font: 600 .92rem/1.4 var(--font-ui, system-ui); text-wrap: pretty; }
.judge-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.judge-pick {
    display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; row-gap: 2px;
    align-items: center; text-align: left; padding: 9px 11px; border-radius: 14px;
    background: var(--vp-paper, #fffaf0); border: 2px solid var(--vp-kraft, #e3d3b8); color: var(--vp-ink, #33283c);
    cursor: pointer; min-height: 60px;
}
.judge-pick .jp-art { grid-row: 1 / 3; width: 44px; height: 44px; display: grid; place-items: center; }
.judge-pick .jp-art img, .judge-pick .jp-art svg { width: 44px; height: 44px; object-fit: contain; }
.judge-pick .jp-name { font: 800 .9rem/1.2 var(--font-ui, system-ui); }
.judge-pick .jp-sub { font: 600 .74rem/1.25 var(--font-ui, system-ui); color: #6b5d72; text-wrap: pretty; }
.judge-pick.good { border-color: var(--vp-leaf, #4f9d5f); box-shadow: 0 0 0 3px rgba(79, 157, 95, .16); }
.judge-pick.good .jp-sub { color: #2f6d3c; }
.judge-pick.thin .jp-sub { color: #8a5a2a; }
.judge-pick.other { opacity: .72; }
.judge-pick:focus-visible { outline: 3px solid var(--vp-lav-ink, #573a87); outline-offset: 2px; }
.judge-none { margin: 0; color: #6b5d72; }
@media (max-height: 520px) and (min-aspect-ratio: 1/1) {
    .judge-lede { font-size: .84rem; margin-bottom: 8px; }
    .judge-picks { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
    .judge-pick { min-height: 52px; padding: 6px 9px; }
}
/* F3: on a sideways phone the van's tiles were 190px wide and their steppers 260: the "All" button ran
   out of its tile and under the next one, where no finger could reach it. Tiles as wide as a stepper
   (or the whole row), and a stepper that wraps before it overflows. */
.vanload { grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.vantile { grid-template-columns: 56px minmax(0, 1fr); }
.vantile .vt-steps { flex-wrap: wrap; row-gap: 6px; }
/* F3: on a sideways phone the counter's buttons sit just under the clock, and the judge's tip ("Tap to
   give them a taste") above their button ran under it; there it sits beside the button instead */
@media (max-height: 520px) and (min-aspect-ratio: 1/1) {
    .guest3d.judging .g3-tip { left: auto; right: calc(100% + 8px); top: 50%; translate: 0 -50%; }
}
/* round 20: how many come to the fair, under what is packed — in rust when it will not see out the day */
.van-foot .van-crowd { font-size: var(--fs-sm, .86rem); color: var(--ink-quiet, #6b5d72); }
.van-foot .van-crowd.short { color: #a04a26; font-weight: 700; }
/* round 20: near the side of the screen a counter button's tip hangs from its inner edge, not its middle */
.guest3d.g3-tipl .g3-tip { left: auto; right: -4px; translate: 0 -100%; }
.guest3d.g3-tipr .g3-tip { left: -4px; translate: 0 -100%; }
/* round 67: with another buyer's chip right over it, "Tap to serve" hangs beside its chip (bridge.js picks the side) */
.guest3d.g3-tipside-r .g3-tip { left: calc(100% + 8px); right: auto; top: 50%; translate: 0 -50%; }
.guest3d.g3-tipside-l .g3-tip { left: auto; right: calc(100% + 8px); top: 50%; translate: 0 -50%; }
.guest3d.g3-tipfront { z-index: 5; }   /* (no side clear: the tip over the chip above; it lets taps through) */
/* round 70 (round 65's 7): a sale of $20 or more — a blend, a perfume, a full bag — its amount a size up, in gold */
.float3d.big b { font-size: 1.55em; color: #fff3c4; -webkit-text-fill-color: #fff3c4; text-shadow: 0 2px 0 #a3600f, 0 0 14px rgba(255, 210, 90, .85), 0 0 2px #5a3608; letter-spacing: .01em; }
/* round 69 (round 68's 5): nobody behind the counter — the farmer in the barn, or home in the van — the buyers' chips greyed,
   their rings still running (they're still waiting): a tap says when you're back */
.guest3d.away .g3-face, .guest3d.away .g3-ring { filter: grayscale(.85) brightness(.96); opacity: .62; transition: none; }
.guest3d.away .hot3d-hand { display: none; }
@media (max-height: 520px) and (min-aspect-ratio: 1/1) {
    /* the judge's tip beside the button on a sideways phone (round 19), whichever side has room */
    .guest3d.judging.g3-tipl .g3-tip { left: auto; right: calc(100% + 8px); top: 50%; translate: 0 -50%; }
    .guest3d.judging.g3-tipr .g3-tip { right: auto; left: calc(100% + 8px); top: 50%; translate: 0 -50%; }
}

/* ---- round 27: the knack — the timing games (App.Knack.cs, ui.js lcKnack) ----------------------------------
   One panel at the foot of the screen for cutting in rhythm, drawing the still and the ring toss: a track with
   the thing to hit on it, a marker that sweeps (or swings, or rises while held), pips for the strokes so far,
   the word for the last one, and a big button for a thumb. The markers are CSS animations whose start ui.js
   sets from the game's own clock; nothing on the track eases (each is placed by its animation alone).       */
.knack {
    position: absolute; left: 50%; bottom: calc(var(--playbar-h) + 6px); z-index: 44;
    transform: translateX(-50%);
    width: min(520px, calc(100% - 16px));
    display: grid; gap: 9px;
    padding: 12px 14px 14px;
    border-radius: 18px;
    background: #fffaf1; color: #33283c;
    box-shadow: 0 14px 36px -12px rgba(30, 18, 40, .55), 0 0 0 1px rgba(80, 60, 90, .12);
    animation: bagin .3s var(--ease-pop, ease-out) both;
    user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.knack .kn-top { display: flex; align-items: baseline; gap: 10px; }
.knack .kn-top b { font-size: var(--fs-md, 1rem); font-weight: 800; white-space: nowrap; }
.knack .kn-how { flex: 1; min-width: 0; font-size: .85rem; color: #6b5a78; }
.knack .kn-skip { flex: none; }
.knack .kn-pips { display: flex; gap: 6px; justify-content: center; }
.knack .kn-pip { width: 14px; height: 14px; border-radius: 50%; background: rgba(80, 60, 90, .14); box-shadow: inset 0 0 0 2px rgba(80, 60, 90, .18); }
.knack .kn-pip.now { box-shadow: inset 0 0 0 2px #8d6ad0; }
.knack .kn-pip.good { background: #8fc27a; box-shadow: none; }
.knack .kn-pip.perfect { background: #f0b93a; box-shadow: 0 0 0 3px rgba(240, 185, 58, .3); }
.knack .kn-pip.miss { background: #d9c9c3; box-shadow: none; }
.knack .kn-track {
    position: relative; height: 58px; border-radius: 14px; overflow: hidden;
    background: linear-gradient(180deg, #e9f0d8, #d7e4bf);
    box-shadow: inset 0 2px 6px rgba(40, 60, 20, .18);
    touch-action: none; cursor: pointer;
}
.knack .kn-track i { position: absolute; top: 0; bottom: 0; transition: none; pointer-events: none; }
/* the Fields: three bunches along the row, and the sickle passing */
.kn-cut .kn-bunch { width: 34px; margin-left: -17px; top: 10px; bottom: 10px; border-radius: 50% 50% 46% 46%;
    background: radial-gradient(circle at 50% 35%, #b79ae8, #7e5cc6 70%); box-shadow: 0 0 0 0 rgba(255, 230, 140, 0); }
.kn-cut .kn-bunch.good { background: radial-gradient(circle at 50% 35%, #d8f0c4, #8fc27a 70%); }
.kn-cut .kn-bunch.perfect { background: radial-gradient(circle at 50% 35%, #fff2c2, #f0b93a 70%); box-shadow: 0 0 14px 4px rgba(255, 210, 90, .7); }
.kn-cut .kn-bunch.miss { opacity: .35; }
/* (every marker is a layer the track's width, moved by transform alone: the phone's compositor runs it on time
   even while a frame of the world is being drawn, so the moment seen is the moment judged) */
.knack .kn-track i.kn-mark { left: 0; width: 100%; will-change: transform; }
.knack .kn-mark::before, .knack .kn-mark::after { content: ""; position: absolute; }
/* the sickle: its blade's edge is the moment; a curved blade over it, a wooden grip below */
.kn-cut .kn-mark::before { left: -2px; top: 4px; bottom: 4px; width: 4px; border-radius: 2px; background: #5d6a78; box-shadow: 0 0 0 2px rgba(255, 255, 255, .75); }
.kn-cut .kn-mark::after { left: -16px; top: 2px; width: 26px; height: 22px; border-radius: 50%; border: 4px solid #8796a6; border-color: #8796a6 #8796a6 transparent transparent;
    transform: rotate(18deg); box-sizing: border-box; }
.kn-cut .kn-mark { animation: knsweep 2600ms linear both; }
@keyframes knsweep { from { transform: translateX(0%); } to { transform: translateX(100%); } }
/* the fair: a peg, the zone that rings it, and the ring swinging over */
.kn-toss .kn-track { background: linear-gradient(180deg, #f6ead2, #ead8b4); }
.knack .kn-zone { background: rgba(143, 194, 122, .45); border-left: 2px solid rgba(70, 120, 50, .5); border-right: 2px solid rgba(70, 120, 50, .5); }
.kn-toss .kn-peg { width: 8px; margin-left: -4px; top: 14px; bottom: 6px; border-radius: 4px 4px 2px 2px; background: #9b6a3e; }
.kn-toss .kn-mark { animation: knswing 1500ms linear infinite both; }
.kn-toss .kn-mark::before { left: -15px; top: 6px; width: 30px; height: 22px; border-radius: 50%; border: 5px solid #d2573a; box-sizing: border-box; }
@keyframes knswing { 0% { transform: translateX(0%); } 50% { transform: translateX(100%); } 100% { transform: translateX(0%); } }
/* the barn: the still's gauge — cold, the green, the sweet middle, the boil — and the heat rising while held */
.kn-still .kn-track { background: linear-gradient(90deg, #dbe7f0, #f3e2c8 60%, #f5c9b6); }
.kn-still .kn-sweet { background: rgba(240, 185, 58, .55); }
.kn-still .kn-boil { right: 0; background: repeating-linear-gradient(135deg, rgba(210, 87, 58, .35) 0 6px, rgba(210, 87, 58, .15) 6px 12px); }
/* the heat: a layer the gauge's width, slid in from the left (its right edge is the needle) */
.kn-still .kn-fill { left: 0; width: 100%; transform: translateX(-100%); will-change: transform; box-sizing: border-box;
    background: linear-gradient(90deg, rgba(240, 140, 60, .25), rgba(232, 110, 50, .7)); border-right: 4px solid #c2453c; }
.kn-still .kn-fill.rising { animation: knfill 2125ms linear both; }
@keyframes knfill { from { transform: translateX(-100%); } to { transform: translateX(0%); } }
.knack .kn-word { justify-self: center; font-style: normal; font-weight: 800; font-size: 1.05rem; color: #4a3a58; animation: knword .5s var(--ease-pop, ease-out) both; }
@keyframes knword { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.knack .kn-go { width: 100%; min-height: 52px; font-size: 1.1rem; font-weight: 800; touch-action: none; }
.knack .kn-go.held { filter: brightness(.92); }
@media (prefers-reduced-motion: reduce) { .knack { animation: none; } .knack .kn-word { animation: none; } }

/* ---- round 29: the panels' juice (GAMES_ANIMATION_PLAN, kit 3) -------------------------------------------------
   Anticipation, then the answer: what is due swells with light on its beat (its own animation, started from the
   game's clock by ui.js like the markers), the sickle trails light, a stroke's bunch and pip pop, a perfect word
   radiates, a streak counts, the hunt's count bumps. All of it transform and opacity, for the compositor.     */
.knack .kn-track i.kn-due { width: 64px; margin-left: -32px; top: 0; bottom: 0; border-radius: 50%; opacity: 0;
    background: radial-gradient(closest-side, rgba(255, 250, 215, 1), rgba(255, 222, 110, .85) 50%, rgba(255, 205, 80, 0));
    animation: kndue 460ms linear both; will-change: transform, opacity; }
@keyframes kndue { 0% { opacity: 0; transform: scale(.55); } 50% { opacity: 1; transform: scale(1.3); } 100% { opacity: 0; transform: scale(.9); } }
@keyframes knduecalm { 0% { opacity: 0; } 50% { opacity: .85; } 100% { opacity: 0; } }
/* the cut: a gold ring closing on the bunch, tight round it on the beat (78% through), a glow inside */
.kn-cut .kn-track i.kn-due { width: 50px; height: 50px; top: 50%; bottom: auto; margin: -25px 0 0 -25px; box-sizing: border-box;
    border: 3px solid #f0b93a; background: radial-gradient(closest-side, rgba(255, 246, 205, .95), rgba(255, 222, 110, .55) 62%, rgba(255, 210, 90, 0));
    animation-name: knring; }
@keyframes knring { 0% { opacity: 0; transform: scale(2.2); } 30% { opacity: .7; } 78% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.3); } }
@keyframes knringcalm { 0% { opacity: 0; } 30% { opacity: .5; } 78% { opacity: 1; } 100% { opacity: 0; } }
/* the ring toss: the peg lights as the ring passes over, there and back, every swing (no fill: dark before the first) */
.kn-toss .kn-track i.kn-due { width: 44px; margin-left: -22px; animation: knblip 1500ms linear infinite none; }
@keyframes knblip { 0% { opacity: .95; transform: scale(1.15); } 14% { opacity: 0; transform: scale(.7); } 86% { opacity: 0; transform: scale(.7); } 100% { opacity: .95; transform: scale(1.15); } }
@keyframes knblipcalm { 0% { opacity: .8; } 14% { opacity: 0; } 86% { opacity: 0; } 100% { opacity: .8; } }
/* the still: the sweet middle lights as the heat comes up through it */
.kn-still .kn-track i.kn-due { margin-left: 0; border-radius: 6px; transform-origin: center;
    background: linear-gradient(180deg, rgba(255, 236, 150, .95), rgba(255, 200, 70, .85)); box-shadow: 0 0 14px 4px rgba(255, 205, 80, .7);
    animation-name: knsweetlit; }
@keyframes knsweetlit { 0% { opacity: 0; transform: scaleY(.6); } 50% { opacity: 1; transform: scaleY(1); } 100% { opacity: 0; transform: scaleY(.85); } }
/* the sickle's trail: light behind the blade as it sweeps */
.kn-cut .kn-mark .kn-trail { left: -70px; width: 68px; top: 10px; bottom: 10px; border-radius: 8px 0 0 8px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .7)); }
/* a stroke's answer on its bunch: perfect pops big, clean pops, ragged flops over */
.kn-cut .kn-bunch.perfect { animation: knbunchpop .5s var(--ease-pop, ease-out) both; }
.kn-cut .kn-bunch.good { animation: knbunchpop .38s ease-out both; }
.kn-cut .kn-bunch.miss { animation: knbunchflop .42s ease-in both; }
@keyframes knbunchpop { 0% { transform: scale(1); } 35% { transform: scale(1.45); } 100% { transform: scale(1); } }
@keyframes knbunchflop { from { transform: none; } to { transform: translateY(7px) rotate(-28deg); } }
/* the pips pop as they fill */
.knack .kn-pip.good, .knack .kn-pip.miss { animation: knpip .34s var(--ease-pop, ease-out) both; }
.knack .kn-pip.perfect { animation: knpip .46s var(--ease-pop, ease-out) both; }
@keyframes knpip { 0% { transform: scale(.3); } 60% { transform: scale(1.45); } 100% { transform: scale(1); } }
/* the word: a perfect one gold, with rays; a miss shakes its head */
.knack .kn-word { position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 7px; height: 28px; }
.knack .kn-word.none { visibility: hidden; animation: none; }   /* round 30: its line kept from the start (no jump) */
.knack .kn-word.w2 { color: #a8700c; font-size: 1.2rem; }
.knack .kn-word.w2::before { content: ""; position: absolute; left: 50%; top: 50%; width: 132px; height: 132px; margin: -66px 0 0 -66px; z-index: -1;
    border-radius: 50%; pointer-events: none;
    background: repeating-conic-gradient(rgba(255, 200, 70, .6) 0deg 9deg, rgba(255, 200, 70, 0) 9deg 30deg);
    -webkit-mask: radial-gradient(closest-side, transparent 30%, #000 46%, transparent 100%); mask: radial-gradient(closest-side, transparent 30%, #000 46%, transparent 100%);
    animation: knrays .8s ease-out both; }
@keyframes knrays { 0% { opacity: 0; transform: scale(.35) rotate(0deg); } 25% { opacity: 1; } 100% { opacity: 0; transform: scale(1.15) rotate(36deg); } }
.knack .kn-word.w1 { color: #4f7f3c; }
.knack .kn-word.w0 { color: #8a6464; animation-name: knwordmiss; animation-duration: .45s; }
@keyframes knwordmiss { 0% { transform: translateX(0); opacity: 0; } 20% { transform: translateX(-7px); opacity: 1; } 45% { transform: translateX(6px); } 70% { transform: translateX(-3px); } 100% { transform: none; opacity: 1; } }
/* how many in a row */
.knack .kn-streak { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #f0b93a; color: #fff; font-size: .74rem; font-weight: 800;
    letter-spacing: .02em; animation: knstreak .45s .12s var(--ease-pop, ease-out) both; }
.knack .kn-word.w1 .kn-streak { background: #7fb46a; }
@keyframes knstreak { 0% { transform: scale(.2) rotate(-12deg); opacity: 0; } 60% { transform: scale(1.25) rotate(4deg); opacity: 1; } 100% { transform: none; opacity: 1; } }
/* the hunt's count bumps when it goes up */
.huntbar .hu-count { display: inline-block; transform-origin: 0 60%; animation: hucount .42s var(--ease-pop, ease-out) both; }
@keyframes hucount { 0% { transform: scale(1.45); } 100% { transform: scale(1); } }
/* calm: what lights still lights, without the swelling; the rest is still */
@media (prefers-reduced-motion: reduce) {
    .knack .kn-track i.kn-due, .kn-still .kn-track i.kn-due { animation-name: knduecalm; }
    .kn-toss .kn-track i.kn-due { animation-name: knblipcalm; }
    .kn-cut .kn-track i.kn-due { animation-name: knringcalm; }
    .kn-cut .kn-bunch, .knack .kn-pip, .knack .kn-streak, .huntbar .hu-count { animation: none !important; }
    .knack .kn-word.w2::before { display: none; }
}
html.quiet .knack .kn-word.w2::before { display: none; }
html.quiet .knack .kn-track i.kn-due, html.quiet .kn-still .kn-track i.kn-due { animation-name: knduecalm; }
html.quiet .kn-toss .kn-track i.kn-due { animation-name: knblipcalm; }
html.quiet .kn-cut .kn-track i.kn-due { animation-name: knringcalm; }

/* ---- round 27: the hunts (App.Hunt.cs) — the egg hunt in the barnyard, combing the beach --------------------
   What is found is tapped in the world: its target is the thing itself, no ring and no name (the world makes it
   glint), above every other chip. The bar says what you are looking for and how many found, the time draining
   under it (ui.js starts it on the game's clock).                                                            */
.hot3d.hunt3d { z-index: 4; border-radius: 50%; }
.hot3d.comb3d { z-index: 3; }
.hot3d.hunt3d .hot3d-ring, .hot3d.hunt3d .hot3d-label, .hot3d.hunt3d .hot3d-hand { display: none; }
.huntbar {
    position: absolute; left: 50%; bottom: calc(var(--playbar-h) + 6px); z-index: 44;
    transform: translateX(-50%);
    width: min(440px, calc(100% - 16px));
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 12px;
    padding: 10px 14px 12px; border-radius: 16px;
    background: #fffaf1; color: #33283c;
    box-shadow: 0 12px 30px -12px rgba(30, 18, 40, .55), 0 0 0 1px rgba(80, 60, 90, .12);
    animation: bagin .3s var(--ease-pop, ease-out) both;
}
.huntbar b { font-size: var(--fs-md, 1rem); font-weight: 800; white-space: nowrap; }
.huntbar .hu-count { font-weight: 700; color: #5b4a6e; font-variant-numeric: tabular-nums; }
.huntbar .hu-how { grid-column: 1 / -1; grid-row: 2; font-size: .8rem; color: #6b5a78; }
.huntbar .hu-time { grid-row: 3; }
.huntbar .hu-time { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #8fc27a, #f0b93a);
    transform-origin: left center; animation: hutime 10000ms linear both; will-change: transform; }
@keyframes hutime { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .huntbar { animation: none; } }
/* round 32: a game's first time — a line over its panel (under it, for the hunt's bar sideways), a hand tapping beside it
   (pressing and holding, at the still); taps go through it */
.gm-first { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%); z-index: 2;
    display: flex; align-items: center; gap: 8px; width: max-content; max-width: min(360px, calc(100vw - 32px));
    padding: 8px 14px 8px 10px; border-radius: 14px; pointer-events: none;
    background: #3a2c48; color: #fbf3e4; font-size: .82rem; font-weight: 700; line-height: 1.25;
    box-shadow: 0 10px 24px -10px rgba(20, 10, 30, .7); animation: gfirst .35s ease-out both; }
.gm-first span { white-space: normal; }
.gm-first .gf-hand { flex: none; width: 20px; height: 28px; transform-origin: 50% 0; animation: gftap 1.1s ease-in-out infinite; }
.gm-first.gf-hold .gf-hand { animation: gfhold 2.2s ease-in-out infinite; }
@keyframes gfirst { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes gftap { 0%, 55%, 100% { transform: translateY(0); } 25% { transform: translateY(5px) scale(.94); } }
@keyframes gfhold { 0%, 100% { transform: translateY(0); } 15%, 70% { transform: translateY(5px) scale(.94); } }
@media (max-height: 500px) and (orientation: landscape) { .huntbar .gm-first { top: calc(100% + 8px); bottom: auto; } }
@media (prefers-reduced-motion: reduce) { .gm-first, .gm-first .gf-hand { animation: none; } }
/* round 32: a rare find's own card, over the hunt's bar for a moment (under it sideways, where the bar is at the top) */
.huntbar .hu-rare { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%);
    display: grid; justify-items: center; gap: 1px; padding: 8px 16px 9px; border-radius: 14px; white-space: nowrap;
    background: linear-gradient(180deg, #fff6d8, #ffe2a0); color: #4a3510; pointer-events: none;
    box-shadow: 0 10px 26px -10px rgba(120, 80, 10, .6), 0 0 0 1px rgba(200, 150, 40, .35);
    animation: hurare 2.6s ease-out both; }
.huntbar .hu-rare b { font-size: 1.05rem; font-weight: 800; }
.huntbar .hu-rare span { font-size: .78rem; font-weight: 700; color: #7a5a1c; }
@keyframes hurare { 0% { opacity: 0; transform: translate(-50%, 12px) scale(.8); } 10% { opacity: 1; transform: translate(-50%, 0) scale(1.06); }
    18% { transform: translate(-50%, 0) scale(1); } 86% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -6px); } }
@media (max-height: 500px) and (orientation: landscape) { .huntbar .hu-rare { top: calc(100% + 8px); bottom: auto; } }
@media (prefers-reduced-motion: reduce) { .huntbar .hu-rare { animation: none; } }

/* ---- round 27: talk them round (App.Pitch.cs) — somebody only looking: how they look, and what to say ------ */
.pitch {
    position: absolute; left: 50%; bottom: calc(var(--playbar-h) + 6px); z-index: 45;
    transform: translateX(-50%);
    width: min(460px, calc(100% - 16px));
    display: grid; gap: 8px;
    padding: 11px 13px 13px; border-radius: 18px;
    background: #fffaf1; color: #33283c;
    box-shadow: 0 14px 36px -12px rgba(30, 18, 40, .55), 0 0 0 1px rgba(80, 60, 90, .12);
    animation: bagin .25s var(--ease-pop, ease-out) both;
}
.pitch .pi-top { display: flex; align-items: center; gap: 10px; }
.pitch .pi-top b { flex: 1; font-size: var(--fs-md, 1rem); font-weight: 800; }
.pitch .pi-clue { margin: 0; font-size: .9rem; color: #5b4a6e; font-style: italic; }
.pitch .pi-words { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.pitch .pi-word { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 6px 10px; border-radius: 12px; text-align: left;
    font-weight: 700; font-size: .88rem; line-height: 1.15; background: #f3ecf9; color: #3b2c4c; border: 1px solid rgba(110, 80, 150, .18); }
.pitch .pi-word:active { background: #e6dbf3; }
.pitch .pi-glyph { flex: none; width: 22px; height: 22px; border-radius: 50%; background: center / 15px no-repeat; }
.pitch .pw-scent .pi-glyph { background-color: #e8dcf8; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 18V8M10 8c-3-1-4-4-3-6 2 1 3 3 3 6zm0 3c2-1 4-1 5-3-2-1-4 0-5 3z' fill='none' stroke='%237a59b8' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
.pitch .pw-taste .pi-glyph { background-color: #f8ead0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cellipse cx='10' cy='6' rx='3.2' ry='4' fill='none' stroke='%23b07a2a' stroke-width='1.8'/%3E%3Cpath d='M10 10v8' stroke='%23b07a2a' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
.pitch .pw-story .pi-glyph { background-color: #dff0e2; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 16 8 8l3 4 2-3 4 7z' fill='%234f8a5a'/%3E%3Ccircle cx='14' cy='5' r='2' fill='%23e0a83a'/%3E%3C/svg%3E"); }
.pitch .pw-bargain .pi-glyph { background-color: #f6e6c4; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='6.5' fill='none' stroke='%23b8892a' stroke-width='1.8'/%3E%3Cpath d='M10 6.5v7M8 8.2h3.2a1.4 1.4 0 0 1 0 2.8H8.8a1.4 1.4 0 0 0 0 2.8H12' fill='none' stroke='%23b8892a' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
/* with an order open on the bag bar, the words sit up under the clock and the tally instead (taps meant for
   the bag's tiles landed on them: taps.mjs, round 27) */
.pitch.over-bag { top: calc(var(--hud-h) + 108px); bottom: auto; }
@media (prefers-reduced-motion: reduce) { .pitch { animation: none; } }
.hot3d.comb3d .hot3d-label { background: rgba(146, 104, 40, .88); }
/* a sideways phone is short: the knack and the words fit under Nell's card, over the bar */
@media (max-height: 500px) and (orientation: landscape) {
    .knack { width: min(440px, calc(100% - 16px)); padding: 8px 12px 10px; gap: 5px; }
    .knack .kn-track { height: 44px; }
    .knack .kn-go { min-height: 40px; font-size: 1rem; }
    .knack .kn-pip { width: 11px; height: 11px; }
    .knack .kn-word { font-size: .92rem; height: 24px; }
    .pitch { width: min(520px, calc(100% - 16px)); padding: 8px 12px 10px; gap: 6px; }
    .pitch .pi-words { grid-template-columns: repeat(4, 1fr); }
    .pitch .pi-word { min-height: 40px; font-size: .78rem; padding: 4px 8px; }
    .pitch .pi-glyph { display: none; }
    .huntbar { padding: 7px 12px 9px; }
}
@media (max-height: 500px) and (orientation: landscape) {
    /* sideways the bag bar is a column down the left: the words go to the right, over the bar */
    .pitch.over-bag { top: auto; bottom: calc(var(--playbar-h) + 6px); left: auto; right: 10px; transform: none;
        width: min(380px, calc(100% - 300px)); animation-name: baginside; }
    .pitch.over-bag .pi-words { grid-template-columns: 1fr 1fr; }
}
.guest3d.pitching .g3-face { border-radius: 50%; box-shadow: 0 0 0 3px var(--vp-gold, #ffd56a), 0 0 18px rgba(255, 205, 90, .8); }
/* round 31: while the card is up their button steps aside — it sat exactly over the world's thought bubble of what sways
   them, which says who the card is for (and their patience is held while they're talked to) */
.guest3d.pitching { opacity: 0; pointer-events: none; }

/* ---- round 28: finds and prizes, in the Journal (App.Finds.cs) — two shelves of three, drawn when found -------- */
.fpbook .fp-head { display: grid; gap: 1px; margin-bottom: 6px; }
.fpbook .fp-head b { font-size: var(--fs-md, 1rem); font-weight: 800; color: #33283c; }
.fpbook .fp-head small { font-size: .8rem; color: #6b5a78; }
.fpbook .fp-row-head { margin: 10px 0 6px; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #7a6a8a; }
.fpbook .fp-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fpbook .fp-slot { display: grid; justify-items: center; gap: 4px; padding: 10px 6px 8px; border-radius: 14px; text-align: center;
    border: 1.5px dashed rgba(110, 90, 130, .35); background: rgba(255, 250, 241, .5); color: #8a7a96; }
.fpbook .fp-slot.has { border: 1.5px solid rgba(201, 154, 46, .45); background: #fffaf0; color: #33283c; box-shadow: 0 6px 14px -10px rgba(120, 80, 10, .5); }
.fpbook .fp-slot[role="button"] { cursor: pointer; }
.fpbook .fp-icon { width: 40px; height: 40px; display: grid; place-items: center; font-size: 1.3rem; font-weight: 800; color: rgba(110, 90, 130, .45); }
.fpbook .fp-icon svg { width: 40px; height: 40px; display: block; }
.fpbook .fp-name { font-size: .74rem; font-weight: 700; line-height: 1.2; }
.fpbook .fp-note { margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; background: #f6efdd; color: #4a3d36; font-style: italic; font-size: .86rem; line-height: 1.4;
    border-left: 3px solid #c9a86a; }
.fpbook .fp-tally { margin: 12px 0 0; font-size: .82rem; color: #5b4a6e; }
/* while a game's panel or bar is up at the foot of a phone, the toasts go up above it */
@media (max-width: 700px) {
    main.screenmode.hunting .toasts { bottom: calc(var(--playbar-h, 76px) + 92px); }
    main.screenmode.knacking .toasts { bottom: calc(var(--playbar-h, 76px) + 250px); }
}

/* ---- round 29: a game's results card (App.Card.cs; GAMES_ANIMATION_PLAN, kit 4) -----------------------------
   Where the game's panel was, when it ends: the stars hanging from its top edge and popping in one by one, what it
   gave counted up (ui.js, data-count-to), a line or two of what made it, "New best!", and away by itself.      */
.gamecard {
    position: absolute; left: 50%; bottom: calc(var(--playbar-h) + 12px); z-index: 46;
    transform: translateX(-50%);
    width: min(340px, calc(100% - 32px));
    display: grid; justify-items: center; gap: 3px; text-align: center;
    padding: 12px 18px 15px; border-radius: 20px;
    background: #fffaf1; color: #33283c;
    box-shadow: 0 18px 40px -14px rgba(30, 18, 40, .6), 0 0 0 1px rgba(80, 60, 90, .12);
    animation: gcrise .42s var(--ease-pop, ease-out) both;
    user-select: none; -webkit-user-select: none;
    pointer-events: none;                          /* round 30: a tap goes through to whatever is under it */
}
.gamecard[data-stars="-1"] { padding-top: 14px; }
.gamecard:not([data-stars="-1"]) { margin-top: 30px; }
.gamecard.gc-three { box-shadow: 0 18px 40px -14px rgba(30, 18, 40, .6), 0 0 0 2px rgba(240, 185, 58, .6), 0 0 28px rgba(255, 205, 90, .5); }
.gamecard.leaving { animation: gcleave .38s ease-in both; pointer-events: none; }
@keyframes gcrise { from { transform: translate(-50%, 36px) scale(.9); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@keyframes gcleave { from { transform: translate(-50%, 0); opacity: 1; } to { transform: translate(-50%, 18px) scale(.96); opacity: 0; } }
.gamecard .gc-stars { display: flex; align-items: flex-end; gap: 4px; margin: -38px 0 2px; }
.gamecard .gc-star { display: block; width: 38px; height: 38px; }
.gamecard .gc-star:nth-child(2) { width: 48px; height: 48px; translate: 0 -5px; }
.gamecard .gc-star svg { display: block; width: 100%; height: 100%; fill: #e6deea; stroke: #fffaf1; stroke-width: 1.8; stroke-linejoin: round;
    filter: drop-shadow(0 3px 3px rgba(60, 40, 80, .22)); }
.gamecard .gc-star.on svg { fill: #f2b631; }
.gamecard .gc-star.on { animation: gcstar .48s calc(.24s + var(--i) * .17s) var(--ease-pop, ease-out) both; }
@keyframes gcstar { 0% { transform: scale(0) rotate(-40deg); opacity: 0; } 60% { transform: scale(1.32) rotate(8deg); opacity: 1; } 100% { transform: none; opacity: 1; } }
.gamecard .gc-title { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #7a6a8a; }
.gamecard .gc-big { margin: 0; display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 0 8px; }
.gamecard .gc-n { font-size: 2.1rem; font-weight: 900; line-height: 1.05; color: #4c3576; font-variant-numeric: tabular-nums; }
.gamecard .gc-unit { font-size: 1rem; font-weight: 700; color: #4a3a58; }
.gamecard .gc-line { margin: 0; font-size: .86rem; line-height: 1.3; color: #5b4a6e; text-wrap: balance; }
.gamecard .gc-best { margin-top: 5px; padding: 3px 12px; border-radius: 999px; background: #f0b93a; color: #fff; font-style: normal; font-weight: 800;
    font-size: .8rem; letter-spacing: .03em; animation: gcbest .5s .8s var(--ease-pop, ease-out) both; }
@keyframes gcbest { 0% { transform: scale(.3) rotate(-8deg); opacity: 0; } 60% { transform: scale(1.15) rotate(2deg); opacity: 1; } 100% { transform: none; opacity: 1; } }
@media (max-height: 500px) and (orientation: landscape) {
    .gamecard { width: min(320px, calc(100% - 32px)); padding: 8px 16px 10px; gap: 1px; }
    .gamecard:not([data-stars="-1"]) { margin-top: 24px; }
    .gamecard .gc-stars { margin-top: -30px; }
    .gamecard .gc-star { width: 30px; height: 30px; }
    .gamecard .gc-star:nth-child(2) { width: 38px; height: 38px; }
    .gamecard .gc-n { font-size: 1.6rem; }
    .gamecard .gc-line { font-size: .8rem; }
    /* round 46: while the farmer holds up a treasure (the picture slides them into the left third), the card stands to
       the right (bridge.js sets data-held), and stays there till it goes */
    .gamecard { transition: left .5s var(--ease-out, ease-out); }
    html[data-held="1"] .gamecard { left: calc(100% - 12px - min(160px, 50% - 16px)); }
}
@media (prefers-reduced-motion: reduce) { .gamecard, .gamecard.leaving, .gamecard .gc-star.on, .gamecard .gc-best { animation: none; } }

/* round 29: while a game is played, Nell's errand steps aside — on a sideways phone the egg hunt's new shot put an
   egg under it, and a finger meant for the egg opened her list (which ends the game) — and sideways the hunt's bar
   goes up to the right under the clock, leaving the middle and the foot of the screen to what is being hunted */
main.screenmode.hunting .errand-pin, main.screenmode.knacking .errand-pin { display: none; }
@media (max-height: 500px) and (orientation: landscape) {
    .huntbar { top: calc(var(--hud-h) + 6px); bottom: auto; left: auto; right: 12px; transform: none; width: min(380px, calc(50% - 24px));
        animation-name: baginside; }
}

/* round 30: sideways, the timing games' panel is a low strip — the track with the button beside it, the word and the
   pips under — so the middle of a short screen is the world's: the farmer plays there now (it was a block 200px
   tall over the stall and the thrower). */
@media (max-height: 500px) and (orientation: landscape) {
    .knack { width: min(640px, calc(100% - 16px)); grid-template-columns: 1fr 172px; column-gap: 10px; row-gap: 4px;
        grid-template-areas: "top top" "track go" "word pips"; padding: 7px 12px 8px; }
    .knack .kn-top { grid-area: top; }
    .knack .kn-how { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .knack .kn-track { grid-area: track; }
    .knack .kn-go { grid-area: go; min-height: 44px; height: 44px; align-self: center; white-space: nowrap; font-size: .95rem; padding-inline: 8px; }
    .knack .kn-word { grid-area: word; justify-self: start; }
    .knack .kn-pips { grid-area: pips; justify-content: center; align-self: center; }
}

/* ==== Round 33: the game skin =====================================================================================
   Joe: "the windows for like end of day etc. need a full visual overhaul so it looks like a game like clash of clans
   or other viral games." What makes those read as a game's and not an app's (GAMES_DEPTH_PLAN, research 6): thick
   dark outlines round everything you can press; a solid lip under it that it presses down into; titles and numbers
   in a fat rounded face, white with a dark outline, so they read over any picture; a coloured title band on every
   window, and a round red × that can't be missed. Lavender Coast's own: plum outlines, a lavender band, parchment
   inside, gold for money and stars. The bundled face is Lilita One (fonts/README.txt).                          */
@font-face {
    font-family: 'Lilita One';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/lilita.woff2) format('woff2');
}
:root {
    --font-game: 'Lilita One', 'Nunito', ui-rounded, system-ui, sans-serif;
    --g-ink: #2f1f45;                    /* the outline round everything */
    --g-ink-2: #4a3466;
    --g-band-1: #b08ff0; --g-band-2: #7f5bd0; --g-band-3: #5d3eab;
    --g-parch-1: #fff9ec; --g-parch-2: #f6e6c6; --g-rim: #f0d595;
    --g-red-1: #ff8070; --g-red-2: #e0443b; --g-red-lip: #8e2621;
    --g-gold-1: #ffe27a; --g-gold-2: #f4ae2c; --g-gold-lip: #a3600f;
    --g-green-1: #a6e36f; --g-green-2: #55b043; --g-green-lip: #2f6f26;
    --g-cream-1: #fffdf6; --g-cream-2: #f3e7cf;
    /* a white number's dark outline: eight shadows round it, and a deeper one under */
    --g-outline: 1.5px 0 0 var(--g-ink), -1.5px 0 0 var(--g-ink), 0 1.5px 0 var(--g-ink), 0 -1.5px 0 var(--g-ink),
        1.1px 1.1px 0 var(--g-ink), -1.1px 1.1px 0 var(--g-ink), 1.1px -1.1px 0 var(--g-ink), -1.1px -1.1px 0 var(--g-ink), 0 3px 0 var(--g-ink);
}

/* ---- the HUD's pills: outlined, with a lip; the money in the game's face ---- */
main.screenmode .hud-cash, main.screenmode .hud-day {
    border: 2.5px solid var(--g-ink); background: linear-gradient(180deg, var(--g-cream-1), var(--g-cream-2));
    box-shadow: 0 3px 0 var(--g-ink), inset 0 2px 0 rgba(255, 255, 255, .8);
}
main.screenmode .hud-cash b { font-family: var(--font-game); font-variation-settings: normal; font-weight: 400; font-size: 1.28rem; letter-spacing: .01em; color: #5a3a92; }
main.screenmode .hud-cash .hc-goal { font-weight: 800; }
main.screenmode .hud-day b { font-family: var(--font-game); font-weight: 400; font-size: 1.02rem; letter-spacing: .01em; }
main.screenmode .soundbtn, main.screenmode .hud-help {
    border: 2.5px solid var(--g-ink); background: linear-gradient(180deg, var(--g-cream-1), var(--g-cream-2)); color: var(--g-ink-2);
    box-shadow: 0 3px 0 var(--g-ink), inset 0 2px 0 rgba(255, 255, 255, .8);
}
main.screenmode .soundbtn:active, main.screenmode .hud-help:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--g-ink); }

/* ---- the stock rail (App.Stock.cs): what the farm has, beside the money (under it, upright) ---- */
.hud-stock { display: flex; align-items: center; gap: 5px; min-width: 0; pointer-events: auto; }
.hud-stock .hs-item {
    position: relative; display: inline-flex; align-items: center; gap: 3px; height: 32px; padding: 0 8px 0 4px; margin: 0;
    border-radius: 11px; border: 2.5px solid var(--g-ink); background: linear-gradient(180deg, var(--g-cream-1), var(--g-cream-2));
    box-shadow: 0 3px 0 var(--g-ink), inset 0 2px 0 rgba(255, 255, 255, .8); color: var(--g-ink); cursor: pointer;
    font: inherit; transition: none;
}
.hud-stock .hs-item:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--g-ink); }
.hud-stock .hs-ico { display: grid; place-items: center; width: 22px; height: 22px; }
.hud-stock .hs-ico svg { width: 22px; height: 22px; }
.hud-stock .hs-n { font-family: var(--font-game); font-weight: 400; font-size: 1.06rem; line-height: 1; font-variant-numeric: tabular-nums; color: var(--g-ink);
    animation: hs-pop .5s cubic-bezier(.2, 1.6, .4, 1) both; }
.hud-stock .hs-item.none { opacity: .62; }
.hud-stock .hs-item.none .hs-n { color: #7a6a88; }
.hud-stock .hs-fill { position: absolute; left: 6px; right: 6px; bottom: 3px; height: 3px; border-radius: 2px; background: rgba(47, 31, 69, .16); overflow: hidden; }
.hud-stock .hs-fill::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--f, 0%); background: linear-gradient(90deg, #8a6fc8, #b896ef); border-radius: 2px; }
.hud-stock .hs-fill.full::after { background: linear-gradient(90deg, #e0443b, #ff8070); }
.hud-stock .hs-badge { position: absolute; top: -9px; right: -7px; padding: 1px 5px; border-radius: 999px; border: 2px solid var(--g-ink);
    background: linear-gradient(180deg, var(--g-gold-1), var(--g-gold-2)); color: var(--g-ink); font: 400 .66rem/1.1 var(--font-game); letter-spacing: .02em; }
.hud-stock.busy { pointer-events: none; }
@keyframes hs-pop { 0% { transform: scale(.4); } 55% { transform: scale(1.35); color: #6b45c0; } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .hud-stock .hs-n { animation: none; } }
/* a laptop and a sideways phone: in the strip beside the money; an upright phone: a row of its own under it, and
   everything placed under the strip moves down with it (it is all placed from --hud-h) */
@media (max-width: 640px) {
    /* (a row of its own under the strip, not a wrap of it: wrapped, the evening's longer day pill pushed the sound
       button down beside it) */
    main.screenmode { --hud-h: 92px; }
    main.screenmode .hud-stock { position: absolute; left: 12px; right: 12px; top: 56px; gap: 5px; }
    main.screenmode .hud-stock .hs-item { flex: 1 1 0; min-width: 0; justify-content: center; padding: 0 4px 0 2px; gap: 2px; }
    main.screenmode .hud-stock .hs-ico, main.screenmode .hud-stock .hs-ico svg { width: 19px; height: 19px; }
    main.screenmode .hud-stock .hs-n { font-size: 1rem; }
    main.screenmode .hud-day b { font-family: var(--font-ui); font-weight: 800; font-size: inherit; letter-spacing: 0; }
    main.screenmode .hud-day:has(> .hud-coach) { height: 40px; }      /* (two lines, inside the thicker rim) */
}
@media (max-height: 500px) and (orientation: landscape) {
    /* the strip is full sideways: the day's pill says the day, the weather and the coach, as upright, not the season */
    main.screenmode .hud-day > span:not(.hud-sep):not(.hud-weather):not(.hud-coach) { display: none; }
    main.screenmode .hud-day .hud-sep:first-of-type { display: none; }
    main.screenmode .hud-day .hud-w-long { display: none; }
    main.screenmode .hud-day .hud-w-short { display: inline; }
    main.screenmode .hud-day { flex: none; }
    main.screenmode .hud-top { gap: 7px; }
    main.screenmode .hud-cash { flex: none; }
    .hud-stock { gap: 4px; flex: 0 1 auto; }
    .hud-stock .hs-item { height: 30px; padding: 0 5px 0 2px; gap: 2px; }
    .hud-stock .hs-ico, .hud-stock .hs-ico svg { width: 17px; height: 17px; }
    .hud-stock .hs-n { font-size: .92rem; }
}

/* a small phone on its side (an SE is 667 across) has no room in the strip for it: a row under the day's pill, at the
   right — under the money, it pushed Nell's errand down over the barnyard's goats and the beach's chip */
@media (max-height: 500px) and (orientation: landscape) and (max-width: 819px) {
    main.screenmode .hud-stock { position: absolute; right: 12px; top: 54px; }
}
/* round 61: a phone on its side with the strip to itself — the salt made the rail eight, and its last place lay over the
   day's pill (it touched it with seven): the weather says itself by its picture there, and the rail packs closer */
@media (max-height: 500px) and (orientation: landscape) and (min-width: 820px) and (max-width: 980px) {
    main.screenmode .hud-day .hud-w-short { display: none; }
    main.screenmode .hud-stock { gap: 3px; }
    main.screenmode .hud-stock .hs-item { padding: 0 4px 0 1px; }
}

/* the map's own strip ("The farm from above ×") goes under the rail where the rail has a row of its own */
@media (max-width: 640px) { main.screenmode .mapover-head { top: calc(env(safe-area-inset-top, 0px) + 100px); } }
@media (max-height: 500px) and (orientation: landscape) and (max-width: 819px) { main.screenmode .mapover-head { top: calc(env(safe-area-inset-top, 0px) + 94px); } }

/* ---- the play bar: tiles and verbs with outlines and a lip; labels in the game's face ---- */
main.screenmode .pb-btn {
    border: 2.5px solid var(--g-ink); background: linear-gradient(180deg, var(--g-cream-1), var(--g-cream-2)); color: var(--g-ink-2);
    box-shadow: 0 4px 0 var(--g-ink), inset 0 2px 0 rgba(255, 255, 255, .85), 0 12px 20px -10px rgba(20, 10, 30, .6);
    font-family: var(--font-game); font-weight: 400; letter-spacing: .03em;
}
main.screenmode .pb-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--g-ink), inset 0 2px 0 rgba(255, 255, 255, .85); }
main.screenmode .pb-btn.on { background: linear-gradient(180deg, var(--g-band-1), var(--g-band-2)); color: #fff; border-color: var(--g-ink); box-shadow: 0 4px 0 var(--g-ink), inset 0 2px 0 rgba(255, 255, 255, .4); }
main.screenmode .verb.primary {
    border: 2.5px solid var(--g-ink);
    background: linear-gradient(180deg, var(--g-band-1) 0%, var(--g-band-2) 52%, var(--g-band-3) 100%);
    box-shadow: 0 5px 0 var(--g-ink), inset 0 2px 0 rgba(255, 255, 255, .45), inset 0 -4px 0 rgba(47, 31, 69, .25), 0 14px 26px -10px rgba(60, 30, 110, .8);
}
main.screenmode .verb.primary b { font-family: var(--font-game); font-weight: 400; font-size: 1.32rem; letter-spacing: .02em; color: #fff; text-shadow: var(--g-outline); }
main.screenmode .verb.primary small { font-weight: 800; color: #fff; opacity: .95; text-shadow: 0 1px 0 var(--g-ink); }
main.screenmode .verb.primary:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 var(--g-ink), inset 0 2px 0 rgba(255, 255, 255, .45); }
main.screenmode .verb.primary:disabled { border-color: var(--g-ink); background: linear-gradient(180deg, var(--g-cream-1), var(--g-cream-2)); box-shadow: 0 4px 0 var(--g-ink); }
main.screenmode .verb.primary:disabled b { color: #5a5164; text-shadow: none; }
main.screenmode .verb.primary:disabled small { color: #5a5164; text-shadow: none; }
main.screenmode.ph-morning .verb.primary:not(:disabled), main.screenmode.ph-evening .verb.primary { animation: g-breathe 2.4s ease-in-out var(--announce); }
@keyframes g-breathe { 0%, 100% { filter: none; } 50% { filter: brightness(1.12) saturate(1.1); } }
main.screenmode .verb.second {
    border: 2.5px solid var(--g-ink); background: linear-gradient(180deg, var(--g-cream-1), var(--g-cream-2)); color: var(--g-ink-2);
    box-shadow: 0 4px 0 var(--g-ink), inset 0 2px 0 rgba(255, 255, 255, .85); font-family: var(--font-game); font-weight: 400; letter-spacing: .02em;
}
main.screenmode .verb.second small { font-family: var(--font-ui); font-weight: 800; }
main.screenmode .verb.second:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--g-ink); }
@media (max-width: 640px) {
    /* round 33: "the tiny map button" — the three tiles a little bigger on a phone, their words readable */
    main.screenmode .pb-btn { width: 50px; height: 50px; font-size: .62rem; }
    main.screenmode .pb-btn .pb-ico svg { width: 21px; height: 21px; }
    main.screenmode .verb.primary b { font-size: 1.08rem; }
    main.screenmode .pb-verb:has(.second) .verb.primary b { font-size: .98rem; }
}

/* ---- the windows: a plum frame, a lavender title band, parchment inside, a round red × ---- */
main.screenmode .sheet {
    border: 3px solid var(--g-ink);
    border-radius: 22px;
    background: radial-gradient(130% 50% at 50% 0%, rgba(255, 255, 255, .7) 0%, transparent 70%), linear-gradient(180deg, var(--g-parch-1) 0%, var(--g-parch-2) 100%);
    box-shadow: inset 0 0 0 3px var(--g-rim), 0 6px 0 rgba(47, 31, 69, .6), 0 28px 54px -18px rgba(20, 10, 30, .75);
}
main.screenmode .sheet-head {
    position: relative; justify-content: center; min-height: 54px; padding: 9px 58px 11px;
    background: linear-gradient(180deg, var(--g-band-1) 0%, var(--g-band-2) 55%, var(--g-band-3) 100%);
    border-bottom: 3px solid var(--g-ink);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .4), inset 0 -4px 0 rgba(47, 31, 69, .28);
    touch-action: none;                                /* a swipe down it closes the window (ui.js) */
}
main.screenmode .sheet-head::before {                  /* a grab bar: this can be pulled down */
    content: ""; position: absolute; left: 50%; top: 5px; width: 38px; height: 4px; margin-left: -19px; border-radius: 2px; background: rgba(255, 255, 255, .45);
}
main.screenmode .sheet-head h3 {
    font-family: var(--font-game); font-variation-settings: normal; font-weight: 400; font-size: 1.62rem; line-height: 1.1;
    color: #fff; letter-spacing: .015em; text-transform: none; text-align: center; text-shadow: var(--g-outline), 0 5px 0 rgba(47, 31, 69, .35);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 2px 4px 4px;
}
main.screenmode .sheet-close, main.screenmode .mapover-x {
    position: absolute; right: 10px; top: 50%; translate: 0 -50%;
    width: 40px; height: 40px; border-radius: 50%; padding: 0;
    border: 3px solid var(--g-ink); color: #fff;
    background: radial-gradient(circle at 36% 30%, #ffb2a6 0%, var(--g-red-1) 30%, var(--g-red-2) 100%);
    box-shadow: 0 3px 0 var(--g-ink), inset 0 -3px 0 rgba(120, 20, 20, .3), inset 0 2px 0 rgba(255, 255, 255, .45);
}
main.screenmode .mapover-x { position: static; translate: none; }
main.screenmode .sheet-close:hover, main.screenmode .mapover-x:hover { background: radial-gradient(circle at 36% 30%, #ffc3b9 0%, #ff8f80 30%, #ea5147 100%); color: #fff; }
main.screenmode .sheet-close:active, main.screenmode .mapover-x:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--g-ink); }
main.screenmode .sheet-close svg, main.screenmode .mapover-x svg { width: 16px; height: 16px; stroke-width: 3.4; filter: drop-shadow(0 1.5px 0 var(--g-ink)); }
main.screenmode .sheet-body { padding: 14px 16px 18px; }
/* what's pressed inside a window: the same chunky buttons */
main.screenmode .sheet button.primary, main.screenmode .sheet .primary.big {
    border: 2.5px solid var(--g-ink); border-radius: 14px; color: #fff;
    background: linear-gradient(180deg, var(--g-green-1) 0%, var(--g-green-2) 100%);
    box-shadow: 0 4px 0 var(--g-ink), inset 0 2px 0 rgba(255, 255, 255, .5), inset 0 -3px 0 rgba(20, 60, 20, .25);
    font-family: var(--font-game); font-weight: 400; letter-spacing: .02em; text-shadow: var(--g-outline);
}
main.screenmode .sheet button.primary:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--g-ink); }
main.screenmode .sheet button.primary:disabled { background: linear-gradient(180deg, #e9e2d6, #d6cbb8); color: #7a6f68; text-shadow: none; box-shadow: 0 3px 0 rgba(47, 31, 69, .45); border-color: rgba(47, 31, 69, .6); }
main.screenmode .sheet button.ghost:not(.tiny) {
    border: 2.5px solid var(--g-ink); border-radius: 14px; background: linear-gradient(180deg, var(--g-cream-1), var(--g-cream-2)); color: var(--g-ink-2);
    box-shadow: 0 4px 0 var(--g-ink), inset 0 2px 0 rgba(255, 255, 255, .85); font-family: var(--font-game); font-weight: 400; letter-spacing: .02em; padding: 8px 18px;
}
main.screenmode .sheet button.ghost:not(.tiny):active { transform: translateY(3px); box-shadow: 0 1px 0 var(--g-ink); }
@media (max-width: 640px) {
    main.screenmode .sheet { left: 6px; right: 6px; border-radius: 22px 22px 14px 14px; }
    main.screenmode .sheet-head { min-height: 50px; padding: 8px 54px 10px; }
    main.screenmode .sheet-head h3 { font-size: 1.4rem; }
    main.screenmode .sheet-close { width: 38px; height: 38px; right: 8px; }
    main.screenmode .sheet-body { padding: 12px 12px 16px; }
}

/* ---- a game's results card: framed as a window, its stars outlined in plum, its number in the game's face ---- */
main.screenmode .gamecard {
    border: 3px solid var(--g-ink); border-radius: 20px; padding-top: 14px;
    background: linear-gradient(180deg, var(--g-parch-1), var(--g-parch-2));
    box-shadow: inset 0 0 0 3px var(--g-rim), 0 5px 0 rgba(47, 31, 69, .6), 0 22px 40px -14px rgba(20, 10, 30, .7);
}
main.screenmode .gamecard.gc-three { box-shadow: inset 0 0 0 3px var(--g-gold-1), 0 5px 0 rgba(47, 31, 69, .6), 0 0 34px rgba(255, 205, 90, .75); }
main.screenmode .gamecard .gc-star svg { fill: #d9cfe0; stroke: var(--g-ink); stroke-width: 1.6; filter: drop-shadow(0 3px 0 rgba(47, 31, 69, .55)); }
main.screenmode .gamecard .gc-star.on svg { fill: #ffc531; }
main.screenmode .gamecard .gc-title { display: inline-block; margin-top: 2px; padding: 4px 16px 5px; border-radius: 10px; border: 2.5px solid var(--g-ink);
    background: linear-gradient(180deg, var(--g-band-1), var(--g-band-3)); color: #fff; font: 400 .98rem/1.1 var(--font-game); letter-spacing: .03em; text-transform: none; text-shadow: var(--g-outline); }
main.screenmode .gamecard .gc-n { font-family: var(--font-game); font-weight: 400; font-size: 2.6rem; color: #fff; text-shadow: var(--g-outline), 0 5px 0 rgba(47, 31, 69, .35); }
main.screenmode .gamecard .gc-unit { font-weight: 800; color: var(--g-ink-2); }
main.screenmode .gamecard .gc-best { border: 2.5px solid var(--g-ink); background: linear-gradient(180deg, var(--g-gold-1), var(--g-gold-2)); color: var(--g-ink); font: 400 .92rem/1.1 var(--font-game); }

/* ---- the day's card: a result screen ---- */
main.screenmode .sheet-daycard .sheet-head h3 { font-size: 1.8rem; }
main.screenmode .daycard { gap: 12px; padding-top: 4px; }
main.screenmode .daycard .dc-weather { font-weight: 800; color: var(--g-ink-2); order: -2; }
main.screenmode .daycard .dc-stars { order: -1; }                  /* the stars first, as a result screen has them */
/* the stars: big, outlined, the middle one higher; each slams in with a burst */
main.screenmode .daycard .dc-stars { gap: 6px; align-items: flex-end; margin: 4px 0 -2px; font-size: 0; }
main.screenmode .daycard .dc-stars .star { position: relative; display: block; width: 58px; height: 58px; color: inherit; text-shadow: none; animation: dc-star .6s cubic-bezier(.2, 1.5, .4, 1) both; }
main.screenmode .daycard .dc-stars .star:nth-child(2) { width: 76px; height: 76px; translate: 0 -10px; }
main.screenmode .daycard .dc-stars .star svg { display: block; width: 100%; height: 100%; fill: #d9cfe0; stroke: var(--g-ink); stroke-width: 1.5; stroke-linejoin: round; filter: drop-shadow(0 4px 0 rgba(47, 31, 69, .5)); }
main.screenmode .daycard .dc-stars .star.lit svg { fill: #ffc531; }
main.screenmode .daycard .dc-stars .star.lit::after { content: ""; position: absolute; inset: -30%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 220, 110, .85) 0%, rgba(255, 220, 110, 0) 62%);
    animation: dc-burst .7s ease-out both; animation-delay: inherit; z-index: -1; pointer-events: none; }
@keyframes dc-star { 0% { transform: scale(2.6) rotate(-30deg); opacity: 0; } 55% { transform: scale(.88) rotate(6deg); opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes dc-burst { 0% { transform: scale(.2); opacity: 0; } 40% { opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
/* the takings: a coin and a big white number, outlined, counted up */
main.screenmode .daycard .dc-take { gap: 4px; }
main.screenmode .daycard .dc-take .dc-lbl { font: 400 .95rem/1 var(--font-game); letter-spacing: .08em; color: var(--g-ink-2); }
main.screenmode .daycard .dc-big { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-game); font-variation-settings: normal; font-weight: 400;
    font-size: 3rem; letter-spacing: .01em; color: #fff; text-shadow: var(--g-outline), 0 6px 0 rgba(47, 31, 69, .35); font-variant-numeric: tabular-nums; }
main.screenmode .daycard .dc-coin { display: grid; place-items: center; width: 46px; height: 46px; }
main.screenmode .daycard .dc-coin svg { width: 46px; height: 46px; filter: drop-shadow(0 3px 0 rgba(47, 31, 69, .55)); }
main.screenmode .daycard .dc-amt.counted { animation: dc-land .35s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes dc-land { 0% { transform: scale(1.14); } 100% { transform: none; } }
/* what came of it: chunky chips */
main.screenmode .daycard .dc-profit, main.screenmode .daycard .dc-tips, main.screenmode .daycard .dc-errands, main.screenmode .daycard .dc-made, main.screenmode .daycard .dc-short {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px 6px; border-radius: 12px; border: 2.5px solid var(--g-ink);
    box-shadow: 0 3px 0 var(--g-ink); font: 400 1rem/1.15 var(--font-game); letter-spacing: .02em;
}
main.screenmode .daycard .dc-profit.good { background: linear-gradient(180deg, #d9f5c4, #a8df86); color: #1f4a1a; }
main.screenmode .daycard .dc-profit.bad { background: linear-gradient(180deg, #ffd8d2, #f6a59a); color: #6a1a14; }
main.screenmode .daycard .dc-tips { background: linear-gradient(180deg, var(--g-gold-1), var(--g-gold-2)); color: var(--g-ink); }
main.screenmode .daycard .dc-errands { background: linear-gradient(180deg, #e8dcff, #cbb6f4); color: var(--g-ink); }
main.screenmode .daycard .dc-party { background: linear-gradient(180deg, #fbefd9, #f0d6a6); color: #5a3a14; }   /* round 62: the coach party took tea */
main.screenmode .daycard .dc-made { background: linear-gradient(180deg, #e4f3dc, #c4e3b2); color: #234a1f; font-size: .92rem; }
main.screenmode .daycard .dc-short { background: #fff3e6; color: #6a3a14; font-family: var(--font-ui); font-weight: 800; font-size: .86rem; }
/* the figures: tiles, the number big and the words under it */
main.screenmode .daycard .dc-figs, main.screenmode .daycard .dc-counter { display: grid; grid-template-columns: repeat(auto-fit, minmax(74px, 1fr)); gap: 8px; width: 100%; max-width: 520px; }
main.screenmode .daycard .dc-figs > span, main.screenmode .daycard .dc-counter > span {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 7px 4px 8px; border-radius: 14px;
    border: 2.5px solid var(--g-ink); background: linear-gradient(180deg, var(--g-cream-1), var(--g-cream-2)); box-shadow: 0 3px 0 var(--g-ink), inset 0 2px 0 #fff;
    font-size: .74rem; font-weight: 800; line-height: 1.15; color: var(--g-ink-2); text-align: center;
}
main.screenmode .daycard .dc-figs > span > b, main.screenmode .daycard .dc-counter > span > b {
    margin: 0; font-family: var(--font-game); font-weight: 400; font-size: 1.7rem; line-height: 1; color: #fff; text-shadow: var(--g-outline);
}
main.screenmode .daycard .dc-figs .dc-gaveup { background: linear-gradient(180deg, #fff0ec, #ffd2c9); color: #8a2a1e; }
main.screenmode .daycard .dc-figs .dc-gaveup b { color: #ff7a66; }
main.screenmode .daycard .dc-counter .dc-run { background: linear-gradient(180deg, var(--g-gold-1), var(--g-gold-2)); color: var(--g-ink); }
main.screenmode .daycard .dc-counter .dc-run b { font-family: var(--font-game); font-size: 1.02rem; line-height: 1.05; color: #fff; }
main.screenmode .daycard .dc-newbest { padding: 6px 16px; border-radius: 12px; border: 2.5px solid var(--g-ink); box-shadow: 0 3px 0 var(--g-ink);
    background: linear-gradient(180deg, var(--g-gold-1), var(--g-gold-2)); color: var(--g-ink); font: 400 1.1rem/1.1 var(--font-game); letter-spacing: .03em; }
/* the deed: a thick bar to fill */
main.screenmode .daycard .deedmeter { width: 100%; max-width: 420px; border: 2.5px solid var(--g-ink); border-radius: 14px; background: linear-gradient(180deg, #f3ecfb, #e3d6f4); box-shadow: 0 3px 0 var(--g-ink); }
main.screenmode .daycard .deedmeter .dm-head b { font: 400 .9rem/1 var(--font-game); letter-spacing: .06em; color: var(--g-ink-2); }
main.screenmode .daycard .deedmeter .dm-figs b { font-family: var(--font-game); font-weight: 400; }
main.screenmode .daycard .deedmeter .dm-bar { height: 14px; border-radius: 8px; border: 2px solid var(--g-ink); background: rgba(47, 31, 69, .18); }
main.screenmode .daycard .deedmeter .dm-bar::after { background: linear-gradient(180deg, var(--g-gold-1), var(--g-gold-2)); border-radius: 6px; }
/* the best seller and the goals met */
main.screenmode .daycard .dc-best { border: 2.5px solid var(--g-ink); border-radius: 16px; box-shadow: 0 3px 0 var(--g-ink); background: linear-gradient(180deg, var(--g-cream-1), var(--g-cream-2)); }
main.screenmode .daycard .dc-best b { font-family: var(--font-game); font-weight: 400; font-size: 1.1rem; letter-spacing: .01em; }
main.screenmode .daycard .dc-best em { font-family: var(--font-game); font-size: 1.1rem; color: var(--g-ink-2); }
main.screenmode .daycard .milestone-done { border: 2.5px solid var(--g-ink); border-radius: 16px; box-shadow: 0 3px 0 var(--g-ink); background: linear-gradient(180deg, #f1fbe9, #d6efc4); }
main.screenmode .daycard .milestone-done .m-title { font-family: var(--font-game); font-weight: 400; font-size: 1.12rem; letter-spacing: .01em; color: #234a1f; }
@media (max-width: 640px) {
    main.screenmode .daycard .dc-big { font-size: 2.5rem; }
    main.screenmode .daycard .dc-coin, main.screenmode .daycard .dc-coin svg { width: 38px; height: 38px; }
    main.screenmode .daycard .dc-stars .star { width: 50px; height: 50px; }
    main.screenmode .daycard .dc-stars .star:nth-child(2) { width: 66px; height: 66px; }
    main.screenmode .daycard .dc-figs > span > b, main.screenmode .daycard .dc-counter > span > b { font-size: 1.45rem; }
}
@media (prefers-reduced-motion: reduce) {
    main.screenmode .daycard .dc-stars .star, main.screenmode .daycard .dc-stars .star.lit::after, main.screenmode .daycard .dc-amt.counted { animation: none; }
}

/* ==== Round 34: the run at the counter (App.Run.cs; GAMES_DEPTH_PLAN, pillar 3) =====================================
   In the trading clock's row: the multiplier the run has reached, the run itself, and a bar to the next tier — in
   Lavender Rush, the Rush's time draining. And in the middle of the screen, as a tier is reached, the word for it,
   big, white and outlined, with the tips' multiplier under it.                                               */
.hud .hud-run {
    display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; margin-left: 10px; position: relative;
    padding: 3px 10px 7px 8px; border-radius: 12px; border: 2.5px solid var(--g-ink);
    background: linear-gradient(180deg, var(--g-cream-1), var(--g-cream-2)); box-shadow: 0 3px 0 var(--g-ink);
    color: var(--g-ink); text-shadow: none; animation: none;
}
.hud .hud-run .hr-x { font: 400 1.12rem/1 var(--font-game); color: #fff; letter-spacing: .01em; text-shadow: var(--g-outline);
    animation: hr-pop .5s cubic-bezier(.2, 1.6, .4, 1) both; }
.hud .hud-run .hr-n { font: 800 .72rem/1.1 var(--font-ui); letter-spacing: .01em; animation: hr-pop .4s cubic-bezier(.2, 1.6, .4, 1) both; }
.hud .hud-run .hr-bar { position: absolute; left: 8px; right: 8px; bottom: 2px; height: 3px; border-radius: 2px; background: rgba(47, 31, 69, .15); overflow: hidden; }
.hud .hud-run .hr-fill { position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); border-radius: 2px; background: linear-gradient(90deg, #8a6fc8, #b896ef); transition: width .3s ease-out; }
.hud .hud-run.t1 { background: linear-gradient(180deg, #fff6d8, #ffe39a); }
.hud .hud-run.t2 { background: linear-gradient(180deg, #ffe9a8, #ffc94d); }
.hud .hud-run.t3 { background: linear-gradient(180deg, #ffd27a, #ff9f3a); }
.hud .hud-run.t1 .hr-x { color: #ffe27a; }
.hud .hud-run.t2 .hr-x { color: #ffd04a; }
.hud .hud-run.t3 .hr-x { color: #ffb02e; }
.hud .hud-run.rush { background: linear-gradient(90deg, #b08ff0, #7f5bd0, #b08ff0); background-size: 200% 100%; color: #fff;
    animation: hr-rush 1.4s linear infinite; box-shadow: 0 3px 0 var(--g-ink), 0 0 18px rgba(255, 210, 90, .75); }
.hud .hud-run.rush .hr-x { color: #ffe27a; font-size: 1.3rem; }
.hud .hud-run.rush .hr-n { font: 400 .86rem/1 var(--font-game); letter-spacing: .03em; color: #fff; text-shadow: var(--g-outline); }
.hud .hud-run.rush .hr-bar { background: rgba(255, 255, 255, .25); }
.hud .hud-run.rush .hr-drain { width: 100%; background: linear-gradient(90deg, #ffe27a, #fff6c8); transform-origin: left center; transition: none;
    animation-name: hr-drain; animation-timing-function: linear; animation-fill-mode: both; }
@keyframes hr-pop { 0% { transform: scale(.4); } 60% { transform: scale(1.3); } 100% { transform: none; } }
@keyframes hr-rush { from { background-position: 0% 0; } to { background-position: 200% 0; } }
@keyframes hr-drain { from { transform: scaleX(1); } to { transform: scaleX(0); } }

.run-pop {
    position: absolute; left: 50%; top: 34%; z-index: 44; translate: -50% -50%;
    display: grid; justify-items: center; gap: 2px; pointer-events: none; text-align: center; white-space: nowrap;
    animation: run-pop 1.7s cubic-bezier(.2, 1.4, .4, 1) both;
}
.run-pop b { font: 400 2.6rem/1 var(--font-game); color: #fff; letter-spacing: .02em; text-shadow: var(--g-outline), 0 6px 0 rgba(47, 31, 69, .4), 0 0 26px rgba(255, 220, 110, .6); }
.run-pop span { font: 400 1.15rem/1.1 var(--font-game); letter-spacing: .03em; color: #ffe27a; text-shadow: var(--g-outline); }
.run-pop.t1 b { font-size: 2.2rem; }
.run-pop.t3 b { font-size: 2.9rem; }
.run-pop.rush b { font-size: 3.2rem; color: #ffe27a; background: none; text-shadow: var(--g-outline), 0 6px 0 rgba(47, 31, 69, .4), 0 0 40px rgba(255, 200, 80, .95); }
.run-pop.rush::before { content: ""; position: absolute; inset: -60% -30%; z-index: -1; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255, 226, 122, .55), rgba(176, 143, 240, .3) 55%, transparent 75%); animation: run-glow 1.7s ease-out both; }
.run-pop.down b { font-size: 1.7rem; color: #f4ecff; }
.run-pop.down span { color: #fff; font-family: var(--font-ui); font-weight: 800; font-size: .9rem; }
.run-pop.down { animation-name: run-drop; }
@keyframes run-pop { 0% { opacity: 0; scale: .3; rotate: -8deg; } 14% { opacity: 1; scale: 1.18; rotate: 2deg; } 24% { scale: 1; rotate: 0deg; } 80% { opacity: 1; scale: 1; } 100% { opacity: 0; scale: 1.05; translate: -50% -80%; } }
@keyframes run-drop { 0% { opacity: 0; translate: -50% -70%; } 15% { opacity: 1; translate: -50% -50%; } 80% { opacity: 1; } 100% { opacity: 0; translate: -50% -30%; } }
@keyframes run-glow { 0% { opacity: 0; scale: .4; } 25% { opacity: 1; scale: 1.1; } 100% { opacity: 0; scale: 1.4; } }
@media (max-width: 640px) { .run-pop { top: 38%; } .run-pop b { font-size: 2.1rem; } .run-pop.rush b { font-size: 2.5rem; } .run-pop span { font-size: 1rem; } }
@media (max-height: 500px) and (orientation: landscape) { .run-pop { top: 42%; } .run-pop b { font-size: 2rem; } .run-pop.rush b { font-size: 2.4rem; } }
@media (prefers-reduced-motion: reduce) {
    .run-pop, .run-pop.down, .run-pop.rush::before { animation-duration: .01s; animation-delay: 1.4s; animation-name: run-calm; }
    .hud .hud-run .hr-x, .hud .hud-run .hr-n { animation: none; }
    .hud .hud-run.rush { animation: none; }
}
@keyframes run-calm { from { opacity: 1; } to { opacity: 0; } }
/* the day's card: the Rush, a tile of its own */
main.screenmode .daycard .dc-counter .dc-rush { background: linear-gradient(180deg, #c9b0ff, #8f6be0); color: #fff; }
main.screenmode .daycard .dc-counter .dc-rush b { color: #ffe27a; }
/* round 34: which sweep of the bed the cut is on — a dot a sweep (done, now, to come) and "Row 2 of 3" */
.knack .kn-row { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; white-space: nowrap; animation: hr-pop .45s cubic-bezier(.2, 1.6, .4, 1) both; }
.knack .kn-row i { display: block; width: 9px; height: 9px; border-radius: 50%; background: rgba(47, 31, 69, .16); }
.knack .kn-row i.done { background: #7f5bd0; }
.knack .kn-row i.now { background: #ffc531; box-shadow: 0 0 0 2px var(--g-ink); }
.knack .kn-row em { font: 400 .92rem/1 var(--font-game); font-style: normal; letter-spacing: .02em; color: var(--g-ink-2); margin-left: 3px; }
.knack .kn-top:has(.kn-row) .kn-skip { margin-left: 8px; }
@media (prefers-reduced-motion: reduce) { .knack .kn-row { animation: none; } }
/* round 34: which tide is in on the beach, of three — a chip at the right of the bar's second line, popping as each comes */
.huntbar:has(.hu-tide) .hu-how { grid-column: 1 / 3; }
.huntbar .hu-tide { grid-row: 2; grid-column: 3; justify-self: end; white-space: nowrap; padding: 3px 10px 4px; border-radius: 10px;
    border: 2.5px solid var(--g-ink); box-shadow: 0 2px 0 var(--g-ink); background: linear-gradient(180deg, #bfe6f2, #74c0db); color: var(--g-ink);
    font: 400 .9rem/1.1 var(--font-game); letter-spacing: .02em; animation: hr-pop .5s cubic-bezier(.2, 1.6, .4, 1) both; }
.huntbar .hu-tide[data-tide="3"] { background: linear-gradient(180deg, #ffe27a, #f4ae2c); }
@media (prefers-reduced-motion: reduce) { .huntbar .hu-tide { animation: none; } }

/* ==== Round 34: inside the windows, the game skin too (round 33's frames; round 33's list, 3) =====================
   The Shop's cards, the stand's shelves and the shed's tiles, Nell's list, the Journal's sections: each a tile with the
   plum outline and its lip, its name in the game's face, and the numbers that matter (prices, pay) as chunky tags. */
main.screenmode .sheet .ware, main.screenmode .sheet .slot, main.screenmode .sheet .shedtile,
main.screenmode .sheet .er-item, main.screenmode .sheet .journal > .panel, main.screenmode .sheet .wishrow {
    border: 2.5px solid var(--g-ink); box-shadow: 0 4px 0 var(--g-ink), inset 0 2px 0 rgba(255, 255, 255, .8);
}
main.screenmode .sheet .ware { border-radius: 18px; background: linear-gradient(180deg, var(--g-cream-1), var(--g-cream-2)); }
main.screenmode .sheet .ware.owned { background: linear-gradient(180deg, #f6fbef, #e3f0d4); }
main.screenmode .sheet .ware-plate { border-bottom: 2.5px solid var(--g-ink); background: radial-gradient(120% 90% at 50% 100%, rgba(255, 255, 255, .7), transparent 60%), linear-gradient(180deg, #efe4fb, #e2d3f3); }
main.screenmode .sheet .ware.owned .ware-plate { background: radial-gradient(120% 90% at 50% 100%, rgba(255, 255, 255, .7), transparent 60%), linear-gradient(180deg, #e6f3dd, #d2e8c2); }
main.screenmode .sheet .ware-name, main.screenmode .sheet .ware-head h4, main.screenmode .sheet .ware-head b { font-family: var(--font-game); font-weight: 400; letter-spacing: .01em; }
main.screenmode .sheet .ware.ready:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--g-ink); border-color: var(--g-ink); }
main.screenmode .sheet .pricetag {
    border: 2.5px solid var(--g-ink); border-radius: 10px; box-shadow: 0 3px 0 var(--g-ink);
    background: linear-gradient(180deg, var(--g-gold-1), var(--g-gold-2)); color: var(--g-ink); font-family: var(--font-game); font-weight: 400;
}
main.screenmode .sheet .pricetag b { font-weight: 400; }
main.screenmode .sheet .pricetag::before { display: none; }
main.screenmode .sheet .pricetag:disabled { background: linear-gradient(180deg, #ece5d8, #d8cdb9); color: #7a6f68; box-shadow: 0 3px 0 rgba(47, 31, 69, .4); border-color: rgba(47, 31, 69, .55); }
/* the stand's shelves and the shed */
main.screenmode .sheet .slot { border-radius: 16px; background: linear-gradient(180deg, #f3eafc, var(--g-cream-1) 55%); }
main.screenmode .sheet .slot.on { box-shadow: 0 4px 0 var(--g-ink), 0 0 0 4px #ffc531; }
main.screenmode .sheet .slot.empty { border-style: dashed; box-shadow: none; background: rgba(255, 255, 255, .45); }
main.screenmode .sheet .slot-name, main.screenmode .sheet .shedtile .st-name { font-family: var(--font-game); font-weight: 400; font-size: .95rem; letter-spacing: .01em; }
main.screenmode .sheet .slot-tag { border: 2.5px solid var(--g-ink); border-radius: 9px; box-shadow: 0 2px 0 var(--g-ink); background: linear-gradient(180deg, var(--g-gold-1), var(--g-gold-2));
    color: var(--g-ink); font: 400 .95rem/1.2 var(--font-game); padding: 1px 9px; }
main.screenmode .sheet .shedtile { border-radius: 14px; background: linear-gradient(180deg, var(--g-cream-1), var(--g-cream-2)); }
main.screenmode .sheet .shedtile.current { box-shadow: 0 4px 0 var(--g-ink), 0 0 0 4px #ffc531; }
/* Nell's list */
main.screenmode .sheet .errands h4 { font-family: var(--font-game); font-weight: 400; font-size: 1.15rem; letter-spacing: .01em; color: var(--g-ink); }
main.screenmode .sheet .er-item { border-radius: 14px; background: linear-gradient(180deg, var(--g-cream-1), var(--g-cream-2)); padding: 9px 10px; }
main.screenmode .sheet .er-item.now { background: linear-gradient(180deg, #f4ecff, #e2d3f7); box-shadow: 0 4px 0 var(--g-ink), 0 0 0 3px #b08ff0; }
main.screenmode .sheet .er-item.done { box-shadow: 0 2px 0 rgba(47, 31, 69, .5); }
main.screenmode .sheet .er-item .er-text b { font-family: var(--font-game); font-weight: 400; font-size: 1.02rem; letter-spacing: .01em; }
main.screenmode .sheet .er-item .er-pay { padding: 2px 9px 3px; border-radius: 9px; border: 2.5px solid var(--g-ink); box-shadow: 0 2px 0 var(--g-ink);
    background: linear-gradient(180deg, var(--g-gold-1), var(--g-gold-2)); color: var(--g-ink); font: 400 .98rem/1.1 var(--font-game); }
main.screenmode .sheet .er-item .er-check { border: 2px solid var(--g-ink); }
main.screenmode .sheet .er-nell { border: 2.5px solid var(--g-ink); border-radius: 16px; box-shadow: 0 3px 0 var(--g-ink); background: linear-gradient(180deg, #fff7e2, #f6e6c6); }
/* the Journal */
main.screenmode .sheet .journal > .panel { border-radius: 16px; background: linear-gradient(180deg, var(--g-cream-1), var(--g-cream-2)); padding: 12px 14px; }
main.screenmode .sheet .journal > .panel h3, main.screenmode .sheet .journal .st-now .st-rank { font-family: var(--font-game); font-weight: 400; letter-spacing: .01em; }
main.screenmode .sheet .journal .deedmeter { border: 2.5px solid var(--g-ink); border-radius: 14px; background: linear-gradient(180deg, #f3ecfb, #e3d6f4); box-shadow: 0 3px 0 var(--g-ink); }
main.screenmode .sheet .journal .deedmeter .dm-bar { height: 12px; border-radius: 7px; border: 2px solid var(--g-ink); }
main.screenmode .sheet .journal .deedmeter .dm-bar::after { background: linear-gradient(180deg, var(--g-gold-1), var(--g-gold-2)); }
main.screenmode .sheet .wishrow { border-radius: 14px; background: linear-gradient(180deg, #fff0f4, #ffd9e4); }
/* round 34: a small phone on its side (667 across): Nell's errand narrower, its way there under it — at full width it lay
   over the hens', the goats' and the beach's chips (round 33's list, 5) */
@media (max-height: 500px) and (orientation: landscape) and (max-width: 819px) {
    .errand-pin { max-width: 290px; flex-wrap: wrap; row-gap: 4px; }
    .errand-pin .ep-main { flex: 1 0 100%; padding: 4px 10px 4px 4px; gap: 8px; }
    .errand-pin .ep-face { width: 30px; height: 30px; }
    .errand-pin .ep-text b { font-size: var(--fs-sm); }
    .errand-pin .ep-go { margin-left: auto; padding: 6px 10px; }
}
/* round 34: the day's card on a phone on its side, in two columns — the stars, the takings and what came of the day on
   the left, the figures, the deed and the best seller on the right — so it's all seen without scrolling (round 33's
   list, 7); the goals met and the rest under both. Upright and on a laptop the two groups are one column, as before. */
.daycard .dc-col { display: contents; }
@media (max-height: 500px) and (orientation: landscape) {
    main.screenmode .daycard:not(.shut) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); column-gap: 18px; row-gap: 10px;
        align-items: start; justify-items: center; }
    main.screenmode .daycard:not(.shut) > * { grid-column: 1 / -1; }
    main.screenmode .daycard:not(.shut) > .dc-col { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; min-width: 0; }
    main.screenmode .daycard:not(.shut) > .dc-a { grid-column: 1; }
    main.screenmode .daycard:not(.shut) > .dc-b { grid-column: 2; }
    main.screenmode .daycard .dc-stars .star { width: 44px; height: 44px; }
    main.screenmode .daycard .dc-stars .star:nth-child(2) { width: 58px; height: 58px; }
    main.screenmode .daycard .dc-big { font-size: 2.3rem; }
    main.screenmode .daycard .dc-coin, main.screenmode .daycard .dc-coin svg { width: 34px; height: 34px; }
    main.screenmode .daycard .dc-figs > span > b, main.screenmode .daycard .dc-counter > span > b { font-size: 1.3rem; }
    main.screenmode .daycard .dc-figs > span, main.screenmode .daycard .dc-counter > span { padding: 5px 4px 6px; }
}
/* (the row's label took the line from what to do, which stood a word a line: what to do goes under, the width of the panel) */
.knack .kn-top:has(.kn-row) { flex-wrap: wrap; row-gap: 2px; }
.knack .kn-top:has(.kn-row) .kn-how { order: 5; flex: 1 0 100%; }
@media (max-height: 500px) and (orientation: landscape) { .knack .kn-top:has(.kn-row) .kn-how { display: none; } }

/* ==== Round 35: each game's level, on its card (App.Card.cs) — a little bar to the next level, and a level reached
   as a ribbon of its own with the twist it brings ============================================================== */
main.screenmode .gamecard .gc-level { margin: 4px 0 0; display: inline-flex; align-items: center; gap: 7px; font: 800 .74rem/1.2 var(--font-ui); color: var(--g-ink-2); }
main.screenmode .gamecard .gc-lvbar { position: relative; display: block; width: 56px; height: 8px; border-radius: 5px; border: 2px solid var(--g-ink); background: rgba(47, 31, 69, .15); overflow: hidden; }
main.screenmode .gamecard .gc-lvbar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); background: linear-gradient(90deg, #8a6fc8, #b896ef); }
main.screenmode .gamecard .gc-levelup { margin-top: 6px; display: grid; justify-items: center; gap: 1px; padding: 6px 14px 7px; border-radius: 12px; border: 2.5px solid var(--g-ink);
    box-shadow: 0 3px 0 var(--g-ink), 0 0 22px rgba(255, 210, 90, .7); background: linear-gradient(180deg, var(--g-band-1), var(--g-band-3));
    animation: gc-lvup .7s .5s cubic-bezier(.2, 1.6, .4, 1) both; }
main.screenmode .gamecard .gc-levelup b { font: 400 1.3rem/1.05 var(--font-game); letter-spacing: .03em; color: #ffe27a; text-shadow: var(--g-outline); }
main.screenmode .gamecard .gc-levelup span { font: 800 .8rem/1.25 var(--font-ui); color: #fff; text-shadow: 0 1px 0 var(--g-ink); text-wrap: balance; }
main.screenmode .gamecard.gc-lvup { box-shadow: inset 0 0 0 3px var(--g-gold-1), 0 5px 0 rgba(47, 31, 69, .6), 0 0 40px rgba(176, 143, 240, .85); }
@keyframes gc-lvup { 0% { transform: scale(.2) rotate(-6deg); opacity: 0; } 60% { transform: scale(1.12) rotate(1deg); opacity: 1; } 100% { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { main.screenmode .gamecard .gc-levelup { animation: none; } }

/* ==== Round 35: the level-2 twists (GAMES_DEPTH_PLAN, stage 2) ================================================== */
/* the cut: a bee on one bunch — leave it be. No ring closes on it (the ring says "now"); the bee buzzes on top, flies off
   when left be, and buzzes angrily if struck */
.kn-cut .kn-track i.kn-due.bee { display: none; }
.kn-cut .kn-bunch.bee { background: radial-gradient(circle at 50% 35%, #d6c4f2, #9a7fd6 70%); }
.kn-cut .kn-bunch.bee::after { content: ""; position: absolute; left: 50%; top: 7px; width: 26px; height: 18px; margin-left: -13px; border-radius: 50%; box-sizing: border-box;
    background: repeating-linear-gradient(90deg, #2f1f45 0 4px, #ffc531 4px 9px); border: 2px solid var(--g-ink);
    box-shadow: -6px -8px 0 -2px rgba(255, 255, 255, .95), 6px -8px 0 -2px rgba(255, 255, 255, .95), -6px -8px 0 0 rgba(47, 31, 69, .5), 6px -8px 0 0 rgba(47, 31, 69, .5);
    animation: kn-buzz .22s ease-in-out infinite alternate; }
.kn-cut .kn-bunch.bee.perfect::after { animation: kn-beeoff .9s ease-in both; }
.kn-cut .kn-bunch.bee.miss { animation: knbunchflop .42s ease-in both; }
.kn-cut .kn-bunch.bee.miss::after { animation: kn-buzz .07s linear infinite alternate; background: repeating-linear-gradient(90deg, #2f1f45 0 3px, #ff8070 3px 7px); }
@keyframes kn-buzz { from { transform: translate(-2px, 1px) rotate(-10deg); } to { transform: translate(2px, -2px) rotate(10deg); } }
@keyframes kn-beeoff { 0% { transform: none; opacity: 1; } 100% { transform: translate(34px, -46px) rotate(25deg); opacity: 0; } }
/* the ring toss: the zone and the peg slide together, there and back (the game's PegAt, on its clock: ui.js) */
.knack .kn-track i.kn-pegmove { left: 0; width: 100%; will-change: transform;
    animation-name: kn-pegsway; animation-timing-function: linear; animation-iteration-count: infinite; animation-direction: alternate; animation-fill-mode: both; }
@keyframes kn-pegsway { from { transform: translateX(calc(-1 * var(--sway, 0%))); } to { transform: translateX(var(--sway, 0%)); } }
.kn-toss .kn-pegmove .kn-zone { background: rgba(255, 197, 49, .4); border-color: rgba(163, 96, 15, .55); }
/* the words: somebody in a hurry — a red rim, the line said, and a bar running out */
main.screenmode .pitch.hurry { box-shadow: inset 0 0 0 2.5px #ff8070, 0 5px 0 rgba(47, 31, 69, .6), 0 0 26px rgba(255, 110, 90, .55); }
.pitch .pi-hurry { display: grid; gap: 5px; }
.pitch .pi-hurry b { justify-self: start; font: 400 1rem/1.1 var(--font-game); letter-spacing: .02em; color: #c23a2c; animation: pi-urge .5s ease-in-out infinite alternate; }
.pitch .pi-hurrybar { display: block; height: 9px; border-radius: 6px; border: 2px solid var(--g-ink); box-sizing: border-box;
    background: linear-gradient(90deg, #e0443b, #ff8070 50%, #ffc531); transform-origin: left center;
    animation-name: hr-drain; animation-timing-function: linear; animation-fill-mode: both; }
@keyframes pi-urge { from { transform: none; } to { transform: scale(1.06); } }
/* the beach: a crab pinched you */
.huntbar .hu-pinch { position: absolute; right: 14px; top: -16px; z-index: 2; padding: 3px 11px 4px; border-radius: 10px; pointer-events: none;
    border: 2.5px solid var(--g-ink); box-shadow: 0 3px 0 var(--g-ink); background: linear-gradient(180deg, var(--g-red-1), var(--g-red-2)); color: #fff;
    font: 400 .95rem/1.1 var(--font-game); letter-spacing: .02em; text-shadow: var(--g-outline); animation: hu-pinch 1.4s ease-out both; }
@keyframes hu-pinch { 0% { opacity: 0; transform: scale(.3) rotate(-10deg); } 15% { opacity: 1; transform: scale(1.2) rotate(4deg); } 25% { transform: none; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-8px); } }
@media (max-height: 500px) and (orientation: landscape) { .huntbar .hu-pinch { top: auto; bottom: -16px; } }

/* ==== Round 35: one run for the whole farm — its chip in a game's panel ("Run 4 · ×1.25") ======================== */
.kn-run { display: inline-block; padding: 1px 8px 2px; border-radius: 9px; border: 2px solid var(--g-ink); box-shadow: 0 2px 0 var(--g-ink);
    background: linear-gradient(180deg, var(--g-cream-1), var(--g-cream-2)); color: var(--g-ink); font: 400 .8rem/1.2 var(--font-game); letter-spacing: .02em;
    font-style: normal; white-space: nowrap; animation: hr-pop .45s cubic-bezier(.2, 1.6, .4, 1) both; }
.kn-run.t1 { background: linear-gradient(180deg, #fff6d8, #ffe39a); }
.kn-run.t2 { background: linear-gradient(180deg, #ffe9a8, #ffc94d); }
.kn-run.t3, .kn-run.t4 { background: linear-gradient(180deg, #ffd27a, #ff9f3a); }
.knack .kn-word .kn-run { margin-left: 2px; }
/* in the hunt's bar, a tab on its top edge (its foot, sideways, where the bar is at the top of the screen) */
.huntbar .kn-run { position: absolute; left: 14px; top: -13px; z-index: 1; font-size: .8rem; font-weight: 400; }
@media (max-height: 500px) and (orientation: landscape) { .huntbar .kn-run { top: auto; bottom: -13px; } }
@media (prefers-reduced-motion: reduce) { .kn-run, .huntbar .hu-pinch, .pitch .pi-hurry b, .kn-cut .kn-bunch.bee::after { animation: none; } }

/* ==== Round 35: Lavender Rush's last five seconds — the meter flashes red and gold, its multiplier beats, its bar
   runs hot (and the till ticks: audio.js rushtick) ================================================================ */
.hud .hud-run.rush.ending { animation: hr-rush .7s linear infinite, hr-ending .5s ease-in-out infinite alternate; }
.hud .hud-run.rush.ending .hr-x { animation: hr-beat .5s ease-in-out infinite alternate; }
.hud .hud-run.rush.ending .hr-drain { background: linear-gradient(90deg, #e0443b, #ff8070); }
/* (the flash itself: a red wash over the meter's lavender, on and off twice a second, under its words) */
.hud .hud-run.rush.ending { isolation: isolate; border-color: #8e2621; }
.hud .hud-run.rush.ending::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 9px; pointer-events: none;
    background: linear-gradient(180deg, #ff8070, #e0443b); animation: hr-wash .5s ease-in-out infinite alternate; }
@keyframes hr-wash { from { opacity: .15; } to { opacity: .95; } }
@keyframes hr-ending { from { box-shadow: 0 3px 0 var(--g-ink), 0 0 10px rgba(255, 110, 90, .5); } to { box-shadow: 0 3px 0 var(--g-ink), 0 0 26px rgba(255, 80, 60, 1); } }
@keyframes hr-beat { from { transform: none; } to { transform: scale(1.22); } }
@media (prefers-reduced-motion: reduce) { .hud .hud-run.rush.ending, .hud .hud-run.rush.ending .hr-x, .hud .hud-run.rush.ending::before { animation: none; } .hud .hud-run.rush.ending { box-shadow: 0 3px 0 var(--g-ink), 0 0 0 3px #ff8070; } }

/* ==== Round 35: the games' panels in the game skin (round 34's list, 5) ============================================
   The cut's panel, the still's gauge and the toss, the hunt's bar, the bag's slip, the words' card, Nell's card and her
   errand: round 33's plum outline and lip, parchment inside, the title in the game's face, buttons that press down.
   Only edge, colour and face change: nothing moves, nothing a finger has learnt.                                  */
main.screenmode .knack, main.screenmode .huntbar, main.screenmode .pitch, main.screenmode .bagbar {
    border: 3px solid var(--g-ink);
    background: radial-gradient(130% 60% at 50% 0%, rgba(255, 255, 255, .7) 0%, transparent 70%), linear-gradient(180deg, var(--g-parch-1), var(--g-parch-2));
    box-shadow: inset 0 0 0 2.5px var(--g-rim), 0 5px 0 rgba(47, 31, 69, .6), 0 18px 34px -14px rgba(20, 10, 30, .7);
}
main.screenmode .knack .kn-top b, main.screenmode .huntbar > b, main.screenmode .pitch .pi-top b, main.screenmode .bagbar .bb-who {
    font-family: var(--font-game); font-variation-settings: normal; font-weight: 400; font-size: 1.14rem; letter-spacing: .015em; color: var(--g-ink-2);
}
main.screenmode .knack .kn-how, main.screenmode .huntbar .hu-how { color: #5a4a68; font-weight: 700; }
main.screenmode .huntbar .hu-count { font: 400 1.05rem/1.1 var(--font-game); letter-spacing: .02em; color: var(--g-ink); }
/* the small "Done" and "Let them look": chunky little buttons */
main.screenmode .knack .kn-skip, main.screenmode .huntbar .hu-stop, main.screenmode .pitch .pi-skip {
    border: 2.5px solid var(--g-ink); border-radius: 11px; padding: 4px 12px 5px; min-height: 0;
    background: linear-gradient(180deg, var(--g-cream-1), var(--g-cream-2)); color: var(--g-ink-2);
    box-shadow: 0 3px 0 var(--g-ink), inset 0 2px 0 rgba(255, 255, 255, .85); font: 400 .92rem/1.1 var(--font-game); letter-spacing: .02em;
}
main.screenmode .knack .kn-skip:active, main.screenmode .huntbar .hu-stop:active, main.screenmode .pitch .pi-skip:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--g-ink); }
/* the track: sunk into the panel, with an outline */
main.screenmode .knack .kn-track { border: 2.5px solid var(--g-ink); box-shadow: inset 0 3px 0 rgba(47, 31, 69, .16), inset 0 -2px 0 rgba(255, 255, 255, .5); }
main.screenmode .knack .kn-pip { box-shadow: inset 0 0 0 2px rgba(47, 31, 69, .4); }
main.screenmode .knack .kn-pip.good, main.screenmode .knack .kn-pip.perfect, main.screenmode .knack .kn-pip.miss { box-shadow: 0 0 0 2px var(--g-ink); }
main.screenmode .knack .kn-pip.now { box-shadow: inset 0 0 0 3px #7f5bd0, 0 0 0 2px var(--g-ink); }
/* the still's button: the big lavender one, pressed down while held */
main.screenmode .knack .kn-go.primary {
    border: 2.5px solid var(--g-ink); border-radius: 14px; color: #fff;
    background: linear-gradient(180deg, var(--g-band-1) 0%, var(--g-band-2) 52%, var(--g-band-3) 100%);
    box-shadow: 0 5px 0 var(--g-ink), inset 0 2px 0 rgba(255, 255, 255, .45), inset 0 -4px 0 rgba(47, 31, 69, .25);
    font: 400 1.25rem/1.1 var(--font-game); letter-spacing: .03em; text-shadow: var(--g-outline);
}
main.screenmode .knack .kn-go.primary.held { transform: translateY(4px); box-shadow: 0 1px 0 var(--g-ink), inset 0 2px 0 rgba(255, 255, 255, .45); filter: brightness(1.08); }
/* the words: four chunky choices */
main.screenmode .pitch .pi-word {
    border: 2.5px solid var(--g-ink); border-radius: 13px; background: linear-gradient(180deg, var(--g-cream-1), var(--g-cream-2)); color: var(--g-ink);
    box-shadow: 0 3px 0 var(--g-ink), inset 0 2px 0 rgba(255, 255, 255, .85); font-weight: 800;
}
main.screenmode .pitch .pi-word:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--g-ink); background: linear-gradient(180deg, #f4ecff, #e2d3f7); }
main.screenmode .pitch .pi-glyph { box-shadow: 0 0 0 2px var(--g-ink); }
main.screenmode .pitch .pi-clue { color: var(--g-ink-2); font-weight: 600; }
/* the bag's slip: the price a gold tag, the tiles chunky, the × round and red */
main.screenmode .bagbar .bb-top { border-bottom-color: rgba(47, 31, 69, .28); }
main.screenmode .bagbar .bb-price { border: 2.5px solid var(--g-ink); background: linear-gradient(180deg, var(--g-gold-1), var(--g-gold-2)); color: var(--g-ink);
    box-shadow: 0 3px 0 var(--g-ink); font: 400 1.05rem/1 var(--font-game); letter-spacing: .02em; padding: 5px 10px 6px; }
main.screenmode .bagbar .bb-x { border: 2.5px solid var(--g-ink); color: #fff; background: radial-gradient(circle at 36% 30%, #ffb2a6 0%, var(--g-red-1) 30%, var(--g-red-2) 100%);
    box-shadow: 0 2px 0 var(--g-ink); }
main.screenmode .bagbar .bb-x svg { filter: drop-shadow(0 1px 0 var(--g-ink)); }
main.screenmode .bagbar .bb-x:active { transform: translateY(2px); box-shadow: none; }
main.screenmode .bagbar .bb-time { border: 2px solid var(--g-ink); height: 10px; border-radius: 6px; box-sizing: border-box; }
main.screenmode .bagbar .bb-item { border: 2px solid rgba(47, 31, 69, .55); }
main.screenmode .bagbar .bb-item.done { border-color: var(--g-green-lip); }
main.screenmode .bagbar .bb-tile { border: 2.5px solid var(--g-ink); border-radius: 13px; background: linear-gradient(180deg, var(--g-cream-1), var(--g-cream-2));
    box-shadow: 0 4px 0 var(--g-ink), inset 0 2px 0 rgba(255, 255, 255, .85); color: var(--g-ink); }
main.screenmode .bagbar .bb-tile:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--g-ink); }
main.screenmode .bagbar .bb-tile span { font-family: var(--font-game); font-weight: 400; letter-spacing: .02em; }
/* Nell: her chalkboard, outlined; her name in the game's face, her OK a green button */
main.screenmode .nellcard { border: 3px solid var(--g-ink); box-shadow: inset 0 0 0 2px rgba(255, 240, 214, .18), 0 5px 0 rgba(20, 10, 30, .7), 0 18px 40px -12px rgba(20, 12, 28, .75); }
main.screenmode .nellcard .nc-name { font-family: var(--font-game); font-variation-settings: normal; font-weight: 400; font-size: 1.12rem; letter-spacing: .02em; color: #e3d4ff; }
main.screenmode .nellcard .nc-face { box-shadow: 0 0 0 2.5px var(--g-ink), 0 0 0 4.5px rgba(255, 240, 214, .4); }
main.screenmode .nellcard .nc-ok { border: 2.5px solid var(--g-ink); border-radius: 12px; color: #fff; background: linear-gradient(180deg, var(--g-green-1), var(--g-green-2));
    box-shadow: 0 3px 0 var(--g-ink), inset 0 2px 0 rgba(255, 255, 255, .5); font: 400 1rem/1.1 var(--font-game); letter-spacing: .03em; text-shadow: var(--g-outline); }
main.screenmode .nellcard .nc-ok:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--g-ink); }
/* her errand, pinned: a cream tile with the outline; the pay a gold tag, the way there a lavender button */
main.screenmode .errand-pin .ep-main { border: 2.5px solid var(--g-ink); background: linear-gradient(180deg, var(--g-cream-1), var(--g-cream-2)); box-shadow: 0 3px 0 var(--g-ink), inset 0 2px 0 rgba(255, 255, 255, .85); }
main.screenmode .errand-pin .ep-face { box-shadow: 0 0 0 2px var(--g-ink); }
main.screenmode .errand-pin .ep-text small { font: 400 .74rem/1.05 var(--font-game); letter-spacing: .06em; color: #6b4cae; }
/* (the thicker outline taken out of its padding: the pin no taller than round 34's, over the coast's chips upright) */
main.screenmode .errand-pin .ep-main { padding-top: 5px; padding-bottom: 5px; }
@media (max-width: 640px) { main.screenmode .errand-pin .ep-main { padding-top: 4px; padding-bottom: 4px; } }
@media (max-height: 500px) and (orientation: landscape) and (max-width: 819px) { main.screenmode .errand-pin .ep-main { padding-top: 3px; padding-bottom: 3px; } }
main.screenmode .errand-pin .ep-reward { border: 2.5px solid var(--g-ink); background: linear-gradient(180deg, var(--g-gold-1), var(--g-gold-2)); color: var(--g-ink);
    box-shadow: 0 2px 0 var(--g-ink); font: 400 .98rem/1.1 var(--font-game); letter-spacing: .02em; }
main.screenmode .errand-pin .ep-bar { border: 1.5px solid rgba(47, 31, 69, .5); height: 6px; box-sizing: border-box; }
main.screenmode .errand-pin .ep-go { border: 2.5px solid var(--g-ink); border-radius: 13px; color: #fff;
    background: linear-gradient(180deg, var(--g-band-1) 0%, var(--g-band-2) 55%, var(--g-band-3) 100%);
    box-shadow: 0 4px 0 var(--g-ink), inset 0 2px 0 rgba(255, 255, 255, .45); font: 400 1rem/1.1 var(--font-game); letter-spacing: .03em; text-shadow: var(--g-outline); }
main.screenmode .errand-pin .ep-go:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--g-ink); }

/* ==== Round 36: everything readable — Joe: "A lot is really hard to read actually" ==================================
   (The dark-mode blocks above no longer reach the game: that was most of it.) The smallest words come up to 11–12 px on
   a phone, in the game's ink rather than a faint grey, and a word on a lavender tile gets the game face's outline.
   Measured by tools/bots/legible.mjs: contrast against what is behind each word, and its size.                      */
main.screenmode .hud-cash .hc-goal { font-size: .74rem; color: #4f4360; }
main.screenmode .hud-stock .hs-badge { font-size: .74rem; padding: 0 6px; }
main.screenmode .pb-btn { font-size: .7rem; }
main.screenmode .pb-btn.on, main.screenmode .pb-btn.on .pb-lbl { color: #fff; text-shadow: var(--g-outline); }
main.screenmode .verb.second small { font-size: .74rem; }
main.screenmode .verb.primary small { text-shadow: 0 1px 0 var(--g-ink), 1px 0 0 var(--g-ink), -1px 0 0 var(--g-ink), 0 -1px 0 var(--g-ink), 0 2px 0 var(--g-ink); opacity: 1; }
main.screenmode .deedmeter .dm-head small { font-size: .74rem; }
.hot3d .hot3d-sub { font-size: .76rem; }
.bubble3d .b3-eyebrow { font-size: .72rem; opacity: .9; }
.hearts { color: #c23a64; }
@media (max-width: 640px) {
    main.screenmode .hud-day > span.hud-coach:not(.hud-sep) { font-size: 12px; }
    main.screenmode .pb-btn { font-size: .7rem; }
    main.screenmode .verb.primary small { font-size: .72rem; }
    main.screenmode .deedmeter .dm-head small { font-size: .74rem; }
}
@media (max-width: 520px) {
    .hot3d.bed3d .hot3d-label, .hot3d.barn3d .hot3d-label, .hot3d.yard3d .hot3d-label { font-size: .7rem; }
    .hot3d.map3d .hot3d-sub { font-size: .7rem; }
    /* (not the coast's farms': a size up, High Bench's label lay under the beach's chip on an upright phone) */
}

/* ==== Round 36: an order is a bag you fill (App.Bag.cs) — Joe: "make it like we are actually filling a bag visually" ===
   Beside the tiles, an open kraft-paper bag: its back wall inside, what's gone in sitting in its mouth over the rim
   (each drops in from above as its tile is tapped), and on its front the order's tag, ticked as each thing goes in.
   Filled, its top folds over and a sticker goes on — gold for a perfect bag — and the bar stays a moment, sealed.  */
.bagbar .bb-main { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; align-items: start; }
.bagbar .bb-bag { position: relative; width: 112px; height: 124px; }
.bagbar .bb-back { position: absolute; left: 9px; right: 9px; top: 20px; bottom: 6px; border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, #9b7246, #b88b58); border: 2.5px solid var(--g-ink); }
.bagbar .bb-in { position: absolute; left: 14px; right: 10px; top: 0; height: 58px; }
.bagbar .bb-thing { position: absolute; left: var(--x, 0px); bottom: var(--y, 0px); width: 44px; height: 46px; rotate: var(--r, 0deg);
    filter: drop-shadow(0 2px 0 rgba(47, 31, 69, .35)); animation: bb-drop .48s cubic-bezier(.3, 1.5, .5, 1) both; }
.bagbar .bb-thing .pa { width: 44px; height: 46px; display: block; }
.bagbar .bb-thing.fav::after { content: "\2665"; position: absolute; right: -2px; top: -4px; font: 400 .9rem/1 var(--font-game); color: #ff6f9a;
    text-shadow: var(--g-outline); animation: bb-heart .9s ease-out both; }
@keyframes bb-drop { 0% { transform: translateY(-74px) scale(.6); opacity: 0; } 55% { transform: translateY(6px) scale(1.06); opacity: 1; } 75% { transform: translateY(-3px); } 100% { transform: none; } }
@keyframes bb-heart { 0% { transform: scale(.2); opacity: 0; } 40% { transform: scale(1.6); opacity: 1; } 100% { transform: none; } }
/* the bag's front: kraft, a zigzag top (pinked edge), two fold lines; the order's tag on it */
.bagbar .bb-front { position: absolute; left: 3px; right: 3px; top: 52px; bottom: 0; z-index: 20; border-radius: 3px 3px 10px 10px;
    background: linear-gradient(90deg, rgba(0, 0, 0, .07) 0 12px, transparent 12px calc(100% - 12px), rgba(0, 0, 0, .07) calc(100% - 12px)),
        linear-gradient(180deg, #e9c48e 0%, #d6a76c 100%);
    border: 2.5px solid var(--g-ink); box-shadow: 0 3px 0 var(--g-ink); }
.bagbar .bb-front::before { content: ""; position: absolute; left: -2px; right: -2px; top: -9px; height: 9px;
    background: linear-gradient(135deg, transparent 50%, #e9c48e 50%) 0 0 / 9px 9px repeat-x, linear-gradient(225deg, transparent 50%, #e9c48e 50%) 0 0 / 9px 9px repeat-x; }
.bagbar .bb-front .bb-order { position: absolute; inset: 6px 5px 6px; display: flex; flex-wrap: wrap; gap: 3px; align-content: center; justify-content: center; }
.bagbar .bb-front .bb-item { padding: 1px 4px 1px 1px; border-radius: 9px; border: 2px solid rgba(47, 31, 69, .6); background: #fff8ec; gap: 0; }
.bagbar .bb-front .bb-item .pa { width: 26px; height: 27px; }
.bagbar .bb-front .bb-item b { font: 400 .78rem/1 var(--font-game); color: var(--g-ink); }
.bagbar .bb-front .bb-item:not(:has(b)) { padding-right: 1px; }
.bagbar .bb-front .bb-item.done { background: #e2f3df; border-color: var(--g-green-lip); }
.bagbar .bb-front .bb-item.done .pa { opacity: .45; }
.bagbar .bb-front .bb-tick { right: -6px; top: -6px; width: 17px; height: 17px; border: 2px solid var(--g-ink); }
.bagbar .bb-front .bb-tick svg { width: 11px; height: 11px; }
.bagbar .bb-item.fav::before, .bagbar .bb-tile.fav::after { content: "\2665"; position: absolute; font: 400 .8rem/1 var(--font-game); color: #ff6f9a; text-shadow: var(--g-outline); pointer-events: none; }
.bagbar .bb-item.fav::before { left: -4px; top: -6px; }
.bagbar .bb-tile.fav::after { right: 5px; top: 4px; font-size: 1rem; }
main.screenmode .bagbar .bb-tile.fav { border-color: #c23a64; box-shadow: 0 4px 0 #8e2048, inset 0 2px 0 rgba(255, 255, 255, .85); }
/* sealed: the top folds down over what's in it, and the sticker slaps on */
.bagbar .bb-fold { position: absolute; left: 3px; right: 3px; top: 30px; height: 30px; z-index: 30; border-radius: 4px 4px 2px 2px;
    background: linear-gradient(180deg, #c9965c, #e3b97f); border: 2.5px solid var(--g-ink); transform-origin: 50% 100%;
    animation: bb-fold .32s cubic-bezier(.4, 1.4, .6, 1) both; }
.bagbar .bb-sticker { position: absolute; left: 50%; top: 62px; z-index: 31; translate: -50% 0; padding: 4px 10px 5px; border-radius: 999px; white-space: nowrap;
    border: 2.5px solid var(--g-ink); box-shadow: 0 3px 0 var(--g-ink); background: linear-gradient(180deg, #e8dcff, #b9a0ef); color: #fff;
    font: 400 1rem/1 var(--font-game); letter-spacing: .02em; text-shadow: var(--g-outline); animation: bb-stick .4s .18s cubic-bezier(.2, 1.7, .4, 1) both; }
.bagbar .bb-sticker.perfect { background: linear-gradient(180deg, var(--g-gold-1), var(--g-gold-2)); }
@keyframes bb-fold { from { transform: scaleY(-1); opacity: 0; } 40% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes bb-stick { from { transform: scale(2.2) rotate(-14deg); opacity: 0; } to { transform: rotate(-6deg); opacity: 1; } }
.bagbar.sealed .bb-tiles, .bagbar.sealed .bb-time { opacity: .45; transition: opacity .2s; }
.bagbar.sealed { pointer-events: none; }
/* a phone on its side: the slip is short — the bag smaller, the tiles beside it in two columns. Round 37: the slip 300
   wide (it was 268) and the bag with it, 96 by 98 (it was 86 by 90, its things 34 px: small to see what went in). Any
   taller and a first order's bag, under its two-line hint, ran past the foot of the slip */
@media (max-height: 520px) and (min-aspect-ratio: 1/1) {
    .bagbar { width: 300px; }
    .bagbar .bb-main { grid-template-columns: 96px minmax(0, 1fr); gap: 8px; }
    .bagbar .bb-bag { width: 96px; height: 98px; }
    .bagbar .bb-back { top: 15px; }
    .bagbar .bb-in { left: 10px; height: 46px; }
    .bagbar .bb-thing, .bagbar .bb-thing .pa { width: 38px; height: 40px; }
    .bagbar .bb-front { top: 42px; }
    .bagbar .bb-fold { top: 20px; height: 26px; }
    .bagbar .bb-sticker { top: 48px; font-size: .9rem; }
    .bagbar .bb-front .bb-item .pa { width: 24px; height: 25px; }
    .bagbar .bb-main .bb-tiles { grid-template-columns: repeat(2, 1fr); }
    /* round 61: three or more on the stand — three to a row beside the bag. Two to a row, the third wrapped under the
       slip's foot, behind a scroll nobody would find (at a fair with sea salt, under a two-line name and the hint: the
       fair bot couldn't fill a bag all day) */
    .bagbar .bb-main .bb-tiles:has(> .bb-tile:nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
    .bagbar .bb-main .bb-tiles:has(> .bb-tile:nth-child(3)) .bb-tile { min-height: 54px; padding: 3px 1px; font-size: .54rem; }
    .bagbar .bb-main .bb-tiles:has(> .bb-tile:nth-child(3)) .bb-tile .pa { width: 28px; height: 29px; }
    /* round 65: four or more (the perfumery's two blends make it likelier) — shorter tiles, so a second row sits beside
       the bag, not under the slip's foot; seven or more, shorter still, so a third does */
    .bagbar .bb-main .bb-tiles:has(> .bb-tile:nth-child(4)) { gap: 4px; }
    .bagbar .bb-main .bb-tiles:has(> .bb-tile:nth-child(4)) .bb-tile { min-height: 0; padding: 1px 1px 2px; gap: 1px; line-height: 1.02; }
    .bagbar .bb-main .bb-tiles:has(> .bb-tile:nth-child(4)) .bb-tile .pa { width: 22px; height: 23px; }
    .bagbar .bb-main .bb-tiles:has(> .bb-tile:nth-child(7)) { gap: 3px 4px; }
    .bagbar .bb-main .bb-tiles:has(> .bb-tile:nth-child(7)) .bb-tile { padding: 1px; }
    .bagbar .bb-main .bb-tiles:has(> .bb-tile:nth-child(7)) .bb-tile .pa { width: 18px; height: 19px; }
}
/* a small phone on its side (667 by 375): shorter still, so the bag as round 36 had it, inside the slip's foot */
@media (max-height: 380px) and (min-aspect-ratio: 1/1) {
    .bagbar .bb-main { grid-template-columns: 84px minmax(0, 1fr); }
    .bagbar .bb-bag { width: 84px; height: 84px; }
    .bagbar .bb-back { top: 13px; }
    .bagbar .bb-in { left: 9px; height: 40px; }
    .bagbar .bb-thing, .bagbar .bb-thing .pa { width: 34px; height: 36px; }
    .bagbar .bb-front { top: 36px; }
    .bagbar .bb-fold { top: 17px; height: 22px; }
    .bagbar .bb-sticker { top: 41px; font-size: .84rem; }
    .bagbar .bb-front .bb-item .pa { width: 22px; height: 23px; }
    /* round 65: seven or more on the stand — the slip's own spacing tightened, so the third row of tiles is above its foot */
    .bagbar:has(.bb-tiles > .bb-tile:nth-child(7)) { gap: 3px; padding-bottom: 6px; }
    .bagbar:has(.bb-tiles > .bb-tile:nth-child(7)) .bb-top { padding-bottom: 3px; }
    .bagbar:has(.bb-tiles > .bb-tile:nth-child(7)) .bb-main .bb-tiles { row-gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { .bagbar .bb-thing, .bagbar .bb-fold, .bagbar .bb-sticker, .bagbar .bb-thing.fav::after { animation: none; } }

/* ==== Round 36: favourites, connected (App.Fav.cs) — "♥ Favourite! Tips ×1.5", and a regular's hearts filling ===== */
.fav-pop { position: absolute; left: 50%; top: 50%; z-index: 44; translate: -50% -50%; display: grid; justify-items: center; gap: 3px;
    pointer-events: none; white-space: nowrap; animation: fav-pop 2.1s cubic-bezier(.2, 1.4, .4, 1) both; }
.fav-pop b { font: 400 2.1rem/1 var(--font-game); color: #ff8fb1; letter-spacing: .02em;
    text-shadow: var(--g-outline), 0 5px 0 rgba(47, 31, 69, .4), 0 0 24px rgba(255, 120, 170, .7); }
.fav-pop .fp-x { font: 400 1.15rem/1.1 var(--font-game); color: #ffe27a; letter-spacing: .03em; text-shadow: var(--g-outline); }
.fav-pop .fp-hearts { display: inline-flex; align-items: center; gap: 3px; margin-top: 2px; padding: 4px 10px 5px; border-radius: 999px;
    border: 2.5px solid var(--g-ink); box-shadow: 0 3px 0 var(--g-ink); background: linear-gradient(180deg, var(--g-cream-1), var(--g-cream-2)); }
.fav-pop .fp-hearts em { font: 800 .82rem/1 var(--font-ui); font-style: normal; color: var(--g-ink); margin-right: 3px; }
.fav-pop .fp-hearts small { font: 400 .8rem/1 var(--font-game); color: #c23a64; margin-left: 4px; animation: hr-pop .5s .9s cubic-bezier(.2, 1.6, .4, 1) both; }
/* a heart: an outline, its fill rising from where it was to where it is (--was → --now) */
.fav-pop .fp-heart { position: relative; width: 17px; height: 15px; display: block;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 18'%3E%3Cpath d='M10 17 C4 12 1 9 1 5.5 A4.5 4.5 0 0 1 10 3.5 A4.5 4.5 0 0 1 19 5.5 C19 9 16 12 10 17Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 18'%3E%3Cpath d='M10 17 C4 12 1 9 1 5.5 A4.5 4.5 0 0 1 10 3.5 A4.5 4.5 0 0 1 19 5.5 C19 9 16 12 10 17Z'/%3E%3C/svg%3E") center / contain no-repeat;
    background: linear-gradient(0deg, #e8457a 0 var(--fill, var(--now)), #e9d6df var(--fill, var(--now)) 100%); }
.fav-pop .fp-heart { animation: fp-fill 1s .55s ease-out both; }
@property --fill { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
@keyframes fp-fill { from { --fill: var(--was); } to { --fill: var(--now); } }
.fav-pop .fp-heart.new { animation: fp-fill 1s .55s ease-out both, fp-beat .5s 1.4s ease-out both; }
@keyframes fp-beat { 0% { transform: none; } 40% { transform: scale(1.5); } 100% { transform: none; } }
@keyframes fav-pop { 0% { opacity: 0; scale: .4; } 12% { opacity: 1; scale: 1.12; } 22% { scale: 1; } 82% { opacity: 1; } 100% { opacity: 0; translate: -50% -70%; } }
@media (max-width: 640px) { .fav-pop { top: 54%; } .fav-pop b { font-size: 1.8rem; } }
@media (max-height: 500px) and (orientation: landscape) { .fav-pop { top: 58%; } .fav-pop b { font-size: 1.6rem; } }
@media (prefers-reduced-motion: reduce) { .fav-pop { animation-name: run-calm; animation-duration: .01s; animation-delay: 1.8s; } .fav-pop .fp-heart { animation: none; --fill: var(--now); } }
/* the words: a fifth, their favourite named — across the card, in rose */
.pitch .pi-word.pw-favourite { grid-column: 1 / -1; justify-content: center; }
main.screenmode .pitch .pi-word.pw-favourite { background: linear-gradient(180deg, #ffe3ec, #ffc2d5); border-color: #8e2048; box-shadow: 0 3px 0 #8e2048, inset 0 2px 0 rgba(255, 255, 255, .8); color: #5a1430; }
.pitch .pw-favourite .pi-glyph { background-color: #fff0f5; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 18'%3E%3Cpath d='M10 16 C4.5 11.5 2 9 2 6 A3.8 3.8 0 0 1 10 4.2 A3.8 3.8 0 0 1 18 6 C18 9 15.5 11.5 10 16Z' fill='%23e8457a'/%3E%3C/svg%3E"); }

/* ==== Round 37: the till's receipt (App.Till.cs, bridge.js floater) — every tip's parts, a line at a time ============ */
.float3d.slip { animation: float3d-slip 3.4s cubic-bezier(.2, .9, .3, 1) forwards; z-index: 62; }
.float3d.hearted { animation: float3d-slip 2.6s cubic-bezier(.2, .9, .3, 1) forwards; }
@keyframes float3d-slip { 0% { opacity: 0; transform: translateY(10px) scale(.6); } 7% { opacity: 1; transform: translateY(-6px) scale(1.1); }
    13% { transform: translateY(-10px) scale(1); } 88% { opacity: 1; transform: translateY(-20px); } 100% { opacity: 0; transform: translateY(-34px); } }
.f-slip { display: grid; gap: 1px; min-width: 150px; margin-top: 2px; padding: 6px 10px 11px;
    font: 800 .8rem/1.3 var(--font-ui, system-ui); color: #33283c; -webkit-text-stroke: 0; -webkit-text-fill-color: currentColor;
    text-shadow: none; white-space: nowrap;
    background: linear-gradient(180deg, #fffdf6, #f6efdf); border-radius: 5px 5px 0 0; filter: drop-shadow(0 4px 8px rgba(30, 16, 40, .3));
    /* the torn foot of a till roll */
    -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 5px) no-repeat, conic-gradient(from 135deg at 50% 0, #000 90deg, #0000 0) bottom / 10px 5px repeat-x;
    mask: linear-gradient(#000 0 0) top / 100% calc(100% - 5px) no-repeat, conic-gradient(from 135deg at 50% 0, #000 90deg, #0000 0) bottom / 10px 5px repeat-x; }
/* a favourite's or a wish's slip prints under the big word (App.Fav.cs) */
.fav-pop .f-slip { margin-top: 6px; min-width: 170px; }
.f-slip .fs-line { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; animation: fs-line .3s cubic-bezier(.2, 1.5, .4, 1) both; }
.f-slip .fs-v { font-variant-numeric: tabular-nums; color: #5b3d8f; }
.f-slip .fs-favx .fs-w, .f-slip .fs-favx .fs-v { color: #b8285a; }
.f-slip .fs-favx .fs-v, .f-slip .fs-run .fs-v { font: 400 1.12rem/1 var(--font-game); letter-spacing: .02em; }
/* the multipliers land with a stamp (the number, not the line: a whole line stamped ran out past the slip) */
.f-slip .fs-favx .fs-v, .f-slip .fs-run .fs-v { display: inline-block; animation: fs-stamp .42s cubic-bezier(.2, 1.5, .4, 1) both; animation-delay: inherit; }
@keyframes fs-stamp { 0% { opacity: 0; transform: scale(1.7) rotate(-8deg); } 55% { opacity: 1; transform: scale(.94); } 100% { opacity: 1; transform: none; } }
.f-slip .fs-run .fs-w { color: #8a5a00; }
.f-slip .fs-run .fs-v { color: #b06f00; }
.f-slip .fs-cap .fs-w, .f-slip .fs-most .fs-w { color: #6b5a78; font-weight: 700; }
.f-slip .fs-total { margin-top: 3px; padding-top: 4px; border-top: 1.5px dashed rgba(51, 40, 60, .4); font-size: .86rem; }
.f-slip .fs-total .fs-v { padding: 1px 8px 2px; border-radius: 999px; color: #3a2a06; background: linear-gradient(180deg, #ffe48a, #f2bf3c);
    box-shadow: 0 0 0 1.5px #7a5410; animation: fs-total .5s cubic-bezier(.2, 1.6, .4, 1) both; animation-delay: inherit; }
.f-slip .fs-none { justify-content: center; color: #7a5560; font-weight: 700; font-style: italic; }
@keyframes fs-line { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
@keyframes fs-total { 0% { transform: scale(.5); } 60% { transform: scale(1.25); } 100% { transform: none; } }

/* a regular's hearts, over them as they pay or go: the one they're working on filling or draining */
.float3d .f-hearts { order: 0; display: inline-flex; align-items: center; gap: 2px; padding: 3px 9px 4px; border-radius: 999px;
    font: 800 .76rem/1 var(--font-ui, system-ui); color: var(--g-ink, #2f1f45); -webkit-text-stroke: 0; -webkit-text-fill-color: currentColor;
    text-shadow: none; border: 2px solid var(--g-ink, #2f1f45); box-shadow: 0 2px 0 var(--g-ink, #2f1f45);
    background: linear-gradient(180deg, var(--g-cream-1, #fffdf6), var(--g-cream-2, #f3e7cf)); }
.float3d b { order: 1; }
.float3d .f-slip, .float3d i { order: 2; }
.f-hearts .fh-who { margin-right: 3px; }
.f-hearts .fh { position: relative; width: 14px; height: 13px; display: block;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 18'%3E%3Cpath d='M10 17 C4 12 1 9 1 5.5 A4.5 4.5 0 0 1 10 3.5 A4.5 4.5 0 0 1 19 5.5 C19 9 16 12 10 17Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 18'%3E%3Cpath d='M10 17 C4 12 1 9 1 5.5 A4.5 4.5 0 0 1 10 3.5 A4.5 4.5 0 0 1 19 5.5 C19 9 16 12 10 17Z'/%3E%3C/svg%3E") center / contain no-repeat;
    background: linear-gradient(0deg, #e8457a 0 var(--fill, var(--now)), #e6d3dc var(--fill, var(--now)) 100%);
    animation: fp-fill 1s .45s ease-out both; }
.f-hearts .fh.won { animation: fp-fill 1s .45s ease-out both, fp-beat .5s 1.3s ease-out both; }
.f-hearts .fh.lost { animation: fp-fill 1s .45s ease-in both, fh-shake .45s 1.3s ease-out both; }
.f-hearts .fh-words { margin-left: 4px; font: 400 .78rem/1 var(--font-game, inherit); animation: hr-pop .5s 1.1s cubic-bezier(.2, 1.6, .4, 1) both; }
.f-hearts.up .fh-words { color: #c23a64; }
.f-hearts.down .fh-words { color: #6b4a7a; }
.f-hearts.down { border-color: #6b4a7a; box-shadow: 0 2px 0 #6b4a7a; }
@keyframes fh-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-2px) rotate(-8deg); } 75% { transform: translateX(2px) rotate(8deg); } }
@media (prefers-reduced-motion: reduce) { .f-slip .fs-line, .f-slip .fs-total .fs-v, .f-slip .fs-v, .f-hearts .fh, .f-hearts .fh-words { animation: none; --fill: var(--now); } }
/* the guest book: what a heart brings, above the people (round 37) */
.guestbook .gb-key { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.guestbook .gb-key li { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 4px; border-radius: 999px;
    background: #fff4f7; border: 1.5px solid rgba(194, 58, 100, .35); font: 700 .78rem/1.2 var(--font-ui, system-ui); color: #4a2a3a; }
.guestbook .gb-key .hearts { font-size: .74rem; letter-spacing: -.04em; }
/* a wish come true: the favourite's moment in gold, with rays behind it (round 37, App.Fav.cs) */
.fav-pop.wish { animation-duration: 2.6s; }
.fav-pop.wish b { color: #ffe27a; font-size: 2.3rem; text-shadow: var(--g-outline), 0 5px 0 rgba(47, 31, 69, .4), 0 0 30px rgba(255, 210, 90, .9); }
.fav-pop.wish::before { content: ""; position: absolute; left: 50%; top: 30%; width: 260px; height: 260px; z-index: -1; translate: -50% -50%;
    border-radius: 50%; pointer-events: none;
    background: repeating-conic-gradient(from 0deg, rgba(255, 226, 122, .5) 0 8deg, rgba(255, 226, 122, 0) 8deg 22deg);
    -webkit-mask: radial-gradient(circle, #000 20%, transparent 68%); mask: radial-gradient(circle, #000 20%, transparent 68%);
    animation: wish-rays 2.6s linear both; animation-duration: inherit; }
.f-slip .fs-wish { margin-top: 2px; color: #8a5a00; }
.f-slip .fs-wish .fs-v { color: #8a5a00; }
@keyframes wish-rays { 0% { opacity: 0; rotate: 0deg; scale: .4; } 15% { opacity: 1; scale: 1; } 80% { opacity: .9; } 100% { opacity: 0; rotate: 40deg; } }
@media (max-width: 640px) { .fav-pop.wish b { font-size: 1.95rem; } }
@media (prefers-reduced-motion: reduce) { .fav-pop.wish::before { animation: none; opacity: .6; } }

/* ==== Round 38: the brass scales (App.Scales.cs) — a one-thing order weighed and bagged by itself ==================== */
.bagbar .bb-sticker.weighed { background: linear-gradient(180deg, #f6dc85, #c99d2e); }
/* round 38: a regular at three hearts takes their usual — said on the order */
.bagbar .bb-usual { flex: none; align-self: center; padding: 2px 7px 3px; border-radius: 999px; white-space: nowrap;
    font: 800 .72rem/1 var(--font-ui, system-ui); color: #8e2048; background: #ffe3ec; border: 1.5px solid #c23a64; }

/* ==== Round 39: which lavender to plant, on the bed's own sheet (App.cs, Joe: no choice unless "by hand") ========= */
.ps-varieties { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
.ps-varieties .hb-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 7px; border-radius: 999px;
    border: 2px solid rgba(47, 31, 69, .28); background: #fffaf0; color: #33283c; font: 800 .86rem/1.1 var(--font-ui, system-ui); }
.ps-varieties .hb-chip i { width: 13px; height: 13px; border-radius: 50%; background: var(--bloom, #8a6fc8); box-shadow: 0 0 0 2px rgba(47, 31, 69, .18); }
.ps-varieties .hb-chip.on { border-color: var(--g-ink, #2f1f45); background: #efe6ff; box-shadow: 0 3px 0 var(--g-ink, #2f1f45); }

/* ---- Round 39: stats explained. A chip on a Shop card is a button: a tap says what it does, under the chips. Help
   lists the stand's stats as they are, each with a line on what it does. ---- */
.ware-chips .chip.chip-what { border: 0; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: 4px; }
.ware-chips .chip.chip-what .chip-i { display: inline-grid; place-items: center; width: 13px; height: 13px; border-radius: 50%;
    font: 800 9px/1 var(--font-ui, system-ui); font-style: normal; color: #fff; background: var(--accent-deep); opacity: .55; }
.ware-chips .chip.chip-what.on { background: var(--accent-deep); color: #fff; }
.ware-chips .chip.chip-what.on .chip-i { background: #fff; color: var(--accent-deep); opacity: 1; }
/* round 62: a chip longer than the card wraps inside it ("Opens Lavender Sea Salt · $7.80" ran off the pans' card upright) */
.ware-chips .chip { max-width: 100%; white-space: normal; text-align: left; }
.ware-what { margin: 6px 0 0; padding: 6px 9px; border-radius: 8px; background: var(--lav-100); color: var(--ink); font-size: var(--fs-xs); line-height: 1.35; }
.standstats { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.standstats li { display: grid; gap: 3px; }
.standstats .ss-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.standstats .ss-head b { font-size: var(--fs-sm); color: var(--ink); }
.standstats .ss-val { font-size: var(--fs-sm); font-weight: 800; color: var(--accent-deep); font-variant-numeric: tabular-nums; }
.standstats .ss-meter { display: block; height: 6px; border-radius: 999px; background: var(--paper-sunk, #ece4f2); overflow: hidden; position: relative; }
.standstats .ss-meter::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: inherit; background: linear-gradient(90deg, #a98fd8, #7b5cc0); }
.standstats p { margin: 0; font-size: var(--fs-xs); color: var(--ink-soft); line-height: 1.35; }

/* ---- Round 39: the beach's run, and its treasure. A line under the bar's second: the finds in a row, and from five
   the treasure's chance, in gold; while the treasure washes in, it says so. ---- */
.huntbar .hu-chain { grid-column: 1 / -1; grid-row: 3; justify-self: start; padding: 2px 10px 3px; border-radius: 10px;
    font: 700 .8rem/1.2 var(--font-ui, system-ui); color: #5b4a6e; background: rgba(91, 74, 110, .08); font-variant-numeric: tabular-nums;
    animation: huchain .36s var(--ease-pop, ease-out) both; }
@keyframes huchain { from { scale: .9; } 50% { scale: 1.06; } to { scale: 1; } }
.huntbar .hu-chain.hot { color: #7a4d00; background: linear-gradient(180deg, #fff1c2, #ffd978); box-shadow: 0 0 0 1.5px #e0a52a inset; }
.huntbar .hu-chain.washing { color: #fff; background: linear-gradient(180deg, #f6b73c, #d88a14); box-shadow: 0 0 0 2px #8a5300 inset, 0 0 14px rgba(255, 196, 60, .7);
    animation: hr-pop .5s cubic-bezier(.2, 1.6, .4, 1) both, hu-wash 1s ease-in-out .5s infinite alternate; }
@keyframes hu-wash { to { box-shadow: 0 0 0 2px #8a5300 inset, 0 0 26px rgba(255, 196, 60, 1); } }
.huntbar:has(.hu-chain) .hu-time { grid-row: 4; }
@media (prefers-reduced-motion: reduce) { .huntbar .hu-chain { animation: none; } }
/* round 39: a treasure's card — said big, in gold, with rays turning behind it */
.huntbar .hu-rare.treasure { padding: 12px 22px 13px; border-radius: 18px; background: linear-gradient(180deg, #fff3c4, #ffd36a);
    box-shadow: 0 0 0 3px var(--g-ink, #2f1f45), 0 6px 0 var(--g-ink, #2f1f45), 0 0 40px rgba(255, 200, 80, .9); overflow: visible; }
.huntbar .hu-rare.treasure::before { content: ""; position: absolute; left: 50%; top: 50%; width: 260px; height: 260px; z-index: -1; pointer-events: none;
    translate: -50% -50%; border-radius: 50%; opacity: .75;
    background: repeating-conic-gradient(from 0deg, rgba(255, 220, 110, .65) 0 10deg, rgba(255, 220, 110, 0) 10deg 22deg);
    -webkit-mask: radial-gradient(circle, #000 25%, transparent 70%); mask: radial-gradient(circle, #000 25%, transparent 70%);
    animation: hu-rays 6s linear infinite; }
@keyframes hu-rays { to { rotate: 360deg; } }
.huntbar .hu-rare.treasure b { font: 400 1.7rem/1 var(--font-game); letter-spacing: .02em; color: #fff; text-shadow: var(--g-outline); }
.huntbar .hu-rare.treasure span { font-size: .9rem; font-weight: 800; color: #6b4300; }
@media (prefers-reduced-motion: reduce) { .huntbar .hu-rare.treasure::before { animation: none; } }

/* ---- Round 39: Nell's tour of the farm. Her first card offers it beside "Got it"; the tour's card sits at the foot of
   the screen, above the play bar, so the place it's about is in the picture above it. ---- */
.nellcard .nc-body:has(.nc-tour) { display: grid; grid-template-columns: 1fr auto auto; align-items: center; column-gap: 8px; row-gap: 6px; }
.nellcard .nc-body:has(.nc-tour) .nc-name, .nellcard .nc-body:has(.nc-tour) p { grid-column: 1 / -1; }
.nellcard .nc-body:has(.nc-tour) .nc-ok { grid-column: 3; grid-row: 3; align-self: center; }
.nellcard .nc-tour { grid-column: 2; grid-row: 3; padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: var(--fs-sm);
    background: linear-gradient(180deg, #ffe27a, #f4ae2c); color: #33283c; box-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.tourcard {
    position: absolute; left: 50%; bottom: calc(var(--playbar-h) + 8px); z-index: 47;
    transform: translateX(-50%);
    display: flex; gap: 12px; align-items: flex-start;
    width: min(480px, calc(100% - 16px));
    padding: 12px 14px 12px 12px; border-radius: var(--r-lg);
    background: #33283c; color: #fffdf8;
    box-shadow: 0 14px 40px -12px rgba(20, 12, 28, .7);
    animation: tourin .45s var(--ease-pop) both;      /* (its own: coachin's keyframes carry a translate(-50%), which moved it sideways) */
}
@keyframes tourin { from { opacity: 0; translate: 0 10px; } }
@media (prefers-reduced-motion: reduce) { .tourcard { animation: none; } }
.tourcard .tc-face { flex: none; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: #4a3a5c; box-shadow: inset 0 0 0 2px rgba(255, 253, 248, .25); }
.tourcard .tc-face svg { width: 100%; height: 100%; display: block; }
.tourcard .tc-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.tourcard .tc-step { font-size: var(--fs-xs); font-weight: 800; color: #cbbcef; letter-spacing: .04em; text-transform: uppercase; }
.tourcard .tc-title { font: 400 1.3rem/1.05 var(--font-game); letter-spacing: .02em; color: #ffe27a; }
.tourcard p { margin: 0; font-size: var(--fs-sm); font-weight: 600; line-height: 1.38; }
.tourcard .tc-dots { display: flex; gap: 5px; margin-top: 2px; }
.tourcard .tc-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 253, 248, .25); }
.tourcard .tc-dots i.done { background: rgba(255, 226, 122, .6); }
.tourcard .tc-dots i.on { background: #ffe27a; width: 18px; border-radius: 4px; }
.tourcard .tc-actions { display: flex; flex-direction: row-reverse; align-items: center; gap: 8px; margin-top: 2px; }
.tourcard .tc-next { padding: 7px 18px; border-radius: 999px; font-weight: 800; font-size: var(--fs-sm); background: linear-gradient(180deg, #ffe27a, #f4ae2c); color: #33283c; box-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.tourcard .tc-back { padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: var(--fs-sm); background: rgba(255, 253, 248, .14); color: #fffdf8; border: 0; }
.tourcard .tc-skip { margin-right: auto; background: none; border: 0; color: #cbbcef; font-weight: 700; font-size: var(--fs-xs); text-decoration: underline; padding: 4px 2px; }
@media (max-height: 500px) and (orientation: landscape) {
    .tourcard { left: auto; right: 10px; transform: none; bottom: calc(var(--playbar-h) + 6px); width: min(400px, 52%); padding: 8px 10px 8px 8px; gap: 8px; }
    .tourcard .tc-face { width: 38px; height: 38px; }
    .tourcard .tc-title { font-size: 1.05rem; }
    .tourcard p { font-size: var(--fs-xs); line-height: 1.3; }
}
.errands .er-tour { align-self: flex-start; padding: 7px 16px; border-radius: 999px; font-weight: 800; font-size: var(--fs-sm);
    background: linear-gradient(180deg, #ffe27a, #f4ae2c); color: #33283c; box-shadow: 0 2px 0 rgba(0, 0, 0, .2); border: 0; }
.errands .er-tour:disabled { background: var(--paper-sunk, #eee6f3); color: var(--ink-quiet, #8a7c96); box-shadow: none; }
/* round 39: the Wends' top field past the track — named, always, on a plain brown chip: somebody else's */
.hot3d.nb3d { border-radius: 12px; }
.hot3d.nb3d .hot3d-ring { display: none; }
.hot3d.nb3d .hot3d-label { opacity: 1; padding: 4px 10px; font-size: .72rem; background: rgba(78, 60, 40, .7); top: 50%; transform: translate(calc(-50% + var(--nudge, 0px)), calc(-50% + var(--drop, 0px))); }
@media (max-width: 520px) { .hot3d.nb3d .hot3d-label { font-size: .64rem; padding: 3px 8px; } }
/* round 57: the long field for sale, its name and price in the middle of the Wends' rows, ringed in the chalk's gold */
.hot3d.nb3d.ghost3d .hot3d-label { background: rgba(92, 62, 36, .84); box-shadow: 0 0 0 2px rgba(255, 228, 150, .75); }
/*  Round 61. The salt pans, chalked in down the coast, carry their name and price as a farm does (on a phone a chalked
    thing's name showed only to a mouse, and their chip lay under Saltmarsh's patch), in the chalk's brown. */
.hot3d.coast3d.ghost3d .hot3d-label { background: rgba(92, 62, 36, .84); box-shadow: 0 0 0 2px rgba(255, 228, 150, .75); }

/* ==== Round 40: progression on screen (App.Levels.cs) ==============================================================
   The farm's rank: a gold ring round the Help button fills toward the next rank, its number on a medal at the corner;
   on a wider screen its name in a pill beside it. Help's tabs. "Your farm": the rank and every place's level. A level
   reached: its own big word, in gold. */
.hud-help { position: relative; overflow: visible; }
.hud-help .rank-ring { position: absolute; inset: -5px; width: calc(100% + 10px); height: calc(100% + 10px); pointer-events: none; rotate: -90deg; }
.hud-help .rank-ring circle { fill: none; stroke-width: 3.2; }
.hud-help .rank-ring .rr-track { stroke: rgba(47, 31, 69, .16); }
.hud-help .rank-ring .rr-fill { stroke: #f2b230; stroke-linecap: round; transition: stroke-dasharray .6s ease-out; }
.hud-help .rank-no { position: absolute; right: -6px; bottom: -6px; min-width: 17px; height: 17px; padding: 0 3px; border-radius: 9px;
    display: grid; place-items: center; font: 800 .66rem/1 var(--font-ui, system-ui); color: #3a2a06;
    background: linear-gradient(180deg, #ffe48a, #f2bf3c); box-shadow: 0 0 0 1.5px var(--g-ink, #2f1f45); pointer-events: none; }
.hud-rank { display: none; flex: none; height: 36px; padding: 0 12px; margin-left: auto; border-radius: 999px; align-items: center; gap: 2px;
    flex-direction: column; justify-content: center; border: 2.5px solid var(--g-ink, #2f1f45); box-shadow: 0 3px 0 var(--g-ink, #2f1f45);
    background: linear-gradient(180deg, #fff3c4, #ffd978); color: #3a2a06; cursor: pointer; }
.hud-rank b { font: 400 .86rem/1 var(--font-game); letter-spacing: .02em; white-space: nowrap; }
.hud-rank i { display: block; width: 100%; min-width: 64px; height: 4px; border-radius: 3px; background: rgba(58, 42, 6, .18); position: relative; overflow: hidden; }
.hud-rank i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); background: #c98a12; border-radius: inherit; }
/* (only where the top bar has room for it: on a sideways phone it pushed the day's pill over the stock) */
@media (min-width: 1000px) and (min-height: 520px) { .hud-rank { display: inline-flex; } .hud-top .hud-rank + .hud-help { margin-left: 0; } }

.help-tabs { display: flex; gap: 6px; flex-wrap: wrap; position: sticky; top: 0; z-index: 2; padding: 2px 0 6px; background: inherit; }
/* round 43: the strip on a ground of its own — scrolled, the rows' words showed between the pills. It sticks below the
   sheet body's top padding (12–14px), so the ground reaches up over that too, or a row's title shows above the pills */
.sheet .help-tabs { background: var(--card-warm, #fdf8ee); padding: 18px 0 8px; margin-top: -14px; top: -14px; box-shadow: 0 8px 6px -8px rgba(47, 31, 69, .3); }
.help-tabs .ht-tab { padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: var(--fs-sm); border: 2px solid var(--g-ink, #2f1f45);
    background: #fffaf1; color: var(--g-ink, #2f1f45); box-shadow: 0 2px 0 var(--g-ink, #2f1f45); }
.help-tabs .ht-tab.on { background: linear-gradient(180deg, #7b5cc0, #5a3d9c); color: #fff; }   /* (white on the lighter #b49ae6 was 2.4:1) */
/* a phone: two by two, each tab its column's width (four in a row don't fit, and three and one looked dropped) */
@media (max-width: 520px) { .help-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 8px; } .help-tabs .ht-tab { white-space: nowrap; text-align: center; } }

.farmrank { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: linear-gradient(180deg, #fff6d6, #ffe7a4);
    box-shadow: 0 0 0 2px #e0a52a inset; }
.farmrank .fr-medal { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font: 400 1.5rem/1 var(--font-game); color: #fff;
    background: radial-gradient(circle at 35% 30%, #ffe48a, #e09a1a); box-shadow: 0 0 0 3px #fff7dc, 0 0 0 5px #c98a12; text-shadow: 0 2px 0 rgba(90, 50, 0, .5); }
.farmrank > div { display: grid; gap: 4px; flex: 1; min-width: 0; }
.farmrank b { font: 400 1.25rem/1.05 var(--font-game); color: #5b3a00; letter-spacing: .02em; }
.farmrank span { font-size: var(--fs-xs); font-weight: 700; color: #7a5a1c; }
.farmrank .fr-bar, .farmlevels .fl-bar { display: block; height: 7px; border-radius: 4px; background: rgba(90, 58, 0, .15); position: relative; overflow: hidden; }
.farmrank .fr-bar::after, .farmlevels .fl-bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: inherit; background: linear-gradient(90deg, #f2bf3c, #e0921a); }
.fr-how { margin: 2px 0 0; font-size: var(--fs-xs); color: var(--ink-soft); line-height: 1.35; }
.farmlevels { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.farmlevels li { display: grid; gap: 4px; padding: 9px 11px; border-radius: 12px; background: var(--card, #fff); border: 1px solid var(--line, rgba(0,0,0,.08)); }
.farmlevels .fl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.farmlevels .fl-head b { font: 400 1.05rem/1.1 var(--font-game); color: var(--g-ink, #2f1f45); letter-spacing: .02em; }
.farmlevels .fl-level { padding: 1px 9px 2px; border-radius: 999px; font-weight: 800; font-size: var(--fs-xs); color: #fff; background: #7b5cc0; }
.farmlevels .fl-bar::after { background: linear-gradient(90deg, #b49ae6, #7b5cc0); }
.farmlevels .fl-points { font-size: var(--fs-xs); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.farmlevels .fl-next { font-size: var(--fs-xs); font-weight: 800; color: #7a4d00; }
.farmlevels .fl-next.soon { font-weight: 700; color: var(--ink-quiet, #8a7c96); }

.level-pop {
    position: absolute; left: 50%; top: 36%; z-index: 58; translate: -50% -50%;
    display: grid; justify-items: center; gap: 4px; pointer-events: none; text-align: center; white-space: nowrap;
    padding: 14px 26px 16px; border-radius: 22px; background: linear-gradient(180deg, #fff3c4, #ffd36a);
    box-shadow: 0 0 0 3px var(--g-ink, #2f1f45), 0 6px 0 var(--g-ink, #2f1f45), 0 0 50px rgba(255, 200, 80, .85);
    animation: level-pop 3.6s cubic-bezier(.2, 1.4, .4, 1) both;
}
.level-pop .lp-eyebrow { font: 800 .74rem/1 var(--font-ui, system-ui); letter-spacing: .14em; text-transform: uppercase; color: #8a5300; }
.level-pop b { font: 400 2.1rem/1 var(--font-game); color: #fff; letter-spacing: .02em; text-shadow: var(--g-outline), 0 5px 0 rgba(47, 31, 69, .35); }
.level-pop .lp-opens { font: 800 .9rem/1.2 var(--font-ui, system-ui); color: #5b3a00; white-space: normal; max-width: min(320px, 80vw); }
@keyframes level-pop { 0% { opacity: 0; scale: .4; } 10% { opacity: 1; scale: 1.12; } 18% { scale: 1; } 86% { opacity: 1; scale: 1; } 100% { opacity: 0; scale: 1.04; translate: -50% -70%; } }
@media (max-width: 640px) { .level-pop b { font-size: 1.7rem; } }
/* a sideways phone: below the games' panels, which sit along the top */
@media (max-height: 500px) { .level-pop { top: 58%; padding: 10px 22px 12px; } .level-pop b { font-size: 1.6rem; } }
/* round 41: a rank reached — the same big word in lavender, and a dot on the ring until Your farm has been looked at */
.level-pop.rank-pop { background: linear-gradient(180deg, #efe4ff, #c4aef0); box-shadow: 0 0 0 3px var(--g-ink, #2f1f45), 0 6px 0 var(--g-ink, #2f1f45), 0 0 50px rgba(176, 140, 240, .85); }
.level-pop.rank-pop .lp-eyebrow { color: #5a3d9c; }
.level-pop.rank-pop .lp-opens { color: #3d2a66; }
.rank-dot { position: absolute; top: -3px; right: -3px; width: 11px; height: 11px; border-radius: 50%; background: #e2574c;
    box-shadow: 0 0 0 2px #fff7ea; animation: rank-dot 1.6s ease-in-out infinite; pointer-events: none; }
@keyframes rank-dot { 50% { scale: 1.25; } }
@media (prefers-reduced-motion: reduce) { .rank-dot { animation: none; } }
@media (prefers-reduced-motion: reduce) { .level-pop { animation: none; } }


/* ---- round 41: sign in with Google, and the farm in the account (App.Cloud.cs) ---- */
.cloudrow { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; margin-top: 12px; padding-top: 10px;
    border-top: 1px dashed rgba(47, 31, 69, .22); text-align: left; }
.cloudrow .cr-note { grid-column: 1 / -1; font-size: var(--fs-sm); color: #5b4d6e; line-height: 1.35; }
.cloudrow .cr-note.err { color: #a2352b; font-weight: 700; }
.cloudrow.on .cr-note { grid-column: 1; }
.cloudrow.on .cr-out { grid-row: 1 / span 2; grid-column: 2; padding: 6px 12px; }
.cloudrow .cr-who { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--g-ink, #2f1f45); }
.cloudbtn { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px;
    border-radius: 999px; background: #fff; color: #2f2a33; font: 700 .95rem/1 var(--font-ui, system-ui, sans-serif);
    border: 2px solid var(--g-ink, #2f1f45); box-shadow: 0 3px 0 var(--g-ink, #2f1f45); }
.cloudbtn[aria-busy="true"] { opacity: .7; }
.cloudbtn .cr-g, .cloudrow .cr-g { flex: none; }
.cloudrow.cr-welcome { margin-top: 14px; }
.sheet .cloudrow { margin: 0 0 12px; padding: 10px 12px; border: 0; border-radius: 14px; background: #f6f0ff; box-shadow: 0 0 0 2px #d9cdf2 inset; }
/* round 42: signed in, the account is one line at the foot of Your farm — the rank first */
.sheet .cloudrow.cr-foot { margin: 14px 0 0; padding: 7px 8px 7px 12px; grid-template-columns: auto 1fr auto; gap: 2px 10px; background: transparent;
    box-shadow: 0 0 0 1.5px #ddd2f0 inset; }
.sheet .cloudrow.cr-foot .cr-who { font-size: var(--fs-sm); }
.sheet .cloudrow.cr-foot .cr-note { grid-column: 2; font-size: var(--fs-xs, .75rem); min-width: 0; }
.sheet .cloudrow.cr-foot .cr-out { grid-row: 1; grid-column: 3; padding: 4px 10px; font-size: var(--fs-xs, .75rem); }
@media (max-width: 420px) { .sheet .cloudrow.cr-foot { grid-template-columns: 1fr auto; } .sheet .cloudrow.cr-foot .cr-note { grid-column: 1; grid-row: 2; } .sheet .cloudrow.cr-foot .cr-out { grid-row: 1 / span 2; grid-column: 2; } }
.cloudpick-veil { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px;
    background: rgba(32, 22, 48, .55); }
.cloudpick { width: min(440px, 100%); max-height: calc(100% - 24px); overflow: auto; display: grid; gap: 10px; padding: 18px 18px 20px; }
.cloudpick h2 { margin: 0; font: 400 1.6rem/1.1 var(--font-game); color: var(--g-ink, #2f1f45); text-wrap: balance; }
.cloudpick .lede { margin: 0; }
.cp-card { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; text-align: left; padding: 12px 14px;
    border-radius: 14px; background: #fffaf1; border: 2px solid var(--g-ink, #2f1f45); box-shadow: 0 3px 0 var(--g-ink, #2f1f45); color: var(--g-ink, #2f1f45); }
.cp-card .cp-where { grid-column: 1; font: 800 .72rem/1 var(--font-ui, system-ui); letter-spacing: .12em; text-transform: uppercase; color: #7b5cc0; }
.cp-card b { grid-column: 1; font-size: 1.1rem; }
.cp-card .cp-facts { grid-column: 1; font-size: var(--fs-sm); color: #5b4d6e; }
.cp-card .cp-go { grid-column: 2; grid-row: 1 / span 3; padding: 8px 12px; border-radius: 999px; background: linear-gradient(180deg, #7b5cc0, #5a3d9c);
    color: #fff; font-weight: 800; font-size: var(--fs-sm); white-space: nowrap; }
/* a short screen (a phone on its side): the welcome card's room is the name and its two lines; the sign-in sits beside
   the button, its note left out (two lines of it pushed the button up over the name field) */
@media (max-height: 560px) {
    .titlepage .intro-go { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
    .titlepage .intro-go .cloudrow { margin: 0; padding: 0; border: 0; display: flex; align-items: center; gap: 8px; }
    .titlepage .intro-go .cloudrow .cr-note { display: none; }
    .titlepage .intro-go .cloudrow.on .cr-who { font-size: var(--fs-sm); }
    .titlepage .intro-go .cloudbtn { padding: 7px 14px 7px 10px; font-size: .88rem; }
}

/* ==== Round 42: a place's level (and the farm's rank) reached in a game, on the game's own card — the big word's gold,
   small, after the game's own level line; the rank in the rank's lavender ===================================== */
main.screenmode .gamecard .gc-place { margin-top: 6px; display: grid; justify-items: center; gap: 1px; padding: 6px 14px 7px; border-radius: 12px;
    background: linear-gradient(180deg, #fff3c4, #ffd36a); box-shadow: 0 0 0 2.5px var(--g-ink), 0 3px 0 var(--g-ink), 0 0 26px rgba(255, 200, 80, .75);
    animation: gc-lvup .7s 1.1s cubic-bezier(.2, 1.6, .4, 1) both; text-align: center; }
main.screenmode .gamecard .gc-place .gp-eyebrow { font: 800 .62rem/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: #8a5300; }
main.screenmode .gamecard .gc-place b { font: 400 1.25rem/1.05 var(--font-game); letter-spacing: .02em; color: #fff; text-shadow: var(--g-outline); }
main.screenmode .gamecard .gc-place .gp-opens { font: 800 .76rem/1.25 var(--font-ui); color: #5b3a00; text-wrap: balance; }
main.screenmode .gamecard .gc-place.gc-rank { background: linear-gradient(180deg, #efe4ff, #c4aef0); box-shadow: 0 0 0 2.5px var(--g-ink), 0 3px 0 var(--g-ink), 0 0 26px rgba(176, 140, 240, .8);
    animation-delay: 1.5s; }
main.screenmode .gamecard .gc-place.gc-rank .gp-eyebrow { color: #5a3d9c; }
main.screenmode .gamecard .gc-place.gc-rank .gp-opens { color: #3d2a66; }
/* a sideways phone has little height: the two side by side when both come */
@media (max-height: 500px) {
    main.screenmode .gamecard .gc-place { margin-top: 4px; padding: 4px 10px 5px; }
    main.screenmode .gamecard .gc-place b { font-size: 1.05rem; }
    main.screenmode .gamecard .gc-place .gp-opens { font-size: .7rem; }
}
@media (prefers-reduced-motion: reduce) { main.screenmode .gamecard .gc-place { animation: none; } }

/* round 43: sideways, a game's card rises over the end of Nell's card (taller with a level on it): while a card is up,
   Nell's card, and the pin of what she's asked now, wait out of sight */
@media (max-height: 500px) { main.screenmode.carding .nellcard:not(.metcard), main.screenmode.carding .errand-pin { visibility: hidden; } }

/* ==== Round 44: a surprise in every game. The run, under the pips, as the beach's bar says it (gold once it has a
   chance); the treasure on the game's card — its picture beside what it is and what it's worth, in the beach's
   treasure gold, coming up after the stars with its chord ======================================================== */
.knack .kn-chain { justify-self: center; padding: 2px 10px 3px; border-radius: 10px; font: 700 .78rem/1.2 var(--font-ui, system-ui);
    color: #5b4a6e; background: rgba(91, 74, 110, .08); font-variant-numeric: tabular-nums; white-space: nowrap;
    animation: huchain .36s var(--ease-pop, ease-out) both; }
.knack .kn-chain.hot { color: #7a4d00; background: linear-gradient(180deg, #fff1c2, #ffd978); box-shadow: 0 0 0 1.5px #e0a52a inset; }
@media (max-height: 500px) and (orientation: landscape) {
    /* sideways: in the word's row, at its far end (the word pops in at the start) */
    .knack .kn-chain { grid-area: word; justify-self: end; align-self: center; font-size: .72rem; padding: 1px 8px 2px; }
}
main.screenmode .gamecard .gc-treasure { margin-top: 6px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 10px;
    padding: 6px 12px 7px 8px; border-radius: 12px; text-align: left;
    background: linear-gradient(180deg, #fff3c4, #ffd36a); box-shadow: 0 0 0 2.5px var(--g-ink), 0 3px 0 var(--g-ink), 0 0 26px rgba(255, 200, 80, .8);
    animation: gc-lvup .7s .75s cubic-bezier(.2, 1.6, .4, 1) both; }
main.screenmode .gamecard .gc-treasure .gt-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #fffaf0;
    box-shadow: 0 0 0 2px #e0a52a; }
main.screenmode .gamecard .gc-treasure .gt-icon svg { width: 36px; height: 36px; display: block; }
main.screenmode .gamecard .gc-treasure .gt-words { display: grid; gap: 1px; min-width: 0; }
main.screenmode .gamecard .gc-treasure .gp-eyebrow { font: 800 .62rem/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: #8a5300; }
main.screenmode .gamecard .gc-treasure b { font: 400 1.12rem/1.08 var(--font-game); letter-spacing: .02em; color: #fff; text-shadow: var(--g-outline); text-wrap: balance; }
main.screenmode .gamecard .gc-treasure .gt-worth { font: 800 .74rem/1.25 var(--font-ui); color: #5b3a00; }
@media (max-height: 500px) {
    main.screenmode .gamecard .gc-treasure { margin-top: 4px; padding: 4px 10px 5px 6px; }
    main.screenmode .gamecard .gc-treasure .gt-icon { width: 34px; height: 34px; }
    main.screenmode .gamecard .gc-treasure .gt-icon svg { width: 28px; height: 28px; }
    main.screenmode .gamecard .gc-treasure b { font-size: .98rem; }
}
@media (prefers-reduced-motion: reduce) { main.screenmode .gamecard .gc-treasure, .knack .kn-chain { animation: none; } }
/* the Journal: a shelf of four (the ring toss's three prizes and its top shelf), and the little secrets */
.fpbook .fp-row.n4 { grid-template-columns: repeat(4, 1fr); gap: 6px; }
.fpbook .fp-secrets .fp-slot:not(.has) .fp-name { font-weight: 600; font-style: italic; color: #7a6a8a; }
/* round 49: eight secrets, in rows they fill — four across, two on a phone */
.fpbook .fp-row.fp-secrets { grid-template-columns: repeat(4, 1fr); gap: 6px; }
@media (max-width: 520px) { .fpbook .fp-row.fp-secrets { grid-template-columns: repeat(2, 1fr); } }

/* ---- round 47: a toast on a sideways phone comes up where nothing covers it ------------------------------------------
   At the top left, where every other shape has it, a sideways phone keeps Nell's errand and her card: a little secret's
   "The kettle's on! 1 of 6 found" came up half under them (round 46's list). Sideways, toasts come up at the foot,
   above the play bar, a little right of the middle (clear of the bag on the left while the stand trades); during a
   game or a hunt, whose panels are at the foot, they go to the top, between the HUD's ends. */
@media (max-height: 500px) and (orientation: landscape) {
    main.screenmode .toasts, main.screenmode.coaching .toasts, main.screenmode.sheet-open .toasts, main.screenmode.ph-trading .toasts {
        top: auto; bottom: calc(var(--playbar-h, 76px) + 8px); left: 56%; right: auto; translate: -50% 0; max-width: min(380px, 44%);
    }
    main.screenmode.knacking .toasts, main.screenmode.hunting .toasts { top: calc(var(--hud-h, 64px) + 8px); bottom: auto; left: 50%; }
    main.screenmode .toast { padding: 6px 12px; font-size: var(--fs-sm, .82rem); }
}

/* ---- round 47: a chip's label, where it's drawn, is the chip's ---------------------------------------------------------
   The beds', the barn's, the yard's and the neighbours' labels always show, and they're moved to stay readable: dropped
   from under the stock rail or Nell's errand, slid along their chip (rounds 35 and 40). Moved off their own button they
   let a finger through to whatever was under them. As the map's and the coast's (round 46), they're on top, and a tap
   on one is its chip's (bridge.js keeps the chip a press came down on). */
.hot3d.bed3d .hot3d-label, .hot3d.barn3d .hot3d-label, .hot3d.yard3d .hot3d-label, .hot3d.nb3d .hot3d-label { pointer-events: auto; z-index: 3; }
/* round 48: and any chip's label while it shows (a chip calling for you, or one with a second line: upright, the stand's
   label stood over the world, and a finger on its words landed on the world). A label at rest is see-through to fingers. */
.hot3d.calling .hot3d-label, .hot3d.hassub .hot3d-label { pointer-events: auto; z-index: 3; }
/* round 48: and a chip never lifts on hover. Every button rises a pixel under the mouse (button:hover), and a touch screen
   keeps :hover on the last thing touched: the lift made the chip a layer of its own, its label went under the chip
   beside it, and sideways the hives' label was the hens' to a finger. */
.hot3d:not(:disabled):hover { transform: none; }

/* ---- round 48: the first sale's banner, on a short sideways screen, where no chip is --------------------------------
   Over the counter (where every other shape has it) a sideways phone stands the buyers' chips: round 47's bot found the
   banner over the next buyer's "Tap to serve". Measured over a minute of trading at 844×390, the chips stand from the
   HUD's foot to two thirds down, between a third and nine tenths across; the bag opens on the left. So here the banner
   comes up at the foot, above the play bar, right of the middle (clear of the bag, which opens on the left; the toasts
   come up near there too, and the first sale has none of its own), over the people's feet and nothing a player reads. */
@media (max-height: 500px) and (orientation: landscape) {
    main.screenmode .rushbanner.rb-first {
        top: auto; bottom: calc(var(--playbar-h, 78px) + 8px); left: 60%; max-width: min(320px, 40%);
        padding: 6px 16px 7px;
    }
    main.screenmode .rushbanner.rb-first b { font-size: 1.1rem; }
    main.screenmode .rushbanner.rb-first span { font-size: .74rem; }
}
/* ---- round 63: sideways, a banner beside an open order, not under it ----------------------------------------------------
   The party's summing up is the widest banner ("8 took tea at your tables · 14 served · 3 gave up waiting"). Centred on a
   sideways phone it ran under the order slip, which opens on the left, and its first words were hidden. With a slip
   open, a banner here is centred in the room to the right of it (the slip's right edge is about 308px in). */
@media (max-height: 520px) and (min-aspect-ratio: 1/1) {
    main.screenmode:has(.bagbar:not(.sealed)) .rushbanner:not(.rb-first) { left: calc(50% + 154px); max-width: calc(100% - 332px); }
}
/* ---- round 65 (round 64's 1): upright, a banner clear of the words to say ------------------------------------------
   With an order open, the words to talk somebody round ("What will you say?") come up under the clock and the tally,
   where the counter's banner stands: at 15:28 they hid the party's summing up. While they're up, a banner stands over
   the clock and the tally instead, above them, for its few seconds. */
@media (max-width: 720px) and (orientation: portrait) {
    main.screenmode:has(.pitch.over-bag) .rushbanner:not(.rb-first) { top: calc(var(--hud-h, 64px) + 6px); z-index: 46; }
}
/* ---- round 67 (round 66's 9): sideways, every banner at the foot, where the first sale's is ----------------------------
   Sideways the counter's banners ("… is open!", the busy hour, the market's bell) came up a third of the way down: over
   the awning and the goods, and over the first buyer's chip. Tried in the row under the HUD, between the clock and the
   tally: at the market the chips stand that high, and a banner stepped down past them (round 52) landed on the stall and
   on the card of someone who wanted what had sold out. Round 48 measured where nothing is, sideways: at the foot, above
   the play bar, right of the middle, over the people's feet. All the banners go there now, a little smaller (clear of
   an order's slip on the left), and a toast that comes up while one is there stands over it, not under it. */
@media (max-height: 500px) and (orientation: landscape) {
    main.screenmode .rushbanner:not(.rb-first), main.screenmode:has(.bagbar:not(.sealed)) .rushbanner:not(.rb-first) {
        top: auto; bottom: calc(var(--playbar-h, 78px) + 8px); max-width: min(380px, 44%);
        left: max(60%, calc(318px + min(190px, 22%)));       /* (on a 667 phone, clear of the slip's right edge at 310) */
        padding: 5px 16px 6px; gap: 0; border-radius: 14px;
    }
    main.screenmode .rushbanner:not(.rb-first) b { font-size: 1.04rem; }
    main.screenmode .rushbanner:not(.rb-first) span { font-size: .7rem; line-height: 1.2; }
    main.screenmode.ph-trading:has(.rushbanner) .toasts { bottom: calc(var(--playbar-h, 76px) + 74px); }
}

/* ---- round 48: the counter's HUD box lets a finger through where it's empty --------------------------------------------
   The trading HUD (the clock, the run, the tally) is one box the width of the screen. On a small sideways phone
   (667×375) it stacks in a column a hundred pixels deep, and the stand's buyers stand under that, high in the picture:
   every "Tap to serve" there landed on the empty box and opened nothing. Its pills take taps; the box between them
   doesn't. */
.screenmode .hud { pointer-events: none; }
.screenmode .hud > * { pointer-events: auto; }

/* ---- round 50: on day one no ring counts down over a customer (App.Counter.cs, TimersOff) ---------------------------- */
.guest3d.calm .g3-left { display: none; }
.guest3d.calm.hurry .g3-face, .guest3d.calm.hurry { animation: none; }

/* ---- Round 50: Nell's lessons (App.Lessons.cs) — her card, with what it is, how to do it, and what you get.
   It comes up at the foot, over the play bar, where the customers aren't: upright across the width, and on a wider
   screen at the left (the stand and its people are in the middle, the HUD and Nell's errand at the top). */
.lessoncard {
    top: auto; bottom: calc(var(--playbar-h) + 10px); left: 12px; right: auto; transform: none;
    width: min(420px, calc(100% - 24px)); max-width: none; z-index: 47;
    animation: lessonin .4s var(--ease-pop) both;
}
@keyframes lessonin { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.lessoncard .nc-body { flex: 1; min-width: 0; }
.lessoncard .ls-title { font-family: var(--font-display); font-variation-settings: var(--wonk); font-size: 1.12rem; line-height: 1.15; color: #fffdf8; }
.lessoncard .ls-rows { margin: 0; display: grid; gap: 5px; }
.lessoncard .ls-row { display: grid; grid-template-columns: 4.6em 1fr; gap: 8px; align-items: baseline; }
.lessoncard dt { font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #cbbcef; }
.lessoncard dd { margin: 0; font-size: var(--fs-sm); font-weight: 600; line-height: 1.32; }
.lessoncard .ls-get dt { color: #ffd77a; }
.lessoncard .ls-get dd { color: #fff2cf; }
main.screenmode .lessoncard .ls-title { font-family: var(--font-game); font-variation-settings: normal; font-weight: 400; font-size: 1.22rem; letter-spacing: .02em; color: #fff; }
@media (max-width: 640px) {
    .lessoncard { top: auto; left: 8px; right: 8px; width: auto; bottom: calc(var(--playbar-h) + 10px); }
    .lessoncard .ls-row { grid-template-columns: 4.2em 1fr; }
}
/* a sideways phone is short: a narrower card at the left, its lines a little smaller, scrolling if it must */
@media (max-height: 500px) and (orientation: landscape) {
    .lessoncard { width: min(350px, 43%); bottom: calc(var(--playbar-h) + 6px); padding: 7px 10px 7px 8px; gap: 8px;
        max-height: calc(100vh - var(--playbar-h) - 108px); overflow-y: auto; }
    .lessoncard .nc-face { width: 34px; height: 34px; }
    .lessoncard .nc-body { gap: 3px; }
    .lessoncard .nc-name small { display: none; }
    .lessoncard .ls-title { font-size: .98rem; }
    main.screenmode .lessoncard .ls-title { font-size: 1.02rem; }
    .lessoncard .ls-rows { gap: 3px; }
    .lessoncard .ls-row { grid-template-columns: 3.6em 1fr; gap: 6px; }
    .lessoncard dt { font-size: .7rem; letter-spacing: .03em; }
    .lessoncard dd { font-size: .74rem; line-height: 1.22; }
    .lessoncard .nc-ok { padding: 4px 12px; }
}
@media (prefers-reduced-motion: reduce) { .lessoncard { animation: none; } }

/* Round 50: the talk-round's first week — which look each word answers, and what the choice does */
.pitch .pi-guide { margin: -2px 0 0; font-size: .78rem; font-weight: 700; line-height: 1.3; color: #6a4f86; }
.pitch .pi-say { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pitch .pi-hint { font-size: .7rem; font-weight: 600; line-height: 1.15; opacity: .78; }
main.screenmode .pitch .pi-guide { color: var(--g-ink-2); }
@media (max-height: 500px) and (orientation: landscape) {
    .pitch .pi-guide { font-size: .72rem; }
    .pitch .pi-hint { font-size: .7rem; }
}

/* Round 50: a regular's hearts at the counter, and in the first week what the next one brings */
.guest3d .g3-hearts .g3-next { margin-left: 4px; font: 800 .6rem/1.25 var(--font-ui, system-ui); letter-spacing: 0; color: #8a3b58; }

/* ==== Round 51: the upsell beat (App.Upsell.cs) — as the last thing goes in, a ring closes on the bag; tap as it meets
   the gold and they take one more. The ring and the gold's glow run from the same clock the tap is judged on
   (data-anim-start, ui.js); the ring meets the gold 72% of the way through (from 1.9 times its size to 0.65). ==== */
.bagbar .bb-beat {
    position: absolute; inset: -8px; z-index: 40; display: grid; place-items: center;
    padding: 0; border: 0; background: none; box-shadow: none; cursor: pointer; touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.bagbar .bb-beat:active { transform: none; }
.bagbar .bb-beat .ub-gold, .bagbar .bb-beat .ub-ring {
    position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%;
    pointer-events: none; box-sizing: border-box;
}
.bagbar .bb-beat .ub-gold {
    border: 7px solid var(--g-gold-2); box-shadow: 0 0 0 2px var(--g-ink), inset 0 0 0 2px var(--g-ink), 0 0 14px rgba(255, 210, 90, .55);
    animation: ub-gold linear both;
}
.bagbar .bb-beat .ub-ring {
    border: 3px solid #7b59b5; box-shadow: 0 0 0 2px #fff, inset 0 0 0 2px #fff;
    animation: ub-close linear both;
}
/* the bag steps back while the beat is on, so the rings and what's offered stand out */
.bagbar.beating .bb-bag > .bb-back, .bagbar.beating .bb-bag > .bb-in, .bagbar.beating .bb-bag > .bb-front { opacity: .28; transition: opacity .15s; }
@keyframes ub-close { from { transform: scale(1.9); opacity: .35; } 60% { opacity: 1; } to { transform: scale(.65); opacity: .9; } }
@keyframes ub-gold { 0%, 60% { opacity: .75; } 72% { opacity: 1; box-shadow: 0 0 0 2px var(--g-ink), inset 0 0 0 2px var(--g-ink), 0 0 26px 6px rgba(255, 214, 90, .95); } 84%, 100% { opacity: .6; } }
.bagbar .bb-beat .ub-what {
    position: relative; z-index: 2; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
    background: #fffaf0; box-shadow: 0 0 0 2.5px var(--g-ink), 0 3px 0 rgba(47, 31, 69, .35);
    animation: ub-what .5s cubic-bezier(.3, 1.6, .5, 1) both;
}
.bagbar .bb-beat .ub-what .pa { width: 44px; height: 46px; display: block; }
.bagbar .bb-beat .ub-plus {
    position: absolute; z-index: 3; right: 2px; top: 6px; padding: 2px 7px 3px; border-radius: 999px;
    border: 2.5px solid var(--g-ink); background: linear-gradient(180deg, var(--g-gold-1), var(--g-gold-2)); color: #fff;
    font: 400 1rem/1 var(--font-game); text-shadow: var(--g-outline); box-shadow: 0 2px 0 var(--g-ink);
}
@keyframes ub-what { from { transform: translateY(10px) scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.bagbar.beating .bb-tiles { opacity: .45; transition: opacity .2s; }
.bagbar .beat-hint { color: #6a4310; background: #fff3cf; border-color: #e6b84a; }
@media (max-height: 520px) and (min-aspect-ratio: 1/1) {
    .bagbar .bb-beat .ub-gold, .bagbar .bb-beat .ub-ring { width: 80px; height: 80px; margin: -40px 0 0 -40px; }
    .bagbar .bb-beat .ub-what { width: 48px; height: 48px; }
    .bagbar .bb-beat .ub-what .pa { width: 36px; height: 38px; }
}
@media (max-height: 380px) and (min-aspect-ratio: 1/1) {
    .bagbar .bb-beat .ub-gold, .bagbar .bb-beat .ub-ring { width: 70px; height: 70px; margin: -35px 0 0 -35px; }
}
/* calm (the leaf, or the system's reduced motion): the ring still closes — it's the game — but nothing else moves */
@media (prefers-reduced-motion: reduce) { .bagbar .bb-beat .ub-what { animation: none; } }
/* what the beat came to, on the sealed bag a moment */
.bagbar .bb-beatword {
    position: absolute; left: 50%; top: -10px; z-index: 32; translate: -50% 0; padding: 3px 9px 4px; border-radius: 999px; white-space: nowrap;
    border: 2.5px solid var(--g-ink); box-shadow: 0 3px 0 var(--g-ink); color: #fff; font: 400 .92rem/1 var(--font-game); text-shadow: var(--g-outline);
    background: linear-gradient(180deg, #d9ccf2, #9f86d6); animation: bb-stick .4s cubic-bezier(.2, 1.7, .4, 1) both;
}
.bagbar .bb-beatword.yes { background: linear-gradient(180deg, var(--g-gold-1), var(--g-gold-2)); }
.bagbar .bb-beatword.miss { background: linear-gradient(180deg, #e9e2ef, #b8adc4); }
@media (prefers-reduced-motion: reduce) { .bagbar .bb-beatword { animation: none; } }

/* ==== Round 52: the beat dead on the gold, said so; and the stand's level 4, the gift-wrap table — a bag of three or more
   sealed in lavender paper, a ribbon down its front and a bow on top (App.Bag.cs) ==== */
.bagbar .bb-beatword.yes.perfect { font-size: 1.02rem; box-shadow: 0 3px 0 var(--g-ink), 0 0 16px 4px rgba(255, 214, 90, .8); }
.bagbar .bb-ribbon { position: absolute; left: 50%; top: 22px; bottom: 0; width: 13px; margin-left: -6.5px; z-index: 30; box-sizing: border-box;
    background: linear-gradient(90deg, #6f4fae, #a585e0 50%, #6f4fae); border-left: 2px solid var(--g-ink); border-right: 2px solid var(--g-ink);
    transform-origin: 50% 0; animation: bb-ribbon .38s .12s cubic-bezier(.3, 1.5, .5, 1) both; pointer-events: none; }
.bagbar .bb-ribbon::before, .bagbar .bb-ribbon::after { content: ""; position: absolute; top: -6px; width: 20px; height: 13px; box-sizing: border-box;
    border: 2.5px solid var(--g-ink); border-radius: 50%; background: #a585e0; }
.bagbar .bb-ribbon::before { right: 50%; margin-right: 1px; rotate: 18deg; }
.bagbar .bb-ribbon::after { left: 50%; margin-left: 1px; rotate: -18deg; }
.bagbar.sealed .bb-bag:has(.bb-ribbon) .bb-fold { background: linear-gradient(180deg, #b49ae4, #dccdf6); }
@keyframes bb-ribbon { from { transform: scaleY(0); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-height: 520px) and (min-aspect-ratio: 1/1) { .bagbar .bb-ribbon { top: 13px; } }
@media (max-height: 380px) and (min-aspect-ratio: 1/1) { .bagbar .bb-ribbon { top: 10px; } }
@media (prefers-reduced-motion: reduce) { .bagbar .bb-ribbon { animation: none; } }
/* round 52: the rock pools' low tide, after the third */
.huntbar .hu-tide[data-tide="4"] { background: linear-gradient(180deg, #a6e0ea, #4aa3b3); }
/* round 52: what the beat came to hangs from the bag's left edge, over the dimmed tiles, not from its middle: "Perfect!
   +1 Lavender Lemonade" is wider than the bag, and centred on it ran off the screen's left edge upright */
.bagbar .bb-beatword { left: -4px; translate: 0 0; }

/* ---- Round 53: the workers' skill trees (App.Crew.cs) ---------------------------------------------------------------
   The morning's card is a lesson card with a worker's face and three skills to pick from; the Shop's crew card says the
   level, the days to the next, the skills learned, and the same three when a pick is waiting. */
.skillcard .skp-later { background: transparent; color: #e9dcff; box-shadow: none; border: 1.5px solid rgba(233, 220, 255, .45); }
main.screenmode .skillcard .skp-later { background: transparent; color: #f3eaff; border: 2px solid rgba(243, 234, 255, .5); box-shadow: none; }
.skp-opts { display: grid; gap: 6px; }
.skp-opt { display: grid; gap: 2px; text-align: left; padding: 7px 10px; border-radius: 12px; font: inherit;
    background: #fbf5ea; color: #33283c; border: 2px solid #2a1f33; box-shadow: 0 3px 0 #2a1f33; cursor: pointer; }
.skp-opt:active { transform: translateY(2px); box-shadow: 0 1px 0 #2a1f33; }
.skp-opt:focus-visible { outline: 3px solid #ffd77a; outline-offset: 2px; }
.skp-opt.full { opacity: .5; box-shadow: none; }
.skp-name { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 800; color: #4a2f63; }
.skp-pips { display: inline-flex; gap: 3px; }
.skp-pips i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid #6b5a7a; }
.skp-pips i.on { background: #6b4a8f; border-color: #6b4a8f; }
.skp-pips i.next { background: #ffcf5c; border-color: #b8860b; }
.skp-what { font-size: .8rem; font-weight: 600; line-height: 1.25; color: #4b4152; }
.skillcard .nc-face { background: #d9e0c8; }
/* a sideways phone is short: the three side by side under the title, "Later" beside the title, the name line gone (the
   title says whose card it is) — stacked, the third ran under the foot of the card, and "Later" with it */
@media (max-height: 500px) and (orientation: landscape) {
    .skillcard { width: min(620px, calc(100% - 24px)); max-height: none; overflow: visible; }
    .skillcard .nc-name { display: none; }
    .skillcard .nc-body { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 8px; row-gap: 5px; }
    .skillcard .ls-title { grid-column: 1; grid-row: 1; }
    .skillcard .skp-later { grid-column: 2; grid-row: 1; }
    .skillcard .skp-opts { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .skp-opt { padding: 5px 8px; border-radius: 10px; align-content: start; }
    .skp-what { font-size: .72rem; line-height: 1.18; }
}
.crewgrow { margin-top: var(--s-2); display: grid; gap: 6px; }
.crewgrow .cg-level { font-size: var(--fs-sm); color: var(--ink-quiet); }
.crewgrow .cg-level b { color: var(--accent-deep); font-weight: 800; }
.crewgrow .cg-skills { display: flex; flex-wrap: wrap; gap: 4px; }
.crewgrow .cg-skill { padding: .14em .58em; border-radius: var(--r-pill); background: #f3e6c4; color: #6a4a12; font-size: var(--fs-xs); font-weight: 800; white-space: nowrap; }
.crewgrow .cg-pick { justify-self: start; padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: var(--fs-sm);
    background: linear-gradient(180deg, #ffd87a, #f2b843); color: #3a2a10; border: 2px solid #2a1f33; box-shadow: 0 3px 0 #2a1f33; }
.crewgrow .cg-pick:active { transform: translateY(2px); box-shadow: 0 1px 0 #2a1f33; }
.crewgrow .skp-opt { background: var(--card); }
.crew-name .crew-lv { display: inline-block; margin-left: 6px; padding: 0 .5em; border-radius: var(--r-pill); background: var(--lav-100);
    color: var(--accent-deep); font-size: var(--fs-xs); font-weight: 800; vertical-align: 1px; }
.crew-name .crew-lv.due { background: #ffd87a; color: #3a2a10; }
/* round 53: the compact deed meter says the part due, and the whole price small under its bar */
.deedmeter .dm-whole { font-size: var(--fs-xs, .74rem); color: var(--ink-soft, #6b6478); font-weight: 600; }

/* ---- Round 54: the crew, said as it happens (App.Crew.cs) -------------------------------------------------------------
   A worker's level is said big, as a place's is, with their face over it; the day's card has a box for the crew: their
   wages, and each worker's line (a level reached, what their skills did today, or the days to the next), with "Pick a
   skill" beside one who has one waiting. */
.level-pop.crew-pop { background: linear-gradient(180deg, #eef6e4, #c9e3a8);
    box-shadow: 0 0 0 3px var(--g-ink, #2f1f45), 0 6px 0 var(--g-ink, #2f1f45), 0 0 50px rgba(170, 220, 120, .8); padding-top: 44px; }
.level-pop.crew-pop .lp-eyebrow { color: #3f6b22; }
.level-pop.crew-pop .lp-opens { color: #2f4f1a; }
.level-pop .cp-face { position: absolute; top: -34px; left: 50%; translate: -50% 0; width: 68px; height: 68px; border-radius: 50%; overflow: hidden;
    background: #d9e0c8; box-shadow: 0 0 0 3px var(--g-ink, #2f1f45), 0 4px 0 var(--g-ink, #2f1f45); }
.level-pop .cp-face svg { width: 100%; height: 100%; display: block; }
@media (max-height: 500px) { .level-pop.crew-pop { padding-top: 34px; } .level-pop .cp-face { width: 52px; height: 52px; top: -26px; } }
/* round 55: it sat over the stand's first buyers for 3.6 s, just as the stand opened (round 54's feel pass). Now a band,
   the face beside the words, down on the grass in front of the stand, where nobody queues: the middle of a laptop or an
   upright phone. A sideways phone has hardly any grass: see round 56, below. */
.level-pop.crew-pop { top: 71%; grid-template-columns: auto auto; column-gap: 12px; row-gap: 3px; align-items: center;
    justify-items: start; text-align: left; padding: 9px 22px 10px 9px; }
.level-pop.crew-pop .cp-face { position: static; translate: none; grid-row: 1 / span 3; width: 60px; height: 60px; }
.level-pop.crew-pop > :not(.cp-face) { grid-column: 2; }
.level-pop.crew-pop b { font-size: 1.6rem; }
.level-pop.crew-pop .lp-opens { max-width: min(240px, 56vw); }
/* round 56: sideways it lay over the cart, where buyers walk up to the counter (round 55's ten, 10). Not above the
   awning either: on a small sideways phone the stand is high, and there it lay over the buyers' price chips. Over the
   clock's pill, under the money, for its 3.6 s: what it hides there can wait, and nobody stands there */
@media (max-height: 500px) {
    .level-pop.crew-pop { top: calc(env(safe-area-inset-top, 0px) + 62px); bottom: auto; left: max(12px, env(safe-area-inset-left, 0px)); translate: 0 0;
        padding: 6px 14px 7px 6px; column-gap: 9px; row-gap: 2px; animation-name: crew-pop-side; }
    .level-pop.crew-pop .cp-face { width: 40px; height: 40px; }
    .level-pop.crew-pop b { font-size: 1.1rem; }
    .level-pop.crew-pop .lp-eyebrow { font-size: .62rem; }
    .level-pop.crew-pop .lp-opens { font-size: .74rem; max-width: 160px; }
}
@keyframes crew-pop-side { 0% { opacity: 0; scale: .4; } 10% { opacity: 1; scale: 1.12; } 18% { scale: 1; } 86% { opacity: 1; scale: 1; } 100% { opacity: 0; scale: 1.04; translate: 0 -30%; } }
.dc-crew { width: 100%; max-width: 420px; display: grid; gap: 6px; padding: 8px 10px; border-radius: 14px; text-align: left;
    background: linear-gradient(180deg, #f2f7ea, #dfeccd); border: 2.5px solid var(--g-ink, #2f1f45); box-shadow: 0 3px 0 var(--g-ink, #2f1f45); box-sizing: border-box; }
.dc-crew .dcc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.dc-crew .dcc-head b { font: 400 .9rem/1 var(--font-game); letter-spacing: .06em; text-transform: uppercase; color: #3f5a2a; }
.dc-crew .dcc-head small { font-size: var(--fs-xs); font-weight: 700; color: #5d6b52; }
.dc-crew .dcc-head small.unpaid { color: #b0473a; }
.dc-crew .dcc-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dc-crew .dcc-face { flex: none; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: #c9dcae; box-shadow: 0 0 0 2px #fff; }
.dc-crew .dcc-face svg { width: 100%; height: 100%; display: block; }
.dc-crew .dcc-text { flex: 1; min-width: 0; font-size: var(--fs-sm); line-height: 1.25; color: #2f3a28; }
.dc-crew .dcc-text b { font-weight: 800; }
.dc-crew .dcc-lv { font-style: normal; font-size: var(--fs-xs); font-weight: 800; padding: 0 .45em; border-radius: 999px; background: #fff; color: #4f6b33; }
.dc-crew .dcc-row.up .dcc-lv { background: linear-gradient(180deg, var(--g-gold-1, #ffe27a), var(--g-gold-2, #f2b843)); color: #3a2a10; }
.dc-crew .dcc-did { display: block; color: #4a5640; }
.dc-crew .dcc-pick { flex: none; padding: 5px 10px; border-radius: 999px; font-weight: 800; font-size: var(--fs-xs);
    background: linear-gradient(180deg, #ffd87a, #f2b843); color: #3a2a10; border: 2px solid var(--g-ink, #2f1f45); box-shadow: 0 2px 0 var(--g-ink, #2f1f45); }
.dc-crew .dcc-pick:active { transform: translateY(2px); box-shadow: none; }
/* round 56: a worker on a day off (paid all the same) says so in red, with "Set to work" in green beside them */
.dc-crew .dcc-row.off .dcc-did { color: #a0453a; font-weight: 700; }
.dc-crew .dcc-work { background: linear-gradient(180deg, #d6efb8, #9ccc6e); color: #23361a; }
/* round 54: while a hunt runs (the comb, the eggs), nothing but its finds takes a tap — a finger that came down just after
   a find went landed on High Bench's chip behind it, opened the farm's page and ended the comb (round 53's comb bots, both
   builds). The miss goes to the world, which does nothing while a hunt runs. */
main.screenmode.hunting .hot3d:not(.hunt3d), main.screenmode.hunting .hot3d:not(.hunt3d) * { pointer-events: none !important; }

/* ── Round 79: luck that pays money (Docs/NEXT_LEVEL_PLAN.md, 3.1) ─────────────────────────────────────────────────
   The Buzz multiplies the sale now, so a lucky sale's floater leads with its sum, small, over what it came to; the
   slip's luck lines are gold; a frenzy has a pill of its own in the clock's row; the golden buyer's chip is ringed in
   gold; their prize is said big where the run's word is; and the day's card has a Luck line.                        */
.float3d .f-luck { order: 0; text-decoration: none; font: 400 .92rem/1 var(--font-game); letter-spacing: .03em; color: #fff3c4;
    text-shadow: var(--g-outline); white-space: nowrap; animation: fl-sum .5s cubic-bezier(.2, 1.5, .4, 1) both; }
.float3d.lucky b { color: #ffe27a; -webkit-text-fill-color: #ffe27a; font-size: 1.25em;
    text-shadow: 0 2px 0 #a3600f, 0 0 14px rgba(255, 210, 90, .85), 0 0 2px #5a3608; animation: fl-total .7s cubic-bezier(.2, 1.6, .4, 1) .18s both; }
.float3d.lucky.loved em { background: linear-gradient(180deg, #ff86ab, #d93f73); color: #fff; font-size: .86rem; }
.float3d.lucky.talk em { background: linear-gradient(180deg, #ffe48a, #f2a93c); color: #3a2a06; font-size: .92rem; }
.float3d.lucky.loved b { font-size: 1.5em; }
.float3d.golden em { background: #5a4a2a; color: #ffe9a8; }
@keyframes fl-sum { 0% { opacity: 0; transform: translateY(6px) scale(.8); } 100% { opacity: 1; transform: none; } }
@keyframes fl-total { 0% { transform: scale(.5); } 55% { transform: scale(1.28); } 100% { transform: none; } }
.f-slip .fs-buzz .fs-w, .f-slip .fs-frenzy .fs-w { color: #8a5a00; }
.f-slip .fs-loved .fs-w, .f-slip .fs-loved .fs-v { color: #b8285a; }
.f-slip .fs-buzz .fs-v, .f-slip .fs-frenzy .fs-v, .f-slip .fs-loved .fs-v { font: 400 1.12rem/1 var(--font-game); letter-spacing: .02em;
    display: inline-block; animation: fs-stamp .42s cubic-bezier(.2, 1.5, .4, 1) both; animation-delay: inherit; }
.f-slip .fs-buzz .fs-v, .f-slip .fs-frenzy .fs-v { color: #b06f00; }
.f-slip .fs-luck { margin-top: 3px; padding-top: 4px; border-top: 1.5px dashed rgba(51, 40, 60, .4); font-size: .86rem; }
.f-slip .fs-luck .fs-v { padding: 1px 8px 2px; border-radius: 999px; color: #3a2a06; background: linear-gradient(180deg, #ffe48a, #f2bf3c); font-weight: 800; }
.f-slip .fs-tipline { font-size: .78rem; color: #5b4a68; }

.hud .hud-frenzy {
    display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; margin-left: 8px; position: relative;
    padding: 3px 10px 7px 8px; border-radius: 12px; border: 2.5px solid var(--g-ink); color: #3a2a06; text-shadow: none;
    background: linear-gradient(90deg, #ffd86a, #ffb02e, #ffd86a); background-size: 200% 100%;
    box-shadow: 0 3px 0 var(--g-ink), 0 0 18px rgba(255, 190, 60, .8); animation: hr-rush 1.1s linear infinite;
}
.hud .hud-frenzy b { font: 400 1.3rem/1 var(--font-game); color: #fff; letter-spacing: .01em; text-shadow: var(--g-outline); }
.hud .hud-frenzy span { font: 400 .86rem/1 var(--font-game); letter-spacing: .03em; color: #fff; text-shadow: var(--g-outline); }
.hud .hud-frenzy .hf-bar { position: absolute; left: 8px; right: 8px; bottom: 2px; height: 3px; border-radius: 2px; background: rgba(90, 54, 8, .3); overflow: hidden; }
.hud .hud-frenzy .hf-fill { position: absolute; inset: 0; border-radius: 2px; background: #fff6c8; transform-origin: left center;
    animation-name: hr-drain; animation-timing-function: linear; animation-fill-mode: both; }
.hud .hud-frenzy.ending { animation-duration: .5s; }

.guest3d.golden .g3-track { stroke: #f2b632; stroke-width: 7; fill: #fff8dc; }
.guest3d.golden .g3-ring { filter: drop-shadow(0 0 7px rgba(255, 200, 70, 1)) drop-shadow(0 0 3px rgba(255, 200, 70, .9)) drop-shadow(0 3px 6px rgba(30, 18, 40, .32)); }
/* (round 80: the star is a child of its own. Round 79 drew it with the chip's ::after, which is the tap on the person's body.) */
.guest3d .g3-star { display: none; position: absolute; left: 50%; top: -15px; translate: -50% 0; font: 400 1.15rem/1 var(--font-game);
    color: #ffd24a; text-shadow: var(--g-outline), 0 0 10px rgba(255, 210, 90, .9); pointer-events: none; animation: g3-gold 1s ease-in-out infinite alternate; }
.guest3d.golden .g3-star { display: block; }
.guest3d.pressed .g3-star, .guest3d.pressed .g3-off { display: none; }
@keyframes g3-gold { from { transform: translateY(0) scale(1); } to { transform: translateY(-3px) scale(1.15); } }

.run-pop.luck-pop { z-index: 45; animation-name: luck-pop; animation-timing-function: cubic-bezier(.2, 1.3, .4, 1); }
.run-pop.luck-pop b { font-size: 2.7rem; color: #ffe27a; text-shadow: var(--g-outline), 0 6px 0 rgba(90, 54, 8, .5), 0 0 36px rgba(255, 200, 80, .95); }
.run-pop.luck-pop span { font-size: 1.2rem; color: #fff; }
.run-pop.luck-pop.jackpot b { font-size: 3.4rem; }
.run-pop.luck-pop.talk b { font-size: 2.1rem; color: #ffd0de; }
.run-pop.luck-pop::before { content: ""; position: absolute; inset: -70% -25%; z-index: -1; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255, 214, 110, .5), rgba(255, 214, 110, 0)); }
@keyframes luck-pop { 0% { opacity: 0; scale: .4; } 9% { opacity: 1; scale: 1.18; } 16% { scale: 1; } 86% { opacity: 1; scale: 1; } 100% { opacity: 0; scale: 1.06; } }
@media (max-width: 640px) { .run-pop.luck-pop b { font-size: 2.1rem; } .run-pop.luck-pop.jackpot b { font-size: 2.7rem; } .run-pop.luck-pop.talk b { font-size: 1.6rem; } .run-pop.luck-pop span { font-size: 1rem; white-space: normal; max-width: 86vw; } }
@media (max-height: 500px) and (orientation: landscape) { .run-pop.luck-pop b { font-size: 2rem; } .run-pop.luck-pop.jackpot b { font-size: 2.4rem; } .run-pop.luck-pop span { font-size: 1rem; } }

.dc-luck { display: grid; justify-items: center; gap: 2px; margin-top: 6px; text-align: center; }
.dc-luck b { padding: 5px 13px 6px; border-radius: 12px; border: 2.5px solid var(--g-ink, #2f1f45); box-shadow: 0 3px 0 var(--g-ink, #2f1f45);
    font: 400 1rem/1.15 var(--font-game, var(--font-display)); letter-spacing: .02em; color: #3a2a06;
    background: linear-gradient(180deg, #ffe48a, #f2a93c); }
.dc-luck span { font: 700 var(--fs-xs, .76rem)/1.3 var(--font-ui, system-ui); color: var(--ink-soft, #5b4a68); max-width: 46ch; text-wrap: balance; }

.verb.primary small.vday { font-size: var(--fs-sm); font-weight: 800; opacity: 1; }
.verb.primary small.vcost { font-size: .68rem; opacity: .78; margin-top: 0; }
.verb.primary small.vday .vd-short { display: none; }
main.screenmode .verb.primary small.vday { color: #ffe9a8; }
@media (max-width: 640px) {
    /* a phone's button is narrow, and with Restock beside it the small print was hidden: the day's line stays, short */
    .verb.primary small.vday .vd-long { display: none; }
    .verb.primary small.vday .vd-short { display: inline; }
    .verb.primary small.vday, .pb-verb:has(.second) .verb.primary small.vday { display: block; font-size: .7rem; margin-top: 1px; }   /* (11 px: the legibility bot's floor) */
    .verb.primary small.vcost { display: none; }
}
@media (max-width: 360px) { .verb.primary small.vday, .pb-verb:has(.second) .verb.primary small.vday { display: none; } }
@media (prefers-reduced-motion: reduce) { .float3d .f-luck, .float3d.lucky b, .hud .hud-frenzy, .guest3d .g3-star { animation: none; } }

/* ── Round 80: hands off (Docs/NEXT_LEVEL_PLAN.md, 3.5) ──────────────────────────────────────────────────────────────
   A chip says who'll take its basket if you don't: a little tin for the honesty box, the hired hand's initial in
   their coat's colour. A basket handed off is answered smaller than one served. The bell's button sits at the end of
   the tally; the day's card says what each took.                                                                    */
.guest3d .g3-off { display: none; position: absolute; left: -5px; bottom: -3px; width: 20px; height: 17px; box-sizing: border-box; pointer-events: none;
    border: 2px solid var(--g-ink, #2f1f45); border-radius: 4px; background: linear-gradient(180deg, #e9c66a, #c9992e); box-shadow: 0 2px 0 var(--g-ink, #2f1f45);
    font: 800 .62rem/13px var(--font-ui, system-ui); color: #fff; text-align: center; }
.guest3d.off-box .g3-off { display: block; }
.guest3d.off-box .g3-off::before { content: ""; position: absolute; left: 4px; right: 4px; top: 3px; height: 2.5px; border-radius: 2px; background: #5a3a08; }
.guest3d.off-hand .g3-off { display: block; width: 19px; height: 19px; border-radius: 50%; background: #b0687e; line-height: 15px; }
.float3d.off { opacity: .92; }
.float3d.off b { font-size: .82em; color: #f3e6bd; -webkit-text-fill-color: #f3e6bd; text-shadow: var(--g-outline); }
.float3d.off em { background: rgba(60, 46, 80, .82); font-size: .68rem; }

.hud .tally .hud-bell { pointer-events: auto; display: inline-flex; align-items: center; gap: 3px; margin: -4px -6px -4px 6px; padding: 3px 8px 4px 6px; min-height: 34px;
    border: 2.5px solid var(--g-ink, #2f1f45); border-radius: 12px; background: linear-gradient(180deg, #fff6d8, #ffe39a); box-shadow: 0 3px 0 var(--g-ink, #2f1f45);
    color: var(--g-ink, #2f1f45); cursor: pointer; transition: none; }
.hud .tally .hud-bell b { font: 400 1rem/1 var(--font-game, var(--font-display)); }
.hud .tally .hud-bell svg { transform-origin: 50% 10%; }
.hud .tally .hud-bell.hot { background: linear-gradient(180deg, #ffd27a, #ff9f3a); box-shadow: 0 3px 0 var(--g-ink, #2f1f45), 0 0 14px rgba(255, 190, 60, .85); }
.hud .tally .hud-bell.hot svg { animation: bell-swing .5s ease-in-out infinite alternate; }
.hud .tally .hud-bell.rung svg { animation: bell-swing .16s ease-in-out 8 alternate; }
.hud .tally .hud-bell:active { translate: 0 2px; box-shadow: 0 1px 0 var(--g-ink, #2f1f45); }
@keyframes bell-swing { from { rotate: -16deg; } to { rotate: 16deg; } }

.dc-off { display: grid; justify-items: center; gap: 1px; margin-top: 6px; text-align: center; }
.dc-off span { font: 700 var(--fs-xs, .76rem)/1.35 var(--font-ui, system-ui); color: var(--ink-soft, #5b4a68); }
@media (prefers-reduced-motion: reduce) { .hud .tally .hud-bell svg { animation: none !important; } }


/* ── Round 81: today's cards (Docs/NEXT_LEVEL_PLAN.md, 3.2) ──────────────────────────────────────────────────────────
   The morning's three, as tickets on Nell's table: the day's target over them, "Deal again" and "Not yet" under.
   Upright they stack as rows; with room they stand side by side. At the counter the card has a pill in the clock's row,
   a high roller wears "×3", and the tally's best-to-beat is the next medal. The day's card has the medal, what the
   card did, and the chest.                                                                                          */
.cardsdeal { position: fixed; inset: 0; z-index: 75; display: grid; place-items: center; padding: 10px 12px; box-sizing: border-box;
    background: rgba(38, 24, 58, .58); pointer-events: auto; animation: cd-fade .18s ease-out both; }
@keyframes cd-fade { from { opacity: 0; } to { opacity: 1; } }
.cd-table { width: min(720px, 100%); max-height: 100%; overflow: auto; box-sizing: border-box; display: grid; gap: 9px; padding: 12px 14px 14px;
    border: 3px solid var(--g-ink, #2f1f45); border-radius: 20px; background: linear-gradient(180deg, var(--g-parch-1, #fff9ec), var(--g-parch-2, #f6e6c6));
    box-shadow: 0 6px 0 var(--g-ink, #2f1f45), 0 18px 40px rgba(20, 10, 40, .45); color: var(--g-ink, #2f1f45); }
.cd-table h2 { margin: 0; text-align: center; font: 400 1.5rem/1.1 var(--font-game, Georgia, serif); letter-spacing: .01em; color: var(--g-band-3, #5d3eab); }
.cd-nell { margin: 0; display: grid; gap: 1px; padding: 7px 10px; border-radius: 12px; background: rgba(176, 143, 240, .18); border: 2px solid rgba(93, 62, 171, .35);
    font: 700 .84rem/1.3 var(--font-ui, system-ui); color: var(--g-ink-2, #4a3466); }
.cd-nell b { font-weight: 800; color: var(--g-ink, #2f1f45); }
.cd-target { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 12px; }
.cd-target .cd-tl { flex-basis: 100%; text-align: center; font: 800 .8rem/1.2 var(--font-ui, system-ui); color: var(--g-ink-2, #4a3466); }
.cd-target .cd-ts { flex-basis: 100%; text-align: center; font: 700 .74rem/1.2 var(--font-ui, system-ui); color: #6a5a80; }
.cd-medal { display: inline-flex; align-items: baseline; gap: 4px; }
.cd-medal i, .hud-target i, .dc-medal i { display: inline-block; width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--g-ink, #2f1f45); box-sizing: border-box;
    align-self: center; flex: none; background: #d9d2e4; }
.m-bronze > i { background: linear-gradient(180deg, #e7a56a, #b9693a); }
.m-silver > i { background: linear-gradient(180deg, #f4f6fa, #aab4c6); }
.m-gold > i { background: linear-gradient(180deg, var(--g-gold-1, #ffe27a), var(--g-gold-2, #f4ae2c)); }
.cd-medal b { font: 400 1.1rem/1 var(--font-game, Georgia, serif); }
.cd-medal small { font: 700 .72rem/1 var(--font-ui, system-ui); color: #6a5a80; }
.cd-three { display: grid; gap: 8px; }
.cd-card { position: relative; display: grid; grid-template-columns: 62px 1fr; grid-template-areas: "big name" "big does" "big odds" "big catch"; column-gap: 10px; row-gap: 1px;
    align-items: center; text-align: left; padding: 9px 12px 10px 9px; min-height: 76px; cursor: pointer; color: var(--g-ink, #2f1f45);
    border: 2.5px solid var(--g-ink, #2f1f45); border-radius: 14px; background: linear-gradient(180deg, #fffefa, #f7ecd6);
    box-shadow: 0 4px 0 var(--g-ink, #2f1f45); animation: cd-drop .34s var(--ease-pop, cubic-bezier(.2, 1.35, .4, 1)) both; }
@keyframes cd-drop { from { opacity: 0; translate: 0 -16px; rotate: -3deg; } to { opacity: 1; translate: 0 0; rotate: 0deg; } }
.cd-card:active { translate: 0 3px; box-shadow: 0 1px 0 var(--g-ink, #2f1f45); }
.cd-card[disabled] { opacity: .5; cursor: default; }
.cd-card .dk-big { grid-area: big; display: grid; place-items: center; align-self: stretch; border-radius: 10px; border: 2px solid var(--g-ink, #2f1f45);
    font: 400 1.25rem/1 var(--font-game, Georgia, serif); color: #fff; text-shadow: var(--g-outline); background: linear-gradient(180deg, var(--g-band-1, #b08ff0), var(--g-band-2, #7f5bd0)); }
.cd-card > b { grid-area: name; font: 400 1.08rem/1.15 var(--font-game, Georgia, serif); letter-spacing: .01em; }
.cd-card .dk-does { grid-area: does; font: 700 .86rem/1.25 var(--font-ui, system-ui); color: var(--g-ink, #2f1f45); }
.cd-card .dk-odds { grid-area: odds; font: 700 .74rem/1.25 var(--font-ui, system-ui); color: #6a5a80; }
.cd-card .dk-catch { grid-area: catch; font: 800 .76rem/1.25 var(--font-ui, system-ui); color: #a8322b; }
.cd-card.nocatch .dk-catch { color: #3f7d33; }
.cd-card.k-coachtour .dk-big { background: linear-gradient(180deg, #7fc4f2, #3b86c8); }
.cd-card.k-craze .dk-big { background: linear-gradient(180deg, #ff9fc0, #e2567f); }
.cd-card.k-poshpicnic .dk-big { background: linear-gradient(180deg, #c7a6ff, #7f5bd0); }
.cd-card.k-villagefete .dk-big { background: linear-gradient(180deg, var(--g-green-1, #a6e36f), var(--g-green-2, #55b043)); }
.cd-card.k-luckyday .dk-big, .cd-card.k-highrollers .dk-big { background: linear-gradient(180deg, var(--g-gold-1, #ffe27a), var(--g-gold-2, #f4ae2c)); }
.cd-card.k-doubleornothing .dk-big { background: linear-gradient(180deg, var(--g-red-1, #ff8070), var(--g-red-2, #e0443b)); }
.cd-card.k-raincheque .dk-big { background: linear-gradient(180deg, #b9c6d8, #76879f); }
.cd-foot { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.cd-foot .verb { min-height: 40px; padding: 6px 16px; }
@media (min-width: 700px), (orientation: landscape) and (min-width: 600px) {
    .cd-three { grid-template-columns: repeat(3, 1fr); }
    .cd-card { grid-template-columns: 1fr; grid-template-areas: "big" "name" "does" "odds" "catch"; text-align: center; justify-items: center; align-content: start; padding: 8px 8px 10px; }
    .cd-card .dk-big { width: 100%; min-height: 40px; margin-bottom: 4px; }
}
@media (orientation: landscape) and (max-height: 480px) {
    .cardsdeal { padding: 4px 10px; }
    .cd-table { gap: 5px; padding: 7px 12px 9px; }
    .cd-table h2 { font-size: 1.15rem; }
    .cd-nell { padding: 4px 9px; font-size: .76rem; grid-auto-flow: column; justify-content: center; gap: 0 8px; }
    .cd-target .cd-ts { display: none; }
    .cd-card { min-height: 0; padding: 6px 7px 7px; }
    .cd-card .dk-big { min-height: 30px; font-size: 1.05rem; margin-bottom: 2px; }
    .cd-card > b { font-size: .98rem; }
    .cd-card .dk-does { font-size: .78rem; line-height: 1.2; }
    .cd-foot .verb { min-height: 34px; padding: 4px 14px; }
}
/* at the counter */
.hud .hud-card { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; margin-left: 8px; padding: 2px 9px 3px 4px; border-radius: 999px;
    border: 2px solid var(--g-ink, #2f1f45); background: linear-gradient(180deg, var(--g-parch-1, #fff9ec), var(--g-parch-2, #f6e6c6)); box-shadow: 0 2px 0 var(--g-ink, #2f1f45);
    color: var(--g-ink, #2f1f45); text-shadow: none; white-space: nowrap; font: 800 .72rem/1.2 var(--font-ui, system-ui); }
.hud .hud-card b { min-width: 22px; padding: 1px 5px 2px; border-radius: 999px; text-align: center; font: 400 .82rem/1.15 var(--font-game, Georgia, serif); color: #fff;
    text-shadow: 1px 0 0 var(--g-ink), -1px 0 0 var(--g-ink), 0 1px 0 var(--g-ink), 0 -1px 0 var(--g-ink); background: var(--g-band-2, #7f5bd0); }
.hud .hud-card.k-coachtour b { background: #3b86c8; }
.hud .hud-card.k-craze b { background: #e2567f; }
.hud .hud-card.k-villagefete b { background: var(--g-green-2, #55b043); }
.hud .hud-card.k-luckyday b, .hud .hud-card.k-highrollers b { background: var(--g-gold-2, #f4ae2c); }
.hud .hud-card.k-doubleornothing b { background: var(--g-red-2, #e0443b); }
.hud .tally .tobeat.hud-target { display: inline-flex; align-items: center; gap: 5px; }
.hud .tally .tobeat.hud-target i { width: 11px; height: 11px; border-width: 1.5px; }
.guest3d .g3-roll { display: none; position: absolute; right: -12px; bottom: -6px; min-width: 28px; padding: 2px 5px 3px; box-sizing: border-box; pointer-events: none;
    border: 2px solid var(--g-ink, #2f1f45); border-radius: 999px; background: linear-gradient(180deg, var(--g-gold-1, #ffe27a), var(--g-gold-2, #f4ae2c));
    box-shadow: 0 2px 0 var(--g-ink, #2f1f45), 0 0 10px rgba(255, 200, 70, .8); font: 400 .88rem/1.1 var(--font-game, Georgia, serif); color: #3a2a06; text-align: center; }
.guest3d.roller .g3-roll { display: block; }
.guest3d.pressed .g3-roll { display: none; }
/* the day's card */
.dc-cards { display: grid; justify-items: center; gap: 4px; margin-top: 7px; text-align: center; }
.dc-medal { display: inline-flex; align-items: center; gap: 6px; font: 800 var(--fs-sm, .84rem)/1.3 var(--font-ui, system-ui); color: var(--ink, #2f1f45); }
.dc-medal.m-none { color: var(--ink-soft, #5b4a68); font-weight: 700; }
.dc-cards .dc-card { font: 700 var(--fs-xs, .76rem)/1.35 var(--font-ui, system-ui); color: var(--ink-soft, #5b4a68); }
.dc-cards .dc-card.lost { color: #a8322b; }
.dc-chest { display: inline-flex; align-items: center; gap: 8px; margin-top: 2px; padding: 5px 14px 6px 9px; min-height: 42px; cursor: pointer; color: #3a2a06;
    border: 2.5px solid var(--g-ink, #2f1f45); border-radius: 14px; box-shadow: 0 3px 0 var(--g-ink, #2f1f45); font: 800 .84rem/1.2 var(--font-ui, system-ui);
    background: linear-gradient(180deg, #f4f6fa, #c3cbd9); animation: chest-wait 1.1s ease-in-out infinite alternate; }
.dc-chest.m-gold { background: linear-gradient(180deg, var(--g-gold-1, #ffe27a), var(--g-gold-2, #f4ae2c)); }
.dc-chest .ch-lid { fill: #b9783a; transform-origin: 4px 13px; transform-box: view-box; transition: transform .22s var(--ease-pop, ease-out); }
.dc-chest .ch-box { fill: #9a5f2a; }
.dc-chest.open { animation: chest-open .5s var(--ease-pop, ease-out) both; cursor: default; }
.dc-chest.open .ch-lid { transform: rotate(-38deg); }
.dc-chest.open span { font: 400 1.05rem/1.1 var(--font-game, Georgia, serif); }
.dc-chest.rich.open { box-shadow: 0 3px 0 var(--g-ink, #2f1f45), 0 0 18px rgba(255, 190, 60, .9); }
.dc-chest:active { translate: 0 2px; box-shadow: 0 1px 0 var(--g-ink, #2f1f45); }
@keyframes chest-wait { from { rotate: -1.5deg; } to { rotate: 1.5deg; } }
@keyframes chest-open { 0% { scale: 1; } 40% { scale: 1.14; } 100% { scale: 1; } }
@media (prefers-reduced-motion: reduce) { .cd-card, .cardsdeal, .dc-chest, .dc-chest.open { animation: none; } }

/* ── Round 82: charms and the peddler's cart (Docs/NEXT_LEVEL_PLAN.md, 3.3) ──────────────────────────────────────────
   The peddler's button stands above the playbar on his mornings. His table borrows the cards' table (round 81): what
   hangs on your stand, his three with their prices, the lucky dip's tubs and their odds. The day's card has a line for
   each charm that did something.                                                                                     */
.peddler-btn { position: absolute; left: 12px; bottom: calc(var(--playbar-h, 76px) + 12px); z-index: 5; display: inline-flex; align-items: center; gap: 7px;
    min-height: 44px; padding: 5px 13px 6px 9px; cursor: pointer; color: var(--g-ink, #2f1f45); font: 400 .98rem/1 var(--font-game, Georgia, serif);
    border: 2.5px solid var(--g-ink, #2f1f45); border-radius: 14px; background: linear-gradient(180deg, var(--g-parch-1, #fff9ec), var(--g-parch-2, #f6e6c6));
    box-shadow: 0 3px 0 var(--g-ink, #2f1f45); }
.peddler-btn.new { animation: peddler-new 1.1s ease-in-out infinite alternate; }
.peddler-btn:active { translate: 0 2px; box-shadow: 0 1px 0 var(--g-ink, #2f1f45); }
@keyframes peddler-new { from { box-shadow: 0 3px 0 var(--g-ink, #2f1f45), 0 0 0 rgba(255, 200, 70, 0); } to { box-shadow: 0 3px 0 var(--g-ink, #2f1f45), 0 0 16px rgba(255, 200, 70, .95); } }
.ct-hooks { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 7px; }
.ct-hooks .ct-hl { flex-basis: 100%; text-align: center; font: 800 .8rem/1.2 var(--font-ui, system-ui); color: var(--g-ink-2, #4a3466); }
.ct-hook { display: inline-flex; align-items: center; gap: 5px; min-height: 38px; padding: 3px 11px 4px 6px; border-radius: 999px; cursor: pointer; color: var(--g-ink, #2f1f45);
    border: 2px solid var(--g-ink, #2f1f45); background: #fffefa; box-shadow: 0 2px 0 var(--g-ink, #2f1f45); font: 800 .78rem/1.15 var(--font-ui, system-ui); }
.ct-hook.silver { background: linear-gradient(180deg, #f4f6fa, #c9d1de); }
.ct-hook.asking { background: linear-gradient(180deg, var(--g-red-1, #ff8070), var(--g-red-2, #e0443b)); color: #fff; }
.ct-hook.empty { cursor: default; border-style: dashed; background: rgba(255, 255, 255, .45); box-shadow: none; color: #6a5a80; font-weight: 700; }
.ct-ware .dk-big { background: linear-gradient(180deg, #fffefa, #efe2c6); }
.ct-ware.silver .dk-big { background: linear-gradient(180deg, #f4f6fa, #b9c3d3); }
.ct-ware.k-hook .dk-big { background: linear-gradient(180deg, #e9defa, #c7b3ee); }
.ct-ware .ct-price { font: 400 1.02rem/1.1 var(--font-game, Georgia, serif); color: #2f6f26; }
.ct-ware.cant .ct-price { color: #a8322b; }
.ct-ware.cant.why-hook .ct-price { font: 800 .76rem/1.25 var(--font-ui, system-ui); }
.ct-ware[disabled] .ct-price { color: #6a5a80; }
.ct-dip { display: grid; justify-items: center; gap: 5px; padding: 8px 10px 9px; border-radius: 14px; border: 2px dashed rgba(93, 62, 171, .5); background: rgba(176, 143, 240, .14); }
.ct-dip > b { font: 400 1rem/1.1 var(--font-game, Georgia, serif); color: var(--g-band-3, #5d3eab); }
.ct-tubs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.ct-tubs .ct-tub { min-height: 40px; min-width: 76px; padding: 5px 14px; }
.ct-tubs .ct-tub.t1 { background: linear-gradient(180deg, #f4f6fa, #c3cbd9); }
.ct-tubs .ct-tub.t2 { background: linear-gradient(180deg, var(--g-gold-1, #ffe27a), var(--g-gold-2, #f4ae2c)); }
.ct-parcel { padding: 3px 12px 4px; border-radius: 999px; border: 2px solid var(--g-ink, #2f1f45); background: #fffefa; font: 400 1rem/1.15 var(--font-game, Georgia, serif); color: var(--g-ink, #2f1f45);
    animation: chest-open .5s var(--ease-pop, ease-out) both; }
.ct-parcel.p2 { color: #6a5a80; font: 800 .82rem/1.2 var(--font-ui, system-ui); }
.ct-parcel.p20, .ct-parcel.p30 { background: linear-gradient(180deg, var(--g-gold-1, #ffe27a), var(--g-gold-2, #f4ae2c)); }
.ct-parcel.p100 { background: linear-gradient(180deg, var(--g-gold-1, #ffe27a), var(--g-gold-2, #f4ae2c)); box-shadow: 0 0 18px rgba(255, 190, 60, .95); font-size: 1.2rem; }
.ct-odds { text-align: center; font: 700 .72rem/1.3 var(--font-ui, system-ui); color: #6a5a80; max-width: 46ch; }
@media (orientation: landscape) and (max-height: 480px) {
    .ct-table { gap: 4px; }
    .ct-hook { min-height: 30px; padding: 1px 9px 2px 5px; font-size: .72rem; }
    .ct-hook svg { width: 20px; height: 20px; }
    .ct-ware .dk-big svg { width: 24px; height: 24px; }
    .ct-dip { grid-template-columns: auto auto; grid-auto-flow: dense; align-items: center; gap: 3px 10px; padding: 4px 10px 5px; }
    .ct-dip > b { font-size: .9rem; }
    .ct-odds { grid-column: 1 / -1; font-size: .7rem; max-width: none; }
    .ct-tubs .ct-tub { min-height: 32px; padding: 3px 12px; }
    .peddler-btn { min-height: 38px; }
}
.dc-charms { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px 12px; margin-top: 6px; }
.dc-charm { display: inline-flex; align-items: center; gap: 4px; font: 700 var(--fs-xs, .76rem)/1.35 var(--font-ui, system-ui); color: var(--ink-soft, #5b4a68); }
@media (prefers-reduced-motion: reduce) { .peddler-btn.new, .ct-parcel { animation: none; } }

/* ==== Round 83: new faces at the counter (App.Faces.cs) — the haggler and the collector ============================== */
/* their chips: the tag a high roller wears, in each face's own colour (terracotta: a deal; blue: a set) */
.guest3d.face-haggler .g3-roll { background: linear-gradient(180deg, #ffd9c2, #f08a5d); color: #4a1a06;
    box-shadow: 0 2px 0 var(--g-ink, #2f1f45), 0 0 10px rgba(240, 138, 93, .75); }
.guest3d.face-collector .g3-roll { background: linear-gradient(180deg, #e2f5ff, #74c0ea); color: #06304a;
    box-shadow: 0 2px 0 var(--g-ink, #2f1f45), 0 0 10px rgba(116, 192, 234, .8); }
.guest3d.face-collector.lacking .g3-roll { background: linear-gradient(180deg, #f1edf5, #b8adc4); color: #3f3a4a; box-shadow: 0 2px 0 var(--g-ink, #2f1f45);
    font: 800 .68rem/1.25 var(--font-ui, system-ui); white-space: nowrap; }
/* the day's strip: the collector's glass over the hour they're due, gold once they've come */
.hud .daystrip .ds-collector {
    position: absolute; top: -11px; width: 8px; height: 8px; margin-left: -4px; box-sizing: border-box; border-radius: 50%;
    border: 2px solid #8fd0f2; background: rgba(226, 245, 255, .35); box-shadow: 0 1px 0 rgba(0, 0, 0, .35);
}
.hud .daystrip .ds-collector::after {   /* its handle */
    content: ""; position: absolute; left: 5px; top: 5px; width: 4px; height: 2px; border-radius: 1px; background: #8fd0f2; transform: rotate(45deg); transform-origin: 0 50%;
}
.hud .daystrip .ds-collector.here { border-color: #f2bf3c; }
.hud .daystrip .ds-collector.here::after { background: #f2bf3c; }
/* on the order: what a haggler offers, what a collector's set pays (or what it lacks) */
.bagbar .bb-face { flex: none; align-self: center; padding: 2px 7px 3px; border-radius: 999px; white-space: nowrap; max-width: 46%; overflow: hidden; text-overflow: ellipsis;
    font: 800 .72rem/1 var(--font-ui, system-ui); }
.bagbar .bb-face.f-haggler { color: #7a2a08; background: #ffe6d8; border: 1.5px solid #d4754a; }
.bagbar .bb-face.f-collector { color: #0b3f61; background: #dff3ff; border: 1.5px solid #3b86c8; }
.bagbar .bb-face.f-collector.lacking { color: #4b445a; background: #ece8f1; border-color: #9a90a8; }
/* the haggle, where the tiles were: their offer to take, and the lot to hold out for with its odds */
.bagbar .bb-haggle { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-content: center; align-self: center; }
.bagbar .bb-haggle button { display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 68px; padding: 8px 5px 9px; cursor: pointer;
    border: 2.5px solid var(--g-ink, #2f1f45); border-radius: 14px; box-shadow: 0 3px 0 var(--g-ink, #2f1f45); color: var(--g-ink, #2f1f45); }
.bagbar.haggling .bb-main .bb-tiles { display: none; }     /* (the tiles' own display beats the hidden attribute) */
.bagbar .bb-haggle button small { font: 800 .7rem/1.1 var(--font-ui, system-ui); text-align: center; opacity: .82; }
.bagbar .bb-haggle button b { font: 400 1.3rem/1 var(--font-game, Georgia, serif); font-variant-numeric: tabular-nums; }
.bagbar .bb-haggle button span { font: 800 .72rem/1.15 var(--font-ui, system-ui); text-align: center; padding: 2px 8px 3px; border-radius: 999px; background: rgba(47, 31, 69, .12); }
/* a face's chip wears its name underneath, where a high roller's tag sits: theirs goes up to the left (never golden, never handed off) */
.guest3d.face-haggler .g3-roll, .guest3d.face-collector .g3-roll { right: auto; bottom: auto; left: -14px; top: -8px; }
/* a collector's slip is one of everything: past four kinds they're drawn smaller, three to a row on the bag's front */
.bagbar .bb-front .bb-order:has(> .bb-item:nth-child(5)) { gap: 3px; justify-content: center; }
.bagbar .bb-front .bb-order:has(> .bb-item:nth-child(5)) .bb-item { padding: 1px; border-radius: 8px; }
.bagbar .bb-front .bb-order:has(> .bb-item:nth-child(5)) .bb-item .pa { width: 20px; height: 21px; }
.bagbar .bb-front .bb-order:has(> .bb-item:nth-child(5)) .bb-item .bb-tick { width: 14px; height: 14px; right: -4px; top: -4px; }
.bagbar .bb-front .bb-order:has(> .bb-item:nth-child(5)) .bb-item .bb-tick svg { width: 10px; height: 10px; }
.bagbar .bb-haggle .hg-take { background: linear-gradient(180deg, #fffaf0, #f1dfba); }
.bagbar .bb-haggle .hg-hold.good { background: linear-gradient(180deg, var(--g-gold-1, #ffe27a), var(--g-gold-2, #f4ae2c)); color: #3a2a06; }
.bagbar .bb-haggle .hg-hold.risky { background: linear-gradient(180deg, #ffd9c2, #f08a5d); color: #4a1a06; }
.bagbar .bb-haggle button:active { translate: 0 2px; box-shadow: 0 1px 0 var(--g-ink, #2f1f45); }
.bagbar.haggling .bb-bag > .bb-front .bb-item .bb-tick { background: #d4754a; }
@media (max-height: 520px) and (orientation: landscape) {
    /* a sideways phone's bar is a narrow column, and a short one: a face's tag goes under its name (beside it, the
       name broke into three lines under the tag), the haggle's hint is left to Nell's card (with it the two buttons ran
       off the bar's foot), and a collector's long slip is drawn smaller still */
    .bagbar .bb-top { flex-wrap: wrap; row-gap: 3px; }
    .bagbar .bb-face { order: 9; max-width: 100%; }
    .bagbar.face-haggler .bb-who, .bagbar.face-collector .bb-who { flex: 1 0 auto; white-space: nowrap; }   /* (so the tag wraps, not the name) */
    .bagbar .haggle-hint { display: none; }
    .bagbar .bb-haggle { gap: 6px; }
    .bagbar .bb-haggle button { min-height: 54px; padding: 4px 3px 5px; gap: 2px; }
    .bagbar .bb-haggle button b { font-size: 1.08rem; }
    .bagbar .bb-haggle button span { font-size: .7rem; padding: 1px 6px 2px; }
    .bagbar .bb-haggle button small { font-size: .7rem; }
    .bagbar .bb-front .bb-order:has(> .bb-item:nth-child(5)) { gap: 2px; }
    .bagbar .bb-front .bb-order:has(> .bb-item:nth-child(5)) .bb-item { padding: 0; border-width: 1px; }
    .bagbar .bb-front .bb-order:has(> .bb-item:nth-child(5)) .bb-item .pa { width: 17px; height: 18px; }
}
/* the day's card */
.dc-faces { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px 12px; margin-top: 6px; }
.dc-face { font: 700 var(--fs-xs, .76rem)/1.35 var(--font-ui, system-ui); color: var(--ink-soft, #5b4a68); }
.dc-face.f-collector.set { color: #0b3f61; }
/* round 83: the peddler stands in the lane now, and a tap on him is his table: his button is kept for a browser that
   can't draw the world (the stand's own fallback, .world3d-none) */
.peddler-btn { display: none; }
main:has(.world3d-none) .peddler-btn { display: inline-flex; }
/* round 83: a toss lost — its sentence a size up from "Gave up waiting", on a plate so it reads over the lavender */
.float3d.lost { font-size: .96rem; padding: 4px 11px 5px; border-radius: 999px; background: rgba(74, 26, 6, .82); color: #ffe6d8; text-shadow: none; box-shadow: 0 2px 8px rgba(30, 16, 40, .35); }


/* ── Round 84: the game on an iPhone (Joe: "a careful mobile optimization round"; tools/bots/iphone.mjs) ─────────────
   Measured at an iPhone's sizes: with Safari's bars showing the page is about 180 px shorter than the 844 the bots
   have always used; from the home screen it has the whole screen, and shares it with the Dynamic Island and the home
   indicator; sideways the island takes 59 px of one side. Four things:

   1. The safe areas. Upright from the home screen, the game's root starts under the island: everything in the game
      is laid out inside the root, so one rule moves it all, and the strip behind the island is the night's plum.
      Sideways the island takes the middle of one side, and the phone asks for 59 px of both. The root can't give
      them (the sideways HUD needs the whole width: boxed in, the day's pill lost its "Day"), and doesn't need to:
      the corners only round off what's already rounded. What stands at the middle of a side keeps clear instead: a
      window, an order's bag, Nell's lesson, her errand. Upright in Safari every inset is nothing, and nothing moves.
      (The foot was already kept: the play bar pads itself by the home indicator.) The dialogs at the root keep clear
      the same way.
   2. Short screens. The welcome card may stand taller, and its button's row is solid: the card's last lines ran
      under the button and showed beside it. The peddler's Done stays at the foot of his table however far it scrolls.
   3. Fingers. Apple's floor for something to tap is 44 px. What's smaller keeps its look and gets 44 px to be hit
      in (a clear box over it, in the middle), on screens that are touched.
   4. Type. Nothing under 11 px on a phone.                                                                         */
main.screenmode { top: env(safe-area-inset-top, 0px); }
/* (on html alone: it's html that paints the ground behind the page. The body keeps its paper: nothing of the body shows
   in the game, and the legibility bot reads the body's colour as what a see-through window stands on) */
html:has(main.screenmode) { background: #20162d; }
body:has(main.screenmode)::before { display: none; }
.cardsdeal, .cloudpick-veil {
    padding-top: max(10px, env(safe-area-inset-top, 0px)); padding-bottom: max(10px, env(safe-area-inset-bottom, 0px));
    padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px));
}
@media (orientation: landscape) and (max-height: 520px) {
    main.screenmode .sheet { width: min(920px, calc(100% - 20px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px))); }
    .bagbar { left: max(10px, env(safe-area-inset-left, 0px)); }
    .lessoncard { left: max(12px, env(safe-area-inset-left, 0px)); }
    .errand-pin { left: max(12px, env(safe-area-inset-left, 0px)); }
}

/* 2: short and upright (Safari with its bars showing; a small phone) */
@media (max-width: 640px) and (max-height: 780px) and (orientation: portrait) {
    /* the welcome card: taller, its heading on one line, the sign-in's small print left to the button's own words,
       and the game's name higher, so the card's last lines don't run under its button */
    .titlemark { top: 16px; }
    .titlepage .intro { max-height: min(74dvh, 500px); }
    .titlepage .intro h1 { font-size: 1.3rem; }
    .titlepage .intro .naming { margin: 8px 0; }
    .titlepage .intro .cloudrow .cr-note:not(.err) { display: none; }
    .titlepage .intro-go { padding-bottom: 6px; }
    /* the map: its heading stood on the barnyard's and the barn's names (the farm from above fills a short screen to
       the HUD). Only its close button stays, at the side. */
    main.screenmode .mapover-head { left: auto; right: 12px; transform: none; animation-name: fadeIn; padding: 5px; gap: 0; }
    main.screenmode .mapover-head b { display: none; }
}
.cd-table .cd-foot { position: sticky; bottom: -14px; z-index: 2; margin: 0 -14px -14px; padding: 8px 14px 12px;
    background: var(--g-parch-2, #f6e6c6); border-top: 2px solid rgba(47, 31, 69, .16); border-radius: 0 0 17px 17px;
    box-shadow: 0 -10px 12px -8px rgba(47, 31, 69, .3); }
@media (orientation: landscape) and (max-height: 480px) { .cd-table .cd-foot { bottom: -9px; margin: 0 -12px -9px; padding: 5px 12px 8px; } }

/* 3: 44 px to be hit in */
@media (pointer: coarse) {
    .bagbar .bb-x, .nellcard .nc-tour, .nellcard .nc-ok, .sd-actions .ghost.tiny, .chip.chip-what, .cloudbtn, .sp-chip, .buychip, .ct-hook, .ct-tubs .ct-tub, .cd-foot .verb,
    .hud-top .soundbtn, .ht-tab, .dm-pay, .tp-anyway { position: relative; }
    .bagbar .bb-x::after, .nellcard .nc-tour::after, .nellcard .nc-ok::after, .sd-actions .ghost.tiny::after, .chip.chip-what::after, .cloudbtn::after, .sp-chip::after, .buychip::after,
    .ct-hook::after, .ct-tubs .ct-tub::after, .cd-foot .verb::after, .hud-top .soundbtn::after, .sheet-close::after, .ht-tab::after, .dm-pay::after, .tp-anyway::after {
        content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%);
    }
    /* (the round buttons at the top right stand right over the stock rail: theirs run up from their foot, not down
       into the rail; and the map's close button, which is laid out in its strip, holds its own box) */
    .hud-top .soundbtn::after { top: auto; bottom: 0; transform: translateX(-50%); }
    main.screenmode .mapover-x { position: relative; }
    /* (Help's tabs stand two rows deep on a phone: a little more between the rows, so each row's 44 px is its own) */
    .help-tabs { row-gap: 10px; }
    /* (the stock rail stands right under the money and the day: its 44 px run down from its top, not up into them.
       Upright only, where the rail is a row of its own: and the rail's own box grows by the same 12 px, because the
       world keeps its chips' names clear of that box and not of anything unseen (sideways on a small phone the
       unseen 12 px lay over the Wends' field's name; there the rail stays as it's drawn, 30 px, on the list) */
}
@media (pointer: coarse) and (max-width: 640px) and (orientation: portrait) {
    .hud-stock .hs-item::after { content: ""; position: absolute; left: -2.5px; right: -2.5px; top: -2.5px; height: 44px; }
    main.screenmode .hud-stock { align-items: flex-start; padding-bottom: 12px; }
}
@media (pointer: coarse) {
    .naming input { min-height: 44px; }
}

/* 4: 11 px to read */
@media (max-width: 640px), (max-height: 500px) and (orientation: landscape) {
    .guest3d .g3-who { font-size: 11px; }
    .ware-chips .chip.chip-what .chip-i { width: 15px; height: 15px; font-size: 11px; }
    main.screenmode .hud-day:has(> .hud-coach) > b { font-size: 11px; }
    .hud-day > span.hud-coach:not(.hud-sep) { font-size: 11px; }
    /* (in px: an em here is the bar's own size, and the hint came out a third bigger) */
    .verb.primary small.vcost { font-size: 11px; }
    .hud-help .rank-no { font-size: 11px; }
}
/* (an order's tiles upright: their names were 10.6 px. Sideways they're 8.6 in tiles too small to take more: on the list) */
@media (max-width: 640px) and (orientation: portrait) { main.screenmode .bagbar .bb-tile span { font-size: max(11px, 1em); } }

/* ===== Round 85: the toss is a coin =====
   "Double or nothing" sends a coin up where the two buttons were: it turns for most of a second, then lies where it
   fell (gold and a star: they gave in; dull and blank: it's theirs). Moved by transform alone, which the compositor
   keeps on time while a frame of the world is drawn. And on the button beforehand, in a word, which bet is which. */
.bagbar .bb-haggle .hg-hold { position: relative; }
.bagbar .bb-haggle .hg-hold .hg-bet { position: absolute; right: -5px; top: -14px; padding: 2px 7px 3px; border-radius: 999px; white-space: nowrap; font: 800 11px/1 var(--font-ui, system-ui); font-style: normal;
    color: #fff; background: #2f7d4f; border: 2px solid var(--g-ink, #2f1f45); rotate: 4deg; pointer-events: none; }
.bagbar .bb-haggle .hg-hold.risky .hg-bet { background: #a8482a; }
.bagbar .bb-haggle.tossing { grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; min-height: 68px; padding: 4px 10px; }
.bagbar .bb-haggle .hg-coin { position: relative; display: block; width: 58px; height: 58px; transform-style: preserve-3d; animation: hgFlip .8s cubic-bezier(.3, .6, .4, 1) both; }
.bagbar .bb-haggle .hg-coin > i { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--g-ink, #2f1f45); backface-visibility: hidden; -webkit-backface-visibility: hidden;
    box-shadow: inset 0 -5px 0 rgba(47, 31, 69, .18), inset 0 0 0 5px rgba(255, 255, 255, .28); }
.bagbar .bb-haggle .hg-coin .hg-heads { background: radial-gradient(circle at 35% 30%, #fff3b8, var(--g-gold-1, #ffe27a) 45%, var(--g-gold-2, #f4ae2c)); }
.bagbar .bb-haggle .hg-coin .hg-heads::after { content: "★"; position: absolute; inset: 0; display: grid; place-items: center; font: 400 26px/1 var(--font-game, Georgia, serif); color: #8a5a00; }
.bagbar .bb-haggle .hg-coin .hg-tails { transform: rotateX(180deg); background: radial-gradient(circle at 35% 30%, #f4efe6, #cfc6b8 55%, #a79c8c); }
.bagbar .bb-haggle.tossing.won .hg-coin, .bagbar .bb-haggle.tossing.lost .hg-coin { animation: hgLand .28s cubic-bezier(.3, 1.5, .5, 1) both; }
.bagbar .bb-haggle.tossing.lost .hg-coin .hg-heads { display: none; }
.bagbar .bb-haggle.tossing.lost .hg-coin .hg-tails { transform: none; }
.bagbar .bb-haggle .hg-call { display: grid; gap: 4px; min-width: 0; color: var(--g-ink, #2f1f45); }
.bagbar .bb-haggle .hg-call b { font: 400 1.3rem/1.05 var(--font-game, Georgia, serif); }
.bagbar .bb-haggle .hg-call small { font: 800 .78rem/1.2 var(--font-ui, system-ui); opacity: .85; font-variant-numeric: tabular-nums; }
.bagbar .bb-haggle.tossing.won .hg-call b { color: #8a5a00; }
.bagbar .bb-haggle.tossing.lost .hg-call b { color: #8a3418; }
@keyframes hgFlip {
    0% { transform: translateY(6px) rotateX(0) scale(.9); }
    45% { transform: translateY(-34px) rotateX(900deg) scale(1.12); }
    100% { transform: translateY(0) rotateX(1800deg) scale(1); }
}
@keyframes hgLand { 0% { transform: scale(1.18); } 100% { transform: none; } }
@media (max-height: 520px) and (orientation: landscape) {
    .bagbar .bb-haggle.tossing { min-height: 54px; gap: 10px; padding: 2px 6px; }
    .bagbar .bb-haggle .hg-coin { width: 44px; height: 44px; }
    .bagbar .bb-haggle .hg-coin .hg-heads::after { font-size: 20px; }
    .bagbar .bb-haggle .hg-call b { font-size: 1.08rem; }
    .bagbar .bb-haggle .hg-call small { font-size: 11px; }
    .bagbar .bb-haggle .hg-hold .hg-bet { top: -16px; right: -3px; }   /* (clear of "Double or": at -7 it lay on the button's first line) */
    .bagbar .bb-haggle { margin-top: 6px; }
}
@media (prefers-reduced-motion: reduce) {
    .bagbar .bb-haggle .hg-coin, .bagbar .bb-haggle.tossing.won .hg-coin, .bagbar .bb-haggle.tossing.lost .hg-coin { animation: none; }
}

/* ===== Round 85: the counter on a short upright screen =====
   Round 84 found the counter's HUD a third of what Safari leaves a page (390×664): the money's row, the stock rail,
   the clock's row and the tally's. While the stand is open the rail goes (the tray at the foot says what's on the
   counter, line by line), and everything placed from --hud-h moves up a row: the clock, the tally, the banners, the
   toasts, and with them the room the buyers' chips and a sale's words have. In the morning and the evening the rail
   is where it was. */
@media (max-width: 640px) and (max-height: 700px) and (orientation: portrait) {
    main.screenmode.ph-trading { --hud-h: 52px; }
    main.screenmode.ph-trading .hud-stock { display: none; }
}
/* (round 84's 10: the bag's hint sideways was 10.9 px) */
@media (max-height: 500px) and (orientation: landscape) { .bagbar .bb-hint { font-size: 11px; } }

/* ===== Round 86: the pot =====
   A pill in the Buzz's chip, by the clock, where "8 in a row" stands while the pot's empty: an earthen pot and what's
   in it (and "Bank" on a screen with the room). The number pops as money goes in; the pill shakes as a walk-off spills
   it, and wears a green rim when the next walk-off can't hurt it. Moved by transform alone. (It was first put at the
   end of the tally: on a phone the tally's words wrapped to three lines.) */
.hud .hud-run .hud-pot { pointer-events: auto; position: relative; display: inline-flex; align-items: center; gap: 3px; margin: -3px 0; padding: 2px 7px 3px 5px; min-height: 26px;
    border: 2px solid var(--g-ink, #2f1f45); border-radius: 10px; background: linear-gradient(180deg, #fbeecd, #e6c283); box-shadow: 0 2px 0 var(--g-ink, #2f1f45);
    color: var(--g-ink, #2f1f45); cursor: pointer; transition: none; white-space: nowrap; }
.hud .hud-run .hud-pot svg { flex: none; width: 15px; height: 15px; color: #8a4a22; }
.hud .hud-run .hud-pot b { display: inline-block; font: 400 .95rem/1 var(--font-game, var(--font-display)); font-variant-numeric: tabular-nums; animation: pot-in .32s cubic-bezier(.3, 1.6, .5, 1) both; }
.hud .hud-run .hud-pot span { font: 800 11px/1 var(--font-ui, system-ui); padding: 2px 6px 3px; border-radius: 999px; color: #fff; background: #2f7d4f; }
.hud .hud-run .hud-pot.safe { box-shadow: 0 2px 0 var(--g-ink, #2f1f45), inset 0 0 0 2px #58b877; }
.hud .hud-run .hud-pot.did-spill { background: linear-gradient(180deg, #ffd9c2, #f08a5d); animation: pot-spill .5s linear both; }
.hud .hud-run .hud-pot.did-safe { animation: pot-win .45s cubic-bezier(.3, 1.5, .5, 1) both; }
.hud .hud-run .hud-pot:active { translate: 0 2px; box-shadow: 0 0 0 var(--g-ink, #2f1f45); }
@keyframes pot-in { from { transform: scale(1.35); } to { transform: none; } }
@keyframes pot-win { 0% { transform: scale(1); } 35% { transform: scale(1.22) rotate(-3deg); } 100% { transform: none; } }
@keyframes pot-spill { 0%, 100% { transform: none; } 20% { transform: translateX(-4px) rotate(-5deg); } 40% { transform: translateX(4px) rotate(5deg); } 60% { transform: translateX(-3px) rotate(-3deg); } 80% { transform: translateX(2px); } }
@media (max-width: 640px), (max-height: 500px) and (orientation: landscape) { .hud .hud-run .hud-pot span { display: none; } }
@media (pointer: coarse) {
    .hud .hud-run .hud-pot::after { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: 44px; transform: translate(-50%, -50%); }
}
@media (prefers-reduced-motion: reduce) { .hud .hud-run .hud-pot, .hud .hud-run .hud-pot b { animation: none !important; } }
.dc-pot { display: grid; justify-items: center; margin-top: 6px; text-align: center; }
.dc-pot span { font: 700 var(--fs-xs, .76rem)/1.35 var(--font-ui, system-ui); color: var(--ink-soft, #5b4a68); }
/* (round 86, round 85's 10: the map's heading is a pill laid over the top of the map, and only its X is a button. Its
   body took fingers: on a tall phone it lay on the room three of the stock rail's tiles are hit in.) */
main.screenmode .mapover-head { pointer-events: none; }
main.screenmode .mapover-head .mapover-x { pointer-events: auto; }
/* ===== Round 87: the pot's pill is pointed at, and it warns =====
   While Nell's card for the pot is up, the pill glows (her "tap it" had nothing to point at). And while one of the
   shopkeeper's own buyers is about to give up (the world marks their chip "hurry"; the box's and the hired hand's
   don't count), the pill pulses: that walk-off would halve it. Both are read off classes the page already has. */
main:has(.lessoncard.lesson-pot) .hud .hud-run .hud-pot { box-shadow: 0 2px 0 var(--g-ink, #2f1f45), 0 0 0 3px #ffe27a, 0 0 14px 4px rgba(255, 215, 90, .9); animation: pot-point 1s ease-in-out infinite; }
main:has(.guest3d.hurry:not(.off-box):not(.off-hand)) .hud .hud-run .hud-pot:not(.safe) { animation: pot-warn .7s ease-in-out infinite; box-shadow: 0 2px 0 var(--g-ink, #2f1f45), 0 0 0 2px #f08a5d; }
@keyframes pot-point { 0%, 100% { transform: none; } 50% { transform: scale(1.12); } }
@keyframes pot-warn { 0%, 100% { transform: none; } 50% { transform: scale(1.09) rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) { main:has(.lessoncard.lesson-pot) .hud .hud-run .hud-pot, main:has(.guest3d.hurry) .hud .hud-run .hud-pot { animation: none !important; } }

/* ===== Round 88: the haggler's chip wears the toss =====
   Round 87 gave the haggler a sticker in the world for the toss: twenty pixels in a crowd, under their own chip or
   somebody else's (a chip is lifted clear of its neighbours, so it's often nowhere near its owner's head). The chip
   is where the eye already is. While the coin's up its face is a question; when the coin lies, a heart (the basket's
   theirs) or a bead of sweat (they gave in and pay double). The bet's made, so the chip takes no tap. Under it, in
   the world, the haggler is up on their toes, then jumps or slumps. */
.guest3d.coin-up, .guest3d.coin-won, .guest3d.coin-lost { pointer-events: none; }
.guest3d.coin-up::before, .guest3d.coin-won::before, .guest3d.coin-lost::before { content: '?'; position: absolute; inset: 4px; z-index: 3; display: grid; place-items: center;
    border-radius: 50%; background: #fffaf0; box-shadow: 0 0 0 3px #7b5cc4; color: #7b5cc4; font: 400 2rem/1 var(--font-game, var(--font-display, Georgia, serif)); pointer-events: none; }
.guest3d.coin-up::before { animation: g3-coin-q .42s ease-in-out infinite alternate; }
.guest3d.coin-lost::before { content: '\2665'; color: #e8537f; box-shadow: 0 0 0 3px #e8537f; background: #fff0f4; animation: g3-coin-fell .36s cubic-bezier(.3, 1.6, .5, 1) both; }
.guest3d.coin-won::before { content: ''; box-shadow: 0 0 0 3px #4a9fd0; animation: g3-coin-fell .36s cubic-bezier(.3, 1.6, .5, 1) both;
    background: #eef8ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 4c5 7 8 11 8 16a8 8 0 0 1-16 0c0-5 3-9 8-16z' fill='%237cc8f0' stroke='%232f7fb0' stroke-width='1.6'/%3E%3Cpath d='M12 20a4 4 0 0 0 3 4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 62% no-repeat; }
@keyframes g3-coin-q { from { transform: rotate(-9deg) scale(.96); } to { transform: rotate(9deg) scale(1.06); } }
@keyframes g3-coin-fell { from { transform: scale(.4); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .guest3d.coin-up::before { animation: none; } }
/* (the chip's name, its mark and its heart stay on top of the face it wears: the question first stood on "Haggler") */
.guest3d.coin-up .g3-who, .guest3d.coin-won .g3-who, .guest3d.coin-lost .g3-who,
.guest3d.coin-up .g3-roll, .guest3d.coin-won .g3-roll, .guest3d.coin-lost .g3-roll,
.guest3d.coin-up .g3-heart, .guest3d.coin-won .g3-heart, .guest3d.coin-lost .g3-heart { z-index: 4; }

/* ===== Round 88: an older slip gives way to a big word =====
   (bridge.js, yieldToWords: a favourite's or a wish's word that comes up over the last sale's slip.) It
   goes at once: its own animation holds its opacity, so it's hidden, not faded. */
.float3d.yield { visibility: hidden !important; }

/* ===== Round 89: polish =====
   The chip that wore the toss's answer stays a beat as the sale is said (bridge.js holds it where it was for a
   second), then shrinks away. `scale` and `opacity`, not `transform`: the chip is placed by its transform. */
.guest3d.coin-said { pointer-events: none; animation: g3-coin-said 1s ease-in both; }
.guest3d.coin-said .g3-ring { opacity: .35; }
@keyframes g3-coin-said { 0%, 72% { opacity: 1; scale: 1; } 100% { opacity: 0; scale: .6; } }
/* Wren's on the way (App.Runner.cs sets off the walk; App.Tray.cs marks the tray): the note in the tray's top turns
   Wren's teal with a little run of dots, the tiles Wren's gone for breathe, and a tile that's just been filled
   flashes green as its number pops. */
.ctray .ctr-note.wren { background: linear-gradient(180deg, #d8f3ee, #9fd9cf); color: #0f4a42; box-shadow: inset 0 0 0 1.5px #2f8f83; }
.ctray .ctr-note.wren::after { content: ''; display: inline-block; width: 14px; height: 6px; margin-left: 5px; vertical-align: middle;
    background: radial-gradient(circle, #1f6f65 2.4px, transparent 2.8px) 0 0 / 7px 6px repeat-x; animation: ctr-wren-dots .7s steps(2) infinite; }
.ctray .ctr-good.fetching { animation: ctr-fetching 1s ease-in-out infinite; }
.ctray .ctr-good.filled { animation: ctr-filled .9s ease-out both; }
.ctray .ctr-good.filled .ctr-n { animation: ctr-filled-n .5s cubic-bezier(.3, 1.7, .5, 1) both; }
@keyframes ctr-wren-dots { from { clip-path: inset(0 7px 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes ctr-fetching { 0%, 100% { box-shadow: 0 2px 0 #d9952a, 0 0 0 2px rgba(47, 143, 131, .25); } 50% { box-shadow: 0 2px 0 #d9952a, 0 0 0 4px rgba(47, 143, 131, .55); } }
@keyframes ctr-filled { 0% { background: #c9f0d4; box-shadow: 0 2px 0 #3f9a5c, 0 0 0 4px rgba(88, 184, 119, .6); } 100% { box-shadow: 0 2px 0 rgba(0, 0, 0, 0), 0 0 0 0 rgba(88, 184, 119, 0); } }
@keyframes ctr-filled-n { from { transform: scale(1.7); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .ctray .ctr-note.wren::after, .ctray .ctr-good.fetching, .ctray .ctr-good.filled, .ctray .ctr-good.filled .ctr-n, .guest3d.coin-said { animation: none; } }

/* ===== Round 90: polish, again =====
   The coming-up card steps back while a sale's slip is over it (bridge.js, place): nearly clear, no taps. On a short
   screen there's no room for both, and the slip is the one that's gone in three seconds. (!important: the card's own
   entrance animates its opacity.) */
.bubble3d.under-slip { opacity: .08 !important; pointer-events: none; }
.bubble3d { transition: opacity .12s ease-out; }
/* Wren's on the way, on the Fetch more button (every shape; a sideways phone has no tray at the counter): Wren's teal,
   not the greyed look of a button that can't be afforded. It waits the four seconds Wren's on the lane. */
main.screenmode .verb.second.restock.wren, main.screenmode .verb.second.restock.wren:disabled { opacity: 1; cursor: default;
    background: linear-gradient(180deg, #d8f3ee, #9fd9cf); color: #0f4a42; border-color: #1f6f65; box-shadow: 0 4px 0 #1f6f65, inset 0 2px 0 rgba(255, 255, 255, .7); }
main.screenmode .verb.second.restock.wren small { color: #0f4a42; }
main.screenmode .verb.second.restock.wren small::after { content: ''; display: inline-block; width: 14px; height: 6px; margin-left: 4px; vertical-align: middle;
    background: radial-gradient(circle, #1f6f65 2.4px, transparent 2.8px) 0 0 / 7px 6px repeat-x; animation: ctr-wren-dots .7s steps(2) infinite; }
/* (on an upright phone the play bar is full: with its dots the button was 114 px where "Fetch more" is 88, and "Close
   up" beside it was squeezed to a sliver. No dots there; the tray's note above it has them.) */
@media (max-width: 640px) and (orientation: portrait) { main.screenmode .verb.second.restock.wren small::after { display: none; } main.screenmode .verb.second.restock.wren { padding-left: 8px; padding-right: 8px; } }
/* The cart's and the cards' foot buttons were the browser's grey pills: the game's cream, and the cart's "Done" the
   game's purple (on the cards' table the thing to do is pick a card, so "Not yet" stays cream). */
.cd-foot .verb { border: 2.5px solid var(--g-ink, #2f1f45); background: linear-gradient(180deg, var(--g-cream-1, #fffdf6), var(--g-cream-2, #f3e6c8)); color: var(--g-ink-2, #4a3470);
    box-shadow: 0 4px 0 var(--g-ink, #2f1f45), inset 0 2px 0 rgba(255, 255, 255, .85); font-family: var(--font-game, Georgia, serif); font-weight: 400; letter-spacing: .02em; font-size: 1.02rem; }
.cd-foot .verb:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--g-ink, #2f1f45); }
.cd-foot .verb:disabled { opacity: .55; cursor: not-allowed; }
.cartdeal .cd-foot .ct-close { background: linear-gradient(180deg, var(--g-band-1, #9b7be6) 0%, var(--g-band-2, #7a59d0) 52%, var(--g-band-3, #5d3eab) 100%); color: #fff;
    text-shadow: 0 1px 0 var(--g-ink, #2f1f45); box-shadow: 0 4px 0 var(--g-ink, #2f1f45), inset 0 2px 0 rgba(255, 255, 255, .45), inset 0 -3px 0 rgba(47, 31, 69, .25); min-width: 96px; }
@media (prefers-reduced-motion: reduce) { .bubble3d { transition: none; } main.screenmode .verb.second.restock.wren small::after { animation: none; } }

/* ===== Round 91: Joe played it =====
   Upgrades are earned: a goal on a Shop card (what to do, a bar, how far along), and "Earned" once it's met. */
.ware-note.ware-goal { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3px 8px; width: 100%; margin-top: var(--s-2); padding: 7px 9px 8px; box-sizing: border-box;
    border-radius: 10px; background: #f3ecfb; box-shadow: inset 0 0 0 1.5px rgba(93, 62, 171, .28); font-size: var(--fs-sm); color: #3f2a66; font-weight: 800; }
.ware-note.ware-goal .wg-t { grid-column: 1; }
.ware-note.ware-goal .wg-n { grid-column: 2; grid-row: 1; font-variant-numeric: tabular-nums; color: #5d3eab; white-space: nowrap; }
.ware-note.ware-goal .wg-bar { grid-column: 1 / -1; height: 9px; border-radius: 999px; background: #ddd0f1; overflow: hidden; box-shadow: inset 0 1px 0 rgba(47, 31, 69, .15); }
.ware-note.ware-goal .wg-bar i { display: block; height: 100%; min-width: 4px; border-radius: 999px; background: linear-gradient(180deg, #a98cf0, #6f4fc4); transition: width .4s ease-out; }
.ware-note.ware-goal.earned { grid-template-columns: 1fr; background: linear-gradient(180deg, #fff3c4, #ffd96a); box-shadow: inset 0 0 0 1.5px #c9942a; color: #6a4300; text-align: center;
    animation: ware-earned 1.6s ease-in-out infinite; }
.ware-note.ware-goal.earned .wg-t::before { content: "\2605\00a0"; }
@keyframes ware-earned { 0%, 100% { filter: none; } 50% { filter: brightness(1.08); } }
/* Errands are claimed: what Nell owes, a gold button where the toasts come up, there till it's tapped. */
.toasts .toast.claim { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 48px; padding: 7px 8px 8px 12px; box-sizing: border-box; cursor: pointer;
    pointer-events: auto; text-align: left; border: 2.5px solid var(--g-ink, #2f1f45); border-radius: 14px; background: linear-gradient(180deg, #fffdf6, #f6ead0); color: var(--g-ink, #2f1f45);
    box-shadow: 0 4px 0 var(--g-ink, #2f1f45), 0 10px 22px -8px rgba(40, 24, 50, .55); font: 800 .86rem/1.15 var(--font-ui, system-ui); animation: claim-wait 1.5s ease-in-out infinite; }
.toasts .toast.claim .cl-what { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toasts .toast.claim .cl-what::before { content: "\2713\00a0"; color: #2f7d4f; }
.toasts .toast.claim .cl-go { flex: none; padding: 7px 12px 8px; border-radius: 11px; border: 2px solid var(--g-ink, #2f1f45); background: linear-gradient(180deg, var(--g-gold-1, #ffe27a), var(--g-gold-2, #f4ae2c));
    color: #4a2f00; font: 400 1rem/1 var(--font-game, Georgia, serif); letter-spacing: .02em; white-space: nowrap; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6); }
.toasts .toast.claim.fresh { animation: claim-in .45s cubic-bezier(.3, 1.6, .5, 1) both; }
.toasts .toast.claim:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--g-ink, #2f1f45); }
@keyframes claim-in { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes claim-wait { 0%, 100% { filter: none; } 50% { filter: brightness(1.07); } }
@media (prefers-reduced-motion: reduce) { .toasts .toast.claim, .ware-note.ware-goal.earned { animation: none; } }
/* (a goal met: the toast is gold, with a star) */
.toasts .toast.earned { border: 2.5px solid #c9942a; background: linear-gradient(180deg, #fff3c4, #ffd96a); color: #5a3900; font-weight: 800; }
.toasts .toast.earned::before { content: "\2605\00a0"; }
/* (a sheet is the one thing on screen: the Claim button, which stays, lay over the day card's tiles and the Shop's
   lower cards. It waits behind an open sheet and is there again when the sheet's put away.) */
main:has(.sheet) .toasts .toast.claim { display: none; }
/* (and it gives way to a banner: the first sale's "Your first sale!" comes up in the same strip, and on day one the
   button for "Open for the day" was lying on it. The banner is up four seconds; the button is back as it goes.) */
.toasts .toast.claim { transition: opacity .15s linear; }
main:has(.rushbanner) .toasts .toast.claim { opacity: 0; pointer-events: none; animation: none; }
/* (a price tag is the Shop's Buy button and it's 36 px tall: 44 to be hit in, as round 84 gave the other small ones.
   It's on the first screen of the Shop now that what can be bought is listed first.) */
@media (pointer: coarse), (max-width: 720px), (max-height: 500px) {
    main.screenmode .sheet .ware .pricetag:not(:disabled)::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
}
/* While the stand trades the claim is a gold chip in the tally, beside the bell. Under the tally is the busiest strip on
   a phone: a button there, the screen's width, lay on "Your first sale!", on "Tap to serve", under every sale's words
   at Safari's height, and sideways on the buyers. The tally is already kept clear of by everything. With the chip in
   it the tally may take a second line. */
.hud .tally .hud-claim { pointer-events: auto; position: relative; display: inline-flex; align-items: center; margin: -4px -6px -4px 4px; padding: 4px 10px 5px; min-height: 34px; white-space: nowrap;
    border: 2.5px solid var(--g-ink, #2f1f45); border-radius: 12px; background: linear-gradient(180deg, var(--g-gold-1, #ffe27a), var(--g-gold-2, #f4ae2c)); box-shadow: 0 3px 0 var(--g-ink, #2f1f45);
    color: #4a2f00; font: 400 .95rem/1 var(--font-game, Georgia, serif); letter-spacing: .02em; text-shadow: none; cursor: pointer; transition: none; animation: claim-wait 1.5s ease-in-out infinite; }
.hud .tally .hud-claim::after { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: 44px; transform: translate(-50%, -50%); }
.hud .tally .hud-claim.fresh { animation: claim-in .45s cubic-bezier(.3, 1.6, .5, 1) both; }
.hud .tally .hud-claim:active { translate: 0 2px; box-shadow: 0 1px 0 var(--g-ink, #2f1f45); }
.hud .tally:has(.hud-claim) { flex-wrap: wrap; row-gap: 9px; border-radius: 22px; }
@media (prefers-reduced-motion: reduce) { .hud .tally .hud-claim { animation: none; } }
/* ===== Round 92: drying by hand =====
   The racks' chip says what a tap does ("Hang 12 bunches", "Collect 12 dried": gold, as a calling chip is) and, while a
   lot dries, wears a small pie that fills before its name. The HUD's racks tile says "dry" in gold when there's some to
   take down. */
/* (a pie, not a ring: a masked pseudo-element inside the chip's moved label painted nothing in the game, though it
   paints on a page of its own) */
.hot3d.barn3d.hasfill .hot3d-name::before { content: ""; display: inline-block; width: 13px; height: 13px; margin: 0 6px -2px 0; border-radius: 50%;
    background: conic-gradient(#ffd76a calc(var(--fill, 0) * 360deg), rgba(255, 255, 255, .3) 0); box-shadow: 0 0 0 1.5px rgba(255, 244, 214, .85); }
.hot3d.barn3d.calling.hasfill .hot3d-name::before { background: conic-gradient(#7a4d00 calc(var(--fill, 0) * 360deg), rgba(90, 60, 0, .25) 0); box-shadow: 0 0 0 1.5px rgba(90, 60, 0, .7); }
.hot3d.barn3d[data-hot="racks"].calling .hot3d-label, .hot3d.barn3d[data-hot="racks"].ready .hot3d-label { font-size: .8rem; padding: 6px 12px; }
.hud-stock .hs-item.hs-drying.dry .hs-badge { background: linear-gradient(180deg, var(--g-gold-1, #ffe27a), var(--g-gold-2, #f4ae2c)); color: #4a2f00; animation: claim-wait 1.5s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .hud-stock .hs-item.hs-drying.dry .hs-badge { animation: none; } }
/* The nearest goal, on the Shop's button: "3/5" at its corner and a bar along its foot. */
.pb-btn.shopbtn .pb-goal { position: absolute; top: -11px; right: -8px; z-index: 2; padding: 0 5px 1px; border-radius: 999px; border: 2px solid var(--g-ink, #2f1f45);
    background: #e6dbf7 linear-gradient(180deg, #f3ecfb, #dccdf3); color: #3f2a66; font: 800 .7rem/1.15 var(--font-ui, system-ui); font-variant-numeric: tabular-nums; white-space: nowrap;
    text-shadow: none; pointer-events: none; animation: pbgoal .35s cubic-bezier(.3, 1.6, .5, 1); }   /* (no outline: with the Shop open its button's words are white with a plum outline, and the count's plum words took the outline too) */
.pb-btn.shopbtn .pb-goalbar { position: absolute; left: 8px; right: 8px; bottom: 2px; height: 3px; border-radius: 999px; background: rgba(93, 62, 171, .2); overflow: hidden; pointer-events: none; }
.pb-btn.shopbtn .pb-goalbar::before { content: ""; display: block; width: var(--g, 0%); height: 100%; border-radius: 999px; background: linear-gradient(180deg, #a98cf0, #6f4fc4); transition: width .4s ease-out; }
.pb-btn.shopbtn.calling .pb-goal { display: none; }
@keyframes pbgoal { from { transform: scale(.6); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .pb-btn.shopbtn .pb-goal { animation: none; } }
/* "Let them look", on an asker's panel: 29 px tall. 44 to be hit in (round 84's way). */
@media (pointer: coarse) { main.screenmode .pitch .pi-skip { position: relative; } main.screenmode .pitch .pi-skip::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); } }
/* Dried bunches on their way from the racks to the HUD's dried tile (ui.js, lcUi.toStock), and the tile's answer. */
.sprigfly { position: fixed; z-index: 90; width: 7px; height: 16px; margin: -8px 0 0 -3px; border-radius: 4px 4px 2px 2px; pointer-events: none;
    background: linear-gradient(180deg, #b79af2 0 58%, #6c8a4a 58%); box-shadow: 0 1px 2px rgba(30, 18, 40, .45); }
.hud-stock .hs-item.got { animation: hsgot .34s ease-out; }
@keyframes hsgot { 0% { transform: scale(1); } 40% { transform: scale(1.14); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hud-stock .hs-item.got { animation: none; } }
/* The welcome card's credit: who made the game (round 92, Joe's words), a button beside "Take the keys", and the two
   links it opens. (Two link buttons under the line lay beneath "Take the keys" at 390×664: the card is full.) */
.titlepage .intro .intro-credit { margin: 8px 0 0; padding-top: 8px; border-top: 1.5px dashed rgba(93, 62, 171, .28); font-size: .82rem; line-height: 1.35; color: var(--ink-2, #4a3d5c); font-style: italic; }
/* (two lines, so it stands beside "Take the keys": on one line it wrapped under it at 390 px, the foot grew a row and
   covered the line above; sideways it pushed the sign-in to a second row, over the name's box) */
.titlepage .intro-go .intro-visit { min-height: 44px; max-width: 108px; margin: 0 0 0 8px; padding: 4px 10px; font-size: .8rem; line-height: 1.15; white-space: normal; text-align: left; vertical-align: middle; }
/* The line is said once, where there's room for it: under the title, over the sky (tall phones, sideways, laptops);
   on a short upright phone the card starts where the title ends, so there it's on the card, above "Take the keys".
   (In the card on a tall phone it was a scroll away under the card's foot; pinned to the screen sideways it landed on
   the sign-in button, because the card is moved by a transform and "fixed" is then the card's.) */
.titlemark .tm-made { max-width: min(620px, calc(100% - 40px)); margin-top: 6px; font-size: .8rem; line-height: 1.3; font-style: italic; font-weight: 600; color: #fff6e6;
    text-shadow: 0 1px 3px rgba(24, 14, 34, .85), 0 0 12px rgba(24, 14, 34, .6); }
.titlepage .intro .intro-credit { display: none; }
@media (max-height: 700px) and (orientation: portrait) {
    .titlemark .tm-made { display: none; }
    .titlepage .intro .intro-credit { display: block; }
}
@media (max-height: 500px) and (orientation: landscape) { .titlemark .tm-made { margin-top: 2px; font-size: .72rem; } }
.titlepage .intro-go .intro-visit::after { content: "\00a0\2197"; }
.titlepage > .intro-visit.corner { display: none; }
@media (max-height: 500px) and (orientation: landscape) {
    .titlepage .intro-go .intro-visit { display: none; }
    .titlepage > .intro-visit.corner { display: inline-flex; align-items: center; position: fixed; right: max(12px, env(safe-area-inset-right, 0px) + 8px); top: 12px; z-index: 6; min-height: 44px; padding: 0 12px;
        font-size: .8rem; white-space: nowrap; background: rgba(255, 253, 246, .92); border-radius: 12px; }
    .titlepage > .intro-visit.corner::after { content: "\00a0\2197"; }
}
.titlepage .intro-links { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; background: rgba(28, 18, 40, .55); }
.titlepage .intro-links .il-card { width: min(380px, 100%); max-height: 100%; overflow-y: auto; box-sizing: border-box; padding: 16px 16px 14px; border-radius: 18px; border: 2.5px solid var(--g-ink, #2f1f45);
    background: linear-gradient(180deg, #fffdf6, #f6ead0); box-shadow: 0 5px 0 var(--g-ink, #2f1f45), 0 18px 40px -12px rgba(20, 10, 30, .6); color: var(--g-ink, #2f1f45); display: grid; gap: 10px; }
.titlepage .intro-links h2 { margin: 0; font: 400 1.25rem/1.15 var(--font-game, Georgia, serif); }
.titlepage .intro-links p { margin: 0; font-size: .86rem; line-height: 1.4; }
.titlepage .intro-links .il-link { display: grid; gap: 1px; min-height: 52px; align-content: center; padding: 6px 40px 7px 14px; position: relative; border-radius: 13px; border: 2.5px solid var(--g-ink, #2f1f45);
    background: linear-gradient(180deg, #ffffff, #efe4fb); box-shadow: 0 3px 0 var(--g-ink, #2f1f45); color: #4b2f8f; text-decoration: none; }
.titlepage .intro-links .il-link b { font-size: 1rem; }
.titlepage .intro-links .il-link span { font-size: .78rem; color: var(--ink-2, #4a3d5c); }
.titlepage .intro-links .il-link::after { content: "\2197"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-weight: 800; font-size: 1.1rem; }
.titlepage .intro-links .il-link:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--g-ink, #2f1f45); }
.titlepage .intro-links .il-close { min-height: 44px; justify-self: center; padding: 0 18px; }
/* round 92 (found by the sharer's walk; round 91's Claim button did it): upright on a phone the Claim button comes up
   where the toasts do, above the bar, and it lay on the Photo button for as long as Nell owed anything. A finger on
   "Photo" claimed the errand instead. While the Claim button's up, the Photo button stands above it. */
@media (max-width: 640px) {
    main.screenmode:has(.toasts .toast.claim):not(:has(.sheet)) .photo-btn { bottom: calc(var(--playbar-h) + 12px + 66px); }
}
/* round 93: away from the stand with a hand at the till is not a warning: the pill is green, not amber */
.hud .clk-where.minded { background: rgba(60, 110, 71, .82); color: #f4fff2; text-transform: none; }   /* (a name in it: the pill's lowercase made her "elba") */
/* round 93: a slip lying on a buyer who's waiting drops its paper (the reasons), in place, and keeps what they paid */
.float3d.slip.brief .f-slip { visibility: hidden !important; }
/* ---- round 94: chests, the Shop's stages, "take it easy" ---- */
/* a chest waits where a claim waits: the gold chip in the tally (trading), the button where toasts come up (otherwise) */
.hud .tally .hud-claim.chest { gap: 5px; padding-left: 6px; animation: chest-wait 1.1s ease-in-out infinite alternate; }
.hud .tally .hud-claim.chest.fresh { animation: claim-in .45s cubic-bezier(.3, 1.6, .5, 1) both; }
.hud-claim.chest svg, .toasts .toast.claim.chest .cl-what svg { width: 24px; height: 21px; flex: none; vertical-align: -5px; margin-right: 6px; }
.hud-claim.chest svg { margin-right: 0; vertical-align: 0; }
.hud-claim.chest .ch-lid, .toasts .toast.claim.chest .ch-lid { fill: #b9783a; }
.hud-claim.chest .ch-box, .toasts .toast.claim.chest .ch-box { fill: #9a5f2a; }
.toasts .toast.claim.chest .cl-what::before { content: none; }
/* what was in it: the gold toast, with the chest open beside the words */
.toasts .toast.chestgot { display: flex; align-items: center; gap: 9px; font-size: var(--fs-md, 1rem); padding-left: 10px; }
.toasts .toast.chestgot::before { content: ""; flex: none; width: 34px; height: 30px; background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-2 -8 36 36'%3E%3Ccircle cx='16' cy='10' r='7' fill='%23ffe27a'/%3E%3Cpath d='M4 13h24v11a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z' fill='%239a5f2a' stroke='%232f1f45' stroke-width='2'/%3E%3Cpath d='M4 13V9.500C4 5.900 6.900 3 10.500 3h11C25.100 3 28 5.900 28 9.500V13z' fill='%23b9783a' stroke='%232f1f45' stroke-width='2' transform='rotate(-38 4 13)'/%3E%3C/svg%3E");
    animation: chestgot .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.toasts .toast.chestgot.hoard { box-shadow: 0 0 0 3px rgba(255, 214, 90, .55), 0 10px 22px -8px rgba(40, 24, 50, .55); }
@keyframes chestgot { from { transform: scale(.4) rotate(-12deg); } to { transform: none; } }
/* the Shop: which stage, and how far */
.stageline { display: grid; gap: 4px; margin: 0 0 var(--s-3, 10px); padding: 7px 10px 8px; border-radius: 10px; background: #f3ecfb; box-shadow: inset 0 0 0 1.5px rgba(93, 62, 171, .28);
    font: 800 var(--fs-sm, .82rem)/1.3 var(--font-ui, system-ui); color: #3f2a66; }
.stageline.open { background: linear-gradient(180deg, #fff3c4, #ffd96a); box-shadow: inset 0 0 0 1.5px #c9942a; color: #5a3900; }
.stageline .sl-bar { display: block; height: 8px; border-radius: 999px; background: #ddd0f1; overflow: hidden; }
.stageline .sl-bar::before { content: ""; display: block; width: var(--g, 0%); min-width: 4px; height: 100%; border-radius: 999px; background: linear-gradient(180deg, #a98cf0, #6f4fc4); }
/* "take it easy": the clock's pill is a button at the counter when a hand's at the till */
.hud .clk-where.easy { pointer-events: auto; position: relative; cursor: pointer; text-transform: none; font-family: var(--font-body); color: #fff6e6; background: rgba(214, 138, 54, .5); border: 1.5px solid rgba(255, 214, 160, .8); }
.hud .clk-where.easy.minded { background: rgba(60, 110, 71, .9); border-color: rgba(190, 240, 196, .8); color: #f4fff2; }
.hud .clk-where.easy::after { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: 44px; transform: translate(-50%, -50%); }
@media (prefers-reduced-motion: reduce) { .hud .tally .hud-claim.chest, .toasts .toast.chestgot::before { animation: none; } }
/* round 94: a toast that was asked to stay four or five seconds fades then, not at 2.6 with the rest (App.cs, ToastAsync) */
.toasts .toast.stay4 { animation: toastin .48s var(--ease-pop) both, toastout .4s var(--ease-out) 3.3s both; }
.toasts .toast.stay5 { animation: toastin .48s var(--ease-pop) both, toastout .4s var(--ease-out) 4.6s both; }
/* ---- round 95 ---- */
/* the chest's lid lifts under the finger (round 94 cut from shut on the chip to open in the toast) */
.hud-claim.chest .ch-lid, .toasts .toast.claim.chest .ch-lid { transform-origin: 4px 13px; transform-box: view-box; transition: transform .26s cubic-bezier(.3, 1.6, .5, 1); }
.hud-claim.chest.opening .ch-lid, .toasts .toast.claim.chest.opening .ch-lid { transform: rotate(-42deg); }
.hud .tally .hud-claim.chest.opening, .toasts .toast.claim.chest.opening { animation: chest-lift .62s ease-out both; pointer-events: none; }
.hud-claim.chest.opening svg, .toasts .toast.claim.chest.opening .cl-what svg { overflow: visible; filter: drop-shadow(0 0 6px rgba(255, 226, 122, .95)); transform: scale(1.3); transition: transform .26s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes chest-lift { 0% { filter: none; } 40% { filter: brightness(1.18); transform: translateY(-2px); } 100% { filter: brightness(1.08); transform: none; } }
/* a toast while the stand trades, upright on a phone: under the tally when the tally has a chip in it (it lay on the
   tally's foot by 19 px, and on the chip: round 72's +86 was measured before there was one) */
@media (max-width: 640px) {
    main.screenmode.ph-trading:has(.hud .tally .hud-claim, .hud .tally .hud-bell):not(:has(.rushbanner)) .toasts { top: calc(var(--hud-h) + 112px); }
}
@media (max-height: 500px) and (orientation: landscape) {
    main.screenmode.ph-trading:has(.hud .tally .hud-claim, .hud .tally .hud-bell):not(:has(.rushbanner)) .toasts { top: auto; }
}
@media (prefers-reduced-motion: reduce) { .hud .tally .hud-claim.chest.opening, .toasts .toast.claim.chest.opening { animation: none; } }
