:root {
  color-scheme: dark;
  --text: #f5f8ff;
  --muted: rgba(245, 248, 255, 0.78);
}

.game-frame-wrap {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  min-height: 100vh;
  background: #000;
  overflow: hidden;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  background: #000;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  overflow: hidden;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

.game-frame {
  width: 100vw;
  height: 100dvh;
  min-height: 100vh;
  border: 0;
  display: block;
  background: #000;
}

@supports (height: 100svh) {
  .game-frame-wrap,
  .game-frame {
    height: 100svh;
  }
}

.game-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-content: center;
  text-align: center;
  padding: 32px;
  background: rgba(0, 0, 0, 0.92);
}

.game-fallback.is-visible {
  display: grid;
}

.game-fallback h1 {
  margin: 0 0 12px;
  font-weight: 400;
}
