/* The home page's layout, in BuildMyPet's order and proportions (simulator/dist/ui/home.css):
   hero, price, how it works, then our own sections, questions, price again. The look is brand.css.
   Every element's room is reserved here, before any script runs. */

/* MARK: The sky the page stands in: sun and clouds over the hero, a hill under it. */
.home { background: linear-gradient(var(--sky-high), var(--sky) 900px, var(--sky) calc(100% - 900px), #8fdcff); }
/* Over the hero the bar is nothing at all (Owen, 17 Nov: the sun "just stops and the header begins"): no tint and no
   backdrop blur, which saturated a band of the sky; both come back once the page has scrolled. */
.home .top:not([data-scrolled]) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.home .top[data-scrolled] { background: rgba(82, 196, 255, .94); }
/* Room under the footer's last line for the floating Sound button, which would otherwise sit on it. */
.home .site-footer-bottom { padding-bottom: 72px; }

.hero { position: relative; isolation: isolate; max-width: var(--page); margin: 0 auto; padding: clamp(30px, 6.4svh, 68px) 5% 64px; box-sizing: content-box;
  display: grid; gap: clamp(22px, 2.6vw, 36px); }
.hero::before { /* the sun, half behind the corner */ content: ""; position: absolute; z-index: -1; right: max(-180px, calc(-1 * var(--gutter) - 60px)); top: -150px; width: 360px; height: 360px; border-radius: 50%;
  border: 4px solid var(--ink); background: radial-gradient(circle at 38% 34%, #fff6b8 0 18%, var(--yellow) 19%);
  box-shadow: 0 0 0 18px rgba(255, 206, 85, .28), 0 0 0 44px rgba(255, 206, 85, .14); }
.hero::after { /* clouds */ content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: radial-gradient(60px 34px at 6% 22%, #fff 98%, transparent), radial-gradient(44px 30px at 9.5% 18.5%, #fff 98%, transparent), radial-gradient(40px 24px at 3% 23%, #fff 98%, transparent),
    radial-gradient(52px 28px at 84% 47%, rgba(255, 255, 255, .8) 98%, transparent), radial-gradient(38px 24px at 87% 44.5%, rgba(255, 255, 255, .8) 98%, transparent); }
/* Parallax (home.mjs sets --px, --py from the pointer or the tilt, -1 to 1, and --sy from the scroll):
   the sun drifts a little against the pointer and sinks slower than the page; the clouds drift the
   other way, further. Nothing moves when nothing happens; reduced motion leaves them still. */
.hero::before { translate: calc(var(--px, 0) * -12px) calc(var(--py, 0) * -8px + var(--sy, 0) * .35px); transition: translate .5s cubic-bezier(.2, .8, .2, 1); }
.hero::after { translate: calc(var(--px, 0) * 26px) calc(var(--py, 0) * 14px + var(--sy, 0) * .18px); transition: translate .7s cubic-bezier(.2, .8, .2, 1); }
.hero-copy { text-align: center; }
.hero h1 { margin: 0 0 clamp(20px, 3svh, 30px); }
.hero-sub { max-width: 34em; margin: 0 auto; font-size: 19px; line-height: 1.5; font-weight: 700; text-wrap: balance; }


/* The stage is the hero (Owen, 17 Nov: "the focus is the images and transformations"), at every width:
   the headline, then the photos centred above a hill across the whole width (the pets are beamed from
   the photos on to it: beam.mjs), then the line and the button. Its height is reserved here. */
.hero { justify-items: stretch; text-align: center; }
/* Room above the photos for the pet to rise into the beam without touching the headline. */
.born { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr); justify-items: center; height: clamp(420px, 60svh, 640px); padding-top: clamp(40px, 7svh, 80px); box-sizing: border-box; }
.fan { position: relative; z-index: 1; width: min(60%, 360px); aspect-ratio: 360 / 260; margin-bottom: calc(-1 * clamp(30px, 6svh, 70px)); }
.snap { position: absolute; display: block; height: auto; border: 4px solid var(--ink); border-radius: 18px; background: #fff; box-shadow: 0 6px 0 var(--ink), 0 12px 18px rgba(18, 34, 110, .22); }
.fan .snap-dog { width: 54%; left: 0; top: 4%; rotate: -8deg; }
.fan .snap-cat { width: 50%; right: 0; top: 22%; rotate: 7deg; }
.fan .snap-face { width: 44%; left: 0; top: 0; rotate: -8deg; }
.fan .snap-behind { width: 41%; right: 2%; top: 3%; rotate: 7deg; }
.fan .snap-side { width: 58%; left: 22%; bottom: 0; rotate: -1deg; }
.fan .snap[hidden] { display: none; }
#fan .snap { cursor: pointer; }
/* The photo jumps as its pet steps out of it. */
.snap.out { animation: let-out .7s var(--click); }
@keyframes let-out { 25% { transform: translateY(-10px) rotate(-5deg) scale(1.06); } 55% { transform: translateY(2px) rotate(3deg) scale(.98); } }
.as-photo { border-radius: 50%; object-fit: cover; }
.swoop { width: clamp(70px, 9vw, 130px); height: auto; overflow: visible; fill: none; stroke: var(--yellow); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 3px 0 var(--ink)) drop-shadow(0 -2px 0 var(--ink)) drop-shadow(2px 0 0 var(--ink)) drop-shadow(-2px 0 0 var(--ink)); }
.swoop-line { stroke-dasharray: 1; animation: draw 1.1s .25s ease-out backwards; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.land { --feet: .7; position: relative; isolation: auto; width: 100%; align-self: stretch; display: flex; align-items: flex-end; justify-content: center; gap: 4%; padding-bottom: 4%; }
.land-still { width: 40%; max-width: 210px; height: auto; transition: opacity .4s; }
.land-still.gone { opacity: 0; }
.land-still[hidden] { display: none; }
.land-hint { position: absolute; left: 50%; bottom: 4px; /* on the grass, clear of the headline under the stage */ translate: -50% 0; display: flex; align-items: center; gap: 6px; padding: 7px 14px 7px 10px; border-radius: 999px;
  background: #fff; border: 2.5px solid var(--ink); box-shadow: 0 3px 0 var(--ink); font-size: 14px; font-weight: 800; white-space: nowrap; }
.land-hint svg { width: 20px; height: 20px; }
.land.pointed .land-hint { opacity: 0; transition: opacity .3s; }
@media (hover: none) { .land-hint { display: none; } }

/* MARK: How we bring your pet to life. Same craft-* structure and scroll-driven motion as
   BuildMyPet. Each cell fills the track, so neighbours stay off stage at rest, even before JS. */
.home-craft { --slide: min(900px, 78vw); padding: clamp(60px, 8vw, 110px) 0 clamp(40px, 6vw, 80px); overflow-x: clip; }
/* Clip sideways only: its starry edge and its night rise above the section's own box (Owen, 17 Nov: hidden cut them off in a straight line). */
.home-craft .section-head { padding: 0 5%; margin-bottom: 0; }
.home-craft .section-head .lead { margin-top: 14px; }
.craft-track { margin-top: clamp(10px, 2vw, 24px); padding: 12px 0 8px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; outline: none; touch-action: pan-y pinch-zoom; }
.craft-track::-webkit-scrollbar { display: none; }
.craft-track:focus-visible { box-shadow: inset 0 0 0 3px var(--ink); }
.craft-track.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.craft-slides { display: flex; margin: 0; padding: 0; list-style: none; }
.craft-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: center; scroll-snap-stop: always; text-align: center; user-select: none; -webkit-user-select: none; }
.craft-slide img { -webkit-user-drag: none; }
.craft-visual { position: relative; width: calc(var(--slide) * .94); aspect-ratio: 16 / 9; max-height: 56svh; margin: 0 auto; overflow: hidden;
  transform: translateX(calc(var(--d, 0) * 22%)) scale(calc(1 - var(--a, 0) * .2)) rotate(calc(var(--d, 0) * 4deg)); opacity: calc(1 - var(--a, 0) * .55);
  display: grid; place-items: center; }
.craft-still { width: 58%; height: auto; transition: opacity .3s; }
.craft-visual.live .craft-still { opacity: 0; }
.craft-canvas, .craft-bones { position: absolute; inset: 0; width: 100%; height: 100%; }
.craft-close .craft-canvas { inset: auto; left: -62%; top: -18%; width: 225%; height: 225%; }
.craft-xray { background: radial-gradient(circle at 50% 45%, #1f3b8f, #0b1a52 75%); }
.craft-xray .craft-canvas { opacity: .32; filter: grayscale(1) brightness(1.7) contrast(.8); }
.craft-xray .craft-still { filter: grayscale(1) brightness(1.7); opacity: .35; }
.craft-slide h3 { max-width: min(20em, var(--slide)); margin: clamp(14px, 2vw, 24px) auto 8px; opacity: calc(1 - var(--a, 0) * 1.4); font: 400 clamp(26px, 2.6vw, 34px)/1.05 var(--display); color: #fff; -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; text-shadow: 0 3px 0 var(--ink); }
.craft-slide p { max-width: min(32em, var(--slide)); opacity: calc(1 - var(--a, 0) * 1.4); margin: 0 auto; padding: 0 4%; font-size: 18px; line-height: 1.5; font-weight: 600; color: var(--ink); text-wrap: balance; }
/* A card's remark: a speech bubble at what it is about (craft.mjs placeRemark sets left, top and --tail,
   the tail's place along its foot; .below when it hangs under the point). It pops up from its tail once
   its card has come round, and is gone before then (also while it is being placed). */
.craft-joke { position: absolute; z-index: 2; left: 0; top: 0; width: max-content; max-width: min(46%, 300px); padding: 8px 14px; border-radius: 16px; border: 2.5px solid var(--ink); background: #fff; box-shadow: 0 3px 0 var(--ink);
  font: 800 15px/1.25 var(--font); color: var(--ink); text-wrap: balance;
  transform-origin: var(--tail, 50%) 100%; opacity: 0; scale: .4; rotate: -6deg; transition: opacity .2s, scale .2s, rotate .2s; pointer-events: none; }
.craft-joke::after { content: ""; position: absolute; left: calc(var(--tail, 50%) - 8px); bottom: -9px; width: 12px; height: 12px; background: #fff;
  border: solid var(--ink); border-width: 0 2.5px 2.5px 0; border-radius: 0 0 4px 0; rotate: 45deg; }
/* Hanging under its point: the tail on top. Beside it: the tail on the side towards it, at its height. */
.craft-joke[data-placed="below"] { transform-origin: var(--tail, 50%) 0; }
.craft-joke[data-placed="below"]::after { bottom: auto; top: -9px; border-width: 2.5px 0 0 2.5px; border-radius: 4px 0 0 0; }
.craft-joke[data-placed="right"] { transform-origin: 0 var(--tail, 50%); }
.craft-joke[data-placed="right"]::after { left: -9px; bottom: auto; top: calc(var(--tail, 50%) - 8px); border-width: 0 0 2.5px 2.5px; border-radius: 0 0 0 4px; }
.craft-joke[data-placed="left"] { transform-origin: 100% var(--tail, 50%); }
.craft-joke[data-placed="left"]::after { left: auto; right: -9px; bottom: auto; top: calc(var(--tail, 50%) - 8px); border-width: 2.5px 2.5px 0 0; border-radius: 0 4px 0 0; }
.craft-slide.is-on .craft-joke.placed { opacity: 1; scale: 1; rotate: 0deg; transition: opacity .25s .55s, scale .5s .55s var(--click), rotate .5s .55s var(--click); }
.craft-sounds { grid-template-columns: repeat(2, auto); gap: 14px 18px; align-content: center; justify-content: center; background: linear-gradient(160deg, #ffd59e, var(--pink) 60%, var(--lilac)); }
.craft-sound { min-width: 128px; min-height: 64px; padding: 10px 20px; border-radius: 999px; border: 3px solid var(--ink); background: #fff; box-shadow: 0 5px 0 var(--ink); font: 400 24px/1 var(--display); color: var(--ink); }
.craft-sound:active { translate: 0 3px; box-shadow: 0 2px 0 var(--ink); }
.craft-sound.played { animation: perk .45s var(--click); }
@keyframes perk { 40% { scale: 1.12; rotate: -4deg; } }
.craft-moods { grid-template-rows: auto 1fr; padding: 18px 14px 6px; align-items: end; }
.craft-scale { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--ink); }
.craft-scale i { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--ink); background: #fff; }
.craft-scale i.on { background: var(--yellow); scale: 1.3; }
.craft-pair { display: flex; align-items: flex-end; justify-content: center; gap: 2%; width: 100%; }
.craft-pair img { width: 38%; height: auto; }
.craft-pair .craft-ball { width: 11%; margin-bottom: 4%; }
.craft-made { grid-template-columns: 1fr auto 1.2fr; gap: 4%; padding: 0 6%; }
.craft-photo { width: 100%; height: auto; border-radius: 16px; border: 3px solid var(--ink); rotate: -4deg; box-shadow: 0 4px 0 var(--ink); }
.craft-made [data-craft-dog] { width: 100%; height: auto; }
.craft-made > .craft-arrow { width: 34px; height: 26px; background: var(--yellow); -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; filter: drop-shadow(0 2px 0 var(--ink)); }
:root { --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 22'%3E%3Cpath d='M2 8h14V1l11 10-11 10v-7H2z'/%3E%3C/svg%3E"); }
/* The control row exists before scripts. Its height and the dots' widths never change. */
.craft-controls { display: flex; justify-content: center; align-items: center; gap: 4px; margin-top: clamp(18px, 2.4vw, 28px); padding: 0 16px; min-height: 44px; visibility: hidden; }
.home-craft.is-ready .craft-controls { visibility: visible; }
.craft-controls .craft-arrow { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 2px solid var(--ink); border-radius: 50%; color: var(--ink); background: var(--sky-pale); }
.craft-controls svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.craft-controls .craft-arrow:disabled { opacity: .35; cursor: default; }
.craft-dot { position: relative; flex: none; width: 30px; height: 44px; }
.craft-dot::after, .craft-dot i { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 4px; background: var(--ink-soft); }
.craft-dot i { width: 26px; margin-left: -13px; background: var(--ink); opacity: 0; transform-origin: left; }
.craft-dot[aria-current=step]::after { width: 26px; margin-left: -13px; background: var(--sky-pale); }
.craft-dot[aria-current=step] i { opacity: 1; }
.craft-controls.is-auto .craft-dot[aria-current=step] i { transform: scaleX(0); }
.craft-controls.is-playing .craft-dot[aria-current=step] i { animation: craft-progress var(--craft-duration) linear forwards; }
@keyframes craft-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.craft-controls :focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 999px; }
@media (max-width: 760px) {
  .home-craft { --slide: 88vw; padding: 88px 0 72px; }
  .home-craft .section-head { padding: 0 20px; }
  .home-craft .section-head .lead { margin-top: 18px; }
  .craft-track { margin-top: 28px; }
  .craft-visual { width: calc(var(--slide) * .96); aspect-ratio: 1; max-height: none; }
  .craft-slide h3 { margin: 22px auto 12px; }
  .craft-slide p { font-size: 17px; }
  .craft-controls { margin-top: 32px; gap: 2px; padding-inline: 10px; }
  .craft-dot { width: 20px; }
  .craft-dot i, .craft-dot[aria-current=step]::after { width: 18px; margin-left: -9px; }
  .craft-scale { width: 100%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); font-size: 12px; }
  .craft-scale span:first-child { grid-column: 1 / 3; grid-row: 1; text-align: left; }
  .craft-scale span:last-child { grid-column: 3 / 6; grid-row: 1; text-align: right; }
  .craft-scale i { grid-row: 2; justify-self: center; }
  .craft-joke { font-size: 13px; }
  .craft-sound { min-width: 104px; min-height: 52px; font-size: 20px; }
}
@media (max-width: 360px) {
  .craft-controls { gap: 0; padding-inline: 6px; }
  .craft-dot { width: min(18px, 5vw); }
  .craft-dot i, .craft-dot[aria-current=step]::after { width: 16px; margin-left: -8px; }
}
@media (prefers-reduced-motion: reduce) {
  .craft-visual { transform: none; opacity: 1; }
  .craft-slide h3, .craft-slide p { opacity: 1; }
  .craft-still { transition: none; }
  .craft-joke, .craft-slide.is-on .craft-joke.placed { transition: none; scale: 1; rotate: 0deg; }
  .craft-controls .craft-dot i { animation: none; transform: none; }
}

/* MARK: Price (brand.css draws it) */
.home-price { max-width: var(--page); margin: 0 auto; padding: 40px 5% 24px; box-sizing: content-box; }
.home-price-end { padding-top: 0; padding-bottom: 32px; }
/* Under the hero, on its sky (Owen, 17 Nov: "bring the price bar up underneath the hero and before try it
   here. The price bar does not need its own background color"): no colour of its own, and room below for
   the clouds of "Try it here" rising into it (--gap and --edge: each section's sky, below). */
.home-price.home-price-top { padding-top: 0; padding-bottom: max(24px, calc(var(--edge) - var(--gap) / 2 + 48px)); }

/* MARK: How it works: BuildMyPet's cards, four of them. */
.section-title, .section-head { text-align: center; }
.section-head { max-width: var(--page); margin: 0 auto 34px; }
.section-head .lead { max-width: 46ch; margin: 16px auto 0; }
.home-how { padding: 80px 5% 64px; }
.home-how h2 { margin-bottom: 34px; }
.how-steps { max-width: var(--page); margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.how-step { border: 3px solid var(--ink); border-radius: 28px; padding: 18px 22px 26px; background: var(--card); box-shadow: 0 6px 0 var(--ink); transition: transform .3s var(--ease); }
.how-step:hover { transform: translateY(-4px); }
.how-art { position: relative; height: clamp(200px, 19vw, 260px); margin: 0 0 16px; display: grid; place-items: center; border-radius: 20px; background: var(--card-soft); overflow: hidden; }
.step-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.step-num { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--yellow); box-shadow: 0 3px 0 var(--ink); font-weight: 800; font-size: 15px; }
.how-step h3 { font: 800 22px/1.15 var(--font); letter-spacing: -.03em; }
.how-step p { font-size: 16px; line-height: 1.5; color: var(--ink-soft); font-weight: 600; }
.fan-small { justify-self: center; width: 86%; }
.fan-small .snap { border-width: 3px; border-radius: 12px; box-shadow: 0 4px 0 var(--ink); }
.tag-art { position: relative; display: grid; place-items: center; width: 62%; aspect-ratio: 1.4; border: 3px solid var(--ink); border-radius: 18px 18px 18px 46px; rotate: -8deg;
  background: radial-gradient(circle at 34% 28%, #fff1b8 0 16%, var(--yellow) 17%); box-shadow: 0 6px 0 var(--ink); }
.tag-art-price { font: 400 clamp(40px, 4vw, 56px)/1 var(--display); color: #fff; -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; text-shadow: 0 4px 0 var(--ink); }
.tag-art-hole { position: absolute; left: 12px; top: 12px; width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--ink); background: var(--card-soft); }
.turn-still { position: absolute; width: 70%; height: auto; }
.how-art.live .turn-still { display: none; }
.turn { position: relative; display: block; height: 100%; width: auto; max-width: 100%; aspect-ratio: 300 / 260; cursor: grab; touch-action: pan-y; }
.turn:active { cursor: grabbing; }
.turn-hint { position: absolute; left: 50%; bottom: 10px; translate: -50% 0; display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; font-size: 13px; font-weight: 800; white-space: nowrap; pointer-events: none; }
.turn-hint svg { width: 16px; height: 16px; fill: none; stroke: var(--royal-bright); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.screen { position: relative; width: 82%; aspect-ratio: 16 / 10.5; border-radius: 14px; border: 5px solid var(--ink); background: linear-gradient(160deg, #ffd59e, var(--pink) 60%, var(--lilac)); overflow: hidden; display: grid; place-items: end center; }
.screen-bar { position: absolute; inset: 0 0 auto 0; height: 18px; background: rgba(255, 253, 247, .8); display: flex; justify-content: flex-end; align-items: center; padding-right: 8px; }
.screen-bar .mark { width: 18px; height: 13px; }
.screen img { width: 70%; height: auto; margin: 0 16% -1% 0; }
.screen .pointer { position: absolute; right: 13%; top: 32%; width: 26px; height: 26px; animation: lead 3.2s ease-in-out infinite; }
@keyframes lead { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-12px, 8px); } }

/* MARK: Made for cats and dogs (Owen, 17 Nov: "tested with all popular breeds ... more like an advantage").
   A line-up of the sample pets, smallest first, standing on one floor with their breeds; they drop in one
   after another the first time the line-up is seen (home.mjs adds .in), then breathe, each on its own
   beat; a pet under the pointer hops. Then what we make and what we don't. */
.home-only { --base: clamp(96px, 14vw, 212px); max-width: 1180px; margin: 0 auto; padding: 72px 5% 64px; box-sizing: content-box; }
.lineup { position: relative; display: flex; justify-content: center; align-items: flex-end; margin: clamp(28px, 4vw, 48px) auto 0; padding: 0; list-style: none; }
/* The floor they stand on: a soft shadow under the whole line. */
.lineup::before { content: ""; position: absolute; z-index: -1; left: 4%; right: 4%; bottom: 30px; height: 46px; border-radius: 50%; background: radial-gradient(closest-side, rgba(18, 34, 110, .2), rgba(18, 34, 110, 0)); }
.lineup li { position: relative; display: grid; justify-items: center; width: calc(var(--base) * var(--k)); margin: 0 calc(var(--base) * -.11); transition: translate .25s var(--click); }
/* Each picture's feet stand 18% up from its foot: pulled down that far, every pet stands on the same line. */
.lineup img { width: 100%; height: auto; margin-bottom: -15.6%; transform-origin: 50% 82%; user-select: none; -webkit-user-drag: none; }
.lineup span { position: relative; z-index: 1; margin-top: 4px; padding: 4px 12px; border: 2.5px solid var(--ink); border-radius: 999px; background: #fff; box-shadow: 0 3px 0 var(--ink);
  font: 800 14px/1.2 var(--font); color: var(--ink); white-space: nowrap; transition: background .2s; }
@media (hover: hover) {
  .lineup li:hover { translate: 0 -10px; }
  .lineup li:hover span { background: var(--yellow); }
}
@media (prefers-reduced-motion: no-preference) {
  .lineup.wait li { opacity: 0; }
  .lineup.in li { animation: lineup-drop .7s var(--click) backwards; animation-delay: calc(var(--i) * 110ms); }
  .lineup.in span { animation: lineup-tag .45s var(--click) backwards; animation-delay: calc(var(--i) * 110ms + .35s); }
  .lineup.in img { animation: lineup-breathe calc(2.6s + var(--i) * .23s) ease-in-out calc(1.2s + var(--i) * .11s) infinite; }
}
@keyframes lineup-drop { 0% { opacity: 0; translate: 0 -70px; } 45% { opacity: 1; translate: 0 6px; } 70% { translate: 0 -8px; } 100% { translate: 0 0; } }
@keyframes lineup-tag { from { opacity: 0; scale: .4; } }
@keyframes lineup-breathe { 50% { scale: 1.012 1.03; } }
.species { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 14px; margin: clamp(36px, 4vw, 52px) auto 0; padding: 0; list-style: none; }
.species li { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; box-sizing: border-box; padding: 8px 18px 8px 10px; border: 3px solid var(--ink); border-radius: 999px; background: #fff; box-shadow: 0 4px 0 var(--ink);
  font: 400 19px/1 var(--display); color: var(--ink); }
.species .rule-mark { width: 24px; height: 24px; }
.species .rule--bad { background: #ffe9ec; }

/* MARK: Try it here: six motions, each card stamped when the visitor's motion was recognised. */
.home-try, .home-pick, .home-desk, .home-toys { padding: 72px 5%; }
/* The first section after the hero stands on the hero's hill (painted over it, as the hero is positioned). */
.home-try { position: relative; }
.try-touch, .for-touch { display: none; }
@media (hover: none) { .try-touch { display: block; } .for-touch { display: inline; } .for-mouse { display: none; } }
.plays { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.play { touch-action: pan-y; position: relative; overflow: hidden; display: grid; justify-items: center; align-content: start; gap: 14px; min-height: 300px; padding: 26px 20px 28px; border: 3px solid var(--ink); border-radius: 28px; text-align: center; box-shadow: 0 6px 0 var(--ink); }
.play-stroke { background: var(--pink); }
.play-shake { background: var(--lilac); }
.play-nod { background: var(--sky-pale); }
.play-throw { background: var(--grass); }
.play-circles { background: var(--yellow); }
.play-carry { background: #ffd59e; }
.play h3 { font-size: clamp(44px, 4.4vw, 64px); }
.play-say { max-width: 22ch; font-size: 18px; font-weight: 800; text-wrap: balance; }
.show { display: grid; place-items: center; min-height: 140px; }
.play kbd { display: inline-block; min-width: 1.7em; padding: .05em .4em; border-radius: .38em; border: 2px solid var(--ink); background: #fff; box-shadow: 0 .14em 0 var(--ink); font: inherit; }
.pad { position: relative; display: block; width: 190px; height: 74px; border-radius: 40px; background: rgba(255, 255, 255, .6); border: 2.5px solid rgba(18, 34, 110, .25); }
.pointer { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -12px 0 0 -8px; }
.pad-stroke .pointer { animation: stroke 2.6s ease-in-out infinite; }
.pad-shake .pointer { animation: shake .36s ease-in-out infinite alternate; }
.pad-nod { width: 74px; height: 120px; }
.pad-nod .pointer { animation: nod .36s ease-in-out infinite alternate; }
@keyframes nod { from { transform: translateY(-38px); } to { transform: translateY(38px); } }
@keyframes stroke { 0%, 100% { transform: translate(-44px, 5px); } 25% { transform: translate(-8px, -7px); } 50% { transform: translate(44px, 5px); } 75% { transform: translate(6px, -7px); } }
@keyframes shake { from { transform: translateX(-62px); } to { transform: translateX(62px); } }
.pad-circles { width: 120px; height: 120px; border-radius: 50%; }
.pad-circles .pointer { animation: circles 1.6s linear infinite; }
@keyframes circles { from { transform: rotate(0turn) translateX(34px) rotate(0turn); } to { transform: rotate(1turn) translateX(34px) rotate(-1turn); } }
.pad-carry .pointer { animation: carry 3.2s ease-in-out infinite; }
@keyframes carry { 0%, 18% { transform: translate(-50px, 4px); } 30%, 36% { transform: translate(-50px, 4px) scale(.82); } 70%, 76% { transform: translate(46px, -6px) scale(.82); } 86%, 100% { transform: translate(46px, -6px); } }
.tally { display: flex; gap: 8px; height: 34px; }
.tally i { width: 34px; height: 32px; background: rgba(18, 34, 110, .2); -webkit-mask: var(--heart) center / contain no-repeat; mask: var(--heart) center / contain no-repeat; transition: background .2s, scale .35s var(--click); }
.tally i.on { background: var(--red); scale: 1.18; }
:root { --heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21C5 15.5 1 12 1 7a5.5 5.5 0 0 1 11-1 5.5 5.5 0 0 1 11 1c0 5-4 8.5-11 14z'/%3E%3C/svg%3E"); }
/* A paw stamp when the pet has really done the thing. */
.stamp { position: absolute; right: 16px; top: 16px; width: 74px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--red);
  border: 3px solid var(--ink); box-shadow: 0 0 0 5px #fff, 0 0 0 8px var(--ink); font-size: 40px; rotate: 14deg; scale: 0; opacity: 0; }
.done .stamp { animation: stamp .55s cubic-bezier(.2, 1.7, .4, 1) forwards; }
.done.again .stamp { animation: stamp-again .45s var(--click); scale: 1; opacity: 1; }
@keyframes stamp-again { 40% { scale: 1.3; } }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@keyframes stamp { from { scale: 2.6; opacity: 0; } to { scale: 1; opacity: 1; } }
.ball { width: 128px; aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--ink);
  background: radial-gradient(ellipse 67% 73% at 38% 32%, rgb(237, 250, 115) 0, rgb(184, 214, 41) 60%, rgb(128, 158, 20) 100%);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .7), 0 8px 0 rgba(18, 34, 110, .3); animation: bounce 1.5s cubic-bezier(.4, 0, .6, 1) infinite alternate; transition: scale .12s; }
.ball:hover { scale: 1.06; }
.ball:active { scale: .9; }
.ball.thrown { animation: thrown .5s ease-out; }
@keyframes bounce { from { transform: translateY(-10px); } to { transform: translateY(6px); } }
@keyframes thrown { 30% { transform: scale(.55); opacity: .5; } }

/* How many pets at once: three, two on a screen under 640 points (the pets' own rule, pets/app.mjs most). */
.most-2 { display: none; }
@media (max-width: 639px) { .most-2 { display: inline; } .most-3 { display: none; } }

/* MARK: Yours will look like yours: each pet's own photo turns over to show the 3D pet made from it
   (home.mjs draws the cards from pets.json; portrait.mjs draws the live pet on the back). Four sit in
   one row; any number wraps into centred rows. Picked, the pet steps out of its card on to the page. */
.pets { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; max-width: 1100px; margin: 0 auto; min-height: 280px; list-style: none; padding: 0; }
.pets li { flex: 0 1 230px; min-width: 0; }
.pet { position: relative; display: grid; gap: 10px; width: 100%; padding: 12px 12px 14px; border: 3px solid var(--ink); border-radius: 24px; background: var(--card); box-shadow: 0 5px 0 var(--ink); transition: translate .14s, box-shadow .14s; }
.pet b { display: block; font: 400 22px/1 var(--display); }
.pet-card { position: relative; display: block; aspect-ratio: 1; perspective: 900px; }
.pet-photo, .pet-back { position: absolute; inset: 0; width: 100%; height: 100%; box-sizing: border-box; border-radius: 16px; border: 3px solid var(--ink); backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .6s var(--click); }
.pet-photo { object-fit: cover; background: #fff; rotate: -2deg; box-shadow: 0 5px 0 var(--ink); }
/* The back: the pet on a little hill, filling the card. */
.pet-back { overflow: hidden; transform: rotateY(180deg); background: radial-gradient(120% 60% at 50% 100%, #a9ee7c 0 34%, var(--sky-pale) 35%); }
.pet-now { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; scale: 1.25; translate: 0 6%; }
.pet-live { position: absolute; left: -18%; top: -10%; width: 145%; height: 145%; opacity: 0; transition: opacity .25s; }
.pet-back.live .pet-live { opacity: 1; }
.pet-back.live .pet-now { opacity: 0; transition: opacity .25s .2s; }
.pet.no-photo .pet-back { transform: none; }
.pet:is(:hover, :focus-visible, .turned) .pet-photo { transform: rotateY(-180deg); }
.pet:is(:hover, :focus-visible, .turned) .pet-back { transform: rotateY(0deg); }
.pet:hover:not(:disabled) { translate: 0 -3px; box-shadow: 0 8px 0 var(--ink); }
.pet[aria-pressed="true"] { background: #fff7d6; box-shadow: inset 0 0 0 4px var(--yellow), 0 5px 0 var(--ink); }
.pet[aria-pressed="true"]::after { content: ""; position: absolute; z-index: 3; right: 6px; top: 6px; width: 28px; height: 28px; border-radius: 9px; border: 2.5px solid var(--ink);
  background: var(--go) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 80% no-repeat; }
.pet:disabled { cursor: default; }
/* Plainly a button (Owen, 17 Nov): "Try" under each pet, "On the page" (green, ticked) once it is out;
   the count of how many may be out at once under the lead. */
.pet[aria-pressed="true"]::after { display: none; }
.pet-try { justify-self: center; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 14px 4px 10px; border: 2.5px solid var(--ink); border-radius: 999px;
  background: #fff; box-shadow: 0 3px 0 var(--ink); font: 800 15px/1 var(--font); color: var(--ink); transition: background .15s, translate .14s, box-shadow .14s; }
.pet-try::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312226e' stroke-width='3.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 72% no-repeat; box-shadow: 0 0 0 2px var(--ink); }
.pet-try-on, .pet[aria-pressed="true"] .pet-try-off { display: none; }
.pet[aria-pressed="true"] .pet-try-on { display: inline; }
.pet[aria-pressed="true"] .pet-try { background: var(--go); color: #fff; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }
.pet[aria-pressed="true"] .pet-try::before { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312226e' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 76% no-repeat; }
@media (hover: hover) { .pet:hover:not(:disabled):not([aria-pressed="true"]) .pet-try { background: var(--yellow); translate: 0 -1px; box-shadow: 0 4px 0 var(--ink); } }
.pick-count { display: flex; align-items: center; justify-content: center; gap: 12px; margin: -6px auto 28px; font-weight: 800; font-size: 17px; color: var(--ink); }
.pick-count[hidden] { display: none; }
.pick-slots { display: inline-flex; gap: 6px; }
.pick-slots i { width: 22px; height: 22px; border-radius: 50%; border: 2.5px dashed var(--ink); background: rgba(255, 255, 255, .5); transition: background .2s, border-style .2s; }
.pick-slots i.on { border-style: solid; background: var(--go) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='%23fff'%3E%3Cellipse cx='32' cy='43' rx='15' ry='12'/%3E%3Cellipse cx='12.5' cy='29' rx='6' ry='7.6'/%3E%3Cellipse cx='25' cy='17.5' rx='6' ry='7.8'/%3E%3Cellipse cx='39' cy='17.5' rx='6' ry='7.8'/%3E%3Cellipse cx='51.5' cy='29' rx='6' ry='7.6'/%3E%3C/svg%3E") center / 64% no-repeat; }
.pick-slots i.most-3 { display: inline-block; }
@media (max-width: 639px) { .pick-slots i.most-3 { display: none; } }
.pet.fetching .pet-card { animation: bob .5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(7px); } }

/* MARK: Lives on your desktop: the paw's menu, open; the app dragged into Applications. */
.desk-pair { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 22px; align-items: start; }
.desk, .finder { border: 3px solid var(--ink); border-radius: 22px; overflow: hidden; box-shadow: 0 6px 0 var(--ink); }
.desk { background: linear-gradient(160deg, #ffd59e, var(--pink) 60%, var(--lilac)); padding-bottom: 18px; }
.desk-bar, .finder-top { height: 32px; display: flex; align-items: center; padding: 0 12px; background: rgba(255, 253, 247, .8); border-bottom: 2px solid rgba(18, 34, 110, .15); }
.bar-space { flex: 1; }
.desk-clock { font-size: 13px; font-weight: 700; margin-right: 8px; white-space: nowrap; }
.desk-paw { width: 34px; height: 24px; display: grid; place-items: center; border-radius: 6px; background: rgba(18, 34, 110, .14); font-size: 17px; }
.dots { display: flex; gap: 7px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--red); }
.dots i:nth-child(2) { background: var(--yellow); }
.dots i:nth-child(3) { background: var(--go); }
/* The mini app under the paw: the Mac app's Pets tab, working (home.mjs). Sky panel, navy edge,
   chunky tabs, a cream card; the pets out with their size steps; the rest small; Come here and Off you go. */
.mini { width: min(318px, calc(100% - 16px)); padding: 10px; border-radius: 22px; color: var(--ink); text-align: left;
  background: linear-gradient(var(--sky-high), var(--sky)); border: 3px solid var(--ink); box-shadow: 0 14px 40px rgba(18, 34, 110, .28); }
.desk-menu { margin: 6px 8px 0 auto; min-height: 420px; }
.mini-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
.mini-tabs span { display: flex; align-items: center; justify-content: center; gap: 5px; height: 34px; border-radius: 12px; border: 2.5px solid var(--ink);
  background: var(--royal); color: #fff; font: 800 13px/1 var(--font); box-shadow: 0 3px 0 var(--royal-lip); }
.mini-tabs span.on { background: var(--card); color: var(--ink); box-shadow: 0 3px 0 var(--ink-soft); }
.mini-tabs .paw { width: 14px; height: 14px; }
.mini-card { background: var(--card); border: 2.5px solid var(--ink); border-radius: 18px; padding: 8px; display: grid; gap: 8px; }
.mini-pet { background: var(--card-soft); border-radius: 14px; padding: 8px; display: grid; gap: 6px; }
.mini-pet-head { display: grid; grid-template-columns: 52px 1fr 44px; gap: 8px; align-items: center; }
.mini-pet-head img { width: 52px; height: 52px; object-fit: contain; border: 2px solid var(--ink); border-radius: 12px; background: var(--sky-pale); }
.mini-pet-name { display: grid; line-height: 1.15; min-width: 0; }
.mini-pet-name b { font-size: 16px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-pet-name span { font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.mini-more { width: 44px; height: 44px; display: grid; place-items: center; border: 2.5px solid var(--ink); border-radius: 11px; background: #fff; box-shadow: 0 3px 0 var(--ink-soft); }
.mini-more svg { width: 18px; height: 18px; fill: #fff; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
.mini-more[aria-pressed="true"] { background: var(--yellow); }
.mini-steps { display: flex; align-items: flex-end; gap: 2px; }
.mini-step { --side: 28px; width: 44px; height: 44px; display: grid; place-items: end center; padding-bottom: 4px; }
.mini-step span { width: var(--side); height: var(--side); border-radius: 50%; border: 2.5px solid var(--ink); background: #fff; box-shadow: 0 3px 0 var(--ink-soft); }
.mini-step[aria-pressed="true"] span { background: var(--yellow); box-shadow: 0 3px 0 var(--yellow-lip); }
.mini-step:active span { translate: 0 2px; box-shadow: 0 1px 0 var(--ink-soft); }
.mini-lively { display: grid; gap: 4px; padding-top: 2px; }
.mini-lively p { font-size: 13px; font-weight: 800; }
.mini-lively .mini-steps { justify-content: space-between; }
.mini-ends { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; font-weight: 700; color: var(--ink-soft); }
.mini-heading { font-size: 13px; font-weight: 900; padding: 2px 4px 0; }
.mini-away { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mini-tile { display: grid; justify-items: center; gap: 2px; padding: 4px 2px 6px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; box-shadow: 0 3px 0 var(--ink-soft); font: 800 12px/1.1 var(--font); }
.mini-tile img { width: 44px; height: 44px; object-fit: contain; }
.mini-tile:disabled { opacity: .45; cursor: default; }
.mini-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mini-go, .mini-off { min-height: 44px; border-radius: 14px; border: 2.5px solid var(--ink); color: #fff; font: 900 14px/1.1 var(--font); padding: 4px 6px;
  -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }
.mini-go { background: linear-gradient(var(--go-light), var(--go) 52%, var(--go-low)); box-shadow: 0 4px 0 var(--ink); }
.mini-off { background: linear-gradient(#4f78ff, var(--royal-bright) 55%, #2149e0); box-shadow: 0 4px 0 var(--ink); }
.mini-go:active, .mini-off:active { translate: 0 3px; box-shadow: 0 1px 0 var(--ink); }
.mini button:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.finder { background: var(--card); }
.finder-paw { font-size: 19px; scale: 0; }
.finder.done .finder-paw { scale: 1; animation: hop .7s var(--click) 3; }
@keyframes hop { 0%, 100% { transform: none; } 40% { transform: translateY(4px) scale(1.5); color: var(--red); } }
.finder-body { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; justify-items: center; gap: 8px; padding: 30px 18px 18px; min-height: 200px; }
.finder-say { padding: 0 18px 22px; text-align: center; font: 400 26px/1 var(--display); }
.app, .folder { display: grid; justify-items: center; gap: 10px; font-size: 15px; font-weight: 700; }
.app { touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; position: relative; z-index: 1; }
.app.dragging { cursor: grabbing; transition: none; z-index: 3; }
.app.homing { transition: translate .35s cubic-bezier(.3, 1.4, .5, 1), scale .35s; }
.app.dropped { translate: var(--to-x) var(--to-y); scale: .46; pointer-events: none; transition: translate .3s ease-in, scale .3s ease-in; }
.app-art { width: 96px; height: 96px; border-radius: 23px; display: grid; place-items: center; border: 3px solid var(--ink); background: linear-gradient(160deg, #c8f0ff, var(--sky)); box-shadow: 0 5px 0 var(--ink); animation: wiggle 2.4s ease-in-out infinite; }
.app-art .mark { width: 74%; height: auto; }
.app.dragging .app-art, .app.dropped .app-art { animation: none; }
.app.dropped b { opacity: 0; }
@keyframes wiggle { 0%, 60%, 100% { transform: none; } 70% { transform: rotate(-7deg); } 80% { transform: rotate(6deg); } 90% { transform: rotate(-3deg); } }
.folder-art { position: relative; width: 104px; height: 80px; margin-top: 14px; border-radius: 10px 12px 14px 14px; border: 3px solid var(--ink); background: linear-gradient(#8fd0ff, #5fb2f5); box-shadow: 0 5px 0 var(--ink); transition: scale .18s; }
.folder-art::before { content: ""; position: absolute; left: -3px; top: -15px; width: 46px; height: 18px; border-radius: 9px 12px 0 0; border: 3px solid var(--ink); border-bottom: 0; background: #7cc3fb; }
.folder.over .folder-art { scale: 1.12; }
.folder.full .folder-art { animation: gulp .45s ease-out; }
@keyframes gulp { 40% { transform: scale(1.22, .86); } 70% { transform: scale(.94, 1.08); } }
.finder-arrow { width: clamp(46px, 8vw, 110px); height: 24px; fill: none; stroke: rgba(18, 34, 110, .35); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2 9; }
.finder.done .finder-arrow { opacity: 0; }

/* MARK: Drop a toy: pick one, it follows the cursor, a click puts it down for the pets (home-play.mjs). */
.toy-tray { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.toy-pick { display: grid; justify-items: center; gap: 4px; width: 100%; height: 100%; padding: 10px 14px 16px; border: 3px solid var(--ink); border-radius: 24px; background: var(--card); box-shadow: 0 5px 0 var(--ink); text-align: center; color: var(--ink); transition: translate .14s, box-shadow .14s; }
.toy-pick:hover:not(:disabled) { translate: 0 -4px; box-shadow: 0 9px 0 var(--ink); }
.toy-pick:active:not(:disabled) { translate: 0 2px; box-shadow: 0 3px 0 var(--ink); }
.toy-pick:disabled { cursor: default; }
.toy-pick[aria-pressed="true"] { background: #fff7d6; box-shadow: inset 0 0 0 4px var(--yellow), 0 5px 0 var(--ink); }
.toy-pick img { width: min(100%, 132px); height: auto; aspect-ratio: 1; object-fit: contain; }
.toy-pick b { font: 400 20px/1.1 var(--display); }
.toy-pick span { font-size: 14px; line-height: 1.35; color: var(--ink-soft); font-weight: 600; }
/* Free toys first; the rest honestly labelled as toys to buy, still there to try. */
.toy-group { max-width: 1180px; margin: 0 auto 14px; text-align: center; font: 400 clamp(26px, 2.6vw, 34px)/1.05 var(--display); color: #fff; -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; text-shadow: 0 3px 0 var(--ink); }
#toys-more-title { margin-top: 44px; }
.toy-group-say { margin: -4px auto 16px; text-align: center; font-weight: 700; color: var(--ink-soft); }
.toy-tray--free { grid-template-columns: repeat(auto-fit, minmax(0, 190px)); justify-content: center; }
.toy-tray--free .toy-pick { background: #fff7d6; }
.toy-pick { position: relative; }
/* The packs, as the toy page shows them (home-toys.mjs): name and price, line, every toy (each one
   playable here), which pack opens it. The free toys above are the larger, warmer ones. */
.toy-packs { list-style: none; max-width: 1180px; margin: 0 auto; padding: 0; display: grid; gap: 22px; }
.toy-pack { padding: 18px 20px 22px; border: 3px solid var(--ink); border-radius: 28px; background: rgba(255, 253, 247, .55); box-shadow: 0 6px 0 var(--ink); }
.toy-pack-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; }
.toy-pack-name { margin: 0; font: 400 clamp(26px, 2.4vw, 32px)/1.05 var(--display); color: var(--ink); }
.toy-pack-price { padding: 4px 12px; border-radius: 12px 12px 12px 22px; border: 2.5px solid var(--ink); background: var(--yellow); box-shadow: 0 3px 0 var(--ink); rotate: -4deg;
  font: 400 22px/1 var(--display); color: #fff; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; }
.toy-pack-line { margin: 6px auto 14px; max-width: 52ch; text-align: center; font-weight: 700; color: var(--ink-soft); text-wrap: balance; }
.toy-pack-after { margin-top: 12px; text-align: center; font-size: 15px; font-weight: 800; color: var(--ink-soft); }
/* Each pack's toys in even rows, centred (home-toys.mjs sets how many make a row: --wide, --mid). */
.toy-tray--pack { --gap: 12px; --cols: var(--wide, 5); }
.toy-tray.toy-tray--pack { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap);
  width: 100%; max-width: calc(var(--cols) * 138px + (var(--cols) - 1) * var(--gap)); }
.toy-tray--pack > li { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols) - .1px); }
.toy-tray--pack .toy-pick { padding: 8px 8px 12px; border-radius: 20px; box-shadow: 0 4px 0 var(--ink); }
.toy-tray--pack .toy-pick img { width: min(100%, 96px); }
.toy-tray--pack .toy-pick b { font-size: 17px; }
.toy-tray--pack .toy-pick span { display: none; }
.toy-tray--free .toy-pick { padding-top: 14px; }
.toy-tray--free .toy-pick img { width: min(100%, 150px); }
.toy-tag { position: absolute; top: 8px; right: 8px; padding: 3px 9px; border-radius: 999px; border: 2px solid var(--ink); background: var(--yellow); font: 800 12px/1.2 var(--font); font-style: normal; color: var(--ink); rotate: 6deg; }
.toy-say { min-height: 1.5em; margin: 22px auto 0; text-align: center; font-size: 18px; font-weight: 800; }
/* The packs behind one button (Owen, 17 Nov: "show the 4 free toys then this button only. when clicking
   we expand and see all the toy packs"): it says what it will do, its chevron turns, and the packs come
   up one after another. */
.toy-more { margin-top: 18px; text-align: center; }
.toy-more > summary { list-style: none; gap: 12px; }
.toy-more > summary::-webkit-details-marker { display: none; }
.toy-more-close, .toy-more[open] .toy-more-open { display: none; }
.toy-more[open] .toy-more-close { display: inline; }
.toy-more-chevron { width: 12px; height: 12px; margin-top: -5px; border: solid var(--ink); border-width: 0 3.5px 3.5px 0; border-radius: 0 0 3px 0; rotate: 45deg; transition: rotate .3s var(--ease), margin .3s var(--ease); }
.toy-more[open] .toy-more-chevron { rotate: 225deg; margin-top: 6px; }
.toy-more-body { margin-top: 56px; text-align: left; }
.toy-more[open] .toy-more-body { animation: packs-open .45s var(--ease) backwards; }
.toy-more[open] .toy-packs > li { animation: packs-open .5s var(--click) backwards; }
.toy-more[open] .toy-packs > li:nth-child(2) { animation-delay: .08s; }
.toy-more[open] .toy-packs > li:nth-child(3) { animation-delay: .16s; }
.toy-more[open] .toy-packs > li:nth-child(n+4) { animation-delay: .24s; }
@keyframes packs-open { from { opacity: 0; translate: 0 18px; } }
.toy-pack-get { display: grid; justify-items: center; gap: 10px; margin-top: 20px; }
.toy-pack-get .toy-pack-after { margin: 0; }
/* A toy can be dragged out as well as clicked (home-play.mjs): it never selects words or drags its picture. */
.toy-pick { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.toy-pick img { -webkit-user-drag: none; pointer-events: none; }
@media (hover: hover) { .toy-pick:not(:disabled) { cursor: grab; } }
/* While a toy is being placed, and the hand over a pet that can be picked up (the pets draw the toy). */
.placing, .placing * { cursor: copy !important; }
.dragging-toy, .dragging-toy * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }
/* The tile a toy was dragged out of shows it gone, until it is let go. */
.toy-pick img { transition: opacity .2s, scale .25s var(--click); }
.dragging-toy .toy-pick[aria-pressed="true"] { translate: none; box-shadow: inset 0 0 0 4px var(--yellow), 0 5px 0 var(--ink); }
.dragging-toy .toy-pick[aria-pressed="true"] img { opacity: .25; scale: .8; }
.can-lift, .can-lift * { cursor: grab !important; }
.lifting, .lifting * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }

/* MARK: A finger for a mouse (touch.mjs): sideways is the page's (a swipe sends the pets off), up and
   down still scroll and pinching still zooms. A small mark shows each motion where the finger was. */
@media (hover: none) {
  html { touch-action: pan-y pinch-zoom; }
  .home { -webkit-touch-callout: none; }
  /* The cards' little pads show a fingertip instead of a pointer. */
  .pad .pointer { display: none; }
  .pad::after { content: ""; position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 3px solid var(--ink); background: rgba(255, 255, 255, .85); box-shadow: 0 3px 0 rgba(18, 34, 110, .3); }
  .pad-stroke::after { animation: tap 1.6s ease-in-out infinite; }
  .pad-shake::after { animation: shake .36s ease-in-out infinite alternate; }
  .pad-nod::after { animation: hold 1.8s ease-in-out infinite; }
}
@keyframes tap { 0%, 60%, 100% { scale: 1; } 30% { scale: .7; background: var(--yellow); } }
@keyframes hold { 0%, 15% { scale: 1; box-shadow: 0 0 0 0 rgba(255, 206, 85, .9); } 30%, 80% { scale: .8; background: var(--yellow); box-shadow: 0 0 0 14px rgba(255, 206, 85, 0); } }
.finger-mark { position: fixed; z-index: 2147483000; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; pointer-events: none; opacity: 0; border: 4px solid #fff; box-shadow: 0 0 0 3px var(--ink); }
.finger-mark.on { animation: ripple .6s ease-out; }
.finger-mark[data-kind="come"] { border-color: var(--yellow); }
.finger-mark[data-kind="left"], .finger-mark[data-kind="right"] { border-color: var(--lilac); }
@keyframes ripple { from { opacity: 1; scale: .3; } to { opacity: 0; scale: 1.4; } }

/* MARK: Sound: off until the visitor turns it on (home-play.mjs, sound.mjs). */
.sound { position: fixed; z-index: 2147483001; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px;
  border: 2.5px solid var(--ink); border-radius: 999px; background: #fff; box-shadow: 0 4px 0 var(--ink); font: 800 15px/1 var(--font); color: var(--ink); transition: translate .12s, box-shadow .12s; }
.sound[hidden] { display: none; }
.sound:hover { translate: 0 -2px; box-shadow: 0 6px 0 var(--ink); }
.sound:active { translate: 0 2px; box-shadow: 0 2px 0 var(--ink); }
.sound svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sound .sound-box { fill: var(--yellow); }
.sound[aria-pressed="true"] { background: #fff7d6; }
.sound[aria-pressed="true"] .sound-cross, .sound[aria-pressed="false"] .sound-waves { display: none; }

/* MARK: Narrower */
@media (max-width: 1100px) {
  .plays { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
  .toy-tray { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .toy-tray--pack { --cols: var(--mid, 4); }
  .home-only { --base: 13vw; }
  .lineup li { margin: 0 3px; }
  .lineup span { padding: 3px 10px; font-size: 13px; }
  .toy-pick span { display: none; }
  .how-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
}
@media (max-width: 900px) {
  .plays { grid-template-columns: 1fr; max-width: 520px; }
  .play { min-height: 0; }
  .desk-pair { grid-template-columns: 1fr; max-width: 520px; }
  .desk-menu { min-height: 0; }

}
@media (max-width: 700px) {
  /* A phone: the same order, the stage still the hero. */
  .hero { padding: 18px 16px 40px; gap: 18px; }
  .hero::before { width: 200px; height: 200px; top: -130px; right: -90px; }
  .hero::after { display: none; }
  .hero h1 { font-size: clamp(36px, 10.4vw, 46px); margin-bottom: 12px; }
  .hero-sub { font-size: 16px; }
  .swoop { display: none; }
  /* The pets' own band: the hill, both pets wholly inside it. */
  .born { height: clamp(380px, 50svh, 450px); padding-top: 40px; }
  .fan { width: min(64%, 240px); margin-bottom: -30px; }
  .land { --feet: .58; padding-bottom: 0; }
  .land-still { width: 46%; max-width: 160px; }
  .home-price { padding: 32px 16px 24px; }
  .home-how, .home-try, .home-pick, .home-desk, .home-toys { padding: 64px 16px; }
  .home-only { --base: 96px; padding: 56px 16px 48px; }
  .lineup { flex-wrap: wrap; gap: 22px 6px; }
  .lineup::before { display: none; }
  .lineup li { margin: 0; }
  .lineup span { padding: 3px 10px; font-size: 13px; }
  .how-steps { grid-template-columns: 1fr; gap: 20px; max-width: 460px; }
  .how-art { height: 240px; }
  .pets { gap: 12px; }
  .pets li { flex-basis: calc(50% - 6px); }
  .pet b { font-size: 19px; }
  .plays { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .play { gap: 8px; padding: 18px 8px 20px; border-radius: 22px; }
  .play h3 { font-size: 32px; }
  .show { position: relative; width: 100%; min-height: 92px; }
  .show .pad { position: absolute; left: 50%; top: 50%; translate: -50% -50%; scale: .62; }
  .ball { width: 84px; }
  .play-say { font-size: 15px; }
  .stamp { width: 44px; right: 6px; top: 6px; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ink); }
  .stamp .paw { width: 24px; height: 24px; }
  .toy-tray { gap: 8px; }
  .toy-packs { gap: 16px; }
  .toy-pack { padding: 14px 10px 16px; border-radius: 22px; }
  .toy-tray--pack { --cols: 3; --gap: 8px; }
  .toy-tray--pack .toy-pick b { font-size: 14px; }
  .toy-tray--free { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 420px; }
  .toy-pick { padding: 6px 4px 10px; border-radius: 18px; border-width: 2.5px; box-shadow: 0 4px 0 var(--ink); }
  .toy-pick b { font-size: 15px; }
  .play { min-height: 0; }
  .finder-body { padding: 26px 10px 14px; }
  .app-art { width: 78px; height: 78px; border-radius: 19px; }
  .folder-art { width: 84px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .pointer, .ball, .app-art, .pet.fetching .pet-card, .swoop-line, .snap.out, .pad::after, .finger-mark.on, .craft-sound.played, .toy-more-body, .toy-packs > li { animation: none !important; }
  .pet-photo, .pet-back { transition: none; }
}
.craft-pair-card { padding: 18px 14px 6px; align-items: end; }
.craft-pair-card .craft-pair img { width: 40%; }

/* Plenty of room to breathe (Owen, 17 Nov, Telepawt test: "give everything plenty of space to breathe"). */
.hero { padding-top: clamp(20px, 3svh, 56px); padding-bottom: clamp(40px, 6svh, 64px); row-gap: clamp(18px, 3svh, 36px); }
.hero h1 { margin: 0 auto; max-width: 20em; font-size: clamp(38px, 4.6vw, 68px); text-wrap: balance; }
/* The words under the stage: the headline, then the line, larger than body text (Owen, 17 Nov). */
.hero-sub { line-height: 1.5; font-size: clamp(19px, 1.9vw, 26px); max-width: 32em; margin: clamp(14px, 2.2svh, 26px) auto 0; }
/* Every section after the hero: far apart, and its heading clear of what follows. */
main > section:not(#hello) { margin-top: clamp(96px, 11vw, 180px); }
/* The price bar stands just under the hero, on the same sky: no gap of its own. */
main > .home-price-top:not(#hello) { margin-top: 0; }
.section-head { margin-bottom: clamp(48px, 6vw, 80px); }
.section-head .lead { margin-top: clamp(18px, 2.4vw, 28px); line-height: 1.6; }

/* The logo's colours through the page (Owen, 17 Nov, Telepawt test). */
/* The five "Try it here" cards in turn: pink, red, mint, yellow, pink again (were pink, lilac, pale sky, grass, yellow). */
.play-stroke { background: var(--pink); }
.play-shake { background: var(--red); }
.play-nod { background: var(--mint); }
.play-throw { background: var(--yellow); }
.play-circles { background: var(--pink); }
/* Headings stay white (Owen, 17 Nov: "don't use colored headings. all white."). */
/* A paw's four toes under every section heading: red, yellow, mint, pink. */
.section-head::after { content: ""; display: block; width: 74px; height: 16px; margin: clamp(18px, 2.4vw, 26px) auto 0;
  background: radial-gradient(circle 7px at 8px 8px, var(--red) 96%, transparent), radial-gradient(circle 7px at 27px 8px, var(--yellow) 96%, transparent),
    radial-gradient(circle 7px at 46px 8px, var(--mint) 96%, transparent), radial-gradient(circle 7px at 65px 8px, var(--pink) 96%, transparent); }
/* The desk scene in the logo's pink and red rather than lilac. */
.desk { background: linear-gradient(160deg, #ffd59e, var(--pink) 60%, var(--red)); }

/* MARK: The beamed arrival (beam.mjs). Until its turn each photo keeps its room, unseen, and the still
   pets on the hill stay hidden (the pets are beamed there). The script takes the class off at the end,
   or at once if it cannot show it, so the page is never left without its pictures. */
.beam #fan .snap:not(.beam-in), .beam .land-still { opacity: 0; transition: none; }
/* Its turn: the photo pops into its place and settles. */
#fan .snap.beam-in { animation: beam-card .62s cubic-bezier(.2, .8, .3, 1) backwards; }
@keyframes beam-card {
  0% { opacity: 0; transform: translateY(18px) scale(.7) rotate(-6deg); }
  50% { opacity: 1; transform: translateY(-6px) scale(1.06) rotate(2.5deg); }
  78% { transform: translateY(1px) scale(.985) rotate(-.8deg); }
  100% { transform: none; }
}

/* The one sentence per computer (page.mjs sets data-os="windows" on Windows; everything else reads Mac). */
.on-windows { display: none; }
:root[data-os="windows"] .on-mac { display: none; }
:root[data-os="windows"] .on-windows { display: inline; }

/* MARK: Each section its own sky (Owen, 17 Nov: "more clouds and other parallax effects to divide up the
   sections… different bg colors for each section"). A section's colour fills the full width from halfway
   up the gap above it to halfway down the gap below it (::before), and rises into the colour above in a
   drawn edge (.edge in index.html: clouds, rolling hills, a wave, a starry dusk), two layers that drift
   apart a little as the page scrolls (home.mjs sets --drift; transforms only; none under reduced motion).
   Mid tones, so the white outlined headings and the ink text both read. */
main > section:not(#hello) { --gap: clamp(96px, 11vw, 180px); --edge: clamp(64px, 8vw, 120px); position: relative; isolation: isolate; }
main > section:not(#hello)::before { content: ""; position: absolute; z-index: -2; left: 50%; width: 100vw; translate: -50% 0;
  top: calc(var(--gap) / -2); bottom: calc(var(--gap) / -2); background: var(--tone-fill, var(--tone)); }
/* The last one before the footer runs down to it. */
main > section:last-child::before { bottom: -60px; }
.edge { position: absolute; z-index: -1; left: 50%; width: calc(100vw + 320px); translate: -50% 0; pointer-events: none;
  top: calc(var(--gap) / -2 - var(--edge)); height: calc(var(--edge) + 40px); }
.edge::before, .edge::after { content: ""; position: absolute; inset: 0; will-change: transform;
  -webkit-mask: var(--shape) repeat-x left bottom / var(--tile) 100%; mask: var(--shape) repeat-x left bottom / var(--tile) 100%; }
/* Behind: a paler, larger layer, drifting the other way and further. */
.edge::before { background: var(--tone-back, color-mix(in srgb, var(--tone), #fff 55%)); --tile: 900px; top: -18%;
  transform: translate3d(calc(var(--drift, 0) * 70px - 60px), calc(var(--drift, 0) * 26px), 0); }
.edge::after { background: var(--tone); --tile: 640px; transform: translate3d(calc(var(--drift, 0) * -36px), calc(var(--drift, 0) * 8px), 0); }
.edge[data-edge="clouds"] { --shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 160' preserveAspectRatio='none'%3E%3Cg%3E%3Crect y='112' width='640' height='48'/%3E%3Ccircle cx='40' cy='118' r='46'/%3E%3Ccircle cx='118' cy='92' r='58'/%3E%3Ccircle cx='200' cy='112' r='44'/%3E%3Ccircle cx='270' cy='84' r='62'/%3E%3Ccircle cx='352' cy='108' r='48'/%3E%3Ccircle cx='430' cy='90' r='56'/%3E%3Ccircle cx='508' cy='114' r='42'/%3E%3Ccircle cx='580' cy='96' r='54'/%3E%3Ccircle cx='640' cy='118' r='46'/%3E%3Ccircle cx='0' cy='118' r='46'/%3E%3C/g%3E%3C/svg%3E"); --tone-back: rgba(255, 255, 255, .92); }
.edge[data-edge="hills"] { --shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 160' preserveAspectRatio='none'%3E%3Cpath d='M0 160V96C80 40 180 40 260 88S420 140 500 84S600 60 640 96V160Z'/%3E%3C/svg%3E"); }
.edge[data-edge="wave"] { --shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 160' preserveAspectRatio='none'%3E%3Cpath d='M0 160V92Q80 52 160 92T320 92T480 92T640 92V160Z'/%3E%3C/svg%3E"); }
/* Dusk: a soft violet band behind, the night in front, and a few stars already out in it. */
.edge[data-edge="stars"] { --shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 160' preserveAspectRatio='none'%3E%3Cpath d='M0 160V78C120 48 220 120 330 96S520 46 640 78V160Z'/%3E%3C/svg%3E"); --tone-back: #8b7be0; }
.edge[data-edge="stars"]::after { background: radial-gradient(1.6px 1.6px at 12% 82%, #fff 98%, transparent), radial-gradient(1.2px 1.2px at 31% 90%, #fff 98%, transparent),
  radial-gradient(2px 2px at 54% 84%, #ffe9a8 98%, transparent), radial-gradient(1.3px 1.3px at 77% 92%, #fff 98%, transparent), radial-gradient(1.6px 1.6px at 90% 80%, #fff 98%, transparent), var(--tone); }

/* The tones, top to bottom: the logo's family, calm. */
.home-try { --tone: #b6a8f6; }
.home-pick { --tone: #97e0c5; }
.home-toys, .home-price-end { --tone: #ffc48f; --tone-fill: linear-gradient(#ffc48f, #ffa3b8); }
.home-how { --tone: #7fc9ff; }
.home-craft { --tone: #283174; --tone-fill: radial-gradient(1.5px 1.5px at 8% 12%, #fff 98%, transparent), radial-gradient(1.2px 1.2px at 22% 34%, #fff 98%, transparent),
  radial-gradient(2px 2px at 47% 8%, #ffe9a8 98%, transparent), radial-gradient(1.4px 1.4px at 63% 26%, #fff 98%, transparent), radial-gradient(1.6px 1.6px at 81% 14%, #fff 98%, transparent),
  radial-gradient(1.2px 1.2px at 93% 40%, #fff 98%, transparent), radial-gradient(1.4px 1.4px at 35% 70%, #fff 98%, transparent), radial-gradient(1.6px 1.6px at 72% 62%, #fff 98%, transparent),
  linear-gradient(#283174, #3a3a8c 70%, #5b4aa8);
  color: #f4f1ff; --ink-soft: #d8d2ff; }
/* Light words on the night (Owen, 17 Nov: "fix the contrast"): the ink of the day sections is lost on it. */
.home-craft .lead, .home-craft .craft-slide p { color: #ece8ff; }
.home-only { --tone: #c9bbff; }
.home-desk { --tone: #ffb9d6; }
.faq { --tone: #8ad4ff; }
.home-price-end { --tone-fill: linear-gradient(#ffc48f, #ff9fb7 60%, #c9a3ff); }
@media (prefers-reduced-motion: reduce) { .edge::before, .edge::after { transform: none; } }

/* MARK: A desktop on stage (Owen, 17 Nov: the page "looks very bare" once the show is over; he chose "a
   desktop on stage"). A big friendly screen stands on the hill. Its desktop holds a menu bar, a note, two
   folders and a dock (all our own shapes; no real system's icons or wallpaper). Each photo opens on it as a
   photo window (#fan), the show wipes it into the 3D pet and beams the pet down onto the desktop floor above
   the dock (#land; beam.mjs starts the column under the menu bar). Then "Your pet next" opens in the same
   window. Every size is set here, before any script runs. */
.born { --bezel: clamp(10px, 1.3vw, 16px); --menu: clamp(22px, 2.2vw, 28px); --dock: clamp(44px, 4.6vw, 58px); --stand: clamp(46px, 6svh, 70px);
  --scr: min(100%, 1040px); --win: clamp(140px, 21vw, 230px); --pair: clamp(18px, 2.4vw, 34px);
  display: block; height: clamp(440px, 62svh, 660px); padding-top: 0; }
.pc { position: absolute; left: 50%; top: 0; bottom: 0; width: var(--scr); translate: -50% 0; }
/* The screen: a chunky navy-edged monitor, a soft highlight along its top. */
.pc-face { position: absolute; inset: 0 0 var(--stand); border: 5px solid var(--ink); border-radius: 30px; padding: var(--bezel);
  background: linear-gradient(#5a6bd6, #3d4bb4); box-shadow: inset 0 4px 0 rgba(255, 255, 255, .28), 0 8px 0 var(--ink), 0 22px 40px rgba(18, 34, 110, .25); overflow: hidden; }
/* The desktop itself: a calm sky-to-blossom wallpaper with two big soft shapes. */
.pc-face::before { content: ""; position: absolute; inset: var(--bezel); border-radius: 16px; border: 3px solid var(--ink);
  background: radial-gradient(38% 52% at 16% 88%, rgba(63, 219, 160, .38), transparent 70%), radial-gradient(34% 46% at 88% 22%, rgba(248, 203, 67, .34), transparent 70%),
    linear-gradient(158deg, #d9efff, #e9e2ff 52%, #ffe0ef); }
.pc-face > * { position: absolute; z-index: 1; }
.pc-menu { left: calc(var(--bezel) + 3px); right: calc(var(--bezel) + 3px); top: calc(var(--bezel) + 3px); height: var(--menu); display: flex; align-items: center; gap: 12px;
  padding: 0 14px; border-radius: 13px 13px 0 0; background: rgba(255, 255, 255, .78); border-bottom: 2px solid rgba(18, 34, 110, .18); }
.pc-menu i { width: 36px; height: 7px; border-radius: 4px; background: rgba(18, 34, 110, .22); }
.pc-menu i:nth-child(3) { width: 26px; } .pc-menu i:nth-child(4) { width: 44px; }
.pc-menu .pc-paw { width: 16px; height: 14px; background: radial-gradient(circle 2.6px at 2.6px 4.2px, var(--red) 96%, transparent), radial-gradient(circle 2.6px at 6.4px 2.6px, var(--yellow) 96%, transparent),
  radial-gradient(circle 2.6px at 10.2px 2.6px, var(--mint) 96%, transparent), radial-gradient(circle 2.6px at 13.6px 4.2px, var(--pink) 96%, transparent),
  radial-gradient(6px 4.4px at 8px 10px, var(--logo-blue) 96%, transparent); border-radius: 0; }
.pc-menu b { margin-left: auto; width: 52px; height: 7px; border-radius: 4px; background: rgba(18, 34, 110, .22); }
/* A note, top left: a little window with three coloured dots and a few lines. */
.pc-note { left: 5%; top: calc(var(--bezel) + var(--menu) + 7%); width: 17%; padding: 30px 14px 16px; display: grid; gap: 9px;
  border: 3px solid var(--ink); border-radius: 14px; background: #fffdf7; box-shadow: 0 4px 0 var(--ink); }
.pc-bar { position: absolute; inset: 0 0 auto; height: 20px; border-bottom: 2px solid rgba(18, 34, 110, .14);
  background: radial-gradient(circle 4px at 13px 10px, var(--red) 96%, transparent), radial-gradient(circle 4px at 26px 10px, var(--yellow) 96%, transparent), radial-gradient(circle 4px at 39px 10px, var(--mint) 96%, transparent); }
.pc-note i { height: 6px; border-radius: 3px; background: rgba(18, 34, 110, .16); }
.pc-note i:nth-child(3) { width: 80%; } .pc-note i:nth-child(5) { width: 55%; }
/* Two folders, top right, each with a name under it. */
.pc-icons { right: 6%; top: calc(var(--bezel) + var(--menu) + 7%); display: grid; gap: 22px; }
.pc-icons span { position: relative; width: 58px; height: 44px; border: 3px solid var(--ink); border-radius: 6px 10px 10px 10px; background: linear-gradient(#ffd96a, var(--yellow)); }
.pc-icons span::before { content: ""; position: absolute; left: -3px; top: -11px; width: 24px; height: 9px; border: 3px solid var(--ink); border-bottom: 0; border-radius: 6px 6px 0 0; background: #ffd96a; }
.pc-icons span::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: -16px; height: 6px; border-radius: 3px; background: rgba(18, 34, 110, .2); }
.pc-icons span:nth-child(2) { background: linear-gradient(#9fe9cb, var(--mint)); }
.pc-icons span:nth-child(2)::before { background: #9fe9cb; }
/* The dock: a glassy tray of six tiles in the logo's colours. */
.pc-dock { left: 50%; bottom: calc(var(--bezel) + 8px); translate: -50% 0; height: var(--dock); display: flex; align-items: center; gap: clamp(8px, 1vw, 14px);
  padding: 0 clamp(10px, 1.2vw, 16px); border: 3px solid var(--ink); border-radius: 18px; background: rgba(255, 255, 255, .6); box-shadow: 0 4px 0 rgba(18, 34, 110, .5); }
.pc-dock i { width: calc(var(--dock) - 16px); aspect-ratio: 1; border: 3px solid var(--ink); border-radius: 11px; background: var(--c, var(--logo-blue));
  box-shadow: inset 0 4px 0 rgba(255, 255, 255, .35); }
.pc-dock i:nth-child(1) { --c: var(--logo-blue); } .pc-dock i:nth-child(2) { --c: var(--red); } .pc-dock i:nth-child(3) { --c: var(--yellow); }
.pc-dock i:nth-child(4) { --c: var(--mint); } .pc-dock i:nth-child(5) { --c: var(--pink); } .pc-dock i:nth-child(6) { --c: #b49cff; }
/* On Windows the tray is a flat bar along the bottom with the tiles at its left. */
:root[data-os="windows"] .pc-dock { left: calc(var(--bezel) + 3px); right: calc(var(--bezel) + 3px); bottom: calc(var(--bezel) + 3px); translate: none;
  border: 0; border-top: 2px solid rgba(18, 34, 110, .2); border-radius: 0 0 13px 13px; box-shadow: none; background: rgba(255, 255, 255, .82); }
:root[data-os="windows"] .pc-dock i { border-radius: 6px; }
/* The stand: a neck into the hill and a foot on it. */
.pc-stand { position: absolute; left: 50%; bottom: 0; translate: -50% 0; width: clamp(90px, 13%, 150px); height: calc(var(--stand) + 8px);
  background: linear-gradient(90deg, #3d4bb4, #5a6bd6 50%, #3d4bb4); border: 5px solid var(--ink); border-top: 0; clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%); }
/* The hill the screen stands on, fading into the sky before the words below. */
.born::after { content: ""; position: absolute; z-index: -1; left: -40%; right: -40%; top: calc(100% - var(--stand) * .45); height: 460px; border-radius: 50%;
  background: var(--grass); border: 4px solid var(--ink); box-shadow: inset 0 10px 0 #a9ee7c;
  -webkit-mask-image: linear-gradient(#000 12%, transparent 40%); mask-image: linear-gradient(#000 12%, transparent 40%); }
/* The photo window: in the middle of the desktop, under the menu bar. The photo is the image itself,
   framed by its own padding and border (a white title strip with the three dots), so the scan wipes the
   frame with it (beam.mjs clips the image), then it comes back and stays in its window. */
/* The two photo windows side by side (Owen, 17 Nov: "see both dog and cat photos at the same time"), upright. */
#fan { position: absolute; z-index: 1; left: 50%; top: calc(var(--bezel) + var(--menu) + clamp(14px, 3svh, 30px)); width: calc(var(--win) * 2 + var(--pair)); aspect-ratio: auto; margin: 0; translate: -50% 0; }
#fan .snap { left: 0; right: auto; top: 0; bottom: auto; width: var(--win); translate: none; rotate: none; box-sizing: border-box; padding: 26px 8px 8px; object-fit: cover;
  border-width: 4px; border-radius: 16px; box-shadow: 0 6px 0 var(--ink), 0 14px 24px rgba(18, 34, 110, .22);
  background: radial-gradient(circle 4.5px at 16px 13px, var(--red) 96%, transparent), radial-gradient(circle 4.5px at 30px 13px, var(--yellow) 96%, transparent),
    radial-gradient(circle 4.5px at 44px 13px, var(--mint) 96%, transparent), #fffdf7; }
#fan .snap-cat { left: auto; right: 0; }
/* "Your pet next" (Owen, 17 Nov: "once we've done the first two pets it should show 'Your pet next'"):
   the same window, empty and waiting, the whole of it a link to make your own. */
.pc-next { position: absolute; left: 50%; top: 0; width: var(--win); translate: -50% 0; aspect-ratio: 1 / 1.07; box-sizing: border-box; display: none; place-items: center; align-content: center; gap: 12px;
  padding: 30px 14px 14px; border: 4px solid var(--ink); border-radius: 16px; text-decoration: none; color: var(--ink);
  background: radial-gradient(circle 4.5px at 16px 13px, var(--red) 96%, transparent), radial-gradient(circle 4.5px at 30px 13px, var(--yellow) 96%, transparent),
    radial-gradient(circle 4.5px at 44px 13px, var(--mint) 96%, transparent), #fffdf7;
  box-shadow: 0 6px 0 var(--ink), 0 14px 24px rgba(18, 34, 110, .22); }
.pc-next::before { content: ""; position: absolute; inset: 30px 12px 12px; border: 3px dashed rgba(18, 34, 110, .35); border-radius: 10px; }
.pc-next-plus { position: relative; width: clamp(54px, 6vw, 72px); aspect-ratio: 1; border: 4px solid var(--ink); border-radius: 50%; background: var(--yellow); box-shadow: 0 4px 0 var(--ink); }
.pc-next-plus::before, .pc-next-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 46%; height: 6px; border-radius: 3px; background: var(--ink); translate: -50% -50%; }
.pc-next-plus::after { rotate: 90deg; }
.pc-next-words { position: relative; font: 400 clamp(22px, 2.3vw, 30px)/1.1 var(--display); color: #fff; -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; text-shadow: 0 3px 0 var(--ink); }
.pc-next:hover .pc-next-plus, .pc-next:focus-visible .pc-next-plus { scale: 1.08; }
.pc-next:focus-visible { outline: 4px solid var(--ink); outline-offset: 4px; }
.born.next .pc-next { display: grid; animation: beam-card .62s cubic-bezier(.2, .8, .3, 1) backwards; }
@media (prefers-reduced-motion: reduce) { .born.next .pc-next { animation: none; } }
/* The desktop floor: from under the menu bar to just above the dock; the pets' feet are at its foot. */
#land { --feet: 1; position: absolute; z-index: 1; left: calc(50% - var(--scr) / 2 + var(--bezel) + 8px); right: calc(50% - var(--scr) / 2 + var(--bezel) + 8px);
  top: calc(var(--bezel) + var(--menu)); bottom: calc(var(--stand) + var(--bezel) + var(--dock) + 18px); width: auto; padding: 0; gap: 18%; }
#land .land-still { width: min(30%, 190px); }
#land .land-hint { bottom: 10px; } /* on the desktop floor, between where the two pets stand */
.hero-copy { margin-top: clamp(10px, 2svh, 28px); }
/* The sun: up in the corner of the sky, whole enough to read as the sun, never under the bar's edge. */
.hero::before { top: -40px; }

@media (max-width: 700px) {
  .born { --bezel: 9px; --menu: 20px; --dock: 40px; --stand: 34px; --win: min(38vw, 160px); --pair: 12px; height: clamp(400px, 54svh, 480px); }
  .pc-face { border-width: 4px; border-radius: 22px; }
  .pc-note, .pc-icons { display: none; } /* the photo window alone on a phone's small desktop */
  .pc-menu { gap: 8px; } .pc-menu i:nth-child(4) { display: none; }
  .pc-dock i:nth-child(n+5) { display: none; }
  .hero::before { top: 0; right: -200px; width: 300px; height: 300px; } /* below the bar, never behind its links */
}
