/* Tendril: tokens from the mockup (docs/design/tendril-mockup.md, «Visual system»). Dark is the default look. */
@font-face{font-family:"Ysabeau Office";src:url(fonts/ysabeau-office-cyrillic-wght-normal.woff2) format("woff2");font-weight:100 900;font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Ysabeau Office";src:url(fonts/ysabeau-office-latin-wght-normal.woff2) format("woff2");font-weight:100 900;font-display:swap;unicode-range:U+0000-00FF,U+2000-206F,U+20AC,U+2122,U+2212}
@font-face{font-family:Literata;src:url(fonts/literata-cyrillic-wght-normal.woff2) format("woff2");font-weight:200 900;font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Literata;src:url(fonts/literata-latin-wght-normal.woff2) format("woff2");font-weight:200 900;font-display:swap;unicode-range:U+0000-00FF,U+2000-206F,U+20AC,U+2122,U+2212}

:root{
  --bg:#141712;--panel:#1B1F18;--panel-a:rgba(27,31,24,.95);--pill:rgba(20,23,18,.94);--surface:#23281F;--chip:#262A25;--track:#141712;
  --text:#EEF0EA;--text2:#D7DCD2;--muted:#B3B9AE;--muted2:#9AA095;--line:rgba(238,240,234,.1);--line-strong:rgba(238,240,234,.16);
  --seg-on-bg:#EEF0EA;--seg-on-fg:#171A15;--amber-text:#F3C98A;--danger:#F0A592;--switch-off:#3A4036;
  --amber:#E29024;--on-amber:#1A1206;--ink:#171A15;--ink-sub:#4E534A;--ink-foot:#2B2F27;
  --paper-q:#EEE9DD;--paper-t:#EDE3CF;--paper-end:#F3E6CF;--kind-q:#3E6B4F;--kind-t:#8A520F;
  --back:#1E3324;--sheet1:#B9B3A6;--sheet2:#D4CEC1;--breath:#8DB874;--scrim:rgba(8,10,8,.6);
  color-scheme:dark;
}
:root[data-theme="light"]{
  --bg:#EFEBE2;--panel:#FAF7F0;--panel-a:rgba(250,247,240,.95);--pill:rgba(250,247,240,.96);--surface:#EDE8DD;--chip:#E6E0D3;--track:#E2DCCF;
  --text:#1D211B;--text2:#2F352C;--muted:#575D53;--muted2:#646A60;--line:rgba(29,33,27,.12);--line-strong:rgba(29,33,27,.22);
  --seg-on-bg:#1D211B;--seg-on-fg:#F5F2EA;--amber-text:#8A4E0C;--danger:#A23B22;--switch-off:#CFC9BC;color-scheme:light;
}
@media (prefers-color-scheme:light){:root:not([data-theme]){
  --bg:#EFEBE2;--panel:#FAF7F0;--panel-a:rgba(250,247,240,.95);--pill:rgba(250,247,240,.96);--surface:#EDE8DD;--chip:#E6E0D3;--track:#E2DCCF;
  --text:#1D211B;--text2:#2F352C;--muted:#575D53;--muted2:#646A60;--line:rgba(29,33,27,.12);--line-strong:rgba(29,33,27,.22);
  --seg-on-bg:#1D211B;--seg-on-fg:#F5F2EA;--amber-text:#8A4E0C;--danger:#A23B22;--switch-off:#CFC9BC;color-scheme:light}}

*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--text);font:400 17px/1.45 "Ysabeau Office",system-ui,sans-serif;-webkit-text-size-adjust:100%}
body{min-height:100dvh;overflow-x:hidden}
h1,h2,.serif{font-family:Literata,Georgia,serif;font-weight:500;line-height:1.15;margin:0}
h1{font-size:30px}h1.big{font-size:44px}h2{font-size:22px}
p{margin:0}
button,input{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--amber);outline-offset:2px}
h1[tabindex="-1"]:focus{outline:none}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* the phone column; on wide screens the garden art fills the sides */
.app{position:relative;z-index:1;max-width:430px;margin:0 auto;min-height:100dvh;display:flex;flex-direction:column;padding:max(16px,env(safe-area-inset-top)) 16px max(16px,env(safe-area-inset-bottom))}
.screen{flex:1;display:flex;flex-direction:column;gap:16px;position:relative;z-index:1}
.grow{flex:1}
.art{position:fixed;inset:0;pointer-events:none;z-index:0;overflow:hidden}
/* the grass is a strip repeated along the bottom at its own proportions: stretched to a wide screen it was cut and blurred */
.ground{position:absolute;bottom:0;left:0;right:0;height:120px;background:url(img/ground.webp) repeat-x bottom center/auto 100%;-webkit-mask-image:linear-gradient(transparent,#000 45%);mask-image:linear-gradient(transparent,#000 45%)}
/* the art is painted on night #141712: soft masks let its own background dissolve into the page instead of showing a square */
.grow.has-plant{position:relative;min-height:240px}
.plant{position:absolute;inset:0}
.plant>img:first-child{position:absolute;left:50%;bottom:0;height:100%;max-width:100%;object-fit:contain;transform:translateX(-50%);-webkit-mask-image:radial-gradient(farthest-side at 50% 60%,#000 38%,transparent 92%);mask-image:radial-gradient(farthest-side at 50% 60%,#000 38%,transparent 92%)}
.bloom,.glow,.chip img,.back img{-webkit-mask-image:radial-gradient(closest-side,#000 55%,transparent);mask-image:radial-gradient(closest-side,#000 55%,transparent)}
.bloom{position:absolute;width:16%;max-width:76px;aspect-ratio:1;animation:bloom 1.4s both}
/* on light paper the night art would be a dark smudge: it gets a window into the night garden instead, and the ground goes */
:root[data-theme="light"] .plant{background:#141712;border-radius:28px;overflow:hidden}
:root[data-theme="light"] .ground{display:none}
@media (prefers-color-scheme:light){:root:not([data-theme]) .plant{background:#141712;border-radius:28px;overflow:hidden}:root:not([data-theme]) .ground{display:none}}
@keyframes bloom{0%{transform:scale(.15) rotate(-20deg);opacity:0}70%{transform:scale(1.08)}100%{transform:none;opacity:1}}
.jar{position:fixed;inset:0;z-index:0;background:#141712 center/cover no-repeat}
.jar.full{background-image:url(img/jar.webp)}.jar.sprout{background-image:url(img/jar-sprout.webp)}

.panel{background:var(--panel-a);border:1px solid var(--line);border-radius:28px;padding:22px;display:flex;flex-direction:column;gap:14px}
.pill{white-space:nowrap;display:inline-flex;align-items:center;gap:6px;min-height:44px;background:var(--pill);border:1px solid var(--line);border-radius:22px;padding:8px 14px;font-size:14px}
.note{background:var(--pill);border:1px solid var(--line);border-radius:16px;padding:10px 14px;font-size:14px;color:var(--muted)}
.muted{color:var(--muted)}.small{font-size:14px}.tiny{font-size:11px;opacity:.7;margin-top:4px}.amber{color:var(--amber-text)}.center{text-align:center}
.row{display:flex;gap:10px;align-items:center}.row.between{justify-content:space-between}.wrap{flex-wrap:wrap}
.stack{display:flex;flex-direction:column;gap:10px}

.btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:54px;border-radius:16px;border:0;background:var(--amber);color:var(--on-amber);font-weight:600;font-size:17px;cursor:pointer;padding:0 18px;text-decoration:none}
/* secondary buttons are solid: over the garden art a see-through button disappears */
.btn.alt{background:var(--surface);color:var(--text);border:1px solid var(--line-strong);min-height:50px;font-weight:500}
.btn.text{background:none;border:0;min-height:44px;padding:0 2px;color:var(--text2);font-weight:500;text-decoration:underline;text-underline-offset:4px;text-decoration-color:var(--line-strong)} /* a link that does something: no fill, so it never competes with a button */
.btn.text:not(:disabled):hover{color:var(--text);text-decoration-color:currentColor;filter:none}
.btn.danger{background:var(--surface);color:var(--danger);border:1px solid var(--danger);min-height:50px}
.btn:disabled{background:var(--surface);color:var(--muted2);border:1px solid var(--line);cursor:default}
.btn[aria-busy="true"]{opacity:.7;cursor:progress}
.btn[aria-busy="true"]::after{content:"";width:14px;height:14px;border-radius:50%;border:2px solid currentColor;border-right-color:transparent;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.btn:not(:disabled):hover{filter:brightness(1.08)}.btn:not(:disabled):active{transform:scale(.98)}
.btns{display:flex;flex-wrap:wrap;gap:10px}.btns>.btn{flex:1 1 180px} /* two side by side only where both labels fit on one line */
.icon-btn{width:44px;height:44px;border-radius:22px;border:1px solid var(--line);background:var(--pill);display:grid;place-items:center;cursor:pointer}

label.field{display:flex;flex-direction:column;gap:6px;font-size:14px;color:var(--muted)}
input[type=text],input[type=url],input[type=password]{min-height:48px;border-radius:14px;border:1px solid var(--line-strong);background:var(--surface);padding:0 14px;font-size:17px;color:var(--text)}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chips.line{-webkit-mask-image:linear-gradient(90deg,#000 85%,transparent);mask-image:linear-gradient(90deg,#000 85%,transparent);flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:0 -22px;padding:0 22px}.chips.line::-webkit-scrollbar{display:none}.chips.line .chip{flex:none}
.chips{position:relative}.chip{position:relative;min-height:44px;border-radius:10px;border:1px solid var(--line);background:var(--chip);padding:0 12px;font-size:15px;cursor:pointer}
.chip.toggle{display:inline-flex;align-items:center;gap:6px}.chip.toggle>span[aria-hidden]{color:var(--text2);font-size:13px}
.chip.off{background:var(--track);border-style:dashed;color:var(--muted);text-decoration:line-through}.chip.off>span[aria-hidden]{color:var(--muted)}
.chip[data-act=mark][aria-pressed="true"]{background:var(--seg-on-bg);color:var(--seg-on-fg);border-color:var(--seg-on-bg)}
.chip.asked{border-color:var(--amber);position:relative}.chip.asked::after{content:"";position:absolute;top:-3px;right:-3px;width:10px;height:10px;border-radius:50%;background:var(--amber)}
.chip.closed{background:rgba(226,144,36,.18);border-color:rgba(226,144,36,.45)}
.chip img{width:22px;vertical-align:-6px;margin:-4px 2px -4px -6px}
.seg{display:flex;background:var(--track);border:1px solid var(--line);border-radius:14px;padding:4px;gap:4px}
.seg label{flex:1;position:relative}
.seg input{position:absolute;opacity:0;inset:0;cursor:pointer;margin:0}
.seg span{display:flex;align-items:center;justify-content:center;min-height:44px;border-radius:10px;font-size:15px}
.seg input:checked+span{background:var(--seg-on-bg);color:var(--seg-on-fg)}
.seg input:focus-visible+span{outline:2px solid var(--amber);outline-offset:2px}
.opt{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;min-height:58px;border-radius:14px;border:1px solid var(--line-strong);background:transparent;padding:10px 14px;cursor:pointer;text-align:left}
.opt[aria-pressed="true"]{border-color:var(--amber);background:rgba(226,144,36,.12)}
.opt small{color:var(--muted);font-size:14px}
.switch{display:flex;justify-content:space-between;align-items:center;min-height:48px;gap:12px}
.switch input{appearance:none;width:48px;height:28px;border-radius:14px;background:var(--switch-off);position:relative;cursor:pointer;flex:none}
.switch input::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;transition:transform .2s}
.switch input:checked{background:var(--amber)}.switch input:checked::after{transform:translateX(20px)}
ol.pact{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:10px}

/* the card */
.bar{display:flex;justify-content:space-between;align-items:center;gap:8px}
.deck{position:relative;flex:1 0 auto;min-height:380px;perspective:1200px;margin:8px 4px;display:flex}
.deck::before,.deck::after{content:"";position:absolute;inset:6px 4px;border-radius:24px}
.deck::before{background:var(--sheet1);transform:rotate(-3deg)}.deck::after{background:var(--sheet2);transform:rotate(2deg)}
.card{position:relative;flex:1;display:grid;z-index:1;border-radius:24px;transition:transform .7s cubic-bezier(.22,1,.36,1);transform-style:preserve-3d}
.card.open{transform:rotateY(180deg)}
.face,.back{grid-area:1/1;position:relative;border-radius:24px;backface-visibility:hidden;-webkit-backface-visibility:hidden;padding:24px;display:flex;flex-direction:column;gap:14px}
.back{color-scheme:dark;background:var(--back) url(img/card-back.webp) center/cover;align-items:center;justify-content:center;color:#F0E6D2;box-shadow:inset 0 0 0 12px var(--back),inset 0 0 0 13px rgba(226,144,36,.45);border:0;width:100%;cursor:pointer;z-index:2;font:inherit}
div.back{cursor:default}
.back-in{display:flex;flex-direction:column;align-items:center;gap:10px}.back img{width:72px}.back .hint{color:#C9C3B3;font-size:15px}
.face-wrap{grid-area:1/1;display:grid;transform-style:preserve-3d} /* one cell with the back: the card takes the taller side's height */
.face{transform:rotateY(180deg);background:var(--paper-q);color:var(--ink)}
/* each kind of card has its own paper and mark: a question, an echo, a task, a story */
.face.t-echo{background:#E2EAF0}.face.t-act{background:var(--paper-t)}.face.t-mirror{background:#EAE4F1}.face.end,.paper.end{background:var(--paper-end)}
.kind{display:flex;justify-content:space-between;align-items:center;font-size:14px;color:var(--ink-sub)}
.kind b{color:var(--kind-q);font-weight:700;display:inline-flex;align-items:center;gap:6px}
.kind b span{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;border:1.5px solid currentColor;font-size:13px}
.t-echo .kind b{color:#2C5A7C}.t-act .kind b{color:var(--kind-t)}.t-mirror .kind b{color:#62457F}
.role{border-radius:14px;padding:10px 14px;display:flex;flex-direction:column;gap:2px}
.role b{font-size:18px;font-weight:700}.role span{font-size:15px}.role small{font-size:13px;opacity:.75}
.role.me{background:var(--amber);color:var(--on-amber)}
.role.other{background:rgba(23,26,21,.08);color:var(--ink)}
.role.both{background:rgba(23,26,21,.08);color:var(--ink)}
.face .title{font-size:14px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--ink-sub)}
.face .story{font-family:Literata,Georgia,serif;font-size:19px;line-height:1.35;color:var(--ink)}
.discuss{margin-top:auto;background:rgba(98,69,127,.1);border-radius:12px;padding:12px 14px;font-size:17px;color:var(--ink);font-weight:500}
.discuss b{display:block;font-size:13px;color:#62457F;font-weight:700;margin-bottom:2px}
.t-act .q,.face .q.mid{font-size:21px}
.face .q.long{font-size:21px}.t-act .q.long,.face .q.mid.long{font-size:18px}
/* a long card scrolls; the fade says there is more below */
.face{padding-bottom:24px}
.face .what{font-size:15px;color:var(--ink-sub);margin-top:-6px}
.progress{display:flex;align-items:center;gap:6px;background:var(--pill);border:1px solid var(--line);border-radius:14px;padding:10px 14px}
.progress i{flex:1;height:5px;border-radius:3px;background:var(--line-strong)}.progress i.done{background:var(--breath)}.progress i.now{background:var(--amber)}
.progress{flex-wrap:wrap;row-gap:8px}.progress span{flex-basis:100%;font-size:14px;color:var(--muted)} /* the circle, the place and the count under the bars: in the top bar they were cut off */
.wait{text-align:center;font-size:15px;color:var(--text2);padding:6px 0}
.face .q,.paper .q{font-family:Literata,Georgia,serif;font-size:25px;line-height:1.2;color:var(--ink)}
.face .sub,.paper .sub{color:var(--ink-sub);font-size:16px}
.foot{margin-top:auto;border-top:1px solid rgba(23,26,21,.15);padding-top:12px;font-size:15px;color:var(--ink-foot)}
.foot b{display:block;font-size:13px;color:var(--ink-sub);font-weight:600}
.paper{border-radius:24px;padding:24px;background:var(--paper-q);color:var(--ink);display:flex;flex-direction:column;gap:12px}
.paper .label{font-size:14px;color:var(--kind-t);font-weight:600}.paper.slow .label{color:var(--kind-q)}

/* sheets and the breathing pause */
.scrim{position:fixed;inset:0;background:var(--scrim);z-index:5;display:flex;align-items:flex-end;justify-content:center}
.sheet{width:100%;max-width:430px;background:var(--panel);border-radius:28px 28px 0 0;padding:24px 16px max(16px,env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:12px}
.breathe{width:160px;height:160px;margin:8px auto;border-radius:50%;border:2px solid var(--breath);background:rgba(141,184,116,.16);animation:breathe 10s ease-in-out infinite}
@keyframes breathe{0%,100%{transform:scale(.72)}50%{transform:scale(1)}}
.prompt{white-space:pre-wrap;background:var(--surface);border-radius:14px;padding:14px;font-size:15px;max-height:300px;overflow:auto}
/* small pieces */
.label{font-size:14px;color:var(--amber-text);font-weight:600}
.paper .label{color:var(--kind-t)}
.status{background:var(--surface);border-left:3px solid var(--amber);border-radius:10px;padding:10px 12px;font-size:15px}
.bar .tag{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tag{font-size:14px;color:var(--text2);background:var(--pill);border-radius:22px;padding:6px 12px;text-align:center}
.toast{position:fixed;left:50%;top:max(128px,calc(env(safe-area-inset-top) + 116px));transform:translateX(-50%);z-index:6;width:min(398px,calc(100% - 32px));box-shadow:0 6px 24px rgba(0,0,0,.25);background:var(--seg-on-bg);color:var(--seg-on-fg);border-radius:12px;padding:10px 14px;font-size:15px;text-align:center;animation:rise .3s both}
.banner{position:relative;z-index:7;background:var(--surface);color:var(--text);border-left:3px solid var(--amber);border-radius:12px;padding:10px 14px;margin:0 0 12px;font-size:15px}
.banner[hidden]{display:none}
.panel.tight{padding:14px;gap:10px}
.linkbox{font-size:14px;color:var(--text2);background:var(--surface);border-radius:12px;padding:10px 12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;user-select:all} /* one line: the buttons below copy and send it whole */
.dots{display:flex;justify-content:center;gap:8px}.dots i{width:8px;height:8px;border-radius:50%;background:var(--line-strong)}.dots i.on{background:var(--amber)}
.head .title{display:flex;flex-direction:column;background:var(--pill);border:1px solid var(--line);border-radius:18px;padding:8px 16px}
.seed{position:relative;margin:24px auto 0;text-align:center;background:var(--pill);border-radius:12px;padding:8px 12px;max-width:300px}
ul.list{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:8px}
details.more{font-size:15px}details.more summary{cursor:pointer;color:var(--amber-text);min-height:44px;display:flex;align-items:center}
details.more dl{margin:4px 0 0;display:grid;gap:4px}details.more dt{font-weight:600;margin-top:6px}details.more dd{margin:0;color:var(--muted);font-size:14px}
.rise{animation:rise .4s both}@keyframes rise{from{opacity:0;transform:translateY(10px)}}

@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
/* desktop and tablets: a wider column in the middle of the screen, the garden art around it */
@media (min-width:700px){
  .grow.has-plant{min-height:280px}
  .ground{height:150px}
  .chips.line{flex-wrap:wrap;overflow:visible;margin:0;padding:0;-webkit-mask-image:none;mask-image:none} /* no sideways scroll with a mouse */
  .app{max-width:560px;padding-top:32px;padding-bottom:96px}
  .screen{justify-content:center}.grow{flex:0 0 24px}
  .deck{flex:none;min-height:min(520px,60vh)}
  .sheet{border-radius:28px;margin-bottom:10vh}.scrim{align-items:center}
  h1{font-size:34px}
}


/* the web landing: the game's own voice, not a template. Serif headings, the garden's pictures, rules instead of boxes */
.app.wide{max-width:1080px;padding-left:20px;padding-right:20px;padding-bottom:max(16px,env(safe-area-inset-bottom))} /* the landing ends on the ground (.land-ground), flush with the bottom */
.landing{display:flex;flex-direction:column;gap:72px}
.landing a.btn{text-decoration:none}
.landing section>h2{font-size:clamp(28px,4.2vw,40px);margin-bottom:18px;max-width:20em}
.landing h3{font-family:Literata,Georgia,serif;font-size:20px;font-weight:500;margin:0 0 6px}
.narrow,.landing .lead{max-width:36em}
.land-top{display:flex;justify-content:space-between;align-items:center;gap:12px}
.brand{display:flex;align-items:center;gap:8px;font-family:Literata,Georgia,serif;font-size:22px}
.brand img,.flowers img,.final img,.hero-art img,.growth img{-webkit-mask-image:radial-gradient(closest-side,#000 50%,transparent);mask-image:radial-gradient(closest-side,#000 50%,transparent)}
.hero-art img,.growth img,.final img{-webkit-mask-image:radial-gradient(farthest-side at 50% 60%,#000 38%,transparent 92%);mask-image:radial-gradient(farthest-side at 50% 60%,#000 38%,transparent 92%)}
.langs{display:flex;gap:6px}.langs .pill{cursor:pointer;color:var(--text2)}.langs .pill.on{background:var(--seg-on-bg);color:var(--seg-on-fg);border-color:transparent}
.hero{display:grid;gap:4px;align-items:center}
.hero-text{display:flex;flex-direction:column;gap:16px}
.kicker{color:var(--muted);font-size:17px}
.hero h1{font-size:clamp(36px,6.4vw,62px);line-height:1.04}
.lead{font-size:19px;color:var(--text2)}
.hero .lead{margin-top:8px}
.ways{display:flex;flex-wrap:wrap;gap:10px}.ways .btn{flex:1 1 210px;width:auto}
.hero-art{width:min(56%,250px);justify-self:center;order:-1;margin:-16px 0 -36px}
.hero-art img{width:100%;height:auto;display:block}
.mine .stack{display:grid;gap:10px;max-width:520px}
.growth{list-style:none;padding:0;margin:0;display:grid;gap:8px 28px}
.growth li{display:grid;grid-template-columns:120px 1fr;gap:0 16px;align-items:center}
.growth img{width:120px;height:auto;grid-row:span 2}
.growth h3{align-self:end}.growth p{align-self:start;color:var(--text2)}
.minis{display:grid;gap:26px 18px;margin:26px 0 22px}
.kind-say{margin:10px 6px 0;color:var(--muted);font-size:15px}.kind-say::first-letter{text-transform:uppercase}
.mini{margin:0;background:var(--paper-q);color:var(--ink);border-radius:22px;padding:22px;display:flex;flex-direction:column;gap:10px;box-shadow:0 18px 40px rgba(0,0,0,.35)}
.mini.act{background:var(--paper-t)}
.mini figcaption{display:flex;justify-content:space-between;gap:8px;font-size:14px;color:var(--ink-sub)}
.mini figcaption b{color:var(--kind-q)}.mini.act figcaption b{color:var(--kind-t)}.mini.echo figcaption b{color:#2C5A7C}.mini.mirror figcaption b{color:#62457F}.minis .mini figcaption{flex-wrap:wrap;row-gap:2px}.minis .mini figcaption b{white-space:nowrap}
.mini p{font-family:Literata,Georgia,serif;font-size:17px;line-height:1.4}
.mini.ask p{font-size:22px;line-height:1.3}.mini .mini-h{font-size:21px;line-height:1.25}.mini .mini-ask{font-style:italic;color:var(--ink-foot)}
.flowers{list-style:none;padding:0;margin:24px 0 0;display:grid;grid-template-columns:repeat(2,1fr);gap:4px 12px}
.flowers li{display:flex;flex-direction:column;align-items:center;text-align:center;gap:0;font-family:Literata,Georgia,serif;font-size:16px;line-height:1.25;color:var(--text)}
.flowers img{width:min(100%,150px);height:auto;margin-bottom:-10px}
.flowers small{font-family:"Ysabeau Office",system-ui,sans-serif;color:var(--amber-text);font-weight:600}
.who{display:grid;gap:0 28px}
.who>div{border-top:1px solid var(--line-strong);padding:18px 0}
.who>div:last-child{border-bottom:1px solid var(--line-strong)}
.who p,.two p{color:var(--text2)}
.two{display:grid;gap:40px}
.two h2{font-size:26px;margin-bottom:10px}
.landing .btn.text{width:auto;align-self:flex-start}
.faq{border-bottom:1px solid var(--line)}
.faq summary{cursor:pointer;font-family:Literata,Georgia,serif;font-size:19px;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 0;min-height:44px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";color:var(--amber-text);font-size:22px;line-height:1}.faq[open] summary::after{content:"−"}
.faq p{margin:0 0 16px;color:var(--text2);max-width:46em}
.final{text-align:center;display:flex;flex-direction:column;align-items:center;gap:14px}
.final img{width:240px;height:auto;margin:-48px 0 -24px}
.final .ways{width:min(100%,520px)}.final .muted{max-width:30em}
.land-foot{display:flex;flex-wrap:wrap;gap:6px 18px;align-items:center;justify-content:center;color:var(--muted);font-size:14px;border-top:1px solid var(--line);padding-top:16px}
.land-foot .btn.text{font-size:14px;align-self:center}.land-foot a{color:var(--muted);min-height:44px;display:inline-flex;align-items:center}.land-foot .note{flex-basis:100%;text-align:center;background:none;border:0;padding:0}
@media (min-width:600px){.flowers{grid-template-columns:repeat(4,1fr)}.minis{grid-template-columns:1fr 1fr;align-items:start}}

/* The topics as a page of the game's own Herbarium: hairlines, a number, the flower, its name and the first light
   question of the topic, a real card. Nothing on the landing moves for its own sake: the words carry it. */
/* on a phone a page of rows, the flower beside its label; from two columns up, a plate per topic */
.herb{list-style:none;margin:28px 0 0;padding:0;display:grid;grid-template-columns:1fr;gap:1px;background:var(--line);border:1px solid var(--line)}
.herb li{background:var(--bg);display:grid;grid-template-columns:92px 1fr;column-gap:12px;align-items:center;align-content:center;padding:10px 14px 12px 6px}
.herb li>*{grid-column:2}
.herb .n{font-size:12px;letter-spacing:.12em;color:var(--muted);font-variant-numeric:tabular-nums}
.herb img{grid-column:1;grid-row:1/4;width:92px;height:auto;-webkit-mask-image:radial-gradient(closest-side,#000 58%,transparent);mask-image:radial-gradient(closest-side,#000 58%,transparent)}
@media (min-width:560px){.herb{grid-template-columns:1fr 1fr}.herb li{display:flex;flex-direction:column;align-items:stretch;gap:2px;padding:14px 14px 20px}.herb img{width:min(100%,150px);align-self:center;margin:2px 0 4px}}
.landing .herb h3{font-size:18px;line-height:1.2;margin:0}
.herb h3 small{font-family:"Ysabeau Office",system-ui,sans-serif;color:var(--amber-text);font-weight:600;font-size:12px;margin-left:2px}
.herb q{font-family:Literata,Georgia,serif;font-style:italic;font-size:14.5px;line-height:1.35;color:var(--text2);margin-top:6px;quotes:"«" "»"}
.herb q:lang(en){quotes:"\201C" "\201D"}
@media (min-width:760px){.herb{grid-template-columns:repeat(4,1fr)}.herb li{padding:18px 18px 24px}}
.land-ground{position:relative;flex:0 0 100vw;height:190px;margin:10px calc(50% - 50vw) calc(-1 * max(16px,env(safe-area-inset-bottom)));background:url(img/ground.webp) repeat-x bottom center/auto 100%;-webkit-mask-image:linear-gradient(transparent,#000 45%);mask-image:linear-gradient(transparent,#000 45%)}
@media (min-width:1080px){.minis{grid-template-columns:repeat(4,1fr)}.minis .kind-col:nth-child(3){margin-top:6px}.minis .kind-col:nth-child(4){margin-top:26px}}
@media (min-width:760px){
  .landing{gap:104px}
  .growth{grid-template-columns:repeat(3,1fr)}
  .growth li{grid-template-columns:1fr;text-align:left;align-items:start}
  .growth img{width:220px;grid-row:auto;margin:0 0 6px -24px}
  .flowers img{width:min(100%,220px);-webkit-mask-image:radial-gradient(closest-side,#000 62%,transparent);mask-image:radial-gradient(closest-side,#000 62%,transparent)}
  .flowers{gap:8px 16px}
  .who>div:nth-last-child(2){border-bottom:1px solid var(--line-strong)}
  .hero{grid-template-columns:1.2fr .8fr;gap:24px}
  .hero-art{order:0;margin:0;width:min(100%,420px)}
  .who,.two{grid-template-columns:1fr 1fr}
  .minis .kind-col:nth-child(1) .mini{transform:rotate(-1.4deg)}.minis .kind-col:nth-child(2) .mini{transform:rotate(.7deg)}
  .minis .kind-col:nth-child(2){margin-top:22px}.minis .kind-col:nth-child(3) .mini{transform:rotate(-.6deg)}.minis .kind-col:nth-child(4) .mini{transform:rotate(1.2deg)}
}
@media (min-width:900px){.hero{grid-template-columns:1.1fr .9fr}}

/* light: the card paper is close to the page, so it gets an edge; a flower image is night art, so it sits in a dark circle;
   the focus ring is the darker amber, the bright one is too faint on paper */
:root[data-theme="light"] .face,:root[data-theme="light"] .paper{box-shadow:0 0 0 1px rgba(29,33,27,.12),0 10px 28px rgba(29,33,27,.14)}
:root[data-theme="light"] .chip img{background:#141712;border-radius:50%}
:root[data-theme="light"] :focus-visible{outline-color:var(--amber-text)}
@media (prefers-color-scheme:light){:root:not([data-theme]) .face,:root:not([data-theme]) .paper{box-shadow:0 0 0 1px rgba(29,33,27,.12),0 10px 28px rgba(29,33,27,.14)}:root:not([data-theme]) .chip img{background:#141712;border-radius:50%}:root:not([data-theme]) :focus-visible{outline-color:var(--amber-text)}}
.links{display:flex;flex-wrap:wrap;justify-content:center;gap:0 18px}.links .btn{width:auto;flex:none}

/* links inside text, like the contact on the privacy screen */
.panel p a{color:var(--amber-text);text-underline-offset:2px}

/* the account: the bot's code big enough to compare at a glance, the ways in as rows */
.land-top .top-right{display:flex;align-items:center;gap:12px}.land-top .top-right .btn.text{font-size:15px;min-width:44px;min-height:44px;padding:0 8px;white-space:nowrap}
.tgwait{display:flex;flex-direction:column;gap:12px;margin:8px 0}
.tgwait input.code{font-size:28px;letter-spacing:.3em;text-align:center}
.way{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;min-height:56px}
.way .btn.text{width:auto;flex:none} /* a small action at the row's end, not a full-width link */
.ways-list{border-top:1px solid var(--line);margin-bottom:6px}.ways-list .way{border-bottom:1px solid var(--line)}
.stack0{display:flex;flex-direction:column;gap:2px}.stack0 small{font-size:14px}

/* the menu: languages on top, then one button per place */
.sheet.menu .langs{display:flex;gap:8px}.sheet.menu .langs .pill{flex:1;cursor:pointer;justify-content:center;text-align:center}.sheet.menu .langs .pill.on{background:var(--seg-on-bg);color:var(--seg-on-fg);border-color:transparent}
.menu-list{display:flex;flex-direction:column;gap:8px}
.bar .row{display:flex;gap:8px;align-items:center}

/* the herbarium: milestones as a quiet list, each with what it means */
.miles{list-style:none;padding:0;margin:0 0 8px;display:flex;flex-direction:column}
.miles li{display:flex;flex-direction:column;gap:2px;padding:12px 0;border-top:1px solid var(--line)}.miles li:last-child{border-bottom:1px solid var(--line)}
.screen[data-key=herbarium] .flowers{margin:8px 0 12px}

/* the garden's postcard */
.keep{text-align:center;align-items:center}.keep-plant{width:min(100%,320px);height:auto;margin:0 auto;-webkit-mask-image:radial-gradient(farthest-side at 50% 60%,#000 38%,transparent 92%);mask-image:radial-gradient(farthest-side at 50% 60%,#000 38%,transparent 92%)}
.keep-count{font-family:Literata,Georgia,serif;font-size:20px}.keep .flowers{width:100%}

/* headings break into even lines, not one word left alone; on a narrow phone the landing's top bar wraps instead of spilling over */
h1,h2{text-wrap:balance}
@media (max-width:400px){.land-top{flex-wrap:wrap;row-gap:4px}.land-top .top-right{flex-wrap:wrap;justify-content:flex-end}.langs .pill{padding:0 12px}}
