:root {
  --paper: #f4eee2;
  --paper-deep: #e9dfcf;
  --card: #fffaf1;
  --card-bright: #fffdf8;
  --ink: #1f2c23;
  --ink-soft: #485449;
  --muted: #7a7d71;
  --line: rgba(31, 44, 35, 0.13);
  --line-strong: rgba(31, 44, 35, 0.23);
  --coral: #e96545;
  --coral-deep: #c94e32;
  --yellow: #f4c95d;
  --sage: #95aa95;
  --green: #547a5c;
  --font-display: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --font-ui: "Avenir Next", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --shadow-card: 0 34px 70px -34px rgba(64, 49, 27, 0.4), 0 8px 24px rgba(64, 49, 27, 0.07);
  --pet-bottom-gap: 12px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 300px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 5% 20%, rgba(244, 201, 93, 0.16), transparent 25%),
    radial-gradient(circle at 92% 9%, rgba(233, 101, 69, 0.1), transparent 24%),
    var(--paper);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  isolation: isolate;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.8'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

::selection {
  color: var(--card-bright);
  background: var(--coral);
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 500;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--card-bright);
  background: var(--ink);
  font-size: 13px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Ambient background */

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.ambient::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 7% 82%, rgba(149, 170, 149, 0.16), transparent 24%),
    radial-gradient(circle at 94% 72%, rgba(244, 201, 93, 0.12), transparent 20%);
}

.ambient-sun {
  position: absolute;
  width: 470px;
  height: 470px;
  top: 72px;
  right: -170px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, rgba(244, 201, 93, 0.42), rgba(244, 201, 93, 0.1) 58%, transparent 70%);
  filter: blur(1px);
}

.ambient-orbit {
  position: absolute;
  width: 700px;
  height: 700px;
  top: -225px;
  right: -170px;
  border: 1px dashed rgba(31, 44, 35, 0.11);
  border-radius: 50%;
}

.ambient-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  opacity: 0.6;
}

.ambient-dot-one {
  top: 22%;
  right: 7.2%;
}

.ambient-dot-two {
  width: 4px;
  height: 4px;
  top: 41%;
  right: 3.5%;
  background: var(--ink);
  opacity: 0.25;
}

/* Custom background */

.page-background {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  pointer-events: none;
  background: var(--paper);
}

/* Soft fill behind the photo: used on phones so that a landscape photo
   never has to be blown up and center-cropped to fill a tall screen. */
.page-background::before {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: 0;
  display: none;
  background-image: var(--page-background-image, none);
  background-position: center;
  background-size: cover;
  filter: blur(38px) saturate(1.06);
  transform: scale(1.1);
}

.page-background img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-background::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(100deg, rgba(244, 238, 226, 0.88) 0%, rgba(244, 238, 226, 0.7) 34%, rgba(244, 238, 226, 0.5) 65%, rgba(244, 238, 226, 0.42) 100%),
    radial-gradient(circle at 80% 10%, rgba(244, 201, 93, 0.1), transparent 34%);
}

body.has-custom-background {
  background: var(--paper-deep);
}

body.has-custom-background .ambient {
  opacity: 0.35;
}

/* Layout */

.site-shell {
  width: min(1240px, calc(100% - 88px));
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0 23px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--yellow);
  background: var(--ink);
  box-shadow: 0 3px 0 rgba(31, 44, 35, 0.13);
  transform: rotate(-7deg);
}

.brand-mark svg {
  width: 32px;
  height: 32px;
  display: block;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 19px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 253, 248, 0.46);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.status-chip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6b936f;
  box-shadow: 0 0 0 3px rgba(107, 147, 111, 0.12);
}

.header-edition {
  padding-left: 19px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.header-history-link {
  text-decoration: none;
  transition: color 160ms ease;
}

.header-history-link:hover {
  color: var(--coral-deep);
}

.stage {
  flex: 1;
  padding: 60px 0 76px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 500px);
  align-items: start;
  gap: clamp(52px, 7.4vw, 104px);
}

/* Intro */

