:root{color-scheme:light;--red:#EF3340;--paper:#F0EDE3;--ink:#4D4D4D;--grey:#BBBCBC;--sans:'Apercu Pro','Noto Sans',Arial,sans-serif;--serif:'Noto Serif',Georgia,serif;--chapter-backdrop:url('./assets/stage/jordan.png')}
*{box-sizing:border-box}html,body,#app{margin:0;width:100%;height:100%}body{background:var(--red);color:var(--ink);font:calc(16px + 1pt)/1.5 var(--sans)}button,input,select{font:inherit}button{cursor:pointer;border:0;color:inherit;background:none;touch-action:manipulation}button:disabled{opacity:.4;cursor:default}a{color:inherit;text-decoration:none}button,a,input{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid #902435;outline-offset:3px}h1,h2,p{margin:0}svg{vertical-align:middle;flex-shrink:0}[hidden]{display:none!important}.experience{height:100dvh;display:flex;flex-direction:column;padding:0 12px 12px;background:radial-gradient(ellipse at 12% 0%,#f84d54a0,transparent 65%),var(--red)}
.topbar{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:9px 9px 10px;flex-shrink:0}.wordmark{font:600 calc(25px + 1pt) var(--serif);color:#fff;white-space:nowrap;letter-spacing:-.8px}.chapters{display:flex;gap:7px;align-items:center}.chapters button{display:flex;align-items:center;gap:8px;min-height:43px;padding:8px 13px;background:#F0EDE3;color:#4D4D4D;font-size:calc(14px + 1pt);border-bottom:3px solid transparent}.chapters button span{font-size:calc(12px + 1pt);opacity:.8}.chapters button.current{background:#fff;border-bottom-color:#842230;color:#842230}.chapters button:hover{background:#fff}.header-tools{display:flex;gap:2px;align-items:center;color:#fff}.icon-button{display:inline-grid;place-items:center;width:42px;height:42px;flex-shrink:0}.icon-button:hover{background:#00000012}.bible-toggle{font-size:calc(14px + 1pt);min-height:40px;padding:8px 13px;background:var(--paper);color:var(--ink)}.bible-toggle[aria-expanded=true]{background:#fff;color:#902435}
.story-workspace{display:flex;flex:1;min-height:0;overflow:hidden;border:1px solid #89263255;background:var(--paper)}.story-view{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0}.stage{position:relative;flex:1;min-height:0;overflow:hidden;background:#d9b886;isolation:isolate}canvas{width:100%;height:100%;display:block;image-rendering:pixelated}.shade{position:absolute;inset:0;box-shadow:inset 0 0 25px #35251c12;pointer-events:none;z-index:1}.story-panel{flex-shrink:0;max-height:40dvh;overflow:auto;background:var(--paper);border-top:4px solid var(--red)}.location{display:flex;gap:12px;align-items:baseline;padding:12px 22px 0}.location>span{font:600 calc(11px + 1pt) var(--sans);letter-spacing:1px;color:#77716e}.location h1{font:600 calc(15px + 1pt) var(--sans)}.location p{font:calc(13px + 1pt) var(--sans);margin-left:auto;color:#736d67}.story-caption{padding:8px 22px 12px}.story-caption>span{font:600 calc(15px + 1pt) var(--sans);color:#a72231}.story-caption>p{font:400 calc(18px + 1pt)/1.55 var(--serif);max-width:960px;margin-top:4px;color:#464441}.listening-controls{display:flex;gap:16px;align-items:center;min-height:80px;padding:11px 20px;background:#fff;border-top:1px solid #d5d1c9;flex-shrink:0}.transport{display:flex;align-items:center;gap:3px}.play-button{display:grid;place-items:center;width:46px;height:46px;background:var(--red);color:#fff}.play-button:hover{background:#d92e3c}.timeline{flex:1;min-width:100px}.track-label{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:calc(14px + 1pt)}.track-label>span:last-child{font-size:calc(12px + 1pt);white-space:nowrap;font-variant-numeric:tabular-nums;color:#746d67}input[type=range]{width:100%;height:22px;margin:5px 0 0;accent-color:var(--red);cursor:pointer}.film-source{font-size:calc(14px + 1pt);padding-left:15px;border-left:1px solid #ccc5bb;white-space:nowrap}.film-source span{display:block;font-size:calc(12px + 1pt);color:#7a726d}.film-source:hover{color:#a72231}
.opening,.ending{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:24px;z-index:9;background:#f0ede3e8}.opening>div{max-width:520px}.eyebrow{font:600 calc(12px + 1pt) var(--sans);letter-spacing:1.8px;color:#a72231}.opening h2,.ending h2{font:500 calc(clamp(26px,3.4vw,40px) + 1pt)/1.25 var(--serif);margin:14px 0}.opening p,.ending p{font:calc(16px + 1pt)/1.7 var(--sans);color:#625b55}.primary{display:inline-flex;align-items:center;justify-content:center;gap:12px;background:var(--red);color:#fff;min-height:48px;padding:11px 22px;margin-top:20px;font-size:calc(18px + 1pt);font-weight:700}.primary:hover{background:#cc2434}.opening .audio-note{font-size:calc(12px + 1pt);margin-top:14px}.ending>a{font-size:calc(14px + 1pt);margin-top:20px;text-decoration:underline;color:#9a2635}.status{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);background:var(--paper);padding:9px 15px;text-align:center;max-width:90%;font-size:calc(14px + 1pt);z-index:10;border-left:3px solid var(--red)}mux-player{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);pointer-events:none;--controls:none}
.bible-panel{width:330px;flex-shrink:0;display:flex;flex-direction:column;min-height:0;background:#fff;border-left:1px solid #cfc8bf}.bible-panel>header{padding:17px 18px 12px;display:flex;align-items:center;justify-content:space-between;gap:10px}.bible-panel h2{font:500 calc(23px + 1pt)/1.35 var(--serif);margin-top:5px}.bible-panel .eyebrow{font-size:calc(11px + 1pt)}.passage-label{margin:0 18px 5px;font-size:calc(12px + 1pt);color:#736b64}.bible-panel select{margin:0 18px;width:calc(100% - 36px);background:var(--paper);border:1px solid #cfc8bf;color:var(--ink);border-radius:0;min-height:41px;padding:8px;font-size:calc(14px + 1pt)}.bible-options{display:flex;justify-content:space-between;gap:6px;align-items:center;margin:12px 18px}.bible-options label{display:flex;align-items:center;gap:6px;font-size:calc(13px + 1pt);white-space:nowrap}.bible-options input{width:17px;height:17px;accent-color:var(--red)}.bible-options>span{font-size:calc(11px + 1pt);color:#746d67;text-align:right}.bible-scroll{position:relative;overflow:auto;overscroll-behavior:contain;flex:1;min-height:0;padding:4px 16px 24px;scrollbar-color:#ccc4bb transparent}.bible-scroll h3{font:500 calc(20px + 1pt)/1.4 var(--serif);margin:8px 8px 16px}.bible-scroll p{font:400 calc(17px + 1pt)/1.85 var(--serif);padding:7px 9px;margin-bottom:3px;border-left:2px solid transparent;color:#4D4D4D}.bible-scroll sup{font:calc(12px + 1pt) var(--sans);margin-right:6px;color:#867269;vertical-align:super}.bible-scroll p.current-verse{background:#f9e8e3;border-left-color:var(--red)}.bible-credit{border-top:1px solid #d8d1c8;padding:10px 18px;font-size:calc(11px + 1pt);line-height:1.7;color:#746d67}.bible-credit a{text-decoration:underline;text-underline-offset:3px}
dialog{width:min(620px,calc(100% - 30px));max-height:86dvh;border:1px solid #b9b1a8;background:var(--paper);color:var(--ink);padding:24px;box-shadow:0 20px 90px #0005}dialog::backdrop{background:#302721aa}dialog>header{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}dialog h2{font:500 calc(25px + 1pt) var(--serif)}dialog p{font-size:calc(16px + 1pt);line-height:1.8;margin-bottom:16px}dialog ul{list-style:none;padding:0;margin:22px 0}dialog li{display:flex;justify-content:space-between;gap:12px;margin:12px 0}dialog li a{color:#a72231;text-decoration:underline}dialog li span,dialog .small{font-size:calc(13px + 1pt);color:#786f68}
@media(max-width:1180px){.topbar{gap:10px}.wordmark{font-size:calc(22px + 1pt)}.chapters button{font-size:calc(12px + 1pt);padding:8px 9px;gap:5px}.bible-panel{width:290px}.bible-panel h2{font-size:calc(20px + 1pt)}.bible-options{flex-wrap:wrap}.film-source{display:none}.listening-controls{gap:8px;padding:10px 14px}.transport .icon-button{width:32px}.track-label>span:first-child{font-size:calc(12px + 1pt)}}
@media(max-width:760px){.experience{padding:0 5px 5px}.topbar{min-height:101px;position:relative;padding:7px 8px 43px}.wordmark{font-size:calc(21px + 1pt)}.header-tools .icon-button{width:35px;height:35px}.bible-toggle{font-size:calc(13px + 1pt);min-height:35px;padding:5px 9px}.chapters{position:absolute;bottom:6px;left:8px;right:8px;gap:5px}.chapters button{flex:1;justify-content:center;min-height:32px;font-size:calc(12px + 1pt);padding:5px}.chapters button span{display:none}.story-workspace{flex-direction:column}.bible-panel{width:100%;height:27dvh;min-height:145px;max-height:34dvh;border-left:0;border-top:1px solid #cfc8bf;position:relative}.bible-panel>header{padding:7px 12px;min-height:42px}.bible-panel h2{font-size:calc(18px + 1pt);margin:0}.bible-panel .eyebrow,.passage-label{display:none}.bible-panel select{position:absolute;top:6px;right:47px;width:125px;min-height:31px;padding:4px;margin:0;font-size:calc(12px + 1pt)}.bible-panel .icon-button{width:30px;height:30px}.bible-options{margin:0 12px 5px;flex-wrap:nowrap}.bible-options label{font-size:calc(12px + 1pt)}.bible-scroll{padding:0 10px 12px}.bible-scroll h3{font-size:calc(17px + 1pt);margin:3px 8px 8px}.bible-scroll p{font-size:calc(16px + 1pt);line-height:1.65;padding:5px 8px}.bible-credit{padding:4px 12px}.story-panel{max-height:32dvh}.location{padding:7px 12px 0;gap:8px}.location>span{display:none}.location h1{font-size:calc(13px + 1pt)}.location p{font-size:calc(12px + 1pt)}.story-caption{padding:5px 12px 7px}.story-caption>span{font-size:calc(13px + 1pt)}.story-caption>p{font-size:calc(16px + 1pt);line-height:1.4;margin-top:3px}.listening-controls{min-height:65px;padding:8px 10px;gap:5px}.play-button{width:40px;height:40px}.transport .icon-button{width:28px}.listening-controls>#mute{width:30px}.track-label>span:first-child{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.opening,.ending{padding:14px}.opening h2,.ending h2{font-size:calc(27px + 1pt);margin:8px 0}.opening p,.ending p{font-size:calc(14px + 1pt);line-height:1.45}.primary{margin-top:12px;font-size:calc(18px + 1pt);min-height:43px;padding:8px 15px}.opening .audio-note{font-size:calc(11px + 1pt);margin-top:8px}}
@media(max-width:390px){.bible-panel h2{font-size:calc(16px + 1pt)}.bible-panel select{width:105px}.wordmark{font-size:calc(19px + 1pt)}.location p{display:none}.track-label>span:first-child{display:none}}
@media(max-height:550px) and (orientation:landscape){.experience{padding:0 5px 5px}.topbar{min-height:46px;padding:4px 8px;position:static;gap:7px}.wordmark{font-size:calc(19px + 1pt)}.chapters{position:static;gap:5px}.chapters button{min-height:31px;padding:5px;font-size:calc(11px + 1pt)}.chapters button span{display:none}.header-tools .icon-button{width:32px;height:32px}.bible-toggle{min-height:32px}.story-workspace{flex-direction:row}.bible-panel{width:260px;height:auto;min-height:0;max-height:none;border-left:1px solid #cfc8bf;border-top:0}.bible-panel>header{padding:7px 10px}.bible-panel h2{font-size:calc(17px + 1pt)}.bible-panel .eyebrow,.passage-label{display:none}.bible-panel select{position:static;width:calc(100% - 20px);margin:0 10px;min-height:31px;font-size:calc(12px + 1pt);padding:4px}.bible-options{margin:6px 10px}.bible-scroll{padding:0 8px 12px}.bible-scroll p{font-size:calc(16px + 1pt);line-height:1.6}.bible-credit{padding:5px 10px}.story-panel{max-height:42dvh}.location{padding:5px 10px 0}.location>span,.location p{display:none}.location h1{font-size:calc(12px + 1pt)}.story-caption{padding:3px 10px 5px}.story-caption>span{font-size:calc(12px + 1pt)}.story-caption>p{font-size:calc(16px + 1pt);line-height:1.35}.listening-controls{min-height:51px;padding:5px 8px;gap:5px}.play-button{width:36px;height:36px}.transport .icon-button{width:26px;height:34px}.track-label>span:first-child{display:none}.timeline{min-width:60px}.opening h2{font-size:calc(25px + 1pt)}.opening p{font-size:calc(14px + 1pt)}.opening .audio-note{display:none}.primary{margin-top:10px;min-height:40px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}

/* Pixel game frame, with the darker red requested for this edition. */
@font-face{font-family:TrailPixel;src:url('./assets/vt323.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
:root{color-scheme:dark;--red:#98252f;--paper:#f0e5cb;--ink:#f0e5cb;--grey:#9d8580;--sans:TrailPixel,monospace;--serif:TrailPixel,monospace}
body{font:calc(22px + 1pt)/1.2 var(--sans);background:#231518;color:#f0e5cb}.experience{padding:0 10px 10px;background:#321b20;box-shadow:inset 0 0 0 4px #6c2b35}.topbar{padding:10px 7px;min-height:72px}.wordmark{font:400 calc(34px + 1pt) var(--sans);letter-spacing:1px;color:#ffe2b4;text-transform:uppercase;text-shadow:3px 3px #120e10}.chapters button{font:400 calc(21px + 1pt) var(--sans);background:#57252e;color:#efd5b7;border:2px solid #a14a52;border-right-color:#28141b;border-bottom-color:#28141b;box-shadow:inset 2px 2px #74333e;min-height:40px;padding:6px 12px}.chapters button span{font-size:calc(18px + 1pt)}.chapters button.current{background:#98252f;color:#fff1d3;border-color:#d48c7b;border-bottom-color:#3a1923;box-shadow:inset 2px 2px #b7454e}.chapters button:hover{background:#853340}.bible-toggle{background:#562630;color:#f4dcbb;font:400 calc(21px + 1pt) var(--sans);border:2px solid #a45b5c;box-shadow:3px 3px #160f13}.bible-toggle[aria-expanded=true]{background:#98252f;color:#fff0d3}.header-tools{color:#f3dbc0;gap:5px}.icon-button:hover{background:#7a3440}.story-workspace{background:#191217;border:4px solid #100d11;box-shadow:0 0 0 2px #9a4a50}.stage{background:#171116}.stage canvas{position:absolute;width:auto;height:auto;image-rendering:pixelated}.shade{box-shadow:inset 0 0 0 2px #120d1266}.story-panel{background:#2b1d22;border-top:6px solid #692933;color:#f0ddbf;max-height:40dvh}.location{padding:8px 18px 0}.location>span{font:400 calc(16px + 1pt) var(--sans);letter-spacing:1px;color:#ba9489}.location h1{font:400 calc(20px + 1pt) var(--sans);color:#e6c296}.location p{font:400 calc(18px + 1pt) var(--sans);color:#be9f90}.story-caption{padding:7px 18px 12px;min-height:88px}.story-caption>span{font:400 calc(21px + 1pt) var(--sans);color:#eaa894;text-transform:uppercase;letter-spacing:1px}.story-caption>p{font:400 calc(25px + 1pt)/1.12 var(--sans);color:#fff1d5;margin-top:5px}.listening-controls{background:#20171c;color:#efd9b8;border-top:3px solid #56333d;padding:10px 16px;min-height:76px}.play-button{background:#98252f;color:#ffe7c4;border:3px solid #c06562;border-right-color:#401925;border-bottom-color:#401925;box-shadow:3px 3px #100c0f}.play-button:hover{background:#b23942}.transport .icon-button,.listening-controls>#mute{border:2px solid #63414a;background:#30202a;box-shadow:2px 2px #100c0f;color:#e3bda3}.transport{gap:8px}.track-label{font:400 calc(20px + 1pt) var(--sans)}.track-label>span:last-child{font:400 calc(18px + 1pt) var(--sans);color:#c5a58e}input[type=range]{appearance:none;height:10px;background:#130f14;border:2px solid #78505a;margin:9px 0 3px;border-radius:0}input[type=range]::-webkit-slider-thumb{appearance:none;width:12px;height:20px;background:#df9a79;border:3px solid #f1cba3;border-right-color:#873e40;border-bottom-color:#873e40;border-radius:0}input[type=range]::-moz-range-thumb{width:10px;height:17px;background:#df9a79;border:2px solid #f1cba3;border-radius:0}.film-source{font:400 calc(20px + 1pt) var(--sans);border-color:#72505a}.film-source span{font-size:calc(16px + 1pt);color:#be978d}.film-source:hover{color:#ffd3b4}
.bible-panel{background:#e9dbbd;color:#372631;border-left:5px solid #6c343e;box-shadow:inset 3px 0 #b68976}.bible-panel>header{border-bottom:3px solid #bd9e87;margin-bottom:10px;padding:12px 15px 10px}.bible-panel h2{font:400 calc(27px + 1pt) var(--sans);color:#522e36}.bible-panel .eyebrow{font:400 calc(17px + 1pt) var(--sans);letter-spacing:1px;color:#853b43}.bible-panel .icon-button{color:#6d3840}.bible-panel .icon-button:hover{background:#d4bca0}.passage-label{font:400 calc(18px + 1pt) var(--sans);color:#704e46}.bible-panel select{font:400 calc(20px + 1pt) var(--sans);color:#3f2b31;background:#f6e9cd;border:3px solid #91645b}.bible-options{gap:5px}.bible-options label{font:400 calc(18px + 1pt) var(--sans)}.bible-options>span{font:400 calc(15px + 1pt) var(--sans);color:#74564b}.bible-options input{appearance:none;width:16px;height:16px;border:2px solid #6f4347;background:#f4e7c8;border-radius:0}.bible-options input:checked{background:#98252f;box-shadow:inset 2px 2px #e8af94}.bible-scroll h3{font:400 calc(25px + 1pt)/1.15 var(--sans);color:#502f38}.bible-scroll p{font:400 calc(25px + 1pt)/1.22 var(--sans);color:#463038;border-left-width:3px}.bible-scroll sup{font:400 calc(17px + 1pt) var(--sans);color:#906052}.bible-scroll p.current-verse{background:#d9bea0;border-left-color:#98252f}.bible-credit{font:400 calc(16px + 1pt)/1.1 var(--sans);color:#765347;border-top:3px solid #bd9e87}.opening,.ending{background:#20131bcc;color:#ffe6bb}.opening>div{background:#34202a;border:4px solid #b66565;box-shadow:6px 6px #100c0f;padding:23px 28px}.eyebrow{font:400 calc(19px + 1pt) var(--sans);color:#d49d89}.opening h2,.ending h2{font:400 calc(40px + 1pt)/1.05 var(--sans);color:#ffe6bb;text-shadow:3px 3px #160d12}.opening p,.ending p{font:400 calc(23px + 1pt)/1.1 var(--sans);color:#d8b99f}.primary{font:400 calc(25px + 1pt) var(--sans);background:#98252f;color:#ffedcd;border:3px solid #d38876;border-right-color:#49202b;border-bottom-color:#49202b;box-shadow:4px 4px #110d11}.primary:hover{background:#b43b44}.opening .audio-note{font:400 calc(17px + 1pt) var(--sans);color:#bb958b}.ending>a{color:#e6b69b;font:400 calc(20px + 1pt) var(--sans)}.status{background:#3b252e;color:#f9dfb6;border:3px solid #a75a60;box-shadow:4px 4px #120c12;font:400 calc(21px + 1pt) var(--sans)}dialog{background:#35242d;color:#e9d1b2;border:4px solid #b66a68;box-shadow:6px 6px #100d10}dialog h2{font:400 calc(29px + 1pt) var(--sans)}dialog p{font:400 calc(23px + 1pt)/1.2 var(--sans)}dialog li a{color:#efb199}dialog li span,dialog .small{font:400 calc(18px + 1pt)/1.15 var(--sans);color:#caa992}
.stage-overlays{position:absolute;pointer-events:none;z-index:5}.speech-bubble{position:absolute;transform:translate(-50%,-100%);width:max-content;max-width:min(350px,67%);padding:8px 12px;background:#fff0cd;color:#342333;border:3px solid #422331;box-shadow:4px 0 #e2bf91,-4px 0 #e2bf91,0 4px #e2bf91,0 -4px #e2bf91,6px 7px #20151d66;font:400 calc(clamp(17px,2vw,24px) + 1pt)/1.05 var(--sans);z-index:8}.speech-bubble>span{display:block;color:#82343e;font-size:.82em;margin-bottom:4px;text-transform:uppercase;letter-spacing:.8px}.speech-bubble::after{content:'';position:absolute;bottom:-17px;left:calc(50% - 8px);width:16px;height:16px;background:#422331;clip-path:polygon(0 0,100% 0,100% 25%,75% 25%,75% 50%,50% 50%,50% 75%,25% 75%,25% 100%,0 100%)}.speech-bubble.heavenly{transform:translate(-50%,0);background:#f7fcf5;color:#293544;border-color:#7895a0;box-shadow:5px 0 #d6e7e7,-5px 0 #d6e7e7,0 5px #d6e7e7,0 -5px #d6e7e7;max-width:65%}.speech-bubble.heavenly>span{color:#577987}.speech-bubble.heavenly::after{display:none}.speech-bubble.infernal{transform:translate(-50%,0);max-width:43%;background:#3b1722;color:#ffe2a5;border-color:#e58344;box-shadow:4px 0 #7d2632,-4px 0 #7d2632,0 4px #7d2632,0 -4px #7d2632}.speech-bubble.infernal>span{color:#ffac5b}.speech-bubble.infernal::after{display:none}
.chapter-transition{position:absolute;inset:0;display:grid;place-items:center;z-index:20;overflow:hidden}.chapter-transition::before,.chapter-transition::after{content:'';position:absolute;left:0;right:0;height:51%;background:#24121b;box-shadow:0 0 0 4px #98464e;z-index:0}.chapter-transition::before{top:0;transform-origin:top}.chapter-transition::after{bottom:0;transform-origin:bottom}.chapter-transition>span{position:relative;z-index:1;font:400 calc(clamp(20px,3vw,36px) + 1pt) var(--sans);color:#f5d29d;padding:12px 18px;border:3px solid #a85960;background:#37202a;text-align:center}.chapter-transition.revealing::before,.chapter-transition.revealing::after{animation:open-shutter 1s steps(12,end) both}.chapter-transition.revealing>span{animation:hide-title .6s steps(5,end) both}@keyframes open-shutter{0%,15%{transform:scaleY(1)}100%{transform:scaleY(0)}}@keyframes hide-title{0%,20%{opacity:1}100%{opacity:0}}
@media(max-width:1180px){.wordmark{font-size:calc(29px + 1pt)}.chapters button{font-size:calc(19px + 1pt);padding:5px 8px}.track-label>span:first-child{font-size:calc(18px + 1pt)}.bible-panel h2{font-size:calc(25px + 1pt)}.story-caption>p{font-size:calc(24px + 1pt)}}
@media(max-width:760px){.experience{padding:0 5px 5px}.topbar{min-height:101px;padding:7px 8px 43px}.wordmark{font-size:calc(28px + 1pt)}.chapters button{font-size:calc(18px + 1pt);min-height:32px;padding:3px}.bible-toggle{font-size:calc(20px + 1pt)}.header-tools{gap:3px}.story-panel{max-height:34dvh}.location{padding:6px 12px 0}.location h1{font-size:calc(18px + 1pt)}.location p{font-size:calc(16px + 1pt)}.story-caption{padding:5px 12px 8px;min-height:72px}.story-caption>span{font-size:calc(18px + 1pt)}.story-caption>p{font-size:calc(22px + 1pt);line-height:1.08}.listening-controls{min-height:62px;padding:7px 10px;gap:7px}.transport{gap:5px}.track-label>span:first-child{font-size:calc(17px + 1pt)}.track-label>span:last-child{font-size:calc(16px + 1pt)}.bible-panel{border-left:0;border-top:4px solid #6c343e}.bible-panel>header{padding:5px 12px;margin-bottom:4px;min-height:38px}.bible-panel h2{font-size:calc(23px + 1pt)}.bible-panel select{font-size:calc(17px + 1pt);min-height:29px;padding:2px;top:4px}.bible-options label{font-size:calc(17px + 1pt)}.bible-options>span{font-size:calc(14px + 1pt)}.bible-scroll h3{font-size:calc(22px + 1pt)}.bible-scroll p{font-size:calc(22px + 1pt);line-height:1.12}.bible-credit{font-size:calc(14px + 1pt);padding:4px 12px}.opening>div{padding:13px 17px}.opening h2,.ending h2{font-size:calc(29px + 1pt)}.opening p,.ending p{font-size:calc(20px + 1pt)}.primary{font-size:calc(23px + 1pt)}.opening .audio-note{font-size:calc(15px + 1pt)}.speech-bubble{padding:5px 7px;border-width:2px;max-width:70%;font-size:calc(17px + 1pt)}.speech-bubble>span{margin-bottom:3px}.speech-bubble.infernal{max-width:45%}.chapter-transition>span{font-size:calc(20px + 1pt);padding:8px 10px}}
@media(max-height:550px) and (orientation:landscape){.topbar{min-height:47px;padding:4px 8px}.wordmark{font-size:calc(25px + 1pt)}.chapters button{font-size:calc(17px + 1pt);min-height:31px}.bible-toggle{font-size:calc(18px + 1pt)}.story-caption{min-height:62px;padding:4px 10px}.story-caption>p{font-size:calc(21px + 1pt)}.location h1{font-size:calc(16px + 1pt)}.listening-controls{min-height:51px;padding:5px 8px}.bible-panel{border-left:4px solid #6c343e;border-top:0}.bible-panel h2{font-size:calc(23px + 1pt)}.bible-panel select{font-size:calc(18px + 1pt)}.bible-scroll p{font-size:calc(22px + 1pt)}.speech-bubble{font-size:calc(17px + 1pt)}.opening>div{padding:10px}.opening h2{font-size:calc(27px + 1pt)}.opening p{font-size:calc(18px + 1pt)}}
@media(prefers-reduced-motion:reduce){.chapter-transition.revealing::before,.chapter-transition.revealing::after,.chapter-transition.revealing>span{animation-duration:.1s}}

/* Square story canvas: mobile reads vertically instead of squeezing the scene. */
.experience{height:auto;min-height:100dvh}.story-workspace{flex:none;overflow:visible;align-items:stretch}.story-view{align-items:center}.stage{flex:none;width:100%;max-width:720px;aspect-ratio:1;min-height:0}.story-panel{width:100%;max-height:none;overflow:visible}.bible-panel{max-height:calc(100dvh - 90px);position:sticky;top:10px}.speech-bubble{max-width:86%;width:86%;font-size:calc(clamp(18px,3.8vw,26px) + 1pt);line-height:1.08;transform:translate(-50%,0);max-height:34%;overflow:auto}.speech-bubble::after{display:none}.speech-bubble.heavenly,.speech-bubble.infernal{max-width:86%}.stage-overlays{overflow:hidden}
@media(max-width:760px){.story-workspace{overflow:visible}.stage{width:100%;max-width:none;aspect-ratio:1}.story-panel{max-height:none}.bible-panel{position:relative;top:auto;height:calc(100dvh - 10px);min-height:240px;max-height:none;flex-shrink:0}.story-caption{min-height:90px}.speech-bubble{font-size:calc(20px + 1pt);padding:8px 10px}.location p{display:none}}

.story-caption.infernal{background:#3b1722;border-top:3px solid #e58344;border-bottom:3px solid #7d2632}.story-caption.infernal>span{color:#ffac5b}.speech-bubble{pointer-events:auto;overscroll-behavior:contain}

/* Dialogue stays in the game panel, never over the scene. */
.story-caption{display:flex;gap:16px;align-items:flex-start;min-height:116px;padding:16px 18px;background:#2b1d22}.dialogue-copy{flex:1;min-width:0}.dialogue-copy>span{font-size:calc(21px + 1pt);color:#eaa894;text-transform:uppercase;letter-spacing:1px}.dialogue-copy>p{font-size:calc(25px + 1pt);line-height:1.15;margin-top:8px;color:#fff1d5}#portrait{width:72px;height:72px;flex:0 0 72px;border:3px solid #ac7460;background:#48323b;image-rendering:pixelated}.story-caption.heavenly{background:linear-gradient(#dce8ef,#eef1de);border-top:4px solid #f4d994;border-bottom:4px solid #889bb4}.heavenly .dialogue-copy>span{color:#425a78}.heavenly .dialogue-copy>p{color:#24384f}.heavenly #portrait{background:#b5d0e2;border-color:#d6b969}.story-caption.infernal{background:linear-gradient(#4b1721,#231016);border-top:4px solid #c95c36;border-bottom:4px solid #8b332a}.infernal .dialogue-copy>span{color:#ffac5b}.infernal .dialogue-copy>p{color:#ffe2a5}.infernal #portrait{background:#6f2830;border-color:#e58344}@media(max-width:760px){.story-caption{gap:12px;padding:12px;min-height:124px}#portrait{width:56px;height:56px;flex-basis:56px}.dialogue-copy>span{font-size:calc(19px + 1pt)}.dialogue-copy>p{font-size:calc(22px + 1pt)}}

/* The frame follows its content; the scene itself owns the square dimensions. */
#app{display:flex;flex-direction:column;min-height:100dvh}
.experience{width:100%;max-width:1240px;min-height:0;height:auto;margin:auto}
.story-workspace{display:grid;grid-template-columns:minmax(0,1fr) clamp(330px,calc(100vw - 850px),420px);align-items:start}
.story-view{width:100%;flex:none;align-self:start}
.stage{width:100%;max-width:none;aspect-ratio:1;flex:none}
.listening-controls{width:100%}
.bible-panel{width:100%;height:calc(100dvh - 100px)}
.experience:has(.bible-panel[hidden]){max-width:744px}
.story-workspace:has(.bible-panel[hidden]){grid-template-columns:minmax(0,1fr)}
.topbar{flex-wrap:wrap}
.experience:has(.bible-panel[hidden]) .chapters{order:3;flex-basis:100%;justify-content:center}
@media(max-width:1180px) and (min-width:761px){.story-workspace{grid-template-columns:minmax(0,1fr) 290px}}
@media(max-width:760px){.story-workspace{grid-template-columns:minmax(0,1fr)}.experience{max-width:none}.bible-panel{height:calc(100dvh - 10px)}.topbar{flex-wrap:nowrap}.experience:has(.bible-panel[hidden]) .chapters{flex-basis:auto}}
@media(min-width:761px){.bible-panel{height:100%;max-height:none;position:static;align-self:stretch}}
@media(min-width:761px){.bible-panel{contain:size;height:auto;min-height:0;overflow:hidden}}

/* Chapter selection lives beside playback and opens as a focused pixel menu. */
.chapters-button{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;padding:0;line-height:0;background:#562630;color:#f4dcbb;border:2px solid #a45b5c;border-right-color:#28141b;border-bottom-color:#28141b;box-shadow:2px 2px #100c0f}
.chapters-button:hover{background:#853340}
.bible-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px}
.bible-toggle svg{display:block;flex:none}
.chapters-dialog{width:min(560px,calc(100% - 30px));padding:20px;background:#2b1d22;color:#f0ddbf;border:4px solid #b66a68;box-shadow:7px 7px #100c10}
.chapters-dialog::backdrop{background:#160d12cc}
.chapters-dialog>header{margin-bottom:15px;padding-bottom:12px;border-bottom:3px solid #6c343e}
.chapter-menu{display:grid;gap:10px}
.chapter-menu button{display:grid;grid-template-columns:auto 1fr;gap:1px 12px;align-items:center;width:100%;padding:12px 14px;text-align:left;background:#57252e;color:#efd5b7;border:3px solid #a14a52;border-right-color:#28141b;border-bottom-color:#28141b;box-shadow:inset 2px 2px #74333e;font:400 calc(23px + 1pt) var(--sans)}
.chapter-menu button:hover{background:#853340}.chapter-menu button.current{background:#98252f;color:#fff1d3;border-color:#d48c7b;border-right-color:#3a1923;border-bottom-color:#3a1923;box-shadow:inset 2px 2px #b7454e}
.chapter-menu button span{grid-row:1 / 3;color:#d49d89}.chapter-menu button strong{font:inherit}.chapter-menu button small{grid-column:2;font:400 calc(17px + 1pt) var(--sans);color:#c5a58e}
/* Keep every playback glyph mathematically centered inside a true square. */
.listening-controls svg{display:block;margin:auto}
.transport{display:grid;grid-auto-flow:column;grid-auto-columns:max-content;align-items:center}
.transport .icon-button,.transport .play-button{display:grid;place-items:center;padding:0;line-height:0;flex:none}
@media(max-width:760px){.chapters-button{flex-basis:40px;width:40px;height:40px}.transport .icon-button,.transport .play-button{width:40px;height:40px}.listening-controls{gap:5px}.timeline{min-width:70px}.chapters-dialog{padding:15px}.chapter-menu button{padding:10px;font-size:calc(21px + 1pt)}.chapter-menu button small{font-size:calc(16px + 1pt)}}

/* Approved wordmark, framed to remove the supplied artwork's outer padding. */
.wordmark{position:relative;display:block;width:250px;height:45px;overflow:hidden;flex:0 1 250px;min-width:150px;text-shadow:none}
.wordmark img{position:absolute;display:block;width:110%;max-width:none;height:auto;left:-5%;top:50%;transform:translateY(-50%)}
@media(max-width:760px){.wordmark{width:190px;height:35px;flex-basis:190px}.topbar{gap:8px}}

/* The header floats over the story instead of occupying a solid bar. */
.experience{position:relative;background:transparent;box-shadow:none}
.topbar{position:absolute;inset:0 10px auto;z-index:30;min-height:64px;padding:8px 10px;background:transparent;pointer-events:none}
.topbar>*{pointer-events:auto}
.story-workspace{position:relative}
@media(max-width:760px){.topbar{inset:0 5px auto;min-height:56px;padding:6px 8px}}

/* On phones, the secondary full-screen action moves into a compact menu. */
.header-tools>#toggle-bible,.header-tools>#about{display:none}
.mobile-menu{display:block;position:relative}
.mobile-menu summary{list-style:none}.mobile-menu summary::-webkit-details-marker{display:none}
.mobile-menu-panel{position:fixed;inset:0;z-index:100;width:100vw;height:100dvh;overflow:auto;padding:14px;background:#231518;border:5px solid #6c2b35}.mobile-menu-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;padding-bottom:12px;border-bottom:3px solid #6c343e}.mobile-menu-heading strong{font:400 calc(30px + 1pt) var(--sans);color:#ffe2b4}.mobile-menu-heading .icon-button{width:42px;height:42px;color:#f4dcbb}.mobile-menu-panel>button{display:flex;align-items:center;gap:12px;width:100%;min-height:54px;padding:10px 14px;background:#562630;color:#f4dcbb;border:2px solid #a45b5c;border-right-color:#28141b;border-bottom-color:#28141b;box-shadow:2px 2px #100c0f;font:400 calc(24px + 1pt) var(--sans);text-align:left}.mobile-menu-panel>button+button{margin-top:10px}.mobile-menu-panel>button:hover{background:#853340}.mobile-menu-panel>button[aria-checked=true]{background:#98252f;color:#fff0d3}
@media(max-width:760px){#app{justify-content:flex-start}.experience{margin:0 auto}}

/* Transparent pixel wordmark: preserve the complete lettering and halo. */
.wordmark img{position:static;width:100%;height:100%;max-width:100%;object-fit:contain;object-position:left center;transform:none;image-rendering:pixelated}

/* Bible panel visibility uses a synchronized, keyboard-operable switch. */
#toggle-bible,#mobile-bible{align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:6px 8px;background:transparent;color:#e9dbbd;border:0;box-shadow:none;text-shadow:1px 1px #321b20}
.bible-toggle .switch-track{display:block;position:relative;width:44px;height:24px;flex:none;background:#57252e;border:2px solid #a45b5c;box-shadow:2px 2px #100d11}
.bible-toggle .switch-thumb{position:absolute;top:3px;left:3px;width:14px;height:14px;background:#e9dbbd;transition:transform .15s ease}
.bible-toggle[aria-checked=true] .switch-track{background:#98252f;border-color:#e9dbbd}
.bible-toggle[aria-checked=true] .switch-thumb{transform:translateX(20px)}
#toggle-bible:focus-visible,#mobile-bible:focus-visible{outline:2px solid #e9dbbd;outline-offset:3px}
#toggle-bible:hover .switch-track,#mobile-bible:hover .switch-track{border-color:#e9dbbd}
#mobile-bible{display:flex;min-height:54px;padding:10px 14px}
@media(prefers-reduced-motion:reduce){.bible-toggle .switch-thumb{transition:none}}

#toggle-bible[aria-checked=true]{color:#57252e;text-shadow:none}

/* Give desktop branding its own row when the viewport has room. */
@media(min-width:1024px) and (min-height:700px){
 .topbar{position:relative;inset:auto;min-height:64px;padding:4px 0 12px;flex-wrap:nowrap}
 .header-tools{align-self:center}
 #toggle-bible[aria-checked=true]{color:#e9dbbd}
}

/* Mobile uses one continuous page scroll; the Bible no longer nests its own scroller. */
@media(max-width:760px){
 .bible-panel{height:auto;min-height:0;max-height:none;overflow:visible}
 .bible-scroll{height:auto;max-height:none;min-height:0;flex:none;overflow:visible;overscroll-behavior:auto}
 .listening-controls>#mute{display:grid;place-items:center;width:40px;height:40px;padding:0;line-height:0;flex:0 0 40px}
}

/* Keep the closed menu out of layout, including Safari's details rendering. */
.mobile-menu:not([open])>.mobile-menu-panel{display:none}
.mobile-menu-panel{width:auto;max-width:100%}

/* The phone frame fills the viewport without exterior gutters or sideways scrolling. */
@media(max-width:760px){
 html,body{overflow-x:clip}
 .experience,.experience:has(.bible-panel[hidden]){max-width:100%;padding:0;flex-shrink:0}
 .story-workspace{min-width:0;border-left:0;border-right:0;box-shadow:none}
 .story-view,.bible-panel,.listening-controls{min-width:0;max-width:100%}
 .topbar{inset:0 0 auto}
 .timeline{min-width:0}
 .track-label{min-width:0}
 .track-label>span:first-child{min-width:0}
 .opening>div{min-width:0;max-width:100%}
}

/* A hard pixel shadow keeps the transparent wordmark clear over the scene. */
.wordmark{overflow:visible}
.wordmark img{filter:drop-shadow(1px 1px 0 #100d11)}

/* Illustrated episode library; unavailable stories have no playback action. */
.chapters-dialog{max-height:90dvh;padding:0;overflow:auto;overscroll-behavior:contain}
.chapters-dialog>header{position:sticky;top:0;z-index:2;margin:0;padding:16px 20px;background:#2b1d22}
.chapter-menu{padding:16px 20px 24px}
.chapter-menu button{grid-template-columns:88px minmax(0,1fr);padding:8px;gap:12px}
.chapter-menu .episode-thumb{width:88px;height:76px;object-fit:cover;image-rendering:pixelated;border:2px solid #a14a52}
.chapter-menu .episode-copy{display:flex;flex-direction:column;gap:4px;grid-row:auto;min-width:0;color:inherit}
.chapter-menu .episode-copy strong{font:inherit;line-height:1.05}
.chapter-menu .episode-copy small{font-size:calc(16px + 1pt);color:#d49d89}
.chapter-menu button.episode-upcoming{opacity:1;background:#302027;border-color:#63414a;color:#be9f90;box-shadow:none;cursor:default}
.episode-upcoming .episode-thumb{opacity:.45}
.chapter-menu .episode-copy .coming-soon{color:#e6c296}
body:has(#chapters-dialog[open]){overflow:hidden}
@media(max-width:760px){
 .chapters-dialog{inset:0;width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;border:0;box-shadow:none;padding:0}
 .chapters-dialog>header{padding:calc(14px + env(safe-area-inset-top)) 16px 14px}
 .chapters-dialog>header .icon-button{width:44px;height:44px}
 .chapter-menu{padding:14px 14px calc(24px + env(safe-area-inset-bottom));gap:12px}
 .chapter-menu button{font-size:calc(22px + 1pt)}
}
/* Opening title card recalls a cartridge-era adventure without obscuring the chapter prompt. */
.opening>div{position:relative;width:min(600px,100%);max-width:600px;overflow:hidden;isolation:isolate}
.opening>div::before{content:"";position:absolute;inset:7px;border:2px solid #6e3540;pointer-events:none;z-index:-1}
.movie-title{position:relative;margin:0 0 22px;font:400 calc(clamp(45px,7.5vw,78px) + 1pt)/.72 var(--sans);letter-spacing:.06em;color:#ffe5ad;text-align:center;text-shadow:3px 3px 0 #a44947,6px 6px 0 #160d12;animation:title-card-in .7s steps(6,end) both}
.movie-title span,.movie-title strong{display:block;font:inherit}
.movie-title strong{margin-top:12px;margin-left:.13em;font-size:1.18em;letter-spacing:.18em;color:#e5795f;text-shadow:3px 3px 0 #7a2630,6px 6px 0 #160d12}
.movie-title::after{content:"";display:block;width:54%;height:5px;margin:20px auto 0;background:#d39a74;box-shadow:-12px 0 #7a2630,12px 0 #7a2630}
@keyframes title-card-in{0%{opacity:0;transform:translateY(-18px) scale(1.08)}65%{opacity:1;transform:translateY(3px) scale(1)}100%{opacity:1;transform:none}}
@media(max-width:760px){.opening>div{padding:18px 17px 15px}.movie-title{font-size:calc(clamp(38px,13vw,58px) + 1pt);margin-bottom:18px;text-shadow:2px 2px 0 #a44947,4px 4px 0 #160d12}.movie-title strong{margin-top:9px;text-shadow:2px 2px 0 #7a2630,4px 4px 0 #160d12}.movie-title::after{height:4px;margin-top:15px}}
@media(max-height:550px) and (orientation:landscape){.movie-title{font-size:calc(38px + 1pt);margin-bottom:12px}.movie-title strong{margin-top:7px}.movie-title::after{margin-top:10px}.opening .eyebrow{font-size:calc(15px + 1pt)}}
@media(prefers-reduced-motion:reduce){.movie-title{animation:none}}

/* The phone safe-area backdrop follows the color sampled from the scene's top edge. */
:root{--canvas-edge:#5cafea}
@media(max-width:760px){html,body{background-color:var(--canvas-edge)}}

/* Cinematic pixel cover for the pixelgospel title screen. */
.opening{background:#110d16 url('./assets/pixelgospel-cover.png?v=1') center center/cover no-repeat}
.opening::after{content:"";position:absolute;inset:0;background:#100a12aa;pointer-events:none}
.opening>div{z-index:1;background:#24151dd6;border-color:#d28268;box-shadow:8px 8px #0b0910;padding:25px 30px}
.movie-title{text-transform:lowercase;letter-spacing:.02em;color:#ffe9b8;text-shadow:3px 3px 0 #c4554f,6px 6px 0 #100b12}
.movie-title strong{margin-left:0;letter-spacing:.08em;color:#f08a66;text-shadow:3px 3px 0 #7a2630,6px 6px 0 #100b12}
@media(max-width:760px){.opening{background-position:58% center}.opening>div{padding:19px 17px 16px}.movie-title{font-size:calc(clamp(41px,14vw,62px) + 1pt)}}

/* Let the mobile scene meet its matching safe-area color without a frame line. */
@media(max-width:760px){
 .story-workspace{border-top:0}
 .shade{box-shadow:none}
}

/* Full-screen portrait cover: artwork carries the scene; live HTML carries the title and action. */
.opening{
 position:fixed;
 inset:0;
 z-index:90;
 padding:12px;
 background:#0d0910;
 overflow:hidden;
}
.opening::after{display:none}
.opening>div{
 width:auto;
 max-width:100%;
 height:calc(100dvh - 24px);
 aspect-ratio:941/1672;
 display:flex;
 flex-direction:column;
 align-items:center;
 padding:clamp(42px,6dvh,76px) clamp(24px,5vw,46px) clamp(28px,4dvh,48px);
 background:#17101b url('./assets/pixelgospel-cover-portrait.png?v=1') center/cover no-repeat;
 border:2px solid #d06d5d;
 box-shadow:8px 8px 0 #070609;
 isolation:isolate;
}
.opening>div::before{
 inset:9px;
 z-index:3;
 border:2px solid #823744;
 box-shadow:inset 0 0 0 2px #160d15aa;
}
.opening>div::after{
 content:"";
 position:absolute;
 inset:0;
 z-index:1;
 pointer-events:none;
 background:linear-gradient(to bottom,rgba(10,7,14,.28) 0,transparent 24%,transparent 56%,rgba(12,8,14,.35) 68%,rgba(12,8,14,.94) 100%);
}
.opening>div>*{position:relative;z-index:4}
.opening .movie-title{
 margin:0;
 font-size:calc(clamp(50px,8dvh,82px) + 1pt);
 line-height:.7;
 color:#ffe8b0;
 text-shadow:3px 3px 0 #ba4c49,6px 6px 0 #120b11;
 filter:drop-shadow(0 3px 0 #09070a);
}
.opening .movie-title strong{
 margin-top:14px;
 color:#e66d5d;
 text-shadow:3px 3px 0 #74232f,6px 6px 0 #120b11;
}
.opening .movie-title::after{display:none}
.opening .eyebrow{
 margin-top:auto;
 padding-top:20px;
 font-size:calc(clamp(16px,2.2dvh,21px) + 1pt);
 letter-spacing:.14em;
 color:#efc98e;
}
.opening h2{
 margin:10px 0 4px;
 font-size:calc(clamp(28px,4.1dvh,41px) + 1pt);
 line-height:1;
 color:#fff0c8;
 text-shadow:3px 3px #120b11;
}
.opening p{
 max-width:440px;
 font-size:calc(clamp(18px,2.5dvh,24px) + 1pt);
 line-height:1.14;
 color:#ddbea0;
}
.opening .primary{
 min-height:54px;
 margin-top:clamp(14px,2.3dvh,24px);
 padding:10px 24px;
 font-size:calc(clamp(22px,3dvh,29px) + 1pt);
 box-shadow:5px 5px #0c090d;
}
.opening .audio-note{
 margin-top:clamp(10px,1.7dvh,17px);
 font-size:calc(clamp(13px,1.8dvh,17px) + 1pt);
 color:#b99585;
}
@media(max-width:760px){
 .opening{padding:0}
 .opening>div{width:100%;height:100dvh;max-width:none;aspect-ratio:auto;border-width:0 2px;box-shadow:none;padding:calc(28px + env(safe-area-inset-top)) 24px calc(22px + env(safe-area-inset-bottom));background-position:center}
 .opening .movie-title{font-size:calc(clamp(48px,15vw,70px) + 1pt)}
 .opening .movie-title strong{margin-top:11px}
 .opening .eyebrow{font-size:calc(clamp(15px,4.4vw,19px) + 1pt)}
 .opening h2{font-size:calc(clamp(28px,8vw,36px) + 1pt)}
 .opening p{font-size:calc(clamp(18px,5vw,22px) + 1pt)}
 .opening .primary{font-size:calc(clamp(22px,6vw,27px) + 1pt)}
}
@media(max-height:650px) and (orientation:landscape){
 .opening>div{height:calc(100dvh - 12px);padding:22px 24px 18px}
 .opening .movie-title{font-size:calc(38px + 1pt)}
 .opening .movie-title strong{margin-top:7px}
 .opening .eyebrow{padding-top:8px;font-size:calc(14px + 1pt)}
 .opening h2{font-size:calc(25px + 1pt);margin:5px 0 2px}
 .opening p{font-size:calc(16px + 1pt)}
 .opening .primary{min-height:40px;margin-top:8px;padding:6px 14px;font-size:calc(20px + 1pt)}
 .opening .audio-note{display:none}
}

/* While the cover is open, nothing from the player interface shares the viewport. */
body:has(.opening:not([hidden])){overflow:hidden;background:#0d0910}
.experience:has(> .opening:not([hidden])){width:100%;max-width:none;min-height:100dvh;height:100dvh;margin:0;padding:0;background:#0d0910;overflow:hidden}
.experience:has(> .opening:not([hidden]))>.topbar,
.experience:has(> .opening:not([hidden]))>.story-workspace{display:none!important}
.opening .audio-note{display:none}

/* One shared menu: main actions first, followed by unboxed chapter rows. */
.main-menu-actions{display:grid;padding:8px 20px 0}
.main-menu-actions>button{display:flex;align-items:center;gap:12px;width:100%;min-height:52px;padding:12px 0;background:transparent;color:#f4dcbb;border:0;border-bottom:1px solid #63414a;box-shadow:none;text-align:left;font:400 calc(24px + 1pt) var(--sans)}
.main-menu-actions>button:hover{color:#fff1d3;background:#37252b}
.main-menu-actions .switch-track{margin-left:auto}
.main-menu-actions .menu-support{color:#ffe2b4;background:#54212c;padding-inline:12px;border:2px solid #9f4b53;box-shadow:3px 3px #100d11}
.main-menu-actions .menu-support:hover{background:#6d2935}
.menu-support>span{display:grid;gap:2px}.menu-support strong{font:inherit}.menu-support small{font:400 calc(16px + 1pt) var(--sans);color:#d9aa93}
.menu-chapters-title{margin:22px 20px 0;font:400 calc(22px + 1pt) var(--sans);color:#d49d89}
.chapter-menu{gap:0;padding-top:8px}
.chapter-menu button,.chapter-menu button.current,.chapter-menu button.episode-upcoming{background:transparent;border:0;border-radius:0;box-shadow:none;padding:14px 0}
.chapter-menu button+button,.chapter-menu button+button.current,.chapter-menu button+button.episode-upcoming{border-top:1px solid #63414a}
.chapter-menu button:not(:disabled):hover{background:#37252b}.chapter-menu button.current{color:#ffe2b4}
.chapter-menu .episode-thumb{border:0}
.chapter-menu .episode-copy .fundraising{color:#e6c296}
@media(max-width:760px){.main-menu-actions{padding-inline:14px}.menu-chapters-title{margin-inline:14px}}
/* Full Bible navigation shares the reader's paper palette. */
.bible-browser{display:grid;grid-template-columns:minmax(0,1fr) 82px;gap:10px;padding:0 12px 10px}
.bible-browser label{min-width:0;font:18px var(--sans);color:#704e46}
.bible-panel .bible-browser select{position:static;display:block;width:100%;max-width:100%;margin:4px 0 0;min-height:40px;padding:4px;font:20px var(--sans)}
.bible-navigation{display:flex;justify-content:space-between;gap:8px;padding:10px 12px;border-top:2px solid #bd9e87}
.bible-navigation button{display:grid;place-items:center;width:56px;height:52px;padding:12px;border:2px solid #91645b;background:#f6e9cd;color:#522e36}
#retry-bible{min-height:42px;padding:5px 8px;border:2px solid #91645b;background:#f6e9cd;color:#522e36;font:18px var(--sans)}
.bible-navigation button:disabled{opacity:.4}
@media(max-width:760px){.bible-panel>header{position:static}.bible-panel h2{font-size:25px}.bible-browser{grid-template-columns:minmax(0,1fr) 90px}.bible-navigation{padding-bottom:14px}.bible-navigation button{width:52px;height:52px;padding:12px}}
/* Reserve 50px above the canvas for branding and the menu. */
.topbar{position:relative;inset:auto;height:50px;min-height:50px;flex:0 0 50px;padding:0 8px;flex-wrap:nowrap;align-items:center;background:var(--canvas-edge,#5cafea)}
.header-tools{align-self:center}
.opening-actions{display:grid;gap:12px;width:min(100%,410px);margin:clamp(16px,2.5dvh,26px) 0 clamp(54px,8dvh,96px)}
.opening-actions .primary{width:100%;margin:0}
.opening-secondary{display:inline-flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:52px;padding:9px 20px;color:#ffe7bd;background:#24141dcc;border:3px solid #ad665e;border-right-color:#421d28;border-bottom-color:#421d28;box-shadow:4px 4px #0c090d;font:400 calc(clamp(19px,2.55dvh,25px) + 1pt) var(--sans)}
.opening-secondary:hover{background:#38202acc}
@media(max-width:760px){.opening-actions{margin-bottom:clamp(58px,9dvh,92px);gap:10px}.opening-secondary{min-height:48px;font-size:calc(clamp(18px,5.1vw,23px) + 1pt)}}
@media(max-height:650px) and (orientation:landscape){.opening-actions{display:flex;width:auto;margin:8px 0 18px}.opening-actions .primary,.opening-secondary{min-height:40px;padding:6px 13px;font-size:calc(18px + 1pt)}}

/* Pin mobile branding to the highest usable edge, clear of the notch. */
@media(max-width:760px){
 .topbar{position:fixed;inset:0 0 auto;height:calc(50px + env(safe-area-inset-top));min-height:50px;padding:env(safe-area-inset-top) max(8px,env(safe-area-inset-right)) 0 max(8px,env(safe-area-inset-left));z-index:30}
 .experience,.experience:has(.bible-panel[hidden]){padding-top:calc(50px + env(safe-area-inset-top))}
 .experience:has(> .opening:not([hidden])){padding-top:0}
}

/* Playback sits on the lower edge of the picture, like a video player. */
.stage>.listening-controls{position:absolute;left:0;right:0;bottom:0;z-index:6;width:100%;min-height:70px;padding:20px 12px 10px;border:0;background:linear-gradient(transparent,#160f16d9 35%,#160f16f2);color:#fff1d5}
.stage>.listening-controls .track-label{color:#fff1d5;text-shadow:1px 1px #100c10}
.stage>.listening-controls .track-label>span:last-child{color:#eedbc5}
@media(max-width:760px){.stage>.listening-controls{min-height:64px;padding:15px 8px 8px;gap:5px}}

/* Quiet video controls: three targets, no button boxes or control-bar backdrop. */
.stage>.listening-controls{min-height:48px;padding:0 8px 4px;gap:8px;background:transparent;box-shadow:none;border:0}
.stage>.listening-controls .track-label,.stage>.listening-controls .film-source{display:none}
.stage>.listening-controls .transport{gap:0}
.stage>.listening-controls #play,.stage>.listening-controls #mute{display:grid;place-items:center;width:44px;height:44px;min-height:44px;flex:0 0 44px;padding:10px;border:0;background:transparent;box-shadow:none;color:#fff1d5;opacity:1;filter:drop-shadow(2px 2px 0 #100d11);transition:opacity .15s}
.stage>.listening-controls #play:hover,.stage>.listening-controls #mute:hover,.stage>.listening-controls #play:focus-visible,.stage>.listening-controls #mute:focus-visible{opacity:1;background:transparent}
.stage>.listening-controls .timeline{min-width:0;flex:1}
.stage>.listening-controls #seek{display:block;width:100%;height:44px;margin:0;padding:0;border:0;box-shadow:none;background:linear-gradient(#fff1d5,#fff1d5) center/100% 1px no-repeat;opacity:1;filter:drop-shadow(2px 2px 0 #100d11);cursor:pointer}
.stage>.listening-controls #seek:hover,.stage>.listening-controls #seek:focus-visible,.stage>.listening-controls #seek:active{opacity:1}
.stage>.listening-controls #seek::-webkit-slider-thumb{appearance:none;width:14px;height:14px;border:0;border-radius:50%;background:#fff1d5;box-shadow:2px 2px 0 #100d11}
.stage>.listening-controls #seek::-moz-range-track{height:1px;background:#fff1d5;border:0;box-shadow:2px 2px 0 #100d11}
.stage>.listening-controls #seek::-moz-range-thumb{width:14px;height:14px;border:0;border-radius:50%;background:#fff1d5;box-shadow:2px 2px 0 #100d11}
@media(max-width:760px){
 .stage>.listening-controls{min-height:56px;padding-inline:4px;gap:4px}
 .stage>.listening-controls #play,.stage>.listening-controls #mute{width:52px;height:52px;min-height:52px;flex-basis:52px;padding:14px}
}

/* Book title and chapter bookmark replace the form-like selector boxes. */
.bible-browser{grid-template-columns:minmax(0,1fr) 86px;gap:18px;align-items:start;padding:2px 16px 18px}
.bible-browser label{position:relative;padding-top:8px;font-size:16px;letter-spacing:1.5px;text-transform:uppercase;color:#853b43}
.bible-panel .bible-browser select{appearance:none;border:0;border-radius:0;box-shadow:none;background:transparent;margin:0;min-height:48px;padding:2px 25px 4px 0;font:30px/1.1 var(--sans);letter-spacing:0;color:#522e36;cursor:pointer;text-overflow:ellipsis}
.bible-browser label:first-child{border-bottom:2px solid #91645b}
.bible-browser label:first-child::before{content:'';position:absolute;bottom:-4px;left:0;width:34px;height:6px;background:#98252f}
.bible-browser label::after{content:'';position:absolute;right:5px;top:40px;width:8px;height:8px;border-right:3px solid currentColor;border-bottom:3px solid currentColor;transform:rotate(45deg);pointer-events:none}
.bible-browser label:last-child{padding:8px 8px 16px;text-align:center;background:#98252f;color:#f0e5cb;clip-path:polygon(0 0,100% 0,100% 100%,50% calc(100% - 9px),0 100%)}
.bible-panel .bible-browser label:last-child select{color:#fff1d3;text-align:center;padding:0 16px 0 0;font-size:34px;min-height:44px}
.bible-browser label:last-child::after{right:10px;top:39px;width:6px;height:6px;border-width:2px}
.bible-panel .bible-browser select option{background:#f6e9cd;color:#522e36;font-size:20px}
.bible-browser label:first-child:focus-within{border-color:#98252f}
.bible-browser select:focus-visible{outline:2px dashed #853b43;outline-offset:1px}
.bible-browser label:last-child select:focus-visible{outline-color:#fff1d3}
@media(max-width:760px){.bible-browser{grid-template-columns:minmax(0,1fr) 86px;gap:18px;padding-inline:16px}}

/* The finished story becomes a focused invitation to fund the next episode. */
body:has(.support-cover:not([hidden])){overflow:hidden;background:#0d0910}
.experience:has(> .support-cover:not([hidden])){width:100%;max-width:none;min-height:100dvh;height:100dvh;margin:0;padding:0;background:#0d0910;overflow:hidden}
.experience:has(> .support-cover:not([hidden]))>.topbar,
.experience:has(> .support-cover:not([hidden]))>.story-workspace{display:none!important}
.support-cover{position:fixed;inset:0;z-index:92;display:flex;align-items:center;justify-content:center;padding:12px;background:#0d0910;color:#fff0cf;text-align:center}
.support-card{position:relative;width:auto;max-width:100%;height:calc(100dvh - 24px);aspect-ratio:941/1672;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;overflow:hidden;isolation:isolate;padding:clamp(46px,7dvh,88px) clamp(24px,4vw,42px) clamp(34px,5dvh,58px);background:#17101b url('./assets/pixelgospel-cover-portrait.png?v=1') center/cover no-repeat;border:2px solid #d06d5d;box-shadow:8px 8px #070609}
.support-card::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(to bottom,rgba(11,7,14,.12),rgba(11,7,14,.1) 38%,rgba(12,8,14,.84) 61%,rgba(12,8,14,.98) 100%)}
.support-card::after{content:"";position:absolute;inset:9px;z-index:3;border:2px solid #823744;pointer-events:none}
.support-card .eyebrow{font-size:calc(clamp(15px,2dvh,19px) + 1pt);letter-spacing:.13em;color:#efc58c}
.support-card h2{max-width:470px;margin:10px 0 8px;font-size:calc(clamp(28px,4dvh,40px) + 1pt);line-height:1;color:#fff0cf;text-shadow:3px 3px #120b11}
.support-card>p{max-width:460px;font-size:calc(clamp(17px,2.25dvh,22px) + 1pt);line-height:1.12;color:#d9b99d}
.support-options{display:grid;width:min(100%,430px);gap:8px;margin:clamp(16px,2.4dvh,24px) 0 14px}
.support-options button{display:grid;grid-template-columns:1fr;gap:2px;width:100%;min-height:72px;padding:9px 14px;text-align:left;color:#ffe9c2;background:#351923e8;border:2px solid #a85755;border-right-color:#3b1822;border-bottom-color:#3b1822;box-shadow:3px 3px #09070a}
.support-options button:hover{background:#56232ee8}
.support-options small{font:400 calc(13px + 1pt) var(--sans);letter-spacing:.12em;color:#e39a76}
.support-options strong{font:400 calc(clamp(20px,2.5dvh,25px) + 1pt) var(--sans)}
.support-options span{font:400 calc(14px + 1pt) var(--sans);color:#c7a994}
.supporter-thanks{width:min(100%,430px);padding:9px 12px;border-top:1px solid #7e4248;border-bottom:1px solid #7e4248;color:#e6c7aa}
.supporter-thanks>strong{display:block;margin-bottom:6px;font:400 calc(17px + 1pt) var(--sans);color:#f4d49d}
.supporter-thanks ul{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;list-style:none;margin:0;padding:0}
.supporter-thanks li{display:grid;gap:1px}.supporter-thanks li span{font:400 calc(15px + 1pt) var(--sans)}.supporter-thanks li small{font:400 calc(12px + 1pt) var(--sans);color:#b99585}
.supporter-preview{display:block;margin-top:7px;font:400 calc(11px + 1pt) var(--sans);color:#8f736c}
.ending-replay{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:7px 14px;color:#d6b9a0;font:400 calc(18px + 1pt) var(--sans);text-decoration:underline;text-underline-offset:4px}
.support-alert{text-align:center;max-width:440px}.support-alert h2{margin:0 0 12px;font-size:calc(29px + 1pt)}.support-alert p{margin-bottom:8px}.support-alert .primary{margin-top:12px}
@media(max-width:760px){.support-cover{padding:0}.support-card{width:100%;height:100dvh;max-width:none;aspect-ratio:auto;padding:calc(34px + env(safe-area-inset-top)) 20px calc(34px + env(safe-area-inset-bottom));border-width:0 2px;box-shadow:none}.support-card h2{font-size:calc(clamp(27px,7.4vw,34px) + 1pt)}.support-card>p{font-size:calc(clamp(16px,4.5vw,20px) + 1pt)}.support-options{margin:14px 0 10px}.support-options button{min-height:68px;padding:8px 12px}}
@media(max-height:680px){.support-card{padding-top:20px;padding-bottom:18px;overflow-y:auto}.support-card .eyebrow{font-size:14px}.support-card h2{font-size:27px;margin:5px 0}.support-card>p{font-size:16px}.support-options{gap:5px;margin:9px 0 6px}.support-options button{min-height:52px;padding:5px 9px}.support-options span{display:none}.supporter-thanks{padding-block:6px}.supporter-thanks>strong{margin-bottom:3px}.supporter-preview{margin-top:3px}.ending-replay{min-height:34px;padding:4px 10px}}

/* Keep the Bible prompt compact and readable on one line. */
.bible-panel>header{padding:8px 15px 7px;margin-bottom:6px;min-height:42px}
.bible-panel>header>div{display:flex;align-items:baseline;gap:11px;min-width:0;white-space:nowrap}
.bible-panel>header .eyebrow{flex:none;font-size:calc(13px + 1pt);letter-spacing:.08em}
.bible-panel>header h2{min-width:0;margin:0;font-size:calc(18px + 1pt);line-height:1;white-space:nowrap}
.bible-options{justify-content:flex-start}
@media(max-width:390px){.bible-panel>header{padding-inline:10px}.bible-panel>header>div{gap:8px}.bible-panel>header .eyebrow{font-size:calc(11px + 1pt)}.bible-panel>header h2{font-size:calc(15px + 1pt)}}

/* On desktop, the current chapter environment continues beyond the game frame. */
@media(min-width:761px){
 body{position:relative;isolation:isolate;background:#171116}
 body::before{content:"";position:fixed;inset:-12px;z-index:-1;background-image:linear-gradient(#120d14a6,#120d14bf),var(--chapter-backdrop);background-position:center;background-size:cover;background-repeat:no-repeat;image-rendering:pixelated;filter:saturate(.88) brightness(.82);transform:scale(1.025)}
 #app{position:relative;z-index:0}
 .experience,.topbar{background:transparent}
}
