:root {
  color-scheme: light;
  --paper: #f7f4eb;
  --paper-light: #fffdf7;
  --ink: #203e34;
  --muted: #69756a;
  --accent: #d94a36;
  --accent-dark: #b63828;
  --line: #d8dacb;
  --serif: "Iowan Old Style", "Palatino Linotype", "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
  --sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-family: var(--sans);
  font-synthesis: none;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea { font: inherit; }
button, a, label { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
a { color: inherit; }
button:disabled { cursor: wait; opacity: .6; }
button, a, summary, textarea { outline-offset: 5px; }
:focus-visible { outline: 2px solid var(--accent-dark); }
[hidden] { display: none !important; }
svg { display: block; }
::selection { background: #f0c4af; color: var(--ink); }
.page-shell { max-width: 1328px; margin: auto; padding: 0 64px; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 10; background: var(--paper-light); padding: 16px; }
.skip-link:focus { top: 16px; }
.site-header { min-height: 108px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; font: 38px/1 var(--serif); letter-spacing: -1.7px; text-decoration: none; }
.brand-period { color: var(--accent); }
.brand-drop { width: 19px; height: 27px; fill: var(--accent); }
.header-right { display: flex; align-items: center; gap: 31px; }
.header-note { font-size: 11px; letter-spacing: .07em; color: var(--muted); }
.powered { font: 10px/1.4 var(--sans); letter-spacing: .015em; white-space: nowrap; border-left: 1px solid var(--line); padding-left: 28px; }
.powered span { font: 18px var(--serif); margin-left: 4px; }
.section-line { display: flex; justify-content: space-between; gap: 14px; margin: 25px 0 37px; font-size: 9px; font-weight: 500; letter-spacing: .17em; }
.section-line time { color: var(--muted); letter-spacing: .1em; }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 68px; padding-bottom: 62px; }
.hero-content { padding-top: 5px; min-width: 0; }
.eyebrow { font-size: 10px; letter-spacing: .14em; margin: 0 0 24px; display: flex; gap: 10px; align-items: center; }
.tiny-star { width: 17px; height: 17px; stroke: var(--accent); stroke-width: 1; }
h1 { font: 500 clamp(31px, 3.1vw, 46px)/1.75 var(--serif); letter-spacing: .035em; margin: 0 0 19px; }
.intro { font-size: 12px; line-height: 2; color: var(--muted); margin: 0 0 31px; }
fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
legend { width: 100%; padding: 0; display: flex; align-items: center; gap: 17px; margin-bottom: 12px; font-size: 11px; font-weight: 500; }
.step { font: 10px/1.5 var(--sans); letter-spacing: .13em; color: var(--muted); }
legend .step { width: 65px; font-size: 9px; }
input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 4px; }
fieldset:disabled label { cursor: wait; opacity: .65; }
.primary-button { width: 100%; min-height: 58px; border: 1px solid var(--accent); background: var(--accent); color: #fffdf7; padding: 16px 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; font-size: 13px; letter-spacing: .12em; margin-top: 28px; transition: background-color .2s, transform .2s; }
.primary-button svg { width: 27px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.form-footnote { margin: 13px 0 0; font-size: 10px; color: var(--muted); text-align: center; }
.guess-preview { position: relative; background: #eeeee2; border: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; padding: 24px 25px 20px; overflow: hidden; }
.guess-preview::before, .guess-preview::after { content: ""; position: absolute; width: 7px; height: 7px; border: 1px solid #aeb6a5; border-radius: 50%; bottom: 18px; left: 18px; }
.guess-preview::after { left: auto; right: 18px; }
.preview-top { display: flex; justify-content: space-between; gap: 10px; font-size: 9px; letter-spacing: .17em; }
.preview-number { color: var(--muted); }
.orbital-art { position: relative; width: calc(100% + 36px); margin: 10px -18px 0; aspect-ratio: 480 / 470; }
.orbit-illustration { width: 100%; height: 100%; }
.orbit-circle { stroke: #c2c9b7; stroke-width: .7; }
.orbit-dashed { stroke-dasharray: 1 7; }
.orbit-line { stroke: #8d9c89; stroke-width: .75; }
.orbit-line.faint { opacity: .5; }
.art-spark { stroke: var(--ink); stroke-width: 1; }
.drop-letter { position: absolute; top: 45%; left: 50%; transform: translateX(-50%); color: #fff4dc; font: clamp(48px, 6.8vw, 89px)/1 var(--serif); letter-spacing: -3px; }
.preview-copy { text-align: center; margin: 11px 0 30px; }
.small-divider { display: block; height: 24px; width: 1px; background: #aab29f; margin: 0 auto 19px; }
.preview-copy h2 { font: 500 23px/1.85 var(--serif); letter-spacing: .08em; margin: 0 0 13px; }
.preview-copy p { font-size: 10px; line-height: 2.1; color: var(--muted); margin: 0; }
.preview-bottom { display: flex; align-items: center; justify-content: center; gap: 13px; margin-top: auto; padding: 20px 3px 3px; font-size: 7px; letter-spacing: .12em; }
.preview-bottom svg { width: 18px; height: 18px; stroke: var(--accent); stroke-width: .8; }
.loading { display: flex; align-items: center; gap: 11px; margin-top: 18px; }
.loading p { font-size: 11px; line-height: 1.8; margin: 0; }
.loading-orbit { width: 20px; height: 20px; border: 1px solid var(--line); border-top-color: var(--accent); border-radius: 50%; flex: 0 0 auto; animation: orbit 1.6s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
.error-panel { border-left: 2px solid var(--accent); background: #f6e9df; padding: 14px 17px; margin-top: 20px; font-size: 12px; line-height: 1.9; }
.error-panel p { margin: 0 0 8px; }
.error-actions { display: flex; flex-wrap: wrap; column-gap: 20px; }
.text-button { background: none; border: 0; border-bottom: 1px solid currentColor; padding: 9px 0 5px; font-size: 11px; line-height: 1.6; min-height: 38px; display: inline-flex; justify-content: center; align-items: center; gap: 13px; }
.text-button span { font-size: 17px; }
.result-view { max-width: 912px; margin: 0 auto 56px; }
.result-intro { text-align: center; margin-bottom: 27px; }
.result-intro .eyebrow { justify-content: center; color: var(--accent-dark); font-size: 9px; margin-bottom: 12px; }
.result-intro > p:last-child { font: 20px/1.7 var(--serif); margin: 0; }
.result-card { background: var(--paper-light); padding: 29px 42px 23px; border: 1px solid var(--line); border-top: 3px solid var(--accent); position: relative; box-shadow: 0 8px 0 -4px var(--paper), 0 9px 0 -4px var(--line); }
.result-card-top { display: flex; justify-content: space-between; align-items: center; gap: 15px; font-size: 9px; letter-spacing: .13em; border-bottom: 1px solid var(--line); padding-bottom: 22px; color: var(--muted); }
.result-controls { display: flex; justify-content: center; align-items: center; gap: 29px; margin-top: 30px; }
.secondary-button { display: inline-flex; align-items: center; gap: 11px; border: 1px solid var(--ink); padding: 13px 24px; min-height: 46px; background: transparent; font-size: 11px; }
.secondary-button svg { width: 15px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1; }
.copy-status { min-height: 18px; text-align: center; font-size: 11px; margin: 14px 0; }
.copy-fallback { max-width: 620px; margin: 15px auto; }
.copy-fallback label { display: block; font-size: 12px; line-height: 1.9; margin-bottom: 9px; }
.copy-fallback textarea { display: block; resize: vertical; width: 100%; padding: 12px; border: 1px solid var(--line); background: var(--paper-light); color: var(--ink); font-size: 12px; line-height: 1.8; }
.result-note { text-align: center; font: 14px/1.8 var(--serif); color: var(--muted); }
.about-section { border-top: 1px solid var(--line); }
details summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 15px; padding: 23px 0; font-size: 11px; }
details summary::-webkit-details-marker { display: none; }
.details-symbol { position: relative; width: 11px; height: 11px; margin: 3px 3px 0 0; }
.details-symbol::before, .details-symbol::after { content: ""; position: absolute; width: 11px; height: 1px; background: var(--ink); top: 5px; left: 0; }
.details-symbol::after { transform: rotate(90deg); }
details[open] .details-symbol::after { display: none; }
.about-content { max-width: 760px; padding-bottom: 24px; font-size: 11px; line-height: 2; color: var(--muted); }
.about-content p:first-child { margin-top: 0; }
.technical-details { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 20px; }
.technical-details > div { display: flex; flex-wrap: wrap; gap: 5px 20px; margin: 7px 0; }
.technical-details dt { min-width: 190px; }
.technical-details dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.budget-note { font-size: 10px; }
.site-footer { padding: 16px 0 28px; border-top: 1px solid var(--line); color: var(--muted); }
.site-footer > p { font-size: 9px; line-height: 1.9; margin: 0 0 22px; }
.site-footer > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.footer-brand { font: 20px var(--serif); color: var(--ink); letter-spacing: -.7px; }
.site-footer > div > span:last-child { font-size: 7px; letter-spacing: .15em; }
@media (hover: hover) {
  .primary-button:hover:not(:disabled) { background: var(--accent-dark); border-color: var(--accent-dark); }
  .secondary-button:hover { background: var(--ink); color: var(--paper-light); }
  .text-button:hover { color: var(--accent-dark); }
}
@media (min-width: 1500px) {
  .hero { gap: 88px; }
}
@media (max-width: 1050px) {
  .page-shell { padding: 0 36px; }
  .hero { gap: 32px; }
  .header-note { display: none; }
  .guess-preview { padding-right: 18px; padding-left: 18px; }
  .preview-copy h2 { font-size: 21px; }
  .orbital-art { margin-top: 44px; }
}
@media (max-width: 760px) {
  .page-shell { padding: 0 24px; max-width: 600px; }
  .site-header { min-height: 85px; }
  .brand { font-size: 33px; }
  .brand-drop { width: 16px; height: 23px; }
  .powered { border: 0; padding: 0; font-size: 9px; }
  .powered span { font-size: 16px; }
  .section-line { font-size: 7px; margin: 20px 0 31px; letter-spacing: .1em; }
  .hero { grid-template-columns: 1fr; gap: 35px; padding-bottom: 36px; }
  .hero-content { padding-top: 0; }
  .eyebrow { font-size: 9px; margin-bottom: 18px; }
  h1 { font-size: clamp(28px, 6.5vw, 39px); line-height: 1.8; margin-bottom: 18px; }
  .intro { font-size: 11px; margin-bottom: 27px; max-width: 27em; }
  fieldset { margin-bottom: 21px; }
  .primary-button { min-height: 57px; margin-top: 26px; }
  .guess-preview { padding: 22px; }
  .orbital-art { max-width: 410px; width: 100%; margin: 0 auto; }
  .drop-letter { font-size: clamp(62px, 16vw, 85px); }
  .preview-copy { margin: 7px 0 18px; }
  .preview-copy h2 { font-size: 22px; }
  .small-divider { height: 18px; margin-bottom: 17px; }
  .preview-bottom { padding-top: 14px; }
  .result-view { margin-bottom: 35px; }
  .result-card { padding: 21px 22px; }
  .result-card-top { font-size: 7px; padding-bottom: 18px; letter-spacing: .07em; }
  .result-controls { gap: 22px; }
  .secondary-button { padding: 12px 17px; }
  .result-intro > p:last-child { font-size: 18px; }
  .site-footer > p { max-width: 34em; }
  .technical-details > div { flex-direction: column; margin-bottom: 12px; gap: 0; }
}
@media (max-width: 360px) {
  .page-shell { padding: 0 18px; }
  h1 { letter-spacing: 0; }
  .result-card { padding-right: 17px; padding-left: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.answer-options { display: grid; gap: 12px; }
.answer-options label { position: relative; display: block; cursor: pointer; }
.answer-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.answer-options span { display: block; padding: 20px 22px 20px 47px; border: 1px solid var(--line); background: var(--paper-light); font-size: 13px; line-height: 1.8; }
.answer-options span::before { content: ""; position: absolute; left: 19px; top: 25px; width: 13px; height: 13px; border: 1px solid var(--muted); border-radius: 50%; }
.answer-options input:checked + span { border-color: var(--accent); background: #f9e7db; }
.answer-options input:checked + span::before { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 3px #f9e7db; }
.answer-options input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 4px; }
#question-title { font: 500 24px/1.8 var(--serif); margin: 18px 0 24px; }
#quiz-progress { width: 100%; height: 4px; accent-color: var(--accent); }
.quiz-controls { display: flex; align-items: center; gap: 24px; }
.quiz-controls .primary-button { margin: 0; flex: 1; justify-content: center; }
.quiz-controls .text-button { min-width: 48px; }
button:disabled { cursor: default; }
.candidate { position: absolute; font: 28px var(--serif); background: var(--paper); border: 1px solid var(--line); border-radius: 50%; width: 48px; height: 48px; display: grid; place-items: center; }
.candidate-a { top: 14%; left: 17%; }
.candidate-b { top: 21%; right: 9%; }
.candidate-o { bottom: 17%; left: 9%; }
.candidate-ab { bottom: 9%; right: 17%; font-size: 23px; }
.guess-card { text-align: center; }
.guess-card .eyebrow { justify-content: center; }
.guess-card h2 { font: 26px/1.7 var(--serif); }
.guess-type { color: var(--accent); font: clamp(110px, 18vw, 220px)/1.1 var(--serif); letter-spacing: -.06em; padding: 10px 0; }
.type-suffix { font: 28px var(--serif); margin-left: 12px; letter-spacing: 0; }
.result-caption { font: 24px var(--serif); }
.feedback { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 12px; }
.feedback-options { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.feedback-options [aria-pressed="true"] { background: var(--ink); color: var(--paper); }
#feedback-message { min-height: 24px; font-size: 12px; line-height: 1.8; }
#result-details { text-align: left; border-top: 1px solid var(--line); }
#model-name { overflow-wrap: anywhere; }
#candidate-weights { font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  #question-title { font-size: 22px; }
  .answer-options span { font-size: 12px; padding-right: 15px; }
  .guess-preview { max-width: 100%; }
  .feedback-options .secondary-button { padding: 12px 14px; }
  .candidate { width: 40px; height: 40px; font-size: 24px; }
  .candidate-ab { font-size: 19px; }
}
