/*
 * TAG Legal Desk v2.1, wp3_canteen: the Canteen sheet, the gum nut, critter avatars in the desk, and the Profile and
 * Settings pieces. Glass recipes and tokens are the desk's own (bible 5); nothing here sets a colour of its own except
 * through tokens. Only transform and opacity ever animate (and only in the art's own helpers). No inline styles.
 * Welfare first: while the core marks the page data-quiet (a welfare message open, the quiet period, the nobody band)
 * every wp3 game element hides at once and every critter goes back to its initials. 390 px wide works with no
 * horizontal scroll.
 */

/* ---------- welfare first (the core hides [data-v21="game"] too; this is the package's own belt and braces) ---------- */
:root[data-quiet="on"] .v21c-nut,
:root[data-quiet="on"] .v21c-moment,
:root[data-quiet="on"] .v21c-prof,
:root[data-quiet="on"] .v21c-body,
:root[data-quiet="on"] .v21c-settings,
:root[data-quiet="on"] .v21c-words { display: none !important; }

/* ---------- critter avatars inside the desk's own circles (F2) ---------- */
/* The art reads the person slot from --p-1; the desk's circle already carries the person's colour as --pc. */
.av.crit.v21c-crit { --art-person: var(--pc); --p-1: var(--pc); }
.av.v21c-crit > .v21c-ini { display: none; }
.v21c-av96 { width: 96px; height: 96px; font-size: 2rem; }
/* The colleague badge on a card (22 px). */
.peer-b.v21c-peer { --art-person: var(--pc); --p-1: var(--pc); width: 22px; height: 22px; overflow: hidden; color: transparent; background: color-mix(in srgb, var(--pc) 16%, var(--solid)); box-shadow: 0 0 0 2px var(--solid), inset 0 0 0 2px var(--pc); }
.peer-b.v21c-peer > .crit-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border-radius: 50%; overflow: hidden; }
.peer-b.v21c-peer > .crit-frm, .peer-b.v21c-peer > .crit-over { display: none; }
.peer-b.v21c-peer > .v21c-ini { display: none; }
@supports not (color: color-mix(in srgb, red 16%, white)) { .peer-b.v21c-peer { background: var(--solid); } }
/* Welfare, the quiet period and the nobody band: the initials come back at once, in the person's own colour. */
:root[data-quiet="on"] .av.v21c-crit, :root[data-quiet="on"] .peer-b.v21c-peer { background: var(--pc) !important; color: var(--p-ink) !important; }
:root[data-quiet="on"] .av.v21c-crit::after { display: none; }
:root[data-quiet="on"] .av.v21c-crit > .crit-art, :root[data-quiet="on"] .av.v21c-crit > .crit-frm, :root[data-quiet="on"] .av.v21c-crit > .crit-over,
:root[data-quiet="on"] .peer-b.v21c-peer > .crit-art { display: none !important; }
:root[data-quiet="on"] .av.v21c-crit > .v21c-ini, :root[data-quiet="on"] .peer-b.v21c-peer > .v21c-ini { display: inline; }

/* ---------- small shared pieces ---------- */
.v21c-art { display: inline-block; flex: none; vertical-align: middle; }
.v21c-line { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.v21c-sub { margin: 6px 0 0; font-size: .8125rem; font-weight: 700; color: var(--ink-2); }
.v21c-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; }
.v21c-prof-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.v21c-prof-text { display: grid; gap: 8px; justify-items: start; min-width: 0; }
.v21c-set-row { flex-wrap: wrap; }
.v21c-set-row .seg { max-width: 100%; }

/* ---------- moment content (Pick your critter, a gum nut found); the core's host is the glass card ---------- */
.v21c-moment { display: grid; gap: 12px; min-width: 0; }
.v21c-moment h2 { margin: 0; font-size: 1.0625rem; line-height: 1.5rem; font-weight: 600; }
.v21c-moment p { margin: 0; }
.v21c-moment-sm { gap: 8px; }

/* ---------- the critter picker without the pictures: six names ---------- */
.v21c-names { display: flex; flex-wrap: wrap; gap: 8px; }
.v21c-name { min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--glass-edge); background: var(--glass-1); box-shadow: inset 0 1px 0 var(--glass-hi), 0 0 0 1px var(--glass-rim); font-weight: 700; color: var(--ink); }
.v21c-name[aria-checked="true"] { outline: 3px solid var(--brand-text); outline-offset: 0; }
.v21c-name:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.v21c-pick-area { display: grid; gap: 12px; }
:root[data-theme="high_contrast"] .v21c-name { background: #FFFFFF; border: 2px solid #000000; box-shadow: none; }

/* ---------- the gum nut (B3) ---------- */
.v21c-nut { display: grid; justify-items: center; gap: 8px; margin-top: 12px; }
.v21c-nut-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.v21c-nut-ico { display: inline-grid; place-items: center; width: 24px; height: 24px; }
.v21c-nut-stage { display: grid; justify-items: center; gap: 8px; min-height: 0; }
.v21c-nut-stage .fl-nut { margin: 44px auto 0; }
.v21c-nut-plain { margin: 0; color: var(--ink-2); }
.v21c-reward { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 8px 14px; border-radius: 999px; font-weight: 600; text-align: left; }
.v21c-reward > span { min-width: 0; }
.v21c-reward-in { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.v21c-golden { color: var(--ink-2); }
.v21c-odds-list { margin: 0; padding-left: 20px; display: grid; gap: 4px; }

/* ---------- the words for the next team celebration (a Made by {ai} treat) ---------- */
.v21c-words { margin: 4px 0 0; font-weight: 600; font-style: italic; color: var(--ink-2); }

/* ---------- the Canteen sheet (B1) ---------- */
.v21c-bal { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; margin-right: 8px; padding: 6px 12px; border-radius: 999px; background: var(--brand-soft); font-weight: 600; white-space: nowrap; }
.v21c-bal b { font-variant-numeric: tabular-nums; }
.v21c-body { display: grid; gap: 20px; }
.v21c-intro { margin: 0; }
.v21c-body > .meta { margin: -12px 0 0; }
.v21c-shelf { display: grid; gap: 10px; }
.v21c-shelf h3 { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.v21c-shelf > .meta { margin: 0; }
.v21c-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 232px), 1fr)); gap: 12px; }
.v21c-item { display: grid; gap: 0; align-content: start; padding: 10px; border-radius: var(--r-card, 20px); min-width: 0; }
.v21c-win { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--solid-2); box-shadow: inset 0 0 0 1px var(--glass-rim); }
.v21c-win svg.v21c-cover { display: block; width: 100%; height: 100%; }
.v21c-win-plain { display: grid; place-items: center; width: 100%; height: 100%; color: var(--brand-text); }
.v21c-win-c { display: grid; place-items: center; width: 100%; height: 100%; }
.v21c-win-c > svg { max-height: 100%; width: auto; }
.v21c-item-b { display: grid; gap: 4px; padding: 10px 4px 2px; min-width: 0; }
.v21c-item-b h4 { margin: 0; font-size: 1rem; line-height: 1.375rem; font-weight: 600; }
.v21c-item-b .meta { margin: 0; }
.v21c-item-b .tag { justify-self: start; }
.v21c-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.v21c-acts .row { display: flex; flex-wrap: wrap; gap: 8px; }
.v21c-price { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink-2); min-height: 36px; }
.v21c-q { margin: 0; font-weight: 600; flex-basis: 100%; }
.v21c-input { width: 100%; min-height: 44px; padding: 0 12px; border-radius: var(--r-chip, 10px); border: 1px solid var(--edge-strong); background: var(--solid); color: var(--ink); }
.v21c-input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.v21c-acts .reason-err { margin: 0; flex-basis: 100%; color: var(--danger); font-size: .8125rem; }
.v21c-acts .reason-err:empty { display: none; }
.v21c-rare .v21c-win { box-shadow: inset 0 0 0 2px var(--accent); }
:root[data-theme="high_contrast"] .v21c-win { background: #FFFFFF; box-shadow: inset 0 0 0 2px #000000; }
:root[data-theme="high_contrast"] .v21c-bal { background: #FFFFFF; border: 2px solid #000000; }

/* The live miniature desk in a theme card: its colours are that theme's own tokens (v21_themes.css). */
.v21c-mini { position: absolute; inset: 0; overflow: hidden; background-color: var(--bg);
  background: radial-gradient(70% 110% at 8% 0%, var(--mesh-1) 0%, transparent 62%), radial-gradient(60% 100% at 100% 12%, var(--mesh-3) 0%, transparent 62%), radial-gradient(80% 130% at 85% 100%, var(--mesh-2) 0%, transparent 66%), var(--bg); }
.v21c-mini > div { position: absolute; background: var(--glass-1); border: 1px solid var(--glass-edge); box-shadow: inset 0 1px 0 var(--glass-hi), 0 0 0 1px var(--glass-rim), var(--shadow-1); }
.v21c-mini i { display: block; border-radius: 3px; }
.v21c-mini-hdr { left: 3%; right: 3%; top: 5.5%; height: 18%; border-radius: 10px; background: var(--glass-2) !important; display: flex; align-items: center; gap: 6px; padding: 0 8px; }
.v21c-mini-logo { width: 10px; height: 10px; background: var(--brand); }
.v21c-mini-bar { width: 34px; height: 5px; background: var(--ink); opacity: .8; }
.v21c-mini-sp { flex: 1; }
.v21c-mini-p1, .v21c-mini-p2, .v21c-mini-p3 { width: 9px; height: 9px; border-radius: 50% !important; }
.v21c-mini-p1 { background: var(--p-gary); }
.v21c-mini-p2 { background: var(--p-gill); }
.v21c-mini-p3 { background: var(--p-kana); }
.v21c-mini-card { left: 3%; width: 58%; height: 21%; border-radius: 10px; display: grid; align-content: center; gap: 5px; padding: 0 10px; }
.v21c-mini-c1 { top: 30%; }
.v21c-mini-c2 { top: 55%; }
.v21c-mini-t1 { width: 70%; height: 5px; background: var(--ink); opacity: .85; }
.v21c-mini-t2 { width: 46%; height: 4px; background: var(--ink-3); opacity: .7; }
.v21c-mini-side { right: 3%; top: 30%; bottom: 5.5%; width: 32%; border-radius: 12px; padding: 8px; display: grid; gap: 5px; align-content: start; }
.v21c-mini-btn { height: 14px; margin-top: 6px; border-radius: 6px !important; background: linear-gradient(180deg, var(--brand-hi), var(--brand)); }

/* ---------- Settings: From the Canteen ---------- */
.v21c-settings .set-row > span:first-child { min-width: 0; }

/* ---------- Profile: the treats made by {ai} ---------- */
.v21c-treats { display: grid; gap: 10px; }
.v21c-treat { display: grid; gap: 6px; padding: 12px 14px; border-radius: 14px; }
.v21c-treat p { margin: 0; }
.v21c-verse { font-style: italic; }
.v21c-portrait svg { display: block; width: 160px; max-width: 100%; height: auto; }

/* ---------- narrow screens ---------- */
@media (max-width: 599px) {
  .v21c-bal { padding: 4px 10px; margin-right: 4px; }
  .v21c-actions { justify-content: flex-start; }
}

/* =====================================================================================================================
 * The Colours shelf (J121): effect colours, their moving previews, the top tier moment and Your colour's swatches.
 * A preview is a dark showcase (so metal, glow, sparks, lightning and fire read the same in every theme) with a job
 * card glowing in the colour and an avatar wearing it. Its colours come from custom properties set through the CSSOM
 * by js\v21_canteen.js: --cs-c (bright), --cs-c2 (deep), --cs-plain (the plain colour of the theme on screen) and,
 * when the palette gives them, --cs-s1 to --cs-s3 (metal stops). Only transform, opacity, filter and background
 * position animate. A preview moves only while it has .is-live (on screen, at most eight at once); everything is still
 * and shows the plain colour under reduced motion, Calm, data-quiet, the days that matter and High contrast.
 * ================================================================================================================== */

/* ---------- the shelf ---------- */
.v21cs-shelf { gap: 14px; }
.v21cs-lead { margin: 0; }
.v21cs-fam { display: grid; gap: 10px; min-width: 0; }
.v21cs-fam-h { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; font-size: .9375rem; line-height: 1.375rem; font-weight: 700; color: var(--ink); }
.v21cs-fam-h::after { content: ""; flex: 1; height: 1px; background: color-mix(in srgb, var(--edge-strong) 35%, transparent); }
.v21cs-items { grid-template-columns: repeat(auto-fill, minmax(min(100%, 248px), 1fr)); gap: 14px; }
.v21c-item.v21cs-item { transition: transform var(--t-small, 180ms) var(--ease-out, ease); }
.v21c-item.v21cs-item:hover { transform: translateY(-2px); }
.v21c-item.v21cs-item.is-worn { box-shadow: inset 0 1px 0 var(--glass-hi), 0 0 0 2px var(--brand-text), var(--shadow-1); }
.v21cs-win { background: #0B0F0D; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 1px 0 var(--glass-hi); }
.v21cs-item[data-tier="legendary"] .v21cs-win::after,
.v21cs-item[data-tier="unique"] .v21cs-win::after,
.v21cs-item[data-tier="mythic"] .v21cs-win::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1.5px rgba(242,203,76,.55), inset 0 0 18px rgba(242,203,76,.12); }
.v21cs-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 8px; min-width: 0; }
.v21cs-name { margin: 0; min-width: 0; font-size: 1rem; line-height: 1.375rem; font-weight: 600; overflow-wrap: anywhere; }
.v21cs-price { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin: 2px 0 0; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.v21cs-need { flex-basis: 100%; font-size: .8125rem; font-weight: 600; color: var(--ink-2); }

/* The tier badge: the words are always --ink on a light tint of the tier's hue, readable in every theme. */
.v21cs-tier { --t: var(--ink-3); display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: .6875rem; line-height: 1.125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; color: var(--ink); background-color: color-mix(in srgb, var(--t) 14%, var(--solid)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t) 60%, transparent); }
.v21cs-tier[data-tier="rare"] { --t: #1D6FB8; }
.v21cs-tier[data-tier="epic"], .v21cs-tier[data-tier="premium"] { --t: #7A3FB0; }
.v21cs-tier[data-tier="legendary"] { --t: #A67C00; }
.v21cs-tier[data-tier="unique"], .v21cs-tier[data-tier="mythic"] { --t: #B03A6F; }
:root[data-theme="dark"] .v21cs-tier[data-tier="rare"] { --t: #7DB8F0; }
:root[data-theme="dark"] .v21cs-tier[data-tier="epic"], :root[data-theme="dark"] .v21cs-tier[data-tier="premium"] { --t: #C39BF0; }
:root[data-theme="dark"] .v21cs-tier[data-tier="legendary"] { --t: #F2CB4C; }
:root[data-theme="dark"] .v21cs-tier[data-tier="unique"], :root[data-theme="dark"] .v21cs-tier[data-tier="mythic"] { --t: #F28CB8; }
/* A top tier badge carries a slow sheen across it (background position only). */
.v21cs-tier[data-tier="legendary"], .v21cs-tier[data-tier="unique"], .v21cs-tier[data-tier="mythic"] {
  background-image: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.6) 50%, transparent 70%);
  background-size: 260% 100%; background-repeat: no-repeat; background-position: 130% 0;
  animation: v21cs-badge 4.2s ease-in-out infinite;
}
:root[data-theme="dark"] .v21cs-tier[data-tier="legendary"], :root[data-theme="dark"] .v21cs-tier[data-tier="unique"], :root[data-theme="dark"] .v21cs-tier[data-tier="mythic"] { background-image: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.16) 50%, transparent 70%); }
@keyframes v21cs-badge { 0%, 55% { background-position: 130% 0; } 100% { background-position: -30% 0; } }

/* ---------- a preview: the showcase ---------- */
.v21cs-stage, .v21cs-burst {
  --cs-hi: color-mix(in srgb, var(--cs-c) 42%, #FFFFFF);
  --cs-lo: color-mix(in srgb, var(--cs-c2) 72%, #000000);
  --cs-metal: linear-gradient(115deg, var(--cs-s1, var(--cs-lo)) 0%, var(--cs-s2, var(--cs-c)) 16%, var(--cs-s3, var(--cs-hi)) 28%, var(--cs-s2, var(--cs-c)) 40%, var(--cs-s1, var(--cs-lo)) 54%, var(--cs-s2, var(--cs-c)) 70%, var(--cs-s3, var(--cs-hi)) 84%, var(--cs-s1, var(--cs-lo)) 100%);
}
.v21cs-stage { position: absolute; inset: 0; display: block; overflow: hidden; border-radius: inherit; contain: layout paint; pointer-events: none;
  background: radial-gradient(90% 120% at 30% 0%, #25312A 0%, #131A16 48%, #0A0E0C 100%); }
.v21cs-stage::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: 6%; height: 16%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--cs-c) 26%, transparent), transparent); }
.v21cs-stage[data-tier="legendary"]::before, .v21cs-stage[data-tier="unique"]::before, .v21cs-stage[data-tier="mythic"]::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 0%, color-mix(in srgb, var(--cs-c) 20%, transparent), transparent 72%); }
.v21cs-stage i { display: block; }
.v21cs-aura { position: absolute; left: 2%; top: 10%; width: 68%; height: 80%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--cs-c) 55%, transparent), transparent); opacity: .3; }
.v21cs-back { position: absolute; inset: 0; }
.v21cs-card { position: absolute; left: 9%; top: 27%; width: 52%; height: 46%; border-radius: 12px; overflow: hidden; background: var(--cs-c); box-shadow: 0 0 14px 1px color-mix(in srgb, var(--cs-c) 45%, transparent), 0 6px 18px rgba(0,0,0,.45); }
.v21cs-card-in { position: absolute; inset: 2px; display: grid; align-content: center; gap: 6px; padding: 0 12%; border-radius: 10px; background: linear-gradient(180deg, #1D2621, #141B17); box-shadow: inset 0 0 18px color-mix(in srgb, var(--cs-c) 26%, transparent); }
.v21cs-t1 { width: 78%; height: 6px; border-radius: 3px; background: rgba(255,255,255,.8); }
.v21cs-t2 { width: 52%; height: 5px; border-radius: 3px; background: rgba(255,255,255,.4); }
.v21cs-t3 { width: 32%; height: 10px; margin-top: 2px; border-radius: 5px; background: color-mix(in srgb, var(--cs-c) 75%, transparent); }
.v21cs-orb { position: absolute; right: 9%; top: 27%; height: 46%; aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden; background: var(--cs-c); box-shadow: 0 0 16px 2px color-mix(in srgb, var(--cs-c) 50%, transparent), 0 6px 16px rgba(0,0,0,.5); }
.v21cs-orb-in { position: absolute; inset: 3px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--cs-c) 32%, #2A3530), #121815 72%); }
.v21cs-sheen { position: absolute; inset: -10%; opacity: 0; transform: translateX(-130%); background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.62) 50%, transparent 62%); }
.v21cs-fx { position: absolute; inset: 0; }
.v21cs-p { position: absolute; left: var(--x, 50%); top: var(--y, 50%); width: 8px; height: 8px; margin: -4px 0 0 -4px; opacity: 0; }
.v21cs-p:nth-child(1) { --x: 8%; --y: 24%; --d: 0s; --dx: -10px; --dy: -12px; }
.v21cs-p:nth-child(2) { --x: 30%; --y: 17%; --d: .35s; --dx: -4px; --dy: -16px; }
.v21cs-p:nth-child(3) { --x: 52%; --y: 21%; --d: .9s; --dx: 6px; --dy: -14px; }
.v21cs-p:nth-child(4) { --x: 64%; --y: 34%; --d: .55s; --dx: 12px; --dy: -8px; }
.v21cs-p:nth-child(5) { --x: 63%; --y: 64%; --d: 1.2s; --dx: 12px; --dy: 8px; }
.v21cs-p:nth-child(6) { --x: 44%; --y: 79%; --d: .7s; --dx: 4px; --dy: 14px; }
.v21cs-p:nth-child(7) { --x: 20%; --y: 77%; --d: 1.5s; --dx: -6px; --dy: 14px; }
.v21cs-p:nth-child(8) { --x: 6%; --y: 56%; --d: 1s; --dx: -12px; --dy: 4px; }
.v21cs-p:nth-child(9) { --x: 73%; --y: 21%; --d: .2s; --dx: 4px; --dy: -12px; }
.v21cs-p:nth-child(10) { --x: 94%; --y: 40%; --d: 1.3s; --dx: 12px; --dy: -4px; }
.v21cs-p:nth-child(11) { --x: 89%; --y: 77%; --d: .6s; --dx: 8px; --dy: 10px; }
.v21cs-p:nth-child(12) { --x: 71%; --y: 79%; --d: 1.75s; --dx: -4px; --dy: 12px; }
/* Common colours keep it simple: half the particles. */
.v21cs-stage[data-tier="common"] .v21cs-p:nth-child(n+7), .v21cs-stage[data-tier="standard"] .v21cs-p:nth-child(n+7) { display: none; }
/* Epic and above: a sheen crosses the card and the avatar whatever the family, and the aura is stronger. */
.v21cs-stage:is([data-tier="epic"], [data-tier="premium"], [data-tier="legendary"], [data-tier="unique"], [data-tier="mythic"]) .v21cs-sheen { opacity: 1; animation: v21cs-sweep 4.6s cubic-bezier(.4,0,.2,1) infinite; }
.v21cs-stage:is([data-tier="legendary"], [data-tier="unique"], [data-tier="mythic"]) .v21cs-aura { opacity: .5; }
.v21cs-orb .v21cs-sheen { animation-delay: .35s !important; }

