.fastmath-embed, .fastmath-embed body {
  min-height: 0;
  height: auto;
}
.fastmath-embed body { display: flow-root; }
.fastmath-embed #announcement { inset: 0 auto auto 0; }
html.fastmath-embed body .topbar .brand.brand,
html.fastmath-embed body .site-footer.site-footer { display: none; }
html.fastmath-embed body .topbar .topbar-inner.topbar-inner {
  height: auto;
  min-height: 48px;
  padding: 6px 12px;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 16px;
}
html.fastmath-embed body .topbar nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: auto;
  min-width: 0;
  gap: 4px;
}
html.fastmath-embed body .topbar nav > * {
  margin: 0;
  white-space: nowrap;
  padding-inline: 9px;
}
.fastmath-embed #modal {
  inset: calc(var(--game-view-top, 0px) + 10px) 0 auto;
  max-height: calc(var(--game-view-height, 100vh) - 20px);
}
html.fastmath-embed body:has(#app.landing-c) .topbar nav .nav-item.nav-item {
  display: inline-block;
  padding-inline: 9px;
}
html.fastmath-embed body .topbar nav { margin: 0; }
.fastmath-embed .game-sync {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 10px;
  color: var(--ink);
  font-size: 13px;
  text-align: center;
}
.fastmath-embed #game-sync-retry {
  padding: 4px 6px;
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
