/* Life 2011: use the same wall and floor as Meu Quarto. The image contains furniture only. */
#w-sims #smbody .sm-room.room-matched7419{isolation:isolate;background-color:#f4dce6!important;background-size:100% 100%!important;background-position:center!important;background-repeat:no-repeat!important}
#w-sims #smbody .sm-room.room-matched7419::before,#w-sims #smbody .sm-room.room-matched7419::after{content:'';position:absolute;left:0;right:0;pointer-events:none;z-index:-1}
#w-sims #smbody .sm-room.room-matched7419::before{top:0;bottom:36.6%;background:var(--room-wall7419,#f4dce6)}
#w-sims #smbody .sm-room.room-matched7419::after{top:63.4%;bottom:0;background:var(--room-floor7419,#bd966c);box-shadow:inset 0 5px 0 #ffffff90,inset 0 14px 20px #30233819}
/* Put transparent furniture on a child, above the background and below the interactive tags. */
#w-sims #smbody .sm-room.room-matched7419{background-image:none!important}
#w-sims #smbody .sm-room.room-matched7419 .room-furniture7419{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none;z-index:0}
#w-sims .sm-room .sm-dark{z-index:1;background:transparent;pointer-events:none}
#w-sims .sm-room.night .sm-dark{background:linear-gradient(#23284b0c,#23284b15)}
#w-sims .sm-room.dusk .sm-dark{background:#b9766a09}
#w-sims .sm-room.garden.night .sm-sky{background:linear-gradient(#65729e,#b7a6c8)}
#w-sims .sm-room.garden.dusk .sm-sky{background:linear-gradient(#9682b2,#efbfaf)}
#w-sims .sm-room.garden .sm-obj.watering7419{z-index:4}
#w-sims .sm-room.garden .sm-obj.watering7419 svg{width:100%;max-width:100%;height:auto}
#w-sims .sm-room.real .sm-obj.tagged span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:clamp(9px,1.4vw,12px);padding:2px 5px}
#w-sims .sm-room.real .sm-obj.tagged{z-index:3}
#w-sims .sm-room.real .sm-obj[hidden]{display:none!important}
#w-sims .sm-room.real .sm-obj.tagged:hover,#w-sims .sm-room.real .sm-obj.tagged:focus-visible{z-index:5}
#w-sims #smbody{min-height:0;min-width:0;overflow:auto;box-sizing:border-box}
@media(min-width:821px) and (pointer:fine){
 #w-sims #smbody .sm-room.tidy,#w-sims #smbody .sm-room.real,#w-sims #smbody .sm-room.garden{width:min(100%,650px,calc(49dvh * 1.333))!important;max-width:650px!important;min-height:0!important;max-height:none!important;aspect-ratio:4/3!important;flex:none!important;margin:6px auto 10px!important}
 #w-sims #smbody .sm-room.garden{width:min(100%,700px,calc(49dvh * 1.6))!important;aspect-ratio:16/10!important}
 #w-sims #smbody .sm-room.real .sm-obj.tagged span{opacity:0}
 #w-sims #smbody .sm-room.real .sm-obj.tagged:is(:hover,:focus-visible,:focus-within) span{opacity:1}
 #w-sims #smbody .sm-room.real .sm-obj.tagged{min-width:40px;min-height:32px;justify-content:center;align-content:center}
}
@media(max-width:820px),(pointer:coarse) and (max-height:600px){#w-sims #smbody .sm-room.tidy,#w-sims #smbody .sm-room.real,#w-sims #smbody .sm-room.garden{width:min(100%,620px)!important;min-height:0!important;aspect-ratio:4/3!important;flex:none!important}#w-sims .sm-room.real .sm-obj.tagged{min-height:26px;min-width:28px}}
/* Tamagotchi: actual button hit areas, keep LCD proportions. */
#w-tama .ta-egg{box-sizing:border-box;width:min(100%,270px);padding:30px 18px 22px;min-width:0}
#w-tama .ta-egg canvas{box-sizing:content-box;width:min(190px,100% - 12px);height:auto;aspect-ratio:4/3;max-width:calc(100% - 12px);display:block}
#w-tama .ta-lr button{box-sizing:border-box;min-width:52px!important;width:52px!important;min-height:52px!important;height:52px!important;padding:0!important;display:grid!important;place-items:center;touch-action:manipulation!important;-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important}
#w-tama .ta-lr svg{width:27px;height:27px;pointer-events:none;display:block}
#w-tama .ta-btns button{white-space:normal;overflow-wrap:anywhere;line-height:1.25;min-height:44px;padding:4px}
#w-tama .ta-n{max-width:100%;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
@media(max-width:370px){#w-tama .ta-btns{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Wallpaper settings: separate labels, controls and descriptions, including dark theme. */
#w-props .wp-snd{display:grid!important;grid-template-columns:20px minmax(0,1fr);gap:6px 9px!important;align-items:center!important;margin:10px 0!important;line-height:1.45;white-space:normal;overflow-wrap:anywhere;color:inherit}
#w-props .wp-snd input[type=checkbox]{margin:0;justify-self:center;flex:none}
#w-props .wp-snd:is(.shell-theme7418,.wp-perf7419){grid-template-columns:minmax(0,1fr) minmax(96px,max-content);gap:6px 10px!important;padding:8px;border:1px solid #bfb1c7;border-radius:6px;cursor:default}
#w-props .wp-snd:is(.shell-theme7418,.wp-perf7419)>b{min-width:0;white-space:normal;line-height:1.3}
#w-props .wp-snd:is(.shell-theme7418,.wp-perf7419)>select{max-width:100%;min-width:0;width:auto;min-height:32px;padding:3px 5px;font:inherit}
#w-props .wp-snd:is(.shell-theme7418,.wp-perf7419)>small{grid-column:1/-1;display:block;line-height:1.45;opacity:.85;min-width:0;white-space:normal}
@media(max-width:380px){#w-props .wp-snd:is(.shell-theme7418,.wp-perf7419){grid-template-columns:1fr}#w-props .wp-snd:is(.shell-theme7418,.wp-perf7419)>select{width:100%}}
#w-cd .cd-case{min-width:0;overflow-wrap:anywhere;align-content:start;gap:6px}
#w-cd .cd-case span{max-width:100%;line-height:1.15;white-space:normal}
#w-cd .cd-case svg text{font-family:'Reenie Beanie','Bradley Hand','Segoe Print','Comic Sans MS',Tahoma,sans-serif}
#w-angrycats #catskip7419{white-space:normal;line-height:1.25}
#w-angrycats #catskip7419[hidden]{display:none!important}
@media (orientation:landscape) and (max-height:600px) and (pointer:coarse),(max-width:820px) and (orientation:landscape) and (max-height:500px){
 #w-sims #smbody .sm-room.tidy,#w-sims #smbody .sm-room.real,#w-sims #smbody .sm-room.garden{width:min(100%,620px,calc(58dvh * 1.333))!important;aspect-ratio:4/3!important}
 #w-sims #smbody .sm-room.garden{width:min(100%,650px,calc(58dvh * 1.6))!important;aspect-ratio:16/10!important}
}
