:root { color-scheme: light; --ink: #263f36; --muted: #61736b; --paper: #faf7ee; --line: #d6ddd0; --accent: #963e29; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.7 system-ui, -apple-system, 'Malgun Gothic', sans-serif; word-break: keep-all; overflow-wrap: anywhere; }
header { max-width: 880px; margin: auto; padding: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); }
.brand { font-size: 21px; font-weight: 800; }
a { color: inherit; }
.brand { text-decoration: none; }
.share-url { display: block; width: 100%; padding: 12px; font: inherit; font-size: 14px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); }
.tag, .eyebrow { font-size: 13px; font-weight: 650; color: var(--muted); }
.notice { max-width: 832px; margin: 20px auto; padding: 14px 18px; background: #f1e9d9; border-left: 3px solid #b08b55; font-size: 13px; }
main { max-width: 720px; margin: 32px auto; padding: 0 24px; min-height: 50vh; }
h1 { font-size: clamp(25px, 5vw, 34px); line-height: 1.4; margin: 0 0 12px; outline: none; }
h2 { font-size: 24px; line-height: 1.5; white-space: pre-line; }
h3 { font-size: 19px; margin: 0 0 12px; line-height: 1.5; }
p { margin: 12px 0; }
.intro, .hint { color: var(--muted); }
.hint { font-size: 14px; }
.hero { background: #eaf0e2; border-top: 3px solid var(--ink); padding: 28px; margin: 24px 0; border-radius: 4px 4px 20px 20px; }
.card { padding: 22px; margin: 20px 0; border: 1px solid var(--line); border-radius: 16px; background: #fffdf8; }
.card.hero { background: #eaf0e2; }
button { border: 1px solid transparent; border-radius: 12px; padding: 14px 20px; font: inherit; font-weight: 700; background: var(--ink); color: white; cursor: pointer; min-height: 48px; margin: 8px 8px 8px 0; }
button.secondary { background: transparent; color: var(--ink); border-color: #8b9d91; }
button:disabled { opacity: .45; cursor: not-allowed; }
button:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid #a7512f; outline-offset: 4px; }
.actions { display: flex; flex-wrap: wrap; margin: 18px 0; }
.actions button { flex: 1; }
.share-actions { gap: 8px; }
.share-actions button { margin: 0; }
@media (max-width: 480px) { .share-actions { flex-direction: column; } }
fieldset { border: 0; padding: 0; margin: 28px 0; min-width: 0; }
legend { font-size: 23px; font-weight: 750; line-height: 1.6; margin-bottom: 20px; width: 100%; }
.question-title { text-align: center; text-wrap: balance; }
.question-line { display: block; }
.question-line + .question-line { margin-top: 6px; }
.anchors { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; text-align: center; font-weight: 700; }
.left { color: #285648; }
.right { color: #963e29; }
.choice-letter { display: block; font-size: 23px; margin-bottom: 8px; }
.gauge-track { position: relative; height: 48px; border-radius: 8px; background: linear-gradient(90deg,#254f43 0%,#8fab99 30%,#f3eee0 50%,#dfb397 70%,#a5533b 100%); }
#relationship-gauge { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; direction: ltr; }
.gauge-track:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 5px; }
.gauge-marker { position: absolute; top: 50%; width: min(40px,calc(100% / 7 - 4px)); aspect-ratio: 1; border: 3px solid #fff; border-radius: 50%; background: transparent; box-shadow: 0 0 0 1px #526457,inset 0 0 0 1px #526457; transform: translate(-50%,-50%); pointer-events: none; }
.gauge-help { font-size: 12px; text-align: center; color: var(--muted); margin-top: 14px; }
.selection { text-align: center; font-weight: 750; min-height: 28px; margin: 20px 0 14px; }
.selection[data-state="unanswered"] { font-weight: 500; font-size: 15px; color: var(--muted); }
progress { width: 100%; height: 8px; accent-color: #285648; }
details { margin: 22px 0; border: 1px solid #93a58c; border-radius: 16px; padding: 18px; background: #f0f3e7; }
summary { cursor: pointer; font-size: 18px; font-weight: 750; min-height: 44px; align-content: center; }
.scope { display: flex; align-items: flex-start; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.scope input { width: 23px; height: 23px; flex: 0 0 23px; accent-color: #285648; margin: 3px 0 0; }
.relation-note { display: block; font-size: 14px; color: var(--muted); margin-top: 6px; }
.pair-entry { border: 2px solid #8b9d91; background: #edf2e7; }
.kakao-share-link { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 18px; border-radius: 12px; background: #fee500; color: #191919; font-weight: 700; text-decoration: none; }
.kakao-share-link:focus-visible { outline: 3px solid #285648; outline-offset: 3px; }
footer { max-width: 832px; margin: 32px auto; padding: 24px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); }
@media (max-width: 480px) { header { padding: 18px; } main { padding: 0 18px; margin-top: 24px; } .notice { margin: 12px; padding: 10px 12px; } .hero, .card { padding: 18px; } legend { font-size: 21px; } .anchors { gap: 18px; } details { padding: 14px; } }
