/* ==========================================================================
   SeedliNZ: open a little world
   Palette from the SeedliNZ icon system brand board.
   ========================================================================== */

:root{
  --forest:#0E3B2E;   /* trust, nature, depth   */
  --moss:#2E6B46;     /* mid green, derived     */
  --leaf:#7DA942;     /* growth, freshness      */
  --sage:#CFE0BB;     /* balance, calm, light   */
  --cream:#FAF9F0;    /* warmth, clarity, space */
  --glow:#FFD984;     /* hope, discovery        */
  --blossom:#C75B48;  /* accent: p?hutukawa     */

  --soil:#6B4F3A;
  --ink:var(--forest);
  --ink-soft:#4a6559;

  /* ---------- the surfaces, kept separate from the brand colours ----------
     The six above are the brand and they never change. These say what a
     surface is for, and they are the only things dark mode touches.

     The distinction matters. --cream is also used as a paint, as the light
     text on the dark green chip and skip link, so redefining it for dark mode
     would turn that text dark on a dark background. A page that happens to be
     cream and text that is deliberately cream are two different ideas and
     need two different names. */
  --page:var(--cream);        /* behind everything */
  --card:#fff;                /* panels, cards, anything raised off the page */
  --card-soft:var(--cream);   /* the quieter raised surfaces: portals, basket items, buttons */
  --dock:rgba(250,249,240,.96);
  --art-dim:none;             /* dark mode gentles the lit scenes a little */

  --radius:18px;
  --tap:56px;                 /* minimum touch target */
  /* One gutter for the page and the bottom bar. They are both capped at the
     same width, so if these two ever differ the bar sits wider than the game
     and the edges visibly fail to line up. */
  --gutter:10px;
  --column:520px;

  --shadow:0 2px 0 rgba(14,59,46,.14), 0 8px 20px rgba(14,59,46,.10);
  --ease:cubic-bezier(.33,.9,.4,1);
}

/* On a bigger screen, or when somebody zooms out, a 520px column looks lost in
   the window. The game and the bottom bar both read from --column, so raising
   it widens them together and they cannot fall out of alignment. */
@media (min-width:700px){ :root{--column:640px} }
@media (min-width:1000px){ :root{--column:900px} }
/* Jo, 2026-11-21: "the play area is too narrow... not enough screen room
   for the game". On a 1512px screen a 1000px column left 250px of page
   either side of the picture and the picture itself 40% of the height.
   Wider column, and because the forest and the sunshine corner are sized
   from their own aspect ratio, every pixel of width is half a pixel of
   sky and foreground as well.

   Height is in these queries as well as width, and that is not fussiness.
   The forest is locked to 2:1 so that the god rays are not cropped off the
   top (the thing that went wrong in the taller-forest build), which means
   its height follows the column and cannot be trimmed back by a ceiling.
   A 1180 column on a 800px-tall laptop is a 590px picture that pushes the
   controls under the dock. So the wide column only applies on a screen
   tall enough to hold the picture AND the row of controls under it. */
@media (min-width:1280px) and (min-height:900px){ :root{--column:1180px} }
@media (min-width:1600px) and (min-height:1000px){ :root{--column:1340px} }

*,*::before,*::after{box-sizing:border-box}

html,body{height:100%}
/* the "How to play" link on the seed screen glides down rather than jumping.
   game.js overrides this to "auto" whenever reduced motion is on. */
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{
  margin:0;
  background:var(--page);
  color:var(--ink);
  font:400 17px/1.5 "Nunito","Quicksand","Segoe UI",system-ui,-apple-system,sans-serif;
  -webkit-text-size-adjust:100%;
  -webkit-tap-highlight-color:transparent;
  overscroll-behavior-y:contain;
}

#app{
  max-width:var(--column);
  margin:0 auto;
  min-height:100%;
  /* 96px clears the dock; the status seed floats higher still (bottom:76px
     plus its own 56px), so the reserve has to clear that too, or the last
     row of whichever scene is showing ends up directly behind it. */
  padding:0 var(--gutter) calc(140px + env(safe-area-inset-bottom));
  display:flex;
  flex-direction:column;
  gap:8px;
}

h1,h2,h3{margin:0;font-weight:800;letter-spacing:-.01em}

.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}
.skip{
  position:absolute;left:-999px;top:0;z-index:50;
  background:var(--forest);color:var(--cream);padding:12px 18px;border-radius:0 0 12px 0;
}
.skip:focus{left:0}

.muted{color:var(--ink-soft);font-size:14.5px;margin:6px 0 0}
.centered{text-align:center}

/* ---------- focus ---------- */
:focus-visible{
  outline:3px solid var(--forest);
  outline-offset:3px;
  border-radius:8px;
}

/* ---------- top bar ---------- */
.topbar{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:14px 2px 0;
}
/* The brand. The tagline moved to .sr-only in the markup (Jo: it's chrome,
   and it's already in the painting) rather than shown here, which is what
   leaves room for the music block to sit beside the logo at every width
   down to 320px instead of wrapping underneath it. .wordmark is just
   "SeedliNZ" now, so .brand no longer needs the flex-wrap fallback that
   used to catch it.

   min-width:0 stays load-bearing: a flex item's default min-width is its
   own min-content, not zero, so without it .brand refuses to shrink below
   .vol's content width and the page scrolls sideways. */
.brand{display:flex;align-items:center;gap:6px;min-width:0}
.emblem{width:34px;height:34px;border-radius:50%;flex:none}
.wordmark{font-size:17px;line-height:1.08}

.toolbar{display:flex;gap:6px;flex:none;align-items:center;position:relative}

/* ---------- the settings menu ---------- */
/* Chimes, Motion, Dark and Keys, folded behind one button instead of
   sitting open on every scene. The toggle reuses .icon-btn so it costs
   exactly one button's worth of space; the four it reveals keep their own
   ids, labels and click handlers in game.js untouched, so toggling any of
   them still works exactly as it did when they were always visible. */
.settings-menu{
  position:absolute;top:calc(100% + 8px);right:0;z-index:30;
  display:grid;grid-template-columns:repeat(2,1fr);gap:6px;
  background:var(--card);border:2px solid var(--sage);border-radius:var(--radius);
  padding:8px;box-shadow:var(--shadow);
  width:max-content;
}
.settings-menu[hidden]{display:none}
.settings-toggle[aria-expanded="true"]{background:var(--sage);border-color:var(--moss)}

/* ---------- music volume ---------- */
/* Sits beside the logo at every width down to 320px, including the phone
   sizes that used to wrap it underneath. The "Music" label text is sr-only
   now (it sits between a music note and a song name, so it isn't telling
   anyone anything the row doesn't already say), and the chooser, slider and
   percentage are all sized to their minimum usable width rather than a
   comfortable one, because that's the budget a 320px screen actually has
   once the emblem and "SeedliNZ" are on the same row. */
.vol{
  display:flex;align-items:center;gap:3px;min-width:0;
  background:var(--card);border-radius:14px;box-shadow:var(--shadow);
  padding:0 5px;height:44px;
}
.vol-label{
  display:flex;align-items:center;
  font-size:9.5px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;
  color:var(--ink-soft);white-space:nowrap;cursor:pointer;
}
.vol-out{
  font-weight:800;font-size:10px;line-height:1;color:var(--moss);min-width:22px;text-align:right;
  font-variant-numeric:tabular-nums;
}
.vol.off .vol-out{color:var(--ink-soft)}

/* The track chooser. A plain select, styled to sit beside the logo rather
   than look like a form control. The native arrow is left alone on purpose:
   it is the thing that says "this opens", and replacing it with a drawn one
   is how a select stops looking like a select. 64px only shows the start of
   most titles; that's the native select clipping its own closed-state text,
   the same trade a narrow phone already makes everywhere else in this bar.
   The full title is always there once it's open, which is what matters. */
.track-pick{
  font-size:9px;font-weight:800;letter-spacing:.02em;text-transform:uppercase;
  font-family:inherit;line-height:1;color:var(--ink);
  background:var(--card-soft);border:2px solid var(--sage);border-radius:9px;
  padding:5px 1px 5px 5px;cursor:pointer;
  max-width:64px;
}
.track-pick:focus-visible{outline:3px solid var(--forest);outline-offset:2px}

.vol-range{
  -webkit-appearance:none;appearance:none;
  width:34px;height:40px;                /* tall hit area, short visible track */
  background:transparent;margin:0;cursor:pointer;
}
.vol-range:focus{outline:none}
.vol-range:focus-visible{outline:3px solid var(--forest);outline-offset:2px;border-radius:8px}

.vol-range::-webkit-slider-runnable-track{
  height:10px;border-radius:999px;
  background:linear-gradient(to right,
    var(--leaf) 0, var(--leaf) var(--fill,35%),
    var(--sage) var(--fill,35%), var(--sage) 100%);
}
.vol-range::-moz-range-track{
  height:10px;border-radius:999px;background:var(--sage);
}
.vol-range::-moz-range-progress{height:10px;border-radius:999px;background:var(--leaf)}

.vol-range::-webkit-slider-thumb{
  -webkit-appearance:none;appearance:none;
  width:22px;height:22px;border-radius:50%;
  background:var(--forest);border:3px solid var(--card);
  box-shadow:0 1px 4px rgba(14,59,46,.4);
  margin-top:-6px;                       /* centre on the 10px track */
  transition:transform .14s var(--ease);
}
.vol-range::-moz-range-thumb{
  /* keep in step with the webkit thumb above; Firefox centres it itself, so
     there is no margin to adjust here */
  width:22px;height:22px;border-radius:50%;
  background:var(--forest);border:3px solid var(--card);
  box-shadow:0 1px 4px rgba(14,59,46,.4);
}
.vol-range:active::-webkit-slider-thumb{transform:scale(1.18)}
.vol-range:active::-moz-range-thumb{transform:scale(1.18)}

.vol.off .vol-range::-webkit-slider-thumb{background:var(--ink-soft)}
.vol.off .vol-range::-moz-range-thumb{background:var(--ink-soft)}

/* ==========================================================================
   The top bar

   Used to need a breakpoint here: the brand (logo + "SeedliNZ" + music
   block) and the toolbar (Chimes, Motion, Dark, Keys, each its own button)
   together wanted more width than a 320–999px screen had on one line, so
   below 999px the toolbar dropped to its own line under the brand. Now
   that the four are folded behind one Settings button (see .settings-menu
   above), the toolbar is one button wide instead of four, and the whole
   row fits at 320px without wrapping; brand keeps min-width:0 so it's the
   one that gives way if it ever has to. */
.brand{min-width:0}
.toolbar{flex:none}
/* label text dropped first, same as the dock buttons below 330px, so the
   gear still reads as a button rather than crowding the music block out */
@media (max-width:330px){
  .settings-toggle .lbl{display:none}
  .settings-toggle{min-width:44px;min-height:44px;padding:4px}
}
.icon-btn{
  min-width:48px;min-height:48px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;
  border:2px solid transparent;border-radius:14px;
  background:var(--card);color:var(--ink);
  font:inherit;font-size:9.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;
  cursor:pointer;box-shadow:var(--shadow);
  transition:transform .15s var(--ease),background .15s;
}
.icon-btn .ico{font-size:17px;line-height:1}
.icon-btn:active{transform:translateY(2px)}
.icon-btn[aria-pressed="true"]{background:var(--sage);border-color:var(--moss)}
.icon-btn[aria-pressed="true"] .ico{opacity:.5}

/* ---------- help ---------- */
.help{
  background:var(--card);border-radius:var(--radius);padding:16px 18px;box-shadow:var(--shadow);
  border:2px solid var(--sage);
}
.help h2{font-size:16px;margin-bottom:8px}
.help ul{margin:0;padding-left:18px;font-size:15px}
.help li{margin:4px 0}
kbd{
  background:var(--sage);border-radius:6px;padding:1px 6px;
  font:700 13px/1 ui-monospace,monospace;color:var(--forest);
  border-bottom:2px solid rgba(14,59,46,.25);
}
.credit{border-top:2px dotted var(--sage);padding-top:10px;margin-top:12px}
.sound-note{
  border-top:2px dotted var(--sage);padding-top:10px;margin-top:12px;
}
.sound-note strong{color:var(--ink)}
.sound-note em{font-style:normal;font-weight:800;color:var(--moss)}
.credit-link{
  display:inline-block;min-height:32px;line-height:32px;
  color:var(--moss);font-weight:800;text-underline-offset:3px;
}
.text-btn{
  margin-top:12px;min-height:48px;width:100%;
  background:var(--card-soft);border:2px dashed var(--moss);border-radius:14px;
  color:var(--ink);font-weight:700;font-size:15px;line-height:1;cursor:pointer;
}

/* ---------- NPC ---------- */
.npc{display:flex;align-items:center;gap:10px}
.npc[hidden]{display:none}
.npc-face{width:54px;height:54px;flex:none}
.npc-bubble{
  margin:0;position:relative;flex:1;
  background:var(--card);border-radius:16px;padding:11px 14px;
  font-size:15.5px;line-height:1.35;box-shadow:var(--shadow);
  border:2px solid var(--sage);
}
.npc-bubble::before{
  content:"";position:absolute;left:-9px;top:20px;
  width:0;height:0;border:8px solid transparent;border-right-color:var(--sage);
}

/* ---------- scenes ---------- */
.scene{display:flex;flex-direction:column;gap:12px}
.scene[hidden]{display:none}
.scene-h{font-size:20px;text-align:center}

/* ---------- seed choosing ---------- */
/* the first thing anybody ever reads, so it says what the game is */
.first-time{
  margin:0;text-align:center;font-size:15px;line-height:1.45;
  color:var(--ink-soft);
  background:var(--card);border:2px dashed var(--sage);border-radius:var(--radius);
  padding:11px 14px;
}
.first-time a{
  display:inline-block;min-height:32px;line-height:32px;
  color:var(--moss);font-weight:800;text-underline-offset:3px;white-space:nowrap;
}

/* The heading and its "?" share a line, same reasoning as the companion
   strip: a short label plus a small disclosure trigger beats a heading
   with a paragraph permanently under it. */
.chooser-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.chooser-head .scene-h{text-align:left;margin:0}

/* Three named choices stay on one row, including at 320 CSS pixels. */
.seed-grid{display:grid;grid-template-columns:.9fr 1fr 1.2fr;gap:4px}
.seed-card{
  min-width:0;display:flex;align-items:center;gap:3px;
  min-height:48px;padding:4px 2px;
  background:var(--card);border:2px solid var(--sage);border-radius:10px;
  box-shadow:var(--shadow);cursor:pointer;font:inherit;color:var(--ink);text-align:left;
  transition:transform .18s var(--ease),border-color .18s;
}
.seed-card:hover,.seed-card:focus-visible{border-color:var(--leaf);transform:translateY(-3px)}
.seed-card:active{transform:translateY(0)}

