/* LoveMelons — age-gate: aviso adulto com identidade melancia */

.age-gate-modal {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(1rem + env(safe-area-inset-top, 0px)) 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(20, 40, 28, 0.5), transparent 70%),
    rgba(6, 10, 8, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.age-gate-modal.is-open {
  opacity: 1;
  visibility: visible;
}

html.age-gate-skip .age-gate-modal {
  display: none;
}

.age-gate-panel {
  position: relative;
  width: min(100%, 34rem);
  border: 1.5px solid rgba(45, 143, 78, 0.38);
  border-radius: 1.85rem;
  background:
    radial-gradient(ellipse 85% 50% at 50% -10%, rgba(255, 45, 85, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(45, 143, 78, 0.18), transparent 55%),
    linear-gradient(170deg, #161c18 0%, #101410 55%, #141014 100%);
  padding: 2.1rem 1.85rem 1.65rem;
  text-align: center;
  color: #fff;
  box-shadow:
    0 1.5rem 3.2rem rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 45, 85, 0.1),
    inset 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transform: translateY(0.35rem) scale(0.97);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.22s ease;
}

.age-gate-modal.is-open .age-gate-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.age-gate-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, transparent, #2d8f4e, #ff2d55, #2d8f4e, transparent);
  pointer-events: none;
}

.age-gate-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.35rem;
}

.age-gate-title {
  margin: 0 0 1rem;
  font-size: clamp(1.2rem, 2.8vw, 1.5rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.age-gate-text {
  margin: 0 auto 1.45rem;
  max-width: 30rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.55;
}

.age-gate-text a {
  color: #ff2d55;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 45, 85, 0.35);
  transition: border-color 0.14s ease, color 0.14s ease;
}

.age-gate-text a:hover {
  color: #ff4d6d;
  border-bottom-color: rgba(255, 77, 109, 0.7);
}

.age-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-bottom: 1.45rem;
}

.age-gate-btn {
  min-width: min(100%, 11.5rem);
  flex: 1 1 11.5rem;
  min-height: 2.75rem;
  padding: 0.7rem 1.05rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.age-gate-btn:active {
  transform: scale(0.98);
}

.age-gate-btn--confirm {
  border: 0;
  background: linear-gradient(135deg, #ff4d6d 0%, #ff2d55 50%, #e01030 100%);
  color: #fff;
  box-shadow:
    0 0.55rem 1.2rem rgba(255, 45, 85, 0.35),
    inset 0 1px rgba(255, 255, 255, 0.25);
}

.age-gate-btn--confirm:hover {
  filter: brightness(1.06);
  box-shadow:
    0 0.65rem 1.35rem rgba(255, 45, 85, 0.42),
    inset 0 1px rgba(255, 255, 255, 0.3);
}

.age-gate-btn--deny {
  border: 1.5px solid rgba(45, 143, 78, 0.55);
  background: rgba(45, 143, 78, 0.08);
  color: #5cb86a;
}

.age-gate-btn--deny:hover {
  background: rgba(45, 143, 78, 0.16);
  border-color: rgba(92, 184, 106, 0.7);
  color: #7dffa0;
}

.age-gate-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  justify-content: center;
  max-width: 24rem;
  margin: 0 auto;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.age-gate-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.35rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  opacity: 0.75;
  overflow: hidden;
  transition: opacity 0.14s ease, border-color 0.14s ease, transform 0.14s ease, box-shadow 0.14s ease;
}

.age-gate-flag-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.28rem;
  pointer-events: none;
}

.age-gate-flag:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.age-gate-flag.is-active {
  opacity: 1;
  border-color: rgba(255, 45, 85, 0.65);
  box-shadow: 0 0 0 2px rgba(255, 45, 85, 0.2);
}

body.age-gate-open {
  overflow: hidden;
}

@media (max-width: 480px) {
  .age-gate-panel {
    padding: 1.6rem 1.15rem 1.25rem;
  }

  .age-gate-actions {
    flex-direction: column;
  }

  .age-gate-btn {
    flex-basis: auto;
    width: 100%;
  }
}
