:root {
  --navy: #123A73;
  --orange: #F15A24;
  --bg: #ffffff;
  --text: #12324a;
  --muted: #5a7388;
  --border: #d8e4f0;
  --ok: #1f9d55;
  --err: #a33;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  min-height: 100dvh;
}
.wrap { max-width: 420px; margin: 0 auto; padding: 20px 16px calc(48px + env(safe-area-inset-bottom)); }
.banner {
  text-align: center;
  font-size: clamp(1.35rem, 5.2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 8px 0 16px;
}
.privacy {
  font-size: 0.85rem;
  color: var(--muted);
  background: #f5f8fc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 20px;
}
.privacy a { color: var(--orange); font-weight: 600; word-break: break-all; }
label.block, .fieldset-legend, .video-section .block {
  display: block;
  font-weight: 700;
  color: var(--navy);
  margin: 18px 0 8px;
  font-size: 0.95rem;
}
.vote-fieldset { border: 0; padding: 0; margin: 0; }
.votes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.vote-opt { cursor: pointer; }
.vote-opt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.vote-opt .card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 6px;
  border: 2px solid var(--border);
  border-radius: 14px;
  min-height: 96px;
  justify-content: center;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.vote-opt input:focus-visible + .card,
.vote-opt input:checked + .card {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgba(241, 90, 36, 0.25);
}
.letter { font-size: 0.7rem; font-weight: 800; color: var(--muted); letter-spacing: 0.06em; }
.emoji { font-size: 1.55rem; line-height: 1; }
.vlabel { font-size: 0.72rem; font-weight: 700; text-align: center; }
input[type="email"], textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 16px; /* avoid iOS zoom */
  font-family: inherit;
  background: #fff;
}
textarea { min-height: 72px; resize: vertical; }
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 14px 0;
  font-size: 0.92rem;
}
.check input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--orange);
}
.payoff { font-size: 0.8rem; color: var(--muted); margin: -6px 0 12px 28px; }
.muted { font-weight: 500; color: var(--muted); }
.req { color: var(--orange); }
.video-box {
  border: 1px dashed #b7c9da;
  border-radius: 12px;
  padding: 12px;
  background: #fafcfe;
}
.video-box video {
  width: 100%;
  max-height: 220px;
  border-radius: 8px;
  background: #000;
  display: none;
  margin-bottom: 8px;
}
.video-box video.show { display: block; }
.row-btns { display: flex; flex-wrap: wrap; gap: 8px; }
button {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: inherit;
  touch-action: manipulation;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
  width: 100%;
  margin-top: 20px;
  padding: 14px 18px;
  font-size: 1.05rem;
}
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-secondary { background: #e8f0f8; color: var(--navy); }
.btn-danger { background: #fde8e8; color: #a33; }
.hint { font-size: 0.78rem; color: var(--muted); margin-top: 8px; }
.status { font-size: 0.85rem; color: var(--muted); margin-top: 10px; min-height: 1.2em; }
.status.err { color: var(--err); }
.status.ok { color: var(--ok); }
.thankyou { text-align: center; padding-top: 32px; }
.thanks-title { color: var(--navy); margin: 0 0 12px; font-size: 1.25rem; }
.thanks-body { color: var(--text); font-size: 0.98rem; margin: 0; }
@media (max-width: 360px) {
  .votes { gap: 6px; }
  .vlabel { font-size: 0.65rem; }
}
