:root {
  color-scheme: light;
  --ink: #211d17;
  --ink-soft: #665f54;
  --night: #111111;
  --night-2: #24211c;
  --paper: #f5f2eb;
  --white: #fffefa;
  --line: #e4dccb;
  --lime: #e5bd68;
  --lime-strong: #c39337;
  --gold: #f0cf83;
  --danger: #9e3326;
  --shadow: 0 18px 50px rgba(16, 44, 39, .09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.app-shell { min-height: 100vh; }
.boot-message { max-width: 920px; margin: 18vh auto; padding: 24px; color: var(--ink-soft); text-align: center; }

.site-topbar {
  height: 72px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1180px) / 2)); background: var(--night); color: #fff;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 13px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: var(--lime); color: var(--night); font-size: 19px; }
.topbar-label { color: #dce8db; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

.hero {
  position: relative; overflow: hidden; min-height: 325px; padding: 58px 24px 64px;
  background: radial-gradient(ellipse at 90% 15%, rgba(229,189,104,.2), transparent 31%), linear-gradient(115deg, var(--night), #1e1b17 68%, #392b17);
  color: white;
}
.hero-inner { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; }
.hero::after {
  content: ""; position: absolute; top: -110px; right: max(-110px, calc((100vw - 1450px) / 2));
  width: 490px; height: 490px; border: 1px solid rgba(231,248,212,.12); border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(231,248,212,.025), 0 0 0 84px rgba(231,248,212,.025), 0 0 0 126px rgba(231,248,212,.018);
}
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 17px; color: var(--lime); font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.hero h1 { max-width: 720px; margin: 0; font-size: clamp(42px, 6vw, 68px); line-height: .99; letter-spacing: -.055em; font-weight: 800; }
.hero h1 span { color: var(--lime); }
.hero-subtitle { max-width: 540px; margin: 21px 0 0; color: #d6e4dc; font-size: 16px; line-height: 1.6; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 27px; color: #eef4eb; font-size: 12px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.meta-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(200,243,107,.13); }

.main-wrap { max-width: 1120px; margin: -28px auto 0; padding: 0 24px 80px; position: relative; z-index: 2; }
.notice { padding: 17px 20px; margin-bottom: 22px; display: flex; gap: 14px; align-items: flex-start; border: 1px solid #e7d9ae; border-radius: 15px; background: #fff9e9; color: #5d4a1c; box-shadow: 0 8px 25px rgba(53, 44, 18, .04); font-size: 13px; line-height: 1.5; }
.notice-icon { flex: 0 0 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #f4dfaa; font-weight: 900; }
.notice strong { display: block; margin-bottom: 2px; color: #3f351d; }
.notice ul { margin: 6px 0 0; padding-left: 18px; }
.notice li + li { margin-top: 4px; }
.demo-ribbon { margin-bottom: 18px; padding: 10px 14px; border: 1px solid #b7d9ff; border-radius: 11px; background: #edf6ff; color: #184e7c; font-size: 12px; font-weight: 700; }

.progress-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; padding: 19px 22px; border: 1px solid var(--line); border-radius: 17px; background: var(--white); box-shadow: var(--shadow); }
.progress-copy { min-width: 160px; }
.progress-title { display: block; font-size: 14px; font-weight: 800; }
.progress-count { display: block; margin-top: 4px; color: var(--ink-soft); font-size: 12px; }
.progress-track { flex: 1; height: 9px; max-width: 610px; overflow: hidden; border-radius: 999px; background: #e8ede5; }
.progress-fill { width: 0; height: 100%; border-radius: inherit; background: var(--lime-strong); transition: width .25s ease; }
.progress-badge { min-width: 72px; padding: 8px 11px; border-radius: 10px; background: #eff7df; color: #314b16; text-align: center; font-size: 12px; font-weight: 800; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 30px 0 12px; }
.section-heading h2 { margin: 0; font-size: clamp(21px, 3vw, 28px); letter-spacing: -.035em; }
.section-heading p { margin: 6px 0 0; color: var(--ink-soft); font-size: 13px; }
.category-list { display: grid; gap: 14px; }
.category-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 5px 18px rgba(18,48,40,.035); }
.category-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 21px 12px; }
.category-title-wrap { display: flex; align-items: center; gap: 13px; }
.category-number { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; background: #f3ead7; color: #805d22; font-size: 12px; font-weight: 900; }
.category-title { margin: 0; font-size: 17px; letter-spacing: -.02em; }
.category-prompt { margin: 4px 0 0; color: #7b8981; font-size: 11px; }
.category-state { white-space: nowrap; color: #839087; font-size: 11px; font-weight: 700; }
.category-state.selected { color: #805d22; }
.candidate-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 9px; padding: 7px 20px 20px; }
.candidate { position: relative; display: flex; min-width: 0; align-items: center; gap: 10px; padding: 9px; border: 1px solid #e6ebe3; border-radius: 13px; background: #fff; transition: border-color .16s, background .16s, transform .16s, box-shadow .16s; cursor: pointer; }
.candidate:hover { transform: translateY(-1px); border-color: #b5ce90; box-shadow: 0 7px 18px rgba(31,62,36,.08); }
.candidate:has(input:checked) { border-color: #bd8c35; background: #fff8e9; box-shadow: inset 0 0 0 1px #bd8c35; }
.rank-candidate.selected { border-color: #bd8c35; background: #fff8e9; box-shadow: inset 0 0 0 1px #bd8c35; }
.candidate input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.candidate input:focus-visible + .candidate-inner .avatar { outline: 3px solid #9a6e21; outline-offset: 2px; }
.candidate-inner { display: flex; min-width: 0; flex: 1; align-items: center; gap: 10px; }
.avatar { flex: 0 0 46px; width: 46px; height: 46px; overflow: hidden; display: block; border-radius: 50%; background: #eaf0e3; }
.avatar svg { display: block; width: 100%; height: 100%; }
.candidate-name { overflow: hidden; color: #263b32; font-size: 12px; font-weight: 750; line-height: 1.25; text-overflow: ellipsis; }
.pick-mark { display: none; flex: 0 0 17px; width: 17px; height: 17px; margin-left: auto; place-items: center; border-radius: 50%; background: #9a6e21; color: #fff; font-size: 11px; font-weight: 900; }
.candidate:has(input:checked) .pick-mark { display: grid; }
.rank-select { flex: 0 0 58px; width: 58px; height: 34px; padding: 0 5px; border: 1px solid #d8e1d4; border-radius: 8px; background: #fff; color: var(--ink); font-size: 11px; font-weight: 800; }
.rank-candidate .candidate-name { flex: 1; }

.submit-area { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 26px 0 0; padding: 20px 0 0; border-top: 1px solid #d8e0d6; }
.submit-note { max-width: 450px; margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.5; }
.primary-button { min-height: 51px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 23px; border: 0; border-radius: 13px; background: var(--lime); color: var(--night); font-size: 14px; font-weight: 900; box-shadow: 0 8px 22px rgba(124,164,52,.19); transition: transform .15s, background .15s; }
.primary-button:hover:not(:disabled) { transform: translateY(-1px); background: #d6ff8a; }
.primary-button:disabled { cursor: not-allowed; opacity: .48; box-shadow: none; }
.button-arrow { font-size: 19px; line-height: 1; }
.form-message { display: none; margin: 12px 0 0; color: var(--danger); font-size: 12px; font-weight: 700; }
.form-message.visible { display: block; }

.state-view { max-width: 700px; margin: 85px auto 100px; padding: 0 24px; text-align: center; }
.state-icon { width: 70px; height: 70px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 22px; background: var(--lime); color: var(--night); font-size: 31px; }
.state-view h1 { margin: 0; font-size: clamp(31px, 6vw, 46px); letter-spacing: -.045em; }
.state-view p { max-width: 510px; margin: 12px auto 0; color: var(--ink-soft); font-size: 15px; line-height: 1.65; }
.state-view .primary-button { margin-top: 25px; }
.inline-error { margin-top: 13px !important; color: var(--danger) !important; font-size: 13px !important; }
.site-footer { display: flex; justify-content: space-between; gap: 16px; max-width: 1120px; margin: 0 auto; padding: 0 24px 26px; color: #839087; font-size: 11px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* Admin screen */
.admin-main { max-width: 940px; margin: 0 auto; padding: 42px 24px 80px; }
.admin-intro { margin-bottom: 25px; }
.admin-intro h1 { margin: 0; font-size: 38px; letter-spacing: -.045em; }
.admin-intro p { max-width: 600px; color: var(--ink-soft); line-height: 1.6; }
.admin-panel { margin-top: 16px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.admin-panel h2 { margin: 0 0 14px; font-size: 18px; }
.admin-row { display: flex; flex-wrap: wrap; align-items: end; gap: 13px; }
.field { flex: 1 1 210px; display: grid; gap: 6px; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.field input, .field textarea { width: 100%; min-height: 43px; padding: 10px 11px; border: 1px solid #d7cbb4; border-radius: 9px; background: #fff; color: var(--ink); }
.field textarea { resize: vertical; font: inherit; line-height: 1.5; }
.admin-button { min-height: 43px; padding: 0 15px; border: 0; border-radius: 9px; background: var(--night); color: #fff; font-size: 12px; font-weight: 800; }
.admin-button:hover { background: #255247; }
.admin-button.secondary { border: 1px solid #cdd8cb; background: #f6f8f1; color: var(--ink); }
.admin-button.danger { background: #8b332a; }
.check-row { display: flex; align-items: center; gap: 9px; margin: 15px 0; color: var(--ink); font-size: 13px; font-weight: 800; }
.check-row input { accent-color: #6f9d31; width: 17px; height: 17px; }
.admin-message { min-height: 18px; margin: 11px 0 0; color: var(--ink-soft); font-size: 12px; }
.admin-message.error { color: var(--danger); }
.admin-output { width: 100%; min-height: 114px; margin-top: 12px; padding: 12px; border: 1px solid #d5dfd1; border-radius: 10px; background: #f7f9f4; color: #24382e; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 12px; }
.admin-table th, .admin-table td { padding: 10px 8px; border-bottom: 1px solid #e6ebe3; text-align: left; }
.admin-table th { color: #7d8a80; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.table-wrap { overflow-x: auto; margin: 12px 0 18px; }
.field-note { margin: 10px 0 15px; color: var(--ink-soft); font-size: 12px; line-height: 1.5; }
.status-good { padding: 13px 17px; border: 1px solid #d4c294; border-radius: 12px; background: #fff8e9; color: #72551e; font-size: 13px; font-weight: 750; }
.panel-title-row { justify-content: space-between; }
.panel-title-row h2 { margin: 0; }
.report-emails { margin: 18px 0 12px; }
.auth-view { max-width: 580px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: var(--shadow); }
.auth-view .state-icon { margin-top: 4px; }
.otp-form { display: grid; gap: 13px; margin: 22px auto 0; text-align: left; }
.otp-form input { text-align: center; font-size: 22px; letter-spacing: .35em; }
.auth-note { font-size: 12px !important; }
.form-message.error { color: var(--danger); }
.admin-button:disabled { cursor: not-allowed; opacity: .45; }
.admin-results { display: grid; gap: 14px; }
.result-group { padding: 13px 0; border-bottom: 1px solid #e6ebe3; }
.result-group h3 { margin: 0 0 8px; font-size: 14px; }
.result-line { display: flex; justify-content: space-between; gap: 15px; padding: 4px 0; color: var(--ink-soft); font-size: 12px; }
.locked-admin { max-width: 440px; margin: 9vh auto; padding: 25px; border: 1px solid var(--line); border-radius: 17px; background: var(--white); box-shadow: var(--shadow); }
.locked-admin h1 { margin: 0 0 7px; font-size: 25px; letter-spacing: -.035em; }
.locked-admin p { color: var(--ink-soft); font-size: 13px; line-height: 1.5; }

@media (max-width: 920px) {
  .candidate-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .site-topbar { height: 62px; padding: 0 17px; }
  .topbar-label { font-size: 10px; }
  .hero { min-height: 310px; padding: 48px 20px 60px; }
  .hero::after { right: -250px; top: -65px; opacity: .75; }
  .hero-subtitle { font-size: 14px; }
  .main-wrap { padding: 0 14px 58px; }
  .notice { padding: 14px; font-size: 12px; }
  .progress-panel { flex-wrap: wrap; gap: 12px; padding: 15px; }
  .progress-copy { flex: 1; }
  .progress-track { order: 3; flex-basis: 100%; max-width: none; }
  .category-head { padding: 15px 14px 10px; }
  .candidate-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; padding: 6px 12px 14px; }
  .candidate { gap: 6px; padding: 7px; }
  .candidate-inner { gap: 7px; }
  .avatar { width: 40px; height: 40px; flex-basis: 40px; }
  .candidate-name { font-size: 11px; }
  .rank-candidate { gap: 6px; padding: 7px; }
  .rank-candidate .avatar { width: 34px; height: 34px; flex-basis: 34px; }
  .rank-select { flex-basis: 48px; width: 48px; height: 32px; font-size: 10px; }
  .submit-area { align-items: stretch; flex-direction: column; }
  .primary-button { width: 100%; }
  .site-footer { flex-direction: column; padding: 0 17px 22px; }
  .admin-main { padding: 30px 15px 60px; }
  .admin-panel { padding: 16px; }
  .admin-intro h1 { font-size: 32px; }
  .admin-table { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Ballin' d'Or visual identity: a midnight gala with warm metallic accents. */
body.ballot-page {
  color-scheme: dark;
  --ink: #f4efe5;
  --ink-soft: #a8a6a1;
  --night: #090c13;
  --night-2: #151c28;
  --paper: #090c13;
  --white: #141b27;
  --line: rgba(226, 191, 111, .18);
  --lime: #e5bd68;
  --lime-strong: #f0cf7b;
  --gold: #f8e1a5;
  --danger: #ff887d;
  --shadow: 0 20px 60px rgba(0, 0, 0, .28);
  background:
    radial-gradient(ellipse at 50% 0, rgba(63, 51, 34, .19), transparent 42%),
    #090c13;
  color: var(--ink);
}

.ballot-page .site-topbar {
  position: relative;
  z-index: 4;
  height: 82px;
  border-bottom: 1px solid rgba(229, 189, 104, .16);
  background: rgba(8, 11, 17, .93);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .16);
}
.ballot-page .brand { gap: 13px; letter-spacing: 0; text-transform: none; }
.ballot-page .brand-mark {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 238, 190, .5);
  border-radius: 14px;
  background: linear-gradient(145deg, #f8dfa0, #bd8731);
  box-shadow: 0 6px 20px rgba(202, 151, 62, .2), inset 0 1px 0 rgba(255,255,255,.55);
}
.ballot-page .brand-mark svg { width: 29px; height: 29px; fill: none; stroke: #15120c; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.ballot-page .brand-copy { display: grid; gap: 3px; }
.ballot-page .brand-title { color: #f7f2e8; font-size: 13px; font-weight: 850; letter-spacing: .055em; text-transform: uppercase; }
.ballot-page .brand-subtitle { color: #c69b50; font-size: 9px; font-weight: 800; letter-spacing: .19em; }
.ballot-page .topbar-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid rgba(229, 189, 104, .22);
  border-radius: 999px;
  background: rgba(229, 189, 104, .07);
  color: #e4d4b5;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .11em;
}
.ballot-page .topbar-label::before { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px rgba(229,189,104,.8); content: ""; }

.ballot-page .hero {
  min-height: 490px;
  padding: 51px 24px 73px;
  border-bottom: 1px solid rgba(229, 189, 104, .14);
  background:
    radial-gradient(ellipse at 78% 42%, rgba(190, 135, 45, .2), transparent 31%),
    radial-gradient(ellipse at 12% 100%, rgba(44, 57, 77, .34), transparent 46%),
    linear-gradient(112deg, #090c13 5%, #10151f 54%, #17140f 100%);
}
.ballot-page .hero::before {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(120deg, transparent 0 58px, rgba(255,255,255,.013) 59px 60px);
  content: "";
  pointer-events: none;
}
.ballot-page .hero::after {
  top: -185px;
  right: max(-84px, calc((100vw - 1510px) / 2));
  width: 630px;
  height: 630px;
  border-color: rgba(232, 193, 112, .12);
  box-shadow: 0 0 0 38px rgba(232,193,112,.025), 0 0 0 78px rgba(232,193,112,.022), 0 0 0 118px rgba(232,193,112,.018);
}
.ballot-page .hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr);
  align-items: center;
  gap: 24px;
  max-width: 1160px;
}
.ballot-page .hero-copy { position: relative; z-index: 2; padding: 25px 0 6px; }
.ballot-page .eyebrow { gap: 11px; margin-bottom: 20px; color: #e8c574; font-size: 10px; letter-spacing: .2em; }
.ballot-page .eyebrow::before { width: 29px; height: 2px; border-radius: 3px; }
.ballot-page .hero h1 {
  max-width: 670px;
  font-size: clamp(54px, 7.2vw, 88px);
  line-height: .93;
  letter-spacing: -.065em;
  text-shadow: 0 10px 45px rgba(0,0,0,.28);
}
.ballot-page .hero h1 span {
  color: transparent;
  background: linear-gradient(100deg, #fff1c6 2%, #e6c06f 51%, #b98231 100%);
  background-clip: text;
  -webkit-background-clip: text;
}
.ballot-page .hero-subtitle { max-width: 480px; margin-top: 20px; color: #c0c0c0; font-size: 15px; line-height: 1.75; }
.ballot-page .hero-meta { gap: 9px; margin-top: 27px; color: #eee7da; }
.ballot-page .hero-meta span {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(244, 224, 182, .15);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  color: #ded8cb;
  font-size: 10px;
  font-weight: 700;
}
.ballot-page .hero-meta .deadline-meta { border-color: rgba(229,189,104,.28); color: #f2d996; }
.ballot-page .meta-dot { width: 6px; height: 6px; background: #edc76f; box-shadow: 0 0 0 4px rgba(229,189,104,.11), 0 0 12px rgba(229,189,104,.6); }
.hero-art { position: relative; display: grid; min-height: 365px; place-items: center; isolation: isolate; }
.trophy-glow { position: absolute; width: 72%; aspect-ratio: 1; border-radius: 50%; background: rgba(207, 156, 69, .22); filter: blur(52px); }
.trophy-orbit { position: absolute; width: 77%; aspect-ratio: 1; border: 1px solid rgba(239,205,128,.2); border-radius: 50%; transform: rotate(-22deg) scaleY(.68); }
.orbit-two { width: 94%; border-color: rgba(239,205,128,.1); transform: rotate(24deg) scaleY(.72); }
.trophy-svg { position: relative; z-index: 1; width: min(100%, 355px); overflow: visible; filter: drop-shadow(0 24px 34px rgba(0,0,0,.47)); animation: trophy-float 6s ease-in-out infinite; }
.hero-art-caption { position: absolute; z-index: 2; right: 0; bottom: 3px; color: rgba(232,197,116,.68); font-size: 9px; font-weight: 800; letter-spacing: .22em; }
@keyframes trophy-float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-8px) rotate(1deg); } }

.ballot-page .main-wrap { max-width: 1160px; margin-top: -31px; padding-bottom: 72px; }
.ballot-page .demo-ribbon {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 13px 17px;
  border: 1px solid rgba(229,189,104,.31);
  border-radius: 13px;
  background: linear-gradient(100deg, rgba(146,99,32,.22), rgba(26,31,39,.93));
  color: #f1d58f;
  font-size: 11px;
  line-height: 1.5;
  box-shadow: 0 10px 28px rgba(0,0,0,.17);
}
.ballot-page .demo-ribbon::before { display: grid; flex: 0 0 24px; width: 24px; height: 24px; place-items: center; border: 1px solid rgba(240,207,123,.38); border-radius: 50%; content: "✦"; font-size: 11px; }
.ballot-page .progress-panel {
  gap: 22px;
  margin-bottom: 34px;
  padding: 20px 23px;
  border-color: rgba(230,193,112,.2);
  border-radius: 17px;
  background: linear-gradient(112deg, rgba(24,31,43,.98), rgba(18,23,32,.98));
  box-shadow: 0 18px 40px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.035);
}
.ballot-page .progress-title { color: #f5ecdc; font-size: 13px; }
.ballot-page .progress-count { color: #a9a9aa; font-size: 11px; }
.ballot-page .progress-track { height: 7px; background: #252d39; }
.ballot-page .progress-fill { background: linear-gradient(90deg, #a87930, #f2d488); box-shadow: 0 0 12px rgba(229,189,104,.35); }
.ballot-page .progress-badge { border: 1px solid rgba(229,189,104,.35); border-radius: 999px; background: rgba(229,189,104,.1); color: #f1d58f; }
.ballot-page .section-heading { align-items: center; margin: 0 0 17px; }
.ballot-page .section-kicker { margin: 0 0 7px; color: #bd9450; font-size: 9px; font-weight: 850; letter-spacing: .19em; }
.ballot-page .section-heading h2 { color: #f4eee3; font-size: clamp(26px, 4vw, 34px); letter-spacing: -.045em; }
.ballot-page .section-heading p:not(.section-kicker) { color: #a3a5a8; font-size: 12px; }
.ballot-page .section-counter { padding: 9px 12px; border: 1px solid rgba(229,189,104,.21); border-radius: 999px; color: #c7a45d; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.ballot-page .category-list { gap: 15px; }
.ballot-page .category-card {
  position: relative;
  border: 1px solid rgba(230,193,112,.17);
  border-radius: 17px;
  background: linear-gradient(120deg, rgba(22,29,41,.98), rgba(16,21,30,.98));
  box-shadow: 0 12px 30px rgba(0,0,0,.19), inset 0 1px 0 rgba(255,255,255,.025);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.ballot-page .category-card:hover { transform: translateY(-2px); border-color: rgba(230,193,112,.34); box-shadow: 0 18px 36px rgba(0,0,0,.26); }
.ballot-page .category-card::before { position: absolute; top: 21px; bottom: 21px; left: 0; width: 2px; border-radius: 0 3px 3px 0; background: linear-gradient(180deg, transparent, #d2a64f, transparent); content: ""; opacity: .85; }
.ballot-page .category-head { padding: 19px 22px 13px; }
.ballot-page .category-title-wrap { gap: 14px; }
.ballot-page .category-number {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,239,197,.55);
  border-radius: 14px;
  background: linear-gradient(145deg, #f3d88e, #a8772f);
  box-shadow: 0 5px 17px rgba(192,139,49,.19), inset 0 1px 0 rgba(255,255,255,.55);
  color: #17130c;
  font-size: 11px;
}
.ballot-page .category-title { color: #f2ede4; font-size: 16px; font-weight: 780; }
.ballot-page .category-prompt { color: #969ca5; font-size: 10px; }
.ballot-page .category-state { padding: 6px 9px; border: 1px solid rgba(255,255,255,.07); border-radius: 999px; color: #8f969f; font-size: 9px; }
.ballot-page .category-state.selected { border-color: rgba(229,189,104,.28); background: rgba(229,189,104,.08); color: #e9ca80; }
.ballot-page .candidate-grid { grid-template-columns: repeat(auto-fit, minmax(188px, 1fr)); gap: 9px; padding: 7px 20px 19px; }
.ballot-page .candidate {
  min-height: 67px;
  gap: 11px;
  padding: 8px 11px;
  border-color: rgba(206,214,224,.1);
  border-radius: 13px;
  background: linear-gradient(115deg, rgba(31,40,54,.9), rgba(23,29,40,.94));
}
.ballot-page .candidate:hover { transform: translateY(-2px); border-color: rgba(229,189,104,.52); background: linear-gradient(115deg, rgba(48,46,39,.98), rgba(28,34,43,.98)); box-shadow: 0 8px 20px rgba(0,0,0,.24); }
.ballot-page .candidate:has(input:checked) { border-color: #e1bd6b; background: linear-gradient(115deg, rgba(108,77,31,.5), rgba(38,39,39,.98)); box-shadow: inset 0 0 0 1px rgba(240,207,123,.4), 0 7px 22px rgba(177,129,45,.13); }
.ballot-page .avatar { width: 47px; height: 47px; flex-basis: 47px; border: 1px solid rgba(244,216,151,.56); background: #1e2531; box-shadow: 0 0 0 3px rgba(229,189,104,.07); }
.ballot-page .candidate-name { color: #f0eee8; font-size: 12px; font-weight: 750; }
.ballot-page .pick-mark { background: linear-gradient(145deg, #f3d88e, #b17b2d); color: #17130c; }
.ballot-page .candidate:has(input:checked) .candidate-name { color: #ffe7ad; }
.ballot-page .submit-area { border-color: rgba(230,193,112,.17); }
.ballot-page .submit-note { color: #999fa8; }
.ballot-page .primary-button {
  min-height: 54px;
  border: 1px solid rgba(255,239,197,.55);
  border-radius: 13px;
  background: linear-gradient(115deg, #f3d98f, #c38c37);
  color: #17130c;
  box-shadow: 0 10px 24px rgba(182,128,37,.22), inset 0 1px 0 rgba(255,255,255,.48);
}
.ballot-page .primary-button:hover:not(:disabled) { background: linear-gradient(115deg, #ffe9a8, #dfad55); }
.ballot-page .primary-button:disabled { border-color: rgba(214,194,150,.13); background: #353537; color: #99958d; opacity: 1; }
.ballot-page .form-message { color: #f3d38a; }
.ballot-page .site-footer { color: #737a83; }

@media (max-width: 800px) {
  .ballot-page .hero { min-height: 440px; }
  .ballot-page .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(250px, .72fr); gap: 5px; }
  .ballot-page .hero h1 { font-size: clamp(48px, 7vw, 68px); }
  .hero-art { min-height: 310px; }
  .trophy-svg { width: min(100%, 300px); }
  .ballot-page .candidate-grid { grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); }
}

@media (max-width: 640px) {
  .ballot-page .site-topbar { height: 68px; padding: 0 15px; }
  .ballot-page .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
  .ballot-page .brand-title { max-width: 190px; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  .ballot-page .brand-subtitle { font-size: 8px; }
  .ballot-page .topbar-label { padding: 8px 10px; font-size: 8px; letter-spacing: .07em; }
  .ballot-page .hero { min-height: auto; padding: 35px 18px 57px; }
  .ballot-page .hero-inner { grid-template-columns: 1fr; gap: 0; }
  .ballot-page .hero-copy { padding: 7px 0 0; }
  .ballot-page .eyebrow { margin-bottom: 14px; font-size: 8px; }
  .ballot-page .hero h1 { font-size: clamp(48px, 14vw, 67px); }
  .ballot-page .hero-subtitle { max-width: 360px; margin-top: 15px; font-size: 13px; }
  .ballot-page .hero-meta { gap: 7px; margin-top: 19px; }
  .ballot-page .hero-meta span { min-height: 32px; padding: 0 9px; font-size: 9px; }
  .hero-art { min-height: 200px; margin: -2px 0 -20px; }
  .trophy-svg { width: 205px; }
  .trophy-orbit { width: 58%; }
  .orbit-two { width: 73%; }
  .hero-art-caption { right: 14px; bottom: 8px; font-size: 7px; }
  .ballot-page .main-wrap { margin-top: -22px; padding: 0 12px 48px; }
  .ballot-page .demo-ribbon { gap: 9px; padding: 10px 12px; font-size: 10px; }
  .ballot-page .progress-panel { gap: 12px; margin-bottom: 27px; padding: 14px; }
  .ballot-page .progress-badge { min-width: 58px; padding: 7px; font-size: 10px; }
  .ballot-page .section-heading { margin-bottom: 14px; }
  .ballot-page .section-heading h2 { font-size: 26px; }
  .ballot-page .section-heading p:not(.section-kicker) { max-width: 265px; font-size: 11px; }
  .ballot-page .section-counter { display: none; }
  .ballot-page .category-card { border-radius: 15px; }
  .ballot-page .category-head { gap: 9px; padding: 14px 13px 10px; }
  .ballot-page .category-title-wrap { gap: 10px; }
  .ballot-page .category-number { width: 36px; height: 36px; border-radius: 12px; font-size: 10px; }
  .ballot-page .category-title { font-size: 13px; }
  .ballot-page .category-prompt { font-size: 9px; }
  .ballot-page .category-state { padding: 5px 7px; font-size: 8px; }
  .ballot-page .candidate-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; padding: 5px 10px 13px; }
  .ballot-page .candidate { min-height: 58px; gap: 7px; padding: 6px; border-radius: 11px; }
  .ballot-page .avatar { width: 38px; height: 38px; flex-basis: 38px; }
  .ballot-page .candidate-name { font-size: 10px; }
  .ballot-page .pick-mark { flex-basis: 15px; width: 15px; height: 15px; font-size: 9px; }
  .ballot-page .submit-area { gap: 13px; margin-top: 20px; padding-top: 16px; }
  .ballot-page .submit-note { font-size: 11px; }
  .ballot-page .site-footer { padding: 0 14px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .trophy-svg { animation: none; }
}

.ballot-page .demo-receipt .state-icon {
  border: 1px solid rgba(255,239,197,.5);
  border-radius: 50%;
  background: linear-gradient(145deg, #f3d98f, #bd8731);
  box-shadow: 0 10px 30px rgba(182,128,37,.2), inset 0 1px 0 rgba(255,255,255,.55);
}
.ballot-page .demo-receipt .section-kicker { margin: 0; color: #c9a45c; }
.ballot-page .demo-receipt h1 { color: #f6e2aa; }
.ballot-page .demo-receipt .demo-ribbon { max-width: 520px; justify-content: center; margin: 27px auto 0; }

.cinematic-screen {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  overflow: hidden;
  place-items: center;
  background:
    radial-gradient(ellipse at 50% 83%, rgba(203,155,68,.23), transparent 33%),
    radial-gradient(ellipse at 50% 0%, rgba(36,50,75,.5), transparent 58%),
    #070a11;
  color: #f5f0e6;
  opacity: 1;
  transition: opacity .42s ease;
}
.cinematic-screen::before,
.cinematic-screen::after { position: absolute; inset: 0; content: ""; pointer-events: none; }
.cinematic-screen::before {
  background: linear-gradient(180deg, transparent 25%, rgba(8,10,16,.15) 58%, #070a11 100%), repeating-linear-gradient(112deg, transparent 0 55px, rgba(255,255,255,.018) 56px 57px);
}
.cinematic-screen::after {
  inset: auto 0 0;
  height: 23%;
  background: radial-gradient(ellipse at 50% 100%, rgba(222,177,88,.2), transparent 65%);
}
.cinematic-screen.cinematic-leaving { opacity: 0; }
.cinematic-stars {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#f8e6b9 1px, transparent 1.5px), radial-gradient(#fff 1px, transparent 1.5px);
  background-position: 12% 18%, 72% 25%;
  background-size: 113px 107px, 167px 151px;
  opacity: .3;
  mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.cinematic-light {
  position: absolute;
  top: -47%;
  left: 50%;
  width: min(90vw, 900px);
  height: 100%;
  transform: translateX(-50%);
  background: conic-gradient(from 250deg at 50% 0, transparent 0 20deg, rgba(232,198,121,.08) 23deg 28deg, transparent 32deg 55deg, rgba(232,198,121,.06) 58deg 64deg, transparent 68deg);
  filter: blur(20px);
}
.cinematic-copy {
  position: absolute;
  z-index: 2;
  top: 14%;
  width: min(90vw, 760px);
  text-align: center;
  animation: cinematic-copy-in .75s .45s both ease-out;
}
.cinematic-copy p { margin: 0 0 13px; color: #d5b66e; font-size: 10px; font-weight: 850; letter-spacing: .25em; }
.cinematic-copy h1 { margin: 0; color: #fff7e6; font-size: clamp(25px, 5vw, 48px); font-weight: 820; letter-spacing: -.045em; text-shadow: 0 5px 30px rgba(229,189,104,.2); }
.cinematic-copy span { display: block; margin-top: 13px; color: rgba(239,222,183,.72); font-size: 9px; font-weight: 750; letter-spacing: .24em; }
.ball-journey { position: absolute; z-index: 1; top: 59%; left: 50%; width: min(64vw, 330px); aspect-ratio: 1; perspective: 800px; }
.ball-journey-in { animation: ball-approach 2.65s cubic-bezier(.15,.7,.16,1) both; }
.ball-journey-out { top: 62%; animation: ball-to-sky 2.35s cubic-bezier(.28,.02,.68,.99) both; }
.cinematic-ball { position: relative; z-index: 1; display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 24px 34px rgba(0,0,0,.56)); }
.ball-journey-in .cinematic-ball { animation: ball-roll-in 2.65s linear both; }
.ball-journey-out .cinematic-ball { animation: ball-roll-away 2.35s linear both; }
.ball-shadow { position: absolute; bottom: -4%; left: 16%; width: 68%; height: 15%; border-radius: 50%; background: rgba(0,0,0,.6); filter: blur(17px); transform: scale(.35); animation: shadow-arrive 2.65s ease-out both; }
.ball-journey-out .ball-shadow { animation: shadow-depart 2.35s ease-in both; }
.skip-animation {
  position: absolute;
  z-index: 4;
  top: max(22px, env(safe-area-inset-top));
  right: max(22px, env(safe-area-inset-right));
  padding: 10px 14px;
  border: 1px solid rgba(244,220,166,.3);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  color: #e8dfca;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .04em;
  backdrop-filter: blur(8px);
}
.skip-animation:hover { border-color: rgba(244,220,166,.65); background: rgba(229,189,104,.12); }
@keyframes ball-approach {
  0% { opacity: 0; transform: translate(-50%, 65%) scale(.13); }
  22% { opacity: 1; }
  74% { transform: translate(-50%, -47%) scale(1.13); }
  100% { transform: translate(-50%, -50%) scale(1); }
}
@keyframes ball-roll-in { from { transform: rotate(-30deg); } to { transform: rotate(880deg); } }
@keyframes ball-to-sky {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-43%, -130%) scale(.58); }
  100% { opacity: 0; transform: translate(-22%, -280%) scale(.12); }
}
@keyframes ball-roll-away { to { transform: rotate(1040deg); } }
@keyframes shadow-arrive { from { opacity: 0; transform: scale(.2); } 70% { opacity: .9; transform: scale(1.1); } to { opacity: .75; transform: scale(1); } }
@keyframes shadow-depart { to { opacity: 0; transform: scale(.2); } }
@keyframes cinematic-copy-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.cinematic-outro .cinematic-copy { animation: cinematic-copy-out 1s .65s both ease-in; }
@keyframes cinematic-copy-out { to { opacity: 0; transform: translateY(-18px); } }

@media (max-width: 640px) {
  .cinematic-copy { top: 18%; }
  .cinematic-copy p { font-size: 8px; }
  .cinematic-copy span { font-size: 7px; }
  .ball-journey { top: 58%; width: min(72vw, 270px); }
  .ball-journey-out { top: 63%; }
  .skip-animation { top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); padding: 8px 11px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .cinematic-screen *, .cinematic-screen::before, .cinematic-screen::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Broadcast-style stadium finish for the spinning football. */
.cinematic-light {
  background: conic-gradient(from 245deg at 50% 0,
    transparent 0 13deg,
    rgba(63, 194, 255, .17) 16deg 20deg,
    transparent 24deg 42deg,
    rgba(232, 190, 99, .17) 45deg 50deg,
    transparent 54deg 69deg,
    rgba(63, 194, 255, .11) 72deg 77deg,
    transparent 81deg);
}
.cinematic-screen::before {
  background:
    radial-gradient(ellipse at 8% 8%, rgba(110,218,255,.62) 0 2px, transparent 16px),
    radial-gradient(ellipse at 92% 8%, rgba(246,208,126,.7) 0 2px, transparent 18px),
    linear-gradient(180deg, transparent 25%, rgba(8,10,16,.15) 58%, #070a11 100%),
    repeating-linear-gradient(112deg, transparent 0 55px, rgba(255,255,255,.018) 56px 57px);
}
.cinematic-screen::after {
  background:
    linear-gradient(180deg, transparent, rgba(15,34,36,.75)),
    radial-gradient(ellipse at 50% 100%, rgba(222,177,88,.24), transparent 65%),
    repeating-linear-gradient(103deg, transparent 0 8px, rgba(89,183,112,.14) 9px 10px, transparent 11px 19px);
}
.cinematic-stars::before {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse, rgba(186,239,255,.88) 0 1px, transparent 3px),
    radial-gradient(ellipse, rgba(255,225,158,.75) 0 1px, transparent 3px);
  background-position: 18% 36%, 83% 49%;
  background-size: 97px 131px, 151px 113px;
  content: "";
  animation: spray-drift 5s ease-in-out infinite alternate;
}
.ball-journey::before,
.ball-journey::after {
  position: absolute;
  z-index: 2;
  inset: -19%;
  border: 2px solid transparent;
  border-top-color: rgba(234,194,103,.94);
  border-bottom-color: rgba(67,204,255,.95);
  border-radius: 50%;
  content: "";
  filter: drop-shadow(0 0 9px rgba(63,194,255,.75)) drop-shadow(0 0 16px rgba(236,190,91,.48));
  pointer-events: none;
  transform: rotateX(68deg) rotateZ(-24deg);
  animation: trail-orbit 2.2s linear infinite;
}
.ball-journey::after {
  inset: -10%;
  border-top-color: rgba(79,197,255,.88);
  border-bottom-color: rgba(255,222,151,.83);
  transform: rotateX(68deg) rotateZ(62deg) scale(.84);
  animation-duration: 1.65s;
  animation-direction: reverse;
}
.cinematic-ball { filter: drop-shadow(0 0 13px rgba(69,196,255,.23)) drop-shadow(0 24px 34px rgba(0,0,0,.58)); }
@keyframes trail-orbit { to { rotate: 360deg; } }
@keyframes spray-drift { from { transform: translate3d(-5px, 7px, 0); opacity: .38; } to { transform: translate3d(7px, -9px, 0); opacity: .78; } }

@media (prefers-reduced-motion: reduce) {
  .ball-journey::before, .ball-journey::after, .cinematic-stars::before { animation: none; }
}
