:root { color-scheme: light; font-family: 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif; color: #263954; background: #f6f8fb; font-size: 18px; line-height: 1.6; }
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 1rem; z-index: 3; background: white; padding: .5rem; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem max(1.2rem, calc((100vw - 1120px) / 2)); background: #e5eaf3; font-weight: 700; }
a { color: #304b70; }
main { max-width: 1120px; margin: 0 auto; padding: 2rem 1.2rem 4rem; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.25; margin-bottom: 1rem; }
h2 { font-size: 1.35rem; line-height: 1.4; }
.kicker { color: #3f5b7f; font-size: .9rem; font-weight: 700; }
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; min-height: 65vh; }
.lead { font-size: clamp(1.3rem, 2.6vw, 1.8rem); font-weight: 700; line-height: 1.5; }
.cover { text-align: center; color: #3f5b7f; font-weight: 700; }
.cover svg { display: block; width: 100%; max-width: 470px; margin: auto; }
button { font: inherit; color: #263954; background: #fff; border: 2px solid #788eab; border-radius: .6rem; min-height: 48px; padding: .55rem 1rem; cursor: pointer; text-align: left; }
button:hover:not(:disabled) { background: #e7eef8; }
button:focus-visible, a:focus-visible, [tabindex='-1']:focus-visible { outline: 3px solid #a14917; outline-offset: 3px; }
button:disabled { cursor: default; color: #495c75; background: #edf1f6; border-color: #a4b2c2; }
button[aria-pressed='true'] { background: #dde9f7; border-color: #405d84; font-weight: 700; }
button.primary { color: #fff; background: #344f75; border-color: #344f75; font-weight: 700; }
button.primary:hover { background: #263c5b; }
.heading { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.panel { background: white; border: 1px solid #bdcbdd; border-radius: .8rem; padding: 1.4rem; margin-bottom: 1rem; }
.choices, .actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1rem 0; }
.choices button { flex: 1 1 12rem; }
.reference { border-left: 5px solid #829ac0; background: #edf2f9; padding: .7rem 1rem; margin: 1rem 0; }
.hint { color: #435873; }
#story-art { display: block; width: min(100%, 650px); height: auto; }
#story-art text { fill: #263954; font-size: 16px; font-family: inherit; }
#locations { font-weight: 700; margin-top: .7rem; }
#status { min-height: 1.8em; padding: .5rem 0; font-weight: 700; }
.result { max-width: 720px; margin-top: 3rem; }
.comparison { border-left: 5px solid #829ac0; padding: .6rem 1rem; margin: 1rem 0; background: #edf2f9; }
.comparison p { margin-bottom: 0; }
footer { padding: 1.5rem; text-align: center; font-size: .9rem; color: #3f5b7f; }
dialog { border: 1px solid #8097b2; border-radius: .8rem; padding: 2rem; max-width: min(90vw, 480px); color: #263954; }
dialog::backdrop { background: rgb(25 39 60 / 65%); }
@media (max-width: 700px) { .intro { grid-template-columns: 1fr; gap: 1rem; } .cover { grid-row: 1; } .cover svg { max-height: 200px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* 판 선택 화면 목록 링크 */
#hub-link, #hub { color: #174f74; display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; font-weight: 700; }
#hub-link[hidden], #hub[hidden] { display: none; }
