/* Toberry Smart Farm · the game (#app): "Grow the Future", on a phone whose screen plays a season, then the game's
   parts with every word on the page. Kept in a file of its own beside site.css (several hands work on that one at
   once); it draws on site.css's tokens throughout: one black green ground, lit things in it, brass for what matters.
   The screen's lengths are shares of the screen's own width (cqw), so the whole screen scales with the phone. */

.app { --rule: rgb(243 245 241 / 0.14); --glow: rgb(221 184 104 / 0.55); --alarm: #F0A766; --alarm-deep: #E0823A; --leaf: #9BD8A3; --water: #A9D6E6;
  position: relative; z-index: 1; padding: var(--section) var(--margin) calc(var(--section) * 0.6); background: var(--ground); overflow-x: clip; } /* (the phone's light spreads wider than a phone's screen) */
.app__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
.app__title { grid-column: 1 / 7; max-width: 10ch; }
.app__lead { grid-column: 7 / 13; font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.01em; color: var(--muted); max-width: 38ch; }

/* ---------- the stage: the phone, with notes on its screen, and the season's four beats beside it ---------- */
.app__stage { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; margin-top: clamp(1.5rem, 3vw, 3rem); }
.app__phone { grid-column: 1 / 9; justify-self: center; position: relative; }
.app__device { position: relative; height: min(80svh, 52rem); aspect-ratio: 1100 / 1950; }
/* the light the screen throws into the dark room around it */
.app__device::before { content: ''; position: absolute; inset: 4% -30% 0; z-index: -1; background: radial-gradient(closest-side, rgb(155 216 163 / 0.09), rgb(201 163 90 / 0.05) 45%, rgb(201 163 90 / 0.02) 62%, transparent 80%); pointer-events: none; } /* (gone well inside its box: Chrome drawing on the graphics card showed the box's left side as a straight edge in the ground, through the notes, 2026-12-01) */
.app__device picture, .app__photo { display: block; width: 100%; height: 100%; }
.app.is-auto .app__device { cursor: pointer; }
.app__photo { background: transparent; }
/* where the photograph's black glass lies, in shares of the picture (1100 by 1950): x 193 to 908, y 191 to 1758 */
.app__screen { position: absolute; left: 17.545%; top: 9.795%; width: 65%; height: 80.359%; border-radius: 13.3% / 6.06%; overflow: hidden; container-type: inline-size;
  background: radial-gradient(130% 62% at 50% -8%, #173328 0%, #0B1813 56%, #07100C 100%); color: var(--ink); text-align: left; }
.app__wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.app__lines path { stroke: var(--accent); stroke-width: 2.6; opacity: 0.85; }
.app__pings circle:first-child { fill: none; stroke: var(--accent); stroke-width: 2.6; opacity: 0; transform-box: fill-box; transform-origin: center; }
.app__pings circle:last-child { fill: var(--accent-strong); }
.app__short path { stroke: var(--accent); stroke-width: 3; opacity: 0.8; }
.app__keys circle { fill: var(--accent-strong); }
.app__keys text { fill: var(--accent-ink); font-size: 30px; font-weight: 500; text-anchor: middle; }
.app__wires { display: block; }
.app__lines { display: none; }
.app__tags { counter-reset: note; }
.app__tag { counter-increment: note; }
.app__tag b::before { content: counter(note) "\2002"; color: var(--accent); font-variant-numeric: tabular-nums; }

/* the notes: in one column at the phone's left on a wide screen, each drawn to its point by a line (see "from 1100 px"
   below); under the phone as a list, numbered to keys on its edge, on anything narrower */
.app__tags { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; max-width: 34rem; margin: 1.5rem auto 0; }
.app__tag { display: grid; gap: 0.15rem; align-content: start; padding-top: 0.7rem; border-top: 1px solid var(--rule); font-size: var(--step-small); line-height: 1.35; }
.app__tag b { font-weight: 500; color: var(--ink); }
.app__tag span { color: var(--muted); }

.app__side { grid-column: 9 / 13; align-self: center; }
.app__beats { display: grid; gap: clamp(1.25rem, 2.4vw, 2.1rem); counter-reset: beat; }
.app__beat { position: relative; padding-top: 1rem; counter-increment: beat; }
.app__beat::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--rule); }
.app__fill { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--accent-strong); box-shadow: 0 0 6px var(--glow); transform: scaleX(0); transform-origin: left center; }
.app__beat h4 { display: flex; align-items: baseline; gap: 0.85rem; margin-bottom: 0.45rem; font-size: var(--step-lead); line-height: 1.2; letter-spacing: -0.01em; }
.app__beat h4::before { content: counter(beat, decimal-leading-zero); font-size: var(--step-small); letter-spacing: 0.06em; color: var(--accent); font-variant-numeric: tabular-nums; }
.app__beat p { font-size: var(--step-body); line-height: 1.5; color: var(--muted); max-width: 36ch; }
.app__pick { display: block; text-align: left; }
.app.is-auto .app__beat { cursor: pointer; } /* (the whole beat answers a click; its words can still be selected) */
.app__pick:focus-visible { outline: none; }
.app.is-auto .app__beat:has(.app__pick:focus-visible) { outline: 2px solid var(--accent); outline-offset: 0.6rem; }
.app.is-auto .app__beat > :is(h4, p) { opacity: 0.55; transition: opacity 400ms ease; }
.app.is-auto .app__beat > p { opacity: 0.72; } /* (a beat not on the phone stays readable: its words at 5:1 on the ground, its name dimmer) */
.app.is-auto .app__beat.is-on > :is(h4, p), .app.is-auto .app__beat:has(.app__pick:focus-visible) > :is(h4, p) { opacity: 1; }
.app.is-auto .app__beat.is-on .app__fill { transform: none; }
@media (hover: hover) and (pointer: fine) { .app.is-auto .app__beat:not(.is-on):hover > :is(h4, p) { opacity: 0.85; } }
/* the turns can be stopped and started again from under the beats */
.app__hold { display: inline-block; margin-top: 1.4rem; font-size: var(--step-small); letter-spacing: 0.04em; color: var(--muted); text-decoration: underline; text-decoration-color: rgb(179 189 182 / 0.4); text-underline-offset: 0.3em; transition: color var(--t-hover) ease, text-decoration-color var(--t-hover) ease; }
.app__hold:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .app__hold:hover { color: var(--ink); text-decoration-color: currentColor; } }
.app__hold[hidden] { display: none; }
.app.is-held .app__pings circle:first-child { animation-play-state: paused; }
@media (prefers-reduced-motion: no-preference) {
  .app.is-auto:not(.is-held) .app__beat.is-on .app__fill { animation: app-fill var(--beat, 6500ms) linear both; }
  .app.is-paused .app__beat.is-on .app__fill { animation-play-state: paused; }
}
@keyframes app-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- the screen ---------- */
.ui { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 0 5.6cqw; font-size: 4cqw; line-height: 1.25; }
.ui p { max-width: none; }
.ui :where(svg) { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; } /* (no weight of its own: a drawing's own class sets its lines) */
.ui::after { content: ''; position: absolute; left: 50%; bottom: 1.9cqw; width: 34cqw; height: 1.2cqw; margin-left: -17cqw; border-radius: 1cqw; background: rgb(243 245 241 / 0.5); } /* the home bar */
.ui__status { flex: none; display: flex; align-items: center; gap: 1.6cqw; height: 11.5cqw; padding: 3cqw 2cqw 0; font-size: 3.7cqw; font-weight: 500; }
.ui__status > :first-child { margin-right: auto; }
.ui__signal { display: flex; align-items: flex-end; gap: 0.6cqw; height: 2.8cqw; }
.ui__signal i { width: 0.9cqw; border-radius: 0.3cqw; background: var(--ink); }
.ui__signal i:nth-child(1) { height: 32%; } .ui__signal i:nth-child(2) { height: 56%; } .ui__signal i:nth-child(3) { height: 80%; } .ui__signal i:nth-child(4) { height: 100%; }
.ui__battery { position: relative; width: 6.2cqw; height: 2.9cqw; border: 0.3cqw solid rgb(243 245 241 / 0.5); border-radius: 0.9cqw; }
.ui__battery i { position: absolute; inset: 0.35cqw 1.6cqw 0.35cqw 0.35cqw; border-radius: 0.4cqw; background: var(--ink); }
.ui__battery::after { content: ''; position: absolute; right: -1cqw; top: 0.75cqw; width: 0.5cqw; height: 0.9cqw; border-radius: 0 0.3cqw 0.3cqw 0; background: rgb(243 245 241 / 0.5); }
.ui__top { flex: none; display: flex; align-items: center; justify-content: space-between; height: 12.5cqw; }
.ui__clock { display: flex; align-items: center; gap: 1.5cqw; font-size: 3.6cqw; color: var(--muted); }
.ui__clock svg { width: 4.6cqw; height: 4.6cqw; color: var(--accent-strong); }
.ui__clock b { font-weight: 500; color: var(--ink); }
.ui__day { display: none; }
.ui__chip { display: flex; align-items: center; gap: 1.2cqw; min-width: 18cqw; padding: 1.2cqw 2.8cqw 1.2cqw 2.2cqw; border: 1px solid rgb(221 184 104 / 0.45); border-radius: 99px; background: rgb(221 184 104 / 0.08); font-size: 3.6cqw; font-weight: 500; color: var(--accent-strong); }
.ui__chip svg { width: 4.2cqw; height: 4.2cqw; }
.ui__views { position: relative; flex: 1; }
.ui__view { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 3cqw; padding: 1.5cqw 0 2.4cqw; opacity: 0; visibility: hidden; }
.app__screen[data-view="0"] .ui__view[data-view="0"], .app__screen[data-view="1"] .ui__view[data-view="1"],
.app__screen[data-view="2"] .ui__view[data-view="2"], .app__screen[data-view="3"] .ui__view[data-view="3"] { opacity: 1; visibility: visible; }
.app__screen[data-view="0"] :is(.ui__day, .ui__say span)[data-view="0"], .app__screen[data-view="1"] :is(.ui__day, .ui__say span)[data-view="1"],
.app__screen[data-view="2"] :is(.ui__day, .ui__say span)[data-view="2"], .app__screen[data-view="3"] :is(.ui__day, .ui__say span)[data-view="3"] { display: inline; }

