/* A graphic-novel reader built around the campaign's own artwork and words. */
:root{--story-guard:#226780;--story-legion:#884735;--story-wash:#e8eff4;--story-paper:#fff;--story-shadow:rgba(24,42,65,.14)}
.story-page{max-width:1280px;padding:0 var(--gutter) 4rem}.story-cover{display:grid;grid-template-columns:1fr 1.05fr;gap:3rem;padding:4rem 0 3.5rem;align-items:center}.story-cover h1{font-size:clamp(3.5rem,6vw,6rem);line-height:1.02;max-width:9ch;margin:1rem 0}.story-deck{font-size:1.5rem;color:var(--blue);font-weight:700}.story-cover-copy>p:not(.eyebrow):not(.story-deck){max-width:37rem}.story-spoiler{font-size:.85rem;color:var(--muted);margin:1rem 0 0}.story-cover-image{margin:0 0 2.5rem;position:relative;align-self:center;transform:rotate(1deg);border:2px solid var(--ink);box-shadow:8px 8px 0 var(--line)}.story-cover-image>img{width:100%;height:auto;display:block;aspect-ratio:16/9;object-fit:cover}.story-signal-cloud{position:relative;max-width:90%;margin:-1rem auto -2rem;padding:1.2rem 1.5rem;background:var(--story-paper);border:2px solid var(--ink);border-radius:2rem 2.5rem 2rem 1.5rem;box-shadow:3px 4px 0 var(--story-shadow);text-align:center;font-size:1.1rem;font-weight:700;transform:rotate(-2deg)}.story-signal-cloud span{display:block;font-weight:500;color:var(--muted);font-size:.75rem;margin-top:.4rem}.story-cast{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:2.5rem 0;display:grid;grid-template-columns:1fr 2fr;gap:3rem}.story-cast h2{font-size:2rem;line-height:1.2;margin:.6rem 0 1rem}.story-cast-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.4rem 1rem}.story-cast-grid figure{margin:0}.story-cast-grid img{display:block;width:72px;height:72px;object-fit:cover;border:2px solid var(--ink);border-radius:50%;margin-bottom:.5rem}.story-cast-grid strong{display:block;font-size:.9rem;line-height:1.4}.story-cast-grid span{display:block;font-size:.72rem;color:var(--muted);line-height:1.5;margin-top:.2rem}.story-reading-tools{display:flex;justify-content:space-between;gap:2rem;align-items:center;padding:2rem 0}.story-reading-tools>p{font-size:.85rem;max-width:28rem;color:var(--muted);margin:0}.story-perspective{margin:0;padding:0;border:0;flex-shrink:0}.story-perspective legend{font-size:.8rem;color:var(--muted);margin-bottom:.5rem}.story-perspective input{position:absolute;width:1px;height:1px;opacity:0}.story-perspective label{display:inline-flex;align-items:center;min-height:44px;padding:.5rem .85rem;background:var(--story-paper);border:1px solid var(--line);border-radius:var(--radius);font-size:.9rem;cursor:pointer}.story-perspective input:checked+label{background:var(--navy);border-color:var(--navy);color:var(--white)}.story-perspective input:focus-visible+label{outline:3px solid var(--blue);outline-offset:3px}.story-body:has(#view-hero:checked) .route-villain,.story-body:has(#view-villain:checked) .route-hero{display:none}.story-body:has(#view-hero:checked) .story-paths,.story-body:has(#view-villain:checked) .story-paths{grid-template-columns:1fr}.story-book{display:grid;grid-template-columns:210px minmax(0,1fr);gap:3rem;align-items:start}.story-index{position:sticky;top:1.5rem;scroll-margin-top:1rem;max-height:calc(100dvh - 3rem);overflow-y:auto}.story-index nav{display:block;padding:0;max-width:none}.story-index ol{list-style:none;margin:0;padding:0}.story-index li+li{margin:0}.story-index a{color:var(--ink);display:flex;gap:.7rem;align-items:center;text-decoration:none;padding:.55rem .4rem;min-height:44px;font-size:.85rem;line-height:1.5}.story-index a:hover{background:var(--story-paper);text-decoration:underline}.story-index a span{color:var(--muted);font-size:.7rem;min-width:1.2rem}.story-chapter{min-width:0}.story-act{padding-bottom:2.5rem;margin-bottom:3rem;border-bottom:1px solid var(--line);scroll-margin-top:1rem}.story-act-heading{background:none;color:var(--ink);border:0;margin:0 0 1.5rem}.story-act-heading h2,.story-finales>h2{font-size:clamp(2rem,3.7vw,3rem);line-height:1.15;letter-spacing:-.03em;margin:.4rem 0}.story-scene{margin:0 0 1.7rem;border:2px solid var(--ink);background:var(--navy)}.story-scene img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}.story-scene figcaption{font-size:.75rem;color:var(--white);padding:.45rem .8rem}.story-paths{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem}.story-route{min-width:0}.route-hero{--route-color:var(--story-guard)}.route-villain{--route-color:var(--story-legion)}.story-route>h3,.story-mission-route>h4{font-size:.85rem;letter-spacing:.05em;text-transform:uppercase;border-left:3px solid var(--route-color);padding-left:.65rem;margin:0 0 .85rem;color:var(--route-color)}.story-context{font-size:1rem;margin:0 0 1.2rem}.story-dialogue{display:grid;grid-template-columns:72px minmax(0,1fr);gap:1rem;margin:1.5rem 0 1rem;align-items:start}.story-speaker img{width:72px;height:72px;object-fit:cover;border:2px solid var(--ink);border-radius:50%;display:block}.story-speaker figcaption{font-size:.67rem;line-height:1.4;text-align:center;margin-top:.4rem;font-weight:700;overflow-wrap:anywhere}.story-cloud{position:relative;margin:0;padding:1.1rem 1.2rem;border:2px solid var(--ink);border-radius:1.7rem 2.2rem 1.8rem 1.5rem;background:var(--story-paper);box-shadow:3px 4px 0 var(--story-shadow);font-size:1rem;line-height:1.6;overflow-wrap:anywhere}.story-cloud:before{content:"";position:absolute;top:24px;left:-8px;width:12px;height:12px;transform:rotate(45deg);border-left:2px solid var(--ink);border-bottom:2px solid var(--ink);background:var(--story-paper)}.story-cloud p{margin:0}.story-boss{padding:1.1rem 1.3rem;margin:1.7rem 0;background:var(--story-wash);border-left:3px solid var(--ink)}.story-boss .eyebrow{margin:0 0 .4rem}.story-boss>p:last-child{margin:0}.story-after h3{font-size:.75rem}.story-after p{font-size:1rem}.story-choice{padding:1rem;margin:1.2rem 0;background:var(--story-paper);border:1px solid var(--line);border-radius:var(--radius)}.story-choice h4{font-size:.75rem;color:var(--route-color);margin:0 0 .5rem}.story-choice ul{padding-left:1.2rem;font-size:.9rem}.story-choice p{font-size:.9rem}.story-small{font-size:.8rem!important;color:var(--muted)}.story-choice p:last-child{margin-bottom:0}.story-archive{margin-top:1.5rem;border:1px solid var(--line);background:var(--story-paper);border-radius:var(--radius)}.story-archive>summary{padding:1rem 1.1rem;cursor:pointer;font-weight:700;min-height:52px;line-height:1.6}.story-archive>summary span{display:block;padding-left:1.1rem;color:var(--muted);font-size:.75rem;font-weight:500}.story-mission-list{padding:0 1rem 1rem}.story-mission{border-top:1px solid var(--line);scroll-margin-top:1rem}.story-mission>summary{cursor:pointer;padding:1rem .1rem;font-size:.95rem;line-height:1.5;min-height:52px}.story-mission-number{font-size:.75rem;font-weight:700;color:var(--muted);margin-right:.5rem}.story-mission-location{color:var(--muted);font-size:.8rem}.story-mission-route{min-width:0;font-size:1rem}.story-dialogue-compact{grid-template-columns:48px minmax(0,1fr);gap:.7rem}.story-dialogue-compact .story-speaker img{width:48px;height:48px}.story-dialogue-compact .story-speaker figcaption{font-size:.6rem}.story-dialogue-compact .story-cloud{font-size:1rem;padding:1rem;border-radius:1.4rem}.story-dialogue-compact .story-cloud:before{top:17px}.story-field-notes{font-size:1rem;margin:1rem 0}.story-field-notes>summary{min-height:44px;cursor:pointer;color:var(--blue);padding:.5rem 0}.story-mission-results{padding:1rem 0}.story-mission-results h5{font-size:.75rem;text-transform:uppercase;letter-spacing:.04em;margin:0 0 .4rem}.story-mission-results p{font-size:1rem}.story-act-footer{display:flex;justify-content:space-between;gap:1rem;margin-top:1.3rem}.story-act-footer a{font-size:.8rem;display:inline-flex;align-items:center;min-height:44px}.story-finales{scroll-margin-top:1rem;margin:0 0 3rem}.story-finales>.story-paths{margin-top:1.5rem}.story-ending{border:1px solid var(--line);background:var(--story-paper);min-width:0}.story-ending>img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;display:block}.story-ending-text{padding:1.3rem}.story-ending h3{font-size:1.6rem;line-height:1.25;margin:.6rem 0 1rem}.story-ending-text>.eyebrow{color:var(--route-color)}.story-ending details{border-top:1px solid var(--line);padding-top:.5rem;margin-top:1rem}.story-ending summary{font-size:.85rem;min-height:44px;padding:.5rem 0;cursor:pointer}.story-ending dl{font-size:.85rem}.story-ending dt{font-weight:700;margin:1rem 0 .3rem;color:var(--route-color)}.story-ending dd{margin:0}.story-next{scroll-margin-top:1rem;background:var(--navy);color:var(--white);border:2px solid var(--ink)}.story-next>img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}.story-next>div{padding:1.5rem}.story-next h2{font-size:clamp(2rem,4vw,3rem);line-height:1.15;margin:.6rem 0 1.1rem}.story-next .eyebrow,.story-next .story-small{color:var(--hero-muted)}.story-next a{color:var(--white)}.story-next a:focus-visible{outline-color:var(--white)}summary:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
@media(min-width:1450px){.story-page{max-width:1360px}.story-book{grid-template-columns:230px minmax(0,1fr)}}
@media(max-width:1000px){.story-cover{gap:2rem}.story-cast{grid-template-columns:1fr 2fr;gap:1.5rem}.story-book{grid-template-columns:170px minmax(0,1fr);gap:1.5rem}.story-paths{grid-template-columns:1fr}.story-dialogue{grid-template-columns:80px minmax(0,1fr)}.story-dialogue-compact{grid-template-columns:48px minmax(0,1fr)}.story-route+.story-route{padding-top:1rem;border-top:1px dashed var(--line)}.story-cover-image{transform:none}.story-signal-cloud{font-size:.95rem;padding:1rem}.story-cast-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.story-cast-grid img{width:60px;height:60px}}
@media(max-width:760px){.story-cover{grid-template-columns:1fr;padding-top:2.5rem;gap:1rem}.story-cover h1{font-size:clamp(3.5rem,10vw,5rem);max-width:none}.story-cover-image{margin:0 0 2rem}.story-cover-copy>.story-spoiler{margin-bottom:1.5rem}.story-cast{grid-template-columns:1fr}.story-cast-grid{gap:1.2rem}.story-book{grid-template-columns:1fr}.story-index{position:static;max-height:none;overflow:visible;border:1px solid var(--line);border-radius:var(--radius);padding:1rem;margin-bottom:1rem}.story-index nav>ol{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 .75rem}.story-index nav>a{display:inline-flex;margin-right:1rem}.story-reading-tools{align-items:flex-start;gap:1rem;flex-direction:column}.story-act-heading h2{font-size:2.2rem}.story-act{margin-bottom:2rem}.story-paths{gap:1.3rem}.story-scene{margin-bottom:1.4rem}}
@media(max-width:400px){.story-cast-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.story-cast-grid figure{display:flex;align-items:center;gap:.5rem}.story-cast-grid img{width:48px;height:48px;flex-shrink:0;margin:0}.story-cast-grid strong{font-size:.75rem}.story-cast-grid span{font-size:.65rem}.story-index nav>ol{grid-template-columns:1fr}.story-perspective label{font-size:.85rem;padding:.5rem .65rem}.story-dialogue{grid-template-columns:54px minmax(0,1fr);gap:.65rem}.story-speaker img{width:54px;height:54px}.story-dialogue-compact{grid-template-columns:40px minmax(0,1fr)}.story-dialogue-compact .story-speaker img{width:40px;height:40px}.story-cloud{padding:1rem;font-size:.95rem}.story-dialogue-compact .story-cloud{padding:.8rem;font-size:1rem}.story-mission-list{padding:0 .65rem .65rem}.story-act-footer{gap:.5rem}.story-act-footer a{font-size:.75rem}.story-signal-cloud{font-size:.85rem}.story-act-heading h2{font-size:2rem}}
@media print{.story-index,.story-reading-tools,.story-act-footer,.skip,body>header,body>footer{display:none}.story-page{max-width:none;padding:0}.story-book{display:block}.story-cloud,.story-scene{break-inside:avoid;box-shadow:none}.story-act{break-before:page}.story-cover{padding-top:0}.story-cover-image{transform:none;box-shadow:none}}
