:root {
  --bg: #0f1220;
  --card: #171b2e;
  --text: #eef2ff;
  --muted: #aab3d9;
  --accent: #6ea8fe;
  --danger: #ff7a7a;
  --ok: #7ee787;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, Arial, sans-serif;
  background: linear-gradient(180deg, #0f1220 0%, #0a0d18 100%);
  color: var(--text);
}

.app {
  width: min(900px, 92vw);
  margin: 24px auto 40px;
}

h1 {
  margin: 0 0 6px;
  font-size: 1.8rem;
}

.subtitle {
  margin: 0 0 20px;
  color: var(--muted);
}

.card {
  background: var(--card);
  border: 1px solid #2a3154;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}

h2 {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

label {
  display: block;
  margin: 10px 0 6px;
  color: #d7defc;
}

input[type="range"],
select,
input[type="text"],
button {
  width: 100%;
}

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

input[type="text"],
select {
  background: #0f1327;
  color: var(--text);
  border: 1px solid #323b64;
  border-radius: 8px;
  padding: 10px;
}

button {
  margin-top: 10px;
  background: #24315e;
  color: var(--text);
  border: 1px solid #394778;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
}

button:hover {
  filter: brightness(1.1);
}

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

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hint {
  color: var(--muted);
  margin-top: 10px;
}

.eq-graph-wrap {
  margin-top: 12px;
  border: 1px solid #323b64;
  border-radius: 8px;
  background: #0d1122;
  padding: 8px;
}

#eqCanvas {
  width: 100%;
  height: 180px;
  display: block;
}

#timerRemaining {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.warning {
  border-color: #5c3a3a;
}

.warning h2 {
  color: #ffd2d2;
}

.warning ul {
  margin: 0;
  padding-left: 20px;
  color: #ffd9d9;
}
