:root{font-family:ui-rounded,"SF Pro Rounded","PingFang SC","Microsoft YaHei",sans-serif;font-synthesis:none;--space:#fffcfa;--panel:#fffdfbeb;--ink:#4f485e;--muted:#797182;--accent:#8270bb;--line:#ece5ed;--toy-radius:190px;--drawer-width:min(340px,calc(100vw - 54px));color:var(--ink);background:var(--space);color-scheme:light}
*{box-sizing:border-box}body{margin:0;overflow:hidden;background:var(--space)}button,input,select{font:inherit}button{cursor:pointer;color:inherit}button,a,label{-webkit-tap-highlight-color:transparent}button:disabled,input:disabled{cursor:default;opacity:.5}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--accent);outline-offset:4px}[hidden]{display:none!important}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.space-header{position:fixed;inset:30px 36px auto;display:flex;justify-content:space-between;align-items:flex-start;z-index:5;pointer-events:none}.brand{margin:0;font-size:23px;line-height:1.3;letter-spacing:3px;font-weight:600;pointer-events:auto}.brand>span{display:inline-block;transform:rotate(-9deg);color:var(--accent)}.brand small{display:block;font-size:12px;letter-spacing:2px;font-weight:400;color:var(--muted);margin-top:9px}.sound-pill{position:relative;pointer-events:auto;display:flex;align-items:center;gap:8px;min-height:44px;padding:10px 12px;border:0;border-radius:24px;background:transparent;color:var(--muted);font-size:14px;cursor:pointer;transition:background .2s}.sound-pill:hover{background:#fff;box-shadow:0 3px 15px #65527009}.sound-pill:focus-within{outline:2px solid var(--accent);outline-offset:3px}.sound-pill input{position:absolute;inset:0;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}.sound-icon{width:19px;height:19px}.sound-off{display:none}.sound-pill:has(input:not(:checked)) .sound-waves{display:none}.sound-pill:has(input:not(:checked)) .sound-off{display:block}
.soft-space{position:fixed;inset:0;height:100dvh;isolation:isolate;overflow:hidden;background:radial-gradient(ellipse 50% 62% at 50% 45%,#fff 0%,#fffdfb70 65%,transparent 100%)}.soft-space:before{content:"";position:absolute;inset:-8%;background:radial-gradient(ellipse 32% 40% at 31% 65%,#ffe8d94f,transparent 100%),radial-gradient(ellipse 35% 40% at 68% 48%,#e6e1ff4d,transparent 100%);pointer-events:none;animation:light-breath 16s ease-in-out infinite alternate}.stage{position:absolute;inset:0;overflow:hidden}#toy{display:block;width:100%;height:100%;position:relative;touch-action:none;cursor:grab;filter:drop-shadow(0 10px 9px #776a8914);outline:none}#toy:active{cursor:grabbing}#toy:focus-visible{outline:2px solid #c0b1db;outline-offset:-8px;border-radius:16px}.lift-shadow{position:absolute;left:calc(50% - var(--toy-radius)*.58);top:calc(50% + var(--toy-radius)*1.03);width:calc(var(--toy-radius)*1.16);height:calc(var(--toy-radius)*.10);border-radius:50%;background:#9182a2;filter:blur(14px);opacity:.12;pointer-events:none}.play-hint{position:absolute;left:50%;top:calc(50% + var(--toy-radius)*1.28 + 24px);transform:translateX(-50%);margin:0;white-space:nowrap;color:var(--muted);font-size:14px;letter-spacing:2px;pointer-events:none;transition:opacity 1s ease}.soft-space.has-played .play-hint{opacity:0}#error{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);max-width:320px;line-height:1.8;font-size:16px;padding:20px;border-radius:18px;background:var(--panel);text-align:center}#bagLabel{position:absolute;z-index:3;transform:translate(-50%,-50%);touch-action:none;cursor:move;user-select:none;white-space:nowrap;font-size:18px;font-weight:600;padding:4px;color:var(--ink);text-shadow:0 1px 1px #fff8}#bagLabel:hover{outline:1px dashed #a291b888;border-radius:5px}
.toy-picker{position:absolute;left:50%;bottom:max(26px,env(safe-area-inset-bottom));transform:translateX(-50%);display:flex;gap:18px;padding:0;z-index:4}.toy-picker button{position:relative;width:60px;min-height:76px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;border:0;border-radius:24px;background:transparent;font-size:13px;color:var(--muted);transition:color .2s,transform .35s cubic-bezier(.2,1.5,.4,1)}.toy-picker button:before{content:"";position:absolute;top:2px;width:52px;height:52px;background:#fff8;border-radius:50%;box-shadow:0 4px 18px #705a7906;transition:background .25s,transform .3s;z-index:-1}.toy-picker button:after{content:"";position:absolute;bottom:-6px;width:12px;height:3px;background:var(--accent);border-radius:4px;opacity:0;transition:opacity .2s}.toy-picker img{display:block;object-fit:contain;width:42px;height:42px;transition:transform .3s cubic-bezier(.2,1.5,.4,1)}.toy-picker button:hover img{transform:translateY(-4px) rotate(-6deg)}.toy-picker button:active img{transform:scale(1.12,.88)}.toy-picker button[aria-pressed=true]{color:var(--ink)}.toy-picker button[aria-pressed=true]:before{background:#f0eafb;transform:scale(1.05)}.toy-picker button[aria-pressed=true]:after{opacity:1}.toy-picker button[aria-pressed=true] img{transform:scale(1.07)}
.drawer-handle{position:fixed;right:0;top:50%;transform:translateY(-50%);z-index:25;display:flex;align-items:center;gap:1px;min-height:90px;width:44px;padding:12px 9px 12px 3px;border:1px solid #fff;border-right:0;border-radius:22px 0 0 22px;background:#f8edf5de;box-shadow:-3px 2px 18px #735b8007;font-size:13px;backdrop-filter:blur(16px);transition:right .38s cubic-bezier(.22,.8,.3,1),background .2s}.drawer-handle svg{width:15px;height:15px;flex:none;transition:transform .3s}.drawer-handle span{writing-mode:vertical-rl;letter-spacing:3px}.drawer-handle:hover{background:#f2e3f3}.drawer-open .drawer-handle{right:var(--drawer-width)}.drawer-open .drawer-handle svg{transform:rotate(180deg)}
.drawer{position:fixed;inset:0 0 0 auto;margin:0;width:var(--drawer-width);height:100dvh;display:flex;flex-direction:column;border:0;border-left:1px solid #ffffff;border-radius:30px 0 0 30px;padding:0;color:var(--ink);background:var(--panel);box-shadow:-8px 0 46px #8b779011;z-index:20;overflow:hidden;backdrop-filter:blur(32px);transform:translateX(100%);transition:transform .38s cubic-bezier(.22,.8,.3,1)}.drawer.visible{transform:translateX(0)}.drawer-heading{display:flex;align-items:center;justify-content:space-between;padding:26px 20px 22px;gap:10px;flex:none}.drawer-object{display:flex;align-items:center;gap:10px;min-width:0}.drawer-object img{width:42px;height:48px;object-fit:contain;flex:none}.drawer h2{font-size:17px;letter-spacing:.5px;font-weight:550;margin:0;line-height:1.6}.drawer-heading p{margin:5px 0 0;font-size:12px;color:var(--muted);line-height:1.6}.icon-button{flex:none;width:34px;height:38px;border:0;border-radius:16px;background:transparent;display:grid;place-items:center;color:var(--muted)}.icon-button:hover{background:#f4eef7}.icon-button svg{width:19px;height:19px}.drawer-tabs{display:flex;margin:0 22px;padding:0;border-bottom:1px solid var(--line);flex:none;gap:16px}.drawer-tabs button{position:relative;border:0;flex:1;background:transparent;padding:10px 0 13px;font-size:14px;color:var(--muted);min-height:44px;white-space:nowrap}.drawer-tabs button[aria-selected=true]{color:var(--accent)}.drawer-tabs button[aria-selected=true]:after{content:"";position:absolute;left:25%;right:25%;bottom:-1px;height:2px;border-radius:2px;background:var(--accent)}.drawer-scroll{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#ded3e4 transparent;flex:1;min-height:0;padding:30px 24px 22px}.settings-panel{animation:panel-in .24s ease}.textbtn{padding:7px 0;border:0;background:none;color:var(--accent);font-size:13px;cursor:pointer;text-underline-offset:4px}.textbtn:hover{text-decoration:underline}.micro{font-size:13px;color:var(--muted);line-height:1.75;margin:8px 0 0}.control{margin:0 0 29px}.control>label,label{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:14px;line-height:1.6}output{font-size:13px;color:var(--accent);font-variant-numeric:tabular-nums;white-space:nowrap}input[type=range]{appearance:none;width:100%;height:5px;margin:23px 0 12px;accent-color:var(--accent);cursor:pointer;display:block;background:#ece4f2;border-radius:5px}input[type=range]::-webkit-slider-thumb{appearance:none;width:20px;height:20px;border:4px solid #fff;background:#b9a1d4;box-shadow:0 1px 7px #90709d25;border-radius:50%}input[type=range]::-moz-range-thumb{width:13px;height:13px;border:4px solid #fff;background:#b9a1d4;box-shadow:0 1px 7px #90709d25;border-radius:50%}.ends{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);margin-top:5px}.preference-reset{margin-top:5px;text-align:right}.object-extra{border-top:1px solid var(--line);padding-top:23px;margin:25px 0 27px}select{display:block;width:100%;margin-top:10px;padding:11px;font-size:14px;border:1px solid var(--line);border-radius:13px;color:var(--ink);background:#fff;min-height:44px}input[type=text]{width:100%;padding:12px;border:1px solid var(--line);border-radius:13px;background:#fff;font-size:16px;color:var(--ink)}.toggleline{min-height:36px}.toggleline input{appearance:none;-webkit-appearance:none;flex:none;width:38px;height:23px;border:0;border-radius:20px;background:#e8e0eb;margin:0;position:relative;cursor:pointer;transition:background .2s}.toggleline input:before{content:"";position:absolute;left:3px;top:4px;width:15px;height:15px;border-radius:50%;background:white;box-shadow:0 1px 2px #52405d20;transition:transform .2s}.toggleline input:checked{background:#a88ac5}.toggleline input:checked:before{transform:translateX(17px)}.toggleline:has(input:disabled){opacity:.55}.photo{margin:0;padding:0}.photo h2{font-size:16px;letter-spacing:0}.photo>p{font-size:13px;line-height:1.7;color:var(--muted)}.upload{display:block;padding:28px 12px;border:1px dashed #c6b4d4;border-radius:18px;background:#faf6fc;text-align:center;font-size:14px;cursor:pointer;line-height:1.7}.upload:hover,.upload.dragover{background:#f3ebfa;border-color:var(--accent)}.thumbrow{display:flex;align-items:center;justify-content:space-between;margin:18px 0}#thumb{width:70px;height:70px;border-radius:12px}#cropControls>label{margin-top:18px}#bagOptions{margin-top:18px;padding-top:0}#bagOptions label{margin-top:18px}#bagOptions #holeControls{margin-top:15px}.bag-lettering{margin-top:24px;border-top:1px solid var(--line);padding-top:17px}.bag-lettering summary{font-size:14px;cursor:pointer;line-height:1.8;color:var(--muted)}.drawer-foot{padding:13px 24px max(16px,env(safe-area-inset-bottom));display:flex;justify-content:space-between;align-items:center;flex:none;gap:10px}.drawer-foot>span{font-size:12px;color:var(--muted)}
@keyframes panel-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}@keyframes light-breath{from{transform:translate(-1%,0);opacity:.7}to{transform:translate(1%,2%);opacity:1}}
@media(max-width:600px){.space-header{inset:max(22px,env(safe-area-inset-top)) 22px auto}.brand{font-size:21px;letter-spacing:2px}.brand small{font-size:12px;letter-spacing:1.5px;margin-top:7px}.sound-pill{padding:9px 11px}.sound-pill>span{display:none}.drawer-heading{padding-top:max(24px,env(safe-area-inset-top));padding-inline:16px}.drawer h2{font-size:16px}.drawer-object{gap:6px}.drawer-object img{width:34px;height:42px}.drawer-scroll{padding:25px 21px}.drawer-tabs{margin-inline:21px;gap:10px}.toy-picker{bottom:max(30px,env(safe-area-inset-bottom));gap:20px}.toy-picker button{width:54px;min-height:72px}.toy-picker button:before{width:48px;height:48px}.toy-picker img{width:39px;height:39px}.play-hint{font-size:13px;top:calc(50% + var(--toy-radius)*1.28 + 25px)}}
@media(max-height:620px){.space-header{top:16px}.brand small{margin-top:4px}.toy-picker{bottom:16px}.toy-picker button{min-height:49px;width:60px;flex-direction:row;gap:2px}.toy-picker button:before{width:38px;height:38px;left:0;top:6px}.toy-picker img{width:30px;height:30px}.play-hint{top:calc(50% + var(--toy-radius)*1.2 + 12px)}.drawer-heading{padding-block:17px 12px}.drawer-scroll{padding-top:20px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
/* A quiet room; collection furniture and light preferences have distinct roles. */
:root{--space:#fefcf8;--panel:#fffefbec;--ink:#554e59;--muted:#827982;--accent:#b37084;--line:#eee7e4;--drawer-width:min(310px,calc(100vw - 52px))}
.soft-space{background:radial-gradient(ellipse 60% 70% at 50% 43%,#fff 0%,#fffefa80 65%,transparent 100%)}
.soft-space:before{background:radial-gradient(ellipse 31% 40% at 24% 66%,#ffeddf46,transparent 100%),radial-gradient(ellipse 31% 43% at 76% 46%,#e9e4ff38,transparent 100%)}
.brand{font-weight:500;font-size:21px}.brand small{opacity:.8}.drawer-handle{width:32px;min-height:72px;padding:11px 8px;border-radius:6px 0 0 9px;background:#f4e1df;box-shadow:-2px 3px 6px #84665e0b;font-size:14px;backdrop-filter:none;border:0;border-left:1px dashed #d8bab4}.drawer-handle span{letter-spacing:4px}.drawer-handle:hover{background:#eed6d0}.drawer{border-radius:22px 0 0 22px;box-shadow:-8px 0 42px #7d6a7410;background:#fffefbeb}.drawer-heading{padding:26px 20px 18px}.drawer-object img{width:37px}.drawer-heading p{font-size:12px}.drawer h2{font-size:16px}.icon-button{font-size:25px;font-weight:300}.drawer-scroll{padding:27px 23px}.drawer-tabs button:disabled{opacity:.3}.drawer-foot{justify-content:flex-end}.drawer-foot .textbtn{color:var(--muted)}.control-label{font-size:14px;line-height:1.5;margin:0 0 15px}.feel-choices{display:flex;gap:8px}.feel-choices button{flex:1;min-height:44px;padding:7px 5px;border:1px solid transparent;border-radius:16px;background:#f5f1ed;color:var(--muted);font-size:14px;transition:transform .22s,background .2s}.feel-choices button[aria-pressed=true]{background:#f3deda;color:#855b60;border-color:#ecd1ce;box-shadow:inset 0 1px 2px #ffffffbb}.feel-choices button:hover{transform:translateY(-2px)}.feel-choices button:active{transform:scale(1.05,.92)}.preference-reset{text-align:left;margin-top:13px}.textbtn{font-size:14px}.toggleline input:checked{background:#cb9b97}input[type=range]{background:#f1e3de}input[type=range]::-webkit-slider-thumb{background:#ca9f99}input[type=range]::-moz-range-thumb{background:#ca9f99}
.collection{--drawer-progress:0;position:fixed;left:50%;bottom:-6px;transform:translateX(-50%);width:min(820px,96vw);aspect-ratio:2.6;z-index:12;pointer-events:none;isolation:isolate}.collection.open{--drawer-progress:1}.collection-tray{position:absolute;inset:0;transform:translateY(calc((1 - var(--drawer-progress)) * (100% - 21px)));transition:transform .65s cubic-bezier(.19,.8,.24,1);will-change:transform}.drawer-art{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none;filter:drop-shadow(0 -4px 15px #ad91800b)}.collection-tray:after{content:"";position:absolute;inset:0;background:url('images/collection-front.png') center/100% 100% no-repeat;pointer-events:none;z-index:3}.collection-items{position:absolute;left:9%;right:9%;top:13%;height:54%;display:block;z-index:2;visibility:hidden}.collection.open .collection-items,.collection.dragging .collection-items{visibility:visible}.collection.open .collection-items{pointer-events:auto}.collectible{position:relative;background:none;border:0;padding:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;outline-offset:0;border-radius:16px;transform-origin:50% 85%;transition:transform .4s cubic-bezier(.2,1.5,.4,1);touch-action:manipulation}.collectible img{width:108%;height:108%;object-fit:contain;pointer-events:none;filter:drop-shadow(0 7px 5px #604e7020)}.collectible:nth-child(1){transform:rotate(-8deg)}.collectible:nth-child(2){transform:translateY(-3%) rotate(4deg)}.collectible:nth-child(3){transform:rotate(-5deg)}.collectible:hover,.collectible:focus-visible{transform:translateY(-13%) rotate(0)}.collectible:active{transform:translateY(-10%) scale(1.04,.93)}.collectible>span{position:absolute;top:0;left:50%;transform:translate(-50%,-110%);white-space:nowrap;font-size:13px;line-height:1.6;color:var(--ink);opacity:0;transition:opacity .2s;pointer-events:none;background:#fffaf4cf;padding:2px 7px;border-radius:7px}.collectible:hover>span,.collectible:focus-visible>span{opacity:1}.collectible[aria-pressed=true] img{opacity:.4;filter:drop-shadow(0 4px 5px #604e700c);transform:scale(.92)}.custom-item img{width:74%;height:74%;transform:rotate(7deg);filter:drop-shadow(2px 6px 3px #66565725)}.collection-handle{pointer-events:auto;position:absolute;bottom:calc(5px + var(--drawer-progress) * 16%);left:50%;transform:translateX(-50%);width:132px;height:58px;background:none;border:0;padding:3px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;touch-action:none;cursor:grab;transition:bottom .65s cubic-bezier(.19,.8,.24,1);z-index:4}.collection-handle:active{cursor:grabbing}.pull-loop{display:block;width:55px;height:18px;border:6px solid #dca499;border-top-width:4px;border-radius:5px 5px 20px 20px;box-shadow:0 2px 3px #c19b8d26,inset 0 1px 2px #b67d7333;transform:rotate(-2deg);transition:opacity .2s}.handle-caption{font-size:12px;letter-spacing:2px;color:#9a8580;transition:opacity .2s}.collection.open .pull-loop,.collection.open .handle-caption{opacity:0}.collection.open .collection-handle{height:27%;width:24%}.collection.dragging .collection-tray,.collection.dragging .collection-handle{transition:none}.collection-open .play-hint{opacity:0}.flying-collectible{position:fixed;object-fit:contain;pointer-events:none;z-index:40;transform-origin:center;filter:drop-shadow(0 8px 8px #776a8914)}
.letter-tools{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.letter-tools select{margin:0;padding:8px;min-height:40px}.letter-tools button{grid-column:1/-1;justify-self:start}.sticker-label{margin-top:27px}.sticker-choices{display:flex;gap:9px}.sticker-choices button{background:none;border:0;flex:1;min-height:48px;padding:3px;border-radius:12px;transition:transform .2s}.sticker-choices img{width:100%;height:43px;object-fit:contain;filter:drop-shadow(0 3px 2px #7e687313)}.sticker-choices button:hover{transform:translateY(-3px)}#bagStickers{position:absolute;inset:0;z-index:4;pointer-events:none}.bag-sticker{position:absolute;transform:translate(-50%,-50%);border:0;background:none;padding:0;pointer-events:auto;touch-action:none;cursor:move;border-radius:10px}.bag-sticker img{width:100%;height:100%;object-fit:contain;pointer-events:none;filter:drop-shadow(1px 2px 1px #8a737124)}.bag-sticker.selected{outline:1px dashed #ad859d88;outline-offset:4px}.sticker-tools{position:absolute;z-index:6;transform:translate(-50%,-50%);display:flex;gap:2px;border-radius:20px;padding:3px;background:#fffefbe8;box-shadow:0 4px 18px #785f7214}.sticker-tools button{border:0;background:none;border-radius:50%;width:36px;height:36px;font-size:20px}.sticker-tools button:hover{background:#f3e8e6}#bagLabel{z-index:5}
.photo-dialog{border:1px solid #fff;background:#fffcf8;color:var(--ink);border-radius:25px;padding:24px;width:min(390px,calc(100vw - 36px));max-height:90dvh;overflow-y:auto;box-shadow:0 15px 85px #75616d20}.photo-dialog::backdrop{background:#d6cdd133;backdrop-filter:blur(7px)}.photo-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:18px}.photo-heading h2{font-size:18px;font-weight:500;margin:0}.photo-dialog .upload{background:#f7f0eb;border:1px dashed #ddcbc2;padding:24px 12px;font-size:15px}.photo-dialog .upload:hover{background:#f1e7e0}.photo-dialog .micro{text-align:center}.photo-dialog #thumb{display:block;width:200px;height:200px;margin:20px auto 0;touch-action:none;cursor:move;border-radius:24px}.photo-actions{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:18px}.photo-actions>button{min-width:38px;min-height:40px;border:0;background:transparent;border-radius:14px;font-size:17px}.photo-actions .textbtn{font-size:14px;margin-left:3px}.photo-actions .use-photo{font-size:14px;background:#efdbd4;padding:9px 13px}
@media(max-width:600px){.collection{width:108vw;aspect-ratio:2.05;bottom:-3px}.collection-items{left:9%;right:9%;top:17%;height:46%;gap:1%}.collectible img{width:116%;height:116%}.collectible>span{font-size:12px}.collection.open .collection-handle{bottom:17%;height:23%}.collection-tray{transform:translateY(calc((1 - var(--drawer-progress)) * (100% - 19px)))}.collection-handle{bottom:max(4px,env(safe-area-inset-bottom));height:52px}.drawer-handle{top:44%;width:30px}.drawer-heading{padding-inline:18px}.drawer-scroll{padding-inline:21px}.letter-tools{gap:6px}.play-hint{font-size:13px}.photo-dialog{padding:22px}.space-header{inset:23px 23px auto}.brand{font-size:20px}}
@media(max-height:600px){.collection{width:min(580px,80vw);aspect-ratio:3}.collection-handle{height:45px}.handle-caption{display:none}.collection-items{top:9%;height:58%}.drawer-heading{padding-block:15px 10px}.drawer-scroll{padding-top:20px}}
@media(prefers-reduced-motion:reduce){.collection-tray,.collection-handle,.collectible{transition:none!important}}
/* Object ownership and transfer: one renderer, one place for each collectible. */
.collectible,.collectible:nth-child(n),.collectible:hover,.collectible:focus-visible{transform:none}.collectible img,.collectible[aria-pressed=true] img{transform:none;opacity:1;transition:none}.collectible:disabled{opacity:1;cursor:default}.collectible[data-location=outside]>img{visibility:hidden}.collectible[data-location=outside]>span{display:none}.collectible.just-stored img{animation:rest-in-drawer .42s ease-out}.is-transferring .collection-handle{pointer-events:none}.collection.receiving .collection-items{pointer-events:none}.store-hint{position:absolute;left:50%;top:-8px;transform:translate(-50%,-100%);font-size:13px;line-height:1.6;white-space:nowrap;color:#9a8580;pointer-events:none}.store-hint:empty{display:none}.collection.receiving .collection-tray{transition-duration:.34s}.stage.object-in-transit{z-index:13;pointer-events:none}.stage.object-in-transit #toy{pointer-events:auto}#collectionOccluder{position:fixed;z-index:14;pointer-events:none}#collectionOccluder img{display:block;width:100%;height:100%}.stage-empty .drawer-handle{opacity:.35}.stage-empty .play-hint{opacity:.7;top:50%;font-size:14px}.stage-empty.collection-open .play-hint{opacity:0}.bag-sticker{will-change:left,top;touch-action:none}#bagLabel{touch-action:none}#bagStickers{overflow:visible}.flying-collectible{display:none}
@keyframes rest-in-drawer{0%{transform:scale(1.025,.975)}100%{transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.collectible.just-stored img{animation:none}.collection.receiving .collection-tray{transition:none}}
/* Packaging is one deforming surface. Graphics inherit its local tangent frame. */
.bag-print,#bagLabel.bag-print{position:absolute;z-index:5;display:block;padding:0;margin:0;touch-action:none;cursor:move;user-select:none;transform-origin:center;filter:drop-shadow(0 1px 1px #8072690e)}.bag-print:hover{outline:1px dashed #b2989670;outline-offset:4px;border-radius:5px}.sticker-tools{position:absolute;inset:0;transform:none;border:0;padding:0;background:none;box-shadow:none;display:block;pointer-events:none}.sticker-tools button{position:absolute;transform:translate(-50%,-50%);pointer-events:auto;touch-action:none;width:28px;height:28px;background:#fffcf4ed;box-shadow:0 2px 8px #775d7418;font-size:18px;border-radius:50%;padding:0}.sticker-tools #stickerResize{width:34px;height:34px;background:none;box-shadow:none;cursor:nwse-resize;display:grid;place-items:center}.sticker-tools #stickerResize span{width:11px;height:11px;border-radius:50%;border:2px solid #fff;background:#be9697;box-shadow:0 1px 5px #785c7433;pointer-events:none}.bag-sticker.selected{outline:1px dashed #ad859d66;outline-offset:3px}.bag-sticker{touch-action:none}.collection.receiving .collection-tray{transition-duration:.26s}.collection.ready-to-store .collectible.being-touched img{transform:translateY(calc(-1 * var(--lift-preview,0px))) scale(1.025,.97)!important}.collectible{touch-action:none}.collectible:not(:disabled):hover img{filter:drop-shadow(0 8px 6px #604e7027)}
@keyframes nest-breath{to{transform:scale(1.065);box-shadow:inset 0 3px 10px #aa927511,0 0 31px #fffdf8}}
@media(prefers-reduced-motion:reduce){.collection.ready-to-store .collection.receiving .collection-tray{transition:none}}
/* Warm ambient background and the existing photo editor. */
:root{--space:#f3eee7;--panel:#faf6ef;--drawer-width:min(332px,calc(100vw - 48px))}.soft-space{background:radial-gradient(ellipse 59% 65% at 49% 40%,#fffcf6 0%,#f5f0e8 69%,#e7dcd15e 100%)}.soft-space:before{background:radial-gradient(ellipse 34% 42% at 20% 59%,#eec8ad32,transparent 100%),radial-gradient(ellipse 35% 50% at 79% 48%,#c8bedf27,transparent 100%)}
.item-menu{position:fixed;z-index:45;width:204px;padding:10px;background:#fffaf2f5;border:1px solid #fff;border-radius:18px;box-shadow:0 9px 35px #81655820;backdrop-filter:blur(14px)}.item-menu-heading{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:3px 2px 8px;font-size:14px;color:#8d766d}.item-menu-heading>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.item-menu button{border:0;background:transparent;color:#765f5b;font-size:14px;border-radius:10px;min-height:40px}.item-menu>button{display:block;text-align:left;width:100%;padding:8px 12px}.item-menu button:hover{background:#f0e4d9}.item-menu-heading button{width:32px;flex:none;font-size:20px}.item-menu p{font-size:12px;line-height:1.6;margin:5px 4px;color:#a18479}#deleteConfirm{border-top:1px solid #eaded3;margin-top:7px;padding-top:7px}#confirmDelete{color:#a05e5e}#manageStatus:empty{display:none}
.photo-dialog{width:min(420px,calc(100vw - 30px));max-height:92dvh;padding:22px;background:#fcf7ee}.photo-dialog .upload{padding:15px 10px;border-radius:15px;font-size:14px}.photo-dialog #thumb{width:min(290px,100%);height:auto;aspect-ratio:1;margin:12px auto;background:radial-gradient(ellipse,#fffaf2,#e8ddd0);border-radius:23px;touch-action:none}.crop-modes{display:flex;gap:8px;margin:20px 0 0}.crop-modes button{border:0;background:#eee6dc;color:#8f7c72;flex:1;border-radius:14px;font-size:14px;min-height:43px}.crop-modes button[aria-pressed=true]{background:#dec1b3;color:#70534a}.photo-dialog .micro{font-size:12px;line-height:1.65}.photo-dialog .photo-actions{margin-top:11px}.photo-dialog .name-label{font-size:13px;margin-top:13px;color:#968075}.photo-dialog #customNameInput{margin-top:6px;background:#fffaf4;padding:9px 12px;font-size:14px}.photo-dialog .photo-actions .use-photo{font-size:14px;min-height:43px;padding-inline:18px;background:#e7cec1}.photo-dialog .photo-actions button:disabled{opacity:.5}

/* v15: one cavity, mobile objects; the vacant area is simply vacant. */
.collection{width:min(820px,98vw);aspect-ratio:2.05;filter:drop-shadow(0 -8px 26px #917b650c)}
.collection-items{display:block;left:12%;right:12%;top:11%;height:55%;overflow:visible}
.collection-items>.collectible,.collection-items>.custom-slot{position:absolute;margin:0;transition:none;will-change:left,top}
.collection-items .collectible{width:100%;height:100%;transition:none;cursor:grab;touch-action:none}
.collection-items>.collectible:after,.custom-slot:after,
.collection-items img,.collection-items .custom-item img{width:100%;height:100%;max-width:none;transform:none;object-fit:contain}
.collectible[data-location=outside]{visibility:hidden;pointer-events:none}.collectible.being-touched{z-index:6;cursor:grabbing}.collectible.being-touched img{transform:scale(1.015,.985)!important}
.collection-count{position:absolute;left:15%;top:2%;margin:0;color:#9b8275;font-size:12px;line-height:1.7;opacity:0;pointer-events:none}.collection.open .collection-count{opacity:1}
.add-custom{position:absolute;right:14%;top:0;z-index:5;min-height:40px;padding:4px 6px;background:none;border:0;color:#8b7166;font-size:14px;pointer-events:auto;opacity:0;visibility:hidden}.collection.open .add-custom{opacity:1;visibility:visible}.add-custom:disabled{opacity:.6;font-size:12px}.collection.receiving .add-custom,.collection.receiving .collection-count{visibility:hidden}
.item-manage{position:absolute;right:0;top:0;z-index:5;width:32px;height:32px;border:0;border-radius:50%;background:#fffaf2c9;color:#967d75;font-size:19px;line-height:1;pointer-events:auto;opacity:0}.custom-slot:hover .item-manage,.custom-slot:focus-within .item-manage{opacity:1}
@media(hover:none){.item-manage{opacity:1}}
.collection-retry{position:absolute;top:-12px;left:50%;transform:translate(-50%,-100%);background:#fff8ed;border:0;border-radius:14px;color:#856d66;padding:8px 13px;z-index:6;font-size:14px;pointer-events:auto}.collection:not(.open) .collection-retry{display:none}
.catch-glow{position:absolute;z-index:1;transform:translate(-50%,-50%);border-radius:50%;background:#fff9df99;box-shadow:0 0 28px 12px #fffaf080;pointer-events:none;animation:catch-breath .9s ease-in-out infinite alternate}.collection.ready-to-store .drawer-art{filter:drop-shadow(0 -2px 16px #fff8dea0)}
@keyframes catch-breath{to{transform:translate(-50%,-50%) scale(1.06);opacity:.68}}
.drawer{border-radius:18px 0 0 18px;background:#fffcf6ec;border-left:1px solid #fff9;box-shadow:-10px 0 36px #7868590c;backdrop-filter:blur(20px)}
.drawer-handle{top:42%;width:32px;min-height:82px;touch-action:none;cursor:ew-resize;background:#ead0c6;border-left:1px dashed #b9978680;border-radius:6px 0 0 10px}
.pack-add{display:flex;gap:26px;margin:12px 0 14px}.letter-tools{display:flex;align-items:center;flex-wrap:wrap;gap:6px 16px}.letter-tools select{width:100%;margin-bottom:5px}.letter-tools button{font-size:13px}.sticker-choices{margin-top:18px}.bag-print.selected{outline:1px dashed #ad859d66;outline-offset:3px}
@media(max-width:600px){.collection{width:108vw;aspect-ratio:1.65;bottom:-4px}.collection-items{left:13%;right:13%;top:15%;height:51%}.collection-count{left:14%;top:1%}.add-custom{right:13%;top:-1%;font-size:13px;max-width:68%;text-align:right}.collection.open .collection-handle{bottom:17%;height:22%}.photo-dialog{padding:18px}.photo-dialog #thumb{width:min(240px,100%)}.photo-heading{margin-bottom:12px}}
@media(max-height:620px){.collection{width:min(620px,78vw);aspect-ratio:2.5}.collection-items{top:10%;height:57%}.collection-count{top:-2%}.add-custom{top:-4%}.photo-dialog{max-height:94dvh}.photo-dialog #thumb{width:190px}}

/* Water only: one continuous feel control. Anchors are shortcuts, not modes. */
.feel-axis-control{padding-top:2px}.feel-axis-control>label{font-size:14px;margin-bottom:7px;justify-content:flex-start}
#feelAxis{margin:27px 0 10px;height:4px;background:linear-gradient(90deg,#eadbd2,#d8b2b2);touch-action:auto}
#feelAxis::-webkit-slider-thumb{width:21px;height:21px;border-width:4px;background:#bd8f94}
.feel-anchors{position:relative;height:50px;margin:0 10px}.feel-anchors button{position:absolute;top:0;left:0;transform:translateX(-50%);min-width:46px;min-height:36px;background:none;border:0;padding:4px 2px;font-size:14px;color:var(--muted)}
.feel-anchors button[data-feel-anchor="620"]{left:62%}.feel-anchors button:last-child{left:100%}.feel-anchors small{display:block;font-size:11px;line-height:1.4;opacity:.65;margin-top:2px}.feel-anchors button:before{content:"";position:absolute;top:-14px;left:50%;width:4px;height:4px;transform:translate(-50%,-50%);border-radius:50%;background:#ae8790;pointer-events:none}
.feel-anchors button[aria-pressed=true]{color:#885767}.feel-anchors button:hover{color:var(--ink)}

/* P1: shallow continuous furniture; preview sizing follows visible silhouettes.
   Objects may stand above the back wall. The original front lip occludes their base. */
.collection{width:min(760px,98vw);aspect-ratio:2.85}
.collection-items{left:10%;right:10%;top:-5%;height:65%;overflow:visible}
.collection-items .collectible img{position:absolute;object-fit:fill;max-width:none;max-height:none;transform-origin:center;pointer-events:none}
.collection-items .collectible:focus-visible{outline:2px solid #b694815e;outline-offset:5px}
.collection-count{left:11%;top:-18%}
.add-custom{right:10%;top:-20%}
@media(max-width:600px){.collection{width:108vw;aspect-ratio:2.85}.collection-items{left:11%;right:11%;top:-5%;height:65%}.collection-count{left:12%;top:-24%}.add-custom{right:11%;top:-29%}}
@media(max-height:620px){.collection{width:min(620px,78vw);aspect-ratio:2.85}.collection-items{top:-5%;height:65%}.collection-count{top:-21%}.add-custom{top:-24%}}

/* P2: copy can wrap without resizing the play canvas or the collection furniture. */
.space-header{gap:12px}.brand{min-width:0}.brand>.brand-name{transform:none;color:inherit;overflow-wrap:anywhere}
.header-actions{display:flex;align-items:center;gap:4px;pointer-events:auto;flex:none}
.language-switch{display:flex;align-items:center;gap:0;pointer-events:auto;flex:none}
.language-switch button{padding:5px 7px;min-height:36px;border:0;background:none;color:var(--muted);font-size:12px;line-height:1.2;white-space:nowrap}
.language-switch button+button:before{content:'/';margin-right:12px;opacity:.35;font-weight:400}
.language-switch button[aria-pressed=true]{color:var(--ink);font-weight:600}
:lang(en) .brand,:lang(en) .entry-title{letter-spacing:.01em}
:lang(en) .brand small,:lang(en) .entry-title small,:lang(en) .handle-caption{letter-spacing:.04em}
:lang(en) .drawer-handle span{letter-spacing:.06em}
.drawer-object,.drawer-object>div,.drawer-heading{min-width:0}.drawer-object{flex:1}.drawer-object img,.icon-button{flex:none}
.drawer h2,.photo-heading h2{overflow-wrap:anywhere;line-height:1.4}.drawer-heading p{line-height:1.5}
.drawer-foot{justify-content:space-between;gap:10px;flex-wrap:wrap}
.drawer-scroll button,.drawer-scroll label,.drawer-scroll select,.item-menu button{min-width:0;white-space:normal;overflow-wrap:anywhere}
.feel-choices{flex-wrap:wrap}.feel-choices button{flex:1 1 62px;line-height:1.35}.feel-anchors small:empty{display:none}
.photo-feel-more{margin-block:8px 18px}.photo-feel-more summary{font-size:14px;color:var(--muted);cursor:pointer;padding-block:8px}.photo-feel-more .control{margin-top:20px}
.pack-add,.photo-actions{flex-wrap:wrap}.pack-add{gap:12px 22px}.photo-actions>button{max-width:100%;white-space:normal}
.photo-heading{flex-wrap:wrap}.photo-heading h2{flex:1 1 130px}.photo-heading .language-switch{margin-left:auto}
.collectible>span{white-space:normal;overflow-wrap:anywhere;text-align:center;width:max-content;max-width:min(150px,38vw);line-height:1.4}
.collection-count{max-width:29%;white-space:normal;overflow-wrap:anywhere;line-height:1.45}
.add-custom{max-width:44%;white-space:normal;overflow-wrap:anywhere;line-height:1.4}
.store-hint{white-space:normal;text-align:center;width:max-content;max-width:80vw;line-height:1.45}
.item-menu-heading>span{white-space:normal;overflow-wrap:anywhere}.item-menu p{overflow-wrap:anywhere}
.intro-language{position:absolute;left:24px;top:22px;z-index:5}.entry-title{max-width:calc(100vw - 48px);white-space:normal;overflow-wrap:anywhere}
@media(max-width:520px){.header-actions{gap:0}.sound-pill>span{display:none}.sound-pill{padding-inline:7px}.space-header{gap:8px}.brand{font-size:19px}.brand small{line-height:1.5;letter-spacing:1px}.collection-count{max-width:29%}.add-custom{max-width:44%}.photo-heading{gap:5px}.photo-heading h2{flex-basis:115px}}

.play-hint{max-width:calc(100vw - 48px);white-space:normal;text-align:center;line-height:1.5}:lang(en) .play-hint{letter-spacing:.02em}.drawer-tabs button{min-width:0;white-space:normal;overflow-wrap:anywhere}#error{width:max-content;max-width:calc(100vw - 48px);overflow-wrap:anywhere}
.item-menu{width:min(230px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow-y:auto}
