/* Shared shell overrides legacy PHP and dojo header rules. */
.shared-site-header{box-sizing:border-box;display:flex;align-items:center;gap:20px;flex-wrap:wrap;position:relative;z-index:20;width:100%;height:auto;min-height:86px;padding:12px clamp(12px,3vw,40px);background:#171a19;border-bottom:1px solid #46554b;color:#f1eee5;font:16px/1.4 Arial,sans-serif}
.shared-site-header *{box-sizing:border-box}.shared-site-header .shared-brand{display:flex;align-items:center;gap:10px;flex:none;margin:0;text-decoration:none;color:#f1eee5;font-size:21px;font-weight:800;letter-spacing:1px}.shared-site-header .brand-mark{width:54px;height:54px;object-fit:contain;margin:0}.shared-site-header .shared-brand small{display:block;font-size:9px;letter-spacing:1.5px}.shared-site-header .brand-light{font-weight:400;color:#f1eee5}
.shared-site-header #site-navigation{display:flex;align-items:center;gap:4px;flex:1;justify-content:flex-start;position:static;width:auto;background:transparent;padding:0}.shared-site-header #site-navigation a,.shared-site-header #site-navigation button,.shared-site-header summary{display:flex;align-items:center;min-height:44px;padding:10px;border-radius:7px;font:inherit;letter-spacing:0;text-transform:none;text-decoration:none;color:#f1eee5;background:transparent;border:1px solid transparent;cursor:pointer;white-space:nowrap}.shared-site-header #site-navigation a:hover,.shared-site-header #site-navigation button:hover,.shared-site-header summary:hover{background:#2c3931}.shared-site-header #site-navigation [aria-current=page]{background:#35483b;border-color:#b5d08c}.shared-site-header a:focus-visible,.shared-site-header button:focus-visible,.shared-site-header summary:focus-visible{outline:3px solid #c7f449;outline-offset:2px}.shared-site-header #site-navigation form{margin:0}.shared-site-header .shared-menu-toggle{display:none;font:inherit;min-width:66px;min-height:44px;padding:8px;border:1px solid #819889;background:#25342c;color:#f1eee5;border-radius:7px}.shared-site-header .shared-rank{order:3;margin-left:auto;max-width:140px;text-align:right;font-size:14px;flex:none}.shared-rank small{display:block;font-size:12px}.shared-rank:empty{display:none}.shared-more{position:relative}.shared-more summary{list-style:none}.shared-more summary:after{content:' ▾';margin-left:5px}.shared-more>div{position:absolute;right:0;min-width:180px;padding:6px;background:#171a19;border:1px solid #819889;border-radius:8px}.shared-site-header #site-navigation .shared-more a{display:block}
@media(max-width:1100px){.shared-site-header{gap:10px}.shared-site-header .shared-brand{font-size:18px}.shared-site-header .brand-mark{width:44px;height:44px}.shared-site-header #site-navigation a,.shared-site-header #site-navigation button,.shared-site-header summary{padding:8px;font-size:14px}}
@media(max-width:900px){.shared-site-header{gap:8px;min-height:72px;padding:10px 12px}.shared-site-header .shared-brand{font-size:17px;gap:6px}.shared-site-header .brand-mark{width:40px;height:40px}.shared-site-header .shared-brand small{font-size:8px;letter-spacing:.7px}.shared-site-header .shared-rank{order:0;margin-left:auto;font-size:12px}.shared-rank small{font-size:10px}.shared-nav-js .shared-site-header .shared-menu-toggle{display:block;margin-left:auto}.shared-site-header #site-navigation{flex-basis:100%;flex-wrap:wrap}.shared-nav-js .shared-site-header #site-navigation{display:none}.shared-nav-js .shared-site-header #site-navigation.is-open{display:flex}.shared-site-header #site-navigation>a{flex:1 0 40%;white-space:normal}.shared-more>div{position:static}.shared-site-header #site-navigation form{margin-left:auto}}
@media(max-width:350px){.shared-site-header .shared-rank{flex-basis:100%;order:2;text-align:left;margin:0}.shared-site-header .shared-menu-toggle{margin-left:auto}}
.training-return{display:inline-flex;align-items:center;min-height:44px;padding:10px 0}.avatar-save-controls{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin:14px 0}
.appearance-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.color-presets{min-width:0;margin:0;padding:10px;border:1px solid #718475;border-radius:10px}.color-presets legend{font-weight:700}.natural-swatches{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:12px}.natural-swatches .natural-swatch{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;min-height:64px;padding:6px!important;background:#1a2921;color:#f1eee5;border:2px solid #708475;border-radius:8px;font-size:12px;line-height:1.3;white-space:normal;cursor:pointer}.natural-swatch svg{display:block;width:32px;height:24px}.natural-swatches [aria-pressed=true]{border-color:#e8d394;box-shadow:inset 0 0 0 1px #e8d394}.natural-swatch:focus-visible{outline:3px solid #c7f449;outline-offset:2px}.color-presets label{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px}.color-presets input[type=color]{width:52px;height:44px;padding:3px;border:1px solid #718475;flex:none}.avatar-color-note{grid-column:1/-1;font-size:14px;line-height:1.5;margin:0}
@media(max-width:650px){.appearance-fields{grid-template-columns:minmax(0,1fr)}}
/* The routed dojo now uses the shared header outside its replaceable application. */
body:has(#app .personal-main){height:auto;min-height:100dvh;overflow:auto}#app:has(.personal-main){height:auto;min-height:calc(100dvh - 86px);display:block;padding:0}#app #main.personal-main{overflow:visible;height:auto}.demo-adventure#app:has(.personal-main){display:block}.avatar-onboarding{min-width:0}.avatar-options .appearance-fields{display:grid}
/* Outrank the existing onboarding flex layout and demo's generic fieldsets. */
#app .appearance-fields{display:grid;align-items:start;width:100%;min-width:0;margin:18px 0;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
#app .appearance-fields .color-presets{display:block;margin:0;padding:12px;border:1px solid #718475;border-radius:10px;min-width:0}
#app .appearance-fields .color-presets label{flex-direction:row;align-items:center;justify-content:space-between;font-size:14px}
#app .appearance-fields .natural-swatch{font-size:12px;line-height:1.35;min-height:72px}
#app .appearance-fields .natural-swatch span{overflow-wrap:normal;word-break:normal;max-width:100%}
.shared-rank .hud-rank,.shared-rank .hud-rank small{display:block;text-align:inherit;max-width:none;white-space:normal}
@media(max-width:650px){#app .appearance-fields{grid-template-columns:minmax(0,1fr)}}
/* Legacy studio descendants assign column 2 to every paragraph and button. */
#app .appearance-fields>*{grid-column:auto;grid-row:auto}
#app .appearance-fields>.avatar-color-note{grid-column:1/-1}
#app .natural-swatches>.natural-swatch{grid-column:auto;grid-row:auto}
.shared-brand-block{flex:0 1 268px;max-width:100%;min-width:0}.shared-site-header .shared-brand-block .shared-brand{width:max-content;max-width:100%}.shared-site-header .referral-promo{display:block;color:#c7f449;font-weight:800;font-size:14px;line-height:1.35;letter-spacing:0;text-decoration:underline;text-underline-offset:3px;padding:8px 0 2px;overflow-wrap:anywhere}.shared-site-header .referral-promo:hover{color:#e1ff91}.unlock-tier{display:block;font-size:12px;color:#e8d394;line-height:1.45;margin-top:4px}.look-species.is-locked .look-choice{opacity:.65;cursor:default}.look-species.is-locked{border-color:#627565}.look-species b{overflow-wrap:anywhere}
@media(max-width:900px){.shared-brand-block{flex-basis:230px}.shared-site-header .referral-promo{font-size:13px}.shared-site-header .shared-menu-toggle{margin-left:0}}
@media(max-width:350px){.shared-brand-block{flex-basis:210px}}
.referral-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(24px,4vw,64px);align-items:center}.referral-hero h1{font-size:clamp(32px,4.2vw,64px);line-height:1.06;max-width:16ch;overflow-wrap:normal}.referral-stack{font-size:clamp(22px,2.4vw,32px);line-height:1.35}.referral-stack strong{color:#c7f449}.referral-slogan{font-size:clamp(22px,2.5vw,34px);font-weight:900;line-height:1.25}.referral-friends{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:24px}.referral-content{max-width:850px;margin:48px auto 0;min-width:0}.referral-recipient{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:12px;align-items:end;padding:16px 0;border-bottom:1px solid #74806e}.referral-recipient label{min-width:0}.referral-recipient input{width:100%;box-sizing:border-box}.referral-recipient button{margin-bottom:8px}.referral-content .profile-card{min-width:0}.referral-content input{max-width:100%;box-sizing:border-box}.referral-content ul{padding-left:24px}
@media(max-width:750px){.referral-hero{grid-template-columns:minmax(0,1fr)}.referral-hero h1{max-width:100%}.referral-friends{order:2}.referral-recipient{grid-template-columns:minmax(0,1fr)}.referral-content{margin-top:28px}.referral-content .button-row{align-items:stretch}.referral-content .button-row>*{white-space:normal;max-width:100%}}
/* Keep the complete invitation beneath the wordmark at every header width. */
.shared-site-header .shared-brand-block{flex:0 0 246px;min-width:0}
.shared-site-header .referral-promo{font-size:13px;white-space:nowrap;overflow-wrap:normal;word-break:normal;line-height:1.35}
@media(min-width:901px) and (max-width:1240px){.shared-site-header #site-navigation{flex-basis:100%;flex-wrap:wrap}.shared-site-header .shared-rank{order:0}}
@media(max-width:900px){.shared-site-header .shared-brand-block{flex:0 1 218px}.shared-site-header .referral-promo{font-size:12px}.shared-site-header .shared-rank{order:3;flex:1 0 100%;text-align:left;margin:0}.shared-site-header .shared-menu-toggle{flex:none;margin-left:auto}}
@media(max-width:350px){.shared-site-header .shared-brand-block{flex-basis:210px}.shared-site-header .referral-promo{font-size:11.5px}.shared-site-header .shared-menu-toggle{min-width:62px;padding:6px;font-size:14px}}
