
/* ============================================
   3. R18 RESTRICTED OVERLAY — fullscreen gate
   ============================================ */
.r18-overlay {
  position: fixed; inset: 0;
  z-index: 600;
  background: rgba(10,10,15,0.94);
  backdrop-filter: blur(14px);
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.r18-overlay.open { display: flex; animation: fadeIn 0.3s ease; }

.r18-card {
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 36px 28px 28px;
  text-align: center;
  position: relative;
  animation: slideUp 0.5s cubic-bezier(0.175,0.885,0.32,1.275);
  overflow: hidden;

}
/* Soft glow */
.r18-card::before {
  content: '';
  position: absolute;
  top: -120px; left: 50%; transform: translateX(-50%);
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(123,47,255,0.14) 0%, transparent 70%);
  pointer-events: none;
}
/* Subtle animated border */
.r18-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 23px;
  padding: 1px;
  background: linear-gradient(90deg,
    rgba(123,47,255,0.55), rgba(0,245,212,0.45),
    rgba(123,47,255,0.55));
  background-size: 200% 100%;
  animation: borderSpin 5s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.35;
}

.r18-badge {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 76px; height: 76px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  border-radius: 50%;
  margin: 0 auto 18px;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: white;
  letter-spacing: -0.02em;
  box-shadow: 0 0 0 5px rgba(123,47,255,0.1), 0 0 28px rgba(123,47,255,0.3);
}
.r18-badge::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px dashed rgba(123,47,255,0.35);
  animation: gemSpin 10s ease-in-out infinite;
}
.r18-title {
  position: relative;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.r18-title span {
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.r18-sub {
  position: relative;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.r18-body {
  position: relative;
  font-size: 0.78rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 20px;
}
.r18-list {
  position: relative;
  text-align: left;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 22px;
  list-style: none;
}
.r18-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.73rem;
  color: var(--muted);
  padding: 6px 0;
  line-height: 1.5;
}
.r18-list li::before {
  content: '✓';
  color: var(--accent3);
  font-size: 0.75rem;
  margin-top: 2px;
  flex-shrink: 0;
}
.r18-actions {
  position: relative;
  display: flex; flex-direction: column; gap: 8px;
}
.btn-r18-confirm {
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  border: none;
  border-radius: 12px;
  color: white;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(123,47,255,0.3);
  letter-spacing: 0.02em;
}
.btn-r18-confirm:hover { transform: translateY(-1px); box-shadow: 0 6px 26px rgba(123,47,255,0.45); }
.btn-r18-leave {
  padding: 12px 20px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-r18-leave:hover { border-color: var(--muted); color: var(--text); }
.r18-footer {
  position: relative;
  margin-top: 16px;
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  line-height: 1.6;
}
.r18-footer a {
  color: var(--accent3);
  text-decoration: none;
  border-bottom: 1px dashed rgba(0,245,212,0.4);
}