.ui__h { font-size: 5.6cqw; font-weight: 500; letter-spacing: -0.01em; }
.ui__picks { display: grid; gap: 2.4cqw; }
.ui__picks li { display: grid; gap: 0.5cqw; padding: 2.8cqw 3.4cqw; border: 1px solid rgb(221 184 104 / 0.55); border-radius: 3.2cqw; background: rgb(221 184 104 / 0.06); }
.ui__picks small { font-size: 3cqw; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ui__picks b { font-size: 4.6cqw; font-weight: 500; }
.ui__picks span { font-size: 3.3cqw; color: var(--muted); }
.ui__sum dd { font-size: 3.6cqw; }
.ui__pair { display: flex; flex-wrap: wrap; gap: 1.6cqw; font-size: 3.1cqw; }
.ui__pair span { padding: 1.1cqw 2.6cqw; border: 1px solid rgb(243 245 241 / 0.16); border-radius: 99px; color: var(--muted); }
.ui__pair .is-on { border-color: rgb(221 184 104 / 0.6); background: rgb(221 184 104 / 0.1); color: var(--accent-strong); }
.ui__go { margin-top: auto; padding: 3.4cqw; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-weight: 500; text-align: center; box-shadow: 0 1.4cqw 4cqw rgb(201 163 90 / 0.28); }

.ui__wx { display: flex; justify-content: space-between; align-items: center; font-size: 3.5cqw; color: var(--muted); }
.ui__wx b { margin-left: 0.8cqw; font-weight: 500; color: var(--ink); }
.ui__warn { padding: 0.9cqw 2.4cqw; border: 1px solid rgb(224 130 58 / 0.45); border-radius: 99px; background: rgb(224 130 58 / 0.14); color: var(--alarm); }
.ui__plot { width: 100%; height: auto; overflow: visible; }
.ui__plot-land { fill: rgb(201 163 90 / 0.06); stroke: rgb(221 184 104 / 0.55); stroke-width: 0.6; }
.ui__plot-grid { stroke: rgb(221 184 104 / 0.16); stroke-width: 0.4; }
.ui__sweep { opacity: 0; }
.ui__sweep path { stroke: #F6D898; stroke-width: 0.9; }
.ui__plants { fill: var(--leaf); stroke: none; filter: drop-shadow(0 0 1.6px rgb(155 216 163 / 0.9)); }
.ui__plant { transform-box: fill-box; transform-origin: center; }
.ui__reads, .ui__sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2cqw; }
.ui__reads div, .ui__sum div { padding: 2.2cqw 2.4cqw; border: 1px solid rgb(243 245 241 / 0.08); border-radius: 2.4cqw; background: rgb(243 245 241 / 0.04); }
.ui__reads dt, .ui__sum dt { font-size: 3.1cqw; letter-spacing: 0.04em; color: var(--muted); }
.ui__reads dd, .ui__sum dd { margin-top: 0.4cqw; font-size: 4.2cqw; font-weight: 500; }
.ui__power { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1cqw 2.4cqw; font-size: 3.1cqw; color: var(--muted); }
.ui__mix { display: flex; height: 1.6cqw; overflow: hidden; border-radius: 1cqw; background: rgb(243 245 241 / 0.08); }
.ui__mix i { width: calc(var(--w) * 1%); background: rgb(243 245 241 / 0.5); }
.ui__mix i + i { background: var(--accent-strong); box-shadow: 0 0 6px var(--glow); }
.ui__power p:last-child { grid-column: 2; }
.ui__days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 1cqw; padding-top: 2.8cqw; border-top: 1px solid rgb(243 245 241 / 0.08); text-align: center; }
.ui__days li { display: grid; justify-items: center; gap: 1cqw; font-size: 3.2cqw; color: var(--muted); }
.ui__days small { font-size: 3.1cqw; }
.ui__days svg { width: 5cqw; height: 5cqw; color: rgb(243 245 241 / 0.7); }
.ui__days b { font-weight: 500; color: var(--ink); }
.ui__days .is-hot { color: var(--alarm); }
.ui__days .is-hot svg { color: var(--alarm); filter: drop-shadow(0 0 1.6cqw rgb(224 130 58 / 0.7)); }
.ui__days .is-hot b { color: var(--alarm); }

