:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #202b41;
  --muted: #657189;
  --muted-2: #6e7789;
  --blue: #2359b8;
  --blue-2: #526889;
  --card: #fdfbf7;
  --line: #edf0f5;
  --line-2: #d4ddeb;
  --focus: #81a5eb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); }

main {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: clamp(20px, 4vh, 56px) 24px 28px;
}

.intro { margin: 0; }
.kicker {
  margin: 0 0 10px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .08em;
}

h1 {
  margin: 0 0 clamp(20px, 3vw, 36px);
  text-align: center;
  font-size: clamp(21px, 3.3vw, 32px);
  font-weight: 650;
  line-height: 1.55;
  letter-spacing: -.035em;
  text-wrap: balance;
}
h1 span { color: var(--blue); }

.results { margin-bottom: 10px; }
.numbers {
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
  font-size: 13px;
  color: var(--muted);
}
.numbers strong {
  font-size: 24px;
  font-weight: 650;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.numbers > :last-child strong { color: var(--blue-2); }

.bar {
  display: flex;
  height: 7px;
  gap: 3px;
  border-radius: 8px;
  overflow: hidden;
  background: #eff2f7;
}
.bar > div { width: 50%; transition: width .35s ease; }
#left-bar { background: #245fc6; }
#right-bar { background: #91a6c8; }

.choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
article { min-width: 0; display: flex; flex-direction: column; }
.art {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: clamp(150px, 40vh, 360px);
  max-height: clamp(150px, 40svh, 360px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  min-height: 0;
}
.caption {
  margin: 8px 0 10px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .04em;
}
button {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  background: #fff;
  color: var(--blue);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  touch-action: manipulation;
}
button:hover:not(:disabled) { background: #f0f5ff; border-color: var(--blue); }
button:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
button:disabled { cursor: default; color: #939bad; background: #f7f8fa; border-color: #e8ecf1; }
button.selected { background: var(--blue); color: #fff; border-color: var(--blue); }

#status {
  min-height: 20px;
  margin: 16px 0 0;
  text-align: center;
  color: #596984;
  font-size: 13px;
  line-height: 1.6;
}
#status.error { color: #b5473a; }
.request-note { text-align: center; color: var(--muted); font-size: 12px; line-height: 1.7; margin: 10px 0 0; }


footer {
  margin-top: clamp(20px, 4vh, 40px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.feedback {
  margin: 15px 0 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}
.feedback a { color: var(--blue); text-decoration: none; border-bottom: 1px solid rgba(35, 89, 184, .25); }
.feedback a:hover { border-bottom-color: var(--blue); }
.fine { margin: 0 0 6px; color: var(--muted-2); font-size: 12px; line-height: 1.7; }
.fine a { color: var(--muted-2); }
.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;
}
.noscript { text-align: center; padding: 16px; }

@media (max-width: 640px) {
  main { padding-inline: 16px; }
  .choices { gap: 12px; }
  .art { border-radius: 7px; }
  .caption { font-size: 11px; margin: 7px 0 9px; }
  .feedback { font-size: 13.5px; }
  .numbers strong { font-size: 21px; }
  button { min-height: 44px; font-size: 13px; }
  .fine { font-size: 11px; }
}


button.selected:disabled {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  opacity: 1;
}

.preview-note {
  margin: 14px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.preview-note a { color: var(--blue); }

.prose-page { max-width: 760px; }
.back { margin: 0 0 26px; font-size: 13px; }
.back a { color: var(--blue); text-decoration: none; }
.prose-title { text-align: left; margin-bottom: 26px; }
.prose-page h2 {
  margin: 30px 0 10px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -.01em;
}
.prose-page p, .prose-page li {
  color: #3d4a61;
  font-size: 14px;
  line-height: 1.85;
}
.prose-page ul { margin: 8px 0 12px; padding-left: 20px; }
.prose-page li { margin: 4px 0; }
.prose-page a { color: var(--blue); }
.updated { margin-top: 34px; color: var(--muted); font-size: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}