:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; color: #202b41; background: #fff; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; }
main { width: min(900px, 100%); margin: 0 auto; padding: clamp(32px, 7vh, 76px) 24px 28px; }
h1 { margin: 0 0 10px; 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: #2359b8; }
.results { margin-bottom: 12px; }
.numbers { display: flex; justify-content: space-between; margin-bottom: 9px; font-size: 13px; color: #657189; }
.numbers strong { font-size: 24px; font-weight: 650; color: #2359b8; font-variant-numeric: tabular-nums; }
.numbers > :last-child strong { color: #526889; }
.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.12; background: #f8f9fc; border: 1px solid #edf0f5; border-radius: 10px; }
.art img { display: block; width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.credit { margin: 14px 0 18px; min-height: 38px; font-size: 13px; line-height: 1.65; color: #6e7789; overflow-wrap: anywhere; }
.credit strong { font-weight: 600; color: #495773; }
button { width: 100%; min-height: 46px; border: 1px solid #d4ddeb; border-radius: 7px; background: white; color: #2359b8; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s; touch-action: manipulation; }
button:hover:not(:disabled) { background: #f0f5ff; border-color: #2359b8; }
button:focus-visible { outline: 3px solid #81a5eb; outline-offset: 4px; }
button:disabled { cursor: default; color: #939bad; background: #f7f8fa; border-color: #e8ecf1; }
button.selected { background: #2359b8; color: white; border-color: #2359b8; }
#status { min-height: 20px; margin: 22px 0 0; text-align: center; color: #596984; font-size: 13px; line-height: 1.6; }
#status:empty { display: none; }
noscript p { text-align: center; }
.colophon { margin-top: 34px; text-align: center; font-size: 11px; color: #b6bfce; }

.gate { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; background: rgba(23, 32, 51, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.gate[hidden] { display: none; }
.gate-card { width: min(680px, 100%); background: #fff; border-radius: 14px; padding: clamp(22px, 4vw, 34px); box-shadow: 0 24px 64px rgba(23, 32, 51, .28); text-align: center; }
.gate-card h2 { margin: 0 0 6px; font-size: clamp(19px, 3vw, 25px); font-weight: 650; letter-spacing: -.02em; line-height: 1.5; }
.gate-sub { margin: 0 0 20px; color: #657189; font-size: 13px; }
.gate-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.gate-choice { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; padding: 14px 12px 16px; border: 1px solid #d4ddeb; border-radius: 10px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.gate-choice:hover { border-color: #2359b8; background: #f0f5ff; transform: translateY(-2px); }
.gate-choice:focus-visible { outline: 3px solid #81a5eb; outline-offset: 3px; }
.gate-choice img { width: 100%; aspect-ratio: 1 / 1.05; object-fit: contain; border-radius: 8px; background: #f8f9fc; }
.gate-choice strong { font-size: 16px; color: #202b41; }
.gate-choice span { font-size: 11px; color: #8b95a9; }
.gate-note { margin: 16px 0 0; font-size: 11px; color: #9aa3b5; }

@media (max-width: 640px) {
  main { padding-inline: 16px; }
  .choices { gap: 12px; }
  .art { border-radius: 7px; }
  .credit { font-size: 11px; min-height: 38px; margin: 10px 0 12px; }
  .numbers strong { font-size: 21px; }
  .gate { padding: 14px; }
  .gate-choices { gap: 10px; }
  .gate-choice { padding: 10px 8px 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
