@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Outfit:wght@400;600;700;800;900&display=swap');
:root{--ink:#3b261f;--cream:#fff8e9;--orange:#ed7445;--yellow:#ffd16d;--green:#3e6b58}*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font:16px/1.6 'DM Sans',sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer;color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #225e9b;outline-offset:4px}button:disabled{cursor:wait;opacity:.6}header{height:90px;padding:15px 5vw;display:flex;align-items:center;gap:20px;border-bottom:1px solid #e8d6b9;background:#fff6e2}.brand{font:900 20px/.85 'Outfit',sans-serif;text-decoration:none;color:var(--ink);letter-spacing:-1px}.brand>span{display:block;font-size:27px}.spark{color:var(--orange);margin-left:4px}.tagline{font-size:12px;color:#8a6d55;margin-right:auto}header button,.quiet{border:1px solid #ddc7a4;background:transparent;border-radius:30px;padding:9px 15px;font-size:13px}h1,h2,h3{font-family:'Outfit',sans-serif;line-height:1.05;margin:16px 0}h1{font-size:clamp(44px,6vw,80px);letter-spacing:-3px}h2{font-size:clamp(29px,4vw,42px);letter-spacing:-1px}p{margin:12px 0}.eyebrow{text-transform:uppercase;letter-spacing:3px;font-size:11px;font-weight:800;color:#926342}.primary{background:var(--ink);color:var(--cream);border:0;border-radius:12px;padding:15px 23px;font-weight:700;box-shadow:0 4px 0 #ab754b}.primary:hover{background:#664234}.home{max-width:1400px;margin:auto;padding:44px 5vw}.hero{display:grid;grid-template-columns:1fr 1fr;gap:50px;align-items:center}.hero-copy{max-width:520px}.hero-copy>p{max-width:430px;color:#80604b}.pilot{display:flex;gap:9px;align-items:center;margin:24px 0;font-size:12px}.dot{height:8px;width:8px;border-radius:50%;background:var(--green)}.art{height:520px;position:relative;border-radius:180px 180px 24px 24px;overflow:hidden;background:#d6ae72 url('/game/assets/palm-street.webp') center/cover;box-shadow:12px 12px 0 #ffd780}.art:after{content:'';position:absolute;inset:0;background:linear-gradient(transparent 60%,#56301f90)}.art img{position:absolute;height:82%;bottom:-12%;left:25%;z-index:1;filter:drop-shadow(0 12px 10px #34251060)}.art-label{position:absolute;bottom:24px;left:25px;color:white;z-index:2;font:800 25px 'Outfit'}.universes{margin-top:65px;display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:16px}.universe{border:1px solid #e4c9a1;border-radius:18px;padding:24px;background:#fff1d3}.universe.active{background:var(--yellow)}.universe h3{font-size:25px}.universe p{font-size:14px}.universe small{font-size:11px;letter-spacing:2px}.play-shell{max-width:1300px;margin:auto;display:grid;grid-template-columns:1.1fr 1fr;min-height:calc(100dvh - 90px)}.stage{position:sticky;top:0;height:calc(100dvh - 90px);min-height:490px;overflow:hidden;background:#bd995f;isolation:isolate}.backdrop{position:absolute;inset:0;background-position:center;background-size:cover;animation:scene-in .7s both}.stage.room .backdrop{background-image:url('/game/assets/empty-room.webp')}.stage.street .backdrop,.stage.phone .backdrop{background-image:url('/game/assets/palm-street.webp')}.stage.dark .backdrop{background-image:url('/game/assets/empty-room.webp');filter:brightness(.23) saturate(.5)}.stage:after{content:'';position:absolute;inset:0;background:linear-gradient(#31221330,transparent 35%,#2f1f1caa);pointer-events:none;z-index:1}.location{position:absolute;top:22px;left:22px;right:22px;z-index:3;display:flex;justify-content:space-between;gap:12px;color:white;font-size:11px;text-transform:uppercase;letter-spacing:1.5px}.location span{background:#3b261fcc;padding:8px 12px;border-radius:30px}.character{position:absolute;height:80%;max-width:55%;object-fit:contain;bottom:-8%;left:4%;z-index:2;filter:drop-shadow(0 8px 9px #38221360);animation:enter .75s both}.character.neighbour{left:auto;right:0;height:70%;bottom:-2%;animation-delay:.12s}.character.primary-character{animation:enter .7s both,breathe 5s .7s infinite ease-in-out}.prop{position:absolute;z-index:4;bottom:22%;right:12%;width:70px;height:55px;border-radius:12px;background:#342b29;box-shadow:0 10px 14px #0005;border:3px solid #6b5543;transform:rotate(-7deg)}.prop:before{content:'';position:absolute;top:-15px;left:18px;width:27px;height:16px;border:4px solid #342b29;border-radius:10px}.hotspots{position:absolute;z-index:5;bottom:25px;left:20px;right:20px;display:flex;gap:8px;flex-wrap:wrap}.hotspots button{background:#fff9e8ed;border:2px solid #f9cd72;border-radius:30px;padding:9px 13px;font-size:12px}.stage-caption{position:absolute;bottom:25px;left:25px;right:25px;z-index:3;color:white;font-family:'Outfit';font-size:25px;line-height:1.1}.phone-card{position:absolute;right:7%;top:27%;z-index:4;background:#203e36;color:#fff6df;padding:24px 16px;border:7px solid #2b2425;border-radius:25px;width:170px;transform:rotate(7deg);box-shadow:0 20px 40px #0004;animation:ring 1.5s infinite}.phone-card small{display:block;font-size:10px;letter-spacing:2px}.phone-card strong{display:block;margin:20px 0}.reading{padding:35px 35px 50px;align-self:start}.chapter-line{display:flex;gap:12px;align-items:center;margin-bottom:24px}.progress{height:4px;background:#ebdcc4;flex:1;border-radius:5px;overflow:hidden}.progress span{display:block;height:100%;background:var(--orange)}.reading p{font-size:16px;color:#785b48}.speaker{font-size:12px;color:var(--green);font-weight:700}.choice-label{display:flex;justify-content:space-between;align-items:center;background:var(--yellow);border-left:4px solid var(--green);padding:10px 14px;margin:26px 0 12px;border-radius:8px;font-size:11px}.choice-label b{letter-spacing:2px}.choices{display:grid;gap:10px}.choice{display:flex;text-align:left;gap:14px;padding:16px;border:1px solid #dfc7a4;background:#fffaf0;border-radius:12px;line-height:1.4;align-items:center;transition:transform .16s,background .16s}.choice:hover{background:#ffe6a8;transform:translateX(3px)}.letter{border:1px solid #ccb18e;flex:none;border-radius:8px;width:30px;height:32px;display:grid;place-items:center;font-weight:800;font-size:12px}.choice-text{font-size:14px;font-weight:600}.save-note{font-size:11px!important;color:#927b66!important;margin-top:17px}.result{border-radius:15px;background:#e4eddf;border:1px solid #b8c8ad;padding:20px;animation:scene-in .35s}.result p{color:#345442}.result .primary{background:var(--green);margin-top:10px}.ending{max-width:860px;margin:40px auto;padding:0 25px}.ending-card{background:#ffe4a0;padding:35px;border-radius:24px;border:1px solid #edc874}.ending h1{font-size:48px}.hook{border-left:3px solid var(--orange);padding-left:20px;font-style:italic}.ending-actions{display:flex;flex-wrap:wrap;gap:12px;margin:25px 0}dialog{border:1px solid #d9bd8a;border-radius:22px;background:var(--cream);color:var(--ink);padding:30px;width:min(94vw,570px);max-height:85dvh}dialog::backdrop{background:#2d201bb0;backdrop-filter:blur(5px)}dialog h2{font-size:32px}.close{float:right;border:0;background:#f5e1bd;border-radius:50%;width:32px;height:32px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}label{display:block;font-size:13px;font-weight:700;margin:12px 0}input,select,textarea{width:100%;display:block;border:1px solid #d7bf99;background:#fffdf6;border-radius:9px;padding:12px;margin-top:6px;color:var(--ink)}textarea{min-height:140px}.wide{grid-column:1/-1}.small{font-size:12px;color:#8a6d55}.journal-item{border-top:1px solid #e3d0b3;padding:14px 0;font-size:13px}.journal-item strong{display:block}.journal-item p{color:#80604b}.feedback-status{font-size:13px;color:var(--green)}#notice{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);z-index:20;background:var(--green);color:white;border-radius:12px;padding:12px 20px;display:none;max-width:90vw;font-size:13px}.portrait{height:170px;float:right;margin:0 0 10px 20px}.footer-link{display:block;margin-top:25px;font-size:12px;color:#7b5f49}.record{display:flex;gap:9px;flex-wrap:wrap;margin:20px 0}.record span{background:#fff6df;border:1px solid #dfc395;border-radius:30px;padding:6px 12px;font-size:12px}a{color:var(--green)}@keyframes enter{from{transform:translateY(30px);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes scene-in{from{opacity:0}to{opacity:1}}@keyframes breathe{50%{transform:translateY(-4px)}}@keyframes ring{5%,15%{transform:rotate(5deg)}10%,20%{transform:rotate(9deg)}}@media(min-width:1450px){.stage{border-radius:0 0 25px 25px}}@media(max-width:760px){header{height:74px;padding:12px 18px;gap:10px}.brand{font-size:16px}.brand>span{font-size:22px}.tagline{display:none}header button{padding:8px 11px;font-size:11px}#sound{margin-left:auto}.home{padding:28px 22px}.hero{grid-template-columns:1fr;gap:30px}h1{font-size:52px}.art{height:310px;border-radius:100px 100px 20px 20px;order:-1;box-shadow:7px 7px 0 #ffd780}.art img{height:100%;bottom:-20%;left:35%}.hero-copy p{font-size:15px}.universes{grid-template-columns:1fr;margin-top:35px}.universe{padding:20px}.play-shell{display:block}.stage{height:39dvh;min-height:260px;max-height:430px;position:relative;top:auto}.character{height:110%;bottom:-25%;left:7%}.character.neighbour{height:100%;bottom:-22%;right:6%}.reading{padding:24px 22px 40px}.chapter-line{margin-bottom:18px}.reading h2{font-size:33px}.reading p{font-size:15px}.choice{padding:15px 13px}.stage-caption{font-size:19px}.location{top:15px;left:15px;right:15px;font-size:9px}.phone-card{top:23%;width:135px;padding:10px;border-width:5px}.phone-card strong{margin:12px 0;font-size:13px}.prop{bottom:15%;width:55px;height:45px}.hotspots{bottom:12px;left:12px;gap:6px}.hotspots button{font-size:11px;padding:8px 10px}.ending h1{font-size:39px}.ending-card{padding:25px}.form-grid{grid-template-columns:1fr}.wide{grid-column:auto}dialog{padding:23px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Phone-first refinements. Original forked-path logo, unchanged artwork. */
html{-webkit-text-size-adjust:100%;scroll-padding-top:100px}body{padding-bottom:env(safe-area-inset-bottom);overflow-x:clip}header{height:auto;min-height:84px;padding:8px max(18px,env(safe-area-inset-right)) 8px max(18px,env(safe-area-inset-left));gap:12px}.brand{display:flex;align-items:center;flex-shrink:0}.brand img{display:block;width:64px;height:64px;border-radius:12px}.tagline{font-size:13px}.intro-brand{display:flex;align-items:center;gap:17px;margin-bottom:20px}.intro-brand img{border-radius:16px;flex-shrink:0}.intro-brand .eyebrow{line-height:1.8}header button,.quiet{min-height:44px}.primary{min-height:50px}input,select,textarea{font-size:16px;min-height:48px}.close{min-width:44px;min-height:44px}.hotspots button{min-height:44px}.choices .choice{min-height:64px}#radio-credit{font-size:11px;text-align:center;letter-spacing:1px;background:#e5eddf;color:#345442;padding:7px 16px}.home{padding-top:28px}.footer-link{line-height:1.7}.stage{height:calc(100dvh - 84px)}.stage.phone .phone-card{max-width:40%}dialog{overscroll-behavior:contain}.ending-actions>*{flex:1 1 180px}#notice{bottom:calc(16px + env(safe-area-inset-bottom));width:max-content;max-width:calc(100vw - 32px)}
@media(max-width:760px){header{min-height:76px;position:relative;z-index:8}.brand img{width:56px;height:56px;border-radius:10px}.tagline{display:none}#sound{margin-left:auto}header button{font-size:12px;padding:9px 12px;white-space:nowrap}.home{padding:22px 20px 35px}.hero{display:flex;flex-direction:column;gap:24px;align-items:stretch}.hero-copy{max-width:none;order:1}.hero .art{order:2;height:240px;border-radius:30px 90px 20px 20px;box-shadow:5px 5px 0 #ffd780}.hero h1{font-size:clamp(40px,12vw,56px);letter-spacing:-2px;margin:10px 0 15px}.hero-copy>p{max-width:none;font-size:16px;line-height:1.65}.intro-brand img{width:66px;height:66px;border-radius:13px}.intro-brand{margin-bottom:18px;gap:14px}.intro-brand .eyebrow{font-size:10px;letter-spacing:2.3px}.pilot{font-size:10px;letter-spacing:.5px;margin:20px 0}.hero-copy>.primary{width:100%;font-size:16px}.hero-copy>.quiet{margin:12px 0 0!important;width:100%}.hero-copy .small{font-size:12px}.footer-link{font-size:12px;margin-top:16px}.art img{height:116%;bottom:-31%;left:42%}.art-label{left:18px;bottom:18px;font-size:22px}.universes{margin-top:34px;gap:13px}.universe{padding:21px}.universe p{font-size:15px}.universe small{font-size:10px;letter-spacing:1.4px}.universe h3{font-size:27px}.play-shell{min-height:0}.stage{position:relative;height:32dvh;min-height:220px;max-height:360px}.character{height:122%;bottom:-30%;left:8%;max-width:48%}.character.neighbour{height:110%;bottom:-27%;right:8%;max-width:47%}.stage-caption{left:18px;bottom:18px;font-size:18px}.location{left:12px;right:12px;top:12px;font-size:9px;letter-spacing:1px}.location span{padding:7px 10px}.reading{padding:21px 20px calc(32px + env(safe-area-inset-bottom));max-width:620px;margin:auto}.reading h2{font-size:30px;line-height:1.1;letter-spacing:-.8px}.reading p{font-size:16px;line-height:1.7}.chapter-line{margin-bottom:15px}.chapter-line .eyebrow{font-size:10px;letter-spacing:2px}.choice-label{margin-top:22px}.choice{padding:15px 13px;gap:12px}.choice-text{font-size:15px;line-height:1.45}.letter{width:31px;height:34px}.choices{gap:11px}.result{padding:18px}.result .primary{width:100%}.hotspots{gap:6px;left:10px;right:10px;bottom:10px}.hotspots button{font-size:10px;padding:8px 10px;min-height:44px}.prop{bottom:29%;right:15%}.phone-card{top:27%;padding:10px;width:130px}.ending{margin:28px auto;padding:0 20px}.ending h1{font-size:37px;line-height:1.05}.ending-card{padding:23px}.ending-actions{gap:10px}.ending-actions>*{flex-basis:100%;width:100%}dialog{padding:20px;border-radius:18px;width:calc(100vw - 28px);max-height:calc(100dvh - 40px - env(safe-area-inset-top) - env(safe-area-inset-bottom));scroll-padding-top:20px}dialog h2{font-size:30px;line-height:1.1}dialog .primary{width:100%;margin-top:10px}.form-grid{gap:0}#radio-credit{font-size:9px;letter-spacing:.6px}}
@media(max-width:350px){header{gap:7px;padding-left:12px;padding-right:12px}.brand img{width:50px;height:50px}header button{padding:8px;font-size:11px}.hotspots button{font-size:9px;padding:7px}.hero h1{font-size:40px}.home,.reading{padding-left:16px;padding-right:16px}}
@media(max-height:500px) and (orientation:landscape){.play-shell{display:grid;grid-template-columns:.85fr 1.15fr}.stage{height:calc(100dvh - 76px);min-height:200px;position:sticky;top:0}.reading{padding:18px}.hero .art{height:260px}}
@media(min-width:761px){header{padding-left:5vw;padding-right:5vw}.hero-copy .intro-brand img{width:82px;height:82px}.play-shell{min-height:calc(100dvh - 84px)}}
/* Share invitations do not send player state or create multiplayer sessions. */
header .invite-icon{width:44px;min-width:44px;height:44px;padding:0;display:grid;place-items:center}.invite-home{margin-top:10px!important}.invite-clarity{background:#f5e9d1;padding:13px 15px;border-radius:10px;font-size:13px;line-height:1.6}.invitation-preview{border-left:3px solid var(--green);padding:10px 15px;margin:20px 0;color:#5a6148;font-size:14px;line-height:1.65}.invite-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:17px}.invite-actions>*{flex:1 1 160px}#invite-link{font-size:16px;min-width:0;max-width:100%}
@media(max-width:760px){header{gap:9px}.brand img{width:52px;height:52px}header button{padding:8px 10px;font-size:11px}.invite-actions>*{width:100%;flex-basis:100%}.hero-copy>.invite-home{margin-top:12px!important}}
@media(max-width:350px){header{gap:6px}header button{padding:8px;font-size:10px}.brand img{width:48px;height:48px}}
/* Approved game-title logo: preserve the full transparent silhouette. */
.brand img,.intro-brand img{object-fit:contain;border-radius:0}.intro-brand img{width:120px;height:110px}.hero-copy .intro-brand img{width:120px;height:110px}
@media(max-width:760px){.intro-brand img,.hero-copy .intro-brand img{width:100px;height:92px}.intro-brand{gap:15px}.intro-brand .eyebrow{font-size:10px;letter-spacing:1.8px}}
@media(max-width:350px){.intro-brand img,.hero-copy .intro-brand img{width:90px;height:84px}.intro-brand .eyebrow{font-size:9px;letter-spacing:1.5px}}
/* The Bag: narrative library and four distinct cinematic environments. */
.environment-art{position:absolute;inset:0;width:100%;height:100%;overflow:hidden}.bag-cover{background:#e7b16d;isolation:isolate}.bag-cover .environment-art{z-index:0}.cover-glow{position:absolute;inset:0;background:linear-gradient(180deg,transparent 40%,#1f252dd9);z-index:1}.bag-cover .art-label{font-size:44px;line-height:1.1}.bag-stage .backdrop{background:none}.bag-stage .primary-character{height:72%;bottom:-10%;left:8%;max-width:65%}.bag-stage .hotspots{bottom:23px}.bag-stage .hotspots button{min-height:44px;background:#fff9e8f5}.bag-stage .stage-caption{font-size:23px;line-height:1.3;max-width:80%}.bag-stage .phone-card{top:22%;right:5%;font-size:13px}.bag-stage.hotel .backdrop{filter:brightness(.8)}.bag-stage.ride .primary-character{display:none}.bag-stage.ride .backdrop{animation:travel-sway 5s infinite ease-in-out;transform:scale(1.08)}.ride-motion{position:absolute;inset:0;border:35px solid #3c3433;border-bottom-width:70px;box-shadow:inset 0 0 0 5px #75695e,inset 0 -70px 70px #24292866;z-index:1;border-radius:35px}.bag-stage.ride .stage-caption{z-index:3;bottom:28px;font-size:18px}.episode-name{font-size:11px;letter-spacing:1px;text-transform:uppercase;color:#957052;margin:-9px 0 18px}.reading-tools{display:flex;gap:9px;flex-wrap:wrap;margin:25px 0 10px}.reading-tools button{font-size:11px;min-height:44px}.studio-footer{border-top:1px solid #e1c9a7;padding:25px 0 5px;margin-top:36px;color:#82674f;font-size:12px}.studio-footer b{font:700 17px 'Outfit',sans-serif;color:var(--ink)}.studio-footer p{max-width:650px}.universes{grid-template-columns:repeat(2,1fr)}.universe.romance{background:#f6dfd5}.ending .record{line-height:1.5}.reading .result{margin-top:25px}.reading p{max-width:65ch}.art-label span{display:inline-block;margin-top:8px}@keyframes travel-sway{50%{transform:scale(1.08) translateX(-8px)}}
@media(max-width:760px){.universes{grid-template-columns:1fr}.bag-cover .art-label{font-size:34px}.bag-stage .primary-character{height:109%;bottom:-28%;left:16%;max-width:55%}.bag-stage .stage-caption{font-size:16px;max-width:80%;bottom:16px}.bag-stage .hotspots{bottom:12px;left:12px;right:12px}.bag-stage .hotspots button{font-size:11px;padding:7px 12px}.bag-stage .phone-card{top:28%;right:7%;width:125px;max-width:37%;font-size:11px}.bag-stage .phone-card strong{font-size:11px;line-height:1.4;margin:10px 0}.reading-tools button{flex:1 1 auto}.episode-name{font-size:10px;margin-top:-5px;margin-bottom:14px}.reading p{line-height:1.75}.studio-footer{font-size:12px}.ride-motion{border-width:15px;border-bottom-width:47px}.bag-stage.ride .stage-caption{font-size:14px;bottom:14px}}
@media(prefers-reduced-motion:reduce){.bag-stage.ride .backdrop{animation:none;transform:none}}
.clue-object{display:block;width:100%;max-height:260px;object-fit:contain;margin:14px auto;background:#f3e4c8;border-radius:15px}.bag-cover .cover-object{width:95%;height:auto;left:2.5%;bottom:16%;z-index:1;filter:drop-shadow(0 15px 15px #211b1680)}.bag-cover .cover-glow{background:linear-gradient(180deg,#28342e44 0%,#22272daa 45%,#202629 100%)}

/* The Bag discovery: intentionally concealed at the bus stop. */
.bag-cover .busstop-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;left:0;bottom:0;filter:none}.busstop-art{object-fit:cover}.bag-stage.busstop .backdrop{background:#e6b97b}.bag-stage.busstop .primary-character{left:4%;height:67%;bottom:1%}.character-preview{display:flex;align-items:center;gap:18px;padding:14px;border:1px solid #ddc7a4;border-radius:16px;background:#ffe8b8}.character-preview p{font-size:13px;line-height:1.5;flex:1}.preview-figure{width:80px;height:130px;flex:none}.character-preview .preview-character{position:static;width:65px;height:130px;animation:none;filter:none;transform:none}.busstop-art.environment-art{width:100%;height:100%;position:absolute;inset:0}

/* Tap-through reading, optional voice, and a short entrance instead of typing delays. */
.paced-story .reading{max-width:680px;width:100%}.voice-controls{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:16px 0 20px}.voice-controls .quiet{min-height:44px;font-size:12px}.voice-controls [aria-pressed="true"]{background:#3e6b58;color:#fff8e9}.voice-controls #voice-status{flex-basis:100%;font-size:11px;color:#80604b;line-height:1.5}.beat-meta{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:#8c6951;margin:15px 0 8px}.beat-track{height:3px;background:#eaddc6;border-radius:10px;overflow:hidden}.beat-track span{height:100%;display:block;background:var(--orange);transition:width .2s}.paced-story .reading .beat-text{font-size:21px;line-height:1.65;min-height:6.6em;color:#4e352b;margin:22px 0;animation:beat-appear .24s ease-out;outline:none}.beat-navigation{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 26px}.beat-navigation button{min-height:48px}.beat-navigation .primary{min-width:140px}.beat-navigation .small{font-size:12px}.beat-navigation button:disabled{opacity:.35;cursor:default}.paced-story .reading h2{font-size:32px}.beat-discovery .backdrop{transform:scale(1.08);transform-origin:70% 70%;transition:transform .6s ease-out}.paced-story .result{margin-top:0}.paced-story .reading-tools{border-top:1px solid #e8d6b9;padding-top:16px}@keyframes beat-appear{from{opacity:.25;transform:translateY(5px)}to{opacity:1;transform:none}}
@media(max-width:760px){.paced-story .reading{padding-top:18px}.paced-story .reading h2{font-size:27px;margin:10px 0}.paced-story .voice-controls{margin:10px 0 14px}.paced-story .reading .beat-text{font-size:19px;line-height:1.6;min-height:6.4em;margin:18px 0}.paced-story .chapter-line{margin-bottom:10px}.paced-story .episode-name{margin-bottom:8px}.paced-story .beat-navigation{margin:14px 0 20px}.paced-story .reading-tools{margin-top:18px}.paced-story .reading-tools .quiet{font-size:10px}}
@media(prefers-reduced-motion:reduce){.paced-story .beat-text{animation:none}.beat-discovery .backdrop{transform:none;transition:none}.beat-track span{transition:none}}

/* Original story scores: independent of the optional narrator. */
.welcome-music{border:1px solid #dfc79e;background:#fff0c9;border-radius:16px;padding:16px;margin:20px 0}.welcome-music p{font-size:15px;font-weight:700;color:var(--green);margin:6px 0 12px}.welcome-music>div,.music-actions{display:flex;gap:8px;flex-wrap:wrap}.welcome-music small{display:block;font-size:11px;line-height:1.5;color:#80604b;margin-top:10px}.welcome-music button,.music-actions button{min-height:44px}.music-volume-label{display:flex;justify-content:space-between;gap:10px;margin-top:24px}#music-volume{width:100%;min-height:44px;accent-color:#3e6b58;background:transparent;padding:0;border:0}#radio-credit{font-size:11px;letter-spacing:.2px;padding:7px 18px;color:#fff8e9;background:#3e6b58}#radio-credit[hidden]{display:none}@media(max-width:760px){.welcome-music{padding:14px}.welcome-music>div>button{flex:1}.music-actions>button{flex:1 1 140px}#radio-credit{font-size:10px}}

#music-volume{display:block;margin:0;max-width:100%;min-width:0}.music-actions button{padding:12px 14px;line-height:1.4}

/* Top-level music on/off and volume, including narrow phones. */
header .volume-icon{width:40px;min-width:40px;height:44px;padding:0;display:grid;place-items:center}#sound{white-space:nowrap}@media(max-width:760px){header{padding-left:12px;padding-right:12px;gap:7px}header #journal{font-size:10px;padding:8px}header .volume-icon{width:36px;min-width:36px}header #sound{font-size:10px;padding:8px}header .brand img{width:48px;height:48px}}@media(max-width:350px){header{gap:5px;padding-left:8px;padding-right:8px}header #journal{font-size:9px;padding:7px}header .brand img{width:42px;height:42px}header .volume-icon{width:32px;min-width:32px}header .invite-icon{width:36px;min-width:36px}}

/* Bold, playful controls drawn from the YouChoose gold and teal identity. */
header{background:#fff0cb;border-bottom:3px solid #e6b34e}header button{border:3px solid #dca737;background:#ffe29a;color:#34483b;box-shadow:0 3px 0 #b4843555;font-weight:700;transition:transform .14s,background .14s}header button:hover{background:#ffda7d;transform:translateY(-1px)}header button:active{transform:translateY(2px);box-shadow:none}header #journal,header .volume-icon{border-color:#16847a;background:#d2f2e7;color:#14584e;box-shadow:0 3px 0 #14645840}header #sound[data-music-playing="true"]{background:#bdebd9;border-color:#16847a;color:#15594e}header .invite-icon{border-color:#e1a536;background:#ffe29a}header button:focus-visible{outline:3px solid #15847a;outline-offset:3px}.beat-navigation .primary{background:#ffd06c;border:2px solid #dfa53c;color:#3b3020;box-shadow:0 4px 0 #bf833b}.beat-navigation .primary:hover{background:#ffe397}.choice .letter{background:#177b70;color:#fff7e2}.choice:hover{border-color:#16847a;background:#fff0c5}.choice-label{background:#ffe198;border-left-color:#16847a}.beat-track span{background:linear-gradient(90deg,#eab33d,#199585)}
/* Cinematic cutaways are tied to each reading beat, with no timers advancing the story. */
.storyboard-stage{background:#a78a61}.storyboard-stage .storyboard-backdrop{filter:none!important;animation:none!important;transform:scale(var(--shot-zoom));transform-origin:var(--shot-x) var(--shot-y);transition:none}.storyboard-art{position:absolute;inset:0;width:100%;height:100%;display:block}.storyboard-stage .backdrop{animation:shot-reveal .3s ease-out!important}.storyboard-stage .primary-character{left:2%;height:66%;bottom:0;max-width:35%}.shot-vignette{position:absolute;inset:0;background:linear-gradient(180deg,#132d2833,transparent 30%,transparent 60%,#1f251d99);pointer-events:none}.storyboard-label{position:absolute;bottom:20px;left:20px;max-width:85%;padding:9px 15px;background:#ffe29a;box-shadow:0 3px 0 #4f3c2455;border:2px solid #dfb854;border-radius:12px;color:#453920;font:700 14px/1.35 'Outfit',sans-serif;z-index:2}.storyboard-label.has-clues{bottom:82px}.storyboard-stage .hotspots{z-index:3}.storyboard-stage .hotspots button{border:2px solid #16847a;box-shadow:0 3px 0 #12605240;color:#195a50;font-weight:700}.story-bag-object{position:absolute;width:85%;height:75%;object-fit:contain;left:7%;bottom:8%;filter:drop-shadow(0 12px 16px #16180f70);z-index:1;animation:bag-reveal .3s ease-out}.shot-contents .storyboard-backdrop{filter:blur(3px) brightness(.8)!important}.story-message{position:absolute;right:7%;top:28%;width:min(260px,50%);padding:17px;background:#153e3aed;color:#fff4d5;border:2px solid #eac675;border-radius:18px;box-shadow:0 9px 25px #15201c70;z-index:2}.story-message>span{font:800 10px/1.4 'DM Sans',sans-serif;letter-spacing:1.2px;color:#ffdf8e;display:block}.story-message strong{font:600 18px/1.45 'Outfit',sans-serif;display:block;margin:12px 0;overflow-wrap:anywhere}.story-message .call-pulse{font-style:normal;letter-spacing:6px;color:#edc56c;animation:phone-signal 1.7s ease-in-out infinite}.story-device{top:19%;right:27%;width:46%;height:62%;border:7px solid #28322f;border-radius:26px;background:#15322fed;display:flex;flex-direction:column;justify-content:center;padding:18px}.story-device.red-device{border-color:#b43e35}.received-photo-label{position:absolute;top:22%;left:7%;right:7%;padding:12px 16px;border:2px solid #fff3d4;background:#153c38e8;color:#fff3d4;border-radius:12px;box-shadow:0 4px 16px #17261f44;z-index:2}.received-photo-label b{display:block;font:800 11px/1.5 'DM Sans',sans-serif;letter-spacing:1.2px}.received-photo-label span{font-size:12px}.shot-photo .storyboard-art{outline:9px solid #fff2d0;outline-offset:-10px}.memory-shot .shot-vignette{background:#dfb97722;box-shadow:inset 0 0 0 10px #fff0c0aa}.memory-shot .storyboard-label{background:#fff1cc}.storyboard-stage .location span{background:#174d45e6;color:#fff5d7;border:1px solid #f6d27680}.shot-red .storyboard-art{animation:phone-signal 2.5s ease-in-out infinite}@keyframes shot-reveal{from{opacity:.45;filter:brightness(.85)}to{opacity:1;filter:none}}@keyframes bag-reveal{from{transform:translateY(10px) scale(.98);opacity:.5}to{transform:none;opacity:1}}@keyframes phone-signal{50%{opacity:.65}}
@media(max-width:760px){header button{border-width:3px}header .volume-icon,header .invite-icon{height:43px}.storyboard-stage .storyboard-label{left:12px;bottom:13px;padding:6px 10px;font-size:11px;border-radius:9px;max-width:82%}.storyboard-stage .storyboard-label.has-clues{bottom:67px}.storyboard-stage .location span{font-size:8px;padding:6px 8px}.storyboard-stage .story-message{top:25%;right:6%;width:48%;padding:10px;border-radius:12px}.storyboard-stage .story-message strong{font-size:12px;line-height:1.35;margin:7px 0}.storyboard-stage .story-message>span{font-size:8px;letter-spacing:.7px}.storyboard-stage .story-device{width:48%;right:26%;height:63%;top:16%;padding:10px;border-width:5px}.received-photo-label{top:23%;padding:7px 10px}.received-photo-label b{font-size:9px}.received-photo-label span{font-size:10px}.storyboard-stage .primary-character{height:76%;max-width:30%;bottom:-5%}.storyboard-stage .hotspots button{font-size:10px;padding:7px 10px}.story-bag-object{width:90%;left:5%;height:85%;bottom:0}}
@media(prefers-reduced-motion:reduce){header button{transition:none;transform:none!important}.storyboard-stage .backdrop,.shot-red .storyboard-art,.story-message .call-pulse,.story-bag-object{animation:none!important}.storyboard-stage .storyboard-backdrop{transition:none}}

/* Illustrated story covers, each with its own mood and clear availability. */
.universes{gap:22px}.universe{padding:0;overflow:hidden;border:2px solid #e2c397;display:flex;flex-direction:column;box-shadow:0 5px 0 #d6b77e38}.universe.active{border-color:#16847a;box-shadow:0 5px 0 #16847a30}.universe-cover{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;background:#e3b176;border-bottom:2px solid #e2c397}.universe.active .universe-cover{border-bottom-color:#16847a}.universe-copy{padding:24px;flex:1;display:flex;flex-direction:column;align-items:flex-start}.universe-copy h3{margin:12px 0 8px;font-size:29px}.universe-copy small{font-size:10px;line-height:1.6;letter-spacing:1.5px;font-weight:800;color:#6d503b}.universe-copy p{margin:4px 0 20px;max-width:46ch;line-height:1.65}.universe-copy button{margin-top:auto;background:#fff8e9;border:2px solid #b79056;min-height:44px}.universe.active .universe-copy button{border-color:#16847a;background:#d2f2e7;color:#14584e}.room-cover>img{inset:0;left:0;bottom:0;height:100%;width:100%;object-fit:cover;filter:none}.universe:not(.active){background:#fff1d3}.universe.romance{background:#f9e5de}.universe:last-child{background:#e9e1f3}.universe.active{background:#ffdf8c}
@media(max-width:760px){.universes{gap:22px;margin-top:44px}.universe-copy{padding:20px}.universe-copy h3{font-size:27px}.universe-cover{aspect-ratio:16/10}}

/* Clearly separated gold-and-teal controls below the story. */
.library-heading{font-size:30px;margin:54px 0 20px;letter-spacing:-.7px}.library-heading+.universes{margin-top:0}.story-controls{margin-top:30px;padding:20px;border:3px solid #16847a;border-top:8px solid #edbd52;border-radius:20px;background:#e3f1e9;box-shadow:0 5px 0 #13665b22}.controls-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;color:#155e54}.controls-heading b{font:700 18px/1.3 'Outfit',sans-serif}.controls-heading span{font-size:10px;letter-spacing:.4px;color:#426f61}.paced-story .story-controls .reading-tools{margin:16px 0 0;border:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:10px}.story-controls .reading-tools .quiet{border:2px solid #65a59a;background:#fff9e9;border-radius:13px;font-weight:700;font-size:12px;min-height:48px;color:#215e52}.story-controls .reading-tools .quiet:hover{background:#d3eadf}.story-controls .reading-tools .home-control{grid-column:1/-1;border-color:#ca982b;background:#ffe08d;color:#3e3b26;font-size:14px;box-shadow:0 3px 0 #bf943850}.story-controls .save-note{margin:17px 0 0!important;padding-top:12px;border-top:1px solid #aacfc1;color:#416c5e!important}.storyboard-stage .primary-character{height:91%;max-width:48%;left:5%;bottom:-3%}
@media(max-width:760px){.storyboard-stage{height:clamp(340px,44dvh,440px);min-height:340px}.story-controls{padding:17px;margin-top:26px}.controls-heading b{font-size:17px}.paced-story .story-controls .reading-tools .quiet{font-size:11px}.paced-story .story-controls .reading-tools .home-control{font-size:14px}.storyboard-stage .primary-character{height:95%;max-width:48%;bottom:-3%}.library-heading{font-size:27px;margin-top:42px}}
.clue-scene{position:relative;height:260px;border-radius:15px;overflow:hidden;margin:16px 0;background:#e4c597}.clue-scene .storyboard-art{width:100%;height:100%}
.home-location{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:0 0 26px;color:#186458;font-size:12px}.home-location b{padding:6px 15px;background:#d2f2e7;border:2px solid #16847a;border-radius:24px}.home-location>span{color:#80604b}

/* Messages belong to the glass screen of a painted phone, within the scene. */
.phone-scene{isolation:isolate;background:#173c38}.phone-scene .backdrop{filter:blur(2px) brightness(.72)!important;transform:none!important;animation:none!important}.phone-scene .shot-vignette{z-index:1}.painted-phone-art{position:absolute;inset:0;width:100%;height:100%;z-index:2;overflow:hidden}.phone-scene .location{z-index:3;pointer-events:none}.phone-scene .storyboard-label{z-index:3;bottom:14px;max-width:35%;font-size:11px;padding:7px 10px}.phone-screen-root{height:100%;width:100%;font-family:'DM Sans',sans-serif;font-size:15px;line-height:1.35;color:#153d34}.phone-display{position:relative;height:100%;width:100%;display:flex;flex-direction:column;background:#e9f0e8;overflow:hidden}.phone-os{height:24px;flex:none;padding:5px 14px 0;display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#224b41;background:#f9f9f0}.phone-app{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:9px 12px;background:#f9f9f0;border-bottom:1px solid #c7d5cc;flex:none}.phone-app>span{font-size:25px;line-height:1}.phone-app>div{flex:1;min-width:0}.phone-app small{display:block;color:#698477;font-size:9px;line-height:1.2}.phone-app strong{display:block;font-size:15px;line-height:1.25;overflow-wrap:anywhere}.phone-messages{padding:11px 10px;display:flex;flex-direction:column;gap:9px;flex:1;min-height:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#98b6a5 transparent;outline:none}.phone-bubble{padding:8px 10px;border-radius:12px;max-width:94%;font-size:14px;line-height:1.4;overflow-wrap:anywhere;box-shadow:0 1px 2px #23423213;flex:none;white-space:pre-wrap}.phone-bubble.received{background:#fffdf4;align-self:flex-start;border-bottom-left-radius:3px;color:#263b30}.phone-bubble.sent{background:#bfe8d4;align-self:flex-end;border-bottom-right-radius:3px;color:#174235}.phone-direction{display:block;font-size:8px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;color:#6e897a;margin-bottom:4px}.phone-composer{display:flex;align-items:center;gap:8px;padding:6px 10px 12px;background:#f9f9f0;flex:none;font-size:16px}.phone-composer i{flex:1;font-style:normal;padding:5px 9px;border:1px solid #cad8cd;border-radius:18px;font-size:11px;color:#819287}.phone-composer>span:last-child{border-radius:50%;width:21px;height:21px;text-align:center;color:#fff;background:#26876b}.phone-thread-status{font-size:10px;text-align:center;color:#6a8374;padding:2px 0;flex:none}.phone-home-indicator{position:absolute;bottom:4px;width:32%;height:3px;border-radius:4px;background:#234d3b;left:34%;opacity:.6}.phone-attachment-icon{display:block;font-size:30px;line-height:1.2;color:#267f65}.phone-attachment-title{display:block;font-size:12px;line-height:1.3}.phone-photo{display:block;width:100%;height:130px;border-radius:6px;background:#2e5145;margin:3px 0 7px}.phone-bubble.with-attachment{min-width:70%;padding:8px}.phone-bubble.deleted{font-style:italic;color:#839083}.phone-voice-wave{flex:none;color:#25836a;letter-spacing:1px;text-align:center;font-size:16px;padding:9px 0 0}.phone-contact-icon{width:60px;height:60px;border-radius:50%;display:grid;place-items:center;background:#9ac5b066;border:1px solid #badcc8;margin:18px 0;font-size:29px}.phone-call{display:flex;flex:1;align-items:center;flex-direction:column;padding:12px;text-align:center}.phone-call strong{font:600 24px/1.2 'DM Sans',sans-serif;max-width:100%;overflow-wrap:anywhere}.phone-call>span{font-size:13px;margin-top:12px;color:#c2dccd}.phone-call .phone-call-wave{font-size:27px;margin-top:36px;color:#d5ecdd}.call-screen{color:#f7fff5;background:linear-gradient(160deg,#315e51,#122d2c)}.call-screen .phone-os{background:transparent;color:#e5f3e6}.call-screen .phone-home-indicator{background:#d6eadb}.screen-off{background:#080e0d}.phone-scene .storyboard-label{pointer-events:none}@media(max-width:760px){.phone-scene{height:clamp(430px,52dvh,520px);min-height:430px}.phone-scene .storyboard-label{left:9px;font-size:10px;max-width:31%;bottom:9px}}
.phone-bubble{font-size:17px;line-height:1.35}.phone-app strong{font-size:17px}.phone-scene .storyboard-label.has-clues{bottom:70px}.phone-scene .hotspots{z-index:4}.phone-scene .hotspots button{background:#fff8e9f5;border:2px solid #16847a;color:#155e54;min-height:40px;font-weight:700}
.phone-scene.dark .backdrop{filter:blur(2px) brightness(.2)!important}
.painted-character-preview{border-radius:12px;background:#c19a64}.character-preview:has(.painted-character-preview) .preview-figure{width:95px}.character-preview .painted-character-preview{width:90px;height:135px}

/* Restart is a separate, confirmed whole-story action. */
.restart-section{border-top:3px solid #ddb451;margin-top:24px;padding-top:10px}.restart-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}.restart-actions button{flex:1 1 160px;min-height:48px}.restart-actions .primary{background:#176d61;color:#fff8e9;box-shadow:0 3px 0 #104e46}#modal .restart-actions .primary{margin-top:0}

/* Keep the game controls visible while the page scrolls. */
:root{--site-header-height:calc(84px + env(safe-area-inset-top,0px))}
body>header{position:sticky;top:0;z-index:30;min-height:var(--site-header-height);padding-top:calc(8px + env(safe-area-inset-top,0px));box-shadow:0 4px 12px #3b261f14}
html{scroll-padding-top:calc(var(--site-header-height) + 16px)}
@media(min-width:761px){.stage{top:var(--site-header-height);height:calc(100dvh - var(--site-header-height))}}
@media(max-width:760px){:root{--site-header-height:calc(76px + env(safe-area-inset-top,0px))}}

.story-speaker{font-style:normal;font-weight:800;color:#1b655b}
/* Speaker identity stays consistent across scenes; names remain visible too. */
.story-dialogue[data-speaker]{color:var(--dialogue-colour,#5b4578)}
.story-dialogue[data-speaker="you"]{--dialogue-colour:#224f87}
.story-dialogue[data-speaker="femi"]{--dialogue-colour:#963e1e}
.story-dialogue[data-speaker="woman"]{--dialogue-colour:#74377f}
.story-dialogue[data-speaker="tunde"]{--dialogue-colour:#862c49}
.story-dialogue[data-speaker="reception"]{--dialogue-colour:#435765}
.story-dialogue[data-speaker="landlord"]{--dialogue-colour:#795000}
.story-dialogue[data-speaker="security"]{--dialogue-colour:#395b3e}
.story-dialogue[data-speaker] .story-speaker,.story-dialogue[data-speaker] .story-emphasis{color:inherit}
