html body dialog#dlgCol.colDlg {
  --gold:#ffe4a6; --text:#f4eefe; --serif:Georgia,"Times New Roman",serif;
  container-type:inline-size; isolation:isolate; position:fixed; margin:auto; padding:0;
  box-sizing:border-box; width:min(980px,125dvh,calc(100vw - 16px))!important; max-width:calc(100vw - 10px)!important;
  height:min(790px,calc(81vw - 12px),95dvh); max-height:calc(100dvh - 8px)!important;
  --collection-sky:linear-gradient(180deg,#09072829,#080520bd 24%,#10082ae6 56%,#100731ba 83%,#1005263b),url("../leagues/sky.webp") center/cover #090620;
  background:var(--collection-sky)!important;
  border:1px solid #3f3054!important; border-radius:clamp(17px,5.5vw,64px)!important; overflow:hidden;
  box-shadow:inset 0 0 0 1px #483456,0 8px 40px #03020ed9,0 0 18px #3c1764!important;color:var(--text);
  font:500 16px/1.35 "Golos Text",system-ui,sans-serif;
}
#dlgCol[open]{display:flex;flex-direction:column}
#dlgCol::backdrop{background:#050415ac;backdrop-filter:blur(4px)}
#dlgCol *{box-sizing:border-box}
#dlgCol::before{content:"";position:absolute;z-index:0;inset:0;pointer-events:none;background:url("rim.webp") center/100% 100% no-repeat}
#dlgCol::after, #dlgCol .ccSheet:has(#colBody[data-view="rules"])::after{position:absolute;inset:auto 2% 0;height:12%;content:"";z-index:-1;background:url("lower-left.webp") bottom left/auto 100% no-repeat,url("lower-right.webp") bottom right/auto 100% no-repeat;mask-image:linear-gradient(to top,black 24%,#000c 60%,transparent);pointer-events:none}
#dlgCol .dlgHead{position:relative;isolation:isolate;z-index:1;flex:none;display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;width:100%;padding:clamp(28px,5.3cqw,52px) 5% clamp(4px,.8cqw,8px) 9%!important;min-height:clamp(70px,12.5cqw,123px);color:var(--gold);background:none;border:0}
#dlgCol .dlgHead::before{content:"";position:absolute;z-index:-1;pointer-events:none;right:16%;top:10%;width:16%;height:90%;background:url("spiral.webp") center/cover no-repeat;mask-image:radial-gradient(ellipse at center,black 21%,#000a 50%,transparent 73%)}
#dlgCol #colTitle{position:relative;margin:0;min-width:0;display:flex;align-items:center;gap:.35em;background:none;color:var(--gold)!important;text-shadow:0 2px 2px #480a07,0 0 10px #dd882388;font:700 clamp(25px,5.15cqw,51px)/1.05 var(--serif)!important}
#dlgCol #colTitle::before{content:"";flex:none;width:1.6em;height:1.5em;background:url("badge.webp") center/contain no-repeat;mask-image:radial-gradient(ellipse,#000 45%,transparent 75%)}
#dlgCol #colTitle::after{content:"";height:1px;position:absolute;bottom:-.08em;left:13%;right:-4%;background:linear-gradient(90deg,transparent,#d39774,#fff2ab,#b37c80,transparent);box-shadow:0 1px 5px #9765e7}
#dlgCol .ccTabs{position:relative;z-index:2;display:flex;justify-content:center;align-items:center;gap:1.4%;padding:0 4%;flex:none}
#dlgCol .ccTabs::before{content:"";height:1px;position:absolute;left:4%;right:4%;background:linear-gradient(90deg,transparent,#9393fa,#b091ed,#aaa6ff,transparent);z-index:-1}
#dlgCol #colBody{position:relative;z-index:1;display:flex;flex:auto;flex-direction:column;justify-content:safe center;gap:clamp(8px,1.7cqw,18px);width:100%;min-height:0;max-height:none;margin:0;padding:clamp(9px,1.4cqw,14px) 4.8% clamp(17px,3.3cqw,34px)!important;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#7165af #120d33}
#dlgCol #colBody>*{flex:none}
#dlgCol [data-kind=m]{--art:url("art-m.webp");--trim:url("frame-m.webp");--edge:#a1adff;--base:#111034;--glow:#43478b}
#dlgCol [data-kind=c]{--art:url("art-c.webp");--trim:url("frame-c.webp");--edge:#55e9ff;--base:#0b1833;--glow:#176280}
#dlgCol [data-kind=s]{--art:url("art-s.webp");--trim:url("frame-s.webp");--edge:#f2b44c;--base:#291032;--glow:#863078}
#dlgCol .ccBoxes,#dlgCol .ccRules{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.7%}
#dlgCol .ccBox,#dlgCol .ccRule{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;min-width:0;padding:clamp(12px,2.7cqw,27px) 7.5% clamp(19px,3.2cqw,32px);text-align:center;color:var(--text);border-radius:15% / 10%;background:radial-gradient(ellipse at 50% 0%,var(--glow),transparent 45%),linear-gradient(165deg,#07091b,var(--base) 47%,#09091f);box-shadow:inset 0 0 17px var(--glow),0 0 13px color-mix(in srgb,var(--glow) 56%,transparent)}
#dlgCol .ccBox::after,#dlgCol .ccRule::after{content:"";position:absolute;z-index:2;inset:0;pointer-events:none;background:var(--trim) center/100% 100% no-repeat}
#dlgCol .ccArt{width:calc(100% + 10%);aspect-ratio:258/132;background:var(--art) center/cover no-repeat;mask-image:linear-gradient(to bottom,#000 72%,transparent 100%);border-radius:14px 14px 0 0}
#dlgCol .ccBox h3,#dlgCol .ccRule h3{position:relative;margin:-.04em 0 0;align-self:center;color:var(--gold);font:700 clamp(19px,3.1cqw,32px)/1.08 var(--serif);text-shadow:0 2px 2px #190720}
#dlgCol .ccQuantity{display:flex;flex-wrap:wrap;align-content:center;align-items:center;justify-content:center;column-gap:.22em;color:#ffefc8;min-height:clamp(36px,5.6cqw,57px);max-width:100%;font:600 clamp(12px,1.78cqw,18px)/1.14 system-ui,sans-serif}
#dlgCol .ccQuantity span{font-size:.94em}
#dlgCol .ccOdds{list-style:none;width:100%;margin:2px 0 0;padding:clamp(6px,.9cqw,9px) 2px;display:grid;gap:2px;border:1px solid color-mix(in srgb,var(--edge) 78%,#57396e);border-radius:clamp(9px,1.8cqw,17px);background:#06091f9e;font:650 clamp(12px,1.91cqw,19px)/1.45 "Golos Text",system-ui,sans-serif}
#dlgCol .ccOdds li{color:var(--rare)}
#dlgCol .ccOdds strong{font-weight:inherit}
#dlgCol .ccCount{display:flex;align-items:center;justify-content:center;gap:.35em;min-height:clamp(32px,5.3cqw,53px);color:#f7edf9;font:700 clamp(16px,2.25cqw,23px)/1.15 var(--serif)}
#dlgCol .ccCount b{color:#ffd267;font-size:1.45em}
#dlgCol .ccFoot{position:relative;text-align:center;margin:0;line-height:1.45;text-wrap:balance;padding:clamp(17px,3cqw,31px) 5% 0;color:#f0eafb;font-size:clamp(12px,1.68cqw,17px);text-shadow:0 1px 5px #08041b}
#dlgCol .ccFoot::before{content:"";position:absolute;inset:0 12% auto;height:clamp(9px,1.8cqw,18px);background:url("divider.webp") center/auto 100% no-repeat,linear-gradient(90deg,transparent,#8f7bd6,transparent) center/100% 1px no-repeat;mask-image:linear-gradient(90deg,transparent,#000 32%,#000 68%,transparent)}
#dlgCol .ccSet,#dlgCol .ccResult{border:1px solid #8d73af;border-radius:clamp(13px,2.1cqw,22px);background:linear-gradient(130deg,#0a112de8,#171036de 62%,#1c144bd4);box-shadow:inset 0 0 15px #4957aa4d,0 0 10px #47376566;color:var(--text)}
#dlgCol .ccSet{padding:clamp(10px,1.55cqw,17px)}
#dlgCol .ccSetHead{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:4px 12px;margin:0 0 10px;border-bottom:1px solid #a0839c80;padding-bottom:7px}
#dlgCol .ccSetHead h3,#dlgCol .ccResult h3{color:var(--gold);margin:0;font:700 clamp(19px,2.7cqw,29px)/1.11 var(--serif)}
#dlgCol .ccSetHead span{font:600 clamp(11px,1.5cqw,15px)/1.45 system-ui,sans-serif;color:#e5d8ff}
#dlgCol .ccInventory,#dlgCol .ccDrops{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(116px,100%),1fr));gap:clamp(5px,.85cqw,10px)}
#dlgCol .ccItem{position:relative;display:flex;align-items:center;flex-direction:column;min-width:0;gap:4px;text-align:center;padding:9px 6px;border:1px solid color-mix(in srgb,var(--rare),#3b3459 55%);border-radius:13px;background:radial-gradient(ellipse at center 20%,color-mix(in srgb,var(--rare) 25%,#16264e),#0a112a 68%);box-shadow:inset 0 1px 2px #aca7ff39}
#dlgCol .ccOwn{border-color:var(--rare);box-shadow:0 0 6px color-mix(in srgb,var(--rare) 40%,transparent)}
#dlgCol .ccRarity{font:700 clamp(10px,1.13cqw,12px)/1.2 system-ui,sans-serif;color:var(--rare)}
#dlgCol .ccItem h4{font:700 clamp(13px,1.57cqw,17px)/1.15 var(--serif);margin:0;color:#fff4d7;overflow-wrap:anywhere}
#dlgCol .colPv{display:grid;place-items:center;max-width:100%;width:85px;height:clamp(40px,6cqw,62px)}
#dlgCol .colPv>*{max-width:100%;max-height:100%}
#dlgCol .ccProgress{position:relative;overflow:hidden;width:92%;border-radius:20px;background:#07091b;border:1px solid #696197;min-height:18px;margin-top:auto}
#dlgCol .ccProgress i{position:absolute;inset:0 auto 0 0;background:linear-gradient(90deg,#245c98,#3a889b)}
#dlgCol .ccProgress b{position:relative;display:block;color:#fff;font:700 12px/17px system-ui,sans-serif}
#dlgCol .ccRule{grid-template-rows:auto minmax(2.2em,auto) 1fr;padding-bottom:clamp(28px,4cqw,42px)}
#dlgCol .ccRule h3{font-size:clamp(17px,2.6cqw,27px)}
#dlgCol .ccRule p{font-size:clamp(13px,1.75cqw,18px);line-height:1.5;margin:8px 4px 0}
#dlgCol .ccResult{text-align:center;padding:clamp(12px,2.5cqw,28px);background:radial-gradient(ellipse at 50% 0%,color-mix(in srgb,var(--glow),transparent 38%),transparent 66%),linear-gradient(135deg,#111632f0,#150b2de8)}
#dlgCol .ccResultBadge{margin:auto;width:clamp(110px,24cqw,238px);height:clamp(50px,11.5cqw,114px);background:var(--art) center/cover;mask-image:radial-gradient(ellipse,#000 30%,#000c 57%,transparent 77%)}
#dlgCol .ccResult h3{outline:none;margin:0 auto clamp(12px,2.2cqw,23px)}
#dlgCol .ccDrops{grid-template-columns:repeat(auto-fit,minmax(min(133px,100%),1fr));justify-content:center}
@media(min-width:651px){#dlgCol .ccDrops:has(.ccDrop:nth-child(6)){grid-template-columns:repeat(4,minmax(0,1fr))}}
#dlgCol .ccDrop strong{margin-top:auto;color:#9de9ff}
#dlgCol .ccCoin{width:48px;height:48px;object-fit:contain}
#dlgCol .ccActions{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:12px;margin:clamp(12px,2cqw,21px) auto 0}

@layer diskilayControls {
 @media (forced-colors:none){
  #dlgCol button.btn,#dlgCol button[data-pclose]{min-width:0;max-width:100%;min-height:36px;white-space:normal;line-height:1.12!important;border-radius:100px!important;padding:5px 16px!important;color:#fff6e1!important;text-shadow:0 1px 3px #080621!important;font-family:Georgia,"Times New Roman",serif!important;font-weight:700!important;cursor:pointer}
  #dlgCol .ccTabs button{width:24%;font-size:clamp(16px,2.4cqw,24px)!important;min-height:clamp(39px,5.5cqw,55px)}
  #dlgCol .dlgHead button{font-size:clamp(15px,1.9cqw,20px)!important;flex:none;min-height:clamp(38px,4.6cqw,47px);min-width:12%}
  #dlgCol .ccBox button{width:90%;min-height:clamp(40px,5.9cqw,59px);font-size:clamp(18px,2.9cqw,29px)!important}
  #dlgCol button:disabled{background-image:linear-gradient(180deg,#434c71,#1a203b 18%,#090e20 62%,#242e48)!important;border:1px solid #7983a0!important;box-shadow:inset 0 1px 3px #a2a9c1,0 2px 4px #020513!important;color:#b0b2c5!important;filter:none!important;opacity:1!important;cursor:default}
  #dlgCol .ccActions button{min-height:42px;font-size:clamp(16px,2cqw,21px)!important}
  #dlgCol button:focus-visible{outline:2px solid #fff5b7!important;outline-offset:2px}
 }
}
@media(max-width:650px){
 html body dialog#dlgCol.colDlg{width:calc(100vw - 8px)!important;height:min(890px,calc(100dvh - 8px));border-radius:22px!important}
 #dlgCol::before{background:none;border:2px solid #caa269;border-radius:inherit;box-shadow:inset 0 0 0 2px #4e3762}
 #dlgCol .dlgHead::after{content:"";position:absolute;left:50%;transform:translateX(-50%);background:url("crest.webp") center/contain no-repeat;mask-image:radial-gradient(ellipse,#000 30%,transparent 73%);pointer-events:none}
 #dlgCol .dlgHead{padding:21px 4% 9px!important;min-height:66px;gap:5px}
 #dlgCol #colTitle{font-size:clamp(19px,5.95cqw,32px)!important;gap:.13em}
 #dlgCol #colTitle::before{width:1.16em;height:1.2em}
 #dlgCol .dlgHead::after{top:-8px;width:19%;height:34px}
 #dlgCol .ccTabs{gap:4px;padding:1px 12px 4px}
 #dlgCol #colBody{padding:7px 14px 21px!important;justify-content:flex-start}
 #dlgCol .ccBoxes,#dlgCol .ccRules{grid-template-columns:minmax(0,1fr);gap:10px}
 #dlgCol .ccBox,#dlgCol .ccRule{display:grid;grid-template-columns:37% minmax(0,1fr);gap:3px 8px;align-items:center;border-radius:20px;padding:13px 17px 15px;overflow:hidden}
 #dlgCol .ccBox::after,#dlgCol .ccRule::after{border-image-width:14px 6px 8px}
 #dlgCol .ccBox .ccArt,#dlgCol .ccRule .ccArt{grid-column:1;grid-row:1/4;width:100%;aspect-ratio:1/1;background-position:52% center;mask-image:radial-gradient(ellipse,black 46%,transparent 76%);border-radius:12px}
 #dlgCol .ccBox h3,#dlgCol .ccRule h3{grid-column:2;grid-row:1;overflow-wrap:anywhere}
 #dlgCol .ccQuantity{grid-column:2;grid-row:2;min-height:0;font-size:13px}
 #dlgCol .ccOdds{grid-column:2;grid-row:3;align-self:stretch;align-content:center;padding:5px 2px;line-height:1.32;min-height:60px}
 #dlgCol .ccCount{grid-column:1;grid-row:4;min-height:34px;font-size:17px}
 #dlgCol .ccBox button{grid-column:2;grid-row:4}
 #dlgCol .ccFoot{padding:18px 4px 0}
 #dlgCol .ccSetHead h3{font-size:20px}
 #dlgCol .ccInventory,#dlgCol .ccDrops{grid-template-columns:repeat(2,minmax(0,1fr))}
 #dlgCol .ccRule{grid-template-columns:30% minmax(0,1fr);grid-template-rows:auto auto;justify-items:start;text-align:left}
 #dlgCol .ccRule p{grid-column:2;grid-row:2;margin:0;font-size:14px;line-height:1.42}
 #dlgCol .ccRule .ccArt{grid-row:1/3}
 @layer diskilayControls {
  #dlgCol .ccTabs button{width:auto;flex:1 1 0;min-height:39px;padding:5px 2px!important;font-size:clamp(13px,3.65vw,17px)!important}
  #dlgCol .dlgHead button{min-width:0;min-height:35px;padding:5px 8px!important;font-size:13px!important}
  #dlgCol .ccBox button{width:100%;min-height:36px;font-size:18px!important}
 }
}
@media(max-height:490px) and (min-width:651px){
 html body dialog#dlgCol.colDlg{width:min(880px,97vw)!important;height:97dvh}
 #dlgCol .dlgHead{min-height:55px;padding-top:13px!important;padding-bottom:2px!important}
 #dlgCol #colTitle{font-size:27px!important}
 #dlgCol .ccTabs button{min-height:34px}
 #dlgCol #colBody{justify-content:flex-start}
}


#dlgCol .ccSheet { display: contents; }

html body dialog#dlgCol.colDlg[open]:has(#colBody[data-view="rules"]) {
  display: block;
  height: auto;
  max-height: calc(100dvh - 16px) !important;
  overflow: hidden auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #7165af transparent;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
#dlgCol:has(#colBody[data-view="rules"])::before,
#dlgCol:has(#colBody[data-view="rules"])::after { content: none; }

#dlgCol .ccSheet:has(#colBody[data-view="rules"]) {
  display: block;
  position: relative;
  isolation: isolate;
  overflow: clip;
  border-radius: clamp(17px, 5.5vw, 64px);
  background: var(--collection-sky);
}
#dlgCol .ccSheet:has(#colBody[data-view="rules"])::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-image: url("rim.webp") 90 60 62 / 9.18cqw 6.12cqw 6.33cqw stretch;
}
#dlgCol #colBody[data-view="rules"] {
  overflow: visible;
  padding-bottom: clamp(36px, 6.4cqw, 64px) !important;
}
#dlgCol .ccRules { row-gap: clamp(10px, 1.7cqw, 17px); }
@media (max-width: 650px) {
  #dlgCol .ccSheet:has(#colBody[data-view="rules"]) { border-radius: 22px; }
}
