#age-gate {
  --age-gate-overlay: rgba(8, 9, 12, 0.74);
  --age-gate-surface: linear-gradient(180deg, rgba(27, 29, 35, 0.98), rgba(16, 17, 21, 0.99));
  --age-gate-border: rgba(255, 255, 255, 0.08);
  --age-gate-shadow: 0 40px 90px rgba(0, 0, 0, 0.48);
  --age-gate-eyebrow: rgba(255, 255, 255, 0.72);
  --age-gate-title: #fff;
  --age-gate-text: rgba(255, 255, 255, 0.78);
  --age-gate-primary-bg: #3fff00;
  --age-gate-primary-text: #111;
  --age-gate-secondary-bg: rgba(255, 255, 255, 0.04);
  --age-gate-secondary-text: rgba(255, 255, 255, 0.92);
  --age-gate-secondary-border: rgba(255, 255, 255, 0.12);
  --age-gate-blocked-accent: rgba(255, 255, 255, 0.72);
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  isolation: isolate;
}

#age-gate.is-active {
  display: flex;
}

#age-gate [data-age-gate-overlay] {
  position: absolute;
  inset: 0;
  background: var(--age-gate-overlay);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

#age-gate [data-age-gate-dialog] {
  position: relative;
  z-index: 1;
  width: min(100%, 500px);
  padding: 40px 24px 36px;
  border: 1px solid var(--age-gate-border);
  border-radius: 28px;
  background: var(--age-gate-surface);
  box-shadow: var(--age-gate-shadow);
  color: var(--age-gate-title);
  text-align: center;
  outline: none;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

#age-gate .age-gate__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

#age-gate [data-age-gate-screen] {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

#age-gate [data-age-gate-screen][hidden] {
  display: none;
}

#age-gate .age-gate__eyebrow {
  margin: 0;
  color: var(--age-gate-eyebrow);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
}

#age-gate .age-gate__title {
  margin: 0;
  color: var(--age-gate-title);
  font-size: 23px;
  line-height: 1.18;
  font-weight: 700;
  width: 100%;
  max-width: 100%;
  text-align: center;
}

#age-gate .age-gate__body {
  margin: 0;
  color: var(--age-gate-text);
  font-size: 16px;
  line-height: 1.55;
  width: 100%;
  max-width: 100%;
  text-align: center;
}

#age-gate .age-gate__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  width: 100%;
}

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

#age-gate .age-gate__button {
  min-height: 48px;
  border-radius: 18px;
  border: 1px solid transparent;
  padding: 0 18px;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

#age-gate .age-gate__blocked-note {
  margin: 0;
  color: var(--age-gate-text);
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
}

#age-gate .age-gate__button:hover,
#age-gate .age-gate__button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px -20px rgba(0, 0, 0, 0.72);
}

#age-gate .age-gate__button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.92);
  outline-offset: 2px;
}

#age-gate .age-gate__button.is-confirm {
  background: var(--age-gate-secondary-bg);
  border-color: var(--age-gate-secondary-border);
  color: var(--age-gate-secondary-text);
}

#age-gate .age-gate__button.is-deny,
#age-gate .age-gate__button.is-exit {
  background: var(--age-gate-secondary-bg);
  border-color: var(--age-gate-secondary-border);
  color: var(--age-gate-secondary-text);
}

#age-gate .age-gate__button.is-confirm:hover,
#age-gate .age-gate__button.is-confirm:focus-visible,
#age-gate .age-gate__button.is-confirm:active {
  background: #53ff21;
  border-color: #53ff21;
  color: var(--age-gate-primary-text);
}

#age-gate .age-gate__button.is-deny:hover,
#age-gate .age-gate__button.is-deny:focus-visible,
#age-gate .age-gate__button.is-deny:active {
  background: #d80621;
  border-color: #d80621;
  color: #fff;
}

#age-gate.is-blocked [data-age-gate-dialog] {
  background: linear-gradient(180deg, rgba(34, 36, 42, 0.98), rgba(19, 20, 25, 0.99));
  border-color: rgba(255, 255, 255, 0.08);
  filter: none;
}

#age-gate.is-blocked .age-gate__eyebrow {
  color: var(--age-gate-blocked-accent);
}

#age-gate.is-blocked .age-gate__actions {
  margin-top: 0;
  padding-top: 0;
  gap: 0;
}

#age-gate.is-blocked .age-gate__title {
  font-size: 18px;
  line-height: 1.3;
  max-width: 100%;
}

#age-gate.is-blocked [data-age-gate-screen] {
  gap: 16px;
}

#age-gate.is-blocked .age-gate__body {
  margin-bottom: 0;
}

#age-gate.is-blocked .age-gate__blocked-note {
  margin-top: 0;
}

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

@media screen and (max-width: 767px) {
  #age-gate {
    padding: 16px;
  }

  #age-gate [data-age-gate-dialog] {
    width: min(100%, 100%);
    padding: 32px 18px 28px;
    border-radius: 22px;
  }

  #age-gate .age-gate__title {
    font-size: 22px;
    max-width: 100%;
  }

  #age-gate .age-gate__body {
    font-size: 16px;
    max-width: 100%;
  }

  #age-gate .age-gate__actions {
    flex-direction: column;
  }

  #age-gate .age-gate__button {
    width: 100%;
  }
}
