
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{font-family:Nunito,"PingFang SC","Microsoft YaHei",sans-serif;color:#4b332d;background:#c5ab90;display:grid;place-items:center;isolation:isolate}body:before{content:"";position:fixed;inset:-32px;z-index:-1;background:#dac7ad var(--panorama) center/cover;filter:blur(26px) brightness(.75)}button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}button:focus-visible,[tabindex]:focus-visible{outline:3px solid #4a88a1;outline-offset:3px}button:disabled{opacity:.55;cursor:wait}button,canvas{-webkit-user-select:none;user-select:none}main{width:min(100vw,172svh);height:min(100svh,76vw);position:relative;overflow:hidden;isolation:isolate;background:#dbcabc;box-shadow:0 0 40px #3a24172e}
#room,#worktop,.paint,#targets,#pressArea{position:absolute;inset:0}.paint,#deskBg{width:100%;height:100%;display:block;pointer-events:none;object-fit:fill}#worktop{background:#e3ca9b}#deskBg{object-fit:cover}
.hot{position:absolute;display:block;border:0;background:transparent;border-radius:42%;padding:0;min-width:0;touch-action:manipulation}
.hot:after{content:"";position:absolute;inset:-1px;border-radius:inherit;opacity:0;box-shadow:0 0 0 2px #fff9cbba,0 0 18px 3px #fff6cbb3;transition:opacity .16s;pointer-events:none}.hot:is(:hover,:focus-visible):after{opacity:.96}
.name{position:absolute;left:50%;top:96%;transform:translate(-50%,-4px);border:1px solid #916a4a;background:#fff4dfeF;color:#503626;border-radius:9px;padding:3px 9px;font-size:clamp(11px,1.6vh,15px);box-shadow:0 2px 5px #4d321c29;white-space:nowrap;font-weight:700;pointer-events:none;opacity:0;z-index:4;transition:.12s}.hot:hover,.hot:focus-visible{z-index:3}.hot:is(:hover,:focus-visible) .name{opacity:1;transform:translate(-50%,0)}
nav{position:absolute;z-index:4;inset: max(12px,env(safe-area-inset-top)) 15px auto;display:flex;align-items:flex-start;justify-content:space-between;pointer-events:none}
nav button,footer button,.book-close{pointer-events:auto;border:1px solid #a9845c;background:linear-gradient(#fff9eaf5,#ffedcdeF);box-shadow:0 2px 0 #a37855aa,0 3px 12px #5b381933;display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:18px;padding:8px 13px;line-height:1.2;font-size:14px;font-weight:730}
nav button:active,footer button:active{transform:translateY(1px)}.icon{width:18px;height:18px;display:inline-block;fill:none;stroke:currentColor;stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round}
footer{position:absolute;z-index:3;bottom:max(12px,env(safe-area-inset-bottom));left:8px;right:8px;display:flex;flex-direction:column;align-items:center;gap:8px;pointer-events:none}
.tape{color:#53372c;font-size:13px;font-weight:680;letter-spacing:.025em;text-align:center;background:#fff6e2f5;border:1px solid #ba9671;border-radius:13px;padding:6px 15px;box-shadow:0 2px 7px #56331a24}
#roomNote{transform:rotate(-1deg)}#roomNote:before{content:"✧";color:#b35f37;margin-right:7px}
#deskLabel{position:absolute;z-index:3;top:max(15px,env(safe-area-inset-top));left:50%;transform:translateX(-50%) rotate(-1deg);padding:7px 21px 8px;background:#fdf3dcea;border-radius:5px 5px 14px 14px;box-shadow:0 2px 6px #815b4026;text-align:center;pointer-events:none;border:1px solid #b89675}#deskLabel h1{font-size:clamp(18px,2.7svh,29px);line-height:1.2;margin:0;white-space:nowrap}#material{font-size:11px;color:#765442;font-weight:600;margin-top:3px;display:block;white-space:nowrap}
#pressArea{touch-action:none;outline-offset:-5px;cursor:grab}#pressArea:active{cursor:grabbing}#pressArea canvas{position:absolute;pointer-events:none}#handsBack,#handsFront,#softCore{inset:0;width:100%;height:100%}#handsFront{z-index:2}#softCore{z-index:1}#toy{z-index:1;transform:translate(-50%,-50%);left:50%;top:55%}
#deskControls{display:flex;gap:9px}#deskControls button{min-width:92px;padding:8px 16px}#pickNext{color:#fffaf0;background:linear-gradient(#ab5d45,#904733);border-color:#78472e}
#book{border:1px solid #b89268;border-radius:20px;background:#fff8e8;color:#4f382c;width:min(620px,calc(100vw - 22px));max-height:90svh;overflow:auto;padding:16px 18px 20px;box-shadow:0 14px 60px #3b251e55}#book::backdrop{background:#37271bb0;backdrop-filter:blur(4px)}.book-head{display:flex;justify-content:space-between;align-items:center;margin:0 0 12px}.book-head h2{font-size:22px;margin:0}.book-head p{font-size:12px;margin:3px 0 0;color:#785d4d}.book-close{width:34px;height:34px;border-radius:50%;font-size:22px;padding:0}
#grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.entry{position:relative;border:1px solid #d9c9b0;border-radius:12px;padding:5px 3px 7px;background:#f7edd9;display:grid;justify-items:center;gap:3px}.entry:hover{background:#f2e2c7}.entry img{width:100%;height:clamp(48px,8svh,80px);object-fit:contain}.entry b{font-size:12px}.tag{position:absolute;right:3px;top:3px;font-size:9px;background:#446a52;color:white;border-radius:8px;padding:1px 4px}
#loading{position:absolute;inset:0;z-index:5;display:grid;place-items:center;background:#f8ead8;color:#77452e;font-size:16px}
[hidden]{display:none!important}
@media(max-aspect-ratio:9/10){main{width:min(100vw,70svh);height:100svh}nav{inset-inline:10px}#deskLabel{top:70px}#toy{top:54%}#grid{grid-template-columns:repeat(3,1fr)}.name{font-size:10px;padding:2px 4px}footer{bottom:max(15px,env(safe-area-inset-bottom))}#roomNote{margin-bottom:2px}}
@media(max-height:530px) and (min-aspect-ratio:9/10){main{height:100svh}.tape{font-size:11px;padding:4px 8px}#deskControls button,nav button{font-size:12px;padding:5px 10px}#deskLabel{top:6px;padding:4px 12px}#deskLabel h1{font-size:17px}footer{bottom:7px;gap:3px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important}}
.book-thumb{display:block;width:clamp(48px,8svh,80px);height:clamp(48px,8svh,80px);max-width:100%;background-repeat:no-repeat}
#entryPreview{position:fixed;inset:0;z-index:21;pointer-events:auto;background:#ead3b5}
#entryPreview img{width:100%;height:100%;display:block;object-fit:cover}
#entryPreview .tape{position:absolute;bottom:max(18px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);white-space:nowrap}
#entryPreview .tape:before{content:"";display:inline-block;width:.75em;height:.75em;margin-right:.6em;border:2px solid #cfb99b;border-top-color:#79593c;border-radius:50%;vertical-align:-.12em;animation:entry-wait 1s linear infinite}
@keyframes entry-wait{to{transform:rotate(1turn)}}
#charmPeek{position:absolute;width:clamp(20px,6vw,32px);height:clamp(20px,6vw,32px);object-fit:contain;transform:translate(-50%,-50%) rotate(-18deg);clip-path:ellipse(65% 40% at 50% 33%);filter:drop-shadow(0 1px 1px #663d38);pointer-events:none;z-index:2}
#pearlPocket{position:absolute;z-index:1;width:36px;height:32px;transform:translate(-50%,-50%);pointer-events:none}
#pearlPocket i{position:absolute;inset:15% 2% 4%;border-radius:52% 48% 46% 54%;background:radial-gradient(ellipse at 32% 23%,#fff9 0%,#eccdf2a8 23%,#d3a7e0a6 51%,#bc85c999 67%,transparent 77%);filter:blur(.7px);transform:scale(var(--swelling,.8))}
#pearlPocket img{position:absolute;width:100%;height:100%;object-fit:contain;clip-path:inset(var(--covered,76%) 0 0 0 round 18%);transform:translateY(var(--lift,8px)) rotate(-10deg)}
#pearlPocket[data-filling=dough],#pearlPocket[data-filling=honey]{width:48px;height:44px}
#pearlPocket[data-filling=dough] i{inset:15% -8% 3%;border-radius:48% 58% 47% 46%;background:radial-gradient(ellipse at 53% 42%,#aa8460aa 7%,#d4b48999 32%,#efd8b6bb 51%,#eed3aa85 59%,transparent 74%);filter:blur(1px)}
#pearlPocket[data-filling=honey] i{inset:33% 4% 12%;background:radial-gradient(ellipse at 45% 20%,#fff7c2 2%,#ffc866aa 28%,#c8862ba8 57%,transparent 74%)}
#fillingRibbon{position:absolute;z-index:1;pointer-events:none;border-radius:45% 68% 65% 48%;transform-origin:left center;background:linear-gradient(#e9a13c,#fff0a2 32%,#edb046 54%,#ba762f 93%);box-shadow:0 1px 2px #9d682f65}
#fillingRibbon:after{content:"";position:absolute;inset:30% 1% -3px 5%;border-bottom:1px solid #ffdb7ec9;border-radius:50%;transform:rotate(3deg)}
#pearlDish{position:absolute;z-index:1;width:68px;height:30px;transform:translate(-50%,-18%);pointer-events:none;border-radius:49% 49% 45% 45% / 42% 42% 65% 65%;border:1px solid #fff2dc;background:radial-gradient(ellipse at 51% 47%,transparent 28%,#fff9df9c 64%,#b78e9d 95%),repeating-conic-gradient(from 265deg at 50% 99%,#f3ddd9 0deg,#fbefe8 11deg,#dec0c7 15deg,#edcfd1 20deg);box-shadow:inset 0 2px 3px #ad849478,inset 0 -4px 2px #fff4df,0 2px 0 #be9991,0 5px 4px #5d3c3760}
#tableCharm{position:absolute;z-index:3;margin:-25px 0 0 -25px;width:50px;height:50px;padding:5px;border:0;background:transparent;box-shadow:none;touch-action:manipulation}
#tableCharm:before{content:"";position:absolute;bottom:4px;left:9px;width:31px;height:6px;background:#6c412d69;border-radius:50%;filter:blur(2px)}
#tableCharm img{position:relative;width:100%;height:100%;object-fit:contain;transform:rotate(-13deg)}
#braceletCard{margin:0 0 14px;padding:12px 14px 10px;color:#523d32;border:1px solid #d8bf9d;border-radius:16px;background:linear-gradient(120deg,#fff8ea,#f4e5d2 68%,#f3dbca)}
.bracelet-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.bracelet-heading h3{font-size:16px;margin:0}.bracelet-heading p{font-size:12px;margin:3px 0 0}
#wearRing,#wearBracelet,#bookPickup{padding:6px 12px;border:1px solid #b69a6c;border-radius:16px;color:#533c26;background:#fff7df;font:inherit;font-size:12px}
#charmSlots{display:flex;justify-content:space-around;position:relative;margin-top:8px;isolation:isolate}
#charmSlots:before{content:"";position:absolute;z-index:-1;left:8%;right:8%;height:16px;top:-5px;border-bottom:3px double #bf914c;border-radius:50%}
.charm-slot{min-width:0;display:grid;grid-template-columns:auto auto;justify-content:center;align-items:end;gap:0 4px;text-align:center;font-size:11px;color:#715c4c}.charm-slot img{grid-column:1/-1;justify-self:center;width:38px;height:38px;object-fit:contain;margin-bottom:3px;filter:grayscale(1);opacity:.25}.charm-slot.found img{opacity:1;filter:drop-shadow(0 2px 1px #7b4a2738)}.charm-slot small:empty{display:none}.charm-slot small{font-size:10px;color:#815522}#bookPickup{margin-top:9px}
@media(max-height:490px){#braceletCard{padding:7px 12px}.charm-slot img{width:26px;height:26px}#charmSlots{margin-top:3px}}
body.has-house main{width:100vw;height:100svh;max-width:none}#walkroom,#houseCanvas{position:absolute;inset:0;width:100%;height:100%;overflow:hidden}#houseCanvas{display:block;touch-action:none;cursor:grab;outline:0}#houseCanvas:active{cursor:grabbing}.has-house #room picture,.has-house #targets,.has-house #deskBg{display:none}.has-house #worktop{background:transparent}.has-house #deskLabel{top:max(12px,env(safe-area-inset-top));padding:6px 15px}.has-house #deskLabel h1{font-size:18px}.has-house #material{font-size:11px}.has-house #pressArea:focus{outline:0}
.nav-left{display:flex;gap:7px;pointer-events:auto}.nav-left:has(>button:not([hidden])){visibility:visible}.nav-left:has(>button[hidden]):not(:has(>button:not([hidden]))){display:none}
#toyTip{position:absolute;transform:translateX(-50%);pointer-events:none;white-space:nowrap}#takeToy{position:absolute;left:50%;bottom:58px;transform:translateX(-50%);pointer-events:auto;font-size:14px;min-height:40px}
#stick{position:absolute;left:max(18px,env(safe-area-inset-left));bottom:max(20px,env(safe-area-inset-bottom));width:96px;height:96px;display:block;border:2px solid #b7996c;border-radius:50%;background:radial-gradient(circle at 46% 40%,#f2e6c478,#d6bc90a8);box-shadow:inset 0 0 0 2px #fff4cfb5,inset 0 3px 9px #8c704c66,0 3px 7px #3c281e42;touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab}
#stick.dragging{cursor:grabbing}
#knob{position:absolute;pointer-events:none;left:50%;top:50%;width:40px;height:40px;border-radius:50%;transform:translate(-50%,-50%);background:radial-gradient(circle at 34% 25%,#fffbea,#ead9b4 62%,#d4b687);border:1px solid #ad8b61;box-shadow:inset 0 0 0 2px #fff1d4ac,0 3px 5px #73503477}
#stick:not(.dragging) #knob{transition:transform .12s ease-out}
#bookTheme{border:1px solid #c5a47b;border-radius:8px;padding:4px 8px;background:#fff9ed;color:#543a29;font:inherit;font-size:13px}

.has-house[data-house-mode=walk] #roomNote{transform:none;font-size:12px}.has-house[data-house-mode=bench] #pickNext{display:none}.has-house:not([data-house-mode=walk]) #roomNote,.has-house:not([data-house-mode=walk]) #stick,.has-house:not([data-house-mode=walk]) #takeToy{display:none!important}
#guide{color:#563e30;width:min(410px,calc(100vw - 24px));background:#fff6e7;border:1px solid #ac8963;border-radius:20px;padding:16px 19px;box-shadow:0 15px 60px #392b1c55}#guide::backdrop{background:#34251b80;backdrop-filter:blur(3px)}#guide p{margin:12px 0 0;text-align:center;font-size:13px}#guide h2{margin:0;font-size:22px}.floorplan{position:relative;margin:6px 0;aspect-ratio:1.2;background:repeating-linear-gradient(0deg,#efdbbb 0 18px,#dfc4a1 19px,#f0dbbe 20px);border:5px solid #c19973;border-radius:12px}.floorplan button{position:absolute;transform:translate(-50%,-50%);border:1px solid #8e785e;border-radius:10px;padding:8px;font-size:13px;font-weight:700;white-space:nowrap;box-shadow:0 2px 3px #79583933}.floorplan [data-go=alcove]{left:74%;top:12%;background:#efc6bd}.floorplan [data-go=window]{left:16%;top:38%;background:#bdcfb2}.floorplan [data-go=cabinet]{left:72%;top:43%;background:#c4cfe2}.floorplan [data-go=shelf]{left:44%;top:17%;background:#b7dbd8}.floorplan [data-go=table]{left:49%;top:74%;background:#fff0cc}
#gpuNotice{position:absolute;z-index:6;top:44%;left:50%;transform:translateX(-50%);white-space:nowrap}#gpuNotice button{border:0;border-radius:6px;background:#e7cfaa;padding:6px}
@media(pointer:coarse){.has-house[data-house-mode=walk] #stick{display:block}.has-house[data-house-mode=walk] footer{align-items:flex-end;right:10px;left:auto;max-width:calc(100% - 127px)}.has-house #roomNote{font-size:11px;padding:6px 9px}.has-house #takeToy{bottom:max(57px,env(safe-area-inset-bottom));left:auto;right:12px;transform:none}.has-house #deskLabel{top:max(60px,calc(env(safe-area-inset-top) + 50px))}}

@media(max-width:540px){.has-house #deskLabel{top:max(14px,env(safe-area-inset-top));padding:7px 12px;transform:translateX(-50%)}.has-house #deskLabel h1{font-size:15px}.has-house #deskLabel #material{display:none}}
#guide{max-height:91svh;overflow:auto}.cases{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:12px 0 8px}.cases button,.doorway{padding:8px 4px;border:1px solid #c8ac83;border-radius:9px;font-size:13px;background:#f7e9cf}.cases button:nth-child(3n+1){background:#e4eee4}.cases button:nth-child(3n+2){background:#f3e1dc}.doorway{width:100%;background:#fff8e9}.has-house[data-house-mode=seated] #roomNote{display:inline-block!important;transform:none}.has-house[data-house-mode=bench] #standBench{display:inline-block}#book{max-height:86svh;overflow:auto;overscroll-behavior:contain}#grid .entry img{max-height:72px}#book .book-head{position:sticky;top:-1px;z-index:2;background:#fff5e5;padding-bottom:9px}

.shop-tour h3{margin:18px 0 5px;font-size:15px;font-weight:650;color:#70543f}.shop-tour .tables button{font-size:12px;background:#f7ede6}.shop-tour .doorway{margin-top:8px}.has-house .nav-left{flex-wrap:wrap;max-width:calc(100vw - 75px)}
@media(max-width:540px){.has-house .nav-left button{font-size:12px;padding:8px 10px}.has-house .nav-left{max-width:calc(100vw - 70px);gap:5px}}

#storefront{--front-image:url("assets/entry-wide-e33cdbc622ef282b.webp");position:fixed;inset:0;z-index:20;overflow:hidden;background:#e6e6dd;color:#234641}
.front-art,.front-wall{position:absolute;inset:0}
.front-wall{background:var(--front-image) center/cover;pointer-events:none}
.localized-sign{position:absolute;left:50%;top:max(7%,55px);transform:translateX(-50%);white-space:nowrap;padding:.32em .85em .38em;color:#345752;background:#f5f5eb;border-radius:1.8em;border:1px solid #9eb4aa;outline:3px solid #eeeee3;box-shadow:0 5px 13px #32483d3b;font:700 clamp(24px,4.6svh,48px)/1.2 Georgia,"Songti SC",serif;letter-spacing:.06em}
#pushDoor{position:absolute;left:50%;bottom:max(4%,env(safe-area-inset-bottom));transform:translateX(-50%);height:clamp(46px,7svh,60px);min-width:min(220px,82vw);padding:0 30px;border:1px solid #527c75;border-radius:40px;background:#365f5a;color:#fffef5;box-shadow:0 3px 0 #233f3b,0 5px 18px #263c3438;font:650 clamp(17px,2.4svh,23px)/1.2 system-ui,sans-serif;cursor:pointer}
#doorWords{position:static;width:auto;height:auto;clip-path:none;white-space:nowrap}
#pushDoor:active{transform:translate(-50%,2px)}
#pushDoor[aria-busy=true] #doorWords{visibility:hidden}
#pushDoor[aria-busy=true]::after{position:absolute;inset:0;display:grid;place-items:center}
#storefront #frontSound,#storefront #frontLanguage{position:absolute;top:max(12px,env(safe-area-inset-top));right:max(14px,env(safe-area-inset-right));width:42px;height:42px;display:grid;place-items:center;padding:0;border:1px solid #a4b5ae;border-radius:50%;background:#f6f7ee;color:#345752;box-shadow:0 2px 6px #30464024;cursor:pointer}
#storefront #frontLanguage{right:max(64px,calc(env(safe-area-inset-right) + 64px))}
#frontSound[aria-pressed=false]::after{content:"";position:absolute;width:65%;height:2px;transform:rotate(-45deg);background:#345752;box-shadow:0 0 0 1px #f6f7ee}
body.at-front main{pointer-events:none}
body.at-front nav,body.at-front footer,body.at-front #stick,body.at-front #takeToy,body.at-front #jellyTag{visibility:hidden}
#storefront.opening{animation:home-fade .66s both;pointer-events:none}
#storefront.opening .front-art{animation:enter-world .66s cubic-bezier(.25,.6,.4,1) both}
@keyframes home-fade{0%,35%{opacity:1}100%{opacity:0}}
@keyframes enter-world{to{transform:scale(1.035)}}
#jellyTag{position:absolute;transform:translateX(-50%);min-height:34px;padding:6px 14px;border:1px solid #879959;border-radius:9px;background:#fff5d9;color:#5d6b3f;box-shadow:0 2px 0 #b3bc8a,0 3px 8px #49302c38;font:700 13px/1.3 "PingFang SC",sans-serif;white-space:nowrap}
#jellyTag::before{content:"";position:absolute;top:-4px;left:calc(50% - 4px);width:6px;height:6px;background:#fff5d9;transform:rotate(45deg);border-left:1px solid #879959;border-top:1px solid #879959}
.assistive{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.flat-welcome #targets .hot:first-child .name{opacity:1}
.has-house .jelly-worktop::before{content:"";position:absolute;inset:0 0 30%;pointer-events:none;backdrop-filter:blur(3px) saturate(.85);-webkit-backdrop-filter:blur(3px) saturate(.85);mask-image:linear-gradient(black 38%,transparent 96%)}
@media(max-aspect-ratio:4/5){
  #storefront{--front-image:url("assets/entry-tall-4a75a2e60d3fbe38.webp")}
  .localized-sign{top:max(8%,68px)}
  #jellyTag{min-height:40px}
}
@media(prefers-reduced-motion:reduce){
  #storefront.opening{animation:home-fade .12s both}
  #storefront.opening .front-art{animation:none}
}

.has-house nav button,.has-house footer button,.has-house .tape,.has-house #deskLabel,#walkroom #jellyTag{background:#f4f5ee;color:#37554f;border-color:#a8b9af;box-shadow:0 2px 5px #344b3e2b}
#walkroom #jellyTag::before{background:#f4f5ee;border-color:#a8b9af}
#book,#bookTheme{background:#f7f7f0;border-color:#b7c4ba;color:#36524c}
#book .entry{background:#edf1e9;border-color:#d0dbd1}
#book .entry:hover,#book .entry:focus-visible{background:#deebe2;border-color:#88a79b}
#stick{background:#d7e3d8a8;border-color:#91a79c;box-shadow:inset 0 0 0 2px #f4f6e3a8,0 2px 7px #3d54462b}
#knob{background:radial-gradient(circle at 34% 25%,#f6f7ef,#d9e3d8 68%,#a8bcaf);border-color:#97ac9f;box-shadow:0 2px 4px #354f3b33}

/* Pearl controls stay legible over both the bright window and the shaded alcoves. */
.has-house nav button,.has-house footer button,.has-house .tape{
  color:#294f4b;border-color:#aabdb0;
  background:linear-gradient(155deg,#fffdf3f7,#e4eee5f5);
  box-shadow:inset 0 1px 0 #fffdf7,0 2px 7px #344f452e;
}
.has-house #inventory{background:linear-gradient(135deg,#396b64,#284f4b);color:#fffcef;border-color:#77958a}
.has-house #progress{color:#e4eade;font-size:.85em;letter-spacing:.02em}
#walkroom #jellyTag{
  color:#fff9e7;background:linear-gradient(155deg,#467a70,#345e58);border:1px solid #cfbb8e;
  border-radius:22px;padding-inline:16px;box-shadow:inset 0 1px 0 #ffffff25,0 3px 8px #2e483d30;
}
#walkroom #jellyTag::before{background:#45766d;border-color:#cfbb8e}
.has-house #stick{border-color:#90aba0;background:radial-gradient(ellipse at 36% 25%,#eff9ee7d,#8cb4a486);box-shadow:inset 0 0 0 3px #f9ffed80,0 2px 7px #34504621}
.has-house #knob{background:radial-gradient(ellipse at 34% 23%,#fffef2 7%,#deede0 43%,#9fbfb3 89%);border-color:#a4b9a8}
#pushDoor,.has-house #inventory,#walkroom #jellyTag{background:#705038;border-color:#b29a7c;color:#fff7e9}
#walkroom #jellyTag::before{background:#705038;border-color:#b29a7c}
.localized-sign{background:#f6ebd7;color:#674c37;border-color:#c6ad8c;outline-color:#eee0c9}
.has-house nav button,.has-house footer button,.has-house .tape,.has-house #deskLabel,#book,#bookTheme{background:#f8f2e8;color:#58483a;border-color:#b9a88f}
#book .entry{background:#f2eadd;border-color:#d8c9b6}
.has-house #stick{border-color:#aa9279;background:#d8c7b1a1}
.has-house #knob{border-color:#b6a289;background:radial-gradient(ellipse at 34% 23%,#fff9eb,#e6d7c3 65%,#bea68a)}

body:not(.has-house) #widePaint{object-fit:contain}

.language-button{width:36px;height:36px;flex:none;display:inline-grid;place-items:center;color:#69492b;background:#fff3d9;border:1px solid #b59166;border-radius:50%;box-shadow:0 2px 4px #70481a35;padding:0}
.language-button .icon{width:21px;height:21px}
#frontLanguage{position:absolute;right:7%;top:2%;width:clamp(36px,3vw,49px);height:auto;aspect-ratio:1;background:radial-gradient(ellipse at 35% 20%,#fffbe5,#ffe7ae 75%);border:2px solid #b88741;color:#63401e}
#languageSettings{width:min(300px,calc(100vw - 28px));max-height:88svh;border:1px solid #b38c61;border-radius:20px;padding:16px;color:#553b2c;background:#fff6e6;box-shadow:0 14px 50px #49301d52}
#languageSettings::backdrop{background:#3b2b215c;backdrop-filter:blur(3px)}
#languageSettings header{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
#languageSettings h2{font-size:20px;margin:0}#languageOptions{display:grid;gap:5px}
#languageOptions button{padding:9px 12px;text-align:start;background:#fffaf0;border:1px solid #e4d4b8;border-radius:10px;font-weight:600}
#languageOptions button[aria-pressed=true]{background:#e5ecd7;border-color:#89996b;color:#3d593d}
#languageOptions button[aria-pressed=true]::after{content:"✓";float:right}
#pushDoor[aria-busy=true]::after{content:attr(data-opening)}
@media(max-width:540px){.has-house .nav-left{max-width:calc(100vw - 122px)}.has-house[data-house-mode=bench] #deskLabel{top:max(60px,calc(env(safe-area-inset-top) + 50px));max-width:94vw}.has-house #deskLabel h1{white-space:normal}#hint{max-width:96%}#deskControls{justify-content:center;flex-wrap:wrap}}

@media(max-width:540px){#deskControls{gap:5px;justify-content:center;flex-wrap:wrap}#deskControls button{min-width:0;padding:7px 11px}}
/*Copyright 2012 Google Inc. All Rights Reserved.

This Font Software is licensed under the SIL Open Font License,
Version 1.1.

This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL

-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font
creation efforts of academic and linguistic communities, and to
provide a free and open framework in which fonts may be shared and
improved in partnership with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply to
any document created using the fonts or their derivatives.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software
components as distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to,
deleting, or substituting -- in part or in whole -- any of the
components of the Original Version, by changing formats or by porting
the Font Software to a new environment.

"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.

PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed,
modify, redistribute, and sell modified and unmodified copies of the
Font Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components, in
Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the
corresponding Copyright Holder. This restriction only applies to the
primary font name as presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.

5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created using
the Font Software.

TERMINATION
This license becomes null and void if any of the above conditions are
not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
*/
@font-face{font-family:"Shop Serif";src:url("assets/shop-serif-7e7fc917a3c39e5c.ttf") format("truetype");font-style:normal;font-weight:600;font-display:swap}
:root{--label-type:"Shop Serif","Songti SC","Songti TC","Yu Mincho","AppleMyungjo","Batang",serif}
nav{left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right))}
.collection-rail{margin-left:auto;display:flex;flex-direction:column;align-items:flex-end;gap:7px;pointer-events:none;--item-width:clamp(76px,21vw,88px)}
.collection-rail .collection-card,.has-house nav .collection-card,.has-house nav #inventory{
 position:relative;display:block;pointer-events:auto;width:var(--item-width);height:auto;aspect-ratio:1.13;
 padding:0;margin:0;border:0;border-radius:8px;background:var(--item-art) center/100% 100% no-repeat;
 box-shadow:none;filter:drop-shadow(0 2px 2px #492c244a);color:#503124;
 font:800 15px/1.03 "PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif}
.collection-card.jewel-card{--item-art:url("assets/pearl-case-be69b531c668c36a.webp")}
.collection-card.album-card{--item-art:url("assets/star-album-83dd8110c01e36b8.webp")}
.collection-card span{position:absolute;left:53%;top:82%;width:82%;transform:translate(-50%,-50%);text-align:center;letter-spacing:.035em;white-space:nowrap}
.collection-card.album-card span{left:54%;top:80%}
html:lang(en) .collection-rail,html:lang(ja) .collection-rail,html:lang(ko) .collection-rail{--item-width:94px}
html:lang(en) .collection-card span,html:lang(ja) .collection-card span,html:lang(ko) .collection-card span{font-size:12px;letter-spacing:0}
#bookHeading,#treasureHeading{font:600 24px/1.25 var(--label-type);letter-spacing:.06em}
.collection-rail .collection-card:focus-visible{outline:3px solid #614b34;outline-offset:2px}
.collection-rail .collection-card:active{translate:0 1px}
.front-utilities{display:flex;align-items:center;gap:0;margin-left:auto;pointer-events:auto;border-radius:22px;background:#fff6e9;border:1px solid #bd9c82;box-shadow:0 2px 4px #57392226;overflow:hidden}
.front-utilities{position:absolute;right:max(12px,env(safe-area-inset-right));top:max(12px,env(safe-area-inset-top));z-index:2}
#storefront .front-utilities #frontLanguage,#storefront .front-utilities #frontSound{
 position:relative;inset:auto;width:auto;min-width:42px;height:42px;margin:0;padding:0 10px;aspect-ratio:auto;border:0;border-radius:0;box-shadow:none;background:transparent;color:#604b3d;font:650 13px/1 system-ui;text-align:center}
#storefront .front-utilities #frontSound{min-width:40px;padding:0 9px 0 6px}
.front-utilities #frontSound:before{content:"";position:absolute;left:0;top:13px;height:15px;width:1px;background:#d7c3aa}
#storefront #frontSound[aria-pressed=false]:after{width:20px;left:9px}
.scene-actions{position:fixed;right:max(14px,env(safe-area-inset-right));bottom:max(62px,calc(env(safe-area-inset-bottom) + 54px));display:flex;align-items:center;gap:5px;pointer-events:none}
.has-house .scene-actions button,.scene-actions button{pointer-events:auto;min-height:35px;padding:6px 11px;border-radius:10px;background:#fff6e9ed;color:#604b3d;border:1px solid #b7997d;font-size:12px;box-shadow:0 1px 4px #50352120}
#treasureBox{width:min(560px,96vw,calc(78svh * .914));max-width:96vw;max-height:94svh;padding:0;overflow:auto;color:#563c32;border:1px solid #c9a386;border-radius:20px;background:#fff1e0;box-shadow:0 16px 58px #39272466}
#treasureBox::backdrop{background:#36252172;backdrop-filter:blur(4px)}
.shell-tray{position:relative;aspect-ratio:1199/1312;isolation:isolate;background:#ebc2af}
#treasureBox[open] .shell-tray{background:url("assets/shell-case-020fdc3d909df824.webp") center/100% 100%}
#closeChest{position:absolute;z-index:2;right:2%;top:2%;width:44px;height:44px;border-radius:50%;color:#694734;background:#fff3db;border:1px solid #ac8058;font-size:26px}
.shell-label{position:absolute;transform:translate(-50%,-50%);font:650 clamp(11px,2.8vw,16px)/1.1 system-ui,sans-serif;white-space:nowrap;color:#573822;background:linear-gradient(#fff0d7,#edcda3);border:1px solid #c8a476;border-radius:100px;padding:.17em .65em;box-shadow:0 1px 2px #633f3d38}
.shell-label.necklace{left:24%;top:22%}.shell-label.earrings{left:27%;top:43%}.shell-label.ring{left:71%;top:43%}.shell-label.parts{left:50%;top:69%}
.shell-jewel{position:absolute;display:block;transform:translate(-50%,-50%);filter:drop-shadow(0 2px 1px #79503c40)}
.shell-jewel img{width:100%;height:100%;display:block;object-fit:contain}
.shell-jewel:is([data-id=necklace],[data-id=turtle]){top:24%;width:21%;height:23%}
.shell-jewel:is([data-id=necklace],[data-id=turtle]) img{object-fit:fill}
.shell-jewel[data-id=necklace]{left:43%}.shell-jewel[data-id=turtle]{left:63%}
.shell-jewel:is([data-id=earrings],[data-id=seahorse]){top:54%;width:15%;height:17%}
.shell-jewel[data-id=earrings]{left:22%}.shell-jewel[data-id=seahorse]{left:40%}
button.shell-jewel{padding:0;border:0;background:none;box-shadow:none;cursor:pointer;width:16%;height:7%}
button.shell-jewel[data-worn=true]::after{content:"✓";position:absolute;right:2px;bottom:0;border-radius:50%;background:#ffefca;color:#604623;font:bold 11px/15px system-ui;width:15px}
#legacyCharms{display:flex;justify-content:center;gap:12px;margin:4px 0}
#legacyCharms .shell-jewel{position:relative;transform:none;width:32px;height:32px}
#oceanCount{font-weight:650}
.shell-jewel[data-id="ring"]{left:62%;top:47.8%}
.shell-jewel[data-id="star-ring"]{left:78%;top:47.8%}
.shell-jewel[data-id="dolphin-ring"]{left:62%;top:54.8%}
.shell-jewel[data-id="puffer-ring"]{left:78%;top:54.8%}
.shell-jewel[data-id="fan-ring"]{left:62%;top:61.8%}
.shell-jewel[data-id="coral-ring"]{left:78%;top:61.8%}
.shell-jewel[data-id="cloud-bead"]{left:10%;top:71%;width:7.2%;height:6.8%}
.shell-jewel[data-id="daisy-bead"]{left:22%;top:75.5%;width:7.2%;height:6.8%}
.shell-jewel[data-id="stripe-bead"]{left:33%;top:77.5%;width:7.2%;height:6.8%}
.shell-jewel[data-id="ivory-bead"]{left:44%;top:79%;width:7.2%;height:6.8%}
.shell-jewel[data-id="star-bead"]{left:55%;top:79%;width:7.2%;height:6.8%}
.shell-jewel[data-id="jump-ring"]{left:66%;top:77.5%;width:7.2%;height:6.8%}
.shell-jewel[data-id="clasp"]{left:78%;top:75.5%;width:7.2%;height:6.8%}
.shell-jewel[data-id="shell-charm"]{left:89%;top:71%;width:7.2%;height:6.8%}
.shell-jewel small{position:absolute;right:-3px;bottom:-2px;font:700 10px/1.2 system-ui;background:#fff3df;color:#633e29;border-radius:1em;padding:0 3px}
.shell-footer{padding:9px 14px 11px;text-align:center;background:#fff4e7}
.shell-footer p{font-size:13px;line-height:1.4;margin:0}
.shell-footer button:not([hidden]){margin:5px 4px 0}
#inspectCollection,#detailWear{min-height:42px;padding:7px 16px;border:1px solid #bda17e;border-radius:20px;background:#fff9ed;color:#583e2e;font-size:14px}
#jewelDetail{box-sizing:border-box;width:min(352px,92vw);max-height:92svh;padding:0;overflow:auto;border:1px solid #bda182;border-radius:22px;color:#50382e;background:#fff6e9;box-shadow:0 18px 52px #38271c55}
#jewelDetail::backdrop{background:#34231c88;backdrop-filter:blur(3px)}
.detail-stage{position:relative;display:grid;place-items:center;height:clamp(126px,34svh,250px);touch-action:pan-y;background:radial-gradient(ellipse at 44% 26%,#fff5e8,#f1d3c7 72%,#e5bcb1)}
#detailImage{width:68%;height:78%;object-fit:contain;filter:drop-shadow(1px 5px 3px #6d4b3938);pointer-events:none}
#detailClose,.detail-step{display:grid;place-items:center;width:44px;height:44px;padding:0;line-height:1;border:1px solid #ceb79d;border-radius:50%;color:#614433;background:#fffaef}
#detailClose{position:absolute;right:8px;top:8px;font-size:24px}
.detail-caption{text-align:center;padding:10px 12px 14px}
.detail-line{display:flex;align-items:center;justify-content:space-between;gap:6px}
.detail-step{font:22px/1 system-ui;flex:none}.detail-line strong{font:600 19px/1.22 var(--label-type)}
#detailCount{margin:4px 0;color:#796052;font-size:13px}
#detailWear{margin:6px 0 0;background:#664735;color:#fff8eb}
#openStringing,#finishStrand{min-height:42px;border-radius:24px;background:#684531;color:#fff6e8;border:1px solid #845e44;padding:7px 19px}
#stringingTray{width:min(390px,94vw);box-sizing:border-box;max-height:92svh;overflow:auto;padding:15px;border:1px solid #c5a78e;border-radius:22px;background:#fff5e9;color:#503a31}
#stringingTray::backdrop{background:#3f2b277a;backdrop-filter:blur(3px)}
#stringingTray header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
#stringingTray h2{font:600 22px var(--label-type);margin:0}
#closeStringing{width:44px;height:44px;border:1px solid #c5af97;background:#fffaf3;border-radius:50%;font-size:24px;color:#644634}
.thread-mat{padding:24px 5px;border-radius:14px;background:radial-gradient(ellipse at 45% 30%,#fbe4d9,#dbb7ac);box-shadow:inset 0 1px 6px #98695c40}
#beadCord{min-height:47px;display:flex;align-items:center;justify-content:safe center;overflow-x:auto;padding:5px 0;background:linear-gradient(transparent calc(50% - 1.5px),#af824d calc(50% - 1.5px),#ffdb9e 50%,#bd8f5a calc(50% + 1.5px),transparent calc(50% + 1.5px))}
#beadCord button{touch-action:none;flex:none;width:43px;height:46px;border:0;padding:4px;background:transparent;box-shadow:none}
#beadCord button.moving{position:relative;z-index:1;opacity:.8}
#beadPalette{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
#beadPalette button{position:relative;display:grid;justify-items:center;align-content:start;padding:6px 2px;color:#563e31;background:#fffaf1;border:1px solid #dcc3ae;border-radius:12px;min-width:0}
#beadPalette button:disabled{opacity:.45}
#beadPalette button span{font:600 11px/1.2 system-ui;overflow-wrap:anywhere}
#beadPalette small{position:absolute;right:3px;top:2px;font:600 10px system-ui;background:#fff8ec;border-radius:8px;padding:0 2px}
#beadPalette img,#beadCord img{width:35px;height:35px;object-fit:contain;pointer-events:none}
#stringingTray p{font:13px/1.4 system-ui;color:#71584b;margin:11px 0}
#finishStrand{display:block;margin:14px auto 0}#finishStrand:disabled{opacity:.45}
@media(max-height:500px){#treasureBox{width:min(84vw,400px)}}
#bookPickup,#chestPickup{margin:8px 0 10px;padding:8px 13px;border:1px solid #bea078;border-radius:15px;background:#fff7df;color:#604330}
@media(max-width:540px){
 .has-house[data-house-mode=bench] #deskLabel{top:max(15px,env(safe-area-inset-top));left:calc(50% - 30px);max-width:calc(100vw - 150px);transform:translateX(-50%)}
}
@media(max-height:430px){.scene-actions{bottom:47px}}

/* Keep translated labels within the artwork and bound popups to the playable viewport. */
.localized-sign {
  width: max-content;
  max-width: calc(100% - 32px);
  white-space: normal;
  text-align: center;
}

.collection-card span {
  white-space: normal;
  overflow-wrap: anywhere;
  letter-spacing: 0;
}

:is(:lang(es), :lang(pt), :lang(de), :lang(fr), :lang(id), :lang(ar)) .collection-rail {
  --item-width: 94px;
}

:is(:lang(es), :lang(pt), :lang(de), :lang(fr), :lang(id), :lang(ar)) .collection-card span {
  font-size: 12px;
  line-height: 1;
}

.collection-card span:lang(de) {
  font-size: 11px;
}

#deskLabel {
  max-width: calc(100% - 28px);
  overflow-wrap: anywhere;
}

#deskLabel h1,
#deskLabel #material {
  white-space: normal;
}

#bookTheme {
  max-width: 100%;
}

#book .book-head {
  gap: 8px;
}

#book .book-head > div {
  min-width: 0;
}

#grid .entry {
  min-width: 0;
  overflow-wrap: anywhere;
}

#languageSettings {
  width: min(420px, calc(100% - 28px));
  max-height: calc(100svh - 28px);
  overflow: auto;
  overscroll-behavior: contain;
}

#languageOptions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#languageOptions button {
  min-height: 44px;
  overflow-wrap: anywhere;
}

#languageOptions button[aria-pressed=true]::after {
  float: inline-end;
}

@media (pointer: coarse) {
  .has-house .scene-actions button,
  .scene-actions button,
  .book-close,
  #takeToy,
  #deskControls button {
    min-width: 44px;
    min-height: 44px;
  }

  #storefront .front-utilities #frontLanguage,
  #storefront .front-utilities #frontSound {
    min-width: 44px;
    height: 44px;
  }

  .has-house[data-house-mode=walk] .scene-actions {
    bottom: max(66px, calc(env(safe-area-inset-bottom) + 64px));
  }

  .has-house[data-house-mode=walk] footer {
    bottom: max(10px, env(safe-area-inset-bottom));
  }
}

@media (max-height: 430px) and (pointer: coarse) {
  .has-house[data-house-mode=walk] .scene-actions {
    bottom: max(52px, calc(env(safe-area-inset-bottom) + 48px));
  }

  #deskControls button {
    font-size: 12px;
  }
}
