/* s-kids.css: Brex's and Zayde's pages, and Krista's page for them. Loaded after app/ui.css.

   Built from the Candlelight components: picture cards, the ticket, lists, switches, stickers.
   Brex (6) reads pictures first: everything is big, one line per screen with a speaker beside it,
   every task a picture tile that earns a gold star, and each finish a small party with Blip and
   Otto in his own paint. Zayde (12) gets the grown up page with real jobs: a mix of songs that
   play, a call that lands on everyone's plan, a bag that earns its stamp, postmarks on his ticket.
   Krista's page leads with what they made; the links and switches fold behind one row each.
   Every color comes from design/tokens.css, except the eight paints, the toys' own colors. */

/* The toys' eight paints, copied from design/art.js (Blip's and Otto's own colors) until HCE.toyColor
   hands them to the page; app.js then sets --paint and --paint-edge on each pot from it. */
:root {
  --toy-blue: #BFE6F2; --toy-blue-edge: #7FBFD6;
  --toy-coral: #F08A75; --toy-coral-edge: #D5604C;
  --toy-pink: #F6B9D1; --toy-pink-edge: #D17A9F;
  --toy-purple: #CBB8EF; --toy-purple-edge: #8D71C8;
  --toy-green: #AEDDB7; --toy-green-edge: #5DA373;
  --toy-yellow: #F7DE7D; --toy-yellow-edge: #C49E2B;
  --toy-orange: #F6AF5F; --toy-orange-edge: #C67621;
  --toy-red: #E76B63; --toy-red-edge: #A73731;
}

/* ============================== Krista's kids page ============================== */

/* Something waiting for Krista: Brex's snacks, Zayde's two choices. It keeps its place once approved. */
.desk-task .card-body { gap: 8px; }
.desk-task .card-title { font-size: 23px; }
.desk-task .card-body > .btn { margin-top: 10px; }
.desk-task .options { gap: 10px; margin-top: 6px; }
.desk-task .option { min-height: 0; padding: 12px 14px 12px 12px; box-shadow: none; border-color: var(--line); }
.desk-task .option-art { width: 50px; height: 50px; border-radius: 14px; }
.desk-task .option-art svg { width: 38px; height: 38px; }
.desk-task .option-title { font-size: 19px; }
.desk-task .option-sub { font-size: 14.5px; }
.desk-task.is-approved .card-body { gap: 6px; padding-block: 14px 12px; }
.desk-task.is-approved .desk-snacks svg { max-width: 44px; padding: 6px; }
.desk-snacks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; max-width: 340px; margin: 6px 0 2px; }
.desk-snacks li { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; font: 550 12.5px/1.2 var(--font-ui); color: var(--text-2); text-align: center; }
.desk-snacks svg { width: 100%; max-width: 54px; height: auto; aspect-ratio: 1; padding: 7px; border-radius: 15px; background: var(--tile); box-shadow: var(--tile-glow); }
.desk-approved { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.desk-approved .pill svg { width: 14px; height: 14px; }
.desk-approved .btn { min-height: 44px; padding: 0 14px; }

/* One child: their world first, then their page on this phone, then two folded rows */
.desk-kids { display: grid; gap: 16px; align-items: start; }
.desk-kid { padding: 0; overflow: hidden; }
.desk-kid-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 14px; padding: 18px 16px 12px; }
.desk-kid-head .avatar { width: 52px; height: 52px; }
.desk-kid-head .avatar svg { width: 24px; height: 24px; }
.desk-kid-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.desk-kid-name b { font: 560 26px/1.1 var(--font-display); letter-spacing: -.014em; color: var(--heading); }
.desk-kid-name span { font-size: 14.5px; line-height: 1.35; color: var(--text-2); }
.desk-kid > .desk-open { width: auto; margin: 4px 16px 16px; }
.desk-kid-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 4px 16px 16px; }
.desk-kid-actions .btn { padding-inline: 14px; }

/* What they made: Blip and Otto in Brex's paint, his snacks as stickers, Zayde's songs and stamps */
.desk-world { display: flex; flex-direction: column; gap: 12px; margin: 0 16px 12px; padding: 14px; border-radius: var(--r-l); background: color-mix(in srgb, var(--surface-2) 70%, transparent); box-shadow: inset 0 0 0 1px var(--edge); }
.world-item { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 12px; min-width: 0; }
.world-pics { display: flex; align-items: center; gap: 4px; }
.world-toys .world-pics svg { width: 50px; height: auto; }
.world-pics.is-stickers { flex-wrap: wrap; gap: 6px; max-width: 220px; }
.world-pics.is-stickers i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--tile); box-shadow: var(--tile-glow); }
.world-pics.is-stickers svg { width: 28px; height: 28px; }
.world-label { font: 600 15px/1.3 var(--font-ui); color: var(--text); min-width: 0; text-wrap: pretty; }
.world-item.is-stack { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
.world-item.is-stack .world-pics { max-width: none; }
.world-songs { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
.world-songs ol { display: flex; flex-direction: column; gap: 6px; }
.world-songs li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; font: 550 15px/1.3 var(--font-ui); color: var(--text); }
.world-songs .avatar { width: 30px; height: 30px; }
.world-songs .avatar svg { width: 15px; height: 15px; }
.desk-world-empty { margin: 0 16px 14px; font-size: 14.5px; line-height: 1.4; color: var(--text-2); }

/* The folded rows: the child's own link, and what the child sees */
.desk-more {
  appearance: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  width: 100%;
  min-height: 60px;
  padding: 10px 18px 10px 16px;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color .15s var(--ease);
}
.desk-more:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }
.desk-more-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.desk-more .chev { transform: rotate(90deg); transition: transform .2s var(--ease); }
.desk-more[aria-expanded="true"] .chev { transform: rotate(-90deg); }
.desk-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 14px; padding: 4px 12px 16px 16px; }
.desk-link-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.desk-link-main .row-sub { line-height: 1.4; }
.desk-cards { display: flex; flex-direction: column; padding-bottom: 4px; }
.desk-card { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; column-gap: 12px; min-height: 58px; padding: 6px 10px 6px 16px; }
.desk-card + .desk-card::before { content: ""; position: absolute; top: 0; right: 0; left: 68px; height: 1px; background: var(--line); }
.desk-card-pic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--tile); box-shadow: var(--tile-glow); }
.desk-card-pic svg { width: 30px; height: 30px; }
.desk-card.is-off .desk-card-pic, .desk-card.is-off .row-title { opacity: .5; }
.desk-mom { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 18px; border-top: 1px solid var(--line); }
.desk-mom .picks { margin-top: 10px; }

