#homeDecorLayer{position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden}#homeDecorLayer[hidden],#decorPanel[hidden]{display:none!important}.decor-sticker{position:absolute;display:block;aspect-ratio:1;padding:0;margin:0;border:0;background:none;border-radius:8px;pointer-events:none;outline:0;transform-origin:center;min-height:0;min-width:0}.decor-sticker img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none;-webkit-user-select:none;-webkit-user-drag:none}#homeDecorLayer.decor-editing{z-index:7}.decor-editing .decor-sticker{pointer-events:auto;touch-action:none;cursor:grab}.decor-editing .decor-sticker:active{cursor:grabbing}.decor-editing .decor-sticker.selected{outline:2px dashed #f7df9a;outline-offset:3px;background:#203e3014}.decor-editing .decor-sticker:focus-visible{outline:3px solid #f7df9a}#decorPanel{order:2;background:#e8d0ab;border:1px solid #b99160;border-radius:12px;padding:10px;min-width:0}.decor-heading{display:flex;align-items:center;justify-content:space-between;color:#294b37}.decor-heading button{min-width:44px;min-height:44px;border:1px solid #b99160;border-radius:10px;background:#f4e6ce;color:#294b37}#decorPanel p{font-size:11px;line-height:1.5;color:#60402b;margin:6px 0}.decor-palette{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:8px 0}.decor-choice{display:flex;align-items:center;flex-direction:column;gap:4px;border:1px solid #b99160;border-radius:10px;background:#f4e6ce;color:#294b37;min-height:68px;padding:6px 3px;font-size:10px}.decor-choice img{width:42px;height:42px;object-fit:contain}.decor-choice:active{background:#dbc099}#decorSelection{border-top:1px solid #b99160;padding-top:8px}.decor-sliders{display:grid;grid-template-columns:1fr 1fr;gap:10px}.decor-sliders label{font-size:11px;display:flex;flex-direction:column;gap:3px}.decor-sliders input{width:100%;min-width:0;min-height:36px;accent-color:#b75d31}.decor-controls{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}.decor-controls button{min-height:40px;padding:7px 10px;border:1px solid #b99160;border-radius:9px;background:#f4e6ce;color:#294b37;font-size:11px}.decor-controls button:disabled{opacity:.45}.decor-controls button[hidden]{display:none}#world.screenshot-mode>#homeDecorLayer{visibility:visible!important;pointer-events:none!important}#world.screenshot-mode .decor-sticker{outline:none!important;background:none!important;pointer-events:none!important}.action[data-action="decor"]:disabled{opacity:.4;cursor:not-allowed}

