/* Embedded mode: the game runs inside the portfolio's lab monitor, so it drops
   its standalone page chrome (back link, own leaderboard, page padding) and is
   scaled by embed.js to fit the frame exactly. Nothing ever scrolls. */
html.embedded, html.embedded body {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

html.embedded body {
  justify-content: center;
  align-items: center;
  padding: 0;
  gap: 0;
}

html.embedded .back,
html.embedded .lb-panel,
html.embedded .site-footer,
html.embedded h1 {
  display: none !important;
}

/* embed.js sets --fit; the window keeps its natural size and is scaled as a
   whole, so internal layout and canvas resolution stay untouched. */
html.embedded .window {
  margin: 0;
  box-shadow: none;
  transform: scale(var(--fit, 1));
  transform-origin: center center;
}
