.c1xbcq9-popup-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--color-overlay, rgba(0, 0, 0, 0.7));
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base, 200ms ease);
  z-index: 1050;
}

.c1xbcq9-popup-overlay.c1xbcq9-popup-visible {
  opacity: 1;
  pointer-events: auto;
}

.c1xbcq9-popup-content {
  position: relative;
  width: min(420px, 100%);
  border-radius: var(--radius-lg, 20px);
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-lg, 0 20px 40px rgba(0, 0, 0, 0.45));
  background: var(--color-surface-alt, rgba(24, 16, 40, 0.95));
  background-position: center;
  background-size: cover;
}

.c1xbcq9-popup-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 10, 28, 0.75), rgba(16, 10, 28, 0.9));
  z-index: 0;
}

.c1xbcq9-popup-content > * {
  position: relative;
  z-index: 1;
  text-align: center;
}

.c1xbcq9-popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 999px;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-base, 200ms ease);
}

.c1xbcq9-popup-close:hover {
  background: rgba(0, 0, 0, 0.55);
}

.c1xbcq9-popup-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}

.c1xbcq9-popup-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.c1xbcq9-popup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2.5rem;
  border-radius: 999px;
  background: var(--color-primary, #ff3e7f);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-card, 0 15px 30px rgba(255, 62, 127, 0.35));
  transition: background-color var(--transition-base, 200ms ease), transform var(--transition-base, 200ms ease);
}

.c1xbcq9-popup-btn:hover {
  background: var(--color-primary-hover, #ff5f96);
  transform: translateY(-1px);
}

#play-interstitial .c1xbcq9-popup-content {
  width: min(520px, 100%);
}

#play-interstitial .c1xbcq9-play-bonus {
  width: 100%;
  border-radius: 18px;
  padding: 1.05rem 1.15rem;
  position: relative;
  z-index: 0;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(255, 224, 140, 0.22), rgba(255, 224, 140, 0) 55%),
    linear-gradient(180deg, rgba(18, 12, 28, 0.72), rgba(12, 8, 18, 0.86));
  border: 1px solid rgba(255, 214, 120, 0.55);
  box-shadow:
    0 0 0 1px rgba(255, 214, 120, 0.16),
    0 18px 50px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#play-interstitial .c1xbcq9-play-bonus::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 19px;
  background: linear-gradient(135deg, rgba(255, 239, 195, 0.9), rgba(207, 140, 19, 0.9), rgba(255, 239, 195, 0.8));
  filter: blur(10px);
  opacity: 0.26;
  pointer-events: none;
  z-index: 0;
}

#play-interstitial .c1xbcq9-play-bonus > * {
  position: relative;
  z-index: 1;
}

#play-interstitial .c1xbcq9-play-bonus__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 650;
  letter-spacing: 0.01em;
}

#play-interstitial .c1xbcq9-play-bonus__timer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 214, 120, 0.35);
  color: rgba(255, 231, 166, 0.95);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

#play-interstitial .c1xbcq9-play-bonus__value {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #ffe6a6;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

#play-interstitial .c1xbcq9-play-interstitial-actions {
  width: 100%;
  display: grid;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

#play-interstitial .c1xbcq9-popup-btn--primary {
  width: 100%;
  background: linear-gradient(135deg, #ffe8a8, #d79a2b 55%, #ffefc7);
  color: #1a1206;
  box-shadow:
    0 16px 40px rgba(215, 154, 43, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

#play-interstitial .c1xbcq9-popup-btn--primary:hover {
  background: linear-gradient(135deg, #fff1c4, #e2a83a 55%, #fff6dc);
}

#play-interstitial .c1xbcq9-play-interstitial-official-btn {
  width: 100%;
  appearance: none;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 214, 120, 0.45);
  background: rgba(0, 0, 0, 0.18);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    transform var(--transition-base, 200ms ease),
    background-color var(--transition-base, 200ms ease),
    border-color var(--transition-base, 200ms ease);
}

#play-interstitial .c1xbcq9-play-interstitial-official-btn:hover {
  transform: translateY(-1px);
  background: rgba(0, 0, 0, 0.26);
  border-color: rgba(255, 231, 166, 0.7);
}

#play-interstitial .c1xbcq9-play-interstitial-official-btn:focus-visible,
#play-interstitial .c1xbcq9-popup-btn--primary:focus-visible {
  outline: 2px solid rgba(255, 231, 166, 0.95);
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .c1xbcq9-popup-content {
    padding: 2rem 1.5rem;
  }

  .c1xbcq9-popup-title {
    font-size: 1.2rem;
  }

  .c1xbcq9-popup-text {
    font-size: 0.95rem;
  }
}
