/* DNAD Wedding invitation layouts: every theme shares content, not composition. */
html{max-width:100%;overflow-x:clip}
body.invBody{width:100%;min-width:0;max-width:100%;overflow-x:clip;margin:0}
.invBody *, .invBody *::before,.invBody *::after{box-sizing:border-box}
.invBody #content{width:100%;max-width:100%;min-width:0;overflow:clip}
.invBody .invHero{width:100%;min-width:0;margin:0;overflow:hidden;padding:clamp(80px,12vw,150px) clamp(20px,6vw,80px);background-position:center;background-size:cover;position:relative;isolation:isolate}
.invBody .invHero>*{position:relative;z-index:1}
.invBody .invHero h1,.invBody .opening h1{max-width:min(100%,980px);margin:22px auto;overflow-wrap:anywhere;word-break:normal;text-wrap:balance;font-size:clamp(2.65rem,9vw,6rem);line-height:1.05;letter-spacing:-.045em}
.invBody .invHero p{font-size:clamp(1rem,2.5vw,1.25rem)}
.invBody .invHero #recipient{font-size:clamp(.9rem,2.1vw,1.05rem);overflow-wrap:anywhere}
.invBody .invSection{width:min(100%,900px);max-width:100%;min-width:0;margin:0 auto;padding:clamp(58px,8vw,110px) clamp(20px,5vw,55px);overflow:clip}
.invBody .invSection h2{font-size:clamp(2rem,7vw,4.1rem);line-height:1.13;letter-spacing:-.025em;overflow-wrap:anywhere;text-wrap:balance}
.invBody .invSection h3{font-size:clamp(1.35rem,4.5vw,2.1rem);overflow-wrap:anywhere}
.invBody .invSection p,.invBody .invSection small{overflow-wrap:anywhere}
.invBody .invBox{max-width:100%;min-width:0;padding:clamp(22px,4vw,40px)}
.invBody .invBox .btn{margin:8px 5px;max-width:100%;white-space:normal}
.invBody .coupleGrid,.invBody .eventGrid{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}
.invBody .coupleCard,.invBody .eventGrid .invBox{min-width:0}
.invBody .coupleCard img{display:block;width:clamp(125px,16vw,185px);max-width:100%;height:clamp(155px,20vw,225px);margin:0 auto 20px;object-fit:cover}
.invBody .coupleCard img.hidden{display:none}
.invBody .galleryGrid{min-width:0}
.invBody .galleryGrid img{max-width:100%}
.invBody .field input,.invBody .field textarea,.invBody .field select{max-width:100%;min-width:0}
.invBody .musicPlayer{max-width:calc(100vw - 24px);right:12px;bottom:12px}
.invBody .musicPlayer iframe{max-width:calc(100vw - 42px)}
.invBody .opening{width:100%;max-width:100%;overflow:hidden}
.invBody .openingInner{max-width:100%;min-width:0}
.invBody .storySection #story{max-width:650px;margin:25px auto;font-size:clamp(1.05rem,2.4vw,1.25rem)}
.invBody .rsvpSection form{text-align:left}
.invBody .invSection footer{overflow:hidden}

