.child-level-page {
    max-width: 1420px;
    margin: 0 auto;
    padding-bottom: 14px;
}

.child-level-hero {
    display: grid;
    grid-template-columns: minmax(230px, 340px) minmax(0, 1fr);
    align-items: center;
    gap: 28px;
}

.child-level-hero__leo {
    font-size: clamp(170px, 19vw, 290px);
    line-height: 0.9;
    filter: drop-shadow(0 18px 14px rgba(111, 65, 25, 0.2));
    transform: rotate(-4deg);
}

.child-level-hero__main {
    display: grid;
    gap: 16px;
}

.child-level-title-card {
    padding: 18px 34px;
    border: 2px solid rgba(255, 255, 255, 0.88);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--lingo-shadow-md);
    text-align: center;
    backdrop-filter: blur(12px);
}

.child-level-title-card__eyebrow {
    display: block;
    font-family: var(--lingo-font-heading);
    font-size: clamp(18px, 2vw, 26px);
    font-weight: 800;
}

.child-level-title-card h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin: 3px 0;
    color: var(--lingo-purple);
    font-family: var(--lingo-font-heading);
    font-size: clamp(56px, 7vw, 92px);
    font-weight: 800;
    line-height: 1;
}

.child-level-title-card h1 span {
    font-size: 0.42em;
}

.child-level-title-card p {
    margin: 0;
    color: var(--lingo-pink);
    font-family: var(--lingo-font-heading);
    font-size: clamp(19px, 2.3vw, 30px);
    font-weight: 800;
}

.child-level-explanation {
    position: relative;
    max-width: 720px;
    padding: 18px 26px;
    border: 2px solid rgba(255, 255, 255, 0.88);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.83);
    box-shadow: var(--lingo-shadow-sm);
}

.child-level-explanation::before {
    content: "";
    position: absolute;
    left: -28px;
    top: 50%;
    border-top: 18px solid transparent;
    border-right: 30px solid rgba(255, 255, 255, 0.83);
    border-bottom: 18px solid transparent;
    transform: translateY(-50%);
}

.child-level-explanation p {
    margin: 0;
    font-size: clamp(16px, 1.8vw, 23px);
    font-weight: 700;
    line-height: 1.55;
}

.child-level-progress-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    margin-top: 14px;
    padding: 20px 28px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--lingo-shadow-sm);
    backdrop-filter: blur(12px);
}

.child-level-progress-card__icon,
.child-level-progress-card__chest {
    font-size: 58px;
}

.child-level-progress-card__body > strong {
    display: block;
    margin-bottom: 9px;
    font-family: var(--lingo-font-heading);
    font-size: 21px;
    font-weight: 800;
}

.child-level-progress-card__row {
    display: flex;
    align-items: center;
    gap: 18px;
}

.child-level-progress-track {
    height: 17px;
    flex: 1;
    overflow: hidden;
    border-radius: 999px;
    background: #ddd5f4;
}

.child-level-progress-track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        #57db66 0%,
        #4fcd5d 48%,
        #9a5cff 49%,
        #7e48e6 100%
    );
}

.child-level-progress-card__row span {
    font-weight: 800;
    white-space: nowrap;
}

.child-level-lessons {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.child-level-lesson {
    position: relative;
    display: flex;
    min-height: 390px;
    flex-direction: column;
    align-items: center;
    padding: 18px 14px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--lingo-shadow-md);
    text-align: center;
    overflow: hidden;
}

.child-level-lesson::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.45)
    );
    pointer-events: none;
}

.child-level-lesson > * {
    position: relative;
    z-index: 1;
}

.child-level-lesson__number {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    border: 5px solid rgba(255, 255, 255, 0.78);
    border-radius: 50%;
    color: #fff;
    background: var(--lingo-purple);
    box-shadow: 0 8px 16px rgba(94, 62, 166, 0.22);
    font-family: var(--lingo-font-heading);
    font-size: 29px;
    font-weight: 800;
}

.child-level-lesson h2 {
    margin: 10px 0 4px;
    font-family: var(--lingo-font-heading);
    font-size: 22px;
    font-weight: 800;
}

.child-level-lesson__image {
    display: grid;
    min-height: 150px;
    place-items: center;
    font-size: 110px;
    line-height: 1;
    filter: drop-shadow(0 10px 6px rgba(64, 52, 70, 0.14));
}

.child-level-lesson__stars {
    font-size: 24px;
    letter-spacing: -5px;
}

