/* Room-relative height: feet remain on the foreground floor, heads below door lintels. */
.room-stage .room-person{height:52%;max-width:none;width:auto;bottom:5%}
.room-stage[data-room=attic] .room-person{height:47%}
.room-stage[data-room=cellar] .room-person{height:51%}
.room-stage .room-exit{height:46%;width:12%;right:.2%;bottom:4%}
.room-exit span{display:none}.room-exit:hover span,.room-exit:focus-visible span,.show-object-labels .room-exit span{display:block}
/* Do not replay a roll when another interaction rebuilds the room. */
.rolled-die{animation:none;left:30.5%;top:56.5%;width:4.8%}
/* Fire is confined to the fireplace opening, behind its illustrated grate. */
.hearth-fire{left:47.7%;top:46.5%;width:10.1%;height:13.3%;overflow:hidden;clip-path:polygon(8% 0,92% 0,100% 88%,0 88%);filter:drop-shadow(0 0 3px #f89935);mix-blend-mode:screen}
.hearth-embers{position:absolute;left:3%;right:3%;bottom:10%;height:15%;background:radial-gradient(ellipse at 22% 65%,#ffe0a4 0 4%,transparent 9%),radial-gradient(ellipse at 62% 40%,#ffc76d 0 6%,transparent 13%),radial-gradient(ellipse,#f66d20 0,#ac321666 65%,transparent 75%);animation:ember-breathe 2.7s ease-in-out infinite alternate}
.hearth-flame{position:absolute;bottom:17%;left:calc(var(--i)*9% + 1%);width:19%;height:var(--height);transform-origin:50% 100%;border-radius:65% 25% 50% 50%;background:linear-gradient(0deg,#fff2bf 0%,#ffd16e 22%,#ff8b2c 54%,#d43c0b80 83%,transparent 100%);filter:blur(.5px);animation:hearth-flicker var(--speed) ease-in-out var(--delay) infinite alternate;opacity:.85}
.hearth-flame:nth-of-type(even){border-radius:25% 70% 45% 55%;animation-direction:alternate-reverse}
.hearth-light{left:40%;top:36%;width:27%;height:35%;background:radial-gradient(ellipse at 50% 58%,#ffa64c24,transparent 70%);mix-blend-mode:screen;animation:ember-breathe 3.3s ease-in-out infinite alternate}
.hearth-spark{position:absolute;left:35%;bottom:20%;width:2px;height:2px;background:#ffd994;animation:hearth-spark 3.9s ease-out infinite}.hearth-spark.second{left:70%;animation-delay:-2.2s}
@keyframes hearth-flicker{0%{transform:scale(.85,.75) skewX(-7deg);opacity:.65}35%{transform:scale(1.05,1) skewX(5deg);opacity:.9}70%{transform:scale(.92,.87) skewX(-3deg);opacity:.78}100%{transform:scale(1.03,1.1) skewX(8deg);opacity:.95}}
@keyframes ember-breathe{to{opacity:.65}}
@keyframes hearth-spark{0%,15%{opacity:0;transform:translate(0,0)}22%{opacity:.7}65%,100%{opacity:0;transform:translate(6px,-55px)}}
.motion-paused .hearth-fire *,.motion-paused .hearth-light{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){.hearth-fire *,.hearth-light{animation:none!important}.hearth-spark{display:none}}
footer{flex-wrap:wrap}
