/* PROFILE additions: static decoration, no layout or image-entry animations. */
.profile-cosmetic-title{margin:.35rem 0 0;color:var(--profile-accent);font-size:.7rem;line-height:1.4;font-weight:700}
.profile-hero[data-frame="rune"]{border-color:var(--profile-accent);box-shadow:none}
.profile-hero[data-frame="line"]{border-radius:.75rem;border-color:transparent;box-shadow:none}
.profile-pinned-trophies{position:relative;z-index:3;display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.8rem;max-width:76%}
.profile-pinned-trophies span{padding:.3rem .45rem;border:1px solid rgba(var(--profile-accent-rgb),.3);border-radius:.35rem;background:#17121de8;color:#eee3fa;font-size:.62rem;font-weight:700}
.profile-decor-editor{border:1px solid var(--line);border-radius:1rem;background:var(--surface);padding:0 1rem}
.profile-decor-editor>summary,.profile-all-trophies>summary{cursor:pointer;color:#ddd2ec;font-size:.82rem;font-weight:700;padding:.45rem 0}
.profile-decor-editor>summary{display:flex;align-items:center;justify-content:space-between;list-style:none;min-height:3.4rem;padding:.75rem 0;font-size:.875rem}
.profile-decor-editor>summary::-webkit-details-marker{display:none}
.profile-decor-editor>summary span{font-size:1.1rem;color:var(--profile-accent)}
.profile-decor-editor[open]>summary span{transform:rotate(45deg)}
.profile-decor-editor form{padding:.5rem 0 1rem;display:grid;gap:1.5rem}
.profile-decor-editor fieldset{min-width:0;margin:0;padding:0;border:0}.profile-decor-editor legend{margin-bottom:.65rem;color:var(--text-secondary);font-size:.8125rem;font-weight:650}
.profile-decor-editor .profile-theme-card{padding:0;border:0;background:none;border-radius:0}.profile-decor-editor .profile-theme-card h2{font-size:.8125rem;font-weight:650;letter-spacing:0;color:var(--text-secondary)}
.profile-decor-editor .profile-theme-options{margin-top:.65rem}
.profile-decor-actions{display:flex;gap:.65rem;padding-top:1rem;border-top:1px solid var(--line)}.profile-decor-actions button{min-height:2.75rem;font-size:.8125rem;padding:.65rem .8rem}.profile-decor-actions button:first-child{flex:1}
.profile-title-options{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}.profile-title-options>.profile-choice:first-child{grid-column:1/-1}
.profile-choice{position:relative;min-width:0;cursor:pointer}.profile-choice input,#profilePinOptions input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.profile-choice>span{display:flex;align-items:center;gap:.4rem;min-height:2.75rem;padding:.65rem .75rem;background:var(--surface-2);border:1px solid var(--line);border-radius:.75rem;color:var(--text-secondary)}
.profile-choice>span{height:100%}.profile-choice strong{font-size:.8125rem;font-weight:650;line-height:1.45}.profile-choice input:checked+span{background:#332443;border-color:#9870cb;color:#f1e6ff}
.profile-choice input:focus-visible+span,#profilePinOptions input:focus-visible+span{outline:2px solid #d2b3ff;outline-offset:3px}
.profile-frame-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem}.profile-frame-choice>span{display:flex;flex-direction:column;align-items:stretch;padding:.5rem;text-align:center}.profile-frame-choice strong{font-size:.75rem}.profile-frame-choice small{color:var(--text-secondary);font-size:.625rem;line-height:1.4}
.frame-sample{position:relative;display:block;aspect-ratio:1/1.05;overflow:hidden;border:1px solid var(--line);border-radius:.6rem;background:#0e0b17;color:var(--profile-accent);margin-bottom:.3rem}
.frame-sample-art{position:absolute;inset:0;background:url('./brand/icon-128.png') center/64% no-repeat;opacity:.6}
.profile-frame-ornaments{position:absolute;z-index:2;inset:9px;pointer-events:none;color:var(--profile-accent)}
.profile-frame-ornaments i,.profile-frame-ornaments b,.frame-sample i,.frame-sample b{display:none;position:absolute}
.profile-hero[data-frame="rune"] .profile-frame-ornaments{border:1px solid rgba(var(--profile-accent-rgb),.6);border-radius:1rem}
.profile-hero[data-frame="rune"] .profile-frame-ornaments i,.frame-sample[data-frame="rune"] i{display:block;width:10px;height:10px;transform:rotate(45deg);border:1px solid currentColor;background:#17101f}
.profile-frame-ornaments i:nth-child(1),.frame-sample i:nth-child(2){top:9px;left:9px}.profile-frame-ornaments i:nth-child(2),.frame-sample i:nth-child(3){top:9px;right:9px}.profile-frame-ornaments i:nth-child(3),.frame-sample i:nth-child(4){bottom:9px;right:9px}.profile-frame-ornaments i:nth-child(4),.frame-sample i:nth-child(5){bottom:9px;left:9px}
.profile-hero[data-frame="rune"] .profile-frame-ornaments b,.frame-sample[data-frame="rune"] b{display:block;left:calc(50% - 10px);top:-6px;width:20px;height:12px;background:currentColor;clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%)}
.frame-sample[data-frame="rune"]{border-color:currentColor;outline:1px solid currentColor;outline-offset:-5px}.frame-sample[data-frame="rune"] b{top:0}
.profile-hero[data-frame="line"] .profile-frame-ornaments i,.frame-sample[data-frame="line"] i{display:block;width:30px;height:30px;border:3px solid currentColor;background:none}
.profile-hero[data-frame="line"] .profile-frame-ornaments i:nth-child(1),.frame-sample[data-frame="line"] i:nth-child(2){top:0;left:0;border-right:0;border-bottom:0}
.profile-hero[data-frame="line"] .profile-frame-ornaments i:nth-child(2),.frame-sample[data-frame="line"] i:nth-child(3){top:0;right:0;border-left:0;border-bottom:0}
.profile-hero[data-frame="line"] .profile-frame-ornaments i:nth-child(3),.frame-sample[data-frame="line"] i:nth-child(4){bottom:0;right:0;border-left:0;border-top:0}
.profile-hero[data-frame="line"] .profile-frame-ornaments i:nth-child(4),.frame-sample[data-frame="line"] i:nth-child(5){bottom:0;left:0;border-right:0;border-top:0}
.frame-sample[data-frame="line"]{border:0;border-radius:0}.frame-sample[data-frame="line"] i{width:17px;height:17px}
.profile-hero[data-frame="line"] .profile-frame-ornaments b{display:block;bottom:0;left:calc(50% - 25px);width:50px;height:3px;background:currentColor}
.profile-hero[data-frame="rune"]::after,.profile-hero[data-frame="line"]::after{box-shadow:none}
#profilePinOptions{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}#profilePinOptions label{position:relative;cursor:pointer;min-width:0}#profilePinOptions label>span{display:flex;align-items:center;gap:.5rem;min-height:2.75rem;padding:.6rem;border:1px solid var(--line);border-radius:.65rem;font-size:.75rem;color:var(--text-secondary);line-height:1.4}#profilePinOptions label>span::before{content:'';width:14px;height:14px;border:1px solid #80728e;border-radius:4px;flex-shrink:0}#profilePinOptions input:checked+span{background:#332443;border-color:#9870cb;color:#f1e6ff}#profilePinOptions input:checked+span::before{background:#d8baff;border-color:#d8baff;box-shadow:inset 0 0 0 3px #332443}#profilePinOptions input:disabled+span{opacity:.5;cursor:default}#profilePinOptions .profile-note{grid-column:1/-1;margin:0}
.profile-note,.profile-experience-status{font-size:.75rem;line-height:1.55;color:var(--muted)}.profile-note:empty,.profile-experience-status:has(p:empty):not(:has(button:not(.hidden))){display:none}
.profile-experience-status p{margin:0}.profile-experience-status .text-button{font-size:.75rem}
.profile-next-goal,.profile-community,.profile-history{min-width:0;padding:1rem;border:1px solid var(--line);border-radius:1.1rem;background:rgba(19,16,27,.82)}
.profile-next-goal{border-color:rgba(var(--profile-accent-rgb),.32)}
.profile-next-goal h2,.profile-community h2,.profile-history h2{font-size:1.1rem;line-height:1.25;letter-spacing:-.025em;margin:0}
.profile-goal-heading{display:flex;justify-content:space-between;align-items:center;gap:1rem}.profile-goal-heading>strong{white-space:nowrap;font-size:1.35rem;font-variant-numeric:tabular-nums;color:var(--profile-accent)}.profile-goal-heading small{font-size:.75rem;color:var(--muted);font-weight:500}
.profile-next-goal p:not(.eyebrow){font-size:.78rem;line-height:1.5;color:var(--muted);margin:.65rem 0}
.profile-next-goal progress{display:block;width:100%;height:.3rem;border:0;border-radius:1rem;overflow:hidden;background:#312a3d;accent-color:var(--profile-accent)}.profile-next-goal progress::-webkit-progress-bar{background:#312a3d}.profile-next-goal progress::-webkit-progress-value{background:var(--profile-accent)}.profile-next-goal progress::-moz-progress-bar{background:var(--profile-accent)}
.profile-goal-footer{display:flex;justify-content:space-between;align-items:center;gap:.5rem;margin-top:.4rem;font-size:.7rem;color:var(--muted)}.profile-goal-footer button{font-size:.72rem;min-height:2.75rem}
.profile-community-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.3rem;padding:.25rem;background:#0e0b15;border-radius:.7rem;margin-top:.9rem}.profile-community-tabs button{min-width:0;min-height:2.75rem;padding:.5rem .1rem;background:transparent;border:1px solid transparent;border-radius:.5rem;color:var(--muted);font-size:.65rem;font-weight:800;cursor:pointer}.profile-community-tabs button[aria-pressed="true"]{background:#2d2241;color:#f3eaff;border-color:#5c427d}
#profileCommunityBody{min-height:5.4rem;font-size:.8rem;line-height:1.5}#profileCommunityBody p{margin:.5rem 0}
.profile-community-result{display:flex;gap:.8rem;justify-content:space-between;align-items:center}.profile-community-result>div:first-child{min-width:0;display:grid;gap:.2rem}.profile-community-result small,.profile-community-result span{font-size:.72rem;color:var(--muted)}.profile-community-result strong{overflow-wrap:anywhere;font-size:1.05rem}.profile-overlap{display:grid;flex-shrink:0;text-align:right;gap:.25rem}.profile-overlap>strong{font-size:1.75rem;color:#d5bbff;font-variant-numeric:tabular-nums}.profile-overlap strong small{font-size:1rem}
.profile-history-item{border-bottom:1px solid var(--line)}.profile-history-item:last-child{border-bottom:0}.profile-history-item summary{display:flex;align-items:center;gap:.75rem;justify-content:space-between;cursor:pointer;padding:.8rem 0;list-style:none}.profile-history-item summary::-webkit-details-marker{display:none}.profile-history-item summary>span:first-child{min-width:0;display:grid;gap:.25rem}.profile-history-item strong{font-size:.8rem;line-height:1.4;overflow-wrap:anywhere}.profile-history-item small{color:var(--muted);font-size:.65rem;line-height:1.4}.profile-history-item summary>span:last-child{color:var(--profile-accent)}.profile-history-item[open] summary>span:last-child{transform:rotate(45deg)}.profile-history-snapshot{padding:0 .6rem .6rem;border-left:2px solid #634889;font-size:.75rem;line-height:1.7}.profile-history-snapshot p{color:var(--muted);margin:.25rem 0}.profile-history-snapshot ol{padding-left:1.3rem;margin:.4rem 0}.profile-all-trophies{margin-top:.65rem}
.profile-decor-editor :focus-visible,.profile-community :focus-visible,.profile-history :focus-visible,.profile-all-trophies :focus-visible{outline:2px solid #c6a9ff;outline-offset:3px}
.profile-goal-footer>span{white-space:nowrap}.profile-goal-footer .text-button{width:auto;margin:0;padding-inline:0;text-align:right}
.profile-cosmetic-title{color:#d4b5ff}
.profile-history-snapshot{border-left:0;padding-left:0}
.profile-community-tabs button,.profile-history-item small,.profile-pinned-trophies span{font-size:.75rem}
@media(max-width:23rem){.profile-overlap>strong{font-size:1.4rem}.profile-community-result{gap:.5rem}.profile-choice>span{padding:.6rem .5rem}.profile-frame-choice small{display:none}.profile-decor-actions{flex-wrap:wrap}}
