/* Native Odd Level worlds, independently placed around real HTML copy. */
.story-home #your-idea.imagine-section--worlds{padding-top:0}
.story-home #your-idea .imagine-worlds-header{--world-scale:3;display:block;position:relative;isolation:isolate;width:100%;height:864px;margin:0 0 52px;padding:0;background:#f7f2ff;overflow:hidden;text-align:center}
.imagine-worlds-header::before{content:"";position:absolute;inset:0;z-index:-1;background:url('/site/story/assets/story-worlds-header/repeating-waves.png') 0 0/calc(256px * var(--world-scale)) calc(192px * var(--world-scale)) repeat;image-rendering:pixelated}
.story-worlds-art{position:absolute;inset:0;pointer-events:none}
.story-world-sprite,.story-world-object{position:absolute;display:block;max-width:none;width:calc(var(--sprite-width) * var(--world-scale));height:calc(var(--sprite-height) * var(--world-scale));image-rendering:pixelated;image-rendering:crisp-edges}
.story-world-alpine{left:0;top:calc(10px * var(--world-scale))}
.story-world-space{left:calc(50% - 144px * var(--world-scale));top:0}
.story-world-castle{right:0;top:0}
.story-world-harbor{left:0;bottom:0}
.story-world-house{right:0;bottom:0}
.story-world-objects{position:absolute;inset:0}
.story-world-object{opacity:.75}
.story-home #your-idea .imagine-worlds-header .imagine-intro{position:absolute;z-index:1;top:438px;left:50%;translate:-50% 0;width:min(860px,calc(100% - 936px));max-width:none;padding:24px 0;display:block;min-width:0}
.imagine-worlds-header .imagine-intro::before{content:none}
.story-home #your-idea .imagine-worlds-header h2{font-size:clamp(40px,3.2vw,64px)!important;line-height:1.06!important;letter-spacing:-.05em;color:#100b36;margin:0;padding:0;text-align:center}
.story-home #your-idea .imagine-worlds-header h2>span{color:inherit}
.story-home #your-idea .imagine-worlds-header .imagine-description{font-size:20px;line-height:1.5;margin:28px auto 0;max-width:48ch;color:var(--ink-soft);text-align:center}
.imagine-worlds-header .desktop-break{display:none}

/* Fill the frame continuously on resize, keeping a dedicated opening for the copy. */
@media(min-width:700px){
 .story-home #your-idea .imagine-worlds-header{height:calc(274px * var(--world-scale))}
 .story-world-alpine{left:calc(-12px * var(--world-scale));top:calc(8px * var(--world-scale))}
 .story-world-space{left:calc(50% - 128px * var(--world-scale));top:calc(-8px * var(--world-scale))}
 .story-world-castle{right:calc(-10px * var(--world-scale))}
 .story-world-harbor{left:calc(-10px * var(--world-scale))}
 .story-world-house{right:calc(-12px * var(--world-scale))}
 .story-home #your-idea .imagine-worlds-header .imagine-intro{top:calc(142px * var(--world-scale));width:34%;padding:0 0 16px}
 .story-home #your-idea .imagine-worlds-header h2{font-size:clamp(30px,3.2vw,72px)!important}
 .story-home #your-idea .imagine-worlds-header .imagine-description{font-size:clamp(16px,1.15vw,23px);margin-top:24px}
}
@media(min-width:700px) and (max-width:1099px){
 .story-home #your-idea .imagine-worlds-header{height:calc(300px * var(--world-scale))}
 .story-home #your-idea .imagine-worlds-header .imagine-intro{top:calc(142px * var(--world-scale));width:38%}
 .story-world-harbor{left:calc(-20px * var(--world-scale))}
 .story-world-house,.story-world-castle{right:calc(-20px * var(--world-scale))}
 .story-home #your-idea .imagine-worlds-header h2{font-size:clamp(28px,3.2vw,36px)!important}
}
@media(max-width:699px){
 .story-home #your-idea .imagine-worlds-header{height:calc(302px * var(--world-scale) + 246px);margin-bottom:32px}
 .story-world-alpine{left:calc(-42px * var(--world-scale));top:calc(20px * var(--world-scale))}
 .story-world-space{left:calc(50% - 128px * var(--world-scale));top:calc(-12px * var(--world-scale))}
 .story-world-castle{right:calc(-24px * var(--world-scale));top:calc(20px * var(--world-scale))}
 .story-home #your-idea .imagine-worlds-header .imagine-intro{top:calc(176px * var(--world-scale));width:calc(100% - 40px);padding:0 0 14px}
 .story-home #your-idea .imagine-worlds-header h2{font-size:clamp(30px,5.6vw,40px)!important}
 .story-home #your-idea .imagine-worlds-header .imagine-description{font-size:16px;line-height:1.45;margin-top:24px;max-width:38ch}
 .story-world-harbor{left:calc(-24px * var(--world-scale));bottom:0}
 .story-world-house{right:calc(-24px * var(--world-scale));bottom:0}
}
.story-world-object[hidden]{display:none}

