.living-room{height:360px;margin:18px 18px 0;border-radius:20px;background:#f1e2c9 url('assets/rooms/cozy-room.png?v=19') center/cover no-repeat;box-shadow:inset 0 0 0 1px #80643a12}
.living-room:before,.living-room:after{display:none}
/* The cushion stays still; its front rim seats the gently rocking egg. */
.egg-incubator{position:relative;width:200px;aspect-ratio:10/9;flex-shrink:0;isolation:isolate;pointer-events:none}
.egg-incubator>.egg-cushion{position:absolute;left:0;top:16.667%;width:100%;height:auto;z-index:0;user-select:none}
.egg-incubator>.egg{position:absolute;left:16.5%;top:7.2%;width:67%;height:auto;aspect-ratio:1;margin:0;z-index:1;transform-origin:50% 94%;filter:drop-shadow(0 3px 2px #6d54301f)}
.egg-incubator>.egg-cushion-front{z-index:2;clip-path:inset(55% 0 0)}
.living-room.egg-room>.egg-incubator{position:absolute;bottom:36px;left:50%;transform:translateX(-50%)}
.admin-egg-preview>.egg-incubator{width:160px}
/* Keep the explicitly requested small rocking motion; use a slower, smaller arc when reduced motion is preferred. */
@media(prefers-reduced-motion:reduce){.egg-incubator>.egg{--egg-sway:1.1deg;animation:egg-gentle 8.8s cubic-bezier(.45,0,.55,1) infinite!important}}
.room-pet-display{position:absolute;left:50%;transform:translateX(-50%);bottom:22px;width:clamp(170px,50%,235px);aspect-ratio:1;padding:0;background:transparent;border-radius:50%;z-index:3;pointer-events:none}
.room-pet-display:before{content:'';position:absolute;bottom:10%;left:25%;width:50%;height:7%;background:#71543322;border-radius:50%;filter:blur(4px);z-index:-1}
.room-pet-display .room-pet{width:100%;height:100%;margin:0;pointer-events:none}
.room-thought{left:50%;transform:translateX(-50%);top:29px;max-width:min(270px,calc(100% - 30px));width:max-content;white-space:normal;text-align:center;line-height:1.65;pointer-events:none;padding:10px 17px;box-shadow:0 5px 17px #40533609;z-index:6}
.living-room .room-thought{transform:translate(-50%,-100%);max-width:min(270px,calc(100% - 24px))}
.living-room .room-thought:after{left:var(--thought-tail-left,50%);transform:translateX(-50%) rotate(45deg)}
.room-thought small{display:block;font-size:9px;color:#98a089;margin-bottom:3px;letter-spacing:.4px}
.room-thought [data-room-thought]{display:block;font-size:13px;word-break:keep-all}
.thought-new{animation:thought-enter .3s ease both}
.habitat-stage .room-egg{position:absolute;width:120px;height:120px;left:9%;bottom:67px;margin:0;z-index:1}
.room-care-targets,.room-demo-moods{display:flex;justify-content:center;flex-wrap:wrap;gap:7px;margin:14px 18px 0}
.room-care-targets button,.room-demo-moods button{background:#eef2e4;color:#79896b;padding:8px 12px;border:1px solid #dfe6d2;border-radius:11px;font-size:11px}
.room-care-targets button.active,.room-demo-moods button.active{background:#dfe9cc;color:#42633c;border-color:#adbf98}
.room-preview-button{margin-top:13px;width:100%;padding:9px 4px;background:#e5edda;color:#648253;border-radius:9px;font-size:10px;border:1px solid #d6e2c7}
.room-preview-dialog{max-width:640px}
.room-preview-dialog .habitat-stage{margin:18px -6px 0;border-radius:18px}
.room-preview-dialog h2{margin-top:13px}
.room-demo-moods{margin:19px 0 5px}
.motion-controls{flex-wrap:wrap}
@keyframes thought-enter{from{opacity:.65;margin-top:3px}to{opacity:1;margin-top:0}}
@media(max-width:680px){.living-room{height:325px}.room-pet-display{width:clamp(168px,58%,215px)}.room-thought [data-room-thought]{font-size:12px}.room-thought{top:26px;padding:9px 13px}.room-preview-button{font-size:8px;padding:8px 2px}.room-demo-moods button{font-size:10px}.habitat-stage .room-egg{width:100px;height:100px;left:8%}.room-preview-dialog .habitat-stage{margin-left:-3px;margin-right:-3px}}
