:root {
  --blue: #023DFF;
  --green: #00BB00;
  --purple: #AB73FF;
  --bg: #F7F7F7;
  --text: #1A1A1A;
  --muted: #6b6b6b;
  --error: #dc3545;
  --white: #fff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Roboto, sans-serif;
  font-size: 16px;
  line-height: 24px;
}

button { font-family: inherit; cursor: pointer; }

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding: 4px 8px 16px;
}
.brand {
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 500;
  font-size: 20px;
  color: var(--blue);
}
.crumbs { font-size: 14px; color: var(--muted); }

.hero {
  background: var(--blue);
  color: var(--white);
  border-radius: 32px 32px 32px 0;
  padding: 32px;
}
.hero .eyebrow { opacity: 0.85; }
.hero h1 {
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 500;
  font-size: 40px;
  line-height: 40px;
  margin: 8px 0 12px;
  color: var(--white);
}
.hero p { margin: 0; max-width: 480px; font-size: 18px; line-height: 26px; }

.progress { display: flex; gap: 6px; margin-top: 24px; max-width: 480px; }
.progress span { flex: 1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.3); }
.progress span.done { background: var(--white); }

.card {
  background: var(--white);
  border-radius: 24px;
  padding: 32px;
  margin-top: 16px;
}
.card h2 {
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 500;
  font-size: 28px;
  line-height: 32px;
  margin: 0 0 8px;
}
.card h2.sub { font-size: 24px; line-height: 28px; margin-top: 32px; }
.hint { margin: 0 0 24px; color: var(--muted); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--bg);
  border-radius: 20px;
  padding: 16px;
}
.chip {
  background: var(--white);
  color: var(--text);
  border: 1.5px solid var(--white);
  border-radius: 40px;
  padding: 12px 22px;
  font-size: 18px;
  min-height: 48px;
}
.chip:hover { border-color: var(--blue); }
.chip.on { background: var(--blue); border-color: var(--blue); color: var(--white); }
.chip:focus-visible, .btn:focus-visible, .cta:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.error { min-height: 20px; margin: 12px 0 0; font-size: 14px; color: var(--error); }

.actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; }
.btn {
  border: 0;
  border-radius: 40px;
  padding: 16px 28px;
  font-size: 18px;
  min-height: 56px;
}
.btn.ghost { background: var(--bg); color: var(--text); }
.btn.go, .cta { background: var(--green); color: var(--white); }
.btn[hidden] { display: none; }

.cta {
  display: inline-block;
  border-radius: 40px;
  padding: 16px 28px;
  font-size: 18px;
  text-decoration: none;
}

.badge {
  display: inline-block;
  background: var(--purple);
  color: var(--white);
  border-radius: 16px;
  padding: 2px 12px;
  font-size: 14px;
}

.winner-name {
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 500;
  font-size: 40px;
  line-height: 44px;
  margin: 8px 0 0;
}
.winner-total {
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 500;
  font-size: 32px;
  line-height: 36px;
  margin: 4px 0 16px;
}
.facts { margin: 0 0 24px; padding: 0; list-style: none; display: grid; gap: 8px; }
.facts li { background: var(--bg); border-radius: 16px; padding: 12px 16px; }

.rows { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.rows li {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
  background: var(--bg);
  border-radius: 16px;
  padding: 12px 16px;
}
.rows .na { color: var(--muted); }

.extra { border: 1.5px solid var(--purple); border-radius: 20px; padding: 16px 20px; margin-top: 12px; }
.extra h3 { font-family: "Roboto Condensed", sans-serif; font-weight: 500; font-size: 22px; margin: 0 0 4px; }
.extra p { margin: 0; }

.note { margin: 24px 0 0; font-size: 14px; color: var(--muted); }

@media (max-width: 520px) {
  .hero, .card { padding: 24px 20px; }
  .hero h1 { font-size: 32px; line-height: 34px; }
  .card h2 { font-size: 24px; line-height: 28px; }
  .chip { font-size: 16px; padding: 10px 18px; }
  .actions { flex-wrap: wrap; }
  .btn.go { flex: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  .chip, .btn { transition: background-color 0.15s, border-color 0.15s; }
}
