/* Petal web — tokens from design/handoffs/2026-11-02-petal-v0 (contrast fixes per design/brief.md). */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400 900; font-display: swap; src: url(fonts/nunito-latin.woff2) format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 300 600; font-display: swap; src: url(fonts/fraunces-italic-latin.woff2) format("woff2"); }

:root {
  --sky-top:#FBE3E8; --sky-bottom:#FFF4EA; --surface:#FFF9F5; --surface-alt:#FCEFF1;
  --slab-top:#F6DDE3; --slab-light:#F3D4DC; --slab-dark:#E2B8C6;
  --ink:#4B3A57; --ink-soft:#665279; --player:#A84D78;
  --accent:#EE9DB3; --accent-strong:#C25F84; --accent-soft:#F8D3DD; --on-accent:#4B3A57;
  --same:#E3DAF7; --peer:#EE9DB32B; --blush:#F4A6B4; --blush-soft:#FBDDE3;
  --mint:#BFE6D3; --gold:#F6D58E; --gold-deep:#B8862E; --lavender:#D5C8F0; --lilac:#B8A6E3; --peach:#FAD4BE; --apricot:#F6B89A; --mist:#C7DDF0; --star:#FFF6D6;
  --pebble:#FFFAF7; --pebble-edge:#EECBD5; --tool:#FFF4F1; --shadow:#B0709252; --glow:#FFFFFFA6; --rim-hi:#FFFFFFB8;
  --sheet:#FFF9F5F2; --veil:#FFF4EA99;
  --pfill:color-mix(in srgb, var(--accent) 62%, var(--pebble));
  --petal-gold:var(--gold); --petal-gold-deep:var(--gold-deep); /* names the Isle art (v0 handoff) uses */
  --mist-a:#FFFCF890; --mist-b:#F6EEF866; --beam:#FFE7A6;
  --ff-core:#FFF3CF; --ff-glow:#F4C468; --ff-halo:#F6D58E; --ff-wing:#FFFFFF; --ff-mote:#F0BE5C;
  --font-ui:"Nunito", ui-rounded, "SF Pro Rounded", -apple-system, system-ui, sans-serif;
  --font-display:"Fraunces", "New York", Georgia, serif;
  --safe-t:env(safe-area-inset-top, 0px); --safe-b:env(safe-area-inset-bottom, 0px);
  --safe-l:env(safe-area-inset-left, 0px); --safe-r:env(safe-area-inset-right, 0px);
  --bs:max(240px, min(calc(100vw - 32px), calc(100dvh - 300px - var(--safe-t) - var(--safe-b)), 480px));
  color-scheme:light;
}
:root[data-theme="sakura"]:not([data-sky="moon"]) { --sky-top:#FCE4EC; --sky-bottom:#FFF7F8; --surface:#FFFBFC; --surface-alt:#FDEEF3; --slab-top:#F9DCE6; --slab-light:#F5CFDC; --slab-dark:#E8B3C6; --accent:#F28DB2; --accent-strong:#C2507F; --accent-soft:#FBD3E1; --same:#F1DCEB; --player:#A8457A; --pebble-edge:#F2C6D6; }
:root[data-theme="peach"]:not([data-sky="moon"]) { --sky-top:#FFE5D3; --sky-bottom:#FFF6EC; --surface:#FFFAF5; --surface-alt:#FFF0E4; --slab-top:#FBDCC8; --slab-light:#F8D0B8; --slab-dark:#EDB596; --accent:#F6A57E; --accent-strong:#B9603C; --accent-soft:#FCDCC9; --same:#F8E2D2; --player:#A2553A; --pebble-edge:#F3CDB6; }
:root[data-theme="mint"]:not([data-sky="moon"]) { --sky-top:#E2F4EC; --sky-bottom:#F8FCF7; --surface:#FBFEFC; --surface-alt:#EEF8F2; --slab-top:#D8EFE3; --slab-light:#CBE8D8; --slab-dark:#A9D4BE; --accent:#7FCBA6; --accent-strong:#2F7F5C; --accent-soft:#D3EEDF; --same:#E3E6F6; --player:#2E7656; --pebble-edge:#C3E3D2; }
:root[data-theme="strawberry"]:not([data-sky="moon"]) { --sky-top:#FFDCE4; --sky-bottom:#FFF5F0; --surface:#FFFAF8; --surface-alt:#FFEDEF; --slab-top:#FAD3DB; --slab-light:#F7C6D0; --slab-dark:#EAA6B5; --accent:#F48AA3; --accent-strong:#B9405F; --accent-soft:#FDD1DC; --same:#F6DCEA; --player:#A8395A; --pebble-edge:#F4C2CE; }
:root[data-sky="moon"] {
  --sky-top:#262449; --sky-bottom:#4A3F7A; --surface:#35315F; --surface-alt:#3C3769;
  --slab-top:#2E2A57; --slab-light:#4B4386; --slab-dark:#221F45;
  --ink:#F3EEFF; --ink-soft:#DCD4F2; --player:#F7C6D0;
  --accent:#C9B6FF; --accent-strong:#D8C8FF; --accent-soft:#5A4F8E; --on-accent:#262449;
  --same:#514A86; --peer:#C9B6FF22; --blush:#E58FAA; --blush-soft:#5E3F6E;
  --mint:#6FB3A8; --gold:#F2D58C; --gold-deep:#F6E3B0; --lavender:#8F84C9; --lilac:#9A88D6; --peach:#B98AA6; --apricot:#A9779A; --mist:#5F7DB0;
  --pebble:#3B3669; --pebble-edge:#272352; --tool:#383364; --shadow:#0A081F99; --glow:#C9B6FF38; --rim-hi:#FFFFFF1F;
  --sheet:#2E2A57F2; --veil:#26244999;
  --pfill:#6A5CA8;
  --mist-a:#B9ACF04D; --mist-b:#8F84C92E; --beam:#FFF0C4;
  --ff-core:#FFFCEB; --ff-glow:#FFE28E; --ff-halo:#FFEDB3; --ff-wing:#F3EEFF; --ff-mote:#FFE7A3;
  --spotveil:#0C0A2299;
  color-scheme:dark;
}

* { box-sizing:border-box; }
html, body { width:100%; height:100%; margin:0; overflow:hidden; }
body {
  color:var(--ink); font-family:var(--font-ui); background:var(--sky-bottom) linear-gradient(180deg, var(--sky-top), var(--sky-bottom)) no-repeat fixed;
  position:fixed; inset:0; overflow:hidden; overscroll-behavior:none; -webkit-user-select:none; user-select:none; -webkit-touch-callout:none;
  -webkit-tap-highlight-color:transparent; touch-action:manipulation; -webkit-text-size-adjust:100%;
  transition:background-color 1.2s ease;
}
[hidden] { display:none !important; }
button { font:inherit; color:inherit; -webkit-tap-highlight-color:transparent; touch-action:manipulation; cursor:pointer; }
:focus-visible { outline:2.5px solid var(--accent-strong); outline-offset:2px; }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
svg.i { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }

#sky, #fx { position:fixed; inset:0; width:100%; height:100%; pointer-events:none; }
#sky { z-index:0; } #fx { z-index:30; }
#app { position:fixed; inset:0; z-index:2; overflow:hidden; }
.view { position:absolute; inset:0; overflow:hidden; display:flex; flex-direction:column; align-items:center;
  padding:calc(var(--safe-t) + 8px) max(16px, var(--safe-r)) calc(var(--safe-b) + 12px) max(16px, var(--safe-l));
  transition:opacity .45s ease, transform .45s ease; }
.view.out { opacity:0; transform:scale(.98); pointer-events:none; }

/* ── shared bits ── */
.ib { width:42px; height:42px; padding:0; border:0; border-radius:50%; background:transparent; color:var(--ink); display:grid; place-items:center; transition:background-color .25s; }
.ib:active { background:color-mix(in srgb, var(--surface) 60%, transparent); }
.title { margin:0; font-family:var(--font-display); font-style:italic; font-weight:400; font-variation-settings:"SOFT" 100, "WONK" 1, "opsz" 36; color:var(--ink); white-space:nowrap; }
.bloomlvl { display:flex; align-items:center; gap:6px; padding:4px 10px 4px 4px; border-radius:999px; border:0;
  background:color-mix(in srgb, var(--surface) 72%, transparent); box-shadow:0 2px 10px -4px var(--shadow); font:800 14px/1 var(--font-ui); color:var(--ink); }
.bloomlvl svg { width:30px; height:30px; overflow:visible; }
.bloomlvl .pt { transition:fill .5s ease, transform .6s cubic-bezier(.3,1.5,.5,1); transform-box:fill-box; transform-origin:50% 100%; }
.bloomlvl.bump svg { animation:bump .4s ease; }
.bloomlvl.open svg { animation:openUp 1.4s cubic-bezier(.3,1.4,.5,1); }

/* ── play view ── */
#play { justify-content:center; gap:clamp(8px, 1.6vh, 16px); }
.top { width:calc(var(--bs) + 8px); max-width:100%; display:flex; align-items:center; justify-content:space-between; gap:6px; }
.place { display:flex; flex-direction:column; gap:4px; min-width:0; flex:1; }
.place .title { font-size:clamp(19px, 5.4vw, 25px); line-height:1.05; overflow:hidden; text-overflow:ellipsis; }
.tier { display:flex; gap:3px; height:11px; align-items:center; }
.tier svg { width:11px; height:11px; }
.tier .on { fill:var(--accent); } .tier .off { fill:var(--ink-soft); opacity:.25; }
.tier .clock { font:700 11px/1 var(--font-ui); color:var(--ink-soft); margin-left:6px; font-variant-numeric:tabular-nums; }
.acts { display:flex; align-items:center; gap:0; flex:none; }

.wrap { position:relative; width:var(--bs); height:var(--bs); flex:none; margin-bottom:calc(var(--bs) * .045);
  --rim:calc(var(--bs) * .024); --gb:calc(var(--bs) * .016); --gc:calc(var(--bs) * .0062); --rb:calc(var(--bs) * .06); --rc:calc(var(--bs) * .017);
  transition:opacity .42s ease, transform .42s ease; }
.wrap.swap { opacity:0; transform:scale(.965); }
.slab { position:absolute; overflow:visible; pointer-events:none; z-index:0; }
.board { position:relative; z-index:1; width:100%; height:100%; padding:var(--rim); border-radius:var(--rb);
  background:var(--slab-top); box-shadow:inset 0 1.5px 0 var(--rim-hi);
  display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); grid-template-rows:repeat(3, minmax(0,1fr)); gap:var(--gb); transition:gap 1s ease, padding 1s ease; }
.board::after { content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none; z-index:3;
  background:radial-gradient(120% 90% at 26% 16%, var(--glow), transparent 64%); mix-blend-mode:soft-light; opacity:calc(.3 + var(--breath, .5) * .7); }
.mandala { position:absolute; inset:0; width:100%; height:100%; border-radius:inherit; z-index:0; pointer-events:none; }
.box { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); grid-template-rows:repeat(3, minmax(0,1fr)); gap:var(--gc); transition:gap 1s ease; --tile:var(--surface); min-width:0; min-height:0; }
.box.alt { --tile:var(--surface-alt); }
.cell { position:relative; z-index:1; min-width:0; min-height:0; border-radius:var(--rc); background:var(--tile); display:grid; place-items:center; cursor:pointer;
  color:var(--ink); font:600 calc(var(--bs) * .064)/1 var(--font-ui); font-variant-numeric:tabular-nums;
  transition:background-color .35s ease, border-radius 1s ease, box-shadow .35s ease, opacity .35s ease, filter .35s ease; }
.cell .d { position:relative; z-index:1; display:block; }
.cell.player { color:var(--player); font-weight:800; }
.cell.peer::before { content:""; position:absolute; inset:0; border-radius:inherit; background:var(--peer); pointer-events:none; }
.cell.same { background:var(--same); }
.cell.sel { background:var(--accent-soft); box-shadow:0 0 0 2px var(--accent-strong), 0 0 12px 1px color-mix(in srgb, var(--accent) 60%, transparent); z-index:2; animation:selBreath 3.43s ease-in-out infinite; }
.cell.blush { background:color-mix(in srgb, var(--blush) 42%, var(--tile)); }
.cell.sel.blush { background:color-mix(in srgb, var(--blush) 46%, var(--accent-soft)); }
.cell.pop { animation:pop .5s cubic-bezier(.3,1.5,.5,1); }
.cell.sel.pop { animation:pop .5s cubic-bezier(.3,1.5,.5,1), selBreath 3.43s ease-in-out .5s infinite; }
.cell.pop .d { animation:inkIn .38s ease-out; }
.cell.wobble { animation:wobble .55s ease-in-out; }
.cell.ripple::after { content:""; position:absolute; inset:-1px; border-radius:inherit; background:var(--mint); opacity:0; pointer-events:none; z-index:0; animation:ripple .7s ease-out var(--d, 0ms) both; }
.cell.sing .d { animation:sing .6s ease-out; }
.cell.held { box-shadow:inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 55%, transparent); }
.cell .notes { position:absolute; inset:7%; display:grid; grid-template-columns:repeat(3,1fr); grid-template-rows:repeat(3,1fr); font:700 calc(var(--bs) * .027)/1 var(--font-ui); color:var(--ink-soft); pointer-events:none; z-index:1; }
.cell .notes span { display:grid; place-items:center; }
.cell .notes span.hl { color:var(--player); font-weight:900; }
.cell .notes span.x { color:var(--blush); text-decoration:line-through; text-decoration-thickness:2px; }
.cell .cnotes { position:absolute; inset:0; display:grid; place-items:center; font:800 calc(var(--bs) * .028)/1 var(--font-ui); color:var(--player); letter-spacing:-.02em; pointer-events:none; z-index:1; }
/* hint ladder */
.board.hinting .cell:not(.focus) { opacity:.45; filter:saturate(.7); }
.cell.pattern { box-shadow:0 0 0 2px var(--lilac), 0 0 14px 2px color-mix(in srgb, var(--lavender) 80%, transparent); opacity:1 !important; filter:none !important; }
.cell.target { box-shadow:0 0 0 2.5px var(--accent-strong), 0 0 18px 3px color-mix(in srgb, var(--accent) 70%, transparent); animation:targetPulse 1.7s ease-in-out infinite; opacity:1 !important; filter:none !important; }
.cell .ghost { position:absolute; z-index:2; font-weight:800; color:var(--accent-strong); opacity:.55; animation:ghost 1.7s ease-in-out infinite; }
.hintpill { position:absolute; left:50%; top:0; z-index:5; transform:translate(-50%, -55%); display:flex; align-items:center; gap:8px;
  padding:6px 8px 6px 14px; border-radius:999px; background:var(--surface); box-shadow:0 6px 18px -6px var(--shadow), 0 0 0 1.5px color-mix(in srgb, var(--accent) 50%, transparent);
  font:800 14px/1 var(--font-ui); color:var(--ink); white-space:nowrap; animation:pillIn .45s cubic-bezier(.3,1.5,.5,1); }
.hintpill .dots { display:flex; gap:3px; } .hintpill .dots i { width:5px; height:5px; border-radius:50%; background:var(--accent); opacity:.25; } .hintpill .dots i.on { opacity:1; }
.hintpill button { width:30px; height:30px; border:0; border-radius:50%; background:var(--accent-soft); color:var(--ink); display:grid; place-items:center; padding:0; }
.hintpill button svg { width:18px; height:18px; }
.board.dissolve { gap:0; padding:calc(var(--rim) * 1.5); }
.board.dissolve .box { gap:0; }
.board.dissolve .cell { background:transparent; border-radius:0; box-shadow:none; transition:background-color 1.2s ease, border-radius 1.2s ease; }
.board.dissolve .cell .d { text-shadow:0 0 10px var(--surface), 0 0 3px var(--surface); }

.controls { position:relative; display:grid; gap:clamp(10px, 1.6vh, 14px); justify-items:center; width:calc(var(--bs) + 8px); max-width:100%; }
.tools, .pad { transition:opacity .6s ease, transform .6s ease; }
.controls.after .tools, .controls.after .pad { opacity:0; pointer-events:none; transform:translateY(8px); }
.tools { display:flex; gap:clamp(8px, 3vw, 16px); justify-content:center; }
.tool { position:relative; width:46px; height:46px; padding:0; border:0; border-radius:50%; background:var(--tool); color:var(--ink); display:grid; place-items:center;
  box-shadow:0 2px 0 var(--pebble-edge), 0 6px 14px -8px var(--shadow); transition:background-color .3s, color .3s, transform .12s, box-shadow .12s, opacity .3s; }
.tool:active { transform:translateY(2px); box-shadow:0 0 0 var(--pebble-edge); }
.tool[aria-pressed="true"] { background:var(--accent-soft); color:var(--player); box-shadow:0 0 0 2px var(--accent-strong) inset, 0 2px 0 var(--pebble-edge); }
.tool[disabled] { opacity:.38; }
.tool .badge { position:absolute; right:5px; top:5px; width:9px; height:9px; border-radius:50%; background:var(--player); box-shadow:0 0 0 2px var(--tool); }
#tNotes svg { transition:transform .3s cubic-bezier(.3,1.5,.5,1); }
#tNotes[aria-pressed="true"] svg { transform:rotate(-14deg) translateY(-1px); }
#tNotes[aria-pressed="true"] { background:var(--accent-soft); color:var(--player); box-shadow:0 0 0 2.5px var(--accent-strong) inset, 0 0 14px 1px color-mix(in srgb, var(--accent) 55%, transparent), 0 2px 0 var(--pebble-edge); }
#tNotes[aria-pressed="true"] .badge { box-shadow:0 0 0 2px var(--accent-soft); }
.tool.fire svg { color:var(--accent-strong); }
.pad { display:grid; grid-template-columns:repeat(9, minmax(0,1fr)); gap:clamp(3px, 1.1vw, 8px); width:100%; }
.peb { position:relative; overflow:hidden; isolation:isolate; aspect-ratio:.68; padding:0; border:0; border-radius:999px; background:var(--pebble); color:var(--ink);
  box-shadow:0 3px 0 var(--pebble-edge), 0 8px 16px -8px var(--shadow); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px;
  font:700 clamp(19px, 5.3vw, 27px)/1 var(--font-ui); transition:transform .12s ease, box-shadow .4s ease, background-color .3s ease, color .3s ease; }
/* the fill: a level of colour rising from the bottom as she places the digit (PTL-174) */
.peb .fill { position:absolute; inset:0; z-index:0; pointer-events:none; border-radius:0;
  background:linear-gradient(to top, var(--pfill) 0%, var(--pfill) 88%, color-mix(in srgb, var(--pfill) 0%, transparent) 100%);
  transform:translateY(calc((1 - var(--p, 0)) * 104%)); opacity:calc(.5 + var(--p, 0) * .5);
  transition:transform .75s cubic-bezier(.3,1.45,.5,1), opacity .5s ease; }
.peb .num, .peb .fl { position:relative; z-index:1; }
.peb .num { transition:font-weight .3s ease, transform .4s cubic-bezier(.3,1.5,.5,1); }
.peb.near .num { font-weight:900; transform:scale(1.1); }
.peb.near { box-shadow:0 3px 0 var(--pebble-edge), 0 8px 16px -8px var(--shadow), 0 0 calc(5px + var(--breath, .5) * 13px) calc(var(--breath, .5) * 2.5px) color-mix(in srgb, var(--accent) 70%, transparent); }
.peb.done .fill { opacity:0; }
.pad.pencil .peb .fill { opacity:calc(.3 + var(--p, 0) * .35); }
.peb.press { transform:translateY(2px); box-shadow:0 1px 0 var(--pebble-edge), 0 4px 10px -8px var(--shadow); }
.peb.cur { background:var(--accent-soft); }
.peb .fl { display:none; width:66%; height:auto; }
.peb.done .num { display:none; }
.peb.done .fl { display:block; animation:flowerIn .8s cubic-bezier(.3,1.6,.5,1); }
.pad.pencil .peb { color:var(--ink-soft); font-size:clamp(15px, 4.2vw, 21px); background:color-mix(in srgb, var(--pebble) 70%, var(--same)); }
.pad.pencil-center .peb { color:var(--player); }
.bloom-next { position:absolute; left:50%; top:50%; width:78px; height:78px; margin:-39px 0 0 -39px; border:0; border-radius:50%; background:var(--pebble); color:var(--player);
  box-shadow:0 4px 0 var(--pebble-edge), 0 12px 26px -8px var(--shadow), 0 0 0 9px color-mix(in srgb, var(--accent) 24%, transparent); display:grid; place-items:center;
  animation:nextIn .8s cubic-bezier(.3,1.5,.5,1), budBreath 3.43s ease-in-out .8s infinite; }
.bloom-next svg { width:36px; height:36px; }
.gain { position:fixed; z-index:31; left:50%; top:0; padding:5px 10px; border-radius:999px; background:var(--gold); color:#5A4330; font:800 15px/1 var(--font-ui); opacity:0; pointer-events:none; transform:translate(-50%,0); }
.gain.show { animation:gainUp 1.9s ease-out forwards; }

/* ── home ── */
#home { justify-content:space-between; }
.hometop { width:100%; max-width:520px; display:flex; justify-content:space-between; align-items:center; }
.hometop .right { display:flex; }
.isle { position:relative; width:min(100%, 430px); flex:1; min-height:0; display:grid; place-items:center; }
.isle svg { width:100%; height:100%; max-height:62dvh; overflow:visible; }
.isle .bob { animation:bob 7s ease-in-out infinite; transform-origin:50% 60%; }
.isle .flag { animation:flag 2.4s ease-in-out infinite; transform-box:fill-box; transform-origin:0 50%; }
.homebottom { display:flex; flex-direction:column; align-items:center; gap:18px; padding-bottom:6px; transition:opacity .6s ease, transform .6s ease; }
.hometop { transition:opacity .6s ease, transform .6s ease; }
.homebottom .title { font-size:32px; line-height:1.1; }
#home[data-mode="journey"] .hometop, #home[data-mode="journey"] .homebottom, #home[data-mode="today"] .hometop, #home[data-mode="today"] .homebottom,
#home[data-mode="quiet"] .homebottom { opacity:0; pointer-events:none; transform:translateY(12px); }
.choices { display:flex; gap:26px; align-items:flex-start; }
.cw { position:relative; display:flex; flex-direction:column; align-items:center; gap:9px; }
.cword { font-family:var(--font-display); font-style:italic; font-weight:400; font-variation-settings:"SOFT" 100, "WONK" 1, "opsz" 30; font-size:16px; line-height:1; color:var(--ink-soft); }
.choice { position:relative; border:0; padding:0; color:var(--ink); display:grid; place-items:center; transition:transform .15s; }
.choice svg.i { width:30px; height:30px; }
.choice:active { transform:translateY(3px); }
/* today — the sun and today's own flower */
.choice.sun { width:86px; height:86px; border-radius:50%; overflow:visible;
  background:radial-gradient(circle at 50% 40%, #FFF9E8, var(--gold) 70%, color-mix(in srgb, var(--apricot) 80%, var(--gold)));
  box-shadow:0 4px 0 color-mix(in srgb, var(--gold-deep) 40%, var(--pebble-edge)), 0 14px 28px -10px color-mix(in srgb, var(--gold-deep) 60%, transparent), 0 0 0 7px color-mix(in srgb, var(--gold) 26%, transparent);
  animation:budBreath 3.43s ease-in-out infinite; }
.choice.sun .rays { position:absolute; inset:-17px; border-radius:50%; pointer-events:none; opacity:.75;
  background:repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--gold) 60%, transparent) 0deg 5deg, transparent 5deg 30deg);
  -webkit-mask:radial-gradient(closest-side, transparent 66%, #000 70%, transparent 100%); mask:radial-gradient(closest-side, transparent 66%, #000 70%, transparent 100%);
  animation:spin 46s linear infinite; }
.choice.sun .tf { position:relative; width:60px; height:66px; display:grid; place-items:center; margin-top:2px; }
.choice.sun .tf svg { width:100%; height:100%; overflow:visible; }
:root[data-sky="moon"] .choice.sun { background:radial-gradient(circle at 50% 40%, #6A5A92, #463B78 74%);
  box-shadow:0 4px 0 #2A2456, 0 14px 28px -10px #0A081F99, 0 0 0 7px color-mix(in srgb, var(--gold) 18%, transparent), 0 0 34px -6px color-mix(in srgb, var(--gold) 55%, transparent); }
/* journey — a stepping stone */
.choice.stone { width:80px; height:62px; margin-top:12px; border-radius:50% / 46%;
  background:linear-gradient(180deg, color-mix(in srgb, var(--lavender) 60%, var(--surface)), var(--lavender));
  box-shadow:0 7px 0 var(--lilac), 0 16px 24px -10px var(--shadow), 0 0 0 7px color-mix(in srgb, var(--lavender) 24%, transparent); }
:root[data-sky="moon"] .choice.stone { background:linear-gradient(180deg, #7266B2, #564A95); box-shadow:0 7px 0 #3A316F, 0 16px 24px -10px #0A081F99, 0 0 0 7px color-mix(in srgb, var(--lavender) 22%, transparent); }
.cw.journey .prog { display:flex; gap:3px; margin-top:-2px; }
.cw.journey .prog i { width:5px; height:5px; border-radius:50%; background:var(--lilac); opacity:.35; } .cw.journey .prog i.on { background:var(--gold); opacity:1; }
/* play — a leaf on the meadow */
.choice.leafy { width:70px; height:70px; margin-top:8px; border-radius:62% 10% 62% 10%; color:#2F6E55;
  background:linear-gradient(135deg, color-mix(in srgb, var(--mint) 55%, var(--surface)), var(--mint));
  box-shadow:0 5px 0 color-mix(in srgb, #4FA884 45%, var(--pebble-edge)), 0 14px 24px -10px var(--shadow), 0 0 0 7px color-mix(in srgb, var(--mint) 26%, transparent); }
:root[data-sky="moon"] .choice.leafy { color:#0F3A2E; background:linear-gradient(135deg, #8CC9BE, #5FA79A); box-shadow:0 5px 0 #2F6C62, 0 14px 24px -10px #0A081F99, 0 0 0 7px color-mix(in srgb, var(--mint) 22%, transparent); }

/* ── the world (PTL-169) ── */
.isle .cam, .isle .bob { width:100%; height:100%; display:grid; place-items:center; }
.isle .cam { transition:transform 1.3s cubic-bezier(.65,0,.25,1); will-change:transform; }
.lightwash { position:absolute; inset:-12%; pointer-events:none; opacity:0; transition:opacity 1.6s ease .3s;
  background:radial-gradient(55% 45% at 28% 18%, color-mix(in srgb, var(--gold) 32%, transparent), transparent 72%); }
#home[data-mode="journey"] .lightwash, #home[data-mode="today"] .lightwash { opacity:1; }
.hush { position:absolute; inset:0; z-index:3; pointer-events:none; opacity:0; background:radial-gradient(70% 58% at 50% 46%, color-mix(in srgb, var(--star) 60%, transparent), transparent 78%); }
.hush.go { animation:hush 1.5s ease-in-out; }
.wisps { position:absolute; inset:-10%; pointer-events:none; z-index:2; }
.wisps i { position:absolute; width:62%; height:24%; border-radius:50%; opacity:0; background:radial-gradient(closest-side, var(--mist-a), transparent); }
.wisps i:nth-child(1) { left:-8%; top:18%; --wx:-30%; --wy:-20%; } .wisps i:nth-child(2) { right:-12%; top:46%; --wx:34%; --wy:4%; } .wisps i:nth-child(3) { left:18%; bottom:4%; --wx:-6%; --wy:30%; }
.wisps.go i { animation:wisp 1.7s ease-in-out both; } .wisps.go i:nth-child(2) { animation-delay:.12s; } .wisps.go i:nth-child(3) { animation-delay:.22s; }
.world .far { transform-box:view-box; transition:transform 1.3s cubic-bezier(.65,0,.25,1), opacity 1.3s ease; }
.world .farL, .world .pwL { transform-origin:62px 130px; } .world .farR, .world .pwR { transform-origin:338px 175px; }
.world .pw { transform-box:view-box; transition:transform 1.3s cubic-bezier(.65,0,.25,1), opacity 1.3s ease; }
.world .farL { opacity:.95; } .world .farR { opacity:.85; }
#home[data-mode="journey"] .world .farL, #home[data-mode="journey"] .world .pwL { transform:translate(-30px, -34px) scale(.84); opacity:.38; }
#home[data-mode="journey"] .world .farR, #home[data-mode="journey"] .world .pwR { transform:translate(34px, -22px) scale(.86); opacity:.34; }
#home[data-mode="today"] .world .farR, #home[data-mode="today"] .world .pwR, #home[data-mode="quiet"] .world .farL, #home[data-mode="quiet"] .world .pwL { opacity:.35; }
/* the mist that the Journey clears */
.world .mistlayer { opacity:.78; transition:opacity 1.8s ease; pointer-events:none; }
#home[data-mode="journey"] .world .mistlayer { opacity:1; }
.world.clear .mistlayer { opacity:0; }
.world .hole { transform-box:fill-box; transform-origin:center; transform:scale(0); transition:transform 2.2s cubic-bezier(.2,.8,.2,1); }
.world .hole.on { transform:scale(1); }
/* the magic that returns */
.world .rb, .world .restored { opacity:0; transform:scale(.55); transform-box:fill-box; transform-origin:50% 90%; transition:opacity 1.3s ease, transform 1.3s cubic-bezier(.3,1.45,.5,1); pointer-events:none; }
.world .rb.on, .world .restored.on { opacity:1; transform:none; }
.world .rb1 .glowdisc { animation:glowPulse 3.4s ease-in-out infinite; transform-box:fill-box; transform-origin:center; }
.world .rb2 .flow { fill:none; stroke:var(--star); stroke-width:2.6; stroke-linecap:round; stroke-dasharray:2 10; opacity:.95; animation:flow 1.7s linear infinite; }
.world .rb2 .fall { stroke-dasharray:2 7; animation-duration:.9s; }
.world .rb7 .twinkle { fill:var(--gold); animation:twinkle 2.6s ease-in-out var(--d, 0s) infinite; }
.world .rb8 .bird path { fill:none; stroke:var(--ink-soft); stroke-width:1.5; stroke-linecap:round; }
.world .rb8 .bird { animation:birdLoop 9s ease-in-out infinite; } .world .rb8 .b2 { animation-duration:11s; animation-delay:-4s; }
.world .rb9 .ray { fill:var(--gold); opacity:.16; animation:rayPulse 4.4s ease-in-out infinite; }
.world .rb9 .gateglow { animation:glowPulse 3s ease-in-out infinite; transform-box:fill-box; transform-origin:center; }
/* places: the sunlit isle and the meadow */
.world .place { cursor:pointer; } .world .placehit { fill:transparent; }
.world .sunlit .beam { opacity:.5; transition:opacity 1s ease; } .world .sunlit.waiting .beam { animation:beamBreath 4.4s ease-in-out infinite; } .world .sunlit.lit .beam { opacity:1; animation:none; }
.todayflower .stem { fill:none; stroke:#7CBF97; stroke-width:3.4; stroke-linecap:round; } .todayflower .leaf { fill:#9ED6BD; }
.dflower .pp { transform-box:view-box; transform-origin:0 0; transform:rotate(var(--a)) scale(var(--s)); transition:transform 1.15s cubic-bezier(.3,1.35,.5,1); }
.dflower.bud .pp { transform:rotate(var(--b)) scale(calc(var(--s) * .58), calc(var(--s) * .8)); }
.dflower .pp.i { opacity:.95; }
.dflower .core { transform-box:view-box; transform-origin:0 0; transition:transform .9s cubic-bezier(.3,1.5,.5,1) .18s; }
.dflower.bud .core { transform:scale(0); }
.dflower.static .pp, .dflower.static .core { transition:none; }
svg.dflower { overflow:visible; }
svg.dflower .stem { fill:none; stroke:#7CBF97; stroke-width:3.6; stroke-linecap:round; } svg.dflower .leaf { fill:#9ED6BD; }
.meadow .stalk { fill:none; stroke:#5FAE88; stroke-width:1.6; stroke-linecap:round; } .meadow .lf { fill:#8FD0B1; } .meadow .lf.b { fill:#6FBF9C; }
.meadow .mf { fill:var(--blush); } .meadow .mf.g { fill:var(--gold); }
.meadow .sprig { transform-box:fill-box; transform-origin:50% 100%; animation:sway 5s ease-in-out infinite; } .meadow .sprig.flutter { animation:flutter 1.2s ease-in-out; }
/* the path */
.world .path { transition:opacity 1s ease; } #home:not([data-mode="journey"]) .world .path { opacity:.66; }
.world .trail { fill:none; stroke:var(--star); stroke-width:2; stroke-linecap:round; stroke-dasharray:1.5 6; opacity:.5; }
.world .trail.lit { stroke:var(--gold); stroke-width:2.4; stroke-dasharray:2 5; opacity:.95; }
.stone .sb { transform-box:fill-box; transform-origin:50% 70%; transition:transform .55s cubic-bezier(.3,1.5,.5,1), opacity .6s ease; }
.stone .top { fill:var(--surface); stroke:color-mix(in srgb, var(--lilac) 75%, transparent); stroke-width:1; transition:fill .8s ease; }
.stone .side { fill:var(--lilac); } .stone .shadow { fill:var(--ink); opacity:.1; }
.stone .halo { fill:var(--lavender); opacity:0; transform-box:fill-box; transform-origin:center; transition:opacity .8s ease, fill .8s ease; }
.stone .bloomlet { opacity:0; transform:scale(.2); transform-box:fill-box; transform-origin:center; transition:opacity .6s ease, transform .9s cubic-bezier(.3,1.6,.5,1); }
.stone .bloomlet ellipse { fill:var(--accent); } .stone .bloomlet .c { fill:var(--gold); }
.stone.done .top { fill:color-mix(in srgb, var(--gold) 50%, var(--surface)); stroke:var(--gold); }
.stone.done .halo { fill:var(--gold); opacity:.32; animation:doneGlow 4.8s ease-in-out calc(var(--i) * -.5s) infinite; }
.stone.done .bloomlet { opacity:1; transform:none; }
.stone.cur .top { fill:var(--star); } .stone.cur .halo { opacity:.5; animation:stoneBreath 3.43s ease-in-out infinite; }
.stone.future .sb { opacity:.55; }
.stone.gate .ring { fill:none; stroke:var(--gold); stroke-width:1.4; opacity:.85; }
.stone .hit { fill:transparent; pointer-events:none; }
#home[data-mode="home"] .stone .hit, #home[data-mode="journey"] .stone.cur .hit { pointer-events:all; cursor:pointer; }
.stone.sing .halo { animation:singHalo .7s ease-out; }
.stone.lift .sb { transform:translateY(-9px) scale(1.28); }
.stone.fresh .bloomlet { animation:bloomPop 1s cubic-bezier(.3,1.6,.5,1); }
#home[data-mode="journey"] .world:not(.walk) .path .sb { opacity:0; }
.world.walk .path .sb { animation:stoneIn .7s cubic-bezier(.3,1.5,.5,1) backwards; animation-delay:calc(var(--i) * 95ms); }
.world.reset .path { opacity:0 !important; }
.world.clear .path .stone, .world.clear .path .trail { filter:hue-rotate(var(--path-hue, 0deg)); } /* only from Chapter 2 on */
/* the firefly on the Isle */
.world .firefly .ff-bob { animation:ffBob 2.6s ease-in-out infinite; }
.world .firefly .ff-lean { animation:ffGlance 6.5s ease-in-out infinite; }
.world .fftrail { fill:none; stroke:var(--ff-mote); stroke-width:2.2; stroke-linecap:round; stroke-dasharray:3 5; opacity:.85; animation:trailFade 2.4s ease-out forwards; }
/* the journey UI */
.jui { position:absolute; inset:0; z-index:4; pointer-events:none; display:flex; flex-direction:column; justify-content:space-between;
  padding:calc(var(--safe-t) + 8px) max(16px, var(--safe-r)) calc(var(--safe-b) + 18px) max(16px, var(--safe-l)); opacity:0; transition:opacity .7s ease; }
#home[data-mode="journey"] .jui { opacity:1; transition-delay:.55s; }
#home[data-mode="journey"] .jui .ib, #home[data-mode="journey"] .jui .jgo { pointer-events:auto; }
.jtop { display:flex; align-items:center; gap:6px; width:100%; max-width:520px; margin:0 auto; }
.jtop .title { flex:1; text-align:center; font-size:27px; } .jsp { width:42px; flex:none; }
#jName.reveal { animation:nameReveal 1.8s ease both; }
.jfoot { display:flex; justify-content:center; }
.jgo { border:0; min-width:96px; height:72px; padding:8px 18px 10px; border-radius:50% / 46%; color:var(--ink); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px;
  background:linear-gradient(180deg, color-mix(in srgb, var(--lavender) 58%, var(--surface)), var(--lavender));
  box-shadow:0 7px 0 var(--lilac), 0 16px 26px -10px var(--shadow), 0 0 0 9px color-mix(in srgb, var(--lavender) 26%, transparent); animation:budBreath 3.43s ease-in-out infinite; }
:root[data-sky="moon"] .jgo { background:linear-gradient(180deg, #7266B2, #564A95); box-shadow:0 7px 0 #3A316F, 0 16px 26px -10px #0A081F99, 0 0 0 9px color-mix(in srgb, var(--lavender) 22%, transparent); }
.jgo .jstone svg { width:26px; height:26px; } .jgo .jtier { display:flex; gap:2px; } .jgo .jtier svg { width:9px; height:9px; }
.jgo .jtier .on { fill:var(--gold); } .jgo .jtier .off { fill:var(--ink); opacity:.25; }
.planting { position:fixed; left:0; top:0; z-index:36; width:52px; height:52px; pointer-events:none; } .planting svg { width:100%; height:100%; }

/* ── the firefly guide (PTL-175) ── */
.ffbody .ff-halo { fill:var(--ff-halo); opacity:.3; transform-box:fill-box; transform-origin:center; }
.ffbody .ff-glow { fill:var(--ff-glow); opacity:.9; } .ffbody .ff-core { fill:var(--ff-core); } .ffbody .ff-spark { fill:#fff; opacity:.9; animation:wink 7.5s ease-in-out infinite; }
.ffbody .ff-wing { fill:var(--ff-wing); opacity:.5; stroke:color-mix(in srgb, var(--ff-glow) 55%, transparent); stroke-width:.6; transform-box:fill-box; }
.ffbody .ff-wing.l { transform-origin:100% 85%; animation:wingL 3.4s ease-in-out infinite; } .ffbody .ff-wing.r { transform-origin:0% 85%; animation:wingR 3.4s ease-in-out infinite; }
:root[data-sky="moon"] .ffbody .ff-halo { opacity:.48; transform:scale(1.3); }
.guide { width:34px; height:34px; pointer-events:none; } .guide svg { width:100%; height:100%; overflow:visible; }
.guide.docked { position:relative; animation:ffBob 2.6s ease-in-out infinite; }
.guide.docked .ff-halo { opacity:calc(.22 + var(--breath, .5) * .34); transform:scale(calc(.88 + var(--breath, .5) * .3)); }
.guide.free { position:fixed; left:-26px; top:-26px; width:52px; height:52px; z-index:35; will-change:transform; }
.guide.hover svg { animation:ffBob 2.2s ease-in-out infinite; }
.guide.stir svg { animation:ffStir 3s ease-in-out infinite; } .guide.stir .ff-halo { opacity:.62 !important; }
.tool.fire .nest { width:34px; height:34px; border-radius:50%; display:grid; place-items:center; }
.tool.fire .nest:empty { box-shadow:inset 0 0 0 1.5px color-mix(in srgb, var(--gold) 60%, transparent); }
.threads { position:absolute; left:0; top:0; z-index:4; pointer-events:none; overflow:visible; }
.threads .thread { stroke:var(--gold); stroke-width:2.4; stroke-linecap:round; stroke-dasharray:1; stroke-dashoffset:1; opacity:.95; animation:draw .45s ease-out forwards; filter:drop-shadow(0 0 3px var(--gold)); }
.threads .beam { stroke:color-mix(in srgb, var(--lavender) 70%, var(--star)); stroke-width:3.2; stroke-linecap:round; stroke-dasharray:1; stroke-dashoffset:1; opacity:.6; animation:draw .7s ease-out .1s forwards; }
.pool { position:absolute; z-index:3; pointer-events:none; opacity:0; transition:opacity .6s ease; border-radius:20%;
  background:radial-gradient(closest-side, color-mix(in srgb, var(--gold) 38%, transparent), color-mix(in srgb, var(--gold) 10%, transparent) 70%, transparent); }
.pool.on { opacity:1; }
/* ── the Rush (PTL-185): --energy (0..1) lifts the rim, the aura and the breathing; --wind moves the Isle ── */
.wrap[data-mode="daily"] { --rimc:var(--gold); --rimglow:#F2BE5E; } .wrap[data-mode="journey"] { --rimc:var(--lavender); --rimglow:#A08AE0; } .wrap[data-mode="quiet"] { --rimc:var(--mint); --rimglow:#7FCBA8; }
:root[data-sky="moon"] .wrap[data-mode="daily"] { --rimglow:#FFD98A; } :root[data-sky="moon"] .wrap[data-mode="journey"] { --rimglow:#C9B6FF; } :root[data-sky="moon"] .wrap[data-mode="quiet"] { --rimglow:#9EE6C4; }
/* the aura: a bright inner ring + a wide soft glow, breathing with the beat; clearly there from Opening on */
.board::before { content:""; position:absolute; inset:calc(var(--bs) * -.008); border-radius:calc(var(--rb) * 1.08); pointer-events:none; z-index:-1;
  box-shadow:0 0 0 calc(1px + var(--energy, 0) * 3px) var(--rimglow, var(--accent)), 0 0 calc(22px + var(--energy, 0) * 64px) calc(3px + var(--energy, 0) * 16px) var(--rimglow, var(--accent));
  opacity:calc(min(1, var(--energy, 0) * 1.7) * (.5 + var(--breath, .5) * .5)); }
.board::after { opacity:calc(.3 + var(--breath, .5) * (.7 + var(--energy, 0) * .5)); }
.wrap[data-stage="2"] .cell.player .d, .wrap[data-stage="3"] .cell.player .d { text-shadow:0 0 calc(var(--energy, 0) * 9px) color-mix(in srgb, var(--rimc, var(--accent)) 55%, transparent); }
.sweep { position:absolute; inset:0; z-index:4; border-radius:var(--rb); overflow:hidden; pointer-events:none; }
.sweep i { position:absolute; top:-20%; bottom:-20%; left:0; width:30%; opacity:0; transform:translateX(-140%) skewX(-16deg);
  background:linear-gradient(90deg, transparent, color-mix(in srgb, var(--rimglow, var(--accent)) 30%, transparent) 38%, rgba(255,255,255,.62) 50%, color-mix(in srgb, var(--rimglow, var(--accent)) 30%, transparent) 62%, transparent); }
.sweep.go i { animation:sweep 1.05s cubic-bezier(.4,.1,.3,1) both; }
@keyframes sweep { 0%{opacity:0; transform:translateX(-140%) skewX(-16deg)} 20%{opacity:calc(.4 + var(--energy, 0) * .4)} 70%{opacity:calc(.3 + var(--energy, 0) * .3)} 100%{opacity:0; transform:translateX(420%) skewX(-16deg)} }
.wrap.lifted .board { animation:lifted 1.3s ease-out; }
@keyframes lifted { 0%{filter:brightness(1)} 18%{filter:brightness(1.12) saturate(1.12)} 100%{filter:brightness(1)} }
.peb.near { box-shadow:0 3px 0 var(--pebble-edge), 0 8px 16px -8px var(--shadow), 0 0 calc((5px + var(--breath, .5) * 13px) * (1 + var(--energy, 0) * .8)) calc(var(--breath, .5) * 2.5px * (1 + var(--energy, 0))) color-mix(in srgb, var(--accent) 70%, transparent); }
.isle .flag { animation-duration:calc(2.4s / (1 + var(--wind, 0) * 1.8)); }
.isle .bob { animation-duration:calc(7s / (1 + var(--wind, 0) * .9)); }
.world .rb2 .flow { animation-duration:calc(1.7s / (1 + var(--wind, 0) * 1.6)); }

/* each place's board wears its world */
.wrap[data-mode="daily"] .board { box-shadow:inset 0 1.5px 0 var(--rim-hi), 0 0 0 2.5px color-mix(in srgb, var(--gold) 80%, transparent), 0 0 28px -6px color-mix(in srgb, var(--gold) 85%, transparent); }
.wrap[data-mode="journey"] .board { box-shadow:inset 0 1.5px 0 var(--rim-hi), 0 0 0 2.5px color-mix(in srgb, var(--lilac) 85%, transparent), 0 0 28px -6px color-mix(in srgb, var(--lavender) 90%, transparent); }
.wrap[data-mode="quiet"] .board { box-shadow:inset 0 1.5px 0 var(--rim-hi), 0 0 0 2.5px color-mix(in srgb, var(--mint) 85%, transparent), 0 0 28px -6px color-mix(in srgb, var(--mint) 90%, transparent); }
.seal { position:relative; flex:none; width:24px; height:24px; pointer-events:none; filter:drop-shadow(0 4px 8px var(--shadow)); display:grid; place-items:center; }
.seal svg { width:100%; height:100%; overflow:visible; }
.ttl { display:flex; align-items:center; gap:7px; min-width:0; }
.ttl .title { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#play[data-mode="daily"] .seal svg { animation:spin 30s linear infinite; }
#play[data-mode="quiet"] .seal { border-radius:50%; background:radial-gradient(circle at 45% 40%, color-mix(in srgb, var(--mint) 55%, var(--surface)), var(--mint)); color:#2F6E55; }
#play[data-mode="quiet"] .seal svg.i { width:58%; height:58%; }
.sealstone { fill:var(--lilac); opacity:.9; }
.wrap.enter-daily { animation:enterDaily 1s cubic-bezier(.3,1.25,.5,1) both; }
.wrap.enter-journey { animation:unfold 1.05s cubic-bezier(.2,.9,.25,1) both; transform-origin:50% 100%; }
.wrap.enter-quiet { animation:drift .9s ease-out both; }

/* ── garden ── */
#garden { gap:14px; }
.gtop { width:100%; max-width:480px; display:flex; align-items:center; gap:6px; }
.gtop .title { font-size:26px; flex:1; text-align:center; margin-right:42px; }
.months { display:flex; gap:10px; align-items:center; }
.bed { width:100%; max-width:430px; display:grid; grid-template-columns:repeat(7, 1fr); gap:8px; padding:16px; border-radius:28px;
  background:color-mix(in srgb, var(--surface) 70%, transparent); box-shadow:0 18px 40px -20px var(--shadow); }
.bed .wd { text-align:center; font:800 11px/1 var(--font-ui); color:var(--ink-soft); opacity:.7; padding-bottom:4px; }
.day { position:relative; aspect-ratio:1; border:0; padding:0; border-radius:50%; background:transparent; display:grid; place-items:center; }
.day svg { width:100%; height:100%; overflow:visible; }
.day .n { position:absolute; bottom:-2px; right:2px; font:800 9px/1 var(--font-ui); color:var(--ink-soft); opacity:.6; }
.day.today { animation:budBreath 3.43s ease-in-out infinite; }
.day[disabled] { opacity:.35; }
.glegend { display:flex; gap:18px; color:var(--ink-soft); font:700 13px/1 var(--font-ui); align-items:center; }
.glegend span { display:flex; align-items:center; gap:6px; }

/* ── sheets ── */
.backdrop { position:fixed; inset:0; z-index:40; background:var(--veil); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); opacity:0; transition:opacity .35s ease; }
.backdrop.on { opacity:1; }
.sheet { position:fixed; left:50%; bottom:0; z-index:41; width:min(100%, 520px); max-height:86dvh; overflow:auto; transform:translate(-50%, 104%);
  padding:22px 20px calc(var(--safe-b) + 22px); border-radius:32px 32px 0 0; background:var(--sheet); box-shadow:0 -18px 50px -20px var(--shadow);
  transition:transform .45s cubic-bezier(.22,.8,.3,1); }
.sheet.on { transform:translate(-50%, 0); }
.sheet h2 { margin:0 0 16px; text-align:center; font-family:var(--font-display); font-style:italic; font-weight:400; font-size:24px; font-variation-settings:"SOFT" 100, "WONK" 1; }
.srow { display:flex; align-items:center; gap:12px; padding:10px 4px; border-bottom:1px solid color-mix(in srgb, var(--ink-soft) 14%, transparent); }
.srow:last-child { border-bottom:0; }
.srow .lab { flex:1; display:flex; align-items:center; gap:10px; font:700 15px/1.2 var(--font-ui); }
.srow .lab svg { color:var(--ink-soft); }
.tog { position:relative; width:52px; height:32px; border:0; border-radius:999px; background:color-mix(in srgb, var(--ink-soft) 25%, transparent); padding:0; transition:background-color .3s; }
.tog::after { content:""; position:absolute; top:3px; left:3px; width:26px; height:26px; border-radius:50%; background:var(--pebble); box-shadow:0 2px 6px -2px var(--shadow); transition:transform .3s cubic-bezier(.3,1.4,.5,1); }
.tog[aria-checked="true"] { background:var(--accent); } .tog[aria-checked="true"]::after { transform:translateX(20px); }
.seg { display:flex; gap:4px; padding:3px; border-radius:999px; background:color-mix(in srgb, var(--ink-soft) 14%, transparent); }
.seg button { border:0; background:transparent; border-radius:999px; padding:7px 10px; display:grid; place-items:center; color:var(--ink-soft); }
.seg button[aria-pressed="true"] { background:var(--pebble); color:var(--ink); box-shadow:0 2px 6px -3px var(--shadow); }
.swatches { display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.sw { width:32px; height:32px; border-radius:50%; border:0; padding:0; box-shadow:0 0 0 2px var(--surface), 0 2px 8px -3px var(--shadow); }
.sw[aria-pressed="true"] { box-shadow:0 0 0 2px var(--surface), 0 0 0 4.5px var(--accent-strong); }
.sw[disabled] { opacity:.35; }
.pill { border:0; border-radius:999px; padding:9px 16px; background:var(--accent-soft); color:var(--ink); font:800 14px/1 var(--font-ui); display:inline-flex; align-items:center; gap:8px; }
.pill svg { width:18px; height:18px; }
.tiers { display:grid; grid-template-columns:repeat(5, 1fr); gap:10px; }
.tierbtn { border:0; border-radius:22px; padding:14px 4px 12px; background:color-mix(in srgb, var(--mint) 20%, var(--pebble)); box-shadow:0 3px 0 var(--pebble-edge), 0 10px 18px -10px var(--shadow); display:flex; flex-direction:column; align-items:center; gap:8px; color:var(--ink); }
.tierbtn .petals { display:flex; flex-wrap:wrap; justify-content:center; gap:2px; width:40px; min-height:24px; align-content:center; }
.tierbtn .petals svg { width:12px; height:12px; fill:var(--accent); }
.tierbtn small { font:800 11px/1 var(--font-ui); color:var(--ink-soft); }
.tierbtn svg { width:46px; height:46px; overflow:visible; } .tierbtn .tfp { transform-box:view-box; transform-origin:0 0; transition:transform .5s cubic-bezier(.3,1.5,.5,1); }
.tierbtn:active .tfp, .tierbtn:hover .tfp { transform:rotate(18deg) scale(1.06); }
.meadowh { display:flex; align-items:center; justify-content:center; gap:8px; } .meadowh svg.i { color:#4FA884; }
.pill.mint { background:color-mix(in srgb, var(--mint) 55%, var(--pebble)); }
.resume { margin-top:16px; display:flex; justify-content:center; }
.tracks { display:grid; grid-template-columns:repeat(2, 1fr); gap:12px; }
.track { position:relative; border:0; border-radius:24px; padding:14px 12px 12px; background:var(--pebble); color:var(--ink); text-align:left; display:flex; flex-direction:column; gap:8px; box-shadow:0 3px 0 var(--pebble-edge), 0 10px 18px -10px var(--shadow); }
.track .disc { width:46px; height:46px; border-radius:50%; display:grid; place-items:center; color:var(--surface); }
.track .disc svg { width:22px; height:22px; }
.track b { font:800 15px/1.15 var(--font-ui); } .track small { font:700 12px/1.25 var(--font-ui); color:var(--ink-soft); }
.track[aria-pressed="true"] { box-shadow:0 0 0 2.5px var(--accent-strong), 0 10px 18px -10px var(--shadow); }
.track.playing .disc { animation:spin 6s linear infinite; }
.track.locked { opacity:.62; } .track.locked .disc { background:color-mix(in srgb, var(--ink-soft) 30%, transparent) !important; }
.lockchip { position:absolute; top:12px; right:12px; display:flex; align-items:center; gap:4px; font:800 11px/1 var(--font-ui); color:var(--ink-soft); }
.lockchip svg { width:14px; height:14px; }
.gift { display:flex; flex-direction:column; align-items:center; gap:14px; padding:6px 0 4px; text-align:center; }
.gift .giftbox { width:120px; height:120px; display:grid; place-items:center; border-radius:32px; background:radial-gradient(circle at 50% 40%, var(--surface), var(--accent-soft)); box-shadow:0 14px 34px -12px var(--shadow); animation:giftIn .9s cubic-bezier(.3,1.5,.5,1); }
.gift .giftbox svg { width:56px; height:56px; color:var(--player); }
.gift .lvl { font:800 13px/1 var(--font-ui); color:var(--ink-soft); letter-spacing:.04em; }
.gift b { font-family:var(--font-display); font-style:italic; font-weight:400; font-size:26px; font-variation-settings:"SOFT" 100, "WONK" 1; }

/* ── version label + App health (PTL-188) ── */
.ver { margin:14px auto 2px; text-align:center; font:700 11px/1 var(--font-ui); color:var(--ink-soft); opacity:.55; letter-spacing:.04em; padding:8px; -webkit-user-select:none; user-select:none; }
.health { font:600 14px/1.45 var(--font-ui); color:var(--ink); }
.health p { margin:0 0 10px; } .health b { font-weight:900; }
.health ol { margin:6px 0 10px; padding-left:20px; max-height:44vh; overflow:auto; }
.health li { margin:0 0 6px; } .health time { color:var(--ink-soft); font-weight:700; }
.health small { display:block; color:var(--ink-soft); font-size:12px; word-break:break-word; }
.health .vsm { color:var(--ink-soft); font-size:12px; text-align:center; }

/* ── bloom card ── */
.bloomcard { display:flex; flex-direction:column; align-items:center; gap:12px; padding:4px 0 6px; text-align:center; }
.bloomcard .lvl { font:800 13px/1 var(--font-ui); color:var(--ink-soft); letter-spacing:.04em; }
.bloomcard .bigflower { width:132px; height:132px; animation:giftIn .9s cubic-bezier(.3,1.5,.5,1); }
.bloomcard .bigflower svg { width:100%; height:100%; }
.bloomcard .count { display:inline-flex; align-items:center; gap:6px; font:800 18px/1 var(--font-ui); color:var(--ink); }
.bloomcard .count i { font-style:normal; font-weight:600; color:var(--ink-soft); }
.bloomcard .count svg { width:16px; height:16px; }
.bloomcard .peeks { display:flex; gap:18px; justify-content:center; margin:2px 0 4px; }
.peek { display:flex; flex-direction:column; align-items:center; gap:6px; }
.peek .pbox { width:64px; height:64px; border-radius:20px; display:grid; place-items:center; background:radial-gradient(circle at 50% 40%, var(--surface), var(--accent-soft)); box-shadow:0 10px 24px -12px var(--shadow); }
.peek .pbox svg { width:28px; height:28px; color:var(--player); }
.peek.later .pbox { opacity:.62; }
.peek .chip { display:inline-flex; align-items:center; gap:3px; font:800 12px/1 var(--font-ui); color:var(--ink-soft); }
.peek .chip svg { width:13px; height:13px; }

/* ── intro ── */
.intro { position:fixed; inset:0; z-index:50; display:grid; place-content:center; justify-items:center; gap:14px; background:color-mix(in srgb, var(--sky-bottom) 55%, transparent);
  -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); transition:opacity .9s ease; cursor:pointer; }
.intro.open { pointer-events:none; } .intro.gone { opacity:0; pointer-events:none; }
.bud { width:136px; height:136px; padding:0; border:0; border-radius:50%; background:radial-gradient(circle at 50% 42%, var(--surface), var(--accent-soft) 72%);
  box-shadow:0 14px 34px -10px var(--shadow), 0 0 0 10px color-mix(in srgb, var(--accent) 16%, transparent); animation:budBreath 3.43s ease-in-out infinite; }
.bud svg { width:100%; height:100%; overflow:visible; }
.bud .p { transform-box:view-box; transform-origin:0 0; transform:rotate(var(--a)) scale(.4); transition:transform 1s cubic-bezier(.3,1.45,.5,1); }
.intro.open .bud .p { transform:rotate(calc(var(--a) + 30deg)) scale(1); }
.cap { margin:0; font-family:var(--font-display); font-style:italic; font-weight:400; font-variation-settings:"SOFT" 100, "WONK" 1, "opsz" 30; font-size:21px; color:var(--ink); text-align:center; }
.cap.sm { font-size:14px; color:var(--ink-soft); margin-top:-6px; }

@keyframes pop { 0%{transform:scale(.9)} 55%{transform:scale(1.05)} 100%{transform:scale(1)} }
@keyframes inkIn { from{opacity:0; filter:blur(4px)} to{opacity:1; filter:blur(0)} }
@keyframes wobble { 0%,100%{transform:rotate(0)} 30%{transform:rotate(2deg)} 65%{transform:rotate(-2deg)} }
@keyframes ripple { 0%{opacity:0; transform:scale(.85)} 30%{opacity:.85; transform:scale(1.05)} 100%{opacity:0; transform:scale(1)} }
@keyframes rippleFade { 0%,100%{opacity:0} 40%{opacity:.6} }
@keyframes sing { 0%{text-shadow:0 0 0 transparent} 35%{text-shadow:0 0 11px var(--accent), 0 0 2px var(--accent)} 100%{text-shadow:0 0 0 transparent} }
@keyframes selBreath { 0%,100%{box-shadow:0 0 0 2px var(--accent-strong), 0 0 10px 0 color-mix(in srgb, var(--accent) 55%, transparent)} 50%{box-shadow:0 0 0 2.5px var(--accent-strong), 0 0 20px 3px color-mix(in srgb, var(--accent) 55%, transparent)} }
@keyframes targetPulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.05)} }
@keyframes ghost { 0%,100%{opacity:.35} 50%{opacity:.75} }
@keyframes budBreath { 0%,100%{transform:scale(1)} 50%{transform:scale(1.035)} }
@keyframes flowerIn { 0%{transform:scale(.2) rotate(-40deg); opacity:0} 100%{transform:scale(1) rotate(0); opacity:1} }
@keyframes nextIn { 0%{transform:scale(.3); opacity:0} 100%{transform:scale(1); opacity:1} }
@keyframes bump { 0%,100%{transform:scale(1)} 45%{transform:scale(1.14)} }
@keyframes openUp { 0%{transform:scale(1) rotate(0)} 40%{transform:scale(1.45) rotate(-12deg)} 100%{transform:scale(1) rotate(0)} }
@keyframes gainUp { 0%{opacity:0; transform:translate(-50%,6px) scale(.8)} 18%{opacity:1; transform:translate(-50%,0) scale(1.06)} 70%{opacity:1; transform:translate(-50%,-8px) scale(1)} 100%{opacity:0; transform:translate(-50%,-22px)} }
@keyframes pillIn { 0%{transform:translate(-50%,-30%) scale(.7); opacity:0} 100%{transform:translate(-50%,-55%) scale(1); opacity:1} }
@keyframes giftIn { 0%{transform:scale(.3) rotate(-12deg); opacity:0} 100%{transform:scale(1) rotate(0); opacity:1} }
@keyframes bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }
@keyframes flag { 0%,100%{transform:skewY(0)} 50%{transform:skewY(-6deg)} }
@keyframes spin { to { transform:rotate(360deg); } }
@keyframes hush { 0%{opacity:0} 38%{opacity:.9} 100%{opacity:0} }
@keyframes wisp { 0%{opacity:0; transform:scale(.8)} 40%{opacity:.85} 100%{opacity:0; transform:translate(var(--wx), var(--wy)) scale(2.3)} }
@keyframes glowPulse { 0%,100%{transform:scale(.9); opacity:.75} 50%{transform:scale(1.12); opacity:1} }
@keyframes flow { to { stroke-dashoffset:-24; } }
@keyframes twinkle { 0%,100%{opacity:.35} 50%{opacity:1} }
@keyframes birdLoop { 0%{transform:translate(0,0)} 25%{transform:translate(14px,-6px)} 50%{transform:translate(4px,-14px)} 75%{transform:translate(-12px,-5px)} 100%{transform:translate(0,0)} }
@keyframes rayPulse { 0%,100%{opacity:.08} 50%{opacity:.24} }
@keyframes beamBreath { 0%,100%{opacity:.42} 50%{opacity:.8} }
@keyframes sway { 0%,100%{transform:rotate(-4deg)} 50%{transform:rotate(5deg)} }
@keyframes flutter { 0%,100%{transform:rotate(0)} 20%{transform:rotate(-16deg)} 45%{transform:rotate(14deg)} 70%{transform:rotate(-8deg)} }
@keyframes doneGlow { 0%,100%{opacity:.26} 50%{opacity:.42} }
@keyframes stoneBreath { 0%,100%{opacity:.35; transform:scale(.92)} 50%{opacity:.7; transform:scale(1.1)} }
@keyframes singHalo { 0%{opacity:.9; transform:scale(.7); fill:var(--gold)} 100%{opacity:.3; transform:scale(1.25)} }
@keyframes bloomPop { 0%{transform:scale(.1) rotate(-60deg); opacity:0} 100%{transform:none; opacity:1} }
@keyframes stoneIn { 0%{opacity:0; transform:translateY(10px) scale(.4)} 100%{opacity:1; transform:none} }
@keyframes ffBob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-3px)} }
@keyframes ffGlance { 0%,62%,100%{transform:translate(0,0)} 70%,86%{transform:translate(var(--gx, 2px), var(--gy, 0px))} }
@keyframes ffStir { 0%,100%{transform:translateY(0) scale(1)} 30%{transform:translateY(-5px) scale(1.12)} 60%{transform:translateY(-2px) scale(1.04)} }
@keyframes trailFade { 0%{opacity:.9} 100%{opacity:0} }
@keyframes nameReveal { 0%{opacity:0; letter-spacing:.2em; filter:blur(4px)} 60%{opacity:1; filter:blur(0)} 100%{opacity:1; letter-spacing:0} }
@keyframes wink { 0%,90%,100%{opacity:.9} 93%{opacity:0} 96%{opacity:.9} }
@keyframes wingL { 0%,70%,100%{transform:rotate(0)} 74%{transform:rotate(-24deg)} 78%{transform:rotate(4deg)} 82%{transform:rotate(-20deg)} 86%{transform:rotate(0)} }
@keyframes wingR { 0%,70%,100%{transform:rotate(0)} 74%{transform:rotate(24deg)} 78%{transform:rotate(-4deg)} 82%{transform:rotate(20deg)} 86%{transform:rotate(0)} }
@keyframes draw { to { stroke-dashoffset:0; } }
@keyframes fadeIn { from{opacity:0} to{opacity:.9} }
@keyframes enterDaily { 0%{opacity:0; transform:scale(.82) rotate(-5deg)} 55%{opacity:1} 100%{opacity:1; transform:none} }
@keyframes unfold { 0%{opacity:0; transform:perspective(900px) translateY(16%) rotateX(70deg) scale(.55)} 45%{opacity:1} 100%{opacity:1; transform:perspective(900px) rotateX(0)} }
@keyframes drift { 0%{opacity:0; transform:translateY(16px) rotate(1.5deg)} 100%{opacity:1; transform:none} }

@media (max-width:360px) { .ib { width:36px; height:36px; } .tools { gap:8px; } .tool { width:42px; height:42px; } .choices { gap:20px; } }
@media (prefers-reduced-motion: reduce) {
  .cell.sel, .bud, .bloom-next, .cell.pop, .cell.sel.pop, .cell.pop .d, .cell.wobble, .cell.sing .d, .bloomlvl.bump svg, .bloomlvl.open svg,
  .choice.primary, .day.today, .cell.target, .cell .ghost, .isle .bob, .isle .flag, .track.playing .disc, .gift .giftbox, .bloomcard .bigflower, .hintpill, .sweep.go i, .wrap.lifted .board { animation:none; }
  .board::before { opacity:calc(var(--energy, 0) * .6); transition:none; }
  .cell.ripple::after { animation:rippleFade .8s ease both; }
  .bud .p, .wrap, .view, .sheet { transition-duration:.01s; }
  .peb .fill, .peb .num { transition-duration:.01s; }
  .choice.sun, .choice.sun .rays, .world .rb1 .glowdisc, .world .rb2 .flow, .world .rb7 .twinkle, .world .rb8 .bird, .world .rb9 .ray, .world .rb9 .gateglow,
  .world .sunlit.waiting .beam, .meadow .sprig, .stone.done .halo, .stone.cur .halo, .stone.sing .halo, .stone.fresh .bloomlet, .world.walk .path .sb,
  .world .firefly .ff-bob, .world .firefly .ff-lean, .ffbody .ff-spark, .ffbody .ff-wing, .guide.docked, .guide.hover svg, .guide.stir svg, .jgo, #jName.reveal,
  .wrap.enter-daily, .wrap.enter-journey, .wrap.enter-quiet, #play[data-mode="daily"] .seal svg, .hush.go, .wisps.go i { animation:none; }
  .threads .thread, .threads .beam { animation:fadeIn .4s ease forwards; stroke-dasharray:none; stroke-dashoffset:0; opacity:0; }
  .isle .cam, .world .far, .world .pw, .world .hole, .world .rb, .world .restored, .dflower .pp, .dflower .core, .stone .sb, .stone .bloomlet { transition-duration:.01s; }
}

/* ═════ her profile, the tutorial, "How Petal works" and tips (PTL-171/172/173) ═════ */
/* her picture in the Bloom flower's heart */
.bloomlvl.haspic svg { width:36px; height:36px; }
.bloomlvl.haspic { padding-left:2px; }
.bloomcard .bigflower svg.withpic { filter:drop-shadow(0 6px 14px var(--shadow)); }

/* a picture in a circle */
.pic { display:inline-grid; place-items:center; width:44px; height:44px; flex:none; border-radius:50%; overflow:hidden;
  background:var(--accent-soft); box-shadow:0 0 0 2.5px var(--gold), 0 4px 12px -6px var(--shadow); }
.pic img { width:100%; height:100%; object-fit:cover; display:block; }
.pic.none { color:var(--accent-strong); } .pic.none svg { width:60%; height:60%; }

/* the picker: name + photo or avatar */
.prof { display:flex; flex-direction:column; align-items:center; gap:14px; width:100%; }
.prof-pic .pic { width:92px; height:92px; box-shadow:0 0 0 3.5px var(--gold), 0 10px 26px -10px var(--shadow); }
.prof.big .prof-pic .pic { width:104px; height:104px; }
.prof-name { width:min(100%, 300px); }
.prof-name input { width:100%; padding:13px 18px; border:0; border-radius:999px; background:var(--pebble); color:var(--ink); text-align:center;
  font:700 18px/1.2 var(--font-ui); box-shadow:inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 45%, transparent), 0 3px 0 var(--pebble-edge);
  -webkit-user-select:text; user-select:text; outline:none; }
.prof-name input:focus { box-shadow:inset 0 0 0 2.5px var(--accent-strong), 0 3px 0 var(--pebble-edge); }
.prof-name input::placeholder { color:var(--ink-soft); opacity:.7; font-weight:600; }
.prof-pics { display:flex; flex-wrap:wrap; justify-content:center; gap:7px; max-width:380px; }
.prof-pics button { width:42px; height:42px; padding:0; border:0; border-radius:50%; overflow:hidden; display:grid; place-items:center; background:var(--tool);
  box-shadow:0 2px 0 var(--pebble-edge), 0 5px 12px -8px var(--shadow); transition:transform .25s cubic-bezier(.3,1.5,.5,1), box-shadow .25s; }
.prof-pics button img { width:100%; height:100%; display:block; }
.prof-pics button.on { transform:translateY(-3px) scale(1.06); box-shadow:0 0 0 3px var(--accent-strong), 0 8px 16px -8px var(--shadow); }
.prof-photo { color:var(--ink); } .prof-photo svg { width:24px; height:24px; }
.prof-none { color:var(--ink-soft); background:transparent !important; box-shadow:none !important; } .prof-none svg { width:18px; height:18px; }

/* the cropper */
.cropper { position:fixed; inset:0; z-index:70; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:18px; padding:24px;
  background:color-mix(in srgb, var(--sky-bottom) 86%, transparent); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); opacity:0; transition:opacity .3s ease; }
.cropper.on { opacity:1; }
.cropper h2 { margin:0; font-family:var(--font-display); font-style:italic; font-weight:400; font-size:24px; font-variation-settings:"SOFT" 100, "WONK" 1; }
.cview { position:relative; border-radius:50%; overflow:hidden; touch-action:none; cursor:grab; background:var(--surface);
  box-shadow:0 0 0 4px var(--gold), 0 18px 44px -16px var(--shadow); }
.cview img { position:absolute; left:0; top:0; max-width:none; transform-origin:0 0; pointer-events:none; -webkit-user-drag:none; }
.cmsg { margin:0; font:700 15px/1.4 var(--font-ui); color:var(--ink-soft); text-align:center; max-width:260px; }
.czoom { display:flex; align-items:center; gap:10px; width:min(280px, 80vw); color:var(--ink-soft); }
.czoom input { flex:1; accent-color:var(--accent-strong); }
.cbtns { display:flex; gap:10px; flex-wrap:wrap; justify-content:center; }
.pill.ghost { background:transparent; box-shadow:inset 0 0 0 1.5px color-mix(in srgb, var(--ink-soft) 40%, transparent); }
.pill[disabled] { opacity:.45; }

/* settings: You + How Petal works */
.you { width:100%; display:flex; align-items:center; gap:14px; padding:10px 8px 14px; margin-bottom:4px; border:0; background:transparent; color:var(--ink);
  border-bottom:1px solid color-mix(in srgb, var(--ink-soft) 14%, transparent); text-align:left; }
.you .pic { width:52px; height:52px; }
.you .yn { flex:1; font:800 18px/1.2 var(--font-ui); min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.you .yn em { font-style:normal; font-weight:700; color:var(--ink-soft); }
.you > svg.i, .srow.link > svg.i { color:var(--ink-soft); width:18px; height:18px; }
button.srow.link { width:100%; border:0; border-bottom:1px solid color-mix(in srgb, var(--ink-soft) 14%, transparent); background:transparent; color:var(--ink); text-align:left; }

/* gifts: For you, {name} · the greeting · her garden */
.gift .foryou { margin-top:-8px; font-family:var(--font-display); font-style:italic; font-size:16px; color:var(--ink-soft); font-variation-settings:"SOFT" 100, "WONK" 1; }
.greet { margin:0 0 -10px; min-height:22px; font-family:var(--font-display); font-style:italic; font-weight:400; font-size:17px; color:var(--ink-soft);
  font-variation-settings:"SOFT" 100, "WONK" 1, "opsz" 24; opacity:0; transform:translateY(6px); transition:opacity .9s ease, transform .9s ease; pointer-events:none; }
.greet.show { opacity:1; transform:none; }
.gtitle { flex:1; display:flex; flex-direction:column; align-items:center; margin-right:42px; }
.gtitle .title { margin-right:0; }
.gname { margin:0 0 2px; font-family:var(--font-display); font-style:italic; font-size:14px; color:var(--ink-soft); font-variation-settings:"SOFT" 100, "WONK" 1; }

/* tips: Petal's once-only bubbles */
.tip { position:fixed; z-index:55; display:flex; align-items:center; gap:10px; max-width:min(320px, calc(100vw - 24px)); padding:10px 16px 10px 10px;
  border-radius:20px; background:var(--surface); color:var(--ink); box-shadow:0 12px 30px -12px var(--shadow), 0 0 0 1.5px color-mix(in srgb, var(--accent) 40%, transparent);
  opacity:0; transform:translateY(6px) scale(.96); transition:opacity .4s ease, transform .45s cubic-bezier(.3,1.4,.5,1); cursor:pointer; }
.tip.on { opacity:1; transform:none; }
.tip p { margin:0; font:700 14px/1.35 var(--font-ui); }
.tipff { width:34px; height:34px; flex:none; animation:ffBob 2.4s ease-in-out infinite; } .tipff svg { width:100%; height:100%; overflow:visible; }
.tip.above::after, .tip.below::after { content:""; position:absolute; left:var(--ax, 50%); width:14px; height:14px; background:inherit; transform:translateX(-50%) rotate(45deg); border-radius:3px; }
.tip.above::after { bottom:-6px; box-shadow:3px 3px 6px -4px var(--shadow); } .tip.below::after { top:-6px; }

/* ── the tutorial ── */
body.tutoring .guide.free { z-index:48; }
body.tutoring #fx { z-index:46; }
.tut { position:fixed; inset:0; z-index:45; display:flex; flex-direction:column; align-items:center; gap:clamp(10px, 2.2vh, 20px);
  padding:calc(var(--safe-t) + 10px) 16px calc(var(--safe-b) + 18px);
  background:linear-gradient(180deg, color-mix(in srgb, var(--sky-top) 92%, transparent), color-mix(in srgb, var(--sky-bottom) 94%, transparent));
  -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); opacity:0; transition:opacity .5s ease, background .6s ease; overflow-y:auto; }
.tut.on { opacity:1; }
.ttop { width:100%; max-width:440px; display:flex; align-items:center; justify-content:center; position:relative; min-height:42px; }
.tprog { display:flex; gap:6px; }
.tprog i { width:9px; height:13px; border-radius:50% 50% 50% 50% / 60% 60% 40% 40%; background:color-mix(in srgb, var(--ink-soft) 22%, transparent); transition:background .5s ease, transform .5s cubic-bezier(.3,1.5,.5,1); }
.tprog i.on { background:var(--accent); transform:scale(1.12); }
.tskip { position:absolute; right:-4px; top:0; color:var(--ink-soft); }
.tsay { width:100%; max-width:440px; display:flex; align-items:flex-start; gap:10px; z-index:2; }
.tnest { width:46px; height:46px; flex:none; display:grid; place-items:center; margin-top:2px; }
.tnest .guide { width:40px; height:40px; }
.tbubble { position:relative; flex:1; min-height:112px; padding:14px 16px 12px; border-radius:22px 22px 22px 8px; background:var(--surface);
  box-shadow:0 12px 30px -14px var(--shadow), 0 0 0 1.5px color-mix(in srgb, var(--accent) 35%, transparent); }
.tbubble.pop { animation:bubbleIn .42s cubic-bezier(.3,1.4,.5,1); }
.tline { margin:0; font:700 clamp(16px, 4.4vw, 18px)/1.4 var(--font-ui); color:var(--ink); min-height:1.4em; }
.tacts { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:10px; }
.tacts:empty { display:none; }
.tskipstep { margin-left:auto; display:inline-flex; align-items:center; gap:2px; padding:6px 4px 6px 8px; border:0; background:transparent;
  font:700 13px/1 var(--font-ui); color:var(--ink-soft); opacity:.8; }
.tskipstep svg { width:14px; height:14px; }
.ttap { margin-left:auto; font:600 12px/1 var(--font-ui); color:var(--ink-soft); opacity:.75; }
.tstage { width:100%; max-width:440px; display:flex; flex-direction:column; align-items:center; gap:clamp(12px, 2.4vh, 20px); }
.tstage.unfold { animation:unfold 1s cubic-bezier(.3,1.2,.4,1); }
.tboardwrap { position:relative; --tb:max(210px, min(290px, calc(100vw - 72px), calc(100dvh - 430px))); width:var(--tb); height:var(--tb); }
.tboard { width:100%; height:100%; padding:calc(var(--tb) * .035); border-radius:calc(var(--tb) * .09); background:var(--slab-top);
  display:grid; grid-template-columns:repeat(2, 1fr); grid-template-rows:repeat(2, 1fr); gap:calc(var(--tb) * .03);
  box-shadow:inset 0 1.5px 0 var(--rim-hi), 4px 7px 0 var(--slab-light), 6px 11px 0 var(--slab-dark), 0 22px 30px -12px var(--shadow); transition:box-shadow 1s ease; }
.tboard.bloom { box-shadow:inset 0 1.5px 0 var(--rim-hi), 4px 7px 0 var(--slab-light), 6px 11px 0 var(--slab-dark), 0 0 0 4px color-mix(in srgb, var(--gold) 70%, transparent), 0 0 46px 6px color-mix(in srgb, var(--accent) 50%, transparent); }
.tboard.bloom .tc { background:color-mix(in srgb, var(--gold) 26%, var(--tile)); transition:background-color 1.2s ease; }
.tboard.bloom .tc .d { text-shadow:0 0 12px color-mix(in srgb, var(--gold) 80%, transparent); }
.tbox { display:grid; grid-template-columns:repeat(2, 1fr); grid-template-rows:repeat(2, 1fr); gap:calc(var(--tb) * .012); --tile:var(--surface); }
.tbox.alt { --tile:var(--surface-alt); }
.tc { position:relative; border-radius:calc(var(--tb) * .035); background:var(--tile); display:grid; place-items:center; cursor:pointer;
  font:600 calc(var(--tb) * .13)/1 var(--font-ui); color:var(--ink); transition:background-color .3s ease, box-shadow .3s ease, opacity .3s ease; }
.tc .d { position:relative; z-index:1; }
.tc.player { color:var(--player); font-weight:800; }
.tc.sel { background:var(--accent-soft); box-shadow:0 0 0 2px var(--accent-strong), 0 0 12px 1px color-mix(in srgb, var(--accent) 60%, transparent); z-index:2; }
.tc.glow { box-shadow:0 0 0 2.5px var(--accent-strong), 0 0 18px 3px color-mix(in srgb, var(--accent) 70%, transparent); animation:targetPulse 1.7s ease-in-out infinite; z-index:2; }
.tc.hl, .tc.hlsoft { background:color-mix(in srgb, var(--mint) 55%, var(--tile)); }
.tc.hlsoft { background:color-mix(in srgb, var(--mint) 30%, var(--tile)); }
.tc.blush { background:color-mix(in srgb, var(--blush) 46%, var(--tile)); }
.tc.dim { opacity:.4; }
.tc.pop { animation:pop .5s cubic-bezier(.3,1.5,.5,1); }
.tc.wobble { animation:wobble .55s ease-in-out; }
.tc.nudge { animation:nudge .8s ease-in-out; }
.tc.ripple::after { content:""; position:absolute; inset:-1px; border-radius:inherit; background:var(--mint); opacity:0; pointer-events:none; animation:ripple .7s ease-out var(--d, 0ms) both; }
.tc.sing .d { animation:sing .6s ease-out; }
.tc .d.ghost { color:var(--accent-strong); opacity:.55; animation:ghost 1.7s ease-in-out infinite; }
.tc .tn { position:absolute; inset:9%; display:grid; grid-template-columns:repeat(2, 1fr); grid-template-rows:repeat(2, 1fr); pointer-events:none;
  font:800 calc(var(--tb) * .055)/1 var(--font-ui); color:var(--ink-soft); }
.tc .tn i { display:grid; place-items:center; font-style:normal; }
.tthreads { position:absolute; inset:0; overflow:visible; pointer-events:none; z-index:3; }
.tthreads .beam { stroke:var(--accent); stroke-width:2.5; stroke-linecap:round; opacity:.75; stroke-dasharray:1; stroke-dashoffset:1; filter:drop-shadow(0 0 3px var(--accent)); animation:draw .55s ease forwards; }
.ttools { display:flex; gap:18px; }
.ttools .tool.glow, .tpad .peb.glow { box-shadow:0 0 0 2.5px var(--accent-strong), 0 0 16px 3px color-mix(in srgb, var(--accent) 60%, transparent); animation:targetPulse 1.5s ease-in-out infinite; }
.ttools .tool.nudge, .tpad .peb.nudge { animation:nudge .8s ease-in-out; }
.tff { width:30px; height:30px; display:grid; place-items:center; } .tff svg { width:100%; height:100%; overflow:visible; }
.tpad { display:grid; grid-template-columns:repeat(4, minmax(0, 62px)); gap:12px; width:min(100%, 296px); justify-content:center; }
.tpad .peb { aspect-ratio:.8; font-size:26px; }
.tpad .peb.press { transform:translateY(2px); }
.guide.blush .ff-glow { fill:#F4A6B4; transition:fill .4s ease; }
/* the tour: the Isle shows through; a spotlight + Petal's bubble */
.tut.tour { background:transparent; -webkit-backdrop-filter:none; backdrop-filter:none; cursor:pointer; }
.tut.tour .ttop, .tut.tour .tstage { visibility:hidden; }
.tut.tour .tsay { position:fixed; width:min(400px, calc(100vw - 32px)); }
.tut.tour .tbubble, .tut.endcard .tbubble { min-height:0; }
.tut.tour .tnest { display:none; }
.spot { position:fixed; z-index:1; border-radius:50%; pointer-events:none; opacity:0; box-shadow:0 0 0 200vmax var(--spotveil, #4B3A5747);
  transition:left .55s cubic-bezier(.3,1.1,.4,1), top .55s cubic-bezier(.3,1.1,.4,1), width .55s ease, height .55s ease, opacity .4s ease; }
.spot.on { opacity:1; }
.spot.on::after { content:""; position:absolute; inset:-4px; border-radius:50%; box-shadow:0 0 0 2px color-mix(in srgb, var(--gold) 80%, transparent), 0 0 24px 4px color-mix(in srgb, var(--gold) 50%, transparent); animation:beamBreath 2.4s ease-in-out infinite; }
.tut.endcard { justify-content:center; }
.tut.endcard .tstage { display:none; }
/* how Petal works */
.gh { display:flex; align-items:center; justify-content:center; gap:8px; } .gh svg.i { color:var(--accent-strong); }
.qlist { display:flex; flex-direction:column; }
.qlist .q { display:flex; align-items:center; gap:10px; padding:13px 6px; border:0; background:transparent; color:var(--ink); text-align:left;
  border-bottom:1px solid color-mix(in srgb, var(--ink-soft) 12%, transparent); font:700 15px/1.3 var(--font-ui); }
.qlist .q span { flex:1; } .qlist .q svg { width:16px; height:16px; color:var(--ink-soft); }
.greplay { display:flex; justify-content:center; padding:16px 0 4px; }
.qcard { position:relative; display:flex; flex-direction:column; align-items:center; text-align:center; gap:8px; padding:2px 6px 2px; }
.qcard .qback { position:absolute; left:-6px; top:-6px; }
.qcard h3 { margin:6px 0 2px; font-family:var(--font-display); font-style:italic; font-weight:400; font-size:22px; line-height:1.2; font-variation-settings:"SOFT" 100, "WONK" 1; }
.qcard p { margin:0; max-width:360px; font:600 15px/1.5 var(--font-ui); color:var(--ink); }
.qcard p + p { color:var(--ink-soft); }
.qcard .pill { margin-top:8px; }
.qnav { width:100%; display:flex; align-items:center; justify-content:space-between; margin-top:10px; }
.qnav .flip svg { transform:scaleX(-1); }
.qdots { display:flex; gap:4px; } .qdots i { width:5px; height:5px; border-radius:50%; background:var(--ink-soft); opacity:.2; } .qdots i.on { background:var(--accent-strong); opacity:1; }
/* the little illustrations */
.ga { position:relative; width:100%; min-height:112px; display:grid; place-items:center; margin:8px 0 4px; }
.ga.row { display:flex; justify-content:center; align-items:center; gap:14px; }
.ga-grid { --g:26px; display:grid; grid-template-columns:repeat(4, var(--g)); gap:3px; padding:6px; border-radius:14px; background:var(--slab-top); box-shadow:3px 5px 0 var(--slab-light), 4px 8px 0 var(--slab-dark); }
.ga-grid i { width:var(--g); height:var(--g); border-radius:6px; background:var(--surface); display:grid; place-items:center; font:700 14px/1 var(--font-ui); font-style:normal; color:var(--ink); }
.ga-grid i.alt { background:var(--surface-alt); }
.ga-grid.sweep i:nth-child(-n+4) { animation:gaRow 3.6s ease-in-out infinite; }
.ga-grid.sweep i:nth-child(4n+1) { animation:gaCol 3.6s ease-in-out infinite; }
.ga-grid.dim i { opacity:.55; }
.ga-ff { position:absolute; width:34px; height:34px; } .ga-ff svg { width:100%; height:100%; overflow:visible; }
.ga-ff.orbit { animation:gaOrbit 3.2s linear infinite; }
.ga-ff.bob, .ga-ff.rest { position:relative; animation:ffBob 2.6s ease-in-out infinite; }
.ga-ff.rest { opacity:.75; }
.ga-peb { position:relative; width:40px; height:54px; border-radius:999px; overflow:hidden; background:var(--pebble); display:grid; place-items:center;
  box-shadow:0 3px 0 var(--pebble-edge), 0 8px 16px -8px var(--shadow); font:800 22px/1 var(--font-ui); }
.ga-peb i { position:absolute; inset:0; background:var(--pfill); transform:translateY(calc((1 - var(--p, 0)) * 104%)); }
.ga-peb b { position:relative; }
.ga-peb.near { box-shadow:0 3px 0 var(--pebble-edge), 0 0 14px 3px color-mix(in srgb, var(--accent) 65%, transparent); } .ga-peb.near b { font-weight:900; }
.ga-peb.done svg { position:relative; width:30px; height:30px; color:var(--accent-strong); }
.ga-cell { position:relative; width:72px; height:72px; border-radius:14px; background:var(--surface); display:grid; place-items:center;
  box-shadow:0 0 0 2px var(--accent-strong), 0 8px 18px -10px var(--shadow); font:800 34px/1 var(--font-ui); color:var(--player); }
.ga-cell.notes { grid-template-columns:repeat(3, 1fr); grid-template-rows:repeat(3, 1fr); padding:6px; font:800 13px/1 var(--font-ui); color:var(--ink-soft); }
.ga-cell.notes i { display:grid; place-items:center; font-style:normal; }
.ga-cell.blush { background:color-mix(in srgb, var(--blush) 46%, var(--surface)); box-shadow:0 8px 18px -10px var(--shadow); }
.ga-cell.wob { animation:wobble 1.6s ease-in-out infinite; }
.ga-tool { width:48px; height:48px; border-radius:50%; display:grid; place-items:center; background:var(--tool); color:var(--ink); box-shadow:0 2px 0 var(--pebble-edge), 0 6px 14px -8px var(--shadow); }
.ga-tool.on { background:var(--accent-soft); color:var(--player); box-shadow:0 0 0 2.5px var(--accent-strong) inset, 0 2px 0 var(--pebble-edge); }
.ga-tool.tilt svg { transform:rotate(-14deg); } .ga-tool.faded { opacity:.55; }
.ga-seg { display:flex; gap:6px; padding:6px 10px; border-radius:999px; background:color-mix(in srgb, var(--ink-soft) 12%, transparent); color:var(--ink-soft); }
.ga-flower svg { width:96px; height:96px; overflow:visible; }
.ga-gifts { display:flex; flex-direction:column; gap:6px; color:var(--player); }
.ga-mode { width:58px; height:58px; border-radius:50%; display:grid; place-items:center; color:var(--ink); box-shadow:0 6px 14px -8px var(--shadow); }
.ga-mode.sun { background:radial-gradient(circle at 50% 40%, #FFF6D6, var(--gold)); } .ga-mode.stone { background:radial-gradient(circle at 50% 35%, var(--surface), var(--lavender)); border-radius:50% / 44%; }
.ga-mode.leaf { background:radial-gradient(circle at 40% 35%, #F2FBF6, var(--mint)); border-radius:62% 10% 62% 10%; color:#2F6E55; }
.ga-bed { gap:8px; }
.ga-day { width:44px; height:44px; display:grid; place-items:end center; position:relative; }
.ga-day::before { content:""; position:absolute; bottom:2px; left:6px; right:6px; height:10px; border-radius:50%; background:color-mix(in srgb, var(--apricot) 55%, var(--slab-dark)); }
.ga-day svg { position:relative; width:30px; height:30px; margin-bottom:6px; color:var(--accent-strong); }
.ga-day.s em { position:relative; width:2px; height:9px; margin-bottom:9px; background:var(--mint); border-radius:2px; }
.ga-day.b i { position:relative; width:12px; height:16px; margin-bottom:8px; border-radius:50% 50% 45% 45%; background:var(--accent-soft); box-shadow:0 0 0 1.5px var(--accent); animation:budBreath 3.4s ease-in-out infinite; }
.ga-disc { width:52px; height:52px; border-radius:50%; display:grid; place-items:center; color:#fff; box-shadow:0 6px 14px -8px var(--shadow), inset 0 0 0 7px #FFFFFF33; }
.ga-disc.spin { animation:spin 6s linear infinite; }
.ga-tog { width:52px; height:32px; border-radius:999px; background:color-mix(in srgb, var(--ink-soft) 25%, transparent); position:relative; }
.ga-tog::after { content:""; position:absolute; top:3px; left:3px; width:26px; height:26px; border-radius:50%; background:var(--pebble); }
.ga-tog.on { background:var(--accent); } .ga-tog.on::after { transform:translateX(20px); }
.ga-app { width:58px; height:58px; border-radius:16px; display:grid; place-items:center; background:linear-gradient(160deg, var(--sky-top), var(--accent-soft)); color:var(--accent-strong); box-shadow:0 8px 18px -10px var(--shadow); }
.ga-app svg { width:34px; height:34px; }
.ga-pic { width:76px; height:76px; }
@keyframes bubbleIn { 0%{transform:translateY(6px) scale(.97); opacity:.4} 100%{transform:none; opacity:1} }
@keyframes nudge { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-3px) scale(1.04)} 60%{transform:translateX(3px) scale(1.04)} }
@keyframes gaRow { 0%,8%,36%,100%{background:var(--surface)} 12%,30%{background:color-mix(in srgb, var(--mint) 65%, var(--surface))} }
@keyframes gaCol { 0%,42%,74%,100%{background:inherit} 48%,68%{background:color-mix(in srgb, var(--lavender) 70%, var(--surface))} }
@keyframes gaOrbit { from{transform:rotate(0) translateX(64px) rotate(0)} to{transform:rotate(360deg) translateX(64px) rotate(-360deg)} }
@media (prefers-reduced-motion: reduce) {
  .tc.glow, .tc.pop, .tc.wobble, .tc.nudge, .tc .d.ghost, .tc.sing .d, .ttools .tool.glow, .tpad .peb.glow, .tstage.unfold, .tbubble.pop, .tipff, .spot.on::after,
  .ga-grid.sweep i, .ga-ff.orbit, .ga-ff.bob, .ga-ff.rest, .ga-cell.wob, .ga-disc.spin, .ga-day.b i { animation:none; }
  .tc.ripple::after { animation:rippleFade .8s ease both; }
  .tthreads .beam { animation:fadeIn .4s ease forwards; stroke-dasharray:none; stroke-dashoffset:0; opacity:0; }
  .tut, .tip, .greet, .cropper, .spot { transition-duration:.01s; }
}
