.fancybox__content.game-popup-wrap,
.fancybox__content.game-popup-wrap > .carousel__button.is-close {
  background: transparent !important;
}

.game-popup {
  position: relative;
  width: min(1180px, calc(100vw - 40px));
  min-height: 680px;
  border-radius: 0;
  overflow: visible;
  color: #fff;
  background: none;
  box-shadow: none;
  isolation: isolate;
}

.game-popup::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -140px;
  bottom: -140px;
  left: -140px;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 28%, rgba(212, 170, 74, 0.24), transparent 26%),
    radial-gradient(circle at 74% 30%, rgba(78, 106, 255, 0.18), transparent 28%),
    radial-gradient(circle at 50% 85%, rgba(173, 86, 54, 0.10), transparent 24%);
  filter: blur(36px);
}

.game-popup__bg,
.game-popup__noise,
.game-popup__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.game-popup__noise {
  opacity: 0.05;
  background-size: 8px 8px;
  mix-blend-mode: soft-light;
}

.game-popup__glow--1 {
  background: radial-gradient(circle at 25% 25%, rgba(255, 208, 92, 0.35), transparent 30%);
  filter: blur(35px);
}

.game-popup__glow--2 {
  background: radial-gradient(circle at 75% 35%, rgba(122, 162, 255, 0.22), transparent 30%);
  filter: blur(45px);
}

.game-popup__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 640px;
}

.game-popup__left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 520px;
  margin-left: auto;
  padding: 40px 20px 40px 10px;
  text-align: right;
  transform: translateX(20px);
}

.game-popup__right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
  overflow: visible;
}

.game-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 18px auto;
  padding: 9px 14px;
  border-radius: 999px !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: white;
  background: linear-gradient(135deg, var(--first-color), var(--second-color));
  box-shadow: 0 10px 25px rgba(255, 205, 88, 0.35);
}

.game-popup__eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.game-popup__title {
  margin: 0 0 18px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 0.92;
  font-weight: 500;
  letter-spacing: -0.03em;
  text-align: right;
  color: #f4ead7;
  text-shadow: none;
}

.game-popup__text {
  margin: 0 0 24px auto;
  max-width: 420px;
  font-size: 15px;
  line-height: 1.8;
  text-align: right;
  color: rgba(255, 255, 255, 0.84);
}

.game-popup__footer {
  margin-left: auto;
  text-align: right;
}

.game-popup__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(212, 170, 74, 0.45);
  border-radius: 999px !important;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: white !important;
  background: rgba(212, 170, 74, 0.08);
  box-shadow: none;
  transition: all 0.25s ease;
}

.game-popup__btn:hover {
  transform: translateY(-1px);
  color: #fff4dc;
  background: rgba(212, 170, 74, 0.14);
}

.game-popup__small {
  margin: 12px 0 0;
  font-size: 13px;
  text-align: right;
  color: rgba(255, 255, 255, 0.58);
}

.dice-stage {
  position: relative;
  width: 430px;
  height: 360px;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.25));
}

.dice {
  position: absolute;
  will-change: transform;
}

.dice--1 {
  top: 118px;
  left: 32px;
  animation: diceFloat1 5s ease-in-out infinite;
}

.dice--2 {
  top: 40px;
  left: 150px;
  animation: diceFloat2 5s ease-in-out infinite;
  animation-delay: 0.45s;
}

.dice--3 {
  top: 140px;
  left: 260px;
  animation: diceFloat3 5s ease-in-out infinite;
  animation-delay: 0.8s;
}

.dice__img {
  display: block;
  width: 150px;
  height: auto;
  user-select: none;
  pointer-events: none;
}

.dice--1 .dice__img {
  transform: rotate(-8deg);
}

.dice--2 .dice__img {
  transform: rotate(6deg);
}

.dice--3 .dice__img {
  transform: rotate(-10deg);
}

.floating-ring {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20% !important;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.04);
}

.floating-ring--1 {
  top: 58px;
  left: 80px;
  width: 260px;
  height: 260px;
  animation: slowSpin 14s linear infinite;
}

.floating-ring--2 {
  top: 126px;
  left: 180px;
  width: 180px;
  height: 180px;
  animation: slowSpinReverse 10s linear infinite;
}

