.ad-frame{
  --ad-w:300px;
  --ad-h:250px;
  position:relative;
  width:min(calc(var(--ad-w) + 28px), calc(100% - 32px));
  margin:36px auto;
  padding:12px 14px 16px;
  border-radius:22px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(124,77,255,.16), transparent 55%),
    radial-gradient(120% 80% at 100% 100%, rgba(90,216,255,.12), transparent 50%),
    #07070e;
  box-sizing:border-box;
}
.ad-frame::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  padding:1.5px;
  background:linear-gradient(115deg,#8b5cf6 0%,#5ad8ff 42%,#c4b5fd 68%,#3b82f6 100%);
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;
  mask-composite:exclude;
  pointer-events:none;
}
.ad-frame-label{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  margin:0 0 10px;
  color:#d5e4ff;
  font-size:.68rem;
  font-weight:700;
  letter-spacing:.18em;
  text-transform:uppercase;
}
.ad-frame-label::before,
.ad-frame-label::after{
  content:"";
  width:36px;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(186,214,255,.85));
}
.ad-frame-label::after{background:linear-gradient(90deg,rgba(186,214,255,.85),transparent)}
.ad-slot{
  width:var(--ad-w);
  height:var(--ad-h);
  max-width:100%;
  margin:0 auto;
  overflow:hidden;
  border-radius:12px;
  background:#0b0b12;
}
.ad-frame-728x90{--ad-w:728px;--ad-h:90px;width:min(1240px,100%)}
.ad-frame-728x90 .ad-slot{width:min(728px,100%);height:auto}
.ad-frame-728x90 .ad-slot a,
.ad-frame-728x90 .ad-slot img{display:block;width:100% !important;max-width:728px !important;height:auto !important}
.ad-frame-300x250{--ad-w:300px;--ad-h:250px}
.ad-frame-336x280{--ad-w:336px;--ad-h:280px}
.ad-frame-300x100{--ad-w:300px;--ad-h:100px}
.ad-frame-468x60{--ad-w:468px;--ad-h:60px}
.ad-frame-250x250{--ad-w:250px;--ad-h:250px}
.ad-frame-160x600{--ad-w:160px;--ad-h:600px}

@media (min-width:1000px) and (max-width:1340px){
  .ad-frame-728x90{width:auto;margin-left:40px;margin-right:40px}
}
@media (max-width:1140px){
  .ad-frame-728x90{width:auto;margin-left:24px;margin-right:24px}
}
@media (max-width:620px){
  .ad-frame-728x90{margin-left:20px;margin-right:20px}
}
@media (max-width:399px){
  .ad-frame-336x280{display:none}
}
@media (max-width:539px){
  .ad-frame-468x60{display:none}
}
@media (max-width:899px){
  .ad-frame-160x600{display:none}
}
.ad-frame.is-empty,
.ad-slot.is-empty{display:none}
