/* ============================================================
   EDULO site.css — Bubble-Bash redesign
   ============================================================ */

/* --- Fonts ------------------------------------------------- */
@font-face { font-family: 'Nunito'; font-weight: 400; font-display: swap; src: url('/fonts/nunito-latin-400.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 400; font-display: swap; src: url('/fonts/nunito-latin-ext-400.woff2') format('woff2'); unicode-range: U+0100-02BA, U+1E00-1EFF; }
@font-face { font-family: 'Nunito'; font-weight: 600; font-display: swap; src: url('/fonts/nunito-latin-600.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 600; font-display: swap; src: url('/fonts/nunito-latin-ext-600.woff2') format('woff2'); unicode-range: U+0100-02BA, U+1E00-1EFF; }
@font-face { font-family: 'Nunito'; font-weight: 700; font-display: swap; src: url('/fonts/nunito-latin-700.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 700; font-display: swap; src: url('/fonts/nunito-latin-ext-700.woff2') format('woff2'); unicode-range: U+0100-02BA, U+1E00-1EFF; }
@font-face { font-family: 'Nunito'; font-weight: 800; font-display: swap; src: url('/fonts/nunito-latin-800.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 800; font-display: swap; src: url('/fonts/nunito-latin-ext-800.woff2') format('woff2'); unicode-range: U+0100-02BA, U+1E00-1EFF; }
@font-face { font-family: 'Baloo 2'; font-weight: 700; font-display: swap; src: url('/fonts/baloo2-latin-700.woff2') format('woff2'); }
@font-face { font-family: 'Baloo 2'; font-weight: 700; font-display: swap; src: url('/fonts/baloo2-latin-ext-700.woff2') format('woff2'); unicode-range: U+0100-02BA, U+1E00-1EFF; }
@font-face { font-family: 'Baloo 2'; font-weight: 800; font-display: swap; src: url('/fonts/baloo2-latin-800.woff2') format('woff2'); }
@font-face { font-family: 'Baloo 2'; font-weight: 800; font-display: swap; src: url('/fonts/baloo2-latin-ext-800.woff2') format('woff2'); unicode-range: U+0100-02BA, U+1E00-1EFF; }

/* --- Reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; scroll-behavior: smooth; }
body.edulo {
    margin: 0; min-height: 100dvh; display: flex; flex-direction: column;
    background: var(--white); color: var(--ink);
    font: 600 var(--text)/1.6 var(--font-text);
    overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-title); font-weight: 800; line-height: 1.1; margin: 0 0 var(--s3); color: var(--navy); }
:where(.edulo) h1 { font-size: var(--title-1); }
:where(.edulo) h2 { font-size: var(--title-2); margin-top: 0; }
:where(.edulo) h3 { font-size: var(--title-3); font-weight: 700; }
p { margin: 0 0 var(--s4); max-width: 60ch; }
a { color: var(--navy); text-decoration: none; }
img, svg { max-width: 100%; }
img { height: auto; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

/* --- Sprite helpers ---------------------------------------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.s-lulu { fill: var(--lulu); }
.s-lulu-deep { fill: var(--lulu-deep); }
.s-blush { fill: var(--coral-pale); }
.s-belly { fill: var(--sun-pale); }
.s-cheek { fill: var(--pink); opacity: .35; }
.s-ink { fill: var(--navy); }
.s-white { fill: var(--white); }
.s-mouth { fill: var(--pink-text); }
.s-tongue { fill: var(--pink); }
.s-paw { fill: var(--sun-pale); }
.s-line { fill: none; stroke: var(--navy); stroke-linecap: round; }
.s-line-white { fill: none; stroke: var(--white); stroke-linecap: round; stroke-linejoin: round; }
.s-yellow { fill: var(--amber); }
.s-coral { fill: var(--pink); }
.s-mint { fill: var(--teal); }
.s-sky { fill: var(--blue); }
.s-orange { fill: var(--amber); }
.s-salmon { fill: var(--amber); }
.s-violet { fill: var(--blue-deep); }
.s-sand { fill: var(--sun-pale); }
.s-lime { fill: var(--teal); }
.s-sun { fill: var(--amber); }
.s-sun-color { color: var(--amber); }
.s-big { font-size: 56px; }
.s-sky-fill { fill: var(--blue); }
.s-blink { transform-box: fill-box; transform-origin: center; animation: blink 5.2s infinite; }
.p-lesson .s-blink { animation: none; }
.s-cat-text { font: 700 24px var(--font-title); fill: var(--navy); }
.art { display: block; width: 100%; height: 100%; }

/* --- Utilities --------------------------------------------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: absolute; left: var(--s4); top: -80px; z-index: 30; padding: var(--s3) var(--s4); border-radius: var(--radius-s); background: var(--white); color: var(--navy); }
.skip:focus { top: var(--s3); }
.container { width: min(var(--width), 100%); margin-inline: auto; padding-inline: var(--gutter); }
.container--text { width: min(var(--width-text), 100%); }
.icon { display: inline-block; width: 1.25em; height: 1.25em; vertical-align: -.25em; flex: none; }
.plain { list-style: none; margin: 0; padding: 0; }
.center { text-align: center; margin-inline: auto; }
.muted { color: var(--muted); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin-bottom: var(--s4); }
.row--center { justify-content: center; }
.stack > * + * { margin-top: var(--s5); }
.stack-s > * + * { margin-top: var(--s3); }
.grid { display: grid; gap: var(--s5); }
.grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.trap { position: absolute; left: -9999px; }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s3); margin-bottom: var(--s4); }
.page-head h1 { margin: 0; }
.form-box { max-width: 480px; }
.doc { line-height: 1.6; }
.doc h2 { font-size: var(--title-3); margin-top: var(--s5); margin-bottom: var(--s2); }
.split-links { display: flex; justify-content: space-between; flex-wrap: wrap; margin: var(--s3) 0 0; }

/* --- Section ----------------------------------------------- */
.section {
    position: relative;
    padding-block: clamp(72px, 9vw, 112px);
    overflow: hidden;
}
.section > .container { position: relative; z-index: 1; }
.section-title { max-width: 26ch; }
.section-title--center { margin-inline: auto; text-align: center; }
.site-main { flex: 1; }

/* Section backgrounds */
.section--white { background: var(--white); }
.section--mint { background: var(--mint); }
.section--mint-soft { background: var(--mint-soft); }
.section--amber { background: var(--amber); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--white .eyebrow { background: var(--mint); border-color: transparent; }
.section--navy .eyebrow { background: var(--teal-bright); color: var(--navy); border-color: transparent; }

/* Legacy section colors — map to new palette */
.section--cream { background: var(--white); }
.section--pink { background: var(--white); }
.section--yellow { background: var(--amber); }
.section--blue { background: var(--navy); color: var(--white); }
.section--blue h2, .section--blue h3 { color: var(--white); }
.section--cyan { background: var(--mint); }
.section--green { background: var(--mint-soft); }
.section--orange { background: var(--white); }
.section--purple { background: var(--mint-soft); }
.section--blue, .section--navy { color: var(--white); }

/* --- Eyebrow ----------------------------------------------- */
.eyebrow {
    display: inline-flex; align-items: center;
    padding: var(--s2) var(--s4);
    border: 1px solid rgba(13, 45, 107, .12);
    border-radius: var(--radius-pill);
    background: var(--white);
    font: 800 12px/1 var(--font-body);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--navy);
}

/* --- Chip -------------------------------------------------- */
.chip {
    display: inline-flex; align-items: center; gap: var(--s2);
    padding: var(--s2) var(--s4);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--white);
    font: 600 14px/1.2 var(--font-body);
    color: var(--navy);
}
.chip::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--c, var(--teal));
}
.chip--pink::before { --c: var(--pink); }
.chip--amber::before { --c: var(--amber); }
.chip--blue::before { --c: var(--blue); }

/* --- Buttons ----------------------------------------------- */
.btn {
    --btn-ink: var(--white);
    --btn-fill: var(--pink-strong);
    display: inline-flex; align-items: center; justify-content: center;
    gap: var(--s2);
    min-height: 56px;
    padding: 0 28px;
    border: 0; border-radius: var(--radius-pill);
    background: var(--btn-fill);
    color: var(--btn-ink);
    font: 700 18px/1.1 var(--font-body);
    text-align: center; text-decoration: none;
    cursor: pointer;
    transition: transform var(--fast) ease, background var(--fast) ease;
}
.edulo button.btn { color: var(--btn-ink); font: 700 18px/1.1 var(--font-body); }
.btn:hover { transform: translateY(-2px); filter: brightness(.95); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 1em; height: 1em; }
.btn--ghost { --btn-ink: var(--navy); --btn-fill: var(--white); box-shadow: inset 0 0 0 2px var(--navy); }
.btn--ghost:hover { background: var(--mint-soft); }
.btn--white { --btn-ink: var(--navy); --btn-fill: var(--white); }
.btn--mint { --btn-ink: var(--navy); --btn-fill: var(--teal); }
.btn--sun, .btn--amber { --btn-ink: var(--navy); --btn-fill: var(--amber); }
.btn--coral, .btn--pink { --btn-ink: var(--white); --btn-fill: var(--pink); }
.btn--wide { width: 100%; }
.btn--small, .edulo button.btn--small { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn--pulse { animation: none; }
.section--navy .btn:not(.btn--ghost):not(.btn--white) { --btn-ink: var(--navy); --btn-fill: var(--amber); }

/* Pill link */
.pill-link {
    display: inline-flex; align-items: center; gap: var(--s2);
    height: 40px; padding: 0 20px;
    border-radius: var(--radius-pill);
    background: var(--pill, var(--pink-strong)); /* own variable: --c of the card around it is a pale fill */
    color: var(--white);
    font: 700 14px/1 var(--font-body);
    text-decoration: none;
    transition: transform var(--fast) ease, box-shadow var(--fast) ease;
    box-shadow: 0 2px 8px rgba(13, 45, 107, .12);
}
.pill-link:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(13, 45, 107, .18); }
.pill-link--amber { --pill: var(--amber); color: var(--navy); }
.pill-link--teal { --pill: var(--teal); color: var(--navy); }
.pill-link--blue { --pill: var(--blue); }
.pill-link--navy { --pill: var(--navy); }
.pill-link--pink { --pill: var(--pink-strong); }

/* --- Link -------------------------------------------------- */
.link, .edulo button.link {
    display: inline-flex; align-items: center;
    min-height: 48px; padding: var(--s2) var(--s1);
    border: 0; background: none;
    color: var(--pink-text);
    font: 700 var(--text)/1.2 var(--font-body);
    text-decoration: underline;
    text-decoration-color: var(--pink);
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
    cursor: pointer;
}

/* --- Cards ------------------------------------------------- */
.card {
    position: relative; z-index: 0;
    padding: 28px;
    border-radius: var(--r-card);
    background: var(--white);
    box-shadow: var(--shadow-card);
    color: var(--navy);
}

/* Card with colored border */
.card-top {
    padding: 28px;
    border-radius: var(--r-card);
    background: var(--white);
    box-shadow: var(--shadow-card);
    border: 3px solid var(--c, var(--pink));
    color: var(--navy);
}
.card-top--amber { --c: var(--amber); }
.card-top--teal { --c: var(--teal); }
.card-top--blue { --c: var(--blue); }
.card-top--navy { --c: var(--navy); }
.card-top--pink { --c: var(--pink); }
.card-top__icon {
    display: grid; place-items: center;
    width: 72px; height: 72px;
    border-radius: 50%;
    background: var(--c-pale, var(--coral-pale));
    margin-bottom: var(--s4);
}
.card-top__icon svg, .card-top__icon img { width: 40px; height: 40px; }
.card-top--amber .card-top__icon { --c-pale: var(--sun-pale); }
.card-top--teal .card-top__icon { --c-pale: var(--mint); }
.card-top--blue .card-top__icon { --c-pale: var(--sky-pale); }
.card-top--navy .card-top__icon { --c-pale: var(--sky-pale); }

/* Filled card */
.card-fill {
    padding: 28px;
    border-radius: var(--r-card);
    background: var(--c, var(--amber));
    color: var(--navy);
    box-shadow: var(--shadow-card);
}
.card-fill--teal { --c: var(--teal); }
.card-fill--pink { --c: var(--pink); }
.card-fill--blue { --c: var(--blue); color: var(--white); }
.card-fill--navy { --c: var(--navy); color: var(--white); }
.card-fill--blue :is(h2, h3, p), .card-fill--navy :is(h2, h3, p) { color: inherit; }
.card-fill__num {
    display: grid; place-items: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--white);
    font: 800 18px/1 var(--font-title);
    color: var(--navy);
    margin-bottom: var(--s3);
}

/* Legacy card classes — remap */
.card--fill { background: var(--fill, var(--white)); box-shadow: var(--shadow-card); border: 0; }
.card--rough { background: var(--fill, var(--white)); box-shadow: var(--shadow-card); border: 0; }
.card--rough::before { display: none; }
.card--tilt { transform: none; transition: transform var(--normal) ease; }
.card--tilt:nth-child(3n+2), .card--tilt:nth-child(3n) { transform: none; border-radius: var(--r-card); }
.card--tilt:hover { transform: translateY(-4px); }
.card--tilt:hover .topic__icon { animation: none; }
.card--edge { --c: var(--teal); --c-deep: var(--teal-text); --c-ink: var(--teal-text); background: var(--white); border: 3px solid var(--c); border-radius: var(--r-card); box-shadow: 0 6px 0 var(--c-deep); }
.card--edge-sky { --c: var(--blue); --c-deep: var(--blue-deep); --c-ink: var(--blue-deep); }
.card--edge-sun { --c: var(--amber); --c-deep: #D9A100; --c-ink: var(--sun-ink); }
.card--edge-coral { --c: var(--pink); --c-deep: var(--pink-text); --c-ink: var(--pink-text); }
.card--edge dt { color: var(--muted); }
.card--edge dd { color: var(--c-ink); }

.fill-coral { --fill: var(--pink); }
.fill-mint { --fill: var(--teal); }
.fill-sun { --fill: var(--amber); }
.fill-lime { --fill: var(--teal); }
.fill-salmon { --fill: var(--amber); }
.fill-sky { --fill: var(--blue); }
.fill-violet { --fill: var(--blue-deep); color: var(--white); }
.fill-white { --fill: var(--white); }

/* --- Callout (navy card with speech tail) ------------------ */
.callout {
    position: relative;
    padding: 40px;
    border-radius: 32px;
    background: var(--navy);
    color: var(--white);
    box-shadow: var(--shadow-card);
}
.callout::after {
    content: '';
    position: absolute;
    left: 48px; bottom: -16px;
    width: 0; height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 18px solid var(--navy);
}
.callout h2, .callout h3 { color: var(--white); }
.callout .key { color: var(--teal-bright); }

/* --- CTA card ---------------------------------------------- */
.cta-card {
    padding: 56px;
    border-radius: var(--r-cta);
    background: var(--teal);
    color: var(--navy);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-card--art { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s6); align-items: center; text-align: left; }
.cta-card__title { margin-bottom: var(--s4); color: var(--navy); }
.cta-card__lead { margin-bottom: var(--s5); color: var(--navy); font-weight: 600; }
.cta-card--art > div:not(.cta-circle) { position: relative; z-index: 1; }
.cta-card__art { width: 200px; }
.cta-card__art img, .cta-card__art svg { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
@media (max-width: 700px) {
    .cta-card { padding: var(--s6) var(--s5); }
    .cta-card--art { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    .cta-card__art { width: 160px; grid-row: 1; }
    .cta-card.cta-card--art .cta-circle { width: 220px; height: 220px; right: -60px; top: -40px; transform: none; }
}
.cta-card .cta-circle {
    position: absolute;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .25);
    right: -40px; top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* --- Marquee band ------------------------------------------ */
.marquee {
    /* Navy, not pink: white text on --pink was only 2.9:1 (Lighthouse, 27 Nov 2026). */
    background: var(--navy);
    height: 56px;
    display: flex; align-items: center;
    overflow: hidden;
    position: relative;
}
.marquee__track {
    display: flex; align-items: center; gap: 0;
    white-space: nowrap;
    animation: marquee 50s linear infinite;
}
.marquee__track:hover { animation-play-state: paused; }
.marquee__word {
    padding: 0 24px;
    font: 800 16px/1 var(--font-body);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--white);
}
.marquee__dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--amber);
    flex: none;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* --- Badge / Pill ------------------------------------------ */
.badge {
    display: inline-flex; align-items: center; gap: var(--s1);
    padding: var(--s1) var(--s3);
    border-radius: var(--radius-pill);
    background: var(--teal);
    color: var(--navy);
    font-weight: 700;
    font-size: var(--text-small);
}
.badge--mint { background: var(--teal); }
.badge--sun { background: var(--amber); }
.badge--sky { background: var(--blue); color: var(--white); }
.badge--muted { background: var(--line); color: var(--muted); }
.badge--white { background: var(--white); }
.pill {
    display: inline-flex; align-items: center; gap: var(--s2);
    min-height: 44px; padding: var(--s2) var(--s4);
    border-radius: var(--radius-pill);
    background: var(--white);
    font: 700 1.25rem/1 var(--font-title);
    box-shadow: var(--shadow-card);
    color: var(--navy);
}
.pill--sun { background: var(--amber); }
.pill--mint { background: var(--teal); }
.pill--sky { background: var(--blue); color: var(--white); }

/* --- Forms ------------------------------------------------- */
.field, .form-group { margin-bottom: var(--s4); text-align: left; }
.field label, .form-group > label, .form-group .control-label { display: block; margin-bottom: var(--s1); font-weight: 700; font-size: var(--text); color: var(--navy); }
.field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea,
.form-control {
    width: 100%; min-height: var(--field);
    padding: var(--s3) var(--s4);
    border: 2px solid var(--line);
    border-radius: var(--radius-s);
    background: var(--white);
    color: var(--ink);
    font: 600 var(--text)/1.3 var(--font-text);
    transition: border-color var(--fast) ease, box-shadow var(--fast) ease;
}
.field input:focus, .form-control:focus { border-color: var(--teal); outline: 0; box-shadow: 0 0 0 3px var(--mint); }
.has-error .form-control { border-color: var(--red); background: #FEF2F2; }
.help-block:not(:empty)::before, .field-error::before { content: '!'; flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--red); color: var(--white); font-weight: 800; font-size: .875rem; }
.help-block, .field-error { display: flex; gap: var(--s2); align-items: center; margin-top: var(--s1); color: var(--red); font-weight: 700; font-size: var(--text-small); }
.help-block:empty { display: none; }
.form-group > label.check { display: flex; font-weight: 600; font-size: 1rem; color: var(--ink); margin: 0; }
.check { position: relative; display: flex; gap: var(--s3); align-items: center; min-height: 48px; font-size: 1rem; line-height: 1.45; color: var(--ink); cursor: pointer; }
.check input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--teal); }
/* Drawn checkbox (site.js adds the SVG and .is-drawn): the real input stays on top, invisible, for keyboard and screen readers. */
.check.is-drawn input { position: absolute; left: 0; top: 50%; width: 26px; height: 26px; transform: translateY(-50%); opacity: 0; cursor: pointer; }
.check__box { flex: none; width: 26px; height: 26px; overflow: visible; }
.check__frame { fill: var(--white); stroke: var(--navy); stroke-width: 2; transition: fill .2s ease, stroke .2s ease; }
.check__tick { fill: none; stroke: var(--white); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .32s cubic-bezier(.65, 0, .35, 1) .06s; }
.check:hover .check__frame { stroke: var(--teal-text); }
.check input:checked + .check__box .check__frame { fill: var(--teal); stroke: var(--teal); }
.check input:checked + .check__box .check__tick { stroke-dashoffset: 0; }
.check input:checked + .check__box { animation: check-pop .35s var(--ease); }
.check input:focus-visible + .check__box .check__frame { stroke: var(--teal-text); stroke-width: 3; }
.check input:focus-visible + .check__box { filter: drop-shadow(0 0 0 var(--mint)) drop-shadow(0 0 3px var(--teal)); }
.has-error .check__frame { stroke: var(--red); fill: #FEF2F2; }
@keyframes check-pop { 0% { transform: scale(1); } 40% { transform: scale(.86); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
    .check__tick, .check__frame { transition: none; }
    .check input:checked + .check__box { animation: none; }
}

/* --- Alerts ------------------------------------------------ */
.alert {
    display: flex; gap: var(--s3); align-items: center;
    padding: var(--s3) var(--s4);
    border-radius: var(--radius-m);
    font-weight: 600;
    background: var(--sky-pale);
    color: var(--navy);
}
.alert .icon { color: var(--blue); }
.alert--ok { background: var(--mint); }
.alert--ok .icon { color: var(--teal-text); }
.alert--warn { background: var(--sun-pale); }
.alert--warn .icon { color: var(--sun-ink); }
.alert--error { background: #FEF2F2; }
.alert--error .icon { color: var(--red); }

/* --- Table ------------------------------------------------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-m); background: var(--white); box-shadow: var(--shadow-card); }
.table { width: 100%; border-collapse: collapse; font-size: var(--text-small); }
.table th { padding: var(--s3) var(--s4); text-align: left; color: var(--muted); font-weight: 700; }
.table td { padding: var(--s3) var(--s4); border-top: 1px solid var(--line); }
.pagination { display: flex; flex-wrap: wrap; gap: var(--s2); justify-content: center; list-style: none; margin: var(--s5) 0 0; padding: 0; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 48px; min-height: 48px; padding: 0 var(--s3); border-radius: var(--radius-pill); background: var(--white); color: var(--navy); font-weight: 700; text-decoration: none; box-shadow: var(--shadow-card); }
.pagination .active a { background: var(--teal); color: var(--navy); }

/* --- Modal ------------------------------------------------- */
.modal { width: min(460px, calc(100% - 2rem)); padding: var(--s5); border: 0; border-radius: var(--r-card); background: var(--white); color: var(--navy); box-shadow: var(--shadow-card); }
.modal::backdrop { background: rgba(13, 45, 107, .4); }

/* --- Tooltip ----------------------------------------------- */
.tooltip { position: relative; }
.tooltip[data-tip]:hover::after, .tooltip[data-tip]:focus-visible::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); width: max-content; max-width: 220px; padding: var(--s1) var(--s3); border-radius: var(--radius-s); background: var(--navy); color: var(--white); font: 600 var(--text-small)/1.3 var(--font-text); z-index: 10; }

/* --- Empty / Skeleton -------------------------------------- */
.empty { display: grid; justify-items: center; gap: var(--s3); padding: var(--s6) var(--s4); text-align: center; color: var(--muted); }
.skeleton { display: block; height: 1em; border-radius: var(--radius-s); background: linear-gradient(90deg, var(--line), var(--mint-soft), var(--line)); background-size: 200% 100%; animation: skeleton 1.4s linear infinite; }
@keyframes skeleton { to { background-position: -200% 0; } }

/* --- Accordion (FAQ) --------------------------------------- */
.accordion { max-width: 820px; margin-inline: auto; }
.accordion__item {
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    background: var(--white);
    margin-bottom: var(--s3);
    overflow: hidden;
    transition: background var(--normal) ease;
}
.accordion__item[open] { background: var(--mint-soft); }
.accordion__item summary {
    display: flex; justify-content: space-between; align-items: center; gap: var(--s3);
    min-height: var(--tap); padding: var(--s4) var(--s5);
    font: 700 1.125rem/1.2 var(--font-body);
    cursor: pointer; list-style: none;
    color: var(--navy);
}
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__item summary .icon { transition: transform var(--normal) ease; flex: none; }
.accordion__item[open] summary .icon { transform: rotate(45deg); }
.accordion__item p { padding: 0 var(--s5) var(--s4); margin: 0; font-weight: 600; color: var(--ink); }

/* Legacy FAQ styling */
.faq__item { border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--white); box-shadow: none; margin-bottom: var(--s3); }
.faq__item--1, .faq__item--2 { border-color: var(--line); background: var(--white); }
.faq__item[open] { background: var(--mint-soft); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); min-height: var(--tap); padding: var(--s4) var(--s5); font: 700 1.125rem/1.2 var(--font-body); cursor: pointer; list-style: none; color: var(--navy); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { transition: transform var(--normal) ease; }
.faq__item[open] summary .icon { transform: rotate(45deg); }
.faq__item p { padding: 0 var(--s5) var(--s4); margin: 0; font-weight: 600; color: var(--ink); }

/* --- Mascot ------------------------------------------------ */
.mascot { display: block; width: 120px; height: 120px; }
.mascot svg { display: block; width: 100%; height: 100%; }
.mascot--s { width: 44px; height: 44px; }
.mascot--m { width: 84px; height: 84px; }
.mascot--l { width: 200px; height: 200px; }
.mascot--albastru { --lulu: var(--blue); --lulu-deep: var(--pink); }
.mascot--verde { --lulu: var(--teal); --lulu-deep: var(--teal-text); }
.mascot--roz { --lulu: var(--pink); --lulu-deep: var(--pink-text); }

/* --- Header ------------------------------------------------ */
.site-header {
    position: sticky; top: 0; z-index: 20;
    background: var(--white);
    transition: box-shadow var(--normal) ease;
}
.site-header.is-stuck { box-shadow: 0 2px 12px rgba(13, 45, 107, .06); }
.site-header__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: var(--s2); color: var(--navy); font: 800 1.5rem/1 var(--font-title); text-decoration: none; }
.nav { display: none; align-items: center; gap: var(--s5); }
.nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 48px; color: var(--navy); font-weight: 700; text-decoration: none; }
.nav a:not(.btn):hover { color: var(--pink-text); }
.nav .btn { --btn-fill: var(--pink-strong); --btn-ink: var(--white); }
.menu > summary { display: grid; place-items: center; width: var(--tap); height: var(--tap); border-radius: 50%; background: var(--pink-strong); color: var(--white); cursor: pointer; list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu__panel { position: absolute; left: 0; right: 0; top: 100%; display: grid; gap: var(--s1); padding: var(--s4) var(--gutter) var(--s5); background: var(--white); box-shadow: 0 8px 24px rgba(13, 45, 107, .1); border-radius: 0 0 var(--radius-m) var(--radius-m); }
.menu__panel a:not(.btn) { display: flex; align-items: center; min-height: var(--tap); color: var(--navy); font: 700 1.125rem/1 var(--font-body); text-decoration: none; }

/* --- Footer ------------------------------------------------ */
.site-footer { position: relative; margin-top: auto; }
.site-footer__body { background: var(--navy); color: var(--white); padding-block: var(--s7); }
.site-footer__grid { display: grid; gap: var(--s5); }
.site-footer .logo { color: var(--white); }
/* Baloo 2 leaves more room under the letters than above, so the word sits about 3 px high next to
   the drawing; lifting the drawing by the same amount puts both centres on one line. */
.logo .mascot { position: relative; top: -.125em; }
.site-footer h2 { color: var(--amber); font-size: var(--title-3); margin-bottom: var(--s2); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; color: rgba(255, 255, 255, .8); font-weight: 600; transition: color var(--fast) ease; }
.site-footer li a:hover { color: var(--white); }
.footer-social { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s3) 0 0; }
.footer-social a { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 6px 16px 6px 12px; border: 2px solid rgba(255, 255, 255, .35); border-radius: 999px; color: var(--white); font-weight: 700; white-space: nowrap; }
.footer-social a:hover { border-color: var(--amber); color: var(--amber); text-decoration: none; }
.footer-social .icon { width: 22px; height: 22px; }
.site-footer__copy { margin: var(--s5) 0 0; color: rgba(255, 255, 255, .6); font-size: var(--text-small); }
.footer-friends { display: flex; align-items: flex-end; gap: var(--s2); }
.footer-friends > * { width: 64px; height: 64px; }

/* --- Hero (amber) ------------------------------------------ */
.hero {
    position: relative;
    padding-block: var(--s5) 0;
    overflow: hidden;
    background: var(--amber);
    color: var(--navy);
    isolation: isolate;
}
.hero__grid {
    position: relative; z-index: 2;
    display: grid; gap: var(--s6);
    align-items: center;
    padding-bottom: var(--s7);
}
.layout-landing .hero h1 {
    font-size: var(--title-hero);
    font-weight: 800;
    margin: var(--s3) 0 var(--s5);
    color: var(--navy);
}
.hero .key, .hero .hl { color: var(--blue-deep); }
.hero .hl svg { display: none; }
.hero__lead { max-width: 34em; color: var(--ink); font-size: 1.125rem; font-weight: 600; }
.hero__stage { position: relative; }
/* Behind the animals: soft white sun rays that fade out towards the edges and turn very slowly. */
.hero__rays {
    position: absolute; left: 50%; top: 30%; z-index: -1;
    width: 2200px; height: 2200px; margin: -1100px 0 0 -1100px;
    background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .22) 0 7deg, transparent 7deg 18deg);
    -webkit-mask: radial-gradient(circle, #000 0 18%, transparent 55%);
    mask: radial-gradient(circle, #000 0 18%, transparent 55%);
    pointer-events: none;
    animation: hero-rays 120s linear infinite;
}
@keyframes hero-rays { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero__rays { animation: none; } }
.hero__circle {
    position: absolute;
    width: 90%; aspect-ratio: 1;
    border-radius: 50%;
    background: var(--amber-soft);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}
.hero__art { position: relative; z-index: 1; width: min(100%, 520px); margin-inline: auto; }
.hero__art .art, .hero__art img { width: 100%; height: auto; aspect-ratio: 520 / 440; }
.hero__art .hero-crew__pop img { aspect-ratio: 1; }

/* Header video (Imagini site, Setări): the background of the hero's right half, no frame. Its left and
   top edges fade into the amber (the video's yellow is never exactly #FFC72C) and its bottom meets the
   marquee. On a phone it sits under the text, full width, fading in at the top. */
.hero--video { padding-bottom: 0; }
.hero--video .hero__grid { padding-bottom: var(--s5); }
.hero-bgvideo { position: relative; z-index: 1; margin-top: calc(-1 * var(--s5)); aspect-ratio: 16 / 10; overflow: hidden;
    -webkit-mask: linear-gradient(to bottom, transparent 0, #000 22%); mask: linear-gradient(to bottom, transparent 0, #000 22%); }
.hero-bgvideo video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
@media (min-width: 1024px) {
    .hero--video .hero__grid { min-height: clamp(520px, 44vw, 680px); padding-bottom: var(--s7); }
    .hero-bgvideo { position: absolute; top: 0; right: 0; bottom: 0; width: 62%; margin: 0; aspect-ratio: auto;
        -webkit-mask: linear-gradient(to right, transparent 0, #000 26%); mask: linear-gradient(to right, transparent 0, #000 26%); }
    .hero-bgvideo video { object-position: 30% 100%; }
    /* The doodles on the right would float over the video. */
    .hero--video .hero-doodle:nth-child(2), .hero--video .hero-doodle:nth-child(5), .hero--video .hero-doodle:nth-child(6),
    .hero--video .hero-doodle:nth-child(7), .hero--video .hero-doodle:nth-child(10) { display: none; }
}

/* Drawn hero (_hero_draw.php): pencil lines draw themselves (pathLength 1), then the friends pop in.
   landing.js puts is-draw-wait on .hero before the intro and is-drawing when it starts; without it
   (no JavaScript, reduced motion) everything shows finished. */
.draw-line { fill: none; stroke: var(--white); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.draw-line.is-pink { stroke: var(--pink-strong); }
.draw-line.is-blue { stroke: var(--blue); }
.draw-line.is-navy { stroke: var(--navy); }
.draw-line.is-teal { stroke: var(--teal-text); }
.hero.is-draw-wait .draw-line { stroke-dashoffset: 1; }
.hero.is-drawing .draw-line { animation: draw-in var(--t, .8s) cubic-bezier(.5, 0, .3, 1) var(--d, 0s) both; }
@keyframes draw-in { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.hero-draw { aspect-ratio: 520 / 440; container-type: inline-size; }
.hero-draw svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero-draw__front { z-index: 3; pointer-events: none; }
.hero-draw__rainbow .draw-line { stroke-width: 14; }
.hero-draw__sum .draw-line { stroke-width: 6; }
.hero-draw__pal { position: absolute; z-index: 1; display: block; aspect-ratio: 1; cursor: pointer; }
.hero-draw__pal.is-lulu { left: 29%; bottom: 0; width: 42%; z-index: 2; }
.hero-draw__pal.is-fox { left: -2%; bottom: 7%; width: 34%; }
.hero-draw__pal.is-bunny { right: -3%; bottom: 7%; width: 33%; }
.hero-draw__pal.is-owl { right: 1%; top: 6%; width: 27%; }
.hero-draw__pop { display: block; width: 100%; height: 100%; }
.hero-draw__pop img { display: block; width: 100%; height: 100%; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(13, 45, 107, .2)); animation: crew-float 4.2s ease-in-out infinite; }
.hero-draw__pal.is-fox img { animation-delay: -1.1s; }
.hero-draw__pal.is-owl img { animation-delay: -2.3s; animation-duration: 5s; }
.hero-draw__pal.is-bunny img { animation-delay: -3.2s; animation-duration: 3.4s; }
.hero.is-draw-wait .hero-draw__pal { opacity: 0; }
.hero.is-drawing .hero-draw__pal { animation: pal-pop .75s cubic-bezier(.3, 1.6, .5, 1) var(--d, 0s) both; }
@keyframes pal-pop { from { opacity: 0; transform: translateY(18%) scale(.4); } to { opacity: 1; transform: none; } }
.hero-draw .is-hop img { animation: crew-hop .6s cubic-bezier(.3, 1.6, .5, 1); }
.hero-draw__sparks { animation: sparks 2.4s ease-in-out 3.2s infinite; transform-origin: 264px 230px; transform-box: view-box; }
@keyframes sparks { 50% { opacity: .3; } }
.hero-draw__trail { fill: none; stroke: var(--white); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: .006 .014; opacity: 0; transition: opacity 1s; }
.hero-draw__plane { opacity: 0; transition: opacity .6s; }
.hero-draw__plane path { fill: var(--white); stroke: var(--navy); stroke-width: 2; stroke-linejoin: round; }
.hero-draw.is-flying .hero-draw__plane { opacity: 1; }
.hero-draw.is-flying .hero-draw__trail { opacity: .55; }
@keyframes crew-float { 50% { transform: translateY(-5%); } }
@keyframes crew-hop { 30% { transform: translateY(-22%) rotate(-6deg) scale(1.06); } 60% { transform: translateY(0) scale(1.08, .92); } }

/* Doodles across the hero background (_hero_doodles.php), white pencil lines that float slowly. */
.hero-doodles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-doodle { position: absolute; height: auto; overflow: visible; opacity: .7; animation: doodle-float 7s ease-in-out infinite; animation-delay: calc(var(--i) * -.9s); }
.hero-doodle .draw-line { stroke-width: 3.5; }
@keyframes doodle-float { 0%, 100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-10px) rotate(5deg); } }
/* On a phone the text fills the top of the hero, so the scene alone carries the drawing. */
@media (max-width: 767px) { .hero-doodles { display: none; } }
@media (prefers-reduced-motion: reduce) {
    .hero-draw__pop img, .hero-draw__sparks, .hero-doodle { animation: none; }
}

/* Remove hills/waves from hero */
.hills { display: none; }
.wave { display: none; }

/* Pop heading — simplified to navy, no stroke */
.pop { color: var(--navy); -webkit-text-stroke: 0; paint-order: normal; text-shadow: none; letter-spacing: 0; }
.pop .hl { color: var(--pink-text); }
.pop--pink { color: var(--pink-text); }

/* Highlight word */
.hl { position: relative; display: inline; white-space: nowrap; }
.hl svg { display: none; }
.hl--lime { color: var(--teal-text); }

/* Key word coloring */
.key { color: var(--pink-text); }
.section--navy .key { color: var(--amber); }
.section--amber .key, .hero .key { color: var(--blue-deep); }

/* --- Decorations — all hidden ------------------------------ */
.deco, .corner, .friend, .bubble, .bubble-sky, .confetti { display: none !important; }

/* --- Topics grid ------------------------------------------- */
.title-center { max-width: 22ch; margin-inline: auto; text-align: center; }
.topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); margin-top: var(--s7); }
.topic { display: grid; justify-items: center; align-content: start; gap: var(--s2); text-align: center; color: var(--navy); padding: 28px; }
.topic h3 { margin: 0; font-size: 1.25rem; }
.topic p { margin: 0; font-weight: 700; font-size: var(--text); }
.topic__icon { display: block; width: 72px; height: 72px; border-radius: 50%; padding: 12px; }
.topic__more { margin-top: var(--s1); font-weight: 800; color: var(--navy); }

/* --- Ages -------------------------------------------------- */
.ages { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: var(--s5); margin-top: var(--s6); }
.age { text-align: center; padding: 28px; }
.age h3 { font-size: 1.5rem; margin-bottom: 0; }
.age p { margin: 0; font-weight: 700; }
.age ul { list-style: none; margin: var(--s3) 0 0; padding: 0; font-weight: 700; }

/* --- About ------------------------------------------------- */
.about { display: grid; gap: var(--s6); align-items: center; }
.frame { position: relative; max-width: 460px; margin-inline: auto; }
.frame .art, .frame img { width: 100%; height: auto; aspect-ratio: 1; border-radius: var(--r-card); }

/* --- Counters ---------------------------------------------- */
.counters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); margin: 0 auto; text-align: center; }
.counters dd { margin: 0; font: 800 clamp(2.5rem, 6vw, 4rem)/1 var(--font-title); }
.counters dt { font-weight: 700; font-size: var(--text); }
.counters__wip { font-size: 1.25rem; }
.section--navy .counters { color: var(--white); }
.section--navy .counters dd { color: var(--amber); }