/* ============================== With Brex, With Zayde ============================== */
/* Whose turn it is, and Back to Mom, which fills its ring while held */
.screen.with-kid { position: relative; }
.kid-bar {
  position: absolute;
  z-index: 4;
  top: max(12px, calc(env(safe-area-inset-top) + 6px));
  left: max(var(--gutter), env(safe-area-inset-left));
  right: max(var(--gutter), env(safe-area-inset-right));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}
.kid-turn, .kid-hold {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 4px 16px 4px 4px;
  border: 0;
  border-radius: 999px;
  background: var(--glass);
  color: var(--text);
  box-shadow: var(--shadow-1), 0 0 0 1px var(--edge-strong);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}
/* Handing the phone over is a small ceremony: whose turn it is drops in as the page opens */
@keyframes kid-turn-in { 0% { opacity: 0; transform: translateY(-14px) scale(.92); } 60% { opacity: 1; transform: translateY(2px) scale(1.03); } 100% { transform: none; } }
.screen[data-enter="fwd"] .kid-turn { animation: kid-turn-in .55s .15s var(--ease-out) both; }
.screen[data-enter="fwd"] .kid-hold { animation: kid-turn-in .55s .3s var(--ease-out) both; }
.kid-turn .avatar { width: 38px; height: 38px; }
.kid-turn .avatar svg { width: 18px; height: 18px; }
.kid-turn b { font: 700 15.5px/1 var(--font-ui); }
.kid-hold {
  padding-right: 14px;
  font: inherit;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
  transition: transform .2s var(--ease);
}
.kid-hold.is-holding { transform: scale(.97); }
.kid-hold-ring { position: relative; display: grid; place-items: center; width: 38px; height: 38px; }
.kid-hold-ring > svg { position: absolute; inset: 0; width: 38px; height: 38px; transform: rotate(-90deg); }
.kid-hold-ring circle { fill: none; stroke-width: 3; }
.kid-hold-ring .track { stroke: var(--edge-strong); }
.kid-hold-ring .fill { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 106.8; stroke-dashoffset: 106.8; transition: stroke-dashoffset .2s var(--ease); }
.kid-hold.is-holding .fill { stroke-dashoffset: 0; transition: stroke-dashoffset 1.3s linear; }
.kid-hold-mark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--tile); color: var(--holly); }
.kid-hold-mark svg { width: 14px; height: 14px; }
.kid-hold-mark .shape { fill: currentColor; }
.kid-hold-text { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; }
.kid-hold-text b { font: 700 14.5px/1 var(--font-ui); }
.kid-hold-text small { font: 600 11.5px/1 var(--font-ui); color: var(--text-2); }

/* ============================== Picture cards (Brex, and Krista's snacks) ============================== */
.kid-picks { gap: 12px; }
.kid-picks .pick { min-height: 128px; padding: 14px 8px 12px; border-radius: 20px; font: 600 16px/1.2 var(--font-ui); }
.kid-picks .pick svg { width: 62px; height: 62px; }
.kid-picks.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kid-picks.two .pick { min-height: 168px; font-size: 17.5px; padding-inline: 12px; }
.kid-picks.two .pick svg { width: 80px; height: 80px; }
.kid-picks.four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.kid-picks.four .pick { min-height: 92px; padding: 10px 4px; border-radius: 16px; font-size: 13px; }
.kid-picks.four .pick svg { width: 38px; height: 38px; }
/* A checklist (packed, found) marks done in green, like every check on the page */
.kid-picks.check .pick.is-picked { box-shadow: 0 0 0 2.5px var(--good), var(--shadow-1); }
.kid-picks.check .pick.is-picked::after { background: var(--good); }
.kid-picks.check .pick.is-picked::before { background: var(--bg); }
/* Five are in: the rest rest */
.kid-picks.is-full .pick:not(.is-picked) { opacity: .42; filter: saturate(.6); }
@keyframes kid-pop { 0% { transform: scale(.9); } 55% { transform: scale(1.08); } 100% { transform: none; } }
.kid-picks .pick.is-live svg { animation: kid-pop .32s var(--ease-out) both; }

/* The speaker: a big round button beside a line, read aloud on a tap */
.say {
  appearance: none;
  flex: none;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  background: var(--tile);
  color: var(--holly);
  box-shadow: var(--tile-glow), var(--shadow-1);
  cursor: pointer;
  transition: transform .12s var(--ease);
}
.say:active { transform: scale(.94); }
@keyframes say-ring { 0% { box-shadow: var(--tile-glow), 0 0 0 0 color-mix(in srgb, var(--gold) 60%, transparent); } 100% { box-shadow: var(--tile-glow), 0 0 0 16px color-mix(in srgb, var(--gold) 0%, transparent); } }
.say.is-saying { animation: say-ring .9s var(--ease-out) 2; }