/* the grown plant, drawn by the same code that draws yours */
.seed-art{
  display:block;flex:none;
  width:20px;height:34px;
  background:linear-gradient(#eaf3df,#dcecd0);
  border-radius:8px;padding:3px 1px;
}
/* no overflow:visible here: the viewBox already contains the whole plant,
   so nothing should be escaping the card */
.seed-art svg{width:100%;height:100%;display:block}
/* the blooms ease open when the card appears, once */
.seed-art .bloom{animation-duration:.9s}

.seed-words{display:flex;flex-direction:column;gap:2px;min-width:0}
.seed-name{font-weight:800;font-size:12px;white-space:nowrap}
.seed-note{font-size:12.5px;color:var(--ink-soft);line-height:1.3}

.plant-switch{padding:0}
.plant-switch .seed-grid{margin-top:4px}
.plant-switch .seed-note{display:none}
.plant-switch .basket-h{font-size:12px}
.plant-switch .who-info-btn{width:44px;min-height:44px;height:44px}
@media (max-width:559px){
  .plant-switch .chooser-head{padding-left:64px}
}
@media (min-width:430px){
  .seed-card{gap:8px;padding:6px 10px;min-height:var(--tap)}
  .seed-art{width:30px;height:44px}
  .seed-name{font-size:14px}
}

/* ---------- the home painting: open a little world ----------
   Replaces the four portal tiles above. One painted scene, with all five
   signposts standing in it, used as the destinations rather than a grid of
   doors. See game/README.md "Where this artwork came from" for its
   provenance, and docs/phase-2/10-open-decisions.md decision 3 for why a
   sixth dock button is no longer the way Guerrilla Gardeners is entered.

   aspect-ratio keeps the width-to-height ratio of the visible SLICE of
   home-painting.jpg exactly fixed at every screen width: the source is
   1065 by 710, and 130px is cropped from the top (the baked wordmark and
   placeholder counters, which the real header and #hub-resources already
   cover) and 130px from the bottom (the baked companion strip, which
   .who-pick below replaces with a real, interactive one), leaving a 1065
   by 450 window. object-fit:cover with the default centred position
   crops exactly that evenly off the top and bottom and never touches the
   left or right edge, because the container's width always matches the
   image's own width at this ratio. That is what makes the sampled signpost
   percentages below trustworthy at any viewport: nothing is ever cropped
   sideways, so x stays x. */
.hub-stage{
  position:relative;
  aspect-ratio:1065/450;
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
  border:3px solid var(--card);
}
.hub-art{position:absolute;inset:0;display:block;width:100%;height:100%}
.hub-art-image{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 50%}
.home-share-toggle{
  display:none;
  position:absolute;right:10px;bottom:10px;z-index:4;width:52px;height:52px;
  padding:4px;border:2px solid var(--cream);border-radius:12px;
  background:var(--cream);box-shadow:var(--shadow);cursor:pointer;
}
.home-share-toggle img{display:block;width:100%;height:100%;object-fit:contain}
.home-share-popover{
  position:absolute;right:10px;bottom:70px;z-index:5;width:min(310px,calc(100% - 20px));
  display:flex;align-items:center;gap:10px;padding:10px;
  background:var(--card);color:var(--ink);border:2px solid var(--sage);
  border-radius:14px;box-shadow:var(--shadow);font-size:13px;line-height:1.35;
}
.home-share-popover .share-qr{width:72px;height:72px;flex:none}
.home-share-popover .share-words{gap:4px}
.home-share-popover .share-words strong{font-size:14px}
.home-share-popover .share-words p{margin:0;font-size:12px}
.home-share-popover .share-btn{min-height:44px;padding:7px 10px;font-size:12px}
.home-share-popover[hidden]{display:none}

/* Five sampled positions, not guessed ones: see the HTML comment above the
   markup for how. Circular and centred on the point the same way .lot-spot
   is, and for the same reason: a button sized from --tap (56px) never
   shrinks below the project's touch-target floor, however small the
   painting itself scales down on a narrow phone. */
.hub-signs{position:absolute;inset:0}
.sign-spot{
  position:absolute;
  min-width:var(--tap);min-height:var(--tap);
  transform:translate(-50%,-50%);
  border:none;background:none;padding:0;cursor:pointer;
  border-radius:50%;
}
.sign-spot::before{
  content:'';position:absolute;inset:-2px;border-radius:50%;
  background:radial-gradient(circle,rgba(255,217,132,.5),transparent 68%);
  opacity:0;transition:opacity .2s var(--ease);
}
.sign-spot:hover::before,.sign-spot:focus-visible::before{opacity:1}
.sign-spot:active{transform:translate(-50%,-50%) scale(.95)}

/* Carrying totals, over the painting's own sky and treetop corner, which is
   clear of every signpost. A solid chip rather than a transparent one, so
   the numbers stay legible whatever is painted behind them. */
/* Three chips, not the four Jo's reference sketches: seeds, leaves and
   berries, what the basket actually carries. There is only a sliver of
   clear sky above "The Forest" sign to work with at a 320px screen (the
   crop below leaves about 10% of the stage's height before its lettering
   starts), not enough room for a second row without sitting on top of it,
   so the honest fix was fewer, smaller chips in one row rather than four
   crowded into two. */
.hub-resources{
  position:absolute;top:3%;right:3%;
  display:flex;gap:4px;flex-wrap:nowrap;
}
.hub-res{
  display:flex;align-items:center;gap:2px;
  background:rgba(14,59,46,.85);color:var(--cream);
  border-radius:999px;padding:2px 6px 2px 4px;
  font-weight:800;font-size:11px;line-height:1.3;
}
.hub-res svg{width:13px;height:13px;flex:none}

/* ---------- the companion strip ---------- */
.hub-wrap{display:flex;flex-direction:column;gap:12px}
/* Visual order only: .who-pick sits below the painting on screen, matching
   the strip along the bottom of it in Jo's artwork, while the markup puts
   it first so keyboard and screen-reader order reaches the companion
   choice before the five destinations. Every current browser keeps tab
   order tied to the DOM rather than to this property, which is exactly
   the split being relied on here. */
.hub-wrap .who-pick{order:2}
.hub-wrap .hub-stage{order:1}
/* "?" and Continue sit beside the heading now, not trailing the card row
   (Jo's words: "to reduce space") - .who-head is its own compact flex row
   above .who-strip, which holds nothing but the cards now. */
.who-head{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.who-head .who-h{flex:1 1 auto;margin:0}
.who-strip{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.who-info-btn{
  flex:0 0 auto;width:var(--tap);height:var(--tap);
  border:2px solid var(--sage);border-radius:50%;
  background:var(--card-soft);color:var(--ink);
  font-weight:800;font-size:17px;line-height:1;cursor:pointer;
}
.continue-btn{width:100%;margin-top:10px;background:var(--leaf)}
.continue-ico{width:20px;height:20px;flex:none}

/* ==========================================================================
   The stage (sky + ground)
   ========================================================================== */
.stage{
  position:relative;
  /* Sized from the viewport, which this stylesheet did not do anywhere before
     2026-10-17: every stage height was a fixed pixel number, so on a tall
     phone the picture stayed 280px and the rest of the screen was whatever
     else happened to be on the page. Hiding text would not have changed that
     by a single pixel. Making the game fill the screen is a sizing change.

     svh and not vh: vh on mobile Safari is the LARGEST viewport, so the
     picture would sit partly under the browser chrome on first paint.

     The 240px floor is the number the grove art was actually composed
     against, and the ceiling stops the picture swallowing the controls on a
     tall desktop. A clamp on svh is safer than the fixed heights it replaces
     because it is a function of height by construction, which is exactly the
     measurement the old width-only media query got wrong. */
  /* Jo, 2026-11-21: "should be taller, with more game space, sky,
     foreground. Way too much room for instructions and buttons, not
     enough screen room for the game." 42svh gave the picture 40% of a
     laptop screen with the rest going to chrome. 58svh with a 640 ceiling
     puts it where the game is the thing on the page and the controls are
     the strip underneath it. */
  height:clamp(300px, 58svh, 640px);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
  background:linear-gradient(#CFE0BB,#eaf3df 62%);
  border:3px solid var(--card);
}
.sky{position:absolute;inset:0}
/* The sunshine corner has a painted sky now, so this gradient would only sit
   on top of it. The class is kept because the clouds live inside .sky and
   need its full-stage box to drift across. */
.sky.sunny{background:none}

.sun{
  position:absolute;top:18px;right:22px;width:46px;height:46px;border-radius:50%;
  background:var(--glow);box-shadow:0 0 0 10px rgba(255,217,132,.3),0 0 0 22px rgba(255,217,132,.16);
}
.sun.big{
  width:64px;height:64px;top:14px;right:18px;
  animation:pulse 7s ease-in-out infinite;
}
@keyframes pulse{0%,100%{box-shadow:0 0 0 10px rgba(255,217,132,.32),0 0 0 24px rgba(255,217,132,.16)}
50%{box-shadow:0 0 0 16px rgba(255,217,132,.34),0 0 0 34px rgba(255,217,132,.12)}}

/* A cloud is weather, not a panel, so these whites are literal and stay
   literal in both themes. They were briefly caught by a blanket swap of white
   backgrounds to the card token, which in dark mode turned the cloud body
   into a dark blob while its two puffs, written as box-shadow, stayed white.
   The lesson, left here on purpose: the artwork and the furniture both happen
   to be white, and only one of them is allowed to change. */
.cloud{
  position:absolute;height:22px;border-radius:999px;background:#fff;opacity:.92;
  box-shadow:18px -8px 0 -2px #fff, 38px 2px 0 -5px #fff;
}
/* Clouds at night are still clouds. They only soften, so they read as lit by
   the same low sun the scene behind them is lit by, never as dark shapes. */
body.dark .cloud{ background:#eef4ee;opacity:.72;box-shadow:18px -8px 0 -2px #eef4ee, 38px 2px 0 -5px #eef4ee }
body.dark .cloud.c2{ opacity:.6 }
body.dark .cloud.c3{ opacity:.48 }
body.dark .basket-row .feed-btn.empty{color:var(--ink);border-color:var(--ink-soft)}
body.dark .basket-row .feed-btn.empty .feed-ico svg circle,
body.dark .basket-row .feed-btn.empty .feed-ico svg path{fill:var(--ink);stroke:var(--ink)}
body.dark .basket-row .bitem[aria-pressed="true"]{background:var(--card-soft)}
body.dark #scene-garden .stage-caption{color:var(--ink-soft)}
body.dark #scene-garden .pip.full{background:var(--ink-soft)}
.cloud.c1{width:52px;top:30px;left:-70px;animation:drift 42s linear infinite}
.cloud.c2{width:38px;top:62px;left:-70px;animation:drift 58s linear infinite 6s;opacity:.75}
.cloud.c3{width:62px;top:96px;left:-70px;animation:drift 74s linear infinite 18s;opacity:.6}
.cloud.c4{width:44px;top:14px;left:-70px;animation:drift 50s linear infinite 28s;opacity:.8}
@keyframes drift{from{transform:translateX(0)}to{transform:translateX(640px)}}

/* The drawn hill. No scene uses it any more: the garden and the sunshine
   corner both have painted hills now. Kept rather than deleted because it
   costs nothing and is the thing to reach for if a scene ever needs a quick
   horizon again. */
.hill{
  position:absolute;left:-10%;right:-10%;bottom:78px;height:90px;
  background:var(--leaf);opacity:.32;border-radius:50% 50% 0 0;
}

/* Choosing a plant lives inside the garden now rather than as a screen of
   its own (game/index.html has the reasoning). Keep this inner stack a little
   tighter than the outer scene so the play area keeps more of the screen. */
.garden-main{display:flex;flex-direction:column;gap:8px}
.garden-main[hidden]{display:none}

/* The garden backdrop.
   Anchored to the bottom, so what is kept is always the ground things stand
   on and what is lost is sky. The second backdrop made this easier than the
   first: the original had a round stone patio the plant had to land on, and
   this one is open sand right across, so the plant and the decoration spaces
   can sit anywhere along the bottom. At 2.21:1 against a stage running from
   about 1.79:1 to 2.14:1 the crop is off the sides at most sizes anyway. */
.garden-art{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;object-position:50% 100%;
}

/* The ground is now only a place to stand things, not a thing you can see.
   Its green gradient and the hard green line along its top have gone, because
   the lawn is in the painting. It still has to exist and still has to be this
   height: the plant sits 34px up from its bottom edge, and the decoration
   spaces are positioned against it. */
.ground{
  position:absolute;left:0;right:0;bottom:0;height:96px;
}

/* ---------- the plant ---------- */
.plant-wrap{
  position:absolute;left:50%;bottom:34px;transform:translateX(-50%);
  width:170px;height:210px;z-index:1;pointer-events:none;
  display:flex;align-items:flex-end;justify-content:center;
}
.plant-holder{width:100%;height:100%;display:flex;align-items:flex-end;justify-content:center}
.plant-holder svg{width:100%;height:100%;overflow:visible}

#plant{transform-origin:50% 100%}
#plant.sway{animation:sway 1.5s var(--ease)}
@keyframes sway{
  0%{transform:rotate(0)}22%{transform:rotate(-5deg)}
  48%{transform:rotate(4deg)}72%{transform:rotate(-2.5deg)}100%{transform:rotate(0)}
}
#plant.wiggle{animation:wiggle .7s var(--ease)}
@keyframes wiggle{
  0%,100%{transform:scale(1,1)}30%{transform:scale(1.06,.95)}60%{transform:scale(.97,1.05)}
}
#plant.grow-pop{animation:growpop 1s var(--ease)}
@keyframes growpop{0%{transform:scale(.72) translateY(14px)}60%{transform:scale(1.07)}100%{transform:scale(1)}}

.leaf-part{transform-box:fill-box;transform-origin:0% 100%}
#plant.sway .leaf-part{animation:leafsway 1.5s var(--ease)}
@keyframes leafsway{0%,100%{transform:rotate(0)}40%{transform:rotate(6deg)}70%{transform:rotate(-4deg)}}

.bloom{transform-box:fill-box;transform-origin:50% 50%;animation:bloomin .9s var(--ease) backwards}
@keyframes bloomin{from{transform:scale(0)}to{transform:scale(1)}}

/* ---------- sparkles / droplets ---------- */
.sparkles,.droplets{position:absolute;inset:0;pointer-events:none}
.spark{
  position:absolute;font-size:18px;font-weight:800;color:var(--glow);
  text-shadow:0 1px 2px rgba(14,59,46,.35);
  animation:rise 1.2s var(--ease) forwards;
}
@keyframes rise{from{opacity:0;transform:translateY(8px) scale(.6)}
20%{opacity:1}to{opacity:0;transform:translateY(-48px) scale(1.15)}}

.drop{
  position:absolute;top:18px;width:7px;height:11px;border-radius:50% 50% 50% 50%/60% 60% 40% 40%;
  background:#8ecae6;animation:fall .85s ease-in forwards;
}
@keyframes fall{from{opacity:0;transform:translateY(-10px)}
15%{opacity:1}to{opacity:0;transform:translateY(130px)}}

/* ---------- decoration spots ---------- */
.spots{position:absolute;inset:0;pointer-events:none;z-index:3}
.spot{
  pointer-events:auto;position:absolute;
  width:54px;height:54px;border-radius:50%;
  border:3px dashed rgba(250,249,240,.72);
  background:rgba(14,59,46,.14);
  display:grid;place-items:center;cursor:pointer;padding:0;
  transition:transform .18s var(--ease),background .18s,border-color .18s;
}
.spot-a{left:8px;bottom:18px}
.spot-b{right:8px;bottom:18px}
.spot-c{left:50%;bottom:4px;transform:translateX(-50%)}
.spot-c:active{transform:translateX(-50%) scale(.94)}
.spot.filled{border-style:solid;border-color:rgba(250,249,240,.95);background:rgba(250,249,240,.3)}
.spot.ready{border-color:var(--glow);background:rgba(255,217,132,.3);animation:readypulse 1.6s ease-in-out infinite}
@keyframes readypulse{0%,100%{box-shadow:0 0 0 0 rgba(255,217,132,.6)}50%{box-shadow:0 0 0 9px rgba(255,217,132,0)}}
.spot-art{display:block;width:34px;height:34px;pointer-events:none}
.spot-art svg{width:100%;height:100%}

/* ---------- growth bar ---------- */
.growth-bar{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap}
.growth-pips{display:flex;gap:6px}
.pip{
  width:34px;height:9px;border-radius:999px;background:var(--sage);
  transition:background .4s var(--ease);
}
.pip.on{background:var(--leaf)}
.pip.full{background:var(--forest)}
.stage-caption{margin:0;font-weight:800;font-size:15.5px;color:var(--moss)}

/* ==========================================================================
   Activities
   ========================================================================== */
.activities{display:flex;gap:10px;align-items:stretch}

.big-btn{
  min-height:var(--tap);
  display:flex;align-items:center;justify-content:center;gap:10px;
  border:none;border-radius:var(--radius);cursor:pointer;
  font-weight:800;font-size:16px;line-height:1;color:var(--cream);background:var(--forest);
  box-shadow:var(--shadow);padding:12px 18px;
  transition:transform .14s var(--ease),filter .14s;
}
.big-btn:active{transform:translateY(3px);filter:brightness(1.08)}
.water-btn{flex:1 1 44%;background:var(--moss)}
.water-btn .can{width:42px;height:32px;flex:none}
.calm-btn,.wander-btn{width:100%;background:var(--forest)}
.bloom-dot{
  width:20px;height:20px;border-radius:50%;background:var(--glow);flex:none;
  box-shadow:0 0 0 5px rgba(255,217,132,.3);
}
.bloom-dot.leafy{background:var(--leaf);box-shadow:0 0 0 5px rgba(125,169,66,.3)}

/* The chimes are a small piano: eight white keys in a row, five black keys
   floating up between them in the real 2 then 3 pattern. Each white key
   keeps its old chime colour as a stripe along the bottom, so the keyboard
   still reads as the garden's own instrument and not a stock widget. */
.chimes{position:relative;flex:1 1 56%;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:3px}
.chime{
  min-height:var(--tap);border:none;border-radius:14px;cursor:pointer;
  font-weight:800;font-size:18px;line-height:1;color:var(--ink);
  box-shadow:var(--shadow);
  transition:transform .1s var(--ease),filter .1s;
}
.chime.white{
  min-height:78px;min-width:0;padding:0 0 7px;background:#fff;color:var(--forest);
  border-radius:3px 3px 10px 10px;border-bottom:7px solid var(--sage);
  display:flex;align-items:flex-end;justify-content:center;
}
.ch1{border-bottom-color:var(--sage)}
.ch2{border-bottom-color:var(--leaf)}
.ch3{border-bottom-color:var(--glow)}
.ch4{border-bottom-color:#A8CBE0}
.ch5{border-bottom-color:#D6B3D8}
.ch6{border-bottom-color:#F0B78B}
.ch7{border-bottom-color:#C7D88E}
.ch8{border-bottom-color:#A8CBE0}
.chime.black{
  position:absolute;top:0;z-index:2;height:58%;min-height:0;
  width:calc(100% / 8 * .62);left:calc(100% / 8 * var(--at) - 100% / 8 * .31);
  background:#1F2A24;color:#fff;font-size:12px;padding:0 0 5px;
  border-radius:0 0 7px 7px;
  display:flex;align-items:flex-end;justify-content:center;
}
.bk1{--at:1}.bk2{--at:2}.bk3{--at:4}.bk4{--at:5}.bk5{--at:6}
.chime sup{font-size:.55em;line-height:0;vertical-align:super}
.chime:active,.chime.ring{transform:translateY(-6px) scale(1.04);filter:brightness(1.1)}
.chime.black:active,.chime.black.ring{transform:translateY(-3px);filter:brightness(1.6)}
.sun-chimes{width:100%}
.forest-chimes{width:100%;margin-top:10px}
#forest-tunes{margin-top:10px}

/* ---------- tunes found in the forest ----------
   One row of pills above the keys, never two: Jo asked for them on one line
   (2026-11-20). The first version shared the width out between the pills
   and let the name ellipsis, which worked while every name was one short
   word. It stopped working the moment a real two-word title (Your
   Attention) joined the row: sharing width out equally shrank every pill,
   so even "Tūī" came back truncated to "T…", which is worse than the two
   line wrap it was meant to fix.

   Same idiom as the basket tray below: each pill is its own natural size,
   the row never wraps, and if five of them together are wider than the
   screen the row scrolls sideways rather than squeezing anyone's name.
   Scrolling is the one-line promise kept; shrinking a short name nobody
   asked to shrink was never actually it. The full name is always in the
   aria-label regardless. The playing one lifts and brightens the way a
   struck key does, and the keys ring in turn under it. */
.tunes{
  display:flex;flex-wrap:nowrap;gap:6px;margin:0 0 8px;
  overflow-x:auto;-webkit-overflow-scrolling:touch;
  scrollbar-width:thin;overscroll-behavior-x:contain;padding-bottom:2px;
}
.tunes[hidden]{display:none}
/* Jo, 2026-11-21: "the songs are also too large. I want to build a library
   of songs, so need to be smaller". They were var(--tap) tall, which is 56:
   right for a thing you hit once, wrong for a shelf of them you read along.
   36 now, with the name doing the work and the icon kept small beside it. */
.tune{
  flex:none;display:inline-flex;align-items:center;gap:5px;white-space:nowrap;
  min-height:36px;padding:3px 11px;border:2px solid var(--sage);border-radius:999px;
  background:var(--card);color:var(--ink);font-weight:700;font-size:12.5px;line-height:1;cursor:pointer;
  box-shadow:var(--shadow);transition:transform .1s var(--ease),filter .1s,border-color .2s;
}
.tune-icon{width:15px;height:15px;flex:none;display:block}
.tune-icon svg{width:100%;height:100%;display:block}
@media(max-width:899px){.tune-icon{display:none}}
@media(max-width:480px){.tune{font-size:11.5px;padding:3px 8px;min-height:34px}}
.tune:disabled{opacity:.5;cursor:default}
.tune.playing{transform:translateY(-3px);border-color:var(--glow);filter:brightness(1.08)}
body.reduced .tune.playing{transform:none}

/* ---------- basket ---------- */
/* One garden-tools card, one line: the basket (heading over a sideways
   tray of finds) and the three ways to use it, berries, water and mulch,
   side by side. Jo asked for this to hold on a phone as well as a desktop,
   so the buttons stack icon over word and the tray scrolls rather than
   wraps; at 360px wide that is a 95px basket and three 68px buttons. */
/* Capped and centred: on the wider column the three tool buttons were
   stretching to 240px each, which is the "way too much room for buttons"
   half of what Jo asked for on 2026-11-21. The picture gets the width; the
   tools only need to be comfortable. */
.basket-row{display:grid;grid-template-columns:minmax(0,1.4fr) repeat(3,minmax(0,1fr));gap:6px;align-items:stretch;padding:6px;background:var(--card);border:2px solid var(--sage);border-radius:14px;box-shadow:var(--shadow);max-width:720px;margin-left:auto;margin-right:auto;width:100%}
.basket-row .basket{display:flex;flex-direction:column;justify-content:center;align-items:stretch;gap:3px;min-width:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.basket-row .basket-h{flex:none;font-size:10px;letter-spacing:.03em;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.basket-row .basket-items{min-width:0;flex-wrap:nowrap;overflow-x:auto;gap:4px;padding:0 0 2px;margin:0;scrollbar-width:thin;overscroll-behavior-x:contain}
.basket-row .bitem{flex:none;min-width:44px;min-height:44px;padding:2px;border-width:2px;border-radius:10px}
.basket-row .bitem svg{width:22px;height:22px}
.basket-row .feeder{min-width:0}
.basket-row .feed-btn{width:100%;height:100%;min-height:56px;padding:6px 2px 4px;gap:3px;border-radius:12px;flex-direction:column}
.basket-row .feed-txt{font-size:11px;line-height:1.1;text-align:center}
.basket-row .feed-ico svg{width:20px;height:20px}
.basket-row .feed-have{top:-6px;right:-4px;height:18px;min-width:18px;font-size:11px;background:var(--forest);color:var(--cream)}
.basket-row .feed-btn.empty .feed-have{background:var(--sage);color:var(--forest);border:2px solid var(--moss)}
.basket-row .water-btn{min-width:0;height:100%;min-height:56px;gap:3px;padding:4px 2px;font-size:11px;border-radius:12px;flex-direction:column}
.basket-row .water-btn .can{width:26px;height:20px}
.basket-row .mulch-row-btn{height:100%;min-height:56px}
/* The row's own mulch button. It needs its own caption styling rather than
   .mulcher's (position:absolute, sized for the bin standing in the
   picture) since this one sits in normal grid flow, same as Water. */
.mulch-row-btn{
  position:relative;width:100%;min-width:0;min-height:52px;gap:2px;padding:4px 2px;
  font-size:11px;border-radius:12px;background:var(--moss);
  flex-direction:column;justify-content:center;text-align:center;
}
.mulch-row-btn .mulch-row-ico{width:22px;height:24px;flex:none}
.mulch-row-btn.empty{background:var(--sage);color:var(--forest);box-shadow:none;border:3px dashed var(--moss)}
.mulch-row-btn .mulch-have{top:-6px;right:-4px}
/* --sage turns dark in dark mode (it means "a quiet fill", not literally
   sage-coloured, there - see body.dark further down), so the empty state's
   dark-on-dark .forest text all but disappeared. Needs the light sage
   itself, not the token that's since been repurposed. */
body.dark .mulch-row-btn.empty{color:#CFE0BB}
body.dark .mulch-row-btn.empty .mulch-row-ico{opacity:.75}
/* The piano gets the whole width here, with the plant picker underneath:
   the keys are a core, frequent interaction (Jo plays them often) while the
   plant cards only need to be tappable and identifiable, not spacious. */
.garden-choices{display:grid;grid-template-columns:minmax(0,1fr);gap:3px 5px;align-items:center}
.garden-choices .plant-switch{display:contents}
.garden-choices .chimes{grid-column:1;grid-row:1;min-width:0}
.garden-choices .chime.white{min-height:68px;font-size:15px}
.garden-choices .seed-grid{grid-column:1;grid-row:3;margin-top:0;gap:3px}
.garden-choices .seed-card{flex-direction:column;gap:0;padding:1px 0;min-height:44px}
.garden-choices .seed-art{width:12px;height:16px;padding:0}
.garden-choices .seed-name{font-size:9.5px;letter-spacing:-.01em}
.garden-choices .chooser-head{grid-column:1/-1}
.garden-choices .chime:disabled,.basket-row .water-btn:disabled{opacity:.5;cursor:default}
@media (max-width:699px){
  /* Keep the music-making controls as easy to reach as the main actions:
     the piano takes the full row, and the three plant choices share a
     separate full-width row with proper tap width. */
  .garden-choices{gap:3px}
  .garden-choices .chooser-head{grid-column:1;grid-row:2;padding-left:0}
  .garden-choices .chime.white{min-height:64px;font-size:14px}
  .garden-choices .chime.black{font-size:11px}
}
@media (min-width:700px){
  .garden-choices .chime.white{min-height:78px;font-size:17px}
  .garden-choices .seed-card{flex-direction:row;gap:5px;padding:2px 6px;min-height:44px}
  .garden-choices .seed-art{width:18px;height:28px}
  .garden-choices .seed-name{font-size:12px}
}
.garden-main .growth-bar[hidden],#plant-holder[hidden]{display:none}
.basket{
  background:var(--card);border:3px solid var(--sage);border-radius:var(--radius);
  padding:12px 14px;box-shadow:var(--shadow);
}
.basket-h{font-size:14px;text-transform:uppercase;letter-spacing:.08em;color:var(--ink-soft)}
.basket-items{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.basket-items:empty{display:none}
.bitem{
  min-width:var(--tap);min-height:var(--tap);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
  border:3px solid var(--sage);border-radius:14px;background:var(--card-soft);
  cursor:pointer;padding:6px 10px;font-weight:700;font-size:12px;line-height:1;color:var(--ink);
  transition:transform .15s var(--ease),border-color .15s;
}
.bitem svg{width:26px;height:26px}
.bitem:hover{transform:translateY(-2px)}
.bitem[aria-pressed="true"]{border-color:var(--glow);background:#FFF6DF;transform:translateY(-3px)}
.bitem .count{font-size:11px;color:var(--ink-soft)}

/* ---------- sunshine ---------- */
/* She lives inside the plant group now, so her flight is measured from the
   plant rather than from the corner of the sky. That is what makes her land
   on it instead of near it. */
.butterfly{
  position:absolute;left:0;top:0;
  width:52px;height:43px;padding:0;border:none;background:none;cursor:pointer;
  pointer-events:auto;                  /* the group itself ignores taps */
  animation:flutter 7s ease-in-out forwards;
}
.butterfly svg{width:100%;height:100%}
.wing{transform-box:fill-box;transform-origin:85% 50%;animation:flapl .32s ease-in-out infinite alternate}
.wr{transform-origin:15% 50%;animation-name:flapr}
@keyframes flapl{from{transform:rotateY(0)}to{transform:rotateY(62deg)}}
@keyframes flapr{from{transform:rotateY(0)}to{transform:rotateY(-62deg)}}
/* she drifts in, then lands so she is easy to tap */
/* She flies in from the right and settles on your plant. The sweep was wider
   until the mulcher moved to the far right: at 210px she began her flight on
   top of the bin, which looked like she had come out of it. 132px is the most
   she can start at and still have clear sand to fly over. */
@keyframes flutter{
  0%  {transform:translate(132px,-46px)}
  26% {transform:translate(100px,16px)}
  52% {transform:translate(120px,-16px)}
  78% {transform:translate(68px,40px)}
  100%{transform:translate(44px,8px)}       /* settles on the plant */
}
/* ==========================================================================
   The sunshine corner
   --------------------------------------------------------------------------
   Laid out left to right: harakeke, the bird bath, the deck chair. The bath
   and the tui share the same left value, so the bird perches on the rim by
   construction rather than by me nudging numbers until it looks right.
   ========================================================================== */
.sun-bath,.sun-chair{position:absolute;display:block}

/* Repainted 2026-11-20: a sunny meadow with a fence and hills, Jo's own
   reference. The sun sits right at the top of the source, so on a wide
   desktop column the generic .stage clamp (up to 380px against a column up
   to 1000px wide, a ratio over 2.6:1) crops it clean off the one scene
   named after it. Same fix and the same reasoning as the forest stage the
   same day: match the backdrop's own ratio from 700px up with a flat
   ceiling, not one tied to svh, so a short window scrolls a little further
   instead of losing the sun. Every overlay here (the bath, the chair, the
   plant holder) is positioned from its own bottom edge, not a fixed height,
   so a taller stage costs nothing to re-tune. */
@media (min-width:700px){.sun-stage{height:auto;aspect-ratio:1100/494;max-height:640px}}

/* The painted backdrop. Anchored low so the pale sandy foreground, which is
   what everything stands on, is never the part that gets cropped. */
.sun-art{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;object-position:50% 100%;
}

/* Each visitor is grouped with what it visits, so a landing spot is stated
   once in that thing's own coordinates and stays right at every size.

   Left to right along the sand: harakeke, bird bath, deck chair, your plant,
   mulcher. The chair sits between the bath and the plant and still faces
   left, across the bath to the flax, which is where the tui show is. */
.sun-flax-group{position:absolute;left:1%;bottom:2px;width:100px;height:124px}
.sun-flax{position:absolute;inset:0;width:100%;height:100%;display:block}
.sun-bath{left:21%;bottom:6px;width:74px;height:70px}

/* Your own plant, now to the right of the deck chair rather than left of it,
   smaller than it is in the garden because here it is one thing in a view
   rather than the subject. */
.sun-plant-group{
  position:absolute;left:55%;bottom:10px;width:112px;height:140px;
  z-index:1;pointer-events:none;
}
.sun-plant{
  position:absolute;inset:0;
  display:flex;align-items:flex-end;justify-content:center;
}

/* The grove's feeding stone, brought here at a smaller scale. There is no
   gap left between the bath, the chair and your plant to put it in, so it
   sits low in the sand just in front of the bath instead, where the ground
   is otherwise bare. */
.sun-feed-stage{position:absolute;left:15%;bottom:0;width:76px;height:38px;display:block}

/* Drawn facing right, flipped to face left, because the chair should be
   looking at the flax and the bird bath rather than away from them. It now
   sits between the bath and your plant rather than at the far right, so it is
   placed from the left like everything else on this row. */
.sun-chair{left:35%;bottom:4px;width:102px;height:97px;transform:scaleX(-1)}

/* The bird travels between two pieces of scenery, so it is moved by
   transitions from game.js rather than by a keyframe animation: a keyframe
   would have to hold positions that only JavaScript can measure. */
.sun-bird{
  position:absolute;width:26px;height:17px;left:-60px;top:0;
  background:no-repeat center/contain;opacity:0;
  transition:left .95s ease-in-out, top .95s ease-in-out, opacity .45s linear;
}
body.reduced .sun-bird{transition:opacity .2s linear}

/* smaller phones: the three pieces would otherwise crowd each other */
@media (max-width:420px){
  .sun-flax-group{width:78px;height:97px;left:1%}
  .sun-bath{width:58px;height:55px;left:22%}
  .sun-feed-stage{width:58px;height:29px;left:14%;bottom:-2px}
  .sun-chair{width:80px;height:76px;left:38%}
  .sun-plant-group{width:88px;height:110px;left:60%}
  .butterfly{width:44px;height:36px}
  /* tighter again on a small screen, where the bin is much closer in */
  @keyframes flutter{
    0%  {transform:translate(56px,-38px)}
    26% {transform:translate(40px,14px)}
    52% {transform:translate(50px,-14px)}
    78% {transform:translate(26px,32px)}
    100%{transform:translate(18px,6px)}
  }
}
.calm-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.sun-feed-btn{min-height:var(--tap);padding:8px;background:#A8443A}
.sun-feed-btn.empty{background:var(--sage);color:var(--forest);box-shadow:none;border:2px dashed var(--moss)}
.sun-berry-icon{width:24px;height:24px;flex:none}
.sun-berry-icon svg{display:block;width:100%;height:100%;fill:#C75B48}
.sun-berry-icon path{fill:none;stroke:#C75B48;stroke-width:1.8;stroke-linecap:round}
.sun-feed-btn.empty .sun-berry-icon svg circle{fill:var(--moss)}
.sun-feed-btn.empty .sun-berry-icon path{stroke:var(--moss)}
.bird-dot{
  width:16px;height:16px;border-radius:50%;
  background:radial-gradient(circle at 35% 35%,#2f7f74,#16213a);
  box-shadow:0 0 0 3px rgba(31,111,99,.22);
}

.rest-line,.find-line{
  margin:0;text-align:center;font-size:14px;color:var(--ink-soft);font-weight:600;
}
@media (max-width:560px){.rest-line,.find-line{font-size:12.5px;line-height:1.35}}

/* ---------- optional scene details ---------- */
/* A description that used to sit open above the scene on every visit,
   now a tap away instead. Closed by default; the summary alone carries
   the "one line" cost the review asked for. */
.scene-note{margin:0 0 8px}
.scene-note summary{
  display:inline-flex;align-items:center;gap:5px;min-height:32px;
  padding:2px 4px;cursor:pointer;list-style:none;
  color:var(--moss);font-weight:800;font-size:13px;line-height:1.2;
}
.scene-note summary::-webkit-details-marker{display:none}
.scene-note summary::before{content:'\25B8';transition:transform .15s var(--ease)}
.scene-note[open] summary::before{transform:rotate(90deg)}
.scene-note .find-line{
  text-align:left;font-size:14.5px;font-weight:500;margin:4px 0 0 2px;
}

/* ---------- forest ---------- */
.forest-stage{height:clamp(320px, 56svh, 520px)}
/* The backdrop is 2:1. On a phone the stage is taller than that, so cover
   crops the sides and the whole height of the painting shows. From 700px
   up the stage takes the painting's own shape instead of a fixed 300px
   (Jo, 2026-11-20): at the 980px desktop column that is 490px tall, which
   is the difference between seeing the god rays and the canopy or losing
   the top 40% of the picture. Everything on the stage is positioned by
   percentage, so the finds, the path and the gardener need no change.

   Fixed the same day: the first version capped the height at
   min(64svh,500px), meant as a ceiling for a short window. On a WIDE but
   SHORT window, svh alone can land below width/2 and the cap wins, which
   silently breaks the 2:1 match and crops the top again, the exact fault
   this rule exists to fix, just from the opposite side. --column already
   bounds the width to 1000px at its largest, so aspect-ratio alone never
   asks for more than 500px of height; the flat 520px ceiling below is
   only a backstop against a future wider --column, not something normal
   browsers should ever reach. A short window scrolls a little further
   instead of losing the god rays, which is the right trade: Jo asked to
   see the picture, not to avoid a scrollbar. */
@media (min-width:700px){.forest-stage{height:auto;aspect-ratio:2/1;max-height:660px}}
.forest-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.finds{position:absolute;inset:0}
.find{
  position:absolute;width:var(--tap);height:var(--tap);
  border:none;background:none;padding:0;cursor:pointer;
  display:grid;place-items:center;border-radius:50%;
  transition:transform .2s var(--ease);
}
.find svg{width:34px;height:34px;filter:drop-shadow(0 2px 3px rgba(14,59,46,.4))}
.find::before{
  content:"";position:absolute;inset:6px;border-radius:50%;
  background:radial-gradient(rgba(255,217,132,.55),transparent 70%);
  opacity:0;transition:opacity .25s;
}
.find:hover::before,.find:focus-visible::before{opacity:1}
.find:hover,.find:focus-visible{transform:scale(1.12)}
.find.taken{animation:collected .55s var(--ease) forwards;pointer-events:none}
@keyframes collected{to{transform:translateY(-40px) scale(.2);opacity:0}}

/* Jo, 2026-11-21: "the leaves, seeds, berries should be smaller so they fit,
   without scrolling". Downtown shows eight or nine of these at once, and at
   13px with 12px of side padding that was wider than the street. Smaller
   type, tighter padding and a smaller icon: nine chips come to about 740px
   now against the 980 the card has, so the row ends rather than runs on. */
.found-row{display:flex;gap:4px;justify-content:center;min-height:24px;flex-wrap:wrap}
.found-chip{
  display:flex;align-items:center;gap:4px;
  background:var(--card);border:2px solid var(--sage);border-radius:999px;
  padding:3px 7px;font-weight:700;font-size:10.5px;line-height:1;color:var(--ink);white-space:nowrap;
}
.found-chip svg{width:14px;height:14px;flex:none}
.chip-n{opacity:.85}
/* Jo, 2026-11-21: "inventory buttons too large". The word is nearly all of
   the width of a chip: 'Berries x1' is 54px of text against 14px of icon.
   On a phone the word goes and the icon carries it, which is the reading
   the row is for anyway (what have I got, how many), and the name stays on
   the chip as an aria-label for anyone who cannot see the icon. */
@media (max-width:860px){
  .found-chip{padding:2px 5px;gap:3px;font-size:11px}
  .found-chip .chip-word{display:none}
  .found-chip svg{width:15px;height:15px}
  .found-row{min-height:22px;gap:2px}
}
.found-chip.done{border-color:var(--leaf);background:#f1f7e6;color:var(--forest)}

/* Downtown's own inventory strip (#lot-row): the same chips as the
   forest's, but this one is seen, not sr-only, so four chips used to
   wrap to a second row on a 320px screen. One scrollable row instead;
   nothing here is wider than it needs to be, so there's rarely anything
   to actually scroll. */
#lot-row{
  flex-wrap:nowrap;justify-content:flex-start;
  overflow-x:auto;-webkit-overflow-scrolling:touch;
  padding-bottom:2px;
}
#lot-row .found-chip{flex:none}

/* ---------- sharing ---------- */
.share-card{
  display:flex;align-items:center;gap:14px;
  background:var(--card);border:3px solid var(--sage);border-radius:var(--radius);
  padding:12px 14px;box-shadow:var(--shadow);
}
.share-qr{
  width:96px;height:96px;flex:none;display:block;border-radius:8px;
  background:var(--card-soft);
}
@media (max-width:379px){ .share-qr{width:76px;height:76px} }
.share-words{display:flex;flex-direction:column;gap:6px;min-width:0}
.share-words strong{font-size:16px}
.share-words p{margin:0;font-size:13.5px;line-height:1.35;color:var(--ink-soft)}
.share-btn{
  align-self:flex-start;background:var(--moss);
  padding:10px 16px;font-size:14.5px;gap:8px;min-height:var(--tap);
}
.share-ico svg{width:20px;height:20px;display:block}

/* ---------- Seedlinz elsewhere ---------- */
.elsewhere{
  background:var(--card);border:3px solid var(--sage);border-radius:var(--radius);
  padding:12px 14px;box-shadow:var(--shadow);
}
.elsewhere-h{
  font-size:12px;text-transform:uppercase;letter-spacing:.08em;
  color:var(--ink-soft);margin-bottom:8px;
}
.link-list{list-style:none;margin:0;padding:0;display:grid;gap:7px}
@media (min-width:430px){
  .link-list{grid-template-columns:1fr 1fr}
  /* an odd one out spans the row rather than sitting as a lonely half */
  .link-list li:last-child:nth-child(odd){grid-column:1 / -1}
}

.out-link{
  display:flex;align-items:center;gap:11px;
  min-height:var(--tap);padding:8px 12px;
  border:2px solid var(--sage);border-radius:14px;
  background:var(--card-soft);color:var(--ink);text-decoration:none;
  transition:transform .15s var(--ease),border-color .15s,background .15s;
}
.out-link:hover,.out-link:focus-visible{
  transform:translateY(-2px);border-color:currentColor;background:var(--card);
}
.out-ico{flex:none;display:block;width:28px;height:28px}
.out-ico svg{width:100%;height:100%;display:block}
.out-words{display:flex;flex-direction:column;line-height:1.2;min-width:0}
.out-words strong{font-size:15px;color:var(--ink)}
.out-words em{font-style:normal;font-size:12.5px;color:var(--ink-soft)}
.out-away{margin-left:auto;color:var(--ink-soft);font-size:15px;flex:none}

/* each one carries its own colour on the icon only, so the row stays calm */
.l-facebook{color:#1877F2}
.l-tiktok{color:#0E3B2E}
.l-spotify{color:#1DB954}

.elsewhere-note{
  margin:9px 0 0;font-size:12px;line-height:1.35;color:var(--ink-soft);
}

/* ==========================================================================
   The shared grove
   ========================================================================== */

/* the whole scene is kept short so the giving buttons are visible on arrival,
   not stranded below the fold under a big picture */
#scene-grove{gap:6px}
/* The grove needs height, more than any other scene, and the reason is the
   fill mode. The picture is laid in with preserveAspectRatio "xMidYMax
   slice", so on a stage wider than the artwork the scale is set by the width
   and the stage height alone decides how much of the land you see at all. At
   140px only the bottom 90 units of a 145 unit landscape were visible and one
   grown tree stood 45% as tall as the whole frame. At 280px you see the lot
   and a tree is 22% of it.

   Worth knowing before trimming this again: a bare .grove-stage rule loses
   its specificity fight with the .stage{height:330px} rule further down, so
   for a long time the 140px here never applied at all and the art was in
   practice composed against a 330px stage. Shrinking the stage is what made
   the trees look enormous, not the drawing. Keep the doubled class, and judge
   it by the picture rather than by the rule. */
/* The grove sky, sampled from the painting the grove now follows. It is the
   one sky in the game that gets very slightly darker going down rather than
   lighter, which is what the painting does and is most of why that soft sage
   haze reads as distance rather than as a flat wash. */
/* The grove gets a little more than the others, and the README says why:
   it is the one scene where height is not decoration. slice means the stage
   height alone decides how much of the landscape is visible, so trimming it
   crops the land and makes the trees look enormous. Growing it only ever
   reveals more sky, because every stage is bottom anchored. */
.stage.grove-stage{height:clamp(240px, 46svh, 420px);background:linear-gradient(#AFC8A3,#9CB999 58%,#97B495)}

.grove-empty{
  position:absolute;left:0;right:0;bottom:16px;margin:0;
  color:var(--cream);font-weight:800;font-size:14.5px;
  text-shadow:0 1px 3px rgba(14,59,46,.7);text-align:center;
}
.grove-empty[hidden]{display:none}

/* ---------- the grove landscape ---------- */
.grove-art{position:absolute;inset:0;width:100%;height:100%;display:block}

/* A thing eases in when it arrives, and only then.

   This selector used to be .g-tree, .g-flower, .g-shroom, .g-scrub, .g-fern,
   which is every living thing in the grove, and it was wrong in a way that
   was hard to see from the stylesheet. The markup is rebuilt by setting
   innerHTML, a rebuilt element runs its animations from the start, and the
   grove was rebuilt on every gift and on every twenty second refresh. So the
   whole grove flew in again constantly, including when nothing at all had
   changed, and the one tree somebody had just planted was lost in it.

   The drawing code now works out what is genuinely new and marks it g-new,
   and the render skips the rebuild entirely when the totals have not moved.
   Keep this on g-new. Putting it back on the kinds would undo all of it. */
.g-new{animation:arrive .7s var(--ease) backwards}
.g-fern{transform-box:fill-box;transform-origin:50% 100%}
.g-tree{transform-box:fill-box;transform-origin:50% 100%}
/* so the undergrowth leans from its feet too, rather than spinning about
   its own middle when a note goes through */
.g-scrub{transform-box:fill-box;transform-origin:50% 100%}
/* the track fades in rather than scaling, because a path that grows out of
   nothing from its own centre looks like a worm */
.g-track.g-new{animation:wear 1.6s var(--ease) backwards}
@keyframes wear{from{opacity:0}to{opacity:1}}

/* ---------- the river ----------
   It flows all the time, because a river does. The highlight down the middle
   is dashed and the dashes travel, which is the cheapest convincing moving
   water there is: no extra elements, nothing recalculated per frame, and it
   costs nothing when the tab is in the background. */
.riv-sheen{stroke-dasharray:11 21;animation:flow 9s linear infinite}
@keyframes flow{to{stroke-dashoffset:-32}}

/* A gift of water runs down it: the highlight hurries, and the water
   freshens and settles. Three turns of a one second flow rather than a
   speed change, so it ends back in step with the slow one underneath it. */
.g-river.g-surge .riv-sheen{animation:flow 1s linear 3}
.g-river.g-surge .riv-body{animation:freshen 2.4s var(--ease)}
@keyframes freshen{
  0%,100%{fill:#3E7C9B}
  35%    {fill:#57A6C6}
}

/* ---------- a note running through the grove ----------
   A gift of notes sends one movement across the grove from one side to the
   other: the trees lean and come back in turn, the undergrowth and the two
   framing plants with them, and the water answers as it passes.

   The whole thing rests on --wave, which each element carries inline and
   which is simply how far across the world it stands, in milliseconds. That
   is what makes it one movement passing through rather than everything
   twitching at once, and it is the only part that matters. It is a custom
   property rather than animation-delay because animation-delay is already
   carrying the stagger for things arriving.

   Everything leans by a degree or three. It wants to read as a breath going
   through, not as a gale: this is a quiet game and the grove is somebody
   else's as much as yours. */
.g-wave .g-tree  {animation:leanover 1.5s var(--ease) var(--wave,0ms) both}
.g-wave .g-scrub {animation:leanover 1.3s var(--ease) var(--wave,0ms) both}
.g-wave .g-fern  {animation:leanunder 1.4s var(--ease) var(--wave,0ms) both}
.g-wave .g-frame-l,
.g-wave .g-frame-r{
  transform-box:fill-box;transform-origin:50% 100%;
  animation:leanframe 1.8s var(--ease) var(--wave,0ms) both;
}
@keyframes leanover{
  0%,100%{transform:rotate(0)}
  30%    {transform:rotate(2.4deg)}
  65%    {transform:rotate(-1.2deg)}
}
/* the low stuff bends further and recovers quicker, the way low stuff does */
@keyframes leanunder{
  0%,100%{transform:rotate(0)}
  28%    {transform:rotate(4deg)}
  60%    {transform:rotate(-2deg)}
}
/* the two you are standing between are nearest, so they move least: a near
   thing swinging as far as a far thing is what makes a scene look like paper */
@keyframes leanframe{
  0%,100%{transform:rotate(0)}
  32%    {transform:rotate(1.1deg)}
  68%    {transform:rotate(-.6deg)}
}
/* and the water answers as it goes past */
.g-wave .riv-rip{animation:ripple 1.2s var(--ease) var(--wave,0ms) both}
@keyframes ripple{
  0%,100%{opacity:.5; transform:translateY(0)}
  35%    {opacity:1;  transform:translateY(-.7px)}
}

/* ---------- the birds coming down to feed ----------
   Drawn in the picture at the feeding stone, and invisible until a gift of
   berries brings them down. They have to be drawn in the picture rather than
   in the sky layer the flying birds use, because the flying birds are CSS
   background images on a loop across the stage and cannot be asked to arrive
   anywhere in particular, least of all at a stone in world coordinates.

   Translate values are in user units, not screen pixels: a CSS transform on
   an SVG element works in that element's own coordinate system, and the
   grove's box is 320 across inside a stage about 600 wide, so every number
   here lands about twice as far as it reads. */
.g-feeders{opacity:0}
.g-feeders.g-feeding{opacity:1}
.g-feeder{transform-box:fill-box;transform-origin:50% 100%}
.g-feeding .g-feeder{animation:feedvisit 3.4s var(--ease) backwards}
.g-feeding .g-feeder-b{animation-delay:.5s}
.bird-wing{transform-box:fill-box;transform-origin:30% 20%}
.g-feeding .bird-wing{animation:birdflap 3.4s linear backwards}
.g-feeding .g-feeder-b .bird-wing{animation-delay:.5s}

/* The visit. The first version of this moved the bird seven units across
   and sixteen up, which at this scale is about thirteen screen pixels, so
   it did not read as arriving at all: Jo's words were that it "just appears,
   eats, then literally disappears". It comes a long way in now, from high
   and off to one side, takes a third of the time doing it, and leaves the
   same way. Distance and duration are what make it a flight; opacity on its
   own is just a fade. */
@keyframes feedvisit{
  0%   {opacity:0; transform:translate(52px,-62px) scale(.45) rotate(-12deg)}
  7%   {opacity:1}
  /* dropping in, levelling out as it comes */
  18%  {transform:translate(22px,-26px) scale(.72) rotate(-7deg)}
  30%  {transform:translate(0,0) scale(1) rotate(0deg)}
  /* three pecks at the stone, tipping forward and back */
  38%,52%,66%{transform:translate(0,1.4px) rotate(22deg)}
  45%,59%,73%{transform:translate(0,0) rotate(0deg)}
  82%  {opacity:1; transform:translate(0,0) scale(1) rotate(0deg)}
  /* and away, the other way, so it does not look like a rewind */
  90%  {transform:translate(-24px,-28px) scale(.74) rotate(9deg)}
  100% {opacity:0; transform:translate(-56px,-66px) scale(.45) rotate(14deg)}
}

/* The wing beats while it is travelling and is still while it is eating.
   One animation with a flat middle rather than two, because two would need
   to be started and stopped in step with the one above and would drift. */
@keyframes birdflap{
  0%   {transform:rotate(-34deg)}
  6%   {transform:rotate(14deg)}
  12%  {transform:rotate(-34deg)}
  18%  {transform:rotate(14deg)}
  24%  {transform:rotate(-30deg)}
  30%,82%{transform:rotate(0deg)}
  88%  {transform:rotate(-32deg)}
  94%  {transform:rotate(14deg)}
  100% {transform:rotate(-34deg)}
}

/* ---------- sunshine arriving in the grove ----------
   Shafts of light leaning down from where the sun is. Drawn every time and
   invisible until a gift turns them on, so the light can play without the
   picture underneath being redrawn. They sweep a little as they fade, which
   is the difference between light arriving and a yellow shape appearing. */
.g-shafts{opacity:0;transform-box:fill-box;transform-origin:100% 0}
.g-shafts.g-shine{animation:shafts 2.6s var(--ease)}
@keyframes shafts{
  0%  {opacity:0;   transform:skewX(-2deg)}
  18% {opacity:.62; transform:skewX(0deg)}
  55% {opacity:.48; transform:skewX(1.5deg)}
  100%{opacity:0;   transform:skewX(3deg)}
}

.birds,.flutters{position:absolute;inset:0;pointer-events:none}
.bird[hidden],.flutter[hidden]{display:none}

/* butterflies, brought by the water along with the flowers */
.flutter{
  position:absolute;width:17px;height:14px;left:-24px;
  background:no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20'%3E%3Cellipse cx='12' cy='10' rx='1.2' ry='5' fill='%230E3B2E'/%3E%3Cpath d='M11 9C7 2 1 3 2 9c.8 4 6 5 9 2z' fill='%23FFD984'/%3E%3Cpath d='M13 9c4-7 10-6 9 0-.8 4-6 5-9 2z' fill='%23C75B48'/%3E%3C/svg%3E");
}
.f1{top:58%;animation:wander 34s linear infinite}
.f2{top:70%;animation:wander 44s linear infinite 9s;transform:scale(.8)}
.f3{top:64%;animation:wander 52s linear infinite 21s;transform:scale(.68)}
@keyframes wander{
  0%{left:-8%;transform:translateY(0)}
  25%{transform:translateY(-16px)}
  50%{transform:translateY(6px)}
  75%{transform:translateY(-12px)}
  100%{left:106%;transform:translateY(0)}
}
body.reduced .flutter{animation:none}
body.reduced .f1{left:24%}
body.reduced .f2{left:56%}
body.reduced .f3{left:78%}
/* Real birds, one look per species, each with the three wing positions from
   the reference sheet. They glide most of the time and flap in short
   bursts, because a bird beating its wings without pause looks mechanical
   and reads as a loop. Each one is a background image, so there is still
   nothing to download. */
.bird{
  position:absolute;width:26px;height:17px;
  background:no-repeat center/contain;
  --s:1;                       /* its size, folded into the drift */
  animation-timing-function:linear, steps(1,end);
  animation-iteration-count:infinite,infinite;
  animation-fill-mode:both,none;
}

/* Across and back again, never on the level: the vertical wander is what
   stops it looking like something sliding along a wire. Odd durations so
   no two birds keep time with each other. */
/* named for the birds alone: "drift" is already the clouds and a repeated
   @keyframes name silently replaces the earlier one */
@keyframes birdpath{
  0%   {left:-12%;transform:translateY(0) scale(var(--s))}
  17%  {transform:translateY(-9px) scale(var(--s))}
  34%  {transform:translateY(4px) scale(var(--s))}
  53%  {transform:translateY(-11px) scale(var(--s))}
  71%  {transform:translateY(2px) scale(var(--s))}
  88%  {transform:translateY(-5px) scale(var(--s))}
  100% {left:112%;transform:translateY(0) scale(var(--s))}
}

.b1{top:20px;--s:1;animation-duration:26s,5.3s;animation-delay:0s,.6s}
.b2{top:38px;--s:.84;animation-duration:32s,6.7s;animation-delay:4s,2.4s}
.b3{top:12px;--s:.7;animation-duration:38s,4.9s;animation-delay:11s,3.8s}
.b4{top:48px;--s:.62;animation-duration:44s,7.3s;animation-delay:17s,1.2s}
.b5{top:29px;--s:.55;animation-duration:50s,5.9s;animation-delay:24s,4.6s}

.b-tui{background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 18'><path d='M5 10 0 6v8z' fill='%231d2a46'/><ellipse cx='12' cy='10' rx='7.5' ry='4.4' fill='%231d2a46'/><ellipse cx='13' cy='8.6' rx='4.6' ry='2.6' fill='%231f6f63'/><path d='M9 9c4 0 7 1.6 8 4.4-4 1-8-.8-9-3.4z' fill='%23141d33'/><circle cx='19' cy='7.4' r='3.6' fill='%2316213a'/><circle cx='17.6' cy='10.4' r='1.9' fill='%23fdfbf4'/><path d='M22 7.2q4 .6 5.6 2.2-2.4 .2-5.8-.6z' fill='%2312181f'/><circle cx='20.2' cy='6.8' r='.8' fill='%2312221c'/></svg>");animation-name:birdpath,flap-tui}
@keyframes flap-tui{
  0%,62%   {background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 18'><path d='M5 10 0 6v8z' fill='%231d2a46'/><ellipse cx='12' cy='10' rx='7.5' ry='4.4' fill='%231d2a46'/><ellipse cx='13' cy='8.6' rx='4.6' ry='2.6' fill='%231f6f63'/><path d='M9 9c4 0 7 1.6 8 4.4-4 1-8-.8-9-3.4z' fill='%23141d33'/><circle cx='19' cy='7.4' r='3.6' fill='%2316213a'/><circle cx='17.6' cy='10.4' r='1.9' fill='%23fdfbf4'/><path d='M22 7.2q4 .6 5.6 2.2-2.4 .2-5.8-.6z' fill='%2312181f'/><circle cx='20.2' cy='6.8' r='.8' fill='%2312221c'/></svg>")}
  64%      {background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 18'><path d='M5 10 0 6v8z' fill='%231d2a46'/><ellipse cx='12' cy='10' rx='7.5' ry='4.4' fill='%231d2a46'/><ellipse cx='13' cy='8.6' rx='4.6' ry='2.6' fill='%231f6f63'/><path d='M11 9c1-4 1-7.6-.6-9.4-3 2.4-4 6.4-3 9.6z' fill='%23141d33'/><circle cx='19' cy='7.4' r='3.6' fill='%2316213a'/><circle cx='17.6' cy='10.4' r='1.9' fill='%23fdfbf4'/><path d='M22 7.2q4 .6 5.6 2.2-2.4 .2-5.8-.6z' fill='%2312181f'/><circle cx='20.2' cy='6.8' r='.8' fill='%2312221c'/></svg>")}
  67%      {background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 18'><path d='M5 10 0 6v8z' fill='%231d2a46'/><ellipse cx='12' cy='10' rx='7.5' ry='4.4' fill='%231d2a46'/><ellipse cx='13' cy='8.6' rx='4.6' ry='2.6' fill='%231f6f63'/><path d='M11 10c1 4.4 1 8-.6 9.8-3-2.6-4-6.6-3-10z' fill='%23141d33'/><circle cx='19' cy='7.4' r='3.6' fill='%2316213a'/><circle cx='17.6' cy='10.4' r='1.9' fill='%23fdfbf4'/><path d='M22 7.2q4 .6 5.6 2.2-2.4 .2-5.8-.6z' fill='%2312181f'/><circle cx='20.2' cy='6.8' r='.8' fill='%2312221c'/></svg>")}
  70%      {background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 18'><path d='M5 10 0 6v8z' fill='%231d2a46'/><ellipse cx='12' cy='10' rx='7.5' ry='4.4' fill='%231d2a46'/><ellipse cx='13' cy='8.6' rx='4.6' ry='2.6' fill='%231f6f63'/><path d='M11 9c1-4 1-7.6-.6-9.4-3 2.4-4 6.4-3 9.6z' fill='%23141d33'/><circle cx='19' cy='7.4' r='3.6' fill='%2316213a'/><circle cx='17.6' cy='10.4' r='1.9' fill='%23fdfbf4'/><path d='M22 7.2q4 .6 5.6 2.2-2.4 .2-5.8-.6z' fill='%2312181f'/><circle cx='20.2' cy='6.8' r='.8' fill='%2312221c'/></svg>")}
  73%      {background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 18'><path d='M5 10 0 6v8z' fill='%231d2a46'/><ellipse cx='12' cy='10' rx='7.5' ry='4.4' fill='%231d2a46'/><ellipse cx='13' cy='8.6' rx='4.6' ry='2.6' fill='%231f6f63'/><path d='M11 10c1 4.4 1 8-.6 9.8-3-2.6-4-6.6-3-10z' fill='%23141d33'/><circle cx='19' cy='7.4' r='3.6' fill='%2316213a'/><circle cx='17.6' cy='10.4' r='1.9' fill='%23fdfbf4'/><path d='M22 7.2q4 .6 5.6 2.2-2.4 .2-5.8-.6z' fill='%2312181f'/><circle cx='20.2' cy='6.8' r='.8' fill='%2312221c'/></svg>")}
  76%,100% {background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 18'><path d='M5 10 0 6v8z' fill='%231d2a46'/><ellipse cx='12' cy='10' rx='7.5' ry='4.4' fill='%231d2a46'/><ellipse cx='13' cy='8.6' rx='4.6' ry='2.6' fill='%231f6f63'/><path d='M9 9c4 0 7 1.6 8 4.4-4 1-8-.8-9-3.4z' fill='%23141d33'/><circle cx='19' cy='7.4' r='3.6' fill='%2316213a'/><circle cx='17.6' cy='10.4' r='1.9' fill='%23fdfbf4'/><path d='M22 7.2q4 .6 5.6 2.2-2.4 .2-5.8-.6z' fill='%2312181f'/><circle cx='20.2' cy='6.8' r='.8' fill='%2312221c'/></svg>")}
}
.b-kereru{background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 18'><path d='M5 10 0 6v8z' fill='%235b6b78'/><ellipse cx='12' cy='10' rx='7.5' ry='4.4' fill='%23f2efe2'/><path d='M6 8.6q7-3.4 13-1.6-1 3-7 3.6-4 .2-6-2z' fill='%233f7d4f'/><ellipse cx='15' cy='10.4' rx='3.4' ry='2.4' fill='%237a4a5c'/><path d='M9 9c4 0 7 1.6 8 4.4-4 1-8-.8-9-3.4z' fill='%235b6b78'/><circle cx='19' cy='7.4' r='3.6' fill='%233f7d4f'/><path d='M22.2 7.2 27 8.6l-4.8 1z' fill='%23e05a2b'/><circle cx='20.2' cy='6.8' r='.8' fill='%2312221c'/></svg>");animation-name:birdpath,flap-kereru}
@keyframes flap-kereru{
  0%,62%   {background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 18'><path d='M5 10 0 6v8z' fill='%235b6b78'/><ellipse cx='12' cy='10' rx='7.5' ry='4.4' fill='%23f2efe2'/><path d='M6 8.6q7-3.4 13-1.6-1 3-7 3.6-4 .2-6-2z' fill='%233f7d4f'/><ellipse cx='15' cy='10.4' rx='3.4' ry='2.4' fill='%237a4a5c'/><path d='M9 9c4 0 7 1.6 8 4.4-4 1-8-.8-9-3.4z' fill='%235b6b78'/><circle cx='19' cy='7.4' r='3.6' fill='%233f7d4f'/><path d='M22.2 7.2 27 8.6l-4.8 1z' fill='%23e05a2b'/><circle cx='20.2' cy='6.8' r='.8' fill='%2312221c'/></svg>")}
  64%      {background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 18'><path d='M5 10 0 6v8z' fill='%235b6b78'/><ellipse cx='12' cy='10' rx='7.5' ry='4.4' fill='%23f2efe2'/><path d='M6 8.6q7-3.4 13-1.6-1 3-7 3.6-4 .2-6-2z' fill='%233f7d4f'/><ellipse cx='15' cy='10.4' rx='3.4' ry='2.4' fill='%237a4a5c'/><path d='M11 9c1-4 1-7.6-.6-9.4-3 2.4-4 6.4-3 9.6z' fill='%235b6b78'/><circle cx='19' cy='7.4' r='3.6' fill='%233f7d4f'/><path d='M22.2 7.2 27 8.6l-4.8 1z' fill='%23e05a2b'/><circle cx='20.2' cy='6.8' r='.8' fill='%2312221c'/></svg>")}
  67%      {background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 18'><path d='M5 10 0 6v8z' fill='%235b6b78'/><ellipse cx='12' cy='10' rx='7.5' ry='4.4' fill='%23f2efe2'/><path d='M6 8.6q7-3.4 13-1.6-1 3-7 3.6-4 .2-6-2z' fill='%233f7d4f'/><ellipse cx='15' cy='10.4' rx='3.4' ry='2.4' fill='%237a4a5c'/><path d='M11 10c1 4.4 1 8-.6 9.8-3-2.6-4-6.6-3-10z' fill='%235b6b78'/><circle cx='19' cy='7.4' r='3.6' fill='%233f7d4f'/><path d='M22.2 7.2 27 8.6l-4.8 1z' fill='%23e05a2b'/><circle cx='20.2' cy='6.8' r='.8' fill='%2312221c'/></svg>")}
  70%      {background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 18'><path d='M5 10 0 6v8z' fill='%235b6b78'/><ellipse cx='12' cy='10' rx='7.5' ry='4.4' fill='%23f2efe2'/><path d='M6 8.6q7-3.4 13-1.6-1 3-7 3.6-4 .2-6-2z' fill='%233f7d4f'/><ellipse cx='15' cy='10.4' rx='3.4' ry='2.4' fill='%237a4a5c'/><path d='M11 9c1-4 1-7.6-.6-9.4-3 2.4-4 6.4-3 9.6z' fill='%235b6b78'/><circle cx='19' cy='7.4' r='3.6' fill='%233f7d4f'/><path d='M22.2 7.2 27 8.6l-4.8 1z' fill='%23e05a2b'/><circle cx='20.2' cy='6.8' r='.8' fill='%2312221c'/></svg>")}
  73%      {background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 18'><path d='M5 10 0 6v8z' fill='%235b6b78'/><ellipse cx='12' cy='10' rx='7.5' ry='4.4' fill='%23f2efe2'/><path d='M6 8.6q7-3.4 13-1.6-1 3-7 3.6-4 .2-6-2z' fill='%233f7d4f'/><ellipse cx='15' cy='10.4' rx='3.4' ry='2.4' fill='%237a4a5c'/><path d='M11 10c1 4.4 1 8-.6 9.8-3-2.6-4-6.6-3-10z' fill='%235b6b78'/><circle cx='19' cy='7.4' r='3.6' fill='%233f7d4f'/><path d='M22.2 7.2 27 8.6l-4.8 1z' fill='%23e05a2b'/><circle cx='20.2' cy='6.8' r='.8' fill='%2312221c'/></svg>")}
  76%,100% {background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 18'><path d='M5 10 0 6v8z' fill='%235b6b78'/><ellipse cx='12' cy='10' rx='7.5' ry='4.4' fill='%23f2efe2'/><path d='M6 8.6q7-3.4 13-1.6-1 3-7 3.6-4 .2-6-2z' fill='%233f7d4f'/><ellipse cx='15' cy='10.4' rx='3.4' ry='2.4' fill='%237a4a5c'/><path d='M9 9c4 0 7 1.6 8 4.4-4 1-8-.8-9-3.4z' fill='%235b6b78'/><circle cx='19' cy='7.4' r='3.6' fill='%233f7d4f'/><path d='M22.2 7.2 27 8.6l-4.8 1z' fill='%23e05a2b'/><circle cx='20.2' cy='6.8' r='.8' fill='%2312221c'/></svg>")}
}
.b-piwakawaka{background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 18'><path d='M6 10 0 3.6l1.6 6.4L0 16.4z' fill='%234a3f33'/><path d='M5.6 10 1.4 5.6l1 4.4-1 4.4z' fill='%23efe6d2'/><ellipse cx='12' cy='10' rx='7.5' ry='4.4' fill='%237a6450'/><ellipse cx='12' cy='11.4' rx='5.6' ry='2.6' fill='%23efe6d2'/><path d='M9 9c4 0 7 1.6 8 4.4-4 1-8-.8-9-3.4z' fill='%235f5143'/><circle cx='19' cy='7.4' r='3.6' fill='%237a6450'/><path d='M17 5.6q2.6-.6 4 .4' stroke='%23fdfbf4' stroke-width='1.1' fill='none'/><path d='M22.2 7.2 27 8.6l-4.8 1z' fill='%232f2a24'/><circle cx='20.2' cy='6.8' r='.8' fill='%2312221c'/></svg>");animation-name:birdpath,flap-piwakawaka}
@keyframes flap-piwakawaka{
  0%,62%   {background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 18'><path d='M6 10 0 3.6l1.6 6.4L0 16.4z' fill='%234a3f33'/><path d='M5.6 10 1.4 5.6l1 4.4-1 4.4z' fill='%23efe6d2'/><ellipse cx='12' cy='10' rx='7.5' ry='4.4' fill='%237a6450'/><ellipse cx='12' cy='11.4' rx='5.6' ry='2.6' fill='%23efe6d2'/><path d='M9 9c4 0 7 1.6 8 4.4-4 1-8-.8-9-3.4z' fill='%235f5143'/><circle cx='19' cy='7.4' r='3.6' fill='%237a6450'/><path d='M17 5.6q2.6-.6 4 .4' stroke='%23fdfbf4' stroke-width='1.1' fill='none'/><path d='M22.2 7.2 27 8.6l-4.8 1z' fill='%232f2a24'/><circle cx='20.2' cy='6.8' r='.8' fill='%2312221c'/></svg>")}
  64%      {background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 18'><path d='M6 10 0 3.6l1.6 6.4L0 16.4z' fill='%234a3f33'/><path d='M5.6 10 1.4 5.6l1 4.4-1 4.4z' fill='%23efe6d2'/><ellipse cx='12' cy='10' rx='7.5' ry='4.4' fill='%237a6450'/><ellipse cx='12' cy='11.4' rx='5.6' ry='2.6' fill='%23efe6d2'/><path d='M11 9c1-4 1-7.6-.6-9.4-3 2.4-4 6.4-3 9.6z' fill='%235f5143'/><circle cx='19' cy='7.4' r='3.6' fill='%237a6450'/><path d='M17 5.6q2.6-.6 4 .4' stroke='%23fdfbf4' stroke-width='1.1' fill='none'/><path d='M22.2 7.2 27 8.6l-4.8 1z' fill='%232f2a24'/><circle cx='20.2' cy='6.8' r='.8' fill='%2312221c'/></svg>")}
  67%      {background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 18'><path d='M6 10 0 3.6l1.6 6.4L0 16.4z' fill='%234a3f33'/><path d='M5.6 10 1.4 5.6l1 4.4-1 4.4z' fill='%23efe6d2'/><ellipse cx='12' cy='10' rx='7.5' ry='4.4' fill='%237a6450'/><ellipse cx='12' cy='11.4' rx='5.6' ry='2.6' fill='%23efe6d2'/><path d='M11 10c1 4.4 1 8-.6 9.8-3-2.6-4-6.6-3-10z' fill='%235f5143'/><circle cx='19' cy='7.4' r='3.6' fill='%237a6450'/><path d='M17 5.6q2.6-.6 4 .4' stroke='%23fdfbf4' stroke-width='1.1' fill='none'/><path d='M22.2 7.2 27 8.6l-4.8 1z' fill='%232f2a24'/><circle cx='20.2' cy='6.8' r='.8' fill='%2312221c'/></svg>")}
  70%      {background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 18'><path d='M6 10 0 3.6l1.6 6.4L0 16.4z' fill='%234a3f33'/><path d='M5.6 10 1.4 5.6l1 4.4-1 4.4z' fill='%23efe6d2'/><ellipse cx='12' cy='10' rx='7.5' ry='4.4' fill='%237a6450'/><ellipse cx='12' cy='11.4' rx='5.6' ry='2.6' fill='%23efe6d2'/><path d='M11 9c1-4 1-7.6-.6-9.4-3 2.4-4 6.4-3 9.6z' fill='%235f5143'/><circle cx='19' cy='7.4' r='3.6' fill='%237a6450'/><path d='M17 5.6q2.6-.6 4 .4' stroke='%23fdfbf4' stroke-width='1.1' fill='none'/><path d='M22.2 7.2 27 8.6l-4.8 1z' fill='%232f2a24'/><circle cx='20.2' cy='6.8' r='.8' fill='%2312221c'/></svg>")}
  73%      {background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 18'><path d='M6 10 0 3.6l1.6 6.4L0 16.4z' fill='%234a3f33'/><path d='M5.6 10 1.4 5.6l1 4.4-1 4.4z' fill='%23efe6d2'/><ellipse cx='12' cy='10' rx='7.5' ry='4.4' fill='%237a6450'/><ellipse cx='12' cy='11.4' rx='5.6' ry='2.6' fill='%23efe6d2'/><path d='M11 10c1 4.4 1 8-.6 9.8-3-2.6-4-6.6-3-10z' fill='%235f5143'/><circle cx='19' cy='7.4' r='3.6' fill='%237a6450'/><path d='M17 5.6q2.6-.6 4 .4' stroke='%23fdfbf4' stroke-width='1.1' fill='none'/><path d='M22.2 7.2 27 8.6l-4.8 1z' fill='%232f2a24'/><circle cx='20.2' cy='6.8' r='.8' fill='%2312221c'/></svg>")}
  76%,100% {background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 18'><path d='M6 10 0 3.6l1.6 6.4L0 16.4z' fill='%234a3f33'/><path d='M5.6 10 1.4 5.6l1 4.4-1 4.4z' fill='%23efe6d2'/><ellipse cx='12' cy='10' rx='7.5' ry='4.4' fill='%237a6450'/><ellipse cx='12' cy='11.4' rx='5.6' ry='2.6' fill='%23efe6d2'/><path d='M9 9c4 0 7 1.6 8 4.4-4 1-8-.8-9-3.4z' fill='%235f5143'/><circle cx='19' cy='7.4' r='3.6' fill='%237a6450'/><path d='M17 5.6q2.6-.6 4 .4' stroke='%23fdfbf4' stroke-width='1.1' fill='none'/><path d='M22.2 7.2 27 8.6l-4.8 1z' fill='%232f2a24'/><circle cx='20.2' cy='6.8' r='.8' fill='%2312221c'/></svg>")}
}
.b-tauhou{background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 18'><path d='M5 10 0 6v8z' fill='%236f7d33'/><ellipse cx='12' cy='10' rx='7.5' ry='4.4' fill='%23e6e2cf'/><path d='M6 8.6q7-3.2 13-1.4-1.4 3-7.4 3.4-3.8 0-5.6-2z' fill='%238a9a3f'/><path d='M9 9c4 0 7 1.6 8 4.4-4 1-8-.8-9-3.4z' fill='%236f7d33'/><circle cx='19' cy='7.4' r='3.6' fill='%238a9a3f'/><circle cx='20' cy='6.8' r='1.9' fill='%23fdfbf4'/><circle cx='20' cy='6.8' r='.9' fill='%2312221c'/><path d='M22.2 7.2 27 8.6l-4.8 1z' fill='%232f3a2a'/></svg>");animation-name:birdpath,flap-tauhou}
@keyframes flap-tauhou{
  0%,62%   {background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 18'><path d='M5 10 0 6v8z' fill='%236f7d33'/><ellipse cx='12' cy='10' rx='7.5' ry='4.4' fill='%23e6e2cf'/><path d='M6 8.6q7-3.2 13-1.4-1.4 3-7.4 3.4-3.8 0-5.6-2z' fill='%238a9a3f'/><path d='M9 9c4 0 7 1.6 8 4.4-4 1-8-.8-9-3.4z' fill='%236f7d33'/><circle cx='19' cy='7.4' r='3.6' fill='%238a9a3f'/><circle cx='20' cy='6.8' r='1.9' fill='%23fdfbf4'/><circle cx='20' cy='6.8' r='.9' fill='%2312221c'/><path d='M22.2 7.2 27 8.6l-4.8 1z' fill='%232f3a2a'/></svg>")}
  64%      {background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 18'><path d='M5 10 0 6v8z' fill='%236f7d33'/><ellipse cx='12' cy='10' rx='7.5' ry='4.4' fill='%23e6e2cf'/><path d='M6 8.6q7-3.2 13-1.4-1.4 3-7.4 3.4-3.8 0-5.6-2z' fill='%238a9a3f'/><path d='M11 9c1-4 1-7.6-.6-9.4-3 2.4-4 6.4-3 9.6z' fill='%236f7d33'/><circle cx='19' cy='7.4' r='3.6' fill='%238a9a3f'/><circle cx='20' cy='6.8' r='1.9' fill='%23fdfbf4'/><circle cx='20' cy='6.8' r='.9' fill='%2312221c'/><path d='M22.2 7.2 27 8.6l-4.8 1z' fill='%232f3a2a'/></svg>")}
  67%      {background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 18'><path d='M5 10 0 6v8z' fill='%236f7d33'/><ellipse cx='12' cy='10' rx='7.5' ry='4.4' fill='%23e6e2cf'/><path d='M6 8.6q7-3.2 13-1.4-1.4 3-7.4 3.4-3.8 0-5.6-2z' fill='%238a9a3f'/><path d='M11 10c1 4.4 1 8-.6 9.8-3-2.6-4-6.6-3-10z' fill='%236f7d33'/><circle cx='19' cy='7.4' r='3.6' fill='%238a9a3f'/><circle cx='20' cy='6.8' r='1.9' fill='%23fdfbf4'/><circle cx='20' cy='6.8' r='.9' fill='%2312221c'/><path d='M22.2 7.2 27 8.6l-4.8 1z' fill='%232f3a2a'/></svg>")}
  70%      {background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 18'><path d='M5 10 0 6v8z' fill='%236f7d33'/><ellipse cx='12' cy='10' rx='7.5' ry='4.4' fill='%23e6e2cf'/><path d='M6 8.6q7-3.2 13-1.4-1.4 3-7.4 3.4-3.8 0-5.6-2z' fill='%238a9a3f'/><path d='M11 9c1-4 1-7.6-.6-9.4-3 2.4-4 6.4-3 9.6z' fill='%236f7d33'/><circle cx='19' cy='7.4' r='3.6' fill='%238a9a3f'/><circle cx='20' cy='6.8' r='1.9' fill='%23fdfbf4'/><circle cx='20' cy='6.8' r='.9' fill='%2312221c'/><path d='M22.2 7.2 27 8.6l-4.8 1z' fill='%232f3a2a'/></svg>")}
  73%      {background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 18'><path d='M5 10 0 6v8z' fill='%236f7d33'/><ellipse cx='12' cy='10' rx='7.5' ry='4.4' fill='%23e6e2cf'/><path d='M6 8.6q7-3.2 13-1.4-1.4 3-7.4 3.4-3.8 0-5.6-2z' fill='%238a9a3f'/><path d='M11 10c1 4.4 1 8-.6 9.8-3-2.6-4-6.6-3-10z' fill='%236f7d33'/><circle cx='19' cy='7.4' r='3.6' fill='%238a9a3f'/><circle cx='20' cy='6.8' r='1.9' fill='%23fdfbf4'/><circle cx='20' cy='6.8' r='.9' fill='%2312221c'/><path d='M22.2 7.2 27 8.6l-4.8 1z' fill='%232f3a2a'/></svg>")}
  76%,100% {background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 18'><path d='M5 10 0 6v8z' fill='%236f7d33'/><ellipse cx='12' cy='10' rx='7.5' ry='4.4' fill='%23e6e2cf'/><path d='M6 8.6q7-3.2 13-1.4-1.4 3-7.4 3.4-3.8 0-5.6-2z' fill='%238a9a3f'/><path d='M9 9c4 0 7 1.6 8 4.4-4 1-8-.8-9-3.4z' fill='%236f7d33'/><circle cx='19' cy='7.4' r='3.6' fill='%238a9a3f'/><circle cx='20' cy='6.8' r='1.9' fill='%23fdfbf4'/><circle cx='20' cy='6.8' r='.9' fill='%2312221c'/><path d='M22.2 7.2 27 8.6l-4.8 1z' fill='%232f3a2a'/></svg>")}
}
.b-korimako{background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 18'><path d='M5 10 0 6v8z' fill='%235f6e28'/><ellipse cx='12' cy='10' rx='7.5' ry='4.4' fill='%237d8f36'/><ellipse cx='12.6' cy='11' rx='5.4' ry='2.4' fill='%2393a149'/><path d='M9 9c4 0 7 1.6 8 4.4-4 1-8-.8-9-3.4z' fill='%235f6e28'/><circle cx='19' cy='7.4' r='3.6' fill='%237d8f36'/><path d='M22 7.2q4 .6 5.6 2.2-2.4 .2-5.8-.6z' fill='%2320261b'/><circle cx='20.2' cy='6.8' r='.8' fill='%2312221c'/></svg>");animation-name:birdpath,flap-korimako}
@keyframes flap-korimako{
  0%,62%   {background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 18'><path d='M5 10 0 6v8z' fill='%235f6e28'/><ellipse cx='12' cy='10' rx='7.5' ry='4.4' fill='%237d8f36'/><ellipse cx='12.6' cy='11' rx='5.4' ry='2.4' fill='%2393a149'/><path d='M9 9c4 0 7 1.6 8 4.4-4 1-8-.8-9-3.4z' fill='%235f6e28'/><circle cx='19' cy='7.4' r='3.6' fill='%237d8f36'/><path d='M22 7.2q4 .6 5.6 2.2-2.4 .2-5.8-.6z' fill='%2320261b'/><circle cx='20.2' cy='6.8' r='.8' fill='%2312221c'/></svg>")}
  64%      {background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 18'><path d='M5 10 0 6v8z' fill='%235f6e28'/><ellipse cx='12' cy='10' rx='7.5' ry='4.4' fill='%237d8f36'/><ellipse cx='12.6' cy='11' rx='5.4' ry='2.4' fill='%2393a149'/><path d='M11 9c1-4 1-7.6-.6-9.4-3 2.4-4 6.4-3 9.6z' fill='%235f6e28'/><circle cx='19' cy='7.4' r='3.6' fill='%237d8f36'/><path d='M22 7.2q4 .6 5.6 2.2-2.4 .2-5.8-.6z' fill='%2320261b'/><circle cx='20.2' cy='6.8' r='.8' fill='%2312221c'/></svg>")}
  67%      {background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 18'><path d='M5 10 0 6v8z' fill='%235f6e28'/><ellipse cx='12' cy='10' rx='7.5' ry='4.4' fill='%237d8f36'/><ellipse cx='12.6' cy='11' rx='5.4' ry='2.4' fill='%2393a149'/><path d='M11 10c1 4.4 1 8-.6 9.8-3-2.6-4-6.6-3-10z' fill='%235f6e28'/><circle cx='19' cy='7.4' r='3.6' fill='%237d8f36'/><path d='M22 7.2q4 .6 5.6 2.2-2.4 .2-5.8-.6z' fill='%2320261b'/><circle cx='20.2' cy='6.8' r='.8' fill='%2312221c'/></svg>")}
  70%      {background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 18'><path d='M5 10 0 6v8z' fill='%235f6e28'/><ellipse cx='12' cy='10' rx='7.5' ry='4.4' fill='%237d8f36'/><ellipse cx='12.6' cy='11' rx='5.4' ry='2.4' fill='%2393a149'/><path d='M11 9c1-4 1-7.6-.6-9.4-3 2.4-4 6.4-3 9.6z' fill='%235f6e28'/><circle cx='19' cy='7.4' r='3.6' fill='%237d8f36'/><path d='M22 7.2q4 .6 5.6 2.2-2.4 .2-5.8-.6z' fill='%2320261b'/><circle cx='20.2' cy='6.8' r='.8' fill='%2312221c'/></svg>")}
  73%      {background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 18'><path d='M5 10 0 6v8z' fill='%235f6e28'/><ellipse cx='12' cy='10' rx='7.5' ry='4.4' fill='%237d8f36'/><ellipse cx='12.6' cy='11' rx='5.4' ry='2.4' fill='%2393a149'/><path d='M11 10c1 4.4 1 8-.6 9.8-3-2.6-4-6.6-3-10z' fill='%235f6e28'/><circle cx='19' cy='7.4' r='3.6' fill='%237d8f36'/><path d='M22 7.2q4 .6 5.6 2.2-2.4 .2-5.8-.6z' fill='%2320261b'/><circle cx='20.2' cy='6.8' r='.8' fill='%2312221c'/></svg>")}
  76%,100% {background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 18'><path d='M5 10 0 6v8z' fill='%235f6e28'/><ellipse cx='12' cy='10' rx='7.5' ry='4.4' fill='%237d8f36'/><ellipse cx='12.6' cy='11' rx='5.4' ry='2.4' fill='%2393a149'/><path d='M9 9c4 0 7 1.6 8 4.4-4 1-8-.8-9-3.4z' fill='%235f6e28'/><circle cx='19' cy='7.4' r='3.6' fill='%237d8f36'/><path d='M22 7.2q4 .6 5.6 2.2-2.4 .2-5.8-.6z' fill='%2320261b'/><circle cx='20.2' cy='6.8' r='.8' fill='%2312221c'/></svg>")}
}
.b-kotare{background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 18'><path d='M5 10 0 6v8z' fill='%231f6f8a'/><ellipse cx='12' cy='10' rx='7.5' ry='4.4' fill='%23f2efe2'/><path d='M6 8.4q7-3.4 13-1.6-1.2 3-7.2 3.4-4 .2-5.8-1.8z' fill='%232a8fb0'/><path d='M9 9c4 0 7 1.6 8 4.4-4 1-8-.8-9-3.4z' fill='%231f6f8a'/><circle cx='19' cy='7.4' r='3.6' fill='%232a8fb0'/><path d='M22 7q5.6 .8 6 2.4-2.6 .2-6.2-.8z' fill='%232f3e46'/><circle cx='20.2' cy='6.8' r='.8' fill='%2312221c'/></svg>");animation-name:birdpath,flap-kotare}
@keyframes flap-kotare{
  0%,62%   {background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 18'><path d='M5 10 0 6v8z' fill='%231f6f8a'/><ellipse cx='12' cy='10' rx='7.5' ry='4.4' fill='%23f2efe2'/><path d='M6 8.4q7-3.4 13-1.6-1.2 3-7.2 3.4-4 .2-5.8-1.8z' fill='%232a8fb0'/><path d='M9 9c4 0 7 1.6 8 4.4-4 1-8-.8-9-3.4z' fill='%231f6f8a'/><circle cx='19' cy='7.4' r='3.6' fill='%232a8fb0'/><path d='M22 7q5.6 .8 6 2.4-2.6 .2-6.2-.8z' fill='%232f3e46'/><circle cx='20.2' cy='6.8' r='.8' fill='%2312221c'/></svg>")}
  64%      {background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 18'><path d='M5 10 0 6v8z' fill='%231f6f8a'/><ellipse cx='12' cy='10' rx='7.5' ry='4.4' fill='%23f2efe2'/><path d='M6 8.4q7-3.4 13-1.6-1.2 3-7.2 3.4-4 .2-5.8-1.8z' fill='%232a8fb0'/><path d='M11 9c1-4 1-7.6-.6-9.4-3 2.4-4 6.4-3 9.6z' fill='%231f6f8a'/><circle cx='19' cy='7.4' r='3.6' fill='%232a8fb0'/><path d='M22 7q5.6 .8 6 2.4-2.6 .2-6.2-.8z' fill='%232f3e46'/><circle cx='20.2' cy='6.8' r='.8' fill='%2312221c'/></svg>")}
  67%      {background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 18'><path d='M5 10 0 6v8z' fill='%231f6f8a'/><ellipse cx='12' cy='10' rx='7.5' ry='4.4' fill='%23f2efe2'/><path d='M6 8.4q7-3.4 13-1.6-1.2 3-7.2 3.4-4 .2-5.8-1.8z' fill='%232a8fb0'/><path d='M11 10c1 4.4 1 8-.6 9.8-3-2.6-4-6.6-3-10z' fill='%231f6f8a'/><circle cx='19' cy='7.4' r='3.6' fill='%232a8fb0'/><path d='M22 7q5.6 .8 6 2.4-2.6 .2-6.2-.8z' fill='%232f3e46'/><circle cx='20.2' cy='6.8' r='.8' fill='%2312221c'/></svg>")}
  70%      {background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 18'><path d='M5 10 0 6v8z' fill='%231f6f8a'/><ellipse cx='12' cy='10' rx='7.5' ry='4.4' fill='%23f2efe2'/><path d='M6 8.4q7-3.4 13-1.6-1.2 3-7.2 3.4-4 .2-5.8-1.8z' fill='%232a8fb0'/><path d='M11 9c1-4 1-7.6-.6-9.4-3 2.4-4 6.4-3 9.6z' fill='%231f6f8a'/><circle cx='19' cy='7.4' r='3.6' fill='%232a8fb0'/><path d='M22 7q5.6 .8 6 2.4-2.6 .2-6.2-.8z' fill='%232f3e46'/><circle cx='20.2' cy='6.8' r='.8' fill='%2312221c'/></svg>")}
  73%      {background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 18'><path d='M5 10 0 6v8z' fill='%231f6f8a'/><ellipse cx='12' cy='10' rx='7.5' ry='4.4' fill='%23f2efe2'/><path d='M6 8.4q7-3.4 13-1.6-1.2 3-7.2 3.4-4 .2-5.8-1.8z' fill='%232a8fb0'/><path d='M11 10c1 4.4 1 8-.6 9.8-3-2.6-4-6.6-3-10z' fill='%231f6f8a'/><circle cx='19' cy='7.4' r='3.6' fill='%232a8fb0'/><path d='M22 7q5.6 .8 6 2.4-2.6 .2-6.2-.8z' fill='%232f3e46'/><circle cx='20.2' cy='6.8' r='.8' fill='%2312221c'/></svg>")}
  76%,100% {background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 18'><path d='M5 10 0 6v8z' fill='%231f6f8a'/><ellipse cx='12' cy='10' rx='7.5' ry='4.4' fill='%23f2efe2'/><path d='M6 8.4q7-3.4 13-1.6-1.2 3-7.2 3.4-4 .2-5.8-1.8z' fill='%232a8fb0'/><path d='M9 9c4 0 7 1.6 8 4.4-4 1-8-.8-9-3.4z' fill='%231f6f8a'/><circle cx='19' cy='7.4' r='3.6' fill='%232a8fb0'/><path d='M22 7q5.6 .8 6 2.4-2.6 .2-6.2-.8z' fill='%232f3e46'/><circle cx='20.2' cy='6.8' r='.8' fill='%2312221c'/></svg>")}
}
@keyframes fly{to{left:112%}}

@keyframes arrive{from{opacity:0;transform:scale(.4)}to{opacity:1;transform:scale(1)}}

body.reduced .bird{animation:none;transform:scale(var(--s))}
body.reduced .b1{left:22%}
body.reduced .b2{left:52%}
body.reduced .b3{left:76%}
body.reduced .b4{left:38%}
body.reduced .b5{left:62%}

.grove-count{
  margin:0;text-align:center;font-weight:800;font-size:16px;color:var(--ink);
}
.milestone-line{
  margin:0;text-align:center;font-size:13px;line-height:1.4;color:var(--ink-soft);
}
.milestone-line .reached{color:var(--moss);font-weight:800}
.milestone-line .coming{color:var(--ink);font-weight:800}
.grove-count .num{color:var(--leaf);font-size:21px}

/* ---------- gauges ---------- */
.gauges{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.gauge{
  display:flex;align-items:center;justify-content:center;gap:6px;
  background:var(--card);border:3px solid var(--sage);border-radius:14px;
  padding:5px 4px;box-shadow:var(--shadow);
}
.gauge-ico svg{width:19px;height:19px;display:block}
.gauge strong{font-size:17px;font-variant-numeric:tabular-nums;line-height:1.1}
.gauge-lbl{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--ink-soft)}
/* remembered numbers, not live ones */
.stale{opacity:.55}
.gauges.stale .gauge{border-style:dashed}
.gauge.bump strong{animation:bump .5s var(--ease)}
@keyframes bump{0%,100%{transform:scale(1)}40%{transform:scale(1.3);color:var(--leaf)}}

/* ---------- giving ---------- */
/* These sit directly under the picture, above the counts and the gauges.
   Trimming pixels off the bottom of this scene failed repeatedly, so the
   buttons now live where nothing can push them behind the dock, and the
   numbers below them are free to scroll. Still four in a row at every
   width, because a second row would start the same problem again. */
.give{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.give-btn{
  position:relative;flex-direction:column;justify-content:center;gap:3px;
  text-align:center;padding:8px 4px;font-size:15.5px;
}
.give-txt{font-size:13px;line-height:1.1}
.give-water{background:#3E7C9B}
.give-sun{background:#C9941F}
.give-seed{background:var(--forest)}
.give-note{background:var(--moss)}
.give-ico svg{width:24px;height:24px;display:block}
.give-have{
  position:absolute;top:5px;right:5px;
  min-width:20px;height:20px;padding:0 5px;
  display:grid;place-items:center;border-radius:999px;
  background:rgba(250,249,240,.26);font-size:12px;font-variant-numeric:tabular-nums;
}
/* nothing to give yet: still a live button, it just points you at the earning */
.give-btn.empty{background:var(--sage);color:var(--forest);box-shadow:none;border:3px dashed var(--moss)}
.give-btn.empty .give-ico svg [fill="#fff"],
.give-btn.empty .give-ico svg circle,
.give-btn.empty .give-ico svg path{fill:var(--moss);stroke:var(--moss)}
.give-btn.empty .give-have{background:rgba(14,59,46,.12);color:var(--ink-soft)}

.grove-mine{
  margin:0;text-align:center;font-size:13px;line-height:1.3;font-weight:600;
  color:var(--ink-soft);
  background:var(--card);border:2px dashed var(--sage);border-radius:14px;padding:6px 12px;
}

/* ==========================================================================
   How to play, inside the help panel
   --------------------------------------------------------------------------
   This was a footer under every scene: 510 words, present whether or not
   anybody wanted them, and physically wrapping the game together with the
   244-word help panel above it. About 60% of the readable text on the page
   was instructional.

   It is inside the help panel now, behind the ? button that already had the
   aria-expanded and aria-controls wiring. And it is scene-scoped: opening it
   in the forest shows the forest's 52 words, not the grove's 171. The rest is
   one disclosure away rather than gone, because somebody reading about the
   grove while standing in the garden is a real thing to want.
   ========================================================================== */
.how-in-help{border-top:2px dotted var(--sage);margin-top:14px;padding-top:12px}
.how-in-help h2{font-size:17px;margin-bottom:6px}
.how-lead{margin:0 0 12px;font-size:14.5px;line-height:1.45;color:var(--ink-soft)}

.how-list{margin:0;display:grid;gap:10px}
.how-list dt{
  font-weight:800;font-size:14px;color:var(--ink);
  text-transform:uppercase;letter-spacing:.05em;
}
.how-list dd{
  margin:3px 0 0;font-size:14.5px;line-height:1.45;color:var(--ink-soft);
  padding-left:12px;border-left:3px solid var(--sage);
}

/* Only the section for wherever you are. setScene() puts the scene name on
   the panel, and these two rules do the rest: no JavaScript walks the list,
   so nothing can fall out of step with the router. */
.how-item{display:none}
#help-panel[data-scene="garden"] .how-item[data-scene="garden"],
#help-panel[data-scene="sun"]    .how-item[data-scene="sun"],
#help-panel[data-scene="forest"] .how-item[data-scene="forest"],
#help-panel[data-scene="grove"]  .how-item[data-scene="grove"],
#help-panel[data-scene="lot"]    .how-item[data-scene="lot"]{display:block}
/* on the home screen there is no one scene to explain, so show everything
   rather than an empty panel. Choosing a seed no longer has a screen of
   its own to match here either: it is part of the garden now, so it gets
   the garden's own section, which is the nearer thing to show. */
#help-panel[data-scene="home"] .how-item,
#help-panel.show-all .how-item{display:block}

.how-more{
  margin-top:10px;min-height:44px;width:100%;
  background:var(--card-soft);border:2px dashed var(--moss);border-radius:12px;
  color:var(--ink);font-weight:700;font-size:14px;line-height:1;cursor:pointer;
}
#help-panel.show-all .how-more{display:none}

.how-note{
  margin:14px 0 0;padding-top:12px;border-top:2px dotted var(--sage);
  font-size:13px;line-height:1.4;color:var(--ink-soft);
}

/* ----- dock ---------- */
/* Five equal columns rather than flex. A grid column of 1fr genuinely cannot
   overflow its container, whereas flex items default to min-width:auto and
   refuse to shrink below their label, which pushed Grove off narrow screens
   (and off any screen where the player has larger text set). */
.dock{
  position:fixed;left:0;right:0;bottom:0;z-index:20;
  /* Six columns since Guerrilla Gardeners landed. Measured, not guessed:
     at a 320px viewport --gutter is 8 and gap is 2, so (320-16-10)/6 is
     49.0px per button, which clears the 48px minimum. Labels are already
     hidden below 330px, so the glyph has the whole button to itself. */
  display:grid;grid-template-columns:repeat(6,1fr);gap:4px;
  max-width:var(--column);margin:0 auto;
  padding:8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
  background:var(--dock);
  backdrop-filter:blur(8px);
  border-top:2px solid var(--sage);
}
.dock[hidden]{display:none}
.dock-btn{
  min-width:0;                 /* the part that lets a long label shrink */
  min-height:var(--tap);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
  border:none;border-radius:14px;background:transparent;cursor:pointer;
  font-weight:800;font-size:12px;line-height:1;color:var(--ink-soft);
  transition:background .18s,color .18s;
  padding:0 2px;
}
.dock-btn svg{width:24px;height:24px;flex:none}
/* the label never widens the button: it shrinks, then truncates */
.dock-btn span{
  max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.dock-btn[aria-current="true"]{background:var(--forest);color:var(--cream)}

/* ---------- the status seed ---------- */
/* Sits above the dock, not behind it. 88px clears the dock with room to
   spare for the safe-area inset, and clears Garden's compact note row too
   (measured at 320px: the row's top edge sits right where 76px put the
   button's bottom edge, which is what overlap looked like in practice). */
.status-btn{
  position:fixed;left:var(--gutter);bottom:calc(88px + env(safe-area-inset-bottom));
  z-index:19;
  width:44px;height:44px;padding:7px;
  border:2px solid var(--sage);border-radius:50%;
  background:var(--card);box-shadow:var(--shadow);
  cursor:pointer;
}
.status-btn svg{display:block;width:100%;height:100%}
.status-btn[hidden]{display:none}

@media (max-width:420px){
  /* the gutter is shared, so narrowing it moves the game and the bar together */
  :root{--gutter:8px}
  .dock{gap:2px}
  .dock-btn{font-size:10px;letter-spacing:-.02em}
  .dock-btn svg{width:22px;height:22px}
  .calm-row .calm-btn{gap:5px;padding:8px 4px;font-size:13px}
}
/* very narrow, or large text: the icons carry it and the labels step aside */
@media (max-width:330px){
  .dock-btn span{display:none}
  .dock-btn svg{width:26px;height:26px}
}

/* ---------- toast ---------- */
.toast{
  position:fixed;left:50%;bottom:calc(84px + env(safe-area-inset-bottom));
  transform:translate(-50%,16px);
  background:var(--forest);color:var(--cream);
  padding:11px 20px;border-radius:999px;font-weight:800;font-size:15px;
  box-shadow:0 8px 22px rgba(14,59,46,.3);
  opacity:0;pointer-events:none;transition:opacity .3s,transform .3s var(--ease);
  z-index:30;max-width:92vw;text-align:center;
}
.toast.show{opacity:1;transform:translate(-50%,0)}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
body.reduced *,
body.reduced *::before,
body.reduced *::after{
  animation-duration:.001ms !important;
  animation-iteration-count:1 !important;
  transition-duration:.001ms !important;
}
body.reduced .cloud{opacity:.8}
body.reduced .cloud.c1{left:40px}
body.reduced .cloud.c2{left:170px}
body.reduced .cloud.c3{left:280px}
body.reduced .cloud.c4{left:110px}
body.reduced .butterfly{animation:none;top:150px;left:60px}
body.reduced .spark{opacity:1;animation:none;transform:translateY(-26px)}
body.reduced .drop{display:none}
body.reduced .find.taken{display:none}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
  }
}

/* ---------- larger screens ----------
   Both conditions matter. These heights used to be gated on width alone,
   which is the wrong measurement: a window can be 600px wide and only 750px
   tall, and then a 330px stage pushes the scene's own buttons down behind the
   fixed dock. That is what put the watering can's basket, the forest's
   "wander a little further" and the grove's giving buttons partly under the
   bar. Give the picture more room only when there is actually more room to
   give it. */
@media (min-width:560px) and (min-height:860px){
  /* The stage heights that used to be here are a clamp on svh now, which
     reads the viewport height continuously rather than at one breakpoint.
     The plant still steps up, because it is art at a fixed size rather than
     a frame, and there is no sensible fractional version of it. */
  .plant-wrap{width:210px;height:250px}
}

/* the forest of finished seasons, standing on the skyline behind everything.
   Faint on purpose: it is there to be noticed rather than looked at, and it
   is the drawn answer to "where did my tree go". */
.g-old{opacity:.28}

/* the running total across all seasons, beside this season's count */
.grove-count .life{
  display:block;font-size:12px;font-weight:700;color:var(--ink-soft);
  letter-spacing:.02em;margin-top:2px;
}

/* the way back to the plants, on the page people call home */
.replant-line{margin:0}
.muted.tiny{font-size:12px;line-height:1.4;margin:6px 0 0}

/* ---------- five gifts now ----------
   Berries made a fifth, and five of these will not sit on one row on a narrow
   phone without the labels being squeezed to nothing. auto-fit wraps them to
   three and two instead, which is fine now the giving buttons sit high up in
   the scene rather than at the bottom where a second row would have pushed
   them behind the dock. */
.give,.gauges{grid-template-columns:repeat(auto-fit,minmax(88px,1fr))}
.give-berry{background:#A8443A}

/* ==========================================================================
   Berries put out, and the birds that come for them
   ========================================================================== */
.feeder{display:flex;flex-direction:column;gap:4px}
.feed-btn{position:relative;background:#A8443A;gap:8px}
.feed-ico svg{width:22px;height:22px;display:block}
.feed-txt{font-size:15px}
.feed-have{
  position:absolute;top:6px;right:8px;min-width:20px;height:20px;padding:0 5px;
  display:grid;place-items:center;border-radius:999px;
  background:rgba(250,249,240,.26);font-size:12px;font-variant-numeric:tabular-nums;
}
/* nothing to put out yet: still a live button, it points at the forest */
.feed-btn.empty{background:var(--sage);color:var(--forest);box-shadow:none;border:3px dashed var(--moss)}
.feed-btn.empty .feed-ico svg circle,
.feed-btn.empty .feed-ico svg path{fill:var(--moss);stroke:var(--moss)}
.feed-btn.empty .feed-have{background:rgba(14,59,46,.12);color:var(--ink-soft)}
.feed-line{margin:0;text-align:center;font-size:12px}

.garden-birds{position:absolute;inset:0;pointer-events:none}
.g-bird[hidden]{display:none}
.g-bird{
  position:absolute;width:22px;height:14px;
  background:no-repeat center/contain;
  --s:1;
  animation-timing-function:linear, steps(1,end);
  animation-iteration-count:infinite,infinite;
  animation-fill-mode:both,none;
}
.gb1{top:16%;--s:1;animation-duration:30s,5.1s;animation-delay:0s,1.3s}
.gb2{top:26%;--s:.82;animation-duration:38s,6.4s;animation-delay:7s,3.1s}
.gb3{top:9%;--s:.68;animation-duration:46s,4.7s;animation-delay:15s,.5s}
body.reduced .g-bird{animation:none;transform:scale(var(--s))}
body.reduced .gb1{left:26%}
body.reduced .gb2{left:54%}
body.reduced .gb3{left:74%}

/* the far country sits behind everything and must never catch the eye */
.g-far{opacity:.9}

/* ==========================================================================
   The grove sun, and what happens when somebody gives sunshine
   --------------------------------------------------------------------------
   The rays are a repeating conic gradient, masked to fade out at both the
   middle and the rim so the disc still reads as a disc and the rays do not
   end in a hard circle. They turn slowly all the time, and flare when a gift
   of sunshine arrives.
   ========================================================================== */
.sun-rays{
  position:absolute;top:-34px;right:-30px;width:150px;height:150px;
  border-radius:50%;pointer-events:none;opacity:.5;
  background:repeating-conic-gradient(from 0deg,
    rgba(255,217,132,.62) 0deg 3.5deg, rgba(255,217,132,0) 3.5deg 18deg);
  -webkit-mask-image:radial-gradient(closest-side, transparent 26%, #000 38%, transparent 82%);
  mask-image:radial-gradient(closest-side, transparent 26%, #000 38%, transparent 82%);
  animation:sunturn 120s linear infinite;
}
@keyframes sunturn{to{transform:rotate(360deg)}}

/* the flare: the rays swell and brighten, the disc glows wider, then both
   settle back. One and a half seconds, because a gift should be noticed and
   then stop asking for attention. */
.sun-rays.shine{animation:sunturn 120s linear infinite, sunflare 1.6s ease-out}
@keyframes sunflare{
  0%   {opacity:.5}
  22%  {opacity:1}
  100% {opacity:.5}
}
.sun.shine{animation:sundisc 1.6s ease-out}
@keyframes sundisc{
  0%   {box-shadow:0 0 0 10px rgba(255,217,132,.3),0 0 0 22px rgba(255,217,132,.16)}
  25%  {box-shadow:0 0 0 20px rgba(255,217,132,.5),0 0 0 44px rgba(255,217,132,.24)}
  100% {box-shadow:0 0 0 10px rgba(255,217,132,.3),0 0 0 22px rgba(255,217,132,.16)}
}

/* Flowers opening. The head carries the animation and an inner group carries
   the position, because a CSS transform beats an SVG transform attribute on
   the same element and the flower would open from the wrong place. */
.fl-head{transform-box:fill-box;transform-origin:50% 50%}
.g-open .fl-head{animation:petalopen 1.2s var(--ease) backwards}
@keyframes petalopen{
  0%   {transform:scale(.2) rotate(-30deg)}
  55%  {transform:scale(1.15) rotate(6deg)}
  100% {transform:scale(1) rotate(0)}
}

body.reduced .sun-rays{animation:none}
body.reduced .sun-rays.shine{animation:none;opacity:.7}
body.reduced .sun.shine{animation:none}
body.reduced .g-open .fl-head{animation:none}

/* ==========================================================================
   The keeper's panel
   --------------------------------------------------------------------------
   Deliberately not in the game's voice. Everything else here is soft edges
   and growing things; this is a plain grey box with a hard edge, because it
   is the one place where something can be ended rather than grown, and it
   should not feel like part of the play.
   ========================================================================== */
.keeper{
  margin:26px auto 0;max-width:620px;padding:18px 20px 20px;
  border:1px solid #b9c0b2;border-radius:10px;background:#f1f2ec;
  font-size:.92rem;text-align:left;
}
.keeper-h{
  margin:0 0 4px;font-size:.78rem;letter-spacing:.14em;text-transform:uppercase;
  color:#5d6655;font-weight:700;
}
.keeper-note{margin:0 0 14px;color:#5d6655;line-height:1.5}
.keeper-lbl{display:block;margin:0 0 6px;color:#434a3e;line-height:1.5}
.keeper-key{
  flex:1 1 220px;min-width:0;padding:11px 12px;font:inherit;
  border:1px solid #b9c0b2;border-radius:7px;background:var(--card);color:#2b2f27;
}
.keeper-key:focus-visible{outline:3px solid var(--leaf);outline-offset:2px}
.keeper-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px;align-items:center}
.keeper-btn{
  flex:0 1 auto;padding:11px 16px;font:inherit;font-weight:600;cursor:pointer;
  border:1px solid #9aa391;border-radius:7px;background:var(--card);color:#2b2f27;
  min-height:44px;                       /* same tap target as the game proper */
}
.keeper-btn:hover{background:#e7eae1}
.keeper-btn:focus-visible{outline:3px solid var(--leaf);outline-offset:2px}
.keeper-btn[disabled]{opacity:.5;cursor:default}
.keeper-danger{border-color:#b4705f;color:#8d3f2c}
.keeper-danger:hover{background:#f6e9e5}
.keeper-arm{
  margin-top:14px;padding:12px;border-radius:8px;
  border:1px solid #d9b3a8;background:#fbf1ee;
}
.keeper-say{margin:12px 0 0;min-height:1.4em;color:#3c6b42;line-height:1.5}
.keeper-say.keeper-bad{color:#8d3f2c}

/* ==========================================================================
   Autumn, at the end of a season
   --------------------------------------------------------------------------
   The colour of the turn is done in the SVG with a filter, because that needs
   to be exact. This is only the leaves coming down: a slow fall with a sway
   across it, each one given its own delay and duration in the markup so they
   never come down as a curtain.
   ========================================================================== */
.g-leaf{
  transform-box:view-box;transform-origin:center;
  animation:leaffall 9s linear infinite;
  will-change:transform,opacity;
}
@keyframes leaffall{
  0%   {transform:translate(0,-26px) rotate(0deg);opacity:0}
  8%   {opacity:.95}
  25%  {transform:translate(7px,8px) rotate(70deg)}
  50%  {transform:translate(-6px,44px) rotate(170deg)}
  75%  {transform:translate(6px,80px) rotate(255deg)}
  92%  {opacity:.9}
  100% {transform:translate(-2px,118px) rotate(340deg);opacity:0}
}
/* Nothing falls when motion is reduced. The colour of the turn still happens,
   so the season still visibly closes, it simply does it without movement. */
body.reduced .g-leaf{display:none}

/* the line that says a season is closing */
.closing{color:#9a5a2c;font-weight:600}

/* ==========================================================================
   Dark mode
   --------------------------------------------------------------------------
   Only the surface tokens change. The six brand colours do not: forest, leaf,
   sage, cream, glow and blossom mean the same thing at midnight as at noon,
   and the illustrated scenes go on being lit scenes. What changes is the room
   you are looking at them from.

   The dark is a very desaturated forest green rather than grey or black, so
   the game still looks like itself with the light off.

   Why the pictures are not inverted: the garden, the sunshine corner and the
   grove are all daylight. A black sky would be a different game, not a theme,
   and every tree, bird and flower is drawn with its own colours in the SVG.
   They are gentled with a small brightness and contrast reduction instead, so
   a bright picture does not glare out of a dark page at night.
   ========================================================================== */
body.dark{
  --page:#101c17;
  --card:#182b23;
  --card-soft:#1d322a;
  --ink:#e4ede6;
  --ink-soft:#9db5a6;
  --sage:#2f4b3d;              /* borders and quiet fills, not the brand sage */
  --dock:rgba(16,28,23,.96);
  --shadow:0 2px 0 rgba(0,0,0,.3), 0 8px 20px rgba(0,0,0,.34);
  --art-dim:brightness(.86) contrast(.96);

  color-scheme:dark;           /* so scrollbars and form controls follow */
}

/* the lit scenes, gentled rather than inverted */
body.dark .stage,
body.dark .seed-art,
body.dark .hub-art{ filter:var(--art-dim) }

/* The emblem is a dark seed on transparency, so on a dark page it disappears.
   A soft light disc behind it rather than recolouring the artwork. */
body.dark .emblem{
  background:var(--sage);
  box-shadow:0 0 0 2px var(--sage);
}

/* A pressed toolbar button is "on". In light that reads as a sage fill
   against white; in dark the same fill would be nearly the card colour, so
   the on state is carried by the brand green instead. */
body.dark .icon-btn[aria-pressed="true"]{
  background:var(--moss);border-color:var(--leaf);color:var(--cream);
}

/* Sage backed elements keep the brand sage and therefore keep dark text. They
   are deliberate bright notes: an empty give button is meant to catch the eye.
   Stated here so a later reader does not "fix" them. */

/* the keeper panel is its own plain grey box, and needs its own dark */
body.dark .keeper{ background:#1b241f;border-color:#39463e }
body.dark .keeper-h, body.dark .keeper-note{ color:#9fb0a4 }
body.dark .keeper-lbl{ color:#c7d3c9 }
body.dark .keeper-key{ background:#101713;border-color:#39463e;color:#e4ede6 }
body.dark .keeper-btn{ background:#222d26;border-color:#46544a;color:#e4ede6 }
body.dark .keeper-btn:hover{ background:#2b3830 }
body.dark .keeper-danger{ border-color:#7d4436;color:#e8a08c }
body.dark .keeper-arm{ background:#2a1f1c;border-color:#6d4337 }
body.dark .keeper-say{ color:#8fc79a }
body.dark .keeper-say.keeper-bad{ color:#e8a08c }

/* the autumn line, which is a warm orange on cream and needs lifting on dark */
body.dark .closing{ color:#e0a86a }

/* Nothing moves when motion is reduced, including the theme change itself. */
.theme-fade{ transition:background-color .25s var(--ease), color .25s var(--ease) }
body.reduced .theme-fade{ transition:none }

/* The three social links carry their platforms' own colours, which are chosen
   against white. On a dark card Facebook blue drops to about 3.2 to 1 and the
   TikTok black green all but vanishes, so they are lifted here. Close enough
   to each brand to still read as that brand, light enough to be legible. */
body.dark .l-facebook{ color:#6cb0ff }
body.dark .l-tiktok{ color:#e4ede6 }
body.dark .l-spotify{ color:#3fd97a }

/* ==========================================================================
   The mulcher
   --------------------------------------------------------------------------
   A thing standing in the garden that you put leaves into, rather than a
   fourth button in the row under the picture. It is in the sunshine corner
   too, because your plant is in both places and the thing that feeds it
   should be wherever the plant is.
   ========================================================================== */
.mulcher{
  position:absolute;z-index:3;
  border:none;background:none;padding:0;cursor:pointer;
  width:46px;height:56px;
  transition:transform .18s var(--ease),filter .18s;
}
.mulcher svg{width:100%;height:100%;display:block;filter:drop-shadow(0 2px 3px rgba(14,59,46,.35))}
.mulcher:hover{transform:translateY(-3px)}
.mulcher:active{transform:translateY(-1px) scale(.97)}
.mulcher:focus-visible{outline:3px solid var(--glow);outline-offset:4px;border-radius:8px}
/* Optional, not permanent: the caption used to sit on screen all the time,
   which put a text box over the scene art in both Garden and Sunshine
   whenever the mulcher wasn't full. It used to show on hover/focus, but on
   a phone a tap leaves focus sitting there too, so it stayed open and
   crowded the screen just the same. It's JS-only now (showMulchBubble() in
   game.js, the .show class below): a brief "Need 3 leaves" when you press
   short, timed to clear itself a couple of seconds later. The leaf badge
   stays visible as the permanent at-a-glance count. */
.mulch-caption{
  position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);
  width:144px;padding:5px 6px;border:1px solid var(--sage);border-radius:9px;
  background:var(--card);color:var(--ink);box-shadow:var(--shadow);
  font:400 11px/1.3 "Segoe UI",system-ui,sans-serif;text-align:center;
  opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity .15s var(--ease),visibility .15s;
}
.mulch-caption.show{
  opacity:1;visibility:visible;
}
.mulch-title,.mulch-hint{display:block}
.mulch-title{font-weight:800}
.mulch-hint{margin-top:2px;color:var(--ink-soft)}
.mulch-hint:empty{display:none}
.mulcher-garden .mulch-caption{bottom:calc(100% + 40px)}
/* Hung from the right edge, not centred: this button is the last in its
   row now, and a centred 120px caption poked past the phone screen and
   gave the whole page a sideways scroll even while invisible. */
.mulch-row-btn .mulch-caption{width:120px;font-size:10.5px;left:auto;right:0;transform:none}

/* how many leaves are in the basket, so the bin says what it can take */
/* The badge on the mulcher. It is a count of leaves, and it used to be a
   bare number sitting on a wooden bin, which says nothing about what is
   being counted. Since a feed costs three, it also goes 9, 6, 3, 0, so it
   read as a countdown to something rather than as a stock of something. Jo
   asked what it meant, which is the only test that matters. The leaf is the
   whole fix. */
.mulch-have{
  position:absolute;top:-4px;right:-6px;
  min-width:20px;padding:1px 5px;border-radius:999px;
  background:var(--forest);color:var(--cream);
  font-weight:800;font-size:11px;line-height:1.5;font-variant-numeric:tabular-nums;
  box-shadow:0 1px 3px rgba(14,59,46,.4);
  display:flex;align-items:center;gap:3px;
}
/* The leaf in the badge. Two things to know, both learned the hard way.

   It needs two classes to beat .mulcher svg a few rules up, which sets
   every svg in the button to the full size of the button and is meant for
   the mulcher drawing itself.

   And it is mulch-badge-leaf, not mulch-leaf, because mulch-leaf is
   already the leaf that falls into the soil when you feed the thing. That
   name collision cost a while: the badge leaf was in the markup, the right
   size, the right colour, and invisible, because it had quietly inherited
   a fall animation that ends at opacity 0. It measured at 0.0955. */
.mulcher .mulch-badge-leaf{
  width:9px;height:9px;flex:none;fill:#A7D07E;filter:none;
}
.mulcher.empty .mulch-badge-leaf{fill:#cfd6c9}
/* not enough leaves yet: still there, still tappable, visibly waiting */
.mulcher.empty svg{filter:grayscale(.55) drop-shadow(0 2px 3px rgba(14,59,46,.3));opacity:.72}
.mulcher.empty .mulch-have{background:#7d8a79}

/* On the grass to the left of the plant, clear of the decoration space in
   that corner. Sunshine's own copy is gone - Jo's words: "this is the
   resting place, no work" - so there's only the one now. */
.mulcher-garden{left:72px;bottom:26px}

@media (max-width:420px){
  .mulcher-garden{left:64px;bottom:22px;width:40px;height:49px}
}

/* leaves going into the soil, in the layer the watering can already uses */
.mulch-leaf{
  position:absolute;top:8%;width:11px;height:8px;border-radius:60% 10% 60% 10%;
  background:var(--leaf);
  animation:mulchfall 1.3s var(--ease) forwards;
}
@keyframes mulchfall{
  0%   {transform:translateY(0) rotate(0);opacity:0}
  15%  {opacity:.95}
  100% {transform:translateY(120px) rotate(220deg);opacity:0}
}
body.reduced .mulch-leaf{display:none}

/* ==========================================================================
   The background kiwi: Grove, Sunshine and Forest
   --------------------------------------------------------------------------
   Deliberately not part of the .bird layer above. Everything in that layer
   flies: it moves on @keyframes birdpath and swaps frames on a flap-* to beat
   its wings. A kiwi is flightless, nocturnal and ground dwelling, and this
   project holds itself to species-appropriate behaviour, so a kiwi that
   flapped across the sky would be a visible error rather than a shortcut.

   The Grove's kiwi used to work the near bank at ground level instead,
   back and forth, stopping to probe the leaf litter - the first version of
   this. Jo's words the second time round: walk it across the background
   instead, slowly, over about ten seconds. This crosses once, in
   the distance - the hills in Sunshine, the canopy/background trees in
   Forest - in from the bushes on the left and gone again into the bushes
   on the right, roughly ten seconds end to end. Smaller and quieter than
   the Grove's for the distance. Same one-shot-restarted-by-JS pattern:
   game.js removes "walking", forces a reflow, adds it back.
   ========================================================================== */
.kiwi-bg{
  position:absolute;left:-8%;
  width:20px;height:12px;
  background:no-repeat center/contain;
  background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 38 22'><ellipse cx='15' cy='12' rx='10.4' ry='7.4' fill='%237a5a3f'/><ellipse cx='13' cy='10' rx='7.6' ry='5' fill='%238d6b4b'/><path d='M5.6 8.6q-4 1.4-5.2 4.4 3.6 .4 6-2z' fill='%236a4d35'/><path d='M8 15q5 2.6 11 1.6-4.6 2.6-11 .6z' fill='%23654a33'/><circle cx='23' cy='8' r='4.2' fill='%237a5a3f'/><path d='M26 6.6q7 1.2 11.4 3.4-6.4 1.8-11.6 .2z' fill='%23c9b08a'/><circle cx='22.6' cy='6.6' r='.9' fill='%23241a12'/><path d='M12 19v2.6M18 19v2.6' stroke='%235d4330' stroke-width='1.7' stroke-linecap='round'/></svg>");
  opacity:.82;
  pointer-events:none;
}
.kiwi-bg[hidden]{display:none}
.kiwi-bg.walking{
  animation-name:kiwibgwalk;
  animation-duration:10s;
  animation-timing-function:linear;
  animation-iteration-count:1;
  animation-fill-mode:both;
}
body.reduced .kiwi-bg.walking{animation:none;left:45%}

/* One way, not a round trip: in from the left and out past the right,
   with three brief stops along the way (the flats either side of each
   jump) to read as foraging rather than a straight crossing. */
@keyframes kiwibgwalk{
  0%   {left:-8%}
  9%   {left:14%}
  21%  {left:14%}
  37%  {left:40%}
  49%  {left:40%}
  61%  {left:63%}
  73%  {left:63%}
  88%  {left:88%}
  100% {left:108%}
}

/* Both of these were set as a top%, picked against a fixed-height stage.
   Garden and Sunshine stages are no longer fixed height (Sunshine got its
   own aspect-ratio fix today, Garden already had the svh clamp), so a
   top% that looked grounded at one height floats further into the sky as
   the stage grows taller: the backdrop is bottom-anchored cover, so the
   ground is always the same number of pixels off the stage's OWN bottom
   edge, not a fraction of its height. Jo, 2026-11-20: he was flying.
   bottom:Npx is the fix, same idea as the bath and the chair below, which
   never had this problem because they were already anchored that way. */
.sun-stage .kiwi-bg{bottom:14px;top:auto}
/* Moved down to the grass rather than the canopy, and bigger and slower to
   match - Jo's words, after seeing it small and quick in the treeline. */
.forest-stage .kiwi-bg{top:78%;width:32px;height:19px}
.forest-stage .kiwi-bg.walking{animation-duration:16s}
/* Twice the size, half the pace. Lowered from 34% to walk past the river
   at ground level - Jo's words: it read as being up in the sky before. */
.grove-stage .kiwi-bg{top:58%;width:36px;height:22px}
.grove-stage .kiwi-bg.walking{animation-duration:20s}
.garden-stage .kiwi-bg{bottom:40px;top:auto}

/* The first-run "How to play" was an anchor to the footer, which no longer
   exists as a place on the page. It opens the help panel instead. A button
   and not a styled link, because it performs an action rather than going
   somewhere, and that distinction is what a screen reader announces. */
.link-btn{
  background:none;border:none;padding:0;min-height:44px;
  color:var(--moss);font-weight:800;text-decoration:underline;
  text-underline-offset:3px;cursor:pointer;
}

/* ==========================================================================
   Your gardener
   --------------------------------------------------------------------------
   One rig in five colourways, from art/gorilla.js. They are placed in scenes
   as a holder with an <svg> inside, never appended into a scene's own SVG,
   because some of those layers are rebuilt with innerHTML and an actor inside
   a rebuilt layer restarts mid-pose.
   ========================================================================== */
.sun-sitter,.garden-gardener{position:absolute;pointer-events:none}
.sun-sitter svg,.garden-gardener svg{display:block}

/* In the chair, facing left across the bath to the flax, which is where the
   tui show happens and the way the chair already points. Drawn after the
   chair so it sits on top of the sling, which is how a deck chair with
   somebody in it reads from the side. */
.sun-sitter{left:38.5%;bottom:20px;transform:scaleX(-1)}
@media (max-width:420px){ .sun-sitter{left:38%;bottom:12px} }

/* Roughly where a raised hand meets a lowered head on the seated rig at
   84px (see paintGardener() in game.js): close enough to read as "held up
   to the face" without being wired into the character rig itself. The
   character itself is a fixed 84px regardless of viewport, so the offset
   from the sitter's own left edge has to be a fixed px amount too, added
   to that same percentage base - a percentage offset of its own drifted
   away from the face at wide widths, where the (much wider) ground made
   that percentage a lot more than 24px. */
.sun-binocs{position:absolute;left:calc(38.5% + 24px);bottom:72px;width:22px;height:15px;pointer-events:none}
.sun-binocs[hidden]{display:none}
.sun-binocs svg{display:block;width:100%;height:100%;filter:drop-shadow(0 1px 2px rgba(14,59,46,.4))}
@media (max-width:420px){ .sun-binocs{left:calc(38% + 23px);bottom:58px} }

/* Beside the plant, or walking to the mulcher or the plant to do something
   there. Positioned entirely from JS, the same way the forest actor is
   (core/path-walker.js): width and height nought so the box never affects
   layout, left and top set per frame as the walk runs. */
.garden-gardener{width:0;height:0;z-index:2}

/* Parts move between poses on one transition, which is where most of the
   apparent animation comes from for one line of cost. It respects reduced
   motion through the global rule further up: the pose still changes, because
   the pose is information about what just happened, it simply arrives rather
   than travels.

   transform-box:fill-box is NOT optional and was missed the first time, which
   is why the first arm never appeared to move. Without it an SVG transform
   rotates about the origin of the viewBox, so rotate(-48) on an arm does not
   swing it at the shoulder, it throws the whole limb up and left out of the
   frame where it is clipped away and looks like nothing happened at all.

   Each part therefore states where its own joint is: shoulders near the top
   of the arm, hips near the top of the leg, the neck for the head. */
.gor .part{transition:transform .32s var(--ease);transform-box:fill-box}
/* A slower pace for the poses that are meant to read as unhurried: opening
   a flower, lifting binoculars. Set by gardenerDoes() in game.js as a class
   on the holder, for exactly as long as the pose transition itself takes,
   so the arrival AND the return both move at the slow pace, not just one. */
.pose-slow2 .part{transition-duration:.64s}
.pose-slow5 .part{transition-duration:1.6s}
.gor .arm-near{transform-origin:46% 6%}
.gor .arm-far {transform-origin:54% 6%}
.gor .leg-near{transform-origin:50% 4%}
.gor .leg-far {transform-origin:50% 4%}
.gor .torso   {transform-origin:50% 96%}
.gor .head    {transform-origin:50% 92%}
.gor .prop    {transform-origin:30% 20%}

/* ---------- the chooser, on the home screen ---------- */
.who-pick{
  background:var(--card);border:3px solid var(--sage);border-radius:var(--radius);
  padding:14px;box-shadow:var(--shadow);
}
.who-h{font-size:14px;text-transform:uppercase;letter-spacing:.05em;color:var(--ink-soft);margin:0 0 10px}
/* display:contents: this box itself takes no part in layout, so the cards
   it holds become direct flex items of .who-strip and wrap alongside the
   "?" and Continue buttons instead of as a separate grid underneath them.
   paintChooser() in game.js can keep rebuilding this element's innerHTML
   exactly as before; nothing about how the cards themselves are filled
   in had to change for this. */
.who-row{display:contents}
.who-card{
  display:flex;flex-direction:column;align-items:center;gap:4px;
  flex:0 0 68px;min-height:var(--tap);padding:6px 2px;
  background:var(--card-soft);border:3px solid transparent;border-radius:14px;
  cursor:pointer;color:var(--ink);font-weight:800;font-size:11px;line-height:1.2;
  transition:border-color .18s,background .18s;
}
.who-card:hover{border-color:var(--sage)}
.who-card.on{border-color:var(--moss);background:var(--sage)}
.who-art{display:grid;place-items:end center;height:52px}
.who-art svg{width:100%;height:100%}
.who-name{display:block}
/* The first pass at trimming this (art down to 34px, names truncated to
   one line) read as "too small to read" on an actual phone. With "?" and
   Continue moved out to their own row above, the row here is nothing but
   cards, which buys back enough room to size the portraits for actually
   recognising a face rather than for minimum space. */
@media (max-width:420px){
  .who-pick{padding:10px}
  .who-card{flex-basis:64px;min-height:52px;padding:4px 2px;font-size:10.5px}
  .who-art{height:46px}
}


/* ==========================================================================
   Guerrilla Gardeners

   The city is one wide strip scrolled sideways rather than a screen you
   swap. That choice is doing a lot of work for very little: overflow-x plus
   scroll-snap gives touch-drag, trackpad swipe, a scrollbar and arrow keys
   without a single line of JavaScript, and on a wide screen you simply see
   more of the street at once, which is the right way for it to degrade.

   The layer order is the load-bearing part. .lot-art is regenerated when
   anything changes; .lot-actors never is. An actor inside a layer that gets
   rebuilt is an actor that restarts mid-pose, which is a lesson the grove
   already paid for once.
   ========================================================================== */
.lot-frame{
  position:relative;
  /* Taller than the other stages, and that is the whole point of it: the
     strip is 4.2 times its own height, so every pixel of height is 4.2
     pixels of street to walk down. At 42svh there was eighteen pixels of
     scroll on a laptop and the three area buttons had nothing to do. */
  /* Taller with the rest of them (Jo, 2026-11-21). The strip is 4.2 times
     its own height, so every pixel here is 4.2 pixels of street as well. */
  height:clamp(280px, 58svh, 470px);
  overflow-x:auto;overflow-y:hidden;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-x:contain;
  border-radius:var(--r-lg);
  background:#bcd9e8;
  box-shadow:var(--shadow);
  /* a visible focus ring, because this is a real tab stop: it is how the
     street is scrolled with a keyboard */
  outline-offset:3px;
}
/* The strip is exactly the shape of the artboard, so the picture fits it
   with no crop and no letterbox, and every actor positioned in per cent of
   this box lands on its mark. --lot-ar is published by game.js from STRIP
   itself (420 / 136 as this is written) rather than typed here: the pair of
   them disagreeing is what once showed two thirds of the street with pale
   bars down the sides for a whole build.

   It is centred rather than stretched to min-width:100%. A frame wider than
   the whole street is only reachable on a short, very wide window, and sky
   either side of a correctly shaped picture beats a stretched box with the
   picture letterboxed inside it and the gardener standing beside herself. */
.lot-strip{
  position:relative;height:100%;
  aspect-ratio:var(--lot-ar, 420/136);
  margin-inline:auto;
}
.lot-art{position:absolute;inset:0;width:100%;height:100%;display:block}
.lot-actors,.lot-spots{position:absolute;inset:0}
.lot-actors{pointer-events:none}
.lot-snaps{position:absolute;inset:0;display:flex;pointer-events:none}
.lot-snaps i{flex:1 0 33.3333%;scroll-snap-align:center}

/* Where you are in the street. Buttons and not dots: a dot you can click
   but which does not look like a button is a control nobody finds, and it
   is also the only way to get between areas on a keyboard without
   scrubbing. */
.lot-areas{display:flex;gap:6px;justify-content:center;flex-wrap:wrap;margin-top:10px}
/* In the toolbar these are the leftmost group: the same icon-and-word
   shape as the actions beside them, in the pale colour that says "where
   you are" rather than "something you can do". */
.lot-area-btn{
  flex:none;display:flex;align-items:center;justify-content:center;gap:5px;
  min-width:44px;min-height:52px;padding:6px 10px;
  border:2px solid var(--sage);border-radius:12px;
  background:var(--card-soft);color:var(--ink);
  font:800 12px/1.1 "Segoe UI",system-ui,sans-serif;cursor:pointer;white-space:nowrap;
  transition:background .2s var(--ease),border-color .2s var(--ease);
}
.lot-area-btn .lot-act-icon{width:18px;height:18px}
.lot-area-btn[aria-current="true"]{background:var(--forest);color:var(--cream);border-color:var(--forest)}
.workbench{scroll-margin:10px 0 140px}

/* ---------- the street toolbar ----------
   Jo, 2026-11-21: "the put on record and storm now, plus gate, workshop,
   corner etc.. all need to be on the same line - please redesign this they
   fit". Four stacked rows (areas and actions, the record line, the storm
   line, the hints) became one line of controls with the records underneath.

   Everything is icon-first with its word beside it, and the words go on a
   narrow phone exactly as they do in the forest row: eight labelled buttons
   will not fit in 300px, and a control you cannot see is worse than one you
   learn the shape of once. Each stays at least 44px wide either way.

   It scrolls sideways only as a last resort (a 320px phone with every word
   showing, which is not a combination that happens): the point of the
   redesign is that it does not need to. */
.lot-bar{
  display:flex;align-items:stretch;gap:4px;min-width:0;
  overflow-x:auto;scrollbar-width:thin;padding-bottom:2px;
}
.lot-bar .lot-areas{display:flex;gap:3px;margin:0;flex:none}
.lot-bar-split{flex:none;width:1px;align-self:center;height:28px;background:var(--sage);opacity:.7}

/* An action: icon, then word. Same shape as the forest resource stops so
   the two scenes read as one game. */
.lot-act{
  flex:none;display:flex;align-items:center;justify-content:center;gap:5px;
  min-width:44px;min-height:52px;padding:6px 10px;
  border:2px solid var(--forest);border-radius:12px;
  background:var(--forest);color:var(--cream);
  font:800 12px/1.1 "Segoe UI",system-ui,sans-serif;cursor:pointer;
  box-shadow:var(--shadow);
  transition:transform .14s var(--ease),filter .14s;
}
.lot-act:active{transform:translateY(2px);filter:brightness(1.08)}
.lot-act:disabled{background:var(--card-soft);color:var(--ink-soft);border:2px dashed var(--sage);box-shadow:none;cursor:default}
.lot-act-icon{display:block;width:20px;height:20px;flex:none}
.lot-act-icon svg{width:100%;height:100%;display:block}
.lot-act:disabled .lot-act-icon{opacity:.5}
.lot-act-word{white-space:nowrap}

/* How hard the Storm button hits, sitting on the toolbar beside it. Jo,
   2026-11-21: "should just say Storm (not storm level) and simply it to
   take less space". The button says Storm, so the picker next to it only
   has to carry the number: 1, 2 or 3, and what each one means is on the
   hint line the moment you touch it. */
.storm-pick{
  flex:none;min-width:38px;min-height:52px;padding:4px 2px;
  border:2px solid var(--sage);border-radius:12px;
  background:var(--card);color:var(--ink);
  font-weight:800;font-size:13px;line-height:1.1;text-align:center;cursor:pointer;
  appearance:none;-webkit-appearance:none;
}

/* One line, holding whichever sentence is wanted right now. It keeps its
   height when empty so the page does not jump as it changes. */
/* The street news sits under the controls now rather than over the
   picture, so it needs its own breathing room down there. */
#lot-line{margin-top:8px;text-align:left}

.workbench-hint{
  margin:6px 0 0;font-size:11px;line-height:1.4;color:var(--ink-soft);
  min-height:1.4em;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}

/* Eight controls, and the room runs out long before the words do. The
   page gives this card 620px until the viewport reaches 1000, and the
   words need 728, so the words only come back at 1000: below that the
   icons carry it, the way the forest row does. Below 380px everything
   shrinks again to 36px, which is what lets a 320px phone hold the whole
   street on one line with nothing scrolled off it. */
@media(max-width:999px){
  .lot-bar{gap:3px}
  .lot-bar-split{display:none}
  .lot-act-word,.lot-area-btn .lot-area-word{display:none}
  .lot-act,.lot-area-btn{padding:6px;min-width:44px}
  .lot-bar .lot-areas{gap:3px}
}
@media(max-width:440px){
  .lot-bar{gap:2px}
  .lot-bar .lot-areas{gap:2px}
  .storm-pick{min-width:34px;font-size:12px}
}
/* 390px is the commonest phone there is, and nine controls at 44px come
   to 402 against 374 of room, so the step down happens at 420 rather than
   380: measured, not guessed. */
@media(max-width:420px){
  .lot-act,.lot-area-btn{min-width:32px;padding:6px 1px}
  .storm-pick{min-width:30px;padding:4px 0}
}

/* The records already on, under the toolbar: the one thing down here that
   is not a control but what the street is playing. One line, scrolling
   sideways if there are more than fit. */
#lot-records{display:flex;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;gap:6px;margin:6px 0 0}
#lot-records .tune{flex:none}

/* ---------- the dancing ----------
   Jo, 2026-11-20: "when you gift music, maybe a few humans arrive and
   dance". They are the same .passer neighbours the fruiting trees bring,
   so they inherit the art and the sizing; what changes is that they skip
   the one-shot stroll and go straight into a bob, because the point of a
   dancer is the dancing and not the arriving.

   Three slightly different tempos, none of them a multiple of another, so
   three people on one footpath never lock into a chorus line. Stillness
   under reduced motion is already handled by the .passer rule below. */
@keyframes dance{
  0%  {transform:translateY(0)    rotate(-5deg)}
  25% {transform:translateY(-4px) rotate(0deg)}
  50% {transform:translateY(0)    rotate(5deg)}
  75% {transform:translateY(-3px) rotate(0deg)}
  100%{transform:translateY(0)    rotate(-5deg)}
}
/* They walk in before they dance. Jo, 2026-11-20: "give the dancers a
   proper arrival, walking in from the edge of the street rather than
   appearing". Two animations on one person, the way the tui is done: the
   container travels in from off the edge, and the figure inside strolls
   for exactly as long as that takes, then starts dancing on the spot.

   --from is how far out each one starts, set in game.js so the two sides
   of the street are both used; the dance delay matches that walk, which
   is why the three are written out rather than looped. */
@keyframes walkin{
  from{transform:translate(calc(-50% + var(--from,-220px)),-100%)}
  to  {transform:translate(-50%,-100%)}
}
.passer.dancer{animation:walkin 1.05s var(--ease) 1 both}
.passer.dancer.d2{animation-duration:1.3s}
.passer.dancer.d3{animation-duration:.86s;animation-delay:.2s}
/* Dancing only while a record is actually on. Jo, 2026-11-20: "the
   dancers should hang around longer and chat etc". When the music stops
   the .dancing class comes off and they are left on the idle sway below,
   standing about talking, until they wander off a good while later. */
.passer.dancer i{animation:stroll 1.05s var(--ease) 1 both,
                 natter 4.8s var(--ease) 1.05s infinite}
.passer.dancer.d2 i{animation-duration:1.3s,5.4s;animation-delay:0ms,1.3s}
.passer.dancer.d3 i{animation-duration:.86s,4.2s;animation-delay:.2s,1.06s}
.passer.dancer.dancing i{animation:stroll 1.05s var(--ease) 1 both,
                         dance 620ms var(--ease) 1.05s infinite}
.passer.dancer.dancing.d2 i{animation-duration:1.3s,710ms;animation-delay:0ms,1.3s}
.passer.dancer.dancing.d3 i{animation-duration:.86s,550ms;animation-delay:.2s,1.06s}
/* Standing about: a small shift of weight and a turn towards whoever is
   talking. Nothing like the dancing, which is the point of having both. */
@keyframes natter{
  0%  {transform:translateX(0)      rotate(0deg)}
  20% {transform:translateX(-2px)   rotate(-3deg)}
  48% {transform:translateX(-2px)   rotate(-3deg)}
  60% {transform:translateX(2px)    rotate(4deg)}
  88% {transform:translateX(2px)    rotate(4deg)}
  100%{transform:translateX(0)      rotate(0deg)}
}
/* And off home the way they came. */
@keyframes walkoff{
  0%  {transform:translate(-50%,-100%);opacity:1}
  70% {opacity:1}
  100%{transform:translate(calc(-50% + var(--from,-220px)),-100%);opacity:0}
}
.passer.dancer.leaving{animation:walkoff 1.25s var(--ease) 1 both}

/* What they are saying. A small bubble over one person at a time, because
   a street where everybody talks at once is a protest, not a chat. */
.passer .chat{
  position:absolute;left:50%;bottom:calc(100% - 6px);
  transform:translateX(-50%);
  white-space:nowrap;
  padding:3px 7px;border-radius:9px;
  background:var(--card);color:var(--ink);
  font:600 10px/1.25 "Segoe UI",system-ui,sans-serif;
  box-shadow:0 2px 6px rgba(8,26,16,.25);
  pointer-events:none;z-index:5;
  animation:chatpop 3.2s var(--ease) 1 both;
}
.passer .chat::after{
  content:"";position:absolute;left:50%;top:100%;
  margin-left:-3px;border:4px solid transparent;
  border-top-color:var(--card);border-bottom:0;
}
@keyframes chatpop{
  0%  {opacity:0;transform:translateX(-50%) translateY(4px) scale(.9)}
  10% {opacity:1;transform:translateX(-50%) translateY(0)   scale(1)}
  85% {opacity:1;transform:translateX(-50%) translateY(0)   scale(1)}
  100%{opacity:0;transform:translateX(-50%) translateY(-3px) scale(.97)}
}
body.reduced .passer .chat{animation:none}
body.reduced .passer.dancer.leaving{animation:none;opacity:0}
@media (max-width:480px){.passer .chat{font-size:9px;padding:2px 5px}}
/* Reduced motion: they are simply there, which is the same bargain every
   other arrival in the game makes. The .passer rule below stills the
   figure; this stills the walk. */
body.reduced .passer.dancer{animation:none}

/* A thing in the street you can act on: a tree to graft, a patch to plant,
   the bench. Positioned by percentage of the STRIP, so they stay put
   whatever is drawn behind them. */
.lot-spot{
  position:absolute;
  min-width:var(--tap);min-height:var(--tap);
  transform:translate(-50%,-50%);
  border:none;background:none;padding:0;cursor:pointer;
  display:grid;place-items:center;border-radius:50%;
}
.lot-spot::before{
  content:'';position:absolute;inset:-2px;border-radius:50%;
  background:radial-gradient(circle,rgba(255,217,132,.55),transparent 68%);
  opacity:0;transition:opacity .22s var(--ease);
}
.lot-spot:hover::before,.lot-spot:focus-visible::before{opacity:1}
/* A spot you could act on RIGHT NOW, which is the only hint the scene
   gives. It is a pulse and not an arrow, because an arrow would make it a
   task list and this is meant to be a place you potter about in. */
/* Deliberately faint. The first version lit every bare patch at full
   strength and the street turned into a row of targets, which is a task
   list and not a place to potter about in. It is a hint, not an arrow. */
.lot-spot.ready::before{opacity:.42;animation:readypulse 3.2s var(--ease) infinite}
.lot-spot svg{display:block;overflow:visible}

/* ---------- the bees ----------
   They arrive because the place now holds what they live on, which is the
   same rule the grove's birds already follow. Nothing summons them and
   nothing can: plant flowers and they turn up.

   Two animations on one element, the way the tui and the kiwi are done: a
   long wandering drift for where it is, and a fast flicker for the wings.
   The wing flicker is a background-image swap on steps(1), because a bee at
   this size is nine pixels across and anything smoother is wasted. */
@keyframes beedrift{
  0%   {transform:translate(0,0)}
  18%  {transform:translate(14px,-9px)}
  33%  {transform:translate(26px,4px)}
  52%  {transform:translate(9px,11px)}
  68%  {transform:translate(-13px,2px)}
  85%  {transform:translate(-5px,-10px)}
  100% {transform:translate(0,0)}
}
@keyframes beewing{0%,100%{opacity:.9}50%{opacity:.35}}
.bee{
  position:absolute;width:9px;height:9px;
  transform:translate(-50%,-50%);
  animation:beedrift 9s ease-in-out infinite;
}
.bee i{
  position:absolute;inset:0;display:block;
  background:no-repeat center/contain;
  background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'><ellipse cx='9' cy='10' rx='5' ry='3.6' fill='%23e8b43a'/><path d='M5 8.6h8v1.5H5zM6 11.4h6.4v1.4H6z' fill='%231d1a14'/><ellipse cx='13.6' cy='9.4' rx='1.7' ry='1.5' fill='%231d1a14'/><ellipse cx='7' cy='6' rx='3.4' ry='2' fill='%23ffffff' opacity='.72'/></svg>");
  animation:beewing .18s steps(1,end) infinite;
}
.bee.b2{animation-duration:11.5s;animation-delay:-3s}
.bee.b3{animation-duration:8s;animation-delay:-5.5s}

/* ---------- the gardener in the street ---------- */
/* Standing on the pavement outside the workshop, which is the middle of
   the street and so the thing you see first on any screen width. */
/* bottom is measured off the foot of the drawn box, which is the near verge
   now rather than the pavement, so the 4 here is still 4 units up the
   street and the verge is added back on. Street units in, percentage of
   the box out, exactly like lotSpot does in game.js. */
.lot-gardener{
  position:absolute;left:41%;
  bottom:calc((var(--lot-fore, 16) + 4) / var(--lot-vh, 136) * 100%);
  pointer-events:none;transform:translateX(-50%);
}
.lot-gardener svg{display:block}
/* Walking to whatever you just did. The left percentage is set in game.js
   with its own transition so reduced motion can skip the travel; this only
   turns them round, the way the forest walker already does. */
.lot-gardener.lot-facing-left svg{transform:scaleX(-1)}

/* ---------- the bird table's own visitor ---------- */
/* art/lot.js already draws a standing tui into the regenerated backdrop
   once fed - this is the arrival on top of that, in the layer that never
   gets rebuilt (same reasoning as .lot-gardener above). One-shot, not a
   loop: triggered by feedBirds() in game.js each time berries go out,
   same restart-by-class-toggle trick the kiwis use. Reuses .bird and
   the tui's own art/wingbeat (.b-tui, flap-tui) rather than drawing a
   second bird from scratch. */
.lot-feeder{
  left:14%;
  top:calc((58.5 + var(--lot-sky, 20)) / var(--lot-vh, 136) * 100%);
  opacity:0;pointer-events:none;
}
.lot-feeder[hidden]{display:none}
.lot-feeder.visiting{
  animation:lotbirdvisit 4.2s var(--ease) both, flap-tui 1.6s linear infinite;
}
/* translateX(-50%) in every step, not a separate static rule: the keyframe
   sets the whole transform property each time it runs, so a centring
   transform declared outside the animation would just get overridden the
   moment the animation starts. */
@keyframes lotbirdvisit{
  0%   {opacity:0;transform:translateX(-50%) translateY(-34px) scale(.85)}
  14%  {opacity:1;transform:translateX(-50%) translateY(-34px) scale(.85)}
  34%  {opacity:1;transform:translateX(-50%) translateY(0) scale(1)}
  82%  {opacity:1;transform:translateX(-50%) translateY(0) scale(1)}
  100% {opacity:0;transform:translateX(-50%) translateY(-8px) scale(.85)}
}
body.reduced .lot-feeder.visiting{animation:none;opacity:0}

/* ---------- reduced motion ----------
   The bees stay and stop moving. Keep the information, drop the movement:
   a scene that says 'the bees found your flowers' and then has no bees in
   it has lost the only thing that sentence was for. */
body.reduced .bee,body.reduced .bee i{animation:none}
body.reduced .lot-spot.ready::before{animation:none;opacity:.85}
body.reduced .lot-frame{scroll-behavior:auto}

/* Forest pathway: prototype B movement, prototype C life, shared character rig. */
.forest-stage{isolation:isolate}
.forest-art{object-position:50% 100%}
.forest-path,.forest-life,.forest-foliage{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.forest-path{fill:none;stroke:#e0cda4;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;opacity:.5}
.forest-path path{vector-effect:non-scaling-stroke;stroke-width:5;stroke-dasharray:2 7}
.forest-gardener{position:absolute;width:0;height:0;pointer-events:none;z-index:2}
.forest-lift{display:block;position:absolute;transform-origin:50% 100%}
.forest-face,.forest-face svg{display:block;overflow:visible}
.forest-facing-left .forest-face{transform:scaleX(-1)}
.finds{pointer-events:none;z-index:3}
.finds button{pointer-events:auto}
.forest-stage .find{width:56px;height:56px}
/* Berry and seed got real in-scene art 2026-11-20: a bush and a hanging
   pod, neither of them square the way the old round icons were. Each
   box matches its own art's aspect so nothing stretches; the svg override
   lets the art fill that box instead of the fixed 34px every other find
   uses, and the hover glow drops for these two since an ellipse glow
   under a hanging pod read as a shadow painted in the wrong place. */
.forest-stage .find[data-item="berry"]{width:64px;height:62px}
.forest-stage .find[data-item="seed"]{width:48px;height:66px}
.forest-stage .find[data-item="berry"] svg,
.forest-stage .find[data-item="seed"] svg{width:100%;height:100%}

/* ---------- making a find findable ----------
   Jo, 2026-11-20: "the background is gorgeous and vibrant, but the stuff is
   flat and boring". Three things, and the art itself was only one of them.

   1. A warm glow that is always on, not only on hover. This is the same
      move the fruiting tree already got for the same reason ("Jo could not
      find it, which is the only test that matters"), just smaller. It is
      an ellipse rather than a circle because a bush is wider than it is
      tall and a hanging pod is the other way about, and a circular glow
      under either one reads as a shadow painted in the wrong place, which
      is why the first version of these two had no glow at all.
   2. A slow sway. Motion is the single strongest "this is for you" signal
      a scene can give, and a plant that never moves in a forest where the
      ferns do reads as a sticker. Each find gets its own delay from --wave
      so they are not a chorus line.
   3. A real contact shadow under the whole thing, deeper than the old flat
      drop-shadow, so it sits in the clearing rather than on top of it. */
.forest-stage .find[data-item="berry"]::before,
.forest-stage .find[data-item="seed"]::before{
  content:'';position:absolute;left:50%;top:auto;bottom:4px;
  width:118%;height:46%;transform:translateX(-50%);
  border-radius:50%;
  background:radial-gradient(closest-side,rgba(255,217,132,.72),rgba(255,217,132,.18) 62%,transparent 78%);
  opacity:.85;animation:findglow 3.4s var(--ease) infinite;
}
.forest-stage .find[data-item="seed"]::before{bottom:10%;height:40%;width:150%}
@keyframes findglow{0%,100%{opacity:.5;transform:translateX(-50%) scale(.92)}
                    50%  {opacity:.95;transform:translateX(-50%) scale(1.06)}}
@keyframes findsway{0%,100%{transform:rotate(-1.6deg)}50%{transform:rotate(1.6deg)}}
.forest-stage .find[data-item="berry"] svg,
.forest-stage .find[data-item="seed"] svg{
  position:relative;
  transform-origin:50% 92%;
  animation:findsway 4.6s ease-in-out var(--wave,0ms) infinite;
  filter:drop-shadow(0 3px 5px rgba(8,26,16,.55));
}
/* The pod hangs, so it swings from the branch at the top, not the ground. */
.forest-stage .find[data-item="seed"] svg{transform-origin:52% 14%}
body.reduced .forest-stage .find[data-item="berry"]::before,
body.reduced .forest-stage .find[data-item="seed"]::before{animation:none;opacity:.8}
body.reduced .forest-stage .find[data-item="berry"] svg,
body.reduced .forest-stage .find[data-item="seed"] svg{animation:none}
/* The fruiting tree is the rarest thing in the game and it was 68px of icon
   standing in a painting that is already full of trees. Jo could not find it,
   which is the only test that matters. Bigger, and with a standing ring so it
   reads as something you can use rather than more scenery. */
.forest-stage .fruit-tree{width:104px;height:104px}
.forest-stage .fruit-tree::before{
  content:'';position:absolute;inset:6px;border-radius:50%;
  background:radial-gradient(circle,rgba(255,217,132,.55),transparent 66%);
  opacity:.9;animation:readypulse 3s var(--ease) infinite;
}
.forest-stage .fruit-tree.cut::before{opacity:0;animation:none}
body.reduced .forest-stage .fruit-tree::before{animation:none}
.forest-stage .find::before{opacity:.7}
.forest-stage .fruit-tree.cut::after{content:'✓';position:absolute;right:0;bottom:0;background:var(--cream);color:var(--forest);border-radius:50%;font-size:16px;padding:0 5px}
.forest-clearing{position:absolute;top:12px;left:12px;padding:5px 10px;border-radius:20px;background:rgba(14,59,46,.88);color:#FAF9F0;font-size:12px;font-weight:800}
.forest-controls{display:flex;gap:12px;align-items:center;justify-content:space-between}
.forest-stops{display:flex;gap:8px}
/* Scoped to .forest-back and .forest-stops rather than "button" in general:
   .forest-actions now also holds the two travel buttons (Follow the path,
   Find more), and they keep their own big-btn look rather than this flat
   card style. */
.forest-back,.forest-stops button{min-width:48px;min-height:46px;border:2px solid var(--moss);border-radius:14px;background:var(--card);color:var(--ink);font-weight:800;font-size:14px;line-height:1;cursor:pointer}
.forest-stops button[aria-current]{background:var(--sage);color:var(--forest)}
.forest-back:disabled,.forest-stops button:disabled{opacity:.45;cursor:default}
/* 2.8em of reserved space for a line that is usually one line long was
   nearly 40px of nothing under the forest. One line and a bit. */
.forest-status{font-size:13px;line-height:1.4;color:var(--ink-soft);margin:0;text-align:center;min-height:1.5em}
@keyframes forest-stride{0%,100%{transform:rotate(16deg)}50%{transform:rotate(-16deg)}}
@keyframes forest-bob{to{transform:translateY(-1.4px)}}
.forest-walking .leg-near,.forest-walking .arm-far{animation:forest-stride .54s ease-in-out infinite}
.forest-walking .leg-far,.forest-walking .arm-near{animation:forest-stride .54s ease-in-out -.27s infinite}
.forest-walking .torso{animation:forest-bob .27s ease-in-out infinite alternate}
@keyframes forest-stir{0%,100%{transform:rotate(0)}50%{transform:rotate(2.6deg)}}
.forest-life{z-index:1;overflow:hidden}
.forest-foliage .stir{transform-box:fill-box;transform-origin:50% 100%;animation:forest-stir 4s ease-in-out var(--wave) infinite}
@keyframes forest-fantail{0%,8%{left:-60px;top:44%}38%{left:40%;top:48%}65%{left:70%;top:40%}90%,100%{left:110%;top:52%}}
.forest-life .fantail{position:absolute;left:-60px;top:44%;animation:forest-fantail 22s linear infinite}
.forest-life .wing{transform-box:fill-box;transform-origin:50% 100%;animation:forest-bob .18s ease-in-out infinite alternate}
body.reduced .forest-gardener,body.reduced .forest-lift{transition:none!important}
body.reduced .forest-life .fantail{left:75%;top:42%;animation:none}
body.reduced .forest-life *{animation:none!important}
@media(prefers-reduced-motion:reduce){.forest-life *,.forest-walking .part{animation:none!important}}

.forest-stage .fruit-tree svg{width:92px;height:92px;position:relative}

/* Resource actions remain readable on narrow phones. */
.forest-controls{display:flex;align-items:center;justify-content:space-between;gap:6px}
.forest-back{flex:none}
/* Jo, 2026-11-20: "the follow path, find more should be on the same line as
   leaf, berry, seeds, cutting because you can't see it otherwise". They used
   to be a second row below this one, which on a phone could sit past the
   bottom of the screen. One row now: Back, the four resource stops and the
   two travel buttons, all genuinely visible at once rather than scrolled to
   in either direction, which is the thing Jo actually asked for.

   __forest.html checks '#finds button,#forest-stops button' are each at
   least 44px in both directions, so that floor is fixed and everything
   else gives way around it: at 320px there is room for 44px stops and Back
   and Follow and Find as icons alone, their words back by 390px, the
   whole phrase again past 440px where a phone stops being the constraint.
   Both the full words and the stop names stay in the DOM throughout (the
   .wander-word, .wander-extra and .forest-resource-name spans below), so
   the accessible name and __forest.html's own text checks never change;
   only what a narrow screen chooses to draw does. */
.forest-actions{flex:1;min-width:0;display:flex;align-items:stretch;gap:4px}
.forest-stops{display:flex;gap:3px;flex:none}
/* Jo, 2026-11-21: "the leaves, seeds, berres, cuttings etc buttons are
   too big". Down from 52 to 46 tall with a smaller icon and count, which
   is as small as they go: __forest.html holds the floor at 44 in both
   directions and that floor is a touch target, not a style choice. */
.forest-stops button{display:grid;place-items:center;gap:0;min-width:44px;min-height:46px;padding:2px 1px;flex:none;border-radius:11px}
.forest-stops button svg{width:15px;height:15px;flex:none}
.forest-resource-icon{display:flex;align-items:center;justify-content:center;gap:2px}
.forest-resource-count{font-size:10px;font-variant-numeric:tabular-nums}
.forest-resource-name{font-size:9.5px;line-height:1.05}
.forest-controls .forest-stops button:disabled{opacity:1;border-style:dashed;border-color:var(--sage)}
.forest-stops button:disabled svg{opacity:.45}

/* The travel buttons keep their big-btn look (the default elsewhere is
   .calm-btn,.wander-btn{width:100%}, right when each had a whole row to
   itself) but sit flex:none here, sized to their content instead of
   stretched to fill a row they no longer have alone. */
.forest-actions .wander-btn{
  width:auto;flex:none;min-width:44px;min-height:46px;
  white-space:nowrap;padding:8px 12px;font-size:13px;gap:5px;
}

/* Below 680px there is not room for six full-width controls once the 44px
   floor on the four resource stops is kept, so the stop names go and the
   travel buttons go icon-only in the same breath, together rather than at
   two different widths: a stage between them where the stops had lost
   their names but Follow/Find more had not yet lost their words needed
   roughly 500px of content in as little as 400px of phone, which is worse
   than either end and is exactly the kind of thing only measuring against
   the real layout catches (the page's own content column caps at 500px
   from here up, which is what lets the full words fit again past this
   point). A lit green dot and an arrow are still two visible, tappable
   things sitting right where the four resource stops are, which is the
   whole fix Jo asked for. */
@media(max-width:680px){
  .forest-resource-name,.wander-extra,.wander-word{display:none}
  .forest-controls{gap:3px}
  .forest-actions{gap:3px}
  .forest-stops{gap:2px}
  /* Back and the two travel buttons are not part of __forest.html's 44px
     floor (only '#finds button,#forest-stops button' are), so they are
     free to go narrower than the stops once they are icon-only: at 320px
     wide, four 44px stops plus three 44px buttons plus gaps add up to
     327px against roughly 304px of actual room, which overflowed the row
     off the edge of the screen until this was checked against a real
     render rather than assumed from the arithmetic above. */
  .forest-back{min-width:0;width:34px;padding:0}
  .forest-actions .wander-btn{min-width:0;padding:0;width:38px}
}

/* Rain over the whole street when something is watered. One sweep, no
   loop: it answers the tap and gets out of the way. */
@keyframes lotrain{0%{opacity:0}18%{opacity:.5}100%{opacity:0}}
.lot-rain::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:repeating-linear-gradient(74deg,rgba(190,225,240,.0) 0 7px,rgba(190,225,240,.45) 7px 8px);
  animation:lotrain 1.4s linear 1;
}
body.reduced .lot-rain::after{animation:none;opacity:0}

/* ---------- a storm over the street ----------
   Jo, 2026-11-20, on the first version: "doesn't look like rain, looks like
   there's an issue with the screen, rain has splattering, then builds,
   lightening has streaks and grey clouds that float by, slow it down too,
   then drift to sunshine again".

   She was right about the cause as well as the effect. The first version was
   one repeating-linear-gradient with its background-position animated, which
   is a moire pattern sliding across the screen and reads exactly like a
   display fault. Rain is not parallel infinite lines; it is separate short
   drops at slightly different speeds, and it lands on things.

   So this is built out of real elements, made in game.js and thrown away
   when it passes: grey clouds that drift across, a few dozen drops falling
   at a slant, splashes where they hit, drawn forks of lightning and a sky
   that darkens and comes back to sunshine. Eighteen seconds rather than
   seven, because weather that arrives and leaves inside one breath is a
   light switch, not weather. */
.lot-weather{position:absolute;inset:0;pointer-events:none;z-index:4;overflow:hidden}

/* The sky. One long wash: overcast comes on slowly, the two lightning
   moments whiten it for an instant, and the last third drifts back to
   nothing, which is the "drift to sunshine again" part. */
@keyframes stormsky{
  0%  {background:rgba(26,36,54,0)}
  14% {background:rgba(26,36,54,.34)}
  26% {background:rgba(26,36,54,.52)}
  33% {background:rgba(233,243,255,.62)}
  36% {background:rgba(26,36,54,.54)}
  58% {background:rgba(26,36,54,.52)}
  61% {background:rgba(240,247,255,.7)}
  64% {background:rgba(26,36,54,.54)}
  78% {background:rgba(26,36,54,.4)}
  92% {background:rgba(26,36,54,.12)}
  100%{background:rgba(26,36,54,0)}
}
.lot-storm .lot-weather::before{
  content:"";position:absolute;inset:0;
  animation:stormsky var(--storm,18s) linear 1 both;
}

/* Clouds. Three soft grey blobs that drift the whole width and out the far
   side, each at its own pace, so the sky is moving even between flashes. */
.cloud{
  position:absolute;border-radius:50%;
  background:#a9b5c4;opacity:0;
  filter:blur(2.5px);
  animation:cloudby var(--for,18s) linear var(--delay,0s) 1 both;
}
.cloud::before,.cloud::after{
  content:"";position:absolute;border-radius:50%;background:inherit;
}
.cloud::before{width:62%;height:118%;left:8%;top:-46%}
.cloud::after{width:52%;height:96%;right:6%;top:-28%}
@keyframes cloudby{
  0%  {transform:translateX(-30%);opacity:0}
  12% {opacity:.72}
  80% {opacity:.66}
  100%{transform:translateX(130%);opacity:0}
}

/* A drop: short, slanted, brighter at the bottom like a real one, and
   falling the height of the street. --len, --x, --dur and --delay are set
   per drop in game.js so no two fall together. */
.drop{
  position:absolute;top:-6%;left:var(--x,50%);
  width:2px;height:var(--len,18px);border-radius:1px;
  background:linear-gradient(rgba(214,240,252,0),rgba(226,246,255,.95));
  transform:rotate(11deg);
  animation:fall var(--dur,1s) linear var(--delay,0s) var(--runs,12) both;
}
@keyframes fall{
  0%  {transform:translateY(0) rotate(11deg);opacity:0}
  8%  {opacity:.9}
  92% {opacity:.9}
  100%{transform:translateY(var(--drop,320px)) rotate(11deg);opacity:0}
}

/* And where it lands: a little ring that opens and fades on the ground.
   This is the splattering, and it is the detail that makes the rest read
   as rain rather than as lines over a picture. */
.splash{
  position:absolute;left:var(--x,50%);top:var(--y,80%);
  width:10px;height:4px;margin:-2px 0 0 -5px;
  border:1px solid rgba(214,240,252,.75);border-top-color:transparent;
  border-radius:0 0 50% 50%;
  animation:splat var(--dur,1.1s) ease-out var(--delay,0s) var(--runs,10) both;
}
@keyframes splat{
  0%  {transform:scale(.2);opacity:0}
  10% {transform:scale(.3);opacity:.9}
  45% {transform:scale(1);opacity:0}
  100%{transform:scale(1);opacity:0}
}

/* Lightning: a drawn fork, not a white screen. Two of them, each visible
   for about a tenth of a second with a flicker in it, which is as long as
   the real thing and long enough to see the shape. */
.bolt{
  position:absolute;left:var(--x,50%);top:0;
  opacity:0;
  animation:strike .42s steps(1,end) var(--delay,0s) 1 both;
}
.bolt path{fill:#fdf8dd}
@keyframes strike{
  0%  {opacity:0}
  6%  {opacity:1}
  18% {opacity:.15}
  26% {opacity:1}
  52% {opacity:.9}
  100%{opacity:0}
}

/* Reduced motion: the fact of the storm and none of the flashing, falling
   or drifting. A lightning flash is exactly what that setting is for. */
body.reduced .lot-storm .lot-weather::before{animation:none;background:rgba(26,36,54,.36)}
body.reduced .cloud{animation:none;opacity:.6;transform:translateX(40%)}
body.reduced .drop,body.reduced .splash{animation:none;opacity:.5}
body.reduced .bolt{display:none}

/* The birds take cover too. Jo, 2026-11-21: "when a storm hits, the birds
   should fly into the trees and try and hide a bit, then after the storm
   fly back to where they are now". They leave as the first drops land, sit
   dimmed in the crown of the tree by the gate while it blows through, and
   come back to the table as the sky clears: the same shape the neighbours
   running for the workshop follow, because they are doing the same thing.

   --fx and --fy come from art/lot.js, which knows where each bird starts
   and therefore how far it has to go. transform-box is view-box so those
   pixels mean viewBox units, which is what the art measures in. */
@keyframes birdshelter{
  0%   {transform:translate(0,0);opacity:1}
  9%   {transform:translate(0,0);opacity:1}
  13%  {transform:translate(calc(var(--fx,0px) * .4),calc(var(--fy,0px) * .8 - 6px));opacity:1}
  20%  {transform:translate(var(--fx,0px),var(--fy,0px));opacity:1}
  26%  {transform:translate(var(--fx,0px),var(--fy,0px));opacity:.45}
  78%  {transform:translate(var(--fx,0px),var(--fy,0px));opacity:.45}
  86%  {transform:translate(var(--fx,0px),var(--fy,0px));opacity:1}
  94%  {transform:translate(calc(var(--fx,0px) * .35),calc(var(--fy,0px) * .6 - 4px));opacity:1}
  100% {transform:translate(0,0);opacity:1}
}
.lot-bird{transform-box:view-box;transform-origin:center}
.lot-storm .lot-bird{animation:birdshelter var(--storm,18s) var(--ease) 1 both}
/* Reduced motion: they are simply dimmer while it rains, no flight. */
body.reduced .lot-storm .lot-bird{animation:none;opacity:.45}

/* Running for the workshop door. --to is set per person in game.js from
   where they are standing, so everyone converges on the same doorway. */
@keyframes shelter{
  0%  {transform:translate(-50%,-100%);opacity:1}
  85% {opacity:1}
  100%{transform:translate(calc(-50% + var(--to,-180px)),-100%);opacity:0}
}
.passer.sheltering{animation:shelter 1.25s var(--ease) 1 both}
body.reduced .passer.sheltering{animation:none;opacity:0}

/* The neighbours who come for the apples. They walk in from the side once,
   same as always, but no longer just stand there after: a short loop near
   the tree, a few steps one way then the other, crouching for a fallen
   apple partway through each leg. Never far from the trunk and never
   finished - someone working their way through a street tree's apples
   doesn't wander off between them. */
@keyframes stroll{from{transform:translateX(-26px);opacity:0}to{transform:translateX(0);opacity:1}}
@keyframes passerWander{
  0%   {transform:translateX(0)}
  16%  {transform:translateX(-7px)}
  26%  {transform:translateX(-7px) translateY(3px) scaleY(.8)}
  36%  {transform:translateX(-7px) translateY(3px) scaleY(.8)}
  46%  {transform:translateX(-7px)}
  58%  {transform:translateX(6px)}
  70%  {transform:translateX(6px) translateY(3px) scaleY(.8)}
  80%  {transform:translateX(6px) translateY(3px) scaleY(.8)}
  90%  {transform:translateX(6px)}
  100% {transform:translateX(0)}
}
.passer{
  position:absolute;width:26px;height:44px;
  transform:translate(-50%,-100%);
  pointer-events:none;
}
.passer i{
  display:block;transform-origin:50% 100%;
  animation:stroll 1.6s var(--ease) 1 both,
            passerWander 10s ease-in-out 1.6s infinite;
}
.passer.p2 i{animation:stroll 1.6s var(--ease) .5s 1 both,
             passerWander 10s ease-in-out 2.1s infinite}
.passer.p3 i{animation:stroll 1.6s var(--ease) .9s 1 both,
             passerWander 11s ease-in-out 2.5s infinite}
.passer.p4 i{animation:stroll 1.6s var(--ease) 1.3s 1 both,
             passerWander 9s ease-in-out 2.9s infinite}
.passer svg{display:block;width:100%;height:100%}
body.reduced .passer i{animation:none;opacity:1;transform:none}

/* Mobile Home uses the portrait garden map supplied for the phone layout.
   Its source ratio is retained, so each live hotspot stays over its painted
   sign and the whole map remains visible without cropping. */
@media(max-width:559px){
  /* Show about 88% of the portrait artwork: trim 12% from its top to make
     the Home chooser reachable with less scrolling. Align the image at the
     bottom so the garden paths and all signposts remain in frame. */
  .hub-stage{aspect-ratio:941/1471}
  .hub-art-image{object-position:50% 100%}
  .home-share-toggle{display:block}
  .hub-wrap{gap:8px}
  .hub-wrap .hub-stage{order:1}
  .hub-wrap .who-pick{order:2}
  .hub-stage .sign-spot[data-go="garden"]{left:13.1%!important;top:28.9%!important}
  .hub-stage .sign-spot[data-go="sun"]{left:35%!important;top:23.6%!important}
  .hub-stage .sign-spot[data-go="forest"]{left:69.3%!important;top:28.6%!important}
  .hub-stage .sign-spot[data-go="grove"]{left:86.2%!important;top:37.4%!important}
  .hub-stage .sign-spot[data-go="lot"]{left:85%!important;top:48.2%!important}
  .who-pick{padding:10px 12px}
  .who-head{margin-bottom:6px}
  .who-strip{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;padding:2px 1px 7px;scrollbar-width:thin}
  .who-row{display:flex;flex:0 0 auto;gap:8px}
  .who-card{flex:0 0 76px;scroll-snap-align:start}
  .who-pick .continue-btn{margin-top:4px;min-height:48px}
  #scene-home .share-card{display:none}
}