.child-level-lesson button,
.child-level-lesson__button {
    display: block;
    width: 100%;
    margin-top: auto;
    padding: 11px 16px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(180deg, #9c5cff, #7339e3);
    box-shadow: 0 7px 14px rgba(111, 57, 215, 0.28);
    font-family: var(--lingo-font-heading);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.child-level-lesson__button:hover,
.child-level-lesson__button:focus {
    color: #fff;
    text-decoration: none;
}

.child-level-lesson__lock {
    margin-top: auto;
    padding: 9px 12px;
    border-radius: 999px;
    color: #484858;
    background: rgba(255, 255, 255, 0.66);
    font-size: 13px;
    font-weight: 800;
}

.child-level-lesson__boss-label {
    padding: 6px 16px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(180deg, #9d5cff, #6e38e0);
    font-family: var(--lingo-font-heading);
    font-size: 18px;
    font-weight: 800;
}

.child-level-lesson--purple {
    background: linear-gradient(
        180deg,
        rgba(248, 235, 255, 0.95),
        rgba(255, 255, 255, 0.74)
    );
}

.child-level-lesson--purple h2 {
    color: #6d2bd3;
}

.child-level-lesson--green {
    background: linear-gradient(
        180deg,
        rgba(237, 255, 230, 0.95),
        rgba(255, 255, 255, 0.74)
    );
}

.child-level-lesson--green .child-level-lesson__number {
    background: #51c94a;
}

.child-level-lesson--green h2 {
    color: #14962e;
}

.child-level-lesson--green button,
.child-level-lesson--green .child-level-lesson__button {
    background: linear-gradient(180deg, #6bd95d, #37b640);
}

.child-level-lesson--blue {
    background: linear-gradient(
        180deg,
        rgba(232, 246, 255, 0.96),
        rgba(255, 255, 255, 0.74)
    );
}

.child-level-lesson--blue .child-level-lesson__number {
    background: #34a9ef;
}

.child-level-lesson--blue h2 {
    color: #1678d2;
}

.child-level-lesson--blue button,
.child-level-lesson--blue .child-level-lesson__button {
    background: linear-gradient(180deg, #55c8ff, #198edf);
}

.child-level-lesson--orange {
    background: linear-gradient(
        180deg,
        rgba(255, 245, 225, 0.96),
        rgba(255, 255, 255, 0.74)
    );
}

.child-level-lesson--orange .child-level-lesson__number {
    background: #ff991d;
}

.child-level-lesson--orange h2 {
    color: #f06416;
}

.child-level-lesson--pink {
    background: linear-gradient(
        180deg,
        rgba(255, 233, 244, 0.96),
        rgba(255, 255, 255, 0.74)
    );
}

.child-level-lesson--pink .child-level-lesson__number {
    background: #ff5b93;
}

.child-level-lesson--pink h2 {
    color: #f02f75;
}

.child-level-lesson--boss {
    background: linear-gradient(
        180deg,
        rgba(255, 242, 196, 0.98),
        rgba(255, 255, 255, 0.78)
    );
}

.child-level-lesson--locked {
    filter: grayscale(0.62);
    opacity: 0.76;
}

.child-level-lesson--current {
    animation: child-level-current 2.8s ease-in-out infinite;
}

.child-level-tip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 18px 24px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--lingo-shadow-sm);
    text-align: left;
}

.child-level-tip__icon {
    font-size: 50px;
}

.child-level-tip strong {
    display: block;
    font-family: var(--lingo-font-heading);
    font-size: 19px;
    font-weight: 800;
}

.child-level-tip p {
    margin: 4px 0 0;
    font-weight: 700;
}

.child-level-tip p span {
    color: var(--lingo-pink);
    font-family: var(--lingo-font-heading);
    font-size: 18px;
    font-weight: 800;
}

@keyframes child-level-current {
    0%,
    100% {
        transform: translateY(0);
        box-shadow: var(--lingo-shadow-md);
    }

    50% {
        transform: translateY(-6px);
        box-shadow: 0 18px 32px rgba(54, 169, 239, 0.24);
    }
}

@media (max-width: 1199.98px) {
    .child-level-lessons {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .child-level-lesson {
        min-height: 360px;
    }
}

@media (max-width: 991.98px) {
    .child-level-hero {
        grid-template-columns: 1fr;
    }

    .child-level-hero__leo {
        display: none;
    }

    .child-level-explanation {
        max-width: none;
    }

    .child-level-explanation::before {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .child-level-progress-card {
        grid-template-columns: auto 1fr;
    }

    .child-level-progress-card__chest {
        display: none;
    }

    .child-level-progress-card__row {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .child-level-progress-track {
        width: 100%;
        flex: none;
    }

    .child-level-lessons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .child-level-title-card {
        padding-inline: 16px;
    }

    .child-level-title-card h1 {
        gap: 8px;
    }

    .child-level-lessons {
        grid-template-columns: 1fr;
    }

    .child-level-lesson {
        min-height: 340px;
    }

    .child-level-tip {
        align-items: flex-start;
    }
}