:root {
  --bg: #0b0d10;
  --panel: #14171c;
  --text: #d6f5d6;
  --accent: #3ddc84;
  --muted: #7a8a7a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 48px;
}

header {
  text-align: center;
  margin-bottom: 16px;
}

h1 {
  margin: 0;
  letter-spacing: 1px;
  color: var(--accent);
}

.subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

main {
  width: 100%;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  background: var(--panel);
  padding: 12px 16px;
  border-radius: 10px;
  width: 100%;
  justify-content: center;
}

button {
  background: var(--accent);
  color: #072a17;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

button:not(:disabled):hover {
  opacity: 0.85;
}

.control {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

.status {
  color: var(--muted);
  font-size: 0.85rem;
  min-height: 1.2em;
}

.stage {
  width: 100%;
  background: #000;
  border-radius: 10px;
  overflow: auto;
  display: flex;
  justify-content: center;
  padding: 8px;
}

#ascii-output {
  margin: 0;
  color: var(--text);
  font-family: "Consolas", "Courier New", monospace;
  font-size: 6px;
  line-height: 6px;
  letter-spacing: 0;
  white-space: pre;
  user-select: none;
}