.ui__alert { display: grid; justify-items: center; gap: 1cqw; padding: 4cqw 3cqw 3.4cqw; border: 1px solid rgb(224 130 58 / 0.42); border-radius: 4cqw; background: linear-gradient(180deg, rgb(224 130 58 / 0.17), rgb(224 130 58 / 0.04)); text-align: center; }
.ui__storm { width: 11cqw; height: 11cqw; color: var(--alarm); stroke-width: 1.4; filter: drop-shadow(0 0 2.4cqw rgb(224 130 58 / 0.55)); }
.ui__alert-title { font-size: 5.8cqw; font-weight: 500; color: #F6C08A; }
.ui__alert-sub { font-size: 3.4cqw; color: var(--muted); }
.ui__timer { position: relative; align-self: center; width: 21cqw; height: 21cqw; }
.ui__timer svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ui__timer circle { stroke: rgb(243 245 241 / 0.1); stroke-width: 2.4; }
.ui__timer .ui__timer-run { stroke: var(--alarm); stroke-dasharray: 1; stroke-dashoffset: 0.004; }
.ui__timer p { position: absolute; inset: 0; display: grid; place-items: center; font-size: 5cqw; font-weight: 500; }
.ui__options { display: grid; gap: 2cqw; }
.ui__options li { display: flex; justify-content: space-between; align-items: baseline; gap: 2cqw; padding: 2.9cqw 3.4cqw; border: 1px solid rgb(243 245 241 / 0.14); border-radius: 3cqw; background: rgb(243 245 241 / 0.035); }
.ui__options b { font-size: 4cqw; font-weight: 500; }
.ui__options span { font-size: 3.2cqw; color: var(--muted); }
.ui__options .is-picked { border-color: rgb(221 184 104 / 0.7); background: rgb(221 184 104 / 0.12); }
.ui__friends { display: flex; }
.ui__friends i { width: 5.4cqw; height: 5.4cqw; margin-left: -1.4cqw; border-radius: 50%; border: 0.5cqw solid #0B1813; background: radial-gradient(circle at 35% 30%, #F6D898, #9C7A3C); }
.ui__friends i:nth-child(2) { background: radial-gradient(circle at 35% 30%, #CFE8D2, #5E8F68); }
.ui__friends i:nth-child(3) { background: radial-gradient(circle at 35% 30%, #F6C08A, #A8602C); }
.ui__friends i:first-child { margin-left: 0; }
.ui__stake { display: grid; gap: 1.4cqw; padding: 2.6cqw 3.4cqw; border: 1px dashed rgb(224 130 58 / 0.4); border-radius: 3cqw; }
.ui__stake p { display: flex; justify-content: space-between; font-size: 3.3cqw; }
.ui__stake span { color: var(--muted); }
.ui__stake b { font-weight: 500; color: #F6C08A; }
.ui__risk { display: block; height: 1.4cqw; border-radius: 1cqw; background: rgb(243 245 241 / 0.08); overflow: hidden; }
.ui__risk i { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, rgb(224 130 58 / 0.35), var(--alarm)); }
.ui__help { display: flex; align-items: center; justify-content: center; gap: 2cqw; margin-top: 1cqw; text-align: center; font-size: 3.3cqw; color: var(--accent-strong); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; }

.ui__grade { display: grid; gap: 1.4cqw; padding: 2.9cqw 3.4cqw; border: 1px solid rgb(243 245 241 / 0.1); border-radius: 3cqw; background: rgb(243 245 241 / 0.035); }
.ui__grade p:first-child { display: flex; justify-content: space-between; }
.ui__grade b { font-weight: 500; }
.ui__grades { display: flex; gap: 0.6cqw; height: 1.9cqw; }
.ui__grades i { width: calc(var(--w) * 1%); border-radius: 1cqw; background: var(--accent-strong); transform-origin: left center; }
.ui__grades i:nth-child(2) { background: rgb(221 184 104 / 0.45); }
.ui__grades i:nth-child(3) { background: rgb(243 245 241 / 0.2); }
.ui__grade-key { font-size: 3.1cqw; color: var(--muted); }
.ui__sales { display: grid; gap: 1.4cqw; font-size: 3.6cqw; }
.ui__sales li { display: flex; justify-content: space-between; padding-bottom: 1.4cqw; border-bottom: 1px solid rgb(243 245 241 / 0.08); color: var(--muted); }
.ui__sales b { font-weight: 500; color: var(--ink); }
.ui__gauge { position: relative; display: grid; justify-items: center; }
.ui__gauge svg { width: 46cqw; height: auto; overflow: visible; }
.ui__gauge-track { stroke: rgb(243 245 241 / 0.1); stroke-width: 6; }
.ui__gauge-fill { stroke: var(--accent-strong); stroke-width: 6; stroke-dasharray: 1; stroke-dashoffset: 0.86; filter: drop-shadow(0 0 3px var(--glow)); }
.ui__gauge p { position: absolute; top: 36%; display: grid; justify-items: center; }
.ui__gauge p span { font-size: 8cqw; font-weight: 500; line-height: 1; }
.ui__gauge small { margin-top: 0.8cqw; font-size: 3.1cqw; color: var(--muted); }
.ui__gauge .ui__plus { top: 4cqw; right: 6cqw; font-size: 3.4cqw; color: var(--leaf); }
.ui__got { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2cqw; }
.ui__got li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 2cqw; padding: 2.4cqw 2.8cqw; border: 1px solid rgb(243 245 241 / 0.1); border-radius: 3cqw; background: rgb(243 245 241 / 0.035); }
.ui__got svg { grid-row: 1 / 3; width: 6cqw; height: 6cqw; color: var(--accent-strong); }
.ui__got b { font-size: 3.8cqw; font-weight: 500; }
.ui__got span { font-size: 3.1cqw; color: var(--muted); }
.ui__unlock { display: flex; justify-content: space-between; align-items: center; gap: 2cqw; padding: 2.9cqw 3.4cqw; border: 1px solid rgb(221 184 104 / 0.5); border-radius: 3cqw; background: linear-gradient(90deg, rgb(221 184 104 / 0.2), rgb(221 184 104 / 0.05)); font-size: 3.3cqw; }
.ui__unlock span { color: var(--muted); }
.ui__unlock b { font-size: 3.8cqw; font-weight: 500; color: var(--accent-strong); }

.ui__berry { flex: none; display: flex; align-items: center; gap: 2.4cqw; height: 17cqw; margin-bottom: 2.4cqw; padding: 0 3cqw; border: 1px solid rgb(243 245 241 / 0.08); border-radius: 4cqw; background: rgb(243 245 241 / 0.05); }
.ui__face { flex: none; width: 9cqw; height: 9cqw; padding: 1.3cqw; border-radius: 50%; color: var(--accent-strong); background: radial-gradient(circle, rgb(221 184 104 / 0.24), rgb(221 184 104 / 0.04)); box-shadow: 0 0 0 1px rgb(221 184 104 / 0.42), 0 0 3cqw rgb(221 184 104 / 0.25); }
.ui__seeds { stroke-width: 2.2; }
.ui__say { font-size: 3.6cqw; line-height: 1.3; }
.ui__say span { display: none; }
.ui__tabs { flex: none; display: flex; justify-content: space-between; align-items: center; height: 17cqw; margin: 0 -5.6cqw; padding: 0 7.6cqw 4.6cqw; border-top: 1px solid rgb(243 245 241 / 0.08); font-size: 3cqw; color: var(--muted); }
.ui__tabs > span { display: grid; justify-items: center; gap: 0.6cqw; }
.ui__tabs svg { width: 5.6cqw; height: 5.6cqw; }
.ui__tabs .is-on { color: var(--accent-strong); }
.ui__tabs .ui__coins { grid-auto-flow: column; justify-content: start; align-items: center; gap: 1.2cqw; min-width: 15cqw; padding: 1.2cqw 2.6cqw; border-radius: 99px; background: rgb(221 184 104 / 0.1); font-size: 3.4cqw; color: var(--accent-strong); }
.ui__coins svg { width: 4.4cqw; height: 4.4cqw; }
.ui__coins b { font-weight: 500; }

/* each view comes in as it is chosen: what it is about moves, the rest holds still */
@media (prefers-reduced-motion: no-preference) {
  .js .ui__view { transform: translateY(2.4cqw); filter: blur(2px); transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), filter 200ms ease, visibility 0s linear 200ms; }
  .js .app__screen[data-view="0"] .ui__view[data-view="0"], .js .app__screen[data-view="1"] .ui__view[data-view="1"],
  .js .app__screen[data-view="2"] .ui__view[data-view="2"], .js .app__screen[data-view="3"] .ui__view[data-view="3"] {
    transform: none; filter: none; transition: opacity 420ms var(--ease-out) 120ms, transform 520ms var(--ease-out) 120ms, filter 420ms ease 120ms, visibility 0s; }
  .js .app__screen[data-view="0"] .ui__picks li { animation: ui-pick 700ms var(--ease-out) both; animation-delay: calc(380ms + var(--k) * 260ms); }
  .js .app__screen[data-view="0"] .ui__sum { animation: ui-rise 600ms var(--ease-out) 1.25s both; }
  .js .app__screen[data-view="0"] .ui__pair { animation: ui-rise 600ms var(--ease-out) 1.45s both; }
  .js .app__screen[data-view="0"] .ui__go { animation: ui-rise 600ms var(--ease-out) 1.6s both; }
  .js .app__screen[data-view="1"] .ui__plant { animation: ui-grow 3.6s var(--ease-out) both; animation-delay: calc(300ms + var(--d)); }
  .js .app__screen[data-view="1"] .ui__sweep { animation: ui-sweep 3.4s linear 600ms infinite; }
  .js .app__screen[data-view="2"] .ui__storm { animation: ui-pulse 2.2s ease-in-out 600ms infinite; }
  .js .app__screen[data-view="2"] .ui__timer-run { animation: ui-timer var(--beat, 9s) linear both; }
  .js .app__screen[data-view="2"] .ui__options li { animation: ui-rise 560ms var(--ease-out) both; animation-delay: calc(500ms + var(--k) * 140ms); }
  .js .app__screen[data-view="2"] .ui__options li:not(.is-picked) { animation: ui-rise 560ms var(--ease-out) both, ui-dim 400ms ease 3s forwards; animation-delay: calc(500ms + var(--k) * 140ms), 3s; }
  .js .app__screen[data-view="2"] .ui__options .is-picked { animation: ui-rise 560ms var(--ease-out) both, ui-choose 420ms var(--ease-out) 3s both; animation-delay: 780ms, 3s; }
  .js .app__screen[data-view="3"] .ui__grades i { animation: ui-bar 900ms var(--ease-out) 450ms both; }
  .js .app__screen[data-view="3"] .ui__gauge-fill { animation: ui-gauge 1.5s var(--ease-out) 600ms both; }
  .js .app__screen[data-view="3"] .ui__got li { animation: ui-rise 560ms var(--ease-out) both; animation-delay: 1.5s; }
  .js .app__screen[data-view="3"] .ui__got li + li { animation-delay: 1.65s; }
  .js .app__screen[data-view="3"] .ui__unlock { animation: ui-rise 600ms var(--ease-out) 2s both; }
  .js .app__screen[data-view="2"] .ui__risk i { animation: ui-bar 1.2s var(--ease-out) 1.2s both; }
  .js .app__screen[data-view="1"] .ui__days li { animation: ui-rise 520ms var(--ease-out) both; animation-delay: 1.1s; }
  .js .app__screen[data-view="1"] .ui__days li:nth-child(n+3) { animation-delay: 1.25s; }
  .js .app__screen .ui__say span { animation: ui-rise 520ms var(--ease-out) 420ms both; }
  .js .app__pings g { opacity: 0; transition: opacity 400ms ease; transition-delay: calc(350ms + var(--i) * 100ms); }
  .js .app__phone.is-in .app__pings g { opacity: 1; }
  .js :is(.app__short, .app__keys) { opacity: 0; transition: opacity 500ms ease 500ms; }
  .js .app__phone.is-in :is(.app__short, .app__keys) { opacity: 1; }
  .app__pings circle:first-child { animation: app-ping 4.4s ease-out infinite; animation-delay: calc(1.4s + var(--i) * 0.6s); }
  .js .app__lines path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 700ms var(--ease-out); transition-delay: calc(500ms + var(--i) * 120ms); }
  .js .app__phone.is-in .app__lines path { stroke-dashoffset: 0; }
  .js .app__tag { opacity: 0; transition: opacity 500ms var(--ease-out); transition-delay: calc(700ms + var(--i) * 120ms); }
  .js .app__phone.is-in .app__tag { opacity: 1; }
}
@keyframes ui-pick { from { opacity: 0; transform: translateY(2cqw); border-color: rgb(243 245 241 / 0.12); background-color: rgb(243 245 241 / 0.03); } 60% { opacity: 1; transform: none; border-color: rgb(243 245 241 / 0.12); background-color: rgb(243 245 241 / 0.03); } }
@keyframes ui-rise { from { opacity: 0; transform: translateY(1.6cqw); } }
@keyframes ui-grow { from { transform: scale(0.3); opacity: 0.35; } }
@keyframes ui-sweep { 0% { transform: translate(0, 0); opacity: 0; } 12% { opacity: 0.9; } 88% { opacity: 0.9; } 100% { transform: translate(88px, 44px); opacity: 0; } }
@keyframes ui-pulse { 50% { filter: drop-shadow(0 0 4cqw rgb(224 130 58 / 0.9)); } }
@keyframes ui-timer { from { stroke-dashoffset: 0.004; } to { stroke-dashoffset: 0.034; } }
@keyframes ui-dim { to { opacity: 0.42; } }
@keyframes ui-choose { from { border-color: rgb(243 245 241 / 0.14); background-color: rgb(243 245 241 / 0.035); } }
@keyframes ui-bar { from { transform: scaleX(0); } }
.ui__risk i { transform-origin: left center; }
@keyframes ui-gauge { from { stroke-dashoffset: 1; } }
@keyframes app-ping { 0% { opacity: 0.9; transform: scale(0.4); } 70%, 100% { opacity: 0; transform: scale(1.6); } }

/* ---------- the parts below the stage, laid like "What the farm sells": a bar, what it shows, a row of names ---------- */
.app__part { margin-top: clamp(6rem, 9vw, 9rem); }
.app__more + .app__part { margin-top: clamp(5rem, 7.5vw, 7rem); }
.app__bar { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: baseline; padding-bottom: 1.1rem; border-bottom: 1px solid var(--rule); }
.app__name { grid-column: 1 / 8; display: flex; align-items: baseline; gap: 1.1rem; font-size: clamp(1.75rem, 1.15rem + 1.5vw, 2.6rem); line-height: 1.1; letter-spacing: -0.02em; }
.app__num { font-size: var(--step-small); letter-spacing: 0.06em; color: var(--accent); } /* (the chapter's number is its beat's, beside the phone) */
.app__sub { grid-column: 8 / 13; font-size: var(--step-body); line-height: 1.45; color: var(--muted); max-width: 42ch; }
.app__more { margin-top: clamp(4rem, 6.5vw, 6rem); padding-top: 1.25rem; border-top: 1px solid var(--rule); } /* (taller than the top bar above it, as in Offer, so a page that opens on it shows nothing of the piece before) */
.app__more + .app__more { margin-top: clamp(3.5rem, 5.5vw, 5rem); }
.app__label { margin-bottom: 1.25rem; font-size: var(--step-small); line-height: 1.45; letter-spacing: 0.04em; color: var(--accent); }
.app__items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem var(--gutter); }
.app__items--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.app__items dt { font-size: var(--step-body); font-weight: 500; line-height: 1.3; }
.app__items dd { margin-top: 0.4rem; font-size: var(--step-small); line-height: 1.5; color: var(--muted); max-width: 34ch; }
.app__note { margin-top: 1.5rem; font-size: var(--step-small); line-height: 1.5; color: var(--muted); max-width: 76ch; }

/* the four farms of the game's levels, each standing on its plot in the dark, with three gauges */
.levels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: 0.5rem; }
.level { display: flex; flex-direction: column; }
.level__pic { width: 100%; height: auto; aspect-ratio: 1; margin: -2% 0 -9%; background: transparent; }
/* (from 768 px no taller than a low window allows, so the chapter's bar and its four farms stand whole on one page at
   any size: a page shows only whole pieces, "same no matter the resolution") */
@media (min-width: 768px) {
  .level__pic { --pw: min(100%, calc((100svh - 35rem) / 0.89)); width: var(--pw); margin: calc(var(--pw) * -0.02) auto calc(var(--pw) * -0.09); }
}
.level__num { position: relative; font-size: var(--step-small); letter-spacing: 0.06em; color: var(--accent); }
.level__name { position: relative; margin-top: 0.25rem; font-size: clamp(1.375rem, 1.05rem + 0.8vw, 1.875rem); line-height: 1.05; letter-spacing: -0.025em; }
.meters { display: grid; gap: 0.6rem; margin: 1rem 0 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--rule); }
.meters div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 0.75rem; row-gap: 0.35rem; }
.meters dt { font-size: var(--step-small); color: var(--muted); }
.meters dd { font-size: var(--step-small); text-align: right; }
.meters div::after { content: ''; grid-column: 1 / -1; height: 4px; background: linear-gradient(90deg, var(--accent-strong) calc(var(--v) * 20%), rgb(243 245 241 / 0.13) 0);
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 calc(20% - 3px), transparent 0 20%); mask: repeating-linear-gradient(90deg, #000 0 calc(20% - 3px), transparent 0 20%); }
.level__text { font-size: var(--step-body); line-height: 1.5; color: var(--muted); max-width: 32ch; }
.goal { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: clamp(1.25rem, 2.5vw, 2.25rem); margin-top: clamp(2.5rem, 4vw, 3.5rem); padding-top: 1.5rem; border-top: 1px solid rgb(221 184 104 / 0.4); }
.goal__seal { width: clamp(5rem, 7vw, 6.5rem); height: auto; overflow: visible; filter: drop-shadow(0 0 10px rgb(221 184 104 / 0.35)); }
.goal__halo { fill: rgb(221 184 104 / 0.07); }
.goal__ring { fill: none; stroke: var(--accent-strong); stroke-width: 1.3; }
.goal__ticks { fill: none; stroke: rgb(221 184 104 / 0.6); stroke-width: 3.2; stroke-dasharray: 0.3 0.7; }
.goal__leaf { fill: none; stroke: #F6D898; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.goal__name { font-size: clamp(1.375rem, 1.05rem + 0.8vw, 1.875rem); line-height: 1.05; letter-spacing: -0.025em; }
.goal__text p { margin-top: 0.6rem; font-size: var(--step-body); line-height: 1.5; color: var(--muted); max-width: 70ch; }

.regions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem var(--gutter); }
.region { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); column-gap: 0.9rem; align-items: start; }
.region__icon { grid-row: 1 / 3; width: 2.4rem; height: 2.4rem; padding: 0.4rem; border-radius: 50%; fill: none; stroke: var(--accent-strong); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; box-shadow: inset 0 0 0 1px rgb(221 184 104 / 0.32); filter: drop-shadow(0 0 4px rgb(221 184 104 / 0.35)); }
.region h4 { font-size: var(--step-body); font-weight: 500; line-height: 1.3; }
.region p { margin-top: 0.35rem; font-size: var(--step-small); line-height: 1.5; color: var(--muted); max-width: 36ch; }
.seeds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.75rem var(--gutter); } /* (four crops since 2026-12-02, when industrial hemp left the game) */
.seed h4 { font-size: var(--step-body); font-weight: 500; line-height: 1.3; }
.seed__level { display: flex; align-items: center; gap: 0.6rem; margin: 0.5rem 0 0.45rem; font-size: var(--step-small); color: var(--accent-strong); }
.seed__level span { width: 39px; height: 4px; background: linear-gradient(90deg, var(--accent-strong) calc(var(--v) * 13px), rgb(243 245 241 / 0.16) 0);
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 10px, transparent 0 13px); mask: repeating-linear-gradient(90deg, #000 0 10px, transparent 0 13px); }
.seed p:last-child { font-size: var(--step-small); line-height: 1.5; color: var(--muted); max-width: 30ch; }

/* the two modes, side by side: the deeper one on the deeper ground */
.modes { width: 100%; margin-top: 2rem; border-collapse: collapse; table-layout: fixed; }
.modes :is(th, td) { padding: clamp(0.4rem, 2.4svh - 0.7rem, 0.95rem) 1.5rem; text-align: left; vertical-align: top; } /* (closer rows on a low window, so the table stands whole on one page) */
.modes thead :is(th, td) { padding-top: clamp(0.85rem, 3svh - 0.6rem, 1.4rem); padding-bottom: clamp(0.75rem, 2.6svh - 0.6rem, 1.2rem); vertical-align: bottom; }
.modes thead td, .modes tbody th { width: 22%; padding-left: 0; }
.modes thead b { display: block; font-size: clamp(1.5rem, 1.15rem + 0.9vw, 2rem); font-weight: 400; line-height: 1; letter-spacing: -0.025em; }
.modes thead span { display: block; margin-top: 0.45rem; font-size: var(--step-small); font-weight: 400; letter-spacing: 0.04em; color: var(--accent); }
.modes tbody tr { border-top: 1px solid var(--rule); }
.modes tbody th { font-size: var(--step-small); font-weight: 400; line-height: 1.5; color: var(--muted); }
.modes td { font-size: var(--step-body); line-height: 1.45; }
.modes :is(th, td):nth-child(3) { background: var(--surface); }
.modes thead th:nth-child(3) { box-shadow: inset 0 1px 0 var(--accent-strong); }
.modes thead th:nth-child(2) { box-shadow: inset 0 1px 0 rgb(221 184 104 / 0.45); }

/* weather, power and water, side by side; then the technology tree */
.systems { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem var(--gutter); margin-top: 2rem; }
.system__name { font-size: var(--step-lead); line-height: 1.2; letter-spacing: -0.01em; }
.system__text { margin-top: 1.1rem; font-size: var(--step-small); line-height: 1.55; color: var(--muted); max-width: 46ch; }
.climate { margin-top: 1.25rem; }
.climate svg { width: 100%; height: auto; overflow: visible; }
.climate__rule { stroke: rgb(243 245 241 / 0.08); stroke-width: 1; }
.climate__line { fill: none; stroke: var(--alarm); stroke-width: 1.8; stroke-dasharray: 1; filter: drop-shadow(0 0 4px rgb(224 130 58 / 0.6)); }
.climate__dots circle { fill: #F6C08A; }
.climate__dots .climate__now { fill: #FFF1E0; filter: drop-shadow(0 0 5px var(--alarm-deep)); }
.climate__events path { fill: var(--ground); stroke: #F6C08A; stroke-width: 1.2; }
.climate__axis { fill: var(--muted); font-size: 10px; letter-spacing: 0.04em; }
.climate__cap, .flow__cap { margin-top: 0.55rem; font-size: var(--step-small); line-height: 1.45; color: var(--muted); }
.mix { width: 100%; margin-top: 1.25rem; border-collapse: collapse; font-size: var(--step-small); line-height: 1.35; }
.mix thead th { padding: 0 0.75rem 0.6rem 0; font-weight: 400; letter-spacing: 0.04em; text-align: left; color: var(--accent); }
.mix tbody :is(th, td) { padding: 0.58rem 0.75rem 0.58rem 0; border-top: 1px solid var(--rule); text-align: left; vertical-align: top; }
.mix tbody th { font-weight: 500; color: var(--ink); }
.mix td { color: var(--muted); }
.flow { display: grid; gap: 0.9rem; margin-top: 1.4rem; }
.flow li { display: grid; gap: 0.4rem; font-size: var(--step-small); line-height: 1.35; }
.flow i { display: block; width: calc(var(--w) * 100%); height: 6px; border-radius: 3px; background: linear-gradient(90deg, rgb(169 214 230 / 0.25), var(--water)); box-shadow: 0 0 8px rgb(169 214 230 / 0.35); transform-origin: left center; }
.tree { margin-top: clamp(3rem, 5vw, 4.5rem); }
.tree__steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--gutter); }
.tree__steps li { position: relative; display: grid; grid-template-columns: auto minmax(1.5rem, 1fr); align-items: center; column-gap: 0.9rem; font-size: var(--step-body); line-height: 1.25; }
.tree__steps li:not(:last-child)::after { content: ''; height: 1px; margin-right: calc(-1 * var(--gutter) + 0.6rem); background: linear-gradient(90deg, rgb(221 184 104 / 0.2), var(--accent-strong)); }
.tree__steps li:not(:last-child)::before { content: ''; position: absolute; right: calc(-1 * var(--gutter) + 0.65rem); top: 50%; width: 7px; height: 7px; border-top: 1.5px solid var(--accent-strong); border-right: 1.5px solid var(--accent-strong); transform: translateY(-50%) rotate(45deg); }
.tree__steps li:last-child { color: #F6D898; text-shadow: 0 0 14px rgb(221 184 104 / 0.55); }

/* the decisions, as the alerts they arrive as */
.alerts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gutter); margin-top: 2rem; }
.alert { display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: start; column-gap: 0.85rem; row-gap: 0.2rem; padding: 1.2rem 1.25rem 1.15rem; border-top: 1px solid rgb(224 130 58 / 0.55); background: linear-gradient(180deg, rgb(224 130 58 / 0.11), rgb(224 130 58 / 0.015) 65%), var(--surface); }
.alert__clock { grid-row: 1 / 3; width: 1.75rem; height: 1.75rem; margin-top: 0.1rem; fill: none; stroke: var(--alarm); stroke-width: 1.5; stroke-linecap: round; filter: drop-shadow(0 0 4px rgb(224 130 58 / 0.5)); }
.alert h4 { font-size: var(--step-body); font-weight: 500; line-height: 1.3; }
.alert p { font-size: var(--step-small); line-height: 1.45; color: var(--muted); }
.alert .alert__picks { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.95rem; }
.alert__picks span { padding: 0.28rem 0.7rem; border: 1px solid rgb(243 245 241 / 0.18); border-radius: 99px; color: var(--ink); }

/* the score and what it opens; then the ways in, in a row of their own after it */
.credit { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3rem var(--gutter); margin-top: 2.25rem; align-items: start; }
.score { grid-column: 1 / 5; position: relative; width: min(100%, 21rem); justify-self: start; }
.score__dial { width: 100%; height: auto; overflow: visible; }
.score__track { fill: none; stroke: rgb(243 245 241 / 0.06); stroke-width: 16; }
.score__band { fill: none; stroke-width: 10; stroke: rgb(221 184 104 / calc(0.3 + var(--b) * 0.23)); stroke-dasharray: 1; }
.score__band[style*="--b:3"] { stroke: #F6D898; filter: drop-shadow(0 0 6px var(--glow)); }
.score__tick { fill: none; stroke: rgb(243 245 241 / 0.45); stroke-width: 1; }
.score__num { fill: var(--muted); font-size: 11px; letter-spacing: 0.02em; }
.score__cap { position: absolute; left: 0; right: 0; top: 40%; display: grid; justify-items: center; gap: 0.3rem; text-align: center; }
.score__cap b { font-size: clamp(1.25rem, 1rem + 0.6vw, 1.625rem); font-weight: 400; line-height: 1; letter-spacing: -0.02em; }
.score__cap span { font-size: var(--step-small); color: var(--muted); }
.credit__text { grid-column: 5 / 13; }
.credit__lead { font-size: var(--step-body); line-height: 1.5; max-width: 64ch; }
.bands { margin-top: 1.25rem; }
.band { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); column-gap: 1rem; padding: 0.85rem 0; border-top: 1px solid var(--rule); }
.band__range { grid-row: 1 / 3; font-size: var(--step-small); letter-spacing: 0.02em; color: rgb(221 184 104 / calc(0.5 + var(--b) * 0.17)); }
.band h4 { font-size: var(--step-body); font-weight: 500; line-height: 1.3; }
.band p:last-child { font-size: var(--step-small); line-height: 1.45; color: var(--muted); }
.starts dd b { display: block; margin-bottom: 0.2rem; font-size: var(--step-body); font-weight: 400; color: var(--accent); }
/* from 1100 px, 03 and 04 share a page, both whole (Vario, 2026-12-01: "bring skill becomes credit up so 03 and 04
   can be shown together without having part cropped out"): 04 stands closer under 03, the four bands go two by two
   beside a smaller dial, and the three ways to start have a row of their own after it, so 04 is 400px tall at
   1887x901, not 591, and the two take 761px of the 778 a page holds under the bar */
@media (min-width: 1100px) {
  .app__part--close { margin-top: clamp(3rem, 3.5vw, 4rem); }
  .score { width: min(100%, 19rem); }
  .bands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); }
}

