/* style.css — colors are defined once as variables, so restyling is easy. */
:root {
  --bg: #f7f3ea;
  --card: #ffffff;
  --ink: #1f2a44;
  --muted: #6b7280;
  --accent: #b23a48;
  --navy: #1f2a44;
  --line: #e5dfd1;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121722;
    --card: #1c2333;
    --ink: #eef1f6;
    --muted: #9aa3b2;
    --accent: #e0606e;
    --navy: #8fb0ff;
    --line: #2c3548;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.app { max-width: 480px; margin: 0 auto; padding: 20px 16px 48px; }

header { text-align: center; margin-bottom: 16px; }
h1 { margin: 0; font-family: Georgia, serif; font-size: 2rem; letter-spacing: 0.02em; }
.sub, .muted { color: var(--muted); font-size: 0.9rem; margin: 4px 0; }

.progress { display: flex; justify-content: center; gap: 8px; margin-bottom: 14px; font-size: 1.2rem; }
.progress .dot { width: 26px; text-align: center; opacity: 0.35; }
.progress .dot.current { opacity: 1; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  min-height: 140px;
}
.tag {
  display: inline-block;
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent); font-weight: 700;
}
.question { font-size: 1.2rem; line-height: 1.45; margin: 10px 0 0; }

.pick { text-align: center; margin: 22px 0 8px; }
.pick-num { display: block; font-size: 2.6rem; font-weight: 800; color: var(--navy); }
.pick-name { font-size: 1.1rem; }

.slider-row { display: flex; align-items: flex-start; gap: 10px; }
.slider-wrap { flex: 1; position: relative; padding-bottom: 34px; }
input[type="range"] { width: 100%; accent-color: var(--accent); height: 32px; }
.anchors { position: absolute; left: 0; right: 0; top: 34px; height: 30px; }
.anchors span {
  position: absolute; transform: translateX(-50%);
  font-size: 0.7rem; color: var(--muted); text-align: center; white-space: nowrap; line-height: 1.2;
}
.step {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font-size: 1.3rem; cursor: pointer;
}

.primary {
  display: block; width: 100%; margin-top: 16px; padding: 14px;
  border: none; border-radius: 12px;
  background: var(--accent); color: #fff; font-size: 1.05rem; font-weight: 700; cursor: pointer;
}
.primary:active { transform: scale(0.98); }

#reveal { margin-top: 18px; }
.answer-card { text-align: center; padding: 6px 0 4px; }
.answer-name { font-size: 1.7rem; font-weight: 800; color: var(--navy); margin: 6px 0 2px; line-height: 1.2; }
.answer-years { color: var(--muted); margin: 0 0 14px; }
.result { font-weight: 600; text-align: center; margin: 0 0 2px; }
.points { text-align: center; color: var(--muted); margin: 0 0 14px; }
.fact { background: var(--card); border-left: 4px solid var(--accent); padding: 12px 14px; border-radius: 8px; margin: 0; line-height: 1.45; }

#summary { text-align: center; }
.big { font-size: 3rem; font-weight: 800; margin: 10px 0 0; }
.emoji { font-size: 2rem; letter-spacing: 4px; margin: 8px 0; }
.stats { display: flex; justify-content: space-around; margin: 22px 0; }
.stats div { display: flex; flex-direction: column; }
.stats b { font-size: 1.5rem; }
.stats span { font-size: 0.75rem; color: var(--muted); }
.recap { text-align: left; padding-left: 20px; line-height: 1.45; }
.recap li { margin-bottom: 10px; }

[hidden] { display: none !important; }
