/* The loader's own screens: a status line, a code, a short list. Once a
   machine's viewer runs, it fills the window and none of this shows. */
:root {
  color-scheme: light dark;
  --fg: #1f1f1f;
  --bg: #f7f7f7;
  --muted: #5c5c5c;
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #e8e8e8;
    --bg: #1c1c1c;
    --muted: #a3a3a3;
  }
}

html, body {
  height: 100%;
  margin: 0;
  color: var(--fg);
  background: var(--bg);
}

#shell {
  box-sizing: border-box;
  max-width: 32rem;
  margin: 0 auto;
  padding: 18vh 1rem 2rem;
}

#shell[hidden] {
  display: none;
}

.code {
  font: 600 2.5rem/1.2 ui-monospace, "SF Mono", Consolas, monospace;
  letter-spacing: 0.08em;
}

.machines {
  padding: 0;
  list-style: none;
}

.machines li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
}

button {
  font: inherit;
}

#stage,
.viewer {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

body:not([data-state="viewing"]) #stage {
  display: none;
}
