.game-embedded .ad-section,.game-embedded .ad-placement,.game-embedded .banner-wrap,.game-embedded .site-ad{display:none!important}
.game-embedded .site-header .brand,.game-embedded .header-start,.game-embedded .site-header .all-games,.game-embedded .game-heading,.game-embedded .game-section .intro,.game-embedded .game-section .mode-note{display:none!important}
.game-embedded .site-header{justify-content:flex-end!important;padding-block:8px!important}
.game-embedded .game-section{padding-top:0!important}
.game-embedded .site-footer,.game-embedded .game-footer,.game-embedded .about-game{display:none!important}
.game-embedded #cv{width:min(100%,calc((100svh - 90px)*9/16))}

/* Embedded legacy games share the phone and iPad play area. */
.game-embedded .site-header{box-sizing:border-box;height:44px;min-height:44px;padding:4px 8px!important;gap:8px}
.game-embedded[data-embedded-game="omurice"] .x-game{max-width:none;height:calc(100dvh - 44px)}
.game-embedded[data-embedded-game="omurice"] .x-game #app{max-width:none;height:100%;padding:4px 8px 8px;display:flex;flex-direction:column;align-items:center;min-width:0}
.game-embedded[data-embedded-game="omurice"] .x-game #cv{flex:none;max-width:100%;width:min(100%,calc((100dvh - 104px)*9/16));max-height:calc(100dvh - 104px)}
.game-embedded[data-embedded-game="omurice"] .x-game .howto,.game-embedded[data-embedded-game="omurice"] .x-game .game-guide-link{display:none}
.game-embedded[data-embedded-game="omurice"] .x-game #msg{margin:6px 2px 0;font-size:13px;line-height:1.5;text-align:center}
.game-embedded dialog,.game-embedded .modal-box{max-width:calc(100% - 16px);max-height:calc(100dvh - 16px);overflow:auto}
@media(max-height:480px) and (min-width:600px){.game-embedded[data-embedded-game="omurice"] .x-game #app{padding-block:0}.game-embedded[data-embedded-game="omurice"] .x-game #cv{width:min(100%,calc((100dvh - 90px)*9/16));max-height:calc(100dvh - 90px)}.game-embedded[data-embedded-game="omurice"] .x-game #msg{font-size:11px;margin-top:3px}}