.intro {
  max-width: 670px;
  padding-top: 29px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 27px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.eyebrow-line {
  width: 38px;
  height: 1px;
  flex: 0 0 auto;
  background: var(--ink);
  opacity: 0.65;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(62px, 6.4vw, 92px);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.065em;
}

.title-lead {
  display: block;
}

.title-accent {
  position: relative;
  display: inline-block;
  padding-bottom: 13px;
  color: var(--coral);
  white-space: nowrap;
}

.title-scribble {
  position: absolute;
  left: -1%;
  bottom: -4px;
  width: 102%;
  height: 15px;
  color: rgba(201, 78, 50, 0.66);
  overflow: visible;
}

.poll-topic {
  max-width: 540px;
  margin-top: 26px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
}

.poll-topic-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.poll-topic-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--coral-deep);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.poll-topic-label i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 3px rgba(233, 101, 69, 0.1);
}

.topic-edit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 0;
  border-bottom: 1px solid transparent;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition:
    color 160ms ease,
    border-color 160ms ease;
}

.topic-edit:hover {
  color: var(--ink);
  border-bottom-color: var(--line-strong);
}

.topic-edit svg {
  width: 12px;
  height: 12px;
}

.topic-question {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 2.5vw, 34px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.intro-copy {
  max-width: 478px;
  margin: 11px 0 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.8;
  letter-spacing: 0.015em;
  text-wrap: pretty;
}

.topic-cover {
  width: 100%;
  max-width: 460px;
  margin: 17px 0 0;
  overflow: hidden;
  border: 1px solid rgba(31, 44, 35, 0.13);
  border-radius: 18px;
  aspect-ratio: 1 / 1;
  background: rgba(255, 253, 248, 0.55);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 14px 30px -22px rgba(31, 44, 35, 0.4);
}

.topic-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.035em;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.meta-item svg {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.meta-history-link {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    color 160ms ease,
    border-color 160ms ease;
}

.meta-history-link:hover {
  color: var(--coral-deep);
  border-bottom-color: currentColor;
}

.meta-dot {
  width: 3px;
  height: 3px;
  margin: 0 1px;
  border-radius: 50%;
  background: var(--line-strong);
}

.editor-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  max-width: 330px;
  margin: 41px 0 0;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.note-mark {
  color: var(--coral);
  font-family: var(--font-display);
  font-size: 29px;
  line-height: 0.8;
  opacity: 0.65;
}

.editor-note p {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.04em;
}

.note-rule {
  display: none;
}

/* Poll panel */

.poll-panel {
  position: relative;
  width: 100%;
  scroll-margin-top: 18px;
  padding: 28px 28px 22px;
  border: 1px solid rgba(72, 57, 36, 0.16);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.97), rgba(255, 249, 239, 0.91)),
    var(--card);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    var(--shadow-card);
  animation: panel-in 750ms 80ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.poll-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 38px;
  right: 38px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--coral), var(--yellow) 48%, rgba(244, 201, 93, 0));
  opacity: 0.9;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 2px 1px 20px;
  border-bottom: 1px dashed var(--line-strong);
}

.panel-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.19em;
}

.panel-kicker-dot {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 3px rgba(233, 101, 69, 0.1);
}

.panel-kicker-text {
  display: inline-block;
}

.panel-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.option-count {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 54px;
  padding-top: 1px;
}

.option-count strong {
  color: var(--coral);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.option-count span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.panel-body {
  padding-top: 20px;
}

/* Loading */

.loading-state {
  display: grid;
  gap: 10px;
}

.skeleton-row {
  position: relative;
  min-height: 76px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
}

.skeleton-row::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 15%, rgba(255, 255, 255, 0.58) 48%, transparent 80%);
  transform: translateX(-110%);
  animation: skeleton-sweep 1.55s 250ms ease-in-out infinite;
}

.skeleton-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 13px;
  background: rgba(31, 44, 35, 0.075);
}

.skeleton-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton-lines i {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(31, 44, 35, 0.075);
}

.skeleton-lines i:first-child {
  width: 46%;
}

.skeleton-lines i:last-child {
  width: 32%;
  height: 6px;
  opacity: 0.72;
}

.loading-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 9px 0 1px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.spinner {
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--line-strong);
  border-top-color: var(--coral);
  border-radius: 50%;
  animation: spin 750ms linear infinite;
}

