.agegate-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25); /* Всего 25% затемнения — почти прозрачно */
}

.agegate-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px); /* Для Safari */
  background: rgba(0, 0, 0, 0.1); /* Всего 10% чёрного — почти невидимый */
  z-index: 1;
}

.agegate-box {
  position: relative;
  background: rgba(0, 0, 0, 0.85); /* Полупрозрачный чёрный — не густой */
  padding: 40px 30px;
  border-radius: 14px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  z-index: 2;
  backdrop-filter: blur(4px); /* Лёгкий блюр внутри попапа — для глубины */
  -webkit-backdrop-filter: blur(4px);
  font-family: 'Segoe UI', sans-serif;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.agegate-text {
  color: #fff;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 35px;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3); /* Лёгкая тень текста для контраста */
}

.agegate-confirm {
  min-width: 160px;
  height: 52px;
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
}

.agegate-confirm:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 204, 113, 0.5);
}

.agegate-confirm:active {
  opacity: 0.8;
  transform: translateY(0);
}