/* --- Benefits ---------------------------------------------- */
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: var(--s6) var(--s5); margin-top: var(--s6); }
.benefit { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: var(--s3); align-items: start; }
.benefit__art { grid-row: span 2; width: 72px; height: 72px; }
.benefit h3 { margin: 0; }
.benefit p { margin: 0; color: var(--muted); font-weight: 600; }

/* --- Steps ------------------------------------------------- */
.steps { display: grid; gap: var(--s5); margin-top: var(--s6); }
.step { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: var(--s3); align-items: start; }
.step::before { content: attr(data-step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--white); font: 800 18px/1 var(--font-title); color: var(--navy); }

/* --- Demos ------------------------------------------------- */
.demos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: var(--s5); margin: var(--s6) 0; }
.demo { padding: var(--s4); border-radius: var(--r-card); background: var(--white); box-shadow: var(--shadow-card); border: 3px solid var(--c, var(--teal)); color: var(--navy); }
.demo:nth-child(6n+2) { --c: var(--amber); }
.demo:nth-child(6n+3) { --c: var(--blue); }
.demo:nth-child(6n+4) { --c: var(--pink); }
.demo:nth-child(6n+5) { --c: var(--navy); }
.demo:nth-child(6n+0) { --c: var(--teal); }
.demo .e-prompt { font-size: 1.25rem; }
.demo .e-mat { --cell: 34px; }
.demo .e-key { min-height: 48px; font-size: 1.375rem; }
/* Narrow boxes (landing demos, the public game box): the keypad always goes under the exercise */
.demo .e-kp-layout, .game-box__play .e-kp-layout { flex-direction: column; align-items: stretch; }
.demo .e-kp-layout > .e-keypad, .game-box__play .e-kp-layout > .e-keypad { flex: none; min-width: 0; }
.demo .e-listen { display: none; }
.demo .e-options[data-count='3'], .demo .e-options[data-count='4'] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.demo .e-options[data-count='4']:has(.e-tile-text) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.demo .e-mat-solo { --cell: 72px; }
/* The demo cards are narrow: hours and sums of money need a smaller figure to fit three in a row. */
.demo:has(.e-clock) .e-tile, .demo:has(.e-money) .e-tile { font-size: 1.5rem; padding-inline: 4px; }

/* --- Safety ------------------------------------------------ */
.safety-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3); margin: 0 0 var(--s5); padding: 0; list-style: none; }
.safety-pill { display: inline-flex; align-items: center; gap: var(--s2); padding: var(--s3) var(--s5); border-radius: var(--radius-pill); font: 700 1rem/1.1 var(--font-body); }
.safety-pill:nth-child(1) { background: var(--amber); color: var(--navy); }
.safety-pill:nth-child(2) { background: var(--teal); color: var(--navy); }
.safety-pill:nth-child(3) { background: var(--blue); color: var(--white); }
.nope-list { list-style: none; display: grid; gap: var(--s3); margin: var(--s5) auto 0; padding: 0; max-width: 620px; text-align: left; font-weight: 700; }
.nope-list li { display: flex; align-items: center; gap: var(--s3); }
.nope-list .icon { color: var(--pink); }

/* --- Split (map section) ----------------------------------- */
.split { display: grid; gap: var(--s6); align-items: center; }
.ticks { margin: var(--s4) 0; padding: 0; list-style: none; }
.ticks li { display: flex; align-items: center; gap: var(--s3); min-height: 56px; font: 700 1.125rem/1.2 var(--font-body); color: var(--navy); }
.ticks svg { flex: none; width: 32px; height: 32px; color: var(--teal); }
.blocks { display: grid; justify-items: center; gap: var(--s2); }
.block { display: grid; place-items: center; width: 80px; height: 80px; border-radius: 16px; color: var(--navy); font: 800 2.75rem/1 var(--font-title); box-shadow: var(--shadow-card); }
.block:nth-child(1) { background: var(--pink); }
.block:nth-child(2) { background: var(--blue); margin-left: 40px; }
.block:nth-child(3) { background: var(--amber); margin-right: 40px; }
.block:nth-child(4) { background: var(--teal); }

/* --- CTA section ------------------------------------------- */
.cta { text-align: center; }
.cta h2 { font-size: var(--title-1); font-weight: 800; margin-bottom: var(--s5); color: var(--navy); }

/* --- Swatches (design page) -------------------------------- */
.swatches { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: var(--s3); margin: 0; padding: 0; }
.swatch { padding: var(--s5) var(--s3); border-radius: var(--r-card); box-shadow: var(--shadow-card); font-weight: 700; }
.swatch--cream { background: var(--white); }
.swatch--white { background: var(--white); border: 1px solid var(--line); }
.swatch--navy { background: var(--navy); color: var(--white); }
.swatch--lime { background: var(--teal); }
.swatch--mint { background: var(--mint); }
.swatch--salmon { background: var(--amber); }
.swatch--coral { background: var(--pink); }
.swatch--sun { background: var(--amber); }
.swatch--sky { background: var(--blue); color: var(--white); }
.swatch--blue { background: var(--blue); color: var(--white); }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-bg { position: relative; flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.auth-stage { flex: 1; display: grid; place-items: center; padding: var(--s8) var(--gutter) var(--s6); }
.auth-layout { position: relative; width: min(480px, 100%); }
.auth-layout__lulu { position: absolute; right: 8px; top: -56px; z-index: 1; animation: none; }
.auth-card { padding: var(--s6) var(--s5); }
.auth-card .mascot { margin-inline: auto; }
.auth-card h1 { color: var(--navy); }

/* ============================================================
   PARENT AREA
   ============================================================ */
.parent-shell { flex: 1; background: var(--mint-soft); }
.parent-main { width: min(1000px, calc(100% - 2 * var(--gutter))); margin-inline: auto; padding-block: var(--s6) var(--s8); }
.parent-main h1, .parent-main .page-head h1 { color: var(--navy); -webkit-text-stroke: 0; paint-order: normal; text-shadow: none; animation: none; font-size: clamp(1.875rem, 3.4vw, 2.5rem); }
.parent-main > h2, .p-main > h2 { color: var(--navy); -webkit-text-stroke: 0; text-shadow: none; }
.parent-main > .muted, .p-main > .muted, .parent-main .page-head + .muted { color: var(--muted); }
.parent-main > * + * { margin-top: var(--s5); }
.parent-main .page-head { align-items: center; margin-bottom: 0; }
.parent-main > .page-head + * { margin-top: var(--s5); }
.cta-end { margin: var(--s7) 0 0; max-width: none; }
.page-head__lead { margin: var(--s1) 0 0; color: var(--muted); }
.page-head__who { display: flex; align-items: center; gap: var(--s4); }
.page-head__who .mascot { width: 72px; height: 72px; }
.nav-parent { display: flex; align-items: center; gap: var(--s2); }
.nav-parent a:not(.btn) { display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--s3); border-radius: var(--radius-pill); color: var(--navy); font-weight: 700; text-decoration: none; }
.nav-parent a[aria-current] { background: var(--mint); }

.back-link { display: inline-flex; align-items: center; gap: var(--s1); min-height: 44px; color: var(--navy); font-weight: 700; text-decoration: none; }
.back-link .icon { transform: rotate(90deg); color: var(--teal-text); }
.back-link:hover { text-decoration: underline; }
.parent-main > .back-link + * { margin-top: var(--s2); }

/* Panels */
.panel { padding: var(--s5); border: 2px solid var(--line); border-radius: var(--r-card); background: var(--white); box-shadow: var(--shadow-card); }
.panel > * + * { margin-top: var(--s4); }
.panel > *:first-child { margin-top: 0; }
.panel__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s2); }
.parent-main .panel__title { margin: 0; padding: 0; color: var(--navy); font: 700 1.375rem/1.2 var(--font-title); }
.panel__note { margin: 0; color: var(--muted); font-size: var(--text-small); font-weight: 700; }
.panel__empty { margin: 0; padding: var(--s3) var(--s4); border-radius: var(--radius-s); background: var(--mint-soft); color: var(--muted); font-size: var(--text-small); }
.panel p { margin-bottom: 0; }
.panel form { margin-bottom: 0; }
.panel.empty { padding: var(--s7) var(--s5); }
.panel.empty > * + * { margin-top: 0; }
.panel.empty p { max-width: 40ch; }
.panel--tip { display: flex; gap: var(--s3); align-items: flex-start; border-color: var(--mint); background: var(--mint); box-shadow: none; }
.panel--tip > * + * { margin-top: 0; }
.panel--tip .icon { color: var(--teal-text); margin-top: 2px; }
.panel--tip p { margin: 0; color: var(--ink); font-size: var(--text-small); }
.panels { display: grid; gap: var(--s5); align-items: start; }
.panels__side { display: grid; gap: var(--s5); }
.panel-links { display: flex; flex-wrap: wrap; gap: var(--s4); margin: 0; padding-inline: var(--s2); font-size: var(--text-small); }
@media (min-width: 800px) { .panels { grid-template-columns: 1.15fr 1fr; } }
.danger-zone { border-color: var(--red-line); }
.danger-zone .panel__title { color: var(--red-deep); }
.danger-zone__form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s3); }
.danger-zone__form .field { flex: 1 1 260px; max-width: 380px; margin: 0; }
.btn--danger { --btn-ink: var(--white); --btn-fill: var(--red-deep); }

