/* Faction marks occupy their own space; portraits and equipped frames stay clear. */
.card-faction-badge,.appearance-faction{--faction-tone:#8cc6a6}
[data-faction=light].card-faction-badge,.appearance-faction[data-faction=light]{--faction-tone:#efd28e}
[data-faction=dark].card-faction-badge,.appearance-faction[data-faction=dark]{--faction-tone:#e88492}
[data-faction=maniac].card-faction-badge,.appearance-faction[data-faction=maniac]{--faction-tone:#c2c8d3}
.card-faction-badge{display:inline-grid;place-items:center;flex:none;width:23px;height:25px;box-sizing:border-box;border:1px solid color-mix(in srgb,var(--faction-tone) 33%,transparent);border-radius:8px;background:linear-gradient(145deg,color-mix(in srgb,var(--faction-tone) 9%,#1e2029),#151720);color:var(--faction-tone);box-shadow:inset 0 1px #ffffff0a,0 3px 8px #0002}
.card-faction-badge svg{width:16px;height:16px;filter:drop-shadow(0 0 4px color-mix(in srgb,var(--faction-tone) 25%,transparent))}
.player-card-top{display:flex;align-items:center;justify-content:space-between;width:100%;gap:4px;min-height:25px}
.player-card-top .podium-place{gap:4px}
.identity-portrait:not(.large){--hero-width:68px;--badge-space:26px;display:grid!important;grid-template-columns:var(--hero-width) var(--badge-space);width:calc(var(--hero-width) + var(--badge-space))!important}
.identity-portrait:not(.large) .identity-hero{grid-column:1;grid-row:1;width:var(--hero-width);height:100%}
.identity-portrait:not(.large)>.card-faction-badge{grid-column:2;grid-row:1;justify-self:end;align-self:start}
.identity-portrait:not(.large)>.identity-photo{right:calc(var(--badge-space) - 3px)!important}
body[data-client=site] .identity-portrait:not(.large)>.identity-photo{right:calc(var(--badge-space) - 3px)!important}
.player-dual{gap:12px}
.public-card-top{position:absolute;right:14px;top:12px;display:flex;justify-content:flex-end;pointer-events:none}
#podium .podium-card{position:relative;padding-top:46px!important}
.rank-avatar:has(>.card-faction-badge){margin-right:27px;overflow:visible!important}
.rank-avatar>.card-faction-badge{position:absolute;left:calc(100% + 4px);top:0}
.character-card{position:relative}
.character-card-top{display:flex;justify-content:flex-end;padding:10px 12px 0;min-height:25px}
/* The same compact dossier is shared by the website and Telegram shell. */
.profile-v20 .profile-showcase.profile-showcase-v25{grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr)!important;grid-template-areas:none!important;grid-template-rows:auto!important;align-items:stretch;gap:20px!important;padding:18px!important;border-radius:22px}
.profile-v20 .profile-showcase.profile-showcase-v25>.avatar-stage{grid-area:auto!important;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;height:auto!important;min-height:0!important;padding:0!important;overflow:visible;border:1px solid #ffffff09;border-radius:16px!important;background:radial-gradient(ellipse at 50% 54%,color-mix(in srgb,var(--faction-color,#cbb183) 8%,transparent),transparent 72%),#11131b!important}
.appearance-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 16px;padding:15px 0 13px;border-bottom:1px solid #ffffff0d;min-height:37px;flex:none}
.appearance-heading h3{font:600 20px/1.2 system-ui,sans-serif;letter-spacing:-.035em;color:#f0e7d8;margin:0;text-shadow:0 0 20px #dbb97416}
.appearance-faction{display:flex;align-items:center;gap:8px;color:var(--faction-tone);text-shadow:0 0 12px color-mix(in srgb,var(--faction-tone) 14%,transparent)}
.appearance-faction .card-faction-badge{width:28px;height:31px;border-radius:10px}
.appearance-faction .card-faction-badge svg{width:19px;height:19px}
.appearance-faction>span:last-child{display:grid;gap:3px}
.appearance-faction small{font:500 9px/1 system-ui,sans-serif;letter-spacing:.08em;color:#b7b1bd}
.appearance-faction b{font:600 13px/1 system-ui,sans-serif}
.profile-showcase-v25 .avatar-viewport{position:relative;display:flex;justify-content:center;align-items:center;width:100%;height:355px;flex:1;min-height:300px;overflow:hidden;border-radius:0 0 15px 15px}
.profile-showcase-v25 .avatar-viewport>.profile-frame{width:calc(100% - 20px)!important;max-width:350px;height:calc(100% - 14px)!important;min-height:290px;margin:7px 10px!important}
.profile-v20 .profile-showcase-v25 .avatar-viewport>.avatar-render{height:100%!important;width:100%!important;min-height:300px!important}
.profile-showcase-v25 .profile-dossier{display:flex;flex-direction:column;justify-content:center;gap:18px;min-width:0;padding:5px 2px}
.profile-v20 .profile-showcase-v25 .profile-heading{grid-area:auto;display:flex;align-items:center;gap:18px;padding:0!important;margin:0!important;min-width:0}
.profile-showcase-v25 .profile-heading-copy{flex:1;min-width:0}
.profile-showcase-v25 .profile-heading .eyebrow{display:block;font-size:10px;line-height:1.45;letter-spacing:.1em;color:#c7b38e}
.profile-showcase-v25 .profile-heading h2{font:600 clamp(25px,2.6vw,36px)/1.12 system-ui,sans-serif;letter-spacing:-.045em;color:#f0e8da;margin:8px 0 6px}
.profile-showcase-v25 .profile-heading .profile-photo-row{width:94px;max-width:94px;gap:4px;margin:0!important}
.profile-showcase-v25 .profile-heading .profile-real-photo{width:88px;height:88px;border-radius:17px!important;box-sizing:border-box;border-color:#c7b38e65}
.profile-showcase-v25 .profile-photo-row>div{gap:0}
.profile-showcase-v25 .profile-photo-row .text-button{font-size:10px;min-height:25px;line-height:1.35;padding:4px 0}
.profile-showcase-v25 .profile-photo-row button.text-button{font-size:9px;min-height:23px;color:#9f9aa7}
.profile-showcase-v25 .nickname-button{font-size:10px;line-height:1.45;min-height:30px;text-align:left;padding:4px 0;color:#b8ac96;white-space:normal}
.profile-standing{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px}
.profile-showcase-v25 .rank-status,.profile-showcase-v25 .level-status{display:flex;align-items:center;gap:10px;margin:0!important;padding:12px;min-width:0;border:1px solid #cbb18325;border-radius:14px;background:linear-gradient(130deg,#cbb1830a,#ffffff02)}
.profile-showcase-v25 .rank-status{border-color:color-mix(in srgb,var(--rank-tone) 24%,transparent);background:linear-gradient(130deg,color-mix(in srgb,var(--rank-tone) 7%,#171923),#171923)}
.profile-showcase-v25 .rank-emblem{width:32px;height:32px;min-width:32px}
.profile-showcase-v25 .rank-emblem svg{width:100%;height:100%}
.profile-showcase-v25 .rank-status small{font-size:8px;line-height:1.45;letter-spacing:.04em;white-space:normal}
.profile-showcase-v25 .rank-status strong{font-size:26px;line-height:1.1}
.profile-showcase-v25 .rank-status strong span{font-size:10px;margin-left:4px}
.profile-showcase-v25 .level-emblem{width:35px;height:39px;flex:none}
.profile-showcase-v25 .level-emblem b{font-size:16px}
.profile-showcase-v25 .level-status-copy{gap:3px}
.profile-showcase-v25 .level-status-copy small{font-size:8px;letter-spacing:.05em}
.profile-showcase-v25 .level-status-copy strong{font-size:16px}
.profile-showcase-v25 .level-status-copy>span{font-size:10px}
.profile-showcase-v25 .level-next{display:none}
.profile-v20 .profile-showcase-v25 .profile-identity{grid-area:auto!important;align-self:stretch;padding:0!important;display:grid;gap:16px;min-width:0}
.profile-showcase-v25 .profile-xp{margin:0!important;padding:14px 0 0;border-top:1px solid #ffffff0b}
.profile-showcase-v25 .profile-xp>div{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;line-height:1.5;margin-bottom:8px}
.profile-showcase-v25 .profile-xp>div b{font-size:11px;font-variant-numeric:tabular-nums;color:#e3cfaa}
.profile-showcase-v25 .profile-xp progress{display:block;width:100%;height:7px;margin:0}
.profile-showcase-v25 .progress-explanation{font-size:10px;line-height:1.5;margin:7px 0;color:#a9a4b0}
.profile-showcase-v25 .level-explainer{margin:5px 0 0;font-size:10px}
.profile-showcase-v25 .level-explainer summary{cursor:pointer;min-height:26px;display:flex;align-items:center;gap:6px;color:#c0b39d}
.profile-showcase-v25 .level-explainer summary:before{content:'+';font-size:14px}
.profile-showcase-v25 .level-explainer[open] summary:before{content:'−'}
.profile-showcase-v25 .level-explainer p{font-size:11px;line-height:1.65}
.profile-showcase-v25 .profile-actions{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:9px;margin:0}
.profile-showcase-v25 .profile-actions .button{font-size:11px;line-height:1.4;min-height:44px;padding:10px 9px;white-space:normal;text-align:center;justify-content:center;margin:0}
.profile-heading h2.nickname-flash{background:linear-gradient(105deg,#eee4d4 35%,#fff 47%,#f6dba3 50%,#fff 53%,#eee4d4 65%);background-size:250% 100%;background-position:130% 0;background-clip:text;-webkit-background-clip:text;color:transparent;animation:nickname-glint 1.25s ease-out 1 both}
@keyframes nickname-glint{from{background-position:130% 0}to{background-position:-30% 0}}
@media(max-width:1000px){.profile-v20 .profile-showcase.profile-showcase-v25{gap:16px!important;padding:14px!important}.profile-showcase-v25 .profile-standing{gap:7px}.profile-showcase-v25 .rank-status,.profile-showcase-v25 .level-status{padding:10px;gap:7px}.profile-showcase-v25 .profile-heading h2{font-size:28px}.profile-showcase-v25 .rank-emblem{width:26px;height:26px;min-width:26px}.profile-showcase-v25 .level-emblem{width:30px;height:34px}}
@media(max-width:760px){.profile-v20 .profile-showcase.profile-showcase-v25{grid-template-columns:minmax(0,1fr)!important;gap:18px!important;padding:14px!important}.profile-showcase-v25 .profile-dossier{grid-row:1;gap:15px;padding:1px 0}.profile-v20 .profile-showcase-v25 .profile-heading{gap:16px}.profile-showcase-v25 .profile-heading h2{font-size:30px}.profile-showcase-v25 .profile-heading .profile-photo-row{width:88px;max-width:88px}.profile-showcase-v25 .profile-heading .profile-real-photo{width:82px;height:82px}.profile-showcase-v25 .avatar-viewport{height:335px;min-height:0;flex:none}.profile-showcase-v25 .avatar-viewport>.profile-frame{min-height:0;max-width:330px}.profile-v20 .profile-showcase-v25 .avatar-viewport>.avatar-render{min-height:0!important}.profile-showcase-v25 .rank-status,.profile-showcase-v25 .level-status{padding:12px;gap:10px}.profile-showcase-v25 .rank-emblem{width:30px;height:30px;min-width:30px}.profile-showcase-v25 .level-emblem{width:35px;height:39px}.appearance-heading{margin:0 14px;padding:13px 0}.appearance-heading h3{font-size:20px}}
@media(max-width:620px){.identity-portrait:not(.large){--hero-width:54px;--badge-space:25px}.player-dual{gap:10px}.player-card-top .podium-place .icon{width:15px;height:15px}.player-card-top .podium-place{font-size:10px}.player-card-top .card-faction-badge{width:21px;height:23px}.player-card-top .card-faction-badge svg{width:14px;height:14px}}
@media(max-width:360px){.identity-portrait:not(.large){--hero-width:46px;--badge-space:24px}.profile-v20 .profile-showcase.profile-showcase-v25{padding:11px!important;gap:15px!important}.profile-v20 .profile-showcase-v25 .profile-heading{gap:12px}.profile-showcase-v25 .profile-heading h2{font-size:25px}.profile-showcase-v25 .profile-heading .profile-photo-row{width:70px;max-width:70px}.profile-showcase-v25 .profile-heading .profile-real-photo{width:68px;height:68px;border-radius:14px!important}.profile-showcase-v25 .profile-standing{gap:7px}.profile-showcase-v25 .rank-status,.profile-showcase-v25 .level-status{padding:9px 7px;gap:6px;border-radius:12px}.profile-showcase-v25 .rank-emblem{width:24px;height:24px;min-width:24px}.profile-showcase-v25 .rank-status strong{font-size:23px}.profile-showcase-v25 .rank-status strong span{font-size:9px;margin-left:3px}.profile-showcase-v25 .rank-status small{font-size:7px}.profile-showcase-v25 .level-emblem{width:28px;height:32px}.profile-showcase-v25 .level-status-copy strong{font-size:14px}.profile-showcase-v25 .level-status-copy>span{font-size:9px}.profile-showcase-v25 .profile-actions .button{font-size:10px}.profile-showcase-v25 .avatar-viewport{height:310px}.appearance-heading{gap:8px;margin:0 12px}.appearance-heading h3{font-size:18px}}
@media(prefers-reduced-motion:reduce){.profile-heading h2.nickname-flash{animation:none;background:none;color:#f0e8da}}
.profile-showcase-v25 .profile-dossier,.profile-showcase-v25 .rank-status,.profile-showcase-v25 .level-status{text-align:left}
.profile-showcase-v25 .level-status-copy strong{white-space:nowrap}
.profile-showcase-v25 .level-explainer summary::after{display:none}
@media(max-width:1000px){.profile-showcase-v25 .level-status-copy strong{font-size:14px}.profile-showcase-v25 .rank-status,.profile-showcase-v25 .level-status{gap:7px;padding:10px}}
@media(max-width:360px){.profile-showcase-v25 .level-status-copy strong{font-size:12px}.profile-showcase-v25 .rank-status,.profile-showcase-v25 .level-status{gap:6px;padding:9px 7px}}
.profile-showcase-v25 .profile-heading-copy,.profile-showcase-v25 .profile-heading-copy h2,.profile-showcase-v25 .profile-heading-copy .eyebrow{text-align:left!important}
.profile-showcase-v25 .avatar-viewport>.profile-frame{position:absolute;inset:7px 10px;width:calc(100% - 20px)!important;height:calc(100% - 14px)!important;max-width:none;margin:0!important;min-height:0}
.profile-showcase-v25 .avatar-viewport>.avatar-render{position:absolute!important;inset:0}