/* Agricoin: what earns it runs into the coin on a bus of light, and out again to what it buys */
.coin { display: grid; grid-template-columns: minmax(0, 1fr) clamp(9rem, 14vw, 12.5rem) minmax(0, 1fr); align-items: center; margin-top: 2.25rem; }
.coin__label { margin-bottom: 0.75rem; font-size: var(--step-small); letter-spacing: 0.04em; color: var(--accent); }
.coin__side ul { margin: 0; padding: 0; list-style: none; }
.coin__side li { position: relative; padding: 0.75rem 0; border-top: 1px solid var(--rule); }
.coin__side h4 { font-size: var(--step-body); font-weight: 500; line-height: 1.3; }
.coin__side p { margin-top: 0.15rem; font-size: var(--step-small); line-height: 1.45; color: var(--muted); }
.coin__side--in { text-align: right; }
.coin__side--in p { margin-left: auto; }
.coin__side--in ul { padding-right: 2.25rem; border-right: 1px solid rgb(221 184 104 / 0.5); }
.coin__side--out ul { padding-left: 2.25rem; border-left: 1px solid rgb(221 184 104 / 0.5); }
.coin__side--in li::after, .coin__side--out li::after { content: ''; position: absolute; top: 50%; width: 1.9rem; height: 1px; }
.coin__side--in li::after { right: -2.25rem; background: linear-gradient(90deg, rgb(221 184 104 / 0.1), rgb(221 184 104 / 0.8)); }
.coin__side--out li::after { left: -2.25rem; background: linear-gradient(90deg, rgb(221 184 104 / 0.8), rgb(221 184 104 / 0.1)); }
.coin__mid { position: relative; align-self: stretch; display: grid; place-items: center; }
.coin__mid::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--accent-strong); box-shadow: 0 0 6px var(--glow); }
.coin__disc { position: relative; width: 100%; height: auto; overflow: visible; }
.coin__glow { fill: rgb(221 184 104 / 0.07); }
.coin__edge { fill: var(--ground); stroke: var(--accent-strong); stroke-width: 1.5; filter: drop-shadow(0 0 8px rgb(221 184 104 / 0.55)); }
.coin__rim { fill: none; stroke: rgb(221 184 104 / 0.55); stroke-width: 3; stroke-dasharray: 0.42 0.58; }
.coin__mark { fill: #F6D898; font-size: 17px; font-weight: 500; letter-spacing: 0.08em; }
.rules { margin-top: clamp(3rem, 5vw, 4rem); }
.rules__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem var(--gutter); }
.rules__list li { padding-top: 0.9rem; border-top: 1px solid rgb(221 184 104 / 0.35); font-size: var(--step-small); line-height: 1.5; color: var(--muted); }

