/* Essential editing stays small; optional expression lives in its own window. */
#character .essential-photos>summary{display:none}
#character .essential-photos>.photo-section{display:block}
.profile-essentials{max-width:780px;margin:20px auto}
.profile-essentials input,.profile-essentials textarea,.profile-essentials select{width:100%;box-sizing:border-box}
#essential-goals,.extras-links{display:flex;gap:10px;flex-wrap:wrap}
#essential-goals [aria-pressed=true]{background:var(--accent,#d8b4ef);color:#21152c;border:2px solid currentColor}
.profile-extras-dialog{width:min(1000px,94vw);max-height:90dvh;overflow:auto;padding:24px}
.extras-header{display:flex;align-items:center;justify-content:space-between;gap:16px;position:sticky;top:-24px;background:#251b32;color:#fff;padding:12px;z-index:3}
.extras-header button{font-size:28px;min-width:44px;min-height:44px}
#profile-extras-dialog #character-editor>.character-section:first-child{display:none}
#profile-extras-dialog .character-layout{display:block}
#profile-extras-dialog .character-preview-wrap{display:none}
#profile-extras-dialog .profile-edit-fold{margin:12px 0}
.profile-gallery{padding:18px;display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px}
.gallery-open{padding:0;border:0;overflow:hidden;border-radius:12px;background:#181020;cursor:zoom-in;min-width:0}
.gallery-open img{width:100%;height:100%;max-height:360px;object-fit:cover;display:block}
.profile-handles dd{white-space:pre-wrap;overflow-wrap:anywhere}
.photo-viewer{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;box-sizing:border-box;margin:0;padding:16px;background:#100c18;color:#fff;border:0}
.photo-viewer[open]{display:flex;flex-direction:column}
.photo-viewer::backdrop{background:#100c18}
.photo-viewer header,.photo-viewer nav{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-shrink:0}
.photo-viewer button{min-height:44px;min-width:44px;background:#33243e;color:#fff;border:1px solid #bfa1d3;border-radius:8px}
[data-gallery-close]{font-size:28px}
#gallery-stage{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;position:relative;overflow:auto}
#gallery-stage img{max-width:100%;max-height:100%;object-fit:contain}
#gallery-status{position:absolute;bottom:8px;background:#100c18}
.dialog-language{position:sticky;top:0;z-index:8;display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:10px 56px 10px 16px!important;border-bottom:1px solid #857094;background:#251b32!important;color:#fff!important;box-sizing:border-box}
.dialog-language .language-select-label{margin:0;display:flex;align-items:center;gap:8px}
.dialog-language select{max-width:180px;color:#fff;background:#251b32}
.dialog-music{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.dialog-music button{min-height:40px;background:#382844;color:#fff;border:1px solid #bfa1d3;border-radius:8px}
#member-auth>.dialog-language,#welcome-dialog>.dialog-language{position:sticky;top:0}
@media(max-width:600px){.profile-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-extras-dialog{padding:14px}.dialog-language{padding-right:48px!important}.dialog-music select{max-width:140px}.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

body[data-view=character] .app-welcome,body[data-view=character] .connection-routes,body[data-view=character] #member-status,body[data-view=character] .tabs,body[data-view=character] .editor-navigation{display:none!important}
.progress-save:not([data-save-state=error]):not([data-save-state=signed-out]){display:none}
.public-profile .profile-gallery .gallery-open img{width:100%;height:250px}

button.photo-empty{width:100%;min-height:180px;cursor:pointer;color:var(--muted);font:inherit}button.photo-empty:hover{border-color:var(--ink);background:var(--tint)}button.photo-empty:focus-visible{outline:3px solid var(--ink);outline-offset:3px}button.photo-empty:disabled{cursor:default;opacity:.5}

.interest-row{grid-template-columns:minmax(0,1fr) auto}.interest-fade .interest-row:nth-last-of-type(2){animation:interestFade .4s ease-out}.interest-spark .mini-orb{animation:interestSpark .6s ease-out}@keyframes interestFade{from{opacity:.2;transform:translateY(5px)}to{opacity:1;transform:none}}@keyframes interestSpark{50%{transform:scale(1.5);box-shadow:0 0 24px var(--gold)}}@media(prefers-reduced-motion:reduce){.interest-fade *,.interest-spark *{animation:none!important}}
.alter-ego-section{border:2px solid var(--gold);border-radius:18px;padding:20px}.alter-ego-section .eyebrow:before{content:"✦ ";}.alter-ego-showcase{border-top:2px solid var(--gold);padding-top:24px}

.alter-gallery video{width:100%;max-height:400px;object-fit:contain;background:#15121c;border-radius:12px}

.interest-flight{position:fixed;left:0;top:0;width:10px;height:10px;border-radius:50%;background:#ffe0a6;box-shadow:0 0 16px 5px #e4af6c;pointer-events:none;z-index:10000}
