/* Brotemar 0.2: a start screen, visual controls, and a small school notebook.
   No fonts, analytics or assets are fetched from external services at runtime. */
:root {
  --font-child: 'Luma Lexend', 'Lexend', Verdana, Tahoma, Arial, sans-serif;
  --control-size: 76px;
}
body[data-child-font="atkinson"] { --font-child: 'Luma Atkinson', 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Verdana, Arial, sans-serif; }
body[data-child-font="verdana"] { --font-child: Verdana, Tahoma, Arial, sans-serif; }
body[data-child-font="arial"] { --font-child: Arial, Helvetica, sans-serif; }
.shell { display: block; min-height: 100dvh; }
.workspace { max-width: 1380px; width: 100%; margin: 0 auto; }
.main { padding: 28px 42px 36px; }
.topbar { height: 90px; padding: 0 42px; }
.home-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.home-brand strong { display: block; font-size: 21px; line-height: 1.2; letter-spacing: 0; }
.home-brand small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.home-logo { flex-shrink: 0; display: grid; place-items: center; width: 54px; height: 54px; border: 0; padding: 0; background: transparent; border-radius: 16px; }
.home-logo img { width: 52px; height: 52px; border-radius: 16px; }
.top-tools { gap: 12px; }
.header-action { width: 54px; height: 54px; border-radius: 18px; border: 2px solid var(--control-border, #78b1bb); background: var(--control-bg, #cde8ed); box-shadow: 0 3px 0 var(--control-shadow, #719aa4); }
.header-action .icon { width: 31px; height: 31px; }
.adult-entry { border-radius: 16px; width: 48px; height: 48px; background: #ecebdf; }
.app-footer { display: flex; justify-content: space-between; gap: 14px; padding: 18px 42px 24px; color: var(--muted); font: 12px/1.5 var(--font); border-top: 1px solid var(--line); }
.toast, .game-mode .toast { bottom: 20px; }
/* Child reading: generous spacing, no condensed headings or all-caps labels.
   Adults (including their access dialog) intentionally retain the old font. */
.child-ui, .child-dialog { font-family: var(--font-child); letter-spacing: .015em; line-height: 1.6; }
.child-ui h1, .child-ui h2, .child-ui h3, .child-dialog h2 { letter-spacing: 0; line-height: 1.3; }
.child-ui h1 { font-size: clamp(27px, 2.8vw, 37px); font-weight: 700; }
.child-ui .eyebrow, .child-ui .micro-label, .child-ui .board-label, .child-ui .map-sign { text-transform: none; letter-spacing: .025em; }
.child-ui .eyebrow { font-size: 13px; font-weight: 600; }
.child-ui .micro-label { font-size: 12px; }
.child-ui .subtitle { font-size: 16px; line-height: 1.65; }
.child-ui .instruction-copy h2 { font-size: clamp(21px, 2vw, 27px); font-weight: 600; line-height: 1.5; }
.child-ui .instruction-copy p { font-size: 15px; line-height: 1.6; }
.child-ui .instruction-card { padding: 20px 24px; gap: 20px; }
.child-ui .board-label { font-size: 14px; line-height: 1.5; }
.child-ui .board-tip, .child-ui .basket-empty { font-size: 14px; line-height: 1.65; }
.child-ui .fruit-tray strong { font-size: 16px; }
.child-ui .answer-label, .child-ui .game-subline { font-size: 14px; }
.child-ui .choice { font-family: var(--font-child); font-size: 29px; font-weight: 600; min-width: 72px; min-height: 66px; }
.child-ui .game-top h1 { font-size: clamp(23px,2.3vw,31px); }
.child-ui .card-content h3 { font-size: 19px; }
.child-ui .card-content p { font-size: 14px; line-height: 1.6; }
.child-ui .card-footer { font-size: 12px; }
.child-ui .map-caption strong { font-size: 14px; }
.child-ui .map-caption span { font-size: 12px; }
.child-ui .map-sign { font-size: 12px; }
.child-ui .speech-note { font-size: 12px; line-height: 1.55; }
.child-ui .section-heading p { font-size: 14px; }
.child-ui .home-bottom strong { font-size: 16px; }
.child-ui .home-bottom p { font-size: 14px; }
.child-ui .collectible p { font-size: 14px; }
.child-ui .collectible h3 { font-size: 18px; }
.child-ui .status-footer { font-size: 12px; }
.adult-ui, .adult-dialog { font-family: var(--font); letter-spacing: normal; }
/* Every action keeps a name for assistive technology. The visible UI is pictographic. */
.tone-mint { --control-bg: #459a7e; --control-ink: #fff; --control-border: #34735e; --control-shadow: #2c6653; }
.tone-sun { --control-bg: #f8d36c; --control-ink: #735122; --control-border: #d0a546; --control-shadow: #bd953e; }
.tone-lilac { --control-bg: #c7b4ee; --control-ink: #564070; --control-border: #9c82c6; --control-shadow: #8c75af; }
.tone-sky { --control-bg: #a7dce5; --control-ink: #2a6475; --control-border: #71b4c5; --control-shadow: #6195a4; }
.tone-peach { --control-bg: #f4c0a5; --control-ink: #805640; --control-border: #dba589; --control-shadow: #bd8b70; }
.btn.kid-action, .icon-btn.kid-action {
  display: inline-flex; flex-direction: column; justify-content: center; align-items: center;
  width: var(--control-size); height: var(--control-size); min-width: var(--control-size); min-height: var(--control-size);
  padding: 12px; flex-shrink: 0; gap: 0; border: 2px solid var(--control-border); border-radius: 25px;
  color: var(--control-ink); background: var(--control-bg); box-shadow: 0 5px 0 var(--control-shadow), 0 8px 15px #294b4310;
  position: relative; overflow: visible;
}
.btn.kid-action:hover:not(:disabled), .icon-btn.kid-action:hover:not(:disabled) { background: var(--control-bg); box-shadow: 0 5px 0 var(--control-shadow),0 10px 16px #294b4320; transform: translateY(-2px); }
.btn.kid-action:active:not(:disabled), .icon-btn.kid-action:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 2px 0 var(--control-shadow); }
.btn.kid-action > .icon, .icon-btn.kid-action > .icon { width: 46px; height: 46px; }
.btn.kid-action:disabled { opacity: .42; box-shadow: 0 3px 0 var(--control-shadow); }
.kid-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.show-button-labels .btn.kid-action { width: auto; height: auto; min-width: 105px; min-height: 94px; gap: 5px; padding: 12px 14px; }
.show-button-labels .kid-label { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal; max-width: 130px; font: 600 13px/1.4 var(--font-child); }
.welcome { display: flex; align-items: center; gap: 24px; }
.welcome > div { min-width: 0; flex: 1; }
.welcome > .btn.kid-action { --control-size: 96px; border-radius: 32px; margin: 0; }
.welcome > .btn.kid-action > .icon { width: 55px; height: 55px; }
.island-svg { max-height: 500px; }
.map-marker { width: 64px; height: 64px; }
.map-marker .icon { width: 39px; height: 39px; }
.map-marker span { top: 66px; font-family: var(--font-child); font-size: 12px; font-weight: 600; }
.game-top { align-items: center; }
.game-top > .btn.kid-action { --control-size: 68px; margin-left: 8px; border-radius: 23px; }
.game-top > .btn.kid-action > .icon { width: 38px; height: 38px; }
.instruction-card .icon-btn.kid-action { --control-size: 64px; border-radius: 22px; align-self: center; }
.instruction-card .icon-btn.kid-action > .icon { width: 35px; height: 35px; }
.answer-area { margin-top: 18px; align-items: center; }
.answer-actions { margin: 0; }
.answer-actions .btn.kid-action { --control-size: 86px; }
.help-actions { justify-content: center; gap: 24px; padding: 16px 0 10px; }
.help-actions .btn.kid-action { --control-size: 66px; border-radius: 22px; padding: 10px; }
.help-actions .btn.kid-action > .icon { width: 40px; height: 40px; }
.feedback-panel .btn.kid-action { --control-size: 80px; margin: 0 0 0 auto; }
.feedback-panel > div { min-width: 0; }
.finish-actions { gap: 24px; margin-top: 25px; }
.finish-actions .btn.kid-action { --control-size: 84px; }
.home-bottom > .copy { flex: 1; }
.home-bottom > .btn.kid-action { --control-size: 66px; margin: 0; }
.nest-return { display: inline-grid; place-items: center; width: 48px; min-height: 48px; border: 1px solid #c7a985; border-radius: 16px; background: #f5e4c7; color: #76573f; margin-top: 10px; padding: 9px; }
.nest-return .icon { width: 27px; height: 27px; }
.nest-label { font-size: 14px; }
.child-ui .nest-placeholder { font-size: 12px; line-height: 1.6; }
/* Secondary representation, not a second challenge. It never counts as a hint. */
.school-card { display: grid; grid-template-columns: 36px minmax(0,1fr) auto; align-items: center; gap: 16px; margin: -3px 0 18px; padding: 16px 22px; background: #fffcf3; border: 1px solid #d9daca; border-left: 5px solid #d8b585; border-radius: 16px; }
.school-symbol .icon { width: 36px; height: 40px; }
.school-copy { min-width: 0; }
.school-copy h3 { font-size: 13px; color: #67766a; margin-bottom: 4px; font-weight: 600; }
.school-copy p { font-size: 16px; line-height: 1.6; color: #42584d; text-align: left; max-width: 66ch; }
.school-expression { font-size: 25px; font-weight: 600; color: #365c52; padding: 10px 15px; background: #f2f2e5; border: 1px solid #e3e4d5; border-radius: 11px; text-align: center; letter-spacing: .02em; overflow-wrap: anywhere; }
.school-expression.solved { background: #e1efdc; color: #285e41; }
.child-dialog { max-width: 560px; padding: 30px; }
.child-dialog > p { font-size: 16px; line-height: 1.7; }
.child-dialog .dialog-actions { gap: 24px; justify-content: center; }
.child-dialog .dialog-actions .btn.kid-action { min-width: var(--control-size); }
.child-dialog .close-dialog { width: 46px; height: 46px; background: #f1e8df; border-color: #dbc5b4; }
.child-dialog h2 { padding-right: 26px; }
.activity-pick { min-height: 110px; gap: 18px; padding: 18px; }
.activity-pick .activity-pick-art { width: 80px; height: 80px; border-radius: 24px; background: #f4debc; display: grid; place-items: center; flex-shrink: 0; position: relative; }
.activity-pick .activity-pick-art > .icon { width: 53px; height: 53px; }
.activity-pick-art b { position: absolute; bottom: -1px; right: -5px; color: #fff; background: #3c7e62; border-radius: 50%; width: 31px; height: 31px; font: 700 25px/30px Arial,sans-serif; text-align: center; }
.activity-pick strong { font-size: 18px; }
.activity-pick small { font-size: 14px; line-height: 1.5; }
.font-preview { margin: 12px 0; background: #f9f7ed; border: 1px solid var(--line); border-radius: 15px; padding: 18px; }
.font-preview > span { font: 12px/1.5 var(--font); color: var(--muted); }
.font-preview p { font: 18px/1.7 var(--font-child); letter-spacing: .015em; margin-top: 8px; }
.font-preview .font-sample { font-size: 23px; }
.large-text .child-ui .instruction-copy h2 { font-size: 29px; }
.large-text .school-copy p { font-size: 19px; }
.large-text .school-expression { font-size: 29px; }
.large-text .child-ui .board-tip { font-size: 17px; }
.high-contrast .school-card { background: #fff; border-color: #5a6d60; }
.high-contrast .school-copy p,.high-contrast .school-copy h3 { color: #1d382d; }
.high-contrast .kid-action { outline: 1px solid #20493c; outline-offset: 0; }
@media(max-width:900px) {
  .main { padding: 24px 25px 30px; }
  .topbar { padding: 0 25px; height: 83px; }
  .app-footer { padding: 17px 25px; }
  .welcome { align-items: center; }
  .child-ui .welcome h1 { font-size: 29px; }
  .welcome > .btn.kid-action { --control-size: 82px; }
  .school-card { grid-template-columns: 30px minmax(0,1fr); gap: 9px 12px; }
  .school-expression { grid-column: 2; justify-self: start; padding: 6px 14px; }
  .school-symbol { align-self: start; padding-top: 4px; }
  .school-symbol .icon { width: 30px; }
  .school-copy p { font-size: 16px; }
  .child-ui .instruction-card { padding: 17px; gap: 15px; }
  .child-ui .instruction-copy h2 { font-size: 22px; }
  .child-ui .section-heading p { font-size: 12px; }
  .adventure-grid { gap: 15px; }
  .child-ui .card-content h3 { font-size: 18px; }
}
@media(max-width:560px) {
  .topbar,.game-mode .topbar { padding: 0 16px; height: 78px; }
  .home-brand { gap: 9px; }
  .home-brand strong { font-size: 16px; }
  .home-brand small { display: none; }
  .home-logo,.home-logo img { width: 43px; height: 43px; border-radius: 13px; }
  .top-tools { gap: 9px; }
  .top-tools .header-action { width: 46px; height: 46px; border-radius: 15px; }
  .top-tools .header-action .icon { width: 28px; height: 28px; }
  .top-tools .adult-entry { width: 44px; height: 44px; }
  .top-tools .pill.gold { font-size: 14px; padding: 6px 9px; gap: 5px; }
  .main,.game-mode .main { padding: 22px 16px 26px; }
  .app-footer { padding: 15px 16px; font-size: 11px; flex-wrap: wrap; }
  .welcome { display: grid; grid-template-columns: minmax(0,1fr) 76px; gap: 14px; margin-bottom: 22px; }
  .child-ui .welcome h1 { font-size: 25px; line-height: 1.35; margin-bottom: 9px; }
  .child-ui .welcome .subtitle { font-size: 14px; }
  .welcome > .btn.kid-action { --control-size: 76px; width: 76px; height: 76px; margin: 0; min-height: 76px; border-radius: 26px; }
  .welcome > .btn.kid-action > .icon { width: 43px; height: 43px; }
  .child-ui .eyebrow { font-size: 12px; }
  .child-ui .welcome .eyebrow { font-size: 11px; }
  .island-svg { width: 156%; max-height: none; }
  .map-marker { width: 56px; height: 56px; }
  .map-marker .icon { width: 34px; height: 34px; }
  .map-marker span { top: 58px; font-size: 11px; }
  .child-ui .map-caption strong { font-size: 12px; }
  .child-ui .map-caption span { font-size: 11px; }
  .map-caption { max-width: calc(100% - 24px); }
  .child-ui .speech-note { font-size: 11px; max-width: 148px; }
  .map-buddy .luma-mascot { width: 58px; }
  .child-ui .section-heading h2 { font-size: 21px; }
  .section-heading { display: block; }
  .child-ui .section-heading p { font-size: 13px; max-width: none; text-align: left; margin-top: 5px; }
  .adventure-card { grid-template-columns: 90px minmax(0,1fr); }
  .child-ui .card-content h3 { font-size: 17px; }
  .child-ui .card-content p { font-size: 13px; }
  .child-ui .micro-label { font-size: 11px; }
  .child-ui .card-footer { font-size: 11px; }
  .home-bottom { display: grid; grid-template-columns: minmax(0,1fr) 66px; align-items: center; gap: 12px; }
  .home-bottom > .icon { display: none; }
  .home-bottom > .copy { min-width: 0; }
  .home-bottom > .btn.kid-action { width: 66px; margin: 0; }
  .child-ui .home-bottom strong { font-size: 14px; }
  .child-ui .home-bottom p { font-size: 13px; }
  .child-ui .game-top h1 { font-size: 23px; max-width: none; }
  .game-top { display: grid; grid-template-columns: minmax(0,1fr) 64px; align-items: center; gap: 10px; }
  .game-top > div:first-child { min-width: 0; }
  .game-top > .step-dots { grid-column: 1; grid-row: 2; justify-content: flex-start; }
  .game-top > .btn.kid-action { --control-size: 64px; grid-row: 1 / 3; grid-column: 2; width: 64px; height: 64px; margin: 0; padding: 12px; }
  .child-ui .game-subline { font-size: 12px; }
  .child-ui .instruction-card { display: grid; grid-template-columns: minmax(0,1fr) 54px; padding: 15px; gap: 10px; align-items: start; }
  .instruction-card > .luma-mascot { display: none; }
  .child-ui .instruction-copy h2 { font-size: 21px; line-height: 1.55; }
  .child-ui .instruction-copy p { font-size: 14px; }
  .instruction-card .icon-btn.kid-action { --control-size: 54px; margin: 3px 0 0; padding: 9px; border-radius: 19px; align-self: start; }
  .instruction-card .icon-btn.kid-action > .icon { width: 31px; height: 31px; }
  .school-card { padding: 13px 14px; gap: 7px 10px; border-left-width: 4px; grid-template-columns: 24px minmax(0,1fr); }
  .school-symbol .icon { width: 24px; height: 29px; }
  .school-copy h3 { font-size: 12px; }
  .school-copy p { font-size: 16px; line-height: 1.55; }
  .school-expression { font-size: 22px; padding: 6px 12px; max-width: 100%; }
  .child-ui .board-label { font-size: 13px; }
  .child-ui .board-tip { font-size: 13px; line-height: 1.6; }
  .child-ui .fruit-tray strong { font-size: 14px; }
  .child-ui .basket-empty { font-size: 12px; }
  .basket-label { font-size: 12px; }
  .answer-area { padding: 16px 12px; display: flex; align-items: end; gap: 12px; }
  .answer-area > div:first-child { flex: 1; min-width: 0; }
  .child-ui .answer-label { font-size: 13px; line-height: 1.6; text-align: left; }
  .answer-area .choices { justify-content: flex-start; gap: 7px; }
  .child-ui .choice { width: 54px; min-width: 48px; min-height: 60px; font-size: 26px; padding: 8px 3px; }
  .answer-actions { margin: 0 0 5px; flex: 0 0 auto; }
  .answer-actions .btn.kid-action { --control-size: 66px; width: 66px; border-radius: 22px; }
  .answer-actions .btn.kid-action > .icon { width: 39px; height: 39px; }
  .help-actions { gap: 22px; padding: 17px 0 8px; }
  .help-actions .btn.kid-action { padding: 9px; }
  .feedback-panel { display: grid; grid-template-columns: minmax(0,1fr) 70px; }
  .feedback-panel > .icon { display: none; }
  .feedback-panel .btn.kid-action { --control-size: 70px; width: 70px; margin: 0; }
  .feedback-panel h3 { font-size: 18px; }
  .feedback-panel p { font-size: 14px; }
  .child-ui .nest-label { font-size: 13px; }
  .child-ui .nest-placeholder { font-size: 11px; }
  .bridge-hop { font-size: 13px; }
  .child-dialog { padding: 26px 19px; }
  .child-dialog > p { font-size: 15px; }
  .child-dialog .dialog-actions .btn.kid-action { min-width: var(--control-size); }
  .child-dialog .close-dialog { width: 44px; height: 44px; right: 10px; top: 10px; }
  .child-dialog h2 { padding-right: 33px; }
  .activity-pick { padding: 12px; gap: 12px; }
  .activity-pick .activity-pick-art { width: 66px; height: 66px; }
  .activity-pick strong { font-size: 16px; }
  .activity-pick small { font-size: 13px; }
  .child-ui .collectible h3 { font-size: 15px; }
  .child-ui .collectible p { font-size: 12px; }
  .large-text .child-ui .instruction-copy h2 { font-size: 24px; }
  .large-text .school-copy p { font-size: 18px; }
  .large-text .school-expression { font-size: 26px; }
  .show-button-labels .welcome { grid-template-columns: minmax(0,1fr) 105px; }
  .show-button-labels .welcome > .btn.kid-action { width: 105px; height: auto; }
  .show-button-labels .help-actions { gap: 9px; flex-wrap: wrap; }
  .show-button-labels .game-top { grid-template-columns: minmax(0,1fr) 105px; }
  .show-button-labels .game-top > .btn.kid-action { width: 105px; height: auto; }
}
@media(max-width:380px) {
  .home-brand strong { font-size: 14px; }
  .home-brand { gap: 7px; }
  .top-tools { gap: 7px; }
  .topbar { padding: 0 12px; }
  .answer-area { flex-wrap: wrap; }
  .answer-area .choice { min-width: 50px; width: 50px; }
  .school-expression { font-size: 20px; }
}

/* Visible labels are an optional adult setting, including compact screens. */
.show-button-labels .game-top > .btn.kid-action > .kid-label { display: block; }

/* Fase 03: estados y contenido adulto sin cambiar la experiencia infantil. */
.audio-pending-note {margin: -4px 0 12px; padding: 10px 16px; font-size: .82rem; color:#526560; background:#f4f7f0; border-radius:14px;}
.pack-list {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px;margin:18px 0;}
.content-pack {border:1px solid #d6e1dc;padding:18px;border-radius:18px;background:#fafcf9;min-width:0;}
.content-pack h3 {margin:0 0 10px;overflow-wrap:anywhere;}