/* the game beyond the phone, and the road to its launch */
.reach { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem var(--gutter); margin-top: 2.25rem; }
.reach__item dt { display: grid; justify-items: start; gap: 0.9rem; font-size: var(--step-lead); line-height: 1.2; letter-spacing: -0.01em; }
.reach__item svg { width: 2.75rem; height: 2.75rem; fill: none; stroke: var(--accent-strong); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 5px rgb(221 184 104 / 0.4)); }
.reach__item dd { margin-top: 0.6rem; font-size: var(--step-small); line-height: 1.55; color: var(--muted); max-width: 34ch; }
.road { margin-top: clamp(3rem, 5vw, 4.5rem); }
.road__phases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gutter); }
.road__phases li { position: relative; padding-top: 1.2rem; }
.road__phases li::before { content: ''; position: absolute; left: 0; right: calc(-1 * var(--gutter)); top: 0; height: 2px; background: rgb(243 245 241 / 0.12); }
.road__phases li:last-child::before { right: 0; }
.road__phases li.is-now::before { background: linear-gradient(90deg, var(--accent-strong), rgb(221 184 104 / 0.35)); box-shadow: 0 0 8px var(--glow); }
.road__phases h4 { font-size: var(--step-body); font-weight: 500; line-height: 1.3; }
.road__phases p { margin-top: 0.35rem; font-size: var(--step-small); line-height: 1.5; color: var(--muted); max-width: 32ch; }

