html.gift-popup-open, html.gift-popup-open body { overflow: hidden; }
.gift-popup {
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffe5a0;
  width: fit-content;
  max-width: min(1120px, calc(100vw - 40px));
  max-height: calc(100dvh - 56px);
  overflow: visible;
}
.gift-popup::backdrop { background: rgba(8, 5, 3, .85); }
.gift-popup__art { position: relative; }
.gift-popup__art > img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - 56px);
  object-fit: contain;
}
.gift-popup__close {
  position: absolute;
  z-index: 2;
  top: -16px;
  right: -16px;
  width: 48px;
  height: 48px;
  border: 3px solid #e9c16c;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #a83720, #651207 70%);
  color: #ffe5a0;
  box-shadow: 0 0 0 2px #694115, inset 0 0 0 2px #a87326, 0 3px 10px #0009;
  font: 36px/1 Arial, sans-serif;
  cursor: pointer;
}
.gift-popup__close:hover { filter: brightness(1.2); }
.gift-popup__close:focus-visible, .gift-popup__link:focus-visible { outline: 3px solid #fff0bb; outline-offset: 4px; }
.gift-popup__link { position: absolute; top: 27.3%; height: 5.3%; border-radius: 20px; }
.gift-popup__link--fanpage { left: 27.4%; width: 22%; }
.gift-popup__link--group { left: 51%; width: 22%; }
.gift-popup__link:hover { box-shadow: 0 0 14px #f8d171; }
@media (max-width: 600px) {
  .gift-popup__close { width: 40px; height: 40px; font-size: 30px; top: -14px; right: -12px; }
}
