.cocoon-layout .cocoon-shell{
 max-width:1250px;margin-inline:auto;padding-bottom:0;
}
.cocoon-layout .cocoon-header{
 min-height:68px;height:auto;margin-inline:clamp(16px,4vw,44px);padding-block:8px;
 gap:16px;border-bottom:1px solid #d9ddce;
}
.cocoon-header .brand{margin:0;font-size:clamp(1.2rem,2.1vw,1.55rem);color:#35483c}
.cocoon-header .brand-mark{width:36px;height:36px;border-radius:12px}
.cocoon-header .top-actions{gap:4px;flex-wrap:nowrap}
.cocoon-header :is(.language,.icon-button){min-width:42px;min-height:42px;color:#3d5043}
.cocoon-header .header-settings{width:auto;display:inline-flex;gap:6px;align-items:center;padding-inline:8px}
.header-settings-label{font-size:.78rem;font-weight:650}
.cocoon-trace-intro{color:#3e5d4b;font-size:.93rem;margin:12px 0 7px;max-width:56ch}
.tools-search{display:block;width:min(100%,26rem);margin-block:0 18px}
.tools-search input{display:block;width:100%;min-height:46px;margin-block-start:5px}
.access-directory [hidden]{display:none}
@media(max-width:720px){.header-settings-label{display:none}.cocoon-header .header-settings{padding-inline:0}.cocoon-header:has([data-sound-stop]:not([hidden])) .brand>span:last-child{font-size:1rem}}
.cocoon-desktop-nav{display:flex;align-items:center;gap:3px;flex:1;justify-content:center}
.cocoon-nav-item{
 display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:8px 11px;min-height:44px;
 border:0;background:none;border-radius:10px;color:#4d5c50;font-size:.88rem;font-weight:550;
}
.cocoon-nav-item:is(:hover,[aria-current=page]){background:#e7ebdf;color:#314a39}
.cocoon-layout .mobile-nav button:not([aria-current=page]){color:#485b4c}
.garden-memory-strip:empty{display:none}
.garden-discovery{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin:10px 16px;padding:10px 14px;border-radius:12px;background:#e9efe5}
.living-stage [data-wildlife-discovery]{position:absolute;inset:12px 12px auto;z-index:5;pointer-events:none}
.living-stage[data-landscape]:not([data-landscape=""]) [data-wildlife-discovery]{inset:auto 12px 12px}
.living-stage .garden-discovery{width:fit-content;max-width:100%;margin:0;padding:7px 9px;background:#faf6e9ed;color:#294537;gap:5px 12px;box-shadow:0 3px 10px #25382748}
.garden-discovery small{display:block;font-size:.72rem}
.garden-discovery .button{pointer-events:auto;min-height:44px}
.refuge-voice{max-width:32rem;text-align:start;margin:12px auto}
.refuge-voice summary{cursor:pointer;padding:10px 0;font-weight:650}
.local-conversation{display:grid;gap:8px;margin-block:16px}
.local-conversation article{background:#e9eee3;border-radius:12px;padding:12px 14px}
.local-conversation article:nth-child(odd){background:#f3eee3}
.local-conversation article p{margin:5px 0 0;overflow-wrap:anywhere;white-space:pre-wrap}
.refuge-support-result{margin-block:14px;padding:14px 16px;border-inline-start:3px solid #728873;background:#ebf0e7;border-radius:6px}
.refuge-support-result p{margin:0}
.refuge-mood-history{list-style:none;padding:0}
.refuge-mood-history li{display:grid;grid-template-columns:minmax(6.5rem,1fr) minmax(3rem,2fr) minmax(3.5rem,1fr);align-items:center;gap:10px;margin-block:12px}
.refuge-mood-history progress{width:100%;accent-color:#497457}
.refuge-mood-context{margin:18px 0;padding:12px 16px 16px;border:1px solid #ced8ca;border-radius:12px}
.refuge-mood-context legend{padding-inline:6px;font-weight:650}
.refuge-mood-context p,.refuge-mood-patterns p{font-size:.94em;color:#415846}
.refuge-mood-context button[aria-pressed=true],.refuge-mood-period button[aria-pressed=true]{background:#385847;border-color:#385847;color:#fffef6}
.refuge-mood-labels{grid-column:1/-1;color:#3d5948}
.refuge-mood-patterns{margin-top:18px;padding:16px;border-radius:12px;background:#eaf0e5}
.refuge-mood-patterns h3{margin-block:0 8px}
.refuge-mood-patterns ul{padding:0;list-style:none;display:grid;gap:12px}
.refuge-mood-patterns li{display:grid;grid-template-columns:1fr auto;gap:6px}
.refuge-mood-distribution{display:flex;grid-column:1/-1;overflow:hidden;border-radius:7px;gap:1px}
.refuge-mood-distribution span{min-width:2ch;padding:3px;text-align:center;background:#c8d8c1;color:#24372b}
.refuge-mood-distribution [data-level="1"]{background:#665c72;color:#fff}
.refuge-mood-distribution [data-level="2"]{background:#596777;color:#fff}
.refuge-mood-distribution [data-level="4"]{background:#748c62;color:#101b10}
.refuge-mood-distribution [data-level="5"]{background:#d7ba76;color:#29210e}
.cocoon-layout #main{padding:clamp(19px,4vw,42px) clamp(16px,4vw,44px) 48px}
.cocoon-layout .page-heading:has(.eyebrow:empty) .eyebrow:empty,.cocoon-layout .page-heading p:empty{display:none}
.cocoon-home{
 display:grid;grid-template-columns:minmax(240px,.84fr) minmax(0,1.35fr);align-items:center;
 gap:clamp(18px,4vw,64px);padding:0!important;margin:0!important;background:none!important;border:0!important;box-shadow:none!important;
}
.cocoon-intro{padding:6px 0;min-width:0}
.cocoon-intro h1{
 font-family:Georgia,serif;font-weight:500;font-size:clamp(2.15rem,4.9vw,4.1rem);
 letter-spacing:-.045em;line-height:1.03;margin:0 0 16px;color:#2e4638;text-wrap:balance;
}
.cocoon-intro p{font-size:clamp(.95rem,1.5vw,1.12rem);line-height:1.6;margin:0 0 23px;color:#465a4b;max-width:41ch}
.cocoon-choices{display:grid;grid-template-columns:minmax(0,1fr);gap:9px;margin:0!important;max-width:370px}
.cocoon-choices .button{min-height:56px;justify-content:flex-start;text-align:start;font-size:1rem;padding:8px 13px;white-space:normal}
.cocoon-choices .button>span{display:grid;gap:3px;min-width:0}
.cocoon-choices .button strong{font-size:inherit;font-weight:650}
.cocoon-choices .button small{color:inherit;font-weight:450;font-size:.78rem;line-height:1.3;opacity:.92}
.cocoon-choices .button svg{flex-shrink:0}
.cocoon-choices .light{background:#f8f8f0;border-color:#dde3d5;color:#39533f}
.cocoon-choices .primary{background:#365345;color:#fbf9ee}
.cocoon-intro .journey-primary:empty,.cocoon-home [data-garden-recap]:empty{display:none}
.cocoon-intro .journey-primary:not(:empty){margin-top:12px}
.cocoon-garden-preview{position:relative;min-width:0}
.cocoon-landscapes{min-height:44px;margin-top:3px}
.cocoon-garden-doors{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;margin-bottom:10px}
.cocoon-garden-doors p{flex:1;min-width:14ch;margin:0;color:#4a5c4d;font-size:.83rem;line-height:1.4}
.cocoon-garden-doors .button{font-size:.91rem}
.cocoon-home .journey-scene{
 grid-area:auto;min-width:0;padding:0;margin:0;background:#545d46;
 border:1px solid #c8d0bd;border-radius:20px;overflow:hidden;
}
.cocoon-home [data-cocoon-preview]>.living-stage{
 height:clamp(320px,44vw,545px);min-height:0;border-radius:0;touch-action:pan-y;
}
[data-cocoon-preview] > :not(.living-stage),
[data-cocoon-preview] :is(.living-interactions,.garden-visitor-layer,.garden-memory-plots,.living-weather,.living-road){display:none}
.cocoon-home .living-buddy.has-refuge-pet{width:clamp(134px,27%,178px)}
.cocoon-home .garden-speech{font-size:.93rem!important}
.cocoon-home [data-garden-recap]{grid-column:1/-1}
.cocoon-world{border-radius:20px;box-shadow:none}
.cocoon-world .world-toolbar{height:auto;min-height:65px;padding:10px 16px;flex-wrap:wrap;gap:7px}
.cocoon-world .world-toolbar h1{font:500 clamp(1.4rem,3vw,2.1rem)/1.14 Georgia,serif;letter-spacing:-.015em;margin:0;color:#354b3d;text-wrap:balance}
.cocoon-world .toolbar-actions .button{min-height:44px;font-size:.83rem}
.cocoon-world .toolbar-actions .text-button{min-height:44px;font-size:.83rem;text-align:start;white-space:normal}
.cocoon-place-settings{position:relative;color:#3d5043}
.cocoon-place-settings>summary{display:flex;align-items:center;min-height:44px;padding:6px 10px;border:1px solid #d5ddce;border-radius:10px;background:#f8f8f0;font-size:.83rem;font-weight:650;cursor:pointer;list-style:none}
.cocoon-place-settings>summary::-webkit-details-marker{display:none}
.cocoon-place-settings>summary::after{content:'›';margin-inline-start:8px;rotate:90deg;transition:rotate .16s ease}
.cocoon-place-settings[open]>summary::after{rotate:-90deg}
.cocoon-place-settings>div{position:absolute;z-index:12;inset:calc(100% + 5px) 0 auto auto;display:grid;gap:4px;min-width:min(72vw,220px);padding:6px;border:1px solid #d5ddce;border-radius:11px;background:#fbfaf3;box-shadow:0 8px 24px #26382d29}
.cocoon-place-settings>div :is(.button,.text-button){width:100%;justify-content:flex-start;background:#fbfaf3}
.refuge-presence-actions{position:absolute;z-index:6;inset:auto 10px 9px;display:flex;align-items:center;justify-content:center;gap:5px;flex-wrap:wrap;pointer-events:none}
.refuge-presence-actions .button{min-height:44px;padding:6px 10px;font-size:.84rem;pointer-events:auto;box-shadow:0 2px 10px #251d1755}
.refuge-presence-actions .light{background:#f7f2e4;color:#334c3c}
.refuge-presence-actions.outside-scene{position:static;margin:0;padding:.65rem clamp(.5rem,2vw,1rem);justify-content:flex-start;gap:.45rem;background:var(--paper,#faf8f1)}
.refuge-presence-actions.outside-scene .button{box-shadow:none;line-height:1.3}
@media(max-width:560px){.refuge-presence-actions.outside-scene{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.refuge-presence-actions.outside-scene .primary{grid-column:1/-1}}
.refuge-presence-actions.outside-scene .button{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.living-stage[data-landscape]:not([data-landscape=""]) .refuge-presence-actions{inset:8px 10px auto;justify-content:flex-end}
.living-stage[data-landscape]:not([data-landscape=""]) .garden-speech{top:59px}
.living-stage[data-quiet-pause] .refuge-presence-actions .light:not(.pause-markers,.pause-gesture),
.living-stage[data-quiet-pause] ~ .refuge-presence-actions.outside-scene .light:not(.pause-markers,.pause-gesture){display:none}
.refuge-presence-actions :is(.pause-markers,.pause-gesture)[hidden]{display:none!important}
.living-stage[data-place=house][data-quiet-pause] .refuge-presence-actions{justify-content:flex-end}
.living-stage[data-place=house][data-quiet-pause] .garden-speech{inset-inline-start:auto;inset-inline-end:13px}
.living-stage[data-hide-rest-markers] :is(.living-interactions,.garden-visitor-layer,.garden-memory-plots,[data-wildlife-discovery],.personal-lantern-layer){visibility:hidden}
.living-stage[data-hide-rest-markers] :is(.cottage-target-dot,.cottage-lamp-spot){visibility:hidden}
.living-stage[data-quiet-pause=minimal] ~ :is(.living-context,.living-care-tools,.cocoon-scenery-actions){display:none}
.living-decor-target.is-crowded{visibility:hidden;pointer-events:none}
[data-first-screen=quiet] .living-stage:not([data-explore-hotspots]) .living-decor-target:not([data-effect=swing]):not([data-id=garden-lantern]){visibility:hidden;pointer-events:none}
[data-first-screen=quiet] .living-stage:not([data-explore-hotspots]) .living-decor-target:is([data-effect=swing],[data-id=garden-lantern]):not(.out-of-view){visibility:visible;pointer-events:auto}
[data-first-screen=quiet] .living-stage:not([data-explore-hotspots]) :is(.cottage-scene-controls,.cottage-lamp-spot){visibility:hidden;pointer-events:none}
[data-first-screen=quiet] .living-context [data-action=living-more-landmarks]{display:none}
[data-first-screen=quiet] .living-decor-label.delayed-hint{opacity:0;animation:cocoon-first-hint 1ms 2.2s step-end forwards}
@keyframes cocoon-first-hint{to{opacity:1}}
@media(prefers-reduced-motion:reduce){[data-first-screen=quiet] .living-decor-label.delayed-hint{opacity:1;animation:none}}
.cocoon-presence-more{pointer-events:auto;align-self:stretch}
.cocoon-presence-more>summary{display:grid;place-items:center;min-height:44px;padding:6px 10px;border:1px solid #d5ddce;border-radius:10px;background:#f7f2e4;color:#334c3c;font-size:.84rem;cursor:pointer;list-style:none}
.cocoon-presence-more>summary::-webkit-details-marker{display:none}
.cocoon-presence-more>div{display:flex;gap:5px;flex-wrap:wrap;padding-top:5px}
.cocoon-presence-more>div .button{flex:1 1 140px}
@media(max-width:520px){
 .refuge-presence-actions{justify-content:flex-start}
 .refuge-presence-actions .button{font-size:.77rem;padding-inline:7px}
 [data-first-screen=quiet] .refuge-presence-actions.outside-scene{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 [data-first-screen=quiet] .refuge-presence-actions.outside-scene>[data-action=living-calm]{grid-column:1/-1;min-height:52px;font-size:1rem;line-height:1.25}
 [data-first-screen=quiet] .refuge-presence-actions.outside-scene>[data-action=living-explore-scene]{min-height:48px;font-size:.94rem;line-height:1.25}
 [data-first-screen=quiet] .refuge-presence-actions.outside-scene>.cocoon-presence-more{min-width:0}
 [data-first-screen=quiet] .refuge-presence-actions.outside-scene>.cocoon-presence-more>div{position:absolute;z-index:7;inset:auto 8px;background:#fbfaf3;padding:7px;border:1px solid #d5ddce;border-radius:10px;box-shadow:0 6px 18px #26382d24}
}
.cocoon-world .living-walk-controls{margin-top:8px}
.cocoon-world .living-instructions{font-size:.88rem;margin-inline:14px}
.cottage-art,.place-craft-art{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.cottage-moment{padding:10px 12px 0}
.cottage-moment[hidden]{display:none}
.cottage-moment-actions,.cottage-book-pages{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap}
.cottage-moment .button{min-height:44px}
.cottage-book{max-width:34rem;margin:10px auto 0;padding:12px 14px;border:1px solid #ddd2b8;border-radius:14px;background:#faf4e8;color:#453a30}
.cottage-book p{margin:0 0 10px;font-family:Georgia,serif;font-size:1.03rem;line-height:1.5}
.cottage-furnishing{max-width:38rem;margin:.6rem auto .3rem;padding:.45rem .7rem;color:#465c4f;font-size:.9rem}
.cottage-furnishing summary{cursor:pointer;text-align:center;padding:.35rem;min-height:35px}
.cottage-furnishing .cottage-moment-actions{align-items:flex-end;gap:.75rem;margin-top:.6rem}
.cottage-furnishing label{display:grid;gap:.25rem;max-width:100%;min-width:0}
.cottage-furnishing select{min-height:44px;max-width:100%}
.cottage-wall-postcard{display:block;position:absolute;left:42%;top:29%;width:6.8%;aspect-ratio:3 / 2;transform:rotate(-3deg);padding:3px;background:#846149;border:1px solid #533b2d;box-shadow:1px 2px 3px #2b180d9e;overflow:hidden;pointer-events:none}
.cottage-wall-postcard>img{display:block;width:100%;height:100%;object-fit:cover}
.cottage-wall-postcard .refuge-portrait{position:absolute;bottom:5%;left:40%;width:42%;height:55%;min-height:0;padding:0;background:none}
.cottage-wall-postcard .refuge-pet-preview{width:100%;height:100%;object-fit:contain}

.cottage-threshold{max-width:74rem;margin:1rem auto 2rem;border-radius:26px;overflow:hidden;background:#fbf7ed;border:1px solid #e5dfd0;display:grid;grid-template-columns:minmax(0,.78fr) minmax(0,1.6fr);align-items:center}
.threshold-copy{padding:clamp(1.1rem,4vw,3rem);min-width:0}
.threshold-copy h1{font-family:Georgia,serif;font-size:clamp(1.9rem,3.4vw,3.65rem);line-height:1.08;color:#273d34;margin:0 0 1.15rem;text-wrap:balance;overflow-wrap:anywhere}
.threshold-entry{min-height:48px;font-weight:650;white-space:normal;text-align:start}
.threshold-secondary{display:flex;flex-wrap:wrap;column-gap:1rem;margin-top:.65rem}
.threshold-secondary .text-button{min-height:44px;text-align:start}
.threshold-secondary [aria-pressed=true]{text-decoration:underline;text-underline-offset:.28em}
.threshold-scene{position:relative;overflow:hidden;aspect-ratio:16 / 9;background:#252f3b;isolation:isolate;direction:ltr}
.threshold-scene>img,.threshold-rain{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none}
.threshold-rain{clip-path:inset(0 76% 24% 0);opacity:.27;background:repeating-linear-gradient(105deg,transparent 0 14px,#d6e5f34d 15px,transparent 16px 25px);animation:threshold-drizzle 2.4s linear infinite}
@keyframes threshold-drizzle{to{background-position:-26px 32px}}
.threshold-door{visibility:hidden;position:absolute;left:63.4%;top:12.45%;width:20.9%;height:66%;background:#4b291b var(--threshold-house) center/cover;perspective:40rem;box-shadow:inset 0 0 1.4rem #44221ab9}
.threshold-door-leaf{position:absolute;inset:0;transform-origin:right center;background:var(--threshold-front) 80.15% 36.6%/478.47% 151.52%;transition:transform .74s cubic-bezier(.2,.63,.37,1);box-shadow:inset -4px 0 7px #39261882}
.threshold-interior{opacity:0;transition:opacity 1.15s ease-in-out}
.threshold-milo{position:absolute;left:49%;bottom:11.7%;width:16%;aspect-ratio:1;transition:transform .65s ease,opacity .45s ease;pointer-events:none;filter:drop-shadow(0 4px 3px #2913038c)}
.threshold-milo .refuge-portrait,.threshold-milo .refuge-portrait-art,.threshold-milo .refuge-pet-preview{display:block;width:100%;height:100%;object-fit:contain}
.threshold-milo .refuge-portrait{background:none;overflow:visible;padding:0}
[data-threshold-phase=opening] .threshold-door,[data-threshold-phase=inside] .threshold-door{visibility:visible}
[data-threshold-phase=opening] .threshold-door-leaf,[data-threshold-phase=inside] .threshold-door-leaf{transform:rotateY(-82deg)}
[data-threshold-phase=opening] .threshold-milo{transform:translateY(-3%) rotate(-4deg)}
[data-threshold-phase=inside] .threshold-interior{opacity:1}
[data-threshold-phase=inside] .threshold-milo{transform:translate(-205%,14%)}
.threshold-return{margin:0 0 1.2rem}
.threshold-video{position:absolute;inset:0;width:100%;height:100%;background:#252f3b;z-index:2}
@media(max-width:740px){.cottage-threshold{grid-template-columns:1fr;margin:.55rem 0 1rem;border-radius:16px}.threshold-scene{grid-row:1}.threshold-copy h1{font-size:clamp(1.5rem,6.5vw,2rem)}.threshold-copy{padding:1rem}.threshold-secondary{column-gap:.75rem}}
.reduced-motion .threshold-scene *{animation:none!important;transition:none!important}
@media(prefers-reduced-motion:reduce){.threshold-scene *{animation:none!important;transition:none!important}}
.cottage-evening-main{width:min(74rem,96%);margin:clamp(.4rem,7dvh,4rem) auto}
.cottage-evening .threshold-scene{aspect-ratio:3 / 2}
.cottage-evening form{display:grid;gap:.65rem;margin-top:1.1rem}
.cottage-evening form input,.garden-cottage-link{max-width:100%;width:100%}
.cottage-evening .threshold-secondary{gap:.55rem}
.cottage-evening button{min-height:44px;white-space:normal}
.evening-canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.evening-fire{position:absolute;left:70%;width:29%;top:37%;height:50%;background:radial-gradient(ellipse,#ffad522d,transparent 72%);mix-blend-mode:screen;animation:evening-embers 5s ease-in-out infinite alternate}
@keyframes evening-embers{from{opacity:.48}to{opacity:1}}
.evening-milo{left:37%;bottom:12%;width:16%}
.evening-milo[data-sitting=true]{transform:translate(-86%,8%) scale(.92,.86);transform-origin:bottom center}
.cottage-guest-cup{padding:.7rem .85rem;margin:.5rem 0;background:#f4eee0;border-radius:.65rem;color:#493d30}
.cottage-guest-cup time{font-size:.9em;margin-inline-start:.65rem}
.cottage-trace{margin:.55rem 0;color:#5b4c3a;font-size:.88rem}
.cottage-presence{display:flex;gap:.45rem;flex-wrap:wrap;margin:.55rem 0}
#toast .refuge-reminder-action{pointer-events:auto;min-height:44px;margin-inline-start:.55rem;color:#fff7dd;text-underline-offset:.2em;text-decoration:underline}
#toast:not(.show) .refuge-reminder-action{pointer-events:none}
.living-stage[data-cottage-alone] .living-buddy,.living-stage[data-cottage-alone] .living-hello{visibility:hidden}
.cottage-shared-lamp{position:absolute;left:32%;top:45%;width:7%;height:22%;border-radius:50%;pointer-events:none;
 background:radial-gradient(ellipse at 50% 17%,#fff2c7 0 8%,#e5aa5c 9% 14%,#ce8f403d 36%,transparent 76%);
 filter:drop-shadow(0 0 18px #f2b25e)}
.cottage-lamp-spot{position:absolute;left:57.5%;top:27%;z-index:8;transform:translate(-50%,.6rem);max-width:min(34%,11rem);pointer-events:none}
.cottage-lamp-spot .button{min-height:44px;padding:.2rem .55rem;background:#fff4d9e6;color:#3e2d1e;border-color:#e4ccab;
 font-size:clamp(.67rem,1.4vw,.86rem);line-height:1.15;white-space:normal;pointer-events:auto}
.threshold-lamp-cue{position:absolute;left:43%;top:6%;width:28%;height:52%;border-radius:50%;opacity:0;pointer-events:none;
 background:radial-gradient(ellipse,#2c211ec4 8%,#3b29237a 46%,transparent 72%);transition:opacity .7s ease}
[data-threshold-phase=inside][data-threshold-lamp=out] .threshold-lamp-cue{opacity:1}

.refuge-room-main{width:min(78rem,96%);margin:clamp(.55rem,6dvh,3rem) auto;color:#312d27}
.refuge-room-view{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);align-items:center;overflow:hidden;border-radius:20px;background:#f9f5eb;border:1px solid #e7decc}
.refuge-room-scene{position:relative;display:grid;aspect-ratio:3 / 2;isolation:isolate;background:#342b29;overflow:hidden}
.refuge-room-scene>img{width:100%;height:100%;object-fit:cover}
.refuge-room-weather{position:absolute;inset:4% 68% 50% 3%;pointer-events:none;opacity:.26;
 background:repeating-linear-gradient(105deg,transparent 0 14px,#d6e5f34d 15px,transparent 16px 25px);animation:threshold-drizzle 2.4s linear infinite}
[data-room-scene=winter-cabin] .refuge-room-weather{inset:0;background-image:radial-gradient(#f6f5e9 1px,transparent 2px),radial-gradient(#f6f5e9 1px,transparent 2px);background-position:8px 8px,0 0;background-size:37px 33px,29px 41px}
[data-room-scene=boreal-aurora] .refuge-room-weather{inset:0 0 38%;background:radial-gradient(ellipse at 46% 29%,#5bdb95b3,transparent 68%);animation:evening-embers 9s ease-in-out infinite alternate}
.refuge-room-copy{padding:clamp(1rem,3vw,2rem);min-width:0}
.guest-card-demo{max-width:56rem;margin:auto;padding:clamp(.85rem,3vw,2rem);color:var(--ink,#28382f)}
.guest-card-demo .garden-views{margin:1rem 0;max-width:47rem}
.guest-card-demo .button-row,.evening-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.55rem}
.guest-card-demo button{min-height:44px}
.refuge-room-tools [data-bench-time]{font-variant-numeric:tabular-nums;align-self:center;padding-inline:.4rem}
.refuge-room-scene [data-bench-flower]{position:absolute;bottom:18%;left:63%;width:1.4rem;height:2.25rem;pointer-events:none;filter:drop-shadow(1px 2px 2px #261f2180);transform:rotate(17deg);border-left:2px solid #617049;transform-origin:bottom}
.refuge-room-scene [data-bench-flower] i{position:absolute;left:-.43rem;top:-.25rem;width:.8rem;height:.68rem;border-radius:68% 38% 65% 40%;background:radial-gradient(at 60% 68%,#c7a067 18%,#cf998d 28%,#af7372 65%,#844e54)}
.refuge-room-scene [data-bench-flower]::after{content:'';position:absolute;left:-.05rem;top:47%;width:.63rem;height:.27rem;border-radius:90% 12% 85% 12%;background:#697657;transform:rotate(-31deg)}
.refuge-room-copy h1{font-family:Georgia,serif;font-size:clamp(1.65rem,3vw,2.8rem);line-height:1.07;margin:0 0 .7rem;color:#343a2d;text-wrap:balance;overflow-wrap:anywhere}
.refuge-room-copy form,.refuge-room-invite{display:grid;gap:.55rem;margin:.75rem 0}
.refuge-room-copy input:not([type=checkbox]),.refuge-room-copy select{width:100%;min-width:0}
.refuge-room-copy .text-button,.refuge-room-copy .button{min-height:44px;white-space:normal}
.refuge-room-presence{min-height:3rem}
.refuge-room-presence p{margin:.25rem 0}
.refuge-room-tools{display:flex;flex-wrap:wrap;gap:.3rem;margin:.7rem 0}
.refuge-room-invite summary,.refuge-room-limits summary{min-height:44px;display:list-item;padding:.6rem 0;cursor:pointer}
.refuge-room-invite p{margin:0 0 .6rem}
.refuge-room-limits{margin:.6rem 0}
.refuge-room-wave{margin:.6rem 0;color:#5e422e}
.refuge-room-milo{position:absolute;left:28%;bottom:13%;width:22%;height:32%;pointer-events:none;filter:drop-shadow(0 4px 4px #27150d99)}
.refuge-room-milo .refuge-portrait,.refuge-room-milo .refuge-portrait-art,.refuge-room-milo .refuge-pet-preview{display:block;width:100%;height:100%;object-fit:contain}
.refuge-room-milo .refuge-portrait{background:none;padding:0}
.refuge-room-lamp{position:absolute;top:38%;width:15%;height:28%;transform:translateX(-50%);display:grid;place-items:center}
.refuge-room-lamp[data-room-lamp=host]{left:58%}
.refuge-room-lamp[data-room-lamp=guest]{left:26%;top:45%}
[data-room-scene=winter-cabin] .refuge-room-lamp,[data-room-scene=boreal-aurora] .refuge-room-lamp{top:52%}
.refuge-room-lamp-art{position:absolute;inset:15% 29% 19%;background:linear-gradient(#353d37,#211e19);
 clip-path:polygon(27% 7%,73% 7%,99% 49%,95% 56%,53% 57%,53% 93%,84% 93%,84% 100%,16% 100%,16% 93%,46% 93%,46% 57%,5% 56%,1% 49%)}
.refuge-room-lamp[data-lit=true] .refuge-room-lamp-art{background:linear-gradient(#f9eccc,#f3bc73 57%,#65604a 58%);filter:brightness(1.1)}
.refuge-room-lamp[data-lit=true]::before{content:"";position:absolute;inset:-48% -42%;background:radial-gradient(ellipse,#ffe49c5a,transparent 66%);mix-blend-mode:screen;pointer-events:none}
.refuge-room-lamp-control{position:relative;place-self:end center;max-width:100%;min-height:44px;min-width:44px;padding:.2rem .45rem;border-radius:10px;border:1px solid #fff3dc;color:#34251c;background:#fff4dedf;font:600 clamp(.65rem,1.3vw,.87rem)/1.15 system-ui;cursor:pointer}
.refuge-room-lamp-control[aria-pressed=true]{background:#f8dc99}
[data-room-gesture]:not([data-room-gesture=lamp]) .refuge-room-lamp-art{opacity:.08;clip-path:none;transition:opacity .5s}
[data-room-gesture]:not([data-room-gesture=lamp]) [data-lit=true] .refuge-room-lamp-art{opacity:1}
[data-room-gesture]:not([data-room-gesture=lamp]) [data-lit=true]::before{display:none}
[data-room-gesture=cup] .refuge-room-lamp-art{inset:39% 31% 29%;border-radius:10% 12% 32% 38%;background:linear-gradient(90deg,#6d5349,#dbbc91)}
[data-room-gesture=cup] [data-lit=true] .refuge-room-lamp-art{background:linear-gradient(90deg,#9f825f,#edd9b3)}
[data-room-gesture=water] .refuge-room-lamp-art{inset:48% 16% 31%;border-radius:50%;background:linear-gradient(#2b4638,#8eb8a8)}
[data-room-gesture=water] [data-lit=true] .refuge-room-lamp-art{background:radial-gradient(ellipse,#a9c4ac,#4d806c 55%,#2d534f 73%)}
[data-room-gesture=leaf] .refuge-room-lamp-art{inset:43% 33% 34%;transform:rotate(-14deg);border-radius:3% 60% 37% 70%}
[data-room-gesture=leaf] [data-lit=true] .refuge-room-lamp-art{background:linear-gradient(130deg,#c4965b,#927046)}
[data-room-gesture=bench] .refuge-room-lamp-art{inset:52% 23% 23%;border-radius:20% 20% 10% 10%}
[data-room-gesture=bench] [data-lit=true] .refuge-room-lamp-art{background:linear-gradient(155deg,#c1a98d,#76634e)}
@media(max-width:740px){.refuge-room-view{grid-template-columns:1fr}.refuge-room-lamp{width:21%}.refuge-room-copy{padding:1rem}}
.reduced-motion .refuge-room-weather{animation:none}
@media(prefers-reduced-motion:reduce){.refuge-room-weather{animation:none}}
.refuge-pilot{max-width:46rem;margin:clamp(.7rem,5dvh,3rem) auto;padding:clamp(1rem,5vw,2.6rem);
 background:#fbf7ed;color:#323b31;border:1px solid #e4dbcb;border-radius:20px}
.refuge-pilot h1{font-family:Georgia,serif;font-size:clamp(1.7rem,4vw,3rem);color:#273d34;line-height:1.08;margin:0 0 .9rem}
.refuge-pilot form{display:grid;gap:.6rem;margin:1rem 0}
.refuge-pilot .button,.refuge-pilot .text-button{min-height:44px;white-space:normal}

.refuge-event-visual{position:absolute;pointer-events:none;z-index:3}
.refuge-event-controls{display:flex;justify-content:center;align-items:center;gap:.25rem .8rem;flex-wrap:wrap;padding:.3rem .7rem;color:#526859;font-size:.85rem}
.refuge-event-controls[hidden]{display:none}
.refuge-event-controls .text-button{min-height:44px}
.refuge-event-visual[data-event=valleyLamp]{left:26%;top:35.6%;width:.34rem;aspect-ratio:1;border-radius:40%;background:#f8c778;box-shadow:0 0 9px 2px #df9d62;animation:refuge-valley-light 9s ease-out both}
@keyframes refuge-valley-light{0%,20%{opacity:.1}58%,100%{opacity:.84}}
.refuge-event-visual[data-event=windowMist]{left:13%;top:20%;width:15%;height:22%;background:radial-gradient(ellipse,#b7c4cb72,transparent 72%);filter:blur(4px);animation:refuge-window-mist 12s ease-out both}
@keyframes refuge-window-mist{0%{opacity:.72;transform:translateY(7%)}100%{opacity:.12;transform:translateY(-27%)}}
.refuge-event-visual[data-event=glassDrop]{left:52%;top:16%;width:3px;height:12%;border-radius:100%;background:linear-gradient(transparent,#d4eaf7b7);animation:refuge-glass-drop 6s ease-in infinite}
@keyframes refuge-glass-drop{0%{transform:translateY(0);opacity:0}25%{opacity:.8}75%,100%{transform:translateY(145%);opacity:0}}
.refuge-event-visual[data-event=greenhouseMoth]{left:62%;top:22%;width:.8rem;height:.45rem;border-radius:45% 55% 47% 53%;background:linear-gradient(90deg,#97816a 47%,#5f4d42 50%,#c0ab83 53%);opacity:.68;animation:refuge-moth-drift 8s ease-in-out both}
@keyframes refuge-moth-drift{0%{transform:translate(3rem,1rem) rotate(-25deg);opacity:0}35%{transform:translate(-1rem,-1rem) rotate(30deg);opacity:.72}75%,100%{transform:translate(0) rotate(-9deg);opacity:.67}}
.refuge-event-visual[data-event=lakeBird]{left:24%;top:29%;width:.85rem;height:.46rem;border-top:2px solid #394c52;border-radius:100%;filter:drop-shadow(0 1px 0 #deebed80);animation:refuge-lake-bird 7s ease-in-out both}
.refuge-event-visual[data-event=lakeBird]::after{content:"";position:absolute;left:65%;top:-2px;width:80%;height:100%;border-top:2px solid #394c52;border-radius:100%}
@keyframes refuge-lake-bird{0%{transform:translate(-6vw,1.4rem) rotate(-6deg);opacity:0}21%,75%{opacity:.74}100%{transform:translate(26vw,-.75rem) rotate(2deg);opacity:.25}}
.refuge-event-visual[data-event=lakeRipple]{left:63%;top:69%;width:8%;height:2.3%;border:1px solid #ddebf5bd;border-radius:50%;box-shadow:0 1px 2px #36495b;animation:refuge-lake-ripple 4.5s ease-out both}
@keyframes refuge-lake-ripple{0%{transform:scale(.15);opacity:0}25%{opacity:.8}100%{transform:scale(1.35);opacity:.23}}
.reduced-motion .refuge-event-visual{animation:none!important}
@media(prefers-reduced-motion:reduce){.refuge-event-visual{animation:none!important}}
.cottage-book-pages output{font-size:.79rem;text-align:center}
.greenhouse-moment{align-items:end}
.greenhouse-moment label{display:grid;gap:3px;margin:0;font-size:.82rem}
.greenhouse-moment select{min-height:44px;max-width:min(100%,13rem)}
.personal-lantern-layer{position:absolute;inset:0;z-index:6;pointer-events:none}
.personal-lantern{position:absolute;inset-inline-start:auto;left:var(--gift-x);top:var(--gift-y);translate:-50% -75%;width:48px;height:48px;
 border:0;border-radius:14px;background:none;pointer-events:auto;display:grid;place-items:center;isolation:isolate}
.personal-lantern .refuge-lantern{width:24px;height:30px;opacity:.82;pointer-events:none}
.personal-lantern[data-lit=false] .refuge-lantern{filter:saturate(.55) brightness(.58)}
.personal-lantern[data-lit=true]::before{content:"";position:absolute;inset:-15px;z-index:-1;border-radius:50%;
 background:radial-gradient(ellipse,#fbd79145,#fcd27b18 52%,transparent 70%);pointer-events:none}
.personal-lantern:focus-visible{outline:2px solid #fff3c6;outline-offset:3px}
.friend-lantern-note p,.friend-lantern-note time{display:block;margin:6px 0 12px;color:#354b3e}
.friend-lantern-note time{font-size:.85rem}
.cocoon-world-links{padding:10px 14px 16px;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:12px 20px}
.cocoon-quiet-tools{margin:0 14px 14px}
.cocoon-quiet-tools summary{padding:12px 6px;cursor:pointer;color:#405345;min-height:44px;overflow-wrap:anywhere}
.cocoon-quiet-tools .cocoon-world-links{padding-inline:6px}
.cocoon-world-links section{border-top:1px solid #dce2d3;padding-top:9px}
.cocoon-world-links h2{font-size:.99rem;margin:0 0 6px;color:#405345}
.cocoon-action-row{display:flex;align-items:center;gap:6px 8px;flex-wrap:wrap}
.cocoon-world-links .button,.cocoon-world-links .text-button{min-height:44px;font-size:.88rem}
.cocoon-world-links [data-action=living-calm][aria-pressed=true]{background:#e4ecdd;border-color:#7d9177;color:#374e3c}
.cocoon-garden-extras,.cocoon-details,.cocoon-journal-options{
 margin:10px 13px 0;border-top:1px solid #dce2d3;padding:3px 0;
}
:is(.cocoon-garden-extras,.cocoon-details,.cocoon-journal-options) > summary{
 min-height:44px;padding:11px 2px;color:#465c4a;font-weight:550;cursor:pointer;
}
.cocoon-world .living-stage+.living-walk-controls+.living-boundary:empty{display:none}
.cocoon-garden-menu h3{font-size:1.04rem;font-weight:600;color:#405345;margin:0 0 11px}
.cocoon-garden-menu-links{border-top:1px solid #dce1d5;margin-top:16px;padding-top:12px;display:flex;gap:7px;flex-wrap:wrap}
.cocoon-option-list{display:grid;gap:9px}
.cocoon-option-list .button{min-height:46px;justify-content:flex-start;text-align:start}
.cocoon-world .living-context{padding-inline:12px;gap:2px 10px;flex-wrap:wrap}
.cocoon-world .living-context .living-instructions{flex-basis:100%;margin-inline:0}
.cocoon-world .living-context .text-button{margin:0;min-height:44px;font-size:.82rem;text-align:start}
.cocoon-world .living-context button[hidden]{display:none}
.cocoon-scenery-actions{margin:0 12px 7px;padding:8px;background:#f8f5eb;border:1px solid #dce2d3;border-radius:10px}
.cocoon-scenery-actions:not([hidden]){display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,155px),1fr));gap:5px}
.cocoon-scenery-actions .button{justify-content:flex-start;text-align:start;min-height:44px;font-size:.85rem;padding:6px 9px}
.cocoon-tools-head h1{font:500 clamp(1.75rem,4vw,2.55rem) Georgia,serif;letter-spacing:-.02em}
.cocoon-tools-head nav{gap:7px}
.cocoon-layout .access-directory{margin-top:22px}
.cocoon-pause{text-align:center;padding:8px 12px 14px;color:#405649}
.cocoon-pause .breathing-orb{
 width:min(43vw,164px);height:min(43vw,164px);margin:30px auto 35px;border:1px solid #b6cabb;
 background:radial-gradient(circle at 39% 30%,#e5f0e4,#aec6b3 67%,#99b2a1);
 box-shadow:0 0 0 12px #d5e4d87d;animation:cocoon-breathe 9s ease-in-out infinite;
}
@keyframes cocoon-breathe{0%,100%{transform:scale(.87)}48%{transform:scale(1.07)}}
.reduced-motion .cocoon-pause .breathing-orb{animation:none}
@media(prefers-reduced-motion:reduce){.cocoon-pause .breathing-orb{animation:none}}
.cocoon-feelings>p{font-size:1rem;color:#425648}
.cocoon-feeling-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.cocoon-feeling-list .button,.cocoon-feeling-actions .button{min-height:44px;white-space:normal}
.cocoon-feeling-list .button[aria-pressed=true]{border-color:#668268;background:#e4eddf;color:#34503d}
.cocoon-feelings .cocoon-reflection{margin:16px 0;padding:12px 14px;background:#e9eee3;border-radius:10px}
.cocoon-feeling-actions{display:flex;align-items:center;flex-wrap:wrap;gap:7px 14px}
.cocoon-feeling-actions .text-button{min-height:44px}
.cocoon-pet-top{display:grid;grid-template-columns:minmax(0,1fr) 112px;align-items:center;gap:11px}
.cocoon-pet-top [data-pet-preview]{background:#ede9da;border-radius:12px;padding:6px;height:107px}
.cocoon-pet-top .refuge-portrait{height:95px}
.cocoon-variety{min-width:0;border:0;margin:11px 0;padding:0}
.cocoon-variety legend{font-weight:600;font-size:.88rem;color:#415648;padding:0}
.cocoon-variety-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:6px}
.cocoon-variety-list label{position:relative;margin:0;min-width:0;cursor:pointer}
.cocoon-variety-list label>span{
 min-width:0;display:flex;flex-direction:column;align-items:center;text-align:center;gap:3px;
 border:1px solid #d6decf;border-radius:10px;background:#f5f4eb;padding:5px;min-height:66px;
}
.cocoon-variety-list label>span b{font-size:.78rem;line-height:1.25;text-wrap:balance;overflow-wrap:anywhere}
.cocoon-variety-list input:checked+span{background:#e5ecdf;border-color:#65866a}
.cocoon-variety-list input:focus-visible+span{outline:2px solid #576f5d;outline-offset:2px}
.cocoon-variety-list .refuge-portrait{height:67px}
.cocoon-pet-form .form-row{gap:8px;margin-top:12px}
.cocoon-pet-form .cocoon-details{margin-inline:0;margin-bottom:10px}
.cocoon-pet-form .button.primary{min-height:45px}
@media(max-width:880px){
 .cocoon-desktop-nav{display:none}
 .cocoon-layout .cocoon-shell{padding-bottom:100px}
 .cocoon-layout .mobile-nav{display:grid}
 .cocoon-layout .mobile-nav .cocoon-nav-item:has(svg){display:grid;justify-items:center;gap:4px;min-height:49px}
 .cocoon-layout .cocoon-header{min-height:57px}
 .cocoon-layout #main{padding:18px 14px 26px}
 .cocoon-home{grid-template-columns:minmax(0,1fr);gap:17px}
 .cocoon-intro h1{margin-bottom:6px}
 .cocoon-intro p{margin-bottom:13px}
 .cocoon-intro .cocoon-choices{max-width:none;gap:6px}
 .cocoon-choices .button{min-height:50px;font-size:.9rem;padding:7px 10px}
 .cocoon-home [data-cocoon-preview]>.living-stage{height:clamp(230px,69vw,338px)}
 .cocoon-world .world-toolbar{padding:7px 10px}
 .cocoon-world .toolbar-actions .button{padding:6px 8px;font-size:.76rem}
 .cocoon-world .living-instructions{margin-inline:9px}
}
@media(max-width:350px){
 .cocoon-header .brand-mark{display:none}
 .cocoon-feeling-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
.night-shell{width:min(94%,58rem);margin:1.2rem auto 4rem;color:#e9eff5;background:#101d2c;border-radius:1.8rem;padding:clamp(.85rem,3vw,2rem);box-shadow:0 1.8rem 6rem #1222342f}
.night-shell h1{color:#fff3d6;margin:1.15rem 0 .6rem;overflow-wrap:anywhere}
.night-shell .night-byline{color:#bdcbd5;margin:.2rem 0 .7rem}
.night-shell .button{min-height:44px;white-space:normal}
.night-shell .button.light{background:#253548;color:#f4f5f6;border-color:#486176}
.night-shell .button.light[aria-pressed=true]{background:#d4b174;color:#172331;border-color:#e1c18b}
.night-shell .button.primary{background:#e6b876;color:#202636;border-color:#f3c887}
.night-shell .text-button{color:#f3ce98;min-height:44px}
.night-tabs{display:flex;align-items:center;flex-wrap:wrap;gap:.55rem;margin:.7rem 0}
.night-hint{color:#bfced8;line-height:1.5}
.night-landscape{position:relative;aspect-ratio:2/1;overflow:hidden;border-radius:1.25rem;background:#12233a;isolation:isolate}
.night-landscape::before{content:"";position:absolute;inset:0;background:linear-gradient(100deg,#08152bc9,#0c1c325d 55%,#081424a8),var(--night-picture) center/cover}
.night-landscape::after{content:"";position:absolute;inset:0;z-index:0;background:linear-gradient(0deg,#050f2566,transparent 50%);pointer-events:none}
.night-landscape[data-night-scene=house]{aspect-ratio:3/2}
.night-landscape[data-night-scene=greenhouse]{aspect-ratio:8/5}
.night-landscape[data-night-scene=station],.station-landscape{aspect-ratio:414/231}
.night-windows{position:absolute;inset:0;z-index:2;pointer-events:none}
.night-pane{position:absolute;left:var(--x);top:var(--y);width:var(--w);height:var(--h);border-radius:1px;background:#06162b59}
.night-glow{background:linear-gradient(126deg,#ffefbdad,#ffc4818b 57%,#de782c86);box-shadow:0 0 18px #f0b455b4,inset 0 0 5px #fff0b9}
.night-glow.after{outline:1px solid #fff2bf;outline-offset:2px;animation:night-recent 2.6s ease-in-out 2}
.night-glow.recent{box-shadow:0 0 22px #f1c273,0 0 7px #fff4d6;animation:night-recent 2.6s ease-in-out 2}
@keyframes night-recent{50%{box-shadow:0 0 30px #f9c875,0 0 9px #fff4d6}}
.night-companion{position:absolute;z-index:2;bottom:4%;inset-inline-start:18%;width:clamp(50px,16%,145px);filter:drop-shadow(0 14px 10px #081020);transition:transform .75s ease-in-out}
.night-companion[data-sitting=true]{transform:translate(17%,8%) rotate(-3deg)}
.night-landscape[data-night-scene=station] .night-companion,.station-landscape .night-companion{inset-inline-start:51%;width:clamp(35px,10%,105px);bottom:13%}
.night-history{padding-inline-start:1.5rem;color:#cad6df}
.night-history li{margin:.4rem 0}
.night-history strong{color:#f9dca8}
.night-card{margin:.8rem 0;padding:.8rem;border:1px solid #455c72;border-radius:1rem}
.night-card summary{cursor:pointer;padding:.45rem;min-height:44px;color:#f9ddb1}
.night-card-photo{height:8rem;border-radius:.7rem;margin:.6rem 0;background:linear-gradient(100deg,#0b1828b4,#12284630),var(--night-picture) center/cover;animation:night-card-light 5s ease-in-out infinite alternate}
@keyframes night-card-light{from{filter:brightness(.76)}to{filter:brightness(1.14)}}
.night-link{display:block;width:100%;margin:.5rem 0}
.boat-landscape{--night-picture:url('/refuge/garden.webp');background:#152a40}
.boat-landscape::after{inset:auto 0 0;height:42%;background:repeating-linear-gradient(173deg,#3f66793d 0 2px,transparent 5px 14px),linear-gradient(110deg,#26475c,#152b41)}
.night-boat{position:absolute;z-index:2;inset-inline-start:12%;bottom:18%;width:clamp(34px,16%,102px);height:16%;filter:drop-shadow(0 6px 4px #122032);transition:inset-inline-start 2.1s ease}
.night-boat::before{content:"";position:absolute;inset:54% 0 4%;background:linear-gradient(#d1a473,#8f6328);clip-path:polygon(0 0,100% 8%,80% 90%,19% 78%)}
.boat-landscape[data-boat-stage="0"] .night-boat{opacity:.38}
.boat-landscape[data-boat-stage="1"] .night-boat,.boat-landscape[data-boat-stage="2"] .night-boat{inset-inline-start:68%}
.boat-landscape[data-boat-motion="launch"] .night-boat{animation:night-boat-across 2.1s ease-in-out}
.boat-landscape[data-boat-motion="return"] .night-boat{animation:night-boat-across 2.1s ease-in-out reverse}
@keyframes night-boat-across{from{inset-inline-start:12%}to{inset-inline-start:68%}}
.boat-landscape[data-boat-stage="2"] .night-boat span,.boat-landscape[data-boat-stage="3"] .night-boat span,.boat-landscape[data-boat-stage="4"] .night-boat span{position:absolute;inset:0 27% 35%;background:#e5cf9f;clip-path:polygon(19% 0,89% 86%,20% 97%)}
.station-landscape .night-train{position:absolute;width:10%;height:28%;z-index:1;left:22%;bottom:42%;border-radius:28% 24% 7% 7%;background:linear-gradient(105deg,#566b75,#263542 70%);box-shadow:inset 0 -5px #aa774a,5px 7px 18px #0d141b;transform-origin:50% 100%;opacity:0}
.night-train i{position:absolute;inset:14% 10% 56%;border-radius:15%;background:linear-gradient(#958f7d,#4e646d)}
.night-train::before{content:"";position:absolute;inset:67% 12% 14%;background:radial-gradient(circle at 14% 48%,#fff6cf 0 13%,transparent 23%),radial-gradient(circle at 86% 48%,#fff6cf 0 13%,transparent 23%);filter:drop-shadow(0 0 5px #ffc475)}
.station-landscape[data-train=true] .night-train{animation:night-train 6s cubic-bezier(.61,.04,.85,.39) both}
@keyframes night-train{0%{transform:scale(.06);opacity:0}12%{opacity:.9}76%{opacity:.95}100%{transform:translate(-190%,220%) scale(2.9);opacity:0}}
.reduced-motion .night-shell *{animation:none!important;transition:none!important}
.reduced-motion .station-landscape[data-train=true] .night-train{transform:translateY(34%) scale(.55);opacity:.9}
@media(prefers-reduced-motion:reduce){.night-shell *{animation:none!important;transition:none!important}.station-landscape[data-train=true] .night-train{transform:translateY(34%) scale(.55);opacity:.9}}

.cocoon-explore-intents{display:flex;gap:.65rem;flex-wrap:wrap;margin-block:0 1rem}
.scene-game{position:absolute;z-index:5;left:46%;top:62%;pointer-events:none;transform:translate(-50%,-50%)}
.scene-game[hidden],.living-stage[data-hide-rest-markers] .scene-game{display:none}
.scene-game[data-game=tea]{left:72%;top:70%}
.scene-game[data-game=boat]{left:64%;top:73%}
.scene-game[data-game=sky]{left:42%;top:21%}
.scene-game-object{position:relative;width:48px;height:46px;padding:0;border:0;background:transparent;cursor:pointer;pointer-events:auto;touch-action:manipulation}
.scene-game-object:focus-visible{outline:3px solid #ffe7ad;outline-offset:2px;border-radius:.5rem}
.scene-game-object i,.scene-game-keepsake{position:absolute;display:block}
.scene-game[data-game=tea] i{left:8px;bottom:8px;width:29px;height:23px;border-radius:42% 48% 31% 35%;background:radial-gradient(at 36% 24%,#dcc49e,#a07852 37%,#594e43 69%,#3e3e38);box-shadow:0 3px 3px #241e1b80}
.scene-game[data-game=tea] i:before{content:"";position:absolute;left:6px;bottom:17px;width:15px;height:12px;border:3px solid #53433a;border-bottom:0;border-radius:70% 70% 0 0}
.scene-game[data-game=tea] i:after{content:"";position:absolute;left:-8px;top:4px;width:11px;height:12px;background:#a88f70;clip-path:polygon(0 0,100% 40%,95% 100%,45% 65%)}
.scene-game[data-game=tea] .scene-game-keepsake{width:17px;height:13px;background:linear-gradient(100deg,#b8ac92,#e9dfc9,#968977);border-radius:15% 20% 47% 43%;bottom:4px;right:-12px;box-shadow:0 2px 2px #34271980}
.scene-game[data-game=tea] .scene-game-keepsake:after{content:"";position:absolute;right:2px;bottom:100%;width:8px;height:13px;border-left:2px solid #eee5d2cf;border-radius:50%;animation:tea-steam 3s ease-out 4}
@keyframes tea-steam{to{transform:translateY(-6px) rotate(12deg);opacity:0}}
.scene-game[data-game=boat] i{width:36px;height:15px;bottom:12px;left:5px;border-radius:12% 22% 60% 75%;background:linear-gradient(175deg,#c1b293 12%,#67503c 18% 45%,#99805d 55% 66%,#554e46 76%);transform:rotate(-7deg);box-shadow:0 3px 2px #333c}
.scene-game[data-game=boat][data-kept] .scene-game-keepsake{width:40px;height:7px;bottom:4px;left:-6px;background:repeating-linear-gradient(90deg,#897458 0 7px,#604e3c 8px);transform:rotate(-8deg)}
.scene-game[data-game=sky] i,.scene-game[data-game=sky] .scene-game-keepsake{width:4px;height:4px;left:23px;top:19px;background:#ffeac0;border-radius:100%;box-shadow:13px 5px 1px #ffe4b5,-14px 12px 1px #e4e9e2,2px -9px 2px #e3ebf8,0 0 7px 2px #ffeecc}
.scene-game[data-game=sky][data-kept] .scene-game-keepsake{width:30px;height:20px;left:10px;top:11px;border-radius:0;background:linear-gradient(140deg,transparent 43%,#fbdca39c 48%,transparent 53%),linear-gradient(25deg,transparent 48%,#fbdca396 51%,transparent 56%);box-shadow:none}
@media(prefers-reduced-motion:reduce){.scene-game *:after{animation:none!important}}
.reduced-motion .scene-game *:after{animation:none!important}

[data-timer-bar]:not([hidden]){display:flex;align-items:center;flex-wrap:wrap;gap:.75rem;padding:.3rem 1rem;background:#edf0e6;color:#354938;border-radius:.7rem;margin-bottom:.7rem}
[data-timer-bar] button,.cocoon-explore-intents button{min-height:44px}

.greenhouse-picked{display:flex;align-items:center;gap:.65rem;margin:.3rem auto;width:100%;justify-content:center}
.greenhouse-picked canvas{width:80px;height:auto;background:#e2e6da;border-radius:50%}
.greenhouse-picked figcaption small{display:block}
.room-seats{position:absolute;inset:0;pointer-events:none}
.room-seats [data-room-seat]{position:absolute;left:24%;bottom:19%;height:12%;width:8%;border-radius:19% 14% 6% 5%;background:repeating-linear-gradient(90deg,#68503e 0 22%,#805f44 23% 26%);transform:skewY(6deg);box-shadow:inset 2px 2px 2px #b3947188,0 4px 5px #28241b99}
.room-seats [data-room-seat=guest]{left:67%;transform:skewY(-6deg)}
.room-seats [data-room-seat]:after{content:"";position:absolute;inset:auto -8% 4%;height:30%;background:#8b7358;border-radius:20%;box-shadow:0 4px 1px #463a30}
.room-seats [data-present=true]:after{background:repeating-linear-gradient(65deg,#7f927b 0 3px,#a2ab92 4px 5px);height:43%}
.shared-kettle{position:absolute;left:49%;bottom:22%;width:5%;height:6%;border-radius:40% 52% 26% 32%;background:linear-gradient(125deg,#a49172,#524f46);box-shadow:0 3px 4px #332b26}
[data-room-shared=true] .shared-kettle:after{content:"";position:absolute;inset:auto 20% 100%;height:140%;border-left:2px solid #eee4d3ab;border-radius:50%;animation:tea-steam 3s ease-out 5}
@media(prefers-reduced-motion:reduce){.shared-kettle:after{animation:none!important}}

.placement-preview .scene{width:100%;min-height:0;aspect-ratio:16/9;pointer-events:none}

.cocoon-tools-head{display:flex;align-items:center;justify-content:space-between;gap:.7rem;flex-wrap:wrap}.space-compact{min-height:44px}
.tea-feature{display:flex;width:100%;align-items:center;gap:1.3rem;overflow:hidden;text-align:start;background:#24382d;color:#fff5db;border:0;border-radius:1rem;margin:1rem 0 1.5rem;padding:0 1rem 0 0;cursor:pointer}
.tea-feature strong,.tea-feature small{display:block;color:inherit}.tea-feature strong{font:1.35rem Georgia,serif}.tea-feature small{margin-top:.35rem}
.tea-feature-art{position:relative;width:33%;max-width:15rem;min-height:7rem;align-self:stretch;background:linear-gradient(145deg,#33413966,#17231966),url('/refuge/house.webp') center 64%/cover}
.tea-feature-art .tea-ingredient{position:absolute;left:15%;bottom:14%;width:32%;height:45%}.ceramic-cup{display:inline-block;width:34%;height:40%;background:linear-gradient(90deg,#625445,#c7bba1 37%,#a89d86 60%,#625745);border-radius:8% 8% 36% 32%;box-shadow:0 6px 6px #29231888,inset 0 4px 1px #533923;position:relative}.tea-feature-art .ceramic-cup{position:absolute;left:46%;bottom:18%}.ceramic-cup:after{content:'';position:absolute;right:-22%;top:14%;width:27%;height:42%;border:3px solid #a3957d;border-left:none;border-radius:0 60% 60% 0}
.first-keepsake{display:grid;justify-items:start;gap:1rem}.first-keepsake-frame{width:min(18rem,90%);aspect-ratio:1.6;border:7px solid #eee8d7;border-bottom-width:22px;background:url('/refuge/garden.webp') center/cover;box-shadow:1px 5px 12px #24312833;transform:rotate(-2deg)}
.room-seats [data-room-seat]{background:linear-gradient(100deg,#584639,#b19371 48%,#665445);border-radius:23% 20% 14% 12%;box-shadow:inset 2px 3px 4px #d4b98b66,0 9px 9px -4px #241b18aa}
.room-seats [data-room-seat]:before{content:'';position:absolute;inset:80% 9% -27%;border-inline:3px solid #564737;transform:perspective(45px) rotateX(15deg);filter:drop-shadow(3px 2px 1px #38291e66)}
.room-seats [data-room-seat]:after{background:linear-gradient(160deg,#c2a480,#816951 66%,#64513d);transform:perspective(55px) rotateX(30deg)}
.room-seats [data-present=true]:after{background:repeating-linear-gradient(110deg,#788472 0 3px,#84917a 3px 5px);box-shadow:inset 4px 3px 6px #bec4a977,2px 5px 4px #32261977}
[data-room-gesture=lamp] .refuge-room-lamp-art{filter:drop-shadow(3px 5px 3px #30211466);border-radius:28% 26% 9% 10%}

.garden-seated-tools{display:flex;align-items:center;flex-wrap:wrap;gap:.45rem .9rem;flex-basis:100%}
.garden-seated-tools[hidden]{display:none}
.garden-companion-presence{color:var(--ink,#3b5148);flex-basis:100%}
.living-stage[data-evening-garden]::after{content:'';position:absolute;inset:0;z-index:4;pointer-events:none;background:linear-gradient(168deg,#6f4c752e,#ce98531a 45%,#191e5059)}
.world-garden .living-board.garden-expanded .living-stage{height:clamp(380px,68vh,850px)!important;height:clamp(360px,68svh,850px)!important;max-height:none!important;aspect-ratio:auto}

.garden-seated-tools{grid-column:1/-1;pointer-events:auto}
.garden-seated-tools .text-button{min-height:44px}

.refuge-presence-actions button[hidden],.cottage-keepsake-sill[hidden]{display:none!important}
.cottage-keepsake-sill{position:absolute;inset:0;z-index:7;pointer-events:none}
.cottage-keepsake-sill button{position:absolute;pointer-events:auto;cursor:pointer;min-width:44px;min-height:44px}
.sill-mist{left:18%;top:24%;width:12%;height:19%;border:1px solid #e4e5dd59;border-radius:3px;color:#fff9da;background:linear-gradient(125deg,#e0e8ec40,#cfd9d914)}
.sill-mist:empty,.sill-mist:focus-visible{outline-offset:2px}
.sill-memory{left:31%;top:40%;width:7%;height:15%;border:0;border-bottom:4px solid #755439;background:linear-gradient(0deg,#593e2e4d,transparent 25%);color:#eee1bd}
.memory-flower,.mist-glass{display:block;width:100%;height:100%;pointer-events:none}
.living-board:has([data-hide-rest-markers]) .living-instructions,.cocoon-world:has([data-cottage-alone]) :is([data-action=gift-current],[data-action=gift-prepare],[data-action=room-open],[data-action=table-invite],[data-action=offer-open]){display:none}
.living-stage[data-hide-rest-markers] .refuge-swing{visibility:visible;pointer-events:none}
.cottage-scene-controls[data-window=true] .cottage-curtain-edge{transform:skewX(-7deg);transform-origin:top}
.import-result{padding:clamp(.75rem,3vw,1.5rem);margin-block:0 1rem;background:#e9efe2;border:1px solid #a4b79e;border-radius:1rem;color:#263f34}
.import-result h2,.import-result p{margin:0 0 .45rem}
.import-result .button-row{margin-block:.5rem 0}
.arcade-specific-hint{margin:.5rem 0 0;font-weight:600}
.two-views-film{max-width:56rem;margin:1rem auto 0}
.two-views-film summary{cursor:pointer;color:var(--green,#436049);padding:.5rem 0;min-height:44px;font-weight:600}
.two-views-film video{display:block;width:100%;aspect-ratio:16/9;background:#18231f;border-radius:1rem}
@media(min-width:761px) and (max-width:880px){.cocoon-layout .mobile-nav{position:fixed;inset:auto 0 0;z-index:20;background:#fafbf5;grid-auto-flow:column;padding:4px 8px}}

@media(max-width:880px){
 .cocoon-layout #app:has(> .cocoon-shell + .mobile-nav){
  height:100dvh;display:grid;grid-template-rows:minmax(0,1fr) auto;overflow:hidden;
 }
 .cocoon-layout #app > .cocoon-shell{
  min-height:0;min-width:0;width:100%;overflow:auto;overscroll-behavior-y:contain;
  padding-bottom:0;scroll-padding-block:12px;
 }
 .cocoon-layout #app > .mobile-nav{
  position:relative;inset:auto;z-index:auto;grid-template-columns:repeat(4,minmax(0,1fr));
  padding:4px max(5px,env(safe-area-inset-right)) max(5px,env(safe-area-inset-bottom)) max(5px,env(safe-area-inset-left));
  background:#fafbf5;max-height:none;overflow:visible;
 }
}
@media(max-width:880px) and (orientation:landscape) and (max-height:500px){
 .cocoon-layout .cocoon-header{min-height:44px;padding-block:1px}
 .cocoon-layout #app > .cocoon-shell:has(.cocoon-world) #main{padding-block:6px 12px}
 .cocoon-layout .cocoon-world .world-toolbar{padding-block:4px}
 .cocoon-layout .cocoon-world .world-toolbar h1{font-size:clamp(1.05rem,3.3vw,1.45rem);margin-block:0}
 .cocoon-layout .world-garden .living-board:not(.garden-expanded) .living-stage{
  min-height:125px!important;height:clamp(125px,calc(100dvh - 227px),250px)!important;max-height:none!important;
 }
 .cocoon-layout .refuge-presence-actions.outside-scene{padding-block:4px}
 .cocoon-layout .mobile-nav .cocoon-nav-item:has(svg){display:flex;min-height:44px;gap:5px}
}
@media(max-width:400px) and (orientation:portrait) and (max-height:700px){
 .cocoon-layout .world-garden .living-board:not(.garden-expanded) .living-stage[style*="--first-seat-height"]{
  min-height:0!important;height:var(--first-seat-height)!important;
 }
}
