/* Embedded inside a WordPress page (?embed=1): the theme already provides header, title, footer and spacing. */
.mpr-embed,.mpr-embed body{background:transparent;scroll-behavior:auto}
.mpr-embed body{overflow-x:hidden;display:flow-root}
.mpr-embed .site-header,.mpr-embed body>footer,.mpr-embed body>header{display:none}
.mpr-embed main{max-width:none;padding:0;margin:0}

/* Hub: cards + collection only; hero and related reading are rendered natively by WordPress. */
.mpr-embed[data-view=hub] .hero,.mpr-embed[data-view=hub] .related-reading{display:none}
.mpr-embed[data-view=hub] .section-head{margin-top:0}
.mpr-embed[data-view=hub] .collection{margin-top:28px}
.mpr-embed[data-view=hub] .storage-note{margin-bottom:2px}

/* Single game page (tea / tower / clean): the game window fills the iframe, nothing else is drawn. */
.mpr-embed[data-view=tea] main,.mpr-embed[data-view=tower] main,.mpr-embed[data-view=clean] main{display:none}
.mpr-embed[data-view=tea] [data-close],.mpr-embed[data-view=tower] [data-close],.mpr-embed[data-view=clean] [data-close]{display:none}

/* Any game dialog while embedded (single game pages, and the mosquito battle once opened). */
.mpr-embed dialog[open]{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;border:1px solid var(--line,#e4dfd5);border-radius:0;box-shadow:none;animation:none;display:flex;flex-direction:column;overflow:hidden;box-sizing:border-box;padding-top:0}
.mpr-embed dialog::backdrop{background:var(--paper,#faf9f6);backdrop-filter:none}
.mpr-embed .modal-top,.mpr-embed .dialog-top{flex:0 0 auto}
.mpr-embed .playfield{flex:1 1 auto;min-height:0}
.mpr-embed #game-canvas{width:100%;height:100%;aspect-ratio:auto}
.mpr-embed .modal-bottom{flex:0 0 auto;padding-bottom:12px}
.mpr-embed .battle-body{flex:1 1 auto;min-height:0;grid-template-rows:minmax(0,1fr)}
.mpr-embed .stage{height:auto;min-height:0}
.mpr-embed aside{overflow:auto}
@media(max-width:650px){.mpr-embed .battle-body{display:flex;flex-direction:column}.mpr-embed .stage{flex:1 1 auto;height:auto}.mpr-embed aside{padding-bottom:8px}}
/* Recommended articles are rendered natively by WordPress under the game (crawlable internal links). */
.mpr-embed[data-view=mosquito] .reading{display:none}
