:root {
  color-scheme: dark;
  --bg: #090d12;
  --text: #d7e0e8;
  --muted: #8ea0b0;
  --line: #2a3948;
  --brass: #e0b56a;
  --panel: #121920;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 50% -10%, #1a2836 0%, var(--bg) 52%);
  color: var(--text);
  font-family: Inter, "Noto Sans", "Segoe UI", sans-serif;
  font-size: 14px;
}

.bench {
  padding: 6px 16px 6px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 13, 18, 0.92);
}

.title-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

h1 {
  margin: 0;
  font-family: "Noto Serif", Georgia, serif;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.tag {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.controls {
  display: flex;
  align-items: center;
  gap: 6px 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}

button,
.check {
  font: inherit;
}

button {
  background: var(--panel);
  color: var(--text);
  border: 1px solid #3c4e60;
  border-radius: 4px;
  padding: 3px 9px;
  cursor: pointer;
}

button:hover {
  border-color: #8a7040;
  color: #fff;
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

.rate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.sym {
  font-family: "Noto Serif", Georgia, serif;
  color: var(--text);
  width: 0.9em;
}

.name {
  width: 2.8em;
}

input[type="range"] {
  width: 108px;
  accent-color: var(--brass);
}

.val {
  font-variant-numeric: tabular-nums;
  color: var(--text);
  min-width: 2.4em;
  text-align: right;
}

.unit {
  margin-left: -2px;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.spawn-label,
.seed {
  color: var(--muted);
}

.seed strong {
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px 8px;
}

canvas {
  max-width: 100%;
  height: auto;
  background: #070a0e;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

@media (max-width: 860px) {
  h1 {
    font-size: 18px;
  }

  input[type="range"] {
    width: 78px;
  }

  .name {
    display: none;
  }
}
