:root {
  --violet: #7C4DFF;
  --pink: #FF5A8C;
  --bg: #ffffff;
  --fg: #1b1530;
  --muted: #6b6785;
  --card: #f4f1ff;
  --line: #e4dffa;
  --gradient: linear-gradient(135deg, #7C4DFF, #FF5A8C);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0b1d;
    --fg: #f3f0ff;
    --muted: #a9a3c7;
    --card: #1a1430;
    --line: #2d2550;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.wrap { max-width: 560px; margin: 0 auto; padding: 24px 20px 56px; }
.hero {
  background: var(--gradient);
  color: #fff;
  border-radius: 24px;
  padding: 28px 22px;
  margin-bottom: 20px;
}
.hero h1 { margin: 0 0 8px; font-size: 1.75rem; line-height: 1.2; }
.hero p { margin: 0; opacity: .92; }
.emoji { font-size: 2.6rem; display: block; margin-bottom: 6px; }
h2 { font-size: 1.25rem; margin: 28px 0 10px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin: 14px 0; }
.btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 56px; margin: 10px 0;
  padding: 0 18px; border: 0; border-radius: 16px;
  font: inherit; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer;
  background: var(--gradient); color: #fff;
}
.btn.secondary { background: transparent; color: var(--violet); border: 2px solid var(--violet); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:focus-visible, input:focus-visible, .option:focus-visible, a:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
input[type=text] {
  width: 100%; min-height: 52px; padding: 0 14px;
  border: 2px solid var(--line); border-radius: 14px;
  background: var(--bg); color: var(--fg); font: inherit;
}
.progress { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 6px 0 4px; }
.progress > span { display: block; height: 100%; background: var(--gradient); width: 0; transition: width .3s ease; }
.muted { color: var(--muted); font-size: .95rem; }
.option {
  display: block; width: 100%; min-height: 60px; margin: 10px 0; padding: 12px 16px;
  text-align: left; font: inherit; font-weight: 600;
  background: var(--card); color: var(--fg);
  border: 2px solid var(--line); border-radius: 16px; cursor: pointer;
}
.option.chosen { background: var(--gradient); color: #fff; border-color: transparent; }
.score { font-size: 4.5rem; font-weight: 900; text-align: center; margin: 4px 0; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.center { text-align: center; }
.hidden { display: none !important; }
.status { padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.status.error { border-color: var(--pink); }
.recap { list-style: none; padding: 0; margin: 12px 0; }
.recap li { padding: 6px 0; display: flex; gap: 10px; }
footer { margin-top: 40px; text-align: center; }
footer a { color: var(--muted); margin: 0 8px; }
a { color: var(--violet); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