/* ============================== Brex's home ============================== */
.brex .hero-title { font-size: clamp(44px, 13vw, 64px); }
/* Brex reads no small capitals: his labels are plain words, a little gold */
.kid.brex .eyebrow { text-transform: none; letter-spacing: 0; font: 700 15px/1.2 var(--font-ui); }
/* The sleeps to the train: one big number, and a small moon for each sleep */
.brex-count { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.brex-count p { display: flex; align-items: flex-end; gap: 12px; }
.brex-count .num { font: 520 108px/.8 var(--font-display); letter-spacing: -.045em; color: var(--heading); text-shadow: var(--heading-glow); font-variant-numeric: lining-nums tabular-nums; }
.brex-count .unit { padding-bottom: 2px; max-width: 9ch; font: 650 22px/1.12 var(--font-ui); color: var(--text); text-wrap: balance; }
.brex-count.is-today { flex-direction: row; align-items: center; gap: 16px; }
.brex-count.is-today .unit { max-width: none; font: 520 44px/1 var(--font-display); letter-spacing: -.02em; color: var(--heading); text-shadow: var(--heading-glow); }
.brex-count-train { display: grid; place-items: center; width: 112px; height: 112px; border-radius: 50%; background: var(--tile); box-shadow: var(--tile-glow), var(--shadow-1); }
@keyframes brex-chug { 0%, 100% { transform: none; } 30% { transform: translateY(-5px) rotate(-2deg); } 60% { transform: translateY(0) rotate(1deg); } }
.brex-count-train svg { animation: brex-chug 1.1s ease-in-out infinite; }
.brex-moons { display: flex; flex-wrap: wrap; gap: 6px; color: var(--gold); }
.brex-moons svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }

/* Today's light: his string of twelve bulbs, today's waiting dark for a tap; then its picture and line */
.brex-light { display: flex; flex-direction: column; gap: 14px; padding: 16px 18px 20px; background: var(--sheen), radial-gradient(ellipse 70% 46% at 50% 44%, color-mix(in srgb, var(--gold) 20%, transparent), transparent 74%), var(--surface); }
.brex-string { position: relative; display: flex; justify-content: space-between; align-items: flex-start; padding: 0 2px; }
.brex-string::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 12px; border-top: 1.5px solid color-mix(in srgb, var(--text) 30%, transparent); border-radius: 50% 50% 0 0 / 100% 100% 0 0; transform: scaleY(-1); transform-origin: top; }
.brex-bulb { position: relative; display: grid; place-items: center; width: 26px; }
.brex-bulb svg { width: 30px; height: 30px; }
.brex-bulb.is-today svg { transform: scale(1.24); transform-origin: 50% 20%; }
@keyframes brex-bulb-on { 0% { transform: scale(.6); filter: brightness(.6); } 50% { transform: scale(1.55); filter: brightness(1.5); } 100% { transform: scale(1.24); filter: none; } }
.brex-bulb.is-live svg { animation: brex-bulb-on .7s var(--ease-out) both; transform-origin: 50% 20%; }
.brex-bigbulb {
  appearance: none;
  align-self: center;
  display: grid;
  place-items: center;
  width: 168px;
  height: 168px;
  margin: 4px 0 -4px;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--gold) 26%, transparent), transparent 68%);
  cursor: pointer;
}
.brex-bigbulb { position: relative; }
.brex-bigbulb svg { position: relative; width: 128px; height: 128px; }
.brex-bigbulb::before { content: ""; position: absolute; inset: 22px; border-radius: 50%; box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 55%, transparent), 0 0 34px 6px color-mix(in srgb, var(--gold) 34%, transparent); animation: brex-halo 2.4s ease-in-out infinite; }
@keyframes brex-halo { 0%, 100% { opacity: .35; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes brex-wait { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06) rotate(-3deg); } }
.brex-bigbulb svg { animation: brex-wait 2.4s ease-in-out infinite; transform-origin: 50% 15%; }
.brex-bigbulb:active svg { transform: scale(.94); }
.brex-light-art { display: grid; place-items: center; min-height: 150px; }
.brex-light-art svg { width: 132px; height: 132px; filter: drop-shadow(0 10px 18px color-mix(in srgb, var(--gold) 34%, transparent)); }
@keyframes brex-light-in { 0% { opacity: 0; transform: scale(.5) translateY(18px); } 60% { opacity: 1; transform: scale(1.08); } 100% { transform: none; } }
.brex-light.is-live .brex-light-art svg { animation: brex-light-in .8s .15s var(--ease-out) both; }
.brex-light.is-live .brex-line-row { animation: brex-rise .5s .45s var(--ease-out) both; }
@keyframes brex-rise { 0% { opacity: 0; transform: translateY(10px); } 100% { opacity: 1; transform: none; } }
.brex-line-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.brex-line { font: 560 28px/1.14 var(--font-display); letter-spacing: -.012em; color: var(--heading); text-shadow: var(--heading-glow); text-wrap: balance; }
.brex-light .btn { margin-top: 2px; }
button.brex-light-art { appearance: none; justify-self: center; align-self: center; padding: 0; border: 0; background: none; cursor: pointer; }
.brex-light-art.is-big .sticker { position: relative; display: grid; place-items: center; width: 176px; height: 176px; border-radius: 50%; background: var(--tile); box-shadow: var(--tile-glow), var(--shadow-1); }
.brex-light-art.is-big .sticker > svg { width: 124px; height: 124px; filter: none; }
.brex-light-art.is-big .brex-ding { top: 4px; font-size: 20px; }

