#rwProfile .frameGallery {
  container:avatar-frames / inline-size;
  isolation:isolate;position:relative;box-sizing:border-box;
  margin:clamp(10px,1vw,18px) 0;
  padding:clamp(11px,1.3vw,22px) clamp(9px,1.1vw,19px) clamp(18px,2.4vw,36px);
  border:2px solid transparent;border-radius:clamp(18px,2.35vw,40px);overflow:hidden;
  background:
    linear-gradient(180deg,rgba(8,9,38,.96) 0%,rgba(8,9,38,.83) 43%,rgba(8,9,38,.22) 70%,transparent) padding-box,
    url("star-field.webp") center bottom / 100% auto no-repeat padding-box,
    linear-gradient(145deg,#07091d,#0d082a 66%,#150e38) padding-box,
    linear-gradient(170deg,#7162ca 0%,#beaeec 23%,#6b4d98 38%,#ffe8a3 62%,#d87b23 77%,#fff5c3 94%,#ae5619) border-box;
  box-shadow:inset 0 -3px 4px #ee9b464a,0 4px 11px #03020eac;
}
#rwProfile .frameGallery::before {
  content:"";position:absolute;z-index:-1;pointer-events:none;right:1%;top:0;width:44%;height:28%;
  background:url("galaxy.webp") center / 100% 100% no-repeat;
}
#rwProfile .frameGallery .frameTitle {
  display:flex;gap:.45em;align-items:center;margin:0 0 .45em;
  color:#ffe19b;text-shadow:0 1px 1px #46250c,0 1px 9px #0e051c;
  font:700 clamp(21px,2.8cqi,43px)/1.07 Georgia,"Times New Roman",serif;
}
#rwProfile .frameGallery .frameTitle::before {
  width:1.75em;height:1.37em;background:url("saturn.webp") center/contain no-repeat;mask:none;
}
#rwProfile .frameGallery .frameTitle::after {
  flex:0 1 7em;height:1px;background:linear-gradient(90deg,#d7c8f4,transparent);filter:none;
}
#rwProfile .frameGallery .frames {
  display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:clamp(5px,.72cqi,12px);align-items:stretch;
}
#rwProfile .frameGallery .frBtn {
  box-sizing:border-box;position:relative;min-width:0;min-height:0;
  display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:0;
  padding:2% 2% 7%;margin:0;white-space:normal;
  border:1.5px solid #8799f1;border-radius:clamp(12px,1.6cqi,24px);
  background:radial-gradient(ellipse at 50% 28%,#151f48c9,transparent 65%),linear-gradient(150deg,#090f2be8,#06081fee 75%,#1d2244e6);
  --profile-frame-shadow:inset 0 1px 2px #cbd9ff99,inset 0 -1px 4px #5c67ce88,0 2px 6px #030212;
}
#rwProfile .frameGallery .frBtn:disabled {opacity:1;cursor:default;}
#rwProfile .frameGallery .frBtn.on {
  border-color:#fff2a1;
  background:radial-gradient(ellipse at 50% 40%,#8d4a19e6,transparent 78%),linear-gradient(#57300d,#2c1107 75%,#72420c);
  --profile-frame-shadow:inset 0 0 0 1px #ffae38,inset 0 0 10px #ffb528bd,0 0 4px #ffe69c,0 0 11px #ff9a24;
}
#rwProfile .frameGallery .frBtn:focus-visible {outline:3px solid #b8feff;outline-offset:1px;}
#rwProfile .frameGallery .frThumb {
  position:relative;isolation:isolate;display:grid;place-items:center;aspect-ratio:1;width:100%;margin:0;
}
#rwProfile .frameGallery .frPortrait {
  grid-area:1/1;display:grid;place-items:center;overflow:hidden;aspect-ratio:1;width:62%;
  border-radius:50%;background:#0b1536 url("../leagues/sky.webp") center/cover;
  line-height:1;font-size:clamp(18px,3cqi,38px);
}
#rwProfile .frameGallery .frPortrait img {width:100%;height:100%;object-fit:cover;display:block;}
#rwProfile .frameGallery .frBtn:disabled .frPortrait {filter:brightness(.68) saturate(.85);}
#rwProfile .frameGallery .frRing {
  grid-area:1/1;position:relative;width:100%;height:100%;object-fit:contain;pointer-events:none;
}
#rwProfile .frameGallery .frBtn:disabled .frThumb::after {
  content:"";position:absolute;right:4%;bottom:4%;width:30%;height:34%;
  background:url("lock.webp") center/contain no-repeat;filter:drop-shadow(0 1px 2px #100719);
}
#rwProfile .frameGallery .frBtn small {
  display:block;margin:-3% 2% 0;line-height:1.12;min-height:2.24em;overflow-wrap:anywhere;text-wrap:balance;
  color:#fff9f3;font:500 clamp(13px,1.38cqi,21px)/1.12 "DISKILAY Text","Golos Text",system-ui,sans-serif;
}
#rwProfile .frameGallery .frLevel {display:block;color:#e3defb;}
@container avatar-frames (max-width:980px) {
  #rwProfile .frameGallery .frames {grid-template-columns:repeat(7,minmax(0,1fr));}
}
@container avatar-frames (max-width:690px) {
  #rwProfile .frameGallery .frames {grid-template-columns:repeat(5,minmax(0,1fr));}
}
@container avatar-frames (max-width:485px) {
  #rwProfile .frameGallery .frames {grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;}
  #rwProfile .frameGallery .frBtn small {font-size:clamp(12px,3.8cqi,16px);}
  #rwProfile .frameGallery .frPortrait {font-size:28px;}
  #rwProfile .frameGallery::before {width:54%;height:75px;}
}
@container avatar-frames (max-width:250px) {
  #rwProfile .frameGallery .frames {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (forced-colors:active) {
  #rwProfile .frameGallery .frBtn.on {outline:3px solid Highlight;}
  #rwProfile .frameGallery .frBtn:disabled {border-color:GrayText;}
}
#rwProfile .frameGallery .frameTitle {white-space:nowrap;}
#rwProfile .frameGallery [data-frame="diamond"] {container-type:inline-size;}
#rwProfile .frameGallery [data-frame="diamond"] small {font-size:min(19px,12cqi);white-space:nowrap;}
