/* Voter page: matches "Voter page, pick a topic" and "vote confirmed" mockups */
.vote {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100svh;
  padding: max(28px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  display: flex;
}

.screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.screen[hidden] { display: none; }

.vote-head { display: flex; flex-direction: column; gap: 8px; }
.vote-live { display: flex; align-items: center; gap: 8px; }
.vote-live .eyebrow, .eyebrow.small { font-size: 12px; }
.dot { width: 8px; height: 8px; border-radius: 4px; background: var(--accent); display: inline-block; }

.vote-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 38px;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.vote-title span { color: var(--accent-2); }

.vote-intro { margin: 4px 0 0; font-size: 15px; line-height: 1.4; color: var(--muted); }

.opts { display: flex; flex-direction: column; gap: 12px; }

.opt {
  width: 100%;
  min-height: 124px;
  text-align: left;
  background: var(--bg);
  border: 2px solid var(--line);
  border-left: 8px solid var(--c);
  border-radius: 8px;
  padding: 14px 16px 14px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  font-family: var(--body);
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.opt:hover { border-color: var(--c); }
.opt:active { transform: scale(0.98); box-shadow: 0 0 0 3px var(--glow); }
.opt:disabled { cursor: default; }
.opts.is-sending .opt:not(.is-picked) { opacity: 0.35; }
.opt.is-picked { border-color: var(--c); box-shadow: 0 0 0 3px var(--glow); }

.opt .chip-num, .picked .chip-num { width: 40px; height: 40px; font-size: 22px; }

.opt-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.opt-title { font-family: var(--display); font-weight: 700; font-size: 18px; line-height: 1.15; letter-spacing: -0.02em; }
.opt-sub { font-size: 13px; line-height: 1.35; color: var(--muted); }

.vote-error {
  margin: 0;
  padding: 12px 14px;
  border: 2px solid #f472b6;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
}

.foot { margin: auto 0 0; font-size: 13px; line-height: 1.4; color: var(--muted); text-align: center; }

.done-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
}
.check {
  width: 112px; height: 112px; border-radius: 8px; background: var(--c, var(--accent));
  display: flex; align-items: center; justify-content: center;
}
.done-text { display: flex; flex-direction: column; gap: 10px; }
.done-title { font-family: var(--display); font-weight: 800; font-size: 36px; line-height: 1.02; letter-spacing: -0.03em; }
.done-sub { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.2; color: var(--accent-2); }

.picked {
  width: 100%;
  border: 2px solid var(--line);
  border-left: 8px solid var(--c);
  border-radius: 8px;
  padding: 14px 16px 14px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}
.picked-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.picked-label { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.picked-title { font-family: var(--display); font-weight: 700; font-size: 17px; line-height: 1.15; letter-spacing: -0.02em; }

.tester-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 16px;
  background: var(--accent);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}
.tester-bar[hidden] { display: none; }
.tester-bar button {
  background: none;
  border: 1px solid var(--ink);
  border-radius: 4px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 12px;
  padding: 4px 10px;
}

.again {
  align-self: center;
  height: 52px;
  padding: 0 28px;
  border: none;
  border-radius: 6px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
  font-size: 18px;
}
.again[hidden] { display: none; }

.pop { animation: pop 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes pop { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: none; } }
.rise { animation: rise 0.5s 0.15s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