/* drawn things come in with the part they belong to */
@media (prefers-reduced-motion: no-preference) {
  .js .level__pic { opacity: 0; transform: translateY(10px) scale(0.97); transition: opacity 1.4s var(--ease-soft) 200ms, transform 1.7s var(--ease-out) 200ms; }
  .js .level.is-in .level__pic { opacity: 1; transform: none; }
  .js .meters div::after { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease-out) 700ms; }
  .js .level.is-in .meters div::after { clip-path: inset(0); }
  .js .goal__ticks { stroke-dashoffset: 60; transition: stroke-dashoffset 2.2s var(--ease-out) 300ms; }
  .js .goal.is-in .goal__ticks { stroke-dashoffset: 0; }
  .js .climate__line { stroke-dashoffset: 1; transition: stroke-dashoffset 2s var(--ease-in-out) 350ms; }
  .js .system.is-in .climate__line { stroke-dashoffset: 0; }
  .js .flow i { transform: scaleX(0); transition: transform 1.2s var(--ease-out); }
  .js .flow li:nth-child(2) i { transition-delay: 150ms; } .js .flow li:nth-child(3) i { transition-delay: 300ms; } .js .flow li:nth-child(4) i { transition-delay: 450ms; }
  .js .system.is-in .flow i { transform: none; }
  .js .score__band { stroke-dashoffset: 1; transition: stroke-dashoffset 900ms var(--ease-out); transition-delay: calc(250ms + var(--b) * 260ms); }
  .js .score.is-in .score__band { stroke-dashoffset: 0; }
  .js .coin__rim { stroke-dashoffset: 72; transition: stroke-dashoffset 2.2s var(--ease-out) 300ms; }
  .js .coin.is-in .coin__rim { stroke-dashoffset: 0; }
}
/* with motion reduced, the phone stays on the view chosen and changes only when asked, the one view fading into the next */
@media (prefers-reduced-motion: reduce) {
  .js .ui__view { transition: opacity 200ms ease, visibility 0s linear 200ms; }
  .js .app__screen[data-view="0"] .ui__view[data-view="0"], .js .app__screen[data-view="1"] .ui__view[data-view="1"],
  .js .app__screen[data-view="2"] .ui__view[data-view="2"], .js .app__screen[data-view="3"] .ui__view[data-view="3"] { transition: opacity 200ms ease, visibility 0s; }
}

