/* Tiny Quest app. One face (Cabinet Grotesk), flat world colours, felt islands as the art. */
:root {
  --ground: #183928;
  --ground-2: #234a39;
  --deep: #10291d;
  --paper: #fff8ec;
  --paper-2: #f2e9d8;
  --paper-3: #e7dcc7;
  --ink: #10291d;
  --soft: #3d5547;
  --cream-soft: #cfe0cf;
  --accent: #ff9348;
  --link: #9e4212;
  --mint: #a6dd8f; --lagoon: #8fdde6; --butter: #f5e27a; --apricot: #ffb46a; --peri: #b9c6fb;
  --r: 22px;
  --face: "Cabinet Grotesk", "Avenir Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --pop: cubic-bezier(.3, 1.35, .5, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--face); font-size: 17px; line-height: 1.45; color: var(--ink); background: var(--ground); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.025em; line-height: 1; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 12px; }

/* ---------- desktop frame ---------- */
.desk-note { display: none; }
.phone { position: relative; height: 100%; }
.app { position: relative; height: 100%; overflow: hidden; background: var(--paper); }
@media (min-width: 760px) {
  html:not(.embed) body { display: grid; grid-template-columns: minmax(260px, 380px) auto; justify-content: center; align-items: center; gap: 72px; padding: 32px; }
  html:not(.embed) .desk-note { display: block; color: var(--paper); }
  .desk-logo { display: inline-block; font-size: 58px; margin-bottom: 30px; text-decoration: none; }
  .desk-note h1 { font-size: 46px; line-height: .98; letter-spacing: -.035em; margin-bottom: 18px; }
  .desk-note p { font-size: 19px; line-height: 1.5; color: var(--cream-soft); margin-bottom: 26px; }
  .desk-note nav { display: flex; flex-wrap: wrap; gap: 12px; }
  .desk-note nav a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--paper); color: var(--deep); font-weight: 800; text-decoration: none; transition: transform .2s var(--ease), background .2s; }
  .desk-note nav a + a { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 2px rgba(255, 248, 236, .5); }
  .desk-note nav a:hover { transform: translateY(-2px); }
  html:not(.embed) .phone { width: 410px; height: min(880px, calc(100vh - 64px)); border-radius: 52px; padding: 11px; background: #0b0d0b; }
  html:not(.embed) .app { border-radius: 42px; }
}

/* ---------- screens ---------- */
.screen { position: absolute; inset: 0 0 76px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; opacity: 0; visibility: hidden; transform: translateX(16px); transition: opacity .3s var(--ease), transform .4s var(--ease), visibility 0s .4s; }
.screen::-webkit-scrollbar { display: none; }
.screen.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .4s var(--ease); }
.pad { padding: 4px 18px 32px; }
.top { position: sticky; top: 0; z-index: 3; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 22px 18px 14px; background: var(--paper); }
.top h1 { font-size: 36px; letter-spacing: -.035em; }
.top-count { font-weight: 500; color: var(--soft); font-size: 15px; }
.row-head { display: flex; align-items: baseline; justify-content: space-between; margin: 28px 0 12px; }
.row-head h2, .row-head h3 { font-size: 23px; }
.count { font-size: 15px; font-weight: 500; color: var(--soft); }
.link { background: none; border: 0; padding: 6px 0; color: var(--link); font-weight: 800; font-size: 16px; }
.hint { color: var(--soft); margin: 4px 0 16px; font-size: 16px; }

/* ---------- home ---------- */
.home-top { position: relative; padding: 16px 20px 46px; background: var(--ground); color: var(--paper); overflow: hidden; }
.home-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.home-wm { font-size: 22px; padding-top: 8px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--apricot); color: var(--deep); font-weight: 800; font-size: 19px; transition: transform .2s var(--pop); }
.avatar:active { transform: scale(.92); }
.home-greet { font-size: 16px; font-weight: 500; color: var(--cream-soft); max-width: 58%; }
.home-title { position: relative; z-index: 1; font-size: 34px; line-height: .98; letter-spacing: -.035em; margin: 6px 0 24px; max-width: 60%; }
.home-isle { position: absolute; right: -12px; top: 58px; width: 170px; height: 170px; object-fit: contain; animation: bob 6s ease-in-out infinite; }
.home-top .wood { position: relative; z-index: 1; width: 100%; }
.sheet-paper { position: relative; margin-top: -26px; padding: 2px 18px 34px; background: var(--paper); border-radius: 28px 28px 0 0; }
.sheet-paper > .row-head:first-child { margin-top: 24px; }

