/* Shared public landing popup surface. Form values, flow, and type sizes are untouched. */
:root{--popup-bg:linear-gradient(180deg,rgba(253,250,244,.96),rgba(241,234,221,.98));--popup-ink:#2b2117;--popup-muted:#594b3b;--popup-gold:#9a6e2c;--popup-edge:rgba(168,122,51,.5);--popup-field:rgba(255,252,244,.87);--popup-shadow:0 0 30px #c99c5029,0 14px 34px #46321933;--popup-light:#ae803a}
html[data-theme="dark"]{--popup-bg:linear-gradient(180deg,rgba(32,27,21,.94),rgba(13,11,9,.97));--popup-ink:#f7f0e3;--popup-muted:#ddd4c6;--popup-gold:#ead39f;--popup-edge:rgba(217,194,150,.42);--popup-field:rgba(17,14,10,.87);--popup-shadow:0 0 34px #ffbe6e2e,0 14px 36px #0007;--popup-light:#f4d9a3}
html body:not(.is-logged-in) .landing-gold-popup{
 --about-ink:var(--popup-ink);--about-muted:var(--popup-muted);--about-accent:var(--popup-gold);
 color:var(--popup-ink)!important;background:var(--popup-bg)!important;border:1px solid var(--popup-edge)!important;
 border-radius:20px!important;box-shadow:inset 0 1px 0 #ffecc829,var(--popup-shadow)!important;
 isolation:isolate;font-family:"Jost","Avenir Next",sans-serif;
}
.landing-circuit{position:absolute;top:0;left:0;width:100%;height:100%;z-index:-1;pointer-events:none;color:var(--popup-light);border-radius:inherit;overflow:hidden;opacity:1}
.circuit-liquid{stroke-dasharray:.01 100;animation:circuit-liquid-fall var(--flow-duration) linear var(--flow-delay) infinite}
@keyframes circuit-liquid-fall{from{stroke-dashoffset:0;opacity:0}10%,90%{opacity:.7}to{stroke-dashoffset:-100;opacity:0}}
@media(prefers-reduced-motion:reduce){.circuit-liquid{display:none;animation:none}}
html.reduce-motion .circuit-liquid{display:none;animation:none}
html body:not(.is-logged-in) .account-screen{place-items:start end;padding-top:max(76px,env(safe-area-inset-top));background:transparent!important}
html body:not(.is-logged-in) .landing-gold-popup.account-dialog{max-height:calc(100dvh - 92px)}
html body:not(.is-logged-in) .landing-gold-popup.spossity-about{position:fixed;top:max(76px,env(safe-area-inset-top));right:16px;left:auto;bottom:auto;margin:0;max-height:calc(100dvh - 92px);height:auto;overflow-y:auto}
html body:not(.is-logged-in) .landing-gold-popup.spossity-about::backdrop{background:transparent}
html body:not(.is-logged-in) .landing-gold-popup .account-header{background:transparent}
html body:not(.is-logged-in) .landing-gold-popup :is(h1,h2,h3){font-family:"Cormorant Garamond",Georgia,serif;color:var(--popup-ink)!important}
html body:not(.is-logged-in) .landing-gold-popup :is(h1,h2,h3) span{color:var(--popup-gold)!important}
html body:not(.is-logged-in) .landing-gold-popup :is(.account-field > span,.account-field > label,.account-card > p,.account-password-note,.auth-switch,.about-intro,.about-body,.kicker){color:var(--popup-muted)!important}
html body:not(.is-logged-in) .landing-gold-popup :is(input,select,textarea){color:var(--popup-ink)!important;background:var(--popup-field)!important;border-color:var(--popup-edge)!important;accent-color:var(--popup-gold)}
html body:not(.is-logged-in) .landing-gold-popup :is(input,textarea)::placeholder{color:var(--popup-muted)!important;opacity:.7}
html body:not(.is-logged-in) .landing-gold-popup :is(.account-submit,.btn.primary){background:linear-gradient(180deg,#f2dba2,#c99c50)!important;color:#0b285b!important;border:1px solid #ffeec6d9!important;box-shadow:0 0 18px #ffbe6e38!important}
html body:not(.is-logged-in) .landing-gold-popup :is(.account-close,.sheet-close,.about-back){color:var(--popup-ink)!important;background:var(--popup-field)!important;border:1px solid var(--popup-edge)!important;border-radius:50%;box-shadow:none}
html body:not(.is-logged-in) .landing-gold-popup :is(.btn:not(.primary),.lang-option[aria-checked="true"]){background:var(--popup-field);color:var(--popup-gold);border-color:var(--popup-edge)}
html body:not(.is-logged-in) .landing-gold-popup :focus-visible{outline-color:var(--popup-gold)!important}
/* The small About, Languages, and Sam sheets share the story card's opening position. */
html body #sheet.landing-gold-popup{top:calc(env(safe-area-inset-top,0px) + 76px);right:max(16px,env(safe-area-inset-right,0px));left:auto;bottom:auto;width:min(400px,calc(100% - 32px));max-height:calc(100dvh - 92px)}
#sheet-backdrop{background:transparent!important;backdrop-filter:none!important}
html body #sheet.landing-gold-popup p{color:var(--popup-muted)}
@media(max-width:600px){html body:not(.is-logged-in) .landing-gold-popup.spossity-about{width:calc(100% - 32px);max-width:calc(100% - 32px)}html body:not(.is-logged-in) .landing-gold-popup .about-content{padding:20px 22px 24px}}
body:not(.is-logged-in) .account-screen:not([hidden]) .landing-gold-popup,
body:not(.is-logged-in) .landing-gold-popup.spossity-about[open],
#sheet.landing-gold-popup:not([hidden]){animation:landing-popup-in .35s var(--sp-ease-glide)}
@keyframes landing-popup-in{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.landing-gold-popup{animation:none!important}}

/* Match the approved landing's type roles and glyph relief without resizing cards. */
html body:not(.is-logged-in) .landing-gold-popup :is(p,button,input,select,textarea,label,summary){font-family:"Jost","Avenir Next",sans-serif}
html body:not(.is-logged-in) .landing-gold-popup :is(h1,h2,h3){font-weight:600;text-shadow:0 1px 0 #ffffffcc!important}
html[data-theme="dark"] body:not(.is-logged-in) .landing-gold-popup :is(h1,h2,h3){text-shadow:0 2px 14px rgba(12,9,6,.92)!important}
html body:not(.is-logged-in) .landing-gold-popup :is(.account-submit,.btn,.about-row,.lang-option){text-shadow:0 1px 0 #ffffff66,0 -1px 0 #765a3826!important}
html[data-theme="dark"] body:not(.is-logged-in) .landing-gold-popup :is(.about-row,.lang-option,.btn:not(.primary)){text-shadow:0 1px 0 #0009,0 -1px 0 #fff3!important}
html body:not(.is-logged-in) .landing-gold-popup :is(.account-wordmark img,header img){filter:none!important;box-shadow:none!important;background:transparent!important;mix-blend-mode:normal;content:normal!important}
html body:not(.is-logged-in) .landing-gold-popup .about-row svg{filter:drop-shadow(0 1px 0 #0009) drop-shadow(0 -1px 0 #fff4)}
