:root {
    --forest: #123d2b; --forest-deep: #0b2b1e; --green: #176d4c; --green-light: #dceae3;
    --gold: #b99044; --ink: #17251f; --muted: #66756e; --line: #d8e0dc; --canvas: #f2f5f2;
    --paper: #fff; --serif: "Playfair Display", Georgia, serif; --sans: "DM Sans", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 85% 8%, rgba(185,144,68,.09), transparent 22rem), var(--canvas); color: var(--ink); font: 16px var(--sans); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.page-shell { width: min(100% - 40px, 1240px); margin: 0 auto; }
.site-header { height: 96px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(18,61,43,.13); }
.identity { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.identity-mark { width: 48px; height: 58px; display: grid; place-items: center; flex: 0 0 auto; }
.identity-mark img { width: 100%; height: 100%; display: block; object-fit: contain; }
.identity-copy { display: grid; line-height: 1.05; }
.identity-copy strong { font: 600 21px var(--serif); }
.identity-copy small { margin-top: 5px; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.poll-status, .live-chip, .single-choice { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.poll-status { padding: 9px 14px; border: 1px solid #cfdad4; background: rgba(255,255,255,.58); color: var(--forest); }
.poll-status i, .live-chip i { width: 7px; height: 7px; border-radius: 50%; background: #2a9b6d; box-shadow: 0 0 0 4px rgba(42,155,109,.12); }

.hero { display: grid; grid-template-columns: 1.3fr .7fr; gap: 70px; align-items: end; padding: 74px 4px 58px; }
.eyebrow { margin: 0 0 13px; color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: .18em; }
.hero h1 { margin: 0; color: var(--forest-deep); font: 700 clamp(46px, 6.2vw, 76px)/.98 var(--serif); letter-spacing: -.045em; }
.hero h1 em { color: var(--green); font-style: italic; font-weight: 600; }
.hero-intro { max-width: 670px; margin: 27px 0 0; color: #53625b; font-size: 18px; line-height: 1.68; }
.hero-note { display: flex; gap: 15px; padding: 22px; border-left: 3px solid var(--gold); background: rgba(255,255,255,.55); }
.hero-note p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.hero-note strong { color: var(--ink); }
.note-icon { flex: 0 0 25px; height: 25px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: #8b6727; font: 700 15px var(--serif); }

.poll-layout { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(360px,.9fr); overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: 0 24px 70px rgba(18,61,43,.08); }
.voting-panel, .results-panel { padding: 40px; }
.results-panel { background: var(--forest-deep); color: #fff; }
.section-heading, .results-heading { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 28px; }
.section-heading h2, .results-heading h2 { margin: 0; font: 600 27px/1.2 var(--serif); }
.single-choice { padding: 7px 12px; background: var(--canvas); color: var(--muted); white-space: nowrap; }
.results-panel .eyebrow { color: #a9d4c0; }
.live-chip { padding: 7px 12px; background: rgba(255,255,255,.09); color: #d9eae2; }
.live-chip i { background: #65d19f; }

.domain-options { display: grid; gap: 11px; padding: 0; margin: 0; border: 0; }
.domain-option { position: relative; display: grid; grid-template-columns: 24px 1fr 24px; align-items: center; gap: 15px; min-height: 76px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .18s, background .18s, transform .18s; }
.domain-option:hover { border-color: #9ab6a7; background: #fbfcfb; transform: translateY(-1px); }
.domain-option:has(input:focus-visible) { outline: 3px solid rgba(23,109,76,.22); outline-offset: 2px; }
.domain-option:has(input:checked) { border-color: var(--green); background: #f1f8f4; box-shadow: inset 3px 0 0 var(--green); }
.domain-option input { position: absolute; opacity: 0; pointer-events: none; }
.radio-control { width: 21px; height: 21px; border: 1.5px solid #9ba9a2; border-radius: 50%; box-shadow: inset 0 0 0 5px transparent; background: #fff; transition: .18s; }
.domain-option input:checked + .radio-control { border-color: var(--green); background: var(--green); box-shadow: inset 0 0 0 5px #fff; }
.option-copy { min-width: 0; display: grid; gap: 3px; }
.option-copy strong { overflow-wrap: anywhere; color: var(--ink); font-size: 16px; font-weight: 700; }
.option-copy small { color: var(--muted); font-size: 13px; }
.option-check { color: var(--green); font-weight: 700; opacity: 0; transform: scale(.7); transition: .18s; }
.domain-option:has(input:checked) .option-check { opacity: 1; transform: scale(1); }
.domain-option:has(input:disabled) { cursor: not-allowed; opacity: .62; transform: none; }
.other-field { margin-top: 16px; padding: 19px; border-radius: 12px; background: var(--canvas); }
.other-field label { display: block; margin-bottom: 9px; font-size: 14px; font-weight: 700; }
.suggestion-wrap { display: flex; align-items: center; overflow: hidden; border: 1px solid #c7d2cc; border-radius: 9px; background: #fff; }
.suggestion-wrap span { padding: 12px 0 12px 14px; color: var(--muted); }
.suggestion-wrap input { min-width: 0; flex: 1; padding: 12px 14px 12px 0; border: 0; outline: 0; color: var(--ink); }
.suggestion-wrap:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23,109,76,.12); }
.other-field small { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; }
.form-help { margin: 20px 0 13px; color: var(--muted); font-size: 13px; }
.submit-button { width: 100%; min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 0; border-radius: 10px; background: var(--forest); color: #fff; cursor: pointer; font-weight: 700; transition: background .18s, transform .18s, opacity .18s; }
.submit-button:hover:not(:disabled) { background: var(--green); transform: translateY(-1px); }
.submit-button:focus-visible { outline: 3px solid rgba(23,109,76,.25); outline-offset: 3px; }
.submit-button:disabled { cursor: not-allowed; opacity: .45; }
.submit-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.submit-button.is-loading svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.total-votes { display: flex; align-items: baseline; gap: 10px; padding: 25px 0 22px; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
.total-votes strong { font: 600 46px/1 var(--serif); }
.total-votes span { color: #9fb3aa; font-size: 14px; }
.results-list { display: grid; gap: 23px; padding-top: 28px; }
.result-item { display: grid; gap: 10px; }
.result-meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.result-name { max-width: 72%; overflow-wrap: anywhere; color: #e5eee9; font-size: 14px; font-weight: 600; }
.result-score { display: grid; justify-items: end; }
.result-score strong { color: #fff; font-size: 15px; }
.result-score small { margin-top: 2px; color: #849d91; font-size: 11px; }
.progress-track { height: 7px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.12); }
.progress-track span { display: block; width: var(--progress); height: 100%; border-radius: inherit; background: #759b89; animation: grow .65s ease both; }
.result-item.is-leading .progress-track span { background: var(--gold); }
@keyframes grow { from { width: 0; } }
.results-footnote { margin: 30px 0 0; color: #82988e; font-size: 12px; }
.option-skeleton, .result-skeleton { border-radius: 10px; background: linear-gradient(100deg,rgba(120,145,133,.11) 20%,rgba(120,145,133,.22) 40%,rgba(120,145,133,.11) 60%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.option-skeleton { height: 76px; } .result-skeleton { height: 47px; }
@keyframes shimmer { to { background-position-x: -200%; } }
.load-error { margin: 0; padding: 18px; border-radius: 10px; background: rgba(168,55,55,.08); color: #aa4444; line-height: 1.5; }
footer { min-height: 120px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; color: var(--muted); font-size: 13px; }
.footer-order { margin: 0; color: var(--forest); font: 600 16px var(--serif); }
.footer-community { text-align: center; }
.footer-credit { justify-self: end; color: #7d8983; font-size: 12px; text-align: right; }
.footer-credit strong { color: var(--forest); font-weight: 700; }

.toast-region { position: fixed; z-index: 1000; right: 24px; top: 24px; display: grid; gap: 12px; width: min(390px, calc(100% - 32px)); }
.toast { display: grid; grid-template-columns: 38px 1fr 24px; gap: 12px; align-items: start; padding: 16px; border: 1px solid #d7e2dc; border-radius: 13px; background: #fff; box-shadow: 0 18px 45px rgba(13,43,30,.18); opacity: 0; transform: translateY(-12px); transition: .25s; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--green-light); color: var(--green); font-weight: 800; }
.toast--warning .toast-icon { background: #f6ead2; color: #946b20; }
.toast--error .toast-icon { background: #f6dede; color: #9f3838; }
.toast strong { color: var(--ink); font-size: 14px; }
.toast p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.toast button { padding: 0; border: 0; background: none; color: #89948f; cursor: pointer; font-size: 21px; line-height: 1; }

@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 30px; padding-top: 55px; } .hero-note { max-width: 570px; } .poll-layout { grid-template-columns: 1fr; } .results-panel { min-height: 500px; } }
@media (max-width: 600px) {
    .page-shell { width: min(100% - 24px,1240px); } .site-header { height: 78px; } .identity-mark { width: 40px; height: 48px; }
    .identity-copy strong { font-size: 18px; } .poll-status { padding: 8px 10px; font-size: 12px; } .hero { padding: 45px 2px 38px; }
    .hero h1 { font-size: clamp(42px,13vw,58px); } .hero-intro { font-size: 16px; } .voting-panel, .results-panel { padding: 28px 20px; }
    .section-heading, .results-heading { margin-bottom: 23px; } .section-heading h2, .results-heading h2 { font-size: 24px; } .single-choice { display: none; }
    .domain-option { padding: 13px 14px; grid-template-columns: 22px 1fr 18px; gap: 11px; } .option-copy strong { font-size: 14px; }
    footer { padding: 30px 2px; grid-template-columns: 1fr; justify-items: center; gap: 10px; text-align: center; } .footer-credit { justify-self: center; text-align: center; } .toast-region { top: 16px; right: 16px; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto!important; animation-duration: .01ms!important; animation-iteration-count: 1!important; transition-duration: .01ms!important; } }