/* Children cards */
.kids { display: grid; gap: var(--s5); }
@media (min-width: 720px) { .kids { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kid { --k: var(--amber); --k-pale: var(--sun-pale); display: grid; gap: var(--s4); align-content: start; padding: var(--s5); border: 3px solid var(--k); border-radius: var(--r-card); background: var(--white); box-shadow: var(--shadow-card); }
.kid--albastru { --k: var(--blue); --k-pale: var(--sky-pale); }
.kid--verde { --k: var(--teal); --k-pale: var(--mint); }
.kid--roz { --k: var(--pink); --k-pale: var(--coral-pale); }
.kid__head { display: flex; align-items: center; gap: var(--s4); }
.kid__head .mascot { width: 72px; height: 72px; padding: 4px; border-radius: 50%; background: var(--k-pale); }
.parent-main .kid__name { margin: 0; color: var(--navy); font: 700 1.5rem/1.15 var(--font-title); }
.kid__group { margin: 2px 0 0; color: var(--muted); font-size: var(--text-small); font-weight: 700; }
.goal { display: grid; gap: var(--s2); }
.goal__label { display: flex; justify-content: space-between; gap: var(--s2); margin: 0; font-size: var(--text-small); color: var(--muted); font-weight: 700; }
.goal__label strong { color: var(--navy); }
.goal__track { display: block; height: 12px; border-radius: var(--radius-pill); background: var(--line); overflow: hidden; }
.goal__fill { display: block; width: var(--v); height: 100%; border-radius: inherit; background: var(--teal); }
.mini-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.mini-week__day { display: grid; justify-items: center; gap: 4px; }
.mini-week__track { display: flex; align-items: flex-end; width: 100%; max-width: 30px; height: 44px; border-radius: 8px; background: var(--k-pale, var(--mint-soft)); overflow: hidden; }
.mini-week__day.is-none .mini-week__track { background: var(--white); border: 2px dashed var(--line); }
.mini-week__fill { display: block; width: 100%; height: var(--v); min-height: 6px; border-radius: 8px; background: var(--amber); }
.mini-week__day.is-none .mini-week__fill { display: none; }
.mini-week__day.is-met .mini-week__fill { background: var(--teal); }
.mini-week__name { color: var(--muted); font-size: .75rem; font-weight: 800; }
.mini-week__day.is-today .mini-week__name { color: var(--pink-text); }
.kid__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); margin: 0; }
.kid__stats div { padding: var(--s2) var(--s3); border-radius: var(--radius-s); background: var(--k-pale); text-align: center; }
.kid__stats dt { color: var(--muted); font-size: .8125rem; font-weight: 700; }
.kid__stats dd { margin: 0; color: var(--navy); font: 700 1.5rem/1.2 var(--font-title); }
.kid__actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0; }
.kid--add { --k: var(--line); padding: 0; border-style: dashed; background: transparent; box-shadow: none; }
.kid--add a { display: grid; place-content: center; justify-items: center; gap: var(--s3); min-height: 220px; height: 100%; padding: var(--s5); border-radius: inherit; color: var(--navy); font-weight: 700; text-decoration: none; }
.kid--add a:hover { background: var(--white); }
.kid__plus { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--mint); color: var(--teal-text); }

/* Child form */
.child-form { display: grid; gap: var(--s5); }
.child-form > * + * { margin-top: 0; }
.form-part { min-width: 0; margin: 0; padding: 0 0 var(--s5); border: 0; border-bottom: 2px solid var(--line); }
.parent-main .form-part legend { display: block; margin-bottom: var(--s4); }
.form-part .form-group:last-child { margin-bottom: 0; }
.form-pair { display: grid; gap: 0 var(--s4); }
@media (min-width: 640px) { .form-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form-note, .hint-block { margin: 0; color: var(--muted); font-size: var(--text-small); }
.hint-block { margin-top: var(--s1); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); }
.child-form .skins { grid-template-columns: repeat(4, minmax(0, 88px)); gap: var(--s3); margin: 0; padding-bottom: var(--s5); border-bottom: 2px solid var(--line); }
.child-form .form-part:last-of-type { padding-bottom: 0; border-bottom: 0; }

/* Lessons list */
.lessons { display: grid; }
.lessons__row { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: var(--s3) 0; border-top: 1px solid var(--line); }
.lessons__row:first-child { border-top: 0; padding-top: 0; }
.lessons__title { margin: 0; color: var(--navy); font-weight: 700; }
.lessons__meta { margin: 2px 0 0; color: var(--muted); font-size: var(--text-small); }
.stars { display: inline-flex; gap: 2px; flex: none; }
.stars .icon { width: 22px; height: 22px; color: var(--line); }
.stars .icon.is-on { color: var(--amber); }

/* Email settings */
.mail-kinds { display: grid; gap: var(--s2); margin: 0; padding: 0; border: 0; }
.mail-kinds__row { display: flex; align-items: flex-start; gap: var(--s3); min-height: 48px; padding: var(--s3); border: 2px solid var(--line); border-radius: var(--radius-s); background: var(--white); color: var(--navy); font-weight: 700; cursor: pointer; text-align: left; }
.mail-kinds__row input { flex: none; width: 22px; height: 22px; margin-top: 1px; accent-color: var(--teal-text); }
.mail-kinds__row:has(input:checked) { border-color: var(--teal); background: var(--mint-soft); }
.mail-form { display: grid; gap: var(--s4); justify-items: start; }
.mail-form .mail-kinds { width: 100%; }
@media (min-width: 800px) { .mail-form .mail-kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Progress report */
.tally__note { margin: 2px 0 0; color: var(--muted); font-size: .8125rem; font-weight: 700; }
@media (min-width: 800px) { .panels--even { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.subjects { display: grid; gap: var(--s4); }
.subjects__row { --sc: var(--teal); display: grid; gap: var(--s2); }
.subjects__row--romana { --sc: var(--pink); }
.subjects__row--engleza { --sc: var(--blue); }
.subjects__row--mediu { --sc: var(--amber); }
.subjects__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s1) var(--s3); }
.subjects__top strong { color: var(--navy); font-size: 1.0625rem; }
.subjects__top span { color: var(--muted); font-size: var(--text-small); font-weight: 700; }
.subjects__track { display: block; height: 14px; border-radius: var(--radius-pill); background: var(--line); overflow: hidden; }
.subjects__fill { display: block; width: var(--v); min-width: 6px; height: 100%; border-radius: inherit; background: var(--sc); }
.subjects__next { margin: 0; color: var(--ink); font-size: var(--text-small); }
.panel--hard { border-color: var(--sun-pale); }
.panel--good { border-color: var(--mint); }
.p-topics { display: grid; gap: var(--s2); width: 100%; }
.p-topics li { width: 100%; max-width: none; }
.p-topics li { display: grid; gap: 2px; padding: var(--s3); border-radius: var(--radius-s); background: var(--mint-soft); }
.panel--hard .p-topics li { background: var(--sun-pale); }
.p-topics strong { color: var(--navy); }
.p-topics span { color: var(--muted); font-size: var(--text-small); }
.p-topics .p-topics__row { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); }
.panel__hint { margin: 0; color: var(--ink); font-size: var(--text-small); }
.badge-list { display: flex; flex-wrap: wrap; gap: var(--s2); }
.badge-list li { display: inline-flex; align-items: baseline; gap: var(--s2); padding: var(--s2) var(--s3); border: 2px solid var(--sun-pale); border-radius: var(--radius-pill); background: var(--white); }
.badge-list strong { color: var(--navy); font-size: var(--text-small); }
.badge-list span { color: var(--muted); font-size: .8125rem; }

/* Week view on the progress page */
.week-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.week-sum li { display: grid; justify-items: center; gap: 0; padding: var(--s3) var(--s2); border-radius: var(--radius-s); background: var(--mint-soft); text-align: center; }
.week-sum strong { color: var(--navy); font: 700 1.75rem/1.15 var(--font-title); }
.week-sum span { color: var(--muted); font-size: .875rem; font-weight: 700; line-height: 1.25; }
.week { position: relative; --track: 150px; }
.week__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--s2); }
.week__day { display: grid; justify-items: center; gap: var(--s1); }
.week__value { min-height: 1.3em; color: var(--navy); font-size: .8125rem; font-weight: 800; white-space: nowrap; }
.week__track { position: relative; display: flex; align-items: flex-end; justify-content: center; width: 100%; max-width: 52px; height: var(--track); border-radius: 14px; background: var(--mint-soft); overflow: hidden; }
.week__day.is-none .week__track { background: repeating-linear-gradient(135deg, var(--mint-soft) 0 8px, var(--white) 8px 14px); border: 2px dashed var(--line); }
.week__fill { display: block; width: 100%; height: var(--v); min-height: 10px; border-radius: 14px; background: var(--amber); }
.week__day.is-none .week__fill { display: none; }
.week__day.is-met .week__fill { background: var(--teal); }
.week__check { position: absolute; bottom: 8px; width: 22px; height: 22px; color: var(--white); }
.week__name { color: var(--navy); font-weight: 800; }
.week__date { color: var(--muted); font-size: .75rem; }
.week__day.is-today .week__name { padding: 0 var(--s2); border-radius: var(--radius-pill); background: var(--pink); color: var(--white); }
.week__day.is-today .week__track { box-shadow: 0 0 0 3px var(--coral-pale); }
.week__mark { position: absolute; left: 4px; right: 4px; bottom: var(--v); border-top: 3px dashed var(--navy); opacity: .55; }
.week-legend { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin: 0; color: var(--muted); font-size: var(--text-small); }
.week-legend__item { display: inline-flex; align-items: center; gap: var(--s2); white-space: nowrap; }
.week-legend__item > span { display: inline-block; width: 14px; height: 14px; border-radius: 4px; }
.week-legend__met { background: var(--teal); }
.week-legend__some { background: var(--amber); }
.week-legend .week-legend__goal { width: 20px; height: 0; border-radius: 0; border-top: 3px dashed var(--navy); opacity: .55; }

/* Chart */
.edulo .chart { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--s2); align-items: end; height: 220px; margin: 0; padding: 0; }
.chart__col { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: var(--s1); height: 100%; font-size: .875rem; }
.chart__bar { align-self: end; width: min(70%, 48px); height: var(--v); min-height: 6px; border-radius: 8px 8px 4px 4px; background: var(--teal); }
.chart__value { font-weight: 700; color: var(--navy); }
.chart__label { color: var(--muted); }
.chart__col.is-today .chart__bar { background: var(--pink); }
.chart__col.is-today .chart__label { color: var(--navy); font-weight: 800; }

/* Skins */
.skins { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s1); border: 0; margin: 0 0 var(--s4); padding: 0; }
.skins legend { padding: 0 0 var(--s1); font-weight: 700; }
.skins label { position: relative; display: grid; justify-items: center; padding: var(--s1) 0; font-size: 1rem; font-weight: 700; cursor: pointer; }
.skins input { position: absolute; opacity: 0; }
.skins input:checked + .mascot { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 50%; }
.skins input:focus-visible + .mascot { outline: 3px solid var(--navy); outline-offset: 2px; border-radius: 50%; }
.skins .mascot { width: min(68px, 100%); height: auto; aspect-ratio: 1; }

/* Tally */
.tally { margin: 0 0 var(--s4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tally dt { font-weight: 700; font-size: var(--text-small); }
.tally dd { margin: 0; font: 700 2.5rem/1.1 var(--font-title); }
.tally--play { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); }
.tally--play .card { display: flex; flex-direction: column-reverse; align-items: center; justify-content: center; gap: 2px; padding: var(--s3) var(--s1); border-width: 3px; box-shadow: 0 4px 0 var(--c-deep); text-align: center; }
.tally--play dd { font-size: 1.75rem; line-height: 1; }
.tally--play dt { font-size: .8125rem; line-height: 1.15; }
.tally--parent { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); margin-bottom: 0; }
.tally--parent .card { padding: var(--s4) var(--s5); }
@media (min-width: 800px) { .tally--parent { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Badge medals */
.medal { --m1: var(--medal-blue-1); --m2: var(--medal-blue-2); --m3: var(--medal-blue-3); display: grid; justify-items: center; align-content: start; gap: var(--s2); height: 100%; margin: 0; padding: var(--s4) var(--s3); border: 3px solid var(--m3); border-radius: var(--r-card); background: var(--white); text-align: center; box-shadow: var(--shadow-card); }
.medal--pink { --m1: var(--medal-pink-1); --m2: var(--medal-pink-2); --m3: var(--medal-pink-3); }
.medal--gold { --m1: var(--medal-gold-1); --m2: var(--medal-gold-2); --m3: var(--medal-gold-3); }
.medal--orange { --m1: var(--medal-orange-1); --m2: var(--medal-orange-2); --m3: var(--medal-orange-3); }
.medal--teal { --m1: var(--medal-teal-1); --m2: var(--medal-teal-2); --m3: var(--medal-teal-3); }
.medal--purple { --m1: var(--medal-purple-1); --m2: var(--medal-purple-2); --m3: var(--medal-purple-3); }
.medal.is-locked { --m1: var(--medal-grey-1); --m2: var(--medal-grey-2); --m3: var(--medal-grey-3); border-style: dashed; border-color: var(--line); background: var(--mint-soft); box-shadow: none; }
.medal__art { position: relative; display: block; width: 96px; height: 112px; }
.medal__shape { display: block; width: 100%; height: 100%; filter: drop-shadow(0 6px 6px rgba(13, 45, 107, .18)); }
.medal__img { width: 100%; height: 100%; object-fit: contain; }
.medal__emblem { position: absolute; left: 50%; top: 60%; width: 40px; height: 40px; transform: translate(-50%, -50%); }
.medal.is-locked .medal__emblem { opacity: .7; }
.medal__num { position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%); min-width: 34px; padding: 2px 8px; border: 3px solid var(--white); border-radius: var(--radius-pill); background: var(--m2); color: var(--white); font: 800 .9375rem/1.2 var(--font-title); box-shadow: var(--shadow-card); }
.medal__lock { position: absolute; right: 0; top: 30px; display: grid; place-items: center; width: 30px; height: 30px; border: 3px solid var(--white); border-radius: 50%; background: var(--muted); }
.medal__lock svg { width: 18px; height: 18px; }
.medal__text { display: grid; gap: 2px; width: 100%; }
.medal__text strong { color: var(--navy); font: 800 1.0625rem/1.2 var(--font-title); }
.medal__text small { color: var(--muted); font-size: .9375rem; line-height: 1.25; }
.medal__bar { display: block; height: 10px; margin-top: var(--s1); border-radius: var(--radius-pill); background: var(--line); overflow: hidden; }
.medal__bar > span { display: block; height: 100%; min-width: 8px; border-radius: inherit; background: var(--amber); }
.medal__text .medal__count { color: var(--navy); font-weight: 800; font-size: .875rem; }
/* Earned medals sway a little and a glint passes over them now and then. */
.medal.is-earned .medal__art { animation: medal-sway 4s ease-in-out infinite; transform-origin: 50% 0; }
.medal.is-earned .medal__art::after { content: ''; position: absolute; left: 50%; top: 58%; width: 12px; height: 12px; background: var(--white); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); opacity: 0; animation: medal-glint 4s ease-in-out infinite; }
.medal.is-earned:hover .medal__art, .medal.is-earned:active .medal__art { animation-duration: 1s; }
@keyframes medal-sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes medal-glint { 0%, 70%, 100% { opacity: 0; transform: translate(-30px, -26px) scale(.4); } 80% { opacity: 1; transform: translate(-24px, -22px) scale(1.2); } 90% { opacity: 0; transform: translate(-20px, -18px) scale(.6); } }
@media (prefers-reduced-motion: reduce) { .medal.is-earned .medal__art, .medal.is-earned .medal__art::after { animation: none; } }
.medals { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s3); }
@media (min-width: 600px) { .medals { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s4); } .medal { padding: var(--s5) var(--s4); } }
.medals > li { min-width: 0; }
.medals-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); margin-top: var(--s5); }
.p-main .medals-head h2 { margin: 0; }
.medals-head__count { margin: 0; color: var(--muted); font-weight: 700; }
.medals-head__count strong { color: var(--navy); font: 800 1.5rem/1 var(--font-title); }
.medals-empty { padding: var(--s4); text-align: center; color: var(--navy); font-weight: 700; }
.medal--compact { padding: var(--s3) var(--s2); }
.medal--compact .medal__art { width: 64px; height: 75px; }
.medal--compact .medal__emblem { width: 28px; height: 28px; }
.medal--compact .medal__num { font-size: .75rem; min-width: 26px; padding: 1px 6px; }
.medal--compact .medal__lock { width: 24px; height: 24px; top: 18px; }
.medal--compact .medal__lock svg { width: 14px; height: 14px; }
.medal--compact .medal__text strong { font-size: .875rem; }

.p-result-medal { display: grid; justify-items: center; width: 100%; }
.p-result-medal .medal { width: min(220px, 100%); padding: var(--s3); background: var(--white); animation: medal-pop .6s var(--ease) .5s backwards; }
.p-result-medal .p-result-new { padding: 0; background: none; }
.p-result-medal .medal__text small { color: var(--pink-text); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: .75rem; }
@keyframes medal-pop { from { transform: scale(.3) rotate(-12deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .p-result-medal .medal { animation: none; } }

.voice-pick { margin-top: var(--s4); }
.voice-pick__main { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-top: var(--s4); }
.voice-pick__main p { margin: 0; }
.voice-pick__main .btn { flex: none; }
.gender-pick__row.voice-choice { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; margin-top: var(--s3); }
.voice-choice .gender-card { min-height: 0; gap: 0; text-align: center; }
.voice-choice .muted { font-size: var(--text-small); }
.voice-pick [hidden] { display: none; }
.voice-pick__row { display: grid; gap: var(--s2); }
.voice-pick__row label { color: var(--navy); font-weight: 800; }
.voice-pick__controls { display: flex; gap: var(--s2); }
.voice-pick__controls select { flex: 1; min-width: 0; }

/* Home screen shelf */
.p-shelf { margin-top: var(--s5); padding: var(--s4); border-radius: var(--r-card); background: var(--white); box-shadow: var(--shadow-card); }
.p-shelf__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); margin-bottom: var(--s3); }
.p-main .p-shelf__head h2 { margin: 0; font-size: 1.25rem; }
.p-shelf__all { color: var(--pink-text); font-weight: 800; font-size: .9375rem; }
.p-shelf__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.p-shelf__list .medal { box-shadow: none; }

/* Badges */
.p-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s3); }
.p-badge { display: grid; justify-items: center; gap: 2px; padding: var(--s4) var(--s3); text-align: center; border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.p-badge.is-locked { background: var(--mint-soft); color: var(--muted); }
.p-badge-art { width: 56px; height: 56px; }
.p-badge-art .e-icon { width: 100%; height: 100%; }
.p-badge small { font-size: 1rem; line-height: 1.2; }

/* Avatar */
.avatar-room { display: grid; place-items: center; padding: var(--s4); border-radius: var(--r-card); background: var(--mint); }
.p-avatar { width: 200px; height: 200px; }
.avatar-room--pair { display: flex; justify-content: center; align-items: end; gap: var(--s4); }
.avatar-room--pair .p-kid, .avatar-room--pair .p-avatar { width: min(200px, 38vw); height: min(200px, 38vw); }
.p-avatar-fig { margin: 0; display: grid; justify-items: center; gap: var(--s2); font-weight: 700; font-size: 1.125rem; }
.p-kid { width: 200px; height: 200px; }
.p-kid svg, .kid-face svg { display: block; width: 100%; height: 100%; }
.look { margin-block: var(--s6); }
.look__lead { margin-top: 0; }
.look__part { margin-bottom: var(--s4); }
.look__part h3 { margin: 0 0 var(--s2); font-size: 1.125rem; }
.look__row { display: flex; flex-wrap: wrap; gap: var(--s3); }
.look__swatch { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--white); background: var(--swatch); box-shadow: var(--shadow-card), 0 0 0 2px var(--line); cursor: pointer; transition: transform var(--fast) ease; }
.look__shape { width: 96px; display: grid; justify-items: center; gap: 2px; padding: var(--s2); border: 0; border-radius: var(--r-card); background: var(--white); box-shadow: var(--shadow-card); font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; transition: transform var(--fast) ease; }
.look__shape svg { width: 64px; height: 64px; }
.look__swatch:hover, .look__shape:hover { transform: translateY(-3px); }
.look__swatch[aria-pressed="true"], .look__shape[aria-pressed="true"] { box-shadow: 0 0 0 4px var(--teal); }
.look__saved { min-height: 1.5em; font-weight: 700; }
.look__lulu { margin-top: var(--s6); }
.kid-face { display: block; }
.profile-disc { overflow: hidden; }
.profile-disc .kid-face { width: 128px; height: 128px; margin-top: 22px; }
.kid__head .kid-face { width: 72px; height: 72px; flex: none; padding: 4px; border-radius: 50%; background: var(--k-pale); overflow: hidden; }
.p-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--s3); }
.p-item { width: 100%; min-height: 150px; display: grid; justify-items: center; align-content: center; gap: var(--s1); padding: var(--s3); border: 0; border-radius: var(--r-card); text-align: center; font-weight: 700; font-size: 1.0625rem; line-height: 1.2; cursor: pointer; box-shadow: var(--shadow-card); transition: transform var(--fast) ease; }
.p-item:hover { transform: translateY(-3px); }
.p-item.is-on { box-shadow: 0 0 0 3px var(--teal); }
.p-item.is-locked { background: var(--mint-soft); color: var(--muted); cursor: default; }
.p-item small { font-weight: 600; font-size: 1rem; }
.p-item-art { width: 72px; height: 72px; }
.p-item-art .e-icon { width: 100%; height: 100%; padding: var(--s3); }

/* ============================================================
   CHILD / GAME AREA
   ============================================================ */
.game-bar {
    position: sticky; top: 0; z-index: 10;
    display: flex; align-items: center; gap: var(--s2);
    padding: var(--s2) var(--gutter);
    background: var(--white);
    box-shadow: 0 2px 12px rgba(13, 45, 107, .06);
}
.game-bar .p-goal-text { color: var(--navy); }
.game-bar .p-goal-bar { background: var(--line); }
.game-tabs {
    position: fixed; z-index: 10;
    left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: repeat(4, 1fr);
    padding: var(--s1) var(--s2) calc(var(--s1) + env(safe-area-inset-bottom));
    background: var(--white);
    box-shadow: 0 -4px 12px rgba(13, 45, 107, .06);
}
.game-tabs a { display: grid; justify-items: center; align-content: center; min-height: 60px; border-radius: var(--radius-m); color: var(--muted); font: 700 1rem/1.1 var(--font-title); text-decoration: none; }
.game-tabs a[aria-current] { background: var(--mint); color: var(--navy); }
.has-tabs { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
.tab-icon .e-icon { display: block; }

/* Profiles */
.profiles-wrap { width: min(720px, 100%); text-align: center; }
.profiles-wrap > h1 { color: var(--navy); -webkit-text-stroke: 0; text-shadow: none; animation: none; }
.p-profiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s4); margin: var(--s5) 0; }
.p-profile { width: 100%; display: grid; justify-items: center; gap: var(--s2); padding: var(--s2); border: 0; background: none; color: var(--navy); font: 700 1.5rem/1.1 var(--font-title); text-decoration: none; cursor: pointer; }
.edulo button.p-profile { font: 700 1.5rem/1.1 var(--font-title); }
.profile-disc { display: grid; place-items: center; width: 150px; height: 150px; border-radius: 50%; background: var(--mint); transition: transform var(--fast) ease; box-shadow: var(--shadow-card); }
.p-profile:hover .profile-disc { transform: translateY(-4px); }
.profile-disc .mascot { width: 118px; height: 118px; }
.profile-disc--1 { background: var(--sky-pale); }
.profile-disc--2 { background: var(--sun-pale); }
.profile-disc--3 { background: var(--mint); }
.profile-disc--4 { background: var(--coral-pale); }
.profile-disc--add { background: var(--white); box-shadow: 0 0 0 2px var(--line); color: var(--muted); font-size: 2.25rem; }
.pin-input { text-align: center; font: 700 2.25rem/1 var(--font-title) !important; letter-spacing: .35em; }

