
/* The Axiom — Профиль 2.0: интерфейс персонажа */
#page-profile{--axp-edge:rgba(194,112,255,.22);--axp-surface:#151020;--axp-glow:#bd55ff}
#page-profile .eclipse-page-head{min-height:215px;background:radial-gradient(ellipse at 85% 20%,rgba(172,71,247,.24),transparent 52%),linear-gradient(115deg,#170e28,#0e0c16)!important}
#page-profile .eclipse-page-head__content{max-width:760px}
#page-profile .eclipse-page-head h2{font-size:clamp(1.9rem,3.6vw,3.2rem);letter-spacing:-.045em}
#page-profile .section-label{margin:24px 0 12px}
#page-profile .axp-welcome{display:flex;align-items:center;gap:23px;padding:26px 30px;margin:25px 0;border-radius:24px;background:linear-gradient(110deg,rgba(93,34,146,.35),rgba(16,13,25,.9));border:1px solid var(--axp-edge)}
#page-profile .axp-welcome__symbol{display:grid;place-items:center;flex:none;width:80px;height:80px;border-radius:22px;color:#ead0ff;font-size:34px;background:linear-gradient(145deg,#6c2f9c,#27153d);box-shadow:0 10px 35px rgba(142,55,255,.18)}
#page-profile .axp-welcome h3{font-size:clamp(1.2rem,2vw,1.7rem);margin:3px 0 7px}#page-profile .axp-welcome p{color:#b9aec9;max-width:650px}
#page-profile .axp-kicker{font-size:.72rem;letter-spacing:.16em;color:#d2a5ff;font-weight:800}
#page-profile #loginForm,#page-profile #registerForm{max-width:760px!important;margin:20px auto!important;padding:clamp(22px,4vw,42px)!important;background:linear-gradient(145deg,#1d142d,#100e19)!important;border:1px solid var(--axp-edge)!important;border-radius:26px!important;box-shadow:0 24px 65px rgba(0,0,0,.18)}
#page-profile #loginForm h3,#page-profile #registerForm h3{font-size:1.65rem;margin-bottom:10px}
#page-profile .login-form{display:grid;gap:14px;margin-top:24px}#page-profile .login-form input{min-height:52px;background:#0d0b15;border:1px solid rgba(195,144,255,.22);border-radius:13px;padding:12px 16px;color:#fff;width:100%;outline:none;transition:border-color .2s,box-shadow .2s}
#page-profile .login-form input:focus{border-color:#bd55ff;box-shadow:0 0 0 3px rgba(189,85,255,.13)}
#page-profile .login-form button{min-height:52px;border-radius:13px;font-weight:800;background:linear-gradient(110deg,#8c3bd5,#bd55ff);box-shadow:0 8px 28px rgba(157,62,242,.18)}
#page-profile #profileInfo{padding:clamp(15px,2.5vw,28px);border:1px solid var(--axp-edge);border-radius:26px;background:linear-gradient(160deg,#171021,#0c0b13);margin-top:22px}
#page-profile #profileInfo>div:first-child{gap:15px;flex-wrap:wrap}
#page-profile .axp-character{position:relative;display:flex;align-items:center;gap:24px;padding:30px!important;margin:18px 0 24px;background:radial-gradient(circle at 10% 45%,rgba(162,68,241,.23),transparent 48%),linear-gradient(125deg,#221332,#12101d);border:1px solid rgba(191,110,255,.26);border-radius:24px;min-height:160px;flex-wrap:wrap}
#page-profile .axp-character-note{width:100%;font-size:.73rem;letter-spacing:.14em;text-transform:uppercase;color:#cf9cff;font-weight:800}
#page-profile .axp-character .profile-avatar{width:96px!important;height:96px!important;object-fit:cover;border-radius:19px!important;image-rendering:pixelated;border:3px solid rgba(198,132,255,.6);box-shadow:0 0 30px rgba(172,71,247,.28)}
#page-profile #profileDisplayName{font-size:clamp(1.7rem,3vw,2.5rem)!important;letter-spacing:-.04em}
#page-profile .axp-quick{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin:18px 0 28px}
#page-profile .axp-quick-card{display:flex;flex-direction:column;gap:8px;min-height:135px;padding:19px 16px;border-radius:18px;border:1px solid rgba(190,119,255,.19);background:linear-gradient(145deg,#21152e,#12101a);color:#fff;text-decoration:none!important;transition:transform .2s,border-color .2s,background .2s}
#page-profile .axp-quick-card:hover{transform:translateY(-4px);border-color:#bd55ff;background:#29193b}#page-profile .axp-quick-card i{font-size:22px;color:#c58aff}#page-profile .axp-quick-card strong{font-size:1.02rem}#page-profile .axp-quick-card span{font-size:.79rem;line-height:1.45;color:#b1a4bf}
#page-profile #profileStatsContainer{gap:12px}#page-profile .axp-module{margin-top:28px!important;padding:25px!important;background:linear-gradient(145deg,rgba(35,23,48,.8),rgba(16,13,24,.92));border:1px solid rgba(191,110,255,.2)!important;border-radius:21px}#page-profile .axp-module h4{font-size:1.25rem;margin-bottom:12px!important}
#page-profile #skinGridProfile{display:grid;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:12px}
#page-profile .skin-card-profile{margin:0!important;border-radius:15px!important;transition:transform .2s,border-color .2s}#page-profile .skin-card-profile:hover{transform:translateY(-3px)}
@media(max-width:900px){#page-profile .axp-quick{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:540px){#page-profile .axp-welcome{padding:19px;gap:14px;align-items:flex-start}#page-profile .axp-welcome__symbol{width:52px;height:52px;font-size:23px;border-radius:15px}#page-profile .axp-character{padding:18px!important;gap:15px}#page-profile .axp-quick-card{padding:14px 12px;min-height:125px}}
@media(prefers-reduced-motion:reduce){#page-profile .axp-quick-card{transition:none}#page-profile .axp-quick-card:hover{transform:none}}

/* Layout rebuild: no absolute-positioned or transformed cards in the profile. */
#page-profile, #page-profile article, #page-profile #profileInfo {min-width:0!important;max-width:100%;overflow:visible!important}
#page-profile #profileInfo {display:block; isolation:isolate}
#page-profile .axp-module {display:block;position:relative!important;clear:both!important;float:none!important;height:auto!important;min-height:0!important;overflow:visible!important;transform:none!important;contain:layout;}
#page-profile .axp-module[style*="display: none"] {display:none!important}
#page-profile #skinGridProfile {display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(145px,100%),1fr))!important;gap:14px!important;align-items:stretch!important;position:static!important;height:auto!important;max-height:none!important;overflow:visible!important;}
#page-profile #skinGridProfile > .skin-card-profile {position:relative!important;inset:auto!important;transform:none!important;float:none!important;display:flex!important;flex-direction:column!important;justify-content:flex-start!important;align-items:center!important;width:100%!important;min-width:0!important;height:auto!important;min-height:164px!important;margin:0!important;padding:16px 10px!important;gap:10px!important;box-sizing:border-box!important;overflow:hidden!important;opacity:1!important;visibility:visible!important;}
#page-profile #skinGridProfile .skin-head-profile{width:64px!important;height:64px!important;min-height:64px!important;object-fit:contain!important;position:static!important;display:block!important}
#page-profile #skinGridProfile .skin-name-profile{font-size:.8rem!important;line-height:1.4!important;min-height:1.4em;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#page-profile #skinGridProfile .btn-apply-profile{position:static!important;display:block!important;transform:none!important;min-height:38px!important;margin-top:auto!important;width:100%!important}
#page-profile #ranksSection{margin-top:28px!important;clear:both!important;position:relative!important;z-index:auto!important}
#page-profile #ranksGrid {display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr))!important;gap:16px!important;align-items:start!important;overflow:visible!important;height:auto!important;position:static!important}
#page-profile .axiom-reveal-ready, #page-profile .axiom-reveal-ready.axiom-revealed {opacity:1!important;transform:none!important;transition:none!important}
#page-profile .ax-rank{position:relative;display:flex;flex-direction:column;gap:18px;min-width:0;min-height:0;height:auto;padding:22px;border:1px solid rgba(189,85,255,.22);border-radius:20px;background:linear-gradient(150deg,#271936,#15101f);box-shadow:0 12px 35px #0002;overflow:hidden;box-sizing:border-box}
#page-profile .ax-rank::before{content:'';position:absolute;inset:0 auto 0 0;width:3px;background:var(--rank-accent)}
#page-profile .ax-rank__top{display:flex;align-items:center;gap:14px;min-width:0}
#page-profile .ax-rank__icon{flex:none;display:grid;place-items:center;width:54px;height:54px;border-radius:15px;background:rgba(189,85,255,.12);font-size:27px}
#page-profile .ax-rank__identity{flex:1;min-width:0}#page-profile .ax-rank__identity h4{font-size:1.2rem;color:var(--rank-accent);margin:0 0 5px!important}#page-profile .ax-rank__identity p{font-size:.82rem;line-height:1.5;color:#bcb1ca;margin:0}
#page-profile .ax-rank__status{font-size:.68rem;color:#9ff0bc;border:1px solid #4b9b70;padding:5px 8px;border-radius:99px}
#page-profile .ax-rank__details{border-top:1px solid #ffffff15;padding-top:14px;min-width:0}
#page-profile .ax-rank__details summary{display:flex;justify-content:space-between;gap:8px;cursor:pointer;color:#dfc4ff;font-size:.84rem;font-weight:700;list-style:none}#page-profile .ax-rank__details summary::-webkit-details-marker{display:none}
#page-profile .ax-rank__details ul{list-style:none!important;padding:12px 0 0!important;margin:0!important;display:grid;gap:9px}
#page-profile .ax-rank__details li{display:flex;align-items:flex-start;gap:9px;font-size:.8rem;color:#c8bed5;line-height:1.5;overflow-wrap:anywhere}
#page-profile .ax-rank__details li span:first-child{flex:none}#page-profile .ax-rank__inherit{font-size:.76rem;color:#bd94ee;margin:12px 0 0}
#page-profile .ax-rank__footer{margin-top:auto;padding-top:16px;border-top:1px solid #ffffff18;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
#page-profile .ax-rank__price{display:flex;flex-direction:column;gap:3px}#page-profile .ax-rank__price strong{font-size:1.3rem;color:#f4e3ff}#page-profile .ax-rank__price span{font-size:.7rem;color:#a89bb7}
#page-profile .ax-rank__buy{display:inline-flex;justify-content:center;align-items:center;gap:12px;min-height:44px;padding:11px 18px;border:1px solid #c77cff;border-radius:12px;background:linear-gradient(110deg,#8a39d0,#bd55ff);color:white;font-size:.85rem;font-weight:800;cursor:pointer}
#page-profile .ax-rank__owned{font-size:.8rem;color:#9ff0bc}
@media(max-width:900px){#page-profile #skinGridProfile{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:580px){#page-profile #skinGridProfile{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}#page-profile .ax-rank{padding:16px}#page-profile .ax-rank__footer{align-items:stretch}#page-profile .ax-rank__buy{flex:1}#page-profile .axp-module{padding:14px!important}}