/* Flat violet ink and backdrop: the sky canvas owns pixel-stepped transitions.
   The source wave mask already has 25% alpha. Cards use a lighter impression. */
.story-home .ol-page-content{--wave-ink:122 91 183;--story-sky:#c4afff}
.story-home #your-idea.imagine-section--worlds{background:#f7f2ff}
.story-home #your-idea .imagine-worlds-header{background:transparent}
.imagine-worlds-header::before{display:none}
#your-idea.imagine-section--worlds::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:rgb(var(--wave-ink) / .9);mask:url('/site/story/assets/story-worlds-header/repeating-waves.png') 0 0/var(--wave-width,768px) var(--wave-height,576px) repeat;image-rendering:pixelated}
.world-stage::after{content:"";position:absolute;inset:0 0 auto;height:62%;z-index:1;pointer-events:none;background:rgb(255 255 255 / .65);mask:url('/site/story/assets/story-worlds-header/repeating-waves.png') 0 var(--wave-sky-offset,0px)/var(--wave-width,768px) var(--wave-height,576px) repeat;image-rendering:pixelated}
.story-home #your-idea .imagine-worlds-header h2{font-size:clamp(40px,5.2vw,124px)!important;line-height:.99!important;letter-spacing:-.055em;text-wrap:balance}
.story-home #your-idea .imagine-worlds-header .imagine-description{font-size:clamp(16px,1.25vw,24px);line-height:1.4;margin-top:24px;max-width:none;text-wrap:balance}
@media(min-width:700px) and (max-width:1099px){
 .story-home #your-idea .imagine-worlds-header{height:calc(300px * var(--world-scale))}
 .story-home #your-idea .imagine-worlds-header h2{font-size:clamp(36px,5.2vw,57px)!important}
 .story-home #your-idea .imagine-worlds-header .imagine-description{font-size:16px;margin-top:18px}
}
@media(max-width:699px){
 .story-home #your-idea .imagine-worlds-header{height:calc(321px * var(--world-scale) + var(--intro-height,240px) + 4px)}
 .story-home #your-idea .imagine-worlds-header h2{font-size:clamp(42px,10vw,64px)!important;line-height:1.01!important}
 .story-home #your-idea .imagine-worlds-header .imagine-description{font-size:16px;line-height:1.4;margin-top:20px;max-width:33ch}
}

/* Storybook headline and inverse seigaiha story cards. */
@font-face{font-family:'Berkshire Swash';src:url('/site/story/assets/fonts/berkshire-swash/BerkshireSwash-Regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
.story-home #your-idea .imagine-worlds-header h2{font-family:'Berkshire Swash',serif;font-weight:400;letter-spacing:-.015em!important;line-height:1.04!important}
.story-home #your-idea .imagine-story{position:relative;isolation:isolate;border:0;box-shadow:none;background:#fff}
#your-idea .imagine-story::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;background:rgb(var(--wave-ink) / .55);mask:url('/site/story/assets/story-worlds-header/repeating-waves.png') 0 0/512px 384px repeat;image-rendering:pixelated}
.story-home #your-idea .imagine-story h3{color:#18354f}
.story-home #your-idea .imagine-story-copy>p{color:#3e566b}
.story-home #your-idea .imagine-story-copy>p.imagine-occasion{color:#45627c}

/* Two deliberate lines: a storybook invitation and a grand fantasy title. */
@font-face{font-family:'Great Vibes';src:url('/site/story/assets/fonts/great-vibes/GreatVibes-Regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
.story-home #your-idea .imagine-worlds-header .imagine-intro{container-type:inline-size}
.story-home #your-idea .imagine-worlds-header h2>span{display:block;white-space:nowrap;padding:0;letter-spacing:0;line-height:1.12}
.story-home #your-idea .imagine-worlds-header .story-title-lead{font-family:'Berkshire Swash',serif;font-size:13cqw;font-weight:400;width:140%;margin-left:-20%;paint-order:stroke fill;-webkit-text-stroke:2px #f7f2ff}
.story-home #your-idea .imagine-worlds-header .story-title-fantasy{font-family:'Great Vibes',cursive;font-size:56cqw;font-weight:400;line-height:1.08;width:240%;margin-left:-70%;margin-top:14px;paint-order:stroke fill;-webkit-text-stroke:4px #f7f2ff}

@media(min-width:700px) and (max-width:1099px){
 .story-home #your-idea .imagine-worlds-header .story-title-fantasy{font-size:54cqw;margin-top:8px}
}
@media(max-width:699px){
 .story-home #your-idea .imagine-worlds-header .story-title-lead{font-size:10.4cqw;width:110%;margin-left:-5%;-webkit-text-stroke:1px #f7f2ff}
 .story-home #your-idea .imagine-worlds-header .story-title-fantasy{font-size:26.5cqw;width:110%;margin-left:-5%;margin-top:10px;-webkit-text-stroke:2px #f7f2ff}
}

@media(min-width:1100px){
 .story-home #your-idea .imagine-worlds-header .imagine-intro{top:calc(116px * var(--world-scale))}
}
@media(min-width:700px) and (max-width:1099px){
 .story-home #your-idea .imagine-worlds-header .imagine-intro{top:calc(112px * var(--world-scale))}
}

/* Title-only experiment: keep the original text line box and scene layout. */
.story-home #your-idea .imagine-worlds-header .story-title-fantasy--pixel{position:relative;height:1.08em}
.story-title-accessible{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.story-title-picture{position:absolute;display:block;width:94%;left:3%;top:50%;transform:translateY(calc(-50% + .08em));pointer-events:none}
.story-title-picture img{display:block;width:100%;height:auto;max-width:none;image-rendering:pixelated;filter:drop-shadow(2px 0 0 #f7f2ff) drop-shadow(-2px 0 0 #f7f2ff) drop-shadow(0 2px 0 #f7f2ff) drop-shadow(0 -2px 0 #f7f2ff)}
@media(max-width:699px){.story-title-picture img{filter:drop-shadow(1px 0 0 #f7f2ff) drop-shadow(-1px 0 0 #f7f2ff) drop-shadow(0 1px 0 #f7f2ff) drop-shadow(0 -1px 0 #f7f2ff)}}

/* Composition matching the supplied pointed-vignette reference. */
.story-vignette-edges{position:absolute;inset:0;width:100%;height:100%;image-rendering:pixelated;pointer-events:none}
.story-home #your-idea .imagine-worlds-header{height:calc(370px * var(--world-scale))}
.story-world-alpine{left:0;top:calc(8px * var(--world-scale))}
.story-world-space{left:calc(50% - 154px * var(--world-scale));top:calc(-8px * var(--world-scale));width:calc(308px * var(--world-scale));height:calc(128.734px * var(--world-scale))}
.story-world-castle{right:0;top:calc(4px * var(--world-scale))}
.story-world-harbor{left:0;bottom:0;width:calc(164px * var(--world-scale));height:calc(159.6px * var(--world-scale))}
.story-world-house{right:0;bottom:0;width:calc(167px * var(--world-scale));height:calc(154.914px * var(--world-scale))}
.story-home #your-idea .imagine-worlds-header .imagine-intro{top:calc(155px * var(--world-scale));width:62%;padding:0}
.story-home #your-idea .imagine-worlds-header .story-title-lead{width:100%;margin:0;font-size:clamp(24px,4vw,66px);line-height:1.12}
.story-home #your-idea .imagine-worlds-header .story-title-fantasy--pixel{height:auto;width:100%;margin:6px 0 0;line-height:1;font-size:inherit}
.story-title-picture{position:relative;left:auto;top:auto;transform:none;width:100%}
.story-title-picture img{filter:none}
.story-home #your-idea .imagine-worlds-header .imagine-description{font-size:clamp(16px,1.4vw,23px);max-width:44ch;line-height:1.4;margin:16px auto 0}
@media(max-width:699px){
 .story-home #your-idea .imagine-worlds-header{height:calc(340px * var(--world-scale) + var(--intro-height,230px) + 16px)}
 .story-world-alpine{left:calc(-40px * var(--world-scale));top:calc(20px * var(--world-scale))}
 .story-world-castle{right:calc(-20px * var(--world-scale));top:calc(14px * var(--world-scale))}
 .story-world-space{top:calc(-20px * var(--world-scale));width:calc(270px * var(--world-scale));height:calc(112.852px * var(--world-scale));left:calc(50% - 135px * var(--world-scale))}
 .story-world-harbor{left:calc(-18px * var(--world-scale));width:calc(149px * var(--world-scale));height:calc(145px * var(--world-scale))}
 .story-world-house{right:calc(-16px * var(--world-scale));width:calc(152px * var(--world-scale));height:calc(141px * var(--world-scale))}
 .story-home #your-idea .imagine-worlds-header .imagine-intro{top:calc(196px * var(--world-scale));width:calc(100% - 28px)}
 .story-home #your-idea .imagine-worlds-header .story-title-lead{font-size:9.2cqw;line-height:1.15}
 .story-home #your-idea .imagine-worlds-header .imagine-description{font-size:16px;max-width:31ch;margin-top:12px}
}

.imagine-worlds-header .imagine-intro::before{display:none}
.story-home #your-idea .imagine-worlds-header .imagine-description{max-width:36ch}
@media(min-width:700px) and (max-width:1099px){.story-home #your-idea .imagine-worlds-header .imagine-description{max-width:32ch}}
@media(max-width:699px){.story-home #your-idea .imagine-worlds-header .imagine-description{max-width:31ch}}
/* Bring the lead line into the title without moving the title or supporting copy. */
.story-home #your-idea .imagine-worlds-header .story-title-lead{transform:translateY(calc(8px * var(--world-scale)))}

/* Supporting copy belongs between the illustrated header and example cards. */
.story-home #your-idea .imagine-description--below{width:calc(100% - 40px);max-width:1100px;margin:0 auto 44px;text-align:center;font-size:clamp(24px,2.6vw,35px);font-weight:500;line-height:1.4;text-wrap:pretty}
.imagine-description--below>span,.imagine-description--below>strong{display:block}
.imagine-description--below>strong{font-weight:750;margin-bottom:8px}
@media(max-width:699px){
 .story-home #your-idea .imagine-description--below{width:100%;margin-inline:auto;margin-bottom:32px;font-size:24px}
 .story-home #your-idea .imagine-worlds-header .story-title-lead{font-size:8.6cqw}
}

/* Verified native palette planes share the scene origin and the page pixel unit. */
.story-world-motion{position:absolute;display:block;max-width:none;width:calc(var(--sprite-width) * var(--world-scale));height:calc(var(--sprite-height) * var(--world-scale));image-rendering:pixelated;pointer-events:none}

/* Each new illustration uses the common native pixel unit; anchors and copy stay in place. */
.story-world-space{left:calc(50% - 128px * var(--world-scale));width:calc(256px * var(--world-scale));height:calc(120px * var(--world-scale))}
.story-world-harbor{width:calc(160px * var(--world-scale));height:calc(160px * var(--world-scale))}
.story-world-house{width:calc(168px * var(--world-scale));height:calc(160px * var(--world-scale))}

.story-world-space{top:0}
@media(max-width:699px){
 .story-world-alpine{left:calc(-12px * var(--world-scale));top:calc(50px * var(--world-scale))}
 .story-world-castle{right:0;top:calc(64px * var(--world-scale))}
 .story-world-harbor{left:0}
 .story-world-house{right:0}
 .story-home #your-idea .imagine-worlds-header .imagine-intro{top:calc(242px * var(--world-scale));width:calc(100% - 56px)}
 .story-home #your-idea .imagine-worlds-header{height:calc(360px * var(--world-scale) + var(--intro-height,230px) + 16px)}
}

/* Sky sits behind land. The camp silhouette must remain in front of space. */
.story-world-space{z-index:0}
.story-vignette-edges{z-index:1}
.story-world-alpine,.story-world-castle,.story-world-harbor,.story-world-house{z-index:2}
.story-world-objects{z-index:3}
.story-home #your-idea .imagine-worlds-header .imagine-intro{z-index:4}
.story-world-space{left:calc(50% - 108px * var(--world-scale))}
@media(max-width:699px){.story-world-space{left:calc(50% - 128px * var(--world-scale))}}

/* Separate landscape skies; foreground and native scale are shared. */
.story-world-sky{position:absolute;inset:0;width:100%;height:100%;image-rendering:pixelated;pointer-events:none;z-index:0}

/* Lift the central title beneath the adjoining landscape skies. */
.story-home #your-idea .imagine-worlds-header--world-skies .imagine-intro{top:calc(139px * var(--world-scale))}
@media(max-width:699px){.story-home #your-idea .imagine-worlds-header--world-skies .imagine-intro{top:calc(226px * var(--world-scale))}}

/* Stable alpha masks in WebKit as well as Chromium. Keep the wave ink behind copy. */
#your-idea.imagine-section--worlds::after,#your-idea .imagine-story::before,.world-stage::after{
 -webkit-mask-image:url('/site/story/assets/story-worlds-header/repeating-waves.png');
 mask-image:url('/site/story/assets/story-worlds-header/repeating-waves.png');
 -webkit-mask-repeat:repeat;mask-repeat:repeat;
 -webkit-mask-size:var(--wave-width,768px) var(--wave-height,576px);mask-size:var(--wave-width,768px) var(--wave-height,576px);
}
#your-idea.imagine-section--worlds::after{z-index:0}
#your-idea>.imagine-heading,#your-idea>.imagine-wrap{position:relative;z-index:1}
#your-idea>.imagine-heading{isolation:auto}
#your-idea .imagine-story::before{-webkit-mask-size:512px 384px;mask-size:512px 384px}
.world-stage::after{-webkit-mask-position:0 var(--wave-sky-offset,0px);mask-position:0 var(--wave-sky-offset,0px)}
.story-home #your-idea .imagine-worlds-header--world-skies .imagine-intro{top:calc(135px * var(--world-scale))}
@media(max-width:699px){.story-home #your-idea .imagine-worlds-header--world-skies .imagine-intro{top:calc(222px * var(--world-scale))}}

/* Fit the whole illustration, with distinct islands around a clear title. */
@media(min-width:700px){
 .story-home #your-idea .imagine-worlds-header{height:min(57.8125vw,calc(100svh - 32px))}
 .story-world-harbor,.story-world-house{bottom:calc(24px * var(--world-scale))}
 .story-world-space{left:calc(50% - 160px * var(--world-scale));width:calc(320px * var(--world-scale));height:calc(150px * var(--world-scale))}
 .story-home #your-idea .imagine-worlds-header--world-skies .imagine-intro{top:calc(156px * var(--world-scale));width:min(62%,calc(296px * var(--world-scale)),calc(100% - 336px * var(--world-scale) - 32px))}
 .story-home #your-idea .imagine-worlds-header .story-title-lead{font-size:8.6cqw;transform:none}
}
@media(max-width:699px){
 .story-home #your-idea .imagine-worlds-header{height:calc(416px * var(--world-scale) + var(--intro-height,150px) + 24px)}
 .story-world-alpine{left:0;top:calc(64px * var(--world-scale))}
 .story-world-castle{right:0;top:calc(92px * var(--world-scale))}
 .story-world-space{left:calc(50% - 176px * var(--world-scale));top:0;width:calc(352px * var(--world-scale));height:calc(165px * var(--world-scale))}
 .story-home #your-idea .imagine-worlds-header--world-skies .imagine-intro{top:calc(280px * var(--world-scale));width:min(calc(100% - 56px),420px)}
 .story-home #your-idea .imagine-worlds-header .story-title-lead{transform:none}
}

/* Crop the native space asset inside its own frame; never pull the next section over the hero. */
.story-home #your-idea .imagine-worlds-header{margin-top:0}
.story-world-space{margin-top:calc(-2px * var(--world-scale))}
.imagine-description--below strong>span{display:block}
@media(max-width:699px){.story-home .imagine-description--below strong{font-size:clamp(17px,5.25vw,22px);line-height:1.4}.imagine-description--below strong>span{white-space:nowrap}}

/* The valley is a page transition, not an in-game sky: let the color and
   wave ink change continuously all the way to the opaque mountain silhouettes. */
.story-home .story-landscape{background:#f7f2ff}
.story-home .world-stage{background:linear-gradient(180deg,#f7f2ff 0%,#e9dfff 20%,#d1bfff 48%,#c4afff 72%,#c4afff 100%)}
.story-home .world-stage::after{inset:0;height:100%;z-index:0;background:linear-gradient(180deg,rgba(122,91,183,.9),rgba(255,255,255,.7) 58%,rgba(255,255,255,.55));}

/* A quiet reading surface: the wave pattern belongs around the invitation. */
.story-home #your-idea .imagine-description--below{
 background:#f7f2ff;color:#172b40;padding:24px 16px;
 font-size:clamp(20px,2.2vw,30px);line-height:1.5;
}
.story-home #your-idea .imagine-description--below>span{max-width:52ch;margin-inline:auto}
@media(max-width:699px){
 .story-home #your-idea .imagine-description--below{font-size:20px;padding:20px 8px}
 .story-home #your-idea .imagine-description--below strong{line-height:1.4}
}