/* Stats */
.p-stats { display: flex; gap: var(--s2); margin: 0; }
.p-stats dd { margin: 0; }
.xp-pill { display: none; }
.p-goal { flex: 1; display: grid; gap: 2px; min-width: 0; }
.p-goal-bar { display: block; height: 14px; border-radius: 7px; background: var(--line); overflow: hidden; }
.p-goal-bar > span { display: block; height: 100%; border-radius: 7px; background: var(--teal); }
.p-goal-text { font-size: .875rem; font-weight: 700; color: var(--muted); text-align: right; }
.p-mute { flex: none; width: var(--tap); height: var(--tap); display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--mint-soft); cursor: pointer; }
.edulo button.p-mute { color: var(--navy); }
.p-mute .e-icon { width: 26px; height: 26px; }

/* Map */
.p-main { width: min(560px, 100%); margin-inline: auto; padding: var(--s2) var(--gutter) var(--s4); }
.p-main h2 { margin-top: var(--s5); color: var(--navy); -webkit-text-stroke: 0; text-shadow: none; }
.p-courses { display: flex; gap: var(--s2); overflow-x: auto; padding-bottom: var(--s2); }
.p-courses a { flex: none; display: inline-flex; align-items: center; min-height: 48px; padding: var(--s2) var(--s4); border-radius: var(--radius-pill); background: var(--white); color: var(--navy); font-weight: 700; text-decoration: none; box-shadow: var(--shadow-card); }
.p-courses a[aria-current] { background: var(--teal); color: var(--navy); }

/* Map nodes */
.tone-0 { --unit: var(--teal); --unit-deep: var(--teal-text); --unit-pale: var(--mint); }
.tone-1 { --unit: var(--blue); --unit-deep: var(--blue-deep); --unit-pale: var(--sky-pale); }
.tone-2 { --unit: var(--pink); --unit-deep: var(--pink-text); --unit-pale: var(--coral-pale); }
.tone-3 { --unit: var(--amber); --unit-deep: var(--sun-ink); --unit-pale: var(--sun-pale); }
.tone-4 { --unit: var(--navy); --unit-deep: var(--navy); --unit-pale: var(--sky-pale); }
.tone-5 { --unit: var(--teal); --unit-deep: var(--teal-text); --unit-pale: var(--mint); }

.p-map { position: relative; margin-top: var(--s2); }
.p-trail { position: absolute; inset: 0; width: 100%; height: 100%; }
.p-trail path { fill: none; stroke: var(--line); stroke-width: 14; stroke-linecap: round; stroke-dasharray: 2 24; vector-effect: non-scaling-stroke; }
.p-nodes { list-style: none; margin: 0; padding: 0; }
.p-unit { position: absolute; left: 0; right: 0; }
.p-main .p-unit h2 { width: fit-content; max-width: 100%; margin: 0 auto; padding: var(--s2) var(--s5); border-radius: var(--r-card); background: var(--unit-deep); color: var(--white); font-size: 1.25rem; font-weight: 800; text-align: center; box-shadow: var(--shadow-card); }
.p-spot { position: absolute; width: 84px; margin-left: -42px; display: grid; justify-items: center; }
.p-node { position: relative; width: 84px; height: 78px; display: grid; place-items: center; border-radius: 50%; background: var(--unit); color: var(--navy); box-shadow: var(--shadow-card); text-decoration: none; }
.p-node .icon { width: 40px; height: 40px; }
.p-node.is-locked { background: var(--line); color: var(--muted); }
.p-node.is-current::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; box-shadow: 0 0 0 3px var(--pink); animation: pulse 2s ease-in-out infinite; }
a.p-node:active { transform: translateY(4px); box-shadow: none; }
.p-node-stars { display: flex; margin-top: var(--s3); color: var(--amber); }
.p-node-redo { position: absolute; top: 22px; left: 90px; z-index: 1; display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px 4px 8px; border: 3px solid var(--white); border-radius: var(--radius-pill); background: var(--pink-text); color: var(--white); font: 800 1rem/1 var(--font-title); text-decoration: none; white-space: nowrap; box-shadow: var(--shadow-card); animation: redo-nudge 2.4s ease-in-out infinite; }
.p-node-redo--left { left: auto; right: 90px; }
.p-node-redo .icon { width: 18px; height: 18px; }
.p-node-redo:active { transform: translateY(2px); }
@keyframes redo-nudge { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-6deg); } 90% { transform: rotate(6deg); } 95% { transform: rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) { .p-node-redo { animation: none; } }
.p-node-stars .icon { width: 20px; height: 20px; }
.p-node-stars .off { color: var(--line); }
.p-here { position: absolute; left: 92px; top: -8px; width: 72px; height: 72px; pointer-events: none; }
.p-spot:has(.p-here) { z-index: 2; }
.p-here--left { left: -80px; }

.map-bg { display: none; }
.map-scene { position: relative; overflow: hidden; border-radius: var(--r-card); padding-block: var(--s4); background: var(--w-meadow-1); }

/* Map worlds: one band per unit, a wave where the next one begins */
.p-worlds { position: absolute; inset: 0; pointer-events: none; }
.p-map > .p-worlds { inset: 0; }
.p-world { --w1: var(--w-meadow-1); --w2: var(--w-meadow-2); position: absolute; left: 0; right: 0;
    background: linear-gradient(var(--w1), var(--w2)) 0 40px / 100% calc(100% - 40px) no-repeat; }
.p-world.is-first { background-position: 0 0; background-size: 100% 100%; }
.p-world__wave { position: absolute; top: 0; left: 0; width: 100%; height: 41px; fill: var(--w1); }
.p-world--sea { --w1: var(--w-sea-1); --w2: var(--w-sea-2); }
.p-world--candy { --w1: var(--w-candy-1); --w2: var(--w-candy-2); }
.p-world--desert { --w1: var(--w-desert-1); --w2: var(--w-desert-2); }
.p-world--space { --w1: var(--w-space-1); --w2: var(--w-space-2); }
.p-world--snow { --w1: var(--w-snow-1); --w2: var(--w-snow-2); }
.p-world--space::before, .p-world--snow::before, .p-world--sea::before { content: ''; position: absolute; inset: 40px 0 0; opacity: .7; }
.p-world--space::before { background-image: radial-gradient(circle, var(--white) 1.5px, transparent 2px), radial-gradient(circle, var(--amber-soft) 1.2px, transparent 1.7px); background-size: 90px 110px, 140px 70px; background-position: 10px 20px, 60px 5px; }
.p-world--snow::before { background-image: radial-gradient(circle, var(--white) 3px, transparent 3.5px); background-size: 70px 80px; }
.p-world--sea::before { background-image: radial-gradient(circle, transparent 5px, var(--white) 5.5px, var(--white) 7px, transparent 7.5px); background-size: 120px 150px; background-position: 30px 40px; opacity: .5; }
.p-world__deco { position: absolute; width: 60px; height: 60px; filter: drop-shadow(0 4px 6px rgba(13, 45, 107, .12)); }
.p-world__deco.is-big { width: 78px; height: 78px; }
.p-world__deco.is-left { left: 2%; }
.p-world__deco.is-right { right: 2%; }
.p-world--space .p-trail path, .p-trail path { stroke: var(--white); }
.p-map .p-trail { z-index: 0; }
.p-map .p-nodes { position: relative; z-index: 1; }
.p-node { border: 4px solid var(--white); }
.p-node.is-locked { background: var(--line); }
.p-node-miss { position: absolute; top: -8px; right: -10px; display: inline-flex; align-items: center; gap: 1px; min-width: 34px; height: 30px; padding: 0 7px 0 4px; border: 3px solid var(--white); border-radius: var(--radius-pill); background: var(--red-deep); color: var(--white); font: 800 1rem/1 var(--font-title); box-shadow: var(--shadow-card); }
.p-node .p-node-miss .icon { width: 16px; height: 16px; }
.p-main .p-unit.tone-4 h2 { box-shadow: 0 0 0 3px var(--white), var(--shadow-card); }
.p-spot.tone-4 { --unit: var(--amber); }

/* Zone background — simplified */
.zone { position: relative; flex: 1; background: var(--mint-soft); }
body.p-play { background: var(--mint-soft); }
body.p-lesson { background: var(--unit, var(--mint)); }
.layout-child main { position: relative; z-index: 1; }

/* --- Lesson ------------------------------------------------ */
.p-lesson-top { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: var(--s3); padding: var(--s2) var(--gutter); background: transparent; }
.p-close { flex: none; width: var(--tap); height: var(--tap); display: grid; place-items: center; border-radius: 50%; background: var(--white); color: var(--muted); box-shadow: var(--shadow-card); }
.p-close .e-icon { width: 22px; height: 22px; }
.p-progress { flex: 1; height: 20px; border-radius: 10px; background: rgba(255, 255, 255, .55); box-shadow: inset 0 2px 0 rgba(13, 45, 107, .1); }
.p-progress > span { position: relative; display: block; width: 0; min-width: 20px; height: 100%; border-radius: 10px; background: var(--amber); box-shadow: inset 0 -4px 0 rgba(13, 45, 107, .12); transition: width var(--normal) ease; }
.p-progress > span::after { content: ''; position: absolute; right: -2px; top: -3px; width: 26px; height: 26px; border-radius: 50%; background: var(--white); box-shadow: inset 0 0 0 4px var(--amber); }
.p-lesson-main { width: min(920px, 100%); margin-inline: auto; padding: var(--s2) var(--gutter) var(--s5); font-size: var(--text-play); }
.p-play-area { min-height: 200px; }
.p-play-area .e-stage { padding: var(--s4); border-radius: var(--r-card); background: var(--white); box-shadow: var(--shadow-card); }
.layout-child .e-bar { position: sticky; bottom: var(--s2); z-index: 3; padding-top: var(--s3); }
.layout-child .e-continue { width: 100%; }

/* Continue button: amber with navy text, teal after a right answer */
.edulo .e-bar { margin-top: var(--s5); }
.edulo .e-continue { background: var(--amber); color: var(--navy) !important; border: 0; font: 800 22px/1 var(--font-title); box-shadow: 0 5px 0 var(--amber-deep); }
.edulo .e-continue:active { box-shadow: 0 0 0 var(--amber-deep); }
.edulo .e-bar.is-good .e-continue { background: var(--teal); box-shadow: 0 5px 0 var(--teal-text); }
.edulo .e-bar.is-good .e-continue:active { box-shadow: 0 0 0 var(--teal-text); }

/* Result screen */
.p-result { display: grid; justify-items: center; gap: var(--s2); max-width: 420px; margin: var(--s4) auto 0; text-align: center; padding: var(--s5); border-radius: var(--r-card); background: var(--white); box-shadow: var(--shadow-card); }
.p-result h1 { font-size: var(--title-1); color: var(--navy); -webkit-text-stroke: 0; text-shadow: none; animation: none; }
.p-result h1:focus { outline: none; }
.p-result-stars { display: flex; justify-content: center; gap: var(--s2); margin: 0; }
.p-result-stars span { width: 80px; height: 80px; display: block; color: var(--amber); animation: star-in .4s var(--ease) backwards; }
.p-result-stars .e-icon { width: 100%; height: 100%; }
.p-result-stars .off { color: var(--line); }
.p-result-stars .off .e-icon path, .p-result-stars .off .e-icon polygon { fill: var(--line); stroke: var(--line); }
.p-result-xp { margin: 0; font: 700 2.25rem/1 var(--font-title); color: var(--teal-text); }
.p-result-next { margin: 0; padding: var(--s2) var(--s4); border: 3px solid var(--amber); border-radius: var(--radius-m); background: var(--sun-pale); color: var(--navy); font-weight: 800; }
.p-result-new { margin: 0; padding: var(--s1) var(--s4); border-radius: var(--radius-pill); background: var(--mint); font-weight: 700; }
.p-result .btn { margin-top: var(--s2); }
.p-result-miss-title { margin: var(--s3) 0 0; color: var(--navy); font-weight: 800; }
.p-result-miss { display: grid; gap: var(--s2); width: 100%; margin: 0; padding: 0; list-style: none; text-align: left; }
.p-result-miss li { display: flex; gap: var(--s2); align-items: flex-start; padding: var(--s2) var(--s3); border: 2px solid var(--red-line); border-radius: var(--radius-s); background: var(--red-pale); color: var(--ink); font-weight: 700; }
.p-result-miss .e-icon { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--red-deep); }
.p-result-text { margin: 0; color: var(--ink); font-size: 1.125rem; font-weight: 700; }
.p-fix-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s2); margin-bottom: var(--s3); padding: var(--s2) var(--s4); border-radius: var(--radius-pill); background: var(--white); box-shadow: var(--shadow-card); }
.p-fix-head p { margin: 0; color: var(--navy); font-weight: 800; }
.p-fix-stars { display: flex; gap: 4px; }
.p-fix-stars span { width: 28px; height: 28px; transition: transform var(--normal) var(--ease); }
.p-fix-stars .e-icon { width: 100%; height: 100%; }
.p-fix-stars span:not(.on) .e-icon path, .p-fix-stars span:not(.on) .e-icon polygon { fill: var(--line); stroke: var(--line); }
.p-fix-stars span.on { transform: scale(1.15); }
.p-result + .e-lulu .e-lulu-art, .is-dancing { animation: dance .7s ease-in-out infinite alternate; }

/* Confetti */
.p-confetti { position: fixed; inset: 0; z-index: 9; overflow: hidden; pointer-events: none; }
.p-confetti i { position: absolute; top: -20px; width: 12px; height: 18px; border-radius: 4px; animation: fall 2s ease-in forwards; }
.p-confetti i[data-color='0'] { background: var(--blue); }
.p-confetti i[data-color='1'] { background: var(--amber); }
.p-confetti i[data-color='2'] { background: var(--teal); }
.p-confetti i[data-color='3'] { background: var(--pink); }

[data-skin='albastru'] { --lulu: var(--blue); --lulu-deep: var(--pink); }
[data-skin='verde'] { --lulu: var(--teal); --lulu-deep: var(--teal-text); }
[data-skin='roz'] { --lulu: var(--pink); --lulu-deep: var(--pink-text); }

/* --- Scroll reveal ----------------------------------------- */
[data-reveal] > * {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .2s ease-out, transform .2s ease-out;
}
[data-reveal] > *.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   ANIMATIONS (minimal)
   ============================================================ */
@keyframes pulse { 50% { transform: scale(1.04); opacity: .6; } }
@keyframes star-in { from { transform: scale(.2); opacity: 0; } }
@keyframes fall { to { transform: translateY(105vh) rotate(540deg); } }
@keyframes blink { 0%, 95%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
@keyframes dance { to { transform: translateY(-10px) rotate(4deg); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 768px) {
    :root, .edulo { --gutter: clamp(20px, 4vw, 32px); }
    .grid--2 { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(3, 1fr); }
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .counters { grid-template-columns: repeat(4, 1fr); }
    .nope { grid-template-columns: repeat(2, 1fr); }
    .xp-pill { display: block; }
    .site-footer__grid { grid-template-columns: 1.3fr repeat(3, 1fr); }
    .site-footer__grid:has(> nav:nth-of-type(4)) { grid-template-columns: 1.3fr repeat(4, 1fr); }
    .about { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .split { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
    .blocks { grid-template-columns: repeat(2, auto); justify-content: center; }
    .block:nth-child(2), .block:nth-child(3) { margin: 0; }
    .game-tabs { left: 50%; right: auto; width: 560px; transform: translateX(-50%); border-radius: var(--r-card); }
    .p-lesson-main { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: var(--s5); align-items: end; }
    .p-lesson-main .e-lulu { flex-direction: column-reverse; align-items: center; position: sticky; bottom: var(--s4); }
    .p-lesson-main .e-bubble { margin: 0 0 var(--s2); }
    .e-options[data-count='3']:has(.e-tile-num) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1000px) {
    .grid--4 { grid-template-columns: repeat(4, 1fr); }
    .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 500px); }
    .hero { padding-block: var(--s7); }
    .steps { grid-template-columns: repeat(4, 1fr); }
    .step { grid-template-columns: minmax(0, 1fr); row-gap: var(--s2); }
    .step::before { grid-row: auto; }
    .topics { grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
    .benefits, .demos { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 479px) {
    .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .marquee__track { animation: none; }
    [data-reveal] > * { opacity: 1; transform: none; }
}

/* Child home: pick a subject before the map */
.p-home { display: grid; gap: var(--s5); padding-top: var(--s3); }
.p-home-head { display: flex; align-items: center; gap: var(--s3); }
.p-home-mascot { flex: none; width: 84px; height: 84px; }
.p-home-mascot .mascot, .p-home-mascot svg { width: 100%; height: 100%; }
.p-home-hi { margin: 0; color: var(--muted); font: 700 1.125rem/1.2 var(--font-title); }
.p-main .p-home-title { margin: 0; color: var(--navy); font-size: 2rem; -webkit-text-stroke: 0; text-shadow: none; }
.p-subjects { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.p-subject {
    display: grid; justify-items: center; gap: var(--s2); height: 100%; padding: var(--s5) var(--s3) var(--s4);
    border: 4px solid var(--unit); border-radius: var(--r-card); background: var(--white); color: var(--navy);
    text-align: center; text-decoration: none; box-shadow: 0 6px 0 var(--unit-deep);
    transition: transform var(--fast) ease, box-shadow var(--fast) ease;
}
.p-subject:hover { transform: translateY(-3px); }
.p-subject:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--unit-deep); }
.p-subject-icon { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--unit-pale); color: var(--navy); font: 800 1.75rem/1 var(--font-title); }
.p-subject-icon svg { width: 46px; height: 46px; color: var(--teal-text); }
.p-subject-name { font: 800 1.25rem/1.15 var(--font-title); }
.p-subject-progress { width: 100%; display: grid; gap: var(--s1); }
.p-subject-bar { display: block; height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; }
.p-subject-bar > span { display: block; height: 100%; min-width: 10px; border-radius: 5px; background: var(--unit); }
.p-subject-count { color: var(--muted); font-size: .875rem; font-weight: 700; }
.p-subject.is-soon { border-color: var(--line); box-shadow: 0 6px 0 var(--line); opacity: .75; }
.p-subject.is-soon:hover { transform: none; }
.p-subject.is-soon .p-subject-icon { background: var(--line); }

/* Map: home button and the chosen subject */
.p-map-top { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s3); }
.p-home-btn {
    display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 44px; padding: var(--s1) var(--s4) var(--s1) var(--s3);
    border-radius: var(--radius-pill); background: var(--navy); color: var(--white); font: 700 1rem/1 var(--font-body);
    text-decoration: none; box-shadow: var(--shadow-card);
}
.p-home-btn [data-icon] { width: 20px; height: 20px; }
.p-home-btn .e-icon { display: block; width: 20px; height: 20px; }
.p-map-subject { margin: 0; padding: var(--s1) var(--s5); border-radius: var(--radius-pill); background: var(--white); color: var(--navy); font: 800 clamp(1.5rem, 4vw, 1.875rem)/1.3 var(--font-title); box-shadow: var(--shadow-card); }

/* Lesson continue button: the lesson page is teal, so it is navy here in both states */
.layout-child .edulo .e-continue, .layout-child.edulo .e-continue,
.layout-child .e-bar.is-good .e-continue, .layout-child .e-bar .e-continue {
    background: var(--navy); color: var(--white) !important; box-shadow: 0 5px 0 #061A42;
}
.layout-child .e-bar .e-continue:active { box-shadow: 0 0 0 #061A42; }

/* Weekly ranking */
.p-rank { display: grid; gap: var(--s5); padding-top: var(--s3); }
.p-rank-head { text-align: center; }
.p-main .p-rank-head h1 { margin: 0; color: var(--navy); font-size: 1.875rem; -webkit-text-stroke: 0; text-shadow: none; }
.p-rank-head p { margin: var(--s1) auto 0; color: var(--muted); font-weight: 600; }
.p-podium { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: var(--s2); }
.p-podium-step.place-1 { grid-column: 2; grid-row: 1; }
.p-podium-step.place-2 { grid-column: 1; grid-row: 1; }
.p-podium-step.place-3 { grid-column: 3; grid-row: 1; }
.p-podium-step { display: grid; justify-items: center; gap: var(--s1); min-width: 0; text-align: center; }
.p-podium-mascot { width: 72px; height: 72px; }
.p-podium-mascot svg, .p-rank-mascot svg { width: 100%; height: 100%; display: block; }
.place-1 .p-podium-mascot { width: 92px; height: 92px; }
.p-podium-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--navy); font: 800 1rem/1.2 var(--font-title); }
.p-podium-xp { padding: 2px var(--s2); border-radius: var(--radius-pill); background: var(--white); color: var(--navy); font-weight: 800; font-size: .875rem; box-shadow: var(--shadow-card); }
.p-podium-block { display: grid; place-items: center; width: 100%; border-radius: var(--r-card) var(--r-card) 0 0; color: var(--navy); font: 800 2rem/1 var(--font-title); }
.place-1 .p-podium-block { height: 120px; background: var(--amber); }
.place-2 .p-podium-block { height: 88px; background: var(--teal-bright); }
.place-3 .p-podium-block { height: 64px; background: var(--sun-pale); border: 3px solid var(--amber); border-bottom: 0; }
.p-podium-step.is-me .p-podium-name { color: var(--pink-text); }
.p-rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.p-rank-list li { display: flex; align-items: center; gap: var(--s3); padding: var(--s2) var(--s4); border: 3px solid transparent; border-radius: var(--r-card); background: var(--white); box-shadow: var(--shadow-card); }
.p-rank-list li.is-me { border-color: var(--pink); }
.p-rank-place { width: 32px; color: var(--muted); font: 800 1.25rem/1 var(--font-title); text-align: center; }
.p-rank-mascot { flex: none; width: 44px; height: 44px; }
.p-rank-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--navy); font: 800 1.0625rem/1.2 var(--font-title); }
.p-rank-xp { color: var(--navy); font-weight: 800; }
.p-rank-me { margin: 0; padding: var(--s3) var(--s4); border: 3px solid var(--pink); border-radius: var(--r-card); background: var(--white); color: var(--navy); font-weight: 800; text-align: center; }
.game-tabs { grid-template-columns: repeat(5, 1fr); }
.game-tabs a { font-size: .875rem; }

