/* sondazhe.org — obsidian glass design system
   Dark, premium, crimson accent. Clash Display + Instrument Sans body. */

:root {
  color-scheme: dark;
  --bg: #0b0b0f;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f2f2f5;
  --muted: #9a9aa3;
  --faint: #6b6b74;
  --red: #ff3b30;
  --red-2: #ff2d55;
  --red-soft: #ff6b64;
  --grad: linear-gradient(135deg, #ff3b30, #ff2d55);
  --glow: 0 0 24px rgba(255, 45, 85, 0.35);
  --ok: #34d399;
  --radius: 20px;
  --radius-s: 13px;
  --font-display: 'Clash Display', sans-serif;
  --font-body: 'Instrument Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ambient glow + grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 45% at 18% -8%, rgba(255, 45, 85, 0.14), transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 110%, rgba(255, 120, 60, 0.07), transparent 60%);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.sheet {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 22px;
}

.construction-banner {
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #2b1a02;
  background: #eda100;
  padding: 9px 16px;
}

::selection { background: rgba(255, 45, 85, 0.4); }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--red-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ------------------------------------------------ motion */

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fill {
  from { width: 0; }
}

@keyframes pop {
  0% { opacity: 0; transform: scale(1.5) rotate(-5deg); }
  60% { transform: scale(0.96) rotate(0.5deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ------------------------------------------------ masthead */

.masthead {
  text-align: center;
  padding: 64px 0 40px;
  animation: rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.dateline {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
}

.dateline span { display: none; }

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.7rem, 8vw, 4.3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.brand a { text-decoration: none; color: var(--text); }

.brand a::after {
  content: '.';
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  margin-top: 12px;
  font-size: 15.5px;
  color: var(--muted);
}

/* ------------------------------------------------ home: poll list */

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  margin: 34px 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: rise 0.6s 0.1s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.section-title::before {
  content: '';
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: var(--grad);
  box-shadow: var(--glow);
}

.poll-list { list-style: none; display: grid; gap: 14px; }

.poll-item {
  animation: rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.poll-item:nth-child(1) { animation-delay: 0.12s; }
.poll-item:nth-child(2) { animation-delay: 0.18s; }
.poll-item:nth-child(3) { animation-delay: 0.24s; }
.poll-item:nth-child(4) { animation-delay: 0.3s; }
.poll-item:nth-child(5) { animation-delay: 0.36s; }
.poll-item:nth-child(n+6) { animation-delay: 0.42s; }

.poll-item a {
  position: relative;
  display: block;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 56px 22px 24px;
  backdrop-filter: blur(14px);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.poll-item a:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 75, 85, 0.45);
  background: var(--surface-2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 45, 85, 0.12);
}

.poll-no {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--faint);
  margin-bottom: 8px;
}

.poll-q {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 10px;
}

.poll-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.poll-x {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--faint);
  transition: transform 0.25s, color 0.25s;
}

.poll-item a:hover .poll-x {
  color: var(--red-soft);
  transform: translateY(-50%) translateX(5px);
}

.poll-list-closed .poll-q { color: var(--muted); }

.closed-section { margin-top: 44px; }

.empty {
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 34px 24px;
  text-align: center;
  color: var(--muted);
  animation: rise 0.6s 0.15s backwards;
}

/* ------------------------------------------------ tags */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 999px;
  padding: 3px 11px;
  border: 1px solid var(--line);
}

.tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.tag-active { color: var(--ok); border-color: rgba(52, 211, 153, 0.3); }
.tag-active::before { background: var(--ok); box-shadow: 0 0 8px rgba(52, 211, 153, 0.8); }

.tag-closed { color: var(--faint); }
.tag-closed::before { background: var(--faint); }

/* ------------------------------------------------ poll page */

.poll-page { animation: rise 0.55s 0.05s cubic-bezier(0.22, 1, 0.36, 1) backwards; }

.backlink {
  display: inline-block;
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 22px;
  transition: color 0.2s;
}

.backlink:hover { color: var(--text); }

.poll-head { margin-bottom: 26px; }

.poll-head .tag { margin-bottom: 14px; }

.poll-question {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 5vw, 2.3rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.poll-desc { margin-top: 12px; color: var(--muted); font-size: 15.5px; }

.closes-line { margin-top: 10px; font-size: 13.5px; color: var(--faint); }

/* ballot */

.ballot {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  backdrop-filter: blur(14px);
}

.ballot-instruction {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--faint);
  margin-bottom: 16px;
}

.ballot-option {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 16px 18px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.ballot-option:hover {
  border-color: var(--line-strong);
  transform: translateX(3px);
}

.ballot-option:has(input:checked) {
  border-color: rgba(255, 75, 85, 0.65);
  background: rgba(255, 59, 48, 0.07);
  box-shadow: 0 0 0 1px rgba(255, 45, 85, 0.25), 0 0 24px rgba(255, 45, 85, 0.12);
}

.ballot-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ballot-box {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  display: grid;
  place-items: center;
  transition: border-color 0.2s;
}

.ballot-option:has(input:checked) .ballot-box { border-color: var(--red-soft); }

.ballot-box::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: var(--glow);
  transform: scale(0);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ballot-option:has(input:checked) .ballot-box::after { transform: scale(1); }

.ballot-no { font-size: 13px; color: var(--faint); min-width: 18px; }

.ballot-text { font-size: 16px; }

.ballot-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--faint);
  text-align: center;
}

/* buttons */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--grad);
  border: none;
  border-radius: 999px;
  padding: 15px 32px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(255, 45, 85, 0.35);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(255, 45, 85, 0.5);
  filter: brightness(1.06);
}

