:root{font-family:system-ui,sans-serif;color:#173333;background:#f4f7ef;font-size:18px;line-height:1.6}*{box-sizing:border-box}body{margin:0}header{display:flex;justify-content:space-between;padding:1rem 5vw;background:#153e3c;color:white}header a{color:white}main{max-width:960px;margin:auto;padding:2rem 1rem}h1{font-size:clamp(2rem,5vw,3.2rem);line-height:1.15}h2{font-size:1.4rem}section,article,fieldset{background:white;border:1px solid #c2d2c7;border-radius:16px;padding:1.3rem;margin:1rem 0}fieldset{min-width:0}legend{font-weight:700;padding:.3rem}label{display:block;margin:.8rem 0}select,input,textarea,button{font:inherit;max-width:100%;padding:.7rem;border:1px solid #718c82;border-radius:8px}select,textarea,input:not([type=checkbox]):not([type=radio]){width:100%}textarea{min-height:120px;line-height:1.8}button{cursor:pointer;background:#145e54;color:white;margin:.3rem .3rem .3rem 0;border:2px solid transparent}button.secondary{background:#fff;color:#164b44;border-color:#718c82}button:disabled{opacity:.5;cursor:not-allowed}:focus-visible{outline:4px solid #b14910;outline-offset:3px}.row{display:flex;gap:1rem;flex-wrap:wrap}.row>*{flex:1;min-width:200px}.passage{white-space:pre-wrap;font-size:1.2rem;line-height:1.9}.notice{border-left:5px solid #ad5b24;padding:.8rem;background:#fff3df}.muted{color:#45605a}small{font-size:.85rem}#status:empty{display:none}details{margin:1rem 0}summary{cursor:pointer;font-weight:700}.choice{display:block;padding:1rem;border:2px solid #90afa0;border-radius:8px;margin:.5rem 0}.choice input{margin-right:.5rem}a{color:#0b6155}pre{white-space:pre-wrap}@media print{header,button,form,#status{display:none}main{padding:0}section,article{break-inside:avoid;border:0}}

.story-art{display:block;max-width:100%;height:auto;object-fit:contain;margin:1rem auto;max-height:80vh}
