:root{color-scheme:light;--ink:#2e453b;--muted:#5b655e;--line:#cbd0c5;--paper:#faf9f4;--panel:#eef0ec;--sage:#dfe6d8;--lav:#e9e2ef;--gold:#957347}
*{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.5 system-ui,sans-serif}
main{max-width:920px;margin:auto;padding:24px 20px 150px}
.eyebrow{font-size:12px;font-weight:750;letter-spacing:.14em;color:#596b58;margin:0 0 8px}
h1{font:clamp(30px,6vw,48px)/1.08 Georgia,serif;margin:8px 0 12px}
h2{font:clamp(25px,4vw,34px)/1.15 Georgia,serif;margin:4px 0 8px}
h3{font:22px/1.2 Georgia,serif;margin:4px 0 12px}
p{margin:8px 0}
.intro{max-width:650px;color:var(--muted);font-size:18px}
.gallery-back{display:inline-block;margin:0 0 18px;color:var(--ink);font-weight:650;text-decoration-thickness:1px;text-underline-offset:3px}
button:focus-visible,summary:focus-visible{outline:3px solid #8d6c45;outline-offset:3px}
.scene-panel{background:#f0f2ec;border:1px solid var(--line);border-radius:20px;padding:18px;box-shadow:0 6px 22px #263d3010}
.scene-heading{margin-bottom:12px}.scene-heading>p:last-child{color:var(--muted);margin:0}
.scene-art{background:#f9f7f0;border:1px solid #d9ddd4;border-radius:16px;overflow:hidden;min-height:0}
.scene-svg{display:block;width:100%;height:auto;aspect-ratio:512/960;background:#f8f1e8}
.scene-svg--face{width:auto;max-width:100%;height:min(58svh,520px);margin:0 auto}
.scene-svg text{font-family:system-ui,sans-serif;fill:#495b4f}.scene-svg .label{font-size:17px;font-weight:750;letter-spacing:.04em}.scene-svg .small{font-size:14px;font-weight:650}.scene-svg .tiny{font-size:12px;font-weight:700}
.scene-svg .arrow-line{fill:none;stroke:#355849;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;marker-end:url(#arrow-head)}
.scene-svg .marker{cursor:pointer}.scene-svg .marker circle:first-child{fill:#fffdf5;stroke:#355849;stroke-width:3}.scene-svg .marker text{font-size:18px;font-weight:750;fill:#315243;text-anchor:middle;dominant-baseline:central;pointer-events:none}.scene-svg .marker[aria-pressed=true] circle:first-child{fill:#dfe8d7;stroke:#8b6e43;stroke-width:5}.scene-svg .marker .target-dot{fill:#fffdf5;stroke:#355849;stroke-width:4}.scene-svg .marker[aria-pressed=true] .target-dot{fill:#8b6e43;stroke:#fffdf5;stroke-width:3}.scene-svg .marker:focus-visible{outline:none;filter:drop-shadow(0 0 5px #8b6e43)}
.structure-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px;margin:14px 0;border-top:1px solid #d4dacf}
.structure-option{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;border:0;border-bottom:1px solid #d4dacf;border-radius:0;background:transparent;padding:7px 5px;color:var(--ink);text-align:left;font:500 15px/1.3 system-ui,sans-serif;cursor:pointer}
.structure-option[aria-pressed=true]{border-radius:9px;background:#e5ebe1;color:#263f33;font-weight:700}.number{flex:0 0 24px;display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#385a49;color:white;font-size:12px;font-weight:750}
.structure-detail{min-height:142px;background:#fffefa;border:1px solid #d2d7cd;border-left:5px solid var(--gold);border-radius:14px;padding:14px 16px}.structure-detail p{margin:7px 0;color:#46564d}.structure-detail strong{color:#2f4a3d}
.scene-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:14px}.scene-controls button{min-height:46px;border:1px solid #bcc7ba;border-radius:10px;background:#e7ece3;color:var(--ink);font:650 14px/1.2 system-ui,sans-serif;padding:9px 13px;cursor:pointer}
.scope-note{margin-top:18px;border-top:1px solid var(--line);color:var(--muted)}.scope-note summary{min-height:44px;padding:10px 0;cursor:pointer;color:var(--ink);font-weight:650}.scope-note p{max-width:720px}
@media(max-width:600px){main{padding:20px 14px 145px}.scene-panel{padding:12px}.structure-list{grid-template-columns:1fr}.structure-option{font-size:16px}.structure-detail{min-height:0}.scene-controls button{padding:8px 10px;font-size:13px}.eyebrow{font-size:11px}}
@media(min-width:760px){.scene-svg--face{height:min(64vh,640px)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media print{.scene-controls{display:none}.scene-panel{box-shadow:none;background:white}main{padding:0}body{background:white}}