/* Options */

.options {
  display: grid;
  gap: 10px;
}

.option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 77px;
  padding: 13px 14px 13px 15px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.43);
  cursor: pointer;
  user-select: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
  animation: option-in 500ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
  animation-delay: calc(var(--option-index, 0) * 55ms + 130ms);
}

.option input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.option:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 44, 35, 0.28);
  background: rgba(255, 255, 255, 0.75);
}

.option:has(input:focus-visible) {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

.option:has(input:checked),
.option.is-selected {
  border-color: rgba(31, 44, 35, 0.72);
  background: var(--card-bright);
  box-shadow:
    0 0 0 3px rgba(31, 44, 35, 0.055),
    0 7px 18px -15px rgba(31, 44, 35, 0.4);
}

.option-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--tone);
  background: var(--tone-soft);
  transition: transform 180ms ease;
}

.option:hover .option-icon {
  transform: rotate(-3deg) scale(1.03);
}

.option-icon svg {
  width: 24px;
  height: 24px;
}

.option-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.option-title {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.015em;
}

.option-subtitle {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.015em;
}

.option-radio {
  position: relative;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border: 1.5px solid rgba(31, 44, 35, 0.22);
  border-radius: 50%;
  transition:
    border-color 160ms ease,
    background-color 160ms ease;
}

.option-radio::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--card-bright);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.option input:checked ~ .option-radio {
  border-color: var(--ink);
  background: var(--ink);
}

.option input:checked ~ .option-radio::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.tone-0 {
  --tone: #d75b3e;
  --tone-soft: #f9dfd4;
}

.tone-1 {
  --tone: #a87b1f;
  --tone-soft: #f4e7bd;
}

.tone-2 {
  --tone: #4f7c65;
  --tone-soft: #dfeadd;
}

.tone-3 {
  --tone: #5b6f8a;
  --tone-soft: #e2e8ee;
}

/* Submit */

.submit-button {
  width: 100%;
  min-height: 58px;
  margin-top: 16px;
  padding: 8px 9px 8px 22px;
  border: 0;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #fffdf6;
  background: var(--ink);
  box-shadow: 0 12px 24px -14px rgba(31, 44, 35, 0.62);
  cursor: pointer;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.submit-button:not(:disabled):hover {
  transform: translateY(-1px);
  background: #29382d;
  box-shadow: 0 15px 28px -14px rgba(31, 44, 35, 0.68);
}

.submit-button:not(:disabled):active {
  transform: translateY(0);
}

.submit-button:disabled {
  color: rgba(255, 253, 246, 0.62);
  background: #b9b9ae;
  box-shadow: none;
  cursor: not-allowed;
}

.submit-label {
  flex: 1;
  text-align: left;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
}

.submit-arrow {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--yellow);
  transition: background-color 180ms ease;
}

.submit-button:disabled .submit-arrow {
  color: rgba(255, 253, 246, 0.6);
  background: rgba(255, 255, 255, 0.14);
}

.submit-arrow svg {
  width: 21px;
  height: 21px;
}

.submit-button.is-loading .submit-arrow svg {
  display: none;
}

.submit-button.is-loading .submit-arrow::after {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(31, 44, 35, 0.25);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 650ms linear infinite;
}

.form-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.025em;
}

.form-hint svg {
  width: 13px;
  height: 13px;
  opacity: 0.8;
}

.form-error {
  margin: 10px 2px 0;
  padding: 9px 11px;
  border-radius: 9px;
  color: #9b3b27;
  background: rgba(233, 101, 69, 0.1);
  font-size: 11.5px;
  line-height: 1.5;
}

/* Results */

.results {
  animation: results-in 520ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.result-intro {
  padding: 1px 2px 0;
}

.success-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  color: #456d4e;
  background: #e7efe2;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.success-icon {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fffdf6;
  background: #5c8463;
}

.success-icon svg {
  width: 15px;
  height: 15px;
}

.result-label {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.result-count {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin: 0;
  line-height: 0.9;
}

.result-count strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 66px;
  font-weight: 600;
  line-height: 0.84;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}

.result-count strong.is-pulsing {
  animation: count-pop 480ms ease;
}