@keyframes diceFloat1 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -16px, 0); }
}

@keyframes diceFloat2 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -14px, 0); }
}

@keyframes diceFloat3 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -18px, 0); }
}

@keyframes slowSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes slowSpinReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

.game-popup__left > * {
  opacity: 0;
  transform: translateY(22px);
  will-change: transform, opacity;
}

.game-popup.is-ready .game-popup__left > * {
  animation: fadeUp 0.7s ease forwards;
}

.game-popup.is-ready .game-badge { animation-delay: 0.05s; }
.game-popup.is-ready .game-popup__eyebrow { animation-delay: 0.10s; }
.game-popup.is-ready .game-popup__title { animation-delay: 0.18s; }
.game-popup.is-ready .game-popup__text { animation-delay: 0.28s; }
.game-popup.is-ready .game-popup__footer { animation-delay: 0.48s; }

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .game-popup__inner {
    grid-template-columns: 1fr;
  }

  .game-popup__right {
    order: 1;
    min-height: 230px;
    margin-bottom: 6px;
  }

  .game-popup__left {
    order: 2;
    max-width: 100%;
    margin: 0 auto;
    padding: 10px 24px 24px;
    text-align: center;
    transform: none;
    align-items: center;
  }

  .game-badge {
    margin: 0 auto 16px;
  }

  .game-popup__eyebrow,
  .game-popup__title,
  .game-popup__text,
  .game-popup__footer,
  .game-popup__small {
    text-align: center;
  }

  .game-popup__text {
    margin: 0 auto 22px;
    max-width: 520px;
  }

  .game-popup__footer {
    margin: 0 auto;
  }

  .dice-stage {
    width: 360px;
    height: 210px;
    transform: scale(0.82);
    transform-origin: center bottom;
  }

  .dice__img {
    width: 138px;
  }

  .dice--1 {
    top: 72px;
    left: 24px;
  }

  .dice--2 {
    top: 6px;
    left: 122px;
  }

  .dice--3 {
    top: 78px;
    left: 225px;
  }

  .floating-ring--1 {
    top: 18px;
    left: 55px;
    width: 220px;
    height: 220px;
  }

  .floating-ring--2 {
    top: 70px;
    left: 160px;
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 640px) {
  .game-popup {
    width: calc(100vw - 16px);
    min-height: auto;
    border-radius: 22px !important;
  }

  .game-popup__inner {
    min-height: auto;
  }

  .game-popup__right {
    min-height: 190px;
    margin-bottom: 2px;
  }

  .game-popup__left {
    padding: 6px 20px 20px;
  }

  .game-badge {
    margin-bottom: 14px;
    padding: 8px 14px;
    font-size: 11px;
  }

  .game-popup__eyebrow {
    margin-bottom: 6px;
    font-size: 11px;
    letter-spacing: 0.14em;
  }

  .game-popup__title {
    margin-bottom: 14px;
    font-size: clamp(34px, 12vw, 54px);
    line-height: 0.95;
    text-align: center;
  }

  .game-popup__text {
    max-width: 100%;
    margin: 0 auto 18px;
    font-size: 14px;
    line-height: 1.65;
    text-align: center;
  }

  .game-popup__footer {
    text-align: center;
  }

  .game-popup__small {
    margin-top: 10px;
    font-size: 12px;
    text-align: center;
  }

  .game-popup__btn {
    min-height: 42px;
    padding: 0 16px;
    font-size: 13px;
  }

  .dice-stage {
    width: 280px;
    height: 165px;
    transform: none;
    transform-origin: center center;
    margin: 0 auto;
  }

  .dice__img {
    width: 106px;
  }

  .dice--1 {
    top: 54px;
    left: 8px;
  }

  .dice--2 {
    top: -4px;
    left: 86px;
  }

  .dice--3 {
    top: 58px;
    left: 172px;
  }

  .floating-ring--1 {
    top: 10px;
    left: 28px;
    width: 180px;
    height: 180px;
  }

  .floating-ring--2 {
    top: 52px;
    left: 124px;
    width: 120px;
    height: 120px;
  }
}

.game-popup.is-closing {
  animation: popupFadeOut .4s ease forwards;
}

@keyframes popupFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
