:root {
  color-scheme: light;
  --ink: #151515;
  --muted: #666b70;
  --line: #d9dde2;
  --surface: #ffffff;
  --page: #f4f7f8;
  --accent: #0b6f85;
  --accent-dark: #07566a;
  --danger: #9a3412;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--page);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

.shell {
  width: min(100%, 680px);
  margin: 0 auto;
  padding: 28px 18px;
}

.top {
  margin-bottom: 18px;
}

.kicker {
  margin: 0 0 6px;
  color: var(--accent-dark);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.note,
.meta,
.loading,
.empty,
.error,
.footer {
  color: var(--muted);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 8px 28px rgba(21, 21, 21, 0.06);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 16px;
  font-size: 0.95rem;
}

.options {
  display: grid;
  gap: 10px;
  border: 0;
  padding: 0;
  margin: 0;
}

.option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 64px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  cursor: pointer;
}

.option:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(11, 111, 133, 0.14);
}

.option input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}

.story {
  font-size: 1.08rem;
  font-weight: 700;
}

.vote-button {
  width: 100%;
  min-height: 52px;
  margin-top: 16px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.vote-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.results {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.result-row {
  display: grid;
  gap: 6px;
}

.result-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.95rem;
}

.bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7ecef;
}

.fill {
  height: 100%;
  background: var(--accent);
}

.error {
  color: var(--danger);
}

.footer {
  margin-top: 18px;
  font-size: 0.95rem;
}

.footer a {
  color: var(--accent-dark);
  font-weight: 700;
}