.result-count > span {
  padding-bottom: 5px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.result-personal {
  max-width: 100%;
  margin: 17px 0 0;
  padding: 8px 12px;
  border-left: 2px solid var(--coral);
  border-radius: 0 8px 8px 0;
  color: var(--ink-soft);
  background: rgba(233, 101, 69, 0.055);
  font-size: 11.5px;
  line-height: 1.65;
  letter-spacing: 0.015em;
}

.result-divider {
  height: 1px;
  margin: 22px 2px 20px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 4px, transparent 4px 8px);
}

.results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
}

.results-heading h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.live-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
}

.live-label i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6f9774;
  box-shadow: 0 0 0 3px rgba(111, 151, 116, 0.12);
  animation: live-pulse 2.4s ease-in-out infinite;
}

.result-list {
  display: grid;
  gap: 15px;
}

.result-row {
  animation: option-in 450ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
  animation-delay: calc(var(--result-index, 0) * 60ms + 100ms);
}

.result-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 7px;
}

.result-name {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.result-name::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--tone);
}

.result-name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-figures {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}

.result-percent {
  color: var(--tone);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}

.result-votes {
  color: var(--muted);
  font-size: 9.5px;
}

.result-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(31, 44, 35, 0.07);
  overflow: hidden;
}

.result-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--tone);
  transition: width 720ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.results-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.share-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease;
}

.share-button:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.65);
}

.share-button svg {
  width: 14px;
  height: 14px;
}

.updated {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.03em;
  text-align: right;
}

/* Error */

.error-state {
  padding: 38px 14px 30px;
  text-align: center;
}

.error-mark {
  width: 46px;
  height: 46px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201, 78, 50, 0.3);
  border-radius: 50%;
  color: var(--coral-deep);
  background: rgba(233, 101, 69, 0.08);
  font-family: var(--font-display);
  font-size: 21px;
  font-style: italic;
}

.error-state h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}

.error-state p {
  margin: 9px 0 19px;
  color: var(--muted);
  font-size: 12px;
}

.retry-button {
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  color: var(--card-bright);
  background: var(--ink);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  cursor: pointer;
}

/* Card footer */

.panel-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.025em;
}

.privacy-line {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.privacy-line svg {
  width: 13px;
  height: 13px;
  opacity: 0.75;
}

.footer-hint {
  font-weight: 500;
  letter-spacing: 0.06em;
}

/* Page footer & toast */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 21px 0 30px;
  border-top: 1px solid var(--line);
  color: #878b80;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.13em;
}

.footer-stamp {
  color: var(--ink-soft);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.19em;
}

.footer-history-link {
  color: var(--ink-soft);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    color 160ms ease,
    border-color 160ms ease;
}

.footer-history-link:hover,
.footer-history-link.is-current {
  color: var(--coral-deep);
  border-bottom-color: currentColor;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 300;
  max-width: calc(100vw - 32px);
  padding: 11px 17px;
  border-radius: 999px;
  color: #fffdf6;
  background: var(--ink);
  box-shadow: 0 12px 30px -12px rgba(31, 44, 35, 0.55);
  font-size: 11.5px;
  letter-spacing: 0.025em;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* Desk pet */

.desk-pet {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 124px;
  aspect-ratio: 393 / 383;
  cursor: grab;
  opacity: 0;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
  outline: none;
  transition: opacity 220ms ease;
}

.desk-pet.is-ready {
  opacity: 1;
}

.desk-pet img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 14px 13px rgba(31, 44, 35, 0.22));
  transition: transform 180ms ease;
}

.desk-pet::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: -1px;
  height: 9px;
  z-index: -1;
  border-radius: 50%;
  background: rgba(31, 44, 35, 0.2);
  filter: blur(6px);
}

.desk-pet:hover img {
  transform: translateY(-2px) rotate(-1deg);
}

.desk-pet.is-dragging {
  cursor: grabbing;
}

.desk-pet.is-dragging img {
  transform: scale(1.035) rotate(-2deg);
}

.desk-pet:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 4px;
  border-radius: 44%;
}

