:root {
  --bg: #0b1220;
  --card: #111827;
  --border: #1f2937;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --good: #22c55e;
  --warn: #facc15;
  --bad: #ef4444;
  --accent: #38bdf8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto;
  background: var(--bg);
  color: var(--text);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  width: 100%;
  max-width: 540px;
  padding: 32px;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

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

.subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

button {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #020617;
  cursor: pointer;
}

button.secondary {
  background: #1f2937;
  color: var(--text);
  margin-top: 10px;
}

.stats {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat {
  background: #020617;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
}

.label {
  font-size: 0.8rem;
  color: var(--muted);
}

.value {
  font-size: 1.4rem;
  margin-top: 4px;
}

.result {
  margin-top: 20px;
  padding: 14px;
  border-radius: 10px;
  font-weight: 600;
  text-align: center;
}

.good { background: #052e16; color: var(--good); }
.warn { background: #422006; color: var(--warn); }
.bad  { background: #450a0a; color: var(--bad); }

textarea {
  width: 100%;
  margin-top: 16px;
  background: #020617;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  font-family: monospace;
  font-size: 0.85rem;
  resize: none;
}

.progress-container {
  background: #1f2937;
  border-radius: 10px;
  margin-top: 16px;
  height: 16px;
  overflow: hidden;
}

.progress-bar {
  background: var(--accent);
  height: 100%;
  width: 0%;
  transition: width 0.1s linear;
}

.timer {
  margin-top: 8px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer {
  margin-top: 14px;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}
