/* V17 — compact warm redesign. CSS-only enhancement, no changes to payment/server logic. */
:root{--v17-milk:#fff8f1;--v17-ink:#342d38;--v17-deep:#215442;--v17-coral:#dd5369;--v17-pink:#ffe2e9;--v17-lavender:#ede5ff;--v17-gold:#ffe9a8}
body.v5-theme{background:linear-gradient(180deg,#fff8f1 0%,#fff0f2 38%,#f4f0ff 66%,#fffbef 100%);color:var(--v17-ink)}
body.v5-theme .v5-header{max-width:1240px;margin-inline:auto;border-radius:0 0 18px 18px;min-height:65px;padding-block:7px}
body.v5-theme #v15-home{max-width:1240px;border-radius:0 0 24px 24px;box-shadow:0 18px 44px #48293d33}
body.v5-theme #v15-home .v15-hero{min-height:300px;grid-template-columns:minmax(180px,.9fr) minmax(320px,1.3fr) minmax(210px,.9fr)}
body.v5-theme #v15-home .v15-child-pic{min-height:300px}
body.v5-theme #v15-home .v15-hope{min-height:300px}
body.v5-theme #v15-home h1{font-size:clamp(36px,4.6vw,59px);line-height:1.01;letter-spacing:-.035em}
body.v5-theme #v15-home .v15-hero-center{padding:20px 14px}
body.v5-theme #v15-home .v15-main-buttons{gap:9px;padding:10px 16px 7px}
body.v5-theme #v15-home .v15-action{min-height:55px;border-radius:14px}
body.v5-theme #v15-home .v15-topics{padding:7px 16px 11px}
body.v5-theme #v15-home .v15-topics>a{min-height:69px}
body.v5-theme #v15-home .v15-mid{padding:5px 16px 12px}
body.v5-theme #v15-home .v15-lower{padding:0 16px 13px}
body.v5-theme #v15-home .v15-panel{min-height:176px}
body.v5-theme main>section:not(#v15-home):not(.v5-dashboard):not(.pb14-heart):not(.sg-section),body.v5-theme main>.v3-mini-divider{max-width:1240px;margin-inline:auto}
body.v5-theme .section{padding-block:clamp(27px,4vw,57px)}
body.v5-theme .wrap{width:min(1160px,calc(100% - 36px))}
body.v5-theme .section h2{font-size:clamp(27px,3vw,43px);line-height:1.15;letter-spacing:-.035em}
/* Fix the specific nearly invisible white text in the story and 'why' headings */
body.v5-theme #stories h2,body.v5-theme #why h2{color:#244739!important;text-shadow:none!important}
body.v5-theme #stories .stories-heading h2>span:first-child,body.v5-theme #why .why-left h2>span:first-child{color:#244739!important}
body.v5-theme #stories .stories-heading h2>span:last-child span,body.v5-theme #why .why-left h2>span:last-child span{color:#d94d67!important}
body.v5-theme #stories .stories-heading>p,body.v5-theme #why .why-right p{color:#3e5149}
body.v5-theme #stories,body.v5-theme #why{background:#fff8f1;border:1px solid #f1ddda;border-radius:23px;margin-top:17px;box-shadow:0 9px 30px #513f3c10}
body.v5-theme #stories .story-card{box-shadow:0 7px 21px #47304714}
body.v5-theme #stories .story-card img{height:clamp(155px,18vw,215px)}
body.v5-theme #stories .story-body{padding:15px 17px 20px}
body.v5-theme #stories .story-body p{line-height:1.55;color:#445950}
body.v5-theme #apply{border-radius:22px;background:#fff0e7}
body.v5-theme #how,body.v5-theme #faq{background:#fffdf8;border:1px solid #f4e2dd;border-radius:23px;margin-top:16px}
body.v5-theme #how .steps{margin-top:26px;gap:11px}
body.v5-theme #how .step{padding:18px 16px}
body.v5-theme #how .step-icon{width:53px;height:53px;margin:4px 0 17px;font-size:27px}
body.v5-theme #faq .faq-items summary{padding-block:15px;color:#2b4438}
body.v5-theme #trust{background:#fff3e8;border-radius:22px}
body.v5-theme #review,body.v5-theme #stickers{background:#f9f0ff;border-radius:22px}
body.v5-theme .pb14-heart{margin:20px auto 26px}
body.v5-theme .pb14-wrap{max-width:1204px}
body.v5-theme .pb14-letter{min-height:112px;padding:9px 7px}
body.v5-theme .pb14-thoughts article{min-height:90px}
body.v5-theme #secret-gifts{max-width:1240px;margin:16px auto 0;border-radius:24px;padding-top:38px;padding-bottom:43px}
body.v5-theme #wallets{border-radius:22px}
body.v5-theme #community{border-radius:22px}
body.v5-theme #v5-contact{border-radius:22px;margin-block:16px}
/* Julia upgrades: real controls and six locally stored costume illustrations */
.julia-root.pb14-show-mini .pb14-mini-figure{overflow:visible}
.pb14-mini-figure>img{filter:drop-shadow(0 3px 6px #28203955)}
.pb14-mini-figure.v17-swap>img{animation:v17-swap .38s ease-out both}
.v17-costume-name{font-size:11px;color:#7d3154;font-weight:850;display:block;margin-top:6px}
.v17-next-costume{position:absolute;right:72px;bottom:11px;border:2px solid #f9d7af;border-radius:999px;padding:5px 8px;background:#fdf4ed;color:#863c60;box-shadow:0 3px 9px #20121b32;font-size:11px;font-weight:900;z-index:3;cursor:pointer;pointer-events:auto}
.v17-next-costume:hover{background:#ffe4f1}
.pb14-mini-figure.v17-bunny{animation:v17-bunny 4.5s ease-in-out infinite}
.pb14-mini-figure.v17-cat{animation:v17-cat 4.7s ease-in-out infinite}
.pb14-mini-figure.v17-angel{animation:v17-angel 5.5s ease-in-out infinite}
.pb14-mini-figure.v17-volunteer{animation:v17-volunteer 4.8s ease-in-out infinite}
.pb14-mini-figure.v17-gift{animation:v17-gift 4.2s ease-in-out infinite}
.pb14-mini-figure.v17-fairy{animation:v17-fairy 5.1s ease-in-out infinite}
@keyframes v17-swap{0%{opacity:.3;transform:scale(.9)}100%{opacity:1;transform:scale(1)}}
@keyframes v17-bunny{0%,70%,100%{transform:translateY(0)}75%{transform:translateY(-7px)}80%{transform:translateY(0)}85%{transform:translateY(-3px)}}
@keyframes v17-cat{0%,75%,100%{transform:rotate(0)}81%{transform:rotate(-3deg)}90%{transform:rotate(2deg)}}
@keyframes v17-angel{0%,100%{filter:drop-shadow(0 3px 8px #ffc86666)}50%{filter:drop-shadow(0 2px 22px #ffe4a4)}}
@keyframes v17-volunteer{0%,75%,100%{transform:translateX(0)}80%{transform:translateX(-3px)}90%{transform:translateX(2px)}}
@keyframes v17-gift{0%,72%,100%{transform:rotate(0)}78%{transform:rotate(-2deg)}84%{transform:rotate(2deg)}}
@keyframes v17-fairy{0%,100%{filter:drop-shadow(0 0 5px #b783e855)}50%{filter:drop-shadow(0 0 15px #cf95fb)}}
@media(max-width:920px){body.v5-theme #v15-home .v15-hero{grid-template-columns:1fr 1.3fr}body.v5-theme #v15-home .v15-hope{display:none}}
@media(max-width:700px){body.v5-theme .wrap{width:calc(100% - 26px)}body.v5-theme #v15-home{border-radius:0 0 15px 15px}body.v5-theme #v15-home .v15-hero{display:flex;flex-direction:column}body.v5-theme #v15-home .v15-child-pic{min-height:182px}body.v5-theme #v15-home .v15-hero-center{padding:17px 18px 22px}body.v5-theme #v15-home h1{font-size:clamp(33px,9vw,52px);margin:8px 0 12px!important}body.v5-theme #v15-home .v15-main-buttons{padding:9px 10px;gap:7px}body.v5-theme #v15-home .v15-action{padding:8px 9px;min-height:54px}body.v5-theme #v15-home .v15-topics{padding:7px 10px 11px;gap:6px}body.v5-theme #v15-home .v15-topics>a{min-height:65px}body.v5-theme #v15-home .v15-mid,body.v5-theme #v15-home .v15-lower{padding-left:10px;padding-right:10px}body.v5-theme .section{padding-block:29px!important}body.v5-theme #stories .story-card img{height:190px}body.v5-theme #stories,body.v5-theme #why,body.v5-theme #how,body.v5-theme #faq{margin-top:10px}body.v5-theme #stories h2,body.v5-theme #why h2{font-size:clamp(28px,7.3vw,37px)!important}body.v5-theme .pb14-letter-grid{gap:6px}.v17-next-costume{bottom:4px;right:47px;font-size:10px;padding:3px 6px}.v17-costume-name{display:none}}
@media(max-width:380px){.v17-next-costume{right:43px}}
@media(prefers-reduced-motion:reduce){.pb14-mini-figure.v17-bunny,.pb14-mini-figure.v17-cat,.pb14-mini-figure.v17-angel,.pb14-mini-figure.v17-volunteer,.pb14-mini-figure.v17-gift,.pb14-mini-figure.v17-fairy,.pb14-mini-figure.v17-swap>img{animation:none!important}}