/* ---------- metallics: flowing metal, a sheen, glints ---------- */
.v21cs-stage[data-fam="metallic"] .v21cs-card,
.v21cs-stage[data-fam="metallic"] .v21cs-orb { background: var(--cs-metal); background-size: 200% 100%; animation: v21cs-metal 6s linear infinite; }
.v21cs-stage[data-fam="metallic"] .v21cs-orb { box-shadow: 0 0 12px 1px color-mix(in srgb, var(--cs-c) 35%, transparent), 0 6px 16px rgba(0,0,0,.5); }
.v21cs-stage[data-fam="metallic"] .v21cs-orb-in { display: none; }
.v21cs-stage[data-fam="metallic"] .v21cs-sheen { opacity: 1; animation: v21cs-sweep 3.8s cubic-bezier(.4,0,.2,1) infinite; }
.v21cs-stage[data-fam="metallic"] .v21cs-p { width: 10px; height: 10px; margin: -5px 0 0 -5px; background: radial-gradient(circle, #FFFFFF 0 20%, var(--cs-hi) 42%, transparent 70%); clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%); animation: v21cs-glint 4.2s ease-in-out infinite; animation-delay: calc(var(--d) * 2); }
@keyframes v21cs-metal { from { background-position: 0% 0; } to { background-position: 200% 0; } }
@keyframes v21cs-sweep { 0% { transform: translateX(-130%); } 55%, 100% { transform: translateX(130%); } }
@keyframes v21cs-glint { 0%, 70%, 100% { opacity: 0; transform: scale(.2) rotate(0deg); } 80% { opacity: 1; transform: scale(1.2) rotate(45deg); } 90% { opacity: .2; transform: scale(.5) rotate(80deg); } }

/* ---------- glows: a breathing halo, a lit rim, drifting motes ---------- */
.v21cs-stage[data-fam="glow"] .v21cs-aura { opacity: .6; animation: v21cs-breathe 3.2s ease-in-out infinite alternate; }
.v21cs-stage[data-fam="glow"] .v21cs-card,
.v21cs-stage[data-fam="glow"] .v21cs-orb { box-shadow: 0 0 20px 4px color-mix(in srgb, var(--cs-c) 60%, transparent), 0 0 46px 8px color-mix(in srgb, var(--cs-c) 28%, transparent); animation: v21cs-lumen 3.2s ease-in-out infinite alternate; }
.v21cs-stage[data-fam="glow"] .v21cs-p { width: 7px; height: 7px; margin: -3px 0 0 -3px; border-radius: 50%; background: radial-gradient(circle, #FFFFFF 0 18%, var(--cs-c) 45%, transparent 72%); animation: v21cs-mote 4.4s ease-in-out infinite; animation-delay: calc(var(--d) * 2.2); }
.v21cs-stage[data-fx^="neon"] :is(.v21cs-card, .v21cs-orb), .v21cs-stage[data-fx="twinneon"] :is(.v21cs-card, .v21cs-orb) { animation: v21cs-lumen 3.2s ease-in-out infinite alternate, v21cs-neon 5.5s linear infinite; }
.v21cs-stage[data-fx="twinneon"] :is(.v21cs-card, .v21cs-orb) { background: linear-gradient(90deg, var(--cs-s1, var(--cs-c)), var(--cs-s2, var(--cs-c2)) 50%, var(--cs-s1, var(--cs-c))); background-size: 200% 100%; animation: v21cs-metal 3.6s linear infinite, v21cs-neon 5.5s linear infinite; }
.v21cs-stage[data-fx="supernova"] .v21cs-orb-in { inset: 0; background: radial-gradient(circle, #FFFFFF 0 16%, var(--cs-s3, var(--cs-hi)) 30%, var(--cs-c) 55%, var(--cs-c2) 100%); animation: v21cs-core 2.4s ease-in-out infinite alternate; }
@keyframes v21cs-neon { 0%, 86%, 100% { opacity: 1; } 87% { opacity: .45; } 88% { opacity: 1; } 90% { opacity: .6; } 91% { opacity: 1; } }
@keyframes v21cs-core { from { transform: scale(.82); } to { transform: scale(1.12); } }
@keyframes v21cs-breathe { from { opacity: .28; transform: scale(.9); } to { opacity: .85; transform: scale(1.08); } }
@keyframes v21cs-lumen { from { filter: brightness(.9) saturate(1); } to { filter: brightness(1.25) saturate(1.15); } }
@keyframes v21cs-mote { 0% { opacity: 0; transform: translateY(8px) scale(.6); } 30% { opacity: .95; } 100% { opacity: 0; transform: translateY(-26px) scale(1.05); } }

/* ---------- sparks and sparkles: twinkling stars, sparks flying off ---------- */
.v21cs-stage[data-fam="sparks"] .v21cs-card,
.v21cs-stage[data-fam="sparks"] .v21cs-orb { background: linear-gradient(120deg, var(--cs-c2), var(--cs-c) 40%, var(--cs-hi) 50%, var(--cs-c) 60%, var(--cs-c2)); background-size: 200% 100%; animation: v21cs-metal 4s linear infinite; }
.v21cs-stage[data-fam="sparks"] .v21cs-p,
.v21cs-stage[data-fam="special"] .v21cs-p { width: 15px; height: 15px; margin: -7px 0 0 -7px; background: radial-gradient(circle, #FFFFFF 0 20%, var(--cs-hi) 40%, var(--cs-c) 55%, transparent 72%); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); animation: v21cs-twinkle 1.9s ease-in-out infinite; animation-delay: var(--d); }
.v21cs-stage[data-fam="sparks"] .v21cs-p:nth-child(even) { width: 5px; height: 5px; margin: -2px 0 0 -2px; border-radius: 50%; clip-path: none; background: radial-gradient(circle, #FFFFFF 0 35%, var(--cs-c) 70%, transparent 100%); animation-name: v21cs-spark; animation-duration: 1.4s; animation-timing-function: cubic-bezier(.2,.7,.3,1); }
.v21cs-stage[data-fam="sparks"][data-tier="legendary"] .v21cs-p:nth-child(even) { animation-name: v21cs-fall; animation-duration: 1.8s; animation-timing-function: linear; }
@keyframes v21cs-fall { 0% { opacity: 0; transform: translate(0, -18px) scale(1); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), 46px) scale(.3); } }
@keyframes v21cs-twinkle { 0%, 100% { opacity: 0; transform: scale(.2) rotate(0deg); } 45% { opacity: 1; transform: scale(1.15) rotate(45deg); } 70% { opacity: .3; transform: scale(.6) rotate(70deg); } }
@keyframes v21cs-spark { 0% { opacity: 0; transform: translate(0, 0) scale(1); } 12% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.2); } }

/* ---------- lightning: bolts strike, the card surges, sparks jump ---------- */
.v21cs-stage[data-fam="lightning"] .v21cs-card,
.v21cs-stage[data-fam="lightning"] .v21cs-orb { background: linear-gradient(90deg, var(--cs-c2), var(--cs-c) 30%, #FFFFFF 50%, var(--cs-c) 70%, var(--cs-c2)); background-size: 200% 100%; animation: v21cs-metal 1.6s linear infinite, v21cs-surge 3.4s linear infinite; }
.v21cs-stage[data-fam="lightning"] .v21cs-aura { animation: v21cs-flash 3.4s linear infinite; }
.v21cs-bolt { position: absolute; left: var(--x, 4%); top: var(--y, 8%); width: 11%; height: 56%; opacity: 0; filter: drop-shadow(0 0 3px var(--cs-c)) drop-shadow(0 0 8px var(--cs-c)); animation: v21cs-strike 3.4s linear infinite; animation-delay: var(--d, 0s); }
.v21cs-bolt::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #FFFFFF, var(--cs-hi) 40%, var(--cs-c)); clip-path: polygon(58% 0, 18% 52%, 44% 52%, 26% 100%, 84% 38%, 56% 38%, 76% 0); }
.v21cs-fx .v21cs-bolt:nth-last-child(3) { --x: 1%; --y: 6%; --d: 0s; }
.v21cs-fx .v21cs-bolt:nth-last-child(2) { --x: 57%; --y: 2%; --d: .12s; transform: scaleX(-1); }
.v21cs-fx .v21cs-bolt:nth-last-child(1) { --x: 88%; --y: 44%; --d: 1.7s; }
.v21cs-stage[data-fam="lightning"] .v21cs-p { width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 0 6px 2px var(--cs-c); animation: v21cs-zap 3.4s linear infinite; animation-delay: calc(var(--d) * .2); }
@keyframes v21cs-strike { 0%, 63% { opacity: 0; } 64% { opacity: 1; } 66% { opacity: .15; } 68% { opacity: 1; } 72% { opacity: .35; } 75%, 100% { opacity: 0; } }
@keyframes v21cs-surge { 0%, 63% { filter: brightness(1); } 64% { filter: brightness(1.9); } 68% { filter: brightness(1.5); } 75%, 100% { filter: brightness(1); } }
@keyframes v21cs-flash { 0%, 63% { opacity: .25; } 64% { opacity: .95; } 70% { opacity: .5; } 76%, 100% { opacity: .25; } }
@keyframes v21cs-zap { 0%, 62% { opacity: 0; transform: translate(0, 0); } 65% { opacity: 1; transform: translate(0, 0); } 70% { opacity: 1; transform: translate(var(--dx), var(--dy)); } 74%, 100% { opacity: 0; transform: translate(var(--dx), var(--dy)); } }

/* ---------- fire and flames: flames lick behind the card, embers rise, the rim shimmers with heat ---------- */
.v21cs-stage[data-fam="fire"] .v21cs-card,
.v21cs-stage[data-fam="fire"] .v21cs-orb { background: linear-gradient(0deg, var(--cs-lo), var(--cs-c2) 25%, var(--cs-c) 55%, var(--cs-hi) 80%, var(--cs-c)); background-size: 100% 220%; animation: v21cs-heat 1.8s ease-in-out infinite alternate; box-shadow: 0 0 18px 3px color-mix(in srgb, var(--cs-c) 55%, transparent), 0 6px 18px rgba(0,0,0,.45); }
.v21cs-stage[data-fam="fire"] .v21cs-aura { opacity: .55; animation: v21cs-breathe 1.3s ease-in-out infinite alternate; }
.v21cs-flame { position: absolute; bottom: 22%; left: var(--x, 20%); width: 18%; height: 80%; transform-origin: 50% 100%; border-radius: 50% 50% 46% 46% / 62% 62% 38% 38%; background: radial-gradient(60% 55% at 50% 74%, #FFF6D8 0%, var(--cs-hi) 16%, var(--cs-c) 40%, var(--cs-c2) 64%, transparent 78%); filter: blur(1.2px); opacity: .9; animation: v21cs-flick var(--fd, 1.1s) ease-in-out infinite alternate; animation-delay: var(--d, 0s); }
.v21cs-flame:nth-child(1) { --x: 3%; --d: 0s; --fd: 1.05s; height: 66%; }
.v21cs-flame:nth-child(2) { --x: 13%; --d: .3s; --fd: .9s; height: 84%; }
.v21cs-flame:nth-child(3) { --x: 24%; --d: .15s; --fd: 1.2s; height: 94%; }
.v21cs-flame:nth-child(4) { --x: 35%; --d: .45s; --fd: .95s; height: 80%; }
.v21cs-flame:nth-child(5) { --x: 46%; --d: .2s; --fd: 1.15s; height: 88%; }
.v21cs-flame:nth-child(6) { --x: 66%; --d: .5s; --fd: 1s; height: 74%; }
.v21cs-flame:nth-child(7) { --x: 79%; --d: .1s; --fd: 1.25s; height: 70%; }
/* Common fire keeps low flames; a legendary one burns tall. */
.v21cs-stage[data-tier="common"] .v21cs-flame { height: 58%; }
.v21cs-stage[data-tier="legendary"] .v21cs-flame { width: 20%; }
.v21cs-stage[data-fam="fire"] .v21cs-p { top: 74%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: radial-gradient(circle, #FFFFFF 0 20%, var(--cs-hi) 45%, var(--cs-c) 75%); animation: v21cs-ember 2.6s linear infinite; animation-delay: calc(var(--d) * 1.4); }
@keyframes v21cs-heat { from { background-position: 0 0%; } to { background-position: 0 100%; } }
@keyframes v21cs-flick { 0% { transform: scale(1, .86) translateY(0); opacity: .82; } 50% { transform: scale(.9, 1.14) translateY(-3%); opacity: 1; } 100% { transform: scale(1.06, .96) translateY(-1%); opacity: .9; } }
@keyframes v21cs-ember { 0% { opacity: 0; transform: translate(0, 0) scale(1); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), -86px) scale(.35); } }

/* ---------- specials: a shifting shimmer, a slow hue drift, sparkles ---------- */
.v21cs-stage[data-fam="special"] .v21cs-card,
.v21cs-stage[data-fam="special"] .v21cs-orb { background: linear-gradient(120deg, var(--cs-s1, var(--cs-c2)), var(--cs-s2, var(--cs-c)) 22%, var(--cs-s3, var(--cs-hi)) 40%, var(--cs-s2, var(--cs-c)) 58%, var(--cs-s1, var(--cs-c2)) 76%, var(--cs-s3, var(--cs-hi)) 90%, var(--cs-s1, var(--cs-c2))); background-size: 300% 100%; animation: v21cs-metal 7s linear infinite, v21cs-drift 6s ease-in-out infinite alternate; }
.v21cs-stage[data-fam="special"] .v21cs-orb-in { inset: -20%; border-radius: 50%; background: conic-gradient(from 0deg, var(--cs-s1, var(--cs-c2)), var(--cs-s2, var(--cs-c)), var(--cs-s3, var(--cs-hi)), var(--cs-s2, var(--cs-c)), var(--cs-s1, var(--cs-c2))); filter: blur(4px) saturate(1.15); animation: v21cs-spin 9s linear infinite; }
@keyframes v21cs-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.v21cs-stage[data-fam="special"] .v21cs-aura { opacity: .5; animation: v21cs-breathe 4s ease-in-out infinite alternate, v21cs-drift 6s ease-in-out infinite alternate; }
.v21cs-stage[data-fam="special"] .v21cs-sheen { opacity: 1; animation: v21cs-sweep 5s cubic-bezier(.4,0,.2,1) infinite; }
@keyframes v21cs-drift { from { filter: hue-rotate(-18deg) saturate(1.05); } to { filter: hue-rotate(28deg) saturate(1.2); } }

/* ---------- the real effect on the sample card and avatar (.v21cs-hosted: Your colour draws it, NS.colours.preview) ---------- */
/* The card's edge and the avatar's edge are the board's own drawing (styles\v21_colours_fx.css), so nothing here clips
   them: the card is a dark panel inside the effect's band (its glow shows through), the avatar keeps its moving disc
   inside the effect's own edge, and the showcase keeps its light, particles and flames round them. */
.v21cs-stage.v21cs-hosted .v21cs-card { overflow: visible; animation: none; filter: none; background: #19211C; box-shadow: 0 0 16px 1px color-mix(in srgb, var(--cs-c) 30%, transparent), 0 6px 18px rgba(0,0,0,.45); }
.v21cs-stage.v21cs-hosted .v21cs-card-in { inset: 3px; background: linear-gradient(180deg, rgba(29,38,33,.74), rgba(20,27,23,.74)); box-shadow: none; }
.v21cs-stage.v21cs-hosted .v21cs-orb { overflow: visible; }
.v21cs-stage.v21cs-hosted .v21cs-orb-in, .v21cs-stage.v21cs-hosted .v21cs-sheen { display: none; }

/* ---------- a preview holds still unless it is live (on screen, within the cap) ---------- */
.v21cs-stage:not(.is-live), .v21cs-stage:not(.is-live) *, .v21cs-stage:not(.is-live) *::before, .v21cs-stage:not(.is-live) *::after { animation-play-state: paused !important; }
/* A tile's tier badge shimmers only while its preview moves (js\v21_canteen.js puts .is-live on the tile too). */
.v21cs-item:not(.is-live) .v21cs-tier { animation-play-state: paused; }

/* ---------- Your colour (Settings): an effect colour's swatch moves in its disc ---------- */
.v21-dc-dot.v21-dc-fx { position: relative; overflow: hidden; }
/* Where Your colour draws the swatch itself (js\v21_colours_fx.js), its band sits round the disc: the disc holds it. */
.v21-dc-dot.v21-fx { position: relative; }
.v21-dc-dot.v21-dc-fx > .v21cs-stage { border-radius: 50%; }
.v21-dc-dot.v21-dc-fx > svg { position: relative; z-index: 3; color: #FFFFFF; filter: drop-shadow(0 1px 1px rgba(0,0,0,.7)); }
.v21-dc-sub { grid-column: 1 / -1; margin: 6px 0 0; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.v21-dc-sw.v21cs-host { position: relative; }
.v21cs-dotst { background: #121815; }
.v21cs-dotst::after, .v21cs-dotst::before, .v21cs-dotst .v21cs-aura { display: none; }
.v21cs-dotst .v21cs-orb { left: 0; right: auto; top: 0; width: 100%; height: 100%; box-shadow: none; }
.v21cs-dotst .v21cs-orb-in { display: none; }
.v21cs-dotst .v21cs-back { z-index: 1; }
.v21cs-dotst .v21cs-fx { z-index: 2; }
.v21cs-dotst[data-fam="fire"] .v21cs-orb { background: linear-gradient(0deg, var(--cs-c2), var(--cs-lo) 70%); animation: none; }
.v21cs-dotst .v21cs-flame { bottom: -8%; width: 40%; height: 86%; }
.v21cs-dotst .v21cs-flame:nth-child(1) { --x: 2%; }
.v21cs-dotst .v21cs-flame:nth-child(2) { --x: 30%; height: 100%; }
.v21cs-dotst .v21cs-flame:nth-child(3) { --x: 58%; }
.v21cs-dotst .v21cs-p { width: 5px; height: 5px; margin: -2px 0 0 -2px; }
.v21cs-dotst .v21cs-p:nth-child(1) { --x: 24%; --y: 26%; --dx: -4px; --dy: -5px; }
.v21cs-dotst .v21cs-p:nth-child(2) { --x: 76%; --y: 30%; --dx: 5px; --dy: -4px; }
.v21cs-dotst .v21cs-p:nth-child(3) { --x: 70%; --y: 74%; --dx: 4px; --dy: 5px; }
.v21cs-dotst .v21cs-p:nth-child(4) { --x: 28%; --y: 72%; --dx: -5px; --dy: 4px; }
.v21cs-dotst .v21cs-p:nth-child(5) { --x: 50%; --y: 14%; --dx: 0px; --dy: -6px; }
.v21cs-dotst[data-fam="fire"] .v21cs-p { top: 70%; animation-name: v21cs-ember-sm; }
.v21cs-dotst .v21cs-fx .v21cs-bolt { --x: 30%; --y: 10%; width: 40%; height: 80%; transform: none; }
@keyframes v21cs-ember-sm { 0% { opacity: 0; transform: translate(0, 0) scale(1); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), -24px) scale(.35); } }

/* ---------- the top tier moment (bought or worn): a short burst in the colour's own style ---------- */
.v21cs-host { position: relative; }
.v21cs-burst { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: visible; }
.v21cs-burst i { display: block; }
.v21cs-bflash { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; opacity: 0; background: radial-gradient(circle, #FFFFFF 0%, color-mix(in srgb, var(--cs-c) 85%, transparent) 35%, transparent 70%); animation: v21cs-bflash 900ms cubic-bezier(.2,.8,.2,1) forwards; }
.v21cs-bp { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; opacity: 0; border-radius: 50%; background: radial-gradient(circle, #FFFFFF 0 22%, var(--cs-c) 50%, transparent 74%); animation: v21cs-bp 1300ms cubic-bezier(.16,.84,.3,1) forwards; animation-delay: var(--bd, 0ms); }
.v21cs-bp:nth-child(2) { --ba: 0deg; }
.v21cs-bp:nth-child(3) { --ba: 22.5deg; --br: 84px; --bd: 60ms; }
.v21cs-bp:nth-child(4) { --ba: 45deg; }
.v21cs-bp:nth-child(5) { --ba: 67.5deg; --br: 84px; --bd: 60ms; }
.v21cs-bp:nth-child(6) { --ba: 90deg; }
.v21cs-bp:nth-child(7) { --ba: 112.5deg; --br: 84px; --bd: 60ms; }
.v21cs-bp:nth-child(8) { --ba: 135deg; }
.v21cs-bp:nth-child(9) { --ba: 157.5deg; --br: 84px; --bd: 60ms; }
.v21cs-bp:nth-child(10) { --ba: 180deg; }
.v21cs-bp:nth-child(11) { --ba: 202.5deg; --br: 84px; --bd: 60ms; }
.v21cs-bp:nth-child(12) { --ba: 225deg; }
.v21cs-bp:nth-child(13) { --ba: 247.5deg; --br: 84px; --bd: 60ms; }
.v21cs-bp:nth-child(14) { --ba: 270deg; }
.v21cs-bp:nth-child(15) { --ba: 292.5deg; --br: 84px; --bd: 60ms; }
.v21cs-bp:nth-child(16) { --ba: 315deg; }
.v21cs-bp:nth-child(17) { --ba: 337.5deg; --br: 84px; --bd: 60ms; }
/* Three distances and three starts, so the burst reads as thrown rather than drawn with a compass. */
.v21cs-bp:nth-child(3n) { --br: 102px; --bd: 130ms; }
.v21cs-bp:nth-child(5n) { --br: 52px; --bd: 20ms; }
.v21cs-burst[data-fam="metallic"] .v21cs-bp { width: 7px; height: 14px; margin: -7px 0 0 -3px; border-radius: 0; background: linear-gradient(135deg, #FFFFFF, var(--cs-hi) 35%, var(--cs-c) 60%, var(--cs-c2)); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.v21cs-burst[data-fam="sparks"] .v21cs-bp, .v21cs-burst[data-fam="special"] .v21cs-bp { width: 13px; height: 13px; margin: -6px 0 0 -6px; border-radius: 0; background: radial-gradient(circle, #FFFFFF 0 22%, var(--cs-hi) 40%, var(--cs-c) 56%, transparent 74%); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
.v21cs-burst[data-fam="lightning"] .v21cs-bp { width: 2px; height: 18px; margin: -9px 0 0 -1px; border-radius: 1px; background: linear-gradient(180deg, #FFFFFF, var(--cs-c)); box-shadow: 0 0 6px var(--cs-c); }
.v21cs-burst[data-fam="lightning"] .v21cs-bflash { animation-duration: 600ms; }
/* Fire: embers thrown upwards in a fan (-75 to 75 degrees) rather than all round. */
.v21cs-burst[data-fam="fire"] .v21cs-bp { --ba: calc(var(--fi, 0) * 10deg + -75deg); --br: 96px; width: 7px; height: 7px; margin: -3px 0 0 -3px; background: radial-gradient(circle, #FFFFFF 0 16%, var(--cs-hi) 40%, var(--cs-c) 68%, var(--cs-c2) 100%); animation-duration: 1600ms; }
.v21cs-burst[data-fam="fire"] .v21cs-bp:nth-child(3) { --fi: 1; }
.v21cs-burst[data-fam="fire"] .v21cs-bp:nth-child(4) { --fi: 2; }
.v21cs-burst[data-fam="fire"] .v21cs-bp:nth-child(5) { --fi: 3; }
.v21cs-burst[data-fam="fire"] .v21cs-bp:nth-child(6) { --fi: 4; }
.v21cs-burst[data-fam="fire"] .v21cs-bp:nth-child(7) { --fi: 5; }
.v21cs-burst[data-fam="fire"] .v21cs-bp:nth-child(8) { --fi: 6; }
.v21cs-burst[data-fam="fire"] .v21cs-bp:nth-child(9) { --fi: 7; }
.v21cs-burst[data-fam="fire"] .v21cs-bp:nth-child(10) { --fi: 8; }
.v21cs-burst[data-fam="fire"] .v21cs-bp:nth-child(11) { --fi: 9; }
.v21cs-burst[data-fam="fire"] .v21cs-bp:nth-child(12) { --fi: 10; }
.v21cs-burst[data-fam="fire"] .v21cs-bp:nth-child(13) { --fi: 11; }
.v21cs-burst[data-fam="fire"] .v21cs-bp:nth-child(14) { --fi: 12; }
.v21cs-burst[data-fam="fire"] .v21cs-bp:nth-child(15) { --fi: 13; }
.v21cs-burst[data-fam="fire"] .v21cs-bp:nth-child(16) { --fi: 14; }
.v21cs-burst[data-fam="fire"] .v21cs-bp:nth-child(17) { --fi: 15; }
.v21cs-burst[data-fam="fire"] .v21cs-bp:nth-child(odd) { --br: 70px; --bd: 110ms; }
.v21cs-burst[data-fam="fire"] .v21cs-bp:nth-child(4n) { --br: 118px; --bd: 40ms; }
.v21cs-burst[data-fam="special"] { animation: v21cs-drift 1.2s ease-in-out forwards; }
@keyframes v21cs-bflash { 0% { opacity: .95; transform: scale(.2); } 100% { opacity: 0; transform: scale(4); } }
@keyframes v21cs-bp { 0% { opacity: 1; transform: rotate(var(--ba, 0deg)) translateY(0) scale(.5); } 70% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--ba, 0deg)) translateY(calc(var(--br, 64px) * -1)) scale(1); } }

/* ---------- still: reduced motion, Calm, the quiet states, the days that matter and High contrast show the plain colour ---------- */
@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion="full"]) :is(.v21cs-stage, .v21cs-win) { background: var(--solid-2); }
  :root:not([data-motion="full"]) :is(.v21cs-stage *, .v21cs-tier, .v21c-item.v21cs-item), :root:not([data-motion="full"]) .v21cs-stage *::before { animation: none !important; transition: none !important; }
  :root:not([data-motion="full"]) :is(.v21cs-aura, .v21cs-back, .v21cs-fx, .v21cs-sheen, .v21cs-orb-in, .v21cs-burst), :root:not([data-motion="full"]) .v21cs-stage::before, :root:not([data-motion="full"]) .v21cs-stage::after { display: none !important; }
  :root:not([data-motion="full"]) :is(.v21cs-card, .v21cs-orb) { background: var(--cs-plain) !important; box-shadow: none !important; filter: none !important; }
  :root:not([data-motion="full"]) .v21cs-card-in { background: var(--solid); box-shadow: none; }
  :root:not([data-motion="full"]) .v21cs-t1 { background: var(--ink); }
  :root:not([data-motion="full"]) .v21cs-t2 { background: var(--ink-3); }
  :root:not([data-motion="full"]) .v21cs-t3 { background: var(--cs-plain); }
  :root:not([data-motion="full"]) .v21cs-tier { background-image: none !important; }
  :root:not([data-motion="full"]) .v21c-item.v21cs-item:hover { transform: none; }
}
:root:is([data-motion="reduced"], [data-calm="on"], [data-quiet="on"], [data-day-matters], [data-theme="high_contrast"]) :is(.v21cs-stage, .v21cs-win) { background: var(--solid-2); }
:root:is([data-motion="reduced"], [data-calm="on"], [data-quiet="on"], [data-day-matters], [data-theme="high_contrast"]) :is(.v21cs-stage *, .v21cs-tier, .v21c-item.v21cs-item),
:root:is([data-motion="reduced"], [data-calm="on"], [data-quiet="on"], [data-day-matters], [data-theme="high_contrast"]) .v21cs-stage *::before { animation: none !important; transition: none !important; }
:root:is([data-motion="reduced"], [data-calm="on"], [data-quiet="on"], [data-day-matters], [data-theme="high_contrast"]) :is(.v21cs-aura, .v21cs-back, .v21cs-fx, .v21cs-sheen, .v21cs-orb-in, .v21cs-burst),
:root:is([data-motion="reduced"], [data-calm="on"], [data-quiet="on"], [data-day-matters], [data-theme="high_contrast"]) .v21cs-stage::before,
:root:is([data-motion="reduced"], [data-calm="on"], [data-quiet="on"], [data-day-matters], [data-theme="high_contrast"]) .v21cs-stage::after { display: none !important; }
:root:is([data-motion="reduced"], [data-calm="on"], [data-quiet="on"], [data-day-matters], [data-theme="high_contrast"]) :is(.v21cs-card, .v21cs-orb) { background: var(--cs-plain) !important; box-shadow: none !important; filter: none !important; }
:root:is([data-motion="reduced"], [data-calm="on"], [data-quiet="on"], [data-day-matters], [data-theme="high_contrast"]) .v21cs-card-in { background: var(--solid); box-shadow: none; }
:root:is([data-motion="reduced"], [data-calm="on"], [data-quiet="on"], [data-day-matters], [data-theme="high_contrast"]) .v21cs-t1 { background: var(--ink); }
:root:is([data-motion="reduced"], [data-calm="on"], [data-quiet="on"], [data-day-matters], [data-theme="high_contrast"]) .v21cs-t2 { background: var(--ink-3); }
:root:is([data-motion="reduced"], [data-calm="on"], [data-quiet="on"], [data-day-matters], [data-theme="high_contrast"]) .v21cs-t3 { background: var(--cs-plain); }
:root:is([data-motion="reduced"], [data-calm="on"], [data-quiet="on"], [data-day-matters], [data-theme="high_contrast"]) .v21cs-tier { background-image: none !important; }
:root:is([data-motion="reduced"], [data-calm="on"], [data-quiet="on"], [data-day-matters], [data-theme="high_contrast"]) .v21c-item.v21cs-item:hover { transform: none; }

/* ---------- High contrast: solid edges, white ground, black words ---------- */
:root[data-theme="high_contrast"] .v21cs-win { background: #FFFFFF; box-shadow: inset 0 0 0 2px #000000; }
:root[data-theme="high_contrast"] .v21cs-stage { background: #FFFFFF; }
:root[data-theme="high_contrast"] .v21cs-card-in { background: #FFFFFF; box-shadow: inset 0 0 0 2px #000000; }
:root[data-theme="high_contrast"] .v21cs-t1, :root[data-theme="high_contrast"] .v21cs-t2 { background: #000000; }
:root[data-theme="high_contrast"] .v21cs-orb { box-shadow: inset 0 0 0 2px #000000 !important; }
:root[data-theme="high_contrast"] .v21cs-tier { background: #FFFFFF; color: #000000; box-shadow: inset 0 0 0 2px #000000; }
:root[data-theme="high_contrast"] .v21cs-item[data-tier] .v21cs-win::after { display: none; }
:root[data-theme="high_contrast"] .v21c-item.v21cs-item.is-worn { box-shadow: 0 0 0 3px #000000; }
:root[data-theme="high_contrast"] .v21-dc-sub { color: #000000; }

/* ---------- forced colours: the system draws it; the plain colour stays as a mark ---------- */
@media (forced-colors: active) {
  .v21cs-aura, .v21cs-back, .v21cs-fx, .v21cs-sheen, .v21cs-burst, .v21cs-stage::before, .v21cs-stage::after { display: none !important; }
  .v21cs-card, .v21cs-orb { forced-color-adjust: none; background: var(--cs-plain) !important; animation: none !important; border: 1px solid CanvasText; }
  .v21cs-tier { border: 1px solid CanvasText; }
}

/* ---------- narrow screens ---------- */
@media (max-width: 599px) {
  .v21cs-items { grid-template-columns: 1fr; }
}

/* =====================================================================================================================
 * J133 (28 Sep 2026): a clearer, livelier Canteen. The header with the balance big and plain and your tree, the shelves
 * as tabs with counts, the "I can afford it" filter, Owned and Wearing badges, "What you have bought", the empty lines
 * and the short buy moment. Colours are the desk's tokens only. The moment moves transform and opacity only and is
 * still under reduced motion, Calm, the quiet states, the days that matter and High contrast (the Canteen's script also
 * never starts it then). 390 px wide works with no sideways scroll: the tabs wrap.
 * ================================================================================================================== */

/* ---------- the header: the balance and your tree ---------- */
.v21c-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; gap: 16px 24px; padding: 16px 18px; border-radius: var(--r-card, 20px); }
.v21c-hero-bal { position: relative; display: grid; gap: 2px; min-width: 0; }
.v21c-hero-n { font-size: 2.5rem; line-height: 2.75rem; font-weight: 700; letter-spacing: -.01em; color: var(--ink); font-variant-numeric: tabular-nums; }
.v21c-hero-u { font-weight: 600; color: var(--ink-2); }
.v21c-hero-tree { display: flex; align-items: center; gap: 12px; min-width: 0; }
.v21c-hero-leaf { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: var(--brand-text); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--glass-rim); }
.v21c-hero-t { display: grid; gap: 6px; min-width: 0; flex: 1; }
.v21c-hero-t b { font-weight: 600; color: var(--ink); }
.v21c-hero-bar { width: 100%; }
.v21c-hero-next { margin: 0; }
.v21c-hero-all { grid-column: 1 / -1; margin: 0; }
/* The spend shown for a moment beside the balance ("-60"), then gone. */
.v21c-spent { position: absolute; left: 0; top: -6px; padding: 2px 8px; border-radius: 999px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--glass-rim); pointer-events: none; animation: v21c-spent 1.2s var(--ease-out, ease) forwards; }
@keyframes v21c-spent { 0% { opacity: 0; transform: translateY(6px) scale(.9); } 18% { opacity: 1; transform: translateY(0) scale(1); } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-18px) scale(1); } }

/* ---------- the tabs and the filter ---------- */
.v21c-shelfbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.v21c-tabs { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.v21c-tab { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--glass-edge); background: var(--glass-1); color: var(--ink); font-weight: 600; box-shadow: inset 0 1px 0 var(--glass-hi); cursor: pointer; }
.v21c-tab:hover { background: var(--glass-2, var(--glass-1)); }
.v21c-tab[aria-selected="true"] { background: var(--brand-soft); border-color: var(--brand-text); box-shadow: inset 0 0 0 1px var(--brand-text); }
.v21c-tab-n { min-width: 22px; padding: 0 6px; border-radius: 999px; font-size: .75rem; line-height: 1.25rem; font-weight: 700; text-align: center; color: var(--ink-2); background: var(--solid-2); font-variant-numeric: tabular-nums; }
.v21c-tab[aria-selected="true"] .v21c-tab-n { color: var(--ink); background: var(--solid); }
.v21c-tab:focus-visible, .v21c-afford:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.v21c-filter { display: flex; align-items: center; }
.v21c-afford { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border-radius: var(--r-chip, 10px); border: 1px solid var(--edge-strong); background: var(--solid); color: var(--ink); font-weight: 600; cursor: pointer; }
.v21c-afford-box { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--ink-2); color: var(--solid); }
.v21c-afford[aria-pressed="true"] .v21c-afford-box { background: var(--brand-text); border-color: var(--brand-text); }
.v21c-panel { display: grid; gap: 20px; min-width: 0; }

/* ---------- Owned and Wearing on the card ---------- */
.v21c-badge { position: absolute; left: 8px; top: 8px; z-index: 4; display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: .75rem; line-height: 1.25rem; font-weight: 700; color: var(--ink); background: var(--solid); box-shadow: 0 0 0 1px var(--glass-rim); pointer-events: none; }
.v21c-badge[data-kind="worn"] { background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand-text); }

/* ---------- the short buy moment: the card pops and a ring opens round it ---------- */
.v21c-item.v21c-got { position: relative; animation: v21c-got .6s var(--ease-out, ease) 1; }
.v21c-item.v21c-got::after { content: ""; position: absolute; inset: -4px; border-radius: inherit; pointer-events: none; box-shadow: 0 0 0 3px var(--brand-text); opacity: 0; animation: v21c-ring .9s var(--ease-out, ease) 1; }
@keyframes v21c-got { 0% { transform: scale(1); } 35% { transform: scale(1.03); } 100% { transform: scale(1); } }
@keyframes v21c-ring { 0% { opacity: .9; transform: scale(.98); } 100% { opacity: 0; transform: scale(1.04); } }

/* ---------- What you have bought ---------- */
.v21c-hist-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.v21c-hist-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 8px 12px; border-radius: 12px; background: var(--glass-1); box-shadow: inset 0 0 0 1px var(--glass-rim); }
.v21c-hist-name { flex: 1 1 180px; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.v21c-hist-price { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.v21c-hist-when { margin: 0; }

/* ---------- empty shelves ---------- */
.v21c-empty { display: grid; justify-items: start; gap: 10px; padding: 16px; border-radius: var(--r-card, 20px); }
.v21c-empty p { margin: 0; }

/* ---------- still: reduced motion, Calm, the quiet states, the days that matter and High contrast ---------- */
@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion="full"]) :is(.v21c-item.v21c-got, .v21c-spent) { animation: none !important; }
  :root:not([data-motion="full"]) .v21c-spent { display: none !important; }
  :root:not([data-motion="full"]) .v21c-item.v21c-got::after { display: none !important; }
}
:root:is([data-motion="reduced"], [data-calm="on"], [data-quiet="on"], [data-day-matters], [data-theme="high_contrast"]) :is(.v21c-item.v21c-got, .v21c-spent) { animation: none !important; }
:root:is([data-motion="reduced"], [data-calm="on"], [data-quiet="on"], [data-day-matters], [data-theme="high_contrast"]) .v21c-spent { display: none !important; }
:root:is([data-motion="reduced"], [data-calm="on"], [data-quiet="on"], [data-day-matters], [data-theme="high_contrast"]) .v21c-item.v21c-got::after { display: none !important; }

/* ---------- High contrast ---------- */
:root[data-theme="high_contrast"] :is(.v21c-hero, .v21c-empty, .v21c-hist-row) { background: #FFFFFF; box-shadow: inset 0 0 0 2px #000000; }
:root[data-theme="high_contrast"] .v21c-hero-leaf { background: #FFFFFF; color: #000000; box-shadow: inset 0 0 0 2px #000000; }
:root[data-theme="high_contrast"] :is(.v21c-tab, .v21c-afford) { background: #FFFFFF; color: #000000; border: 2px solid #000000; box-shadow: none; }
:root[data-theme="high_contrast"] .v21c-tab[aria-selected="true"] { background: #000000; color: #FFFFFF; }
:root[data-theme="high_contrast"] .v21c-tab[aria-selected="true"] .v21c-tab-n { background: #FFFFFF; color: #000000; }
:root[data-theme="high_contrast"] .v21c-tab-n { background: #FFFFFF; color: #000000; box-shadow: inset 0 0 0 1px #000000; }
:root[data-theme="high_contrast"] .v21c-badge { background: #FFFFFF; color: #000000; box-shadow: inset 0 0 0 2px #000000; }
:root[data-theme="high_contrast"] .v21c-afford[aria-pressed="true"] .v21c-afford-box { background: #000000; border-color: #000000; color: #FFFFFF; }
@media (forced-colors: active) {
  .v21c-tab, .v21c-afford, .v21c-badge { border: 1px solid CanvasText; }
  .v21c-tab[aria-selected="true"] { border-width: 3px; }
}

/* ---------- narrow screens ---------- */
@media (max-width: 599px) {
  .v21c-hero { grid-template-columns: 1fr; padding: 14px; }
  .v21c-hero-n { font-size: 2rem; line-height: 2.25rem; }
}

/* =====================================================================================================================
 * J141 (28 Sep 2026): calmer and easier to scan. The blind box sits at the front (styles\v21_box.css); here the rest of
 * the sheet gets generous spacing, cards of one size in each row with their one action at the foot, the price always
 * in the same place, and the shelf tabs held at the top of the sheet while it scrolls. The Canteen's sheet opens wide
 * (up to 1120 px), so on a wide screen the header sits beside the box and the shelves fit four cards a row; 400 px keeps
 * one column and no sideways scroll.
 * ================================================================================================================== */
.v21c-body { gap: 24px; }
.v21c-shelf { gap: 12px; }
.v21c-items { grid-template-columns: repeat(auto-fill, minmax(min(100%, 224px), 1fr)); gap: 16px; }
.v21c-item { display: flex; flex-direction: column; }
.v21c-item > .v21c-win { flex: none; }
.v21c-item > .v21c-item-b { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; }
.v21c-item-b .tag { align-self: flex-start; }
.v21c-item-b > .v21c-acts { margin-top: auto; padding-top: 8px; }
.v21c-shelfbar { position: sticky; top: 0; z-index: 5; padding: 8px 0; background: color-mix(in srgb, var(--solid) 92%, transparent); }
.v21c-shelf > h3 { border-top: 1px solid color-mix(in srgb, var(--edge-strong) 25%, transparent); padding-block-start: 12px; }
.v21c-panel > .v21c-shelf:first-child > h3 { border-top: 0; padding-block-start: 0; }
:root[data-theme="high_contrast"] .v21c-shelfbar { background: #FFFFFF; }
@supports not (color: color-mix(in srgb, red 50%, white)) { .v21c-shelfbar { background: var(--solid); } }
/* The Canteen's own wide sheet (js\v21_canteen.js openCanteen), as the History sheet does. */
.sheet.v21bx-sheet { width: min(1120px, 100%); }
.v21bx-sheet .sheet-b { scrollbar-gutter: stable; }
/* While the bar is held at the top it stays one row: the tabs scroll sideways inside it rather than stack. */
@media (min-width: 600px) {
  .v21c-shelfbar { flex-wrap: nowrap; }
  .v21c-shelfbar .v21c-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; padding: 5px 5px 7px; margin: -5px -5px -7px; }
  .v21c-shelfbar .v21c-tab { flex: none; }
  .v21c-shelfbar > :not(.v21c-tabs) { flex: none; }
}
@media (max-width: 599px) {
  .v21bx-sheet .sheet-b { padding-left: 16px; padding-right: 16px; }
  .v21c-shelfbar { position: static; }
  .v21c-items { grid-template-columns: minmax(0, 1fr); }
}

/* =====================================================================================================================
 * J142 (29 Sep 2026, the Director: "make the shop open to full screen and much neater and tidier and better ux and
 * tighter"). The Canteen opens full screen: a slim top bar (the title, the balance, your tree and its progress in one
 * line, Close), the blind box front and centre, then today's stock (today's deal first, then each kind as a grid of
 * cards the same size) and Yours. Content keeps to 1280 px in the middle of a wide screen; 400 px keeps two cards a row
 * and no sideways scroll. Every new class starts v21sd-. Tokens only; still, High contrast and forced colours below.
 * ================================================================================================================== */
:root[data-quiet="on"] .v21sd-bar { display: none !important; }
.sheet.v21sd-full { left: 0; right: 0; width: 100%; max-width: none; border-radius: 0; }
.v21sd-full .sheet-h { flex-wrap: wrap; gap: 8px 16px; padding: 10px max(16px, calc(50% + -640px)); border-bottom: 1px solid color-mix(in srgb, var(--edge-strong) 22%, transparent); }
.v21sd-full .sheet-h h2 { flex: 0 0 auto; order: 1; font-size: 1.125rem; }
.v21sd-full .sheet-h > .v21sd-bar { order: 2; }
.v21sd-full .sheet-h > .btn-icon { order: 3; margin-left: auto; }
.v21sd-full .sheet-b { padding: 16px max(16px, calc(50% + -640px)) 40px; gap: 20px; }
@supports not (color: color-mix(in srgb, red 50%, white)) { .v21sd-full .sheet-h { border-bottom-color: var(--glass-rim); } }

/* ---------- the slim top bar: the balance and your tree in one line ---------- */
.v21sd-bar { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.v21sd-balwrap { position: relative; display: inline-flex; flex: none; }
.v21sd-bar .v21c-bal { margin: 0; padding: 4px 12px; }
.v21sd-bar .v21c-hero { display: flex; align-items: center; gap: 8px; flex: 1 1 280px; min-width: 0; max-width: 520px; padding: 0; border-radius: 0; background: none; box-shadow: none; }
.v21sd-bar .v21c-hero-leaf { width: 28px; height: 28px; }
.v21sd-bar .v21c-hero-t { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; flex: 1; min-width: 0; }
.v21sd-bar .v21c-hero-t b { font-size: .875rem; white-space: nowrap; }
.v21sd-bar .v21c-hero-bar { flex: 1 1 72px; min-width: 56px; max-width: 160px; }
.v21sd-bar .v21c-hero-next { font-size: .8125rem; white-space: nowrap; }
@media (max-width: 699px) {
  .v21sd-full .sheet-h > .btn-icon { order: 2; }
  .v21sd-full .sheet-h > .v21sd-bar { order: 3; flex-basis: 100%; }
}

/* ---------- the box in the middle, and the one line under it ---------- */
.v21sd-boxrow { display: grid; justify-items: center; min-width: 0; }
.v21sd-boxrow > .v21bx-top { width: min(100%, 720px); }
/* the box stands alone in the middle (the balance and your tree are in the top bar), so one column at any width */
.v21sd-boxrow .v21bx-grid { grid-template-columns: minmax(0, 1fr); }
.v21sd-full .v21c-intro, .v21sd-full .v21sd-note { max-width: 64ch; margin: 0 auto; text-align: center; }
.v21sd-full .v21c-intro { color: var(--ink-2); font-size: .9375rem; }
.v21sd-full .v21sd-note { margin-top: -12px; }

/* ---------- today's stock and Yours ---------- */
.v21sd-stock, .v21sd-yours { display: grid; gap: 14px; min-width: 0; }
.v21sd-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--edge-strong) 25%, transparent); }
.v21sd-head h3 { margin: 0; font-size: 1.125rem; line-height: 1.5rem; font-weight: 700; color: var(--ink); }
.v21sd-next { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.v21sd-empty { margin: 0; }
.v21sd-group, .v21sd-deal { display: grid; gap: 8px; min-width: 0; }
.v21sd-kind { margin: 0; font-size: .75rem; line-height: 1rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.v21sd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr)); gap: 12px; }
.v21sd-grid-mine { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.v21c-item.v21sd-card { padding: 8px; }
.v21sd-card > .v21sd-win { aspect-ratio: 4 / 3; display: grid; place-items: center; }
.v21sd-win .v21sd-pic { display: grid; place-items: center; width: 100%; height: 100%; }
.v21sd-win .v21sd-pic > img { width: auto; height: 84%; max-width: 84%; object-fit: contain; }
.v21sd-win .v21c-win-c > svg, .v21sd-win .v21c-win-c > .av { max-height: 90%; }
.v21sd-win .v21c-mini { transform: scale(.82); }
.v21c-item-b.v21sd-b { gap: 4px; padding: 8px 2px 0; }
.v21sd-name { margin: 0; font-size: .9375rem; line-height: 1.25rem; font-weight: 600; overflow-wrap: anywhere; }
.v21sd-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 8px; }
.v21sd-price { margin: 0; display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.v21sd-now { font-weight: 700; color: var(--ink); }
.v21sd-was { color: var(--ink-3); text-decoration-thickness: 2px; }
.v21sd-only { margin: 0; font-size: .75rem; line-height: 1rem; color: var(--ink-2); }
.v21sd-left { font-size: .8125rem; font-weight: 600; color: var(--ink-2); }
.v21sd-left.is-out { font-weight: 700; color: var(--ink-2); }
.v21c-item-b > .v21c-acts.v21sd-acts { margin-top: auto; padding-top: 6px; }
.v21sd-acts > .btn { flex: 1 1 auto; justify-content: center; }
.v21sd-acts .row { width: 100%; }
.v21sd-acts .row > .btn { flex: 1 1 auto; justify-content: center; }
.v21sd-need { margin: 0; font-size: .8125rem; }
.v21sd-err { margin: 0; font-size: .8125rem; font-weight: 700; color: var(--danger); }
/* Sold out: the picture greys out; the words keep their full contrast. */
.v21c-item.v21sd-card.is-sold > .v21sd-win { filter: grayscale(1); opacity: .45; }
.v21c-item.v21sd-card.is-worn { box-shadow: inset 0 1px 0 var(--glass-hi), 0 0 0 2px var(--brand-text), var(--shadow-1); }

/* ---------- today's deal: one card, wider, at the top ---------- */
.v21c-item.v21sd-card.is-deal { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); align-items: stretch; gap: 12px 16px; max-width: 680px; box-shadow: inset 0 0 0 2px var(--flora-wattle, #D9A21B), var(--shadow-1); }
.is-deal > .v21c-item-b.v21sd-b { padding: 4px 4px 2px 0; }
.is-deal .v21sd-name { font-size: 1.0625rem; line-height: 1.5rem; }
.is-deal .v21sd-now { font-size: 1.375rem; line-height: 1.75rem; }
.v21sd-ribbon { align-self: flex-start; display: inline-flex; padding: 2px 10px; border-radius: 999px; font-size: .8125rem; line-height: 1.25rem; font-weight: 800; color: var(--ink); background: color-mix(in srgb, var(--flora-wattle, #D9A21B) 32%, var(--solid)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--flora-wattle, #D9A21B) 70%, transparent); }
@supports not (color: color-mix(in srgb, red 50%, white)) { .v21sd-ribbon { background: var(--brand-soft); } .v21sd-head { border-top-color: var(--glass-rim); } }
@media (max-width: 519px) { .v21c-item.v21sd-card.is-deal { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Yours: the filter by kind ---------- */
.v21sd-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.v21sd-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--glass-edge); background: var(--glass-1); box-shadow: inset 0 1px 0 var(--glass-hi); color: var(--ink); font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; }
.v21sd-chip[aria-pressed="true"] { background: var(--brand-soft); border-color: var(--brand-text); box-shadow: inset 0 0 0 1px var(--brand-text); }
.v21sd-chip-n { min-width: 22px; padding: 0 6px; border-radius: 999px; font-size: .75rem; line-height: 1.25rem; font-weight: 700; text-align: center; color: var(--ink-2); background: var(--solid-2); font-variant-numeric: tabular-nums; }
.v21sd-chip:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- Your animal: a choice that is in the shop some days (a lock, never its picture) ---------- */
.v21aa-disc.v21aa-lock { display: inline-grid; place-items: center; color: var(--ink-2); background: var(--solid-2); }
.v21aa-pk-card.is-locked { cursor: default; }
.v21aa-pk-card.is-locked:hover { transform: none; }
.v21aa-pk-card.is-locked .v21aa-pk-nm { color: var(--ink-2); }
.v21aa-pk-soon { margin: 0; font-size: .6875rem; line-height: .875rem; text-align: center; }
.v21aa-chip-lock { display: inline-grid; place-items: center; color: var(--ink-2); }

/* ---------- narrow screens: two cards a row, tighter gaps ---------- */
@media (max-width: 599px) {
  .v21sd-full .sheet-b { padding: 12px 16px 32px; gap: 16px; }
  .v21sd-grid, .v21sd-grid-mine { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .v21sd-name { font-size: .875rem; }
}

/* ---------- still: a locked card never lifts under the still states ---------- */
:root:is([data-motion="reduced"], [data-calm="on"], [data-quiet="on"], [data-day-matters], [data-theme="high_contrast"]) .v21aa-pk-card.is-locked { transition: none; }

/* ---------- High contrast and forced colours ---------- */
:root[data-theme="high_contrast"] .v21sd-full .sheet-h { border-bottom: 2px solid #000000; }
:root[data-theme="high_contrast"] .v21sd-head { border-top: 2px solid #000000; }
:root[data-theme="high_contrast"] .v21sd-only { color: #000000; }
:root[data-theme="high_contrast"] .v21sd-chip { background: #FFFFFF; color: #000000; border: 2px solid #000000; box-shadow: none; }
:root[data-theme="high_contrast"] .v21sd-chip[aria-pressed="true"] { background: #000000; color: #FFFFFF; }
:root[data-theme="high_contrast"] .v21sd-chip[aria-pressed="true"] .v21sd-chip-n { background: #FFFFFF; color: #000000; }
:root[data-theme="high_contrast"] .v21sd-chip-n { background: #FFFFFF; color: #000000; box-shadow: inset 0 0 0 1px #000000; }
:root[data-theme="high_contrast"] .v21sd-ribbon { background: #FFFFFF; color: #000000; box-shadow: inset 0 0 0 2px #000000; }
:root[data-theme="high_contrast"] .v21c-item.v21sd-card.is-deal { box-shadow: inset 0 0 0 3px #000000; }
:root[data-theme="high_contrast"] :is(.v21sd-was, .v21sd-left, .v21aa-pk-card.is-locked .v21aa-pk-nm) { color: #000000; }
:root[data-theme="high_contrast"] .v21aa-disc.v21aa-lock { background: #FFFFFF; color: #000000; box-shadow: inset 0 0 0 2px #000000; }
@media (forced-colors: active) {
  .v21sd-chip, .v21sd-ribbon { border: 1px solid CanvasText; }
  .v21sd-chip[aria-pressed="true"] { border-width: 3px; }
  .v21c-item.v21sd-card.is-deal { outline: 2px solid CanvasText; }
  .v21c-item.v21sd-card.is-sold > .v21sd-win { filter: none; opacity: 1; }
  .v21sd-full .sheet-h { border-bottom: 1px solid CanvasText; }
}

/* ---------- J142 review fixes (29 Sep 2026, the look review of builder G) ---------- */
/* High contrast: the tree line in the slim top bar is not a boxed hero card. */
:root[data-theme="high_contrast"] .v21sd-bar .v21c-hero { background: none; box-shadow: none; }
/* The card name sizes win over the older .v21c-item-b h4 rule. */
.v21sd-b > .v21sd-name { font-size: .9375rem; line-height: 1.25rem; }
.is-deal .v21sd-b > .v21sd-name { font-size: 1.0625rem; line-height: 1.5rem; }
@media (max-width: 599px) { .v21sd-b > .v21sd-name { font-size: .875rem; line-height: 1.125rem; } }
/* "N left today" as a small chip, and "Sold out" plain to see. */
.v21sd-left { padding: 1px 8px; border-radius: 999px; background: var(--solid-2); box-shadow: inset 0 0 0 1px var(--glass-rim); }
.v21sd-left.is-out { color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1px var(--edge-strong); text-transform: uppercase; letter-spacing: .04em; font-size: .75rem; }
.v21c-item.v21sd-card.is-sold .v21sd-price { opacity: .55; }
:root[data-theme="high_contrast"] .v21sd-left { background: #FFFFFF; box-shadow: inset 0 0 0 1px #000000; }
/* The deal's picture keeps its shape while the confirm step opens and closes. */
.is-deal > .v21sd-win { align-self: start; }
/* The body's column lines up with the header's on Windows scrollbars. */
.v21sd-full .sheet-b { scrollbar-gutter: stable both-edges; }
/* Phones: the tree line's "N more to" words go, so the top bar stays one or two rows. */
@media (max-width: 479px) { .v21sd-bar .v21c-hero-next { display: none; } }
/* The locked animal cards' "In the shop some days" line is readable. */
.v21aa-pk-soon { font-size: .75rem; line-height: 1rem; }
/* J160 review (29 Sep 2026): a frame's window (a frame previewed round your own animal at 72 px, its drawing 104 px
   wide with a crest or flames up to 28 px above the avatar) is never shorter than 128 px, so no crest, flame or gum nut
   is cut by the window's edge on a narrow card. */
.v21c-win.v21c-win-frame { min-height: 128px; }
/* J160 review: on an owned frame's card the Owned or Wearing pill sits at the window's top left, so the preview moves
   right, clear of the pill. */
.v21c-item.is-owned > .v21c-win.v21c-win-frame > .v21c-win-c { box-sizing: border-box; padding-left: 44px; }

/* ================================================================ J167: the Canteen as a real shop ================
 * J167 (29 Sep 2026, the Director: "make it all look like products and a shop everything in there", "the metallics
 * could look better", "write get it while it lasts and a count down timer to when it changes"). Every stock and Yours
 * card is a product on a shop shelf: a product picture standing on a shelf plank (a paint tin, a metal ingot, a fabric
 * swatch, a framed picture, a display cushion, a pot, a planter, a speaker, a glass pane, a monitor or a retail box), a
 * price tag, stickers (the sale starburst, "Last one!", "Sold out", "Yours") and one clear Buy, Wear or need line. The
 * daily stock sits under a shop sign, "Get it while it lasts", with a live countdown. Every class starts v21pr-.
 * Tokens only in the page's themes; High contrast flat and outlined; forced colours plain; still under reduced motion,
 * Calm, the quiet states and the days that matter (the countdown's digits still change). Never printed.
 */

/* ---------- tokens (the sheet, and any shelf window or product stage a lane shows elsewhere) ---------- */
.v21sd-full, .v21pr-scope, .v21pr-win, .v21pr-stage {
  --v21pr-wall-hi: #FBFBF8; --v21pr-wall: #EEF0EA; --v21pr-shelf-hi: #E4D6BD; --v21pr-shelf: #D2BE9A; --v21pr-shelf-lo: #B8A27C;
  --v21pr-tag: #FBE4A6; --v21pr-tag-ink: #1B1B1B; --v21pr-sale: var(--flora-waratah, #A8203F); --v21pr-sale-ink: #FFFFFF;
  --v21pr-gold: #F2C94C; --v21pr-cream: #FFF8E7; --v21pr-deal-bg: #FFF6DC; --v21pr-low: var(--flora-wattle, #D9A21B); --v21pr-low-ink: #1B1B1B;
  --v21pr-velvet-hi: #3E6B45; --v21pr-velvet: #233D26; --v21pr-velvet-lo: #152617; --v21pr-mat: #F7F3EA;
  --v21pr-wood-hi: #D9B27C; --v21pr-wood: #A87945; --v21pr-wood-lo: #7A5230;
  --v21pr-sign-a: #233D26; --v21pr-sign-b: #2C4A30; --v21pr-sign-c: #1E3421; --v21pr-scallop: #F7F1E3; --v21pr-tile-a: #16301B; --v21pr-tile-b: #0E2112;
}
:root[data-theme="dark"] :is(.v21sd-full, .v21pr-scope, .v21pr-win, .v21pr-stage) {
  --v21pr-wall-hi: #262C27; --v21pr-wall: #1C211D; --v21pr-shelf-hi: #4A3F31; --v21pr-shelf: #3B3227; --v21pr-shelf-lo: #2C251D;
  --v21pr-tag: #4A3F22; --v21pr-tag-ink: #FFF3D1; --v21pr-sale: #C23A4F; --v21pr-deal-bg: #2B2616; --v21pr-low: #E9B64B;
  --v21pr-velvet-hi: #4C7F54; --v21pr-velvet: #2F5A34; --v21pr-velvet-lo: #1A3320; --v21pr-mat: #E9E4D8;
  --v21pr-sign-a: #1B3A20; --v21pr-sign-b: #2F5A34; --v21pr-sign-c: #16301B; --v21pr-scallop: #E9E1CE;
}
:root[data-theme="high_contrast"] :is(.v21sd-full, .v21pr-scope, .v21pr-win, .v21pr-stage) {
  --v21pr-wall-hi: #FFFFFF; --v21pr-wall: #FFFFFF; --v21pr-shelf-hi: #FFFFFF; --v21pr-shelf: #FFFFFF; --v21pr-shelf-lo: #FFFFFF;
  --v21pr-tag: #FFFFFF; --v21pr-tag-ink: #000000; --v21pr-sale: #FFFFFF; --v21pr-sale-ink: #000000; --v21pr-deal-bg: #FFFFFF; --v21pr-low: #FFFFFF;
  --v21pr-velvet-hi: #FFFFFF; --v21pr-velvet: #FFFFFF; --v21pr-velvet-lo: #FFFFFF; --v21pr-mat: #FFFFFF;
  --v21pr-wood-hi: #FFFFFF; --v21pr-wood: #FFFFFF; --v21pr-wood-lo: #FFFFFF;
}

/* ---------- the shop sign: "Get it while it lasts" and the countdown ---------- */
.v21sd-stock { gap: 20px; }
.v21sd-head.v21pr-banner { position: relative; overflow: hidden; align-items: center; gap: 14px 24px; padding: 26px 20px 18px; border-top: 0; border-radius: 16px; color: var(--v21pr-cream);
  background: linear-gradient(135deg, var(--v21pr-sign-a) 0%, var(--v21pr-sign-b) 55%, var(--v21pr-sign-c) 100%); box-shadow: var(--shadow-1); }
.v21pr-banner::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; pointer-events: none;
  background: radial-gradient(circle at 10px 0, var(--v21pr-scallop) 9px, transparent 9.5px) 0 0 / 20px 12px repeat-x; }
.v21pr-banner-t { display: grid; gap: 2px; min-width: 0; flex: 1 1 320px; }
.v21sd-head.v21pr-banner h3.v21pr-eyebrow { margin: 0; font-size: .8125rem; line-height: 1rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, var(--v21pr-cream) 82%, transparent); }
.v21pr-shout { margin: 0; font-size: 1.75rem; line-height: 2.125rem; font-weight: 800; letter-spacing: .005em; color: var(--v21pr-gold); overflow-wrap: anywhere; }
.v21pr-sub { margin: 0; font-size: .875rem; line-height: 1.25rem; color: color-mix(in srgb, var(--v21pr-cream) 88%, transparent); }
.v21pr-clock { flex: 0 0 auto; display: grid; gap: 6px; justify-items: center; padding: 10px 14px 8px; border-radius: 12px; background: rgba(0,0,0,.28); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.v21pr-clock-cap { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; align-items: center; font-size: .6875rem; line-height: 1rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--v21pr-cream) 78%, transparent); }
.v21pr-hurry { display: none; padding: 0 8px; border-radius: 999px; background: var(--v21pr-sale); color: var(--v21pr-sale-ink); letter-spacing: .04em; }
.v21pr-clock:is([data-hurry="hour"], [data-hurry="minutes"]) .v21pr-hurry { display: inline-block; }
.v21pr-digits { display: flex; align-items: flex-start; gap: 6px; }
.v21pr-unit { display: grid; justify-items: center; gap: 3px; }
.v21pr-num { position: relative; min-width: 2.3ch; padding: 6px 8px; border-radius: 8px; font-family: var(--font); font-size: 2rem; line-height: 2.25rem; font-weight: 700; font-variant-numeric: tabular-nums; text-align: center; color: var(--v21pr-cream);
  background: linear-gradient(180deg, var(--v21pr-tile-a) 0 50%, var(--v21pr-tile-b) 50% 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 2px 0 rgba(0,0,0,.35); }
.v21pr-num::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid rgba(0,0,0,.55); }
.v21pr-clock:is([data-hurry="hour"], [data-hurry="minutes"], [data-hurry="due"]) .v21pr-num { color: var(--v21pr-gold); }
.v21pr-colon { font-size: 1.5rem; line-height: 2.75rem; font-weight: 800; color: var(--v21pr-gold); opacity: .85; }
.v21pr-lab { font-style: normal; font-size: .6875rem; line-height: .875rem; letter-spacing: .06em; color: color-mix(in srgb, var(--v21pr-cream) 72%, transparent); }
@media (max-width: 599px) {
  .v21sd-head.v21pr-banner { padding: 24px 16px 16px; }
  .v21pr-shout { font-size: 1.375rem; line-height: 1.75rem; }
  .v21pr-clock { flex: 1 1 100%; }
  .v21pr-num { font-size: 1.625rem; line-height: 1.875rem; }
}

/* ---------- today's deal: the spotlight card ---------- */
.v21c-item.v21sd-card.is-deal.v21pr-card { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; max-width: 880px; padding: 12px; gap: 12px 20px;
  background: linear-gradient(120deg, var(--v21pr-deal-bg), var(--solid) 60%); box-shadow: inset 0 0 0 2px var(--flora-wattle, #D9A21B), var(--shadow-1); }
.is-deal.v21pr-card > .v21pr-stickers { left: 12px; right: 12px; top: 12px; }
.is-deal.v21pr-card .v21sd-b > .v21sd-name { font-size: 1.375rem; line-height: 1.75rem; }
.is-deal.v21pr-card .v21sd-acts > .btn { flex: 0 1 240px; }
@media (min-width: 720px) {
  .v21c-item.v21sd-card.is-deal.v21pr-card { grid-template-columns: 300px minmax(0, 1fr); }
  .is-deal.v21pr-card > .v21pr-stickers { right: auto; width: 300px; }
  .is-deal.v21pr-card > .v21c-item-b { align-self: center; }
}

/* ---------- the aisles: each kind a labelled shelf, small aisles side by side ---------- */
.v21pr-aisles { display: flex; flex-wrap: wrap; align-items: stretch; gap: 24px; min-width: 0; }
.v21pr-aisles > .v21sd-group { --v21pr-n: 1; flex: var(--v21pr-n) 1 calc(var(--v21pr-n) * 176px + (var(--v21pr-n) + -1) * 16px); min-width: min(100%, 176px); }
.v21pr-aisle-h { display: flex; align-items: center; gap: 10px; min-width: 0; }
.v21pr-aisle-h::after { content: ""; flex: 1 1 auto; border-top: 1px solid color-mix(in srgb, var(--edge-strong) 30%, transparent); }
.v21pr-aisle-h > .v21sd-kind { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px 0 8px; border-radius: 6px; color: var(--ink); background: var(--solid); box-shadow: inset 3px 0 0 var(--brand-text), 0 0 0 1px var(--glass-rim); }
.v21pr-aisle-n { font-size: .75rem; line-height: 1rem; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.v21pr-aisles .v21sd-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 176px), 1fr)); gap: 16px; }
@media (max-width: 599px) {
  .v21pr-aisles { gap: 20px; }
  .v21pr-aisles > .v21sd-group { flex-basis: 100%; max-width: none; }
  .v21pr-aisles .v21sd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}

/* ---------- the product card ---------- */
.v21c-item.v21sd-card.v21pr-card { position: relative; grid-template-rows: auto 1fr; align-content: stretch; padding: 10px; border-radius: 16px; background: var(--solid); border: 1px solid var(--glass-rim); box-shadow: var(--shadow-1); }
.v21pr-card > .v21sd-b { display: flex; flex-direction: column; gap: 4px; padding: 10px 2px 0; }
.v21pr-card .v21sd-line { margin-top: 2px; }
.v21c-item.v21sd-card.v21pr-card.is-owned { border-color: color-mix(in srgb, var(--brand-text) 55%, transparent); }
.v21c-item.v21sd-card.v21pr-card.is-owned .v21pr-tag { color: var(--ink-2); background: var(--solid-2); box-shadow: inset 0 0 0 1px var(--glass-rim); }
.v21c-item.v21sd-card.v21pr-card.is-owned .v21pr-tag .v21sd-was { opacity: 1; }
:root[data-theme="high_contrast"] .v21c-item.v21sd-card.v21pr-card.is-owned .v21pr-tag { color: #000000; background: #F2F2F2; box-shadow: inset 0 0 0 2px #000000; }
.v21c-item.v21sd-card.v21pr-card.is-worn { box-shadow: 0 0 0 2px var(--brand-text), var(--shadow-1); }
@media (hover: hover) { .v21c-item.v21sd-card.v21pr-card { transition: transform .16s ease, box-shadow .16s ease; }
  .v21c-item.v21sd-card.v21pr-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); } }

/* the shelf window: the wall, then the shelf plank the product stands on */
.v21c-win.v21sd-win.v21pr-win { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--glass-rim);
  background: linear-gradient(180deg, var(--v21pr-wall-hi) 0%, var(--v21pr-wall) 76%, var(--v21pr-shelf-hi) 76%, var(--v21pr-shelf) 84%, var(--v21pr-shelf-lo) 100%); }
.v21pr-stage { position: absolute; inset: 0; display: block; }
.v21pr-art { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.v21pr-shadow { fill: #000000; opacity: .18; }
:root[data-theme="dark"] .v21pr-shadow { opacity: .5; }

/* the price tag */
.v21sd-price.v21pr-tag { position: relative; display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 0 10px 0 17px; color: var(--v21pr-tag-ink); background: var(--v21pr-tag);
  clip-path: polygon(9px 0, 100% 0, 100% 100%, 9px 100%, 0 50%); border-radius: 0 7px 7px 0; }
.v21pr-tag::before { content: ""; position: absolute; left: 7px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--solid); box-shadow: inset 0 1px 1px rgba(0,0,0,.35); }
.v21pr-tag .v21sd-now { font-size: 1rem; line-height: 1.25rem; font-weight: 800; color: inherit; }
.v21pr-tag .v21sd-was { color: inherit; opacity: .7; }
.is-deal .v21sd-price.v21pr-tag { min-height: 40px; padding: 0 14px 0 20px; color: var(--v21pr-sale-ink); background: var(--v21pr-sale); }
.is-deal .v21pr-tag .v21sd-now { font-size: 1.625rem; line-height: 2rem; }
.v21pr-try { display: flex; }
.v21pr-try > .btn { gap: 6px; padding: 0 10px 0 6px; }
.v21sd-need { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 36px; padding: 4px 10px; border-radius: 10px; text-align: center; color: var(--ink-2); border: 1px dashed var(--edge-strong); }

/* ---------- stickers (words said in text elsewhere, so aria-hidden) ---------- */
.v21pr-stickers { position: absolute; left: 10px; right: 10px; top: 10px; aspect-ratio: 4 / 3; pointer-events: none; z-index: 1; }
.v21pr-stk { position: absolute; display: inline-grid; place-items: center; font-size: .75rem; line-height: 1rem; font-weight: 800; letter-spacing: .03em; white-space: nowrap; }
.v21pr-stk[data-stk="sale"] { right: -2px; top: -2px; width: 70px; height: 70px; padding: 10px; text-align: center; white-space: normal; font-size: .875rem; line-height: .9375rem; font-weight: 900; color: var(--v21pr-sale-ink);
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--v21pr-sale) 72%, #FFFFFF), var(--v21pr-sale) 55%, color-mix(in srgb, var(--v21pr-sale) 80%, #000000));
  clip-path: polygon(50.0% 0.0%, 60.9% 9.4%, 75.0% 6.7%, 79.7% 20.3%, 93.3% 25.0%, 90.6% 39.1%, 100.0% 50.0%, 90.6% 60.9%, 93.3% 75.0%, 79.7% 79.7%, 75.0% 93.3%, 60.9% 90.6%, 50.0% 100.0%, 39.1% 90.6%, 25.0% 93.3%, 20.3% 79.7%, 6.7% 75.0%, 9.4% 60.9%, 0.0% 50.0%, 9.4% 39.1%, 6.7% 25.0%, 20.3% 20.3%, 25.0% 6.7%, 39.1% 9.4%);
  transform: rotate(-12deg); }
.v21pr-stk[data-stk="tier"] { right: 6px; top: 6px; }
.v21pr-stk[data-stk="last"] { left: 6px; top: 6px; padding: 2px 9px; border-radius: 999px; color: var(--v21pr-low-ink); background: var(--v21pr-low); box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.is-deal .v21pr-stk[data-stk="tier"] { right: auto; left: 6px; }
.is-deal .v21pr-stk[data-stk="tier"] ~ .v21pr-stk[data-stk="last"] { top: 36px; }
.v21pr-stk[data-stk="out"] { left: 50%; top: 38%; padding: 4px 12px; border-radius: 6px; font-size: .9375rem; line-height: 1.25rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: var(--solid); border: 2px solid var(--ink); transform: translate(-50%, -50%) rotate(-8deg); }

/* ---------- the stages: the furniture round a picture ---------- */
.v21pr-item { position: absolute; left: 50%; display: grid; place-items: end center; transform: translateX(-50%); }
.v21pr-stage .v21pr-item > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; object-position: 50% 100%; }
.v21pr-item > svg { display: block; max-width: 100%; max-height: 100%; width: auto; height: 100%; }
/* framed: a picture in a moulding and mat, standing on the shelf */
.v21pr-stage[data-stage="framed"] .v21pr-frame { position: absolute; left: 50%; bottom: 20%; height: 74%; aspect-ratio: 1; transform: translateX(-50%); box-sizing: border-box; padding: 7%;
  background: linear-gradient(135deg, var(--v21pr-wood-hi), var(--v21pr-wood) 45%, var(--v21pr-wood-hi) 62%, var(--v21pr-wood-lo)); box-shadow: inset 0 0 0 1px rgba(0,0,0,.28), inset 2px 2px 0 rgba(255,255,255,.35), inset -2px -2px 0 rgba(0,0,0,.25), 0 6px 10px -4px rgba(0,0,0,.4); }
.v21pr-stage[data-frame="gilt"] .v21pr-frame { background: linear-gradient(135deg, #8C6C12, #F1D774 30%, #C9A227 50%, #FFF2B8 62%, #8C6C12 100%); outline: 1px dashed rgba(107,78,0,.55); outline-offset: -5px; }
.v21pr-mat { display: grid; place-items: center; width: 100%; height: 100%; padding: 6%; box-sizing: border-box; background: var(--v21pr-mat); box-shadow: inset 0 1px 3px rgba(0,0,0,.28); overflow: hidden; }
.v21pr-stage .v21pr-mat > img { display: block; max-width: none; width: 100%; height: 100%; object-fit: contain; }
/* plinth: a spotlight and a velvet cushion (frames round your animal, wardrobe, anything a lane draws) */
.v21pr-stage:is([data-stage="plinth"], [data-stage="perch"])::before { content: ""; position: absolute; inset: 0 0 24% 0; background: radial-gradient(55% 60% at 50% 42%, rgba(255,255,255,.95), rgba(255,255,255,0) 72%); }
:root[data-theme="dark"] .v21pr-stage:is([data-stage="plinth"], [data-stage="perch"])::before { background: radial-gradient(55% 60% at 50% 42%, rgba(255,240,200,.12), rgba(255,240,200,0) 72%); }
.v21pr-cushion { position: absolute; left: 26%; right: 26%; bottom: 17%; height: 15%; border-radius: 50%; background: radial-gradient(ellipse at 50% 30%, var(--v21pr-velvet-hi), var(--v21pr-velvet) 60%, var(--v21pr-velvet-lo)); box-shadow: 0 4px 6px -2px rgba(0,0,0,.4); }
.v21pr-stage[data-stage="perch"] .v21pr-cushion { left: 32%; right: 32%; height: 10%; bottom: 19%; background: linear-gradient(180deg, var(--v21pr-wood-hi), var(--v21pr-wood) 50%, var(--v21pr-wood-lo)); }
.v21pr-stage:is([data-stage="plinth"], [data-stage="perch"]) .v21pr-item { bottom: 25%; height: 66%; width: 80%; }
/* pot and planter: a tree in its pot, flora in a wooden planter */
.v21pr-stage[data-stage="pot"] .v21pr-item { bottom: 47%; height: 50%; width: 80%; }
.v21pr-stage[data-stage="planter"] .v21pr-item { bottom: 26%; height: 62%; width: 76%; }
.v21pr-stage[data-stage="planter"] > .v21pr-art { z-index: 1; }
.v21pr-item .v21st-prev { min-height: 0; }
.v21pr-item .v21st-prev-leaf img, .v21pr-item .v21st-prev-leaf svg { width: auto; height: 100%; max-height: 100%; }
.v21pr-item > .v21st-prev, .v21pr-item > .v21st-prev > .v21st-prev-leaf { height: 100%; }
/* pane: a Clear panel effect in a small glass pane */
.v21pr-pane { position: absolute; left: 17%; right: 17%; top: 8%; bottom: 26%; display: grid; place-items: center; border-radius: 10px; overflow: hidden; color: var(--brand-text);
  background: linear-gradient(135deg, rgba(255,255,255,.85), rgba(255,255,255,.4)); border: 1px solid rgba(255,255,255,.95); box-shadow: 0 8px 18px -8px rgba(0,0,0,.35), inset 0 1px 0 #FFFFFF; }
:root[data-theme="dark"] .v21pr-pane { background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.05)); border-color: rgba(255,255,255,.22); }
.v21pr-pane > svg { width: 100%; height: 100%; }
.v21pr-pane > svg.ico { width: 40%; height: 40%; }
/* monitor: a theme on a small screen */
.v21pr-monitor { position: absolute; left: 18%; right: 18%; top: 8%; aspect-ratio: 16 / 10; border: 5px solid #2A2F2C; border-radius: 6px; overflow: hidden; background: #2A2F2C; }
.v21pr-stand { position: absolute; left: 44%; right: 44%; bottom: 24%; height: 12%; background: linear-gradient(90deg, #3A403C, #5A615C, #3A403C); }
.v21pr-stand::after { content: ""; position: absolute; left: -90%; right: -90%; bottom: 0; height: 22%; border-radius: 3px; background: #3A403C; }
.v21pr-monitor .v21c-mini { width: 100%; height: 100%; transform: none; }

/* ---------- product art: metal ingots (exact stops per metal, light then dark; High contrast flat) ---------- */
.v21pr-ingot { --m-d: var(--mx-d, #4A5059); --m-lo: var(--mx-lo, #7C848E); --m-b: var(--mx-b, #A3ABB5); --m-hi: var(--mx-hi, #DDE2E8); --m-sp: var(--mx-sp, #FFFFFF); }
.v21pr-ingot[data-metal="gold"] { --m-d: #6B4E00; --m-lo: #9C7A12; --m-b: #C9A227; --m-hi: #F2D774; --m-sp: #FFF6CF; }
.v21pr-ingot[data-metal="silver"] { --m-d: #4A5059; --m-lo: #7C848E; --m-b: #A3ABB5; --m-hi: #DDE2E8; --m-sp: #FFFFFF; }
.v21pr-ingot[data-metal="bronze"] { --m-d: #4E3016; --m-lo: #7B4E20; --m-b: #B07D45; --m-hi: #E2B07A; --m-sp: #F8DDB8; }
.v21pr-ingot[data-metal="copper"] { --m-d: #5A2612; --m-lo: #8E411B; --m-b: #C4703F; --m-hi: #F09A6E; --m-sp: #FFD9C2; }
.v21pr-ingot[data-metal="rosegold"] { --m-d: #6E3A40; --m-lo: #9A5D63; --m-b: #C98A8F; --m-hi: #F0B3B5; --m-sp: #FFE8E4; }
.v21pr-ingot[data-metal="chrome"] { --m-d: #23292F; --m-lo: #5C6670; --m-b: #8C98A4; --m-hi: #DCE3EA; --m-sp: #FFFFFF; }
.v21pr-ingot[data-metal="platinum"] { --m-d: #5C6470; --m-lo: #8F98A3; --m-b: #B8C0CA; --m-hi: #E4E8EE; --m-sp: #FFFFFF; }
.v21pr-ingot[data-metal="gunmetal"] { --m-d: #1E252E; --m-lo: #38424E; --m-b: #56626F; --m-hi: #9AA6B5; --m-sp: #C3CEDB; }
.v21pr-ingot[data-metal="bronze_age"] { --m-d: #4A3214; --m-lo: #6B4D23; --m-b: #9C7443; --m-hi: #C9A06C; --m-sp: #E8C48C; }
.v21pr-ingot[data-metal="copper_patina"] { --m-d: #1F4A3D; --m-lo: #2D6B58; --m-b: #4E9A83; --m-hi: #85C7B0; --m-sp: #B9E6D3; }
.v21pr-ingot[data-metal="titanium"] { --m-d: #3A424C; --m-lo: #56606B; --m-b: #7A8591; --m-hi: #B7C0CA; --m-sp: #DDE3EA; }
.v21pr-ingot[data-metal="pewter"] { --m-d: #4A4C50; --m-lo: #66686D; --m-b: #8E9196; --m-hi: #B9BBBF; --m-sp: #D3D5D8; }
.v21pr-ingot[data-metal="antique_brass"] { --m-d: #5A4318; --m-lo: #7D5E24; --m-b: #B08D57; --m-hi: #D9BD86; --m-sp: #EFD9A6; }
:root[data-theme="dark"] .v21pr-ingot { --m-d: color-mix(in srgb, var(--mx-d, #4A5059) 86%, #FFFFFF); --m-lo: color-mix(in srgb, var(--mx-lo, #7C848E) 92%, #FFFFFF); }
:root[data-theme="dark"] .v21pr-ingot[data-metal="gold"] { --m-d: #806724; --m-lo: #A48525; }
:root[data-theme="dark"] .v21pr-ingot[data-metal="silver"] { --m-d: #636870; --m-lo: #868E97; }
:root[data-theme="dark"] .v21pr-ingot[data-metal="bronze"] { --m-d: #674D37; --m-lo: #865C32; }
:root[data-theme="dark"] .v21pr-ingot[data-metal="copper"] { --m-d: #714433; --m-lo: #97502D; }
:root[data-theme="dark"] .v21pr-ingot[data-metal="rosegold"] { --m-d: #82565B; --m-lo: #A26A6F; }
:root[data-theme="dark"] .v21pr-ingot[data-metal="chrome"] { --m-d: #42474C; --m-lo: #69727B; }
:root[data-theme="dark"] .v21pr-ingot[data-metal="platinum"] { --m-d: #737A84; --m-lo: #98A0AA; }
:root[data-theme="dark"] .v21pr-ingot[data-metal="gunmetal"] { --m-d: #3E444B; --m-lo: #48515C; }
:root[data-theme="dark"] .v21pr-ingot[data-metal="bronze_age"] { --m-d: #634F35; --m-lo: #775B35; }
:root[data-theme="dark"] .v21pr-ingot[data-metal="copper_patina"] { --m-d: #3E6358; --m-lo: #3E7765; }
:root[data-theme="dark"] .v21pr-ingot[data-metal="titanium"] { --m-d: #565C65; --m-lo: #646D77; }
:root[data-theme="dark"] .v21pr-ingot[data-metal="pewter"] { --m-d: #636568; --m-lo: #727479; }
:root[data-theme="dark"] .v21pr-ingot[data-metal="antique_brass"] { --m-d: #715D38; --m-lo: #876B36; }
.v21pr-ingot .s-d { stop-color: var(--m-d); } .v21pr-ingot .s-lo { stop-color: var(--m-lo); } .v21pr-ingot .s-b { stop-color: var(--m-b); }
.v21pr-ingot .s-hi { stop-color: var(--m-hi); } .v21pr-ingot .s-sp { stop-color: var(--m-sp); }
.v21pr-ingot .s-w0 { stop-color: #FFFFFF; stop-opacity: 0; } .v21pr-ingot .s-w1 { stop-color: #FFFFFF; stop-opacity: .85; }
.v21pr-ingot .f-lip { fill: var(--m-d); }
.v21pr-ingot .f-edge { fill: none; stroke: var(--m-d); stroke-opacity: .35; stroke-width: .8; }
:root[data-theme="dark"] .v21pr-ingot .f-edge { stroke: #FFFFFF; stroke-opacity: .22; }
.v21pr-ingot .f-bevel { fill: none; stroke: var(--m-sp); stroke-width: 1.2; stroke-opacity: .9; }
.v21pr-ingot .f-mark { fill: none; stroke: var(--m-lo); stroke-width: 1; }
.v21pr-ingot .f-mark2 { fill: none; stroke: var(--m-sp); stroke-width: .6; stroke-opacity: .6; }
.v21pr-ingot .f-glint { fill: var(--m-sp); }
.v21pr-ingot .f-hcband { display: none; }

/* ---------- product art: paint tins (colours and effect colours) ---------- */
.v21pr-tin { --pc: var(--pc-d); --t-d: #6F777E; --t-lo: #9AA2A9; --t-b: #C3CAD0; --t-hi: #E9EDF0; --t-e: #8E969C; --lab: #F7F3EA; --lab-ink: #B9B2A2; }
:root[data-theme="dark"] .v21pr-tin { --t-d: #4E555B; --t-lo: #7B838A; --t-b: #A3ABB2; --t-hi: #C9D0D6; --t-e: #5E666D; --lab: #E9E4D8; --lab-ink: #A39C8C; }
:root[data-theme="high_contrast"] .v21pr-tin { --pc: var(--pc-h); }
.v21pr-tin .t-e { stop-color: var(--t-e); } .v21pr-tin .t-hi { stop-color: var(--t-hi); } .v21pr-tin .t-b { stop-color: var(--t-b); } .v21pr-tin .t-lo { stop-color: var(--t-lo); } .v21pr-tin .t-d { stop-color: var(--t-d); }
.v21pr-tin .p-1 { stop-color: var(--pc-s1, var(--pc)); } .v21pr-tin .p-2 { stop-color: var(--pc-s2, var(--pc)); } .v21pr-tin .p-3 { stop-color: var(--pc-s3, var(--pc)); }
.v21pr-tin .g-in { stop-color: var(--pc); stop-opacity: .6; } .v21pr-tin .g-out { stop-color: var(--pc); stop-opacity: 0; }
.v21pr-tin .c-0 { stop-color: #000000; stop-opacity: .28; } .v21pr-tin .c-1 { stop-color: #FFFFFF; stop-opacity: .22; } .v21pr-tin .c-2 { stop-color: #FFFFFF; stop-opacity: 0; } .v21pr-tin .c-3 { stop-color: #000000; stop-opacity: .12; } .v21pr-tin .c-4 { stop-color: #000000; stop-opacity: .30; }
.v21pr-tin .f-paint:not([fill]) { fill: var(--pc); }
.v21pr-tin .f-label { fill: var(--lab); }
.v21pr-tin .f-lines { fill: var(--lab-ink); }
.v21pr-tin .f-lug { fill: var(--t-lo); }
.v21pr-tin .f-rim { fill: none; stroke: var(--t-hi); stroke-width: 1.6; }
.v21pr-tin .f-handle { fill: none; stroke: var(--t-lo); stroke-width: 1.6; stroke-linecap: round; }
.v21pr-tin .f-gloss { fill: #FFFFFF; opacity: .45; }
.v21pr-tin .f-star { fill: #FFFFFF; }
.v21pr-tin .f-bolt { fill: #FFFFFF; stroke: rgba(0,0,0,.35); stroke-width: .5; }

/* ---------- product art: fabric swatches (patterns) ---------- */
.v21pr-fabric { --card: #FFFFFF; --card-ink: #C9C4B8; }
:root[data-theme="dark"] .v21pr-fabric { --card: #E9E4D8; --card-ink: #A39C8C; }
.v21pr-fabric .f-card { fill: var(--card); }
.v21pr-fabric .f-lines { fill: var(--card-ink); }
.v21pr-fabric .f-stitch { fill: none; stroke: #FFFFFF; stroke-opacity: .75; stroke-width: .8; stroke-dasharray: 2 1.6; }
.v21pr-fabric .f-pin { fill: #C9A227; stroke: #6B4E00; stroke-width: .5; }
.v21pr-fabric .fo-a { stop-color: #FFFFFF; stop-opacity: .22; } .v21pr-fabric .fo-b { stop-color: #FFFFFF; stop-opacity: 0; } .v21pr-fabric .fo-c { stop-color: #000000; stop-opacity: .16; }
.v21pr-fabric .f-cloth:not([fill]) { fill: var(--pc-d); }

/* ---------- product art: pot, planter, speaker and the retail box ---------- */
.v21pr-pot .k-0 { stop-color: #9C4A2A; } .v21pr-pot .k-1 { stop-color: #D9794E; } .v21pr-pot .k-2 { stop-color: #C2623A; } .v21pr-pot .k-3 { stop-color: #8A3F22; }
.v21pr-pot .f-rimp { fill: #D9794E; } .v21pr-pot .f-rimhi { fill: #F0A078; }
.v21pr-pot .f-soil { fill: #4A3322; }
.v21pr-planter .w-hi { stop-color: var(--v21pr-wood-hi); } .v21pr-planter .w-b { stop-color: var(--v21pr-wood); } .v21pr-planter .w-lo { stop-color: var(--v21pr-wood-lo); }
.v21pr-planter .f-plank { fill: none; stroke: var(--v21pr-wood-lo); stroke-opacity: .6; stroke-width: .6; } .v21pr-planter .f-lip { fill: var(--v21pr-wood-lo); } .v21pr-planter .f-plate { fill: #FFF3D1; stroke: var(--v21pr-wood-lo); stroke-width: .5; }
.v21pr-speaker[data-finish="walnut"] { --w-a: #4A2D19; --w-b: #8A5A36; --w-c: #6B4428; }
.v21pr-speaker[data-finish="oak"] { --w-a: #8F6538; --w-b: #D9B27C; --w-c: #B88A55; }
.v21pr-speaker[data-finish="charcoal"] { --w-a: #23272A; --w-b: #50575C; --w-c: #3A4044; }
.v21pr-speaker[data-finish="cream"] { --w-a: #B9B2A2; --w-b: #F2EDE2; --w-c: #DDD6C6; }
.v21pr-speaker .w-a { stop-color: var(--w-a); } .v21pr-speaker .w-b { stop-color: var(--w-b); } .v21pr-speaker .w-c { stop-color: var(--w-c); }
.v21pr-speaker .f-surround { fill: #1B1F1C; } .v21pr-speaker .f-cone { fill: #2E3431; } .v21pr-speaker .f-cap { fill: #474E4A; } .v21pr-speaker .f-cone-hi { fill: none; stroke: #5E6661; stroke-width: .8; }
.v21pr-speaker .f-foot { fill: #1B1F1C; } .v21pr-speaker .f-note { fill: var(--brand-text); }
.v21pr-box .f-bfront { fill: #C9A574; } .v21pr-box .f-bside { fill: #A88554; } .v21pr-box .f-btop { fill: #DDBF8E; } .v21pr-box .f-bwin { fill: var(--solid-2); stroke: #8A6E48; stroke-width: .8; }
.v21pr-box .f-bstring { fill: none; stroke: #6B4E2E; stroke-width: .8; } .v21pr-box .f-btag { fill: #FFF3D1; stroke: #8A6E48; stroke-width: .6; } .v21pr-box .f-bleaf { fill: var(--brand-text); }
:root[data-theme="dark"] .v21pr-box .f-bfront { fill: #8A6E48; } :root[data-theme="dark"] .v21pr-box .f-bside { fill: #6E5638; } :root[data-theme="dark"] .v21pr-box .f-btop { fill: #A88554; }
.v21pr-box .v21pr-boxicon { color: var(--brand-text); }

/* ---------- motion (J167 section 9): only while a card is on screen, lively and not still ---------- */
.v21pr-sheen { transform: translateX(0); }
.v21pr-card.is-live .v21pr-ingot .v21pr-sheen { animation: v21pr-sheen 7s ease-in-out infinite; }
@media (hover: hover) { .v21pr-card:hover .v21pr-ingot .v21pr-sheen { animation: v21pr-sheen 7s ease-in-out infinite; } }
.v21pr-card.is-live .v21pr-glint { transform-box: fill-box; transform-origin: center; animation: v21pr-twinkle 2.4s ease-in-out infinite; }
.v21pr-card.is-live .v21pr-glint:nth-of-type(2n) { animation-delay: .8s; }
.v21pr-card.is-live .v21pr-glint:nth-of-type(3n) { animation-delay: 1.6s; }
.v21pr-card.is-live .v21pr-halo { animation: v21pr-pulse 3.2s ease-in-out infinite alternate; }
.v21pr-card.is-live .v21pr-flame { transform-box: fill-box; transform-origin: 50% 100%; animation: v21pr-flicker 1.1s ease-in-out infinite alternate; }
.v21pr-card.is-live .v21pr-bolt { animation: v21pr-flash 3.6s linear infinite; }
.v21pr-speaker.is-playing .f-cone, .v21pr-speaker.is-playing .f-cap { transform-box: fill-box; transform-origin: center; animation: v21pr-thump .22s ease-in-out 8 alternate; }
.v21pr-clock.is-live[data-hurry="minutes"] { animation: v21pr-hurry 2.4s ease-in-out infinite; }
@keyframes v21pr-sheen { 0% { transform: translateX(0); } 12% { transform: translateX(90px); } 12.01% { transform: translateX(-60px); } 24% { transform: translateX(0); } 100% { transform: translateX(0); } }
@keyframes v21pr-twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.6); } }
@keyframes v21pr-pulse { from { opacity: .55; } to { opacity: .95; } }
@keyframes v21pr-flicker { from { transform: scaleY(1) skewX(0deg); } to { transform: scaleY(1.08) skewX(-3deg); } }
@keyframes v21pr-flash { 0%, 58%, 66%, 100% { opacity: .9; } 60% { opacity: 1; } 62% { opacity: .3; } 64% { opacity: 1; } }
@keyframes v21pr-thump { from { transform: scale(1); } to { transform: scale(1.06); } }
@keyframes v21pr-hurry { 0%, 100% { box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 0 rgba(242,201,76,0); } 50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 4px rgba(242,201,76,.35); } }

/* ---------- still: reduced motion, Calm, the quiet states, a day that matters and High contrast ---------- */
@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion="full"]) :is(.v21pr-card, .v21pr-card *, .v21pr-clock) { animation: none !important; transition: none !important; }
  :root:not([data-motion="full"]) .v21c-item.v21sd-card.v21pr-card:hover { transform: none; }
}
:root:is([data-motion="reduced"], [data-calm="on"], [data-quiet="on"], [data-day-matters], [data-theme="high_contrast"]) :is(.v21pr-card, .v21pr-card *, .v21pr-clock) { animation: none !important; transition: none !important; }
:root:is([data-motion="reduced"], [data-calm="on"], [data-quiet="on"], [data-day-matters], [data-theme="high_contrast"]) .v21c-item.v21sd-card.v21pr-card:hover { transform: none; }

/* ---------- High contrast: flat fills, black outlines, white shelves ---------- */
:root[data-theme="high_contrast"] .v21sd-head.v21pr-banner { color: #000000; background: #FFFFFF; box-shadow: inset 0 0 0 3px #000000; border-top: 0; }
:root[data-theme="high_contrast"] .v21pr-banner::before { display: none; }
:root[data-theme="high_contrast"] :is(.v21sd-head.v21pr-banner h3.v21pr-eyebrow, .v21pr-shout, .v21pr-sub, .v21pr-clock-cap, .v21pr-lab, .v21pr-colon) { color: #000000; }
:root[data-theme="high_contrast"] .v21pr-clock { background: #FFFFFF; box-shadow: inset 0 0 0 2px #000000; }
:root[data-theme="high_contrast"] .v21pr-num { color: #000000 !important; background: #FFFFFF; box-shadow: inset 0 0 0 2px #000000; }
:root[data-theme="high_contrast"] .v21pr-num::after { display: none; }
:root[data-theme="high_contrast"] .v21pr-hurry { color: #FFFFFF; background: #000000; }
:root[data-theme="high_contrast"] .v21c-item.v21sd-card.v21pr-card { border: 2px solid #000000; box-shadow: none; }
:root[data-theme="high_contrast"] .v21c-item.v21sd-card.is-deal.v21pr-card { background: #FFFFFF; box-shadow: inset 0 0 0 3px #000000; }
:root[data-theme="high_contrast"] .v21c-win.v21sd-win.v21pr-win { box-shadow: inset 0 0 0 2px #000000; }
:root[data-theme="high_contrast"] .v21pr-win::after { content: ""; position: absolute; left: 0; right: 0; top: 76%; border-top: 2px solid #000000; }
:root[data-theme="high_contrast"] .v21sd-price.v21pr-tag { clip-path: none; border-radius: 6px; padding: 0 10px; box-shadow: inset 0 0 0 2px #000000; }
:root[data-theme="high_contrast"] .v21pr-tag::before { display: none; }
:root[data-theme="high_contrast"] .v21pr-stk { color: #000000; background: #FFFFFF; border: 2px solid #000000; box-shadow: none; }
:root[data-theme="high_contrast"] .v21pr-stk[data-stk="sale"] { clip-path: none; border-radius: 50%; }
:root[data-theme="high_contrast"] .v21pr-aisle-h > .v21sd-kind { color: #000000; background: #FFFFFF; box-shadow: inset 0 0 0 2px #000000; }
:root[data-theme="high_contrast"] .v21pr-aisle-h::after { border-top: 2px solid #000000; }
:root[data-theme="high_contrast"] .v21pr-stage::before { display: none; }
:root[data-theme="high_contrast"] :is(.v21pr-frame, .v21pr-cushion, .v21pr-pane, .v21pr-mat) { background: #FFFFFF; box-shadow: inset 0 0 0 2px #000000; outline: 0; }
:root[data-theme="high_contrast"] .v21pr-ingot .f-front { fill: var(--m-hc); stroke: #000000; stroke-width: 2; }
:root[data-theme="high_contrast"] .v21pr-ingot .f-top { fill: color-mix(in srgb, var(--m-hc) 55%, #FFFFFF); stroke: #000000; stroke-width: 2; }
:root[data-theme="high_contrast"] .v21pr-ingot .f-lip { fill: #000000; }
:root[data-theme="high_contrast"] .v21pr-ingot :is(.f-brush, .f-bevel, .f-edge, .f-mark2, .v21pr-sheen, .v21pr-shadow) { display: none; }
:root[data-theme="high_contrast"] .v21pr-ingot .f-mark { stroke: #000000; stroke-width: 1.5; }
:root[data-theme="high_contrast"] .v21pr-ingot .f-glint { fill: #FFFFFF; stroke: #000000; stroke-width: 1; }
:root[data-theme="high_contrast"] .v21pr-ingot .f-hcband { display: inline; fill: #FFFFFF; stroke: #000000; stroke-width: 1.2; }
:root[data-theme="high_contrast"] .v21pr-tin :is(.f-body, .f-label) { fill: #FFFFFF; stroke: #000000; stroke-width: 1.5; }
:root[data-theme="high_contrast"] .v21pr-tin :is(.f-paint, .f-flame) { fill: var(--pc); stroke: #000000; stroke-width: 1.2; }
:root[data-theme="high_contrast"] .v21pr-tin :is(.f-cyl, .v21pr-halo, .f-gloss, .v21pr-shadow, .f-lines) { display: none; }
:root[data-theme="high_contrast"] .v21pr-tin :is(.f-rim, .f-handle) { stroke: #000000; }
:root[data-theme="high_contrast"] .v21pr-tin .f-lug { fill: #000000; }
:root[data-theme="high_contrast"] .v21pr-tin .f-star { fill: #FFFFFF; stroke: #000000; stroke-width: .8; }
:root[data-theme="high_contrast"] .v21pr-fabric .f-cloth { fill: var(--pc-h); stroke: #000000; stroke-width: 1.5; }
:root[data-theme="high_contrast"] .v21pr-fabric .f-card { stroke: #000000; stroke-width: 1.5; }
:root[data-theme="high_contrast"] .v21pr-fabric :is(.f-fold, .f-stitch, .v21pr-shadow) { display: none; }
:root[data-theme="high_contrast"] :is(.v21pr-pot, .v21pr-planter, .v21pr-speaker, .v21pr-box) :is(path, rect, ellipse, circle, polygon) { fill: #FFFFFF; stroke: #000000; stroke-width: 1.2; }
:root[data-theme="high_contrast"] .v21pr-pot .f-soil, :root[data-theme="high_contrast"] .v21pr-speaker :is(.f-surround, .f-cone, .f-foot) { fill: #000000; }
:root[data-theme="high_contrast"] :is(.v21pr-pot, .v21pr-planter, .v21pr-speaker, .v21pr-box) .v21pr-shadow { display: none; }

/* ---------- forced colours: plain shapes, outlined ---------- */
@media (forced-colors: active) {
  .v21c-win.v21sd-win.v21pr-win { forced-color-adjust: none; background: Canvas; border: 1px solid CanvasText; }
  .v21sd-head.v21pr-banner, .v21pr-clock, .v21pr-num { forced-color-adjust: none; color: CanvasText; background: Canvas; border: 2px solid CanvasText; }
  .v21pr-banner::before, .v21pr-num::after, .v21pr-stage::before { display: none; }
  :is(.v21pr-shout, .v21pr-sub, .v21pr-clock-cap, .v21pr-lab, .v21pr-colon, h3.v21pr-eyebrow) { color: CanvasText; }
  .v21pr-stk { forced-color-adjust: none; color: CanvasText; background: Canvas; border: 2px solid CanvasText; clip-path: none; }
  .v21sd-price.v21pr-tag { clip-path: none; border: 1px solid CanvasText; }
  .v21c-item.v21sd-card.v21pr-card { border: 1px solid CanvasText; }
}

/* ---------- never printed; the quiet states hide the whole shop already (.v21c-body) ---------- */
@media print { .v21pr-stage, .v21pr-stickers, .v21pr-banner, .v21pr-try { display: none !important; } }

/* ---------- very wide screens: the shop uses up to 1600 px in the middle ---------- */
@media (min-width: 1920px) {
  .v21sd-full .sheet-h { padding-left: max(16px, calc(50% + -800px)); padding-right: max(16px, calc(50% + -800px)); }
  .v21sd-full .sheet-b { padding-left: max(16px, calc(50% + -800px)); padding-right: max(16px, calc(50% + -800px)); }
}

/* ---------- quick to open: below the stock, draw only what is on screen ----------
 * A redraw gives each new section the height its old self had (--v21pr-ch, set by rerender in js\v21_canteen.js), so the
 * scroll position put back after it lands where the person was (a new section has no remembered size of its own). */
.v21sd-full .v21sd-yours, .v21sd-full .v21c-hist { content-visibility: auto; contain-intrinsic-size: auto var(--v21pr-ch, 720px); }

/* ---------- J167 build: no aisle ends a row on one card alone (the build's pictures at 1024 px showed 4 cards and then 1) ----------
 * data-n is the aisle's card count (js\v21_canteen.js). A 5 card aisle is 5 across, else 3 and 2; 4 is 4 across, else 2 and 2;
 * 6 is 6 across, else 3 and 3; 3 stays 3 across down to 160 px cards. Under 600 px every aisle stays two across, as above. */
@media (min-width: 600px) {
  .v21pr-aisles > .v21pr-aisle { container: v21pr-aisle / inline-size; }
  @container v21pr-aisle (min-width: 512px) {
    .v21pr-aisle:is([data-n="3"], [data-n="5"], [data-n="6"]) > .v21sd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  }
  @container v21pr-aisle (max-width: 687.98px) {
    .v21pr-aisle[data-n="4"] > .v21sd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @container v21pr-aisle (min-width: 688px) {
    .v21pr-aisle[data-n="4"] > .v21sd-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  }
  @container v21pr-aisle (min-width: 864px) {
    .v21pr-aisle[data-n="5"] > .v21sd-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  }
  @container v21pr-aisle (min-width: 1040px) {
    .v21pr-aisle[data-n="6"] > .v21sd-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  }
}
/* the need line breaks evenly when it wraps on a narrow card ("You need 110 more / Leaf Tokens.") */
.v21sd-need { text-wrap: balance; }

/* ================================================================ J167 fix (SHOP_review.md, 29 Sep 2026) ================
 * The aisles pack at 176 px a card with no cap on the aisle, so the last aisle on a row fills it and its sign's line runs
 * to the edge; the cards are capped by the aisle's grid (320 px each) and stand to the left of it. An aisle of one card
 * alone on a wide row, and the last odd card under 600 px, is a wide featured card (the picture beside the words). Price
 * tags and card bottoms line up. Stickers sit off the product. The deal spans the stock with its count beside its price.
 */
.v21pr-aisle { display: flex; flex-direction: column; gap: 8px; }
.v21pr-aisle > .v21sd-grid { flex: 1 1 auto; max-width: calc(var(--v21pr-n) * 320px + (var(--v21pr-n) + -1) * 16px); }
.v21pr-card > .v21sd-b > .v21sd-line { margin-top: auto; }
.v21pr-card > .v21sd-b > .v21sd-line ~ .v21sd-acts { margin-top: 0; }
@media (min-width: 600px) {
  @container v21pr-aisle (min-width: 336px) {
    .v21pr-aisle[data-n="2"] > .v21sd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @container v21pr-aisle (min-width: 480px) {
    .v21pr-aisle[data-n="3"] > .v21sd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  }
  @container v21pr-aisle (min-width: 560px) {
    .v21pr-aisle[data-n="1"] > .v21sd-grid { max-width: 640px; grid-template-columns: minmax(0, 1fr); }
    .v21pr-aisle[data-n="1"] > .v21sd-grid > .v21pr-card { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); grid-template-rows: auto; column-gap: 20px; }
    .v21pr-aisle[data-n="1"] > .v21sd-grid > .v21pr-card > .v21pr-stickers { right: auto; width: 280px; }
    .v21pr-aisle[data-n="1"] > .v21sd-grid > .v21pr-card > .v21pr-win { align-self: start; }
    .v21pr-aisle[data-n="1"] > .v21sd-grid > .v21pr-card > .v21sd-b { align-self: center; padding: 4px 4px 2px 0; }
  }
}
@media (max-width: 599px) {
  .v21pr-aisle > .v21sd-grid { max-width: none; }
  .v21pr-aisles .v21sd-grid > .v21pr-card:last-child:nth-child(odd) { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 44%) minmax(0, 1fr); grid-template-rows: auto; column-gap: 12px; }
  .v21pr-aisles .v21sd-grid > .v21pr-card:last-child:nth-child(odd) > .v21pr-stickers { right: auto; width: calc((100% + -20px) * .44); }
  .v21pr-aisles .v21sd-grid > .v21pr-card:last-child:nth-child(odd) > .v21pr-win { align-self: start; }
  .v21pr-aisles .v21sd-grid > .v21pr-card:last-child:nth-child(odd) > .v21sd-b { padding: 2px 2px 0 0; }
}

/* the deal: its sign like the aisles' (a sale red stripe), its count beside its price, and the stock's whole width */
.v21sd-deal > h4.v21sd-kind { justify-self: start; display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px 0 8px; border-radius: 6px; color: var(--ink); background: var(--solid); box-shadow: inset 3px 0 0 var(--v21pr-sale), 0 0 0 1px var(--glass-rim); }
:root[data-theme="high_contrast"] .v21sd-deal > h4.v21sd-kind { color: #000000; background: #FFFFFF; box-shadow: inset 0 0 0 2px #000000; }
.is-deal.v21pr-card .v21sd-line { justify-content: flex-start; gap: 4px 12px; }
.v21c-item.v21sd-card.is-deal.v21pr-card { max-width: none; }
@media (min-width: 720px) {
  .v21c-item.v21sd-card.is-deal.v21pr-card { grid-template-columns: 360px minmax(0, 1fr); }
  .is-deal.v21pr-card > .v21pr-stickers { width: 360px; }
}
@media (min-width: 600px) and (max-width: 719px) {
  .is-deal .v21pr-win { width: 100%; max-width: 360px; justify-self: center; }
  .is-deal.v21pr-card > .v21pr-stickers { left: 50%; right: auto; width: min(360px, calc(100% + -24px)); transform: translateX(-50%); }
  .v21pr-clock { flex: 1 1 100%; }
}

/* the countdown keeps its width when "Last hour" or "Last few minutes" appears (the digits never shift sideways) */
@media (min-width: 600px) { .v21pr-clock { min-width: 16.5rem; } }

/* the metal bar stands on the plank; its contact shadow is soft */
.v21pr-ingot .v21pr-shadow { opacity: .22; }

/* a wardrobe piece sits down on the cushion: its picture carries clear space under the piece (--v21pr-seat, a fraction
 * of its height, set per piece by js\v21_canteen.js), so the picture is lowered by that much and the piece rests at 25% */
.v21pr-stage[data-kind="wardrobe"] .v21pr-item { bottom: calc(25% + var(--v21pr-seat, .17) * -72%); height: 72%; }

/* =====================================================================================================================
 * Sections (15 Oct 2026, the Director: "make the change to the canteen like the better grouping ... have it in
 * sections"). Each section opens with its heading and one plain line (js\v21_canteen.js sectionHead); the old shelves'
 * own headings sit one step under it. The tabs follow the sections (the old shelves and the daily stock alike). Every
 * card on sale carries its sticker, a red price tag and its "{n}% off today" line, not only the spotlight deal.
 * ================================================================================================================== */
.v21c-sec { display: grid; gap: 14px; min-width: 0; }
.v21c-sec-h { display: grid; gap: 2px; padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--edge-strong) 25%, transparent); }
.v21c-panel > .v21c-sec:first-child > .v21c-sec-h { border-top: 0; padding-top: 0; }
.v21c-sec-t { margin: 0; font-size: 1.125rem; line-height: 1.5rem; font-weight: 700; color: var(--ink); }
.v21c-sec-line { margin: 0; max-width: 72ch; font-size: .875rem; line-height: 1.25rem; color: var(--ink-2); }
.v21c-shelf > h4.v21c-shelf-h { margin: 0; font-size: .75rem; line-height: 1rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.v21c-sec > .v21c-shelf + .v21c-shelf > h4.v21c-shelf-h { border-top: 1px solid color-mix(in srgb, var(--edge-strong) 18%, transparent); padding-block-start: 12px; }
.v21sd-sec { gap: 16px; }
.v21sd-panel { gap: 28px; }
.v21sd-shelfbar { margin: -4px 0; }
/* the held bar covers the sheet's top padding too, so nothing scrolls past above it */
@media (min-width: 600px) {
  .v21sd-full .v21c-shelfbar { top: -16px; padding-top: 24px; margin-top: -16px; background: var(--solid); }
  .v21sd-full .v21sd-shelfbar { margin-top: -20px; }
}
.v21sd-sales { margin: 0; }
.v21sd-panel > .v21sd-yours { margin-top: 4px; }
@supports not (color: color-mix(in srgb, red 50%, white)) { .v21c-sec-h { border-top-color: var(--glass-rim); } }
:root[data-theme="high_contrast"] .v21c-sec-h { border-top: 2px solid #000000; }
:root[data-theme="high_contrast"] .v21c-sec-line { color: #000000; }

/* every card on sale: its tag is the sale's red one, its line says the percent, its tier sticker moves to the left */
.v21sd-price.v21pr-tag.is-sale { color: var(--v21pr-sale-ink); background: var(--v21pr-sale); }
.v21sd-ribbon.v21sd-off { padding: 0 8px; font-size: .75rem; line-height: 1.125rem; font-weight: 800; color: var(--ink);
  background: color-mix(in srgb, var(--v21pr-sale) 14%, var(--solid)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--v21pr-sale) 60%, transparent); }
.has-sale:not(.is-deal) .v21pr-stk[data-stk="tier"] { right: auto; left: 6px; }
.has-sale:not(.is-deal) .v21pr-stk[data-stk="tier"] ~ .v21pr-stk[data-stk="last"] { top: 36px; }
.has-sale:not(.is-deal) .v21pr-stk[data-stk="sale"] { width: 58px; height: 58px; padding: 8px; font-size: .75rem; line-height: .875rem; }
@supports not (color: color-mix(in srgb, red 50%, white)) { .v21sd-ribbon.v21sd-off { background: var(--solid); box-shadow: inset 0 0 0 1px var(--v21pr-sale); } }
:root[data-theme="high_contrast"] .v21sd-price.v21pr-tag.is-sale { color: #000000; background: #FFFFFF; outline: 2px solid #000000; }
:root[data-theme="high_contrast"] .v21sd-ribbon.v21sd-off { color: #000000; background: #FFFFFF; box-shadow: inset 0 0 0 2px #000000; }
@media (forced-colors: active) { .v21sd-ribbon.v21sd-off, .v21sd-price.v21pr-tag.is-sale { border: 1px solid CanvasText; } }
