/* Keep the house art and its hit area on the same bottom-centered square. */
.game .scene .house-object {
  container-type:size;
  --house-ground-offset:0;
}
.game .scene .house-object > :is(#house-art, .touch-hit) {
  --house-canvas:min(100cqw,calc(var(--house-height, 78) * 1cqh));
  bottom:calc(-1 * var(--house-canvas) * var(--house-ground-offset)) !important;
}
.game .scene .world-object[data-object="house"] #house-art {
  height:calc(var(--house-height, 78) * 1%) !important;
  object-fit: contain !important;
  object-position: center bottom !important;
  transform: none !important;
  transform-origin: 50% 100% !important;
}
.game .scene .house-object[data-level="1"] { --house-height:78; --house-hit-inset:46% 18% 1% 18%; }
/* Different amounts of transparent space below the snow in the source art. */
.game .scene .house-object[data-level="2"] { --house-height:82; --house-ground-offset:.004; --house-hit-inset:34% 13% 1% 13%; }
.game .scene .house-object[data-level="3"] { --house-height:86; --house-ground-offset:.057; --house-hit-inset:23% 10% 5% 10%; }
.game .scene .house-object[data-level="4"] { --house-height:92; --house-ground-offset:.096; --house-hit-inset:24% 6% 9% 6%; }
.game .scene .house-object[data-level="5"] { --house-height:96; --house-ground-offset:.086; --house-hit-inset:7% 3% 9% 3%; }
.game .scene .house-object[data-level="6"] { --house-height:100; --house-ground-offset:.036; --house-hit-inset:8% 8% 4% 0; }
.game .scene .world-object[data-object="house"] > .touch-hit {
  left:50% !important;
  top:auto !important;
  width:var(--house-canvas) !important;
  height:var(--house-canvas) !important;
  transform:translateX(-50%) !important;
  clip-path:inset(var(--house-hit-inset, 46% 18% 1% 18%));
}
/* In the local house-position calibration mode keep the full outline draggable. */
body.house-position-editing .game .scene .world-object[data-object="house"] > .touch-hit {
  left: 0 !important; top: 0 !important; width: 89% !important; height: 100% !important;
  bottom:auto !important;
  transform:none !important;
  clip-path:none;
}