/* the wooden sign, from the Tiny Quest design boards */
.wood { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 62px; padding: 14px 40px 13px; border: 0; border-radius: 18px; font-weight: 800; font-size: 22px; letter-spacing: -.01em; color: #fff7e8; text-shadow: 0 2px 0 rgba(70, 35, 8, .55); background: linear-gradient(#c07638, #a35a22 55%, #8a4a1b); box-shadow: inset 0 2px 0 rgba(255, 225, 180, .5), inset 0 -2px 0 rgba(80, 40, 10, .4), 0 5px 0 #5e3313; transition: transform .14s var(--ease), box-shadow .14s var(--ease); }
.wood::before, .wood::after { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f0c995, #7a4519); }
.wood::before { left: 16px; } .wood::after { right: 16px; }
.wood:active { transform: translateY(4px); box-shadow: inset 0 2px 0 rgba(255, 225, 180, .45), inset 0 -2px 0 rgba(80, 40, 10, .35), 0 1px 0 #5e3313; }
.wood.is-small { min-height: 56px; font-size: 19px; padding: 12px 28px 11px; }

.vibes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.vibe { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; column-gap: 9px; min-height: 72px; padding: 10px 12px; border: 0; border-radius: 20px; background: var(--v, var(--mint)); color: var(--deep); text-align: left; transition: transform .25s var(--pop); }
.vibe img { grid-row: span 2; width: 40px; height: 40px; object-fit: contain; transition: transform .45s var(--pop); }
.vibe strong { font-size: 16.5px; font-weight: 800; line-height: 1.05; align-self: end; }
.vibe span { font-size: 14px; font-weight: 500; line-height: 1.2; color: #24402f; align-self: start; }
.vibe:active { transform: scale(.96); }
.vibe[aria-pressed="true"] { box-shadow: inset 0 0 0 3px var(--deep); }
.vibe[aria-pressed="true"] img { transform: translateY(-3px) rotate(-8deg) scale(1.12); }

.feature { display: block; width: 100%; text-align: left; overflow: hidden; border: 0; border-radius: 26px; background: var(--w); color: var(--deep); padding: 0; }
.feature-art { position: relative; height: 200px; display: grid; place-items: center; }
.feature-art img { width: 190px; height: 190px; object-fit: contain; animation: bob 6s ease-in-out infinite; }
.feature-art .wname { position: absolute; left: 16px; top: 14px; font-size: 15px; font-weight: 800; padding: 5px 12px; border-radius: 999px; background: rgba(255, 248, 236, .8); }
.feature-body { padding: 0 18px 18px; }
.feature-body h3 { font-size: 30px; line-height: .98; letter-spacing: -.035em; margin-bottom: 8px; }
.feature-body p { font-size: 16.5px; margin-bottom: 14px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 0 14px; }
.facts div { background: rgba(255, 248, 236, .72); border-radius: 14px; padding: 8px 10px; }
.facts dt { font-size: 13px; font-weight: 500; color: #2b4636; }
.facts dd { margin: 0; font-weight: 800; font-size: 17px; }
.go { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; border: 0; border-radius: 999px; background: var(--deep); color: var(--paper); font-weight: 800; font-size: 18px; transition: transform .15s var(--ease); }
.go:active { transform: scale(.97); }
.go svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.feature.is-dealing { animation: deal .6s var(--pop); }
@keyframes deal { from { transform: translateY(26px) rotate(-3deg) scale(.95); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-8px) rotate(1.5deg); } }

.rail { display: flex; gap: 10px; overflow-x: auto; margin: 0 -18px; padding: 2px 18px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.mini { flex: none; width: 150px; scroll-snap-align: start; text-align: left; border: 0; padding: 0; background: none; color: var(--deep); }
.mini .art { display: grid; place-items: center; height: 132px; border-radius: 22px; background: var(--w); margin-bottom: 8px; transition: transform .25s var(--pop); }
.mini .art img { width: 108px; height: 108px; object-fit: contain; }
.mini strong { display: block; font-size: 16px; font-weight: 800; line-height: 1.1; }
.mini span { font-size: 14px; font-weight: 500; color: var(--soft); }
.mini:active .art { transform: scale(.95); }
.stamp-mini { flex: none; width: 92px; scroll-snap-align: start; border: 0; padding: 0; background: none; color: var(--deep); text-align: center; }
.stamp-mini .disc { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 6px; border-radius: 50%; background: var(--w); box-shadow: inset 0 0 0 3px rgba(16, 41, 29, .16); }
.stamp-mini .disc img { width: 64px; height: 64px; object-fit: contain; }
.stamp-mini.is-new .disc { background: var(--paper-2); }
.stamp-mini.is-new .disc img { filter: grayscale(1); opacity: .45; }
.stamp-mini strong { display: block; font-size: 13.5px; font-weight: 800; line-height: 1.1; }
.stamp-mini span { font-size: 13px; font-weight: 500; color: var(--soft); }

.memory-peek { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; width: 100%; text-align: left; padding: 12px; border: 0; border-radius: var(--r); background: var(--paper-2); color: var(--deep); }
.memory-peek .ph { width: 84px; height: 84px; border-radius: 16px; background: var(--w, var(--butter)) center/cover; display: grid; place-items: center; }
.memory-peek .ph img { width: 64px; height: 64px; object-fit: contain; }
.memory-peek q, .memory-peek strong { display: block; font-weight: 800; font-size: 18px; line-height: 1.15; quotes: "\201C" "\201D"; }
.memory-peek small { display: block; margin-top: 4px; font-size: 14px; color: var(--soft); font-weight: 500; }

/* ---------- library ---------- */
.search { display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 52px; border-radius: 999px; background: var(--paper-2); }
.search svg { width: 20px; height: 20px; stroke: var(--soft); fill: none; stroke-width: 2.2; flex: none; }
.search input { flex: 1; border: 0; background: none; outline: none; font-size: 17px; min-width: 0; }
.search input::placeholder { color: #5f7466; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 0; background: var(--paper-2); font-weight: 800; font-size: 15px; white-space: nowrap; color: var(--deep); }
.chip[aria-pressed="true"] { background: var(--deep); color: var(--paper); }
.chip-select { appearance: none; padding-right: 34px; background: var(--paper-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310291d' stroke-width='2.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center/14px; }
.world-strip { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 16px; scrollbar-width: none; }
.world-strip::-webkit-scrollbar { display: none; }
.wchip { flex: none; display: flex; align-items: center; gap: 6px; min-height: 42px; padding: 4px 14px 4px 6px; border-radius: 999px; border: 0; background: var(--w, var(--paper-2)); font-weight: 800; font-size: 14.5px; white-space: nowrap; color: var(--deep); }
.wchip img { width: 32px; height: 32px; object-fit: contain; }
.wchip[aria-pressed="true"] { box-shadow: inset 0 0 0 3px var(--deep); }
.list { display: grid; gap: 10px; }
.qcard { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; width: 100%; text-align: left; padding: 10px; border: 0; border-radius: 24px; background: var(--paper-2); color: var(--deep); transition: transform .2s var(--ease); }
.qcard:active { transform: scale(.98); }
.qart { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 18px; background: var(--w); }
.qart img { width: 84px; height: 84px; object-fit: contain; }
.qbody h3 { font-size: 20px; line-height: 1.02; margin: 2px 0 5px; }
.qbody p { margin: 0 0 7px; font-size: 15px; line-height: 1.35; color: var(--soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qworld { display: block; font-size: 14px; font-weight: 500; color: var(--soft); }
.qmeta { display: flex; flex-wrap: wrap; gap: 5px; }
.qmeta span { font-size: 13.5px; font-weight: 800; padding: 2px 9px; border-radius: 999px; background: var(--paper); }
.flag-done { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%; background: var(--deep); display: grid; place-items: center; }
.flag-done svg { width: 14px; height: 14px; stroke: var(--paper); stroke-width: 3; fill: none; }
.empty { text-align: center; padding: 26px 14px; color: var(--soft); }
.empty img { width: 120px; margin: 0 auto 8px; }
.empty h3 { font-size: 24px; color: var(--deep); margin-bottom: 6px; }
.empty p { margin: 0 0 14px; }
.btn-soft { min-height: 46px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--deep); font-weight: 800; color: var(--paper); }

/* ---------- map ---------- */
.map-wrap { padding: 0 18px 8px; overflow-x: auto; scrollbar-width: none; }
.map-wrap::-webkit-scrollbar { display: none; }
.map { position: relative; width: 760px; aspect-ratio: 1672 / 941; border-radius: 24px; overflow: hidden; background: #4d7c93; }
.map img { width: 100%; height: 100%; object-fit: cover; }
.pins { position: absolute; inset: 0; }
.pin { position: absolute; transform: translate(-50%, -50%); width: 44px; height: 44px; border: 0; background: transparent; }
.pin::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--accent); border: 3px solid var(--paper); animation: ping 2.6s ease-out infinite; }
.pin span { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); white-space: nowrap; font-weight: 800; font-size: 14px; color: var(--deep); background: var(--paper); padding: 2px 9px; border-radius: 8px; pointer-events: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 248, 236, .7); } 70%, 100% { box-shadow: 0 0 0 14px rgba(255, 248, 236, 0); } }
.worlds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wtile { display: grid; grid-template-columns: 56px 1fr; gap: 10px; align-items: center; text-align: left; padding: 10px; border: 0; border-radius: 20px; background: var(--w); color: var(--deep); }
.wtile img { width: 56px; height: 56px; object-fit: contain; }
.wtile strong { display: block; font-size: 16px; font-weight: 800; line-height: 1.05; }
.wtile small { font-size: 13.5px; font-weight: 500; color: #24402f; }
.wtile .bar { display: block; height: 5px; border-radius: 9px; background: rgba(16, 41, 29, .15); margin-top: 6px; overflow: hidden; }
.wtile .bar i { display: block; height: 100%; background: var(--deep); border-radius: 9px; }

/* ---------- passport ---------- */
.pass-top { position: relative; display: grid; grid-template-columns: 1fr 120px; align-items: end; gap: 8px; padding: 26px 20px 24px; background: var(--ground); color: var(--paper); }
.pass-top p { font-size: 16px; font-weight: 500; color: var(--cream-soft); }
.pass-top h1 { font-size: 40px; letter-spacing: -.04em; margin: 4px 0 8px; overflow-wrap: anywhere; }
.pass-top img { width: 130px; height: 130px; object-fit: contain; margin: -10px -14px -8px 0; animation: bob 6s ease-in-out infinite; }
.link-light { border: 0; background: none; padding: 4px 0; color: var(--apricot); font-weight: 800; font-size: 16px; }
.tally { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 0; }
.tally div { padding: 12px; border-radius: 20px; background: var(--t); }
.tally dt { font-size: 14px; font-weight: 500; color: #24402f; }
.tally dd { margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.stamps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 8px; }
.stamp { text-align: center; border: 0; background: none; padding: 0; color: var(--deep); }
.stamp .disc { position: relative; display: grid; place-items: center; width: 96px; height: 96px; margin: 0 auto 8px; border-radius: 50%; background: var(--w); }
.stamp .disc::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 2.5px dashed rgba(16, 41, 29, .4); }
.stamp .disc img { width: 74px; height: 74px; object-fit: contain; }
.stamp.is-new .disc { background: var(--paper-2); }
.stamp.is-new .disc::after { border-color: rgba(16, 41, 29, .18); }
.stamp.is-new .disc img { filter: grayscale(1); opacity: .4; }
.stamp strong { display: block; font-size: 14.5px; font-weight: 800; line-height: 1.1; }
.stamp span { font-size: 13.5px; font-weight: 500; color: var(--soft); }

/* ---------- storybook ---------- */
.month { position: relative; display: grid; grid-template-columns: 1fr 96px; align-items: center; gap: 8px; padding: 18px; border-radius: 24px; background: var(--ground); color: var(--paper); margin-bottom: 16px; overflow: hidden; }
.month small { display: block; font-size: 15px; font-weight: 500; color: var(--cream-soft); }
.month b { display: block; font-size: 26px; line-height: 1.02; letter-spacing: -.03em; }
.month img { width: 110px; height: 110px; object-fit: contain; margin: -18px -20px -18px 0; }
.mem-list { display: grid; gap: 14px; }
.mem { position: relative; overflow: hidden; border-radius: 26px; background: var(--paper-2); }
.mem-ph { height: 210px; background: var(--w) center/cover no-repeat; display: grid; place-items: center; }
.mem-ph img { width: 160px; height: 160px; object-fit: contain; }
.mem-body { padding: 14px 18px 18px; }
.mem h3 { font-size: 16px; font-weight: 500; color: var(--soft); letter-spacing: 0; margin-bottom: 6px; }
.mem q { display: block; font-size: 24px; font-weight: 800; line-height: 1.08; letter-spacing: -.025em; color: var(--deep); quotes: "\201C" "\201D"; }
.mem .who { margin: 8px 0 0; font-size: 15px; font-weight: 500; color: var(--soft); }
.mem .note { margin: 8px 0 0; font-size: 16px; }
.mem .del { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255, 248, 236, .9); color: var(--deep); font-size: 20px; line-height: 1; }
.sample-tag { position: absolute; top: 12px; left: 12px; font-size: 13px; font-weight: 800; color: var(--deep); background: var(--apricot); padding: 3px 10px; border-radius: 999px; }

/* ---------- tabs ---------- */
.tabs { position: absolute; left: 0; right: 0; bottom: 0; height: 76px; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--ground); padding-bottom: env(safe-area-inset-bottom); z-index: 5; }
.tabs button { position: relative; display: grid; justify-items: center; align-content: center; gap: 3px; border: 0; background: none; color: #a9c2b1; font-size: 12.5px; font-weight: 800; }
.tabs svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--pop); }
.tabs .is-on { color: var(--paper); }
.tabs .is-on svg { transform: translateY(-2px) scale(1.1); }
.tabs .is-on::after { content: ""; position: absolute; top: 8px; right: calc(50% - 18px); width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---------- quest page ---------- */
.sheet-wrap { position: absolute; inset: 0; z-index: 10; }
.sheet { position: absolute; inset: 0; overflow-y: auto; background: var(--paper); transform: translateY(100%); transition: transform .5s var(--ease); outline: none; overscroll-behavior: contain; scrollbar-width: none; }
.sheet::-webkit-scrollbar { display: none; }
.sheet-wrap.is-open .sheet { transform: none; }
.sheet-hero { position: relative; height: 290px; display: grid; place-items: center; background: var(--w); }
.sheet-hero img { width: 240px; height: 240px; object-fit: contain; margin-top: 14px; animation: bob 6s ease-in-out infinite; }
.round { position: absolute; top: 16px; z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--paper); display: grid; place-items: center; transition: transform .2s var(--pop); }
.round:active { transform: scale(.9); }
.round svg { width: 21px; height: 21px; stroke: var(--deep); stroke-width: 2.4; fill: none; stroke-linecap: round; }
.round.close { left: 16px; } .round.fav { right: 16px; }
.round.fav[aria-pressed="true"] svg { fill: var(--accent); stroke: var(--accent); }
.sheet-body { padding: 20px 20px 120px; }
.sheet-body .qworld { font-size: 16px; }
.sheet-body h2 { font-size: 38px; line-height: .95; letter-spacing: -.04em; margin: 6px 0 12px; }
.story { font-size: 18.5px; margin: 0 0 16px; }
.needs { font-size: 16px; margin: 0 0 18px; color: var(--soft); }
.needs b { color: var(--deep); font-weight: 800; }
.sheet .facts div { background: var(--paper-2); }
.say { position: relative; margin: 4px 0 24px; padding: 18px 20px 20px; background: var(--ground); color: var(--paper); border-radius: 24px; font-weight: 800; font-size: 23px; line-height: 1.15; letter-spacing: -.02em; }
.say::after { content: ""; position: absolute; left: 34px; bottom: -12px; width: 24px; height: 24px; background: var(--ground); transform: rotate(45deg); border-radius: 4px; }
.say small { display: block; font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--apricot); margin-bottom: 6px; }
.sec { margin: 0 0 22px; }
.sec h3 { font-size: 22px; margin-bottom: 10px; }
.sec p { font-size: 17px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checks label { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; padding: 12px 14px; border-radius: 18px; background: var(--paper-2); font-size: 16.5px; cursor: pointer; }
.checks input { appearance: none; width: 28px; height: 28px; margin: 0; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2.5px var(--deep); transition: background .2s; }
.checks input:checked { background: var(--deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff8ec' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center/18px no-repeat; }
.checks input:checked + span { color: var(--soft); text-decoration: line-through; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; font-size: 17px; }
.steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--deep); font-weight: 800; display: grid; place-items: center; font-size: 17px; }
.twin { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 22px; }
.twin > div { padding: 14px; border-radius: 20px; }
.twin .up { background: var(--apricot); } .twin .calm { background: var(--peri); }
.twin h3 { font-size: 18px; margin-bottom: 6px; }
.twin p { font-size: 15.5px; line-height: 1.38; }
.safety { padding: 14px 16px; border-radius: 20px; background: var(--mint); margin-bottom: 18px; font-size: 16px; }
.safety b { font-weight: 800; }
.skills { display: flex; flex-wrap: wrap; gap: 6px; }
.skills span { font-size: 14px; font-weight: 800; padding: 5px 12px; border-radius: 999px; background: var(--paper-2); }
.sheet-cta { position: sticky; bottom: 0; padding: 12px 20px 20px; margin-top: -100px; background: linear-gradient(rgba(255, 248, 236, 0), var(--paper) 34%); }
.sheet-cta .wood { width: 100%; }

/* ---------- play ---------- */
.play { position: absolute; inset: 0; z-index: 20; display: grid; grid-template-rows: auto 1fr auto; background: var(--w, var(--mint)); color: var(--deep); opacity: 0; transform: scale(1.04); transition: opacity .3s, transform .4s var(--ease); overflow: hidden; }
.play.is-open { opacity: 1; transform: none; }
.play-top { display: flex; align-items: center; gap: 12px; padding: 18px 16px 6px; }
.play-top .x { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 248, 236, .75); display: grid; place-items: center; }
.play-top .x svg { width: 20px; height: 20px; stroke: var(--deep); stroke-width: 2.4; fill: none; stroke-linecap: round; }
.dots { flex: 1; display: flex; gap: 5px; }
.dots i { flex: 1; height: 7px; border-radius: 9px; background: rgba(16, 41, 29, .16); }
.dots i.on { background: var(--deep); }
.clock { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 16px; min-width: 50px; text-align: right; }
.play-stage { position: relative; overflow-y: auto; display: grid; align-content: center; padding: 0 24px 10px; }
.pstep { animation: stepIn .5s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
.pstep .art { width: 150px; height: 150px; object-fit: contain; margin: 0 0 6px -8px; animation: bob 6s ease-in-out infinite; }
.pstep .lab { font-size: 16px; font-weight: 500; color: #24402f; margin-bottom: 10px; }
.pstep .big { font-weight: 800; font-size: 32px; line-height: 1.04; letter-spacing: -.03em; }
.pstep .sub { margin: 14px 0 0; font-size: 18px; }
.alt-row { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.alt-row button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: rgba(255, 248, 236, .7); color: var(--deep); font-weight: 800; font-size: 15.5px; }
.alt-row button[aria-pressed="true"] { background: var(--deep); color: var(--paper); }
.alt-box { margin-top: 12px; padding: 14px 16px; border-radius: 18px; background: var(--paper); font-size: 17px; }
.play-foot { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 12px 16px 22px; }
.play-foot .back { min-height: 56px; padding: 0 20px; border-radius: 999px; border: 0; background: rgba(255, 248, 236, .75); color: var(--deep); font-weight: 800; }
.play-foot .wood { width: 100%; }
.done { text-align: center; }
.done .stampbig { position: relative; display: grid; place-items: center; width: 200px; height: 200px; margin: 0 auto 18px; border-radius: 50%; background: var(--paper); transform: rotate(-8deg); animation: thunk .65s cubic-bezier(.2, 1.6, .4, 1) both; }
.done .stampbig::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; border: 3px dashed rgba(16, 41, 29, .45); }
.done .stampbig img { width: 150px; height: 150px; object-fit: contain; }
.done h2 { font-size: 40px; letter-spacing: -.04em; }
.done .prompt { margin: 12px auto 0; max-width: 28ch; font-weight: 500; font-size: 20px; line-height: 1.3; }
@keyframes thunk { 0% { transform: scale(2.4) rotate(-30deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: scale(1) rotate(-8deg); opacity: 1; } }
.play.is-thunk { animation: shake .4s .35s; }
@keyframes shake { 0%, 100% { transform: none; } 30% { transform: translateY(5px); } 60% { transform: translateY(-2px); } }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 14px; height: 18px; clip-path: polygon(0 0, 100% 50%, 0 100%); animation: fall linear forwards; }
@keyframes fall { to { transform: translate(var(--dx), 110vh) rotate(var(--rot)); } }
.mform { display: grid; gap: 12px; text-align: left; padding: 18px; border-radius: 24px; background: var(--paper); }
.mform .lab { margin: 0; }
.mform label { display: grid; gap: 5px; font-weight: 800; font-size: 15px; }
.mform input, .mform textarea { width: 100%; padding: 12px 14px; border-radius: 14px; border: 0; background: var(--paper-2); font-size: 17px; font-weight: 500; }
.mform .duo { display: grid; grid-template-columns: 1fr 90px; gap: 10px; }
.photo-pick { position: relative; display: grid !important; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; padding: 10px; border-radius: 18px; background: var(--paper-2); cursor: pointer; }
.photo-pick .pv { width: 72px; height: 72px; border-radius: 14px; background: var(--w) center/cover; display: grid; place-items: center; }
.photo-pick .pv svg { width: 30px; height: 30px; stroke: var(--deep); fill: none; stroke-width: 1.9; }
.photo-pick small { display: block; font-weight: 500; color: var(--soft); font-size: 14px; }
.photo-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.mform .privacy { font-size: 14px; font-weight: 500; color: var(--soft); }

/* ---------- first run ---------- */
.splash { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; align-content: center; gap: 4px; background: var(--ground); transition: opacity .45s var(--ease); }
.splash img { width: 230px; height: 230px; object-fit: cover; animation: rise .9s var(--pop) both; }
.splash .wm { font-size: 46px; animation: rise .9s .15s var(--pop) both; }
.splash.is-out { opacity: 0; pointer-events: none; }
@keyframes rise { from { transform: translateY(30px) scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
.onboard { position: absolute; inset: 0; z-index: 30; display: grid; grid-template-rows: 1fr auto; background: var(--o, var(--mint)); color: var(--deep); transition: background .45s var(--ease); }
.ob-slide { display: grid; align-content: center; padding: 30px 26px 10px; animation: stepIn .5s var(--ease); }
.ob-slide img { width: 230px; height: 230px; object-fit: contain; margin: 0 auto 18px; animation: bob 6s ease-in-out infinite; }
.ob-slide h2 { font-size: 38px; line-height: .96; letter-spacing: -.04em; margin-bottom: 14px; }
.ob-slide p { font-size: 18.5px; line-height: 1.45; }
.ob-slide input[type="text"] { width: 100%; min-height: 60px; margin: 14px 0 20px; padding: 0 18px; border-radius: 18px; border: 0; background: var(--paper-2); font-size: 22px; font-weight: 800; }
.ages { display: flex; flex-wrap: wrap; gap: 8px; }
.ages button { min-width: 54px; min-height: 54px; border-radius: 999px; border: 0; background: var(--paper-2); font-weight: 800; font-size: 19px; color: var(--deep); }
.ages button[aria-pressed="true"] { background: var(--deep); color: var(--paper); }
.ob-label { display: block; font-size: 16px; font-weight: 800; margin-top: 4px; }
.ob-foot { display: grid; gap: 12px; padding: 12px 22px 26px; }
.ob-dots { display: flex; justify-content: center; gap: 6px; }
.ob-dots i { width: 8px; height: 8px; border-radius: 9px; background: rgba(16, 41, 29, .25); transition: width .3s var(--ease); }
.ob-dots i.on { width: 26px; background: var(--deep); }
.ob-next { min-height: 58px; border: 0; border-radius: 999px; background: var(--deep); color: var(--paper); font-weight: 800; font-size: 19px; }
.ob-skip { border: 0; background: none; font-weight: 800; color: var(--deep); padding: 6px; }

/* toast */
.toast { position: absolute; left: 50%; bottom: 92px; z-index: 50; transform: translate(-50%, 20px); opacity: 0; padding: 12px 20px; border-radius: 999px; background: var(--deep); color: var(--paper); font-weight: 800; font-size: 15px; white-space: nowrap; transition: opacity .25s, transform .35s var(--pop); pointer-events: none; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* embed + showcase */
html.embed body { background: var(--paper); }
html.showcase *, html.showcase *::before, html.showcase *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
