/* Squishy Room: free floor play (drag anywhere, bounce, wobble, soft shadows) and the basket's spill button. */
html body .bedroom-scene{position:relative}
html body .bedroom-scene .rp-floor{position:absolute;left:0;right:0;top:52%;bottom:0;z-index:1;pointer-events:none}
html body .bedroom-scene .rp-toy{position:absolute;width:clamp(70px,14%,140px);aspect-ratio:1;padding:0;border:0;background:none;cursor:grab;touch-action:none;-webkit-tap-highlight-color:transparent;transform:translate(-50%,-92%) rotate(var(--r,0deg)) scale(var(--s,1));transform-origin:50% 92%;transition:transform .18s ease-out}
html body .bedroom-scene .rp-toy .rp-body{position:absolute;inset:0;display:block;transform-origin:50% 92%}
html body .bedroom-scene .rp-toy .rp-body .toy{width:100%!important;height:100%!important;filter:drop-shadow(0 2px 1px #6a4a3530)}
html body .bedroom-scene .rp-toy .rp-shadow{position:absolute;left:14%;right:14%;bottom:2%;height:16%;border-radius:50%;background:radial-gradient(ellipse at center,#3b2416a8 0%,#3b241650 45%,transparent 72%);opacity:.8;transform-origin:50% 50%;pointer-events:none}
html body .bedroom-scene .rp-toy.rp-dragging{cursor:grabbing;pointer-events:none;transition:none;transform:translate(-50%,-100%) rotate(var(--r,0deg)) scale(calc(var(--s,1)*1.12));z-index:200!important;filter:drop-shadow(0 14px 10px #4a2f1f40)}
html body .bedroom-scene .rp-toy.rp-dragging .rp-shadow{opacity:.3;scale:.7}
html body .bedroom-scene .rp-toy.rp-pinching{transition:none}
html body .bedroom-scene .rp-toy:focus-visible{outline:3px solid #7954a2;outline-offset:2px;border-radius:30%}
/* a basket with squishies inside gives a little wiggle now and then: tap it to spill them out */
html body .bedroom-scene .room-display.rp-full-basket{transform-origin:50% 85%}
@media(prefers-reduced-motion:no-preference){html body .bedroom-scene .room-display.rp-full-basket{animation:rp-basket-wiggle 3.2s ease-in-out infinite}@keyframes rp-basket-wiggle{0%,78%,100%{rotate:0deg}83%{rotate:-4deg}89%{rotate:4deg}94%{rotate:-2deg}}}

/* Select in the existing viewer, then tap empty floor or a display. Cancel never saves. */
html body .bedroom-scene.room-placing .rp-floor{pointer-events:auto;cursor:copy;outline:2px dashed #fff9;outline-offset:-8px;border-radius:24px;background:#fff2}
html body .room-placement-choice{position:absolute;left:3%;bottom:18%;z-index:210;display:flex;align-items:center;gap:4px;padding:4px;border:2px solid white;border-radius:20px;background:#fff8e9;box-shadow:0 3px 8px #55372833;pointer-events:auto}
html body .room-placement-choice>span{width:56px;height:56px;display:grid;place-items:center}
html body .room-placement-choice .toy{width:52px!important;height:52px!important}
html body .room-placement-cancel{width:48px;height:48px;border:0;border-radius:50%;background:#f1e5f7;color:#553728;font-size:30px;cursor:pointer}
html body .room-placement-cancel:focus-visible,html body .room-floor-target:focus-visible{outline:3px solid #553728;outline-offset:3px}

/* The toy receives the drag, never its basket. Action sheets also offer a large tap route. */
html body .bedroom-scene .room-display [data-room-item]{touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none}
.room-toy-preview{display:grid;place-items:center;margin:12px auto}.room-toy-preview .toy{width:140px!important;height:140px!important}
.room-toy-actions{display:grid;gap:12px;margin:16px auto;max-width:360px}.room-toy-actions .btn{min-height:52px;justify-content:center}
.room-display-contents{display:grid;gap:10px;margin:12px 0}.room-display-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 10px;background:#f4ece1;border-radius:20px}.room-display-item>button:first-child{display:flex;align-items:center;gap:8px;min-width:0;border:0;background:none;color:#53356c;font:inherit;font-weight:800;text-align:left}.room-display-item .toy{width:56px!important;height:56px!important;flex:none}.room-display-item .btn{min-height:48px;white-space:nowrap}
/* Shelf popup in pictures (Mac, 10/23): icon buttons instead of words */
.pic-btn{display:inline-grid;place-items:center;min-width:56px;min-height:56px;padding:6px 12px}
.pic-btn .pic-out{width:30px;height:30px;color:#6b4a8a}
.pic-btn.wide .pic-out{width:40px}
.pic-btn img{width:40px;height:40px;object-fit:contain}
.pic-actions{display:flex;justify-content:center;gap:14px}
.pic-actions .pic-btn{flex:1 1 0;min-height:64px}
.pic-done svg{width:34px;height:34px}
.pic-add{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#e9dcf6;color:#6b4a8a;font:900 24px/1 ui-rounded,system-ui,sans-serif;margin:2px 0 -4px}
