#age18-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(120, 20, 35, 0.22), transparent 32%),
    radial-gradient(circle at 80% 70%, rgba(210, 170, 120, 0.12), transparent 35%),
    rgba(8, 7, 9, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#age18-card {
    position: relative;
    width: min(440px, 100%);
    padding: 34px 32px 30px;
    box-sizing: border-box;
    border: 1px solid rgba(231, 211, 181, 0.22);
    border-radius: 28px;
    background: linear-gradient(145deg, rgb(151 187 215 / 97%), rgb(153 105 86 / 98%)), #508291;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.035);
    color: #253e46;
    text-align: center;
    font-family: Montserrat, "Times New Roman", serif;
    animation: age18CardIn 0.45s ease both;
}

#age18-card::before {
    content: "18+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 74px;
    margin-bottom: 18px;
    border-radius: 50%;
    border: 1px solid rgba(231, 211, 181, 0.38);
    background: radial-gradient(circle, rgb(163 104 48 / 28%), transparent 67%), rgba(255, 255, 255, 0.035);
    color: #ffe0bf;
    font-size: 23px;
    letter-spacing: 0.06em;
    font-weight: 600;
}

#age18-card::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 128px;
  width: 120px;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(231, 211, 181, 0.45), transparent);
}

.age18-title {
  margin: 4px 0 14px;
  color: #f1dfc8;
  font-size: 25px;
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.age18-text {
    margin: 0 auto 24px;
    max-width: 350px;
    color: rgb(255 250 246 / 78%);
    font-family: Inter, sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.7;
}

.age18-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.age18-btn {
  min-width: 142px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(231, 211, 181, 0.24);
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: 0.25s ease;
}

.age18-btn-accept {
    background: linear-gradient(179deg, #5da8c9, #c1a389);
    color: #ffffff;
    border-color: rgba(255, 232, 195, 0.4);
}

.age18-btn-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(185, 138, 103, 0.22);
}

.age18-btn-leave {
  background: rgba(255, 255, 255, 0.035);
  color: rgba(232, 222, 208, 0.74);
}

.age18-btn-leave:hover {
  color: #f1dfc8;
  background: rgba(255, 255, 255, 0.075);
}

body.age18-locked {
  overflow: hidden !important;
}

@keyframes age18CardIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 480px) {
  #age18-card {
    padding: 30px 22px 26px;
    border-radius: 22px;
  }

  .age18-title {
    font-size: 21px;
  }

  .age18-buttons {
    flex-direction: column;
  }

  .age18-btn {
    width: 100%;
  }
}