/* Author: VIVI x Codex */
.vote-shell {
  width: var(--section-width);
  margin: 0 auto;
  padding: 58px 0 80px;
}

.vote-hero {
  margin-bottom: 28px;
}

.vote-hero h1 {
  max-width: 10ch;
  margin: 0;
  font-family: "Noto Serif SC", serif;
  font-size: clamp(52px, 8vw, 108px);
  line-height: 0.96;
}

.vote-hero p:not(.section-kicker) {
  max-width: 46ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.5;
}

.vote-panel,
.vote-form,
.result-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.vote-panel {
  padding: 24px;
}

.vote-form {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 34px);
}

.vote-awards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.vote-award {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.66);
}

.vote-award h2,
.result-card h2 {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.08;
}

.vote-award p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.vote-field {
  display: grid;
  gap: 8px;
}

.vote-field span {
  color: var(--coral-strong);
  font-size: 13px;
  font-weight: 900;
}

.vote-field input,
.vote-field textarea {
  width: 100%;
  border: 1px solid rgba(18, 22, 28, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font: inherit;
}

.vote-field input {
  min-height: 48px;
  padding: 0 14px;
}

.vote-field textarea {
  padding: 14px;
  line-height: 1.6;
  resize: vertical;
}

.vote-rule {
  font-size: 14px;
  font-weight: 900;
}

.vote-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.vote-option {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px;
  min-height: 48px;
  padding: 12px;
  border: 1px solid rgba(18, 22, 28, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  font-weight: 900;
  line-height: 1.35;
}

.vote-option:has(input:checked) {
  border-color: rgba(239, 91, 63, 0.42);
  background: rgba(239, 91, 63, 0.08);
}

.vote-option input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--coral);
}

.vote-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vote-submit,
.vote-secondary,
.vote-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.vote-submit {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.vote-secondary {
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink);
}

.vote-danger {
  background: rgba(239, 91, 63, 0.08);
  color: var(--coral-strong);
  border-color: rgba(239, 91, 63, 0.32);
}

.vote-message {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.vote-message[data-tone="error"] {
  color: var(--coral-strong);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.result-card {
  min-height: 260px;
  padding: 22px;
}

.result-total {
  margin: 8px 0 20px;
  color: var(--muted);
}

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

.result-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.result-name {
  font-weight: 900;
}

.result-count {
  color: var(--coral-strong);
  font-weight: 900;
}

.result-bar {
  grid-column: 1 / -1;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(18, 22, 28, 0.08);
}

.result-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coral), var(--gold));
}

@media (max-width: 760px) {
  .vote-awards,
  .results-grid,
  .vote-options {
    grid-template-columns: 1fr;
  }
}
