:root {
  --bg: #0b1020;
  --panel: #151c31;
  --text: #e8ecf7;
  --muted: #9aa3bd;
  --accent: #f5a623;
  --danger: #ff6b6b;
  --ok: #5bd69c;
  --border: #2a3555;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--sans); }
.page { max-width: 980px; margin: 0 auto; padding: 1.25rem 1rem 3rem; }
header h1 { margin: 0 0 0.25rem; font-size: 1.65rem; letter-spacing: 0.02em; }
.tagline { margin: 0 0 1.25rem; color: var(--muted); font-size: 0.95rem; }
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}
.panel.hidden, .hidden { display: none !important; }
.legal { line-height: 1.45; color: var(--text); }
.hash { font-size: 0.85rem; color: var(--muted); word-break: break-all; }
.hash code, code { font-family: var(--mono); font-size: 0.8rem; color: var(--accent); }
.file-btn {
  display: inline-block;
  margin: 0.5rem 0.75rem 0.5rem 0;
  padding: 0.65rem 1.1rem;
  background: var(--accent);
  color: #1a1200;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
}
.file-btn:hover { filter: brightness(1.05); }
.linkish {
  background: transparent;
  border: none;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}
.status { color: var(--ok); min-height: 1.25em; }
.error { color: var(--danger); font-weight: 600; }
.stage {
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}
#canvas {
  display: block;
  width: 100%;
  max-width: 960px;
  height: auto;
  image-rendering: pixelated;
  outline: none;
}
.controls ul { padding-left: 1.1rem; margin: 0.4rem 0; }
.controls li { margin: 0.25rem 0; color: var(--muted); }
kbd {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  margin: 0 0.1rem;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: #0f1528;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text);
}
.note { color: var(--muted); font-size: 0.9rem; }
footer { color: var(--muted); font-size: 0.8rem; margin-top: 0.5rem; }

.file-btn.secondary {
  background: #2a3555;
  color: var(--text);
  font-weight: 600;
}
