#kidsModeBtn { background: #d9f5d0; color: var(--ink-fixed); }
#kidsModeBtn:hover { background: #7bc96f; color: var(--ink-fixed); }

#kidsModeBanner {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  padding: 0.8rem 1.2rem;
  border: 3px solid var(--border);
  border-radius: 18px;
  background: #d9f5d0;
  font-weight: 800;
  color: var(--ink-fixed);
}

body.kids-mode #kidsModeBanner { display: flex; }

.kids-gate-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1rem;
}

.kids-gate-form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-weight: 800;
}

.kids-gate-form input {
  padding: 0.65rem 0.9rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
}

.kids-gate-error {
  margin: 0;
  padding: 0.6rem 0.9rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: #ffd9dc;
  font-weight: 700;
  color: var(--ink-fixed);
}

.kids-gate-error[hidden] { display: none; }

/* The banner keeps dark text on its light-green background in both themes,
   but its exit button sits on a themed surface and needs the themed text. */
#kidsModeBanner .quiz-secondary { color: var(--text); }

.kids-gate-form input { background: var(--surface); color: var(--text); }
