:root {
  --accent: #00b2a9;
  --accent-dark: #018f88;
  --bg: #f7f9fa;
  --card: #ffffff;
  --text: #1c2b2b;
  --muted: #62716f;
  --border: #e1e6e5;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

header h1 {
  font-size: 1.6rem;
  margin: 0 0 0.25rem;
}

.sub {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

#app {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
}

button {
  font: inherit;
  cursor: pointer;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 0.7rem 1rem;
}

button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  font-weight: 600;
}
button.primary:hover { background: var(--accent-dark); }

button.secondary {
  margin-top: 1.5rem;
  color: var(--accent-dark);
  font-weight: 600;
}

.progress {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.progress-track {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.25s ease;
}

#progress-text {
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
}

#question-prompt {
  font-size: 1.15rem;
  margin: 0 0 1rem;
}

.options {
  display: grid;
  gap: 0.75rem;
}

.options.grid-2 { grid-template-columns: 1fr 1fr; }
.options.grid-4 { grid-template-columns: 1fr 1fr; }

@media (max-width: 480px) {
  .options.grid-2, .options.grid-4 { grid-template-columns: 1fr; }
}

.option-btn {
  text-align: left;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: border-color 0.15s ease, transform 0.1s ease;
}

.option-btn:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.headline {
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
}

.bars { display: flex; flex-direction: column; gap: 0.9rem; }

.bar-row .bar-label {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.bar-track {
  height: 14px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  border-radius: 999px;
  width: 0%;
  transition: width 0.6s ease;
}

.bar-events {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.3rem 0 0;
}

footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 1.5rem;
}

[hidden] { display: none !important; }