/* Blog */
.blog { padding-top: var(--s6); }
.blog .crumbs { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s4); color: var(--muted); font-size: .9375rem; font-weight: 600; }
.blog .crumbs a { color: var(--muted); }
.blog .crumbs [aria-current] { color: var(--navy); font-weight: 800; }
.blog-head { max-width: 46rem; margin-bottom: var(--s5); }
.blog-head h1 { margin: var(--s3) 0 var(--s2); color: var(--navy); font-size: var(--title-1); -webkit-text-stroke: 0; text-shadow: none; }
.blog-head p { margin: 0; color: var(--muted); font-size: 1.125rem; }
.blog-cats { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s6); }
.blog-cats a { display: inline-flex; align-items: center; min-height: 44px; padding: var(--s2) var(--s4); border: 2px solid var(--line); border-radius: var(--radius-pill); background: var(--white); color: var(--navy); font-weight: 700; text-decoration: none; }
.blog-cats a:hover { border-color: var(--teal); }
.blog-cats a[aria-current] { border-color: var(--navy); background: var(--navy); color: var(--white); }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--s5); }
/* At most three a row (six cards make two full rows), two on a tablet, one on a phone. */
.post-grid--3 { grid-template-columns: 1fr; }
@media (min-width: 600px) { .post-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .post-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.post-grid--2 { grid-template-columns: 1fr; }
@media (min-width: 600px) { .post-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.games-more { margin-top: var(--s6); }
.games-more h2 { color: var(--navy); -webkit-text-stroke: 0; text-shadow: none; }
.post-card { display: flex; flex-direction: column; overflow: hidden; border: 3px solid var(--c, var(--teal)); border-radius: var(--r-card); background: var(--white); box-shadow: var(--shadow-card); transition: transform var(--fast) ease; }
.post-card:hover { transform: translateY(-3px); }
.post-card--teal { --c: var(--teal); --cp: var(--mint); }
.post-card--amber { --c: var(--amber); --cp: var(--sun-pale); }
.post-card--pink { --c: var(--pink); --cp: var(--coral-pale); }
.post-card--blue { --c: var(--blue); --cp: var(--sky-pale); }
.post-card__media { display: block; aspect-ratio: 1200 / 630; background: var(--cp, var(--mint)); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card__art { display: grid; place-items: center; height: 100%; }
.post-card__body { display: grid; gap: var(--s2); padding: var(--s4) var(--s5) var(--s5); }
.post-card__cat { justify-self: start; padding: 2px var(--s3); border-radius: var(--radius-pill); background: var(--navy); color: var(--white); font-size: .8125rem; font-weight: 800; text-decoration: none; }
.post-card__title { margin: 0; font-size: 1.25rem; line-height: 1.25; -webkit-text-stroke: 0; text-shadow: none; }
.post-card__title a { color: var(--navy); text-decoration: none; }
.post-card__title a:hover { text-decoration: underline; }
.post-card__text { margin: 0; color: var(--muted); }
.post-card__meta { margin: 0; color: var(--muted); font-size: .875rem; font-weight: 700; }
.blog-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); list-style: none; margin: var(--s6) 0 0; padding: 0; }
.blog-pager a, .blog-pager span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 var(--s3); border-radius: var(--radius-pill); background: var(--white); color: var(--navy); font-weight: 800; text-decoration: none; box-shadow: var(--shadow-card); }
.blog-pager .active a { background: var(--navy); color: var(--white); }
.post__head h1 { margin: var(--s3) 0 var(--s2); color: var(--navy); font-size: var(--title-1); line-height: 1.12; -webkit-text-stroke: 0; text-shadow: none; }
.post__meta { color: var(--muted); font-weight: 700; }
.post__cover { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; margin: var(--s4) 0; border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.post__toc { margin: var(--s5) 0; padding: var(--s4) var(--s5); }
.post__toc-title { margin: 0 0 var(--s2); color: var(--navy); font-weight: 800; }
.post__toc ol { margin: 0; padding-left: 0; list-style: none; display: grid; gap: var(--s2); }
.post__toc a { color: var(--navy); font-weight: 600; text-decoration: none; }
.post__toc a:hover { color: var(--pink-text); text-decoration: underline; }
.post__body { font-size: 1.125rem; }
.post__body h2 { margin-top: var(--s6); color: var(--navy); font-size: var(--title-3); scroll-margin-top: 96px; -webkit-text-stroke: 0; text-shadow: none; }
.post__body h3 { margin-top: var(--s5); color: var(--navy); }
.post__body p, .post__body li { line-height: 1.75; }
.post__body a { color: var(--pink-text); font-weight: 700; }
.post__body blockquote { margin: var(--s5) 0; padding: var(--s4) var(--s5); border: 3px solid var(--amber); border-radius: var(--r-card); background: var(--sun-pale); }
.post__body img { max-width: 100%; height: auto; border-radius: var(--r-card); }
.post__body table { width: 100%; border-collapse: collapse; margin: var(--s4) 0; }
.post__body th, .post__body td { padding: var(--s2) var(--s3); border: 1px solid var(--line); text-align: left; }
.post__faq { margin-top: var(--s6); display: grid; gap: var(--s3); }
.post__faq h2 { color: var(--navy); -webkit-text-stroke: 0; text-shadow: none; }
.faq-item { padding: var(--s4) var(--s5); }
.faq-item summary { cursor: pointer; color: var(--navy); font-weight: 800; }
.faq-item p { margin: var(--s2) 0 0; }
.post__cta { display: flex; align-items: center; gap: var(--s4); margin-top: var(--s6); padding: var(--s5); border: 3px solid var(--teal); }
.post__cta-title { margin: 0 0 var(--s1); color: var(--navy); font: 800 1.375rem/1.2 var(--font-title); }
.post__cta p { margin: 0 0 var(--s3); }
.post__related { margin-top: var(--s7); }
.post__related h2 { color: var(--navy); -webkit-text-stroke: 0; text-shadow: none; }
@media (max-width: 560px) { .post__cta { flex-direction: column; text-align: center; } }
.post { display: block; }
.blog-intro { max-width: 820px; margin: var(--s7) auto 0; }

/* reCAPTCHA v2 on the public forms */
.captcha-box { min-height: 78px; margin: var(--s3) 0; }
.captcha-note { margin: 0 0 var(--s3); color: var(--muted); font-size: .875rem; }
@media (max-width: 360px) { .captcha-box { transform: scale(.9); transform-origin: 0 0; } }

/* Parents' forum */
.f-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s3); margin-bottom: var(--s5); }
.f-cat { display: grid; gap: var(--s1); height: 100%; padding: var(--s4); border: 2px solid var(--line); border-radius: var(--r-card); background: var(--white); color: var(--navy); text-decoration: none; box-shadow: var(--shadow-card); transition: transform var(--fast) ease, border-color var(--fast) ease; }
.f-cat:hover { transform: translateY(-2px); border-color: var(--teal); }
.f-cat strong { font: 800 1.125rem/1.25 var(--font-title); }
.f-cat span { color: var(--muted); font-size: var(--text-small); line-height: 1.4; }
.f-cat small { margin-top: auto; color: var(--teal-text); font-weight: 800; font-size: var(--text-small); }
.f-list { display: grid; }
.f-row { display: grid; gap: 4px; padding: var(--s3) 0; border-top: 1px solid var(--line); }
.f-row:first-child { border-top: 0; padding-top: 0; }
.f-row__title { color: var(--navy); font-weight: 800; text-decoration: none; line-height: 1.3; }
.f-row__title:hover { text-decoration: underline; }
.f-row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--s2); color: var(--muted); font-size: var(--text-small); }
.f-row__meta > span:not(.f-tag) + span:not(.f-tag)::before { content: '·'; margin-right: var(--s2); }
.f-tag { display: inline-block; margin: 0; padding: 2px 10px; border-radius: var(--radius-pill); background: var(--mint-soft); color: var(--navy); font-size: .8125rem; font-weight: 800; }
.f-tag--new { background: var(--pink-text); color: var(--white); }
.f-tag--wait { background: var(--sun-pale); border: 1px solid var(--amber); }
.f-tag--no { background: var(--coral-pale); border: 1px solid var(--coral); }
.f-rules__title { margin: 0 0 var(--s2); font-size: 1.125rem; }
.f-rules ul { margin: 0; padding-left: 1.2em; display: grid; gap: var(--s2); font-size: var(--text-small); line-height: 1.45; }
.f-post { margin-bottom: var(--s3); }
.f-post--topic { border-color: var(--teal); }
.f-post--author { border-color: var(--mint); }
.f-post__title { margin: 0; font-size: clamp(1.5rem, 4vw, 2rem); }
.f-post__by { color: var(--muted); font-size: var(--text-small); }
.f-post__by strong { color: var(--navy); }
.f-post__body p { margin: 0 0 var(--s3); line-height: 1.6; overflow-wrap: anywhere; }
.f-post__body p:last-child { margin-bottom: 0; }
.f-replies { margin: var(--s5) 0 var(--s3); font-size: 1.25rem; }
.f-thread { display: grid; }
.f-report summary { display: inline-block; color: var(--muted); font-size: var(--text-small); font-weight: 700; cursor: pointer; }
.f-report form { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s2); }
.f-report input { flex: 1 1 200px; min-height: 44px; padding: 0 var(--s3); border: 2px solid var(--line); border-radius: var(--radius-s); font: inherit; }
.f-answer { margin-top: var(--s5); }
.pager { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s4) 0 0; padding: 0; list-style: none; }
.pager a, .pager span { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 var(--s2); border: 2px solid var(--line); border-radius: var(--radius-s); color: var(--navy); font-weight: 700; text-decoration: none; }
.pager .active a { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* Pictures uploaded in the admin (image slots) */
.mascot--photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.card-fill__art { display: grid; place-items: center; margin: 0 auto var(--s3); width: 112px; height: 112px; }
.card-fill__art img, .card-fill__art svg { width: 100%; height: 100%; object-fit: contain; }
.card-fill__art--start { margin: 0 0 var(--s2); width: 88px; height: 88px; }
.about-art { display: block; width: min(100%, 320px); height: auto; margin-inline: auto; }
/* A round backdrop centred on the picture beside it, whatever the screen width. */
.art-disc { position: relative; display: grid; place-items: center; }
.art-disc__circle { position: absolute; left: 50%; top: 50%; width: min(100%, 400px); aspect-ratio: 1; border-radius: 50%; background: var(--mint); transform: translate(-50%, -50%); pointer-events: none; }
.art-disc .about-art { position: relative; }
.deco-art { display: grid; place-items: center; margin: 0 auto var(--s3); width: min(100%, 360px); }
.deco-art img { display: block; width: 100%; height: auto; }
.deco-art--small { width: min(60%, 180px); }
.photo-art { margin-top: var(--s5); max-width: 480px; }
.photo-art img { display: block; width: 100%; height: auto; border-radius: var(--radius-m); border: 3px solid var(--white); box-shadow: var(--shadow-card); }
.about-art--sm { width: min(100%, 260px); }
.head-art { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.head-art h1 { margin: 0; }
.blog-head.head-art { max-width: none; }
.blog-head.head-art > div:first-child { max-width: 46rem; }
.head-art__img { flex: 0 0 auto; width: clamp(140px, 24vw, 260px); }
.head-art__img img { display: block; width: 100%; height: auto; }
@media (max-width: 560px) {
    .head-art__img { display: none; }
}
.p-unit-icon { display: inline-block; width: 40px; height: 40px; margin: -6px var(--s2) -6px 0; padding: 3px; border-radius: 12px; background: var(--white); vertical-align: middle; }
.p-unit-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.map-end { margin: var(--s6) auto var(--s4); max-width: 520px; text-align: center; }
.map-end img { display: block; width: 100%; height: 300px; object-fit: cover; object-position: 50% 0; border: 4px solid var(--white); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.map-end figcaption { margin-top: var(--s3); color: var(--navy); font-weight: 800; font-size: 1.125rem; }
.card-top__icon img { width: 64px; height: 64px; object-fit: contain; }
.section--navy .card-fill h3, .section--navy .card-fill p { color: inherit; }
/* Menu button: hamburger closed, X open */
/* Mobile menu: the two icons sit on top of each other and turn into one another; the panel drops down
   over a dimmed page, its links come in one after another. site.js plays the same thing backwards on close. */
.menu > summary { position: relative; z-index: 2; transition: transform var(--fast) ease, background-color var(--fast) ease; }
.menu > summary:active { transform: scale(.92); }
.menu > summary .icon { position: absolute; transition: transform .35s var(--ease), opacity .25s ease; }
.menu .menu__close { opacity: 0; transform: rotate(-90deg) scale(.6); }
.menu[open] .menu__open { opacity: 0; transform: rotate(90deg) scale(.6); }
.menu[open] .menu__close { opacity: 1; transform: none; }
.menu[open] > summary { background: var(--navy); }
.menu[open]::before { content: ''; position: fixed; inset: 68px 0 0; z-index: -1; background: rgba(13, 45, 107, .35); animation: menu-fade .3s ease both; }
.menu__panel { border-top: 3px solid var(--amber); transform-origin: 50% 0; }
.menu[open] .menu__panel { animation: menu-drop .38s cubic-bezier(.2, .9, .3, 1) both; }
.menu[open] .menu__panel > * { animation: menu-item .4s cubic-bezier(.2, .9, .3, 1.1) both; }
.menu[open] .menu__panel > :nth-child(1) { animation-delay: .06s; }
.menu[open] .menu__panel > :nth-child(2) { animation-delay: .1s; }
.menu[open] .menu__panel > :nth-child(3) { animation-delay: .14s; }
.menu[open] .menu__panel > :nth-child(4) { animation-delay: .18s; }
.menu[open] .menu__panel > :nth-child(5) { animation-delay: .22s; }
.menu[open] .menu__panel > :nth-child(6) { animation-delay: .26s; }
.menu[open] .menu__panel > :nth-child(n+7) { animation-delay: .3s; }
.menu.is-closing .menu__panel { animation: menu-lift .22s ease-in both; }
.menu.is-closing .menu__panel > * { animation: none; }
.menu.is-closing::before { animation: menu-fade .22s ease-in reverse both; }
.menu.is-closing .menu__open { opacity: 1; transform: none; }
.menu.is-closing .menu__close { opacity: 0; transform: rotate(-90deg) scale(.6); }
.menu.is-closing > summary { background: var(--pink-strong); }
@keyframes menu-drop { from { opacity: 0; transform: translateY(-16px) scaleY(.92); clip-path: inset(0 0 100% 0 round 0 0 16px 16px); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 0 0 16px 16px); } }
@keyframes menu-lift { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-12px); } }
@keyframes menu-item { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes menu-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    .menu > summary .icon, .menu[open] .menu__panel, .menu[open] .menu__panel > *, .menu[open]::before { transition: none; animation: none; }
}
/* "Cum funcționează" callout: text and Lulu side by side, stacked on phones */
.callout--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: var(--s6); align-items: center; }
@media (max-width: 720px) {
    .callout--split { grid-template-columns: 1fr; gap: var(--s4); text-align: center; }
    .callout--split p { margin-inline: auto; }
    .callout--split .about-art { width: min(70%, 240px); }
}

/* Footer legal line, ANPC SAL pictogram (250x50, ANPC order 449/2022 as changed by 270/2026) */
.site-footer__legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3) var(--s5); margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid rgba(255, 255, 255, .15); }
.site-footer__legal .site-footer__copy { margin: 0; }
.anpc-link { display: inline-block; line-height: 0; border-radius: 6px; }
.anpc-link img { display: block; width: 150px; max-width: 100%; height: auto; }
.anpc-badge { display: inline-flex; align-items: center; gap: 10px; width: 250px; max-width: 100%; height: 50px; padding: 0 12px; border-radius: 6px; background: #fff; color: #0b3f8f; line-height: 1.15; text-align: left; }
.anpc-badge strong { font: 900 18px/1 var(--font-body); letter-spacing: .02em; padding-right: 10px; border-right: 2px solid #0b3f8f; }
.anpc-badge span { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }

/* Cookie notice */
.cookie-note { position: fixed; z-index: 60; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); width: min(640px, calc(100% - 24px)); padding: var(--s3) var(--s4); border: 3px solid var(--teal); border-radius: var(--r-card); background: var(--white); color: var(--navy); box-shadow: var(--shadow-card); }
.cookie-note[hidden] { display: none; }
.cookie-note p { flex: 1 1 260px; margin: 0; font-size: var(--text-small); line-height: 1.45; }
.cookie-note a { color: var(--navy); font-weight: 800; }

/* Contact */
.contact { display: grid; gap: var(--s6); align-items: start; }
@media (min-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.contact__intro h1 { margin: var(--s3) 0 var(--s2); }
.contact__facts { display: grid; gap: var(--s3); margin: var(--s5) 0; }
.contact__facts dt { color: var(--muted); font-size: var(--text-small); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.contact__facts dd { margin: 2px 0 0; font-weight: 700; }
.contact__facts a { color: var(--navy); }
.contact__note, .contact__privacy { color: var(--muted); font-size: var(--text-small); }
.contact__card textarea { width: 100%; }
.contact__sent { display: grid; justify-items: center; gap: var(--s3); padding: var(--s5) 0; text-align: center; }

/* Company details not filled in yet, on draft legal pages */
mark.todo { padding: 0 4px; border-radius: 4px; background: var(--sun-pale); color: var(--navy); font-weight: 700; }
.doc .doc-meta { color: var(--muted); font-size: var(--text-small); }
.doc table { width: 100%; border-collapse: collapse; font-size: var(--text-small); }
.doc th, .doc td { padding: 8px 10px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc .table-wrap { overflow-x: auto; margin: var(--s3) 0; }
@media (max-width: 560px) {
    .doc table, .doc tbody, .doc tr, .doc td { display: block; width: 100%; }
    .doc thead { display: none; }
    .doc tr { margin-bottom: var(--s3); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
    .doc td { border: 0; border-top: 1px solid var(--line); }
    .doc td:first-child { border-top: 0; background: var(--mint-soft); font-weight: 800; }
}

/* Parent header on phones: logo + 3 links + Joacă must fit in 320 px */
@media (max-width: 480px) {
    .site-header__row { gap: var(--s2); }
    .nav-parent { gap: 2px; }
    .nav-parent a:not(.btn) { padding: 0 10px; font-size: .9375rem; }
    .nav-parent .btn { padding-inline: 14px; }
}
@media (max-width: 360px) {
    .nav-parent a:not(.btn) { padding: 0 7px; }
    .nav-parent .btn { padding-inline: 10px; }
}

/* Medal shelf on /materii: two per row on phones */
@media (max-width: 599px) {
    .p-shelf__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .p-shelf__list .medal--compact { padding: var(--s3); }
    .p-shelf__list .medal--compact .medal__art { width: 72px; height: 84px; }
}

/* Game bar: the daily goal is a pill like the stars and the streak, bar and minutes on one line */
.game-bar .p-goal { display: flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s3); border-radius: var(--radius-pill); background: var(--white); box-shadow: var(--shadow-card); }
.game-bar .p-goal-bar { flex: 1; min-width: 28px; height: 12px; }
.game-bar .p-goal-text { flex: none; white-space: nowrap; font-size: .875rem; }
.game-bar .p-stats .pill { padding-inline: var(--s3); }
@media (max-width: 400px) {
    .game-bar { gap: 6px; }
    .game-bar .p-stats { gap: 6px; }
    .game-bar .p-stats .pill { padding-inline: 10px; font-size: 1.0625rem; gap: 4px; }
    .game-bar .p-goal { padding: 0 10px; gap: 6px; }
    .game-bar .p-goal-text { font-size: .8125rem; }
}

/* Cookie button, bottom left: opens the cookie note again at any time */
.cookie-fab { position: fixed; z-index: 59; left: max(12px, env(safe-area-inset-left)); bottom: max(12px, env(safe-area-inset-bottom)); display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 3px solid var(--white); border-radius: 50%; background: var(--sun-pale); box-shadow: var(--shadow-card); cursor: pointer; transition: transform var(--fast) ease; }
.cookie-fab:hover { transform: rotate(-12deg) scale(1.06); }
.cookie-fab:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.cookie-fab svg { width: 30px; height: 30px; }
@media (max-width: 720px) { .cookie-note { bottom: calc(max(12px, env(safe-area-inset-bottom)) + 60px); } }

/* Text links: visible in running text, underline and colour on hover */
.doc a, .contact a, .contact__note a, .contact__privacy a, .cookie-note a, .check a, .muted a, p > a:not([class]), li > a:not([class]) { text-underline-offset: 3px; text-decoration-thickness: 2px; transition: color var(--fast) ease, text-decoration-color var(--fast) ease; }
.doc a, .contact__note a, .contact__privacy a, .cookie-note a, .check a { color: var(--teal-text); font-weight: 700; text-decoration: underline; text-decoration-color: currentColor; }
.doc a:hover, .contact a:hover, .contact__note a:hover, .contact__privacy a:hover, .cookie-note a:hover, .check a:hover, p > a:not([class]):hover, li > a:not([class]):hover { color: var(--pink-text); text-decoration: underline; text-decoration-color: var(--pink); }
.link:hover, .edulo button.link:hover { text-decoration-color: var(--pink-text); text-decoration-thickness: 3px; }
.site-footer a:hover, .site-footer li a:hover { color: var(--amber); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.site-footer .logo:hover, .site-footer .anpc-link:hover { text-decoration: none; }
.nav-parent a:not(.btn):not([aria-current]):hover { background: var(--mint-soft); }
.nav a:not(.btn):hover, .menu__panel a:not(.btn):hover { color: var(--pink-text); text-decoration: underline; text-decoration-color: var(--pink); text-underline-offset: 6px; text-decoration-thickness: 3px; }

/* Cookie settings: switches inside the cookie note */
.cookie-note { max-height: calc(100dvh - 100px); overflow-y: auto; }
.cookie-note__actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-left: auto; }
.cookie-prefs { flex: 1 1 100%; }
.cookie-prefs ul { display: grid; gap: var(--s2); margin: 0; }
.cookie-prefs li { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s2); padding: var(--s2) var(--s3); border: 2px solid var(--line); border-radius: 14px; }
.switch { display: flex; align-items: flex-start; gap: var(--s3); cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { position: relative; flex: none; width: 44px; height: 26px; margin-top: 2px; border-radius: 13px; background: var(--line); transition: background var(--fast) ease; }
.switch__track::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(13, 45, 107, .3); transition: transform var(--fast) ease; }
.switch input:checked + .switch__track { background: var(--teal); }
.switch input:checked + .switch__track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--navy); outline-offset: 2px; }
.switch input:disabled + .switch__track { opacity: .6; }
.switch input:disabled { cursor: default; }
.switch__text { display: grid; gap: 2px; }
.switch__text strong { font-size: .9375rem; }
.switch__text small { color: var(--muted); font-size: .8125rem; line-height: 1.35; }
.switch.is-off { cursor: default; }
.cookie-tag { flex: none; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--mint); color: var(--navy); font-size: .75rem; font-weight: 800; white-space: nowrap; }
.cookie-tag--none { background: var(--line); }

