#game-dialog.game-host{width:min(1240px,98vw);max-width:98vw;max-height:96dvh;overflow:hidden;padding:0;background:#f5eedc}
.game-host-bar{display:flex;align-items:center;gap:18px;padding:10px 18px;border-bottom:1px solid #34382f25;min-height:54px}
.game-host-bar a{margin-left:auto;font-size:11px;text-underline-offset:3px}
.game-host-bar .close-button{width:34px;height:34px;flex:none}
#game-frame{display:block;width:100%;height:min(84dvh,900px);border:0;background:#f5eedc}
@media(max-width:650px){.game-host-bar{padding:9px 12px;gap:10px;min-height:50px}.game-host-bar .eyebrow{font-size:7px;letter-spacing:1px}.game-host-bar a{font-size:9px}#game-frame{height:calc(94dvh - 52px)}#game-dialog.game-host{border-radius:24px}}

/* Pressure Pop uses the phone viewport in either orientation. Other game layouts stay intact. */
#game-dialog[data-game="pressure-pop"]{height:96dvh;display:none;flex-direction:column}#game-dialog[data-game="pressure-pop"][open]{display:flex}#game-dialog[data-game="pressure-pop"] .game-host-bar{flex:none}#game-dialog[data-game="pressure-pop"] #game-frame{flex:1;min-height:0;height:auto}
@media(max-height:500px) and (orientation:landscape){#game-dialog[data-game="pressure-pop"]{max-width:100vw;width:100vw;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0}#game-dialog[data-game="pressure-pop"] .game-host-bar{min-height:44px;padding:0 12px}#game-dialog[data-game="pressure-pop"] .close-button{width:44px;height:44px}}

/* Rim Rhythm keeps both instrument pads inside the actual host viewport. */
#game-dialog[data-game="rim-rhythm"]{height:96dvh;display:none;flex-direction:column}#game-dialog[data-game="rim-rhythm"][open]{display:flex}#game-dialog[data-game="rim-rhythm"] .game-host-bar{flex:none}#game-dialog[data-game="rim-rhythm"] #game-frame{flex:1;min-height:0;height:auto}
@media(max-height:500px) and (orientation:landscape){#game-dialog[data-game="rim-rhythm"]{max-width:100vw;width:100vw;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0}#game-dialog[data-game="rim-rhythm"] .game-host-bar{min-height:44px;padding:0 12px}#game-dialog[data-game="rim-rhythm"] .close-button{width:44px;height:44px}}