/* The oldest task still open, under today's light (or leading on a day with no new light) */
.brex-still { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; column-gap: 16px; padding: 16px 18px 18px 16px; }
.brex-still-side { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.brex-still-art { display: grid; place-items: center; width: 80px; height: 80px; border-radius: 50%; background: var(--tile); box-shadow: var(--tile-glow), var(--shadow-1); }
.brex-still-art svg { width: 56px; height: 56px; }
.brex-still-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.brex-still-label { font: 700 15px/1.2 var(--font-ui); color: var(--gold-ink); }
.brex-still .brex-line { font-size: 24px; }
.brex-still .say { width: 48px; height: 48px; }
.brex-still-sub { font: 600 15px/1.3 var(--font-ui); color: var(--text-2); font-variant-numeric: tabular-nums; }
.brex-still .btn { margin-top: 4px; }
.brex-still.is-lead { grid-template-columns: minmax(0, 1fr); row-gap: 14px; padding: 18px 18px 20px; }
.brex-still.is-lead .brex-still-side { align-items: center; }
.brex-still.is-lead .brex-still-art { justify-self: center; width: 136px; height: 136px; }
.brex-still.is-lead .brex-still-art svg { width: 100px; height: 100px; }
.brex-still.is-lead .brex-line { font-size: 28px; }

/* Blip and Otto, side by side. A tap paints them. */
.brex-toys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.brex-toy {
  appearance: none;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 16px 10px 16px;
  border: 0;
  border-radius: var(--r-l);
  background: var(--sheen), var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-1), 0 0 0 1px var(--edge);
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: transform .12s var(--ease), box-shadow .18s var(--ease);
}
button.brex-toy:hover { box-shadow: var(--shadow-2), 0 0 0 1px var(--edge); }
button.brex-toy:active { transform: scale(.98); }
.brex-toy-art { display: grid; place-items: center; width: 100px; height: 100px; margin-bottom: 6px; border-radius: 50%; background: radial-gradient(circle at 50% 56%, color-mix(in srgb, var(--gold) 24%, transparent), transparent 70%), var(--surface-2); }
.brex-toy-art svg { width: 74px; height: auto; }
.brex-toy b { font: 560 23px/1.1 var(--font-display); letter-spacing: -.01em; color: var(--heading); }
.brex-toy-line { font-size: 14px; line-height: 1.35; color: var(--text-2); text-wrap: balance; }
.brex-brush { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 1px var(--edge-strong), var(--shadow-1); }
.brex-brush::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: conic-gradient(var(--toy-red) 0 25%, var(--toy-yellow) 0 50%, var(--toy-green) 0 75%, var(--toy-blue) 0); }

/* Every task as a big picture tile, two across. Done ones wear a gold star and sit at the end. */
.brex-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.brex-tile {
  appearance: none;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 168px;
  padding: 18px 10px 16px;
  border: 0;
  border-radius: var(--r-l);
  background: var(--sheen), var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-1), 0 0 0 1px var(--edge);
  font: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s var(--ease), box-shadow .18s var(--ease);
}
.brex-tile:active { transform: scale(.97); }
div.brex-tile { cursor: default; }
.brex-tile .sticker { position: relative; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: var(--tile); box-shadow: var(--tile-glow), var(--shadow-1); }
.brex-tile .sticker > svg { width: 64px; height: 64px; }
.brex-tile b { font: 560 21px/1.15 var(--font-display); letter-spacing: -.01em; color: var(--heading); }
.brex-tile-count { position: absolute; top: 12px; right: 12px; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); font: 700 13px/1.2 var(--font-ui); font-variant-numeric: tabular-nums; }
.brex-tile.is-done .sticker > svg:first-child { opacity: .9; }
.brex-star { position: absolute; top: -8px; right: -10px; display: grid; place-items: center; width: 42px; height: 42px; transform: rotate(10deg); filter: drop-shadow(0 3px 5px color-mix(in srgb, var(--gold) 50%, transparent)); }
.brex-star svg { width: 42px; height: 42px; }
.brex-star .shape { fill: var(--gold); stroke: var(--surface); stroke-width: 1.4px; paint-order: stroke; }
@keyframes star-land { 0% { opacity: 0; transform: translate(-40px, -120px) scale(2.4) rotate(-60deg); } 60% { opacity: 1; transform: translate(0, 6px) scale(.9) rotate(18deg); } 80% { transform: translate(0, -3px) scale(1.08) rotate(6deg); } 100% { transform: rotate(10deg); } }
.brex-star.is-new { animation: star-land .9s .25s cubic-bezier(.2, .9, .3, 1.2) both; }
/* The bell rings where it is: it swings, waves ring out and a Ding floats up */
@keyframes brex-ring { 0% { transform: rotate(0); } 20% { transform: rotate(-16deg); } 45% { transform: rotate(13deg); } 70% { transform: rotate(-7deg); } 100% { transform: rotate(0); } }
.brex-bell.ring .sticker > svg { animation: brex-ring .6s cubic-bezier(.3, 1.6, .5, 1) both; transform-origin: 50% 14%; }
.brex-bell .sticker::before, .brex-bell .sticker::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 2px var(--gold); opacity: 0; pointer-events: none; }
@keyframes ding-wave { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.55); } }
.brex-bell.ring .sticker::before { animation: ding-wave .8s var(--ease-out) both; }
.brex-bell.ring .sticker::after { animation: ding-wave .8s .18s var(--ease-out) both; }
.brex-ding { position: absolute; top: -10px; left: 50%; padding: 5px 12px 6px; border-radius: 999px 999px 999px 4px; background: var(--gold); color: var(--on-accent); font: 700 16px/1 var(--font-display); font-style: italic; opacity: 0; transform: translate(-10%, 10px); pointer-events: none; }
@keyframes ding-up { 0% { opacity: 0; transform: translate(-10%, 10px) scale(.7); } 25% { opacity: 1; transform: translate(-10%, -6px) scale(1.05); } 100% { opacity: 0; transform: translate(-10%, -34px); } }
.brex-bell.ring .brex-ding { animation: ding-up 1.1s var(--ease-out) both; }
/* His ticket, at the end of his home */
.brex-ticket { margin-top: 6px; }
/* After the trip: Brex's best part, kept under the ornament */
.brex-moment .card-body { gap: 4px; padding: 16px 20px 18px; }
.brex-moment .card-title { font-size: 27px; line-height: 1.15; }

