@font-face{font-family:'Duet Hand';src:url(/assets/duet-hand.ttf) format('truetype');font-display:swap}
@font-face{font-family:'Duet Hand Bold';src:url(/assets/duet-hand-bold.ttf) format('truetype');font-display:swap}
:root{--ink:#594739;--muted:#85745f;--sky1:#f5ecda;--sky2:#ecdfc6;--cf:none;--co:1;--hf:none;--st:0;--vig:#7a5a2c14;--hh:clamp(120px,20vh,190px)}
body[data-time=morning]{--sky1:#f8e5cf;--sky2:#efdcc4;--cf:sepia(.35) saturate(1.6) hue-rotate(-12deg);--hf:brightness(1.04) saturate(1.05)}
body[data-time=evening]{--sky1:#f0d3b8;--sky2:#d9b9a2;--cf:sepia(.7) saturate(2.4) hue-rotate(-28deg) brightness(.97);--hf:hue-rotate(-14deg) brightness(.86) saturate(.85)}
body[data-time=night]{--ink:#efe3cf;--muted:#b9ad9a;--sky1:#2c3145;--sky2:#3d3b4d;--cf:brightness(.38) saturate(.5);--co:.7;--hf:brightness(.42) saturate(.65) hue-rotate(8deg);--st:1;--vig:#00000030}
*{box-sizing:border-box}html,body{margin:0}
body{min-height:100vh;color:var(--ink);font:16px 'Duet Hand Bold',ui-rounded,'Trebuchet MS',sans-serif;font-synthesis:none;overflow-x:hidden;transition:color .6s}
button,input{font:inherit;color:inherit}a{color:inherit}
.bg{position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden}.bg>*{position:absolute}
.sky{inset:0;background:linear-gradient(180deg,var(--sky1),var(--sky2) 70%);transition:background 1s}
.grain{inset:0;opacity:.7;mix-blend-mode:multiply;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23977648' opacity='.09' filter='url(%23n)' d='M0 0h200v200H0z'/%3E%3C/svg%3E")}
.vig{inset:0;background:radial-gradient(ellipse at 50% 35%,transparent 55%,var(--vig))}
.stars{inset:0 0 40% 0;opacity:calc(var(--st)*.9);transition:opacity 1s;background-image:radial-gradient(1.5px 1.5px at 12% 18%,#fff8e6,transparent),radial-gradient(1px 1px at 27% 42%,#fff8e6,transparent),radial-gradient(1.6px 1.6px at 41% 12%,#fff8e6,transparent),radial-gradient(1px 1px at 58% 33%,#fff8e6,transparent),radial-gradient(1.4px 1.4px at 73% 16%,#fff8e6,transparent),radial-gradient(1px 1px at 88% 38%,#fff8e6,transparent)}
main{width:min(1200px,92%);margin:auto;min-height:100vh;display:flex;flex-direction:column;align-items:center;padding:28px 0 calc(var(--hh) + 40px)}
.wm{position:relative;margin-top:34px;font:400 clamp(40px,7vw,84px)/1.15 'Duet Hand',ui-rounded,'Trebuchet MS',sans-serif;letter-spacing:-.02em;white-space:nowrap}
.pw{position:relative;display:inline-block}
.wm img{position:absolute;right:-.5em;top:-1.05em;width:3.8em;max-width:none;pointer-events:none}
.sub{margin:4px 0 0;font:18px 'Duet Hand Bold',ui-rounded,'Trebuchet MS',sans-serif;letter-spacing:.02em;color:var(--muted);text-align:center}
.stage{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:26px;width:100%;padding:22px 0}
.scene-host{width:100%;display:flex;flex-direction:column;align-items:center}
button,input{font:inherit;color:inherit}
:focus-visible{outline:2.5px solid #66745a;outline-offset:3px}
html[data-read=no] .stage,html[data-read=no] .mug{display:none}html[data-read=yes] #about{display:none}

/* ---- paper notes ---- */
.card{position:relative;isolation:isolate;width:min(92vw,480px);padding:46px 34px 34px;filter:drop-shadow(2px 5px 4px #70532726);transition:transform .45s cubic-bezier(.3,1.3,.5,1),opacity .3s;transform:rotate(var(--tilt,-.9deg))}
.card:before,.paper:before{content:'';position:absolute;inset:0;z-index:-1;background:var(--paper);clip-path:polygon(.3% 1%,16% .3%,35% .7%,57% 0,78% .5%,99% .2%,99.6% 17%,99.1% 43%,100% 67%,99.4% 98.5%,81% 99.1%,64% 98.7%,43% 100%,22% 99.2%,.6% 99.7%,0 74%,.5% 55%,0 33%)}
.card.out{opacity:0;transform:translateX(-60px) rotate(-5deg)}.card.pre{opacity:0;transform:translateY(40px) rotate(3deg)}
.cream{--paper:#ffffff}.rose{--paper:#fca7a7}.sage{--paper:#dce1c6}.blue{--paper:#d9e3e2}
.card,.paper{color:#594739}
.lb{text-align:center;font:400 24px 'Duet Hand',ui-rounded,'Trebuchet MS',sans-serif;margin:0 0 22px;letter-spacing:.02em}

/* ---- tape: placement follows the roll. yellow is always one strip across; red is one strip or one long piece over a top corner;
        green and blue can be upright pair, one strip, or two slanted pieces. Each piece is centred on --x/--y and turned by --r. ---- */
.tp{position:absolute;left:var(--x);top:var(--y);width:calc(var(--len,96px)*var(--k,1));height:auto;pointer-events:none;z-index:3;transform:translate(-50%,-50%) rotate(var(--r,0deg))}
.tp.red{--len:100px}.tp.yellow{--len:94px}.tp.blue{--len:88px}.tp.green{--len:82px}
[data-tape=h] .tp{--k:1;--x:50%;--y:2px;--r:-1.5deg}
[data-tape=v] .tp{--k:.9;--y:0px;--r:90deg}[data-tape=v] .tp:nth-of-type(1){--x:13%}[data-tape=v] .tp:nth-of-type(2){--x:85%}
[data-tape=c2] .tp,[data-tape=c2b] .tp{--k:.82}
[data-tape=c2] .tp:nth-of-type(1){--x:12px;--y:10px;--r:-34deg}[data-tape=c2] .tp:nth-of-type(2){--x:calc(100% - 12px);--y:10px;--r:34deg}
[data-tape=c2b] .tp:nth-of-type(1){--x:10px;--y:10px;--r:-38deg}[data-tape=c2b] .tp:nth-of-type(2){--x:calc(100% - 10px);--y:calc(100% - 10px);--r:-38deg}
[data-tape=dtr] .tp{--k:1.35;--x:calc(100% - 22px);--y:22px;--r:40deg}
[data-tape=dtl] .tp{--k:1.35;--x:22px;--y:22px;--r:-40deg}

/* ---- what it is ---- */
.about{margin:26px 0 0;width:min(94vw,560px);padding:48px 34px 34px;text-align:left}.about .lb{margin-bottom:12px}
.about h2{margin:20px 0 4px;font:400 19px 'Duet Hand Bold',ui-rounded,'Trebuchet MS',sans-serif;letter-spacing:.04em}.about p,.about li{font:16px/1.6 'Duet Hand Bold',ui-rounded,'Trebuchet MS',sans-serif;margin:0 0 6px}
.about ol,.about ul{margin:0 0 4px;padding-left:22px}.about b{font-weight:400;border-bottom:2px solid #66745a}
.pledge{margin:22px 0 4px!important;padding:12px 16px;border-left:4px solid #66745a;background:#ffffff80;border-radius:2px 8px 8px 2px}
.about .nav{margin-top:24px}.about .cta{font-size:17px;padding:14px 26px}

/* ---- fields and buttons ---- */
.f{display:block;width:100%;padding:11px 14px;margin:0 0 14px;background:#5947390a;border:1.5px solid #59473966;border-radius:6px 10px 5px 9px;box-shadow:inset 0 2px 3px #5947391c;outline:none;font:22px 'Duet Hand Bold',ui-rounded,'Trebuchet MS',sans-serif}
.f:focus{border-color:#594739;background:#fff8}
.row{display:flex;align-items:center;gap:8px;margin:0 0 14px}.row .f{margin:0;font:19px 'Duet Hand Bold',ui-rounded,'Trebuchet MS',sans-serif}.pre2{font:19px 'Duet Hand Bold',ui-rounded,'Trebuchet MS',sans-serif;opacity:.7;white-space:nowrap}
.ic{display:inline-grid;place-items:center;width:34px;height:34px;flex:none;background:none;border:0;cursor:pointer;padding:0}.ic svg{width:24px;height:24px;stroke:#594739;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.ok svg{stroke:#66745a}.no svg{stroke:#a65f4c}.sp{width:18px;height:18px;border:2px solid #5947394d;border-top-color:#594739;border-radius:50%;animation:rot .8s linear infinite}
@keyframes rot{to{transform:rotate(360deg)}}
.nav{display:flex;justify-content:space-between;align-items:center;margin-top:12px}
.go,.bk,.cta{cursor:pointer;border:2.3px solid #594739;background:#e8dbb9;color:#594739}
.go{width:54px;height:46px;border-radius:7px 12px 6px 10px;display:grid;place-items:center}.go svg,.bk svg{width:26px;height:26px;stroke:#594739;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.go[disabled],.cta[disabled]{opacity:.35;cursor:default}.bk{width:42px;height:38px;border-radius:6px 10px 5px 9px;background:transparent;border-color:#5947394d;display:grid;place-items:center}
.cta{display:inline-block;padding:12px 22px;border-radius:6px 11px 5px 9px;font:17px 'Duet Hand Bold',ui-rounded,'Trebuchet MS',sans-serif;text-decoration:none}
.lnk{background:none;border:0;cursor:pointer;color:#594739;font:17px 'Duet Hand Bold',ui-rounded,'Trebuchet MS',sans-serif;text-decoration:underline;text-underline-offset:3px;padding:6px}
.hint{min-height:24px;margin:2px 0 4px;text-align:center;font:16px 'Duet Hand Bold',ui-rounded,'Trebuchet MS',sans-serif;color:#85745f}.hint.bad{color:#a65f4c}.hint.good{color:#66745a}
.sug{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;min-height:36px;margin:0 0 4px}
.chip{padding:5px 12px;border:1.8px solid #594739;border-radius:5px 10px 4px 9px;background:#fff8;cursor:pointer;font:16px 'Duet Hand Bold',ui-rounded,'Trebuchet MS',sans-serif;color:#594739}.chip:hover{background:#fff}
.dots{display:flex;gap:7px;justify-content:center;margin:2px 0 6px}.dots b{width:30px;height:5px;border-radius:3px;background:#5947392e;transition:background .3s}.dots b.on{background:#66745a}
.slip{margin:0 0 6px;text-align:center;font:15px 'Duet Hand Bold',ui-rounded,'Trebuchet MS',sans-serif;color:#85745f;min-height:20px}
.chips{display:flex;gap:12px}.chips span{width:30px;height:38px;border:2px solid #594739;border-radius:3px 6px 3px 5px;background:var(--paper,#fff6e5);opacity:.45;transition:.25s}
.chips span.d{opacity:1}.chips span.c{opacity:1;transform:translateY(-5px) scale(1.12)}
.chips span:nth-child(1){--paper:#fca7a7}.chips span:nth-child(2){--paper:#dce1c6}.chips span:nth-child(3){--paper:#d9e3e2}.chips span:nth-child(4){--paper:#fff6e5}

/* ---- who: two notes side by side, like the two walls ---- */
.duo{display:grid;grid-template-columns:1fr 1fr;gap:34px;width:min(94vw,700px);align-items:start}
.duo .card{width:100%;padding:44px 22px 24px}
.duo .card:nth-child(1){--tilt:-1.6deg}.duo .card:nth-child(2){--tilt:1.3deg;margin-top:18px}
.pt{position:relative;display:block;margin:0 auto 14px;width:100%;max-width:170px;height:122px;border:2px dashed #5947394d;border-radius:8px 12px 6px 11px;background:#fff6;cursor:pointer;padding:4px}
.pt img{width:100%;height:100%;object-fit:contain}.pt:hover{border-color:#594739}
.sw{position:absolute;right:5px;bottom:5px;width:26px;height:26px;border-radius:50%;background:#e8dbb9;border:1.5px solid #594739;display:grid;place-items:center}.sw svg{width:16px;height:16px;stroke:#594739;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.nm{font-size:21px;text-align:center;margin:0}
.solo{width:min(92vw,520px)}

/* ---- review: the two walls as they will look ---- */
.look{width:min(94vw,640px);padding:46px 30px 28px;text-align:center}
.walls{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:end}
.walls figure{margin:0;display:flex;flex-direction:column;align-items:center;gap:2px}.walls img{width:100%;max-width:230px;height:auto}
.walls figcaption{display:flex;align-items:center;gap:4px;font:22px 'Duet Hand Bold',ui-rounded,'Trebuchet MS',sans-serif;overflow-wrap:anywhere}
.addr{display:flex;align-items:center;justify-content:center;gap:4px;margin:14px 0 4px;font:20px 'Duet Hand Bold',ui-rounded,'Trebuchet MS',sans-serif;overflow-wrap:anywhere}
.addr .ic{width:30px;height:30px}.addr .ic svg{width:20px;height:20px}
.look .nav{margin-top:18px}

/* ---- the waiting scene: papers hang from a sagging line by pegs, the newest request behind the ones that came first ---- */
.scene{position:relative;width:min(96vw,780px);padding-top:6px}
.line{position:relative;width:100%}
.rope{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.rope path{fill:none;stroke:var(--ink);stroke-width:2.4;stroke-linecap:round;opacity:.62}
.hung{position:absolute;z-index:2}
.sway{position:relative;transform-origin:50% 0;animation:sway2 var(--sw,6.4s) ease-in-out infinite alternate;animation-delay:calc(var(--i,0)*-.9s)}
.hung.big .sway{--sw:7.6s}
@keyframes sway2{from{transform:rotate(-1.1deg)}to{transform:rotate(1.1deg)}}
.peg{position:absolute;top:-17px;left:50%;width:15px;height:33px;margin-left:-7.5px;z-index:4;overflow:visible}
.peg path,.peg circle{fill:#e8dbb9;stroke:#594739;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round}
.peg .sl{fill:none}.peg circle{fill:#594739;stroke:none}
.hung.big .peg.l{left:24%}.hung.big .peg.r{left:76%}
.sheet{position:relative;margin-top:2px;transform:rotate(var(--r,0deg));transform-origin:50% 0}
.mini{position:relative;isolation:isolate;width:100%;display:grid;place-items:center;filter:drop-shadow(1px 3px 3px #70532722)}
.mini.c0{--paper:#ffffff}.mini.c1{--paper:#dce1c6}.mini.c2{--paper:#fca7a7}
.mini:after{content:'';position:absolute;left:18%;right:18%;top:34%;height:2px;border-radius:2px;background:#59473933;box-shadow:0 8px #59473922,0 16px #59473922}
.mini b{position:relative;z-index:2;font:400 17px 'Duet Hand',ui-rounded,'Trebuchet MS',sans-serif;color:#594739}
.mine{position:relative;isolation:isolate;margin-top:2px;padding:30px 16px 16px;text-align:center;filter:drop-shadow(2px 5px 4px #70532730);transform:rotate(-.8deg);transition:transform .9s cubic-bezier(.3,1.4,.5,1),filter .9s}
.mine .pair{display:flex;justify-content:center;gap:12px}.mine figure{margin:0;width:44%}.mine .pair img{width:100%;height:84px;object-fit:contain}
.mine figcaption{font:19px 'Duet Hand Bold',ui-rounded,'Trebuchet MS',sans-serif;overflow-wrap:anywhere}
.mine .addr{font-size:15px;margin:8px 0 0;line-height:1.25}
.stamp{position:absolute;left:50%;top:58%;width:min(78%,220px);margin-left:calc(min(78%,220px)/-2);z-index:4;pointer-events:none;opacity:0;mix-blend-mode:multiply;transform:rotate(-9deg)}
.stamp path{fill:#fff6e5dd;stroke:currentColor;stroke-width:4;stroke-linejoin:round}
.stamp text{fill:currentColor;font:400 36px 'Duet Hand',ui-rounded,'Trebuchet MS',sans-serif;letter-spacing:.04em}
.stamp.ok{color:#5d7a52}.stamp.no{color:#a65f4c}
.scene[data-state=live] .stamp.ok,.scene[data-state=declined] .stamp.no{animation:stampIn .55s cubic-bezier(.3,1.5,.5,1) forwards}
@keyframes stampIn{0%{opacity:0;transform:rotate(-9deg) scale(2.6)}55%{opacity:1;transform:rotate(-9deg) scale(.93)}100%{opacity:.93;transform:rotate(-9deg) scale(1)}}
/* approved: the other papers come off the line one after another and drift down; the card steadies */
.scene[data-state=live] .hung.sm .sheet{animation:release 1.3s cubic-bezier(.5,0,.8,.6) calc(var(--i,0)*.14s) forwards}
@keyframes release{to{transform:translate(calc(var(--i,0)*-6px - 10px),260px) rotate(calc(var(--r,0deg)*5));opacity:0}}
.scene[data-state=live] .hung.big .sway{animation:none}.scene[data-state=live] .mine{transform:rotate(0)}
/* not approved: the card loses its right peg, swings down from the left one, and goes quiet */
.scene[data-state=declined] .hung.big .sway{animation:none;transform:rotate(0)}
.scene[data-state=declined] .mine{transform-origin:24% 0;transform:rotate(11deg) translateY(4px);filter:saturate(.55) drop-shadow(2px 5px 4px #70532730)}
.scene[data-state=declined] .hung.big .peg.r{animation:pegdrop 1.2s ease-in .2s forwards}
@keyframes pegdrop{to{transform:translate(14px,200px) rotate(70deg);opacity:0}}
.scene[data-state=declined] .hung.sm{opacity:.4}
.scene[data-state=none] .hung.big{display:none}
.state{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px 10px;margin:12px 0 4px;font:22px 'Duet Hand Bold',ui-rounded,'Trebuchet MS',sans-serif;text-align:center}
.state svg{width:26px;height:26px;stroke:#594739;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.state .hg{animation:flip 3.2s ease-in-out infinite}
@keyframes flip{0%,40%{transform:rotate(0)}60%,100%{transform:rotate(180deg)}}
.scene[data-state=live] .state .hg,.scene[data-state=declined] .state .hg{animation:none}
.ahead{display:inline-flex;align-items:center;gap:6px;margin-left:8px;padding:2px 12px 2px 8px;border:1.8px solid #594739;border-radius:5px 10px 4px 9px;background:#fff8;font:20px 'Duet Hand Bold',ui-rounded,'Trebuchet MS',sans-serif}
.ahead svg{width:20px;height:20px}
.acts2{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:14px;flex-wrap:wrap}
.petals{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:5}
.petal{position:absolute;top:-24px;width:13px;height:17px;border-radius:70% 0 70% 0;background:var(--c);border:1.4px solid #5947394d;opacity:.95;animation:petal var(--d) linear var(--dl) infinite}
@keyframes petal{0%{transform:translate(0,0) rotate(0)}50%{transform:translate(var(--s),190px) rotate(200deg)}100%{transform:translate(0,380px) rotate(420deg);opacity:0}}
.hold{text-align:center;width:100%;display:flex;flex-direction:column;align-items:center;margin-top:3vh}

/* ---- sound, the deer ---- */
.snd{position:fixed;right:14px;top:14px;z-index:6;width:46px;height:46px;border-radius:50%;border:2px solid #594739;background:#e8dbb9;cursor:pointer;display:grid;place-items:center;padding:0}
.snd svg{width:24px;height:24px;stroke:#594739;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
body[data-time=evening]{--pb:1.15}body[data-time=night]{--pb:1.9}
.hills .pet{position:absolute;left:11%;bottom:5px;width:clamp(96px,15vw,170px);filter:brightness(var(--pb,1));z-index:1}

@media(max-width:720px){.card{padding:44px 24px 28px}.duo{grid-template-columns:1fr;gap:30px}.duo .card:nth-child(2){margin-top:0}.walls{gap:8px}.hang{min-height:250px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}.petals{display:none}.scene[data-state=live] .stamp.ok,.scene[data-state=declined] .stamp.no{opacity:.93!important}}
.stepnav{width:min(92vw,520px)}.stepnav.wide{width:min(94vw,700px)}.stepnav .hint{margin-top:10px}
.pw-note{display:flex;align-items:center;justify-content:center;gap:4px;font:20px 'Duet Hand Bold',ui-rounded,'Trebuchet MS',sans-serif;letter-spacing:.2em;margin:6px 0 0}

/* ---- the same sky and meadow as the walls: three cloud layers (clouds.js), three hill layers, a few flowers ---- */
.cloud-field{inset:0 0 30% 0;overflow:hidden;filter:var(--cf);opacity:var(--co);transition:filter 1s,opacity 1s}
.cloud-layer{position:absolute;inset:0;will-change:transform;opacity:var(--layer-alpha,1)}
.cloud{position:absolute;left:0;animation:cloud-drift var(--dur,240s) linear var(--delay,0s) infinite;will-change:transform}
.cloud img{display:block;width:100%;height:auto;animation:cloud-bob var(--bob,8s) ease-in-out infinite alternate}
.cloud-layer.far img{filter:saturate(.8)}
@keyframes cloud-drift{from{transform:translate3d(-100%,0,0)}to{transform:translate3d(100vw,0,0)}}
@keyframes cloud-bob{from{transform:translateY(-3px)}to{transform:translateY(4px)}}
.hills{left:0;right:0;bottom:0;height:var(--hh);filter:var(--hf);transition:filter 1s}
.hills i{position:absolute;left:-24px;right:-24px;bottom:0;background-repeat:repeat-x;background-size:auto 100%;will-change:transform}
.hills i.far{height:100%;background-image:url(/assets/hills-far.svg);background-position:0 100%}
.hills i.mid{height:84%;background-image:url(/assets/hills-mid.svg);background-position:-460px 100%}
.hills i.near{height:64%;background-image:url(/assets/hills-near.svg);background-position:-900px 100%}
.flw{position:absolute;inset:0;will-change:transform}
.ff{position:absolute;bottom:9px;width:var(--w,32px);height:auto;transform-origin:50% 100%;animation:sway 7s ease-in-out infinite alternate;pointer-events:none}
.ff:nth-child(odd){bottom:7px}.ff:nth-child(3n){bottom:13px}
.ff1{animation-duration:6.2s}.ff2{animation-duration:7.4s;animation-delay:-2s}.ff3{animation-duration:8.1s;animation-delay:-4s}.ff4{animation-duration:6.8s;animation-delay:-1s}.ff5{animation-duration:7.8s;animation-delay:-3s}
@keyframes sway{from{transform:rotate(-1.8deg)}to{transform:rotate(1.8deg)}}
@media(prefers-reduced-motion:reduce){.cloud,.cloud img,.ff{animation:none}.cloud{left:var(--rest,30%)}}
@media(max-width:620px){.ff{width:calc(var(--w,32px)*.8)}}

/* ---- the papers: notes wear the same textured stock as the walls (tiles from paper.js) ---- */
.card.cream:before,.paper.cream:before{background-image:var(--tex-cream,none),linear-gradient(180deg,#ffffff22,transparent 14%,transparent 88%,#7a5a2c12);background-size:300px 300px,100% 100%}
.card.rose:before,.paper.rose:before{background-image:url(/assets/paper-rose.jpg),linear-gradient(180deg,#ffffff22,transparent 14%,transparent 88%,#7a5a2c12);background-size:cover,100% 100%}
.card.sage:before,.paper.sage:before{background-image:var(--tex-sage,none),linear-gradient(180deg,#ffffff22,transparent 14%,transparent 88%,#7a5a2c12);background-size:300px 300px,100% 100%}
.card.blue:before,.paper.blue:before{background-image:var(--tex-blue,none),linear-gradient(180deg,#ffffff22,transparent 14%,transparent 88%,#7a5a2c12);background-size:300px 300px,100% 100%}

.scene[data-state=live] .mine .addr,.scene[data-state=live] .mine figcaption,.scene[data-state=declined] .mine .addr,.scene[data-state=declined] .mine figcaption{opacity:.3;transition:opacity .6s .3s}

.hg .sand{fill:currentColor;stroke:none}.state .hg{color:#594739}

/* ---- the title: heavier strokes, and the cat sits on top of the word ---- */
.wm{margin-top:0;padding-top:1.45em;font-family:'Duet Hand',ui-rounded,'Trebuchet MS',sans-serif;-webkit-text-stroke:.035em currentColor;paint-order:stroke fill}
.wm .pw{display:inline-block}
.wm img{position:absolute;top:auto;bottom:calc(100% - .34em);right:-.05em;width:3.5em;max-width:none;-webkit-text-stroke:0}
.lb,.about h2{-webkit-text-stroke:.7px currentColor;paint-order:stroke fill}
.lb{font-size:26px}

/* ---- the what-it-is page: a real sheet, with another peeking out beneath, easy-to-read type ---- */
.about{padding:54px 40px 38px;margin-top:30px}
.about:after{content:'';position:absolute;inset:6px -7px -9px 7px;z-index:-2;background:#fffdf7;transform:rotate(1.3deg);clip-path:polygon(0 1%,18% 0,41% .6%,66% 0,100% .8%,99.4% 38%,100% 71%,99.2% 100%,72% 99.2%,44% 100%,19% 99.4%,.4% 100%,0 62%,.6% 31%);box-shadow:inset 0 0 0 1px #8d745b24}
.about:before{box-shadow:inset 0 0 0 1px #8d745b1f}
.about h2{margin:24px 0 6px;font-size:21px;letter-spacing:.03em;position:relative;display:inline-block}
.about h2:after{content:'';position:absolute;left:-2px;right:-6px;bottom:-4px;height:5px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 6' preserveAspectRatio='none'%3E%3Cpath d='M1 3.5q12-3 24-.5t25 .3 25-.6 24 .8' fill='none' stroke='%2366745a' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;opacity:.7}
.about p,.about li{letter-spacing:-.02em;word-spacing:.14em;line-height:1.65}
.about h2,.lb{letter-spacing:.01em}
.about p{margin:0 0 8px}.about h2+p{display:block}
.tp.blue{--len:96px}
[data-tape=h] .tp{--r:-1deg}
.about[data-tape=h] .tp{--x:50%;--y:3px;--r:-1deg}

/* ---- two name cards, the same size and straight across from each other ---- */
.duo{align-items:stretch;gap:30px}
.duo .card{display:flex;flex-direction:column;justify-content:space-between;padding:46px 22px 26px}
.duo .card:nth-child(1){--tilt:-.5deg}.duo .card:nth-child(2){--tilt:.5deg;margin-top:0}
.duo .pt{margin-bottom:18px}
.card:before,.paper:before{clip-path:polygon(.2% .8%,18% .3%,38% .6%,58% .1%,79% .5%,99.6% .2%,99.7% 22%,99.3% 46%,99.8% 70%,99.5% 99%,80% 99.3%,60% 98.9%,41% 99.6%,21% 99.2%,.4% 99.6%,.1% 76%,.5% 52%,.1% 28%)}

/* ---- a quiet nudge to scroll: a small hand-drawn stroke that fades in, bobs gently, and goes at the first scroll ---- */
.scrollhint{position:fixed;left:50%;bottom:18px;z-index:5;width:34px;height:24px;margin-left:-17px;opacity:0;pointer-events:none;transition:opacity 1s}
.scrollhint svg{width:100%;height:100%;fill:none;stroke:var(--muted);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;animation:nudge 2.6s ease-in-out infinite}
.scrollhint.on{opacity:.55}
@keyframes nudge{0%,100%{transform:translateY(0)}50%{transform:translateY(5px)}}

/* ---- music: the coffee mug sitting in the grass beside the deer. Steam means it is playing. ---- */
.mug{position:fixed;left:calc(11% + clamp(96px,15vw,170px) + 10px);bottom:4px;z-index:6;width:74px;height:74px;padding:0;border:0;background:none;cursor:pointer;transition:transform .25s}
.mug img{display:block;width:100%;height:100%;pointer-events:none}
.mug:hover{transform:translateY(-3px) rotate(-3deg)}.mug:active{transform:translateY(0) scale(.96)}
.mug[aria-pressed=false] img{opacity:.8}
@media(max-width:620px){.mug{width:54px;height:54px;left:calc(11% + clamp(96px,15vw,170px) + 4px)}}
@media(prefers-reduced-motion:reduce){.scrollhint svg,.sway{animation:none}}

/* ---- the animal on the title rests on the letters: its belly line sits just inside the cap tops ---- */
.wm img{top:-1.11em;bottom:auto;left:1.3em;right:auto;width:3.5em}

/* ---- proper cards: even corners, a clear edge, a thin inner line ---- */
.card:before,.paper:before{clip-path:none;border-radius:12px;border:2px solid #594739;box-shadow:inset 0 0 0 5px #fff0,inset 0 0 0 6px #5947391f}
.card{transform:rotate(var(--tilt,0deg));filter:drop-shadow(0 6px 5px #70532722)}
.duo .card:nth-child(1),.duo .card:nth-child(2){--tilt:0deg}
.about{--tilt:0deg}
.about:after{clip-path:none;border-radius:12px;border:2px solid #59473955;inset:7px -8px -10px 8px;transform:rotate(1.2deg);box-shadow:none}
.mini:before{border-width:1.6px;border-radius:7px}.mini:after{display:none}
.mini{filter:drop-shadow(0 3px 3px #70532722)}
.mini .ln{position:absolute;left:20%;right:20%;top:32%;height:2px;border-radius:2px;background:#59473933;box-shadow:0 8px #59473922,0 16px #59473922}
.mine .addr{padding:0 4px}

/* ---- buttons: hand-cut paper tags. Primary is moss with a cream mark; the rest are paper with a cocoa edge. ---- */
.go,.bk,.cta,.ic,.chip,.lnk,.gear{-webkit-tap-highlight-color:transparent}
.go,.cta{background:#66745a;border:2px solid #3d4933;color:#fff9e9;box-shadow:2px 3px 0 #3d493333;transition:transform .15s,box-shadow .15s,background .2s}
.go svg{stroke:#fff9e9}
.go{width:58px;height:48px;border-radius:7px 11px 6px 10px}
.cta{padding:12px 24px;border-radius:7px 11px 6px 10px}
.go:hover:not([disabled]),.cta:hover:not([disabled]){background:#58674c;transform:translateY(-2px);box-shadow:2px 5px 0 #3d493333}
.go:active:not([disabled]),.cta:active:not([disabled]){transform:translateY(1px);box-shadow:0 1px 0 #3d493333}
.cta.sec{background:#fff6e5;border-color:#594739;color:#594739;box-shadow:2px 3px 0 #5947391f}.cta.sec:hover{background:#f5dfb7}
.bk{width:46px;height:42px;background:#fff6e5aa;border:2px solid #594739aa;border-radius:6px 10px 5px 9px;box-shadow:2px 3px 0 #5947391a;transition:transform .15s,background .2s}
.bk:hover{background:#fff6e5;transform:translateY(-2px)}.bk:active{transform:translateY(1px)}
.ic{width:38px;height:38px;border-radius:50% 46% 52% 44%/46% 52% 44% 50%;transition:background .2s,transform .15s}
.ic:hover{background:#5947391a;transform:rotate(-4deg)}
.lnk{border-radius:6px;text-decoration-thickness:1.6px;transition:background .2s}.lnk:hover{background:#5947391a}
.chip{border-radius:8px 12px 7px 11px;box-shadow:1px 2px 0 #5947391a;transition:transform .15s,background .2s}.chip:hover{transform:translateY(-2px)}
.sw{background:#fff6e5}

/* ---- where you are: four stepping stones on a dotted path ---- */
.chips{gap:0;align-items:center}
.chips span{position:relative;width:20px;height:20px;border:2px solid #594739;border-radius:48% 54% 45% 56%/55% 46% 54% 47%;background:#fff6e5;opacity:.55;transition:all .3s;margin:0 0 0 34px;transform:none}
.chips span:first-child{margin-left:0}
.chips span:not(:first-child):before{content:'';position:absolute;right:calc(100% + 3px);top:50%;width:26px;border-top:2px dotted #594739;opacity:.6;transform:translateY(-50%)}
.chips span.d{opacity:1;background:#66745a;border-color:#3d4933}
.chips span.d:after{content:'';position:absolute;left:5px;top:2px;width:5px;height:9px;border:solid #fff9e9;border-width:0 2px 2px 0;transform:rotate(42deg)}
.chips span.c{opacity:1;background:#dba654;width:26px;height:26px;box-shadow:0 0 0 4px #dba65433}

/* ---- sound: a gear in the corner, like the main page, with only the music inside ---- */
.gear{position:fixed;right:14px;top:14px;z-index:6;width:50px;height:50px;display:grid;place-items:center;padding:0;cursor:pointer;background:#fff6e5;border:2px solid #594739;border-radius:9px 12px 8px 11px;box-shadow:2px 3px 0 #5947391f;transition:transform .15s}
.gear svg{width:28px;height:28px;stroke:#594739;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.gear:hover{transform:translateY(-2px) rotate(-4deg)}
html[data-read=no] .gear{display:none}
.dlg{position:fixed;inset:70px 14px auto auto;margin:0;width:min(86vw,300px);padding:24px 24px 22px;border:0;background:none;color:#594739;isolation:isolate;overflow:visible;filter:drop-shadow(0 8px 10px #3b2f2633)}
.dlg:not([open]){display:none}
.dlg:before{content:'';position:absolute;inset:0;z-index:-1;background:#fff6e5;border:2px solid #594739;border-radius:12px;box-shadow:inset 0 0 0 5px #fff0,inset 0 0 0 6px #5947391f}
.dlg::backdrop{background:#3b2f2622}
.dlg h2{margin:0 0 14px;font:400 22px 'Duet Hand',ui-rounded,'Trebuchet MS',sans-serif;letter-spacing:.03em;-webkit-text-stroke:.6px currentColor}
.dlg .x{position:absolute;right:10px;top:10px;width:38px;height:36px}
.mus{display:flex;justify-content:space-between;font:17px 'Duet Hand Bold',ui-rounded,'Trebuchet MS',sans-serif;margin:0 0 12px}
.mus span:last-child{color:#85745f}
.mrow{display:flex;gap:10px;align-items:center}
.mrow .cta{flex:1;display:flex;justify-content:center;align-items:center;gap:8px;padding:10px 14px;font-size:17px}
.mrow .cta svg{width:20px;height:20px;fill:currentColor;stroke:none}
.mrow .bk{flex:none}
.vol{display:flex;justify-content:space-between;margin:20px 0 10px;font:16px 'Duet Hand Bold',ui-rounded,'Trebuchet MS',sans-serif}
.dlg input[type=range]{width:100%;accent-color:#66745a;height:24px;margin:0}

/* ---- the line: a twisted rope with a soft shadow, nailed at both ends; pegs lean with it ---- */
.rope path{fill:none;stroke-linecap:round}
#ropeShade{stroke:#3b2f26;stroke-width:5;opacity:.07;transform:translateY(7px)}
#ropePath{stroke:var(--ink);stroke-width:3.2;opacity:.7}
#ropeTwist{stroke:var(--sky1,#f5ecda);stroke-width:1.6;stroke-dasharray:2.5 5.5;opacity:.75}
#nails circle{fill:#e8dbb9;stroke:#594739;stroke-width:1.8}
.peg{transform:rotate(var(--lean,0deg));transform-origin:50% 45%;width:17px;height:38px;margin-left:-8.5px;top:-20px;filter:drop-shadow(0 2px 1px #3b2f2633)}
.hung.big .peg.l,.hung.big .peg.r{margin-left:-8.5px}
.scene[data-state=declined] .hung.big .peg.r{animation:pegdrop 1.2s ease-in .2s forwards}
@keyframes pegdrop{to{transform:translate(14px,200px) rotate(70deg);opacity:0}}
/* night-safe colours for items sitting on the sky */
.scene .lnk,.state .hg,.state .ck,.state svg{color:var(--ink)}
.scene .lnk{border-color:var(--ink)}
.state .hg{color:var(--ink)}
.lnk{color:var(--ink)}
.lnk:hover{background:color-mix(in srgb,var(--ink) 14%,transparent)}
.state svg{stroke:var(--ink)}.hg .sand{stroke:none}

/* =====================================================================
   Round 3: one page with no scrolling, clearer buttons, info marks, soft paper
   ===================================================================== */
html,body{height:100%;overflow:hidden}
main{height:100vh;height:100dvh;min-height:0;overflow-x:hidden;overflow-y:auto;scrollbar-width:none;padding:clamp(6px,1.6vh,24px) 0 calc(var(--hh)*.5 + 8px)}
main::-webkit-scrollbar{display:none}
.wm{margin-top:clamp(10px,4vh,34px);font-size:clamp(34px,min(7vw,9.5vh),84px)}
.sub{font-size:clamp(15px,2.3vh,18px)}
.stage{gap:clamp(12px,2.4vh,26px);padding:clamp(8px,1.6vh,22px) 0}
.scrollhint{display:none}

/* the first page: three short pages in one card, so nothing scrolls */
.about{width:min(94vw,560px);padding:46px clamp(20px,5vw,40px) 24px;margin-top:clamp(10px,3vh,30px)}
.about .pg{display:none;text-align:left;min-height:clamp(150px,30vh,260px)}.about .pg.on{display:block;animation:pgin .35s ease}
@keyframes pgin{from{opacity:0;transform:translateX(10px)}to{opacity:1;transform:none}}
.about h2{margin:6px 0 8px;font-size:21px}
.about p,.about li{font-size:clamp(14.5px,2.2vh,17px);line-height:1.5;margin:0 0 8px}
.about ol,.about ul{padding-left:22px;margin:0}
.apdots{display:flex;justify-content:center;gap:0;margin:14px 0 4px}
.apdots button{position:relative;padding:0;cursor:pointer;width:20px;height:20px;border:2px solid #594739;border-radius:48% 54% 45% 56%/55% 46% 54% 47%;background:#fff6e5;opacity:.6;transition:all .25s;margin:0 0 0 30px}
.apdots button:first-child{margin-left:0}
.apdots button:not(:first-child):before{content:'';position:absolute;right:calc(100% + 3px);top:50%;width:22px;border-top:2px dotted #594739;opacity:.6;transform:translateY(-50%)}
.apdots button.d{opacity:1;background:#66745a;border-color:#3d4933}
.apdots button.c{opacity:1;background:#dba654;width:26px;height:26px;box-shadow:0 0 0 4px #dba65433}
.about .apnav{margin-top:12px;justify-content:space-between;min-height:48px}
.about .apnav .go{margin-left:auto}
@media(max-width:820px){.about{padding:42px 20px 20px}}

/* the two name cards sit side by side, even on a phone */
.duo{display:grid;grid-template-columns:1fr 1fr;gap:24px;width:min(94vw,700px)}
@media(max-width:720px){.duo{grid-template-columns:1fr 1fr;gap:12px}.duo .card{padding:40px 12px 18px}.duo .card .pt{width:100%}.duo .f.nm{font-size:17px;padding:9px 6px}.stepnav.wide{width:94vw}}

/* ---- buttons ---- */
.go,.cta,.bk{display:inline-flex;align-items:center;justify-content:center;gap:9px;height:48px;width:auto;min-width:48px;padding:0 22px;font:400 19px/1 'Duet Hand Bold',ui-rounded,'Trebuchet MS',sans-serif;letter-spacing:.02em;text-decoration:none;cursor:pointer;border-radius:14px 17px 13px 16px/16px 13px 17px 14px;transition:transform .14s,box-shadow .14s,background .2s,filter .2s;-webkit-user-select:none;user-select:none}
.go svg,.cta svg,.bk svg{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.go,.cta{color:#fff9e9;background:linear-gradient(180deg,#75865f,#66745a);border:2px solid #3d4933;box-shadow:0 3px 0 #3d4933,0 8px 12px #3d493338,inset 0 1px 0 #ffffff3d}
.go:hover:not([disabled]),.cta:hover:not([disabled]){transform:translateY(-1px);filter:brightness(1.06);box-shadow:0 4px 0 #3d4933,0 10px 14px #3d493340,inset 0 1px 0 #ffffff3d}
.go:active:not([disabled]),.cta:active:not([disabled]){transform:translateY(3px);box-shadow:0 0 0 #3d4933,0 2px 4px #3d493340,inset 0 1px 0 #ffffff3d}
.go[disabled]{cursor:not-allowed;color:#f4efe2;background:#b5bca9;border-color:#8c9482;box-shadow:0 3px 0 #8c9482;filter:none}
.go.send{padding:0 26px}
.bk{color:#594739;background:linear-gradient(180deg,#fffaf0,#fff2da);border:2px solid #594739;box-shadow:0 3px 0 #59473977,0 8px 12px #59473320,inset 0 1px 0 #fff}
.bk:hover{transform:translateY(-1px);background:#fff4e0;box-shadow:0 4px 0 #59473977,0 10px 14px #59473326,inset 0 1px 0 #fff}
.bk:active{transform:translateY(3px);box-shadow:0 0 0 #59473977,0 2px 4px #59473326,inset 0 1px 0 #fff}
.bk.x{position:absolute;right:12px;top:12px;width:40px;height:40px;min-width:0;padding:0;border-radius:50% 46% 52% 44%/46% 52% 44% 50%;box-shadow:0 2px 0 #59473966}
.bk.x svg{width:18px;height:18px}
.cta.sec{color:#594739;background:linear-gradient(180deg,#fffaf0,#fff2da);border-color:#594739;box-shadow:0 3px 0 #59473977}
.ic.on{background:#5947391f}
.gear{width:52px;height:52px;border-radius:16px 14px 17px 13px/14px 17px 13px 16px;background:linear-gradient(180deg,#fffaf0,#fff2da);box-shadow:0 3px 0 #59473977,0 8px 12px #59473320}
.gear:hover{transform:translateY(-1px) rotate(-6deg)}.gear:active{transform:translateY(3px)}
.stepnav .nav{gap:12px}
.acts2 .bk,.acts2 .go{height:44px;padding:0 18px;font-size:17px}
.acts2{gap:12px 14px;margin-top:10px}

/* ---- step stones you can press ---- */
.chips button{position:relative;padding:0;cursor:pointer;width:22px;height:22px;border:2px solid #594739;border-radius:48% 54% 45% 56%/55% 46% 54% 47%;background:#fff6e5;opacity:.6;transition:all .25s;margin:0 0 0 34px;color:inherit;-webkit-tap-highlight-color:transparent}
.chips button:first-child{margin-left:0}
.chips button:not(:first-child):before{content:'';position:absolute;right:calc(100% + 3px);top:50%;width:26px;border-top:2px dotted var(--ink);opacity:.6;transform:translateY(-50%);pointer-events:none}
.chips button.d{opacity:1;background:#66745a;border-color:#3d4933}
.chips button.d:after{content:'';position:absolute;left:6px;top:2px;width:5px;height:9px;border:solid #fff9e9;border-width:0 2px 2px 0;transform:rotate(42deg)}
.chips button.c{opacity:1;background:#dba654;width:28px;height:28px;box-shadow:0 0 0 4px #dba65433}
.chips button.off{cursor:default;opacity:.35}
.chips button:not(.off):not(.c):hover{transform:translateY(-3px);opacity:1}
.chips{padding:6px 0}

/* ---- a small hand-drawn "i" on each card ---- */
.inf{position:absolute;right:12px;top:10px;z-index:6;width:30px;height:30px;display:grid;place-items:center;cursor:help;border-radius:50%;outline-offset:2px}
.inf>svg{width:26px;height:26px;fill:#fff6e5aa;stroke:#594739;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s}
.inf:hover>svg,.inf:focus>svg{transform:rotate(-8deg) scale(1.1)}
.tip{position:absolute;right:-4px;top:calc(100% + 8px);width:max-content;max-width:min(250px,74vw);padding:10px 13px;border:2px solid #594739;border-radius:12px 14px 11px 13px;background:#fff6e5;color:#594739;font:16px/1.35 'Duet Hand Bold',ui-rounded,'Trebuchet MS',sans-serif;letter-spacing:-.01em;text-align:left;box-shadow:0 6px 12px #3b2f2633;opacity:0;visibility:hidden;transform:translateY(-4px);transition:opacity .18s,transform .18s,visibility .18s;pointer-events:none}
.inf:hover .tip,.inf:focus .tip,.inf:focus-within .tip{opacity:1;visibility:visible;transform:none}
.card:has(.inf:hover),.card:has(.inf:focus),.mine:has(.inf:hover),.mine:has(.inf:focus){z-index:30}
.scene:not([data-state=wait]) .inf{display:none}
.mine .inf{right:8px;top:6px}

/* ---- soft paper for the cream cards: warm, a little grain, a little watercolour ---- */
.cream{--paper:#fff6e5}
.card.cream:before,.paper.cream:before{background-color:#fff6e5;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .32 0 0 0 0 .2 0 0 0 .7 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E"),radial-gradient(110% 80% at 12% 0%,#fffdf6,transparent 62%),radial-gradient(90% 80% at 95% 100%,#f1dfbd99,transparent 65%),radial-gradient(60% 50% at 50% 55%,#e9efd633,transparent 70%);background-size:220px 220px,100% 100%,100% 100%,100% 100%}

/* ---- review card: the passphrase with an eye ---- */
.pw-note{display:flex;align-items:center;gap:8px;margin:14px 0 0;text-align:left}
.pw-note .k{font:16px 'Duet Hand Bold',ui-rounded,'Trebuchet MS',sans-serif;color:#85745f}
.v{flex:1;min-width:0;min-height:42px;display:flex;align-items:center;padding:6px 12px;border:1.5px solid #59473966;border-radius:10px;background:#fffaf0aa;font:21px 'Duet Hand Bold',ui-rounded,'Trebuchet MS',sans-serif;letter-spacing:.06em;overflow-wrap:anywhere;color:#594739}
.v:not(.open){letter-spacing:.14em}

/* ---- after sending: keep the passphrase ---- */
.keep{width:min(92vw,440px);margin:2px auto 0;color:#594739}
.keep:not(:empty){padding:12px 16px 14px;border:2px solid #594739;border-radius:14px;background:#fff6e5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .32 0 0 0 0 .2 0 0 0 .7 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.14'/%3E%3C/svg%3E");box-shadow:0 6px 12px #3b2f2626}
.kt{margin:0 0 8px;font:16px/1.35 'Duet Hand Bold',ui-rounded,'Trebuchet MS',sans-serif;text-align:left}.kt b{font-weight:400;border-bottom:2px solid #66745a}
.kv{display:flex;align-items:center;gap:6px}

/* ---- the note for the owner ---- */
.dlg.note{inset:0;margin:auto;height:fit-content;width:min(92vw,420px);padding:28px 24px 22px}
.dlg .nt{margin:0 0 12px;font:16px/1.4 'Duet Hand Bold',ui-rounded,'Trebuchet MS',sans-serif}
.dlg textarea{display:block;width:100%;resize:none;border:2px solid #594739;border-radius:10px;background:#fffaf0;padding:10px 12px;font:17px/1.4 'Duet Hand Bold',ui-rounded,'Trebuchet MS',sans-serif;color:#594739}
.dlg textarea::placeholder{color:#85745f}
.nrow{margin-top:12px;justify-content:space-between}.cnt{font:15px 'Duet Hand Bold',ui-rounded,'Trebuchet MS',sans-serif;color:#85745f}
.dlg .hint{min-height:22px;margin:8px 0 0}
.mrow .cta{height:46px;padding:0 14px}.mrow .bk{height:46px;width:46px;padding:0}

/* ---- the hourglass: sand runs down, then it turns over ---- */
.state .hg{width:30px;height:30px;stroke:none;fill:none;animation:hgFlip 4.6s infinite}
.hg .gl{fill:none;stroke:var(--ink);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.hg .sandt,.hg .sandb{fill:#dba654;stroke:none}
.hg .stm{stroke:#dba654;stroke-width:1.1;stroke-linecap:round;stroke-dasharray:1.6 1.6;fill:none;animation:hgStream 4.6s linear infinite}
.hg .sandt{animation:hgTop 4.6s linear infinite}.hg .sandb{animation:hgBot 4.6s linear infinite}
@keyframes hgTop{0%{transform:translateY(0)}84%,100%{transform:translateY(8px)}}
@keyframes hgBot{0%{transform:translateY(8px)}84%,100%{transform:translateY(0)}}
@keyframes hgStream{0%{opacity:0;stroke-dashoffset:0}3%{opacity:1}80%{opacity:1}84%,100%{opacity:0;stroke-dashoffset:-26}}
@keyframes hgFlip{0%,86%{transform:rotate(0)}100%{transform:rotate(180deg)}}
.scene[data-state=live] .state .hg,.scene[data-state=declined] .state .hg{animation:none}
@media(prefers-reduced-motion:reduce){.state .hg,.hg .sandt,.hg .sandb,.hg .stm{animation:none}}

/* a short screen: tighten */
@media(max-height:720px){.card{padding-top:40px;padding-bottom:22px}.hang{min-height:200px}.keep:not(:empty){padding:9px 14px 11px}.kt{font-size:14.5px;margin-bottom:6px}}
@keyframes pgin{from{opacity:0}to{opacity:1}}
.about p,.about li{font-size:min(17px,max(13.5px,1.9vh));line-height:1.42;margin-bottom:6px}
.about .lb{margin-bottom:4px}.about h2{margin:4px 0 6px}
.about .pg{min-height:0}
@media(max-width:820px){.about{padding:40px 18px 16px}.about .lb{font-size:21px}}
/* fit a single screen: compact where it is short or narrow */
main{padding-bottom:calc(var(--hh)*.3 + 6px)}
@media(max-height:800px){.mine{padding:26px 14px 12px}.mine .pair img{height:66px}.mine .addr{margin-top:5px;font-size:14px}.scene .state{font-size:19px}.pt{height:104px}.walls img{max-width:190px}.look{padding-top:42px;padding-bottom:20px}.look .nav{margin-top:12px}.pw-note{margin-top:8px}}
@media(max-height:700px){.wm{margin-top:6px}.sub{display:none}.pt{height:88px}.walls img{max-width:150px}.mine .pair img{height:54px}.chips{padding:2px 0}.stage{gap:8px}}
@media(max-width:480px){.acts2 .bk,.acts2 .go{height:40px;padding:0 14px;font-size:16px;gap:7px}.acts2 .bk svg,.acts2 .go svg{width:19px;height:19px}.acts2{gap:8px 10px}.keep:not(:empty){padding:9px 12px 11px}.kt{font-size:15px;margin-bottom:6px}.v{min-height:38px;font-size:19px}.stepnav .nav .go,.stepnav .nav .bk{height:46px}}
.keep{width:min(94vw,520px)}
main{overflow-x:clip}
main{width:100%;padding-left:3vw;padding-right:3vw}
@media(max-height:780px){.walls img{max-width:150px}.look .nav{margin-top:8px}.look{padding-top:38px}}

/* ---- round 4: the info note opens beside the cards; a calmer waiting screen ---- */
button.inf{padding:0;background:none;border:0;color:inherit}
.inf:hover .tip,.inf:focus .tip{opacity:0;visibility:hidden}
.infobox{position:fixed;z-index:50;padding:12px 15px;border:2px solid #594739;border-radius:12px 15px 11px 14px;color:#594739;font:17px/1.4 'Duet Hand Bold',ui-rounded,'Trebuchet MS',sans-serif;letter-spacing:-.01em;background:#fff6e5;box-shadow:0 8px 16px #3b2f2630;animation:ibin .22s ease}
.infobox[hidden]{display:none}
.infobox.side:before{content:'';position:absolute;left:-9px;top:18px;width:14px;height:14px;background:#fff6e5;border-left:2px solid #594739;border-bottom:2px solid #594739;transform:rotate(45deg)}
.infobox.below:before{content:'';position:absolute;left:50%;top:-9px;width:14px;height:14px;margin-left:-7px;background:#fff6e5;border-left:2px solid #594739;border-top:2px solid #594739;transform:rotate(45deg)}
@keyframes ibin{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
.inf[aria-expanded=true]>svg{fill:#dba654aa}
.keep{width:min(94vw,420px)}
.keep:not(:empty){padding:0;border:0;background:none;box-shadow:none;margin-top:0}
.kv{gap:8px}.kv .k{font:15px 'Duet Hand Bold',ui-rounded,'Trebuchet MS',sans-serif;color:var(--muted)}
.kv .v{background:#fff6e5;border-color:#594739;min-height:40px;font-size:20px}
.keep .kt{margin:6px 0 0;text-align:center;font:15px 'Duet Hand Bold',ui-rounded,'Trebuchet MS',sans-serif;color:var(--muted)}
.keep .kt b{border:0}
.scene .state{font-size:19px}
.acts2{margin-top:6px}

/* ---- round 5 ---- */
.gear.gi{right:76px}
html[data-read=no] .gear.gi{display:none}
.pt img.fly{position:relative;z-index:8}
.pt{overflow:visible}
.card:has(.pt img.fly){z-index:12}
.flyer{position:fixed;z-index:80;margin:0;pointer-events:none;object-fit:contain;padding:4px;transition:transform .44s cubic-bezier(.55,0,.25,1);filter:drop-shadow(0 6px 6px #3b2f2633)}
.pt img.fly{position:static}

/* ---- round 5: type and safety ---- */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
h1.wm{margin-bottom:0;font-weight:400}
.nojs{width:min(92vw,420px);margin:30px auto;padding:16px;text-align:center;border:2px solid #594739;border-radius:12px;background:#fff6e5;color:#594739}

/* ---- round 5: small screens, done with care ---- */
.about .apnav{flex-wrap:wrap}
@media(max-width:560px){
  .about{padding:34px 16px 14px}.about .lb{font-size:19px;margin:0 0 2px}
  .about h2{font-size:16px;margin:2px 0 4px}
  .apdots{margin:8px 0 2px}.about .apnav{margin-top:8px;gap:8px}
  .about #read{flex:1 0 100%;order:1;width:100%;height:46px;font-size:16px;margin:0}
}
@media(max-width:360px){.about p,.about li{font-size:13px}.wm{font-size:34px}.stepnav .nav .go,.stepnav .nav .bk{padding:0 16px}}
@media(max-height:520px){
  :root{--hh:60px}
  .sub{display:none}
  .wm{margin-top:2px;font-size:clamp(28px,min(7vw,11vh),44px)}
  main{padding-top:2px}
  .stage{gap:6px;padding:4px 0}
  .card{padding:34px 22px 16px}.duo .card{padding:34px 16px 14px}
  .pt{height:64px;margin-bottom:8px}.duo .pt{margin-bottom:8px}
  .duo .f.nm{padding:7px 6px}
  .about{margin-top:6px;padding:34px 22px 12px}.about p,.about li{font-size:14px;line-height:1.35}.about .pg{min-height:0}
  .look{padding-top:32px}.walls img{max-width:96px}.pw-note{margin-top:4px}
  .chips{padding:0}
  .mine .pair img{height:44px}.mine{padding:22px 12px 8px}
  .scene .state{font-size:17px}.hg{width:24px;height:24px}
  .gear{width:44px;height:44px;top:8px;right:8px}.gear.gi{right:60px}
}
.about .lb{display:block;text-align:center;border:0}
.about .lb:after{display:none}
@media(max-width:560px){.wm{margin-top:12px}.about p,.about li{line-height:1.34;margin-bottom:4px}.about ul{padding-left:18px}}
@media(max-width:560px){.gear{width:42px;height:42px;top:8px;right:8px;border-radius:13px}.gear svg{width:23px;height:23px}.gear.gi{right:58px}.wm{margin-top:26px}.pw-note{flex-wrap:wrap}.pw-note .k{flex:1 0 100%}.pw-note .v{min-width:120px}}
@media(max-height:520px){.wm{margin-top:calc(1.1em + 2px)}}
.go,.cta,.bk{white-space:nowrap}
.kv .v{white-space:nowrap;overflow:hidden}
@media(max-width:380px){.go.send{padding:0 14px;font-size:16px}.go,.bk{padding:0 16px}.kv .v{font-size:17px;padding:6px 8px;min-width:0}.kv .k{display:none}}

/* ---- responsive layer (final): fluid sizes, no clipped text, short and narrow screens ---- */
.addr span,.mine .addr{overflow-wrap:anywhere;min-width:0}
.card,.scene,.about{max-width:100%}
.f,textarea,input{max-width:100%;min-width:0}
main{scroll-padding:12px}
.wm{max-width:100%}
@media(max-width:400px){.wm{font-size:clamp(30px,min(10.2vw,8.6vh),84px)}.card{padding-left:16px;padding-right:16px}.about{padding-left:16px;padding-right:16px}}
/* the intro card never pushes the page: it shrinks to the screen and its page scrolls inside as a last resort */
html[data-read=no] main{overflow:hidden}
.about{display:flex;flex-direction:column;flex:0 1 auto;min-height:0;max-height:100%}
.about .pg.on{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-right:2px}
.about .apdots,.about .apnav,.about .lb{flex:none}
@media(max-height:640px){.sub{display:none}.wm{margin-top:4px}.card{padding-top:36px;padding-bottom:16px}.look .walls img{max-width:120px}.look{padding-top:34px}.pt{height:76px}.stage{gap:6px;padding:4px 0}.chips{padding:0}.keep:not(:empty){padding:7px 12px 8px}.kt{font-size:13.5px;margin-bottom:4px}.scene .state{font-size:17px}.hang{min-height:170px}.mine{padding:22px 12px 10px}.mine .pair img{height:46px}.inf{top:6px;right:8px}}
.kv .v{display:block;line-height:26px;white-space:nowrap;overflow-wrap:normal;overflow:hidden;text-overflow:ellipsis}.kv .v.open{white-space:normal;overflow-wrap:anywhere;line-height:1.25}
@media(max-width:400px){
  .kv{gap:5px}.kv .k{font-size:13px;letter-spacing:.02em}.kv .ic{width:34px;height:34px;flex:none}
  .v{font-size:17px;padding:4px 8px;min-height:36px}
  .about .apnav #read{height:auto;min-height:46px;padding:7px 12px;font-size:15px;line-height:1.15;letter-spacing:0;white-space:normal;text-align:center}
  .about .apnav .bk{padding:0 12px}
  .stepnav .nav .go,.stepnav .nav .bk{padding-left:12px;padding-right:12px}
  .stepnav .nav .go.send{white-space:nowrap;font-size:15px;letter-spacing:0}
  .mine .addr{font-size:12.5px}
}
@media(max-height:600px){.hang{min-height:150px}.wm{font-size:clamp(28px,min(9vw,7.6vh),84px)}.mine .pair img{height:40px}.scene .state{font-size:16px}.kt{font-size:13px}.acts2 .bk,.acts2 .go{height:36px}main{padding-bottom:calc(var(--hh)*.2 + 4px)}}
/* landscape phones: a compact layout so a step never needs scrolling */
@media(max-height:480px){
  .wm{font-size:clamp(22px,7.5vh,34px);margin-top:2px;padding-top:1.2em}.sub{display:none}
  main{padding:4px 0 4px}
  .stage{gap:2px;padding:2px 0;justify-content:flex-start}
  .card{padding:28px 14px 10px}.duo{gap:10px}.pt{height:62px;margin-bottom:8px}.duo .pt{margin-bottom:8px}.f{font-size:16px;padding:6px 8px}.duo .f.nm{font-size:16px;padding:6px}
  .look{padding-top:26px;padding-bottom:10px}.look .walls img{max-width:96px}.walls figcaption{font-size:16px}.addr{margin-top:2px;font-size:13px}.pw-note{margin-top:6px}
  .stepnav .hint{margin-top:2px;min-height:0;font-size:13px}.stepnav .nav,.stepnav{margin-top:4px}
  .stepnav .nav .go,.stepnav .nav .bk{height:38px}
  .chips{padding:0;transform:scale(.8);margin-top:-2px}
  .hang{min-height:110px}.mine{padding:18px 10px 8px}.mine .pair img{height:36px}.mine figcaption{font-size:15px}.scene .state{font-size:15px;margin:2px 0}
  .keep .kt{display:none}.acts2{margin-top:2px}.acts2 .bk,.acts2 .go{height:34px}
  .about{padding-top:34px}.about h2{margin:2px 0 4px;font-size:18px}.about p,.about li{font-size:13.5px;line-height:1.35;margin-bottom:4px}.about .pg.on{max-height:none}.about .apnav{margin-top:6px}.about .lb{font-size:17px}
  
}
@media(max-height:480px){.about{margin-top:4px}.about .apdots{margin:4px 0 0}.about .nav{margin-top:6px}}
@media(max-height:380px){.wm{font-size:20px}.pt{height:48px}.look .walls img{max-width:74px}.hang{min-height:84px}.mine .pair img{height:28px}.chips{display:none}.card{padding-top:24px}.look{padding-top:22px}.stepnav .hint{display:none}.pw-note{margin-top:2px}.scene .state{font-size:14px}.kv .v{min-height:30px}.hung.sm{display:none}}
@media(max-height:340px){.hang{min-height:64px}.mine{padding:14px 8px 6px}.mine .pair img{height:24px}.mine .addr{display:none}.scene{padding-top:0}.acts2 .bk,.acts2 .go{height:30px;font-size:14px}.wm{margin-top:0}}

/* scrollbars: soft, thin and in the page's colours, everywhere */
*{scrollbar-width:thin;scrollbar-color:#bfa882 transparent}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:#c4ad86;border:2.5px solid transparent;background-clip:padding-box;border-radius:10px}
::-webkit-scrollbar-thumb:hover{background:#a88f66;background-clip:padding-box}
::-webkit-scrollbar-corner{background:transparent}

/* intro card: only the long third page may scroll; the buttons are one row, one size, set a little lower */
.about .pg.on{overflow-y:hidden}
.about .pg:nth-of-type(3).on{overflow-y:auto}
.about{padding-bottom:14px}
.about .apdots{margin:8px 0 8px}
.about .apnav{display:flex;gap:10px;align-items:stretch;width:100%;margin:0}
.about .apnav [hidden]{display:none!important}
.about .apnav .bk,.about .apnav .go{height:48px;min-height:48px;padding:0 18px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:17px;line-height:1.1;margin:0;box-sizing:border-box}
.about .apnav .bk{flex:0 0 auto;min-width:96px}
.about .apnav .go{flex:1 1 0;min-width:0;white-space:nowrap}
@media(max-width:400px){.about .apnav #read{height:48px;min-height:48px;padding:4px 10px;font-size:14.5px;line-height:1.1;white-space:normal;text-align:center}.about .apnav .bk{min-width:84px;padding:0 12px}}
@media(max-height:480px){.about .apnav .bk,.about .apnav .go{height:40px;min-height:40px;font-size:15px}.about .apnav #read{height:40px;min-height:40px}}
/* the cat sits on the ECT of PROJECT */
.wm img{left:1.72em}
/* more reading room on the intro card */
html[data-read=no] .sub{display:none}
html[data-read=no] .wm{margin-top:0;font-size:clamp(30px,min(6vw,7.4vh),72px)}
.about .pg:nth-of-type(n+2).on{overflow-y:auto}
.about .pg:nth-of-type(3) li{font-size:.94em;line-height:1.32;margin-bottom:5px}
.about .lb{margin-top:0}
@media(max-height:380px){.about p,.about li{font-size:12.5px;line-height:1.28}.about .lb{font-size:15px;margin:0 0 4px}}
.about .apnav{flex-wrap:nowrap}
@media(max-height:340px){.about{padding:24px 20px 8px}.about p,.about li{font-size:11.5px;line-height:1.2;margin:0 0 3px}.about .apdots{margin:4px 0}}

/* one clean row: Back (when there is somewhere to go back to) and one primary button, same height */
.about #apback[style*="hidden"]{display:none}
.about #apback{order:0;flex:0 0 auto;text-decoration:none}
.about #apnext,.about #read{flex:1 1 0}
@media(max-width:400px){.about .apnav #read{letter-spacing:0;font-size:14px;padding:4px 8px}.about .apnav .bk{min-width:80px;padding:0 10px}.about .apnav .bk span{letter-spacing:.02em}}

/* dialog titles leave room for the close button */
.dlg h2{padding-right:56px}
/* the cat aligned to E / ECT of PROJECT */
.wm img{left:1.72em}