/* --- Trust strip (landing): icons that draw themselves in ---- */
.trust {
    list-style: none; margin: var(--s7) 0 0; padding: 0;
    display: grid; gap: var(--s4);
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.trust__item {
    --tc: var(--teal); --tp: var(--mint); --i: 0;
    display: flex; flex-direction: column; align-items: center; gap: var(--s3);
    padding: var(--s5) var(--s3) var(--s4);
    border: 2px solid var(--tc);
    border-radius: var(--r-card);
    background: var(--white);
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: transform var(--fast) ease, box-shadow var(--fast) ease;
}
.trust__item:last-child:nth-child(odd) { grid-column: 1 / -1; }
.trust__item:nth-child(2) { --i: 1; } .trust__item:nth-child(3) { --i: 2; } .trust__item:nth-child(4) { --i: 3; } .trust__item:nth-child(5) { --i: 4; }
.trust__item:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(13, 45, 107, .14); }
.trust__item--pink { --tc: var(--pink); --tp: var(--pink-pale); }
.trust__item--blue { --tc: var(--blue); --tp: var(--sky-pale); }
.trust__item--amber { --tc: var(--amber); --tp: var(--sun-pale); }
.trust__icon {
    display: grid; place-items: center;
    width: 88px; height: 88px;
    border-radius: 50%;
    background: var(--tp);
    transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.trust__item:hover .trust__icon { transform: rotate(-8deg) scale(1.08); }
.trust__icon svg { width: 56px; height: 56px; overflow: visible; }
.trust__fill { fill: var(--tc); opacity: .35; }
.trust__fill--alt { opacity: .6; }
.trust__line, .trust__tick, .trust__no { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.trust__line { stroke: var(--navy); stroke-width: 2.6; }
.trust__tick { stroke: var(--navy); stroke-width: 3.2; }
.trust__no { stroke: var(--pink-strong); stroke-width: 4; }
.trust__label { font: 800 15px/1.25 var(--font-body); color: var(--navy); }

/* site.js arms the strip (lines hidden), then draws it once it is on screen. */
.trust.is-armed :is(.trust__line, .trust__tick, .trust__no) { stroke-dashoffset: 1; }
.trust.is-armed .trust__fill { opacity: 0; transform: scale(.6); transform-origin: 24px 26px; transform-box: view-box; }
.trust.is-drawn .trust__fill { opacity: .35; transform: none; transition: opacity .4s ease calc(var(--i) * .15s), transform .5s cubic-bezier(.34, 1.56, .64, 1) calc(var(--i) * .15s); }
.trust.is-drawn .trust__fill--alt { opacity: .6; }
.trust.is-drawn .trust__line { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s ease-in-out calc(var(--i) * .15s + .1s); }
.trust.is-drawn .trust__tick { stroke-dashoffset: 0; transition: stroke-dashoffset .45s ease-out calc(var(--i) * .15s + 1s); }
.trust.is-drawn .trust__no { stroke-dashoffset: 0; transition: stroke-dashoffset .35s ease-in calc(var(--i) * .15s + 1.15s); }
.trust.is-drawn .trust__icon { animation: trust-pop .5s cubic-bezier(.34, 1.56, .64, 1) calc(var(--i) * .15s + 1.2s); }
@keyframes trust-pop { 50% { transform: scale(1.12); } }

@media (min-width: 600px) { .trust { grid-template-columns: repeat(3, minmax(0, 1fr)); } .trust__item:last-child:nth-child(odd) { grid-column: auto; } }
@media (min-width: 960px) { .trust { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) {
    .trust.is-armed :is(.trust__line, .trust__tick, .trust__no) { stroke-dashoffset: 0; }
    .trust.is-armed .trust__fill { opacity: .35; transform: none; }
    .trust.is-drawn .trust__icon { animation: none; }
}

/* --- Ajutor în plus: settings from the child's profile --------- */
.assist-list { display: grid; gap: var(--s2); }
.assist-opt { display: flex; align-items: center; gap: var(--s3); min-height: var(--tap, 48px); padding: var(--s2) var(--s4); border: 2px solid var(--line); border-radius: var(--radius-m); background: var(--white); font-weight: 700; color: var(--navy); cursor: pointer; }
.assist-opt:has(input:checked) { border-color: var(--teal); background: var(--mint); }
.assist-opt input { width: 22px; height: 22px; flex: none; accent-color: var(--teal-text); }

/* Bigger: text with more air between letters, and larger tiles and keys. */
.assist-big .edulo, .assist-big.edulo { --tile-depth: 6px; }
.assist-big .e-prompt { font-size: 34px; letter-spacing: .02em; line-height: 1.3; }
.assist-big .e-word { letter-spacing: .06em; }
.assist-big .e-tile { min-height: 104px; }
.assist-big .e-tile-num { min-height: 124px; }
.assist-big .e-options { gap: 18px; }
.assist-big .e-key { min-height: 72px; font-size: 30px; }
.assist-big .e-continue { min-height: 68px; font-size: 22px; }
.assist-big .p-main { font-size: 1.12em; letter-spacing: .01em; }

/* Calm: no bouncing or floating, only short fades. */
.assist-calm *, .assist-calm *::before, .assist-calm *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
.assist-calm .p-confetti, .assist-calm [data-bubbles] .bubble { display: none !important; }

/* --- Splash: the logo draws itself on the first page of a visit (js/splash.js) --- */
.splash { display: none; }
.splash-on .splash {
    position: fixed; inset: 0; z-index: 1000;
    display: grid; place-items: center;
    background: var(--white);
    cursor: pointer;
    animation: splash-out .7s cubic-bezier(.65, 0, .35, 1) 3.4s forwards;
}
.splash.is-leaving { animation: splash-out .38s cubic-bezier(.65, 0, .35, 1) forwards; }
@keyframes splash-out { to { transform: translateY(-100%); border-radius: 0 0 50% 50% / 0 0 18% 18%; } }
.splash__stage { position: relative; display: grid; justify-items: center; gap: var(--s2); }
.splash__glow { position: absolute; top: -13px; left: 50%; width: 190px; height: 190px; margin-left: -95px; border-radius: 50%; background: var(--sun-pale); transform: scale(0); animation: splash-glow 1s cubic-bezier(.34, 1.56, .64, 1) .1s forwards; }
@keyframes splash-glow { to { transform: scale(1); } }
.splash__lulu { position: relative; width: 180px; height: 164px; overflow: visible; animation: splash-pop .6s cubic-bezier(.34, 1.56, .64, 1) 2.3s; }
.splash__lines { fill: none; stroke: var(--navy); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; animation: splash-fade .5s ease 2.05s forwards; }
.splash__lines > * { stroke-dasharray: 1; stroke-dashoffset: 1; animation: splash-draw 1s ease-in-out forwards; }
.splash__lines > :nth-child(1) { animation-duration: 1.25s; }
.splash__lines > :nth-child(2) { animation-delay: .25s; }
.splash__lines > :nth-child(3) { animation-delay: .5s; animation-duration: .7s; }
.splash__lines > :nth-child(4) { animation-delay: .65s; }
.splash__lines > :nth-child(5) { animation-delay: 1.2s; animation-duration: .5s; }
.splash__lines > :nth-child(6) { animation-delay: 1.4s; animation-duration: .55s; }
@keyframes splash-draw { to { stroke-dashoffset: 0; } }
@keyframes splash-fade { to { opacity: 0; } }
.splash__color { opacity: 0; animation: splash-in .6s ease 1.7s forwards; }
@keyframes splash-in { to { opacity: 1; } }
@keyframes splash-pop { 45% { transform: scale(1.1) rotate(-4deg); } }
.splash__word { position: relative; z-index: 1; width: 220px; height: 58px; overflow: visible; }
.splash__word text { font: 800 76px/1 var(--font-title); letter-spacing: 2px; fill: var(--navy); fill-opacity: 0; stroke: var(--navy); stroke-width: 2; stroke-dasharray: 420; stroke-dashoffset: 420; animation: splash-word 1.5s ease-in-out .7s forwards, splash-fill .5s ease 2.15s forwards; }
@keyframes splash-word { to { stroke-dashoffset: 0; } }
@keyframes splash-fill { to { fill-opacity: 1; stroke-width: 0; } }
.splash__spark { position: absolute; top: 34%; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--pink); opacity: 0; animation: splash-spark 1s ease-out 2.35s; }
.splash__spark:nth-of-type(3n+2) { background: var(--teal); width: 9px; height: 9px; }
.splash__spark:nth-of-type(3n) { background: var(--amber); border-radius: 3px; }
.splash__spark:nth-of-type(1) { --x: -120px; --y: -70px; }
.splash__spark:nth-of-type(2) { --x: 118px; --y: -86px; }
.splash__spark:nth-of-type(3) { --x: -136px; --y: 30px; }
.splash__spark:nth-of-type(4) { --x: 140px; --y: 22px; }
.splash__spark:nth-of-type(5) { --x: -60px; --y: -120px; }
.splash__spark:nth-of-type(6) { --x: 70px; --y: -118px; }
@keyframes splash-spark { 0% { opacity: 1; transform: translate(-50%, -50%) scale(.4); } 100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1); } }
@media (min-width: 768px) { .splash__lulu { width: 220px; height: 200px; } .splash__word { width: 270px; height: 72px; } .splash__glow { top: -20px; width: 240px; height: 240px; margin-left: -120px; } }
@media (prefers-reduced-motion: reduce) { .splash-on .splash { display: none; } }

/* --- Home page motion (landing.js) ----------------------------- */
.hero__floats { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero__float { position: absolute; display: block; }
.hero__float i {
    display: grid; place-items: center;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--white); color: var(--pink-strong);
    font: 800 24px/1 var(--font-title); font-style: normal;
    box-shadow: 0 6px 16px rgba(13, 45, 107, .14);
    animation: float-bob 5s ease-in-out infinite;
}
.hero__float:nth-child(1) { top: 9%; left: 4%; }
.hero__float:nth-child(2) { top: 52%; left: 2%; }
.hero__float:nth-child(3) { top: 6%; left: 47%; }
.hero__float:nth-child(4) { top: 80%; left: 40%; }
.hero__float:nth-child(5) { top: 12%; right: 3%; }
.hero__float:nth-child(6) { top: 58%; right: 2%; }
.hero__float:nth-child(7) { top: 36%; left: 44%; }
.hero__float:nth-child(8) { top: 88%; right: 30%; }
.hero__float:nth-child(3n+2) i { color: var(--teal-text); width: 40px; height: 40px; font-size: 20px; animation-duration: 6.5s; animation-delay: -2s; }
.hero__float:nth-child(3n) i { color: var(--blue-deep); width: 56px; height: 56px; animation-duration: 7s; animation-delay: -4s; }
.hero__float:nth-child(4n) i { background: var(--sun-pale); }
@keyframes float-bob { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-14px) rotate(6deg); } }
@media (max-width: 767px) { .hero__float:nth-child(n+5) { display: none; } .hero__float:nth-child(3), .hero__float:nth-child(4) { display: none; } .hero__float i { transform: scale(.85); } }
.hero .key { position: relative; display: inline-block; }
.key-line { position: absolute; left: 0; right: 0; bottom: -.12em; width: 100%; height: .3em; overflow: visible; }
.key-line path { fill: none; stroke: var(--pink-strong); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.w { display: inline-block; }
.card-top__icon, .card-fill__art img { transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.card-top:hover .card-top__icon { transform: rotate(-8deg) scale(1.08); }
.card-fill:not(.steps > *):hover .card-fill__art img { transform: translateY(-8px) rotate(3deg); }
.about-art { will-change: transform; }
@media (prefers-reduced-motion: reduce) { .hero__float i { animation: none; } }
.hero.is-intro .btn, .hero.is-intro .chip { transition: none; }
/* On a phone the step and benefit cards are full width: bigger animals, sitting lower. */
@media (max-width: 599px) {
    .grid--4 > .card-fill .card-fill__art { width: 168px; height: 168px; margin: var(--s2) auto var(--s4); }
    .steps > .card-fill .card-fill__art { width: 230px; height: 230px; }
    .card-fill__art--start { width: 112px; height: 112px; }
}

/* --- How it works: four steps ------------------------------
   Big animals standing on a soft shadow. On hover the card lifts a little and the animal
   crouches, hops and lands, while its shadow shrinks under it; the number badge spins once. */
.steps > .card-fill { position: relative; display: flex; flex-direction: column; align-items: center; padding: var(--s5) var(--s4) var(--s6); transition: transform .3s ease, box-shadow .3s ease; }
.steps > .card-fill:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(13, 45, 107, .16); }
.steps .card-fill__art { position: relative; width: 170px; height: 170px; margin: 0 auto var(--s2); }
.steps .card-fill__art img { position: relative; z-index: 1; transform-origin: 50% 100%; transition: none; }
.steps .card-fill__num { position: relative; width: 60px; height: 60px; margin: 0 auto var(--s3); font: 800 32px/1 var(--font-title); color: var(--navy); background: var(--white); box-shadow: 0 6px 0 rgba(13, 45, 107, .14); }
.steps .card-fill__num::before { content: ""; position: absolute; inset: -7px; border: 3px dashed rgba(255, 255, 255, .85); border-radius: 50%; }
.steps h3 { font-size: 1.2rem; line-height: 1.3; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .steps > .card-fill:hover .card-fill__art img { animation: step-hop .8s cubic-bezier(.3, .7, .4, 1); }
    .steps > .card-fill:hover .card-fill__num::before { animation: step-ring 1.2s ease-out; }
}
@keyframes step-hop {
    0% { transform: none; }
    18% { transform: scale(1.08, .9); }
    45% { transform: translateY(-26px) scale(.95, 1.06); }
    70% { transform: translateY(0) scale(1.06, .94); }
    85% { transform: scale(.98, 1.02); }
    100% { transform: none; }
}
@keyframes step-ring { from { transform: rotate(0); } to { transform: rotate(180deg); } }
@media (max-width: 599px) {
    .steps .card-fill__num { width: 68px; height: 68px; font-size: 36px; }
    .steps h3 { font-size: 1.35rem; }
}

/* --- What the child learns: picture cards -------------------
   The uploaded pictures are small scenes, so each card opens with a pale panel in its colour
   holding the scene large, and the text sits centred under it. On hover the card lifts and the
   scene leans in. */
.topics .card-top { display: flex; flex-direction: column; align-items: center; text-align: center; padding: var(--s3) var(--s3) var(--s5); transition: transform .3s ease, box-shadow .3s ease; }
.topics .card-top__icon { width: 100%; height: 180px; margin: 0 0 var(--s4); border-radius: calc(var(--r-card) - 10px); background: radial-gradient(circle at 50% 60%, var(--white) 0 30%, var(--c-pale, var(--coral-pale)) 72%); overflow: hidden; }
.topics .card-top__icon img, .topics .card-top__icon svg { width: auto; height: 150px; max-width: 90%; object-fit: contain; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.topics .card-top h3 { margin: 0 0 var(--s2); }
.topics .card-top p { flex: 1; padding-inline: var(--s2); }
.topics .card-top:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(13, 45, 107, .14); }
.topics .card-top:hover .card-top__icon { transform: none; }
@media (prefers-reduced-motion: no-preference) {
    .topics .card-top:hover .card-top__icon img, .topics .card-top:hover .card-top__icon svg { transform: scale(1.1) rotate(-3deg); }
}
@media (max-width: 599px) {
    .topics .card-top__icon { height: 210px; }
    .topics .card-top__icon img, .topics .card-top__icon svg { height: 180px; }
}

/* --- Public games (/jocuri) ------------------------------- */
.game-head__chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0; }
.game-box { --c: var(--teal); --cp: var(--mint); margin: 0 0 var(--s6); padding: var(--s4); border: 3px solid var(--c); border-radius: var(--r-card); background: var(--cp); box-shadow: var(--shadow-card); color: var(--navy); font-size: var(--text-play); }
.game-box--amber { --c: var(--amber); --cp: var(--sun-pale); }
.game-box--pink { --c: var(--pink); --cp: var(--coral-pale); }
.game-box--blue { --c: var(--blue); --cp: var(--sky-pale); }
.game-box__top:not([hidden]) { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s3); }
.game-box__top .p-progress { background: var(--white); }
.game-box__play { min-height: 340px; }
.game-start { display: grid; justify-items: center; gap: var(--s3); padding: var(--s5) var(--s3); text-align: center; }
.game-start__text { max-width: 30em; margin: 0; font-weight: 700; color: var(--navy); }
.game-box__note { margin: var(--s3) 0 0; color: var(--ink); font-size: .9375rem; font-weight: 600; text-align: center; }
.game-box .p-result { margin-top: 0; }
.game-box .p-result h2 { margin: 0; color: var(--navy); font-size: var(--title-2); -webkit-text-stroke: 0; text-shadow: none; }
.game-box .p-result h2:focus { outline: none; }
.game-text { max-width: none; }
.game-read { margin: var(--s5) 0 0; font-weight: 700; }
.game-read a { color: var(--pink-text); }
.game-card .post-card__body { height: 100%; grid-template-rows: auto auto 1fr auto; }
.game-card__go { margin: 0; }
.game-all { margin: var(--s4) 0 0; font-weight: 800; }
.game-all a { color: var(--pink-text); }
.games-intro { margin-top: var(--s6); }
@media (min-width: 900px) {
    .game-box { padding: var(--s5); }
    .game-box__play { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: var(--s5); align-items: end; }
    .game-box__play .game-start { grid-column: 1 / -1; }
    .game-box__play .e-lulu { flex-direction: column-reverse; align-items: center; position: sticky; bottom: var(--s4); }
    .game-box__play .e-bubble { margin: 0 0 var(--s2); }
}
.post__games { margin-top: var(--s6); }
.post__games h2 { color: var(--navy); -webkit-text-stroke: 0; text-shadow: none; }
.post__games > p { margin: 0 0 var(--s4); }
.landing-games { max-width: 46rem; margin: var(--s4) auto 0; font-weight: 700; }
.landing-games a { color: var(--pink-text); }
.games .blog-head { max-width: 52rem; }

/* --- Syllables (/silabe) ---------------------------------- */
.syl-answer { display: grid; justify-items: center; gap: var(--s2); margin: 0 0 var(--s6); padding: var(--s5); border: 3px solid var(--pink); text-align: center; }
.syl-split { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: var(--s1); margin: 0; font: 800 clamp(2.25rem, 8vw, 4rem)/1.1 var(--font-display); color: var(--navy); }
.syl-part { padding: 0 var(--s2); border-radius: var(--radius-s); }
.syl-part--pink { background: var(--coral-pale); }
.syl-part--blue { background: var(--sky-pale); }
.syl-part--amber { background: var(--sun-pale); }
.syl-part--teal { background: var(--mint); }
.syl-dash { color: var(--pink-text); }
.syl-meta { margin: 0; color: var(--ink); font-weight: 800; }
.syl-say { max-width: 40em; margin: 0; color: var(--ink); font-size: 1.125rem; }
.syl-grid { display: grid; gap: var(--s6); align-items: start; }
.syl-game { margin: 0; font-size: 1rem; }
.syl-game__title { margin: 0 0 var(--s3); color: var(--navy); font-size: var(--title-3); -webkit-text-stroke: 0; text-shadow: none; }
.syl-game .game-box__play { display: block; min-height: 300px; }
.syl-game .game-box__note a { color: var(--pink-text); font-weight: 800; }
.syl-rules { display: grid; gap: var(--s2); }
.syl-breaks { display: grid; gap: var(--s2); padding: 0; list-style: none; }
.syl-breaks li { display: grid; justify-items: start; width: fit-content; padding: var(--s2) var(--s4); border: 2px solid var(--line); border-radius: var(--radius-s); background: var(--white); font-weight: 800; font-size: 1.25rem; line-height: 1.3; }
/* The sentence, the related form and the open/closed syllables of a word page. */
.syl-sentence { padding: var(--s3) var(--s4); border: 2px solid var(--line); border-radius: var(--radius-s); background: var(--white); color: var(--navy); font-size: 1.25rem; font-weight: 700; }
.syl-form { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s1); font: 800 clamp(1.75rem, 6vw, 2.5rem)/1.1 var(--font-display); color: var(--navy); }
.syl-form__pre { margin-right: var(--s2); color: var(--ink); font-size: .7em; }
.syl-open { display: flex; flex-wrap: wrap; gap: var(--s2); padding: 0; list-style: none; }
.syl-open li { padding: var(--s2) var(--s3); border: 2px solid var(--line); border-radius: var(--radius-s); background: var(--white); color: var(--ink); }
.syl-open strong { color: var(--navy); font-size: 1.125rem; }
.syl-more, .syl-popular, .syl-all { margin-top: var(--s6); }
.syl-more h2, .syl-popular h2, .syl-all h2 { color: var(--navy); -webkit-text-stroke: 0; text-shadow: none; }
.syl-letter h3 { margin: var(--s4) 0 var(--s2); color: var(--navy); }
.syl-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: var(--s2); margin: 0; padding: 0; list-style: none; }
.syl-list a { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s1) var(--s2); min-height: 44px; align-items: center; padding: var(--s2) var(--s3); border: 2px solid var(--line); border-radius: var(--radius-s); background: var(--white); color: var(--navy); text-decoration: none; }
.syl-list a:hover { border-color: var(--pink); }
.syl-list span { color: var(--pink-text); font-weight: 700; }
.syl-search { display: grid; gap: var(--s2); margin-bottom: var(--s5); padding: var(--s4) var(--s5); }
.syl-search label { color: var(--navy); font-weight: 800; }
.syl-search input { min-height: 48px; padding: 0 var(--s4); border: 2px solid var(--line); border-radius: var(--radius-s); font: 600 1.125rem var(--font-body); color: var(--ink); background: var(--white); }
.syl-search input:focus { border-color: var(--pink); outline: none; }
.syl-none { margin: 0; }
.syl-none a { color: var(--pink-text); font-weight: 700; }
@media (min-width: 900px) {
    .syl-grid { grid-template-columns: minmax(0, 1fr) 380px; }
    .syl-game { position: sticky; top: 96px; }
}
.syl-nowrap { white-space: nowrap; }

/* --- Times tables (/tabla-inmultirii) ---------------------- */
.tt-rows { display: grid; gap: var(--s1) var(--s6); margin: 0; padding: 0; list-style: none; font: 800 clamp(1.375rem, 5vw, 1.875rem)/1.35 var(--font-display); color: var(--navy); white-space: nowrap; }
.tt-rows b { color: var(--pink-text); }
.tt-rows--small { justify-content: start; margin: var(--s3) 0 var(--s4); font-size: 1.25rem; }
@media (min-width: 480px) {
    .tt-rows { grid-template-rows: repeat(5, auto); grid-auto-flow: column; }
}
.tt-scroll { overflow-x: auto; margin: 0 0 var(--s6); padding: var(--s3); border: 3px solid var(--sun); }
.tt-table { width: 100%; min-width: 520px; border-collapse: collapse; font-weight: 800; font-size: 1.125rem; text-align: center; color: var(--navy); }
.tt-table caption { padding-bottom: var(--s2); text-align: left; font-weight: 800; }
.tt-table th, .tt-table td { padding: var(--s2) var(--s1); border: 2px solid var(--line); }
.tt-table th { background: var(--sun-pale); }
.tt-table th a { display: block; color: var(--pink-text); }
.tt-table .tt-square { background: var(--mint); }
@media (max-width: 479px) {
    .tt-scroll { padding: var(--s2); }
    .tt-table { min-width: 0; font-size: .875rem; }
    .tt-table th, .tt-table td { padding: 6px 0; border-width: 1px; }
}
@media (min-width: 900px) {
    .syl-grid > .syl-game { grid-column: 2; grid-row: 1; }
    .syl-grid > .game-text { grid-column: 1; grid-row: 1; }
}