.desk-pet-hint {
  position: absolute;
  top: -5px;
  right: -5px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 253, 248, 0.18);
  border-radius: 999px;
  color: var(--card-bright);
  background: var(--ink);
  box-shadow: 0 7px 16px -8px rgba(31, 44, 35, 0.55);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  pointer-events: none;
  animation: pet-hint-float 2.6s ease-in-out infinite;
}

.desk-pet-hint[hidden] {
  display: none;
}

/* Keep the pet above phone browser toolbars and the home indicator. */
@media (max-width: 640px) {
  :root {
    --pet-bottom-gap: 52px;
  }
}

@keyframes pet-hint-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.noscript-note {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 400;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 12px 16px;
  border: 1px solid var(--coral);
  border-radius: 10px;
  color: var(--coral-deep);
  background: var(--card);
  font-size: 13px;
  transform: translateX(-50%);
}

/* Entrance */

.intro > * {
  animation: rise-in 680ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.intro > :nth-child(1) {
  animation-delay: 40ms;
}

.intro > :nth-child(2) {
  animation-delay: 90ms;
}

.intro > :nth-child(3) {
  animation-delay: 150ms;
}

.intro > :nth-child(4) {
  animation-delay: 210ms;
}

.intro > :nth-child(5) {
  animation-delay: 270ms;
}

/* Motion */

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

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes option-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes results-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes count-pop {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.07);
    color: var(--coral);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes live-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(111, 151, 116, 0.12);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(111, 151, 116, 0.05);
  }
}

@keyframes skeleton-sweep {
  0% {
    transform: translateX(-110%);
  }
  60%,
  100% {
    transform: translateX(110%);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Photo options */

.option.has-photo {
  min-height: 90px;
  padding-left: 13px;
}

.option-photo {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border-radius: 15px;
  object-fit: cover;
  background: var(--tone-soft);
  box-shadow: 0 6px 14px -10px rgba(31, 44, 35, 0.55);
  transition: transform 180ms ease;
}

.option:hover .option-photo {
  transform: scale(1.025) rotate(-1deg);
}

.option-tag {
  align-self: flex-start;
  margin-top: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  color: #8a4a2b;
  background: #f8e2d6;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.result-thumb {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 7px;
  object-fit: cover;
  background: rgba(31, 44, 35, 0.06);
}

.result-name:has(.result-thumb)::before {
  display: none;
}

.result-name-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Photo entry invitation */

.candidate-invite[hidden],
.candidate-photo-placeholder[hidden],
.candidate-photo img[hidden],
.candidate-photo-remove[hidden],
.candidate-photo-loading[hidden],
.candidate-error[hidden] {
  display: none;
}

.candidate-invite {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 15px 16px;
  border: 1px dashed rgba(31, 44, 35, 0.26);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.46);
}

.candidate-invite-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--coral-deep);
  background: #f8e3d8;
}

.candidate-invite-mark svg {
  width: 23px;
  height: 23px;
}

.candidate-invite-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.candidate-invite-copy h3 {
  margin: 3px 0 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.candidate-invite-copy > p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.55;
}

.candidate-invite-note {
  color: var(--coral-deep) !important;
  font-weight: 600;
}

.candidate-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--card-bright);
  background: var(--ink);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    opacity 160ms ease;
}

.candidate-open:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #29382d;
}

.candidate-open svg {
  width: 13px;
  height: 13px;
}

.candidate-open:disabled,
.candidate-open.is-disabled {
  border-color: var(--line-strong);
  color: var(--muted);
  background: transparent;
  cursor: not-allowed;
  opacity: 0.72;
}

/* Photo entry dialog */

.candidate-dialog {
  width: min(480px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 32px));
  padding: 0;
  border: 1px solid rgba(72, 57, 36, 0.15);
  border-radius: 26px;
  color: var(--ink);
  background: var(--card);
  box-shadow: 0 30px 70px -25px rgba(31, 44, 35, 0.55);
  overflow: auto;
}

.candidate-dialog[open] {
  animation: candidate-dialog-in 220ms ease both;
}

.candidate-dialog::backdrop {
  background: rgba(31, 44, 35, 0.46);
  backdrop-filter: blur(3px);
}

.candidate-form {
  display: grid;
  gap: 15px;
  padding: 24px;
}

