html {
  background: #030712;
  color-scheme: dark;
}
body {
  margin: 0;
}
/* Static information shares the cockpit palette without changing game styles. */
.site-info,
.site-fallback,
.guide-page {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  color: #f1f5f9;
  background: #030712;
  line-height: 1.7;
}
.site-info,
.site-fallback {
  padding: 28px max(24px, calc((100% - 960px) / 2));
}
.site-info {
  border-top: 1px solid #283b50;
}
.site-info h2 {
  font-size: 1rem;
  font-weight: 600;
}
.site-info p {
  max-width: 76ch;
  color: #98abc1;
  font-size: 0.875rem;
}
.site-info a,
.site-fallback a,
.guide-page a {
  color: #7dd3fc;
  text-underline-offset: 4px;
}
.site-info a:focus-visible,
.site-fallback a:focus-visible,
.guide-page a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}
oxygen-game[data-phase]:not([data-phase='title']) + .site-info {
  display: none;
}
.guide-page {
  margin: 0;
  min-width: 320px;
}
.guide-page * {
  box-sizing: border-box;
}
.guide-page header,
.guide-page main,
.guide-page footer {
  width: min(100% - 48px, 800px);
  margin-inline: auto;
}
.guide-page header {
  padding-block: 28px;
  border-bottom: 1px solid #283b50;
}
.guide-page main {
  padding-block: 36px;
}
.guide-page h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.15;
  margin: 12px 0 24px;
}
.guide-page h2 {
  font-size: 1.35rem;
  margin-top: 40px;
}
.guide-page p,
.guide-page li {
  color: #cbd5e1;
}
.guide-page li {
  margin-block: 10px;
}
.guide-page .eyebrow {
  color: #7dd3fc;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.guide-page .play-link {
  display: inline-block;
  border: 1px solid #38bdf8;
  padding: 12px 20px;
  border-radius: 6px;
}
.guide-page kbd {
  font: inherit;
  padding: 1px 6px;
  background: #142235;
  border: 1px solid #42556b;
  border-radius: 4px;
}
.guide-page footer {
  border-top: 1px solid #283b50;
  padding-block: 24px 40px;
}

/* Reserve the game area before its custom element upgrades. Keep the readable fallback
   independent of late game styles and web fonts, including when JavaScript is blocked. */
oxygen-game:not(:defined) {
  display: block;
  box-sizing: border-box;
  min-height: 100svh;
  padding: 0;
}
.site-fallback {
  box-sizing: border-box;
  width: min(100%, 960px);
  margin-inline: auto;
  padding: 40px 24px;
  font:
    400 1rem/1.7 system-ui,
    sans-serif;
}
.site-fallback h1 {
  margin: 0 0 20px;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
}
.site-fallback p {
  margin: 0 0 16px;
}