/* --- Back to top ------------------------------------------ */
.to-top { position: fixed; z-index: 58; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 3px solid var(--white); border-radius: 50%; background: var(--navy); color: var(--white); box-shadow: var(--shadow-card); cursor: pointer; opacity: 0; transform: translateY(16px) scale(.8); transition: opacity .25s ease, transform .3s var(--ease), background-color var(--fast) ease; }
.to-top[hidden] { display: grid; visibility: hidden; pointer-events: none; }
.to-top.is-shown { opacity: 1; transform: none; visibility: visible; }
.to-top:hover { background: var(--pink-strong); }
.to-top:active { transform: scale(.9); }
.to-top:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.edulo button.to-top { color: var(--white); }
.to-top svg { width: 24px; height: 24px; fill: none; stroke: var(--white); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.to-top.is-shown svg { animation: to-top-nudge 1.6s ease-in-out .4s 2; }
.has-tabs .to-top { bottom: calc(92px + env(safe-area-inset-bottom)); }
@keyframes to-top-nudge { 0%, 100% { transform: none; } 50% { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .to-top, .to-top.is-shown svg { transition: none; animation: none; } }

/* --- Girl or boy (child form) and quick looks (avatar) ----- */
.gender-pick { margin-top: var(--s4); }
.gender-pick__title { margin: 0 0 var(--s2); color: var(--navy); font-weight: 800; }
.gender-pick__title .muted { display: block; font-weight: 600; font-size: var(--text-small); }
.gender-pick__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); max-width: 440px; }
.gender-card { position: relative; display: grid; justify-items: center; align-content: center; gap: var(--s1); min-width: 0; min-height: 132px; padding: var(--s3) var(--s2); border: 3px solid var(--line); border-radius: var(--r-card); background: var(--white); cursor: pointer; transition: border-color var(--fast) ease, transform var(--fast) ease, background-color var(--fast) ease; }
.gender-card input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.gender-card__kid { display: block; width: 76px; height: 76px; }
.gender-card__kid svg { width: 100%; height: 100%; }
.gender-card__label { color: var(--navy); font-weight: 800; }
.gender-card:hover { border-color: var(--teal); transform: translateY(-2px); }
.gender-card:has(input:checked) { border-color: var(--pink-strong); background: var(--coral-pale); }
.gender-card:has(input:focus-visible) { outline: 3px solid var(--teal); outline-offset: 2px; }
.gender-card--none .gender-card__label { color: var(--muted); font-weight: 700; }
.look__presets { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin: 0 0 var(--s4); color: var(--navy); font-weight: 700; }
.look__preset { display: inline-flex; align-items: center; gap: var(--s2); min-height: 48px; padding: var(--s1) var(--s4) var(--s1) var(--s1); border: 2px solid var(--line); border-radius: var(--radius-pill); background: var(--white); color: var(--navy); font: 700 1rem var(--font-body); cursor: pointer; }
.look__preset:hover { border-color: var(--pink); }
.look__preset-kid { display: block; width: 40px; height: 40px; }
.look__preset-kid svg { width: 100%; height: 100%; }

/* --- Sound and voice sheet (child area) -------------------- */
.edulo button.look__preset { color: var(--navy); }
.p-sound-open svg { width: 24px; height: 24px; fill: none; stroke: var(--navy); stroke-width: 2.4; stroke-linecap: round; }
.p-sound-open circle { fill: var(--white); }
.sound-sheet { width: min(520px, calc(100% - 24px)); max-height: calc(100% - 48px); margin: auto; padding: var(--s5); border: 3px solid var(--teal); border-radius: var(--r-card); background: var(--white); color: var(--ink); box-shadow: 0 20px 48px rgba(13, 45, 107, .25); }
.sound-sheet[open] { display: grid; gap: var(--s4); animation: sheet-in .32s cubic-bezier(.2, .9, .3, 1.1); }
.sound-sheet::backdrop { background: rgba(13, 45, 107, .45); }
.sound-sheet[open]::backdrop { animation: menu-fade .25s ease; }
.sound-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.sound-sheet__head h2 { margin: 0; color: var(--navy); font-size: var(--title-3); -webkit-text-stroke: 0; text-shadow: none; }
.sound-sheet__close { display: grid; place-items: center; width: var(--tap); height: var(--tap); padding: 0; border: 0; border-radius: 50%; background: var(--mint-soft); cursor: pointer; }
.sound-sheet__close svg { width: 22px; height: 22px; fill: none; stroke: var(--navy); stroke-width: 2.6; stroke-linecap: round; }
.sound-sheet .muted { margin: 0; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sound-sheet[open], .sound-sheet[open]::backdrop { animation: none; } }

/* Article as wide as the header: on large screens the text keeps a readable column and the
   table of contents moves to a sticky column on the right. */
@media (min-width: 1024px) {
    .post--wide:has(> .post__toc) { display: grid; grid-template-columns: minmax(0, 1fr) 300px; column-gap: var(--s7); align-items: start; }
    .post--wide:has(> .post__toc) > * { grid-column: 1; }
    .post--wide > .post__toc { grid-column: 2; grid-row: 1 / span 40; position: sticky; top: 96px; margin: 0; max-height: calc(100vh - 120px); overflow: auto; }
    .post--wide:not(:has(> .post__toc)) > * { max-width: var(--width-text); }
}

/* Room between a page label (eyebrow) and the title under it, on every page head. */
.eyebrow + :is(h1, h2) { margin-top: var(--s5); }
/* On a phone the two hero chips sit centred under the buttons. */
@media (max-width: 599px) { .hero__chips { justify-content: center; } }
/* The questions and the closing card are both white: one gap between them, not two section paddings. */
#intrebari { padding-bottom: var(--s7); }
.section--after-faq { padding-top: var(--s5); }
/* The ANPC pictogram (150 px wide, the owner's choice over the 250x50 in the ANPC order) sits on the right of the copyright line.
   On a phone it stays on the left, clear of the fixed back-to-top button. */
.site-footer__legal .anpc-link { order: 2; }
@media (min-width: 600px) { .site-footer__legal .anpc-link { margin-left: auto; } }
@media (max-width: 599px) { .site-footer__legal { justify-content: flex-start; } }
/* In articles, game pages and syllable pages the text runs the full width of its column, not the 60ch cap of plain paragraphs. */
.post :is(p, li) { max-width: none; }
/* Lulu in the closing "make an account" box, big enough to be seen. */
.post__cta .mascot { flex: none; width: 150px; height: 150px; }
/* Age group cards: the uploaded picture for each group above its title. */
.age-art { width: 170px; height: 170px; margin: 0 auto var(--s3); }
.age-art img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
@media (prefers-reduced-motion: no-preference) { .ages > li:hover .age-art img { transform: translateY(-6px) rotate(-3deg) scale(1.05); } }
.ages > li { display: flex; flex-direction: column; align-items: center; }
.ages > li > ul { flex: 1; }
/* Empty states (no child yet, no posts...): Lulu big enough to carry the message. */
.empty .mascot { width: 180px; height: 180px; }
.empty > p { font-size: 1.125rem; font-weight: 600; color: var(--navy); }

/* --- EDULO la tablă: a public game full screen on a classroom board --------- */
.layout-board { background: var(--cream); }
.board { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; }
.board-top, .board-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); padding: var(--s2) var(--gutter); background: var(--white); }
.board-top { border-bottom: 3px solid var(--line); }
.board-tools { border-top: 3px solid var(--line); position: sticky; bottom: 0; z-index: 3; }
.board-exit { color: var(--navy); font-weight: 800; text-decoration: none; }
.board-exit:hover { color: var(--teal-text); }
.board-title { flex: 1; margin: 0; color: var(--navy); font: 800 1.25rem/1.2 var(--font-title); }
.board-score { display: flex; flex-wrap: wrap; gap: var(--s2); }
.board-score[hidden], .board-tools[hidden] { display: none; }
.board-team { display: flex; align-items: center; gap: var(--s2); margin: 0; padding: var(--s1) var(--s4); border: 3px solid var(--line); border-radius: var(--radius-pill); background: var(--white); color: var(--navy); font-weight: 800; transition: background-color var(--fast) ease, box-shadow var(--fast) ease; }
.board-team output { min-width: 2ch; font: 800 1.9rem/1 var(--font-title); text-align: center; }
.board-team--blue { border-color: var(--blue); }
.board-team--blue output { color: var(--blue-deep); }
.board-team--amber { border-color: var(--amber); }
.board-team--amber output { color: var(--orange-ink); }
.board-team--blue.is-turn { background: var(--blue-pale); box-shadow: 0 0 0 4px var(--blue); }
.board-team--amber.is-turn { background: var(--yellow-pale); box-shadow: 0 0 0 4px var(--amber); }
.board-team.is-bump output { animation: board-bump .5s var(--ease); }
@keyframes board-bump { 40% { transform: scale(1.5); } }
.board-btn { min-height: var(--tap); padding: 0 var(--s4); border: 3px solid var(--line); border-radius: var(--radius-pill); background: var(--white); color: var(--navy); font: 800 1rem var(--font-body); cursor: pointer; }
.board-btn:hover { border-color: var(--teal); }
.board-btn:disabled { opacity: .5; cursor: default; }
.board-btn[hidden] { display: none; }
.board-stage { display: grid; align-content: start; justify-items: center; gap: var(--s4); padding: var(--s5) var(--gutter); }
.board-start { display: grid; justify-items: center; gap: var(--s4); max-width: 760px; text-align: center; }
.board-start h1 { margin: 0; color: var(--navy); font-size: var(--title-1); }
.board-lead { margin: 0; color: var(--ink); font-size: 1.25rem; }
.board-pick { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); margin: 0; padding: 0; border: 0; }
.board-pick legend { width: 100%; margin-bottom: var(--s2); color: var(--navy); font-size: 1.15rem; font-weight: 800; }
.board-pick label { position: relative; }
.board-pick input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.board-pick span { display: inline-flex; align-items: center; min-height: 56px; padding: 0 var(--s5); border: 3px solid var(--line); border-radius: var(--radius-pill); background: var(--white); color: var(--navy); font: 800 1.15rem var(--font-body); }
.board-pick input:checked + span { border-color: var(--pink-strong); background: var(--coral-pale); }
.board-pick input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.board-go { max-width: 360px; font-size: 1.25rem; }
.board-play { width: 100%; max-width: 900px; }
.board-turn { flex: 1; margin: 0; color: var(--navy); font: 800 1.35rem/1.2 var(--font-title); }
.board[data-turn="0"] .board-turn { color: var(--blue-deep); }
.board[data-turn="1"] .board-turn { color: var(--orange-ink); }
.board-count { margin: 0; color: var(--muted); font-weight: 700; }
.board-final { margin: 0; color: var(--navy); font: 800 1.5rem/1.3 var(--font-title); }
/* Bigger on a classroom screen: the whole exercise grows, so the back row can read it. */
@media (min-width: 1200px) and (min-height: 700px) { .board-play { zoom: 1.35; } }
@media (min-width: 1600px) and (min-height: 850px) { .board-play { zoom: 1.7; } }

/* --- Printable worksheets (/fise) ------------------------------------------------------------
   On screen the sheet is a card; printed, only the sheet and its answer page remain, on A4. */
