[hidden]{display:none!important}
.survivor-creator .sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}
.auth-site:has(.survivor-creator:not([hidden]))>.public-nav{display:none}
.survivor-creator{position:relative;isolation:isolate;height:100dvh;min-height:660px;color:#edf0e8;overflow:hidden;background:#0c1c28}
.creator-scene{position:absolute;inset:0;z-index:-1;background:#142d38}
#creator-portrait{position:absolute;top:78px;bottom:340px;left:0;right:0;display:flex;justify-content:center;align-items:center;min-height:0}
#creator-portrait>:is(.male-rive,.female-rive){position:relative;align-self:flex-end;height:82%;aspect-ratio:2/3;max-width:100%;flex:none}
#creator-portrait :is(.male-rive,.female-rive)>canvas{display:block;width:100%;height:100%;touch-action:pan-y}
#creator-portrait .male-rive-status{position:absolute;inset:auto 0 42%;text-align:center;color:#b8cad3;font-size:12px}
.creator-colour-preview-note{display:block;margin-top:7px;text-align:center;color:#a9bfca;font-size:10px}
.creator-heading{position:absolute;top:20px;left:20px;right:20px;text-align:center;z-index:2}
.creator-heading>a{position:absolute;left:0;top:0;width:44px;height:44px;display:grid;place-items:center;font:42px/1 Georgia;color:#ffdb8c;text-decoration:none;background:#0d20267a;border-radius:50%}
.creator-heading h1{font-size:25px;margin:12px 0 0;color:#f0f4f7;text-shadow:0 2px 6px #0008}




.creator-controls{position:absolute;bottom:104px;left:50%;transform:translateX(-50%);width:min(640px,calc(100% - 32px));min-height:205px;padding:18px 24px;background:linear-gradient(125deg,#14242fed,#101f29ed);border:1px solid #314a59;border-radius:24px;box-shadow:0 12px 40px #0004;backdrop-filter:blur(12px)}
.creator-control-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.creator-control-heading h2{font-size:20px;margin:0;color:#f0f4f7}.creator-control-heading small{font:11px Arial,sans-serif;color:#8fa7b2;margin-left:8px}.creator-control-heading>button{width:36px;height:36px;border:1px solid #a6905555;border-radius:10px;background:#a690551c;color:#ffcf72;font-size:24px;cursor:pointer}
.creator-category-tabs{display:flex;justify-content:space-between;gap:6px;border-bottom:0;padding-bottom:12px;margin-bottom:14px}
.creator-category-tabs button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;flex:1;min-width:0;min-height:47px;padding:2px;background:none;border:0;color:#a9bdcc;border-radius:6px;cursor:pointer;font-size:10px;position:relative}
.creator-category-tabs button svg{width:23px;height:23px;flex-shrink:0}.creator-category-tabs [aria-pressed=true]{color:#ffc34d}.creator-category-tabs [aria-pressed=true]:after{content:'';position:absolute;height:2px;background:#ffc34d;bottom:-13px;width:24px;border-radius:2px}
.creator-choice{padding:0;margin:0;border:0;min-width:0}.creator-choice:not(.is-active){display:none}.creator-sex,.creator-options{display:flex;gap:7px}.creator-sex button,.creator-options button{flex:1;min-width:0;min-height:42px;border:1px solid #8095a230;border-radius:10px;padding:8px 6px;background:#ffffff08;color:#f0f4f7;font-size:12px;cursor:pointer}.creator-sex button{font-size:14px}.creator-choice button[aria-pressed=true]{border-color:#ffc34d;background-color:#ffc34d14;color:#ffc34d}
.creator-colours{display:flex;align-items:center;justify-content:center;gap:11px;margin-top:12px;min-height:32px}.creator-colours>span{font-size:10px;color:#a7bac5;margin-right:5px}.creator-colours .creator-swatch{width:30px;height:30px;min-height:30px;flex:0 0 30px;border:2px solid #ffffff44;background:var(--swatch);border-radius:50%;padding:0;color:#fff;text-shadow:0 1px 3px #000;cursor:pointer}.creator-colours .creator-swatch[aria-pressed=true]{background:var(--swatch);border-color:#ffc34d;outline:2px solid #ffc34d44;outline-offset:2px}
.creator-footer{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);width:min(580px,calc(100% - 48px));display:grid;gap:9px;text-align:center;padding:0;border:0}.creator-footer>.public-button{display:block;min-height:52px;width:100%;background:linear-gradient(#ffda85,#f2bf54);border:1px solid #ffda88;color:#272416;font-size:15px;font-weight:700;border-radius:24px;box-shadow:0 6px 25px #0004;cursor:pointer}.creator-controls button:focus-visible,.creator-heading a:focus-visible{outline:2px solid #ffe5a4;outline-offset:3px}
.signup-details .account-story{display:none}.account-layout.signup-details{display:block;max-width:600px;margin:24px auto;padding:0 20px 32px}.signup-details .account-card{width:100%}.signup-details .account-switch{display:none}.signup-name-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.signup-name-fields>div{min-width:0}.signup-name-fields input{width:100%}.signup-name-help{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0}.signup-name-help button,.creator-back{color:#ffcf62;background:none;border:0;padding:8px 0;font-size:12px;cursor:pointer}.creator-account-step{font-size:10px;letter-spacing:1px;color:#a8bac3}#name-availability{font-size:11px;color:#b1d4bd;min-height:16px;margin:5px 0 16px}.customized-survivor{aspect-ratio:640/1536}.paper-survivor.customized-survivor>.custom-survivor{position:absolute;inset:0;width:100%;height:100%;overflow:visible;filter:drop-shadow(0 5px 5px #0003)}
@media(max-width:800px){.creator-scene{background:#142d38}.creator-heading{top:16px}.creator-heading h1{font-size:22px;margin-top:10px}#creator-portrait{top:70px;bottom:326px}.creator-controls{padding:14px 16px;bottom:98px;width:calc(100% - 24px);border-radius:22px;min-height:210px}.creator-control-heading{margin-bottom:8px}.creator-control-heading h2{font-size:19px}.creator-category-tabs{gap:3px;margin-bottom:12px;padding-bottom:10px}.creator-category-tabs button{font-size:9px}.creator-category-tabs button svg{width:22px;height:22px}.creator-category-tabs [aria-pressed=true]:after{bottom:-11px}.creator-options button{font-size:10px;padding:8px 3px}.creator-colours{gap:8px;margin-top:11px}.creator-colours>span{font-size:9px;margin-right:0}.creator-colours .creator-swatch{width:29px;height:29px;min-height:29px;flex-basis:29px}.creator-footer{bottom:calc(14px + env(safe-area-inset-bottom,0px));width:calc(100% - 48px)}.signup-details .account-card{padding:22px 18px}.signup-name-help{align-items:flex-start}.signup-name-help small{max-width:180px}.auth-site .public-nav{padding:14px 20px}}
@media(min-width:1100px){.creator-controls{width:620px}.creator-scene{background-position:center 58%}#creator-portrait{top:70px;bottom:338px}}
@media(max-height:720px){.survivor-creator{min-height:640px}.creator-controls{bottom:92px;padding-top:10px;padding-bottom:12px;min-height:195px}.creator-control-heading{margin-bottom:5px}#creator-portrait{top:66px;bottom:314px}.creator-heading h1{font-size:20px}.creator-footer{bottom:10px}}
/* Solid panels keep the controls crisp on embedded and mobile browsers. */
.creator-controls{backdrop-filter:none;background:linear-gradient(125deg,#14242f,#101f29)}
.creator-controls,.creator-footer{left:0;right:0;margin-left:auto;margin-right:auto;transform:none}
/* Creator uses the same midnight blue and amber as shelter-theme.css. */
.auth-site:has(.survivor-creator){--gold:#ffc34d;--muted:#a9bdcc}
.creator-controls{bottom:84px;background:#14242f;border-color:#314a59;border-radius:18px}
.creator-heading h1{color:#f0f4f7}.creator-heading>a{color:#ffc34d;background:#14242fcc}
.creator-control-heading>button{width:auto;min-height:36px;padding:7px 13px;font-size:12px;background:#1a2e3b;color:#ffc34d;border:1px solid #314a59;border-radius:8px}
.creator-controls button:hover:not(:disabled){background-color:#233e4f;border-color:#537695}
.creator-choice button[aria-pressed=true]{border-color:#ffc34d;color:#ffc34d;background-color:#ffc34d14}
.creator-colours button.creator-swatch,.creator-colours button.creator-swatch:hover{background:var(--swatch)}
.creator-footer{bottom:18px}.public-site .creator-footer>.public-button,.creator-account-sheet .public-button{background:linear-gradient(180deg,#ffd46b,#ffb932);border:1px solid #ffd774;color:#221a09;border-radius:12px;box-shadow:0 3px 0 #a57223;font-weight:700}
.public-site .creator-footer>.public-button:hover,.creator-account-sheet .public-button:hover{background:linear-gradient(180deg,#ffdf8a,#ffc34d)}
#creator-portrait{bottom:318px}.creator-controls,.creator-footer{transition:opacity .25s ease,translate .35s ease}.creator-scene{transition:filter .35s ease}
.is-account-open .creator-controls,.is-account-open .creator-footer{opacity:0;translate:0 28px;pointer-events:none}.is-account-open .creator-scene{filter:brightness(.75)}
.creator-choice.is-active{animation:creator-choice-in .18s ease-out}
@keyframes creator-choice-in{from{opacity:0;translate:0 5px}to{opacity:1;translate:0 0}}
.creator-subheading{display:block;margin:0 0 7px;color:#cddce1;font-size:11px;font-weight:750;letter-spacing:.04em}
.creator-beard-group{margin-top:12px}
.creator-beard-group[hidden]{display:none}
.creator-beard-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.creator-beard-options button{min-height:34px;padding:5px 4px}
.creator-beard-group>small{display:block;margin-top:7px;color:#a9bfca;font-size:10px}
.creator-controls:has([data-look-panel="face"].is-active){min-height:300px}
.survivor-creator.is-profile-editor{position:fixed;inset:0;z-index:1000;width:100%;height:100dvh;min-height:640px}
.is-profile-editor .creator-heading h1{margin-top:10px}
.creator-edit-back{position:absolute;left:0;top:0;display:grid;place-items:center;width:42px;height:42px;padding:0;border:0;border-radius:14px;background:#203d49;color:#ffd174;box-shadow:0 4px 12px #07182055;cursor:pointer}
.creator-edit-back:hover{background:#2b5060}

.is-profile-editor .creator-footer>.public-button{background:linear-gradient(180deg,#ffd46b,#ffb932);border:0;border-radius:12px;color:#221a09;box-shadow:0 3px 0 #a57223}
.survivor-creator.is-profile-editor>.creator-controls{bottom:calc(62px + env(safe-area-inset-bottom,0px))}
@media(max-width:800px){.creator-beard-options button{font-size:9px}.creator-controls:has([data-look-panel="face"].is-active){min-height:302px}}
.creator-account-sheet{position:fixed;inset:auto 0 0;margin:0 auto;padding:0;width:min(540px,100%);max-width:100%;max-height:calc(100dvh - 90px);border:1px solid #314a59;border-bottom:0;border-radius:22px 22px 0 0;background:#14242f;color:#f0f4f7;box-shadow:0 -12px 60px #030c1477;overflow-y:auto;overscroll-behavior:contain;color-scheme:dark}
.creator-account-sheet[open]{animation:creator-sheet-in .38s cubic-bezier(.2,.8,.2,1)}
.creator-account-sheet::backdrop{background:#06111a55;animation:creator-backdrop-in .3s ease}
.creator-account-sheet.is-closing{animation:creator-sheet-out .24s ease-in forwards}.creator-account-sheet.is-closing::backdrop{animation:creator-backdrop-out .24s ease-in forwards}
.account-layout.signup-details{min-height:0;margin:0;max-width:none;padding:0;display:block}
.creator-account-sheet .account-card{max-width:none;padding:24px 28px calc(24px + env(safe-area-inset-bottom,0px));border:0;border-radius:0;background:#14242f;box-shadow:none}
.creator-sheet-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.creator-sheet-heading>span{font-size:9px;letter-spacing:1.3px;color:#a9bdcc}.creator-sheet-heading .creator-back{padding:8px 0;color:#ffc34d}
.creator-account-sheet .account-card h2{font-size:25px;color:#f0f4f7}.creator-account-sheet .account-card>p{color:#a9bdcc}
.creator-account-sheet .account-card label{margin-top:16px;color:#a9bdcc}.creator-account-sheet input,.creator-account-sheet select{background:#0d1b25;border-color:#314a59;color:#f0f4f7;font-size:16px}
.creator-account-sheet :focus-visible,.survivor-creator :focus-visible{outline:2px solid #ffc34d!important;outline-offset:3px}
.creator-account-sheet .signup-name-help button{color:#ffc34d;white-space:nowrap}.creator-account-sheet .public-fine{margin-top:12px;font-size:10px}
@keyframes creator-sheet-in{from{transform:translateY(100%);opacity:.6}to{transform:translateY(0);opacity:1}}
@keyframes creator-sheet-out{to{transform:translateY(100%);opacity:0}}
@keyframes creator-backdrop-in{from{background:#06111a00}to{background:#06111a55}}
@keyframes creator-backdrop-out{to{background:#06111a00}}
@media(max-width:800px){.creator-controls{bottom:calc(82px + env(safe-area-inset-bottom,0px))}.creator-footer{bottom:calc(16px + env(safe-area-inset-bottom,0px))}#creator-portrait{bottom:308px}.creator-account-sheet .account-card{padding:18px 20px calc(20px + env(safe-area-inset-bottom,0px))}.creator-account-sheet .account-card h2{font-size:23px}}
@media(min-width:801px){.creator-account-sheet{inset:90px 28px 24px auto;width:480px;max-height:calc(100dvh - 114px);border-bottom:1px solid #314a59;border-radius:20px}.creator-account-sheet[open]{animation-name:creator-sheet-side-in}.creator-account-sheet.is-closing{animation-name:creator-sheet-side-out}}
@keyframes creator-sheet-side-in{from{transform:translateX(70px);opacity:0}to{transform:translateX(0);opacity:1}}
@keyframes creator-sheet-side-out{to{transform:translateX(70px);opacity:0}}
@media(prefers-reduced-motion:reduce){.creator-account-sheet,.creator-account-sheet::backdrop,.creator-choice.is-active{animation:none!important}.creator-controls,.creator-footer,.creator-scene{transition:none}}

.creator-account-sheet #name-availability:empty{min-height:0;margin:0}
.creator-account-sheet .signup-name-help{margin-bottom:12px}

/* Welcome, appearance and account details share one uninterrupted scene. */
.creator-entry{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:clamp(30px,7vh,70px) 24px calc(32px + env(safe-area-inset-bottom,0px));opacity:0;visibility:hidden;translate:0 20px;transition:opacity .35s ease,translate .4s ease,visibility .4s}
.creator-entry>img{width:min(350px,75vw);height:auto;filter:drop-shadow(0 4px 15px #0008)}
.creator-entry-actions{width:min(420px,100%);display:grid;gap:12px;padding:20px;background:#14242feF;border:1px solid #314a59;border-radius:18px;box-shadow:0 12px 40px #0005}
.creator-entry-actions>button{min-height:52px;border-radius:10px;font-weight:700}.creator-entry-actions>[data-entry-login]{background:#1a2e3b;border:1px solid #537695;color:#f0f4f7}.creator-entry-actions>.public-button{background:linear-gradient(#ffd46b,#ffb932);border-color:#ffd774;color:#221a09}
.creator-heading{transition:opacity .3s ease,translate .35s ease,visibility .35s}
.is-entry .creator-entry{opacity:1;visibility:visible;translate:0 0}.is-entry .creator-heading,.is-entry .creator-controls,.is-entry .creator-footer{opacity:0;visibility:hidden;translate:0 20px;pointer-events:none}
.is-entry #creator-portrait{top:clamp(140px,22vh,205px);bottom:205px;transition:top .4s ease,bottom .4s ease}
.is-account-open .creator-entry{opacity:0;visibility:hidden;translate:0 20px}
@media(prefers-reduced-motion:reduce){.creator-entry,.creator-heading,.is-entry #creator-portrait{transition:none}}

#creator-portrait{transition:top .4s ease,bottom .4s ease}
@media(prefers-reduced-motion:reduce){#creator-portrait{transition:none}}

.creator-heading>a{padding:0;line-height:0}.creator-heading>a>svg{display:block;width:24px;height:24px}

/* Browser-only homepage navigation; native and installed app flows stay contained. */
.creator-home-back{position:absolute;top:calc(16px + env(safe-area-inset-top,0px));left:calc(20px + env(safe-area-inset-left,0px));width:44px;height:44px;display:grid;place-items:center;border-radius:50%;background:#14242fcc;color:#ffc34d;text-decoration:none;z-index:3}
.creator-home-back:hover{background:#233e4f}.creator-home-back:focus-visible{outline:2px solid #ffc34d;outline-offset:3px}
.is-app-shell .creator-home-back,.is-app-shell .creator-heading>a{display:none}
@media(display-mode:standalone),(display-mode:fullscreen),(display-mode:minimal-ui){.creator-home-back,.creator-heading>a{display:none}}
/* A calm blue wash carries the character scene through the signup journey. */
@media(max-width:800px){.creator-scene{background:#142d38}.creator-account-sheet{max-height:94dvh}}
.journey-pane{min-width:0}.journey-pane input{width:100%;box-sizing:border-box}.journey-modes{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:22px 0}.journey-modes button{display:flex;align-items:center;justify-content:center;gap:10px;min-height:70px;background:#122c3c;color:#b8cbd6;border:1px solid #456070;border-radius:12px;font-weight:700}.journey-modes button[aria-pressed=true]{color:#ffd16b;border-color:#e1b45e;background:#30382e}.journey-modes svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.6}.journey-mode-copy{padding:18px;background:#10232e;border:1px solid #304b5b;border-radius:12px}.journey-mode-copy h3{font-size:16px;margin:0 0 8px}.journey-mode-copy p{color:#b7c9d3;line-height:1.65;margin-bottom:20px}.journey-google{display:grid;gap:12px;text-align:center;margin:22px 0}.journey-google button{min-height:48px;border:1px solid #426073;background:#183140;color:#9eb4c3}.creator-account-sheet #account-form>.public-button{width:100%;margin-top:20px;min-height:50px}.creator-account-sheet .journey-pane{animation:none}
/* One full-screen creation stage, with inline pages instead of a modal sheet. */
.survivor-creator>.creator-journey-stage{position:absolute;inset:0;z-index:8;display:block;width:100%;max-width:none;height:100%;max-height:none;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;overflow-x:hidden;overflow-y:auto;background:linear-gradient(120deg,#102b40ed,#0b1e2beb);backdrop-filter:none;animation:none!important;box-sizing:border-box}
.creator-journey-stage .account-layout{display:block;width:min(100%,680px);max-width:680px;margin:0 auto;padding:clamp(24px,6vh,72px) 24px;box-sizing:border-box;min-height:100%}
.creator-journey-stage .account-story{display:none}.creator-journey-stage .account-card{width:100%;max-width:none;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.creator-journey-stage .account-card h2{font-size:clamp(28px,4vw,40px);margin-top:32px}.creator-journey-stage .creator-sheet-heading{margin-bottom:28px}.creator-journey-stage .journey-pane{margin-top:30px}.creator-journey-stage input{min-height:52px}
.survivor-creator.is-account-open>.creator-controls,.survivor-creator.is-account-open>.creator-footer,.survivor-creator.is-account-open>.creator-heading,.survivor-creator.is-account-open>.creator-entry{visibility:hidden;pointer-events:none}
@media(max-width:800px){.creator-journey-stage .account-layout{padding:calc(26px + env(safe-area-inset-top,0px)) 24px 40px}.creator-journey-stage .account-card h2{margin-top:24px}.creator-journey-stage .signup-name-fields{grid-template-columns:1fr}.creator-journey-stage .creator-sheet-heading{margin-bottom:24px}}
/* The survivor stays on stage; only the controls below move between steps. */
.survivor-creator.is-account-open .creator-scene{filter:none}
.survivor-creator.is-account-open>.creator-heading{visibility:visible;pointer-events:none}
.survivor-creator.is-account-open>.creator-heading>a{visibility:hidden}
.survivor-creator:not(.is-entry) #creator-portrait{top:78px;bottom:370px}
.survivor-creator>.creator-journey-stage{top:auto;bottom:0;height:365px;background:linear-gradient(180deg,#0c1e2b00,#0c1e2be8 12%,#0c1e2b 60%);overflow-y:auto}
.creator-journey-stage .account-layout{min-height:0;max-width:660px;padding:10px 24px 20px}
.creator-journey-stage .creator-sheet-heading{margin:0 0 12px}
.creator-journey-stage .account-card>h2,.creator-journey-stage .account-card>p:not(.public-fine){display:none}
.creator-journey-stage .journey-pane{margin-top:0}
.creator-journey-stage .signup-name-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.creator-journey-stage .account-card label{margin-top:6px}
.creator-journey-stage .public-fine{font-size:10px;line-height:1.5;margin-top:8px}
.creator-journey-stage .journey-modes{margin:0 0 12px}
.creator-journey-stage .journey-modes button{min-height:48px}
.creator-journey-stage .journey-mode-copy{padding:12px;font-size:12px}
.creator-journey-stage .journey-mode-copy h3{font-size:13px;margin:0 0 4px}
.creator-journey-stage .journey-mode-copy p{line-height:1.45;margin:0 0 8px}
.creator-journey-stage #account-form>.public-button{margin-top:12px;min-height:48px}
.creator-journey-stage .journey-google{margin:10px 0;gap:6px}
.creator-journey-stage .journey-google>span{display:none}
.creator-journey-stage .journey-google button{min-height:38px;font-size:12px}
.creator-journey-stage input{min-height:44px}
@media(max-width:800px){.survivor-creator:not(.is-entry) #creator-portrait{top:74px;bottom:365px}.creator-journey-stage .account-layout{padding:12px 20px 20px}.creator-journey-stage .signup-name-help{margin:8px 0}.creator-journey-stage .signup-name-help small{max-width:180px}}
/* Hardcore has its own danger palette in the challenge selector. */
.journey-modes button[data-challenge="hardcore"]{background:linear-gradient(135deg,#48242c,#291d28);border-color:#9b5056;color:#efa9a0;box-shadow:inset 0 1px 0 #ffb3a315;transition:background .2s ease,border-color .2s ease,box-shadow .2s ease}
.journey-modes button[data-challenge="hardcore"]:hover{border-color:#e47a76;background:linear-gradient(135deg,#642c36,#36202b)}
.journey-modes button[data-challenge="hardcore"][aria-pressed="true"]{background:linear-gradient(135deg,#962f3e,#501f2c);border-color:#ff8b80;color:#ffe2d8;box-shadow:inset 0 1px 0 #ffc1ac33,0 0 18px #cf344332}
@media(prefers-reduced-motion:reduce){.journey-modes button[data-challenge="hardcore"]{transition:none}}
.offline-choice{width:100%;margin:12px 0;padding:12px;border:1px solid #547183;border-radius:8px;background:#18303d;color:#d0e0e6}.offline-choice-warning{padding:16px;border:1px solid #c7a264;border-radius:10px;background:#1e2b32}.offline-choice-warning p{font-size:13px;line-height:1.6;color:#cad5da}.offline-choice-warning button{padding:12px;margin:6px 4px 0 0;border-radius:8px}.offline-choice-warning [data-create-offline]{background:#ffd16b;color:#221b0e}.offline-choice-warning [data-offline-back]{background:#17313e;color:#d6e2e7}
/* Appearance preview uses the space above its own controls, not the account form. */
.survivor-creator:not(.is-entry):not(.is-account-open) #creator-portrait{top:100px;bottom:300px}
@media(max-width:800px){.survivor-creator:not(.is-entry):not(.is-account-open) #creator-portrait{top:92px;bottom:calc(300px + env(safe-area-inset-bottom,0px))}}
@media(max-height:720px){.survivor-creator:not(.is-entry):not(.is-account-open) #creator-portrait{top:84px;bottom:300px}}
#creator-load-error{margin:10px 0 0;font-size:12px;color:#ffcba8;line-height:1.5}
#creator-load-error button{margin-left:6px;min-height:32px;padding:4px 12px;border:1px solid #a99054;border-radius:7px;background:#23343b;color:#ffcf72;cursor:pointer}
#creator-portrait{transition:opacity .45s ease,top .4s ease,bottom .4s ease}
#creator-portrait:empty{opacity:0}
#creator-portrait>:is(.male-rive,.female-rive){opacity:0;transition:opacity .45s ease}
#creator-portrait>:is(.male-rive,.female-rive).is-rive-ready{opacity:1}
#creator-portrait :is(.male-rive,.female-rive):not([data-rive-mount=error]) .male-rive-status{display:none}
@media(prefers-reduced-motion:reduce){#creator-portrait,#creator-portrait>:is(.male-rive,.female-rive){transition:none}}

/* Choose one sign-in method before showing account fields. */
.creator-journey-stage .auth-methods{display:grid;gap:14px;width:min(100%,360px);margin:22px auto 10px}
.creator-journey-stage .auth-method-email{width:100%;min-height:54px;border:1px solid #ffdc8b;border-radius:11px;background:linear-gradient(#ffdb83,#ffc44f);box-shadow:0 3px 0 #8d6226;color:#1d2524;font-weight:800;font-size:15px;cursor:pointer}
.creator-journey-stage .auth-method-email:hover{background:linear-gradient(#ffe5a3,#ffd16c)}
.creator-journey-stage .account-google,.creator-journey-stage .journey-google{display:block;width:100%;margin:0;text-align:center}
.creator-journey-stage .account-google [data-google-signin],.creator-journey-stage .journey-google [data-google-signin]{min-height:44px}
.creator-journey-stage .auth-google-summary{margin:14px 0;padding:16px;border:1px solid #5b8f80;border-radius:9px;background:#1b3b3b;color:#d9f2e7;font-size:13px;overflow-wrap:anywhere}
.creator-journey-stage .auth-methods[hidden],.creator-journey-stage .auth-email-fields[hidden],.creator-journey-stage .auth-google-summary[hidden],.creator-journey-stage #account-form[hidden]{display:none!important}
.creator-journey-stage.auth-email-open,.creator-journey-stage:has(.journey-pane:not([hidden]) .auth-email-fields:not([hidden])){height:auto}
.creator-journey-stage .auth-methods .account-error{margin:0;text-align:center}
.creator-journey-stage .auth-methods [data-google-option]{display:flex;align-items:center;justify-content:center;width:100%;height:54px;padding:0;box-sizing:border-box;border:0;border-radius:11px;background:transparent;box-shadow:none;overflow:hidden}
.creator-journey-stage .auth-methods [data-google-option]:focus-within{outline:2px solid #ffc34d;outline-offset:3px}
.creator-journey-stage .auth-methods [data-google-signin]{width:100%;min-height:0;align-items:center;justify-content:center}

/* Keep the login return control in the same screen corner as character creation. */
.creator-journey-stage.is-login-sheet .creator-sheet-heading{justify-content:flex-end}
.creator-journey-stage.is-login-sheet .creator-icon-back{position:fixed;top:calc(16px + env(safe-area-inset-top,0px));left:calc(20px + env(safe-area-inset-left,0px));z-index:30;display:grid;place-items:center;width:42px;height:42px;padding:0;border:0;border-radius:12px;background:#14242fcc;color:#ffc34d;box-shadow:none;cursor:pointer}

.creator-journey-stage.is-login-sheet .creator-icon-back:hover{background:#233e4f}
.creator-journey-stage.is-login-sheet .creator-icon-back:focus-visible{outline:2px solid #ffc34d;outline-offset:3px}
.creator-journey-stage.is-login-sheet .account-link-help{margin:10px 0;color:#f3d68b;font-size:14px;line-height:1.4}

/* Fit the entry and sign-in journey to the available phone screen. */
.auth-site .survivor-creator{min-height:0;height:100dvh}
.creator-entry{padding:70px 20px max(20px,env(safe-area-inset-bottom,0px))}
.creator-entry>img{width:min(300px,76vw);max-height:17dvh;object-fit:contain}
.creator-entry-actions{box-sizing:border-box;gap:10px;padding:16px;width:min(420px,100%)}
.creator-entry-actions>button{min-height:46px}
.creator-entry-actions>[data-entry-login]{min-height:38px;background:none;border:0;box-shadow:none;color:#ffd16b;font-size:14px;padding:8px}
.is-entry #creator-portrait{top:clamp(150px,23dvh,205px);bottom:165px}
.survivor-creator.is-account-open:has(.is-login-sheet:not([hidden])) #creator-portrait{top:80px;bottom:110px;align-items:flex-start}
.survivor-creator.is-account-open:has(.is-login-sheet:not([hidden]))>.creator-heading{visibility:hidden}
.survivor-creator>.creator-journey-stage.is-login-sheet{height:auto;max-height:none;overflow:visible;padding-top:30px;background:linear-gradient(180deg,#0c1e2b00,#0c1e2bf5 10%,#0c1e2b 42%)}
.creator-journey-stage.is-login-sheet .account-layout{padding:0 20px max(16px,env(safe-area-inset-bottom,0px));width:min(100%,430px)}
.creator-journey-stage.is-login-sheet .creator-sheet-heading{height:0;margin:0}
.creator-journey-stage.is-login-sheet .login-brand{position:fixed;top:22px;left:50%;transform:translateX(-50%);width:124px;height:46px;object-fit:contain}
.creator-journey-stage.is-login-sheet .login-guest-link{position:fixed;right:16px;top:20px;padding:8px 4px;min-height:44px;background:none;border:0;box-shadow:none;font-size:12px;color:#ffd16b}
.creator-journey-stage.is-login-sheet #account-form{display:grid;gap:6px}
.creator-journey-stage.is-login-sheet .account-card label{margin:0;font-size:12px;line-height:16px}
.creator-journey-stage.is-login-sheet .account-card input{min-height:44px;height:44px;padding:10px 12px;font-size:16px;line-height:22px;background:#102633;border-radius:9px}
.creator-journey-stage.is-login-sheet #account-form>.public-button{margin:6px 0 0;min-height:46px;height:46px;padding:8px;font-size:15px}
.creator-journey-stage.is-login-sheet .forgot-password-link{display:block;text-align:center;margin:0;padding:6px;min-height:30px;font-size:12px;line-height:18px}
.creator-journey-stage.is-login-sheet .account-google{margin:3px 0 0;display:flex;justify-content:center}
.creator-journey-stage.is-login-sheet .account-google>span{display:none}
.creator-journey-stage.is-login-sheet .account-error{margin:0;font-size:12px;line-height:1.3}
.creator-journey-stage.is-login-sheet .account-error:empty{display:none}
.creator-journey-stage.is-login-sheet .account-link-help{margin:0;font-size:12px}
@media(max-width:350px){.creator-journey-stage.is-login-sheet .login-brand{left:43%;width:105px}.creator-journey-stage.is-login-sheet .login-guest-link{right:10px;font-size:11px}}
@media(max-height:620px){.creator-entry{padding-top:60px;padding-bottom:12px}.creator-entry-actions{padding:12px;gap:8px}.creator-entry-actions>button{min-height:42px}.creator-entry>img{max-height:15dvh}.is-entry #creator-portrait{top:120px;bottom:145px}.creator-journey-stage.is-login-sheet .account-layout{padding-bottom:10px}.creator-journey-stage.is-login-sheet #account-form{gap:4px}.creator-journey-stage.is-login-sheet .account-card input{height:40px;min-height:40px}.creator-journey-stage.is-login-sheet #account-form>.public-button{height:42px;min-height:42px}}

/* Guest identity uses the existing wardrobe, with progress kept in the game. */
#modal .modal.guest-creator-modal{position:fixed;inset:0;width:100%;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;overflow:hidden}
.guest-creator-modal>.app-sheet-handle{display:none!important}
.guest-creator-host{width:100%;height:100%}.guest-creator-host .survivor-creator{height:100%;min-height:0}
.guest-creator-cancel{position:absolute;left:0;top:0;display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:50%;color:#ffd16b;background:#163140;font-size:28px}
.guest-creator .creator-heading h1{font-size:22px}
.guest-profile-sheet{position:absolute;bottom:0;left:0;right:0;z-index:8;padding:24px 20px max(20px,env(safe-area-inset-bottom,0px));background:linear-gradient(180deg,#0c1e2b00,#0c1e2b 12%)}
.guest-profile-sheet form{max-width:420px;margin:auto}
.guest-profile-sheet label{display:block;margin:8px 0 5px;font-size:12px;color:#bdd0d8}
.guest-profile-sheet input{width:100%;height:44px;padding:10px 12px;box-sizing:border-box;border:1px solid #405c6c;border-radius:9px;background:#102633;color:#edf3f5;font-size:16px}
.guest-profile-sheet small,.guest-preserve-note{display:block;color:#b7c7cd;font-size:11px;line-height:1.4;margin:8px 0}
.guest-profile-sheet .public-button{display:block;width:100%;margin:12px 0 8px;min-height:46px;padding:10px}
.guest-profile-sheet .text-button{padding:0;min-height:32px;color:#ffd16b;background:none;border:0;box-shadow:none}
.guest-profile-sheet .guest-google{display:flex;justify-content:center;margin:8px 0}
.guest-profile-sheet .account-error{margin:4px 0 0;font-size:12px;line-height:1.3}
.guest-creator.is-account-open #creator-portrait{top:80px;bottom:180px}
@media(max-height:640px){.guest-profile-sheet{padding:16px 16px 12px}.guest-profile-sheet input{height:40px}.guest-profile-sheet .public-button{margin:8px 0;min-height:42px}.guest-profile-sheet label{margin-top:5px}.guest-profile-sheet small,.guest-preserve-note{margin:5px 0;font-size:10px}}

.creator-entry-actions>[data-entry-login]{min-height:46px;background:#254b60;border:0;box-shadow:none;color:#edf2eb;font-size:15px}
.creator-entry-actions>[data-entry-create]{min-height:34px;padding:5px;background:transparent;border:0;box-shadow:none;color:#fff;font-size:13px;font-weight:600;text-decoration:underline;text-underline-offset:3px}

/* The entry and character-creation controls use filled surfaces without hairline frames. */
.creator-entry-actions,.creator-controls{border:0}
.creator-entry-actions>.public-button,.public-site .survivor-creator .creator-entry-actions>[data-entry-login],.public-site .survivor-creator .creator-footer>.public-button,.creator-account-sheet .public-button,.creator-journey-stage .auth-method-email{border:0}
.creator-sex button,.creator-options button{border:0;background:#203542}
.creator-choice button[aria-pressed=true]{border:0;background:#315061;color:#ffd16b}
.creator-journey-stage .journey-modes button,.creator-journey-stage .journey-mode-copy{border:0}
.creator-journey-stage .journey-modes button[aria-pressed=true]{background:#3c432f}
.creator-journey-stage .journey-modes button[data-challenge="hardcore"][aria-pressed=true]{background:linear-gradient(135deg,#962f3e,#501f2c)}
/* Preview loading still blocks saving, but no longer dims and flashes the button. */
.public-site .survivor-creator [data-creator-next]:disabled{opacity:1;cursor:default}
/* Touch focus should not leave a blue ring on the challenge-step Next button. */
.creator-journey-stage #account-form>.public-button{-webkit-tap-highlight-color:transparent}
.creator-journey-stage #account-form>.public-button:focus:not(:focus-visible){outline:none!important}
.creator-journey-stage #account-form>.public-button:focus-visible{outline:2px solid #ffc34d!important;outline-offset:3px}

/* Name and account steps use the same contained card as the wardrobe. Let the
   card grow with its contents, then scroll within the available phone height. */
.survivor-creator>.creator-journey-stage:not(.is-login-sheet){
 position:absolute;inset:auto 12px max(12px,env(safe-area-inset-bottom,0px));
 width:min(640px,calc(100% - 24px));height:auto;
 max-height:calc(100dvh - 180px);margin:0 auto;
 overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;
 border-radius:18px;
 background:linear-gradient(145deg,#1d3a47,#122b37 82%);
 box-shadow:0 14px 34px #04131c99,inset 0 1px #d7eef00e;
}
.creator-journey-stage:not(.is-login-sheet) .account-layout{
 width:100%;max-width:none;padding:18px 20px max(20px,env(safe-area-inset-bottom,0px));
}
.public-site .survivor-creator .creator-journey-stage:not(.is-login-sheet) .account-card{background:transparent!important}
.creator-journey-stage:not(.is-login-sheet) .creator-sheet-heading{margin:0 0 16px}
.creator-journey-stage:not(.is-login-sheet) #account-form>.public-button{margin-top:14px}
.creator-journey-stage:not(.is-login-sheet) #account-error:not(:empty){margin:10px 0 0;line-height:1.4}
.creator-journey-stage:not(.is-login-sheet) .auth-email-fields{display:grid;gap:6px}
.creator-journey-stage:not(.is-login-sheet) .auth-email-fields[hidden]{display:none}
.creator-journey-stage:not(.is-login-sheet) .auth-email-fields label:not(:first-child){margin-top:10px}
@media(max-width:800px){
 .survivor-creator.is-account-open:not(:has(.is-login-sheet:not([hidden]))) #creator-portrait{top:92px;bottom:clamp(300px,40dvh,380px)}
}
@media(max-height:620px){
 .survivor-creator>.creator-journey-stage:not(.is-login-sheet){max-height:calc(100dvh - 128px)}
 .survivor-creator.is-account-open:not(:has(.is-login-sheet:not([hidden]))) #creator-portrait{top:62px;bottom:310px}
}

/* Login needs the same finished card as signup, with room for Google sign-in. */
@media(max-width:800px){
 .survivor-creator>.creator-journey-stage.is-login-sheet{
  inset:auto 12px max(12px,env(safe-area-inset-bottom,0px));
  width:min(640px,calc(100% - 24px));height:auto;
  max-height:calc(100dvh - 120px);margin:0 auto;padding:0;
  overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;
  border-radius:18px;
  background:linear-gradient(145deg,#1d3a47,#122b37 82%);
  box-shadow:0 14px 34px #04131c99,inset 0 1px #d7eef00e;
 }
 .creator-journey-stage.is-login-sheet .account-layout{
  width:100%;max-width:none;padding:18px 20px max(20px,env(safe-area-inset-bottom,0px));
 }
 .public-site .survivor-creator .creator-journey-stage.is-login-sheet .account-card{background:transparent!important}
 .creator-journey-stage.is-login-sheet .account-google{margin:10px 0 0;min-height:44px}
 .survivor-creator.is-account-open:has(.is-login-sheet:not([hidden])) #creator-portrait{bottom:clamp(300px,43dvh,420px)}
}
@media(max-width:800px) and (max-height:620px){
 .survivor-creator>.creator-journey-stage.is-login-sheet{max-height:calc(100dvh - 86px)}
}

/* Appearance choices share the same blue surface as the name and login cards. */
.survivor-creator>.creator-controls{
 background:linear-gradient(145deg,#1d3a47,#122b37 82%);
 box-shadow:0 14px 34px #04131c99,inset 0 1px #d7eef00e;
}

/* Entry, login and every creator step share the same navy card and back control. */
.survivor-creator .creator-entry-actions,
.survivor-creator>.creator-controls,
.survivor-creator>.creator-journey-stage:not([hidden]){
 background:linear-gradient(150deg,#1b3543 0%,#132b38 82%)!important;
 box-shadow:0 14px 34px #04131c99,inset 0 1px #d7eef00e!important;
}
.survivor-creator .creator-home-back,
.survivor-creator .creator-icon-back,
.survivor-creator .creator-heading>a{background:#102735!important;color:#f5f8f6!important;border:0!important}
.survivor-creator .creator-home-back:hover,
.survivor-creator .creator-icon-back:hover,
.survivor-creator .creator-heading>a:hover{background:#234556!important}

/* A solid loading surface stays behind the current 3D camp. */
.survivor-creator .creator-scene{background:#142d38}
.survivor-creator.is-entry #creator-portrait{top:clamp(130px,19dvh,175px);bottom:145px}
.survivor-creator.is-entry #creator-portrait>:is(.male-rive,.female-rive){height:96%}
.survivor-creator.is-account-open:has(.is-login-sheet:not([hidden])) #creator-portrait{overflow:hidden;align-items:flex-end}
.survivor-creator.is-account-open:has(.is-login-sheet:not([hidden])) #creator-portrait>:is(.male-rive,.female-rive){height:120%;align-self:flex-end;translate:0 17%}
@media(max-width:800px){
 .survivor-creator.is-entry #creator-portrait{top:clamp(135px,20dvh,180px);bottom:145px}
  .survivor-creator.is-account-open:has(.is-login-sheet:not([hidden])) #creator-portrait{top:80px;bottom:calc(100% - var(--login-card-top, 440px))}
  .survivor-creator.is-account-open:has(.is-login-sheet:not([hidden])) #creator-portrait>:is(.male-rive,.female-rive){height:130%;translate:0 22%}
}
.survivor-creator:not(.is-entry):not(.is-account-open) #creator-portrait>:is(.male-rive,.female-rive){height:94%}
.survivor-creator.is-account-open:not(:has(.is-login-sheet:not([hidden]))) #creator-portrait>:is(.male-rive,.female-rive){height:94%}
@media(max-width:800px) and (max-height:640px){
 .survivor-creator.is-account-open:has(.is-login-sheet:not([hidden])) #creator-portrait>:is(.male-rive,.female-rive){height:150%;translate:0 34%}
}

/* Zoom the existing Rive canvas for facial choices without changing its rig or playback. */
.survivor-creator:not(.is-entry):not(.is-account-open) #creator-portrait>:is(.male-rive,.female-rive),
.survivor-creator.is-profile-editor #creator-portrait>:is(.male-rive,.female-rive){transform-origin:50% 12%;transition:transform .5s cubic-bezier(.2,.7,.2,1),opacity .45s ease}
.survivor-creator.is-face-focus:not(.is-account-open) #creator-portrait>:is(.male-rive,.female-rive){transform:scale(1.65)}
.survivor-creator.is-face-focus:not(.is-account-open) #creator-portrait{overflow:hidden}
.survivor-creator.is-face-focus:not(.is-account-open) #creator-portrait>.female-rive{transform-origin:50% 0}
@media(prefers-reduced-motion:reduce){.survivor-creator #creator-portrait>:is(.male-rive,.female-rive){transition:none}}

/* Login and the signed-in choice use one flat account surface. */
.survivor-creator>.creator-journey-stage.is-login-sheet:not([hidden]){background:#142e39!important;box-shadow:0 14px 34px #04131c99!important}
.creator-journey-stage.is-login-sheet .account-card:has(.signed-in-note),
.creator-journey-stage.is-login-sheet .signed-in-note{background:transparent!important;box-shadow:none!important}

/* Keep name feedback beside Random name without reserving a blank row. */
.creator-journey-stage .signup-name-help{align-items:center;justify-content:space-between;gap:8px;min-height:32px;margin:4px 0 0}
.creator-journey-stage .signup-name-help #name-availability{flex:1;min-width:0;min-height:0;margin:0;font-size:11px;line-height:1.25;color:#b1d4bd}
.creator-journey-stage .signup-name-help #name-availability[data-state="error"]{color:#ff9c96}
.creator-journey-stage .signup-name-help button{flex:0 0 auto}
.creator-journey-stage .signup-name-help button,
.creator-journey-stage .signup-name-help button:where(:hover,:active,:focus){background:transparent!important;border:0!important;box-shadow:none!important;transform:none!important}
.creator-journey-stage:not(.is-login-sheet) #account-error:empty{display:none}
.creator-journey-stage:not(.is-login-sheet) #account-form>.public-button{margin-top:10px}
/* Keep the portrait and editable choices usable on short landscape phones. */
@media(max-width:800px) and (max-height:500px) and (orientation:landscape){
 .survivor-creator.is-profile-editor,.auth-site .survivor-creator{height:100dvh;min-height:0}
 .survivor-creator:not(.is-entry):not(.is-account-open) #creator-portrait{top:66px;bottom:12px;left:0;right:54%}
 .survivor-creator:not(.is-entry):not(.is-account-open)>.creator-controls{top:68px;bottom:80px;left:46%;right:12px;width:auto;min-height:0;max-height:none;margin:0;padding:12px;overflow-y:auto;box-shadow:0 12px 30px #04131c80!important;border:0}
 .survivor-creator:not(.is-entry):not(.is-account-open)>.creator-footer{left:46%;right:12px;bottom:12px;width:auto;margin:0}

}

.creator-sex button:disabled{opacity:.55;cursor:default}.creator-sex button small{display:block;font-size:10px;margin-top:3px}

/* Shared 3D survivor in the existing starter-base creator. */
#creator-portrait .creator-three{width:100%;height:100%;position:absolute;inset:0;transform:none;filter:none}
.creator-three canvas{display:block;width:100%;height:100%;touch-action:pan-y}
.survivor-creator .creator-options button:disabled{opacity:.32;cursor:not-allowed;filter:grayscale(1)}
.survivor-creator .creator-category-tabs{grid-template-columns:repeat(3,1fr)}
.survivor-creator .creator-controls,.survivor-creator button,.survivor-creator input,.survivor-creator fieldset{border:0!important;outline-width:0;box-shadow:none}
.survivor-creator .creator-controls{box-shadow:0 12px 35px #03131a88}
.survivor-creator button:focus-visible{outline:3px solid #dfba6e;outline-offset:3px}
.survivor-creator .creator-swatch[aria-pressed=true]{box-shadow:0 0 0 3px #e8ce91}
@media(min-width:801px){.survivor-creator #creator-portrait{top:95px;bottom:310px}.survivor-creator .creator-controls{max-width:640px}}
