:root { color-scheme: light; font-family: 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif; color: #283b37; background: #f5f1e8; font-size: 17px; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.top { min-height: 72px; padding: 0 max(24px, 5vw); display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: #fffdf8; border-bottom: 1px solid #d9ded0; font-weight: 700; }
.top a { min-height: 48px; display: flex; align-items: center; color: #315a50; }
main { width: min(1180px, 100%); padding: 48px 26px 70px; margin: auto; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.2; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.05rem; margin-bottom: .6rem; }
p { line-height: 1.65; }
.eyebrow { color: #754825; font-weight: 700; }
.lead { font-size: 1.2rem; font-weight: 700; line-height: 1.6; }
.intro { min-height: 510px; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.intro-art { width: 100%; max-width: 480px; justify-self: center; }
fieldset { border: 0; padding: 0; margin: 1.5rem 0; }
legend { font-weight: 700; margin-bottom: .6rem; }
label { display: block; margin: .5rem 0; line-height: 1.5; }
input[type='radio'] { width: 20px; height: 20px; vertical-align: middle; accent-color: #315b50; }
button, summary { font: inherit; }
button { min-height: 48px; padding: .7rem 1rem; border: 2px solid #496c60; border-radius: .55rem; color: #21483e; background: #fffdf8; font-weight: 700; cursor: pointer; }
button.primary { color: #fff; background: #315a50; border-color: #315a50; }
button:disabled { opacity: .55; cursor: default; }
button[aria-pressed='true'] { background: #f3d6b4; border-width: 4px; color: #50331f; }
button:focus-visible, summary:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid #8b3f22; outline-offset: 3px; }
.heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
details { margin-bottom: 1rem; padding: .7rem 1rem; background: #e9eee6; border-radius: .7rem; }
summary { min-height: 44px; padding: .55rem 0; font-weight: 700; cursor: pointer; }
.workspace { display: grid; grid-template-columns: 1fr 1.3fr; align-items: start; gap: 1rem; }
.panel { padding: 1.4rem; background: #fffdf8; border: 1px solid #d4dccd; border-radius: 1rem; }
.layers, .shadows { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.layers > div, .shadows > div { min-width: 0; }
.model-grid, .shadow-grid { display: grid; gap: 3px; width: min(100%, 230px); padding: 7px; background: #dbe3d8; border-radius: .4rem; }
.model-grid { grid-template-columns: repeat(3, 1fr); width: min(100%, 150px); }
.shadow-grid { grid-template-columns: repeat(5, 1fr); }
.tile { aspect-ratio: 1; display: block; background: #fffdf8; border: 1px solid #a7b8aa; border-radius: 2px; }
.model-grid .filled { background: #ae693f; border: 2px solid #683e27; }
.shadow-grid .filled { background: #526d5b; border: 2px solid #294436; }
.layers p, .shadows p { margin-top: .7rem; font-size: .9rem; }
#lights { margin-top: 1.4rem; }
.light-buttons, .actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.status { margin: 1rem 0; padding: .8rem 1rem; background: #e6eee4; border-radius: .6rem; min-height: 3rem; }
.result { max-width: 720px; margin: 2rem auto; }
.result button { margin: .3rem; }
footer { border-top: 1px solid #d4dccd; padding: 1.5rem max(24px, 5vw); color: #475b50; font-size: .9rem; }
@media (max-width: 760px) { main { padding: 32px 16px 48px; } .intro, .workspace { grid-template-columns: 1fr; } .intro { gap: 1rem; } .intro-art { max-width: 320px; } .heading { flex-wrap: wrap; } .panel { padding: 1rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !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; }
