/* linpile.com. The look is the app's and its reels': Geist with tight headlines, spaced mono labels, paper and ink,
   coral and coin yellow in whole fields, ink outlines with a hard ink shadow, and scenes that lie on one another
   like the cards of the logo. */
@font-face { font-family: Geist; font-weight: 400; font-display: swap; src: url(/fonts/Geist-Regular.woff2) format("woff2"); }
@font-face { font-family: Geist; font-weight: 500; font-display: swap; src: url(/fonts/Geist-Medium.woff2) format("woff2"); }
@font-face { font-family: Geist; font-weight: 600; font-display: swap; src: url(/fonts/Geist-SemiBold.woff2) format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 400; font-display: swap; src: url(/fonts/GeistMono-Regular.woff2) format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 500; font-display: swap; src: url(/fonts/GeistMono-Medium.woff2) format("woff2"); }

:root {
  --ink: #151515; --paper: #FAFAF8; --sand: #EFEEEB; --tile: #E2E0DB; --line: #DCDAD4; --grey: #64615C;
  --coin: #F5C542; --coral: #F26A2E; --night: #1F1E1C;
  --gutter: clamp(20px, 5vw, 72px);
  /* The outline of a scene and how round its top corners are. */
  --edge: 3px; --round: clamp(34px, 6.5vw, 92px);
  --sans: Geist, ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* The scenes' outlines run a little past both sides of the page, where they are cut off. (Not on the garden
   builder, which has no scenes: there the garden has to stay in view as the page scrolls.) */
body:not(.bare) .page { overflow-x: hidden; overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 18px/1.45 var(--sans); -webkit-font-smoothing: antialiased; }
img, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

