* { box-sizing: border-box; }
:root {
  --hearth-ink: #2b211b;
}
html, body { height: 100%; margin: 0; background: #fff; }
body { overflow: hidden; font: 500 14px/1.25 system-ui, sans-serif; }
/* The room fills its exhibit. Keep the firelight inside the painting. */
body[data-cabin] .fireplace-surround {
  --hearth-width: 100%;
  --hearth-padding: 0px;
  height: 100%;
}
body[data-cabin] .fireplace-surround::before,
body[data-cabin] .fireplace-surround::after { content: none; }
body[data-cabin] .fireplace-surround [data-fireplace] {
  height: 100% !important;
  filter: none;
}
body[data-cabin] .fireplace-surround[data-fire-lit="true"] [data-fireplace] { box-shadow: none; }
body[data-cabin] [data-fireplace] .cabin-editorial__crop {
  position: absolute;
  inset: 0;
  background: #fff;
  border-radius: 0;
}
body[data-cabin] [data-fireplace] .cabin-editorial__image {
  display: block;
  width: 100%;
  height: 100%;
}
body[data-cabin] [data-fireplace] .cabin-editorial__image,
.fireplace-game__room {
  object-fit: cover;
  object-position: var(--hearth-room-position, 25% center);
}
.fireplace-game { background: #fff; }
.fireplace-hotspot, .fireplace-back, .fireplace-reset { color: var(--hearth-ink); }
.fireplace-hotspot__dot { box-shadow: 0 2px 0 #130d0940; }
.fireplace-back, .fireplace-reset { box-shadow: 0 2px 3px #130d0940; }
.fireplace-object-flight { filter: drop-shadow(0 9px 6px #130d0966); }

/* Project the warm spill from the actual firebox in each camera view. */
.cabin-editorial__crop::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .9s ease;
}
.cabin-editorial__crop::after,
.fireplace-game::after {
  mix-blend-mode: screen;
  background:
    radial-gradient(ellipse 48% 64% at var(--fire-x, 28%) var(--fire-y, 58%), #ffb3549c, #f875314f 44%, transparent 100%),
    radial-gradient(ellipse 61% 38% at calc(var(--fire-x, 28%) + 8%) calc(var(--fire-y, 58%) + 25%), #ff842967, transparent 95%);
}
[data-fireplace][data-fire-lit="true"] .cabin-editorial__crop::after {
  opacity: .55;
  animation: hearth-game-warmth 2.11s linear infinite;
}
.fireplace-surround[data-in-view="false"] .cabin-editorial__crop::after,
.fireplace-surround[data-in-view="false"] .fireplace-game::after { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  [data-fireplace] .cabin-editorial__crop::after { animation: none !important; transition: none; }
}
html[data-motion="paused"] [data-fireplace] .cabin-editorial__crop::after { animation: none; transition: none; }
