html, body { margin: 0; height: 100%; background: #040a12; overflow: hidden; }
body { display: flex; align-items: center; justify-content: center; }
#c { width: min(100vw, calc(100vh * 16 / 9)); height: auto; aspect-ratio: 16 / 9; display: block; }
body.play #c { cursor: default; }

/* Site chrome for the published interactive page. Hidden unless <html class="site"> (no ?mode=...), so recordings are unchanged. */
#bar, #hint { display: none; }
.site, .site body { height: auto; min-height: 100%; overflow: auto; }
.site body { flex-direction: column; justify-content: flex-start; font-family: "IBM Plex Sans", system-ui, sans-serif; color: #c9d6e6; }
.site #bar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; box-sizing: border-box; width: 100%; max-width: calc((100vh - 96px) * 16 / 9); min-width: min(100vw, 320px); padding: 12px 16px 10px; font-size: 15px; }
.site #bar a { color: #8fe3d6; text-decoration: none; }
.site #bar a:hover, .site #bar a:focus-visible { text-decoration: underline; }
.site #bar .brand { color: #f2f7ff; font-weight: 600; font-size: 17px; }
.site #bar .of { color: #7f93aa; }
.site #bar .examples { display: flex; gap: 4px; }
.site #bar .examples a { padding: 2px 10px; border: 1px solid #24384d; border-radius: 999px; color: #c9d6e6; }
.site #bar .examples a[aria-current] { background: #12303d; border-color: #2f7f7a; color: #f2f7ff; }
.site #bar .links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-left: auto; }
.site #c { width: min(100vw, calc((100vh - 96px) * 16 / 9)); }
.site #hint { display: block; box-sizing: border-box; width: 100%; max-width: calc((100vh - 96px) * 16 / 9); min-width: min(100vw, 320px); margin: 0; padding: 10px 16px 14px; font-size: 13px; line-height: 1.5; color: #7f93aa; }
.site #hint code { font-family: "IBM Plex Mono", ui-monospace, monospace; color: #c9d6e6; }
.site #hint .narrow { display: none; }
@media (max-width: 700px) and (orientation: portrait) {
  .site #bar .links { margin-left: 0; width: 100%; }
  .site #bar, .site #hint { max-width: none; }
  .site #hint .narrow { display: inline; }
}