.mono, .eyebrow { font-family: var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }
.eyebrow { font-weight: 500; font-size: clamp(12px, 1.05vw, 15px); }
.mono { font-weight: 400; font-size: 12px; color: var(--grey); }
.wrap { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* MARK: Navigation */
.nav { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px;
       width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; padding-block: clamp(18px, 2.4vw, 30px); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 22px; letter-spacing: -0.02em; }
.mark { width: 40px; height: 26px; overflow: visible; }
.mark path { stroke: var(--ink); stroke-width: 13; stroke-linejoin: round; }
.nav nav { display: flex; gap: clamp(14px, 2.4vw, 30px); font-size: 16px; }
.nav nav a { text-decoration: none; padding-block: 8px; border-bottom: 2px solid transparent; }
.nav nav a:hover, .nav nav a[aria-current] { border-bottom-color: var(--ink); }

/* MARK: Buttons and chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 0 26px;
       border: 2.5px solid var(--ink); border-radius: 20px; background: var(--coral); color: var(--ink);
       box-shadow: 5px 6px 0 var(--ink); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; text-decoration: none; cursor: pointer;
       transition: transform 0.12s ease-out, box-shadow 0.12s ease-out; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 6px 7px 0 var(--ink); }
.btn:active { transform: translate(4px, 5px); box-shadow: 1px 1px 0 var(--ink); }
.btn--paper { background: var(--paper); }
.btn--coin { background: var(--coin); }
.btn--ink { background: var(--ink); color: var(--paper); border-color: var(--paper); box-shadow: 5px 6px 0 #3A3833; }
.btn svg { width: 20px; height: 20px; flex: none; }
.soon { display: inline-flex; align-items: center; min-height: 58px; padding: 0 22px; border: 2.5px dashed currentColor; border-radius: 20px;
        font: 500 13px var(--mono); letter-spacing: 0.14em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 18px; }
.chip { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 16px 0 12px; border: 2.5px solid var(--ink); border-radius: 22px;
        background: var(--paper); color: var(--ink); box-shadow: 3px 4px 0 var(--ink); font: 500 14px var(--mono); letter-spacing: 0.02em; white-space: nowrap; }
.chip.coin { background: var(--coin); }
.coin-icon { width: 20px; height: 20px; flex: none; }

/* MARK: Scenes. Each lies on the one before, as the cards of the logo do. */
.scene { position: relative; margin: calc(var(--round) * -1) calc(var(--edge) * -1) 0; padding: calc(var(--round) * 0.5 + clamp(56px, 8vw, 120px)) 0 calc(var(--round) + clamp(56px, 8vw, 120px));
         border: var(--edge) solid var(--ink); border-bottom: 0; border-radius: var(--round) var(--round) 0 0; background: var(--paper); overflow: hidden; }
.scene--coral { background: var(--coral); }
.scene--coin { background: var(--coin); }
.scene--sand { background: var(--sand); }
.scene--ink { background: var(--ink); color: var(--paper); }
.scene--ink .eyebrow, .scene--ink .lede { color: #9A968F; }
.scene--ink .accent { color: var(--coin); }
.scene > .wrap { display: grid; gap: clamp(36px, 5vw, 72px); align-items: center; }
.head { font-weight: 600; font-size: clamp(44px, 6.3vw, 92px); line-height: 0.98; letter-spacing: -0.045em; text-wrap: balance; }
.eyebrow + .head { margin-top: clamp(14px, 1.6vw, 22px); }
.lede { margin-top: clamp(20px, 2.4vw, 32px); max-width: 30em; font-size: clamp(18px, 1.55vw, 22px); line-height: 1.4; letter-spacing: -0.012em; text-wrap: pretty; }
.lede + .lede { margin-top: 0.8em; }
.copy .actions { margin-top: clamp(26px, 3vw, 40px); }
.copy .chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(22px, 2.6vw, 34px); }
@media (min-width: 900px) {
  .scene > .wrap { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
  .scene.flip > .wrap > .copy { order: 2; }
}

/* A headline comes up line by line, and what is shown with it grows in. */
/* The edge a headline rises out of lies under its last line's descenders (the foot of a g), not through them. */
.rise { clip-path: inset(-0.1em -0.3em -0.24em -0.1em); }
.rise > span { display: block; }
.js .rise > span { transform: translateY(135%); transition: transform 0.7s cubic-bezier(0.2, 0.9, 0.2, 1); }
.js .rise > span:nth-child(2) { transition-delay: 0.08s; }
.js .rise > span:nth-child(3) { transition-delay: 0.16s; }
.js .seen .rise > span, .js .rise.seen > span { transform: none; }
.js .grow { opacity: 0; transform: translateY(26px) scale(0.94); transition: opacity 0.5s ease-out 0.12s, transform 0.7s cubic-bezier(0.2, 1.2, 0.3, 1) 0.12s; }
.js .seen .grow, .js .grow.seen { opacity: 1; transform: none; }

/* MARK: Phones. A real screen in a line-art phone: ink outline, hard ink shadow. */
.phone { --w: clamp(240px, 26vw, 330px); position: relative; width: var(--w); aspect-ratio: 980 / 2112; margin-inline: auto;
         border: calc(var(--w) * 0.0085) solid var(--ink); border-radius: calc(var(--w) * 0.145); background: var(--sand); overflow: hidden;
         box-shadow: calc(var(--w) * 0.0245) calc(var(--w) * 0.0265) 0 var(--ink); }
.phone img { width: 100%; height: auto; }
.phone::after { content: ""; position: absolute; left: 50%; top: 2.5%; width: 27.4%; aspect-ratio: 268 / 80; transform: translateX(-50%); border-radius: 999px; background: var(--ink); }
.phone--paper { border-color: var(--paper); box-shadow: calc(var(--w) * 0.0245) calc(var(--w) * 0.0265) 0 #3A3833; }
/* The phone runs off the bottom of its scene, as in the App Store pictures. */
.art { position: relative; }
.art--phone { margin-bottom: calc(clamp(56px, 8vw, 120px) * -1 - var(--round) - 40px); }
.duo { position: relative; width: min(100%, 520px); margin-inline: auto; }
.duo .phone { --w: clamp(190px, 21vw, 262px); margin: 0; }
.duo .phone + .phone { position: absolute; left: 44%; top: 22%; }
.art--duo { margin-bottom: calc(clamp(56px, 8vw, 120px) * -1 - var(--round) + 30px); padding-bottom: 22%; }

/* MARK: The hero */
.hero { padding: clamp(18px, 4vw, 56px) 0 calc(var(--round) + clamp(40px, 6vw, 84px)); }
.hero > .wrap { display: grid; gap: clamp(8px, 3vw, 40px); align-items: center; }
/* The headline is two lines, each in one piece, at any width. */
.hero h1 { font-weight: 600; font-size: min(13.4vw, 76px); line-height: 0.95; letter-spacing: -0.05em; margin-top: clamp(14px, 1.8vw, 24px); }
.hero h1 span { white-space: nowrap; }
.hero .lede { max-width: 27em; }
.hero .note { margin-top: 22px; }
@media (min-width: 900px) {
  .hero > .wrap { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
  .hero h1 { font-size: min(6.5vw, 100px); }
  .hero .stage { width: 118%; max-width: 760px; margin-inline: -9%; }
}

/* MARK: A garden. The canvas is as wide as its box; the app's own stage is 390 by 420. */
.stage { position: relative; width: 100%; max-width: 660px; margin-inline: auto; }
.stage canvas { width: 100%; aspect-ratio: 390 / 420; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.stage canvas.turning { cursor: grabbing; }
.stage .label { position: relative; display: flex; justify-content: center; gap: 4px 10px; flex-wrap: wrap; margin-top: -7%; text-align: center; }
@media (max-width: 899px) { .hero .stage { width: calc(100% + 2 * var(--gutter)); max-width: none; margin-inline: calc(var(--gutter) * -1); } }

/* The garden that can be seen by day and by night stands in a box of its own, which goes dark with it. */
.daynight { border: var(--edge) solid var(--ink); border-radius: clamp(26px, 3vw, 40px); background: var(--paper); box-shadow: 7px 8px 0 var(--ink);
            padding: 16px 16px 22px; transition: background-color 0.6s ease, color 0.6s ease; }
.daynight.night { background: var(--night); color: #F3F1EC; }
.daynight.night .mono { color: #A8A49D; }
.switch { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 16px; background: var(--tile); }
.switch button { min-width: 84px; height: 36px; padding: 0 14px; border: 0; border-radius: 12px; background: none; font: 500 12px var(--mono); letter-spacing: 0.14em; color: var(--grey); cursor: pointer; }
.switch button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.night .switch { background: #0B0B0A; }
.night .switch button { color: #A8A49D; }
.night .switch button[aria-pressed="true"] { background: #363431; color: #F3F1EC; }
.daynight .top { display: flex; justify-content: center; }

/* MARK: The jar */
/* The whole jar stands inside its scene, shadow and all. Beside the words it is as tall as they are, from the
   small label down to the last line; under them, on a narrow screen, it has a width of its own. */
.jar { width: min(60%, 320px); margin-inline: auto; }
.jar img { width: 100%; }
@media (min-width: 900px) {
  .scene--coin .art { align-self: stretch; }
  .scene--coin .jar { position: absolute; inset: 0; width: auto; }
  .scene--coin .jar img { height: 100%; object-fit: contain; }
}

/* MARK: The shop's tiles, as the app shows them */
.shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.tile { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 6px 6px 12px; border: 0; border-radius: 18px; background: var(--sand); text-align: left; }
.tile > * { min-width: 0; max-width: 100%; }
.tile canvas { width: 100%; aspect-ratio: 164 / 124; }
.tile .name { padding-inline: 4px; font-size: 15px; font-weight: 500; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .mono { padding-inline: 4px; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The row slides by slowly by itself and can be dragged; it has no scroll bar (see home.js). */
.strip { overflow: hidden; padding: 4px 0 18px; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.strip.dragging { cursor: grabbing; }
.strip .track { display: flex; gap: 8px; width: max-content; will-change: transform; }
.strip .tile { flex: none; width: 164px; background: var(--paper); }
.strip-wrap { margin-top: clamp(40px, 5vw, 72px); }

/* MARK: The facts */
.facts { display: grid; gap: 12px; margin-top: clamp(32px, 4vw, 56px); }
@media (min-width: 620px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.fact { padding: 22px 22px 26px; border-radius: 22px; background: var(--sand); }
.fact h3 { margin-top: 12px; font-weight: 600; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.05; letter-spacing: -0.035em; }
.fact p { margin-top: 10px; font-size: 16px; line-height: 1.4; color: var(--grey); }
.scene--plain > .wrap { display: block; }

/* MARK: The end, and the footer */
.end { text-align: center; }
.end > .wrap { display: block; }
.end .head { max-width: 12em; margin-inline: auto; }
.end .lede { margin-inline: auto; }
.end .actions { justify-content: center; margin-top: clamp(26px, 3vw, 40px); }
.foot { position: relative; margin: calc(var(--round) * -1) calc(var(--edge) * -1) 0; padding: clamp(44px, 5vw, 72px) 0 clamp(36px, 4vw, 56px);
        border: var(--edge) solid var(--ink); border-bottom: 0; border-radius: var(--round) var(--round) 0 0; background: var(--paper); }
.foot-in { width: min(1240px, 100% - 2 * var(--gutter) - 2 * var(--edge)); margin-inline: auto; display: grid; gap: 22px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 16px; }
.foot nav a { text-decoration: none; border-bottom: 2px solid transparent; }
.foot nav a:hover { border-bottom-color: var(--ink); }
.foot .mono a { text-decoration: none; }
.foot .mono a:hover { text-decoration: underline; }

/* MARK: Pages of text: support, privacy, terms */
.doc { width: min(760px, 100% - 2 * var(--gutter)); margin: clamp(24px, 5vw, 64px) auto calc(var(--round) + clamp(56px, 8vw, 110px)); }
.doc h1 { margin-top: 16px; font-weight: 600; font-size: clamp(44px, 6.4vw, 84px); line-height: 0.98; letter-spacing: -0.045em; }
.doc .lede { max-width: none; color: var(--grey); }
.doc h2 { margin-top: 2.1em; font-weight: 600; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.12; letter-spacing: -0.03em; }
.doc p, .doc li { font-weight: 400; font-size: 18px; line-height: 1.7; }
.doc p { margin-top: 0.9em; }
.doc ul { margin: 0.7em 0 0; padding-left: 1.2em; }
.doc li { margin-top: 0.4em; }
.doc li::marker { color: var(--coral); }
.doc a { text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--coral); }
.doc .card { margin-top: 2.2em; padding: 24px 26px 28px; border: var(--edge) solid var(--ink); border-radius: 26px; background: var(--coin); box-shadow: 6px 7px 0 var(--ink); }
.doc .card h2 { margin-top: 0; }
.doc .card a { text-decoration-color: var(--ink); }

/* MARK: The garden builder */
.bare { background: var(--sand); }
.builder { width: min(1320px, 100% - 2 * clamp(12px, 3vw, 40px)); margin: 0 auto clamp(20px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.builder-head h1 { margin-top: 10px; font-weight: 600; font-size: clamp(34px, 4vw, 52px); line-height: 1; letter-spacing: -0.045em; }
.builder-head p:not(.eyebrow) { margin-top: 12px; max-width: 34em; font-size: 17px; font-weight: 400; line-height: 1.4; color: var(--grey); }
.plot { position: relative; border: var(--edge) solid var(--ink); border-radius: clamp(24px, 3vw, 36px); background: var(--paper); box-shadow: 6px 7px 0 var(--ink);
        transition: background-color 0.6s ease, color 0.6s ease; }
.plot.night { background: var(--night); color: #F3F1EC; }
.plot.night .mono { color: #A8A49D; }
.plot-top { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; padding: 10px 12px 0; }
.plot .stage { max-width: none; }
.plot .stage canvas { aspect-ratio: auto; height: var(--stage-h, 60vh); }
.hint { flex: 1; padding-left: 8px; font-size: 15px; font-weight: 400; line-height: 1.3; color: var(--grey); }
.night .hint { color: #A8A49D; }
/* The app's banner while something is being placed or moved. */
.banner { flex: 1; display: flex; align-items: center; gap: 6px; min-height: 48px; padding: 4px 4px 4px 18px; border-radius: 24px; background: var(--ink); color: var(--paper); font-size: 15px; font-weight: 400; }
.banner span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.banner button { height: 40px; padding: 0 14px; border: 0; border-radius: 20px; background: #2A2A2A; color: var(--paper); font-size: 14px; font-weight: 400; cursor: pointer; }
.banner button.done { background: var(--paper); color: var(--ink); }
.night .banner { background: #F3F1EC; color: var(--ink); }
.night .banner button { background: #DCD9D2; color: var(--ink); }
.night .banner button.done { background: var(--ink); color: #F3F1EC; }
[hidden] { display: none !important; }
/* A free spot: tap it to put the plant there. */
.spots { position: absolute; inset: 0; pointer-events: none; }
.spot { position: absolute; left: 0; top: 0; width: 44px; height: 36px; margin: -18px 0 0 -22px; padding: 0; border: 0; background: none; pointer-events: none; }
.spot::before { content: ""; position: absolute; left: 50%; top: 50%; width: var(--spot, 18px); height: calc(var(--spot, 18px) * 0.61); margin: calc(var(--spot, 18px) * -0.305) 0 0 calc(var(--spot, 18px) * -0.5);
                border: 2px solid var(--coral); border-radius: 50%; background: rgba(242, 106, 46, 0.22); animation: pulse 0.7s ease-in-out infinite alternate; }
.spot.near::before, .spot:focus-visible::before { background: rgba(242, 106, 46, 0.6); }
.spot:focus-visible { outline: none; }
.spot:focus-visible::before { box-shadow: 0 0 0 3px var(--ink); }
@keyframes pulse { to { transform: scale(1.18); } }
.toast { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); padding: 9px 14px; border-radius: 14px; background: var(--ink); color: var(--paper);
         font: 500 11px var(--mono); letter-spacing: 0.14em; white-space: nowrap; opacity: 0; transition: opacity 0.25s; pointer-events: none; }
.toast.on { opacity: 1; }
.night .toast { background: #F3F1EC; color: var(--ink); }
.plot-turn { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 16px; }
.plot-turn .mono { text-align: center; line-height: 1.7; font-size: 11px; }
.plot-turn .faint { font-size: 10px; opacity: 0.85; }
.round { display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: 50%; background: none; cursor: pointer; }
.round:hover { background: var(--sand); }
.round svg { width: 20px; height: 20px; }
.night .round { border-color: #363431; }
.night .round:hover { background: #131312; }
.tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 14px 6px 0; }
.ribbons { display: flex; align-items: center; gap: 7px; }
.ribbons .mono { margin-right: 4px; font-size: 11px; }
.ribbons button { width: 26px; height: 26px; padding: 0; border: 2px solid transparent; border-radius: 50%; background: var(--c); background-clip: content-box; cursor: pointer; }
.ribbons button[aria-pressed="true"] { border-color: var(--ink); padding: 3px; }
.quiet { height: 40px; padding: 0 16px; border: 1.5px solid var(--ink); border-radius: 14px; background: var(--paper); font-size: 15px; font-weight: 500; cursor: pointer; }
.quiet:hover { background: var(--tile); }
.quiet:disabled { opacity: 0.4; cursor: default; }
.builder-head .group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.tools .switch { background: var(--tile); }
.fine { width: min(1320px, 100% - 2 * clamp(12px, 3vw, 40px)); margin: 0 auto 28px; font-size: 11px; }
.fine a { text-decoration: none; }
.fine a:hover { text-decoration: underline; }
.shelf { padding: 4px 2px 8px; }
.shelf h2 { font: 400 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); }
.shelf .mono.label { margin-top: 22px; font-size: 11px; }
.shelf p.about { margin-top: 6px; font-size: 15px; font-weight: 400; line-height: 1.4; color: var(--grey); }
.shelf .shop { margin-top: 12px; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.shelf { min-width: 0; }
.shelf .tile { background: var(--paper); cursor: pointer; transition: transform 0.12s ease-out, box-shadow 0.12s ease-out; }
.shelf .tile:hover { transform: translateY(-2px); }
.shelf .tile[aria-pressed="true"] { box-shadow: inset 0 0 0 2.5px var(--ink), 4px 5px 0 var(--ink); }
.shelf .tile:disabled { opacity: 0.4; cursor: default; transform: none; }
.shelf .more { margin-top: 26px; padding: 20px 22px 24px; border-radius: 22px; background: var(--paper); }
.shelf .more h3 { font-weight: 600; font-size: 24px; line-height: 1.08; letter-spacing: -0.035em; }
.shelf .more p { margin-top: 8px; font-size: 16px; font-weight: 400; line-height: 1.45; color: var(--grey); }
.shelf .more .actions { margin-top: 18px; }
.bare .nav { width: min(1320px, 100% - 2 * clamp(12px, 3vw, 40px)); }
@media (min-width: 960px) {
  /* The garden on the left stays in view; the title and the list of plants are on the right. */
  .builder { grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr); gap: 0 28px; }
  .left { grid-column: 1; grid-row: 1 / span 2; position: sticky; top: 14px; }
  .builder-head { grid-column: 2; padding: 8px 2px 22px; }
  .shelf { grid-column: 2; }
  .plot { --stage-h: clamp(300px, 100vh - 316px, 700px); }
  .plot-turn { padding-bottom: 14px; }
}
@media (max-width: 959px) {
  /* On a phone the garden stays in view while the list of plants is scrolled under it, and the buttons that
     turn it lie over its lower corners. */
  .left { display: contents; }
  .plot { position: sticky; top: 6px; z-index: 5; --stage-h: min(42vh, 104vw); border-radius: 24px; box-shadow: 4px 5px 0 var(--ink); }
  .plot-top { min-height: 52px; padding: 6px 8px 0; }
  .plot-turn { position: absolute; left: 0; right: 0; bottom: 8px; padding: 0 10px; pointer-events: none; }
  .plot-turn .round { pointer-events: auto; background: var(--paper); }
  .night .plot-turn .round { background: var(--night); }
  .plot-turn .mono { display: none; }
  .tools { padding: 4px 2px 6px; }
  .ribbons .mono { display: none; }
  .ribbons { gap: 5px; }
  .tools .switch button { min-width: 62px; }
  .builder-head p:not(.eyebrow) { font-size: 16px; }
  .builder-head { padding: 0 2px 4px; }
  .toast { bottom: 14px; }
  /* Three to a row, so more of the list shows under the garden. */
  .shelf .shop { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .shelf .tile { padding: 4px 4px 9px; border-radius: 14px; gap: 4px; }
  .shelf .tile .name { font-size: 13.5px; }
  .shelf .tile .mono { font-size: 8.5px; letter-spacing: 0.08em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise > span, .js .grow { transition: none; transform: none; opacity: 1; }
  .spot::before { animation: none; }
}