.candidate-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.candidate-dialog-kicker {
  margin: 0;
  color: var(--coral-deep);
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.candidate-dialog-head h2 {
  margin: 5px 0 0;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.candidate-dialog-head p:not(.candidate-dialog-kicker) {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.candidate-close {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  background: transparent;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}

.candidate-close:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
}

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

.candidate-field > span {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.candidate-field small {
  margin-left: 4px;
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 400;
}

.candidate-field input,
.candidate-field textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.65;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.candidate-field textarea {
  min-height: 82px;
  resize: vertical;
}

.candidate-field input::placeholder,
.candidate-field textarea::placeholder {
  color: #a4a197;
}

.candidate-field input:focus,
.candidate-field textarea:focus {
  border-color: rgba(233, 101, 69, 0.64);
  outline: none;
  background: var(--card-bright);
  box-shadow: 0 0 0 3px rgba(233, 101, 69, 0.09);
}

.candidate-photo-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.candidate-photo-label {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.candidate-photo-label small {
  margin-left: 4px;
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 400;
}

.candidate-photo {
  position: relative;
  min-height: 196px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(31, 44, 35, 0.28);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  overflow: hidden;
  transition:
    border-color 160ms ease,
    background-color 160ms ease;
}

.candidate-photo:hover {
  border-color: rgba(31, 44, 35, 0.45);
  background: rgba(255, 255, 255, 0.7);
}

.candidate-photo:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

.candidate-photo.is-processing {
  cursor: progress;
}

.candidate-photo img {
  display: block;
  width: 100%;
  max-height: 330px;
  object-fit: contain;
  background: #f4eee2;
}

.candidate-photo-placeholder {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 30px 16px;
  text-align: center;
}

.candidate-photo-placeholder > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 5px;
  border-radius: 50%;
  color: var(--coral-deep);
  background: #f8e3d8;
  font-size: 24px;
  font-weight: 300;
}

.candidate-photo-placeholder p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}

.candidate-photo-placeholder small {
  color: var(--muted);
  font-size: 9px;
}

.candidate-photo-remove {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(31, 44, 35, 0.18);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.92);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.candidate-photo-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink-soft);
  background: rgba(253, 249, 240, 0.84);
  font-size: 11px;
  font-weight: 600;
}

.candidate-error {
  margin: 0;
  padding: 9px 11px;
  border-radius: 10px;
  color: var(--coral-deep);
  background: rgba(233, 101, 69, 0.08);
  font-size: 10.5px;
  line-height: 1.55;
}

.candidate-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 2px;
}

.candidate-cancel {
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  background: transparent;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
}

.candidate-submit {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border: 0;
  border-radius: 999px;
  color: var(--card-bright);
  background: var(--ink);
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    opacity 160ms ease;
}

.candidate-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #29382d;
}

.candidate-submit:disabled {
  background: #b9b9ae;
  cursor: not-allowed;
}

.candidate-submit svg {
  width: 15px;
  height: 15px;
}

.candidate-submit.is-loading svg {
  display: none;
}

.candidate-submit.is-loading::after {
  content: "";
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255, 253, 246, 0.35);
  border-top-color: var(--card-bright);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes candidate-dialog-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Tablet */

@media (max-width: 1040px) {
  .site-shell {
    width: min(1240px, calc(100% - 64px));
  }

  .layout {
    grid-template-columns: minmax(0, 1fr) minmax(400px, 455px);
    gap: 48px;
  }

  .hero-title {
    font-size: clamp(58px, 6.4vw, 76px);
  }

  .intro-copy {
    max-width: 420px;
  }
}