/* ---------- a short screen beside a wide one: the beats a size down, so the title, the phone and its four beats fit one
   page (past 1920 px everything is a size up already, so a screen there is short sooner; under 1280 px wide, or on a
   window squarer than 3:2, the phone is held by the width, and the beats beside it are a size down at any height) ---------- */
@media (min-width: 1100px) and (max-height: 1019px), (min-width: 1921px) and (max-height: 1179px), (min-width: 1100px) and (max-width: 1279px), (min-width: 1100px) and (max-aspect-ratio: 3/2) {
  .app__beats { gap: 1.1rem; }
  .app__beat { padding-top: 0.8rem; }
  .app__beat h4 { margin-bottom: 0.3rem; font-size: 1.375rem; }
  .app__beat p { font-size: 1rem; line-height: 1.45; }
}
/* ---------- from 1100 px, one page holds it all: the title, its five lines, the phone, its four notes and the four
   beats. The phone stands in columns 4 to 7, as tall as a page allows, so its screen can be read (Vario, 2026-12-01:
   "can you make screen of phone bigger?"). Under the title, above the phone, it was cut at the page's foot, so that
   evening the page was laid out again ("put that small thing to one side, and in the space you created ... place
   that wording"): the four notes stand together at the phone's left, under the title, each drawn to its point (not
   numbered: "directly connect them"); the five lines stand at its right, where two of the notes stood, and the beats
   under them. The head lies over the stage, out of the flow from
   the section's top, so a page that opens the section opens on all of it. (8rem: the top bar, and the page's margin
   above and below the phone) ---------- */
