:root {
  --bg: #0e1013;
  --panel: #171a1f;
  --border: #2a2f37;
  --text: #d8dee6;
  --muted: #8a93a0;
  --accent: #7cf0a4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  font-family: ui-monospace, "JetBrains Mono", "Fira Code", monospace;
  background: radial-gradient(ellipse at top, #1a1f27, var(--bg) 60%);
  color: var(--text);
}

h1 {
  margin: 0;
  font-size: 2.2rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-shadow: 0 0 12px rgba(124, 240, 164, 0.45);
}

section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

select,
label {
  font: inherit;
  font-size: 0.9rem;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

select:hover,
label:hover,
select:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}

/* the label acts as the file picker button */
input[type="file"] {
  display: none;
}

canvas {
  display: block;
  width: 1024px;
  max-width: 100%;
  aspect-ratio: 2 / 1;
  background: #000;
  border-radius: 6px;
  box-shadow:
    0 0 0 1px var(--border),
    0 0 0 10px var(--panel),
    0 0 0 11px var(--border),
    0 20px 50px rgba(0, 0, 0, 0.6);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 0 6px rgba(124, 240, 164, 0.15));
}

table {
  border-collapse: collapse;
}

td {
  border: 1px solid var(--border);
  padding: 4px 10px;
  text-align: center;
  font-family: monospace;
}
