/* A playable story front door, using the existing game's own artwork. */
.story-scene-art{position:relative;height:180px;overflow:hidden;background-size:cover;background-position:center;image-rendering:pixelated;border-radius:12px;isolation:isolate}
.story-scene-art .life-sprite{position:absolute;bottom:4px;left:calc(50% - 65px);width:130px;height:130px;animation:none}
.story-light{position:absolute;inset:0;pointer-events:none;background:linear-gradient(0deg,#18382d38,transparent 55%)}
.story-opening.paper{padding:0;overflow:hidden;max-width:860px;margin-inline:auto}
.story-opening>.story-scene-art{height:260px;border-radius:0}
.story-opening>.story-scene-art .life-sprite{height:170px;width:170px;left:calc(50% - 85px);bottom:12px}
.story-opening-body{padding:28px 32px}
.story-opening-line{font-size:19px;line-height:1.8;max-width:650px}
.story-opening-goal{border-left:4px solid #ad823e;background:#f2ecd9;padding:12px 16px;display:grid;gap:6px;margin:20px 0;color:#304b39}
.story-opening-goal small{font-size:13px;color:#686044}.story-opening-goal b{font-size:18px;line-height:1.5}
.story-opening-body>button{width:100%;min-height:52px;white-space:normal;font-size:19px}
.story-start-details{margin:18px 0;font-size:15px;line-height:1.7}.story-start-details summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:10px}.story-start-details summary:before{content:'＋'}.story-start-details[open] summary:before{content:'−'}
#what-if[data-playback-space=daily]:has(>.life-theater)>#story-journey-host{display:block}
.story-journey{border:1px solid #aebda3;border-radius:15px;padding:20px 24px;background:#fcfaf0;color:#213d2d;margin-bottom:18px}
.story-journey-top{display:flex;justify-content:space-between;gap:12px;font-size:14px}.story-journey-top>span{font-weight:700;color:#725c31}
.story-journey progress{display:block;width:100%;height:6px;margin:12px 0 18px;accent-color:#8e773a}
.story-journey-main{display:flex;align-items:center;gap:22px;justify-content:space-between}.story-journey-main>div{min-width:0}.story-journey-main small{color:#69745e;font-size:13px}.story-journey h2{font-size:22px;line-height:1.4;margin:6px 0 8px;word-break:keep-all}.story-journey-main p{font-size:15px;line-height:1.6;margin:0;overflow-wrap:anywhere;max-width:620px}.story-journey-main button{flex-shrink:0;min-height:52px;padding:12px 22px;white-space:normal;max-width:240px}
.story-pockets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:14px 0;margin:14px 0 6px;border-top:1px solid #dce1ce;border-bottom:1px solid #dce1ce}.story-pockets dt{font-size:12px;color:#68715e}.story-pockets dd{margin:6px 0 0;font-size:18px;font-weight:700;overflow-wrap:anywhere}.story-journey-note{display:block;color:#68715e;font-size:12px;line-height:1.5}
.life-event-dialog>.story-scene-art{height:155px;margin-bottom:18px}.life-event-dialog>.story-scene-art .life-sprite{height:110px;width:110px;left:calc(50% - 55px)}
#event-result:not([hidden]){display:grid;grid-template-columns:190px minmax(0,1fr);gap:22px;align-items:center}
#what-if[data-playback-space=daily]:has(>.life-theater)>#event-result:not([hidden]){display:grid}
#event-result .story-scene-art{height:170px}.story-result-body{min-width:0}.story-result-body h2{font-size:21px;line-height:1.4}
@media(max-width:700px){.story-opening>.story-scene-art{height:180px}.story-opening>.story-scene-art .life-sprite{height:130px;width:130px;left:calc(50% - 65px)}.story-opening-body{padding:20px}.story-opening-line{font-size:17px;line-height:1.65}.story-opening-goal b{font-size:16px}.story-journey{padding:16px}.story-journey-main{display:block}.story-journey h2{font-size:20px}.story-journey-main button{width:100%;max-width:none;margin-top:14px}.story-journey-main p{font-size:14px}.story-pockets{gap:8px}.story-pockets dd{font-size:16px}.story-journey-top{font-size:12px}#what-if[data-playback-space=daily]:has(>.life-theater)>#event-result:not([hidden]){grid-template-columns:1fr;gap:14px}#event-result .story-scene-art{height:125px}.life-event-dialog>.story-scene-art{height:120px}}
@media(prefers-reduced-motion:reduce){.story-scene-art *{animation:none!important}}
