.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: rgba(0, 0, 0, 0.88);
  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 {
  width: min(100%, 34rem);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.65rem;
  background: #2e2e2e;
  padding: 2rem 1.75rem 1.5rem;
  text-align: center;
  color: #fff;
  box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.45);
}

.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.15rem, 2.8vw, 1.45rem);
  font-weight: 800;
  line-height: 1.25;
}

.age-gate-text {
  margin: 0 auto 1.35rem;
  max-width: 30rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.55;
}

.age-gate-text a {
  color: #ff6b8a;
  font-weight: 600;
  text-decoration: none;
}

.age-gate-text a:hover {
  text-decoration: underline;
}

.age-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-bottom: 1.35rem;
}

.age-gate-btn {
  min-width: min(100%, 11.5rem);
  flex: 1 1 11.5rem;
  min-height: 2.65rem;
  padding: 0.65rem 1rem;
  border-radius: 0.42rem;
  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;
}

.age-gate-btn:active {
  transform: scale(0.98);
}

.age-gate-btn--confirm {
  border: 0;
  background: #ff6b8a;
  color: #111;
}

.age-gate-btn--confirm:hover {
  background: #ff6b8a;
}

.age-gate-btn--deny {
  border: 2px solid #ff6b8a;
  background: transparent;
  color: #ff6b8a;
}

.age-gate-btn--deny:hover {
  background: rgba(255, 107, 138, 0.08);
}

.age-gate-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  justify-content: center;
  max-width: 24rem;
  margin: 0 auto;
}

.age-gate-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.3rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 0.22rem;
  background: transparent;
  cursor: pointer;
  opacity: 0.78;
  overflow: hidden;
  transition: opacity 0.14s ease, border-color 0.14s ease, transform 0.14s ease;
}

.age-gate-flag-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.14rem;
  pointer-events: none;
}

.age-gate-flag:hover {
  opacity: 1;
}

.age-gate-flag.is-active {
  opacity: 1;
  border-color: rgba(255, 107, 138, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 107, 138, 0.2);
}

body.age-gate-open {
  overflow: hidden;
}

@media (max-width: 480px) {
  .age-gate-panel {
    padding: 1.5rem 1.1rem 1.2rem;
  }

  .age-gate-actions {
    flex-direction: column;
  }

  .age-gate-btn {
    flex-basis: auto;
    width: 100%;
  }
}
