/* The 18+ window (age-gate.js): a small plate in the middle of a dimmed page. */

.age-gate {
  width: min(420px, calc(100vw - 32px));
  padding: 0;
  background: var(--plate);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--plate-edge), 0 24px 60px rgba(0, 0, 0, 0.6);
  color: var(--white-hot);
}

.age-gate::backdrop {
  background: rgba(8, 7, 7, 0.7);
  backdrop-filter: blur(4px);
}

.age-gate[open] {
  animation: age-gate-in 0.25s var(--ease-out, ease-out);
}

@keyframes age-gate-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
}

.age-gate-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 32px 28px 28px;
  text-align: center;
}

.age-gate-badge {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 4px;
  border: 2px solid var(--ember);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(255, 107, 26, 0.35);
  color: var(--ember-light);
  font-size: 1.1rem;
  font-weight: 800;
}

.age-gate-title {
  font-size: 1.35rem;
  letter-spacing: 0;
  text-transform: none;
}

.age-gate-text {
  margin: 0;
  color: var(--ash);
  font-size: var(--text-sm);
  line-height: 1.5;
  text-wrap: pretty;
}

/* The tick is the whole row: label and box together, easy to hit */
.age-gate-check {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 6px;
  padding: 14px 16px;
  background: var(--soot);
  border: var(--border);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  text-align: left;
  cursor: pointer;
}

.age-gate-check:hover {
  border-color: var(--steel);
}

.age-gate-check span {
  text-wrap: balance;
}

.age-gate-check a {
  color: var(--ember-light);
  text-underline-offset: 3px;
}

.age-gate-check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--ember);
  cursor: pointer;
}

.age-gate-error {
  margin: 0;
  color: var(--danger-text);
  font-size: var(--text-sm);
}

.age-gate-actions {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 10px;
  width: 100%;
  margin-top: 4px;
}

.age-gate-actions .button {
  height: var(--control-height);
  padding: 0 16px;
}

.age-gate-actions .button-ember:disabled {
  background: var(--iron-light);
  box-shadow: inset 0 0 0 1px var(--iron-lighter);
  color: var(--steel);
  cursor: not-allowed;
  filter: none;
}
