.modal-story,.modal-review-story{width:min(720px,100%)}
.story-frame{min-width:0;padding:2px 4px 10px}
.story-meta{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding-bottom:12px;margin-bottom:16px;border-bottom:1px solid #b5a17066}
.story-scene{color:var(--green,#3f5b3b);font-size:16px;line-height:1.6}
.story-progress{flex:0 0 auto;color:var(--muted,#666149);font-size:14px;line-height:1.6;font-variant-numeric:tabular-nums;white-space:nowrap}
.modal-content .story-context{margin:0 0 16px;color:var(--muted,#666149);font-size:17px;line-height:1.8;white-space:pre-wrap}
.modal-content .story-prose{margin:0;font-size:21px;line-height:1.9;letter-spacing:.015em;white-space:pre-wrap;overflow-wrap:anywhere}
.modal-battle-start,.modal-combat-complete,.modal-ko{width:min(570px,100%)}
.story-encounter,.story-ending,.story-rest{padding:2px 4px}
.modal-content .story-arrival{font-size:18px;line-height:1.8;white-space:pre-wrap;margin:10px 0 16px}
.story-goal{font-size:18px;line-height:1.7;color:var(--green,#3f5b3b)}
.story-controls{list-style:none;padding:0;margin:16px 0}
.story-controls li{display:grid;grid-template-columns:56px minmax(0,1fr);gap:4px 12px;padding:9px 0;border-bottom:1px solid #b5a17055;line-height:1.65}
.story-control-label{color:var(--green,#3f5b3b)}
.story-controls kbd{width:fit-content;max-width:100%;padding:2px 7px;border:1px solid #ad985e;background:#e8daba;font:inherit;line-height:1.6;white-space:normal;overflow-wrap:anywhere}
.story-control-copy{grid-column:2;color:var(--muted,#666149)}
.modal-content .story-note{margin:12px 0 0;color:var(--muted,#666149);font-size:14px;line-height:1.7}
.modal-content .story-result{font-size:21px;line-height:1.8;margin:6px 0 18px;color:var(--green,#3f5b3b)}
.story-loot{padding:12px 0;border-top:1px solid #b5a17066;border-bottom:1px solid #b5a17066;line-height:1.8}
.story-loot strong{color:#81652e;font-weight:600}
@media(max-width:700px){.story-frame,.story-encounter,.story-ending,.story-rest{padding-left:0;padding-right:0}.story-meta{gap:12px;padding-bottom:9px;margin-bottom:12px}.story-progress{font-size:16px}.modal-content .story-prose{font-size:18px;line-height:1.85}.modal-content .story-context{font-size:16px;line-height:1.8;margin-bottom:12px}.modal-content .story-arrival{font-size:18px}.story-controls li{grid-template-columns:48px minmax(0,1fr);gap:4px 9px}.modal-content .story-note{font-size:16px}.modal-content .story-result{font-size:20px}}
@media(max-height:520px){.story-meta{padding-bottom:7px;margin-bottom:10px}.modal-content .story-prose{font-size:18px;line-height:1.75}.modal-content .story-context{margin-bottom:10px}}