@media (min-width: 1100px) {
  .app__head { position: absolute; z-index: 1; top: var(--section); left: var(--margin); right: var(--margin); align-items: start; pointer-events: none; }
  .app__head > * { pointer-events: auto; }
  .app__title { grid-column: 1 / 4; }
  .app__lead { grid-column: 8 / 13; max-width: none; font-size: var(--app-lead); line-height: 1.38; }
  .app { --app-lead: clamp(1.125rem, 0.62rem + 0.7vw, 1.5rem); } /* (the five lines a size down from a statement's: a column beside the phone is narrower than the head's half) */
  .app__stage { margin-top: 0; align-items: end; }
  .app__phone { grid-column: 4 / 8; }
  .app__device { height: min(80svh, calc(100svh - 8rem), 52rem, calc(((100vw - 2 * var(--margin) - 11 * var(--gutter)) / 3 + 3 * var(--gutter)) / 0.5641)); }
  .app__side { grid-column: 8 / 13; align-self: end; }
  .app__beat p { max-width: 46ch; }
  /* the notes, each at a set height of the phone's, its name's middle on the line drawn to it from its point: the
     Grower Score at 40% (its line over the phone's top from the chip at the screen's top right), the season clock at
     55%, Berry at 70%, Agricoin at 85% (its line under the phone's foot from the coins at the bottom right). The lines
     run down two channels in the dark beside the phone, the inner for the two points at the screen's left, the outer
     for the two at its right, and never cross; the notes stand clear of them, 18% of the phone's width out */
  .app__lines { display: block; }
  .app__short, .app__keys { display: none; }
  .app__tag b::before { content: none; }
  .app__tags { position: absolute; inset: 0; display: block; max-width: none; margin: 0; pointer-events: none; }
  .app__tag { position: absolute; right: 118%; width: clamp(11rem, 16vw, 15rem); padding-top: 0; border: 0; justify-items: end; text-align: right; translate: 0 -0.68em; text-shadow: 0 1px 10px rgb(14 26 21 / 0.85); }
  .app__tag--b { top: 40%; }
  .app__tag--a { top: 55%; }
  .app__tag--c { top: 70%; }
  .app__tag--d { top: 85%; }
}
/* (a lower window: the phone is shorter, and the beats go two by two, so they and the five lines still stand clear of
   each other beside it; and under 1280 px wide at any height, where the phone is held by the width, the column is
   narrower and its lines more) */
@media (min-width: 1100px) and (max-height: 829px), (min-width: 1100px) and (max-width: 1279px) {
  .app__beats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem var(--gutter); }
}
@media (min-width: 1100px) and (max-width: 1279px) {
  .app__items--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rules__list, .alerts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- a tablet: one column, two across where the lists are ---------- */
@media (max-width: 1099px) {
  .app__title { grid-column: 1 / 13; }
  .app__lead { grid-column: 1 / 11; margin-top: 1.5rem; }
  .app__stage { display: block; }
  .app__device { height: min(72svh, 46rem, calc(100svh - 18rem)); margin: 0 auto; } /* (and short enough that the phone and its notes under it stand whole on one page) */
  .app__beats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem var(--gutter); margin-top: 3rem; }
  .app.is-auto .app__beat > :is(h4, p) { opacity: 1; }
  .app__hold { margin-top: 1.6rem; }
  .alerts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app__name, .app__sub { grid-column: 1 / 13; }
  .app__sub { margin-top: 0.5rem; }
  .levels { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  .regions, .alerts, .app__items, .app__items--5, .rules__list, .reach, .road__phases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .road__phases { row-gap: 2rem; }
  .road__phases li::before { right: 0; }
  .seeds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .systems { grid-template-columns: minmax(0, 1fr); }
  .system { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--gutter); align-items: start; }
  .system__name { grid-column: 1 / -1; }
  .system > :is(.climate, .mix, .flow) { grid-column: 1; }
  .system .flow__cap { grid-column: 1; }
  .system__text { grid-column: 2; grid-row: 2 / span 2; margin-top: 1.25rem; }
  .tree__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1.25rem; }
  .tree__steps li:nth-child(3)::after, .tree__steps li:nth-child(3)::before { display: none; }
  .credit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .score, .credit__text { grid-column: auto; }
}

/* ---------- a phone ---------- */
@media (max-width: 767px) {
  .app { padding: 5rem 1.25rem 4rem; }
  .app__head, .app__bar { display: block; }
  .app__lead { margin-top: 1.25rem; }
  .app__stage { margin-top: 1.5rem; }
  .app__device { height: auto; width: min(86vw, 26rem); }
  .app__tags { grid-template-columns: minmax(0, 1fr); gap: 0.85rem; }
  .app__beats { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; margin-top: 2.25rem; }
  .app__part { margin-top: 5rem; }
  .app__more + .app__part { margin-top: 4.5rem; }
  .app__more { margin-top: 3.5rem; }
  .app__sub { margin-top: 0.6rem; }
  .levels { grid-template-columns: minmax(0, 1fr); row-gap: 2rem; margin-top: 1.5rem; }
  .level { display: grid; grid-template-columns: 42% minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; column-gap: 0.85rem; }
  .level__pic { grid-row: 1 / 5; align-self: start; width: calc(100% + 2.75rem); max-width: none; margin: -14% -1.5rem 0 -1.25rem; }
  .level__name { font-size: 1.5rem; }
  .meters { margin: 0.75rem 0 0.6rem; padding-top: 0.6rem; gap: 0.45rem; }
  .goal { grid-template-columns: minmax(0, 1fr); row-gap: 1rem; }
  .regions, .alerts, .rules__list, .reach { grid-template-columns: minmax(0, 1fr); }
  .seeds, .app__items, .app__items--5, .road__phases { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; }
  .modes, .modes tbody, .modes thead { display: block; }
  .modes tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modes thead td { display: none; }
  .modes :is(th, td), .modes tbody th { width: auto; padding: 0.75rem 0.85rem; }
  .modes tbody th { grid-column: 1 / -1; padding: 0.85rem 0 0.2rem; }
  .modes td { font-size: var(--step-small); }
  .modes thead b { font-size: 1.75rem; }
  .system { display: block; }
  .system__text { margin-top: 1rem; }
  .tree__steps { grid-template-columns: minmax(0, 1fr); row-gap: 0.4rem; }
  .tree__steps li { grid-template-columns: minmax(0, 1fr); }
  .tree__steps li::after, .tree__steps li::before { display: none; }
  .tree__steps li:not(:last-child) { padding-bottom: 0.9rem; border-bottom: 1px solid var(--rule); }
  .credit { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .score { width: min(100%, 17rem); justify-self: center; }
  .coin { grid-template-columns: minmax(0, 1fr); row-gap: 1.25rem; }
  .coin__side--in { text-align: left; }
  .coin__side--in p { margin-left: 0; }
  .coin__side--in ul, .coin__side--out ul { padding: 0; border: 0; }
  .coin__side li::after { display: none; }
  .coin__mid { width: 9rem; justify-self: center; padding: 0.5rem 0; }
  .coin__mid::before { left: 50%; right: auto; top: -0.75rem; bottom: -0.75rem; width: 1px; height: auto; }
}
@media (max-width: 420px) {
  .seeds, .app__items, .app__items--5 { grid-template-columns: minmax(0, 1fr); }
}
