@import url('https://fonts.googleapis.com/css2?family=Literata:ital,opsz,wght@0,7..72,400;0,7..72,600;1,7..72,400&family=Manrope:wght@400;600;700&display=swap');

:root {
  --bg: #1a1e26;
  --card: #242a34;
  --text: #e8ecf4;
  --muted: #9aa3b2;
  --accent: #c9a227;
  --accent-dim: #8f7a1f;
  --ok: #4a9d7c;
  --warn: #c97d4a;
  --danger: #b85c5c;
  --radius: 14px;
  --font: 'Manrope', system-ui, sans-serif;
  --serif: 'Literata', Georgia, serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

body {
  padding: max(12px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
}

.hero {
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.65rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.disclaimer {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
  padding: 12px 14px;
  background: var(--card);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent-dim);
}

.screen.hidden {
  display: none;
}

.quiz-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-card {
  display: block;
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  border: none;
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: transform 0.12s ease, background 0.12s;
}

.quiz-card:hover {
  background: #2c3440;
}

.quiz-card:active {
  transform: scale(0.99);
}

.quiz-card small {
  display: block;
  margin-top: 6px;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85rem;
}

.quiz-head {
  margin-bottom: 1rem;
}

.quiz-head h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin: 0 0 8px;
}

.progress {
  height: 4px;
  background: #333b47;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  transition: width 0.2s ease;
}

.question-title {
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.opt {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #3a4452;
  background: transparent;
  color: var(--text);
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
}

.opt:hover {
  border-color: var(--accent-dim);
  background: rgba(201, 162, 39, 0.06);
}

.btn-row {
  margin-top: 18px;
  display: flex;
  gap: 10px;
}

.btn {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-ghost {
  background: #333b47;
  color: var(--text);
}

.btn-primary {
  background: var(--accent);
  color: #1a1508;
}

.result-box {
  padding: 18px;
  border-radius: var(--radius);
  background: var(--card);
  margin-bottom: 14px;
}

.result-box h3 {
  font-family: var(--serif);
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.result-box p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.badge.low {
  background: rgba(74, 157, 124, 0.2);
  color: #7fd4b0;
}

.badge.mid {
  background: rgba(201, 125, 74, 0.2);
  color: #e4a678;
}

.badge.high {
  background: rgba(184, 92, 92, 0.2);
  color: #e89898;
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 16px;
  right: 16px;
  padding: 12px;
  background: #2c3440;
  border-radius: 10px;
  font-size: 0.9rem;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.toast.show {
  opacity: 1;
}
