/* Centered identity and a tall, undistorted full-body stage. */
.profile-v20 .profile-showcase.profile-showcase-v26{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;align-items:stretch;gap:24px!important}
.profile-v20 .profile-showcase-v26 .profile-dossier{align-items:stretch;justify-content:center;gap:16px;padding:10px 4px;text-align:center}
.profile-v20 .profile-showcase-v26 .profile-heading{flex-direction:column;align-items:center;justify-content:center;gap:8px}
.profile-showcase-v26 .profile-heading .profile-photo-row{width:auto;max-width:100%;gap:5px}
.profile-showcase-v26 .profile-heading .profile-real-photo{width:86px;height:86px;border:1px solid #d2b67c44;box-shadow:0 8px 24px #0002;border-radius:19px!important}
.profile-showcase-v26 .profile-photo-row>div{flex-direction:row;align-items:center;justify-content:center;gap:12px}
.profile-showcase-v26 .profile-photo-row .text-button{min-height:28px;font-size:10px}
.profile-showcase-v26 .profile-heading-copy{flex:none;width:100%;min-width:0}
.profile-showcase-v26 .profile-heading-copy,.profile-showcase-v26 .profile-heading-copy h2,.profile-showcase-v26 .profile-heading-copy .eyebrow{text-align:center!important}
.profile-showcase-v26 .profile-heading h2{font:600 clamp(25px,2.8vw,37px)/1.16 system-ui,sans-serif;letter-spacing:-.045em;margin:1px 0 8px;text-wrap:balance;overflow-wrap:anywhere}
.profile-showcase-v26 .profile-heading .eyebrow{font-size:9px;line-height:1.5;letter-spacing:.12em;color:#d4bf98}
.profile-showcase-v26 .nickname-button{text-align:center;min-height:27px;display:inline-block;margin-top:3px;font-size:10px}
.profile-showcase-v26 .profile-standing{width:100%;margin:0 auto;max-width:460px;align-items:stretch;gap:10px}
.profile-v20 .profile-showcase-v26 .rank-status,.profile-v20 .profile-showcase-v26 .level-status{justify-content:center;align-items:center;box-sizing:border-box;gap:10px;padding:12px!important;min-height:86px;min-width:0;border:1px solid #dbc18a18;border-radius:15px;overflow:hidden;background:linear-gradient(135deg,#d9bf8910,#ffffff02);box-shadow:0 6px 18px #0000000c;text-align:left}
.profile-v20 .profile-showcase-v26 .rank-status{border-color:color-mix(in srgb,var(--rank-tone) 15%,transparent);background:linear-gradient(135deg,color-mix(in srgb,var(--rank-tone) 7%,#171923),#171923)}
.profile-showcase-v26 .rank-status small{font-size:8px;line-height:1.5;letter-spacing:.03em}
.profile-showcase-v26 .rank-status strong{font-size:25px;line-height:1.2}
.profile-showcase-v26 .rank-emblem{width:29px;height:29px;flex:0 0 29px;min-width:0}
.profile-showcase-v26 .level-emblem{position:relative;display:grid;place-items:center;width:42px;height:48px;flex:0 0 42px;box-sizing:border-box;filter:drop-shadow(0 0 9px #d6bb7e13);margin:0;padding:0}
.profile-showcase-v26 .level-emblem svg{position:absolute;inset:0;display:block;width:42px;height:48px;stroke-width:1;fill:color-mix(in srgb,var(--level-tone) 5%,#191b23)}
.profile-showcase-v26 .level-emblem b{position:absolute;inset:7px 5px 8px;display:grid;place-items:center;box-sizing:border-box;font:600 18px/1 system-ui,sans-serif;letter-spacing:-.05em;max-width:100%;overflow:hidden;font-variant-numeric:tabular-nums}
.profile-showcase-v26 .level-status[data-level^="10"] .level-emblem b{font-size:16px}
.profile-showcase-v26 .level-status-copy{gap:5px;min-width:0}
.profile-showcase-v26 .level-status-copy small{font-size:8px;line-height:1.4;letter-spacing:.07em}
.profile-showcase-v26 .level-status-copy strong{font:600 15px/1.3 system-ui,sans-serif;white-space:normal}
.profile-showcase-v26 .level-status-copy>span{font-size:10px;line-height:1.4;color:#aaa5b2}
/* One soft boundary, with enough inset for every XP row and focus indicator. */
.profile-v20 .profile-showcase-v26 .profile-identity{margin:0!important;background:none!important;gap:14px;position:relative;z-index:auto}
.profile-v20 .profile-showcase-v26 .profile-xp{box-sizing:border-box!important;width:100%;max-width:100%;min-width:0;margin:0!important;padding:15px 16px!important;border:1px solid #c8b3941a!important;outline:none!important;border-radius:16px;background:radial-gradient(ellipse at 20% 0,#d3b87e09,transparent 80%),#ffffff02!important;box-shadow:0 8px 24px #0000000a!important;overflow:hidden;text-align:left}
.profile-showcase-v26 .profile-xp>div{gap:12px;align-items:center;margin:0 0 9px;font-size:10px;line-height:1.5;min-width:0}
.profile-showcase-v26 .profile-xp>div b{font-size:11px;flex:none;line-height:1.5}
.profile-showcase-v26 .profile-xp progress{box-sizing:border-box;display:block;width:100%;max-width:100%;height:6px;margin:0;border:0;border-radius:6px;overflow:hidden}
.profile-showcase-v26 .profile-xp .progress-explanation{font-size:10px;line-height:1.6;margin:9px 0 5px;overflow-wrap:anywhere}
.profile-showcase-v26 .level-explainer{margin:0;max-width:100%;border:0!important;outline:0;background:none}
.profile-showcase-v26 .level-explainer summary{min-height:30px;font-size:10px;list-style:none;border:0;outline-offset:-2px;border-radius:5px;box-sizing:border-box}
.profile-showcase-v26 .level-explainer summary::-webkit-details-marker{display:none}
.profile-showcase-v26 .level-explainer p{margin:8px 0 0;font-size:10px;line-height:1.6}
.profile-showcase-v26 .avatar-viewport{height:520px;min-height:490px;flex:1}
.profile-showcase-v26 .avatar-viewport>.profile-frame{inset:8px 12px;width:calc(100% - 24px)!important;height:calc(100% - 16px)!important;max-width:none;min-height:0}
.profile-showcase-v26 .avatar-viewport>.avatar-render{height:100%!important;min-height:0!important}
.profile-showcase-v26 .avatar-camera-controls{bottom:9px;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;width:calc(100% - 20px);max-width:340px}
.profile-showcase-v26 .avatar-camera-controls button{padding:8px 5px;font-size:10px;min-height:38px;background:#14161eea;border-color:#d4ba7c24}
.profile-showcase-v26 .avatar-camera-hint{display:none}
/* The podium badge is attached to an outside corner of the actual portrait. */
.identity-portrait.large{overflow:visible}
.identity-portrait.large>.card-faction-badge{position:absolute;top:-7px;right:-8px;z-index:5;width:22px;height:24px;box-shadow:0 2px 8px #0004}
.identity-portrait.large>.card-faction-badge svg{width:15px;height:15px}
.player-card-top{justify-content:center;min-height:20px}
#podium .podium-card{padding-top:10px!important}
#podium .podium-avatar{overflow:visible!important}
#podium .podium-avatar>.card-faction-badge{position:absolute;top:-8px;right:-12px;z-index:5;width:23px;height:25px}
#podium .podium-avatar>.card-faction-badge svg{width:16px;height:16px;display:block;border-radius:0;overflow:visible}
/* Learning lives at the start of quests; completion stays small by default. */
.onboarding-panel{box-sizing:border-box;padding:15px 17px;margin:0 0 18px;border:1px solid #d5bb851c;border-radius:17px;background:linear-gradient(120deg,#c8ab7010,#171922);overflow:hidden}
.onboarding-panel>summary{display:flex;align-items:center;gap:11px;list-style:none;min-height:36px;cursor:pointer;border:0;outline-offset:-2px;border-radius:7px}
.onboarding-panel>summary::-webkit-details-marker{display:none}
.onboarding-panel>summary>span:nth-child(2){display:grid;gap:5px;min-width:0;flex:1}
.onboarding-panel>summary b{font:600 15px/1.3 system-ui,sans-serif;letter-spacing:-.02em;color:#eee4d2}
.onboarding-panel>summary small{font-size:10px;line-height:1.4;color:#a9a4af}
.onboarding-seal{display:grid;place-items:center;width:34px;height:36px;flex:none;color:#d4ba86;border-radius:11px;background:#d4ba8610}
.onboarding-seal .icon{width:19px;height:19px}
.onboarding-state{font:500 10px/1.4 system-ui,sans-serif;color:#d9c49c;white-space:nowrap}
.onboarding-panel>progress{display:block;width:100%;height:5px;margin:15px 0 8px}
.onboarding-panel .onboarding{margin:10px 0 0;padding:0;list-style:none}
.onboarding-panel .onboarding>li{padding:7px 0;min-height:30px;border:0;gap:10px;font-size:12px}
.onboarding-panel .onboarding-completed{border:0;outline:0;margin:8px 0 0}
.onboarding-panel .onboarding-completed>summary{border:0;min-height:32px;outline-offset:-2px;font-size:10px;color:#a9a4af}
.onboarding-finished{padding:12px 16px}
.onboarding-finished>summary b{font-size:14px}
.onboarding-finished p{font-size:11px;line-height:1.6;margin:12px 0 2px;color:#b6afbe}
/* Search keeps its full width after the category filter is removed. */
#encyclopedia-results{margin-top:18px}
.mini-scroll-top{position:fixed;right:16px;bottom:calc(86px + var(--tg-safe-bottom,0px));z-index:35;display:flex;align-items:center;gap:5px;min-height:42px;padding:9px 13px;border:1px solid #dac38a36;border-radius:22px;background:#1a1c25ed;color:#e6d4b3;box-shadow:0 6px 20px #0003;font:500 11px/1 system-ui,sans-serif;cursor:pointer;backdrop-filter:blur(8px);animation:mini-top-appear .16s ease-out}
.mini-scroll-top[hidden]{display:none!important}.mini-scroll-top svg{width:19px;height:19px}.mini-scroll-top:active{transform:scale(.95)}.keyboard-open .mini-scroll-top{display:none!important}
@keyframes mini-top-appear{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1000px){.profile-v20 .profile-showcase.profile-showcase-v26{gap:18px!important}.profile-v20 .profile-showcase-v26 .level-status,.profile-v20 .profile-showcase-v26 .rank-status{padding:10px!important;gap:8px}.profile-showcase-v26 .level-emblem{width:37px;height:43px;flex:0 0 37px}.profile-showcase-v26 .level-emblem svg{width:37px;height:43px}.profile-showcase-v26 .level-emblem b{font-size:16px}.profile-showcase-v26 .rank-emblem{width:25px;height:25px;flex-basis:25px}.profile-showcase-v26 .level-status-copy strong{font-size:14px}}
@media(max-width:760px){.profile-v20 .profile-showcase.profile-showcase-v26{grid-template-columns:minmax(0,1fr)!important}.profile-showcase-v26 .profile-dossier{gap:13px;padding:3px 0}.profile-showcase-v26 .avatar-viewport{height:455px;min-height:0;flex:none}.profile-showcase-v26 .profile-heading .profile-real-photo{width:80px;height:80px}.profile-showcase-v26 .profile-heading h2{font-size:28px}.profile-showcase-v26 .profile-heading .profile-photo-row{width:auto;max-width:100%}.profile-showcase-v26 .profile-heading .eyebrow{font-size:9px}.profile-showcase-v26 .profile-standing{gap:9px}.profile-v20 .profile-showcase-v26 .rank-status,.profile-v20 .profile-showcase-v26 .level-status{min-height:80px}.profile-showcase-v26 .profile-xp{padding:13px 14px!important}}
@media(max-width:360px){.profile-showcase-v26 .avatar-viewport{height:430px}.profile-showcase-v26 .profile-heading h2{font-size:25px}.profile-showcase-v26 .profile-heading .profile-real-photo{width:76px;height:76px}.profile-v20 .profile-showcase-v26 .rank-status,.profile-v20 .profile-showcase-v26 .level-status{padding:9px 7px!important;gap:6px}.profile-showcase-v26 .level-emblem{width:32px;height:38px;flex:0 0 32px}.profile-showcase-v26 .level-emblem svg{width:32px;height:38px}.profile-showcase-v26 .level-emblem b{font-size:14px;inset:6px 4px}.profile-showcase-v26 .level-status-copy strong{font-size:12px}.profile-showcase-v26 .level-status-copy small{font-size:7px}.profile-showcase-v26 .level-status-copy>span{font-size:9px}.profile-showcase-v26 .rank-emblem{width:22px;height:22px;flex-basis:22px}.profile-showcase-v26 .rank-status strong{font-size:22px}.profile-showcase-v26 .rank-status small{font-size:7px}.profile-showcase-v26 .rank-status strong span{font-size:8px}.profile-showcase-v26 .profile-xp>div{font-size:9px;gap:7px}.profile-showcase-v26 .profile-xp>div b{font-size:10px}.onboarding-panel{padding:12px}.onboarding-panel>summary{gap:8px}.onboarding-panel>summary b{font-size:13px}.onboarding-panel>summary small{font-size:9px}.onboarding-state{font-size:9px}.onboarding-seal{width:29px;height:32px}}
@media(prefers-reduced-motion:reduce){.mini-scroll-top{animation:none;transition:none}}
