.age-gate,
.cookie-banner {
  font-family: var(--font-body);
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  pointer-events: none;
}

.age-gate.is-open {
  visibility: visible;
  pointer-events: auto;
}

.age-gate-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 4, 25, 0.76);
  opacity: 0;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: opacity 0.26s ease;
}

.age-gate.is-open .age-gate-backdrop {
  opacity: 1;
}

.age-gate-panel {
  position: relative;
  z-index: 2;
  width: min(100%, 560px);
  padding: 38px;
  border-radius: 34px;
  color: #ffffff;
  background:
    radial-gradient(
      circle at 12% 0%,
      rgba(244, 43, 145, 0.28),
      transparent 36%
    ),
    radial-gradient(
      circle at 100% 8%,
      rgba(255, 116, 64, 0.18),
      transparent 34%
    ),
    radial-gradient(
      circle at 50% 100%,
      rgba(100, 37, 230, 0.24),
      transparent 44%
    ),
    linear-gradient(180deg, #1b1146 0%, #100b2c 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 34px 90px rgba(7, 4, 25, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  text-align: center;
  transform: translateY(18px) scale(0.96);
  opacity: 0;
  transition:
    opacity 0.26s ease,
    transform 0.26s ease;
}

.age-gate.is-open .age-gate-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.age-gate-icon {
  width: 86px;
  height: 86px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(255, 199, 74, 0.88);
  border-radius: 50%;
  color: #ffc74a;
  background: rgba(255, 199, 74, 0.08);
  box-shadow: 0 0 34px rgba(255, 199, 74, 0.18);
}

.age-gate-icon span {
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
}

.age-gate-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.age-gate-title {
  margin-top: 18px;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.age-gate-text {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 16px;
  line-height: 1.72;
}

.age-gate-notice {
  margin-top: 22px;
  padding: 18px;
  border-radius: 22px;
  text-align: left;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.age-gate-notice strong {
  display: block;
  margin-bottom: 6px;
  color: #ffc74a;
  font-family: var(--font-heading);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
}

.age-gate-notice span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 600;
}

.age-gate-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}

.age-gate-btn,
.cookie-btn {
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.age-gate-btn-primary,
.cookie-btn-primary {
  color: #ffffff;
  background: var(--gradient-main);
  box-shadow: 0 18px 34px rgba(100, 37, 230, 0.24);
}

.age-gate-btn-secondary,
.cookie-btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.age-gate-btn:hover,
.cookie-btn:hover {
  transform: translateY(-2px);
}

.age-gate-small {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  line-height: 1.6;
  font-weight: 600;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2500;
  padding: 18px;
  visibility: hidden;
  pointer-events: none;
}

.cookie-banner.is-open {
  visibility: visible;
  pointer-events: auto;
}

.cookie-banner-panel {
  width: min(100%, 1180px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 0% 0%, rgba(100, 37, 230, 0.12), transparent 34%),
    radial-gradient(
      circle at 100% 0%,
      rgba(244, 43, 145, 0.1),
      transparent 34%
    ),
    rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(100, 37, 230, 0.14);
  box-shadow: 0 24px 64px rgba(18, 22, 60, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: translateY(24px);
  opacity: 0;
  transition:
    opacity 0.26s ease,
    transform 0.26s ease;
}

.cookie-banner.is-open .cookie-banner-panel {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner-icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: var(--color-purple);
  background: linear-gradient(
    135deg,
    rgba(100, 37, 230, 0.1),
    rgba(244, 43, 145, 0.08)
  );
}

.cookie-banner-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.05;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cookie-banner-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--color-purple);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cookie-banner-content h2 {
  margin-bottom: 6px;
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.cookie-banner-content p {
  max-width: 720px;
  color: var(--color-muted-dark);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 600;
}

.cookie-banner-small {
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 12px;
}

.cookie-banner-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  min-width: 190px;
}

.cookie-btn-primary {
  min-height: 46px;
}

.cookie-btn-secondary {
  min-height: 46px;
  color: var(--color-purple);
  background: rgba(100, 37, 230, 0.07);
  border: 1px solid rgba(100, 37, 230, 0.14);
}

.cookie-link {
  display: inline-flex;
  justify-content: center;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 800;
}

.cookie-link:hover {
  color: var(--color-purple);
}

body.popup-lock {
  overflow: hidden;
}

@media (max-width: 900px) {
  .cookie-banner-panel {
    grid-template-columns: 1fr;
  }

  .cookie-banner-actions {
    grid-template-columns: 1fr 1fr;
    min-width: 0;
  }

  .cookie-link {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .age-gate {
    padding: 14px;
  }

  .age-gate-panel {
    padding: 28px 20px;
    border-radius: 26px;
  }

  .age-gate-actions {
    grid-template-columns: 1fr;
  }

  .cookie-banner {
    padding: 10px;
  }

  .cookie-banner-panel {
    padding: 18px;
    border-radius: 24px;
  }

  .cookie-banner-actions {
    grid-template-columns: 1fr;
  }
}
