.ballot-page { background: var(--ivory); color: var(--ink); font-family: "Instrument Sans", sans-serif; }
.ballot-page h1, .ballot-page h2, .ballot-page h3 { font-family: inherit; font-weight: 700; letter-spacing: -.04em; }
.ballot-header, .ballot-main, .ballot-footer, .ballot-noscript { width: min(100% - 48px, 860px); margin-inline: auto; }
.ballot-header { padding-block: 27px 30px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.ballot-header > a { width: 240px; flex-shrink: 0; }
.ballot-header img { width: 100%; height: auto; }
[data-save-status] { color: #60544d; text-align: right; font-size: 13px; line-height: 1.4; max-width: 250px; }
[data-save-status][data-state="retry"], [data-save-status][data-state="expired"], [data-save-status][data-state="invalid"] { color: #97001f; }
.ballot-main { min-height: 65vh; outline: none; padding-bottom: 48px; }
.ballot-main h1 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.03; max-width: 790px; text-wrap: balance; }
.ballot-main p { font-size: 18px; line-height: 1.5; }
.ballot-kicker { color: #655b55; margin-bottom: 14px; }
.ballot-main .ballot-lead { margin-top: 18px; max-width: 650px; font-size: 21px; letter-spacing: -.02em; }
.movie-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px 24px; margin-top: 32px; }
.movie-choice { position: relative; display: block; align-self: start; width: 100%; border: 0; background: none; padding: 0; text-align: left; color: inherit; cursor: pointer; }
.movie-choice img { aspect-ratio: 1.7; object-fit: cover; border-radius: 6px; outline: 2px solid transparent; outline-offset: 2px; }
.movie-choice[aria-pressed="true"] img { outline-color: var(--velvet-red); }
.movie-choice strong { display: block; margin-top: 12px; font-size: 22px; line-height: 1.12; letter-spacing: -.025em; }
.movie-choice small { display: block; margin-top: 5px; color: #655b55; font-size: 17px; line-height: 1.3; }
.movie-choice:hover img { outline-color: #a69488; }
.movie-choice[aria-pressed="true"]:hover img { outline-color: var(--velvet-red); }
.movie-choice--other { display: flex; flex-direction: column; justify-content: center; align-items: start; padding: 24px; min-height: 180px; background: #f0e9de; border-radius: 6px; }
.movie-choice--other strong { margin: 0; font-size: 30px; }
.movie-choice--other[aria-pressed="true"] { outline: 2px solid var(--velvet-red); }
.ballot-main button:focus-visible, .ballot-main a:focus-visible, .ballot-footer a:focus-visible, .ballot-header a:focus-visible { outline: 3px solid var(--velvet-red); outline-offset: 5px; }
.ballot-primary { display: block; width: 100%; background: var(--velvet-red); color: white; border: 0; border-radius: 5px; min-height: 56px; padding: 14px 24px; font-weight: 600; font-size: 20px; cursor: pointer; text-align: center; text-decoration: none; }
.ballot-primary:hover { background: #97001f; }
.ballot-primary:disabled { opacity: .55; cursor: default; }
.ballot-link { border: 0; background: none; color: #655b55; font-size: 16px; cursor: pointer; text-underline-offset: 4px; text-decoration: underline; padding: 12px 0; }
.ballot-actions { display: flex; gap: 24px; justify-content: space-between; margin-top: 12px; flex-wrap: wrap; }
.ballot-main .ballot-fine { font-size: 14px; color: #655b55; margin-top: 16px; }
.ballot-choice-list { display: grid; gap: 12px; margin-block: 28px; padding: 0; border: 0; }
.ballot-choice-list legend { font-size: 24px; font-weight: 650; letter-spacing: -.02em; margin-bottom: 16px; }
.preference-choice { border: 1px solid #bfb2a7; border-radius: 5px; background: transparent; color: inherit; text-align: left; font-size: 19px; padding: 19px 20px; min-height: 64px; cursor: pointer; }
.preference-choice:hover { border-color: var(--velvet-red); }
.preference-choice[aria-pressed="true"] { border-color: var(--velvet-red); background: #f4e6e5; }
.ballot-result-photo { border-radius: 6px; width: 100%; height: auto; aspect-ratio: 1.5; object-fit: cover; margin-top: 24px; }
.ballot-main .result-label { margin-top: 26px; font-size: 13px; font-weight: 500; letter-spacing: .09em; color: #655b55; text-transform: uppercase; }
.result-atmospheres { display: grid; gap: 20px; margin-top: 18px; }
.result-atmosphere h3 { font-size: 21px; line-height: 1.2; letter-spacing: -.025em; }
.ballot-main .result-atmosphere p { margin-top: 5px; font-size: 20px; line-height: 1.4; color: #655b55; letter-spacing: -.015em; }
.ballot-main .result-custom { margin-top: 16px; font-size: 21px; }
.result-followup { margin-top: 28px; padding-top: 22px; border-top: 1px solid #d7cabe; }
.ballot-main .result-saved { font-weight: 600; }
.ballot-main .result-preferences { margin-top: 12px; font-size: 14px; color: #655b55; }
.result-primary { margin-top: 22px; }
.ballot-main .field-label { display: block; margin-top: 24px; font-size: 18px; font-weight: 600; }
.ballot-text { margin-top: 10px; border: 1px solid #9e8e82; border-radius: 5px; background: #fffdf8; color: var(--ink); width: 100%; padding: 15px; min-height: 56px; font: inherit; font-size: 18px; }
textarea.ballot-text { min-height: 120px; resize: vertical; }
.ballot-text:focus-visible { outline: 2px solid var(--velvet-red); outline-offset: 2px; }
.ballot-text + .ballot-primary, .ballot-fine + .ballot-primary { margin-top: 24px; }
.ballot-footer { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid #d7cabe; padding-block: 26px; color: #655b55; font-size: 13px; }
.ballot-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.ballot-footer button { font: inherit; color: inherit; border: 0; background: none; padding: 0; text-decoration: underline; cursor: pointer; }
@media (min-width: 1000px) {
  .ballot-main[data-screen="movies"], .ballot-header, .ballot-footer { width: min(100% - 96px, 1120px); }
  .movie-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px 26px; }
  .ballot-main[data-screen="result"] { width: min(100% - 96px, 760px); }
}
@media (max-width: 600px) {
  .ballot-header { padding-block: 20px 24px; gap: 12px; }
  .ballot-header > a { width: 178px; }
  [data-save-status] { font-size: 11px; max-width: 110px; }
  .ballot-main h1 { font-size: 34px; text-align: left; text-wrap: initial; }
  .ballot-main p { font-size: 16px; }
  .ballot-main .ballot-lead { font-size: 18px; }
  .movie-grid { gap: 24px 16px; margin-top: 26px; }
  .movie-choice strong { font-size: 17px; margin-top: 10px; }
  .movie-choice small { font-size: 15px; }
  .movie-choice--other { padding: 16px; min-height: 150px; }
  .movie-choice--other strong { font-size: 22px; }
  .result-atmosphere h3 { font-size: 19px; }
  .ballot-main .result-atmosphere p { font-size: 17px; }
  .ballot-footer { flex-direction: column; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) { .ballot-page { scroll-behavior: auto; } }
