/* Keep painted shoes at the room's floor anchor, independent of sprite padding. */
.home-room-modern{--avatar-floor:86%;--avatar-size:50%;--avatar-center:50%;--avatar-light:brightness(1.02) saturate(.96) sepia(.035);--avatar-contact:#22252270;--avatar-cast:#25241d30;--avatar-shadow-angle:-9deg}
.home-room-modern.player-theme-clubhouse{--avatar-floor:84%;--avatar-light:brightness(.95) saturate(.94) sepia(.12);--avatar-contact:#2c160c8c;--avatar-cast:#30170940;--avatar-shadow-angle:7deg}
.home-room-modern.player-theme-penthouse{--avatar-floor:81%;--avatar-light:brightness(.93) saturate(.93) sepia(.055);--avatar-contact:#11172499;--avatar-cast:#161b323b;--avatar-shadow-angle:5deg}
.home-room-modern.player-theme-treehouse{--avatar-light:brightness(1.02) saturate(.96) sepia(.06);--avatar-contact:#24261980;--avatar-cast:#2d302337;--avatar-shadow-angle:-7deg}
.home-room-modern.player-theme-futuristic{--avatar-light:brightness(1.03) saturate(.92);--avatar-contact:#272b4b73;--avatar-cast:#363d7130;--avatar-shadow-angle:-5deg}
.town-app .room-home-modern-world .room-home-stage .home-room-modern :is(.player-room-avatar,.player-room-example){left:var(--avatar-center);top:calc(var(--avatar-floor) - var(--avatar-size) + var(--avatar-size)*.026);bottom:auto;height:var(--avatar-size);width:auto;aspect-ratio:1;max-width:none;transform:translateX(-50%);filter:none;isolation:isolate}
/* A tight contact beneath both shoes plus a softer pool of cast shadow. */
.town-app .home-room-modern :is(.player-room-avatar,.player-room-example)::before{content:"";position:absolute;z-index:1;left:35%;right:auto;bottom:1.2%;width:35%;height:3%;border-radius:50%;background:radial-gradient(ellipse,var(--avatar-contact) 0%,transparent 72%);filter:none;pointer-events:none}
.town-app .home-room-modern :is(.player-room-avatar,.player-room-example)::after{content:"";position:absolute;z-index:0;left:39%;bottom:.3%;width:44%;height:5%;border-radius:50%;background:radial-gradient(ellipse at 35% 50%,var(--avatar-cast),transparent 72%);transform:rotate(var(--avatar-shadow-angle));transform-origin:25% 50%;pointer-events:none}
.town-app .home-room-modern :is(.player-room-avatar,.player-room-example)>.avatar-figure{position:relative;z-index:2;filter:var(--avatar-light);overflow:hidden}
.town-app .home-room-modern :is(.player-room-avatar,.player-room-example)>.room-avatar-name{bottom:-7%;z-index:3}
@media(max-width:900px) and (orientation:portrait){
 .home-room-modern{--avatar-floor:82%;--avatar-size:43%;--avatar-center:48%}
 .home-room-modern.player-theme-clubhouse{--avatar-floor:73.5%;--avatar-size:38%}
 .home-room-modern.player-theme-penthouse{--avatar-floor:77.5%;--avatar-size:39%}
 .home-room-modern.player-theme-treehouse{--avatar-floor:83%}
 .home-room-modern.player-theme-futuristic{--avatar-floor:79%;--avatar-size:41%}
}
/* Landscape phones use the landscape composition and its measured wall mounts. */
@media(max-width:900px) and (orientation:landscape){
 .home-room-modern{--avatar-size:61%}
 .room-home-stage .home-room-modern .home-mounted-object{transform:var(--mount)}
 .room-home-stage .home-room-modern .home-trophy-integrated{left:var(--home-cab-x);top:var(--home-cab-y);width:var(--home-cab-w);height:var(--home-cab-h)}
 .room-home-stage .home-trophy-projection{left:var(--home-cab-svg-x);top:var(--home-cab-svg-y);width:var(--home-cab-svg-w);height:var(--home-cab-svg-h)}
 .room-home-stage .home-foliage-landscape{display:block}
 .room-home-stage .home-foliage-portrait{display:none}
}
