/* Native indexed world, transparent sky, character, photograph and HTML remain independent. */
.imagine-invitation{padding-bottom:22px}
.story-landscape{position:relative;z-index:3;margin-bottom:-120px;pointer-events:none}
.world-stage{position:relative;height:max(560px,41.666667vw);overflow:hidden}
.world-art{position:absolute;top:0;left:50%;width:max(100%,1344px);aspect-ratio:768/320;transform:translateX(-50%)}
.world-art picture,.world-art picture img{display:block;position:absolute;inset:0;width:100%;height:100%;max-width:none;image-rendering:pixelated}
.world-art .world-lu{position:absolute;left:24.08854%;top:66.875%;width:4.42708%;height:10%;max-width:none;image-rendering:pixelated}
.world-invitation{position:relative;z-index:2;text-align:center;padding:34px 24px 0;pointer-events:auto}
.story-home .world-invitation h2{font:800 clamp(35px,3.7vw,60px)/1.08 var(--text,'Bricolage Grotesque',sans-serif);letter-spacing:-.045em;text-transform:none;color:#fffdf3;margin:0 auto 23px;max-width:24ch;text-shadow:0 2px 0 #1646a1}



.river-keepsake{position:relative;z-index:2;padding-top:120px;grid-template-columns:52% 48%;grid-template-rows:auto auto 1fr;grid-template-areas:'scene intro' 'scene options' 'scene closing';background:#f8f3e8 url('/site/story/assets/keepsake/room.webp') left 50% / cover no-repeat;overflow:hidden}
.river-keepsake::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent 30%,#fbf7ef77 46%,#fbf7eff5 65%,#fbf7ef 100%);z-index:-1}
.river-keepsake .ks-intro{padding-top:42px;padding-left:6%;padding-right:10%}
.river-keepsake .ks-scene{background:transparent;min-height:730px;overflow:visible}
.river-keepsake .ks-options{padding:28px 10% 0 6%;gap:14px}
.river-keepsake .ks-option{background:#f5efe5c9;padding:14px 18px 20px;border:1px solid #fff8}
.river-keepsake .ks-option>img{width:78%;max-height:215px;object-fit:contain}
.river-keepsake .ks-closing{padding:26px 10% 36px 6%}
.river-hero-frame{position:absolute;left:9%;top:4%;width:60%;filter:drop-shadow(8px 15px 12px #32251844);rotate:-3deg}
.river-frame{display:block;width:100%;height:auto;overflow:visible}
.river-lu-trophy{position:absolute;left:60%;bottom:7%;width:27%;max-width:220px;filter:drop-shadow(3px 8px 3px #27173a28)}
.river-lu-trophy>img{display:block;width:64%;height:auto;margin:-13% auto 0;image-rendering:pixelated;position:relative}
.river-lu-frame{position:relative;z-index:1;width:100%;rotate:5deg}
.river-lu-trophy::after{content:'';position:absolute;width:90%;height:8px;left:5%;bottom:-5px;background:#30212955;border-radius:50%;filter:blur(5px)}
@media(min-width:1800px){.story-landscape{margin-bottom:-150px}.river-keepsake{padding-top:150px}.river-keepsake .ks-scene{min-height:820px}}
@media(min-width:761px) and (max-width:1100px){
 .world-invitation{padding-top:28px}.story-home .world-invitation h2{font-size:40px}
 .river-keepsake .ks-intro{padding:32px 7% 0 5%}.river-keepsake .ks-body{font-size:17px}
 .river-keepsake .ks-options{padding:24px 7% 0 5%;gap:10px}.river-keepsake .ks-option{padding:12px 10px 16px}.river-keepsake .ks-option>p{font-size:15px}
 .river-keepsake .ks-scene{min-height:720px}.river-hero-frame{width:68%;left:5%;top:10%}.river-lu-trophy{width:31%;left:57%;bottom:11%}
}
@media(max-width:760px){
 .story-landscape{margin-bottom:-70px}.world-stage{height:auto;aspect-ratio:384/320;min-height:0;background:transparent}.world-art{width:100%;min-width:0;aspect-ratio:384/320}
 .world-art .world-lu{left:21.35417%;top:67.8125%;width:8.85417%;height:10%}
 .world-invitation{padding:24px 16px 0}.story-home .world-invitation h2{font-size:clamp(27px,7vw,42px);max-width:15ch;line-height:1.06;margin-bottom:17px}

 .river-keepsake{padding-top:70px;grid-template-columns:1fr;grid-template-areas:'scene' 'intro' 'options' 'closing';background-size:auto 660px;background-position:34% top;background-repeat:no-repeat;background-color:#faf6ee}
 .river-keepsake::before{background:linear-gradient(180deg,transparent 0,transparent 420px,#faf6ee 640px);z-index:-1}
 .river-keepsake .ks-scene{height:106vw;min-height:0;max-height:560px}.river-hero-frame{width:57%;left:7%;top:2%}.river-lu-trophy{width:27%;left:62%;bottom:8%}
 .river-keepsake .ks-intro{padding:22px 24px 0}.river-keepsake h2 span{white-space:normal}.river-keepsake .ks-body{font-size:18px}
 .river-keepsake .ks-options{padding:26px 20px 0;gap:12px}.river-keepsake .ks-option{padding:12px 12px 18px}.river-keepsake .ks-option>img{width:90%;max-height:none}.river-keepsake .ks-option>p{font-size:15px}
 .river-keepsake .ks-closing{padding:26px 24px 34px}
}

/* Ordinary photographic images avoid SVG external-image decoding differences. */
.river-frame{position:relative;container-type:inline-size}
.river-frame-shell{display:block;width:100%;height:auto}
.river-cart-label{position:absolute;left:42.6%;top:21.45%;width:21.4%;height:33.15%;background:#143b80;clip-path:polygon(0 2.6%,100% 0,100% 100%,0 99.3%);overflow:hidden}
.river-cart-label>span{position:absolute;top:7%;left:0;width:100%;text-align:center;font:700 5.4cqw/.96 ImaginePixel,monospace;color:#fff0bc;z-index:1}
.river-cart-label>img{position:absolute;bottom:0;left:0;width:100%;height:66%;max-width:none;object-fit:cover;object-position:50%;image-rendering:pixelated}
.river-plaque{position:absolute;left:33.3%;top:72.8%;width:34.7%;height:6.6%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1cqw;background:linear-gradient(120deg,#e1c282,#d3ad60);color:#332616;rotate:1.5deg;font:2.65cqw/1 Georgia,serif;letter-spacing:.13cqw}
.river-plaque small{font-size:1.45cqw;letter-spacing:.35cqw}
@media(max-width:760px){
 .world-stage,.world-art{aspect-ratio:384/368}
 .world-art .world-lu{top:72.01087%;height:8.69565%}
 .world-invitation{padding-top:56px}
}
@media(min-width:761px) and (max-width:1100px){
 .river-keepsake .ks-scene{height:auto;max-height:none}
 .story-home .river-keepsake h2{font-size:clamp(32px,4.3vw,47px)!important}
}
@media(min-width:761px) and (max-width:1000px){
 .world-stage{height:426.6667px}.world-art{width:1024px}
}
@media(max-width:760px){
 .river-keepsake{background-size:max(100%,495px) auto}
 .river-keepsake::before{background:linear-gradient(180deg,transparent 0,transparent min(106vw,560px),#faf6ee calc(min(106vw,560px) + 240px))}
}
@media(max-width:760px){
 .story-landscape{margin-bottom:calc(-100vw * 70 / 384)}
 .river-keepsake{padding-top:calc(100vw * 70 / 384)}
}

/* Native valley composition; a readable path replaces the stretched panorama. */
.story-home .story-landscape{background:var(--story-sky)}
.story-home .world-stage{height:max(384px,var(--landscape-art-height,576px));aspect-ratio:auto;background:transparent}
.story-home .world-art{z-index:1;inset:auto 0 0;width:100%;height:var(--landscape-art-height,576px);aspect-ratio:auto;transform:none;display:flex;justify-content:center;align-items:flex-end;overflow:hidden}
.world-landscape-native{display:block;flex:none;width:1536px;height:576px;image-rendering:pixelated;max-width:none}
.story-home .world-invitation{padding-top:30px}
.story-home .world-invitation h2{color:var(--ink);text-shadow:none}
.story-home .world-stage::after{height:40%;z-index:0}
@media(max-width:760px){
 .world-landscape-native{width:384px;height:288px}
 .story-home .world-invitation{padding-top:22px}
 .story-home .world-invitation h2{font-size:28px;max-width:18ch}
}

.world-landscape-actor{position:absolute;bottom:0;left:50%;transform:translateX(-50%);pointer-events:none}

.story-home .story-landscape{background:#f7f2ff}
/* Safari can expose the sky under a fractional canvas edge. The opaque bank
   overlaps the adjacent same-color section by one CSS pixel, without moving it. */
.story-home .story-landscape::after{content:'';position:absolute;left:0;right:0;bottom:-1px;height:3px;background:#4428bc;pointer-events:none;z-index:2}
.world-scenery-motion{position:absolute;bottom:0;left:50%;transform:translateX(-50%);pointer-events:none}
