/* A real welcome, followed by choosing a story and then entering it. */
header .brand .brand-tagline{display:none}
.welcome-page{max-width:1180px;margin:auto;padding:34px 32px 26px}
.welcome-hero{display:grid;grid-template-columns:.95fr 1.05fr;gap:44px;align-items:center;min-height:540px;padding:36px;border:2px solid #e2bd6a;border-radius:30px;background:radial-gradient(ellipse at 8% 5%,#ffe5a1,transparent 65%),#fff1cb;box-shadow:0 7px 0 #c69a4230}
.welcome-copy{min-width:0}.welcome-copy .eyebrow{font-size:11px;letter-spacing:2px;color:#397664}
.welcome-copy h1{font-size:clamp(42px,4.6vw,65px);line-height:1.02;letter-spacing:-2px;margin:20px 0}
.welcome-copy h1 em{font-style:normal;color:#19786c}
.welcome-copy>p{font-size:18px;line-height:1.6;color:#806044;margin:0 0 28px}
.welcome-play{display:flex;align-items:center;justify-content:space-between;gap:40px;background:#ffd16d;border:2px solid #d6a139;color:#3b261f;box-shadow:0 4px 0 #bd8a3555;border-radius:14px;min-width:230px;font-size:18px}
.welcome-play:hover{background:#ffdd8d}.welcome-play>span{font-size:26px;line-height:1}
.welcome-resume{display:block;margin-top:16px;border-color:#16847a;color:#236b5a;font-weight:700}
.welcome-note{display:block;font-size:12px;line-height:1.5;margin-top:20px;color:#706443}
.welcome-showcase{min-width:0;width:100%}
.welcome-slider{border:3px solid #19786c;border-radius:24px;overflow:hidden;box-shadow:7px 7px 0 #dcac4a50;background:#193f35}
.welcome-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none}
.welcome-track::-webkit-scrollbar{display:none}
.welcome-slide{position:relative;flex:0 0 100%;min-width:0;aspect-ratio:4/5;scroll-snap-align:start;scroll-snap-stop:always;background:#193f35;overflow:hidden}
.welcome-slide>img{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}
.welcome-slide:after{content:'';position:absolute;inset:0;background:linear-gradient(transparent 35%,#102a22ee 90%);pointer-events:none}
.welcome-slide-copy{position:absolute;z-index:1;bottom:0;left:0;right:0;padding:24px;color:#fff8e9}
.welcome-slide-copy>span{display:inline-block;padding:5px 9px;border-radius:20px;background:#ffdb83;color:#574125;font-size:10px;font-weight:800}
.welcome-slide-copy h2{font-size:35px;line-height:1.06;letter-spacing:-1px;margin:13px 0 9px;color:#fff8e9}
.welcome-slide-copy p{font-size:14px;line-height:1.5;margin:0;color:#e8eddf}
.welcome-slider-tools{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:18px;color:#42725d}
.welcome-slider-tools>.quiet{width:42px;min-height:42px;padding:0;border:2px solid #16847a;color:#1e6759;background:#fff8e9;font-size:21px}
.welcome-slider-tools>.quiet:disabled{opacity:.3;cursor:default}
.welcome-dots{display:flex;align-items:center;gap:0}
.welcome-dots button{display:grid;place-items:center;width:28px;height:40px;padding:0;border:0;background:none}
.welcome-dots button>span{display:block;width:7px;height:7px;border:1px solid #16847a;background:#f3ecd4;border-radius:50%}
.welcome-dots button[aria-pressed=true]>span{background:#16847a;box-shadow:0 0 0 3px #16847a22}
#welcome-count{font-size:10px;font-weight:700;min-width:28px}
.welcome-promise{text-align:center;font-size:12px;line-height:1.6;color:#6e7b5c;margin:25px 0 0}
.story-selection>.eyebrow{display:block;margin-top:22px;font-size:10px;color:#397664}
.story-selection>h1{font-size:clamp(35px,4vw,52px);letter-spacing:-1.5px;margin:10px 0}
.selection-intro{font-size:16px;line-height:1.7;color:#7f6248;max-width:58ch}
.story-selection .story-library{margin-top:24px}
.story-selection .story-card.bag .story-card-button{border-color:#16847a;background:#fff0c6}
.page-back{display:block;color:#236b5a}
.library-home .home-location{display:flex;align-items:center;justify-content:space-between;gap:10px}
.library-home .home-location .quiet{font-size:12px;color:#236b5a}
.library-home .current-story-cover>span{font-size:10px;line-height:1.4}
@media(max-width:760px){
 :root{--site-header-height:calc(106px + env(safe-area-inset-top,0px))}
 body>header{gap:7px;padding-left:12px;padding-right:12px}
 header .brand{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:1px;flex:none;width:90px;letter-spacing:0}
 header .brand img{width:64px;height:64px;border-radius:0;object-fit:contain}
 header .brand .brand-tagline{display:block;font:600 9px/1.18 'DM Sans',sans-serif;letter-spacing:0;text-align:center;color:#4e6e55;white-space:nowrap}
 header .tagline{display:none}
 header #sound{margin-left:auto}
 .welcome-page{padding:18px 16px 20px}
 .welcome-hero{display:flex;flex-direction:column;align-items:stretch;gap:23px;padding:24px 20px 18px;min-height:0;border-radius:25px}
 .welcome-copy .eyebrow{font-size:10px;letter-spacing:1.4px}
 .welcome-copy h1{font-size:43px;letter-spacing:-1.8px;line-height:1.03;margin:14px 0}
 .welcome-copy>p{font-size:15px;line-height:1.6;margin-bottom:20px}
 .welcome-play{width:100%;font-size:17px;min-width:0;padding:12px 18px}
 .welcome-resume{width:100%;font-size:12px;margin-top:13px}
 .welcome-note{font-size:10px;margin-top:14px}
 .welcome-slide{aspect-ratio:6/5}
 .welcome-slide-copy{padding:20px}
 .welcome-slide-copy h2{font-size:30px;margin-top:10px}
 .welcome-slide-copy p{font-size:12px}
 .welcome-slide-copy>span{font-size:9px}
 .welcome-slider{border-radius:20px;box-shadow:4px 4px 0 #dcac4a50}
 .welcome-slider-tools{margin-top:13px;gap:9px}
 .welcome-promise{font-size:10px;margin-top:20px}
 .story-selection>h1{font-size:37px;letter-spacing:-1.3px}
 .selection-intro{font-size:14px;line-height:1.6}
 .library-home .home-location>span{display:none}
}
@media(max-width:350px){
 body>header{gap:5px;padding-left:8px;padding-right:8px}
 header .brand{width:78px}
 header .brand img{width:60px;height:60px}
 header .brand .brand-tagline{font-size:8px}
 .welcome-page{padding-left:12px;padding-right:12px}
 .welcome-hero{padding:21px 16px 16px}
 .welcome-copy h1{font-size:37px}
 .welcome-slide-copy h2{font-size:26px}
 .welcome-slide-copy{padding:17px}
}
/* The compact header still leaves room for the fixed player on short phones. */
@media(orientation:portrait) and (max-width:760px) and (max-height:720px){.viewport-player.play-shell{grid-template-rows:minmax(0,35fr) minmax(0,65fr) auto}}
@media(orientation:portrait) and (max-width:760px) and (max-height:600px){.viewport-player.play-shell{grid-template-rows:minmax(0,26fr) minmax(0,74fr) auto}}
@media(prefers-reduced-motion:reduce){.welcome-track{scroll-behavior:auto}}
@media(max-width:350px){header .brand{width:72px}body>header{gap:4px}}
@media(orientation:landscape) and (max-width:760px) and (max-height:550px){
 :root{--site-header-height:calc(76px + env(safe-area-inset-top,0px))}
 header .brand{width:148px;flex-direction:row;gap:7px}
 header .brand img{width:56px;height:56px}
 header .brand .brand-tagline{font-size:9px;text-align:left}
}
/* Welcome is the introduction only; story discovery starts after Play now. */
.welcome-intro-only{max-width:920px}
.welcome-intro-only .welcome-hero{display:block;min-height:0;padding:55px 36px;text-align:center}
.welcome-intro-only .welcome-copy{max-width:600px;margin:0 auto}
.welcome-intro-only .welcome-play{max-width:300px;width:100%;margin:0 auto}
.story-picker{margin-top:25px;padding:0;min-width:0}
.story-selection .story-slides{grid-auto-columns:calc((100% - 32px)/3);gap:16px;padding:3px 3px 11px;border-radius:22px;scrollbar-width:none}
.story-slides::-webkit-scrollbar{display:none}
.story-selection .story-slide{width:100%;aspect-ratio:4/5;min-height:440px;border:3px solid #19786c;border-radius:22px;box-shadow:0 5px 0 #d7ad4a38}
.story-slide .welcome-slide-copy{padding:22px}
.story-slide .welcome-slide-copy h2{font-size:29px}
.story-slide .welcome-slide-copy p{font-size:13px;line-height:1.55}
.story-slide .welcome-slide-copy>span{font-size:9px}
.story-slide .welcome-slide-copy>p{min-height:4.65em}
.story-explore{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;margin-top:19px;min-height:46px;padding:10px 14px;border:2px solid #d8a43b;border-radius:12px;background:#ffda85;color:#3b3020;font-size:14px;font-weight:800;box-shadow:0 3px 0 #a6753433}
.story-explore:hover{background:#ffe5ab}
.story-slide.upcoming .story-explore{background:#f8fff0;border-color:#8eb7a0;color:#205e4e}
.slide-saved{display:block;font-size:10px;color:#d8ebd8;margin-top:9px}
.story-picker-tools.library-nav{display:flex;justify-content:center;align-items:center;gap:15px;margin-top:13px}
.story-picker-tools.library-nav[hidden]{display:none}
.story-picker-tools #library-position{font-size:12px;font-weight:700;color:#3e705d;min-width:44px;text-align:center}
.story-picker-dots{display:none}
@media(max-width:1099px){.story-selection .story-slides{grid-auto-columns:calc((100% - 16px)/2)}}
@media(max-width:760px){
 .welcome-intro-only .welcome-hero{padding:36px 22px}
 .welcome-intro-only .welcome-copy h1{font-size:43px}
 .welcome-intro-only .welcome-copy>p{margin-bottom:25px}
 .story-selection .story-slides{grid-auto-columns:100%;gap:15px}
 .story-selection .story-slide{min-height:400px;max-height:560px;aspect-ratio:4/5;border-radius:22px}
 .story-slide .welcome-slide-copy{padding:24px}
 .story-slide .welcome-slide-copy h2{font-size:31px;line-height:1.1}
 .story-slide .welcome-slide-copy p{font-size:14px;line-height:1.55;min-height:0}
 .story-slide .welcome-slide-copy>span{font-size:10px}
 .story-picker-tools.library-nav{gap:9px}
 .story-picker-dots{display:flex;align-items:center;gap:0}
 .story-picker-dots button{display:grid;place-items:center;width:24px;min-width:24px;height:42px;min-height:42px;border:0;background:none;padding:0;border-radius:0}
 .story-picker-dots button:hover:not(:disabled){background:none}
 .story-picker-dots button>span{display:block;width:7px;height:7px;border:1px solid #16847a;border-radius:50%;background:#fff8e9}
 .story-picker-dots button[aria-pressed=true]>span{background:#16847a;box-shadow:0 0 0 3px #16847a22}
 .story-picker-tools #library-position{min-width:29px;font-size:11px}
}
@media(max-width:350px){
 .welcome-intro-only .welcome-hero{padding:30px 16px}
 .welcome-intro-only .welcome-copy h1{font-size:36px}
 .story-slide .welcome-slide-copy{padding:19px}
 .story-slide .welcome-slide-copy h2{font-size:28px}
 .story-slide .welcome-slide-copy p{font-size:13px}
 .story-picker-tools.library-nav{gap:6px}
}

/* One illustrated introduction; the story picker remains on its own page. */
body.welcome-screen>#app{display:flex;align-items:center}
.welcome-illustrated{width:100%;max-width:1160px;padding:28px 32px 34px}
.welcome-illustrated .welcome-hero{display:grid;grid-template-columns:1fr 1.05fr;gap:0;min-height:420px;padding:0;overflow:hidden;background:#fff0c8;box-shadow:0 6px 0 #c69a4226}
.welcome-illustrated .welcome-copy{padding:42px 36px}
.welcome-illustrated .welcome-copy h1{font-size:clamp(40px,4.5vw,60px);margin:18px 0}
.welcome-illustrated .welcome-copy>p{font-size:16px;line-height:1.6;margin-bottom:26px}
.welcome-illustrated .welcome-play{width:100%;max-width:330px;min-width:0}
.welcome-world{position:relative;align-self:stretch;min-height:420px;background:#317369;border-left:2px solid #e2bd6a;isolation:isolate}
.welcome-world>img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:58% 50%}
.welcome-world:after{content:'';position:absolute;inset:0;background:linear-gradient(transparent 55%,#163f32c9);z-index:0}
.welcome-world-caption{position:absolute;left:22px;right:22px;bottom:22px;display:flex;align-items:center;justify-content:space-between;gap:12px;z-index:1;color:#fff8e9}
.welcome-world-caption>span{max-width:17ch;font:600 17px/1.2 'Outfit',sans-serif}
.welcome-paths{display:flex;gap:6px;transform:rotate(-5deg)}
.welcome-paths b{display:grid;place-items:center;width:34px;height:39px;background:#ffdb7b;border:2px solid #fff1bd;border-radius:10px;color:#31574b;box-shadow:0 3px 0 #173f3160;font:800 19px 'Outfit',sans-serif}
.welcome-paths b:nth-child(2){background:#b7ead7;transform:translateY(-6px) rotate(10deg);border-color:#e1fff0}
@media(max-width:760px){
 header .brand{align-items:flex-start}
 header .brand .brand-tagline{width:max-content;max-width:none;white-space:nowrap;text-align:left;font-size:9.5px;line-height:1.2;letter-spacing:0}
 .welcome-illustrated{padding:18px 16px 24px}
 .welcome-illustrated .welcome-hero{display:flex;flex-direction:column;min-height:0;gap:0;border-radius:24px}
 .welcome-illustrated .welcome-copy{padding:23px 23px 26px}
 .welcome-illustrated .welcome-copy h1{font-size:39px;line-height:1.02;margin:12px 0 14px}
 .welcome-illustrated .welcome-copy .eyebrow{font-size:9px;letter-spacing:1.6px}
 .welcome-illustrated .welcome-copy>p{font-size:14px;margin-bottom:20px}
 .welcome-illustrated .welcome-play{font-size:16px;max-width:none}
 .welcome-world{order:-1;min-height:190px;height:190px;width:100%;flex:none;border-left:0;border-bottom:2px solid #e2bd6a}
 .welcome-world>img{object-position:57% 58%}
 .welcome-world-caption{left:17px;right:17px;bottom:16px}
 .welcome-world-caption>span{font-size:15px;max-width:17ch}
 .welcome-paths b{width:29px;height:33px;font-size:16px;border-radius:8px}
}
@media(max-width:350px){
 header .brand .brand-tagline{font-size:8.5px}
 .welcome-illustrated{padding:14px 12px 20px}
 .welcome-illustrated .welcome-copy{padding:21px 19px 24px}
 .welcome-illustrated .welcome-copy h1{font-size:34px}
 .welcome-world{height:165px;min-height:165px}
 .welcome-world-caption>span{font-size:13px}
 .welcome-paths{gap:4px}
 .welcome-paths b{width:26px;height:30px;font-size:15px}
}
@media(orientation:landscape) and (max-width:760px) and (max-height:550px){
 header .brand{width:195px;flex-direction:row;align-items:center;gap:7px}
 header .brand .brand-tagline{font-size:8.5px}
 .welcome-illustrated .welcome-hero{display:grid;grid-template-columns:1fr 1fr}
 .welcome-illustrated .welcome-copy{padding:22px}
 .welcome-illustrated .welcome-copy h1{font-size:35px}
 .welcome-world{order:0;min-height:100%;height:auto;border-left:2px solid #e2bd6a;border-bottom:0}
}

/* On is the default preference, even while the browser waits for a first tap. */
header #sound[data-music-enabled="true"]{background:#bdebd9;border-color:#16847a;color:#15594e}

/* Full-size branding, with spare padding removed from the sticky header. */
:root{--site-header-height:calc(70px + env(safe-area-inset-top,0px))}
body>header{height:var(--site-header-height);min-height:var(--site-header-height);padding:calc(2px + env(safe-area-inset-top,0px)) max(16px,env(safe-area-inset-right,0px)) 2px max(16px,env(safe-area-inset-left,0px));gap:12px;border-bottom-width:2px}
header .brand img{width:64px;height:64px}
header button,header #sound,header #journal{min-height:44px;height:44px;border-width:3px;padding:6px 12px;font-size:12px}
header .invite-icon{width:44px;min-width:44px;height:44px;min-height:44px;padding:0}
@media(max-width:760px){
 :root{--site-header-height:calc(76px + env(safe-area-inset-top,0px))}
 body>header{gap:7px;padding:env(safe-area-inset-top,0px) max(10px,env(safe-area-inset-right,0px)) 0 max(10px,env(safe-area-inset-left,0px))}
 header .brand{width:84px;min-height:74px;height:74px;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:0;letter-spacing:0}
 header .brand img{width:64px;height:64px}
 header .brand .brand-tagline{display:block;width:max-content;font:600 9px/1.1 'DM Sans',sans-serif;letter-spacing:0;white-space:nowrap;text-align:left}
 header button,header #sound,header #journal{height:42px;min-height:42px;padding:6px 8px;font-size:10px;border-width:3px}
 header #sound{margin-left:auto;font-size:10px}
 header #journal{width:auto;min-width:0;flex:none}
 header .invite-icon{width:40px;min-width:40px;height:42px;min-height:42px;padding:0}
 header .invite-icon svg{width:20px;height:20px}
}
@media(max-width:360px){
 body>header{gap:5px;padding-left:max(6px,env(safe-area-inset-left,0px));padding-right:max(6px,env(safe-area-inset-right,0px))}
 header .brand{width:72px}
 header .brand .brand-tagline{font-size:8.5px}
 header #sound,header #journal{font-size:9px;padding:6px}
 header .invite-icon{width:36px;min-width:36px}
}
/* Give the saved padding to the picture while retaining the reading area. */
@media(orientation:portrait) and (max-width:760px){.viewport-player.play-shell{grid-template-rows:minmax(0,calc(44% - 7px - env(safe-area-inset-bottom,0px) * .44)) minmax(0,1fr) auto}}
@media(orientation:portrait) and (max-width:760px) and (max-height:720px){.viewport-player.play-shell{grid-template-rows:minmax(0,calc(35% - env(safe-area-inset-bottom,0px) * .35)) minmax(0,1fr) auto}}
@media(orientation:portrait) and (max-width:760px) and (max-height:600px){.viewport-player.play-shell{grid-template-rows:minmax(0,calc(26% + 8px - env(safe-area-inset-bottom,0px) * .26)) minmax(0,1fr) auto}}
@media(orientation:landscape) and (max-width:760px) and (max-height:550px){
 :root{--site-header-height:calc(70px + env(safe-area-inset-top,0px))}
 body>header{padding-top:calc(2px + env(safe-area-inset-top,0px));padding-bottom:2px}
 header .brand{width:220px;min-height:64px;height:64px;flex-direction:row;align-items:center;gap:8px}
 header .brand .brand-tagline{font-size:8.5px}
 header button,header #sound,header #journal,header .invite-icon{height:42px;min-height:42px}
}
