:root { color-scheme: light; font-family: 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif; color: #293a32; background: #f9faf5; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible, [tabindex='0']:focus-visible { outline: 3px solid #795077; outline-offset: 3px; }
.skip-link { position: absolute; top: -80px; left: 12px; padding: 12px; background: #fff; color: #3f2547; }
.skip-link:focus { top: 8px; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 max(6vw,24px); border-bottom: 1px solid #e0e9df; background: #fffefa; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark { width: 24px; height: 24px; border: 2px solid #4b6c56; border-radius: 7px; background: radial-gradient(circle,#4b6c56 0 4px,transparent 5px); }
.topbar a { min-height: 44px; display: flex; align-items: center; color: #315c46; font-size: 15px; font-weight: 700; }
.page { max-width: 1200px; margin: auto; padding: 54px 28px 76px; }
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; min-height: 570px; }
.eyebrow, .card-kicker { color: #3a5f49; font-size: 15px; font-weight: 800; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(30px,4vw,50px); line-height: 1.25; letter-spacing: -.04em; margin: 15px 0 22px; }
h2 { font-size: 22px; line-height: 1.4; }
h3 { font-size: 18px; line-height: 1.5; }
.lead { font-size: 20px; line-height: 1.7; font-weight: 700; }
.intro-note, .subtitle, .guide { color: #475e50; line-height: 1.7; }
.intro-note { margin-top: 16px; }
fieldset { border: 0; padding: 0; margin: 27px 0 24px; }
legend { font-size: 16px; font-weight: 800; margin-bottom: 10px; }
.settings { display: flex; flex-wrap: wrap; gap: 10px; }
.settings label { min-height: 48px; display: flex; align-items: center; gap: 8px; padding: 10px 13px; border: 1px solid #a8bea9; border-radius: 9px; background: #fffefa; cursor: pointer; font-weight: 700; }
input[type='radio'] { width: 19px; height: 19px; accent-color: #426b50; }
.button { min-height: 50px; padding: 12px 20px; border: 1px solid transparent; border-radius: 9px; font-size: 16px; font-weight: 800; }
.primary { background: #365f46; color: #fff; }
.secondary { background: #fffefa; color: #2e5740; border-color: #96ad9a; }
.intro-art { border-radius: 22px; background: #e8efe6; min-height: 390px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px; }
.intro-art svg { display: block; width: 100%; max-height: 340px; }
.intro-art span { color: #3b5e49; font-size: 15px; font-weight: 800; }
.game-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.game-heading h1 { font-size: 32px; margin: 10px 0 8px; }
.subtitle { font-size: 18px; }
.layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); gap: 18px; align-items: start; }
.card { background: #fffefa; border: 1px solid #dbe8dc; border-radius: 16px; padding: 25px; }
.card h2 { margin: 7px 0 10px; }
.guide { font-size: 16px; }
.news-source { margin: 20px 0 10px; }
.news-text { color: #293a32; line-height: 1.8; font-size: 19px; }
details { margin-top: 22px; border-top: 1px solid #dbe8dc; padding-top: 10px; }
summary { cursor: pointer; min-height: 48px; padding: 12px 4px; color: #31563e; font-weight: 800; }
details p { margin: 0 0 16px; line-height: 1.7; }
.claim { margin: 18px 0; padding: 18px; border: 1px solid #d6e3d5; border-radius: 12px; background: #f3f8f1; }
.current { color: #2d503b; margin: 8px 0 12px; font-weight: 700; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.field-list { display: grid; gap: 8px; margin: 10px 0 20px; }
.field-choice { width: 100%; text-align: left; }
.card h3 { margin-top: 18px; }
.choices { margin: 10px 0 20px; }
#diagram svg { display: block; width: 100%; max-width: 390px; margin: 0 auto; }
.links { stroke: #718b75; stroke-width: 3; }
.informed circle { fill: #d3ead4; stroke: #426b50; stroke-width: 3; }
.waiting circle { fill: #fffefa; stroke: #718b75; stroke-width: 3; }
#diagram text { fill: #243c2e; text-anchor: middle; font-size: 21px; font-weight: 800; }
.network { color: #293a32; line-height: 1.7; }
.known { color: #2d503b; background: #f3f8f1; border-radius: 10px; padding: 12px; margin: 12px 0; line-height: 1.7; font-weight: 700; }
.transfers { color: #293a32; line-height: 1.7; }
.choice { min-height: 48px; padding: 10px 14px; color: #31583e; background: #fffefa; border: 1px solid #9fb6a4; border-radius: 8px; font-weight: 800; }
.choice[aria-pressed='true'] { color: #fff; background: #365f46; border-color: #365f46; }
.status { min-height: 28px; margin: 16px 0; color: #31563e; font-weight: 800; line-height: 1.6; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.text-button { min-height: 48px; padding: 10px; border: 0; background: transparent; color: #31563e; text-decoration: underline; font-weight: 700; }
.result-card { max-width: 760px; margin: 20px auto; }
.result-card h1 { font-size: 32px; }
.result { padding: 18px; margin: 20px 0; color: #293f31; background: #eff6eb; border-radius: 10px; line-height: 1.8; }
.stopped { min-height: 490px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.stopped h1 { font-size: 32px; }
.stopped .button { margin-top: 24px; }
footer { max-width: 1200px; margin: auto; padding: 22px 28px; color: #4e6355; font-size: 14px; border-top: 1px solid #e0ebdf; }
dialog { width: min(420px,calc(100% - 32px)); border: 1px solid #b0c5b4; border-radius: 16px; padding: 0; color: #29382f; background: #fffefa; }
dialog::backdrop { background: rgba(28,42,32,.45); }
.dialog-content { padding: 30px; }
.dialog-content h2 { margin-bottom: 10px; }
.dialog-content p { line-height: 1.7; }
.dialog-content .button { margin-top: 22px; }
@media (max-width: 760px) { .topbar { height: 64px; padding: 0 18px; } .page { padding: 34px 18px 48px; } .intro, .layout { grid-template-columns: 1fr; } .intro { gap: 25px; min-height: 0; } .intro-art { min-height: 270px; } .intro-art svg { max-height: 280px; } .game-heading { align-items: start; flex-direction: column; } .card { padding: 19px; } footer { padding: 18px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !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; }
.practice { margin: 10px 0 18px; } .practice summary { min-height: 48px; display: flex; align-items: center; cursor: pointer; font-weight: 700; }
#ladder-host { margin: 0 0 12px; }
