:root {
  --bg: rgb(21, 29, 40);
  --accent: rgb(77, 151, 255);
  --text: rgb(255, 255, 255);
  --muted: rgb(171, 184, 201);
  --track: rgb(56, 68, 77);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.card {
  width: 100%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--track);
  border-radius: 16px;
  padding: 28px;
}

.question {
  margin: 0 0 20px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
}

.loading {
  color: var(--muted);
  margin: 0;
}

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

.option {
  width: 100%;
  padding: 10px 18px;
  font-size: 16px;
  font-weight: bold;
  font-family: inherit;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 50vw;
  text-align: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.option:hover {
  background: rgba(77, 151, 255, 0.15);
}

.results {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.result {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 6px;
  /* background: var(--track); */
  overflow: hidden;
  font-size: 17px;
}

.result .fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--track);
  transition: width 0.3s ease;
}

.result-leader .fill {
  background: rgba(77, 151, 255, 0.45);
}

.result-picked .fill {
  background: rgba(77, 151, 255, 0.65);
}

.result-check {
  margin-left: 8px;
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  border: 2px solid var(--text);
  border-radius: 50vw;
  aspect-ratio: 1;
  /* display: block; */
  width: 24px;
  align-items: center;
  justify-content: center;
  display: flex;
}

.result-label,
.result-pct {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}

.result-pct {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.result-leader .result-label {
  font-weight: 700;
}

.result-leader .result-pct {
  color: var(--text);
}

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

.notice {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(77, 151, 255, 0.12);
  border: 1px solid var(--accent);
  color: var(--text);
  font-size: 14px;
}
