@charset "UTF-8";

:root {
  color-scheme: dark;
  font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  color: #f2e7d5;
  background: #15120f;
  --paper: #f2e7d5;
  --quiet: #c2b49d;
  --line: #554532;
  --gold: #d8b67c;
  --panel: #1e1914;
  --display: "Noto Serif TC", "Songti TC", "PMingLiU", "Microsoft JhengHei", serif;
}
* { box-sizing: border-box; }
body {
  min-width: 280px;
  margin: 0;
  background: radial-gradient(ellipse at 38% 0%, #281e15, transparent 54%), #15120f;
}
button, input { font: inherit; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid #f3d5a0; outline-offset: 3px; }
[hidden] { display: none !important; }
.top, .layout, .page-footer { width: min(calc(100% - 48px), 1100px); margin-inline: auto; }
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 77px;
  border-bottom: 1px solid var(--line);
  color: var(--gold);
}
.brand { font-family: Georgia, serif; font-size: 1.17rem; letter-spacing: .16em; white-space: nowrap; }
.brand span { color: #bb8b57; }
.top-date { color: var(--quiet); font-size: .77rem; letter-spacing: .14em; }
.top-date span { color: #a18a69; }
.layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 56px);
  align-items: start;
  padding-block: 36px 42px;
}
.masthead { border: 1px solid var(--line); background: #1d1713; }
.hero { position: relative; display: grid; min-height: clamp(390px, 44vw, 550px); align-items: end; isolation: isolate; overflow: hidden; }
.scene { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 54% center; }
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(9deg, #100d09 2%, #180f0bc9 20%, transparent 69%), linear-gradient(90deg, #21161155, transparent 80%);
}
.hero-text { padding: 0 clamp(20px, 3vw, 45px) clamp(20px, 5vw, 55px); }
.hero-note { display: block; color: #ead3a9; font-size: .8rem; letter-spacing: .17em; margin-bottom: 10px; }
h1, h2, h3, p { margin: 0; }
h1 { font-family: var(--display); font-size: clamp(2.75rem, 6.3vw, 5.65rem); color: #fff0d6; font-weight: 600; letter-spacing: .045em; line-height: 1.12; }
.hero-caption { margin-top: .75rem; color: #ead3a9; letter-spacing: .17em; font-family: var(--display); font-size: 1.1rem; }
.partner { display: flex; align-items: center; justify-content: flex-end; min-height: 70px; padding: 10px 18px; }
.sponsor { background: linear-gradient(110deg, #edd6ac, #e3bb88); border-radius: 3px; width: 124px; padding: 4px 5px; }
.sponsor img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.ballot { border-top: 1px solid #a17d4c; padding-top: 16px; }
.ballot-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
h2 { color: var(--paper); font-family: var(--display); font-size: clamp(1.55rem, 3vw, 2.1rem); font-weight: 600; letter-spacing: .035em; }
.deadline { flex-shrink: 0; color: #f0ce97; border-bottom: 1px solid #a17d4c; padding: 4px 0; font-variant-numeric: tabular-nums; font-size: .87rem; }
.deadline[data-state="closed"] { color: #e5b1a0; border-color: #b77564; }
.guide { color: var(--quiet); font-size: .95rem; line-height: 1.6; margin-top: 8px; }
.name-row { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 10px; align-items: center; margin: 22px 0 24px; }
.name-row label { font-size: .95rem; color: var(--paper); }
input:not([type="radio"]) {
  min-width: 0;
  min-height: 45px;
  padding: 8px 12px;
  border: 1px solid #776044;
  border-radius: 3px;
  background: #201912;
  color: var(--paper);
}
input::placeholder { color: #b39e83; }
.round { border-top: 1px solid var(--line); padding: 13px 0 10px; }
.round-title { display: flex; align-items: center; gap: 13px; padding-bottom: 9px; font-family: var(--display); font-size: 1.52rem; font-weight: 600; color: #efcc8e; }
.round-index { font: 500 .75rem/1.3 "Microsoft JhengHei", system-ui, sans-serif; letter-spacing: .10em; color: var(--quiet); }
.note-row { margin: 0 0 7px; min-width: 0; border: 0; padding: 0; }
.note-layout { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 8px; }
.note-label { font-size: .95rem; color: var(--quiet); }
.options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.choice { position: relative; min-width: 0; min-height: 44px; display: grid; place-items: center; border: 1px solid #7d6546; border-radius: 3px; cursor: pointer; background: #1c1712; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.choice span { padding: 0 2px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: clamp(.81rem, 3.2vw, 1rem); letter-spacing: .022em; }
.choice:hover { border-color: #dfbd82; }
.choice:has(input:checked) { color: #160e06; background: #e4bb76; border-color: #f2ce8e; font-weight: 700; }
.choice:has(input:focus-visible) { outline: 2px solid #f2d5a0; outline-offset: 2px; }
.response-area { padding-top: 13px; }
.primary, .secondary {
  width: 100%;
  min-height: 47px;
  border: 1px solid #debb7d;
  border-radius: 3px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
}
.primary { background: #e4b976; color: #211508; }
.primary:hover:not(:disabled) { background: #ffd694; }
.primary:disabled, .secondary:disabled { cursor: default; opacity: .55; }
.secondary { background: #2f2319; color: #f4dfbd; }
.danger { border-color: #d18a76; color: #ffcfbc; }
.feedback { min-height: 1.7rem; margin-top: 9px; color: var(--quiet); font-size: .9rem; line-height: 1.6; }
.feedback[data-state="error"] { color: #ffbcaa; }
.feedback[data-state="success"] { color: #f0d298; }
.page-footer { display: flex; justify-content: space-between; gap: 12px; color: var(--quiet); padding-block: 16px 22px; border-top: 1px solid var(--line); font-size: .81rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
@media (max-width: 740px) {
  .top, .layout, .page-footer { width: min(calc(100% - 32px), 520px); }
  .top { min-height: 55px; }
  .layout { grid-template-columns: minmax(0, 1fr); padding-top: 16px; padding-bottom: 20px; gap: 22px; }
  .hero { min-height: clamp(195px, 55vw, 292px); }
  .hero-text { padding: 18px 18px 20px; }
  .hero-note { margin-bottom: 7px; }
  h1 { font-size: clamp(2.65rem, 11.2vw, 4rem); }
  .hero-caption { margin-top: 7px; }
  .partner { min-height: 51px; padding: 7px 11px; }
  .partner .sponsor { width: 99px; padding: 3px 4px; }
  .name-row { margin-block: 18px 20px; }
}
@media (max-width: 350px) {
  .top, .layout, .page-footer { width: calc(100% - 20px); }
  .note-layout { grid-template-columns: 43px minmax(0, 1fr); gap: 5px; }
  .options { gap: 5px; }
  .name-row { grid-template-columns: 77px minmax(0, 1fr); }
}
