/* SweetCherryAI — 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(40, 31, 20, 0.5), transparent 70%),
    rgba(10, 8, 6, 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(184, 138, 20, 0.38);
  border-radius: 1.85rem;
  background:
    radial-gradient(ellipse 85% 50% at 50% -10%, rgba(61, 142, 255, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(184, 138, 20, 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(61, 142, 255, 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, #b88a14, #3d8eff, #b88a14, 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: #3d8eff;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(61, 142, 255, 0.35);
  transition: border-color 0.14s ease, color 0.14s ease;
}

.age-gate-text a:hover {
  color: #5fa3ff;
  border-bottom-color: rgba(95, 163, 255, 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, #5fa3ff 0%, #3d8eff 50%, #1864c2 100%);
  color: #fff;
  box-shadow:
    0 0.55rem 1.2rem rgba(61, 142, 255, 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(61, 142, 255, 0.42),
    inset 0 1px rgba(255, 255, 255, 0.3);
}

.age-gate-btn--deny {
  border: 1.5px solid rgba(184, 138, 20, 0.55);
  background: rgba(184, 138, 20, 0.08);
  color: #dbac3d;
}

.age-gate-btn--deny:hover {
  background: rgba(184, 138, 20, 0.16);
  border-color: rgba(219, 172, 61, 0.7);
  color: #f2ca6e;
}

.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(61, 142, 255, 0.65);
  box-shadow: 0 0 0 2px rgba(61, 142, 255, 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%;
  }
}

/* ---------- Aviso +18 (age gate) ---------- */
.age-gate-modal {
  overflow: hidden;
  background:
    radial-gradient(40rem 26rem at 50% 38%, rgba(45, 117, 255, 0.2), transparent 70%),
    radial-gradient(30rem 20rem at 12% 90%, rgba(102, 94, 255, 0.12), transparent 70%),
    radial-gradient(30rem 20rem at 90% 10%, rgba(232, 179, 75, 0.08), transparent 70%),
    rgba(4, 9, 14, 0.86);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}

.age-gate-modal::before,
.age-gate-modal::after {
  position: absolute;
  z-index: 0;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1;
  filter: drop-shadow(0 0.8rem 1.4rem rgba(45, 117, 255, 0.35));
  pointer-events: none;
  animation: lm-age-float 7s ease-in-out infinite;
}

.age-gate-modal::before {
  content: "⚡";
  top: 14%;
  left: max(1.2rem, calc(50% - 24rem));
}

.age-gate-modal::after {
  content: "💎";
  right: max(1.2rem, calc(50% - 23rem));
  bottom: 16%;
  animation-delay: -3.5s;
}

.age-gate-modal .age-gate-panel {
  z-index: 1;
  width: min(100%, 33rem);
  padding: 2rem 1.9rem 1.7rem !important;
  border: 1px solid var(--j-line-2) !important;
  border-radius: 30px !important;
  background:
    radial-gradient(24rem 11rem at 50% -12%, rgba(122, 134, 255, 0.28), transparent 70%),
    radial-gradient(18rem 10rem at 110% 110%, rgba(45, 117, 255, 0.18), transparent 70%),
    linear-gradient(170deg, #0c1c2a 0%, #07121b 60%, #050f16 100%) !important;
  color: var(--j-cream);
  box-shadow:
    0 2.4rem 5rem rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(45, 117, 255, 0.08),
    0 0 4rem rgba(45, 117, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  overflow: visible;
}

.age-gate-modal .age-gate-panel::before {
  top: -1px;
  left: 22%;
  right: 22%;
  height: 3px;
  background: var(--j-juice);
  box-shadow: 0 0 1.2rem rgba(122, 140, 255, 0.8);
}

.age-gate-modal .age-gate-panel::after {
  content: "🌩️";
  position: absolute;
  top: -1.3rem;
  right: 1.4rem;
  font-size: 2.1rem;
  transform: rotate(18deg);
  filter: drop-shadow(0 0.5rem 0.9rem rgba(0, 0, 0, 0.45));
  pointer-events: none;
  animation: lm-age-sway 3.6s ease-in-out infinite;
}

.age-gate-modal .age-gate-brand {
  position: relative;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}

.age-gate-modal .age-gate-brand::after {
  content: "18+";
  display: inline-grid;
  place-items: center;
  min-width: 3.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--j-juice);
  color: #07152a;
  font-family: var(--j-display);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  box-shadow: var(--j-gloss), 0 0.5rem 1.2rem rgba(45, 117, 255, 0.4);
  animation: lm-age-pop 2.4s ease-in-out infinite;
}

.age-gate-modal .site-brand-logo__word {
  color: var(--j-cream) !important;
}

.age-gate-modal .site-brand-logo__accent {
  background: var(--j-juice);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

.age-gate-modal .age-gate-title {
  margin: 0 0 0.85rem;
  font-family: var(--j-display);
  font-size: clamp(1.25rem, 3.4vw, 1.65rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  background: linear-gradient(180deg, #f1f2ff 0%, #b3b8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-wrap: balance;
}

.age-gate-modal .age-gate-text {
  margin-bottom: 1.35rem;
  color: var(--j-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.age-gate-modal .age-gate-text a {
  color: var(--j-peach);
  border-bottom-color: rgba(122, 134, 255, 0.4);
}

.age-gate-modal .age-gate-text a:hover {
  color: var(--j-banana);
  border-bottom-color: rgba(255, 226, 122, 0.7);
}

.age-gate-modal .age-gate-actions {
  gap: 0.65rem;
  margin-bottom: 0;
}

.age-gate-modal .age-gate-btn {
  position: relative;
  min-height: 3rem;
  overflow: hidden;
  font-size: 0.86rem;
  white-space: nowrap;
}

.age-gate-modal .age-gate-btn--confirm {
  color: #07152a !important;
}

.age-gate-modal .age-gate-btn--confirm::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: lm-age-sheen 3.2s ease-in-out infinite;
  pointer-events: none;
}

.age-gate-modal .age-gate-btn--confirm:hover {
  filter: brightness(1.08) saturate(1.1);
  transform: translateY(-2px);
}

.age-gate-modal .age-gate-btn--deny {
  border: 1px solid var(--j-line-2);
  background: var(--j-glass);
  color: var(--j-muted);
  font-weight: 700;
}

.age-gate-modal .age-gate-btn--deny:hover {
  border-color: rgba(170, 175, 255, 0.45);
  background: var(--j-glass-2);
  color: var(--j-cream);
}

@media (max-width: 480px) {
  .age-gate-modal .age-gate-panel {
    padding: 1.7rem 1.2rem 1.3rem !important;
    border-radius: 26px !important;
  }

  .age-gate-modal::before {
    top: 6%;
  }

  .age-gate-modal::after {
    bottom: 5%;
  }
}

@keyframes lm-age-float {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-1.1rem) rotate(8deg); }
}

@keyframes lm-age-sway {
  0%, 100% { transform: rotate(10deg) translateY(0); }
  50% { transform: rotate(26deg) translateY(-0.3rem); }
}

@keyframes lm-age-pop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes lm-age-sheen {
  0%, 55% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}