.decor-palette{display:block}.decor-category{margin:7px 0;border:1px solid #b99160;border-radius:10px;overflow:hidden;background:#f4e6ce}.decor-category>summary{min-height:44px;padding:11px 9px;cursor:pointer;font-size:12px;font-weight:700;color:#294b37}.decor-category>summary small{display:block;font-size:10px;font-weight:400;margin:3px 0 0 13px;color:#795f43}.decor-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:7px;border-top:1px solid #d4b78d}.decor-category .decor-choice{min-height:82px}.decor-category .decor-choice img{width:50px;height:50px}

.decor-choice small{font-size:9px;line-height:1.4;font-weight:400;color:#715132}.decor-choice.sticker-locked{opacity:.75;cursor:default}.sticker-locked img{filter:grayscale(.75);opacity:.65}.decor-choice.sticker-locked:active{background:#f4e6ce}

/* One browsable grid for every sticker; filters only change what is shown. */
.decor-palette{display:block;margin:8px 0}
.sticker-grid-toolbar{position:sticky;top:0;z-index:2;background:#e8d0ab;padding:4px 0 8px}
.sticker-search-label{display:block;font-size:11px;font-weight:700;color:#294b37}
.sticker-search{box-sizing:border-box;display:block;width:100%;min-height:38px;margin-top:4px;padding:6px 10px;border:1px solid #b99160;border-radius:9px;background:#fff5e4;color:#294b37;font:inherit}
.sticker-filters{display:flex;gap:5px;overflow-x:auto;scrollbar-width:thin;padding:7px 0 3px}
.sticker-filters button{white-space:nowrap;flex:none;min-height:36px;padding:6px 11px;border:1px solid #b99160;border-radius:18px;background:#f4e6ce;color:#294b37;font-size:11px;font-weight:700}
.sticker-filters button.active{background:#294b37;color:#fff6dc;border-color:#294b37}
.sticker-grid-count{display:block;font-size:10px;color:#715132;padding:1px 2px}
.decor-palette>.decor-category-grid{border:0;padding:0;margin:4px 0 8px;align-items:stretch}
.decor-palette>.decor-category-grid .decor-choice{min-height:102px}
.decor-palette>.decor-category-grid .decor-choice img{width:58px;height:58px}
.decor-palette>.decor-category-grid .decor-choice[hidden]{display:none}
.decor-palette>.decor-category-grid .decor-choice span{line-height:1.2}
.decor-palette .decor-choice.sticker-locked{opacity:1;background:#f1e2c9}
.decor-palette .decor-choice.sticker-locked img{filter:none;opacity:1}
.decor-palette .decor-choice.sticker-locked small{opacity:.7}

/* Move the assembled Maple artwork out of the scene during decoration.
   Each layer shares the same path, so equipped gear stays fitted to her. */
#world.decor-maple-away #petwrap > :is(#pet,#gearActor,#pose,#cuddleGear,#cuddleSprite,#trickLoop,#trickSprite,#sleepmarks,#bubble),
#world.decor-maple-returning #petwrap > :is(#pet,#gearActor,#pose,#cuddleGear,#cuddleSprite,#trickLoop,#trickSprite,#sleepmarks,#bubble){pointer-events:none}
#world.decor-maple-away #petwrap > :is(#pet,#gearActor,#pose,#cuddleGear,#cuddleSprite,#trickLoop,#trickSprite,#sleepmarks,#bubble){animation:decorScurryAway .62s ease-in both!important}
#world.decor-maple-returning #petwrap > :is(#pet,#gearActor,#pose,#cuddleGear,#cuddleSprite,#trickLoop,#trickSprite,#sleepmarks,#bubble){animation:decorScurryBack .58s ease-out both!important}
@keyframes decorScurryAway{
 0%{translate:0 0;rotate:0deg;opacity:1}
 28%{translate:25vw -7%;rotate:-5deg;opacity:1}
 55%{translate:59vw 1%;rotate:4deg;opacity:1}
 82%{translate:98vw -5%;rotate:-3deg;opacity:1}
 100%{translate:140vw 0;rotate:0deg;opacity:0}
}
@keyframes decorScurryBack{
 0%{translate:140vw 0;rotate:0deg;opacity:0}
 15%{translate:108vw -5%;rotate:4deg;opacity:1}
 45%{translate:65vw 1%;rotate:-4deg;opacity:1}
 75%{translate:25vw -6%;rotate:3deg;opacity:1}
 100%{translate:0 0;rotate:0deg;opacity:1}
}
@media(prefers-reduced-motion:reduce){#world.decor-maple-away #petwrap > :is(#pet,#gearActor,#pose,#cuddleGear,#cuddleSprite,#trickLoop,#trickSprite,#sleepmarks,#bubble),#world.decor-maple-returning #petwrap > :is(#pet,#gearActor,#pose,#cuddleGear,#cuddleSprite,#trickLoop,#trickSprite,#sleepmarks,#bubble){animation-duration:.01ms!important}}
/* Compact sticker browsing keeps the exit control at hand on a phone. */
#decorPanel{position:relative;padding:7px}
#decorPanel .decor-heading{position:sticky;top:0;z-index:8;min-height:48px;padding:4px 5px;margin:-7px -7px 3px;background:#e8d0ab;border-radius:11px 11px 0 0;box-shadow:0 2px 5px #203e3033}
#decorPanel #decorRoomHeading{font-size:14px;line-height:1.2}
#decorPanel #decorCount{font-size:10px;margin:0 2px 3px}
#decorPanel .decor-palette{margin:2px 0}
#decorPanel .sticker-grid-toolbar{padding:0 0 3px}
#decorPanel .sticker-filters{padding:3px 0}
#decorPanel .sticker-grid-count{display:none}
@media(max-width:650px){#decorPanel .decor-heading{top:0}#decorPanel #closeDecor{min-width:65px;min-height:44px;font-size:13px}}
