/* Authenticated profile: the stand is a read-only view of the game character. */
.profile-page .profile-heading{align-items:center;gap:20px}
.profile-page .profile-heading p{max-width:650px}
.profile-page [hidden]{display:none!important}
.profile-content{display:grid;gap:26px;min-width:0}
.profile-overview{display:grid;grid-template-columns:minmax(0,1.06fr) minmax(0,1fr);min-width:0;overflow:hidden;border:1px solid #d6c48c2c;background:linear-gradient(140deg,#17212c,#101720 68%);border-radius:10px}
.profile-character{position:relative;isolation:isolate;min-width:0;height:600px;overflow:hidden;background:radial-gradient(ellipse at 50% 28%,#25414655,transparent 66%),linear-gradient(180deg,#14202a,#0b131c)}
.profile-character::before{content:"";position:absolute;inset:10px 10px 34px;border:1px solid #d6c48c12;pointer-events:none;z-index:0}
/* The pedestal belongs to the 3D scene. Keep its whole viewport inside the card
   and reserve caption space below it; no flat floor graphic or clipped overlay. */
.profile-character-frame{position:absolute;inset:10px 10px 34px;z-index:1;min-width:0;min-height:0;overflow:visible}
.profile-character-frame iframe{display:block;border:0;width:100%;height:100%;background:transparent}
.profile-character-caption{position:absolute;left:22px;right:22px;bottom:13px;z-index:2;margin:0;color:#aab9c4;font:500 11px/1.5 Manrope,"Segoe UI",sans-serif;text-align:center;letter-spacing:.05em;pointer-events:none}
.profile-character-state{position:absolute;inset:0;z-index:3;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:13px;padding:32px;text-align:center;background:linear-gradient(180deg,#111c26d9,#0c141be8);color:#bac8d3;font-size:13px;line-height:1.7;pointer-events:none}
.profile-character-state.is-loading::before,.profile-state.is-loading::before{content:"";width:24px;height:24px;border:2px solid #d8c38924;border-top-color:#d8c389;border-radius:50%;animation:profile-turn 1s linear infinite;flex:none}
.profile-character[data-view=ready] .profile-character-state{display:none}
.profile-character[data-view=partial] .profile-character-state{inset:18px 18px auto auto;max-width:220px;padding:7px 10px;font-size:10px;border:1px solid #d2b96b35;border-radius:5px;background:#151c24d9;color:#d7c695;line-height:1.5;backdrop-filter:blur(8px)}
.profile-identity{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:0;padding:clamp(26px,4vw,56px);border-left:1px solid #d6c48c1a}
.profile-identity>.eyebrow{color:#d3bc7c;font-size:10px;letter-spacing:.2em;margin-bottom:17px}
.profile-player-name{font-size:clamp(27px,3.1vw,44px);font-weight:800;line-height:1.15;letter-spacing:-.035em;color:#f1f2ee;margin:0 0 9px;max-width:100%;overflow-wrap:anywhere}
.profile-player-caption{margin:0 0 30px;color:#9eafbd;font-size:13px;line-height:1.7;max-width:100%;overflow-wrap:anywhere}
.profile-rank{display:flex;align-items:center;gap:9px;min-height:30px;margin:0 0 25px;color:#d8c996;font-size:12px;line-height:1.5}
.profile-rank img{width:32px;height:32px;object-fit:contain}
.profile-level-row{display:flex;align-items:center;gap:17px;width:100%;margin-bottom:23px;min-width:0}
.profile-level-number{display:flex;align-items:center;justify-content:center;min-width:76px;min-height:76px;padding:10px;border:1px solid #d9c07866;border-radius:8px;background:linear-gradient(150deg,#c4ae6b16,#c4ae6b04);color:#eddca5;font-size:32px;font-weight:750;font-variant-numeric:tabular-nums;line-height:1;box-sizing:border-box}
.profile-level-copy{display:flex;flex-direction:column;gap:6px;min-width:0}
.profile-level-copy strong{font-size:15px;font-weight:700;line-height:1.4;color:#e4e9ed}
.profile-level-copy span{font-size:12px;line-height:1.6;color:#9dafbc;overflow-wrap:anywhere}
.profile-experience{width:100%;min-width:0}
.profile-progress-label{display:flex;justify-content:space-between;gap:16px;align-items:baseline;margin-bottom:11px;font-size:12px;line-height:1.5;color:#bdc8d1}
.profile-progress-label strong{color:#dfd1a2;font-variant-numeric:tabular-nums;white-space:nowrap}
.profile-progress{display:block;width:100%;height:7px;border:0;border-radius:5px;overflow:hidden;background:#ffffff0a;appearance:none}
.profile-progress::-webkit-progress-bar{background:#ffffff0a;border-radius:5px}
.profile-progress::-webkit-progress-value{background:linear-gradient(90deg,#8ba89b,#d8c589);border-radius:5px}
.profile-progress::-moz-progress-bar{background:linear-gradient(90deg,#8ba89b,#d8c589);border-radius:5px}
.profile-progress-note{margin:12px 0 0;color:#8ea2b0;font-size:11px;line-height:1.65;overflow-wrap:anywhere}
.profile-honor{margin:22px 0 0;padding:10px 13px;border:1px solid #ccb97825;border-radius:5px;background:#ccb97807;color:#cbbf99;font-size:12px;line-height:1.6;font-variant-numeric:tabular-nums}
.profile-updated{margin:32px 0 0;padding-top:20px;border-top:1px solid #c6d5dc15;width:100%;color:#8095a4;font-size:11px;line-height:1.6}
.profile-panels{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:24px;align-items:start;min-width:0}
.profile-panel{min-width:0;border:1px solid #b9c8d51c;background:linear-gradient(145deg,#151e29,#101720);border-radius:9px;padding:24px}
.profile-panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:21px}
.profile-panel-heading h2{font-size:19px;line-height:1.4;letter-spacing:-.02em;font-weight:750;margin:0;color:#e8eced}
.profile-panel-heading p{font-size:12px;line-height:1.65;color:#93a7b5;margin:5px 0 0}
.profile-panel-count{flex:none;display:inline-flex;align-items:center;justify-content:center;min-width:31px;min-height:28px;padding:3px 8px;box-sizing:border-box;border:1px solid #cdbb7b38;border-radius:5px;color:#daca99;background:#cdbb7b09;font-size:12px;line-height:1.4;font-variant-numeric:tabular-nums}
.profile-awards{display:grid;gap:10px;list-style:none;margin:0;padding:0;min-width:0}
.profile-award{display:flex;align-items:center;gap:14px;min-width:0;padding:15px;border:1px solid #bdcdd415;background:#0b141b7a;border-radius:6px}
.profile-award-icon{flex:0 0 57px;width:57px;height:62px;display:flex;align-items:center;justify-content:center}
.profile-award-icon img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 3px 5px #0004)}
.profile-award-copy{min-width:0;flex:1}
.profile-award h3{color:#e0e6e9;font-size:13px;line-height:1.5;font-weight:700;overflow-wrap:anywhere;margin:0}
.profile-award p{color:#93a8b7;font-size:11px;line-height:1.65;margin:5px 0 0;overflow-wrap:anywhere}
.profile-award time{display:block;color:#b3b99d;font-size:10px;line-height:1.6;margin-top:7px}
.profile-award-progress{margin-top:10px}
.profile-award-progress .profile-progress{height:4px}
.profile-award-progress span{display:block;margin-top:5px;font-size:10px;line-height:1.5;color:#aebfca;font-variant-numeric:tabular-nums}
.profile-medals{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.profile-medals .profile-award{flex-direction:column;text-align:center;align-items:center;padding:17px 12px;gap:9px}
.profile-medals .profile-award-icon{width:66px;height:70px;flex-basis:70px}
.profile-medals .profile-award-copy{width:100%}
.profile-medals .profile-award.no-art{align-items:flex-start;text-align:left;justify-content:center;min-height:88px}
.profile-more{margin-top:15px;width:100%;min-height:42px;border:1px solid #c2b27c38;border-radius:5px;background:#c2b27c08;color:#cfc39e;font:600 12px/1.5 Manrope,"Segoe UI",sans-serif;padding:10px 13px;cursor:pointer}
.profile-more:hover,.profile-more:focus-visible{background:#c2b27c17;border-color:#d3c08a}
.profile-family{grid-column:1/-1}
.profile-family-body{display:flex;justify-content:space-between;gap:28px;align-items:center;min-width:0}
.profile-family-name{margin:0;color:#e7e2d0;font-size:24px;font-weight:750;letter-spacing:-.02em;line-height:1.4;overflow-wrap:anywhere}
.profile-family-subtitle{margin:6px 0 0;color:#8fa5b3;font-size:12px;line-height:1.6}
.profile-family-facts{display:flex;flex-wrap:wrap;gap:22px 36px;margin:0;min-width:0}
.profile-family-facts>div{min-width:80px;max-width:230px}
.profile-family-facts dt{color:#8ca2b2;font-size:10px;line-height:1.5;margin-bottom:5px}
.profile-family-facts dd{color:#dce6e8;font-size:15px;font-weight:650;line-height:1.5;margin:0;overflow-wrap:anywhere}
.profile-state{display:flex;align-items:flex-start;gap:13px;flex-direction:column;min-width:0;border:1px solid #c0cfda19;border-radius:8px;background:#101923;color:#a8bac7;padding:26px;line-height:1.7}
.profile-state:empty{display:none}
.profile-state h2,.profile-state h3{margin:0;color:#e0e7ea;font-size:17px;line-height:1.5}
.profile-state p{margin:0;font-size:13px;line-height:1.7;max-width:650px}
.profile-state.is-loading{flex-direction:row;align-items:center}
.profile-state.is-error{border-color:#c99f6840}
.profile-state.is-notice{padding:13px 18px;font-size:12px;margin-bottom:20px}
.profile-panel-state{border:1px dashed #b5c9d21e;border-radius:6px;background:#0c151d4d;padding:21px 18px;min-height:95px;display:flex;flex-direction:column;justify-content:center;gap:6px}
.profile-panel-state strong{color:#bac8d1;font-size:13px;line-height:1.6;font-weight:600}
.profile-panel-state p{color:#8299a8;font-size:12px;line-height:1.65;margin:0}
.profile-page button:focus-visible,.profile-page a:focus-visible{outline:2px solid #e0cb88;outline-offset:4px}
.profile-page button:disabled{opacity:.5;cursor:default}
@keyframes profile-turn{to{transform:rotate(360deg)}}
@media(max-width:1000px){.profile-overview{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.profile-identity{padding:28px}.profile-panels{gap:18px}.profile-panel{padding:20px}.profile-player-name{font-size:30px}.profile-level-number{min-width:64px;min-height:64px;font-size:28px}}
@media(max-width:760px){.profile-overview{grid-template-columns:1fr}.profile-character{height:460px}.profile-identity{border-left:0;border-top:1px solid #d6c48c1a;padding:27px}.profile-player-caption{margin-bottom:22px}.profile-rank{margin-bottom:20px}.profile-updated{margin-top:23px;padding-top:16px}.profile-panels{grid-template-columns:1fr}.profile-family{grid-column:auto}.profile-family-body{align-items:flex-start;flex-direction:column;gap:24px}.profile-family-facts{gap:20px 30px}.profile-page .profile-heading{align-items:flex-start}.profile-page .profile-heading>.btn{flex:none;min-height:44px}}
@media(max-width:440px){.profile-page .profile-heading{flex-wrap:wrap;gap:16px}.profile-overview,.profile-panel{border-radius:6px}.profile-character{height:460px}.profile-identity{padding:23px 20px}.profile-player-name{font-size:29px}.profile-panel{padding:18px 15px}.profile-award{padding:12px;gap:11px}.profile-award-icon{width:47px;height:53px;flex-basis:47px}.profile-medals{gap:8px}.profile-medals .profile-award{padding:14px 8px}.profile-family-name{font-size:21px}.profile-state{padding:21px}.profile-level-number{min-width:64px}.profile-panel-heading h2{font-size:18px}}
@media(prefers-reduced-motion:reduce){.profile-character-state.is-loading::before,.profile-state.is-loading::before{animation:none}}
@media(forced-colors:active){.profile-overview,.profile-panel,.profile-award,.profile-level-number,.profile-panel-state{border-color:CanvasText}.profile-character::before,.profile-character::after{display:none}.profile-progress{forced-color-adjust:auto}}
