#app[data-game=room]{height:100dvh;overflow:hidden;background:radial-gradient(ellipse at top,#f6faff,#d3bfdc);font-family:Nunito,'Trebuchet MS',sans-serif;color:#674b88}
#app[data-game=room]>header,#app[data-game=room]>.bottom-nav{display:none}
#app[data-game=room]>main{height:100%;max-width:450px;width:100%;margin:auto;padding:0 7px 7px;display:flex;flex-direction:column;background:linear-gradient(#f6fcff,#e5daf3);box-shadow:0 0 40px #80668f2b}
.makeover-top{flex:0 0 70px;display:flex;align-items:center;justify-content:space-between;gap:6px;padding:3px 6px}.makeover-top h1{font:1000 26px/1.02 Nunito,'Trebuchet MS',sans-serif;letter-spacing:-.8px;text-align:center;margin:0;color:#60388e;text-shadow:0 2px #fff}.makeover-top h1 span{display:block}
.makeover-nav{min-width:35px;min-height:35px;border:2px solid #fff8ff;border-radius:11px;background:linear-gradient(#f7eeff,#c9aedf);color:#69468a;box-shadow:0 3px 0 #aa89bd;font-size:22px;line-height:1}
.makeover-layout.game-layout{flex:1;min-height:0;display:grid;grid-template-rows:minmax(0,1fr) 218px 24px 36px;gap:4px;margin:0;padding:0}
.makeover-stage{position:relative;min-height:0;overflow:hidden;border-radius:18px 18px 5px 5px;background:#d8c4dd;box-shadow:0 2px 0 #ae8dba;isolation:isolate}
.makeover-hud{position:absolute;left:4%;right:4%;top:2%;z-index:120;display:flex;align-items:center;gap:8px;height:34px;flex-wrap:wrap}.makeover-level{padding:4px 8px;border:2px solid #e9ddfb;border-radius:9px;background:linear-gradient(#a88ac6,#77539b);box-shadow:0 2px 2px #72523e50;color:#fff;font-size:12px;font-weight:1000}
.makeover-progress{flex:1;position:relative;height:17px;border:2px solid #fff6ed;border-radius:15px;background:#c5b8bc;box-shadow:0 2px #8d738b;overflow:visible}.makeover-progress i{position:absolute;left:0;top:0;height:100%;border-radius:12px;background:linear-gradient(#b2e58b,#6bbf64);transition:width .3s}.makeover-progress span{position:absolute;inset:-5px 0 0;text-align:center;font-size:21px;line-height:23px;letter-spacing:9px;color:#ffd961;text-shadow:0 1px #b89444,0 -1px #fff7cc}.makeover-hud .makeover-nav{min-width:29px;min-height:29px;font-size:18px}.makeover-hud small{display:block;width:100%;text-align:center;font-size:10px;font-weight:900;color:#735347;text-shadow:0 1px 2px #fff;background:#fff7e8c9;border-radius:10px;padding:2px 5px;margin-top:-4px}
.makeover-stage #play-area{position:absolute;inset:0}.makeover-room{position:relative;width:100%;height:100%;overflow:hidden;touch-action:manipulation}.room-shell{position:absolute;inset:0;background:#dbb692 url('assets/makeover-rooms.png') var(--room-panel) 50% /300% 100% no-repeat;pointer-events:none}
.room-furniture{display:block;width:100%;height:100%;pointer-events:none;overflow:hidden;filter:drop-shadow(1px 3px 2px #6d472b33)}
.room-placed{position:absolute;aspect-ratio:1;height:auto;padding:0;border:0;background:none;transform:translate(-50%,-100%);min-width:25px;min-height:25px;overflow:visible;touch-action:manipulation;pointer-events:auto}.room-placed:focus-visible{outline:2px dashed #fff3ac;border-radius:16px;outline-offset:-7px}.room-placed.room-picked .room-furniture{filter:drop-shadow(0 0 4px #fff0aa) drop-shadow(0 0 2px #fff)}.room-fixed{cursor:default;pointer-events:none}
.room-placement-target{position:absolute;transform:translate(-50%,-55%);aspect-ratio:1.5;border:0;background:none;min-width:48px;min-height:44px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#8554aa;font-size:24px;touch-action:manipulation}.room-target-oval{display:flex;align-items:center;justify-content:center;width:80%;height:54%;min-height:26px;border:2px dashed #fffbea;background:#fff9ee7a;border-radius:50%;box-shadow:0 0 0 3px #a57dc25c,0 4px 9px #84552e30;animation:room-spot-glow 1.4s ease-in-out infinite alternate}.room-placement-target small{background:#fff9edeb;font:900 10px Nunito,sans-serif;padding:2px 6px;border-radius:8px;margin-top:3px}
@keyframes room-spot-glow{to{box-shadow:0 0 0 5px #b99ad680,0 3px 10px #fff1ab90}}
.room-item-actions{position:absolute;left:8%;right:8%;bottom:4%;display:flex;align-items:center;justify-content:center;gap:6px;background:#fff9edee;border:2px solid #fff;border-radius:13px;padding:8px;box-shadow:0 4px 12px #65503844;z-index:140;font-size:11px;color:#775743}.room-item-actions button{background:#aa83c7;color:#fff;min-height:33px;border-radius:9px;font-size:11px;font-weight:900;padding:5px 8px}.room-item-actions b{flex:1}
.makeover-tray.tray{margin:0;padding:0 7px 7px;display:flex;flex-direction:column;flex-wrap:nowrap;gap:6px;border:3px solid #f5e7ff;border-radius:16px;background:linear-gradient(#e9daf6,#cab0e0);box-shadow:0 3px 0 #ac8cbd;overflow:hidden;min-height:0}
.room-tray-tabs{display:flex;flex:0 0 28px;gap:2px;margin:0 -5px;align-items:stretch}.room-tray-tabs button{flex:1;min-width:0;padding:4px 2px;border:0;border-radius:9px 9px 0 0;background:#d5bde9;color:#674583;font:900 10px Nunito,sans-serif}.room-tray-tabs button[aria-selected=true]{color:#fff;background:linear-gradient(#aa82cb,#8659ae);box-shadow:inset 0 2px #c8a5e6}
.room-inventory{min-height:0;flex:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:5px;overflow-y:auto;padding:5px 6px;background:#f9f5f0;border:2px solid #fff;border-radius:12px;scrollbar-width:thin;scrollbar-color:#b99acb transparent}
.room-tray-item,.room-tray-empty{position:relative;min-width:0;min-height:0;border-radius:10px;background:linear-gradient(#f4e7d6,#e8d6bc);border:1px solid #e5d6cc;padding:2px 4px;display:flex;align-items:center;justify-content:center;touch-action:none}.room-tray-item .room-furniture{width:100%;height:100%;max-height:100%}.room-tray-item small{display:none}.room-tray-empty{background:#eee4e6;border:1px dashed #d0b9cb;box-shadow:inset 0 1px 3px #bc9aac22}.room-tray-item.selected{border:2px solid #a375c3;background:#eee1f8;box-shadow:inset 0 0 0 1px #fff}
.makeover-layout .hint-note{margin:0;min-height:0;align-self:center;text-align:center;font:800 10px/12px Nunito,sans-serif;color:#785d86}.makeover-layout .tools{display:flex;gap:6px;min-height:0;margin:0}.makeover-layout .tools button{flex:1;min-height:32px;border:2px solid #fff5ff;border-radius:11px;background:linear-gradient(#f7edff,#d6bee6);color:#72528b;box-shadow:0 2px #b092c0;font:900 11px Nunito,sans-serif;padding:3px 6px}
@media(max-height:700px){.makeover-top{flex-basis:56px}.makeover-top h1{font-size:23px}.makeover-layout.game-layout{grid-template-rows:minmax(0,1fr) 178px 23px 33px;gap:3px}.room-tray-tabs{flex-basis:25px}.room-inventory{gap:4px;padding:4px}.makeover-hud{top:2%;height:27px}.makeover-hud small{font-size:9px}}
@media(orientation:landscape) and (max-height:550px){#app[data-game=room]>main{max-width:900px;flex-direction:row;gap:8px}.makeover-top{flex:0 0 135px;flex-wrap:wrap;justify-content:center;align-content:center}.makeover-top h1{order:-1;width:100%;margin-bottom:15px}.makeover-layout.game-layout{grid-template-columns:minmax(0,1fr) 205px;grid-template-rows:minmax(0,1fr) 38px 35px;gap:6px}.makeover-stage{grid-column:1;grid-row:1/4}.makeover-tray.tray{grid-column:2;grid-row:1}.makeover-layout .hint-note{grid-column:2;grid-row:2}.makeover-layout .tools{grid-column:2;grid-row:3}.makeover-layout .tools button{font-size:10px;padding:2px}.room-tray-tabs button{font-size:9px}.room-inventory{padding:3px;gap:3px}}
@media(prefers-reduced-motion:reduce){.room-target-oval{animation:none}}
.makeover-layout.game-layout{grid-template-rows:minmax(0,1fr) clamp(218px,32dvh,285px) 24px 36px}.room-tray-item{padding:1px 3px}.room-tray-item .room-furniture{transform:scale(1.12)}@media(max-height:700px){.makeover-layout.game-layout{grid-template-rows:minmax(0,1fr) 190px 23px 33px}}@media(orientation:landscape) and (max-height:550px){.makeover-layout.game-layout{grid-template-rows:minmax(0,1fr) 38px 35px}}

/* Walls and furniture share one camera, independent of the available viewport. */
.makeover-room{container-type:size;background:#cfad8a}
.makeover-room:before{content:'';position:absolute;inset:-12px;background:url('assets/makeover-rooms.png') var(--room-panel) 50%/300% 100% no-repeat;filter:blur(8px) brightness(.9);opacity:.55;pointer-events:none}
.room-world{position:absolute;width:min(100cqw,70cqh);height:min(100cqh,142.857cqw);left:50%;bottom:0;transform:translateX(-50%);isolation:isolate;overflow:visible;box-shadow:0 0 12px #805b3a33}
.room-world .room-shell{inset:0;border-radius:4px}
.room-placed .room-furniture{filter:none;overflow:visible}
.room-placed.room-picked .room-furniture{filter:drop-shadow(0 0 4px #fff0aa)}

/* Size the entire game card to the room camera; no blurred filler at its sides. */
#app[data-game=room]>main{width:min(450px,calc((100dvh - 149px - clamp(218px,32dvh,285px))*.7 + 14px))}
.makeover-room:before{content:none;display:none}
.room-world{box-shadow:none;overflow:hidden}
.room-world .room-shell{transform:scale(1.006);border-radius:0}
@media(max-height:700px){#app[data-game=room]>main{width:min(450px,calc((100dvh - 318px)*.7 + 14px))}}
@media(orientation:landscape) and (max-height:550px){#app[data-game=room]>main{width:min(900px,calc((100dvh - 7px)*.7 + 362px));max-width:100vw}.makeover-stage{justify-self:center;width:calc((100dvh - 7px)*.7);max-width:100%}}

.room-canvas-hit{position:absolute;inset:0;width:100%;height:100%;border:0;padding:0;background:transparent;z-index:2;touch-action:none;border-radius:0}
.room-placed{touch-action:none;cursor:grab}.room-placed:active{cursor:grabbing}.room-placed .room-furniture{transform:scaleX(var(--facing,1));transform-origin:center center}
.room-placed.room-picked{outline:1px dashed #fff7c5;outline-offset:-7px;border-radius:12px}
.room-item-actions{top:62px;bottom:auto;left:3%;right:3%;padding:6px;flex-wrap:wrap;gap:4px;z-index:400;background:#fffaf1f2}.room-item-actions>b{flex:1;font-size:11px}.room-item-actions>button{min-height:24px;padding:3px 8px}
.room-edit-buttons{width:100%;display:flex;gap:3px;align-items:center;justify-content:center;flex-wrap:wrap}.room-edit-buttons button{min-height:29px;padding:3px 6px;font-size:10px}.room-size{font-size:10px;color:#785b87}.room-dragging .room-item-actions{display:none}
.room-free-label{flex:1;color:#785787;background:#fff7e9dc;border:2px solid #fff4e5;border-radius:15px;text-align:center;padding:3px 6px;font-size:10px;font-weight:900}
.room-tray-tabs button{font-size:9px}.makeover-layout .tools [data-action=room-finish]{background:linear-gradient(#aa82cb,#8861a8);color:#fff;flex:1.3}.makeover-layout .hint-note{font-size:9px}