.btn:active { transform: translateY(0); }

.btn-vote { display: block; width: 100%; margin-top: 16px; }

.btn-mini {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #d0d0d6;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 15px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.btn-mini:hover { border-color: #fff; color: #fff; }

.btn-danger { color: var(--red-soft); border-color: rgba(255, 75, 67, 0.35); }

.btn-danger:hover {
  color: #fff;
  border-color: var(--red-soft);
  background: rgba(255, 59, 48, 0.15);
}

.btn-mini-primary {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 3px 14px rgba(255, 45, 85, 0.3);
}

.btn-mini-primary:hover { border-color: transparent; filter: brightness(1.08); }

.btn-link { text-decoration: none; }

/* results */

.stamp {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red-soft);
  background: rgba(255, 59, 48, 0.08);
  border: 1.5px solid rgba(255, 75, 67, 0.55);
  border-radius: 999px;
  padding: 9px 20px;
  margin-bottom: 14px;
  box-shadow: 0 0 28px rgba(255, 45, 85, 0.25);
}

.just-voted .stamp { animation: pop 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards; }

.thanks { color: var(--muted); font-size: 15px; margin-bottom: 20px; }

.results {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  backdrop-filter: blur(14px);
}

.donut-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.donut {
  position: relative;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  flex: none;
}

.donut-hole {
  position: absolute;
  inset: 21%;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px var(--line);
}

.donut-total {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
  color: var(--text);
}

.donut-total-label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--faint);
  margin-top: 5px;
}

.legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}

.result-row { margin-bottom: 20px; }

.result-row:last-of-type { margin-bottom: 8px; }

.result-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  margin-bottom: 8px;
}

.mine {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red-soft);
  border: 1px solid rgba(255, 75, 67, 0.4);
  border-radius: 999px;
  padding: 2px 9px;
}

.result-track {
  display: flex;
  align-items: center;
  gap: 12px;
}

.result-track::before { display: none; }

.result-bar {
  height: 10px;
  width: var(--w);
  min-width: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  animation: fill 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  flex: none;
  max-width: calc(100% - 60px);
}

.result-bar.bar-lead {
  background: var(--grad);
  box-shadow: 0 0 18px rgba(255, 45, 85, 0.45);
}

.result-pct {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  min-width: 42px;
}

.result-count { font-size: 12.5px; color: var(--faint); margin-top: 4px; }

.results-total {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
}

/* ------------------------------------------------ share */

.share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.share-label { font-size: 13.5px; color: var(--faint); margin-right: 2px; }

.share-btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  color: #d0d0d6;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

.share-btn:hover { border-color: #fff; color: #fff; transform: translateY(-1px); }

/* ------------------------------------------------ content pages */

.content-page { animation: rise 0.55s 0.05s backwards; }

.content-page .poll-question { margin: 10px 0 22px; }

.content-text p { margin-bottom: 16px; max-width: 62ch; color: #d5d5db; }

/* ------------------------------------------------ forms + admin */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
  backdrop-filter: blur(14px);
  animation: rise 0.55s backwards;
}

.panel:nth-of-type(2) { animation-delay: 0.08s; }
.panel:nth-of-type(3) { animation-delay: 0.16s; }

.admin { padding-top: 4px; }

.admin-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.stat-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 16px 18px;
  backdrop-filter: blur(14px);
}

.stat-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 8px;
}

.stat-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 30px;
  color: var(--text);
}

.stat-tile-top {
  grid-column: 1 / -1;
  display: block;
  text-decoration: none;
  transition: border-color 0.2s;
}

