body.is-parents-route {
  --pg-ink: #102149;
  --pg-navy: #0a2052;
  --pg-copy: #515e72;
  --pg-warm: #f8f1e7;
  --pg-soft: #f4f8fc;
  --pg-line: #dce3eb;
  --pg-focus: #2364ac;
  --pg-radius: 24px;
  --pg-space: clamp(40px, 6vw, 86px);
  color: var(--pg-ink);
  font-family: Onest, system-ui, sans-serif;
}

body.is-parents-route :is(.pg .container, .header-inner, .site-footer) {
  width: var(--playmax-content-width);
  max-width: none;
  margin-inline: auto;
}

.is-parents-route .site-header { background: #fff; border-color: var(--pg-line); }
.is-parents-route .header-inner {
  height: auto;
  min-height: 73px;
  grid-template: auto / auto minmax(0, 1fr) auto;
  gap: clamp(12px, 2.7vw, 36px);
}
.is-parents-route .header-inner > * { grid-area: auto; }
.is-parents-route .brand { width: 118px; }
.is-parents-route .brand img { height: auto; }
.is-parents-route .desktop-nav { display: flex; justify-content: center; gap: clamp(3px, 1vw, 16px); }
.is-parents-route .desktop-nav a { padding: 10px 12px; border-radius: 12px; color: var(--pg-copy); font-size: 14px; font-weight: 650; white-space: nowrap; }
.is-parents-route .desktop-nav a[aria-current="page"] { background: var(--pg-soft); color: var(--pg-ink); }
.is-parents-route .header-actions > a[data-header-cta] { min-height: 48px; padding-inline: 20px; background: var(--pg-navy); border-color: var(--pg-navy); color: #fff; box-shadow: none; font-size: 14px; white-space: nowrap; }
.is-parents-route .header-actions > a[data-header-cta]:hover { background: #213866; }
.is-parents-route :is(.menu-button, .bottom-nav, #playmax-companion, .companion-track, .companion-footer-call) { display: none; }
.is-parents-route .site-footer { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); border-color: var(--pg-line); color: var(--pg-ink); }
.is-parents-route .site-footer .footer-brand span { display: none; }
.is-parents-route .site-footer .footer-brand img { display: block; width: 118px; height: auto; }
.is-parents-route .site-footer a { color: var(--pg-ink); }
.pg-footer-contacts { display: none; }
.is-parents-route .pg-footer-contacts { display: grid; align-content: start; gap: 7px; overflow-wrap: anywhere; }

.pg { background: #fff; color: var(--pg-ink); line-height: 1.55; }
.pg :is(h1,h2,h3,p,figure,ul,ol) { margin: 0; }
.pg :is(h1,h2,h3) { color: inherit; font-family: Nunito, system-ui, sans-serif; font-weight: 800; letter-spacing: -.02em; line-height: 1.12; }
.pg h1 { font-size: clamp(40px, 4.3vw, 64px); }
.pg h2 { font-size: clamp(32px, 3.55vw, 51px); }
.pg h3 { font-size: 22px; }
.pg p { color: var(--pg-copy); }
.pg :is(button,a,input):focus-visible { outline: 3px solid var(--pg-focus); outline-offset: 3px; }
.pg :is(button,a) { touch-action: manipulation; }
.pg [hidden] { display: none; }
.pg :is(section[id], #pg-drawer-title) { scroll-margin-top: 90px; }
.pg section[tabindex="-1"]:focus, #pg-drawer-title:focus { outline: none; }
.pg a { color: inherit; }
.pg ul { padding: 0; list-style: none; }
.pg-icon { display: inline-block; width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pg .pg-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.pg-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 4.7vw, 68px); align-items: center; padding-block: 56px 58px; }
.pg .pg-kicker { margin-bottom: 10px; font-size: 14px; font-weight: 650; letter-spacing: .065em; text-transform: uppercase; }
.pg .pg-hero-intro { max-width: 52ch; margin-top: 16px; font-size: clamp(17px, 1.5vw, 22px); font-weight: 580; }
.pg-hero-ages { margin-top: 23px; }
.pg-hero-ages strong { display: block; margin-bottom: 8px; }
.pg .pg-pick { margin-top: 18px; min-height: 56px; padding-inline: 25px; }
.pg-photo { display: block; width: 100%; object-fit: cover; background: var(--pg-warm); }
.pg-photo-together { object-position: 50% 43%; }
.pg-photo-listen { object-position: 50% 30%; }
.pg-photo-book { object-position: 50% 43%; }
.pg .pg-hero-photo { aspect-ratio: 5 / 4; border-radius: 32px; object-position: 50% 56%; }
.pg-toc { border-bottom: 1px solid var(--pg-line); }
.pg-toc .container { display: flex; gap: 8px; padding-block: 8px 10px; }
.pg-section { padding-block: var(--pg-space); }
.pg-warm { background: var(--pg-warm); }
.pg .pg-section-intro { max-width: 62ch; margin-top: 12px; font-size: clamp(16px, 1.45vw, 20px); font-weight: 550; }
.pg-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pg-chip, .pg-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 9px 17px; border: 1px solid var(--pg-line);
  border-radius: 16px; background: #fff; color: var(--pg-ink); font: 650 15px/1.3 Onest, system-ui, sans-serif;
  text-align: center; text-decoration: none; cursor: pointer;
}
.pg-chip { border-radius: 999px; white-space: nowrap; font-size: 14px; }
.pg :is(.pg-chip,.pg-button):hover { border-color: #90a7c2; background: var(--pg-soft); }
.pg .pg-primary, .pg .pg-chip[aria-pressed="true"] { border-color: var(--pg-navy); background: var(--pg-navy); color: #fff; }
.pg .pg-primary:hover, .pg .pg-chip[aria-pressed="true"]:hover { background: #213866; }
.pg .pg-button:disabled { opacity: .55; cursor: default; }
.pg-small-chip { min-height: 37px; padding: 6px 12px; font-size: 12px; }
.pg-scroll-row { overflow-x: auto; scrollbar-width: thin; }
.pg-scroll-row :is(.pg-chip,span) { flex-shrink: 0; }

.pg [data-skill="hearing"] { --pg-skill: #fbeae7; --pg-skill-accent: #efc7c2; }
.pg [data-skill="rhythm"] { --pg-skill: #f9e8d9; --pg-skill-accent: #eed0b6; }
.pg [data-skill="memory"] { --pg-skill: #fbf2d5; --pg-skill-accent: #ebdbab; }
.pg [data-skill="attention"] { --pg-skill: #e6f3e8; --pg-skill-accent: #c8dfca; }
.pg [data-skill="fingers"] { --pg-skill: #e3f1f4; --pg-skill-accent: #c4dfe6; }
.pg [data-skill="imagination"] { --pg-skill: #eee8fa; --pg-skill-accent: #d8c8eb; }

.pg .pg-skills-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.pg-skill { padding: 18px 20px 20px; border: 1px solid var(--pg-skill-accent); border-radius: 30px; background: var(--pg-skill); color: var(--pg-ink); }
.pg-skill-icon { display: inline-grid; width: 36px; height: 36px; place-items: center; margin-bottom: 8px; border-radius: 10px; background: var(--pg-skill-accent); color: var(--pg-ink); }
body.is-parents-route #app-main .pg-skill-icon svg { width: 23px; height: 23px; }
.pg .pg-skill p { margin-top: 8px; color: var(--pg-copy); font-weight: 550; }
.pg-skill .pg-chip-row { margin-top: 13px; }

.pg-filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-block: 24px; }
.pg-filter-row, .pg-skill-filter { display: flex; gap: 8px; align-items: center; }
.pg-filter-row { min-width: 0; max-width: 100%; padding: 4px 0; }
.pg-filter-row > span { margin-right: 3px; color: var(--pg-copy); font-size: 14px; }
.pg-filter-row .pg-chip { min-height: 44px; padding-inline: 14px; }
.pg-skill-filter { justify-content: space-between; align-items: start; gap: 10px; }
.pg-random { flex: 0 0 auto; }
.pg .pg-games-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pg-game {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 9px;
  width: 100%; min-height: 195px; padding: 24px 20px 19px; border: 1px solid var(--pg-line); border-radius: 30px;
  background: #fff; color: var(--pg-ink); text-align: left; cursor: pointer;
}
.pg-game::before { content: ""; position: absolute; inset: 0 0 auto; height: 9px; background: var(--pg-skill-accent); }
.pg-game:hover { background: #fbfcfe; border-color: #8da5c0; }
.pg-game-title { display: flex; gap: 7px; align-items: start; justify-content: space-between; width: 100%; }
.pg-game-title strong { font: 800 clamp(19px, 1.7vw, 23px)/1.16 Nunito, system-ui, sans-serif; }
.pg-mode { flex: 0 0 auto; padding: 5px 9px; border-radius: 8px; background: var(--pg-navy); color: #fff; font-size: 12px; }
.pg-meta, .pg-game-skills { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pg-meta > span, .pg-game-skills > span { display: inline-flex; align-items: center; gap: 3px; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 650; }
.pg-meta > span { background: var(--pg-warm); }
.pg-meta .pg-icon { width: 14px; height: 14px; }
.pg-game-skills > span { padding: 6px 11px; border: 1px solid var(--pg-line); background: var(--pg-soft); }
.pg-game-skills > span[data-skill] { border-color: transparent; background: var(--pg-skill); color: var(--pg-ink); }
.pg-game-summary { color: var(--pg-copy); font-weight: 550; }
.pg-more { margin-top: 18px; text-align: center; }
.pg-more:has(> [hidden]) { display: none; }
.pg .pg-empty { grid-column: 1 / -1; padding: 22px 17px; border-radius: 20px; background: var(--pg-soft); text-align: center; }

.pg-age-options { margin-block: 23px 17px; }
.pg-age-grid, .pg .pg-tips-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pg-age-card, .pg-tips-grid li { padding: 17px 19px; border: 1px solid var(--pg-line); border-radius: 20px; background: #fff; }
.pg-age-card h3, .pg-drawer-content h3 { margin-bottom: 8px; color: var(--pg-copy); font: 700 13px/1.4 Onest, system-ui, sans-serif; letter-spacing: .05em; text-transform: uppercase; }
.pg .pg-age-card p { color: inherit; font-weight: 570; }
.pg-age-note { display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; margin-top: 12px; padding: 14px 17px; border-radius: 18px; background: #fff; }
.pg .pg-age-note p { display: flex; align-items: center; gap: 12px; color: inherit; font-weight: 570; }
.pg-age-note .pg-chip-row { flex-shrink: 0; }
.pg-age-note-dark { background: var(--pg-navy); color: #fff; }
.pg-age-note-dark .pg-button { color: var(--pg-ink); }
.pg .pg-tips-grid { margin-top: 25px; }
.pg .pg-tips-grid h3 { font-size: 18px; }
.pg .pg-tips-grid p { margin-top: 5px; }

.pg-articles-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 23px; }
.pg-article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pg .pg-article-card { overflow: hidden; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--pg-line); border-radius: 28px; background: #fff; color: var(--pg-ink); text-decoration: none; }
.pg .pg-article-card:hover { border-color: #8da5c0; }
.pg-article-card .pg-photo { aspect-ratio: 16 / 9; }
.pg-article-card > div { padding: 15px 19px 18px; }
.pg .pg-article-card h3 { font-size: 20px; }
.pg .pg-article-card p { margin: 8px 0 4px; }
.pg-article-card span { color: var(--pg-copy); font-size: 13px; }
.pg .pg-list-title { margin-block: 17px 25px; }
.pg-finale { background: var(--pg-navy); color: #fff; text-align: center; }
.pg .pg-finale p { margin-top: 14px; color: #e1e9fb; font-size: 18px; }
.pg-finale .pg-chip-row { justify-content: center; margin-block: 24px 29px; }
.pg-finale .pg-button { min-height: 56px; padding-inline: 22px; color: var(--pg-ink); }
.pg-finale .pg-inverse { border-color: #7e90b5; background: transparent; color: #fff; }
.pg-finale .pg-inverse:hover { background: #213866; }
.pg .pg-finale-product { color: #e1e9fb; text-decoration: underline; text-underline-offset: 4px; }

.pg-reading { padding-block: 44px 72px; }
.pg-reading-inner { max-width: 720px; margin-inline: auto; }
.pg-reading-inner h1 { margin-top: 15px; font-size: clamp(35px, 4.1vw, 58px); }
.pg-reading-inner .pg-reading-time { margin-block: 8px 16px; font-size: 14px; }
.pg-reading-photo { aspect-ratio: 16 / 9; margin-bottom: 17px; border-radius: var(--pg-radius); }
.pg-reading-inner :is(.pg-reading-answer, .pg-reading-lead, section > p, .pg-reading-exercise ol) {
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.65;
}
.pg-reading-inner .pg-reading-answer {
  margin-bottom: 16px;
  padding: clamp(14px, 2.4vw, 20px);
  border: 1px solid var(--pg-line);
  border-radius: 16px;
  background: var(--pg-soft);
  color: var(--pg-ink);
}
.pg-reading-inner .pg-reading-lead { margin-bottom: 18px; }
.pg-reading-inner > section { margin-top: 27px; }
.pg-reading-inner section > p + p { margin-top: 10px; }
.pg-reading-inner :is(section h2, .pg-related-title, .pg-try-game h2) { margin-bottom: 7px; font-size: 26px; }
.pg-reading-exercise {
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid var(--pg-line);
  border-radius: var(--pg-radius);
  background: var(--pg-soft);
}
.pg-reading-exercise ol { padding-inline-start: 1.45em; color: var(--pg-copy); }
.pg-reading-exercise li + li { margin-top: 8px; }
.pg-reading-exercise .pg-button { margin-top: 15px; }
.pg-reading-inner .pg-reading-source { margin-top: 16px; font-size: 14px; }
.pg-reading-source a { text-decoration: underline; text-underline-offset: 3px; }
.pg-try-game { display: flex; justify-content: space-between; align-items: end; gap: 13px; margin-block: 28px; padding: 20px; border-radius: var(--pg-radius); background: var(--pg-warm); }
.pg .pg-try-game p:not(.pg-kicker) { margin-top: 8px; }
.pg-try-game button { flex-shrink: 0; }
.pg-reading .pg-article-card h3 { font-size: 16px; }
.pg-reading .pg-article-card p, .pg-reading .pg-article-card span { display: none; }

body:has(.pg-drawer[open]) { overflow: hidden; }
.pg-drawer {
  position: fixed; inset: 0 0 0 auto; width: min(100%, 480px); height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; border-top: 9px solid var(--pg-skill-accent, var(--pg-navy)); border-radius: 0;
  background: #fff; color: var(--pg-ink); overflow: hidden;
}
.pg-drawer[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.pg-drawer::backdrop { background: rgb(16 33 73 / 46%); }
.pg-drawer-close { position: absolute; top: 12px; right: 14px; z-index: 1; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--pg-line); border-radius: 50%; background: #fff; color: var(--pg-ink); cursor: pointer; }
.pg-drawer-handle { display: none; }
.pg-drawer-content { min-height: 0; padding: 20px 22px 24px; overflow-y: auto; overscroll-behavior: contain; }
.pg-drawer-content > .pg-meta { padding-right: 51px; min-height: 26px; }
.pg-drawer-content h2 { margin-block: 12px 8px; font-size: clamp(26px, 3vw, 32px); }
.pg-drawer-photo { aspect-ratio: 16 / 9; margin-block: 16px; border-radius: 18px; }
.pg-drawer-content > h3 { margin-top: 17px; }
.pg .pg-drawer-content p { color: var(--pg-ink); }
.pg-mode-hint { margin-block: 10px; padding: 11px 13px; border: 1px solid var(--pg-line); border-radius: 12px; background: var(--pg-soft); }
.pg-mode-hint a { display: inline-flex; align-items: center; min-height: 32px; color: #244f88; text-decoration: underline; text-underline-offset: 3px; }
.pg-game-steps { display: grid; gap: 8px; padding: 0; list-style: none; counter-reset: pg-steps; }
.pg-game-steps > li { display: grid; grid-template-columns: 29px minmax(0, 1fr); align-items: start; gap: 9px; counter-increment: pg-steps; }
.pg-game-steps > li::before { content: counter(pg-steps); display: grid; width: 29px; height: 29px; place-items: center; border-radius: 50%; background: var(--pg-navy); color: #fff; font-size: 13px; font-weight: 650; }
.pg-game-variants { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.pg-game-variants > div { padding: 10px 12px; border-radius: 13px; background: #e7f6ec; }
.pg-game-variants > div + div { background: #edf2fc; }
.pg-game-variants p { margin-top: 3px; }
.pg-drawer-footer { display: grid; gap: 8px; padding: 11px 14px max(11px, env(safe-area-inset-bottom)); border-top: 1px solid var(--pg-line); background: #fff; }
.pg-drawer-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pg-drawer-actions:has(> [hidden]) { grid-template-columns: minmax(0, 1fr); }
.pg-drawer-actions .pg-button { padding-inline: 8px; font-size: 13px; }
.pg .pg-copy-status { color: #205d3d; font-size: 13px; }
.pg-manual-copy { display: grid; gap: 5px; font-size: 13px; }
.pg-manual-copy input { width: 100%; padding: 8px; border: 1px solid var(--pg-line); border-radius: 6px; color: var(--pg-ink); }

@media (max-width: 1100px) {
  .pg-skill-filter { flex-wrap: wrap; }
  .pg-skill-filter .pg-filter-row { flex: 1 0 100%; }
  .pg-skill-filter .pg-random { margin-left: auto; }
}

@media (max-width: 790px) {
  .is-parents-route .header-inner { grid-template-columns: auto minmax(0, 1fr); padding-block: 10px 6px; gap: 6px 12px; }
  .is-parents-route .header-actions { justify-content: end; }
  .is-parents-route .desktop-nav { grid-area: 2 / 1 / 3 / -1; justify-content: flex-start; gap: 5px; overflow-x: auto; scrollbar-width: thin; }
  .is-parents-route .desktop-nav a { min-height: 44px; display: flex; align-items: center; }
  .pg section[id] { scroll-margin-top: 125px; }
  .pg-hero { grid-template-columns: minmax(0, 1fr); padding-block: 28px 32px; }
  .pg .pg-hero-photo { display: none; }
  .pg .pg-skills-grid, .pg .pg-games-grid, .pg-age-grid, .pg .pg-tips-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-age-note { flex-wrap: wrap; }
}

@media (max-width: 600px) {
  .is-parents-route .header-inner { padding-block: 10px; row-gap: 12px; }
  .is-parents-route .brand { width: 111px; }
  .is-parents-route .header-actions > a[data-header-cta] { padding-inline: 15px; font-size: 13px; }
  .is-parents-route .desktop-nav a { padding-inline: 11px; font-size: 13px; }
  .pg h1 { font-size: clamp(30px, 8.7vw, 37px); }
  .pg h2 { font-size: clamp(27px, 7.65vw, 33px); }
  .pg .pg-section-intro { margin-top: 12px; }
  .pg-toc .container { padding-block: 8px 10px; }
  .pg .pg-skills-grid, .pg .pg-article-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(82%, 290px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding: 4px; }
  .pg :is(.pg-skill, .pg-article-card) { scroll-snap-align: start; }
  .pg-skill .pg-chip-row { align-items: flex-start; }
  .pg-skill { padding-inline: 16px; }
  .pg .pg-games-grid, .pg-age-grid, .pg .pg-tips-grid { grid-template-columns: minmax(0, 1fr); }
  .pg-game { min-height: 188px; }
  .pg-filters { gap: 6px; }
  .pg-skill-filter .pg-random { width: 100%; }
  .pg .pg-article-grid .pg-article-card { height: 100%; }
  .pg :is(.pg-article-card .pg-photo, .pg-reading-photo, .pg-drawer-photo) { aspect-ratio: 3 / 4; }
  .pg-photo-together { object-position: center 18%; }
  .pg-photo-listen { object-position: center top; }
  .pg-articles-head { flex-direction: column; align-items: flex-start; }
  .pg-age-note { padding: 16px; }
  .pg-age-options .pg-chip { padding-inline: 13px; }
  .pg-finale h2 { max-width: 18ch; margin-inline: auto; }
  .pg-finale .pg-button { padding-inline: 15px; font-size: 14px; }
  .pg-reading { padding-block: 26px 40px; }
  .pg-reading-inner h1 { font-size: clamp(30px, 8.7vw, 37px); }
  .pg-try-game { flex-wrap: wrap; }
  .pg-drawer { inset: auto 0 0; width: 100%; height: calc(100dvh - 14px); border-top-width: 0; border-radius: 25px 25px 0 0; }
  .pg-drawer-handle { position: absolute; z-index: 1; display: block; top: 6px; left: 50%; width: 38px; height: 4px; transform: translateX(-50%); border-radius: 4px; background: var(--pg-line); }
  .pg-drawer-content { padding: 22px 16px 21px; }
  .pg-drawer-footer { padding-inline: 12px; }
  .pg-drawer-close { top: 12px; right: 12px; }
  .is-parents-route .site-footer { grid-template-columns: minmax(0, 1fr); }
  .is-parents-route .site-footer nav { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .pg :is(.pg-scroll-row,.pg-skills-grid,.pg-article-grid) { scroll-behavior: auto; }
}

/* Tasks and one clear next step, using the existing PLAYMAX palette. */
.pg-game-challenge { display: block; border-top: 1px solid var(--pg-line); padding-top: 9px; color: var(--pg-copy); font-size: 14px; line-height: 1.5; }
.pg-game-challenge b { color: var(--pg-ink); }
.pg-game-levels { margin-block: 14px 10px; }
.pg-drawer-task { font-weight: 700; color: var(--pg-ink); }
.pg-level-note { color: var(--pg-copy); font-size: 14px; margin-block: 6px 14px; }