@media (max-width: 900px) {
  .site-shell {
    width: calc(100% - 56px);
  }

  .page-background::after {
    background:
      linear-gradient(180deg, rgba(244, 238, 226, 0.84) 0%, rgba(244, 238, 226, 0.72) 50%, rgba(244, 238, 226, 0.86) 100%),
      radial-gradient(circle at 80% 10%, rgba(244, 201, 93, 0.08), transparent 34%);
  }

  .stage {
    padding: 43px 0 62px;
  }

  .layout {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .intro {
    max-width: 680px;
    padding-top: 0;
  }

  .hero-title {
    font-size: clamp(58px, 9.3vw, 82px);
  }

  .intro-copy {
    max-width: 520px;
  }

  .editor-note {
    margin-top: 33px;
  }

  .poll-panel {
    max-width: 640px;
  }
}

/* Mobile */

@media (max-width: 640px) {
  .site-shell {
    width: calc(100% - 32px);
  }

  .site-header {
    padding: 18px 0 16px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 39px;
    height: 39px;
  }

  .brand-mark svg {
    width: 28px;
    height: 28px;
  }

  .brand-copy strong {
    font-size: 15px;
  }

  .brand-copy small {
    font-size: 7.5px;
  }

  .header-meta {
    gap: 12px;
  }

  .status-chip {
    padding: 6px 10px;
    font-size: 9.5px;
    letter-spacing: 0.035em;
  }

  .header-edition {
    display: none;
  }

  .header-history-link {
    display: inline-flex;
    padding-left: 10px;
    font-size: 8px;
    letter-spacing: 0.04em;
  }

  .stage {
    padding: 32px 0 50px;
  }

  .eyebrow {
    gap: 9px;
    margin-bottom: 22px;
    font-size: 8.5px;
    letter-spacing: 0.16em;
  }

  .eyebrow-line {
    width: 26px;
  }

  .hero-title {
    font-size: clamp(48px, 14.5vw, 66px);
    line-height: 1.04;
    letter-spacing: -0.06em;
  }

  .title-accent {
    padding-bottom: 10px;
  }

  .title-scribble {
    height: 11px;
    bottom: -2px;
  }

  .poll-topic {
    margin-top: 22px;
    padding-top: 15px;
  }

  .poll-topic-top {
    margin-bottom: 6px;
  }

  .topic-question {
    font-size: clamp(22px, 6.2vw, 26px);
    line-height: 1.38;
  }

  .topic-edit {
    font-size: 9px;
  }

  .topic-cover {
    max-width: none;
    margin-top: 13px;
    border-radius: 14px;
    aspect-ratio: 1 / 1;
  }

  .intro-copy {
    margin-top: 9px;
    font-size: 13px;
    line-height: 1.75;
  }

  .meta-row {
    gap: 9px;
    margin-top: 20px;
    font-size: 10.5px;
  }

  .meta-item svg {
    width: 14px;
    height: 14px;
  }

  .editor-note {
    margin-top: 28px;
    padding-top: 14px;
  }

  .editor-note p {
    font-size: 14.5px;
  }

  .note-mark {
    font-size: 25px;
  }

  .layout {
    gap: 33px;
  }

  .poll-panel {
    padding: 20px 18px 18px;
    border-radius: 24px;
  }

  .poll-panel::before {
    left: 30px;
    right: 30px;
  }

  .panel-head {
    padding-bottom: 16px;
  }

  .panel-kicker {
    margin-bottom: 6px;
    font-size: 7.5px;
  }

  .panel-title {
    font-size: 20px;
  }

  .option-count strong {
    font-size: 23px;
  }

  .panel-body {
    padding-top: 16px;
  }

  .loading-state {
    gap: 8px;
  }

  .skeleton-row {
    min-height: 69px;
    padding: 12px;
    border-radius: 15px;
  }

  .skeleton-icon {
    width: 40px;
    height: 40px;
  }

  .option {
    min-height: 70px;
    gap: 11px;
    padding: 12px;
    border-radius: 15px;
  }

  .option-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .option-icon svg {
    width: 22px;
    height: 22px;
  }

  .option-title {
    font-size: 13.5px;
  }

  .option-subtitle {
    font-size: 10.5px;
  }

  .option-radio {
    width: 19px;
    height: 19px;
  }

  .option.has-photo {
    min-height: 82px;
  }

  .option-photo {
    width: 56px;
    height: 56px;
    border-radius: 13px;
  }

  .candidate-invite {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 11px;
    padding: 13px;
  }

  .candidate-invite-mark {
    width: 38px;
    height: 38px;
    align-self: start;
    border-radius: 11px;
  }

  .candidate-invite-mark svg {
    width: 20px;
    height: 20px;
  }

  .candidate-invite-copy h3 {
    font-size: 15px;
  }

  .candidate-open {
    grid-column: 1 / -1;
    justify-content: center;
    width: 100%;
  }

  .candidate-form {
    padding: 19px;
    gap: 13px;
  }

  .candidate-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    border-radius: 22px;
  }

  .candidate-dialog-head h2 {
    font-size: 22px;
  }

  .candidate-photo {
    min-height: 170px;
  }

  .submit-button {
    min-height: 55px;
    margin-top: 14px;
    padding-left: 18px;
    border-radius: 14px;
  }

  .submit-label {
    font-size: 12.5px;
  }

  .submit-arrow {
    width: 38px;
    height: 38px;
  }

  .form-hint {
    font-size: 9.5px;
  }

  .success-chip {
    margin-bottom: 18px;
    font-size: 10px;
  }

  .result-count strong {
    font-size: 58px;
  }

  .result-count > span {
    padding-bottom: 4px;
    font-size: 11.5px;
  }

  .result-personal {
    margin-top: 14px;
    font-size: 10.8px;
  }

  .result-divider {
    margin: 19px 2px 17px;
  }

  .results-heading h3 {
    font-size: 17px;
  }

  .result-list {
    gap: 13px;
  }

  .results-footer {
    margin-top: 20px;
    padding-top: 15px;
  }

  .share-button {
    padding: 8px 11px;
    font-size: 10px;
  }

  .updated {
    font-size: 8.5px;
  }

  .panel-footer {
    margin-top: 17px;
    padding-top: 14px;
    font-size: 8.8px;
  }

  .site-footer {
    flex-wrap: wrap;
    gap: 7px 16px;
    padding: 17px 0 24px;
    font-size: 8px;
  }

  .footer-stamp {
    order: 3;
    width: 100%;
    margin-top: 2px;
    text-align: center;
    font-size: 7.5px;
  }

  .toast {
    bottom: 18px;
    font-size: 11px;
  }

  .ambient-sun {
    width: 340px;
    height: 340px;
    top: 110px;
    right: -180px;
  }

  .page-background {
    height: 100vh;
    height: 100lvh;
  }

  .page-background::after {
    background:
      linear-gradient(180deg, rgba(244, 238, 226, 0.9) 0%, rgba(244, 238, 226, 0.8) 52%, rgba(244, 238, 226, 0.92) 100%),
      radial-gradient(circle at 80% 10%, rgba(244, 201, 93, 0.06), transparent 34%);
  }

  .desk-pet {
    width: 98px;
  }

  .desk-pet-hint {
    font-size: 8px;
    padding: 4px 7px;
  }
}

