#dlgEv{
  box-sizing:border-box;isolation:isolate;width:min(990px,calc(100vw - 28px));max-width:calc(100vw - 12px);
  max-height:calc(100dvh - 16px);min-height:0;margin:auto;padding:0;overflow:hidden;
  border:1px solid #ffc96a;border-radius:clamp(23px,3.8vw,48px);color:#fff7f2;
  background:#08051d url('sky.webp') center / 100% 100% no-repeat;
  box-shadow:0 0 0 1px #845631,0 0 20px #f7a94f42,0 18px 70px #020111cc;
  font-family:"Golos Text",system-ui,sans-serif;
}
body.cosmos dialog#dlgEv{background:#08051d url('sky.webp') center / 100% 100% no-repeat!important;border-color:#ffc96a!important}
#dlgEv[open]{display:flex;flex-direction:column}
#dlgEv::backdrop{background:#040314bf;backdrop-filter:blur(4px)}
#dlgEv::before{content:"";position:absolute;inset:-1px;z-index:3;pointer-events:none;border:47px solid transparent;border-image:url('rim.webp') 93 98 / 49px 55px stretch}
#dlgEv .dlgHead{flex:0 0 auto;z-index:1;display:flex;align-items:center;gap:clamp(7px,1.3vw,16px);padding:11px 4.1% 3px 4.3%;border:0;background:transparent;position:relative}
#dlgEv .dlgHead::after{content:"";position:absolute;pointer-events:none;bottom:1px;left:14%;right:9%;height:7px;
  background:radial-gradient(ellipse,#fff5c9 0%,#ffb041 16%,transparent 66%) 34% center/29% 7px no-repeat,linear-gradient(90deg,transparent,#9d54f0 13%,#fff5b4 35%,#ce8e46 50%,#723cc5 76%,transparent) center/100% 1px no-repeat}
#dlgEv .dlgHead::before{content:"✧";position:absolute;left:41%;bottom:-10px;color:#ffdd7d;font:25px/1 Georgia,serif;text-shadow:0 0 5px #ff920e}
#dlgEv .es-heading-art{width:clamp(77px,12.5vw,160px);height:clamp(56px,8.35vw,103px);object-fit:contain;mix-blend-mode:lighten;filter:contrast(1.12);mask-image:radial-gradient(ellipse at 48% 53%,black 54%,#000c 66%,transparent 80%)}
#dlgEv #evTitle{flex:1;min-width:0;margin:0;text-align:left;color:#ffdf89;font:700 clamp(26px,3.7vw,47px)/1.07 Georgia,"Times New Roman",serif;text-shadow:0 2px 0 #77370b,0 0 10px #ed9e3f40}
#dlgEv .dlgHead button{flex:none;padding:7px 17px;min-height:41px;color:#fff4d7;font:650 clamp(14px,1.6vw,19px)/1.2 "Golos Text",system-ui,sans-serif}
#dlgEv #evBody{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#786090 #0b0925;box-sizing:border-box;padding:0 6.8% clamp(40px,5.1vw,64px);line-height:1.32;color:#fff8fa}
#dlgEv .es-rules{width:85%;margin:16px 0 4px 3.2%;color:#fff8f8;text-shadow:0 1px 5px #04021c,0 0 6px #05051c;font-size:clamp(15px,1.58vw,20px);line-height:1.38;text-align:left;text-wrap:pretty}
#dlgEv .es-rules b{font-weight:550;white-space:nowrap;color:#fff1cf}
#dlgEv .es-balance{position:relative;isolation:isolate;display:grid;place-items:center;width:min(49%,365px);height:clamp(76px,8.4vw,112px);margin:7px auto 10px}
#dlgEv .es-balance::before,#dlgEv .es-balance::after{content:"";z-index:-1;position:absolute;left:1%;right:1%;bottom:3%;height:57%;border:2px solid #ffdc80;border-radius:50%;box-shadow:0 0 4px #fff0b0,inset 0 0 6px #fe9936,0 0 13px #fa7e25}
#dlgEv .es-balance::after{left:6%;right:6%;bottom:8%;height:57%;transform:rotate(-2deg);border-width:1px}
#dlgEv .es-balance-core{display:flex;align-items:center;justify-content:center;gap:12%;width:max-content;max-width:85%;min-width:67%;box-sizing:border-box;height:75%;padding:0 7%;
  border-radius:999px;border:2px solid #ffe4a3;background:radial-gradient(ellipse at 37% 14%,#36206c 0%,#080925 52%,#1d1030 86%,#65391d);
  box-shadow:inset 0 2px 7px #c34dd399,inset 0 -3px 8px #f09b4282,0 0 2px 1px #a96321,0 0 10px #ffab4088}
#dlgEv .es-balance-core::after{content:"";position:absolute;bottom:7%;left:30%;right:30%;height:5px;border-radius:100%;background:#ffeeb8;filter:blur(1px);box-shadow:0 0 12px #ff9a23}
#dlgEv .es-token{flex:none;width:clamp(57px,7vw,101px);height:93%;object-fit:contain;mix-blend-mode:lighten;filter:contrast(1.24);mask-image:radial-gradient(ellipse,#000 44%,#000c 60%,transparent 77%)}
#dlgEv .es-balance b{color:#ffe997;font:700 clamp(34px,4.7vw,58px)/1 Georgia,serif;font-variant-numeric:tabular-nums;text-shadow:0 2px 0 #8b470e,0 0 9px #b45919}
#dlgEv .es-rewards{box-sizing:border-box;list-style:none;display:grid;gap:4px;width:86%;margin:0;padding:5px;
  background:linear-gradient(145deg,#110d31e8,#06081beb 75%,#211136da) padding-box,linear-gradient(143deg,#ffdf81,#d67e31 28%,#9669df 58%,#ffd486) border-box;
  border:2px solid transparent;border-radius:clamp(17px,2.4vw,29px);box-shadow:inset 0 0 10px #6c3e9399,0 0 3px #f9cc74aa,0 0 11px #91488580}
#dlgEv .es-row{display:grid;grid-template-columns:clamp(68px,8vw,102px) clamp(67px,9vw,100px) minmax(0,1fr) clamp(42px,5.2vw,61px);gap:clamp(5px,1.15vw,16px);align-items:center;box-sizing:border-box;position:relative;min-height:52px;padding:2px 8px;
  border:1px solid transparent;border-radius:999px;background:linear-gradient(161deg,#291339,#090822 18%,#050820 76%,#10123e) padding-box,linear-gradient(130deg,#d58de6,#8055b8 21%,#344084 36%,#5841b1 74%,#86c7ff) border-box;
  box-shadow:inset 0 2px 6px #7f47c063,inset 0 -3px 6px #2737c657;color:#fff7ed}
#dlgEv .es-row::after{content:"";pointer-events:none;position:absolute;inset:auto 11% 0;height:1px;background:linear-gradient(90deg,transparent,#5c56fd66,#b1a6ff,#3c76fd77,transparent)}
#dlgEv .es-threshold{min-width:0;width:85%;justify-self:center;position:relative;box-sizing:border-box;display:grid;place-items:center;line-height:1;padding:2px 0;
  border:1px solid #e8ba70;border-radius:100px;background:linear-gradient(#173791,#040a29 60%,#0b2261);box-shadow:inset 0 2px 3px #51b8ffc4,0 0 3px #f5ad4a99;
  font:750 clamp(22px,2.55vw,32px)/1.02 "Golos Text",system-ui,sans-serif;color:#c3f5ff;text-shadow:0 1px 3px #000b}
#dlgEv .es-threshold::before,#dlgEv .es-threshold::after{content:"";position:absolute;top:-12%;bottom:-14%;width:30%;background:center / 100% 100% no-repeat;mix-blend-mode:lighten;filter:contrast(1.35);mask-image:radial-gradient(ellipse,#000 60%,transparent 80%)}
#dlgEv .es-threshold::before{left:-15%;background-image:url('laurel-l.webp')}
#dlgEv .es-threshold::after{right:-15%;background-image:url('laurel-r.webp')}
#dlgEv .es-final .es-threshold{color:#ffe999;background:linear-gradient(#573112,#190f1e 58%,#482e13);box-shadow:inset 0 1px 3px #ffcd73}
#dlgEv .es-prize-art,#dlgEv .es-extra-gems{display:block;max-width:100%;width:auto;height:auto;max-height:clamp(45px,4.3vw,58px);justify-self:center;object-fit:contain;mix-blend-mode:lighten;filter:contrast(1.18);mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent),linear-gradient(transparent,#000 12%,#000 86%,transparent);mask-composite:intersect}
#dlgEv .es-prize-name{min-width:0;font:500 clamp(16px,1.6vw,20px)/1.16 "Golos Text",system-ui,sans-serif;text-align:left;text-shadow:0 1px 3px #010219}
#dlgEv .es-state{justify-self:end;box-sizing:border-box;width:clamp(38px,4.7vw,53px);aspect-ratio:75/63;border-radius:50%;background:url('lock.webp') center / 100% 100% no-repeat}
#dlgEv .es-earned .es-state{display:grid;place-items:center;border:1.5px solid #5ae9c8;background:linear-gradient(#104650,#063138 55%,#155a59);color:#9fffe0;font:800 clamp(21px,2.3vw,29px)/1 system-ui;box-shadow:inset 0 0 5px #8affda55}
#dlgEv .es-final{grid-template-columns:clamp(68px,8vw,102px) clamp(67px,9vw,100px) minmax(0,1fr) clamp(43px,6.6vw,74px) clamp(42px,5.2vw,61px)}
@media(max-width:650px){
  #dlgEv{width:calc(100vw - 12px);max-height:calc(100dvh - 12px);border-radius:24px}
  #dlgEv::before{border-image-width:28px 30px}
  #dlgEv .dlgHead{padding:10px 12px 5px 10px;gap:5px}
  #dlgEv .es-heading-art{width:clamp(40px,11vw,70px);height:48px}
  #dlgEv #evTitle{font-size:clamp(21px,5.4vw,30px)}
  #dlgEv .dlgHead button{padding:5px 9px;min-height:34px;font-size:13px}
  #dlgEv #evBody{padding:0 9px 36px}
  #dlgEv .es-rules{width:97%;margin:10px auto 4px;padding:4px 5px;background:linear-gradient(90deg,#05071b5e,#05071bb8 75%,#05071b6b);border-radius:8px;font-size:14px;line-height:1.38}
  #dlgEv .es-balance{width:64%;height:72px;margin:6px auto 9px}
  #dlgEv .es-balance-core{gap:7px}#dlgEv .es-balance b{font-size:32px}
  #dlgEv .es-token{width:52px}
  #dlgEv .es-rewards{width:100%;padding:3px;gap:3px;border-radius:18px}
  #dlgEv .es-row,#dlgEv .es-final{grid-template-columns:52px 44px minmax(0,1fr) 32px;gap:6px;padding:3px 6px;min-height:42px}
  #dlgEv .es-prize-art{height:33px}#dlgEv .es-prize-name{font-size:14px;line-height:1.18}
  #dlgEv .es-threshold{font-size:18px}#dlgEv .es-state{width:31px}
  #dlgEv .es-extra-gems{display:none}
}
@media(min-width:651px) and (max-height:620px){
  #dlgEv .es-heading-art{height:59px;width:94px}#dlgEv #evTitle{font-size:30px}
  #dlgEv #evBody{padding-bottom:26px}#dlgEv .es-rules{font-size:15px;margin-top:8px}#dlgEv .es-balance{height:62px;margin:3px auto 6px}
  #dlgEv .es-prize-art,#dlgEv .es-extra-gems{height:33px}#dlgEv .es-row{min-height:37px}#dlgEv .es-prize-name{font-size:16px}
}

#dlgEv .es-prize-art.es-ingot{mask-image:none;mix-blend-mode:normal;filter:none}
