.chapter-module.ch4-stage{width:100%;min-width:0;color:#496357}
.chapter-module .ch4-viewport{width:100%;height:clamp(330px,105vw,505px);overflow:auto;background:#f6efe1;border-radius:12px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c7cbb8 #f6efe1}
.chapter-module .ch4-map{display:block;width:100%;height:100%;user-select:none;-webkit-user-select:none;font-family:serif}
.chapter-module .ch4-hit{fill:transparent;cursor:pointer}
.chapter-module .ch4-dot{fill:#fffaf0;stroke:#a99b79;stroke-width:3;pointer-events:none}
.chapter-module .ch4-visited .ch4-dot{fill:#a54754;stroke:#a54754}
.chapter-module .ch4-current .ch4-dot{fill:#f6dd9a;stroke:#8c3c4b;stroke-width:4}
.chapter-module .ch4-node:focus-visible .ch4-hit{fill:#c7d7c7;fill-opacity:.5;stroke:#46675e;stroke-width:3}
.chapter-module .ch4-node:hover .ch4-dot{stroke:#8c3c4b;stroke-width:5}
.chapter-module .ch4-memory{background:#fff9eb;border:1px solid #d8c6a2;border-radius:12px;padding:18px 22px;color:#4a5e4f;margin:0 0 15px;line-height:1.85;font-size:15px}
.chapter-module .ch4-memory p{margin:0 0 12px}
.chapter-module .ch4-memory p:last-child{margin-bottom:0}
.chapter-module .ch4-memory .ch4-memory-title{font-weight:700;letter-spacing:.1em;color:#8f3447}
.chapter-module .ch4-memory ul{margin:10px 0 14px;padding-left:1.4em}
.chapter-module .ch4-memory .ch4-legend{font-size:12px;color:#766d5c}
.chapter-module .ch4-edit{display:flex;gap:10px;justify-content:center;margin-top:12px}
.chapter-module .ch4-edit button{min-height:44px;border:1px solid #cbd6c6;border-radius:9px;background:#fffdf6;color:#557267;font-size:13px;padding:8px 17px}
.chapter-module .ch4-edit button:disabled{opacity:.45;cursor:default}
.chapter-module .ch4-operation-note{margin:9px 0 15px;font-size:11px;color:#766d5c;text-align:center}
.chapter-module .ch4-move-feedback{font-size:12px;color:#8f3447;line-height:1.7}
.chapter-module .ch4-move-feedback:empty{display:none}
.chapter-module .ch4-form{display:grid;gap:10px;max-width:430px;margin:20px auto 0}
.chapter-module .ch4-form label{font-size:13px;font-weight:700;color:#46675e}
.chapter-module .ch4-form input{width:100%;min-width:0;min-height:49px;padding:10px 13px;border:1px solid #c8bdac;border-radius:9px;background:#fffdf7;color:#3c4e43;font-size:18px}
.chapter-module .ch4-form input[aria-invalid="true"]{border-color:#a84958}
.chapter-module .ch4-feedback{margin:0;color:#8f2634;font-size:12px;line-height:1.6}
.chapter-module .ch4-feedback:empty{display:none}
.chapter-module .ch4-submit{width:100%;min-height:48px;border:0;border-radius:10px;background:#8f2634;color:#fffdf7;font-size:14px;font-weight:700;padding:10px 15px}
.chapter-module .ch4-submit:hover{background:#a23342}