.stat-tile-top:hover { border-color: var(--line-strong); }

.stat-top-q {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
  margin-bottom: 6px;
  word-spacing: 0.08em;
}

.stat-top-votes {
  display: block;
  font-size: 13px;
  color: var(--red-soft);
  font-weight: 600;
}

@media (max-width: 480px) {
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .stat-value { font-size: 26px; }
}

.admin-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 13.5px;
}

.admin-bar a { color: var(--muted); text-decoration: none; transition: color 0.2s; }

.admin-bar a:hover { color: var(--text); }

.admin-bar-right { display: flex; align-items: center; gap: 14px; }

.field { display: block; margin-bottom: 18px; }

.field > span {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 8px;
}

.field-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 8px;
}

input[type="text"],
input[type="password"],
input[type="datetime-local"],
textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 13px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input::placeholder, textarea::placeholder { color: var(--faint); }

input:focus, textarea:focus {
  outline: none;
  border-color: rgba(255, 75, 85, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 45, 85, 0.15);
}

textarea { resize: vertical; }

.panel-hint { font-size: 14px; color: var(--muted); margin-bottom: 16px; }

.option-rows { margin-bottom: 12px; }

.option-row { position: relative; margin-bottom: 10px; }

.option-row input { padding-right: 46px; }

.remove-option {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--faint);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.2s, color 0.2s;
}

.remove-option:hover { border-color: var(--red-soft); color: var(--red-soft); }

.add-option-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 1px dashed var(--line-strong);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  margin-bottom: 18px;
  transition: border-color 0.2s, color 0.2s;
}

.add-option-btn:hover { border-color: var(--red-soft); color: var(--text); }

.field-inline { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }

.field-inline input { flex: 1; }

.opt-votes { font-size: 13px; color: var(--faint); white-space: nowrap; font-style: normal; }

.more-options { margin-bottom: 18px; }

.more-options summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  padding: 4px 0;
  transition: color 0.2s;
}

.more-options summary:hover { color: var(--text); }

.more-options[open] summary { margin-bottom: 14px; }

.setup-intro {
  max-width: 52ch;
  margin: 0 auto 24px;
  text-align: center;
  color: var(--muted);
}

.admin-login { max-width: 460px; margin: 0 auto; }

.form-error,
.form-notice {
  border-radius: var(--radius-s);
  padding: 13px 18px;
  font-size: 14.5px;
  margin-bottom: 20px;
  animation: rise 0.4s backwards;
}

.form-error {
  color: var(--red-soft);
  background: rgba(255, 59, 48, 0.09);
  border: 1px solid rgba(255, 75, 67, 0.4);
}

.form-notice {
  color: var(--ok);
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.35);
}

/* admin poll cards */

.poll-admin-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 18px 20px;
  margin-bottom: 12px;
  backdrop-filter: blur(14px);
  transition: border-color 0.2s;
}

.poll-admin-card:hover { border-color: var(--line-strong); }

.pac-q {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  color: var(--text);
  text-decoration: none;
  display: block;
  transition: color 0.2s;
}

.pac-q:hover { color: var(--red-soft); }

.pac-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  margin: 9px 0 13px;
}

.pac-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.poll-page .pac-actions { margin-top: 24px; }

/* ------------------------------------------------ errors + footer */

.error-page { text-align: center; padding: 60px 0; animation: rise 0.5s backwards; }

.error-code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 18vw, 7rem);
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}

.error-page p { color: var(--muted); margin-bottom: 26px; }

.footer {
  margin-top: 90px;
  padding: 30px 0 44px;
  text-align: center;
}

.footer-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  margin-bottom: 26px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 14px;
}

.footer-nav a {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--text); }

.footer p { font-size: 12.5px; color: var(--faint); }

/* ------------------------------------------------ display type tuning */
/* Clash Display Bold is heavy and tight — questions and titles read better
   at semibold with a little extra word air. The wordmark stays bold. */

.poll-q, .section-title, .poll-question, .pac-q {
  font-weight: 600;
  word-spacing: 0.08em;
}

.btn, .result-pct { font-weight: 600; }

.stamp { font-weight: 600; }

/* ------------------------------------------------ responsive */

@media (max-width: 560px) {
  .masthead { padding: 44px 0 30px; }
  .poll-item a { padding: 18px 48px 18px 18px; }
  .poll-q { font-size: 18px; }
  .ballot, .results, .panel { padding: 20px 16px; }
  .pac-actions { gap: 6px; }
  .btn-mini { padding: 7px 12px; }
}
