/* The invitation fits one viewport; the friend's story gets its own page. */
.experience{min-height:100svh;display:flex;flex-direction:column}
.experience main{flex:1;min-height:0;display:flex;flex-direction:column}
.experience #mainContent{flex:1;min-height:0;display:flex;flex-direction:column;outline:none}
.experience :is(h1,h2)[tabindex="-1"]:focus{outline:none}
.experience .site-header{flex:none;background:var(--paper);height:72px;border-bottom-color:transparent}
.experience .brand-mark{background:#e0ebbf;border-radius:43% 48% 41% 46%}
.experience .brand small{color:#5b7354}
.experience .nav-link{color:#526449;font-size:12px}
.experience .nav-link.active{background:#e8eddc}
.experience :is(.section-head,.result-heading) h1{font-size:30px;letter-spacing:-.055em;margin:7px 0;line-height:1.4}
.experience .footer{flex:none;margin:0;background:var(--paper);padding:22px 0;border-top:1px solid #e5e8db}
.experience .footrow{padding:0;align-items:center}
.experience .footer-links{margin:0;font-size:11px}
.experience-notice{flex:none;width:min(700px,calc(100% - 32px));margin:0 auto 10px;padding:8px 14px;font-size:11px;line-height:1.6}
.experience>aside[role="note"]{flex:none;padding:6px 12px!important;font-size:11px!important;line-height:1.5}
.experience[data-screen="welcome"],.experience[data-screen="summoning"]{height:100svh;min-height:0;overflow:hidden}
.experience:is([data-screen="welcome"],[data-screen="summoning"]) .account-nav{display:none}
.experience:is([data-screen="welcome"],[data-screen="summoning"]) .footer{border:0;padding:10px 0 12px}
.experience:is([data-screen="welcome"],[data-screen="summoning"]) .footrow{justify-content:center}
.experience:is([data-screen="welcome"],[data-screen="summoning"]) .footrow>div:first-child{display:none}
.experience:is([data-screen="welcome"],[data-screen="summoning"]) .footer-links{display:flex;flex-wrap:wrap;justify-content:center;gap:18px;font-size:10px}
.welcome-screen{position:relative;isolation:isolate;flex:1;min-height:0;display:flex;align-items:safe center;justify-content:safe center;overflow-x:hidden;overflow-y:auto;background:radial-gradient(ellipse at 50% 47%,#fffefb 10%,#f6f6ec 80%)}
.welcome-copy{position:relative;z-index:1;text-align:center;max-width:560px;padding:18px 20px 48px;display:flex;flex-direction:column;align-items:center;gap:23px}
.welcome-eyebrow{font-size:11px;letter-spacing:.1em;font-weight:700;color:#5a7050;margin:0;line-height:1.6}
.welcome-eyebrow>span{display:inline-block;width:7px;height:7px;background:#8aa469;border-radius:50%;margin-right:6px}
.welcome-copy h1{font-size:clamp(49px,6.2vw,82px);letter-spacing:-.075em;line-height:1.18;margin:0;font-weight:700;color:#354d3a;word-break:keep-all}
.welcome-copy h1 em{font-style:normal;color:#6b8756;text-decoration:underline;text-decoration-color:#e0e9bd;text-decoration-thickness:9px;text-underline-offset:2px;text-decoration-skip-ink:none}
.welcome-lede{font-size:15px;line-height:1.9;color:#5a6c52;word-break:keep-all;margin:0}
.welcome-actions{display:flex;flex-direction:column;align-items:center;gap:15px;width:100%}
.welcome-actions .btn{min-width:292px;max-width:100%;padding:18px 26px;border-radius:999px;font-size:15px;box-shadow:3px 5px 0 #43583f;gap:18px}
.welcome-actions .btn:hover:not(:disabled){transform:none;background:#cddd9f}
.welcome-actions .btn span{font-size:21px}
.welcome-actions p{margin:0;font-size:11px;line-height:1.5;color:#617257}
.welcome-bottom{position:absolute;bottom:13px;left:28px;right:28px;z-index:1;display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#607255;gap:15px}
.welcome-bottom button,.text-button{border:0;background:transparent;color:#52694a;padding:8px;min-height:36px;font-size:11px;text-decoration:underline;text-underline-offset:4px}
.habitat-field{position:absolute;inset:0;pointer-events:none;z-index:0;overflow:hidden}
.field-orbit{position:absolute;border:1px dashed #dce3cf;border-radius:50%;width:82%;height:128%;left:9%;top:-15%;transform:rotate(-15deg)}
.orbit-two{width:116%;height:78%;left:-8%;top:12%;transform:rotate(15deg);opacity:.6}
.field-star{position:absolute;font-size:27px;color:#b3bc85}
.star-one{left:29%;top:32%;transform:rotate(-14deg)}
.star-two{right:26%;bottom:23%;font-size:18px;transform:rotate(12deg)}
.field-dot{position:absolute;width:7px;height:7px;background:#d8b3ac;border-radius:50%}
.dot-one{left:35%;top:12%}.dot-two{right:13%;bottom:21%;background:#b5c8b0}
.habitat-friend{position:absolute;width:var(--size);aspect-ratio:160/180;animation:habitat-drift 7s ease-in-out infinite;animation-delay:var(--phase,-1s)}
.habitat-friend:before{content:'';position:absolute;inset:20% -8% 8%;border-radius:45% 55% 52% 48%;background:var(--patch,#eef0db);transform:rotate(-12deg);opacity:.72}
.habitat-friend img{position:relative;display:block;width:100%;height:100%;object-fit:contain;transform:rotate(var(--tilt,0deg))}
.friend-one{left:7%;top:5%;--size:clamp(110px,12vw,170px);--tilt:-13deg;--patch:#eee4d0;--phase:-2s}
.friend-two{right:9%;top:2%;--size:clamp(100px,11vw,150px);--tilt:13deg;--patch:#f1dde1;--phase:-4s}
.friend-three{left:1%;top:48%;--size:clamp(130px,14vw,195px);--tilt:8deg;--patch:#e1e8d6;--phase:-1s}
.friend-four{right:2%;top:48%;--size:clamp(130px,14vw,195px);--tilt:-9deg;--patch:#e5e5ef;--phase:-5s}
.friend-five{left:23%;bottom:0;--size:clamp(85px,9vw,126px);--tilt:-11deg;--patch:#f2e6ce;--phase:-3s}
.friend-six{right:24%;bottom:-2%;--size:clamp(85px,9vw,126px);--tilt:14deg;--patch:#e0e9e2;--phase:-6s}
.friend-seven{left:30%;top:0;--size:80px;--tilt:9deg;--patch:#e4e9df;--phase:-4s}
.friend-eight{right:32%;top:0;--size:75px;--tilt:-12deg;--patch:#eee3dc;--phase:-2s}
@keyframes habitat-drift{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
.summoning-screen{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:22px;text-align:center;background:radial-gradient(ellipse,#f1f5e5,transparent 68%)}
.summoning-screen h1{font-size:clamp(23px,4vw,34px);letter-spacing:-.06em;line-height:1.5;margin:12px 0 8px;word-break:keep-all}
.summoning-screen #generatorStatus{font-size:13px;color:#5a7050;line-height:1.8;margin:0;max-width:400px;word-break:keep-all}
.summoning-screen .text-button{margin-top:21px}
.summoning-screen #summonRetry{margin-top:18px}
.summon-seed{width:174px;height:174px;position:relative;display:grid;place-items:center;margin-bottom:28px}
.seed-core{display:grid;place-items:center;background:#dfeab9;border:2px solid #6a805a;border-radius:47% 53% 43% 57%;width:92px;height:105px;font-size:32px;font-weight:700;color:#5d7750;animation:seed-heartbeat 1.4s ease-in-out infinite;box-shadow:0 8px 0 #d3ddc33d}
.seed-halo{position:absolute;inset:0;border:1px dashed #bdcdaa;border-radius:50%;animation:seed-ripple 2s ease-out infinite}
.halo-two{inset:16px;animation-delay:.6s}
.seed-spark{position:absolute;right:8px;top:13px;font-size:26px;color:#adbb88;transform:rotate(10deg)}
@keyframes seed-heartbeat{0%,100%{transform:rotate(-6deg) scale(.97)}35%{transform:rotate(-3deg) scale(1.035)}50%{transform:rotate(-5deg) scale(1)}65%{transform:rotate(-3deg) scale(1.025)}}
@keyframes seed-ripple{from{opacity:.7;transform:scale(.85)}to{opacity:0;transform:scale(1.15)}}
.summoning-screen[data-state="error"] .summon-seed *{animation:none}
.experience .result-screen{width:min(1100px,calc(100% - 48px));padding:18px 0 60px}
.result-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}
.result-heading>div:nth-child(2){text-align:center}
.result-heading .overline{font-size:10px;letter-spacing:.12em;margin:0}
.result-heading h1{font-size:27px!important;margin:4px 0!important}
.result-heading #dialogClose{position:static;display:inline-flex;width:auto;height:42px;float:none;margin:0;padding:8px 0;border:0;box-shadow:none;background:transparent;color:#526749;font-size:12px;line-height:1.5;white-space:nowrap}
.result-heading #regen{min-width:0;padding:10px 17px;border-radius:999px;font-size:12px}
.profile-page[open]{display:block;position:relative;inset:auto;width:100%;max-width:none;max-height:none;margin:0;overflow:visible;border:1px solid #dbe2d3;border-radius:28px;box-shadow:0 15px 45px #3549350a;background:#fffefb}
.profile-page .modal-layout{grid-template-columns:40% 60%}
.profile-page .modal-left{position:sticky;top:93px;align-self:start;border-radius:28px 0 0 28px;background:#edf2e4;padding:15px 0 6px}
.profile-page .modal-art{height:400px;padding:22px}
.profile-page .encounter-kicker{margin-top:12px}
.profile-page .modal-right{padding:32px 36px}
.profile-page .modal-right h2{font-size:40px;line-height:1.4;margin:10px 0}
.profile-page #modalId{display:none}
.profile-page .wild-tag{padding-bottom:10px}
.profile-page .portrait-controls{padding-bottom:17px}
.profile-page .modal-quote{font-size:16px;word-break:keep-all}
.profile-page .name-row{margin-top:22px}
.profile-page .trait strong{font-size:13px}
.profile-page.new-encounter :is(.modal-quote,.trait,.observation){animation-name:story-settles}
@keyframes story-settles{from{transform:translateY(6px)}to{transform:none}}
.profile-page .trait strong,.profile-page .observation p{overflow-wrap:anywhere}
.profile-page .modal-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
.profile-page .modal-actions .btn{min-width:0;white-space:normal;line-height:1.6}
.profile-page .modal-actions .wide{grid-column:1/-1}
.experience .favorites-section{padding:35px 0 70px;border-top:0}
.experience .how-section{padding-top:35px}
.experience.has-client-profile .shared-summary{display:none}
.shared-page:not(.has-client-profile) #mainContent{display:none}
.shared-summary{align-items:flex-start;gap:54px;width:min(1080px,calc(100% - 48px));padding-block:48px 72px}
.shared-portrait{flex:0 0 36%;background:#eaf0e2;border-radius:28px;text-align:center;padding:24px 12px;color:#53664e}
.shared-summary .shared-portrait img{display:block;width:100%;height:auto;max-height:440px;margin:auto}
.shared-summary .shared-portrait p{font-size:12px;margin:10px 0}
.shared-story{min-width:0;flex:1}.shared-kicker{color:#53664e;font-size:12px;letter-spacing:.06em}
.shared-story h1{font-size:42px;margin:12px 0;line-height:1.3;overflow-wrap:anywhere}
.shared-quote{font-size:18px;color:#354d3a;word-break:keep-all;overflow-wrap:anywhere}
.shared-traits{display:grid;grid-template-columns:1fr 1fr;gap:22px 28px;border-top:1px solid #dce3d4;margin:27px 0;padding-top:25px}
.shared-traits>div:first-child{grid-column:1/-1}.shared-traits dt{font-size:11px;color:#53664e;margin-bottom:7px}
.shared-traits dd{margin:0;font-size:14px;line-height:1.8;word-break:keep-all;overflow-wrap:anywhere}
.shared-observation{padding:18px 20px;background:#f4f3eb;border-radius:16px}.shared-observation h2{font-size:12px;font-weight:400;color:#53664e;margin:0 0 8px}
.shared-summary .shared-observation p{font-size:14px;margin:0;word-break:keep-all;overflow-wrap:anywhere}
.shared-expiry{font-size:11px;color:#53664e;margin:20px 0}
@media(max-width:650px){.shared-summary{width:calc(100% - 32px);gap:22px;padding-block:22px 40px}.shared-portrait{width:100%;flex-basis:auto;padding:12px}.shared-summary .shared-portrait img{width:230px;max-width:100%}.shared-story h1{font-size:34px}.shared-story .shared-quote{font-size:17px}.shared-traits{gap:20px}.shared-story .btn{width:100%;margin:8px 0}}
.experience:is([data-screen="shared-loading"],[data-screen="certificate"]) #mainContent{display:none}
.experience.habitat-hidden :is(.habitat-friend,.summon-seed *){animation-play-state:paused!important}
.character-motion-paused :is(.habitat-friend,.summon-seed *){animation:none!important}
@media(max-width:1050px){.friend-seven,.friend-eight{display:none}.friend-five{left:18%}.friend-six{right:18%}.welcome-copy{max-width:490px}.profile-page .modal-art{height:330px}}
@media(max-width:650px){
 .experience .site-header{height:58px;min-height:58px;padding:0 14px}
 .experience .brand{font-size:12px;gap:6px;letter-spacing:-.05em}.experience .brand-mark{height:32px;width:32px;font-size:13px}.experience .brand small{font-size:8px;letter-spacing:.11em}
 .experience .nav-link{font-size:11px;padding:9px 6px}.experience .nav-count{padding:2px 5px;margin-left:1px}
 .experience .footer .footrow{display:block}.experience .footer-links{display:flex;flex-wrap:wrap;gap:13px;margin-top:14px}.experience:is([data-screen="welcome"],[data-screen="summoning"]) .footer-links{margin:0;gap:13px;font-size:9px}
 .welcome-copy{gap:18px;padding:12px 23px 45px;max-width:100%}.welcome-copy h1{font-size:49px}.welcome-lede{font-size:13px;line-height:1.85}
 .welcome-eyebrow{font-size:10px;letter-spacing:.05em}.welcome-actions{gap:13px}.welcome-actions .btn{min-width:0;width:270px;max-width:100%;font-size:14px;padding:16px 22px}.welcome-actions p{font-size:10px}
 .welcome-bottom{justify-content:center;bottom:5px;left:15px;right:15px}.welcome-bottom>span{display:none}.welcome-bottom button{font-size:10px}
 .friend-one{left:-13px;top:1%;--size:91px}.friend-two{right:-7px;top:5%;--size:85px}.friend-three{left:-15px;top:auto;bottom:25px;--size:108px}.friend-four{right:-17px;top:auto;bottom:23px;--size:113px}.friend-five,.friend-six{display:none}
 .star-one{left:13%;top:29%;font-size:17px}.star-two{right:14%;bottom:29%;font-size:16px}.dot-one{left:66%;top:9%;width:5px;height:5px}.dot-two{right:21%;bottom:8%;width:5px;height:5px}
 .field-orbit{width:130%;height:80%;left:-15%;top:10%}.orbit-two{width:130%;height:115%;top:-7%;left:-15%}
 .summon-seed{width:148px;height:148px;margin-bottom:23px}.seed-core{width:82px;height:93px;font-size:28px}.summoning-screen h1{font-size:24px}.summoning-screen #generatorStatus{font-size:12px}
 .experience .result-screen{width:calc(100% - 24px);padding-top:10px}
 .result-heading{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:17px}.result-heading>div:nth-child(2){grid-column:1/-1;grid-row:2;text-align:left;padding:4px 5px 0}.result-heading #regen{justify-self:end;font-size:11px;padding:9px 13px}.result-heading #dialogClose{font-size:11px;padding-left:4px}.result-heading h1{font-size:26px!important}
 .profile-page[open]{border-radius:23px}.profile-page .modal-layout{display:block}.profile-page .modal-left{position:static;border-radius:23px 23px 0 0;padding-top:10px}.profile-page .modal-art{height:245px;padding:10px 30px}.profile-page .encounter-kicker{margin-top:9px}.profile-page .wild-tag{font-size:11px}
 .profile-page .modal-right{padding:24px 20px}.profile-page .modal-right h2{font-size:33px}.profile-page .modal-quote{font-size:15px;padding:15px}.profile-page .trait strong{font-size:12px}.profile-page .trait{padding:12px}
 .experience .favorites-section,.experience .how-section{padding-top:24px}.experience :is(.section-head,.result-heading) h1{font-size:26px}
}
@media(max-height:700px){.welcome-copy{gap:15px}.welcome-copy h1{font-size:clamp(41px,6vw,64px)}.welcome-lede{font-size:13px}.welcome-actions{gap:11px}.welcome-actions .btn{padding-block:14px}.summon-seed{width:126px;height:126px;margin-bottom:17px}.seed-core{width:72px;height:82px}.summoning-screen h1{font-size:23px}}
@media(max-width:650px) and (max-height:700px){.friend-three,.friend-four{--size:80px;bottom:12px}.star-one{top:34%}.star-two{bottom:25%}}
@media(max-height:450px){.experience:is([data-screen="welcome"],[data-screen="summoning"]){height:auto;min-height:100svh;overflow:auto}.welcome-screen{min-height:330px}.summoning-screen{min-height:350px}.welcome-copy{padding-top:18px}.habitat-friend{opacity:.7}}
@media(prefers-reduced-motion:reduce){.habitat-friend,.summon-seed *{animation:none!important}.new-encounter :is(.portrait-button,.modal-quote,.trait,.observation){animation:none!important}}

/* Advertising is below the complete profile; interaction controls stay above this gap. */
.experience .ad-section{display:block;margin:160px auto 64px;padding:0;width:100%;max-width:920px;border:0;background:none}
.ad-consent{padding:24px;border:1px solid var(--line,#cadbbf);border-radius:18px;background:#fffdf7;color:#34463a}
.ad-consent h2{font-size:18px;margin:0 0 10px}.ad-consent p{line-height:1.8;margin:0 0 16px}
.ad-choices{display:flex;flex-wrap:wrap;gap:12px}.ad-choices .btn{white-space:normal;min-height:44px}
.ad-inventory{margin-top:160px;border-top:1px solid #cadbbf;padding-top:24px;min-width:0}
.ad-inventory:has(#adSlot[hidden]){display:none}
#adSlot{min-height:280px;width:100%;min-width:0;overflow:hidden;color:#34463a}
#adSettings{font:inherit;color:inherit;border:0;background:none;text-decoration:underline;cursor:pointer;min-height:44px}
.ad-preferences{max-width:min(540px,calc(100vw - 32px));padding:28px;border:1px solid #cadbbf;border-radius:20px;color:#34463a;background:#faf9f3}
.ad-preferences::backdrop{background:rgb(30 42 33 / .35)}

.ad-section[hidden],#adConsent[hidden],#adSlot[hidden],#adSettings[hidden]{display:none!important}
