/* Use the application's logical canvas, not physical landscape vh. */
.mj-room-choice{height:var(--app-viewport-height,100dvh);min-height:var(--app-viewport-height,100dvh);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;container-type:inline-size;container-name:mahjong-rooms}
@container mahjong-rooms (max-width:540px){
 .mj-room-choice__grid{grid-template-columns:1fr;gap:16px}
 .mj-room-choice__header{min-height:64px}
 .mj-room-choice__content{margin-top:20px}
 .mj-room-choice__tiles{height:110px}
 .mj-room-choice__card{padding:16px 22px}
 .mj-room-choice__name{font-size:22px}
}
/* Body-mounted square artwork must face the same way as the rotated app.
   The hit target stays in screen coordinates, preserving existing dragging. */
@media(orientation:landscape){
 html[data-force-portrait][data-portrait-rotation="right"] :is(.galaxy-support-float,.support-float-tabs-20261019-v1-button)>img,
 html[data-force-portrait][data-portrait-rotation="upright"] :is(.galaxy-support-float,.support-float-tabs-20261019-v1-button)>img{transform:rotate(-90deg)!important}
 html[data-force-portrait][data-portrait-rotation="left"] :is(.galaxy-support-float,.support-float-tabs-20261019-v1-button)>img{transform:rotate(90deg)!important}
}
@media(orientation:portrait){
 html[data-force-portrait][data-portrait-rotation="upside-down"] :is(.galaxy-support-float,.support-float-tabs-20261019-v1-button)>img{transform:rotate(180deg)!important}
}
/* The table uses the same virtual portrait canvas as its room selector. */
.mahjong24-root.mj-game,
.mahjong24-root.mj-game.mj-galaxy-game{height:var(--app-viewport-height,100dvh)}
.mahjong24-root.mj-game{background-size:100% var(--app-viewport-height,100dvh)}