/* A landscape photo cannot fill a portrait phone screen without being
   blown up ~3x and center-cropped, so show the whole frame at the top of
   the screen and fade it into a blurred, colour-matched fill. Portrait and
   square photos keep the normal full-bleed cover. */
@media (max-width: 640px) and (orientation: portrait) {
  body.page-background-wide {
    background: var(--paper);
  }

  body.page-background-wide .page-background::before {
    display: block;
  }

  body.page-background-wide .page-background img {
    width: 100%;
    height: auto;
    max-height: 58vh;
    max-height: 58svh;
    object-fit: contain;
    object-position: center top;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
  }

  body.page-background-wide .page-background::after {
    background:
      linear-gradient(180deg, rgba(244, 238, 226, 0.62) 0%, rgba(244, 238, 226, 0.8) 24%, rgba(244, 238, 226, 0.9) 54%, rgba(244, 238, 226, 0.94) 100%),
      radial-gradient(circle at 80% 10%, rgba(244, 201, 93, 0.06), transparent 34%);
  }
}

@media (max-width: 400px) {
  .site-shell {
    width: calc(100% - 24px);
  }

  .status-chip {
    font-size: 8.8px;
  }

  .hero-title {
    font-size: clamp(46px, 14.8vw, 58px);
  }

  .poll-topic {
    margin-top: 19px;
  }

  .topic-question {
    font-size: 21px;
  }

  .desk-pet {
    width: 86px;
  }

  .poll-panel {
    padding-left: 15px;
    padding-right: 15px;
  }

  .option {
    gap: 9px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .option-icon {
    width: 37px;
    height: 37px;
  }

  .updated {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
