.chapter-story{padding:25px 0;display:flex;flex-direction:column;align-items:center;gap:22px;min-height:420px;text-align:center;color:#e0eee7}.story-node{padding:16px;border:1px solid #719b91;border-radius:12px;background:#123438;max-width:100%;font-size:17px}.story-node small{display:block;font-size:12px;margin-top:8px}.story-beat{font:24px Georgia,serif;color:#f8c881;min-height:58px;margin:0}.story-limit{font-size:13px;line-height:1.6;max-width:540px;margin:0}.junction{border-color:#f8c881;color:#f8c881}.memory-stream{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;width:90%;transition:transform 1.2s,opacity 1.2s}.memory-stream i{height:28px;border:1px solid #9cebd4;background:#38675f}.cache-vault{display:flex;gap:5px;padding:18px;border:1px solid #f8c881;border-radius:12px;transform:scale(.7);opacity:.4;transition:transform 1.2s,opacity 1.2s}.cache-vault i{width:18px;height:38px;background:#9cebd4}.memory[data-beat="1"] .memory-stream,.memory[data-beat="2"] .memory-stream{transform:scale(.65,.45);opacity:.5}.memory[data-beat="1"] .cache-vault,.memory[data-beat="2"] .cache-vault{transform:scale(1);opacity:1}.expert-routes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;width:100%}.expert-path{display:block;color:#9cebd4;font-size:24px}.idle{background:#10292d;color:#c5d8d3}.chosen{border-color:#9cebd4}.experts[data-beat="0"] .chosen{background:#123438}.experts:not([data-beat="0"]) .chosen{background:#306356}.draft-branches{display:flex;flex-direction:column;gap:10px;width:100%;align-items:flex-start}.draft-branches .story-node{width:72%;position:relative}.draft-branches .rejected,.draft-branches .discarded{align-self:flex-end;border-style:dashed}.draft-branches .rejected{border-color:#f8c881}.verdict{visibility:hidden}.draft[data-beat="2"] .verdict{visibility:visible}.draft[data-beat="2"] .accepted{background:#306356}.draft[data-beat="2"] .discarded{background:#10292d;color:#c5d8d3}.stage.running .experts:not([data-beat="0"]) .chosen .expert-path{animation:route-token 1.2s infinite}.stage.running .draft[data-beat="1"] .story-node{animation:verify-token 1.5s infinite alternate}.stage.running .memory[data-beat="0"] .memory-stream i{animation:verify-token 1s infinite alternate;animation-delay:calc(var(--i)*.08s)}@keyframes route-token{from{transform:translateY(-8px);opacity:.3}to{transform:translateY(3px);opacity:1}}@keyframes verify-token{from{opacity:.5}to{opacity:1}}body.paused .chapter-story *{animation:none!important;transition:none!important}@media(prefers-reduced-motion:reduce){.chapter-story *{animation:none!important;transition:none!important}}@media(max-width:550px){.chapter-story{min-height:390px;gap:17px}.story-node{font-size:14px;padding:10px 6px}.expert-routes{gap:5px}.expert-routes small{font-size:10px}.story-beat{font-size:21px}.story-limit{font-size:12px}}

/* Cinematic exhibit pass: atmosphere stays separate from explanatory text. */
.chapter-story{position:relative;isolation:isolate;overflow:hidden;padding:36px 18px;border:1px solid #94c8b52b;border-radius:18px;background:linear-gradient(145deg,#071b20ed,#173a3bd9 60%,#071b20);box-shadow:inset 0 0 90px #0007;perspective:900px}.chapter-story>*{z-index:1}.story-atmosphere{position:absolute;inset:-35%;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 35% 30%,#9cebd41c,transparent 40%),repeating-linear-gradient(105deg,transparent 0 60px,#e6ca8920 61px,transparent 62px 120px);transform:rotate(-8deg)}.stage.running .story-atmosphere{animation:exhibit-drift 18s ease-in-out infinite alternate}.story-caption{max-width:560px;min-height:160px}.story-kicker{font:10px system-ui;letter-spacing:.2em;color:#c5d8d3}.story-beat{font-size:clamp(24px,2.2vw,34px);line-height:1.15;min-height:0;margin:15px 0}.story-line{font-size:15px;line-height:1.6;color:#e0eee7;margin:0}.story-reel{display:flex;gap:8px;width:100%;max-width:260px}.story-reel i{height:3px;flex:1;background:#57716b}.story-reel .active{background:#f8c881;box-shadow:0 0 12px #f8c88155}.memory-stream{transform:rotateX(25deg) rotateZ(-5deg);transition:transform 1.8s cubic-bezier(.2,.7,.2,1),opacity 1.8s}.memory-stream i{box-shadow:0 6px 12px #0005,inset 0 1px #cfffee88;border-radius:3px;background:linear-gradient(135deg,#7bb9a777,#254f4b)}.memory[data-beat="1"] .memory-stream,.memory[data-beat="2"] .memory-stream{transform:translateY(22px) scale(.55,.35) rotateX(35deg);opacity:.55}.cache-vault{box-shadow:0 0 30px #9cebd422,inset 0 0 18px #f8c88115}.cache-vault i{background:linear-gradient(90deg,#4e8b7e,#b1f2dc,#39685f);border-radius:2px}.story-node{box-shadow:0 8px 20px #0003;transition:transform .8s,background .8s,border-color .8s}.expert-routes{position:relative;border-top:1px solid #8ab8a9;padding-top:18px}.chosen{box-shadow:inset 0 0 18px #9cebd422,0 0 12px #9cebd411}.experts[data-beat="1"] .chosen{transform:translateY(-5px)}.merge{border-color:#9cebd4}.experts[data-beat="2"] .merge{box-shadow:0 0 28px #9cebd433}.draft-branches{border-left:1px solid #9cebd466;padding-left:12px}.token-index{display:inline-block;margin-right:10px;font:11px system-ui;letter-spacing:.1em;color:#f8c881}.draft[data-beat="2"] .rejected{transform:translateX(4px);background:#493c29}.draft[data-beat="2"] .discarded{transform:translateX(4px);border-color:#77968e}.stage.running .draft[data-beat="1"] .draft-branches .story-node{animation:verification-sweep 2.8s ease-in-out infinite}.stage.running .draft[data-beat="1"] .draft-branches .story-node:nth-child(2){animation-delay:.25s}.stage.running .draft[data-beat="1"] .draft-branches .story-node:nth-child(3){animation-delay:.5s}.stage.running .draft[data-beat="1"] .draft-branches .story-node:nth-child(4){animation-delay:.75s}.stage.running .draft[data-beat="1"] .draft-branches .story-node:nth-child(5){animation-delay:1s}.story-limit{border-top:1px solid #74998c55;padding-top:18px;color:#c5d8d3}@keyframes exhibit-drift{to{transform:translateX(3%) rotate(4deg)}}@keyframes verification-sweep{0%,100%{box-shadow:inset 0 0 0 #f8c88100}40%{box-shadow:inset 6px 0 #f8c881,0 0 22px #f8c88122}}@media(max-width:550px){.chapter-story{padding:24px 10px}.story-caption{min-height:165px}.story-line{font-size:14px}.story-beat{font-size:25px}.expert-routes{grid-template-columns:repeat(3,minmax(0,1fr))}.expert-routes small{font-size:11px}.draft-branches .story-node{width:85%}}body.paused .chapter-story *,body.paused .story-atmosphere{animation:none!important;transition:none!important}@media(prefers-reduced-motion:reduce){.chapter-story *{animation:none!important;transition:none!important}}