/* 1 · Midnight Gold: cinematic centered stages. */
.invBody.theme-noir{background:#101a1c}
.theme-noir .invHero{min-height:100svh;display:flex;flex-direction:column;justify-content:center;align-items:center;clip-path:none;background-position:center}
.theme-noir .invHero::after{content:'';position:absolute;z-index:0;inset:0;background:linear-gradient(180deg,#07111128 0%,#0711116e 45%,#071111d9 100%)}
.theme-noir .invHero h1{font-style:italic;font-size:clamp(3rem,10vw,7.3rem)}
.theme-noir .invHero .eyebrow{color:#f0d5aa}
.theme-noir #couple{padding-top:105px}
.theme-noir .coupleGrid{gap:32px;margin-top:55px}
.theme-noir .coupleCard img{border-radius:100px 100px 8px 8px;border:1px solid #d1ac72;padding:6px;background:#263332}
.theme-noir .storySection{width:100%;max-width:100%;background:#1c2a2b;padding:120px max(22px,calc((100vw - 700px)/2));}
.theme-noir .eventGrid{gap:18px}
.theme-noir .eventGrid .invBox{border:1px solid #b39462;box-shadow:inset 0 0 0 6px #1c2a2b,0 18px 40px #0004}
.theme-noir .rsvpSection{border-top:1px solid #7e694c}

/* 2 · Botanical Garden: airy editorial paper and portrait arch. */
.invBody.theme-botanical{background:#edf2e9}
.theme-botanical .invHero{width:min(92%,1060px);min-height:80svh;margin:28px auto 0;border-radius:46% 46% 5% 5% / 28% 28% 3% 3%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;padding-bottom:90px;box-shadow:0 16px 0 #d7e4d6;background-position:center 38%}
.theme-botanical .invHero::after{content:'';position:absolute;z-index:0;inset:0;border-radius:inherit;background:linear-gradient(180deg,#17382a08 10%,#17382ad3 100%)}
.theme-botanical .invHero h1{font-size:clamp(2.8rem,8.5vw,6rem);font-style:italic}
.theme-botanical #couple{max-width:1080px}
.theme-botanical .coupleGrid{gap:60px;margin-top:50px}
.theme-botanical .coupleCard img{border-radius:48% 48% 48% 48%;width:clamp(135px,21vw,235px);height:clamp(175px,26vw,290px);border:7px solid #d7e4d6;padding:5px}
.theme-botanical .storySection{max-width:760px;padding:70px 40px;background:#fffdf7;border:1px solid #cdddc8;border-radius:180px 180px 20px 20px}
.theme-botanical .eventGrid{gap:18px}
.theme-botanical .eventGrid .invBox{border:0;border-top:2px solid #73977a;border-bottom:2px solid #73977a;border-radius:0;background:transparent}
.theme-botanical .saveSection .invBox{border-radius:50% 50% 12px 12px / 18% 18% 12px 12px;padding-top:65px}

/* 3 · Terracotta Sunset: split editorial cover and alternating cards. */
.invBody.theme-terracotta{background:#f9ebdf}
.theme-terracotta .invHero{min-height:86svh;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;text-align:left;background-position:right center;padding-left:max(6vw,28px);padding-right:45%}
.theme-terracotta .invHero::after{content:'';position:absolute;z-index:0;inset:0;background:linear-gradient(90deg,#512c28f2 0%,#663b37db 46%,#54383228 80%)}
.theme-terracotta .invHero h1{margin:20px 0;font-size:clamp(3rem,6vw,6.5rem);text-align:left}
.theme-terracotta .invHero #recipient{border-top:1px solid #f0d7c2;padding-top:17px}
.theme-terracotta #couple{max-width:1050px}
.theme-terracotta .coupleGrid{gap:15px;margin-top:45px}
.theme-terracotta .coupleCard{background:#fff7ef;padding:35px 15px;border-radius:90px 8px 8px 8px}
.theme-terracotta .coupleCard:nth-child(2){border-radius:8px 90px 8px 8px;margin-top:55px}
.theme-terracotta .coupleCard img{border-radius:90px 8px 8px 8px}
.theme-terracotta .storySection{text-align:left;max-width:850px;border-left:6px solid #bd7757}
.theme-terracotta .storySection #story{margin-left:0}
.theme-terracotta .eventGrid{gap:25px}
.theme-terracotta .eventGrid .invBox{border-radius:50px 6px 50px 6px}
.theme-terracotta .galleryGrid img:nth-child(even){transform:translateY(20px)}

/* 4 · Ocean Breeze: broad horizon, staggered sections, blue timeline. */
.invBody.theme-ocean{background:#e8f3f5}
.theme-ocean .invHero{min-height:88svh;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;padding-bottom:110px;background-position:center 35%;border-radius:0 0 50% 50% / 0 0 7% 7%;border-bottom:10px solid #6fb7c0}
.theme-ocean .invHero::after{content:'';position:absolute;z-index:0;inset:0;background:linear-gradient(180deg,#103e4a35 0%,#103e4ab8 100%)}
.theme-ocean .invHero h1{letter-spacing:.015em;font-weight:500}
.theme-ocean #couple{max-width:1050px}
.theme-ocean .coupleGrid{gap:22px;margin-top:55px}
.theme-ocean .coupleCard img{border-radius:12px 85px 12px 85px;width:clamp(130px,20vw,230px);height:clamp(170px,26vw,290px)}
.theme-ocean .storySection{max-width:100%;background:#d8ebef;padding:90px max(20px,calc((100vw - 750px)/2))}
.theme-ocean .eventGrid{display:block;max-width:680px;margin:auto;border-left:3px solid #5b98a5;padding-left:22px}
.theme-ocean .eventGrid .invBox{position:relative;margin:20px 0;border-radius:5px 45px 5px 45px;text-align:left}
.theme-ocean .eventGrid .invBox::before{content:'';position:absolute;left:-31px;top:35px;width:15px;height:15px;background:#4e91a0;border-radius:50%;border:3px solid #e8f3f5}
.theme-ocean .galleryGrid{grid-template-columns:repeat(2,minmax(0,1fr))}
.theme-ocean .galleryGrid img{height:230px;border-radius:5px 45px 5px 45px}

/* 5 · Classic Ivory: formal double frame and symmetrical ceremony. */
.invBody.theme-classic{background:#f8f4ed}
.theme-classic .invHero{width:calc(100% - 32px);max-width:1300px;min-height:85svh;margin:16px auto;display:flex;flex-direction:column;align-items:center;justify-content:center;border:8px double #d8c39f;background-position:center}
.theme-classic .invHero::after{content:'';position:absolute;z-index:0;inset:0;background:#3228199c}
.theme-classic .invHero h1{font-style:italic;font-weight:500}
.theme-classic .invHero #recipient{padding:12px 24px;border-top:1px solid #ead3aa;border-bottom:1px solid #ead3aa}
.theme-classic .invSection{max-width:780px}
.theme-classic .invSection h2{font-style:italic}
.theme-classic #couple .coupleGrid{gap:40px;margin-top:55px}
.theme-classic .coupleCard img{border-radius:100px 100px 0 0;border:8px solid #fff;outline:1px solid #bba57c}
.theme-classic .storySection{border-top:1px solid #bba57c;border-bottom:1px solid #bba57c}
.theme-classic .eventGrid{gap:18px}
.theme-classic .eventGrid .invBox{border:4px double #bba57c;border-radius:2px}
.theme-classic .saveSection .invBox{background:#efe7d9;border:0;border-radius:0}
.theme-classic .rsvpSection .invBox{border:4px double #bba57c;border-radius:0}

@media(max-width:680px){
 .invBody .invHero{padding-left:18px;padding-right:18px}
 .invBody .invHero h1,.invBody .opening h1{font-size:clamp(2.6rem,11vw,4.3rem);max-width:100%}
 .invBody .invSection{padding:60px 20px}
 .invBody .invSection h2{font-size:clamp(1.9rem,8vw,2.75rem)}
 .invBody .coupleGrid{gap:12px!important}
 .invBody .coupleCard h3{font-size:clamp(1.2rem,5vw,1.6rem)}
 .invBody .coupleCard p{font-size:.9rem;line-height:1.5}
 .invBody .eventGrid{grid-template-columns:1fr}
 .invBody .galleryGrid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .theme-noir .storySection,.theme-ocean .storySection{padding:75px 22px}
 .theme-botanical .invHero{width:calc(100% - 24px);margin:12px auto 0;min-height:80svh;border-radius:46% 46% 3% 3% / 19% 19% 2% 2%;padding-bottom:76px}
 .theme-botanical .storySection{width:calc(100% - 24px);padding:70px 23px;border-radius:120px 120px 12px 12px}
 .theme-terracotta .invHero{min-height:86svh;padding:80px 28px 65px;justify-content:flex-end}
 .theme-terracotta .invHero::after{background:linear-gradient(180deg,#512c2840 0%,#512c28e8 100%)}
 .theme-terracotta .invHero h1{font-size:clamp(2.9rem,11vw,4.6rem)}
 .theme-terracotta .coupleCard{padding:25px 8px}
 .theme-terracotta .coupleCard:nth-child(2){margin-top:35px}
 .theme-ocean .invHero{min-height:84svh;padding-bottom:80px}
 .theme-ocean .galleryGrid img{height:160px}
 .theme-classic .invHero{width:calc(100% - 20px);margin:10px auto;border-width:5px;min-height:82svh}
 .theme-classic #couple .coupleGrid{gap:12px}
}
@media(max-width:380px){
 .invBody .invHero h1,.invBody .opening h1{font-size:clamp(2.4rem,10.5vw,3.5rem)}
 .invBody .coupleCard img{width:118px;height:148px}
 .invBody .invSection{padding-left:17px;padding-right:17px}
 .invBody .invBox{padding:18px}
}
@media(prefers-reduced-motion:reduce){.invBody .invSection{opacity:1;transform:none;transition:none}}

/* Original illustrated themes inspired by the supplied mobile references. */
.invBody.theme-waterfall{--iv:#648a92;--ivbg:#ecf2ef;--ivpanel:#fffefa;--ivtext:#29464d;background:var(--ivbg);color:var(--ivtext)}
.invBody.theme-heritage{--iv:#9f875e;--ivbg:#f6f2e9;--ivpanel:#fffdf8;--ivtext:#394344;background:var(--ivbg);color:var(--ivtext)}
.theme-waterfall .invHero,.theme-heritage .invHero{min-height:100svh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:90px clamp(18px,5vw,35px) 115px;background-position:center;background-size:cover;color:#233e45}
.theme-waterfall .invHero{background-image:url('/art/waterfall.webp');background-position:center 54%}
.theme-heritage .invHero{background-image:url('/art/heritage.webp');background-position:center 46%}
.theme-waterfall .invHero::before,.theme-heritage .invHero::before{content:'';position:absolute;inset:0;z-index:0;pointer-events:none}
.theme-waterfall .invHero::before{background:linear-gradient(180deg,#eef5f1a6 9%,#f3f7f1b7 39%,#eef3f032 64%,#e8efec00 88%)}
.theme-heritage .invHero::before{background:radial-gradient(ellipse at 50% 45%,#fffdf8bb 0%,#fffdf878 32%,transparent 70%)}
.theme-waterfall .invHero .eyebrow,.theme-heritage .invHero .eyebrow{color:#4e7379;font-size:.72rem;letter-spacing:.26em}
.theme-waterfall .invHero h1,.theme-heritage .invHero h1{font-family:'Playfair Display',Georgia,serif;color:#283c40;font-weight:500;font-size:clamp(3.1rem,10vw,6.8rem);line-height:1.03;max-width:min(100%,760px);text-shadow:0 2px 18px #fffc}
.theme-waterfall .invHero h1{font-style:italic}
.theme-waterfall .invHero #date,.theme-heritage .invHero #date{color:#30484a!important;background:#fffefaac;border:1px solid #ffffffb0;padding:8px 17px;border-radius:30px;backdrop-filter:blur(8px);font-size:clamp(.92rem,2.5vw,1.1rem)}
.theme-waterfall .invHero #recipient,.theme-heritage .invHero #recipient{color:#243f44;font-weight:600;background:#fffdf9c7;padding:10px 18px;border-radius:24px;backdrop-filter:blur(10px);max-width:90%;margin-top:14px}
.theme-waterfall .themeEmblem,.theme-heritage .themeEmblem{position:relative;z-index:2;font-size:clamp(2.8rem,8vw,5rem);color:#9b8663;line-height:1;margin-bottom:12px;text-shadow:0 2px 15px #fff}
.theme-waterfall .themeScroll,.theme-heritage .themeScroll{position:absolute;bottom:28px;left:50%;z-index:2;transform:translateX(-50%);font-size:2.4rem;color:#426b72;animation:themeArrow 1.8s ease-in-out infinite}
@keyframes themeArrow{50%{translate:0 9px}}
.theme-waterfall .waterfallMotion{position:absolute;z-index:0;pointer-events:none;left:52%;top:53%;width:16%;height:37%;transform:rotate(2deg);border-radius:40% 40% 45% 45%;opacity:.32;mix-blend-mode:screen;background:repeating-linear-gradient(93deg,transparent 0 8px,#fff9 10px 13px,transparent 17px 25px),repeating-linear-gradient(180deg,#fff9 0 9px,#ffffff10 20px 37px);background-size:100% 100%,100% 120px;filter:blur(2px);animation:waterFlow 1.8s linear infinite}
@keyframes waterFlow{to{background-position:0 0,0 120px}}
.theme-waterfall .opening{background:linear-gradient(#eff5f0a1,#edf3efbe),url('/art/waterfall.webp') center/cover;color:#273e44}.theme-heritage .opening{background:linear-gradient(#fffdf8ae,#fffdf8b9),url('/art/heritage.webp') center/cover;color:#3e4541}
.theme-waterfall .openingInner,.theme-heritage .openingInner{width:min(100%,540px);padding:clamp(30px,7vw,60px) 20px;background:#fffefadd;border:1px solid #ffffffd9;border-radius:120px 120px 22px 22px;box-shadow:0 20px 70px #344c4433;backdrop-filter:blur(12px)}
.theme-waterfall .opening h1,.theme-heritage .opening h1{font-size:clamp(2.7rem,10vw,5.5rem);font-style:italic;line-height:1.05;color:#29454a}.theme-waterfall .opening p,.theme-heritage .opening p{color:#38565b}
.theme-waterfall .invSection,.theme-heritage .invSection{max-width:900px}.theme-waterfall #couple,.theme-heritage #couple{padding-top:100px}.theme-waterfall .coupleCard img,.theme-heritage .coupleCard img{border-radius:100px 100px 14px 14px;border:5px solid #fff;box-shadow:0 14px 32px #39554a27}
.theme-waterfall .storySection{max-width:none;width:100%;background:linear-gradient(#eef4f0db,#eef4f0db),url('/art/waterfall.webp') center 62%/cover;padding:110px max(22px,calc((100vw - 700px)/2))}
.theme-heritage .storySection{max-width:none;width:100%;background:linear-gradient(#fffaf0d7,#fffaf0dc),url('/art/heritage.webp') center 48%/cover;padding:110px max(22px,calc((100vw - 700px)/2))}
.theme-waterfall .invBox,.theme-heritage .invBox{background:#fffefa;border:1px solid #cdded9;box-shadow:0 12px 34px #38565312}.theme-heritage .invBox{border-color:#d9cdb7;border-radius:120px 120px 14px 14px}.theme-waterfall .invSection p,.theme-heritage .invSection p{color:#466064}
.theme-waterfall .invSection h2,.theme-waterfall .invSection h3,.theme-heritage .invSection h2,.theme-heritage .invSection h3{color:#304d51}.theme-heritage .invSection h2,.theme-heritage .invSection h3{color:#4c5247}
.theme-waterfall .btn,.theme-waterfall .musicPlayer button{background:#668e91;border-color:#668e91;color:#fff}.theme-heritage .btn,.theme-heritage .musicPlayer button{background:#647f7d;border-color:#647f7d;color:#fff}
.themeCountdown{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 auto 28px;max-width:620px}.themeCountdown span{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:84px;background:#fffdf8d9;border:1px solid #dfd7c6;border-radius:14px;box-shadow:0 8px 20px #3d4e4211}.themeCountdown strong{font:500 clamp(1.45rem,5vw,2.8rem)/1.1 'Playfair Display',Georgia,serif;color:#3f5758}.themeCountdown small{font-size:.65rem;color:#55696b;text-transform:uppercase;letter-spacing:.08em;margin-top:5px}
@media(max-width:600px){.theme-waterfall .invHero,.theme-heritage .invHero{min-height:100svh;padding:75px 20px 100px}.theme-waterfall .invHero h1,.theme-heritage .invHero h1{font-size:clamp(2.7rem,11vw,4.4rem)}.theme-waterfall .waterfallMotion{left:45%;top:51%;width:26%;height:37%}.theme-waterfall .coupleGrid,.theme-heritage .coupleGrid{grid-template-columns:1fr;gap:35px}.theme-waterfall .storySection,.theme-heritage .storySection{padding:90px 25px}.themeCountdown span{min-height:72px}.theme-heritage .invBox{border-radius:65px 65px 12px 12px}}
@media(prefers-reduced-motion:reduce){.theme-waterfall .waterfallMotion,.theme-waterfall .themeScroll,.theme-heritage .themeScroll{animation:none}}
.invBody.theme-waterfall .invHero{background-image:url('/art/waterfall.webp')}.invBody.theme-heritage .invHero{background-image:url('/art/heritage.webp')}
.invBody.theme-waterfall .btn,.invBody.theme-waterfall .musicPlayer button{background:#668e91;border-color:#668e91;color:#fff}.invBody.theme-heritage .btn,.invBody.theme-heritage .musicPlayer button{background:#647f7d;border-color:#647f7d;color:#fff}

/* Wind layers: lightweight CSS animation and original SVG silhouettes. */
.theme-waterfall .invHero,.theme-heritage .invHero,.theme-waterfall #couple,.theme-heritage #couple,.theme-waterfall .storySection,.theme-heritage .storySection{position:relative;isolation:isolate}
.theme-waterfall .openingInner,.theme-heritage .openingInner{z-index:2}
.natureMotion{position:absolute;inset:0;z-index:1;overflow:hidden;pointer-events:none;contain:paint}
.invSection .natureMotion{z-index:0}.invSection .natureMotion~*{position:relative;z-index:2}
.natureBranch{position:absolute;width:clamp(100px,24vw,240px);height:clamp(150px,35vw,340px);background:url('/art/wind-branch.svg') center/contain no-repeat;opacity:.32;transform-origin:bottom left;will-change:transform;animation:branchSway 5.8s ease-in-out infinite alternate}
.natureBranch.left{left:-40px;bottom:-65px}.natureBranch.right{right:-40px;bottom:-65px;scale:-1 1;animation-delay:-2.4s}
.theme-heritage .natureBranch{background-image:url('/art/wind-flowers.svg');opacity:.55;animation-duration:4.8s}
.invHero .natureBranch{bottom:-20px}.opening .natureBranch{bottom:-20px;opacity:.45}
.naturePetal{position:absolute;left:var(--left);top:-8%;width:clamp(8px,1.7vw,15px);height:clamp(12px,2.5vw,24px);border-radius:85% 5% 75% 25%;background:#eab8bb;opacity:0;transform:rotate(30deg);box-shadow:inset -2px -3px 3px #bc83947d;animation:petalFall var(--duration) linear var(--delay) infinite;will-change:transform,opacity}
.theme-waterfall .naturePetal{background:#e8b4a5}.naturePetal:nth-child(4n){background:#f2d6c1}.naturePetal.natureLeaf{background:#78997e;box-shadow:inset -2px -3px 3px #385c3e57}
@keyframes branchSway{0%{transform:rotate(-4deg) translateX(-3px)}100%{transform:rotate(5deg) translateX(5px)}}
@keyframes petalFall{0%{opacity:0;transform:translate3d(0,-10px,0) rotate(0deg)}10%{opacity:.75}85%{opacity:.7}100%{opacity:0;transform:translate3d(55px,110vh,0) rotate(560deg)}}
@media(max-width:600px){.natureBranch{width:140px;height:210px;opacity:.25}.theme-heritage .natureBranch{opacity:.36}.naturePetal{width:8px;height:13px}}
@media(prefers-reduced-motion:reduce){.natureBranch,.naturePetal{animation:none!important;will-change:auto}.naturePetal{display:none}}

/* Refined palettes for the original five themes; layouts stay distinct. */
.invBody.theme-noir{--iv:#e4cdaa;--ivbg:#344b50;--ivpanel:#425c60;--ivtext:#fbf8f1;background:var(--ivbg);color:var(--ivtext)}
.theme-noir .storySection{background:#3e595e}.theme-noir .coupleCard img{background:#4b686b;border-color:#e4cdaa}.theme-noir .eventGrid .invBox{box-shadow:inset 0 0 0 6px #456065,0 18px 40px #263d3d38}
.invBody.theme-botanical{--iv:#739786;--ivbg:#edf4ed;--ivpanel:#fffefa;--ivtext:#32584a;background:var(--ivbg);color:var(--ivtext)}
.theme-botanical .coupleCard img{border-color:#dfecdf}
.invBody.theme-terracotta{--iv:#b57d68;--ivbg:#faf0ea;--ivpanel:#fffaf5;--ivtext:#694c43;background:var(--ivbg);color:var(--ivtext)}
.theme-terracotta .invHero::after{background:linear-gradient(180deg,#704f4855,#624d48c9)}
.invBody.theme-ocean{--iv:#76aab2;--ivbg:#edf6f6;--ivpanel:#fffefd;--ivtext:#35616a;background:var(--ivbg);color:var(--ivtext)}
.theme-ocean .invHero{border-color:#8cbac0}
.invBody.theme-classic{--iv:#b29b7c;--ivbg:#f8f4ed;--ivpanel:#fffdf9;--ivtext:#594c3e;background:var(--ivbg);color:var(--ivtext)}
.theme-classic .invHero{border-color:#c5af8c}.theme-classic .invBox{border-color:#c9b99e}

/* Premium illustration: preserve the complete portrait artwork on narrow screens. */
@media(max-width:700px){
 .invBody.theme-waterfall .invHero:not(.hasCustomCover),.invBody.theme-heritage .invHero:not(.hasCustomCover){background-size:100% 100%;background-position:center;background-repeat:no-repeat}
 .theme-waterfall .opening,.theme-heritage .opening{background-size:100% 100%;background-position:center;background-repeat:no-repeat}
 .theme-waterfall .invHero.hasCustomCover,.theme-heritage .invHero.hasCustomCover{background-size:cover;background-position:center}
 .theme-waterfall .invHero,.theme-heritage .invHero{width:100%;min-height:100svh;overflow:hidden;padding-inline:clamp(18px,5vw,32px)}
 .theme-waterfall .invHero h1,.theme-heritage .invHero h1{font-size:clamp(2.45rem,10vw,4.25rem);overflow-wrap:anywhere;text-wrap:balance}
 .theme-waterfall .waterfallMotion{left:44%;top:54%;height:30%}
}
.theme-waterfall .invHero::after,.theme-heritage .invHero::after{content:'';position:absolute;inset:clamp(12px,3vw,32px);z-index:1;border:1px solid #e7d6ad8a;border-radius:180px 180px 14px 14px;pointer-events:none;box-shadow:inset 0 0 0 5px #fff8f22b,0 0 35px #fffbeb45;animation:premiumGlow 7s ease-in-out infinite alternate}
.theme-waterfall .invHero .eyebrow,.theme-heritage .invHero .eyebrow{position:relative;z-index:3;text-shadow:0 2px 14px #fff}
.theme-waterfall .invHero h1,.theme-heritage .invHero h1{position:relative;z-index:3;text-shadow:0 2px 25px #fff,0 0 5px #fffae7}
.theme-waterfall .invHero #date,.theme-heritage .invHero #date{position:relative;z-index:3;box-shadow:0 8px 28px #3d535626}
.theme-waterfall .openingInner,.theme-heritage .openingInner{box-shadow:0 25px 70px #344c4433,inset 0 0 0 5px #fff9e25e}
.theme-waterfall .naturePetal,.theme-heritage .naturePetal{filter:drop-shadow(0 3px 5px #45573c4d)}
@keyframes premiumGlow{from{opacity:.46;box-shadow:inset 0 0 0 5px #fff8f21c}to{opacity:.95;box-shadow:inset 0 0 0 5px #fff8f24f,0 0 35px #fffbeb45}}
@media(prefers-reduced-motion:reduce){.theme-waterfall .invHero::after,.theme-heritage .invHero::after{animation:none}}
.musicPlayer #youtubePlayer:not(.hidden){position:fixed;right:max(12px,env(safe-area-inset-right));bottom:calc(82px + env(safe-area-inset-bottom));z-index:1000;width:min(260px,calc(100vw - 24px));padding:9px;border-radius:18px;background:#fffdf6;box-shadow:0 16px 50px #1c393c6b}
.musicPlayer #youtubePlayer iframe{display:block;width:100%;height:220px;border:0;border-radius:11px}
.musicPlayer #youtubePlayer .youtubeClose{display:block;width:100%;margin-bottom:8px;padding:7px 10px;background:#eeeae1;color:#244246;border:0;border-radius:9px;cursor:pointer;font-size:.85rem}

.previewBanner{position:fixed;z-index:200;left:50%;bottom:12px;transform:translateX(-50%);width:min(600px,calc(100% - 24px));display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #ffffffaa;background:#fffdf6ec;color:#284642;backdrop-filter:blur(14px);padding:12px 17px;border-radius:16px;box-shadow:0 8px 35px #1b292966;font:600 .83rem system-ui}.previewBanner a{background:#527c77;color:#fff;padding:10px 13px;border-radius:10px;white-space:nowrap}.previewMode .musicPlayer{bottom:83px}@media(max-width:500px){.previewBanner{font-size:.72rem;padding:8px}.previewBanner a{padding:9px}}
