/* A wanderer's satchel, not a row of anonymous app icons. */
body.curio-world{--curio-ink:#151d27;--curio-petrol:#244447;--curio-bone:#f0dfb8;--curio-rust:#d86b42;--curio-candle:#eabb70;--curio-sage:#9eb899}
.curio-world > header{pointer-events:none;background:linear-gradient(180deg,#121b28db,#121b2866 65%,transparent);height:110px}.curio-world > header>*{pointer-events:auto}.curio-world .top-buttons{align-items:center;gap:10px}.curio-world > header .brandmark{background:#d86b42;color:#f5e3b6;border-radius:46% 46% 10% 10%;border:1px solid #efc386;box-shadow:3px 3px 0 #17212c;transform:rotate(-5deg)}
.curio-world .top-buttons #open-satchel{width:auto;min-width:118px;height:56px;display:flex;gap:6px;padding:2px 15px 3px 7px;border-radius:7px 18px 7px 7px;background:#405b50;border:1px solid #bec28b;color:#f0dfb8;box-shadow:0 3px 0 #11242b,0 4px 0 #9d986b;transform:rotate(-1.3deg);transition:transform .18s ease,background .18s ease;font-size:15px;font-family:'Libre Caslon Display',Georgia,serif;line-height:1.1;letter-spacing:0}
.curio-world #open-satchel .curio-bag-art{width:48px;height:43px;flex:none;overflow:visible}.curio-world #open-satchel span{text-align:left}.curio-world #open-satchel small{display:block;font-family:'DM Sans',sans-serif;font-size:8px;letter-spacing:2px;margin-top:3px;color:#d8c894}.curio-world #open-satchel:hover{transform:rotate(0) translateY(-2px);background:#4a685a}.curio-world .top-buttons #sound{width:48px;height:48px;border-radius:50%;background:#263d42;box-shadow:inset 0 0 0 4px #192a32,0 3px 0 #101a23;border-color:#a68c60}.curio-world .top-buttons #pause{height:48px;min-width:90px;background:#d6b77e;color:#2c3031;border-radius:4px 14px 4px 4px;border:1px solid #efdcac;box-shadow:0 3px 0 #604e36}.curio-world .top-buttons #pause .field-icon{color:#534130}

/* A moon gathers the wanderer’s things. The objects themselves are the doors. */
#curio-satchel.curio-satchel{box-sizing:border-box;position:fixed;padding:8px 18px 15px;max-width:none;width:min(1040px,calc(100vw - 24px));max-height:calc(100dvh - 20px);overflow:auto;overscroll-behavior:contain;border:0;border-radius:0;background:transparent;color:#f0dfb8;box-shadow:none;font-family:'DM Sans',sans-serif;scrollbar-width:thin;scrollbar-color:#99a47b #18313655}
#curio-satchel::backdrop{background:radial-gradient(ellipse at 50% 45%,#173a3be8,#08151bf5 80%);backdrop-filter:blur(10px)}
#curio-satchel .curio-satchel-top{position:relative;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px;padding:0 9px}
#curio-satchel .curio-satchel-label{font-size:8px;letter-spacing:2.3px;color:#c5b58b;max-width:calc(100% - 70px)}
#curio-satchel .curio-satchel-close{height:48px;width:48px;min-height:48px;min-width:48px;flex:none;border:1px solid #bba27088;border-radius:50%;background:#1b3438;color:#ecd4a7;font:30px/1 Georgia,serif;cursor:pointer;box-shadow:inset 0 0 0 5px #152a30,0 2px 12px #0003;transition:transform .2s ease,background .2s ease}
#curio-satchel .curio-satchel-close:hover{transform:rotate(12deg);background:#385348}
#curio-satchel .curio-satchel-orbit{position:relative;width:100%;height:700px;isolation:isolate;margin-top:-3px}
#curio-satchel .curio-night-weave{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible;z-index:-1}
#curio-satchel .curio-satchel-heading{box-sizing:border-box;position:absolute;left:50%;top:45%;transform:translate(-50%,-50%);width:310px;text-align:center;padding:0 5px;pointer-events:none}
#curio-satchel .curio-satchel-heading>.curio-bag-art{display:block;width:125px;height:94px;margin:0 auto 9px;transform:rotate(-9deg);filter:drop-shadow(2px 7px 0 #12282a88)}
#curio-satchel .curio-satchel-heading p{font-size:8px;letter-spacing:2.5px;color:#e1bd7b;margin:0 0 12px}
#curio-satchel .curio-satchel-heading h2{font-family:'Libre Caslon Display',Georgia,serif;font-weight:400;font-size:45px;line-height:.98;color:#f5e3ba;letter-spacing:-.9px;margin:0 0 14px;text-shadow:0 2px 20px #10292b}
#curio-satchel .curio-satchel-heading>span{font-size:10px;line-height:1.7;color:#c3c9af}
#curio-satchel .curio-satchel-pockets{position:absolute;inset:0;display:block;pointer-events:none}
#curio-satchel button.curio-pocket{pointer-events:auto;--x:50%;--y:0%;--tilt:-3deg;box-sizing:border-box;position:absolute;left:var(--x);top:var(--y);transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:0;width:200px;min-width:0;min-height:150px;padding:1px 4px 9px;text-align:center;color:#f0dfb8;background:transparent;border:0;border-radius:45% 45% 30% 30%;box-shadow:none;font-family:inherit;cursor:pointer;overflow:visible;transition:color .2s ease;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
#curio-satchel.curio-satchel button.curio-pocket[data-curio-pocket]{background:transparent}
#curio-satchel button.curio-pocket:nth-child(1){--x:50%;--y:-1%;--tilt:-3deg}
#curio-satchel button.curio-pocket:nth-child(2){--x:78%;--y:8%;--tilt:5deg}
#curio-satchel button.curio-pocket:nth-child(3){--x:91%;--y:32%;--tilt:-4deg}
#curio-satchel button.curio-pocket:nth-child(4){--x:85%;--y:59%;--tilt:3deg}
#curio-satchel button.curio-pocket:nth-child(5){--x:65%;--y:78%;--tilt:-4deg}
#curio-satchel button.curio-pocket:nth-child(6){--x:35%;--y:78%;--tilt:4deg}
#curio-satchel button.curio-pocket:nth-child(7){--x:15%;--y:59%;--tilt:-3deg}
#curio-satchel button.curio-pocket:nth-child(8){--x:9%;--y:32%;--tilt:4deg}
#curio-satchel button.curio-pocket:nth-child(9){--x:22%;--y:8%;--tilt:-6deg}
#curio-satchel .curio-pocket-art{position:relative;display:block;width:130px;height:98px;flex:none;margin:0 auto 2px;transform:rotate(var(--tilt));transition:transform .22s ease;filter:drop-shadow(1px 7px 8px #071b2366)}
#curio-satchel .curio-pocket-art:before{content:'';position:absolute;inset:-18px -12px;background:radial-gradient(ellipse,#e9c88315,transparent 68%);z-index:-1;transform:scale(.9);transition:transform .3s ease,opacity .3s ease;opacity:.6}
#curio-satchel .curio-object{display:block;width:100%;height:100%;overflow:visible}
#curio-satchel .curio-pocket-copy{position:relative;display:block;max-width:100%;padding:0 2px}
#curio-satchel .curio-pocket-copy strong{display:block;font-family:'Libre Caslon Display',Georgia,serif;font-size:24px;font-weight:400;line-height:1.05;letter-spacing:-.25px;text-wrap:balance;text-shadow:0 2px 7px #0a202a}
#curio-satchel .curio-pocket-copy small{display:block;font-size:9px;line-height:1.5;margin:6px auto 0;max-width:170px;color:#b5c4ab}
#curio-satchel .curio-pocket-copy:after{content:'';display:block;width:24px;height:5px;margin:5px auto 0;border-bottom:1px solid #bfab7355;border-radius:50%;transition:width .2s ease,border-color .2s ease}
#curio-satchel button.curio-pocket:hover,#curio-satchel button.curio-pocket:focus-visible{color:#ffdaa0}
#curio-satchel button.curio-pocket:hover .curio-pocket-art,#curio-satchel button.curio-pocket:focus-visible .curio-pocket-art{transform:translateY(-6px) rotate(0) scale(1.07)}
#curio-satchel button.curio-pocket:hover .curio-pocket-art:before,#curio-satchel button.curio-pocket:focus-visible .curio-pocket-art:before{transform:scale(1.3);opacity:1}
#curio-satchel button.curio-pocket:hover .curio-pocket-copy:after{width:56px;border-color:#e2be7b}
#curio-satchel button.curio-pocket:disabled{opacity:.38;cursor:default}
#curio-satchel :focus-visible{outline:2px dashed #f3cf86;outline-offset:5px}
#curio-satchel footer{position:relative;margin:3px auto 0;padding:8px 12px 0;max-width:360px;font-size:10px;line-height:1.6;color:#bdc9ac;text-align:center}
#curio-satchel .curio-moth{color:#e9bc76;margin-right:7px}
@keyframes satchel-drift{0%,100%{translate:0 0}50%{translate:0 -4px}}
@media(prefers-reduced-motion:no-preference){#curio-satchel[open] .curio-pocket-art{animation:satchel-drift 5.5s ease-in-out infinite}#curio-satchel .curio-pocket:nth-child(2n) .curio-pocket-art{animation-delay:-2.7s}#curio-satchel .curio-pocket:nth-child(3n) .curio-pocket-art{animation-delay:-1.3s}}
@media(min-width:761px) and (max-height:800px){
#curio-satchel .curio-satchel-orbit{height:calc(100dvh - 140px);min-height:400px}
#curio-satchel button.curio-pocket{width:185px;min-height:135px;padding-bottom:4px}
#curio-satchel .curio-pocket-art{width:110px;height:83px;margin-bottom:0}
#curio-satchel .curio-pocket-copy strong{font-size:22px}
#curio-satchel .curio-pocket-copy small{font-size:8px;margin-top:5px}
#curio-satchel .curio-satchel-heading{width:270px}
#curio-satchel .curio-satchel-heading>.curio-bag-art{width:96px;height:72px;margin-bottom:7px}
#curio-satchel .curio-satchel-heading h2{font-size:38px;margin-bottom:10px}
#curio-satchel .curio-satchel-heading p{font-size:7px;margin-bottom:10px}
#curio-satchel .curio-satchel-heading>span{font-size:9px}
#curio-satchel footer{font-size:9px;padding-top:5px}
}
/* Keep active menus legible above the quiet town. */
.curio-world #progress-overlay,.curio-world #overlay{background:#08151b99}.curio-world .status.glass{border-radius:2px 18px 2px 2px;border-left:4px solid #d79b57}.curio-world .journal.glass{border-radius:2px 2px 20px 2px;border-top:4px solid #a7b388}.curio-world #tutorial-guide{border-radius:6px 18px 2px 2px;border-left:5px solid #6d8f79}.curio-world #activity-panel{border-radius:2px 18px 2px 2px}.curio-world #activity-title{font-size:32px}.curio-world #tutorial-stations button{border-radius:2px 10px 2px 2px;box-shadow:2px 3px 0 #74674b30}.curio-world #tutorial-stations button:nth-child(2n){background:#dfd5ae}.curio-world #tutorial-stations button:nth-child(3n){background:#d7c199}
@media(max-width:760px){
.curio-world > header{height:106px;flex-direction:row;align-items:center;padding:9px 12px;gap:6px}.curio-world > header .brand{max-width:150px;font-size:11px;gap:7px;letter-spacing:1.5px}.curio-world > header .brandmark{width:31px;height:39px;min-width:31px}.curio-world .brand>span:last-child{max-width:90px;line-height:1.7}.curio-world .top-buttons{width:auto;gap:7px;justify-content:flex-end}.curio-world .top-buttons #open-satchel{height:48px;min-width:85px;padding:1px 8px 1px 4px;gap:3px}.curio-world #open-satchel .curio-bag-art{width:35px;height:36px}.curio-world #open-satchel span{font-size:14px}.curio-world #open-satchel small{font-size:7px;letter-spacing:1px}.curio-world .top-buttons #sound{width:44px;height:44px;min-width:44px}.curio-world .top-buttons #pause{width:46px;height:44px;min-width:46px;padding:0;gap:0}.curio-world .top-buttons #pause .field-word{display:none}.curio-world .top-buttons #pause .field-icon{width:23px;height:23px}.curio-world > header .weather{display:none}.curio-world .status,.curio-world.simple-controls .status{top:110px}.curio-world #activity-title{font-size:29px}
#curio-satchel.curio-satchel{padding:6px 12px 18px;width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}
#curio-satchel .curio-satchel-top{position:sticky;top:-6px;z-index:6;padding:0 2px;min-height:48px;background:linear-gradient(#173137f5,#173137eb 75%,transparent)}
#curio-satchel .curio-satchel-label{font-size:7px;letter-spacing:1.5px;max-width:200px}
#curio-satchel .curio-satchel-orbit{height:auto;margin-top:0;min-height:1060px;padding-bottom:12px}
#curio-satchel .curio-night-weave{height:100%;opacity:.55}
#curio-satchel .curio-night-weave .curio-wreath-moon{display:none}
#curio-satchel .curio-satchel-heading{position:relative;left:auto;top:auto;transform:none;width:100%;min-height:227px;padding:8px 0 22px}
#curio-satchel .curio-satchel-heading:before{content:'';position:absolute;width:174px;height:174px;top:8px;left:50%;transform:translateX(-50%);border-radius:50%;box-shadow:-25px 5px 0 -2px #d3ad6a2b;z-index:-1}
#curio-satchel .curio-satchel-heading>.curio-bag-art{width:100px;height:76px;margin:0 auto 8px}
#curio-satchel .curio-satchel-heading h2{font-size:36px;margin-bottom:9px}
#curio-satchel .curio-satchel-heading p{font-size:8px;letter-spacing:2px;margin-bottom:8px}
#curio-satchel .curio-satchel-heading>span{font-size:10px;line-height:1.5}
#curio-satchel .curio-satchel-pockets{position:relative;inset:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px;padding:0 0 25px}
#curio-satchel button.curio-pocket{position:relative;left:auto;top:auto;transform:none;width:100%;min-height:164px;padding:0 0 8px;align-self:start}
#curio-satchel button.curio-pocket:nth-child(2n){translate:0 32px}
#curio-satchel button.curio-pocket:last-child{grid-column:1 / -1;justify-self:center;width:50%;margin-top:4px}
#curio-satchel .curio-pocket-art{width:125px;height:94px;margin-bottom:4px}
#curio-satchel .curio-pocket-copy strong{font-size:23px;line-height:1.02}
#curio-satchel .curio-pocket-copy small{font-size:9px;max-width:145px;margin-top:6px}
#curio-satchel footer{font-size:9px;margin-top:0;padding-top:8px}
}
@media(max-width:350px){.curio-world > header .brand{max-width:107px;font-size:9px;letter-spacing:1px}.curio-world .brand>span:last-child{max-width:65px}.curio-world .top-buttons{gap:5px}.curio-world .top-buttons #open-satchel{min-width:79px;padding-right:6px}.curio-world #open-satchel span{font-size:12px}.curio-world > header{padding-inline:10px}
#curio-satchel.curio-satchel{padding-inline:10px}#curio-satchel .curio-satchel-label{max-width:175px;font-size:6px}#curio-satchel .curio-pocket-copy strong{font-size:21px}#curio-satchel .curio-pocket-copy small{max-width:125px}#curio-satchel .curio-pocket-art{width:112px;height:84px}#curio-satchel .curio-satchel-pockets{gap:20px 14px}
}
@media(max-height:500px) and (min-width:500px){.curio-world > header{height:58px;padding-block:5px}.curio-world > header .brand{max-width:none}.curio-world .top-buttons #open-satchel{height:44px}.curio-world .status,.curio-world.simple-controls .status{top:64px}
#curio-satchel.curio-satchel{width:calc(100vw - 22px);padding-inline:20px}#curio-satchel .curio-satchel-top{position:sticky;top:-6px;background:linear-gradient(#173137f5,#173137eb 75%,transparent)}#curio-satchel .curio-satchel-orbit{height:auto;min-height:0}#curio-satchel .curio-satchel-heading{position:relative;left:auto;top:auto;transform:none;width:100%;min-height:190px;padding-bottom:15px}#curio-satchel .curio-satchel-heading>.curio-bag-art{width:80px;height:60px}#curio-satchel .curio-satchel-heading h2{font-size:32px}#curio-satchel .curio-satchel-heading h2 br{display:none}#curio-satchel .curio-satchel-heading>span br{display:none}#curio-satchel .curio-satchel-pockets{position:relative;inset:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 14px;padding-bottom:25px}#curio-satchel button.curio-pocket{position:relative;left:auto;top:auto;transform:none;width:100%;min-height:160px}#curio-satchel button.curio-pocket:last-child{grid-column:auto;width:100%;margin-top:0}#curio-satchel button.curio-pocket:nth-child(2n){translate:0 0}#curio-satchel button.curio-pocket:nth-child(3n+2){translate:0 24px}#curio-satchel .curio-pocket-art{width:112px;height:84px}#curio-satchel .curio-pocket-copy strong{font-size:22px}
}
@media(max-height:500px) and (min-width:500px){
#curio-satchel .curio-satchel-heading{display:grid;grid-template-columns:88px minmax(0,1fr);grid-template-rows:auto auto auto;column-gap:12px;align-items:center;text-align:left;min-height:104px;width:min(520px,100%);margin:0 auto 12px;padding:4px 0 8px}
#curio-satchel .curio-satchel-heading:before{width:105px;height:105px;top:3px;left:42px}
#curio-satchel .curio-satchel-heading>.curio-bag-art{grid-column:1;grid-row:1 / 4;width:80px;height:60px;margin:0}
#curio-satchel .curio-satchel-heading p{grid-column:2;margin:0 0 4px;font-size:7px;align-self:end}
#curio-satchel .curio-satchel-heading h2{grid-column:2;font-size:29px;margin:0 0 5px}
#curio-satchel .curio-satchel-heading>span{grid-column:2;font-size:9px;align-self:start}
}
@media(prefers-reduced-motion:reduce){.curio-world *,#curio-satchel *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

.curio-world.compact-ui > header{height:calc(64px + var(--safe-top,0px));padding-top:calc(7px + var(--safe-top,0px));padding-left:calc(10px + var(--safe-left,0px));padding-right:calc(10px + var(--safe-right,0px));padding-bottom:7px}
.curio-world.compact-ui .status,.curio-world.compact-ui.simple-controls .status{top:calc(72px + var(--safe-top,0px))}
.curio-world.compact-ui #activity-panel{top:calc(72px + var(--safe-top,0px));max-height:calc(100dvh - 88px - var(--safe-top,0px) - var(--safe-bottom,0px))}
.curio-world.compact-ui #coven-hud{top:calc(72px + var(--safe-top,0px))}

.curio-world #activity-icon .field-icon{width:37px;height:37px;stroke-width:1.1;color:#9b704a;display:block;margin:auto}
/* A small sheet of ghost-post stamps for the six things a boo needs to say. */
.curio-world #spook-wheel{width:260px;padding:15px;background:#213b3f;color:#eddbb4;border:1px solid #bca472;border-radius:15px 3px 3px 3px;box-shadow:3px 5px 0 #12262d,0 13px 30px #07131b66;gap:9px}
.curio-world #spook-wheel::before{content:'EXPRESS GHOST POST';grid-column:1 / -1;padding:2px 0 9px;border-bottom:1px dashed #bda97866;font:8px/1.4 'DM Sans',sans-serif;letter-spacing:2px;color:#cfb578;text-align:center}
.curio-world #spook-wheel button{position:relative;min-height:66px;padding:6px 4px;background:#dfc89b;color:#263d3e;border:3px double #987449;border-radius:1px;font:12px/1.2 'Libre Caslon Display',Georgia,serif;box-shadow:2px 3px 0 #10272c;transition:transform .15s ease}
.curio-world #spook-wheel button:nth-child(2n){background:#acbda3;border-color:#5f8370;transform:rotate(1.5deg)}
.curio-world #spook-wheel button:nth-child(3n){background:#cfa88d;border-color:#a46d51;transform:rotate(-1.5deg)}
.curio-world #spook-wheel button:hover{transform:translateY(-2px) rotate(0);background:#ead4a7}
.curio-world #spook-wheel .field-icon{width:26px;height:26px;color:#405f54;stroke-width:1.2}
.curio-world.compact-ui #spook-wheel{width:244px;max-height:calc(100dvh - 258px);padding:12px;gap:7px}
@media(max-height:500px) and (min-width:500px){.curio-world.compact-ui #spook-wheel{top:65px;right:12px;width:340px;max-height:calc(100dvh - 78px);grid-template-columns:repeat(3,minmax(0,1fr))}.curio-world #spook-wheel button{min-height:63px}}

/* A pressed-leaf bookmark keeps the new almanac close to hand. */
#curio-satchel .curio-almanac-bookmark{pointer-events:auto;display:flex;align-items:center;gap:8px;width:100%;min-height:62px;margin:18px auto 0;padding:5px 12px 7px;border:1px solid #b8bd8766;border-radius:50% 9px 40% 9px;background:#9cab7933;color:#ebd3a4;font-family:inherit;text-align:left;cursor:pointer;box-shadow:none}
#curio-satchel .curio-almanac-bookmark>.curio-object{width:59px;height:47px;flex:none;transform:rotate(-4deg)}
#curio-satchel .curio-almanac-bookmark strong{display:block;font-family:'Libre Caslon Display',Georgia,serif;font-size:23px;font-weight:400;line-height:1.1}
#curio-satchel .curio-almanac-bookmark small{display:block;margin-top:3px;font-size:8px;line-height:1.5;color:#c3c9af}
#curio-satchel .curio-almanac-bookmark:hover{background:#9cab7955}
@media(max-width:760px){#curio-satchel .curio-almanac-bookmark{max-width:284px;margin-top:14px}#curio-satchel .curio-satchel-heading{min-height:290px}}
@media(max-height:500px) and (min-width:500px){#curio-satchel .curio-almanac-bookmark{grid-column:1 / -1;max-width:290px;margin-top:6px}#curio-satchel .curio-almanac-bookmark strong{font-size:21px}}
