:root {
  --bg: #0f1113;
  --bg-card: #171a1f;
  --border: #2a2d31;
  --primary: #00c27a;
  --text: #e6eef6;
}

body {
  font-family: system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  padding: 16px;
  margin: auto;
  max-width: 750px;
}

h2 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  text-align: center;
}

h3 { margin-top:0 }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 16px;
}

label {
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

input[type=range] {
  width: 100%;
  height: 28px;
  cursor: pointer;
  -webkit-appearance: none;
  background: transparent;
}

/* Track */
input[type=range]::-webkit-slider-runnable-track {
  height: 6px;
  background: #333; /* restored */
  border-radius: 3px;
}

/* Thumb */
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 22px;
  width: 22px;
  background: #00ff91; /* restored */
  border-radius: 50%;
  margin-top: -8px;
  border: 2px solid #006b49;
}

/* Firefox support */
input[type=range]::-moz-range-track {
  height: 6px;
  background: #333;
  border-radius: 3px;
}

input[type=range]::-moz-range-thumb {
  height: 22px;
  width: 22px;
  background: #00ff91;
  border-radius: 50%;
  border: 2px solid #006b49;
}

/* Focus outline invisible */
input[type=range]:focus {
  outline: none;
}

.row {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:10px;
}

.num {
  width: 100px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  text-align: right;
}

select {
  width: 100%;
  font-size: 15px;
  padding: 10px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  cursor: pointer;
}

button {
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: 10px;
  background: var(--primary);
  color: #062518;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 10px;
}

button:disabled {
  background:#444;
  color:#bbb;
  cursor:not-allowed;
}

canvas {
  width: 100%;
  height: 180px;
  border-radius: 6px;
  display: block;
  background: black;
}

pre {
  margin: 0;
  padding: 12px;
  background: #061017;
  border-radius: 8px;
  border: 1px solid #12312a;
  font-size: 0.9rem;
  overflow-x: auto;
}

.copy-row {
  margin-top:8px;
  display:flex;
  gap:8px;
}
.copy-row button {
  width: auto;
  padding: 10px 16px;
  font-size: .85rem;
}

#copyStatus {
  font-size:.85rem;
  align-self:center;
  color: #93d7b8;
}

.hint { font-size:12px;margin-top:4px;color:#85909d }