/* ============================== Brex's tasks ============================== */
.brex-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 14px; }
.brex-head .h1 { font-size: clamp(31px, 8.8vw, 42px); }
/* A task done: Blip and Otto jump up around a gold star while snow and stars burst */
.brex-cheer { display: flex; flex-direction: column; gap: 14px; }
.cheer-stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 172px;
  padding-bottom: 16px;
  border-radius: var(--r-xl);
  background: radial-gradient(ellipse 60% 70% at 50% 62%, color-mix(in srgb, var(--gold) 30%, transparent), transparent 72%), var(--sheen), var(--surface);
  box-shadow: var(--shadow-1), 0 0 0 1px var(--edge);
  overflow: hidden;
}
.cheer-toy svg { display: block; width: 84px; height: auto; }
.cheer-star { align-self: center; margin-bottom: 18px; }
.cheer-star svg { display: block; width: 74px; height: 74px; filter: drop-shadow(0 4px 14px color-mix(in srgb, var(--gold) 70%, transparent)); }
.cheer-star .shape { fill: var(--gold); }
@keyframes cheer-jump { 0% { opacity: 0; transform: translateY(60px) scale(.6); } 35% { opacity: 1; transform: translateY(-26px) scale(1.06) rotate(-6deg); } 55% { transform: translateY(0) rotate(3deg); } 72% { transform: translateY(-12px) rotate(-2deg); } 100% { transform: none; } }
@keyframes cheer-spin { 0% { opacity: 0; transform: scale(.2) rotate(-180deg); } 60% { opacity: 1; transform: scale(1.25) rotate(14deg); } 100% { transform: none; } }
.brex-cheer.is-live .cheer-toy.is-blip { animation: cheer-jump 1s .05s cubic-bezier(.2, .9, .3, 1.2) both; }
.brex-cheer.is-live .cheer-toy.is-otto { animation: cheer-jump 1s .18s cubic-bezier(.2, .9, .3, 1.2) both; }
.brex-cheer.is-live .cheer-star { animation: cheer-spin .8s cubic-bezier(.2, .9, .3, 1.3) both; }
.cheer-bits { position: absolute; left: 50%; top: 46%; width: 0; height: 0; }
.cheer-bits .bit { position: absolute; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: var(--bulb-gold); opacity: 0; animation: cheer-burst 1.2s var(--ease-out) both; }
@keyframes cheer-burst { 0% { opacity: 1; transform: translate(0, 0) scale(.4); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1); } }
.cheer-bits .b0 { --dx: -150px; --dy: -60px; background: var(--bulb-red); }
.cheer-bits .b1 { --dx: -110px; --dy: -110px; }
.cheer-bits .b2 { --dx: -60px; --dy: -140px; background: var(--bulb-green); }
.cheer-bits .b3 { --dx: 0px; --dy: -150px; background: var(--note-paper); width: 8px; height: 8px; }
.cheer-bits .b4 { --dx: 60px; --dy: -135px; background: var(--bulb-amber); }
.cheer-bits .b5 { --dx: 115px; --dy: -100px; background: var(--bulb-red); }
.cheer-bits .b6 { --dx: 155px; --dy: -50px; }
.cheer-bits .b7 { --dx: 160px; --dy: 20px; background: var(--bulb-green); }
.cheer-bits .b8 { --dx: -160px; --dy: 24px; background: var(--note-paper); width: 8px; height: 8px; }
.cheer-bits .b9 { --dx: -90px; --dy: -30px; background: var(--bulb-amber); width: 7px; height: 7px; }
.cheer-bits .b10 { --dx: 90px; --dy: -34px; background: var(--note-paper); width: 7px; height: 7px; }
.cheer-bits .b11 { --dx: -30px; --dy: -90px; background: var(--bulb-red); width: 7px; height: 7px; }
.cheer-bits .b12 { --dx: 34px; --dy: -80px; background: var(--bulb-green); width: 7px; height: 7px; }
.cheer-bits .b13 { --dx: 0px; --dy: -60px; background: var(--bulb-gold); width: 6px; height: 6px; }
.brex-home-btn { margin-top: 2px; }
.screen > .brex-home-btn:not(:last-child) { margin-top: 2px; }
.brex-home-btn svg { width: 22px; height: 22px; }
/* Five snacks: five slots that fill as Brex picks, in the order he picks; a tap takes one out */
.brex-slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; padding: 12px; border-radius: var(--r-l); background: var(--surface-2); }
.brex-slots li { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--text) 30%, transparent); }
.brex-slots li.is-in { border: 0; background: var(--tile); box-shadow: var(--tile-glow), var(--shadow-1); }
.brex-slots li svg { width: 68%; height: 68%; }
.brex-slots li button { appearance: none; display: grid; place-items: center; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.brex-slots li button svg { width: 68%; height: 68%; }
.brex-slots li.is-live svg { animation: kid-pop .32s var(--ease-out) both; }
.brex-for-mom { display: flex; flex-direction: column; gap: 10px; }
.brex-for-mom .kid-picks { grid-template-columns: minmax(0, 168px); }
/* How far along: packed, found */
.brex-meter { display: flex; flex-direction: column; gap: 8px; }
.brex-meter > span { font: 600 15.5px/1.3 var(--font-ui); color: var(--text-2); font-variant-numeric: tabular-nums; }
.brex-meter .progress { height: 8px; }
.brex-meter .progress > i { background: var(--good); }

/* Paint: the toy on a little stage, eight pots of paint below */
.brex-which .seg { flex-direction: row; gap: 8px; min-height: 58px; font-size: 17px; }
.brex-which .seg svg { width: 30px; height: auto; flex: none; }
.brex-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 236px;
  border-radius: var(--r-xl);
  background: radial-gradient(ellipse 58% 52% at 50% 56%, color-mix(in srgb, var(--gold) 24%, transparent), transparent 72%), var(--surface);
  box-shadow: var(--shadow-1), 0 0 0 1px var(--edge);
  overflow: hidden;
}
.brex-stage::after { content: ""; position: absolute; left: 50%; bottom: 22px; width: 140px; height: 14px; translate: -50% 0; border-radius: 50%; background: color-mix(in srgb, var(--text) 9%, transparent); }
.brex-stage svg { position: relative; z-index: 1; width: 168px; height: auto; margin-bottom: 10px; }
@keyframes brex-splash { 0% { transform: scale(.84) rotate(-5deg); } 55% { transform: scale(1.07) rotate(2deg); } 100% { transform: none; } }
.brex-stage.live svg { animation: brex-splash .5s cubic-bezier(.2, .9, .3, 1.4) both; }
.pots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 8px; }
.pot {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  min-height: 104px;
  padding: 12px 2px 8px;
  border: 0;
  border-radius: 18px;
  background: none;
  color: var(--text-2);
  font: 600 14.5px/1.2 var(--font-ui);
  cursor: pointer;
  transition: background-color .15s var(--ease);
}
.pot:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }
.pot:active .pot-paint { transform: scale(.94); }
/* A pot of paint seen from above: the paint, a little shine, the tin rim */
.pot-paint {
  --tin: color-mix(in srgb, var(--tile) 84%, var(--text-3));
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle at 33% 30%, color-mix(in srgb, var(--note-paper) 70%, transparent) 0 13%, transparent 14%), var(--paint);
  box-shadow: inset 0 -5px 0 var(--paint-edge), inset 0 0 0 1px color-mix(in srgb, var(--text) 8%, transparent), 0 0 0 5px var(--tin), 0 0 0 6px color-mix(in srgb, var(--text) 16%, transparent), var(--shadow-1);
  transition: transform .15s var(--ease), box-shadow .18s var(--ease);
}
.pot.is-picked { color: var(--text); font-weight: 700; }
.pot.is-picked .pot-paint { box-shadow: inset 0 -5px 0 var(--paint-edge), inset 0 0 0 1px color-mix(in srgb, var(--text) 8%, transparent), 0 0 0 5px var(--tin), 0 0 0 8.5px var(--accent-ring), var(--shadow-1); }
.pot.is-picked .pot-paint::after { content: ""; position: absolute; top: -11px; right: -11px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-ring); box-shadow: 0 0 0 2px var(--bg); }
.pot.is-picked .pot-paint::before { content: ""; position: absolute; z-index: 1; top: -11px; right: -11px; width: 24px; height: 24px; background: var(--on-accent); -webkit-mask: var(--i-check) center / 14px no-repeat; mask: var(--i-check) center / 14px no-repeat; }
.pot-paint[data-color="blue"]   { --paint: var(--toy-blue); --paint-edge: var(--toy-blue-edge); }
.pot-paint[data-color="coral"]  { --paint: var(--toy-coral); --paint-edge: var(--toy-coral-edge); }
.pot-paint[data-color="pink"]   { --paint: var(--toy-pink); --paint-edge: var(--toy-pink-edge); }
.pot-paint[data-color="purple"] { --paint: var(--toy-purple); --paint-edge: var(--toy-purple-edge); }
.pot-paint[data-color="green"]  { --paint: var(--toy-green); --paint-edge: var(--toy-green-edge); }
.pot-paint[data-color="yellow"] { --paint: var(--toy-yellow); --paint-edge: var(--toy-yellow-edge); }
.pot-paint[data-color="orange"] { --paint: var(--toy-orange); --paint-edge: var(--toy-orange-edge); }
.pot-paint[data-color="red"]    { --paint: var(--toy-red); --paint-edge: var(--toy-red-edge); }

