:root {
  --bg: #0b0e14;
  --fg: #c7d0e0;
  --accent: #ffcf4a;
  --muted: #7a8699;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 1.5rem clamp(1rem, 4vw, 3rem) 3rem;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, sans-serif;
  line-height: 1.5;
}

header,
main,
footer {
  max-width: 920px;
  margin-inline: auto;
}

.goose,
#replay {
  font-family: var(--mono);
}

.goose {
  color: var(--accent);
  font-size: clamp(0.7rem, 2.2vw, 0.95rem);
  overflow-x: auto;
}

h1 {
  font-size: 1.9rem;
}

header p,
.about,
#status,
footer {
  color: var(--muted);
}

code {
  background: #1b212c;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.terminal {
  margin: 1.5rem 0;
  background: #000;
  border: 1px solid #1f2733;
  border-radius: 8px;
  padding: 0.6rem;
  min-height: 26rem;
  overflow: hidden;
}

#replay {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.82rem;
  overflow-y: auto;
}

#controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

button {
  background: var(--accent);
  color: #1a1400;
  border: 0;
  border-radius: 6px;
  padding: 0.5rem 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

button:disabled {
  background: #8a7320;
  cursor: not-allowed;
}

.about a,
footer a {
  color: var(--accent);
}

footer {
  margin-top: 2.5rem;
  border-top: 1px solid #1c2430;
  padding-top: 1rem;
  font-size: 0.82rem;
}
