/* Restored metallic ornaments from pre-materials frame rules; round portrait preserved. */
.cr-avatar.restored-frame .cr-rim{inset:0;border:1px solid #b4c5dd55;box-shadow:inset 0 0 0 1px #020710;transform:none;clip-path:none}
.cr-avatar.restored-frame .cr-rim:before,.cr-avatar.restored-frame .cr-rim:after{content:none}
.cr-avatar.restored-frame.frame-alloy{background:conic-gradient(from 32deg,#687280,#d4dde7 9%,#4d586a 23%,#181e2b 40%,#b9c5d3 56%,#353e50 74%,#aebed3 86%,#48576a)}
.cr-avatar.restored-frame.frame-prism{--cr-edge:#8ddbf2;background:conic-gradient(from 35deg,#7ba3dd,#bdceff 14%,#456995 23%,#122330 38%,#aaf9ed 47%,#90a1fa 63%,#e1a4f3 77%,#28405b 87%,#7ba3dd);box-shadow:0 0 7px #9cbcff33}
.cr-avatar.restored-frame.frame-prism .cr-rim{inset:-1px;border:1px solid #b6cdf366;box-shadow:inset 0 0 0 2px #10151e66}
.cr-avatar.restored-frame.frame-vector{--cr-edge:#8eeddc;background:conic-gradient(from 18deg,#d6fff9 0deg,#56baa8 25deg,#243640 45deg,#1b2735 160deg,#cefff5 180deg,#58b4a9 207deg,#233442 225deg,#192632 340deg,#d6fff9);box-shadow:0 0 0 1px #749c9f55}
.cr-avatar.restored-frame.frame-vector .cr-rim{inset:-2px;border:1px solid #86c9bb55;clip-path:polygon(0 0,75% 0,75% 25%,100% 25%,100% 100%,25% 100%,25% 75%,0 75%)}
.cr-avatar.restored-frame.frame-corona{--cr-edge:#d8bda2;background:conic-gradient(from 90deg,#292e36,#c3a68a 15%,#f5e0c5 23%,#9d8267 33%,#1b2534 48%,#1a1e27 72%,#dfd7ce 83%,#4c5260 92%,#292e36);box-shadow:0 0 0 1px #c9b39666,0 0 10px #d8a86125}
.cr-avatar.restored-frame.frame-corona .cr-rim{inset:-3px;border:1px solid #c6ae8655;border-left-color:transparent;border-bottom-color:transparent;transform:rotate(-25deg)}
/* Progressive materials: brushed metals, faceted rims and restrained highlights. */
.cr-avatar[class*="frame-alloy-"]{--metal:#bac8d5;--dark-metal:#263140;--cr-edge:#cad8e9}
.cr-avatar[class*="frame-prism-"]{--metal:#adbefd;--dark-metal:#36446e;--cr-edge:#b1d2ee}
.cr-avatar[class*="frame-vector-"]{--metal:#96e8cd;--dark-metal:#1d4949;--cr-edge:#94e6d0}
.cr-avatar[class*="frame-corona-"]{--metal:#e5c595;--dark-metal:#514433;--cr-edge:#e7ce9f}
.cr-avatar[class*="frame-alloy-"],.cr-avatar[class*="frame-prism-"],.cr-avatar[class*="frame-vector-"],.cr-avatar[class*="frame-corona-"]{background:conic-gradient(from 25deg,var(--dark-metal),var(--metal) 12%,#eef7ff 16%,var(--dark-metal) 22%,var(--metal) 42%,var(--dark-metal) 55%,var(--metal) 74%,#eef7ff 80%,var(--dark-metal) 89%);box-shadow:0 0 0 1px var(--dark-metal),0 0 9px color-mix(in srgb,var(--metal) 24%,transparent)}
.cr-avatar.restored-frame[class*="frame-"].frame-tier-2 .cr-rim{inset:-2px;border:1px solid var(--metal);border-left-color:transparent;border-right-color:transparent;transform:rotate(-24deg);box-shadow:0 0 0 1px #06101a88}
.cr-avatar.restored-frame[class*="frame-"].frame-tier-3 .cr-rim{inset:-3px;border:2px double var(--metal);box-shadow:0 0 0 1px var(--dark-metal),inset 0 0 0 1px #050b11}
.cr-avatar.restored-frame[class*="frame-"].frame-tier-3 .cr-rim:after{content:'';position:absolute;inset:-3px;border:1px dashed var(--metal);border-radius:50%;opacity:.6}
.cr-avatar.restored-frame[class*="frame-"].frame-tier-4 .cr-rim{inset:-4px;border:1px solid var(--metal);box-shadow:0 0 0 2px #060d1788,0 0 0 3px color-mix(in srgb,var(--metal) 55%,transparent),0 0 12px color-mix(in srgb,var(--metal) 30%,transparent)}
.cr-avatar.restored-frame[class*="frame-"].frame-tier-4 .cr-rim:before{content:'';position:absolute;left:calc(50% - 8px);top:-7px;width:16px;height:10px;background:linear-gradient(110deg,var(--dark-metal),var(--metal),#eef7ff);clip-path:polygon(0 10%,30% 45%,50% 0,70% 45%,100% 10%,82% 100%,18% 100%)}
.cr-avatar.restored-frame.frame-prism-4{background:conic-gradient(#dba0ea,#809cdd,#a8f8dc,#acb7f9,#e4b8f1,#839be0)!important}
.cr-avatar.restored-frame.frame-vector-4 .cr-rim{border-left-width:3px!important;border-right-width:3px!important}
.cr-avatar.restored-frame.frame-alloy-4 .cr-rim{border-top-color:transparent!important;border-bottom-color:transparent!important}
/* Official quiz line: circular sapphire facets, independent of the portrait. */
.cr-avatar[class*="frame-savant"]{--metal:#a5dcf2;--dark-metal:#26375b;--cr-edge:#b7d8f7;background:conic-gradient(from 22deg,#b8e8f5,#293752 16%,#858bcc 30%,#d4f4ff 45%,#253852 58%,#9eaae7 76%,#30425e 90%,#b8e8f5)}
.cr-avatar.restored-frame.frame-savant-2 .cr-rim{border:2px double #a4d3eb;inset:-2px}
.cr-avatar.restored-frame.frame-savant-3 .cr-rim{inset:-3px;border:1px solid #b4caf4;box-shadow:0 0 0 2px #91aad530,0 0 10px #82bce333}
.cr-avatar.restored-frame.frame-savant-4 .cr-rim:before{clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%)!important;width:10px!important;left:calc(50% - 5px)!important;background:linear-gradient(135deg,#fff,#af9eef,#77c7da)!important}
.cr-avatar.restored-frame{padding:calc(var(--cr-size)*.065)!important;overflow:visible}
.cr-avatar.restored-frame .cr-rim{pointer-events:none}
.cr-avatar.restored-frame.frame-tier-3 .cr-rim:after{animation:cr-turn 28s linear infinite}
.cr-avatar.restored-frame.frame-tier-4 .cr-rim:after{content:'';position:absolute;inset:-3%;border-radius:50%;background:conic-gradient(transparent 0 290deg,#ffffffa0 330deg,transparent 355deg);mask:radial-gradient(farthest-side,transparent 92%,#000 95%);animation:cr-turn 18s linear infinite}
@media(prefers-reduced-motion:reduce){.cr-avatar.restored-frame .cr-rim:after{animation:none!important}}
