:root{
  --age-card: #ffffff;
  --age-ink: #0f172a;
  --age-accept-bg: #1f6feb;
  --age-accept-text: #ffffff;
  --age-decline-bg: #f1f2f6;
  --age-decline-text: #0f172a;
  --age-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
}

.age-check{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Plus Jakarta Sans", "Manrope", "Segoe UI", Arial, sans-serif;
  color: var(--age-ink);
  text-align: center;
}

.age-check__backdrop{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1000px 600px at 20% 10%, rgba(31, 111, 235, 0.16), transparent 60%),
    radial-gradient(900px 500px at 90% 80%, rgba(15, 23, 42, 0.16), transparent 60%),
    rgba(10, 12, 16, 0.55);
  backdrop-filter: blur(6px);
}

.age-check__dialog{
  position: relative;
  max-width: 560px;
  width: calc(100% - 32px);
  background: var(--age-card);
  border-radius: 12px;
  padding: 28px 28px 24px;
  box-shadow: var(--age-shadow);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.age-check__title{
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px 0;
  letter-spacing: -0.01em;
}

.age-check__message{
  font-size: 15px;
  line-height: 1.55;
  opacity: 0.82;
  margin-bottom: 18px;
}

.age-check__actions{
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.age-check__btn{
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: #ffffff;
  color: var(--age-ink);
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.age-check__btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.age-check__btn--accept{
  background: var(--age-accept-bg);
  color: var(--age-accept-text);
  border-color: transparent;
}

.age-check__btn--decline{
  background: var(--age-decline-bg);
  color: var(--age-decline-text);
}

.age-check--soft{
  align-items: flex-end;
  justify-content: center;
}

.age-check--soft .age-check__backdrop{
  display: none;
}

.age-check--soft .age-check__dialog{
  width: 100%;
  max-width: 100%;
  border-radius: 12px 12px 0 0;
}

body.age-lock-hard,
body.age-lock-strict{
  overflow: hidden;
}

body.age-lock-strict > *:not(.age-check){
  visibility: hidden;
}

body.age-lock-strict .age-check{
  visibility: visible;
}

@media (max-width: 640px){
  .age-check__dialog{
    padding: 22px 20px;
  }
  .age-check__actions{
    width: 100%;
  }
  .age-check__btn{
    width: 100%;
  }
}