/* The train song: the engine on the snow under the sky of the hour. Each tap chugs, puffs steam and
   sends a word up into the sky; every fifth the whistle blows and Otto pops up to wave. */
.zhuk-stage {
  appearance: none;
  position: relative;
  display: grid;
  place-items: end center;
  width: 100%;
  min-height: 360px;
  padding: 0 0 34px;
  border: 0;
  border-radius: var(--r-xl);
  background:
    radial-gradient(ellipse 46% 22% at 50% 82%, color-mix(in srgb, var(--art-window) 30%, transparent), transparent 72%),
    linear-gradient(to top, var(--art-snow) 0 70px, var(--art-snow-shade) 70px 72px, transparent 72px),
    linear-gradient(var(--art-sky-1), var(--art-sky-3));
  box-shadow: var(--shadow-1), 0 0 0 1px var(--edge);
  color: var(--text);
  cursor: pointer;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}
.zhuk-engine { position: relative; z-index: 2; display: block; }
.zhuk-engine svg { display: block; width: 176px; height: 176px; }
@keyframes zhuk-chug { 0% { transform: none; } 30% { transform: translate(8px, -16px) rotate(-3deg); } 62% { transform: translate(4px, 0) rotate(1.5deg); } 100% { transform: none; } }
.zhuk-stage.chug .zhuk-engine { animation: zhuk-chug .52s cubic-bezier(.3, 1.4, .5, 1) both; }
.zhuk-says { position: absolute; z-index: 3; left: 50%; bottom: 176px; width: 0; height: 0; }
.zhuk-say { position: absolute; left: 0; bottom: 0; padding: 10px 18px 12px; border-radius: 22px 22px 22px 6px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-1), 0 0 0 1px var(--edge); font: 560 27px/1.05 var(--font-display); letter-spacing: -.01em; white-space: nowrap; transform: translateX(-50%); }
.zhuk-say.s1 { border-radius: 22px 22px 6px 22px; color: var(--heading); }
@keyframes zhuk-float { 0% { opacity: 0; transform: translate(calc(-50% + var(--x, 0px)), 20px) scale(.6); } 14% { opacity: 1; transform: translate(calc(-50% + var(--x, 0px)), 0) scale(1.04); } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% + var(--x, 0px) * 1.8), -112px) scale(.9); } }
.zhuk-say.is-new { animation: zhuk-float 1.9s var(--ease-out) both; }
.brex-home-btn + .brex-meter { margin-top: 6px; }
.zhuk-steam { position: absolute; z-index: 1; left: calc(50% - 62px); bottom: 178px; width: 0; height: 0; }
.zhuk-steam i { position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; border-radius: 50%; background: var(--art-steam); opacity: 0; animation: zhuk-puff 1.3s var(--ease-out) both; }
@keyframes zhuk-puff { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: translate(-26px, -70px) scale(2.4); } }
.zhuk-otto { position: absolute; z-index: 1; right: 22px; bottom: 66px; opacity: 0; transform: translateY(70px); }
.zhuk-otto svg { display: block; width: 60px; height: auto; }
@keyframes otto-wave { 0% { opacity: 0; transform: translateY(70px); } 22% { opacity: 1; transform: translateY(-6px) rotate(-8deg); } 40% { transform: translateY(0) rotate(9deg); } 58% { transform: rotate(-8deg); } 76% { opacity: 1; transform: rotate(6deg); } 100% { opacity: 0; transform: translateY(70px); } }
.zhuk-stage.whistle .zhuk-otto { animation: otto-wave 1.8s var(--ease-out) both; }
.zhuk-fact { margin-top: -4px; font: italic 500 18px/1.4 var(--font-display); color: var(--text-2); text-align: center; text-wrap: balance; opacity: 0; transition: opacity .5s var(--ease); }
.zhuk-fact.is-on { opacity: 1; }

