.age-gate[hidden] {
  display: none;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.age-gate__overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 2, 4, 0.84);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.age-gate__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 34rem);
  padding: 2rem;
  border: 1px solid rgba(255, 214, 138, 0.16);
  border-radius: 20px;
  background:
    linear-gradient(to bottom, rgba(255, 214, 138, 0.05), transparent),
    linear-gradient(180deg, rgba(41, 10, 14, 0.97), rgba(14, 4, 7, 0.98));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.56);
  color: #f8f0e2;
}

.age-gate__content {
  display: grid;
  gap: 1rem;
}

.age-gate__eyebrow {
  margin: 0;
  color: rgba(255, 218, 138, 0.88);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.age-gate__title {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.05;
  font-weight: 700;
  text-align: center;
}

.age-gate__body,
.age-gate__blocked-note {
  margin: 0;
  color: rgba(248, 240, 226, 0.84);
  font-size: 1rem;
  line-height: 1.7;
  text-align: center;
}

.age-gate__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 3rem;
}

.age-gate__button {
  min-height: 3.15rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 214, 138, 0.16);
  border-radius: 12px;
  background: rgba(255, 214, 138, 0.08);
  color: #f8f0e2;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.age-gate__button:hover,
.age-gate__button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 214, 138, 0.28);
  background: rgba(255, 214, 138, 0.14);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.age-gate__button--accept {
  background: rgba(255, 214, 138, 0.08);
  color: #f8f0e2;
}

.age-gate__button:disabled {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.42);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.age-gate__blocked {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 214, 138, 0.12);
}

.age-gate.is-blocked .age-gate__dialog {
  border-color: rgba(216, 24, 33, 0.32);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.56),
    0 0 0 1px rgba(216, 24, 33, 0.14);
}

.age-gate.is-blocked .age-gate__title {
  color: #ffffff;
}

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

@media screen and (max-width: 479px) {
  .age-gate {
    padding: 0.75rem;
  }

  .age-gate__dialog {
    padding: 1.35rem;
    border-radius: 16px;
  }

  .age-gate__actions {
    grid-template-columns: 1fr;
  }
}