.ws-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin: 0 0 var(--s5); }
.ws-tools__note { color: var(--ink); font-size: .95rem; }
.ws-print { display: grid; gap: var(--s5); }
.ws-sheet, .ws-answers { padding: var(--s5); border: 2px solid var(--line); background: var(--white); color: var(--navy); }
.ws-sheet__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3); color: var(--ink); font-weight: 700; }
.ws-line { display: inline-block; width: 12em; border-bottom: 2px solid var(--ink); }
.ws-line--short { width: 6em; }
.ws-sheet__title { margin: var(--s4) 0 var(--s2); color: var(--navy); font-size: var(--title-3); -webkit-text-stroke: 0; text-shadow: none; }
.ws-sheet__task { margin: 0 0 var(--s4); color: var(--ink); font-weight: 700; }
.ws-items { display: grid; gap: var(--s4) var(--s6); margin: 0; padding-left: 1.6em; font-size: 1.3rem; font-weight: 700; line-height: 1.6; }
.ws-items li { padding-left: var(--s1); }
.ws-items--1 { font-size: 1.15rem; }
@media (min-width: 600px) {
    .ws-items--2 { grid-template-columns: repeat(2, 1fr); }
    .ws-items--3 { grid-template-columns: repeat(3, 1fr); }
}
.ws-blank { display: inline-block; width: 3em; height: 1.4em; margin: 0 .2em; vertical-align: middle; border: 2px solid var(--ink); border-radius: 6px; }
.ws-blank--wide { width: 7em; }
.ws-blank--small { width: 1.8em; }
.ws-sheet__foot { margin: var(--s5) 0 0; color: var(--ink); font-size: .85rem; }
.ws-key { display: grid; grid-template-columns: repeat(auto-fill, minmax(9em, 1fr)); gap: var(--s1) var(--s4); margin: 0; padding-left: 1.6em; font-weight: 700; }
.ws-text { max-width: 820px; margin-top: var(--s6); }
/* The Monday sheet by email (sign-up box), the box shown after printing and the confirm pages. */
.ws-mail { display: grid; gap: var(--s3) var(--s5); margin: var(--s6) 0 0; padding: var(--s5); border: 3px solid var(--teal); background: var(--white); color: var(--navy); }
.ws-mail h2 { margin: 0 0 var(--s1); font-size: var(--title-3); }
.ws-mail p { margin: 0; }
.ws-mail__text { min-width: 0; }
.ws-mail__form { display: grid; gap: var(--s3); }
.ws-mail__field { display: grid; gap: var(--s1); font-weight: 700; }
.ws-mail__field input, .ws-mail__field select { min-height: 48px; padding: 0 var(--s3); border: 2px solid var(--line); border-radius: var(--radius-s); background: var(--white); font: inherit; color: var(--ink); }
.ws-mail__consent { display: flex; align-items: flex-start; gap: var(--s2); font-size: .95rem; }
.ws-mail__consent input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.ws-mail__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ws-mail__note { padding: var(--s3); border-radius: var(--radius-s); font-weight: 700; }
.ws-mail__note--ok { background: var(--mint); color: var(--teal-text); }
.ws-mail__note--confirm { border: 3px solid var(--teal); font-size: 1.0625rem; line-height: 1.5; }
.ws-mail__note-title { display: block; margin-bottom: var(--s1); font: 800 1.375rem/1.2 var(--font-display); color: var(--navy); }
.ws-mail__note--error { background: var(--red-pale); color: var(--red-deep); }
@media (min-width: 900px) {
    .ws-mail { grid-template-columns: 1fr 1.4fr; align-items: center; }
    .ws-mail__form { grid-template-columns: 1fr 1fr; align-items: end; }
    .ws-mail__consent, .ws-mail__form .btn, .ws-mail__note { grid-column: 1 / -1; }
    .ws-mail__note { grid-column: 2; }
}
.ws-after { margin: var(--s5) 0 0; padding: var(--s5); border: 3px solid var(--amber); background: var(--white); color: var(--navy); text-align: center; }
.ws-after h2 { margin: 0 0 var(--s2); }
.ws-after p { margin-inline: auto; } /* paragraphs have a max width here; centre the block, not only the text */
.ws-after__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3); margin: var(--s4) 0 0; }
.ws-done { display: grid; place-items: center; min-height: 50vh; }
.ws-done__card { max-width: 560px; padding: var(--s6); text-align: center; color: var(--navy); }
.ws-done__card form { margin: var(--s4) 0; }
/* Winter sheets: snowflakes beside the title, the colour legend and the tree to colour. */
.ws-flakes { width: 3.2em; height: 1.1em; margin-left: .4em; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.ws-legend { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin: 0 0 var(--s4); padding: 0; list-style: none; font-size: 1.2rem; }
.ws-legend li { display: inline-flex; align-items: center; gap: .35em; }
.ws-legend__dot { width: 1.1em; height: 1.1em; border: 2px solid var(--ink); border-radius: 50%; }
.ws-pic { display: block; width: 100%; max-width: 520px; height: auto; margin: 0 auto; }
.ws-pic__part { fill: var(--white); stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.ws-pic__bow { fill: none; stroke: var(--ink); stroke-width: 2.5; }
.ws-pic text { fill: var(--navy); font-family: inherit; font-weight: 700; }
.is-verde { background: var(--crayon-green); fill: var(--crayon-green); }
.is-rosu { background: var(--crayon-red); fill: var(--crayon-red); }
.is-albastru { background: var(--crayon-blue); fill: var(--crayon-blue); }
.is-galben { background: var(--crayon-yellow); fill: var(--crayon-yellow); }
.is-maro { background: var(--crayon-brown); fill: var(--crayon-brown); }
.ws-legend__dot.is-verde, .ws-legend__dot.is-rosu, .ws-legend__dot.is-albastru, .ws-legend__dot.is-galben, .ws-legend__dot.is-maro { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
.ws-pic--filled .ws-pic__part { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
.ws-pic--filled text { paint-order: stroke; stroke: rgba(255, 255, 255, .9); stroke-width: 4px; stroke-linejoin: round; }
.ws-season { padding: var(--s5); border: 3px solid var(--blue); border-radius: var(--radius-m); background: var(--white); }
.ws-season > p { margin: 0 0 var(--s3); }
@media print {
    @page { size: A4; margin: 14mm; }
    body:has(.ws-print) { background: #fff; }
    body:has(.ws-print) .site-header, body:has(.ws-print) .site-footer, body:has(.ws-print) footer,
    body:has(.ws-print) .to-top, body:has(.ws-print) .skip, body:has(.ws-print) [data-cookie],
    .ws-main .container > :not(.ws-print) { display: none !important; }
    .ws-main { padding: 0 !important; background: #fff !important; }
    .ws-sheet, .ws-answers { padding: 0; border: 0; box-shadow: none; color: #000; }
    .ws-answers { break-before: page; }
    .ws-items { font-size: 17pt; gap: 11mm 12mm; }
    .ws-items--1 { font-size: 15pt; gap: 8mm; }
    .ws-sheet__title { font-size: 20pt; }
    .ws-items--2 { grid-template-columns: repeat(2, 1fr); }
    .ws-items--3 { grid-template-columns: repeat(3, 1fr); }
    .ws-blank, .ws-line { border-color: #000; }
    .ws-pic { max-width: 160mm; max-height: 192mm; }
    .ws-pic__part, .ws-pic__bow { stroke: #000; }
    .ws-pic text { fill: #000; }
    .ws-pic--filled text { fill: #000; }
    .ws-legend { font-size: 15pt; }
}

/* Trial or free account note on the parent dashboard (only while the limits are switched on). */
.plan-note { margin: 0 0 var(--s5); border: 3px solid var(--amber); }
.plan-note p { margin: var(--s2) 0 0; }

/* --- What the child learns: digits on one line, fifteen topics ------ */
/* Flex rows, each centred: 5 tiles a row on phones, the ten digits then the five signs on wide screens. */
.digits { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 300px; margin: 0 auto var(--s3); }
.digits__tile { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; font: 800 2rem/1 var(--font-title); background: var(--c); color: var(--navy); box-shadow: 0 5px 0 rgba(13, 45, 107, .2); }
.digits__tile--pink { --c: var(--pink-strong); color: var(--white); }
.digits__tile--amber { --c: var(--amber); }
.digits__tile--teal { --c: var(--teal); }
.digits__tile--blue { --c: var(--blue); color: var(--white); }
.digits__tile--sign { font-size: 1.75rem; }
@media (min-width: 900px) {
    .digits { max-width: 650px; }
    .digits__tile { width: 56px; height: 56px; }
}
@media (max-width: 599px) {
    .topics .card-top { padding: var(--s2) var(--s2) var(--s4); }
    .topics .card-top__icon { height: 130px; margin-bottom: var(--s3); }
    .topics .card-top__icon img, .topics .card-top__icon svg { height: 110px; }
    .topics .card-top h3 { font-size: 1.05rem; }
    .topics .card-top p { font-size: .9rem; padding-inline: 0; }
    .topics .pill-link { padding-inline: var(--s3); font-size: .85rem; }
}
@media (min-width: 1200px) {
    .topics { grid-template-columns: repeat(5, 1fr); }
    .topics .card-top__icon { height: 170px; }
    .topics .card-top__icon img, .topics .card-top__icon svg { height: 140px; }
}

/* --- What you get: picture and text centred ----------------- */
.benefit { display: flex; flex-direction: column; align-items: center; text-align: center; }
.benefit .card-fill__art { margin: 0 auto var(--s2); }

/* --- Safety: photo and list side by side, under a centred heading -- */
.safety .photo-art { margin: 0 auto; max-width: 560px; }

/* --- Header: a login button next to the menu on phones ------ */
.site-header__login { margin-left: auto; }
.nav .btn--ghost { --btn-fill: var(--white); --btn-ink: var(--navy); }
/* The full menu needs about 1080px since "Fișe" joined it; below that the burger menu shows. */
@media (min-width: 1080px) {
    .nav { display: flex; gap: var(--s4); }
    .menu { display: none; }
    .site-header__login { display: none; }
}
.hero__login { margin: 0 0 var(--s4); font-weight: 700; color: var(--navy); }
.hero__login a { color: var(--navy); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* --- Forum card under the parents' questions ----------------- */
.forum-callout { display: grid; gap: var(--s4); justify-items: center; text-align: center; margin-top: var(--s7); padding: var(--s6) var(--s5); border-radius: var(--r-card); background: var(--sun-pale); border: 3px solid var(--amber); }
.forum-callout__icon { width: 72px; height: 72px; }
.forum-callout__title { margin: 0 0 var(--s2); }
.forum-callout p { margin: 0; }
@media (min-width: 768px) {
    .forum-callout { grid-template-columns: auto 1fr auto; justify-items: start; align-items: center; text-align: left; }
}

/* ---- Sticker found at the end of a lesson (RewardService::awardStickers) ---- */
.p-sticker { display: grid; justify-items: center; gap: var(--s1); width: min(260px, 100%); padding: var(--s3); border: 3px solid var(--teal); border-radius: var(--r-card); background: var(--mint-soft); perspective: 600px; }
.p-sticker--gold { border-color: var(--amber-deep); background: var(--sun-pale); }
.p-sticker-head { margin: 0; font: 800 1.375rem/1.1 var(--font-display); color: var(--navy); }
.p-sticker-art { display: grid; place-items: center; width: 120px; height: 120px; border-radius: 50%; background: var(--white); border: 3px solid var(--teal); animation: sticker-flip .7s var(--ease) var(--delay, .7s) backwards; }
.p-sticker--gold .p-sticker-art { margin: 6px 0; border-color: var(--amber-deep); box-shadow: 0 0 0 6px var(--amber-soft); }
.p-sticker-art img { width: 84px; height: 84px; }
.p-sticker-label { margin: 0; color: var(--teal-text); font-weight: 800; font-size: .8125rem; letter-spacing: .04em; text-transform: uppercase; }
.p-sticker--gold .p-sticker-label { color: var(--sun-ink); }
.p-sticker-name { margin: 0; font: 800 1.5rem/1.1 var(--font-display); color: var(--navy); }
.p-sticker-bar { width: 100%; height: 10px; border-radius: var(--radius-pill); background: var(--white); border: 2px solid var(--line); overflow: hidden; }
.p-sticker-bar span { display: block; height: 100%; background: var(--teal); }
.p-sticker--gold .p-sticker-bar span { background: var(--amber-deep); }
.p-sticker-album { color: var(--ink); font-weight: 700; font-size: .9375rem; }
@keyframes sticker-flip { from { transform: rotateY(180deg) scale(.6); opacity: 0; } 60% { transform: rotateY(-12deg) scale(1.08); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .p-sticker-art { animation: none; } }

/* ---- Albums on /recompense ---- */
.albums { display: grid; gap: var(--s4); }
.album { padding: var(--s4); border: 3px solid var(--teal); border-radius: var(--r-card); background: var(--white); }
.album.is-full { border-color: var(--amber-deep); background: var(--sun-pale); }
.album__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s1) var(--s3); margin-bottom: var(--s3); }
.album__head h3 { margin: 0; font-size: var(--title-3, 1.375rem); color: var(--navy); }
.album__head p { margin: 0; color: var(--muted); font-weight: 700; }
.album__count { font: 800 1.125rem/1 var(--font-display); color: var(--teal-text); }
.album.is-full .album__count { color: var(--sun-ink); }
.album__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: var(--s2); margin: 0; padding: 0; list-style: none; }
.sticker { display: grid; justify-items: center; gap: 4px; padding: var(--s2) 4px; border: 2px solid var(--line); border-radius: var(--radius-s); background: var(--mint-soft); text-align: center; }
.sticker img { width: 56px; height: 56px; }
.sticker span { font-size: .8125rem; font-weight: 800; color: var(--ink); line-height: 1.15; }
.sticker--gold { border-color: var(--amber-deep); background: var(--sun-pale); }
.sticker.is-missing { background: var(--white); border-style: dashed; }
.sticker.is-missing img { filter: brightness(0) opacity(.18); }
.sticker.is-missing span { color: var(--muted); }
.albums-intro { max-width: 640px; margin: 0 0 var(--s3); color: var(--ink); font-weight: 600; }
.albums + .medals-head { margin-top: var(--s5); }

/* Parent feedback: strip at the end of every parent page, dialog with five faces and a note */
.feedback-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3) var(--s4); margin-top: var(--s7); padding: var(--s4) var(--s5); border: 3px solid var(--teal); border-radius: var(--r-card); background: var(--white); color: var(--navy); box-shadow: var(--shadow-card); }
.feedback-strip p { flex: 0 1 560px; margin: 0; line-height: 1.45; }
.feedback-strip strong { display: block; font-size: var(--title-3); }
.feedback-modal { width: min(520px, calc(100% - 2rem)); }
.feedback-modal h2 { margin: 0 0 var(--s3); color: var(--navy); }
.feedback-rate { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s2); margin: 0 0 var(--s4); padding: 0; border: 0; }
.feedback-rate legend { grid-column: 1 / -1; margin-bottom: var(--s2); padding: 0; font-weight: 800; }
.feedback-rate label { display: grid; justify-items: center; gap: var(--s1); padding: var(--s2) var(--s1); border: 2px solid var(--line); border-radius: 14px; cursor: pointer; text-align: center; transition: border-color var(--fast) ease, background var(--fast) ease; }
.feedback-rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.feedback-rate__face { font-size: 1.9rem; line-height: 1; }
.feedback-rate__label { font-size: var(--text-small); font-weight: 700; line-height: 1.2; }
.feedback-rate label:hover { background: var(--mint-soft); }
.feedback-rate label:has(input:checked) { border-color: var(--teal); background: var(--mint-soft); }
.feedback-rate label:has(input:focus-visible) { outline: 3px solid var(--teal); outline-offset: 2px; }
.feedback-modal textarea { min-height: 110px; }
.feedback-modal__actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
@media (max-width: 420px) { .feedback-rate__label { font-size: .72rem; } }

/* Winter snow (js/snow.js): above the page, below the floating buttons and the cookie note, never clickable */
.snow { position: fixed; inset: 0; z-index: 57; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
.snow.is-on { opacity: 1; }
@media print { .snow { display: none; } }

/* Cookie note on phones: smaller text, three compact buttons in one row */
@media (max-width: 600px) {
    .cookie-note { gap: var(--s2); padding: var(--s3); border-width: 2px; }
    .cookie-note p { flex-basis: 100%; font-size: .8125rem; line-height: 1.4; }
    .cookie-note__actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; margin-left: 0; gap: 6px; }
    .cookie-note__actions .btn--small { min-height: 38px; padding: 4px 8px; font-size: .8125rem; line-height: 1.15; white-space: normal; }
    .cookie-prefs small { font-size: .75rem; }
}

/* --- /fise/globulete-nume: ornaments with the children's names (js/ornaments.js draws them) --- */
.orn-app { display: grid; gap: var(--s5); align-items: start; margin: 0 0 var(--s6); }
@media (min-width: 960px) {
    .orn-app { grid-template-columns: minmax(300px, 380px) 1fr; }
    .orn-preview { position: sticky; top: var(--s4); }
}
.orn-form { display: grid; gap: var(--s4); padding: var(--s5); border: 3px solid var(--blue); }
.orn-field { display: grid; gap: var(--s2); font-weight: 700; color: var(--navy); }
.orn-field textarea {
    width: 100%; min-height: 168px; padding: var(--s3) var(--s4); resize: vertical;
    border: 2px solid var(--line); border-radius: var(--radius-s); background: var(--white); color: var(--ink);
    font: 600 var(--text)/1.45 var(--font-text);
}
.orn-field textarea:focus { border-color: var(--teal); outline: 0; box-shadow: 0 0 0 3px var(--mint); }
.orn-note { margin: 0; color: var(--muted); font-size: var(--text-small); }
.orn-note--safe { color: var(--teal-text); font-weight: 700; }
.orn-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.orn-form legend { margin-bottom: var(--s2); font-weight: 700; color: var(--navy); }
.orn-models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.orn-models legend { grid-column: 1 / -1; }
.orn-model { position: relative; display: grid; justify-items: center; gap: var(--s1); padding: var(--s2); border: 2px solid var(--line); border-radius: var(--radius-s); background: var(--white); cursor: pointer; text-align: center; font-size: var(--text-small); font-weight: 700; color: var(--navy); }
.orn-model input { position: absolute; opacity: 0; }
.orn-model:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 3px var(--sky-pale); }
.orn-model:has(input:focus-visible) { outline: 3px solid var(--teal); outline-offset: 2px; }
.orn-model__pic { display: block; width: 100%; max-width: 104px; aspect-ratio: 200 / 240; overflow: hidden; }
.orn-model__pic svg { display: block; width: 100%; height: 100%; overflow: hidden; }
.orn-model__pic--page { max-width: 72px; aspect-ratio: 182 / 268; box-shadow: 0 2px 6px rgba(13, 45, 107, .12); }
.orn-models--pages { grid-template-columns: repeat(2, 1fr); }
.orn-select, .orn-input { width: 100%; min-height: var(--field); padding: var(--s2) var(--s3); border: 2px solid var(--line); border-radius: var(--radius-s); background: var(--white); color: var(--ink); font: 600 var(--text)/1.3 var(--font-text); }
.orn-select:focus, .orn-input:focus { border-color: var(--teal); outline: 0; box-shadow: 0 0 0 3px var(--mint); }
.orn-field[hidden] { display: none; }
.orn-check { display: flex; align-items: center; gap: var(--s2); font-weight: 600; cursor: pointer; }
.orn-check input { width: 20px; height: 20px; accent-color: var(--blue); }
.xm-page { display: block; width: 100%; height: 100%; }
.orn-page[hidden] { display: none !important; }
.xm-sheet { padding: 3%; }
@media print { .xm-sheet { padding: 0; } .xm-page { print-color-adjust: exact; -webkit-print-color-adjust: exact; } }
.orn-model__name { font-size: .8125rem; line-height: 1.2; }
.orn-per { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.orn-per label { display: inline-flex; align-items: center; gap: var(--s2); font-weight: 600; cursor: pointer; }
.orn-per input { width: 20px; height: 20px; accent-color: var(--blue); }
.orn-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.orn-preview__title { margin: 0 0 var(--s3); font-size: 1.25rem; }
.orn-preview__title span { color: var(--muted); font: 600 var(--text-small) var(--font-text); }
.orn-print { display: grid; gap: var(--s5); }
.orn-page {
    display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(2, 1fr); gap: 2%;
    width: 100%; max-width: 640px; margin: 0 auto; aspect-ratio: 210 / 297; padding: 5%;
    border: 1px solid var(--line); border-radius: 4px; background: #fff; box-shadow: var(--shadow-card);
}
.orn-page--6 { grid-template-rows: repeat(3, 1fr); }
.orn-page--1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.orn-cell { display: grid; place-items: center; min-height: 0; break-inside: avoid; }
.orn-ball { display: block; width: 100%; height: 100%; }
.orn-cut { stroke: #111; stroke-width: 1.3; stroke-dasharray: 5 4; }
.orn-cut-img { fill: none; stroke: #111; stroke-width: 5; stroke-dasharray: 24 18; stroke-linejoin: round; }
.orn-ruler { position: absolute; width: 0; height: 0; overflow: hidden; visibility: hidden; }
.orn-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); margin: var(--s6) 0; padding: var(--s4) var(--s5); border: 3px solid var(--amber); }
.orn-share h2 { margin: 0; font-size: 1.125rem; }
.orn-share__links { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0; }
.orn-steps li { margin-bottom: var(--s2); }
@media (max-width: 599px) {
    .orn-form { padding: var(--s4); }
    .orn-models { grid-template-columns: repeat(2, 1fr); }
    .orn-model { grid-template-columns: 56px 1fr; justify-items: start; align-items: center; gap: var(--s2); text-align: left; }
    .orn-model__pic { max-width: 56px; }
    .orn-page { padding: 4%; }
}
@media print {
    body:has(.orn-print) { background: #fff; }
    body:has(.orn-print) > :not(.site-main),
    .orn-main .container > :not(.orn-app), .orn-app > :not(.orn-preview), .orn-preview > :not(.orn-print) { display: none !important; }
    .orn-main { padding: 0 !important; background: #fff !important; }
    .orn-main .container { max-width: none; padding: 0; }
    .orn-app, .orn-print { display: block; margin: 0; }
    .orn-page {
        width: 182mm; height: 268mm; max-width: none; aspect-ratio: auto; margin: 0; padding: 0; gap: 4mm;
        border: 0; border-radius: 0; box-shadow: none; break-after: page; break-inside: avoid;
    }
    .orn-page:last-child { break-after: auto; }
}

/* --- /fise/planse-de-colorat: the Christmas colouring pages --- */
.col-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: var(--s4); margin: 0 0 var(--s6); padding: 0; list-style: none; }
.col-theme > h2 { margin: 0 0 var(--s4); }
.col-grid--small { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: var(--s3); }
.col-card { display: grid; justify-items: center; gap: var(--s2); height: 100%; padding: var(--s3); border: 3px solid var(--blue); border-radius: var(--radius-m); background: var(--white); color: var(--navy); text-align: center; text-decoration: none; transition: transform var(--fast) ease; }
.col-card:hover, .col-card:focus-visible { transform: translateY(-3px); }
.col-card__pic { display: block; width: 100%; max-width: 180px; aspect-ratio: 200 / 220; }
.col-card strong { font: 800 1.0625rem/1.2 var(--font-display); }

/* The "Ai vrut să scrii ...?" hint under email fields (site.js) */
.email-hint { margin: var(--s1) 0 0; font-size: var(--text-small); font-weight: 600; color: var(--navy); }
.email-hint button { padding: 0; border: 0; background: none; color: var(--pink-text); font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

/* Parent dashboard: the "first lesson" call while a child has not started any lesson */
.kid-start { display: grid; gap: var(--s3); margin: var(--s3) 0; padding: var(--s4); border: 3px solid var(--teal); border-radius: var(--radius-m); background: var(--mint-soft); }
.kid-start p { margin: 0; }
.kid-start__form .btn { width: 100%; }
.kid-start__note { font-size: var(--text-small); color: var(--muted); }

/* "Ce fișă ți-ar prinde bine?" idea box under the sign-up (worksheets/_suggest.php) */
.ws-suggest { display: grid; gap: var(--s3) var(--s5); margin: var(--s5) 0 0; padding: var(--s5); border: 3px solid var(--amber); background: var(--white); color: var(--navy); }
.ws-suggest h2 { margin: 0 0 var(--s1); font-size: var(--title-3); }
.ws-suggest p { margin: 0; }
.ws-suggest__form { display: grid; gap: var(--s3); }
.ws-suggest__field { display: grid; gap: var(--s1); font-weight: 700; }
.ws-suggest__field textarea, .ws-suggest__field input { width: 100%; padding: var(--s2) var(--s3); border: 2px solid var(--line); border-radius: var(--radius-s); background: var(--white); color: var(--ink); font: 600 var(--text)/1.4 var(--font-text); }
.ws-suggest__field textarea:focus, .ws-suggest__field input:focus { border-color: var(--teal); outline: 0; box-shadow: 0 0 0 3px var(--mint); }
.ws-suggest .btn { justify-self: start; }
@media (min-width: 900px) { .ws-suggest { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; } }
.ws-suggest__text { min-width: 0; }

/* Forum: unread replies on the menu link, and a dot on the closed mobile menu */
.nav-badge { display: inline-grid; place-items: center; min-width: 1.35em; height: 1.35em; padding: 0 .35em; margin-left: .25em; border-radius: var(--radius-pill); background: var(--pink-strong); color: var(--white); font-size: .75rem; font-weight: 800; line-height: 1; vertical-align: .15em; }
.menu summary { position: relative; }
.menu__dot { position: absolute; top: 4px; right: 4px; width: 10px; height: 10px; border: 2px solid var(--white); border-radius: 50%; background: var(--pink-strong); }
.menu[open] .menu__dot { display: none; }

/* Grădiniță picture sheets: one drawing per row */
.ws-pics { display: grid; gap: var(--s4); }
.ws-pics__row svg { display: block; width: 100%; height: auto; max-width: 720px; margin: 0 auto; }
.ws-pics--key { gap: var(--s2); }
.ws-pics--key .ws-pics__row svg { max-width: 420px; margin: 0; }
@media print {
    .ws-pics { gap: 3mm; }
    .ws-pics__row svg { max-width: 100%; max-height: 225mm; }
    .ws-pics--key { grid-template-columns: repeat(2, 1fr); gap: 3mm 6mm; }
    .ws-pics--key .ws-pics__row svg { max-width: 100%; }
    .ws-pics svg { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* "Urmărește EDULO": the social pages after a free sheet or an article */
.follow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s5); margin: var(--s5) 0 0; padding: var(--s5); border: 3px solid var(--blue); background: var(--white); color: var(--navy); }
.follow .mascot { flex: none; }
.follow__body { flex: 1 1 280px; }
.follow__title { margin: 0 0 var(--s1); font-family: var(--font-title, inherit); font-size: var(--title-3); font-weight: 800; line-height: 1.2; }
.follow__body > p { margin: 0 0 var(--s3); }
.follow__links { display: flex; flex-wrap: wrap; gap: var(--s2); max-width: none !important; margin: 0 !important; }
.follow__links .btn, .ws-after [data-follow] { display: inline-flex; align-items: center; gap: var(--s2); }
.follow__links .icon, .ws-after [data-follow] .icon { width: 1.2em; height: 1.2em; }
.follow__fb { background: var(--facebook); border-color: var(--facebook); color: var(--white); }
.follow__fb:hover, .follow__fb:focus-visible { background: var(--facebook-deep); border-color: var(--facebook-deep); color: var(--white); }
@media print { .follow { display: none !important; } }

/* Facebook in the header, always in view: a round icon (and on phones, next to it, the account icon) */
.site-header__fb, .site-header__me { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--white) !important; text-decoration: none;
    box-shadow: 0 3px 0 rgba(13, 45, 107, .18); transition: transform var(--fast) ease; }
.site-header__fb { background: var(--facebook); }
.site-header__fb:hover, .site-header__fb:focus-visible { background: var(--facebook-deep); transform: translateY(-1px); }
.site-header__fb .icon, .site-header__me .icon { width: 26px; height: 26px; }
.site-header__me { background: var(--navy); }
.site-header__me:hover, .site-header__me:focus-visible { background: var(--pink-strong); transform: translateY(-1px); }
.site-header__fb--mobile { margin-left: auto; }
@media (min-width: 1080px) { .site-header__fb--mobile, .site-header__me { display: none; } }

/* Sheet pages: the idea box and "Urmărește" side by side, so the end of the page is not a stack of boxes */
.ws-extras { display: grid; gap: var(--s4); margin: var(--s5) 0 0; align-items: stretch; }
.ws-extras > * { margin: 0; }
@media (min-width: 900px) { .ws-extras { grid-template-columns: 3fr 2fr; } }
.follow--compact { display: block; padding: var(--s4); }
.follow--compact .follow__title { font-size: 1.1rem; }
.follow--compact .follow__links .btn { padding-inline: var(--s3); }
.ws-extras .ws-suggest { grid-template-columns: minmax(0, 1fr); }

/* Globulețe: the ornament with the child's photo (turned into line art in the browser, never uploaded) */
.orn-photo { display: grid; gap: var(--s3); margin: var(--s4) 0; padding: var(--s4); border: 3px solid var(--blue); border-radius: var(--radius-m, 16px); background: var(--white); }
.orn-photo__note, .orn-photo__status { margin: 0; }
.orn-photo__status { color: var(--muted); font-size: .95rem; }
.orn-photo__pick, .orn-photo__remove { justify-self: start; cursor: pointer; }
.orn-photo__tools { display: grid; gap: var(--s3); }
.orn-photo__range { display: grid; gap: var(--s1); font-weight: 700; }
.orn-photo__range input { width: 100%; max-width: 360px; }

/* Globulețe: the big button to the photo ornament page */
.orn-photo-cta { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: var(--s3) var(--s4); margin: 0 0 var(--s5); padding: var(--s4); border: 3px solid var(--pink-strong); border-radius: var(--radius-m, 16px); background: var(--white); color: var(--navy); text-decoration: none; box-shadow: 0 6px 0 rgba(219, 20, 119, .18); }
.orn-photo-cta:hover, .orn-photo-cta:focus-visible { transform: translateY(-2px); }
.orn-photo-cta__pic { width: 84px; height: 100px; }
.orn-photo-cta__pic svg { width: 100%; height: 100%; }
.orn-photo-cta__text { font-size: 1.05rem; }
.orn-photo-cta__text strong { display: block; font: 800 1.45rem/1.15 var(--font-title); }
.orn-photo-cta__btn { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 760px) { .orn-photo-cta { grid-template-columns: auto 1fr auto; } .orn-photo-cta__btn { grid-column: auto; } }
@media (prefers-reduced-motion: reduce) { .orn-photo-cta:hover { transform: none; } }

/* --- Weekly leagues (play/_league.php, LeagueService) ------------------------------------------- */
.lg { display: grid; gap: var(--s4); width: min(620px, 100%); margin: 0 auto; padding-top: var(--s3); }
.lg-head { display: grid; justify-items: center; gap: var(--s2); padding: var(--s5) var(--s4); border-radius: 28px; background: var(--white); text-align: center;
    box-shadow: 0 6px 0 rgba(13, 45, 107, .08), 0 16px 30px rgba(13, 45, 107, .12); }
.lg-head h1 { margin: 0; font: 800 clamp(1.8rem, 7vw, 2.4rem)/1.1 var(--font-title); color: var(--navy); }
.lg-days { margin: 0; font-weight: 800; color: var(--muted); }
.lg-rule { margin: 0; color: var(--navy); }
/* The shield: a coloured badge per league (fixed colours: bronze, silver, gold, diamond, star) */
.lg-shield, .lg-shield--bronz { --a: #E8A36B; --b: #B9692F; --c: #8A4A1C; }
.lg-shield--argint { --a: #EEF2F7; --b: #B8C2D1; --c: #7D889B; }
.lg-shield--aur { --a: #FFE27A; --b: #FFC531; --c: #D88E00; }
.lg-shield--diamant { --a: #9FE6FF; --b: #3BB7F0; --c: #1677B5; }
.lg-shield--stea { --a: #E2C8FF; --b: #A86BFF; --c: #6A35C2; }
.lg-head .lg-shield { position: relative; display: grid; place-items: center; width: 96px; height: 108px; color: #fff;
    background: radial-gradient(circle at 38% 28%, var(--a), var(--b) 55%, var(--c));
    clip-path: polygon(50% 0, 100% 14%, 96% 62%, 50% 100%, 4% 62%, 0 14%); filter: drop-shadow(0 8px 10px rgba(13, 45, 107, .25)); }
.lg-head .lg-shield span { font: 800 44px/1 var(--font-title); text-shadow: 0 3px 0 rgba(0, 0, 0, .2); }
.lg-road { display: flex; gap: 10px; margin: var(--s1) 0 0; padding: 0; list-style: none; }
.lg-road__step { width: 30px; height: 34px; opacity: .35; background: radial-gradient(circle at 38% 28%, var(--a), var(--b) 55%, var(--c));
    clip-path: polygon(50% 0, 100% 14%, 96% 62%, 50% 100%, 4% 62%, 0 14%); }
.lg-road__step.is-done { opacity: .75; }
.lg-road__step.is-here { opacity: 1; transform: scale(1.3); }
.lg-last { margin: 0; padding: var(--s3) var(--s4); border-radius: 20px; background: var(--white); color: var(--navy); font-weight: 800; text-align: center; border: 3px solid var(--line); }
.lg-last--up { border-color: #36C26E; background: #EAFBF1; }
.lg-last--down { border-color: #FF8A8A; background: #FFF1F1; }
.lg-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lg-row { display: grid; grid-template-columns: 34px 46px 1fr auto; align-items: center; gap: var(--s2); padding: 8px 14px; border-radius: 18px; background: var(--white);
    box-shadow: 0 4px 0 rgba(13, 45, 107, .08); color: var(--navy); }
.lg-row.is-up { box-shadow: inset 0 0 0 3px rgba(54, 194, 110, .45), 0 4px 0 rgba(13, 45, 107, .08); }
.lg-row.is-down { box-shadow: inset 0 0 0 3px rgba(255, 92, 92, .4), 0 4px 0 rgba(13, 45, 107, .08); }
.lg-row.is-me { background: linear-gradient(180deg, #FFF6D8, #FFE9A8); box-shadow: inset 0 0 0 3px #FFB21E, 0 5px 0 #E8960A; }
.lg-place { font: 800 22px/1 var(--font-title); text-align: center; }
.lg-row:nth-child(-n+3) .lg-place { color: #D88E00; }
.lg-mascot { width: 44px; height: 44px; }
.lg-name { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-xp { font: 800 18px/1 var(--font-title); color: var(--muted); }
.lg-line { display: flex; align-items: center; gap: var(--s2); font: 800 13px/1 var(--font-title); letter-spacing: .06em; text-transform: uppercase; }
.lg-line::before, .lg-line::after { content: ''; flex: 1; height: 3px; border-radius: 2px; background: currentColor; opacity: .5; }
.lg-line--up { color: #1E8A48; }
.lg-line--down { color: #C22E2E; }
.lg-note { margin: 0; color: var(--muted); text-align: center; }
.lg-cta { margin: 0; text-align: center; }

/* The child area has its own bottom tabs and short pages: no "back to top" button there */
.layout-child .to-top { display: none !important; }

/* League badges (images/ligi, cut out by tools/generate_characters.py --ligi) */
.lg-badge { position: relative; display: grid; place-items: center; width: clamp(150px, 46vw, 220px); }
.lg-badge::before { content: ''; position: absolute; inset: 8% 14%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 230, 140, .8), rgba(255, 230, 140, 0) 70%); animation: lg-glow 3s ease-in-out infinite; }
.lg-badge img { position: relative; width: 100%; height: auto; filter: drop-shadow(0 12px 14px rgba(13, 45, 107, .25)); animation: lg-float 3.4s ease-in-out infinite; }
.lg-road__step { width: 46px; height: auto; opacity: .45; background: none; clip-path: none; filter: grayscale(.6); transition: transform .2s ease; }
.lg-road__step img { display: block; width: 100%; height: auto; }
.lg-road__step.is-done { opacity: .85; filter: none; }
.lg-road__step.is-here { opacity: 1; filter: drop-shadow(0 4px 6px rgba(13, 45, 107, .3)); transform: scale(1.35); }
@keyframes lg-glow { 0%, 100% { opacity: .6; transform: scale(.95); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes lg-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@media (prefers-reduced-motion: reduce) { .lg-badge::before, .lg-badge img { animation: none; } }
body.assist-calm .lg-badge::before, body.assist-calm .lg-badge img { animation: none; }
