/* ──────────────────────────────────────────────
   Age-Gate — Psychic Barrier Overlay
   ────────────────────────────────────────────── */

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 17, 17, 0.94);
  /* Psychic energy crackle behind the barrier */
  animation: barrier-pulse 4s ease-in-out infinite;
}

.age-gate[hidden] {
  display: none !important;
}

@keyframes barrier-pulse {
  0%, 100% { background: rgba(17, 17, 17, 0.94); }
  50%      { background: rgba(17, 17, 17, 0.97); }
}

body.gate-open {
  overflow: hidden;
}

.age-gate-panel {
  width: min(620px, 100%);
  max-height: 92vh;
  background: #ffffff;
  border: 2px solid #000000;
  /* Hyper-brutalist shadow — matches site cards */
  box-shadow: 16px 16px 0px 0px rgba(0, 0, 0, 0.5);
  padding: 32px 28px 28px;
  position: relative;
  transform: translate(-16px, -16px);
  overflow-y: auto;
  color: #000000;
}

/* Top stamp label */
.age-gate-panel::before {
  content: "PSYCHIC BARRIER — ACCESS RESTRICTED";
  display: inline-block;
  border: 3px solid #000000;
  background: #000000;
  color: #ffffff;
  padding: 6px 12px;
  margin-bottom: 16px;
  font: 700 11px Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transform: rotate(-1deg);
}

.age-gate-kicker {
  font: 700 14px Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #808080;
  margin-bottom: 8px;
}

.age-gate-title {
  font-size: clamp(28px, 5.5vw, 42px);
  margin: 0 0 20px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #000000;
}

.age-gate-context {
  margin: 1rem 0 1.5rem;
  padding: 1rem 1.2rem;
  border-left: 4px solid #ff0000;
  background: #f5f5f5;
  font-size: 16px;
  line-height: 1.6;
  color: #000000;
}

.age-gate-context strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 18px;
  color: #000000;
}

/* Content-warning block */
.age-gate-warning {
  border-top: 2px solid #e2e8f0;
  border-bottom: 2px solid #e2e8f0;
  padding: 16px 0;
  margin: 20px 0;
  font-size: 16px;
  line-height: 1.6;
  color: #000000;
  background: #fffaf0;
  border-radius: 4px;
}

.age-gate-warning strong {
  color: #dc2626;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 14px;
  display: block;
  margin-bottom: 8px;
}

/* Restricted entities block */
.age-gate-restricted {
  background: #f5f5f5;
  border: 2px solid #000000;
  padding: 16px 20px;
  margin: 16px 0;
  font-size: 15px;
  line-height: 1.6;
  color: #000000;
  border-radius: 4px;
}

.age-gate-restricted strong {
  display: block;
  font: 700 12px Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #000000;
  margin-bottom: 8px;
}

.age-gate-restricted ul {
  margin: 8px 0 0;
  padding-left: 1.5rem;
  list-style: none;
}

.age-gate-restricted li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 4px;
  font-size: 15px;
}

.age-gate-restricted li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: #000000;
  font-size: 12px;
}

.age-gate-restricted .sympathizers {
  font-weight: 800;
  font-size: 16px;
  color: #000000;
  letter-spacing: 0.04em;
}

.age-gate-restricted .sympathizers::before {
  content: "☠";
  font-size: 14px;
}

/* Welcome to magicians */
.age-gate-welcome {
  margin: 20px 0 0;
  padding: 14px 20px;
  background: #f5f5f5;
  border: 2px solid #000000;
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
  border-radius: 4px;
}

.age-gate-welcome strong {
  display: block;
  font: 700 12px Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #808080;
  margin-bottom: 6px;
}

.age-gate-welcome .magician-name {
  font-style: italic;
  font-weight: 700;
  color: #000000;
}

/* Remember checkbox */
.remember-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 14px Arial, sans-serif;
  margin-top: 16px;
  color: #808080;
  font-weight: 500;
}

.remember-choice input {
  accent-color: #ff0000;
  width: 18px;
  height: 18px;
}

/* Action buttons */
.age-gate-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.age-gate-actions button,
.age-gate-actions a {
  display: inline-block;
  padding: 14px 24px;
  border: 6px solid #000000;
  text-decoration: none;
  font: 700 14px Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.1s cubic-bezier(0.23, 1, 0.32, 1);
  /* Brutalist card shadow */
  box-shadow: 6px 6px 0px 0px rgba(0, 0, 0, 0.35);
  transform: translate(-6px, -6px);
  flex: 1 1 140px;
  text-align: center;
  font-weight: 700;
}

.age-enter {
  background: #000000;
  color: white;
}

.age-enter:hover {
  background: #ff0000;
  border-color: #ff0000;
  transform: translate(0, 0);
  box-shadow: none;
}

.age-leave {
  background: transparent;
  color: #000000;
}

.age-leave:hover {
  background: #f5f5f5;
  border-color: #ff0000;
  color: #ff0000;
  transform: translate(0, 0);
  box-shadow: 4px 4px 0px 0px rgba(0, 0, 0, 0.2);
}

@media (max-width: 600px) {
  .age-gate { padding: 12px; }
  .age-gate-panel {
    padding: 18px 14px 20px;
    box-shadow: 8px 8px 0px 0px rgba(0, 0, 0, 0.5);
    transform: translate(-8px, -8px);
  }
  .age-gate-panel::before {
    font-size: 9px;
    letter-spacing: 0.1em;
    padding: 4px 8px;
    margin-bottom: 10px;
    transform: rotate(0);
  }
  .age-gate-kicker { font-size: 12px; letter-spacing: 0.12em; margin-bottom: 4px; }
  .age-gate-title { font-size: 28px; margin: 0 0 12px; }
  .age-gate-context { margin: 0.75rem 0 1rem; padding: 0.75rem 1rem; font-size: 14px; }
  .age-gate-context strong { font-size: 16px; }
  .age-gate-warning { border-top-width: 2px; border-bottom-width: 2px; padding: 10px 0; margin: 12px 0; font-size: 14px; }
  .age-gate-warning strong { font-size: 12px; }
  .age-gate-restricted { padding: 12px 16px; margin: 12px 0; font-size: 14px; }
  .age-gate-restricted strong { font-size: 10px; margin-bottom: 4px; }
  .age-gate-restricted li { font-size: 14px; padding-left: 14px; margin-bottom: 2px; }
  .age-gate-restricted li::before { font-size: 10px; }
  .age-gate-welcome { padding: 12px 16px; margin: 14px 0 0; font-size: 14px; }
  .age-gate-welcome strong { font-size: 10px; margin-bottom: 4px; }
  .age-gate-welcome .magician-name { font-size: 14px; }
  .remember-choice { margin-top: 12px; font-size: 13px; }
  .remember-choice input { width: 16px; height: 16px; }
  .age-gate-actions { gap: 10px; margin-top: 16px; }
  .age-gate-actions button,
  .age-gate-actions a { padding: 12px 18px; border-width: 4px; font-size: 12px; box-shadow: 4px 4px 0px 0px rgba(0, 0, 0, 0.35); transform: translate(-4px, -4px); flex: none; }
  .age-enter:hover,
  .age-leave:hover { transform: translate(0, 0); }
}
