@media (max-width:900px) and (min-aspect-ratio:17/10){
  #castle .viewport{overflow-y:auto;scrollbar-width:none;touch-action:pan-y}
  #castle .viewport::-webkit-scrollbar{display:none}
  #castle .camera{height:max(100svh,calc(100vw * 941 / 1672))}
  #castle .scene{top:0;transform:translateX(-50%)}
}

/* Keep fixed hall controls clear of the painted project CTA on short landscape screens. */
@media (min-width:701px) and (max-width:900px) and (orientation:landscape) and (max-height:500px){
  body:not(:has(#room-dialog[open])) > .studio-credit{left:4px;right:auto}
  body:not(:has(#room-dialog[open])) > .statistics-settings{left:150px!important;right:auto!important}
}
