/* Comprobación parental previa al acceso a configuración. */
/* Grown-up check before Settings. */
#grownup-gate {
  width: min(380px, calc(100vw - 24px));
  padding: 20px;
  border: 2px solid #c7dfee;
  border-radius: 22px;
  background: var(--ad-surface);
  color: var(--color-ink-dialog);
  text-align: center;
  box-shadow: 0 24px 80px #25486766;
}
#grownup-gate::backdrop {
  background: #203d58c9;
  backdrop-filter: blur(6px);
}
#grownup-gate h2 {
  margin: 0 0 6px;
  font-size: calc(20px * var(--text-scale, 1));
}
#grownup-gate h2 small {
  display: block;
  font-size: calc(13px * var(--text-scale, 1));
  font-weight: 500;
  color: var(--color-ink-description);
}
#grownup-gate p {
  margin: 6px 0;
  font-size: calc(13px * var(--text-scale, 1));
  color: var(--ad-ink-muted);
}
#grownup-gate .gate-question {
  font-size: calc(18px * var(--text-scale, 1));
  font-weight: 700;
  color: var(--color-ink-dialog);
}
.gate-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}
.gate-options button {
  min-height: 52px;
  border: 1px solid var(--color-line-practice);
  border-radius: 14px;
  background: var(--color-surface);
  color: var(--color-ink-dialog);
  font-size: calc(20px * var(--text-scale, 1));
  font-weight: 700;
  box-shadow: 0 3px 0 var(--color-bevel-practice);
}
.gate-options button[data-wrong="true"] {
  background: #fff0ec;
  border-color: #dcab9d;
  color: #936657;
  animation: choice-shake 0.4s ease;
}
#grownup-gate .gate-cancel {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--color-line-practice);
  border-radius: 12px;
  background: var(--color-surface);
  color: var(--color-ink-dialog);
  font-weight: 700;
}
#grownup-gate .gate-cancel small {
  font-weight: 400;
  color: var(--color-ink-description);
}
html[data-appearance="dark"] #grownup-gate {
  background: var(--ad-surface);
  border-color: #47637b;
  color: var(--ad-ink-deep);
}
html[data-appearance="dark"] #grownup-gate :is(.gate-question, h2) {
  color: #e0edf6;
}
html[data-appearance="dark"] #grownup-gate :is(p, h2 small, .gate-cancel small) {
  color: #b2c8d9;
}
html[data-appearance="dark"] :is(.gate-options button, #grownup-gate .gate-cancel) {
  background: #2b455c;
  border-color: #526e88;
  color: #e0edf6;
  box-shadow: none;
}