/* ============================== Zayde ============================== */
.kid-tiles { gap: 12px; }
/* The home's next card for the last stop: both places, side by side */
.z-two { display: flex; align-items: center; justify-content: center; gap: 22px; height: 100%; }
.next-step > .card-media > .z-two { width: 100%; }
.z-two svg { width: 100px; height: 100px; }
/* Train day on his home: the ride, done; the stop under way; We are here */
.z-rode .card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.z-rode-art { display: grid; place-items: center; width: 104px; height: 104px; border-radius: 50%; background: var(--tile); box-shadow: var(--tile-glow), var(--shadow-1); }
.z-rode .card-title { font-size: 27px; color: var(--heading); }
.z-here { display: flex; flex-direction: column; gap: 8px; }
.z-here .fine { text-align: center; color: var(--text-2); }
/* Stamps as postmarks: Zayde's tree inside an inked ring, the stop's name beside it */
.z-stamps { display: flex; flex-wrap: wrap; gap: 10px; }
.z-stamp { display: inline-flex; align-items: center; gap: 8px; padding: 5px 13px 5px 5px; border: 1.5px dashed color-mix(in srgb, var(--good) 75%, transparent); border-radius: 999px; color: var(--good); font: 700 13.5px/1.2 var(--font-ui); transform: rotate(-2deg); }
.z-stamp:nth-child(even) { transform: rotate(1.5deg); }
.z-stamp i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 2px currentColor; }
.z-stamp i svg { width: 14px; height: 14px; }
.z-stamp .shape { fill: currentColor; }
@keyframes z-stamp-in { 0% { opacity: 0; transform: rotate(-8deg) scale(2); } 100% { opacity: 1; transform: rotate(-2deg) scale(1); } }
.z-stamp.live { animation: z-stamp-in .34s cubic-bezier(.2, .9, .3, 1.3) both; }
.z-stamps-empty { color: var(--text-2); }
/* The car playlist as a mix: a sleeve on top, numbered tracks, a Play on each song */
.z-mixcard { padding: 0; overflow: hidden; }
.z-sleeve { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 14px; padding: 16px; background: radial-gradient(ellipse 80% 120% at 0 0, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%), var(--surface-2); border-bottom: 1px solid var(--line); }
.z-sleeve-art { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: var(--tile); box-shadow: var(--tile-glow), var(--shadow-1); transform: rotate(-4deg); }
.z-sleeve-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.z-sleeve-text b { font: 560 22px/1.15 var(--font-display); color: var(--heading); }
.z-sleeve-text span { font: 600 14.5px/1.3 var(--font-ui); color: var(--text-2); font-variant-numeric: tabular-nums; }
.z-mix { display: flex; flex-direction: column; }
.z-track { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.z-track + .z-track { border-top: 1px solid var(--line); }
.z-track-main { appearance: none; display: grid; grid-template-columns: 24px auto minmax(0, 1fr) auto; align-items: center; column-gap: 12px; width: 100%; min-height: 70px; padding: 10px 12px 10px 16px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.z-track-main:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }
.z-num { font: 600 14px/1 var(--font-ui); color: var(--text-3); font-variant-numeric: tabular-nums; }
.z-track .avatar { width: 40px; height: 40px; }
.z-track .avatar svg { width: 18px; height: 18px; }
.z-track-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.z-track-text b { font: 650 16.5px/1.25 var(--font-ui); color: var(--text); overflow-wrap: anywhere; }
.z-track-text span { font: 500 13.5px/1.3 var(--font-ui); color: var(--text-2); }
.z-track.is-open .z-track-text b { font-weight: 600; color: var(--text-2); }
.z-add { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.z-play { display: grid; place-items: center; width: 46px; height: 46px; margin-right: 12px; border-radius: 50%; background: var(--tile); color: var(--holly); box-shadow: var(--tile-glow); text-decoration: none; }
.z-play svg { margin-left: 2px; }
.z-track.is-form { display: block; padding: 14px 16px 16px; }
.z-mix-tools { display: flex; flex-direction: column; gap: 12px; }
.z-apps { display: flex; flex-direction: column; gap: 8px; }
.z-apps .seg { min-height: 46px; font-size: 14.5px; }
/* The last stop, his call: two big picture cards; the pick wears his mark */
.z-call { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.z-call-card {
  appearance: none;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 248px;
  padding: 18px 12px 16px;
  border: 0;
  border-radius: var(--r-l);
  background: var(--sheen), var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-1), 0 0 0 1px var(--edge);
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: transform .12s var(--ease), box-shadow .18s var(--ease);
}
.z-call-card:active { transform: scale(.98); }
.z-call-art { display: grid; place-items: center; width: 116px; height: 116px; margin-bottom: 6px; border-radius: 50%; background: var(--tile); box-shadow: var(--tile-glow), var(--shadow-1); }
.z-call-card b { font: 560 21px/1.15 var(--font-display); color: var(--heading); }
.z-call-line { font: 500 14px/1.35 var(--font-ui); color: var(--text-2); text-wrap: balance; }
.z-call-card.is-picked { box-shadow: 0 0 0 2.5px var(--accent-ring), var(--shadow-2); }
.z-call-mark { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 5px 12px 5px 8px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: 700 13px/1 var(--font-ui); }
.z-call-mark .mk svg { width: 14px; height: 14px; }
.z-call-mark .mk .shape { fill: currentColor; }
@keyframes z-call-in { 0% { transform: scale(.94); } 55% { transform: scale(1.04); } 100% { transform: none; } }
.z-call-card.is-live { animation: z-call-in .4s var(--ease-out) both; }
/* Packing: each thing a check of its own, a count, then the bag by the door earns its stamp */
.z-pack-meter { display: flex; align-items: center; gap: 14px; }
.z-pack-meter b { flex: none; font: 600 20px/1 var(--font-ui); font-variant-numeric: tabular-nums; }
.z-pack-meter .progress { flex: 1; height: 8px; }
.z-pack-meter .progress > i { background: var(--good); }
.z-pack .card-body { padding: 4px 18px; }
.z-pack .check { min-height: 56px; font: 600 16.5px/1.3 var(--font-ui); }
.z-pack .check + .check { border-top: 1px solid var(--line); }
/* The stamp sits beside the label where the line has room for both, and under the words on a phone */
.z-bag .card-body { flex-flow: row wrap; align-items: center; gap: 0; padding: 6px 18px; }
.z-bag .check { flex: 1 1 auto; width: auto; min-height: 60px; font: 650 17px/1.3 var(--font-ui); }
.z-bag-stamp { display: flex; margin: 10px 0 10px 38px; } /* 38px: the check's box and its gap, so it lines up under the words */
.z-ticket .ticket, .with-kid .ticket { margin-top: 2px; }
.with-kid .group + .group { margin-top: 10px; }

/* ============================== Short phones ============================== */
/* The kids' homes keep the picture short, so the first thing to tap shows without scrolling */
@media (max-height: 700px) and (max-width: 719px) {
  .kid .hero-art { position: relative; aspect-ratio: 400 / 200; }
  .kid .hero-art > .window { height: 100%; overflow: hidden; }
  .kid .hero-art > .window > svg { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; }
  .kid .hero-art + * { position: relative; z-index: 1; }
  .brex .hero-title { font-size: clamp(38px, 11vw, 52px); }
  .brex-count { margin-top: 4px; }
  .brex-count .num { font-size: 84px; }
}

/* ============================== Wider windows ============================== */
@media (min-width: 720px) {
  .desk-kids { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kid-picks:not(.four) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kid-picks.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brex-count .num { font-size: 120px; }
  .brex-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pots { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .kid-picks .pick svg, .brex-slots li svg, .brex-stage svg, .brex-bell svg, .zhuk-engine, .zhuk-say, .zhuk-otto, .zhuk-steam i,
  .brex-count-train svg, .brex-bigbulb svg, .brex-bigbulb::before, .brex-bulb svg, .brex-light *, .brex-star, .brex-cheer *, .brex-ding, .say, .z-stamp, .z-call-card,
  .brex-bell .sticker::before, .brex-bell .sticker::after, .kid-turn, .kid-hold { animation: none !important; }
  .kid-hold .fill, .kid-hold.is-holding .fill, .zhuk-fact { transition: none; }
  .zhuk-says { bottom: auto; top: 22px; left: 0; right: 0; width: auto; height: auto; display: flex; justify-content: center; }
  .zhuk-say { position: static; transform: none; }
}
