@font-face{font-family:'Duet Hand';src:url('assets/duet-hand.ttf') format('truetype');font-display:swap}
@font-face{font-family:'Duet Script';src:url('assets/handwriting.ttf') format('truetype');font-display:swap;font-weight:100 900}
:root{--oat:#f2e8d5;--cream:#fff6e5;--cocoa:#594739;--terracotta:#a65f4c;--honey:#dba654;--moss:#66745a;--blue:#728b98;--line:#cdbb9e;--muted:#85745f;--paper-color:var(--cream)}
*{box-sizing:border-box}
body{margin:0;background-color:var(--oat);-webkit-user-select:none;user-select:none;color:var(--cocoa);font-family:Georgia,'Times New Roman',serif;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23977648' opacity='.055' filter='url(%23n)' d='M0 0h160v160H0z'/%3E%3C/svg%3E")}
button,input,textarea,select{font:inherit;color:inherit;-webkit-user-select:text;user-select:text}
button{cursor:pointer;border:0;background:none}
button:disabled{opacity:.4;cursor:default}
button,input,select,textarea{-webkit-tap-highlight-color:transparent}
button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--moss);outline-offset:5px}
[hidden]{display:none!important}
svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.svg-library{position:absolute;width:0;height:0;overflow:hidden}
.icon-button{display:inline-flex;align-items:center;justify-content:center;width:43px;height:43px;border:1px solid transparent;border-radius:44% 48% 43% 47%;transition:background .2s,transform .2s}
.icon-button:hover{background:#e6d8bd;transform:none}
.site-header{position:relative;text-align:center;padding:91px 20px 10px}
.top-actions{position:absolute;right:4.5%;top:24px;display:flex;align-items:center;gap:9px}
#identity{font-size:13px;margin-right:8px;color:var(--muted)}
.wordmark{display:inline-block;font:clamp(45px,7.8vw,98px)/1.15 'Duet Hand',sans-serif;letter-spacing:.015em;color:var(--cocoa);padding:8px 0 0;transform:none;white-space:nowrap}
.wordmark:hover{color:#72523c}
body[data-view=walls] .site-header{padding-top:65px}
body[data-view=walls] .wordmark{font-size:clamp(40px,6vw,74px)}
main{width:min(1200px,90%);margin:auto;padding-bottom:100px}
.welcome{width:min(670px,100%);margin:10px auto 0}
.animal-pair{display:flex;justify-content:center;align-items:center;gap:42px}
.animal-pair img{width:42%;max-width:290px}
.animal-pair img:first-child{transform:rotate(-2deg)}
.animal-pair img:last-child{transform:rotate(1deg)}
.entry-paper{width:300px;max-width:100%;margin:18px auto 0;padding:32px 29px 13px;position:relative;transform:rotate(-1deg);background:var(--cream);box-shadow:3px 5px 14px #7151250a;border:1px solid #d8c5a0;border-radius:2px 5px 4px 2px}
.entry-paper label{display:block;font:18px 'Duet Hand',sans-serif;letter-spacing:.05em;text-align:center}
.pass-row{display:flex;align-items:center;border-bottom:1px solid #b39972;margin-top:15px}
.pass-row input{background:none;border:0;padding:10px 4px;width:100%;min-width:0;text-align:center;letter-spacing:7px;font-size:22px}
.enter-button{color:var(--moss);flex-shrink:0}
.error{font:13px/1.45 Georgia,serif;color:#994e3e;min-height:0}
.error:empty{display:none}
.entry-paper .error{margin:15px 0 3px}
.entry-paper{padding-bottom:28px}
.choices{display:flex;justify-content:center;gap:55px;margin:25px auto 0;max-width:760px}
.person-choice{background:#fff6e5!important;opacity:1!important;width:320px;padding:15px 12px 20px;display:flex;flex-direction:column;align-items:center;border-radius:40% 42% 3% 5%;transition:background .2s,transform .2s}
.person-choice:hover{background:#fff6e580;transform:translateY(-5px)}
.person-choice img{width:100%;margin-bottom:20px}
.person-choice span{font-size:24px}
.person-choice svg{margin-top:15px;width:24px;height:24px}
.person-choice:first-child{color:var(--moss)}
.person-choice:last-child{color:#93612f}
.choose .error{text-align:center}
.paper-button{display:inline-flex;justify-content:center;align-items:center;gap:10px;min-height:43px;padding:11px 19px;border:1.4px solid #9e876a;border-radius:4px 8px 3px 7px;background:#fff6e566;font-size:14px;box-shadow:1px 2px 0 #8c704c12;transition:transform .15s,background .15s;white-space:nowrap}
.paper-button svg{width:22px;height:22px}
.paper-button:hover:not(:disabled){background:#f5dfb7;transform:translateY(-2px) }
.paper-button.primary{background:#66745a;border-color:#566249;color:#fff9e9;box-shadow:2px 3px 0 #66745a20}
.paper-button.primary:hover:not(:disabled){background:#58674c}
.wall-top{display:flex;align-items:center;justify-content:space-between;margin:18px 0 0;min-height:45px}
#connection{font-size:12px;color:var(--terracotta)}
.wall-grid{display:grid;grid-template-columns:1fr 1fr;gap:75px}
.wall{min-width:0;min-height:54vh;position:relative}
.wall+.wall:before{content:'';position:absolute;left:-38px;top:35px;bottom:0;border-left:1px dashed #b8a27e66}
.wall-heading{height:170px;display:flex;align-items:center;position:relative;border-bottom:1px solid var(--line)}
.wall-heading h1{font:30px Georgia,serif;font-weight:400;margin:0 0 20px}
.wall[data-owner=chat] h1{color:var(--moss)}
.wall[data-owner=aryan] h1{color:#9d6c35}
.wall-heading img{position:absolute;right:-10px;bottom:-21px;width:220px}
.wall[data-owner=chat] .wall-heading img{bottom:-13px;width:210px}
.notes{padding:47px 11px 0}
.note{--paper-color:var(--cream);position:relative;isolation:isolate;margin:0 0 43px;padding:24px 21px 13px;transform:rotate(-1deg);filter:drop-shadow(2px 4px 3px #70532713);animation:arrive .35s ease-out}
.note:before{content:'';position:absolute;inset:0;z-index:-1;background:var(--paper-color);clip-path:polygon(.2% .8%,6% .5%,12% .7%,19% .3%,27% .6%,35% .3%,44% .6%,53% .2%,62% .5%,70% .2%,79% .5%,88% .3%,94% .6%,99.8% .3%,99.6% 7%,99.9% 15%,99.5% 24%,99.8% 33%,99.4% 43%,99.8% 53%,99.5% 63%,99.9% 72%,99.5% 82%,99.8% 91%,99.5% 99.4%,93% 99.7%,86% 99.3%,78% 99.7%,70% 99.4%,61% 99.8%,52% 99.4%,43% 99.8%,34% 99.4%,25% 99.7%,16% 99.3%,8% 99.7%,.4% 99.4%,.1% 91%,.5% 82%,.1% 72%,.4% 62%,.1% 52%,.5% 42%,.1% 32%,.4% 22%,.1% 12%)}
.note:nth-child(3n+2){transform:rotate(1.1deg)}
.note:nth-child(3n){transform:rotate(-.4deg)}
.note canvas{display:block;width:100%;height:auto}
.note p{white-space:pre-wrap;overflow-wrap:anywhere;font:26px/1.45 'Duet Script',cursive;margin:0 0 15px}
.note time{display:block;text-align:right;font-size:10px;color:#8e7b61;margin-top:13px}
.mobile-tabs{display:none}
.older{display:block;margin:10px auto}
footer{height:0}
.footer-mug{position:fixed;bottom:8px;right:3.5%;width:80px;z-index:-1}
dialog{color:var(--cocoa);border:1px solid #baa382;border-radius:5px 8px 3px 7px;background:var(--oat);box-shadow:0 20px 100px #4f351e26}
dialog::backdrop{background:#493d2c44;backdrop-filter:blur(4px)}
#settings{margin:75px 4% auto auto;width:290px;padding:22px 25px}
.dialog-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}
.dialog-heading h2{font:26px 'Duet Hand',sans-serif;margin:0}
.setting-row{display:flex;justify-content:space-between;align-items:center;font-size:15px;gap:15px}
.setting-row .paper-button{padding:8px 12px;font-size:13px}
.volume-label{display:flex;justify-content:space-between;font-size:12px;margin:25px 0 15px}
.motion-row{border-top:1px solid var(--line);margin-top:25px;padding-top:20px;font-size:13px}
.motion-row input{width:18px;height:18px;accent-color:var(--moss)}
input[type=range]{appearance:none;width:100%;height:5px;background:#cebd9e;border-radius:40%;cursor:pointer}
input[type=range]::-webkit-slider-thumb{appearance:none;width:18px;height:19px;border:2px solid var(--cream);outline:1px solid var(--cocoa);border-radius:45% 49% 43% 48%;background:var(--cocoa)}
input[type=range]::-moz-range-thumb{width:15px;height:15px;border:2px solid var(--cream);border-radius:45%;background:var(--cocoa)}
.papers button{border-radius:4px 6px 3px 5px;outline-color:#c7b798}
.papers button.selected{outline-color:var(--cocoa)}
#save-help{font-size:11px;color:var(--muted)}
#note-preview{margin-bottom:15px}
#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);background:var(--cocoa);color:var(--cream);padding:13px 22px;border-radius:3px 7px 4px 6px;font-size:14px;opacity:0;pointer-events:none;transition:opacity .2s;z-index:10}
#toast.show{opacity:1}
@keyframes arrive{from{opacity:0;translate:0 -9px}to{opacity:1;translate:0 0}}
body.no-motion *{animation:none!important;transition:none!important}

@media(max-width:900px){.wall-grid{gap:40px}
.wall+.wall:before{left:-21px}
.wall-heading{height:190px;align-items:flex-start;padding-top:25px}
.wall-heading img{width:190px}
.wall[data-owner=chat] .wall-heading img{width:180px}
.wall-heading h1{font-size:26px}}

@media(max-width:620px){.site-header{padding:110px 12px 10px}
.top-actions{top:20px;right:5%;gap:3px}
#identity{font-size:11px}
.wordmark{font-size:clamp(34px,8.1vw,51px)}
body[data-view=walls] .site-header{padding-top:90px}
body[data-view=walls] .wordmark{font-size:clamp(34px,8.1vw,51px)}
.welcome{margin-top:24px}
.animal-pair{gap:5px}
.animal-pair img{width:49%}
.entry-paper{margin-top:40px;width:280px}
.choices{gap:8px;margin-top:35px}
.person-choice{background:#fff6e5!important;opacity:1!important;width:50%;padding:8px 0}
.person-choice img{margin-bottom:23px}
.person-choice span{font-size:19px}
.wall-top{margin:15px 0}
.mobile-tabs{display:flex;gap:25px;border-bottom:1px solid var(--line)}
.mobile-tabs button{padding:14px 0;color:var(--muted);font-size:16px}
.mobile-tabs button.active{color:var(--cocoa);border-bottom:2px solid var(--moss)}
.wall-grid{display:block}
.wall:not(.active){display:none}
.wall+.wall:before{display:none}
.wall-heading{height:155px;padding-top:30px}
.wall-heading img{width:190px}
.notes{padding:40px 5px 0}
.footer-mug{width:65px}
.note{padding:24px 17px 12px}
#settings{margin:70px 5% auto auto}
.ink-colors{grid-column:2;grid-row:2}
.papers{grid-column:1;grid-row:4}
#save-help{font-size:10px}}

@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
html{overflow-x:clip}
body{min-width:280px}
.wordmark{max-width:100%;font-synthesis:none}
.entry-paper{width:420px;max-width:92%;padding:42px 42px 38px;margin-top:28px}
.entry-paper label{font-size:23px}
.pass-row{margin-top:23px}
.pass-row input{min-height:55px;font-size:25px}
.person-choice span{font-family:'Duet Script',cursive;font-size:36px;font-weight:600}
.top-actions{left:4.5%;justify-content:flex-end}
#identity{display:inline-flex;align-items:center;gap:8px;margin-right:auto;font-size:12px}
#identity svg{width:23px;height:23px}
.wall-heading h1{font-size:27px}
.wall-heading{align-items:flex-start;padding-top:25px}
.wall-heading img{width:200px}
.wall[data-owner=chat] .wall-heading img{width:190px}
.click-row{border-top:1px solid var(--line);padding-top:20px;margin-top:25px;font-size:13px}
.click-row input{width:20px;height:20px;accent-color:var(--moss)}
#create-choice{width:min(480px,92vw);padding:25px}
#create-title{font:25px Georgia,serif}
.written-note[data-size="32"]{font-size:20px}
.written-note[data-size="40"]{font-size:24px}
.written-note[data-size="52"]{font-size:30px}
.note p.written-note{line-height:1.45;white-space:pre-wrap}
#settings{max-width:92vw}
.paper-button{white-space:normal}
.paper-button:active:not(:disabled),.icon-button:active:not(:disabled){transform:scale(.97)}

@media(max-width:900px){.wall-heading h1{font-size:24px}
.wall-heading img{width:185px}
.wall[data-owner=chat] .wall-heading img{width:180px}}

@media(max-width:620px){.top-actions{left:5%;gap:2px}
.top-actions .icon-button{width:38px;height:40px}
#identity{font-size:10px;gap:5px;max-width:calc(100% - 120px);line-height:1.3}
#identity svg{width:20px;height:20px}
.entry-paper{padding:34px 25px 30px;width:350px;max-width:96%;margin-top:35px}
.entry-paper label{font-size:22px}
.pass-row input{min-height:53px}
.person-choice span{font-size:31px}
.wall-heading h1{font-size:24px}
.wall-heading{height:160px}
.wall-heading img{width:175px}
.wall[data-owner=chat] .wall-heading img{width:170px}
.papers{grid-column:1/-1;grid-row:5}
.ink-colors{align-content:start;gap:4px}
#create-choice{padding:19px}}

@media(max-width:350px){.wordmark,body[data-view=walls] .wordmark{font-size:8vw}
.person-choice span{font-size:28px}
.wall-heading h1{font-size:22px}}

@media(max-height:560px) and (min-width:621px){.site-header{padding-top:65px}
.welcome{max-width:540px}
.animal-pair img{max-width:180px}
.entry-paper{padding:20px 30px;margin-top:10px}
.site-header .wordmark{font-size:58px}}
.site-header{padding:90px 20px 0}
.brand-scene{position:relative;width:min(100%,1000px);height:245px;margin:auto}
.wordmark{position:absolute;left:50%;bottom:0;transform:translateX(-50%) ;font-size:clamp(52px,8.8vw,109px);line-height:1.13;letter-spacing:-.025em;z-index:1}
.brand-deer,.brand-cat{position:absolute;pointer-events:none}
.brand-deer{width:215px;left:10%;bottom:89px;z-index:0}
.brand-cat{width:255px;right:5%;bottom:57px;z-index:2}
.top-actions{left:50%;right:auto;transform:translateX(-50%);width:max-content;max-width:94%;gap:10px;top:18px;padding:5px 12px;background:#fff6e58c;border:1.5px solid #ab9471;border-radius:9px 5px 11px 7px;box-shadow:1px 2px 0 #a3896020}
#identity{margin-right:16px;max-width:none;font-size:13px;line-height:1.35;gap:8px}
.top-actions .icon-button{color:var(--cocoa);background:var(--cream);border-color:#c7b393;width:42px;height:42px}
.top-actions .icon-button:hover{color:var(--cocoa);background:#e9ddbd;border-color:var(--cocoa)}
.welcome{margin:27px auto 0;max-width:650px}
.entry-scene{position:relative;padding-bottom:32px}
.entry-paper{margin:0 auto;width:410px;max-width:83%;padding:35px 38px 30px;border:2px solid var(--cocoa);border-radius:8px 12px 6px 10px;box-shadow:3px 4px 0 #c7b18a24;transform:rotate(-.7deg)}
.entry-paper:after{content:'';position:absolute;inset:3px 4px 5px 3px;border:1px solid #c6b18c70;border-radius:7px 10px 5px 8px;pointer-events:none}
.entry-paper label{font-size:23px}
.desk-pencil{position:absolute;width:29px;height:155px;left:6%;top:25px;transform:rotate(-15deg);opacity:.88}
.paper-edge{width:96%;height:24px;display:block;margin:24px auto 0;opacity:.65}
.pass-row{border-bottom:2px solid #8a7151}
.pass-row input{min-height:51px}
.choices{margin-top:35px}
.choose .person-choice img{display:none}
.person-choice{background:#fff6e5!important;opacity:1!important;width:260px;border:2px solid #a58c67;border-radius:7px 11px 5px 9px;background:#fff6e58c;padding:20px 25px}
.person-choice span{font-size:32px}
.person-choice svg{margin-top:10px}
.person-choice:first-child{transform:rotate(-1deg)}
.person-choice:last-child{transform:rotate(1deg)}
body[data-view=walls] .site-header{padding-top:90px}
body[data-view=walls] .brand-scene{height:105px}
body[data-view=walls] .brand-deer,body[data-view=walls] .brand-cat{display:none}
body[data-view=walls] .wordmark{font-size:clamp(42px,6.7vw,82px)}
.wall-heading{height:190px;justify-content:center;padding-top:24px;border-bottom:0}
.wall-heading:after{content:'';position:absolute;bottom:0;left:2%;width:96%;height:3px;border-bottom:2px solid #9b815e;border-radius:50%;transform:rotate(-.5deg)}
.wall-heading h1{font:23px/1.5 'Duet Hand',sans-serif;letter-spacing:-.02em;text-align:center;width:100%;margin:0;z-index:2;color:var(--cocoa)!important}
.wall-heading img,.wall[data-owner=chat] .wall-heading img{left:50%;right:auto;transform:translateX(-50%);width:180px;bottom:-9px}
.wall[data-owner=chat] .wall-heading img{bottom:-3px;width:170px}
.wall+.wall:before{width:9px;border:0;background:center top/9px 420px repeat-y url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 420'%3E%3Cpath d='M4 0Q1 55 5 108T4 213T5 320T4 420' fill='none' stroke='%23594739' stroke-width='2.3' stroke-linecap='round'/%3E%3C/svg%3E");left:-42px;opacity:.75}
.paper-button{border:2px solid var(--cocoa);border-radius:6px 11px 5px 9px;box-shadow:2px 3px 0 #9d80571b}
.paper-button.primary{border:2px solid #3d4933}
.paper-button.primary strong{font-weight:600}
#compose{color:var(--cocoa);background:#e3d7b7;border:2.3px solid var(--cocoa);transform:none;padding:12px 22px}
#compose svg{width:27px;height:27px;stroke-width:2}
#settings{border:2px solid var(--cocoa);border-radius:8px 12px 6px 10px;left:50%;right:auto;transform:translateX(-50%);margin:85px 0 auto;width:310px}
#settings .paper-button{min-width:105px}
.volume-label{font-size:14px;font-weight:bold}
#save-help{font-size:13px;line-height:1.45;color:#65543e}

@media(max-width:900px){.brand-scene{height:215px}
.brand-deer{width:175px;bottom:77px;left:7%}
.brand-cat{width:205px;bottom:52px;right:4%}
.wall+.wall:before{left:-25px}
.wall-heading h1{font-size:19px}
.wall-heading img{width:170px}
.top-actions{gap:8px}
#identity{font-size:12px;margin-right:7px}}

@media(max-width:620px){.site-header{padding-top:95px}
.brand-scene{height:235px;max-width:380px}
.wordmark{font-size:clamp(47px,13vw,72px);display:flex;flex-direction:column;align-items:center;gap:0;line-height:1.14;bottom:0}
.brand-deer{width:150px;left:-3%;bottom:102px}
.brand-cat{width:175px;right:-1%;bottom:50px}
.top-actions{width:auto;max-width:96%;white-space:nowrap;padding:4px 7px;gap:4px;top:15px;min-height:46px}
#identity{font-size:11px;max-width:140px;white-space:normal;margin-right:4px;gap:5px}
#identity svg{width:19px}
.top-actions .icon-button{width:37px;height:37px}
.welcome{margin-top:22px}
.entry-paper{width:330px;max-width:88%;padding:29px 25px 25px}
.entry-paper label{font-size:21px}
.desk-pencil{width:21px;height:125px;left:-1%;top:30px;transform:rotate(-10deg)}
.entry-scene{padding-bottom:5px}
.paper-edge{margin-top:17px}
.choices{gap:15px;margin-top:30px}
.person-choice{background:#fff6e5!important;opacity:1!important;width:47%;padding:18px 5px;border-radius:6px 9px 4px 8px}
.person-choice span{font-size:27px}
.person-choice svg{width:22px;height:22px}
body[data-view=walls] .site-header{padding-top:91px}
body[data-view=walls] .brand-scene{height:95px}
body[data-view=walls] .wordmark{display:block;white-space:nowrap;font-size:clamp(29px,8.1vw,48px);line-height:1.2;bottom:20px}
.wall-heading{height:170px}
.wall-heading h1{font-size:20px}
.wall-heading img,.wall[data-owner=chat] .wall-heading img{width:160px}
.wall+.wall:before{display:none}
.wall-top{margin-top:0}
#save-help{font-size:12px}
#settings{max-width:90vw;margin-top:74px}
.paper-button{min-height:45px}
.mobile-tabs button{font-size:17px}}

@media(max-width:350px){#identity{max-width:112px;font-size:10px}
.top-actions{gap:3px;padding:4px}
.top-actions .icon-button{width:34px;height:36px}
.brand-deer{width:135px;left:-4%}
.brand-cat{width:155px;right:-3%}
.wall-heading h1{font-size:18px}}

@media(max-height:560px) and (min-width:621px){.site-header{padding-top:70px}
.brand-scene{height:170px}
.brand-deer{width:150px;bottom:65px}
.brand-cat{width:170px;bottom:39px}
.wordmark{font-size:72px}
.welcome{margin-top:15px}
.entry-paper{padding:20px 30px}
.entry-paper label{font-size:19px}
.desk-pencil{height:110px}
.paper-edge{margin-top:12px}}
#draft-status{font-size:14px;font-weight:600;line-height:1.45}
#save-help{font-size:14px;line-height:1.5}

@media(max-width:620px){.brand-cat{bottom:103px}
.top-actions #identity{flex:0 0 126px;max-width:126px;font-size:12px;line-height:1.25}
.top-actions #identity svg{flex-shrink:0}}

@media(max-width:350px){.top-actions #identity{flex-basis:118px;max-width:118px}
.brand-cat{bottom:108px}}
.top-actions{left:auto;right:max(4%,calc((100vw - 1120px)/2));transform:none;background:none;border:0;box-shadow:none;padding:0;gap:12px}
.entry-scene{position:relative}
.person-choice img.portrait{display:block;width:132px;height:116px;margin:0 auto 12px;object-fit:contain}
.person-choice{background:#fff6e5!important;opacity:1!important;padding-top:16px}
.note-icon{position:relative;display:inline-block;width:30px;height:30px;flex-shrink:0}
.note-icon svg{position:absolute;inset:0;width:30px;height:30px;transition:opacity .14s}
.note-lift{opacity:0}
#compose:hover,#compose:active{transform:none}
#compose:hover .note-flat,#compose:focus-visible .note-flat{opacity:0}
#compose:hover .note-lift,#compose:focus-visible .note-lift{opacity:1;filter:drop-shadow(1px 2px 0 #59473924)}
#compose:active .note-lift{transform:translateY(1px);filter:none}
.eraser-footprint{position:fixed;z-index:1;pointer-events:none;border:1px solid #594739;border-radius:50%;background:#fff6e544;transform:translate(-50%,-50%)}

@media(max-width:620px){.top-actions{right:5%;gap:7px}
.entry-deer{width:125px;left:-12px;bottom:-55px}
.entry-scene{margin-bottom:50px}
.person-choice img.portrait{width:105px;height:95px}
.choices{gap:14px}
.top-actions #identity{flex-basis:auto}}

@media(prefers-reduced-motion:reduce){.note-icon svg{transition:none}}
.entry-scene:before{display:none!important}
.entry-paper{position:relative;z-index:1}
#identity{font-family:system-ui,-apple-system,"Segoe UI",sans-serif!important;font-size:12px!important;line-height:1.4!important;gap:9px!important}
#identity-avatar{width:38px;height:38px;object-fit:contain;flex-shrink:0}
body:is([data-view=welcome],[data-view=choose]){min-height:100svh;overflow-x:clip}
body:is([data-view=welcome],[data-view=choose]) main{padding-bottom:50px}
body[data-view=choose] .choices{margin-top:20px}

@media(max-width:620px){.entry-scene:before{display:none!important}
body:is([data-view=welcome],[data-view=choose]) main{padding-bottom:24px}
.entry-scene{margin-bottom:75px}
.top-actions #identity{max-width:150px;flex-basis:auto}
#identity-avatar{width:30px;height:30px}}

@media(max-height:740px){body:is([data-view=welcome],[data-view=choose]) .site-header{padding-top:70px}
.person-choice img.portrait{width:96px;height:86px}
.person-choice{background:#fff6e5!important;opacity:1!important;padding:12px 8px}
.choices{margin-top:12px!important}}

@media(max-height:600px){body:is([data-view=welcome],[data-view=choose]) .brand-scene{height:135px}
body:is([data-view=welcome],[data-view=choose]) .wordmark{font-size:clamp(30px,7vw,64px);white-space:nowrap;display:block;bottom:0}
body:is([data-view=welcome],[data-view=choose]) .brand-cat{width:140px;bottom:30px;right:8%}
.entry-paper{padding:16px 24px}
.welcome{margin-top:18px}
.person-choice img.portrait{width:74px;height:64px}
.person-choice span{font-size:25px}
.person-choice{background:#fff6e5!important;opacity:1!important;padding:8px}
.entry-deer{width:110px}
.entry-scene{margin-bottom:35px}
.entry-scene:before{display:none!important}
body:is([data-view=welcome],[data-view=choose]) main{padding-bottom:8px}}
.entry-backdrop{position:fixed;inset:0;pointer-events:none;z-index:0;display:none}
body:is([data-view=welcome],[data-view=choose]) .entry-backdrop{display:block}
body:is([data-view=welcome],[data-view=choose]){
  min-height:100svh;overflow-x:clip;background-color:#d4e8f4;
}
body:is([data-view=welcome],[data-view=choose]) main{position:relative;z-index:1;padding-bottom:130px}
body:is([data-view=welcome],[data-view=choose]) .site-header{position:relative;z-index:3}
body:is([data-view=welcome],[data-view=choose]) .top-actions{
  background:#fff6e5f2!important;border:1.5px solid #a58c67!important;
  box-shadow:0 2px 10px #59473928!important;border-radius:10px 6px 12px 8px;padding:5px 10px;
}
body:is([data-view=welcome],[data-view=choose]) .top-actions .icon-button{background:#fff6e5;border:1.5px solid #c7b393}
body:is([data-view=welcome],[data-view=choose]) .top-actions .icon-button:hover{background:#f0e4c8;border-color:var(--cocoa)}
.entry-backdrop .sky{
  position:absolute;inset:0 0 30% 0;
  background:linear-gradient(180deg,#a8d4ec 0%,#c5e2f2 50%,#e2f0f6 85%,#f2e8d5 100%);
}
.entry-backdrop .clouds{
  position:absolute;top:5%;left:0;width:100%;height:22%;
  object-fit:cover;opacity:.6;pointer-events:none;
}
.entry-backdrop .ground-layer{
  position:absolute;left:0;right:0;bottom:0;height:32%;
  background-color:#9a7350;
  background-image:url("assets/ground.svg");
  background-repeat:no-repeat;
  background-position:center top;
  background-size:100% 160px;
}
.entry-backdrop .entry-deer{
  position:absolute;width:175px;left:calc(50% - 260px);bottom:21%;
  z-index:2;pointer-events:none;
}
body[data-view=choose] .entry-backdrop .entry-deer{left:6%;bottom:20%}
.entry-scene,.entry-paper,.choices{position:relative;z-index:2}


@media(max-width:620px){.entry-backdrop .entry-deer{width:110px;left:2%;bottom:22%}
body[data-view=choose] .entry-backdrop .entry-deer{left:2%;bottom:21%}
.entry-backdrop .ground-layer{height:30%;background-size:100% 140px}
.entry-backdrop .clouds{height:18%;top:6%}
body:is([data-view=welcome],[data-view=choose]) main{padding-bottom:100px}

}

@media(max-height:600px){.entry-backdrop .entry-deer{width:95px;bottom:18%}
.entry-backdrop .ground-layer{height:28%;background-size:100% 120px}
.entry-backdrop .sky{inset:0 0 35% 0}

}
.project-word{position:relative;display:inline-block}
.wordmark .project-word .brand-cat{display:block;position:absolute;width:56%;height:auto;left:44%;right:auto;top:.11em;bottom:auto;transform:translateY(-64%);pointer-events:none;max-width:none}
body[data-view=walls] .wordmark .brand-cat{display:none}
body:is([data-view=welcome],[data-view=choose]){position:relative;background-color:#e4ebd7}
body:is([data-view=welcome],[data-view=choose]) main{position:static;padding-bottom:0}
.entry-backdrop{position:absolute;min-height:100svh;overflow:hidden}
.entry-backdrop .sky{inset:0;background:linear-gradient(#c8deea,#e6ecda 72%)}
.entry-backdrop .ground-layer{top:var(--meadow-y,72vh);bottom:0;height:auto;background-size:100% 160px}
.entry-backdrop .meadow-hills{position:absolute;left:0;bottom:100%;width:100%;height:95px;margin-bottom:-1px}
.entry-backdrop .meadow-sprig{position:absolute;right:8%;top:-40px;width:57px;height:72px;opacity:.9}
.entry-backdrop .entry-deer,body[data-view=choose] .entry-backdrop .entry-deer{width:clamp(115px,17vw,190px);left:clamp(8px,10vw,180px);top:calc(var(--meadow-y,72vh) + 15px);bottom:auto;transform:translateY(-86.2%)}
.person-choice:hover .portrait,.person-choice:focus-visible .portrait{transform:translateY(-4px) rotate(-3deg)}
.person-choice .portrait{transition:transform .22s ease}
.person-choice.picked .portrait{animation:portal-nod .32s ease both}
.person-choice.picked{border-color:var(--moss);background:#edf0dc}

@keyframes portal-nod{0%{transform:translateY(0)}45%{transform:translateY(-7px) rotate(4deg)}100%{transform:translateY(0) rotate(0)}}


@media(max-width:620px){.entry-backdrop .meadow-hills{height:62px}
.entry-backdrop .meadow-sprig{right:9%;width:42px;height:55px;top:-30px}
.entry-backdrop .entry-deer{left:2%}
.entry-scene{margin-bottom:0}
body:is([data-view=welcome],[data-view=choose]) .brand-scene{height:215px}}

@media(max-height:600px){body:is([data-view=welcome],[data-view=choose]) .brand-scene{height:115px}
.entry-backdrop .entry-deer{width:100px}
.entry-backdrop .meadow-hills{height:40px}
.entry-backdrop .meadow-sprig{width:34px;height:45px;top:-20px}}

@media(prefers-reduced-motion:reduce){.person-choice .portrait{transition:none}
.person-choice.picked .portrait{animation:none}
.person-choice:hover .portrait{transform:none}}
body{--wb-ink:#594739;--wb-muted:#85745f;--sky1:#f5ecda;--sky2:#ecdfc6;--cloud-filter:none;--cloud-op:1;--hills-filter:none;--stars:0;--vig:#7a5a2c14}
body[data-time=morning]{--sky1:#f8e5cf;--sky2:#efdcc4;--cloud-filter:sepia(.35) saturate(1.6) hue-rotate(-12deg);--hills-filter:brightness(1.04) saturate(1.05)}
body[data-time=evening]{--sky1:#f0d3b8;--sky2:#d9b9a2;--cloud-filter:sepia(.7) saturate(2.4) hue-rotate(-28deg) brightness(.97);--hills-filter:hue-rotate(-14deg) brightness(.86) saturate(.85)}
body[data-time=night]{--wb-ink:#efe3cf;--wb-muted:#b9ad9a;--sky1:#2c3145;--sky2:#3d3b4d;--cloud-filter:brightness(.38) saturate(.5);--cloud-op:.7;--hills-filter:brightness(.42) saturate(.65) hue-rotate(8deg);--stars:1;--vig:#00000030}
.walls-bg{display:none;position:fixed;inset:0;pointer-events:none;z-index:-1;overflow:hidden}
body[data-view=walls] .walls-bg{display:block}
.walls-bg>*{position:absolute}
.wb-sky{inset:0;background:linear-gradient(180deg,var(--sky1),var(--sky2) 70%);transition:background 1s}
.wb-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")}
.wb-vig{inset:0;background:radial-gradient(ellipse at 50% 35%,transparent 55%,var(--vig))}
.wb-stars{inset:0 0 40% 0;opacity:calc(var(--stars)*.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),radial-gradient(1.2px 1.2px at 94% 9%,#fff8e6,transparent),radial-gradient(1px 1px at 6% 52%,#fff8e6,transparent);animation:wb-twinkle 5s ease-in-out infinite alternate}
.wb-clouds{left:0;right:0;background:url(assets/clouds.svg) repeat-x;filter:var(--cloud-filter);opacity:var(--cloud-op);transition:filter 1s,opacity 1s}
.wb-clouds.a{top:34px;height:180px;background-size:1200px 180px;animation:wb-drift 220s linear infinite}
.wb-clouds.b{top:120px;height:150px;background-size:1000px 150px;opacity:calc(var(--cloud-op)*.55);animation:wb-drift 340s linear infinite reverse}
.wb-hills{left:0;right:0;bottom:0;height:clamp(96px,17vh,160px);filter:var(--hills-filter);transition:filter 1s}

@keyframes wb-drift{to{background-position-x:-1200px}}

@keyframes wb-twinkle{from{opacity:calc(var(--stars)*.55)}to{opacity:calc(var(--stars)*.95)}}

@media(prefers-reduced-motion:reduce){.wb-clouds,.wb-stars{animation:none}}
body[data-view=walls]{color:var(--wb-ink);transition:color .6s}
body[data-view=walls] main{padding-bottom:170px}
body[data-view=walls] .wordmark,body[data-view=walls] .wall-heading h1,body[data-view=walls] .mobile-tabs button.active{color:var(--wb-ink)!important}
body[data-view=walls] #identity,body[data-view=walls] .mobile-tabs button{color:var(--wb-muted)}
body[data-view=walls] .note{color:#594739}
body[data-time=night][data-view=walls] .wall+.wall:before{filter:invert(1) brightness(1.3)}
.settings-tabs{display:flex;gap:24px;border-bottom:1px solid var(--line);margin:-8px 0 20px}
.settings-tabs button{padding:8px 0;color:var(--muted);font-size:15px;border-bottom:2px solid transparent;margin-bottom:-1px}
.settings-tabs button[aria-selected=true]{color:var(--cocoa);border-bottom-color:var(--moss)}
.export-walls{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:22px}
.export-walls button{display:flex;align-items:center;justify-content:center;gap:2px;min-height:50px;padding:6px 4px;border:1.4px solid #9e876a;border-radius:4px 8px 3px 7px;background:#fff6e566;font-size:13px;color:var(--cocoa);transition:transform .15s,background .15s}
.export-walls button:hover{background:#f5dfb7;transform:translateY(-2px) }
.export-walls button[aria-pressed=true]{background:#dce1c6;border-color:var(--moss)}
.export-row{align-items:flex-start;margin-bottom:18px}
.export-row>span{display:flex;flex-direction:column;gap:3px;min-width:0;font:19px/1.3 'Duet Text',ui-rounded,'Trebuchet MS',sans-serif;letter-spacing:-.02em}
.export-row small{font:15px/1.5 'Duet Text',ui-rounded,'Trebuchet MS',sans-serif;letter-spacing:0;color:var(--muted)}
.export-row .paper-button{flex:none;min-width:0}
.export-status{min-height:18px;margin:4px 0 0;font:15px/1.5 'Duet Text',ui-rounded,'Trebuchet MS',sans-serif;color:var(--muted)}
.export-walls img{display:block;width:36px;height:32px;object-fit:contain}
.export-walls .both img{width:27px;height:24px}
.export-row .paper-button span{font:16px 'Duet Text',ui-rounded,'Trebuchet MS',sans-serif;letter-spacing:-.02em}
.entry-backdrop .sky{background:linear-gradient(var(--sky1),var(--sky2) 85%)}
.entry-backdrop .clouds{filter:var(--cloud-filter);opacity:var(--cloud-op)}
.entry-backdrop .ground-layer{filter:var(--hills-filter)}
.entry-backdrop .entry-deer,.brand-cat{filter:var(--animal-light,none)}
body[data-time=night]{--animal-light:brightness(.75) saturate(.8)}
.entry-stars{position:absolute;inset:0 0 40%;z-index:1}
.celestial{position:absolute;left:var(--orb-x,20%);top:var(--orb-y,10%);width:clamp(48px,6vw,82px);height:82px;transform:translateX(-50%);pointer-events:none;z-index:1;opacity:.85}
.celestial img{position:absolute;width:100%;height:auto}
.celestial .moon{display:none}
body[data-celestial=moon] .celestial .moon{display:block}
body[data-celestial=moon] .celestial .sun{display:none}
body:is([data-view=welcome],[data-view=choose]) .wordmark{color:var(--wb-ink)}
.day-clock{position:absolute;left:max(4%,calc((100vw - 1120px)/2));top:18px;display:grid;justify-items:center;gap:3px;color:var(--cocoa);z-index:5}
.day-clock svg{width:66px;height:66px;stroke-width:1.4;overflow:visible}
.clock-numbers{stroke:none;fill:var(--cocoa);font:12px 'Duet Hand',sans-serif;text-anchor:middle}
.day-clock #hour-hand{stroke-width:2.7}
.day-clock #minute-hand{stroke-width:1.7}
#clock-date{font:14px 'Duet Hand',sans-serif;color:var(--wb-ink)}
#streak{display:inline-flex;align-items:center;gap:2px;color:var(--cocoa);font:15px system-ui,sans-serif}
#streak img{width:23px;height:29px;filter:grayscale(.8);opacity:.6}
#streak.lit img{filter:none;opacity:1}
#streak.earned img{animation:none;transform-origin:50% 90%}
body[data-time=night][data-view=walls] #streak{color:var(--wb-ink)}
.track-row{display:flex;align-items:center;justify-content:space-between;margin:-2px 0 12px;font-size:14px}
.track-row .icon-button{border:1px solid var(--line)}
.wall-heading h1,#settings-title,#create-title{font-family:'Duet Hand',sans-serif}
.day-clock,.track-row{font-style:normal}
body[data-time=night] .person-choice{background:#fff6e5ed;color:var(--cocoa)}

@media(max-width:620px){.day-clock{left:12px;top:14px}
.day-clock svg{width:45px;height:45px}
#clock-date{font-size:11px}
.top-actions{right:10px!important;gap:5px!important}
.top-actions #identity{max-width:112px;font-size:10px!important}
.top-actions #identity-avatar{display:none}
#streak{font-size:12px}
#streak img{width:18px;height:23px}
.top-actions .icon-button{width:32px;height:34px}
.celestial{width:46px;top:16%}
body[data-view=walls] .site-header{padding-top:108px}}

@media(max-width:350px){.day-clock svg{width:38px;height:38px}
.top-actions #identity{max-width:77px}
.top-actions{gap:3px!important}
#streak img{width:15px}}

@media(prefers-reduced-motion:reduce){#streak.earned img{animation:none}}
dialog{color:var(--cocoa)}
#compose{color:var(--cocoa)}

@media(max-width:620px){.celestial{top:82px;width:36px}}
@font-face{font-family:'Duet Text';src:url('assets/duet-text.ttf') format('truetype');font-display:swap}
#settings,.wall-heading h1,#create-title,.day-clock,#streak,.paper-button{font-family:'Duet Text',ui-rounded,'Trebuchet MS',sans-serif;font-weight:400}
#settings-title,.export-row .paper-button span{font-family:'Duet Text',ui-rounded,'Trebuchet MS',sans-serif;font-weight:400}
#settings .volume-label,.settings-tabs button{font-family:'Duet Text',ui-rounded,'Trebuchet MS',sans-serif;font-weight:400}
.music-panel{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;margin:18px 0 24px}
.music-caption{display:grid;gap:10px;font-size:20px}
.music-caption #track-name{font-size:16px;line-height:1.4}
.music-buttons{display:flex;align-items:center;gap:12px}
#settings .paper-button,#next-track{border:2px solid var(--cocoa);border-radius:7px 13px 8px 11px / 10px 7px 13px 6px;box-shadow:2px 2px 0 #59473922;background:var(--cream);min-height:46px}
#settings .paper-button{padding:10px 14px;gap:9px}
#next-track{width:46px;height:46px;flex:none;transform:none}
#settings .paper-button:hover,#next-track:hover{background:#e9ddbd;box-shadow:1px 1px 0 #59473933}
#settings .paper-button:active,#next-track:active{transform:translateY(2px)}
body:not([data-view=walls]) .day-clock{display:none}
.day-clock{padding:7px 10px;border:2px solid var(--cocoa);border-radius:9px 5px 12px 7px;background:#fff6e5e8;box-shadow:3px 3px 0 #59473915;transition:background .6s,border-color .6s}
#clock-date{color:var(--cocoa);font-family:'Duet Text',ui-rounded,'Trebuchet MS',sans-serif}
body[data-streak=complete] .day-clock{background:#f2e6bc;border-color:#9a6937}
body[data-streak=renew] .day-clock{background:#edf0d8;border-color:#7b8757}
body[data-streak=broken] .day-clock{background:#e9e5dc;border-color:#8e887b}
.day-clock.renewed{animation:clock-renew 1.6s ease-out}
 @keyframes clock-renew{35%{box-shadow:0 0 0 12px #b4bd7440}100%{box-shadow:0 0 0 0 transparent}}
#streak{margin:0 12px 0 6px;gap:5px;font-size:20px}
#streak img{width:35px;height:43px;transform-origin:50% 90%;animation:none;filter:grayscale(1);opacity:.55}
#streak.lit img{opacity:1;filter:saturate(calc(1 + var(--fire-heat,0))) brightness(calc(1 + var(--fire-heat,0)*.2))}
body[data-streak=renew] #streak img{filter:sepia(.4) saturate(.6);opacity:.85}
#streak-scene{position:fixed;inset:0;z-index:90;display:grid;place-content:center;justify-items:center;background:#f2e8d5cf;backdrop-filter:blur(3px);pointer-events:none;animation:scene-fade 2.7s both}
#streak-scene img{width:clamp(160px,30vw,280px);height:auto;transform-origin:center;animation:none}
#streak-scene span{font:40px 'Duet Text',ui-rounded,'Trebuchet MS',sans-serif;color:#78553d;animation:scene-fade 2.5s both}
#streak-scene.broken img{animation:none}

@keyframes scene-fade{0%,100%{opacity:0}15%,70%{opacity:1}}
.entry-backdrop .clouds{width:120%;left:-10%;animation:entry-cloud-near 32s ease-in-out infinite alternate}
.entry-backdrop .sky:after{content:'';position:absolute;inset:12% -15% 35%;background:url('assets/clouds.svg') center/100% 100% no-repeat;opacity:.22;animation:entry-cloud-far 52s ease-in-out infinite alternate}

@keyframes entry-cloud-near{from{transform:translateX(-3%)}to{transform:translateX(4%)}}
@keyframes entry-cloud-far{from{transform:translateX(4%)}to{transform:translateX(-3%)}}
.celestial{left:8%;top:155px;width:58px}
body[data-celestial=moon] .celestial{left:92%}

@media(max-width:620px){.day-clock{padding:4px 6px;left:10px;top:10px}
.day-clock svg{width:39px;height:39px}
#streak{margin:0 5px;font-size:16px}
#streak img{width:27px;height:35px}
.top-actions #identity{max-width:85px!important}
.celestial{left:6%;top:105px;width:30px}
body[data-celestial=moon] .celestial{left:94%}
.music-panel{gap:10px}
.music-buttons{gap:8px}
#settings .paper-button{padding:9px 11px}}

@media(max-width:350px){.top-actions #identity{max-width:60px!important}
#streak{margin:0 3px}
#streak img{width:24px}
.music-panel{grid-template-columns:1fr}
.music-buttons{justify-content:flex-end}}

@media(prefers-reduced-motion:reduce){.entry-backdrop .clouds,.entry-backdrop .sky:after,#streak img,.day-clock.renewed,#streak-scene,#streak-scene img,#streak-scene span{animation:none}
#streak-scene img{width:90px}}
.day-clock{border:0;border-radius:0;background:none!important;box-shadow:none!important;padding:0}

body[data-streak=complete]{--clock-paper:#f2e6bc}
body[data-streak=renew]{--clock-paper:#edf0d8}
body[data-streak=broken]{--clock-paper:#e9e5dc}
.day-clock.renewed{animation:none}
.day-clock.renewed #clock-face{animation:clock-renew-face 1.6s ease-out}

@keyframes clock-renew-face{35%{filter:drop-shadow(0 0 9px #b4bd74)}100%{filter:none}}

@media(prefers-reduced-motion:reduce){.day-clock.renewed #clock-face{animation:none}}
body[data-time=night] #clock-date{color:#fff6e5;text-shadow:0 1px 2px #293548}
body[data-time=night][data-view=walls] #identity{color:#fff6e5}
#settings{width:370px;max-width:90vw}
.music-panel{gap:24px;margin:24px 0 22px;padding-bottom:24px;border-bottom:1px solid var(--line);border-radius:0 0 38% 4% / 0 0 2px 2px}
.music-buttons{gap:14px}
.music-caption{gap:12px}
#tab-sound .volume-label{margin-bottom:14px}
#tab-sound{padding-bottom:8px}

@media(max-width:350px){.music-panel{gap:18px}
.music-buttons{justify-content:flex-start}}
#settings{color:var(--cocoa);background:var(--cream)}
#settings button,#settings output{font-family:'Duet Text',ui-rounded,'Trebuchet MS',sans-serif;font-weight:400}
.entry-paper{color:var(--cocoa);transform:none}
.entry-paper label{font-size:20px;letter-spacing:.1em}
.pass-row{margin-top:20px;padding:4px 6px 4px 12px;background:#f2e8d580;border:1.5px solid #a58c67;border-radius:5px 9px 6px 8px}
.pass-row:focus-within{border-color:var(--moss);box-shadow:0 0 0 3px #66745a18}
.pass-row input{letter-spacing:8px;font-size:25px;min-width:0}
.pass-row input:focus-visible{outline:none}
.enter-button{color:var(--cocoa);background:var(--cream);border:1.5px solid #a58c67;border-radius:7px 5px 8px 6px;flex-shrink:0}
.enter-button:hover{background:#e9ddbd}
#streak-scene{animation:scene-fade var(--scene-duration,3200ms) ease both}
#streak-scene img,#streak-scene.broken img{animation:none}
#streak-scene span{animation:scene-fade var(--scene-duration,3200ms) ease both}
#streak.earned img{animation:none}
#dev-controller{position:fixed;bottom:12px;left:12px;z-index:110;width:min(310px,calc(100vw - 24px));max-height:75dvh;overflow:auto;background:#fff6e5;color:#594739;border:2px solid #594739;border-radius:7px;padding:12px;font:13px/1.5 system-ui,sans-serif;box-shadow:0 4px 20px #0002;user-select:text}
#dev-controller:not([open]){width:auto}
#dev-controller summary{cursor:pointer;font-weight:700}
#dev-controller p{font-size:11px}
#dev-controller label{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:9px 0}
#dev-controller input,#dev-controller select{max-width:170px;min-width:0;background:#fffaf0;border:1px solid #ab9471;padding:4px;color:#594739}
#dev-controller input[type=number]{width:80px}
#dev-controller fieldset{border:1px solid #cdbb9e;margin:12px 0;padding:6px 10px}
.dev-actions{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}
#dev-controller button{border:1px solid #8a7151;border-radius:4px 6px 3px 5px;background:#f2e8d5;padding:5px 8px;font-size:12px}
body.dev-reduced *,body.dev-reduced *:before,body.dev-reduced *:after{animation:none!important;transition:none!important}

@media(prefers-reduced-motion:reduce){#streak.earned img{animation:none}}
#settings-title{font-family:'Duet Hand',sans-serif;letter-spacing:.035em}
#settings .settings-tabs button{font-family:'Duet Text',ui-rounded,'Trebuchet MS',sans-serif;font-weight:600}
body[data-view=walls] #identity{color:var(--cocoa)}
body[data-time=night][data-view=walls] #identity{color:#fff6e5}
#streak{position:relative;isolation:isolate}
#streak:before{content:'';position:absolute;inset:-8px -4px;z-index:-1;border-radius:50%;background:radial-gradient(ellipse,var(--flame-glow),transparent 70%);opacity:.65;pointer-events:none}
#streak img,#streak.earned img{animation:none;transform:none}
#streak.lit img,body[data-streak=renew] #streak img{filter:hue-rotate(var(--flame-hue,0deg));opacity:1}
body[data-streak=broken] #streak:before{opacity:0}
body[data-streak=broken] #streak img{filter:grayscale(1);opacity:.6}
#streak img.afterglow{filter:hue-rotate(var(--flame-hue)) drop-shadow(0 0 7px #e6aa6380)}
#streak-scene img{transform:none;filter:hue-rotate(var(--flame-hue,0deg));position:relative;z-index:1}
#streak-scene:before{content:'';position:absolute;left:50%;top:48%;width:min(70vw,520px);height:min(70vw,520px);transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(ellipse,var(--flame-glow,#e6aa6340),transparent 68%);pointer-events:none}
#streak-scene.broken img{filter:none}
#streak-scene.broken:before{background:radial-gradient(ellipse,#96857330,transparent 68%)}
.wall-heading:after{display:none}
.wall-heading{height:230px}
.wall-heading img,.wall[data-owner=chat] .wall-heading img{width:320px;max-width:96%;height:auto;bottom:0}
.streak-contributions{display:flex;gap:3px;position:absolute;bottom:-5px;left:7px}
.streak-contributions i{width:7px;height:7px;border:1px solid var(--cocoa);border-radius:50%;background:var(--cream);transition:background .25s}
.streak-contributions i.posted{background:#b07a3e}
#streak-count{display:inline-block;min-width:1ch;font-variant-numeric:tabular-nums}
#streak.flame-travelling>img{opacity:0!important}
#streak-scene{animation:none;background:none;backdrop-filter:none;overflow:hidden}
#streak-scene:before,#streak-scene.broken:before{inset:0;width:auto;height:auto;transform:none;border-radius:0;background:radial-gradient(ellipse at center,var(--flame-glow,#e6aa6330),#f2e8d5cc 65%);backdrop-filter:blur(2px);animation:streak-veil var(--scene-duration) linear both}
#streak-scene img{width:clamp(150px,28vw,230px);height:auto;animation:none;transform-origin:center}
#streak-scene span{animation:streak-label var(--scene-duration) linear both}

@keyframes streak-veil{0%,100%{opacity:0}12%,50%{opacity:1}80%{opacity:0}}

@keyframes streak-label{0%,100%{opacity:0}15%,45%{opacity:1}65%{opacity:0}}
.day-clock.renewed #clock-face{animation-duration:.8s}

@media(max-width:620px){.wall-heading{height:205px}
.wall-heading img,.wall[data-owner=chat] .wall-heading img{width:280px}
.streak-contributions{left:3px;bottom:-3px}
.streak-contributions i{width:5px;height:5px}}

@media(prefers-reduced-motion:reduce){#streak-scene:before,#streak-scene span{animation:none}
.streak-contributions i{transition:none}}
.room-wait body{visibility:hidden}
#editor::backdrop{backdrop-filter:none;background:#493d2c80}
html:has(dialog[open]) .walls-bg *,html:has(dialog[open]) .entry-backdrop *{animation-play-state:paused!important}


/* ===== Editor: one page for drawing and writing ===== */
#editor{width:min(1240px,98vw);max-width:none;max-height:calc(100dvh - 20px);margin:auto;padding:0;border:1.5px solid #cdb68e;border-radius:12px;background:#f3e9d7;color:#594739;box-shadow:0 22px 60px #3a2d1e55;overflow:hidden}
#editor[open]{display:flex;flex-direction:column}
.ed-head{display:flex;align-items:center;gap:14px;padding:12px 24px;border-bottom:1px solid #d8c4a0}
.ed-head h1{flex:1;margin:0;font:400 26px Georgia,serif;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ed-status{margin:0;display:flex;align-items:center;gap:8px;font:600 14px Georgia,serif;color:#66745a}.ed-status:before{content:'';width:7px;height:7px;border-radius:50%;background:currentColor}
.ed-body{flex:1;min-height:0;overflow:auto;display:grid;grid-template-columns:236px minmax(0,1fr);gap:28px;padding:18px 24px}
.ed-rail{display:flex;flex-direction:column;gap:18px;min-width:0}
.ed-tools{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.ed-tool{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:64px;padding:6px 2px;border:1.5px solid #cdb68e;border-radius:9px;background:#fbf4e6;color:#594739;font:14px Georgia,serif;cursor:pointer;transition:background .15s,transform .15s}
.ed-tool svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.ed-tool:hover{background:#fff;transform:translateY(-1px)}
.ed-tool.selected,.ed-tool[aria-pressed=true]{background:#dce1c6;border-color:#594739;box-shadow:0 3px 0 #594739}
.ed-label{display:flex;justify-content:space-between;align-items:baseline;margin:0 0 6px;font:600 14px Georgia,serif}
.ed-label label,.ed-label output{font:inherit}
.ed-opts input[type=range]{width:100%;height:44px;margin:0;accent-color:#594739;cursor:pointer}
.ed-sample{display:block;width:100%;height:56px;fill:none;stroke-linecap:round;stroke-linejoin:round;overflow:visible}
.ed-sizes{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.ed-size{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:56px;border:1.5px solid #cdb68e;border-radius:9px;background:#fbf4e6;color:#594739;font-family:'Duet Script','Comic Sans MS',cursive;cursor:pointer;line-height:1}
.ed-size small{font:11px Georgia,serif;margin-top:2px}
.ed-size[aria-pressed=true]{background:#dce1c6;border-color:#594739;box-shadow:0 3px 0 #594739}
.ed-help{margin:8px 0 0;font:14px/1.45 Georgia,serif;color:#85745f}
.ed-swatches{display:flex;flex-wrap:wrap;gap:8px}
.ed-swatch{width:44px;height:44px;border-radius:50%;border:2px solid #fff8;background:var(--swatch);box-shadow:0 0 0 1.5px #cdb68e;cursor:pointer;transition:transform .15s}
.ed-paper{border-radius:10px}
.ed-swatch.selected,.ed-swatch[aria-pressed=true]{box-shadow:0 0 0 3px #594739;transform:scale(1.06)}
.ed-main{min-width:0}
.ed-sheet{width:min(100%,calc((100dvh - 280px) * 1.3889));min-width:min(100%,420px);margin:0 auto}
.ed-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;margin:0 0 6px}
.ed-hint{font:14px Georgia,serif;color:#85745f;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ed-history{display:flex;gap:6px}
.ed-history .icon-button{width:44px;height:44px}
.ed-stage{position:relative}
.editor-paper{line-height:0;background:var(--paper-color,#fff6e5);border:1px solid #cdb68e;border-radius:3px;box-shadow:0 8px 22px #5947392e}
#drawing{display:block;width:100%;height:auto;aspect-ratio:1000/720;touch-action:none;cursor:crosshair;-webkit-user-select:none;user-select:none}
#drawing.texting{cursor:text}#drawing.erasing{cursor:none}
.ed-textbox{position:absolute;z-index:3;outline:2px dashed var(--active-ink,#594739);outline-offset:4px}
.ed-textbox textarea{display:block;width:100%;margin:0;padding:0;border:0;background:transparent;resize:none;overflow:hidden;font-family:'Duet Script','Comic Sans MS',cursive;line-height:1.4;white-space:pre-wrap;overflow-wrap:anywhere;outline:none;caret-color:currentColor}
.ed-tbar{position:absolute;left:-4px;bottom:calc(100% + 10px);display:flex;gap:6px}
.ed-textbox.below .ed-tbar{bottom:auto;top:calc(100% + 10px)}
.ed-grip,.ed-del{width:44px;height:44px;display:grid;place-items:center;border:1.5px solid #594739;border-radius:50%;background:#fbf4e6;color:#594739;cursor:grab;touch-action:none;padding:0;box-shadow:0 3px 8px #5947392e}
.ed-del{cursor:pointer}.ed-grip:active{cursor:grabbing}
.ed-grip svg,.ed-del svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ed-resize{position:absolute;right:-16px;bottom:-16px;width:26px;height:26px;border-radius:50%;background:#e8dbb9;border:2px solid #594739;cursor:ew-resize;touch-action:none}
.ed-resize:after{content:'';position:absolute;inset:-10px}
#preview-wrap{padding:8px 0 0}.preview-label{margin:0 0 12px;font:600 14px Georgia,serif;color:#85745f}
#editor.previewing .ed-rail,#editor.previewing .ed-stage,#editor.previewing .ed-bar{display:none}
#editor.previewing .ed-body{grid-template-columns:1fr}
.ed-foot{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:12px 24px;border-top:1px solid #d8c4a0;background:#f3e9d7}
.ed-foot .ed-help{margin:0;flex:1;min-width:180px}.ed-error{margin:0;color:#a65f4c;font:600 15px Georgia,serif}.ed-error:empty{display:none}
.ed-actions{display:flex;gap:10px;margin-left:auto}.ed-actions .paper-button{min-height:48px}
.ed-body :focus-visible,.ed-foot :focus-visible,.ed-head :focus-visible{outline:2.5px solid #66745a;outline-offset:2px}
@media(max-width:760px),(max-width:1000px) and (orientation:portrait){
  #editor{width:100vw;max-height:none;height:100dvh;border:0;border-radius:0}
  .ed-head{padding:8px 10px;gap:8px}.ed-head h1{font-size:20px}.ed-status{font-size:12px}
  .ed-body{grid-template-columns:1fr;gap:14px;padding:10px 12px}
  .ed-main{order:1}.ed-rail{order:2;gap:14px}
  .ed-sheet{width:100%;min-width:0}
  .ed-tools{grid-template-columns:repeat(5,1fr);gap:6px}.ed-tool{min-height:60px;font-size:12px}
  .ed-opts{display:block}
  .ed-foot{position:sticky;bottom:0;padding:10px 12px;gap:8px}.ed-foot .ed-note{display:none}
  .ed-actions{width:100%}.ed-actions>*{flex:1;justify-content:center}
}
@media(prefers-reduced-motion:reduce){.ed-tool,.ed-swatch{transition:none}}

.ed-head,.ed-foot{flex:none}.ed-body{flex:1 1 auto}
.ed-body{grid-template-columns:256px minmax(0,1fr)}
.ed-opts input[type=range]{-webkit-appearance:none;appearance:none;background:transparent}
.ed-opts input[type=range]::-webkit-slider-runnable-track{height:6px;border-radius:3px;background:#cdb68e}
.ed-opts input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:26px;height:26px;margin-top:-10px;border-radius:50%;background:#594739;border:3px solid #fbf4e6;box-shadow:0 1px 4px #0003}
.ed-opts input[type=range]::-moz-range-track{height:6px;border-radius:3px;background:#cdb68e}
.ed-opts input[type=range]::-moz-range-thumb{width:20px;height:20px;border-radius:50%;background:#594739;border:3px solid #fbf4e6}
@media(max-width:760px),(max-width:1000px) and (orientation:portrait){.ed-body{grid-template-columns:1fr}}
.ed-head .icon-button{width:44px;height:44px}
@media(max-width:760px),(max-width:1000px) and (orientation:portrait){.ed-actions .paper-button{font-size:15px;letter-spacing:0}}


/* Dark-sky chrome: readable title, identity, streak (driven by data-chrome from ambience) */
body[data-chrome=light][data-view=walls] .wordmark,
body[data-chrome=light][data-view=walls] .wall-heading h1,
body[data-chrome=light][data-view=walls] .mobile-tabs button.active{
  color:var(--wb-ink)!important;
  text-shadow:0 1px 2px #1a1a1a55,0 0 18px #00000033;
}
body[data-chrome=light][data-view=walls] #identity,
body[data-chrome=light][data-view=walls] .mobile-tabs button{
  color:var(--wb-muted)!important;
  text-shadow:0 1px 2px #00000066;
}
body[data-chrome=light][data-view=walls] #streak{
  color:var(--wb-ink)!important;
  text-shadow:0 1px 2px #00000066;
}
body[data-chrome=light][data-view=walls] #streak img{
  filter:drop-shadow(0 1px 2px #00000088) brightness(1.15);
}
body[data-chrome=light] #clock-date{
  color:var(--wb-ink);
  text-shadow:0 1px 2px #00000055;
}
body[data-chrome=light][data-view=walls] .wall+.wall:before{
  filter:invert(1) brightness(1.25);
  opacity:0.55;
}
/* Canvas: never let a dark scheme or an opaque surface turn the page black; the paper is painted into the canvas too. */
.editor-paper{color-scheme:only light}
#drawing{background:transparent;color-scheme:only light}
#drawing.filling{cursor:cell}
#drawing.nope{animation:nope .3s}
@keyframes nope{25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}
.art-holder{width:100%}
canvas.ed-sample{display:block;width:100%;height:56px}
/* One extra circle beside the inks, and its menu */
.ed-ink{position:relative}
.ed-more{display:inline-grid;place-items:center;background:var(--swatch,#fbf4e6);color:#594739}
.ed-more svg,.ink-btn svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ed-more.has-color svg{display:none}
.ed-more.has-color:after{content:'';position:absolute;right:-2px;bottom:-2px;width:16px;height:16px;border-radius:50%;background:#fbf4e6 url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 4v8M4 8h8' stroke='%23594739' stroke-width='1.8' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") center/12px no-repeat;box-shadow:0 0 0 1.2px #cdb68e}
.ed-more{position:relative}
.ink-menu{position:fixed;z-index:60;padding:12px 12px 12px;border:1.5px solid #cdb68e;border-radius:10px;background:#fbf4e6;box-shadow:0 10px 24px #5947393a}
.ink-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;justify-items:center}
.ink-grid .ed-swatch,.ink-row .ed-swatch{width:32px;height:32px}
.ink-mine{margin-top:10px;padding-top:10px;border-top:1px dashed #cdb68e}
.ink-pick{margin-top:10px;padding-top:10px;border-top:1px dashed #cdb68e}
#pick-pad{display:block;width:100%;height:auto;aspect-ratio:200/84;border:1.5px solid #cdb68e;border-radius:6px;touch-action:none;cursor:crosshair}
#pick-hue{-webkit-appearance:none;appearance:none;display:block;width:100%;height:14px;margin:10px 0 0;border:1.5px solid #cdb68e;border-radius:8px;background:linear-gradient(90deg,#f00,#ff0,#0f0,#0ff,#00f,#f0f,#f00)}
#pick-hue::-webkit-slider-thumb{-webkit-appearance:none;width:20px;height:20px;border-radius:50%;background:#fbf4e6;border:2px solid #594739}
#pick-hue::-moz-range-thumb{width:16px;height:16px;border-radius:50%;background:#fbf4e6;border:2px solid #594739}
.ink-row{display:flex;align-items:center;gap:10px;margin-top:10px}
.ink-btn{display:inline-grid;place-items:center;width:40px;height:34px;border:1.5px solid #cdb68e;border-radius:9px;background:#fbf4e6;color:#594739;cursor:pointer}
.ink-btn:hover{background:#f5dfb7}
@media(max-width:760px){.ed-tools{grid-template-columns:repeat(6,1fr)}.ed-tool{font-size:11px;min-height:56px}}
/* Phones: the page runs nearly edge to edge */
@media(max-width:760px){.ed-body{padding:8px 12px}.editor-paper{margin-inline:-8px;border-radius:0}}
@media(max-width:760px){.ink-grid{grid-template-columns:repeat(6,1fr)}}

/* ===== Drafts: the shelf, its button and the name field ===== */
.wall-buttons{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}
#drafts-open{color:var(--cocoa);background:#fff6e5aa;border:2.3px solid var(--cocoa);border-radius:7px 12px 6px 10px / 10px 6px 12px 7px;padding:12px 20px;transform:none}
#drafts-open svg{width:27px;height:27px;stroke-width:2}
#drafts-open:hover,#drafts-open:active{transform:none;background:#f5e8c8}
#drafts-open:hover .note-flat,#drafts-open:focus-visible .note-flat{opacity:0}
#drafts-open:hover .note-lift,#drafts-open:focus-visible .note-lift{opacity:1;filter:drop-shadow(1px 2px 0 #59473924)}
#drafts-open:active .note-lift{transform:translateY(1px);filter:none}
.drafts-count{display:inline-flex;align-items:center;justify-content:center;min-width:23px;height:23px;padding:0 6px;margin-left:-2px;border-radius:48% 54% 45% 56% / 55% 46% 54% 47%;background:var(--terracotta);color:var(--cream);font:14px/1 'Duet Text',ui-rounded,'Trebuchet MS',sans-serif;border:1.6px solid var(--cocoa)}

#drafts{width:min(780px,94vw);max-height:calc(100dvh - 60px);margin:36px auto auto;padding:22px 28px 26px;border:2px solid var(--cocoa);border-radius:8px 12px 6px 10px;background:var(--cream);overflow:auto;font-family:'Duet Text',ui-rounded,'Trebuchet MS',sans-serif}
#drafts-title{font-family:'Duet Text',ui-rounded,'Trebuchet MS',sans-serif;font-weight:400}
.drafts-empty{font:20px/1.4 'Duet Script',cursive;color:var(--muted);text-align:center;margin:34px 0 30px}
.drafts-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:34px 28px;padding:16px 6px 10px}
.draft-card{margin:0;padding:24px 14px 8px;animation:none;display:flex;flex-direction:column;gap:4px;color:var(--cocoa)}
.draft-open{display:block;width:100%;padding:0;text-align:left;color:inherit}
.draft-open:hover .draft-name{text-decoration:underline wavy #9d6c3566;text-underline-offset:4px}
.draft-thumb{display:block;width:100%;aspect-ratio:320/230;object-fit:cover;border:1.5px solid #59473933;border-radius:3px 6px 3px 5px;background:var(--cream)}
.draft-name{display:block;margin-top:9px;font:400 24px/1.2 'Duet Script',cursive;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.draft-meta{display:block;font:14px/1.4 'Duet Text',ui-rounded,'Trebuchet MS',sans-serif;color:var(--muted)}
.draft-actions{display:flex;justify-content:flex-end;gap:2px;margin-top:-2px}
.draft-actions .icon-button,.bin-row .icon-button{width:38px;height:38px}
.draft-actions svg,.bin-row svg{width:22px;height:22px}
.drafts-bin{margin-top:18px;padding-top:14px;border-top:1px dashed var(--line)}
.bin-toggle{font:16px 'Duet Text',ui-rounded,'Trebuchet MS',sans-serif;color:var(--muted);padding:4px 0}
.bin-toggle:after{content:' ▾';font-size:12px}.bin-toggle[aria-expanded=true]{color:var(--cocoa)}.bin-toggle[aria-expanded=true]:after{content:' ▴'}
.bin-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 0;font:16px 'Duet Text',ui-rounded,'Trebuchet MS',sans-serif;border-bottom:1px dotted var(--line)}
.bin-empty{margin:8px 0 0;font:15px 'Duet Text',ui-rounded,'Trebuchet MS',sans-serif;color:var(--muted)}
#drafts .error{margin:12px 0 0;font:15px/1.4 'Duet Text',ui-rounded,'Trebuchet MS',sans-serif}

.draft-title{flex:0 1 240px;min-width:0;padding:4px 2px;border:0;border-bottom:1.6px dashed #b8a27e;border-radius:0;background:transparent;font:400 21px 'Duet Script',cursive;color:var(--cocoa);text-overflow:ellipsis}
.draft-title::placeholder{color:#a8967a}
.draft-title:focus{outline:0;border-bottom:1.6px solid var(--moss)}
@media(max-width:760px){
 .wall-buttons{gap:8px}#drafts-open,#compose{padding:10px 14px}#drafts-open strong,#compose strong{font-size:15px}
 #drafts{margin-top:14px;padding:18px 16px 22px}.drafts-grid{grid-template-columns:1fr 1fr;gap:30px 16px}
 .draft-title{flex-basis:130px;font-size:18px}
}
@media(max-width:430px){.drafts-grid{grid-template-columns:1fr}.draft-title{flex-basis:96px}}

/* Tape. Each piece is centred on (--x, --y) and turned by --r; --len is the roll's length and --k the piece's share of it.
   Five layouts: top (one strip across the top), corners-a (opposite corners, top-left + bottom-right), tin (both top corners, angled inward),
   tr / tl (one long diagonal piece across the top-right / top-left corner), up (two upright pieces over the top edge).
   app.js decides which rolls may use which layouts. */
.note .tape{position:absolute;left:var(--x);top:var(--y);width:calc(var(--len,96px)*var(--k,1));height:auto;pointer-events:none;z-index:2;transform:translate(-50%,-50%) rotate(var(--r,0deg));filter:drop-shadow(0 1px 1px #5a3f2216)}
.note .tape.red{--len:100px}.note .tape.yellow{--len:94px}.note .tape.blue{--len:88px}.note .tape.green{--len:82px}
.note[data-tape="top"] .tape{--k:1;--x:50%;--y:2px;--r:-1.5deg}
.note[data-tape="corners-a"] .tape{--k:.82;--r:-38deg}
.note[data-tape="corners-a"] .t1{--x:10px;--y:10px}
.note[data-tape="corners-a"] .t2{--x:calc(100% - 10px);--y:calc(100% - 10px)}
.note[data-tape="tin"] .tape{--k:.82;--y:10px}
.note[data-tape="tin"] .t1{--x:12px;--r:-34deg}
.note[data-tape="tin"] .t2{--x:calc(100% - 12px);--r:34deg}
.note[data-tape="tr"] .tape{--k:1.35;--x:calc(100% - 22px);--y:22px;--r:40deg}
.note[data-tape="tl"] .tape{--k:1.35;--x:22px;--y:22px;--r:-40deg}
.note[data-tape="up"] .tape{--k:.9;--y:0px;--r:90deg}
.note[data-tape="up"] .t1{--x:13%}
.note[data-tape="up"] .t2{--x:85%}


/* ===== Pages that feel like paper, and a paper choice that matters ===== */
/* Notes wear the paper they were written on: flat colour and grain, injected by paper.js (no gradients). */
/* The editor's page: a clear edge and two sheets showing underneath, so it reads as a page lying on the desk. */
.editor-paper{border:1.5px solid #b9a27a;border-radius:3px;box-shadow:2px 3px 0 -1px #e9dcc0,2px 3px 0 0 #cdb68e,5px 7px 0 -2px #ddcdab,5px 7px 0 -1px #cdb68e,0 14px 26px #5947392e}
/* Nibs: what the pointer will leave behind, at its true size. */
.nib{position:fixed;z-index:1;pointer-events:none;transform:translate(-50%,-50%);border:1px solid #594739cc;box-sizing:border-box}
.nib-pencil,.nib-ink{border-radius:50%;background:color-mix(in srgb,var(--nib) 32%,transparent)}
.nib-pencil{border-style:dotted}
.nib-marker{border-radius:1px;background:color-mix(in srgb,var(--nib) 30%,transparent)}
#drawing.nibbed{cursor:none}

/* ===== Draft shelf: each draft is a bordered sheet; deleting forever ===== */
.draft-card{position:relative;margin:0;padding:10px 10px 6px;gap:6px;background:var(--paper-color,#fff6e5);border:2px solid #594739;border-radius:6px 9px 6px 8px;box-shadow:3px 4px 0 #59473922;color:var(--cocoa);transform:none}
.draft-card:before{content:none}
.draft-card .draft-thumb{border:1.5px solid #59473955;border-radius:3px}
.draft-name{margin-top:6px;font-size:22px}
.bin-acts{display:flex;gap:2px}
.bin-row .forever.sure{background:#a65f4c;color:#fff6e5;border-radius:50%}
.bin-row .forever svg{stroke:currentColor}

/* ===== Editor on a phone: everything within reach, nothing to scroll ===== */
@media(max-width:760px),(max-width:1000px) and (orientation:portrait){
  .ed-head{padding:6px 10px;min-height:56px}
  .ed-head h1{font-size:19px}.ed-status{margin-left:auto;font-size:11.5px}
  .ed-body{display:flex;flex-direction:column;gap:6px;padding:6px 12px 8px;overflow:auto}
  .ed-main{flex:0 0 auto;order:1}
  .ed-sheet{width:min(100%,calc((100dvh - 372px) * 1.3889));min-width:min(100%,260px)}
  .ed-bar{min-height:40px;margin:0 0 4px}.ed-history .icon-button{width:40px;height:40px}
  .editor-paper{margin-inline:0;border-radius:3px}
  .ed-rail{order:2;gap:4px}
  .ed-tools{gap:5px}.ed-tool{min-height:50px;gap:2px;padding:4px 0}.ed-tool svg{width:22px;height:22px}
  /* size, ink and paper each sit on one line: a short label, then the control */
  .ed-opts{display:flex;align-items:center;gap:10px;min-height:42px}
  .ed-opts>.ed-label{flex:0 0 auto;width:auto;min-width:44px;margin:0;display:flex;gap:6px}
  .ed-opts>.ed-label label{white-space:nowrap}
  .ed-opts input[type=range]{flex:1;height:36px;min-width:0}
  #opts-draw .ed-sample{display:none}
  .ed-opts .ed-swatches{flex-wrap:nowrap;gap:7px;flex:1}
  .ed-swatch{width:34px;height:34px}
  .ed-paper{border-radius:8px}
  .ed-ink{position:relative}
  #opts-text .ed-sizes{flex:1}
  .ed-foot{padding:8px 12px}.ed-actions .paper-button{min-height:44px}
}
@media(max-width:760px) and (max-height:640px){.ed-sheet{width:min(100%,calc((100dvh - 330px) * 1.3889))}}
@media(max-width:760px),(max-width:1000px) and (orientation:portrait){
  .ed-actions{gap:8px}.ed-actions>*{flex:1 1 0;min-width:0;padding-inline:6px;letter-spacing:0;line-height:1.15;text-align:center}
  .ed-actions .paper-button span{white-space:normal}
}

/* ===== The clock, drawn by hand: a wobbly doubled outline, uneven ticks, tapered brush hands ===== */
#clock-face{fill:none;stroke:var(--cocoa);stroke-linecap:round;stroke-linejoin:round;overflow:visible}
#clock-face .clock-shadow{fill:#59473918;stroke:none}
#clock-face .clock-rim{fill:var(--clock-paper,#fff6e5);stroke:#594739;stroke-width:2.1;transition:fill .6s}
#clock-face .clock-wash{fill:#dba654;opacity:.16;stroke:none}
body[data-streak=renew] #clock-face .clock-wash{fill:#66745a;opacity:.14}
body[data-streak=broken] #clock-face .clock-wash{fill:#85745f;opacity:.12}
#clock-face .clock-rim2{stroke:#594739;stroke-width:.9;opacity:.5}
#clock-face .clock-ticks{stroke:#594739;stroke-width:1.5;opacity:.85}
#clock-face #hour-hand{fill:#594739;stroke:#594739;stroke-width:1.1}
#clock-face #minute-hand{fill:#594739;stroke:#594739;stroke-width:.8}
#clock-face .clock-pin{fill:#dba654;stroke:#594739;stroke-width:1.2}

/* Editor text in the hand-lettered face used for the wall's headings. */
#editor-title,.ed-status,.ed-label,.ed-label label,.ed-label output,.ed-hint,.ed-tool,.ed-size small,.preview-label,.ed-error,.ed-swatches+.ed-label{font-family:'Duet Text',ui-rounded,'Trebuchet MS',sans-serif;font-weight:400}
#editor-title{font-size:26px;letter-spacing:.02em}
.ed-status{font-size:14px;letter-spacing:.02em}
.ed-label{font-size:15px;letter-spacing:.03em}
.ed-tool{font-size:13px;letter-spacing:.02em}
.ed-hint{font-size:15px;letter-spacing:.03em}
@media(max-width:760px),(max-width:1000px) and (orientation:portrait){#editor-title{font-size:19px}.ed-status{font-size:12px}.ed-tool{font-size:11.5px;letter-spacing:0}}

@media(max-width:760px),(max-width:1000px) and (orientation:portrait){#editor-title{letter-spacing:0;font-size:18px}.ed-status{letter-spacing:0;font-size:11px}.ed-head{gap:6px}}
#clock-face .clock-wash2{fill:#dba654;opacity:.12;stroke:none}
#clock-face .clock-rim2{opacity:.55;stroke-width:1}

/* ===== Clouds: three layers of hand-drawn sprites (built by clouds.js), drifting in one wind at three speeds ===== */
.entry-backdrop .clouds,.wb-clouds{display:none}
.entry-backdrop .sky:after{content:none}
.cloud-field{position:absolute;inset:0;overflow:hidden;pointer-events:none;filter:var(--cloud-filter);opacity:var(--cloud-op,1);transition:filter 1s,opacity 1s}
.entry-backdrop .cloud-field{inset:0 0 30% 0}
.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)}}
@media(prefers-reduced-motion:reduce){.cloud,.cloud img{animation:none}.cloud{left:calc(var(--rest,30%))}}

/* ===== Landscape: three hand-drawn hill layers (tiled, each shifted so the pattern never lines up), grass, and the three meadow flowers ===== */
.wb-hills{height:clamp(120px,20vh,190px)}
.wb-hills i,.meadow-hills i{position:absolute;left:-24px;right:-24px;bottom:0;background-repeat:repeat-x;background-size:auto 100%;will-change:transform}
.wb-hills i.far,.meadow-hills i.far{height:100%;background-image:url(assets/hills-far.svg);background-position:0 100%}
.wb-hills i.mid,.meadow-hills i.mid{height:84%;background-image:url(assets/hills-mid.svg);background-position:-460px 100%}
.wb-hills i.near{height:64%;background-image:url(assets/hills-near.svg);background-position:-900px 100%}
.wb-flowers{position:absolute;inset:0;will-change:transform}
.f{position:absolute;width:var(--w,32px);height:auto;transform-origin:50% 100%;animation:sway 7s ease-in-out infinite alternate;pointer-events:none}
.wb-flowers .f{bottom:calc(var(--lift,10px))}
.wb-flowers .f:nth-child(odd){--lift:7px}.wb-flowers .f:nth-child(3n){--lift:14px}.wb-flowers .f:nth-child(4n){--lift:11px}
.f1{animation-duration:6.2s}.f2{animation-duration:7.4s;animation-delay:-2s}.f3{animation-duration:8.1s;animation-delay:-4s}.f4{animation-duration:6.8s;animation-delay:-1s}.f5{animation-duration:7.8s;animation-delay:-3s}.f6{animation-duration:6.5s;animation-delay:-5s}.f7{animation-duration:7.2s;animation-delay:-2.5s}.f8{animation-duration:8.4s;animation-delay:-1.5s}.f9{animation-duration:6.9s;animation-delay:-3.5s}
@keyframes sway{from{transform:rotate(-1.8deg)}to{transform:rotate(1.8deg)}}
@media(prefers-reduced-motion:reduce){.f{animation:none}}
/* entry: the old brown soil is replaced by grass */
.entry-backdrop .ground-layer{background-color:transparent;background-image:url(assets/ground.svg),linear-gradient(#788a5b,#788a5b);background-repeat:repeat-x,no-repeat;background-position:left top,left bottom;background-size:auto 160px,100% calc(100% - 150px)}
.entry-backdrop .meadow-hills{position:absolute;left:0;bottom:100%;width:100%;height:clamp(70px,13vh,125px);margin-bottom:-1px;overflow:hidden}
.entry-flowers{position:absolute;left:0;right:0;top:0;height:0}
.entry-flowers .f{bottom:-30px}
.entry-flowers .f1{right:9%;width:38px}.entry-flowers .f2{right:14%;width:34px}.entry-flowers .f3{right:5%;width:46px}
@media(max-width:620px){.entry-flowers .f1{width:30px;right:6%}.entry-flowers .f2{width:27px;right:17%}.entry-flowers .f3{width:36px;right:26%}.entry-flowers .f{bottom:-24px}}

/* Passing messages: one small quiet slip, nothing more. */
#toast{width:max-content;max-width:min(86vw,340px);inset:auto auto max(26px,env(safe-area-inset-bottom)) 50%;margin:0;overflow:visible;padding:9px 16px;border:1.5px solid #cdb68e;border-radius:6px;background:#fff6e5;color:var(--cocoa);font:400 15px/1.3 'Duet Text',ui-rounded,'Trebuchet MS',sans-serif;text-align:center;translate:0 8px;transition:opacity .2s,translate .2s;z-index:2147483000}
#toast.warn{border-color:#a65f4c;color:#8a4a3a}
#toast.show{opacity:1;translate:0 0}
/* Inline notes beside the buttons that caused them */
.error,#drafts .error{font:15px/1.4 'Duet Text',ui-rounded,'Trebuchet MS',sans-serif;color:#a65f4c}

/* The animal on the title is placed by its own drawing: the cat's belly line is ~65% down its picture, the deer's ~82%, so each rests on the letter tops. */
.wordmark .project-word .brand-cat[src*="deer"]{width:46%;left:55%;top:.13em;transform:translateY(-82.4%)}

/* ---- settings and the about note use the same buttons as the dash ---- */
#settings{border:2px solid #594739;border-radius:14px;background:#fff6e5;box-shadow:0 12px 30px #3b2f2638}
#settings .paper-button,#next-track,#settings-close{display:inline-flex;align-items:center;justify-content:center;gap:9px;height:46px;min-height:46px;padding:0 18px;color:#594739;font:400 18px/1 'Duet Text',ui-rounded,'Trebuchet MS',sans-serif;letter-spacing:.02em;cursor:pointer;background:linear-gradient(180deg,#fffaf0,#fff2da);border:2px solid #594739;border-radius:14px 17px 13px 16px/16px 13px 17px 14px;box-shadow:0 3px 0 #59473977,0 8px 12px #59473320,inset 0 1px 0 #fff;transition:transform .14s,box-shadow .14s,background .2s}
#settings .paper-button svg,#next-track svg{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
#settings .paper-button:hover,#next-track:hover,#settings-close:hover:hover{transform:translateY(-1px);background:#fff4e0;box-shadow:0 4px 0 #59473977,0 10px 14px #59473326,inset 0 1px 0 #fff}
#settings .paper-button:active,#next-track:active,#settings-close:active:active{transform:translateY(3px);box-shadow:0 0 0 #59473977,0 2px 4px #59473326,inset 0 1px 0 #fff}
#mute{color:#fff9e9!important;background:linear-gradient(180deg,#75865f,#66745a)!important;border-color:#3d4933!important;box-shadow:0 3px 0 #3d4933,0 8px 12px #3d493338,inset 0 1px 0 #ffffff3d!important}
#mute:hover{filter:brightness(1.06)}
#mute svg{fill:currentColor;stroke:none}
#next-track{width:46px;padding:0}
#settings-close{width:40px;height:40px;min-height:40px;padding:0;border-radius:50% 46% 52% 44%/46% 52% 44% 50%;box-shadow:0 2px 0 #59473966}
#settings-close svg svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2}
#settings .music-buttons{display:flex;gap:10px}#settings #mute{flex:1}
#settings input[type=range]{accent-color:#66745a}

/* 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}


/* ===== Papers panel, kept colours, eraser modes ===== */
.paper-btn{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;padding:6px 12px 6px 8px;border:1.5px solid #cdb68e;border-radius:10px;background:#fbf4e6;color:#594739;font:15px 'Duet Text',ui-rounded,'Trebuchet MS',sans-serif;cursor:pointer;text-align:left}
.paper-btn:hover{background:#fff}.paper-btn svg{width:20px;height:20px;margin-left:auto;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.paper-chip{flex:none;width:32px;height:32px;border-radius:8px;background:var(--swatch,#fff);box-shadow:0 0 0 1.5px #cdb68e}
.paper-menu{position:fixed;z-index:60;padding:14px;border:1.5px solid #cdb68e;border-radius:12px;background:#fbf4e6;box-shadow:0 12px 30px #5947393f}
.paper-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px 10px}
.paper-pick{display:flex;flex-direction:column;align-items:center;gap:6px;padding:0;border:0;background:none;color:#594739;font:13px 'Duet Text',ui-rounded,'Trebuchet MS',sans-serif;cursor:pointer}
.paper-pick i{display:block;width:100%;aspect-ratio:1/.8;min-height:44px;border-radius:8px;background:var(--swatch);box-shadow:0 0 0 1.5px #cdb68e;transition:transform .15s}
.paper-pick[aria-pressed=true] i{box-shadow:0 0 0 3px #594739;transform:scale(1.04)}
.paper-pick:focus-visible{outline:2.5px solid #66745a;outline-offset:3px;border-radius:8px}
.ed-recent{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.ed-recent .ed-swatch{width:30px;height:30px}
.ed-modes{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.ed-mode{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:52px;border:1.5px solid #cdb68e;border-radius:9px;background:#fbf4e6;color:#594739;font:15px 'Duet Text',ui-rounded,'Trebuchet MS',sans-serif;cursor:pointer;line-height:1.1}
.ed-mode b{font-weight:600}.ed-mode small{font-size:11px;color:#85745f}
.ed-mode[aria-pressed=true]{background:#dce1c6;border-color:#594739;box-shadow:0 3px 0 #594739}
.ink-hex{flex:1;min-width:0;height:34px;padding:0 10px;border:1.5px solid #cdb68e;border-radius:9px;background:#fff;color:#594739;font:14px ui-monospace,Menlo,Consolas,monospace}
#drawing.picking{cursor:crosshair}
@media(max-width:760px),(max-width:1000px) and (orientation:portrait){
  .paper-menu{left:8px!important;right:8px;width:auto!important;top:auto!important;bottom:8px}
  .paper-grid{grid-template-columns:repeat(4,1fr)}
  .ed-ink{flex-wrap:wrap}.ed-recent{flex:1 1 100%;margin-top:2px}.ed-recent .ed-swatch{width:30px;height:30px}
  .ed-paperopt .paper-btn{flex:1;min-height:42px}
  #opts-erase .ed-modes{flex:1}.ed-mode{min-height:42px}
}
