/* Family platform, preserving Number Garden’s existing visual language. */
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: -80px;
  left: 15px;
  background: white;
  padding: 15px;
  z-index: 100;
}
.skip-link:focus {
  top: 10px;
}
header {
  height: auto;
  min-height: 105px;
  gap: 20px;
  padding-top: 20px;
  padding-bottom: 20px;
}
#brand {
  font-size: 27px;
}
#brand span {
  display: block;
  margin-left: 36px;
  font-size: 22px;
}
#brand small {
  font-size: 8px;
  margin-left: 37px;
}
.header-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.voice-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}
#volume {
  width: 65px;
  accent-color: #557b5b;
}
#wallets {
  display: flex;
  gap: 6px;
}
.coin {
  background: #f4eedc;
  border: 1px solid #e6dcbb;
  font-size: 13px;
  padding: 12px 15px;
  border-radius: 30px;
}
#saveNotice {
  position: sticky;
  top: 0;
  z-index: 15;
  background: #fff0cb;
  border-bottom: 2px solid #b27818;
  padding: 16px 30px;
  color: #624300;
}
#learnerSwitch {
  background: #e8efdf;
  font-size: 13px;
}
.parent-link {
  font-size: 12px;
  margin-top: 25px;
  background: transparent;
  text-align: left;
  padding: 12px 0;
}
button:disabled {
  cursor: default;
  translate: none;
  opacity: 0.7;
}
button:disabled.correct {
  opacity: 1;
}
.correct {
  background: #d8eac9 !important;
}
.try-again {
  background: #f6e8df !important;
}
.profile-welcome {
  text-align: center;
  padding: 15px 0 40px;
}
.profile-welcome h1 {
  margin: 20px 0 12px;
  font-size: 50px;
}
.profile-welcome > p {
  color: #65715d;
  line-height: 1.8;
}
.welcome-bunny {
  font-size: 85px;
  margin-bottom: 15px;
  animation: bob 4s infinite;
}
.profile-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin: 35px auto;
  max-width: 750px;
}
.profile-card {
  background: white;
  border: 2px solid #dce5d0;
  border-radius: 25px;
  padding: 30px 45px;
  min-width: 210px;
  display: grid;
  gap: 14px;
  box-shadow: 0 6px 0 #e7ecdf;
}
.profile-card:nth-child(2n) {
  border-color: #eadbc5;
  box-shadow: 0 6px 0 #eee5d8;
}
.profile-card .avatar {
  font-size: 55px;
  background: #edf1e5;
  border-radius: 50%;
  width: 95px;
  height: 95px;
  margin: auto;
  display: grid;
  place-items: center;
}
.profile-card strong {
  font: 500 30px Fredoka;
}
.profile-card > span:last-child {
  font-size: 12px;
  color: #5b714c;
}
.local-note {
  font-size: 12px;
}
.resume-banner {
  padding: 15px 20px;
  margin-top: 25px;
  border: 1px solid #d8e2cd;
  background: #f0f5e9;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 13px;
}
.resume-banner button {
  font-size: 12px;
  background: white;
}
.child-note {
  font-size: 12px;
  line-height: 1.9;
  color: #64705c;
  padding: 22px 10px;
}
.skill-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.skill-card {
  display: grid;
  gap: 12px;
  text-align: left;
  background: white;
  border: 1px solid #dde5d5;
  padding: 22px;
}
.skill-card > span {
  font-size: 30px;
}
.skill-card > b {
  font: 500 20px Fredoka;
}
.skill-card small {
  letter-spacing: 0;
  font-size: 11px;
  color: #587044;
}
.question-text {
  font-size: 32px;
  max-width: 800px;
  line-height: 1.5;
  margin: 25px auto;
}
.centre {
  text-align: center;
  justify-content: center;
}
.celebration {
  font-size: 70px;
  animation: pop 0.5s;
}
.parent-gate {
  max-width: 650px;
  margin: auto;
}
.parent-gate p {
  font-size: 14px;
  line-height: 1.8;
  color: #5a6856;
}
form {
  display: grid;
  gap: 14px;
}
form label {
  display: grid;
  gap: 7px;
  font-size: 13px;
}
input:not([type="range"]):not([type="checkbox"]):not([type="file"]),
select {
  border: 1px solid #cad5bf;
  border-radius: 9px;
  padding: 12px;
  background: #fcfdf9;
  min-height: 44px;
}
input[type="password"] {
  max-width: 230px;
  font-size: 22px;
  letter-spacing: 6px;
}
.parent-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
}
.parent-grid h3,
.history h3 {
  font: 500 23px Fredoka;
}
.parent-grid .panel > label {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 18px 0;
  font-size: 14px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.metric-grid > div {
  background: white;
  border: 1px solid #dfe5d6;
  border-radius: 17px;
  padding: 20px;
  display: grid;
  gap: 8px;
}
.metric-grid b {
  font: 500 25px Fredoka;
}
.metric-grid span {
  font-size: 11px;
  line-height: 1.5;
  color: #65735d;
}
.muted {
  font-size: 12px;
  line-height: 1.8;
  color: #63715b;
}
.history,
.legacy {
  margin-top: 22px;
}
.history p,
.legacy p {
  font-size: 13px;
  line-height: 1.8;
}
.history a {
  color: #376342;
}
.history li {
  font-size: 13px;
  line-height: 1.8;
}
.skill-list {
  margin-top: 20px;
}
.skill-list > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 0;
  border-top: 1px solid #e7ecdf;
  font-size: 12px;
}
.skill-list b {
  font-weight: 500;
  color: #51713d;
}
.file-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  border: 1px solid #dce3d4;
  border-radius: 12px;
  padding: 12px;
  background: white;
}
.file-label input {
  max-width: 190px;
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  min-width: 600px;
  width: 100%;
  font-size: 12px;
}
td,
th {
  text-align: left;
  border-bottom: 1px solid #e6ebde;
  padding: 12px 9px;
}
th {
  background: #f4f6ee;
}
dialog {
  border: 1px solid #d5dfc9;
  border-radius: 22px;
  max-width: 550px;
  padding: 30px;
  color: #293e35;
}
dialog::backdrop {
  background: #23392ac0;
}
dialog p {
  line-height: 1.8;
  font-size: 14px;
}
.hint,
.card p,
.hero p {
  color: #65715c;
}
footer {
  color: #68745e;
  line-height: 1.9;
}
.section-head p {
  color: #68745e;
}
.simple-mode .section-head h2 {
  font-size: 28px;
}
.simple-mode nav button {
  font-size: 16px;
  padding: 19px 12px;
}
#content:focus {
  outline: none;
}
@media (max-width: 1000px) {
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .parent-grid {
    grid-template-columns: 1fr;
  }
  .skill-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  header {
    padding-left: 25px;
    padding-right: 25px;
  }
  .header-actions {
    gap: 7px;
  }
}
@media (max-width: 700px) {
  header {
    padding: 15px;
    align-items: flex-start;
  }
  #brand {
    font-size: 21px;
    min-width: 140px;
  }
  #brand span {
    font-size: 16px;
    margin-left: 26px;
  }
  #brand small {
    font-size: 6px;
    letter-spacing: 1px;
    margin-left: 26px;
  }
  .header-actions {
    max-width: 185px;
    gap: 6px;
  }
  .voice-controls {
    gap: 2px;
  }
  #learnerSwitch {
    font-size: 11px;
    padding: 8px 10px;
  }
  #volume {
    width: 45px;
  }
  .star,
  .coin {
    padding: 7px 9px;
    font-size: 11px;
  }
  .parent-link {
    margin: 6px 0 0;
    padding: 6px;
    font-size: 11px;
  }
  .note {
    display: none;
  }
  .profile-welcome h1 {
    font-size: 37px;
  }
  .profile-welcome > p {
    font-size: 13px;
  }
  .profile-grid {
    gap: 15px;
    margin-top: 25px;
  }
  .profile-card {
    padding: 23px;
    min-width: 145px;
  }
  .profile-card .avatar {
    width: 75px;
    height: 75px;
    font-size: 45px;
  }
  .profile-card strong {
    font-size: 26px;
  }
  .welcome-bunny {
    font-size: 65px;
  }
  .resume-banner {
    align-items: stretch;
    flex-direction: column;
  }
  .question-text {
    font-size: 26px;
  }
  .skill-cards {
    gap: 10px;
  }
  .skill-card {
    padding: 16px;
  }
  .skill-card > b {
    font-size: 18px;
  }
  .metric-grid > div {
    padding: 15px;
  }
  .metric-grid b {
    font-size: 22px;
  }
  .controls > label {
    max-width: 100%;
  }
  .file-label {
    flex-wrap: wrap;
  }
  .celebration {
    font-size: 48px;
  }
  #toast {
    font-size: 13px;
    max-width: 90%;
    width: max-content;
    text-align: center;
  }
  dialog {
    max-width: 90%;
    padding: 23px;
  }
  #saveNotice {
    font-size: 12px;
    padding: 12px;
  }
  #heroTitle {
    font-size: 30px;
  }
}
