/* ==================================================
   LESSON 3 — NUMBERS 1–20
   Uses Lesson 2 visual system
================================================== */

@import url("lesson-2.css");


/* ==================================================
   NUMBER CARD
================================================== */

.number-learning-card {
    width: min(620px, 100%);
    margin: 0 auto;

    min-height: 390px;
}


.number-big-digit {
    margin:
        6px
        auto
        8px;

    color: #7d719f;

    font-size:
        clamp(
            82px,
            12vw,
            132px
        );

    font-weight: 700;
    line-height: 1;

    text-align: center;

    text-shadow:
        0 7px 0
        rgba(189, 177, 214, 0.18);

    animation:
        numberPop
        0.4s
        ease;
}


@keyframes numberPop {

    0% {
        opacity: 0;
        transform:
            scale(0.84)
            translateY(8px);
    }

    100% {
        opacity: 1;
        transform:
            scale(1)
            translateY(0);
    }
}


.number-word {
    margin:
        0 auto
        22px;

    color: #625a74;

    font-size:
        clamp(
            38px,
            5vw,
            54px
        );

    font-weight: 700;
    line-height: 1.05;

    text-align: center;
}


/* ==================================================
   -TEEN EXPLANATION
================================================== */

.teen-explanation-card {
    width: min(700px, 100%);

    margin:
        0 auto
        24px;

    padding: 22px 24px;

    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;

    background:
        linear-gradient(
            135deg,
            #fff8e8,
            #f5f1fb
        );

    border: 2px solid #eadfbf;
    border-bottom: 6px solid #d8caa4;
    border-radius: 26px;

    box-shadow:
        0 10px 25px
        rgba(126, 102, 55, 0.07);
}


.teen-explanation-card[hidden] {
    display: none;
}


.teen-secret-icon {
    width: 68px;
    height: 68px;

    display: grid;
    place-items: center;

    background:
        rgba(255, 255, 255, 0.86);

    border: 2px solid #eadfca;
    border-radius: 21px;

    font-size: 34px;
}


.teen-secret-label {
    display: block;

    margin-bottom: 4px;

    color: #9a7e45;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.4px;
}


.teen-explanation-card h3 {
    margin:
        0
        0
        9px;

    color: #655b4e;

    font-size: 24px;
}


.teen-explanation-card p {
    margin:
        0
        0
        14px;

    color: #7f766a;

    font-size: 14px;
    line-height: 1.55;
}


.teen-example-grid {
    margin-bottom: 14px;

    display: grid;
    grid-template-columns:
        repeat(2, 1fr);
    gap: 9px;
}


.teen-example-grid span {
    padding:
        10px
        12px;

    background:
        rgba(255, 255, 255, 0.82);

    border: 1px solid #eadfca;
    border-radius: 13px;

    color: #6d6477;

    font-size: 14px;
    font-weight: 600;
}


.teen-example-grid strong {
    color: #8a6db4;
}


.teen-note {
    margin-bottom: 0 !important;

    padding:
        10px
        12px;

    background:
        rgba(240, 235, 248, 0.75);

    border-radius: 12px;

    color: #716879 !important;

    font-size: 13px !important;
}


/* ==================================================
   NUMBER REVIEW
================================================== */

.numbers-success-page {
    justify-content: flex-start;

    padding-top: 48px;
    padding-bottom: 48px;
}


.number-review-grid {
    width: min(720px, 100%);

    margin:
        26px auto
        30px;

    display: grid;
    grid-template-columns:
        repeat(5, 1fr);
    gap: 12px;
}


.number-review-grid > span {
    min-height: 78px;

    padding:
        12px 8px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            180deg,
            #fffefb,
            #f8f5ef
        );

    border: 2px solid #e7dfd5;
    border-bottom: 5px solid #d8cec1;
    border-radius: 18px;

    color: #625b70;

    font-size: 27px;
    font-weight: 700;

    box-shadow:
        0 7px 16px
        rgba(94, 79, 60, 0.05);
}


.number-review-grid small {
    margin-top: 4px;

    color: #8b8490;

    font-size: 12px;
    font-weight: 500;
}


/* ==================================================
   NUMBERS PART CARDS
================================================== */

.lesson-part-one
.lesson-part-icon {
    background:
        linear-gradient(
            135deg,
            #f2eef9,
            #eef5f3
        );
}


.lesson-part-two
.lesson-part-icon {
    background:
        linear-gradient(
            135deg,
            #f5f1fb,
            #fff6e8
        );
}


/* ==================================================
   NUMBER GAME — COUNT OBJECTS
================================================== */

.count-task {
    width: min(650px, 100%);

    margin: 0 auto;

    text-align: center;
}


.count-object-cloud {
    min-height: 190px;

    margin:
        20px auto
        25px;

    padding:
        23px;

    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;

    background:
        linear-gradient(
            180deg,
            #fffdf8,
            #f8f4ee
        );

    border: 2px solid #e8dfd4;
    border-radius: 25px;

    font-size:
        clamp(
            34px,
            6vw,
            48px
        );

    line-height: 1;
}


.count-task h3 {
    margin-bottom: 15px;

    color: #625c6b;

    font-size: 25px;
}


/* ==================================================
   LISTEN & TYPE
================================================== */

.number-listen-panel {
    width: min(600px, 100%);

    margin: 0 auto;

    text-align: center;
}


.number-listen-icon {
    margin-bottom: 16px;

    font-size: 65px;
}


.number-type-helper {
    margin:
        12px
        0
        22px;

    color: #8a8390;

    font-size: 13px;
}


/* ==================================================
   NUMBER SEQUENCE
================================================== */

.number-sequence {
    margin:
        24px
        auto;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}


.number-sequence span {
    min-width: 55px;

    padding:
        11px
        12px;

    background: #f5f1f8;

    border: 2px solid #e0d8e8;
    border-bottom: 4px solid #cbc0d8;
    border-radius: 14px;

    color: #665e76;

    font-size: 22px;
    font-weight: 700;
}


.number-sequence .missing-number {
    background: #fff9e8;

    border-style: dashed;

    color: #9a844d;
}


/* ==================================================
   NUMBER HUNT
================================================== */

.number-hunt-grid {
    width: min(650px, 100%);

    margin:
        25px auto;

    display: grid;
    grid-template-columns:
        repeat(4, 1fr);
    gap: 12px;
}


.number-hunt-card {
    min-height: 88px;

    padding: 12px;

    display: grid;
    place-items: center;

    background:
        linear-gradient(
            180deg,
            #fffefc,
            #f6f2ec
        );

    border: 2px solid #e5ded4;
    border-bottom: 5px solid #d4c9bb;
    border-radius: 18px;

    color: #645d70;

    font-family: inherit;
    font-size: 23px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.16s ease,
        background 0.16s ease,
        border-color 0.16s ease;
}


.number-hunt-card:hover {
    transform:
        translateY(-2px);
}


.number-hunt-card.correct {
    background:
        linear-gradient(
            180deg,
            #f3f8ed,
            #eaf3e3
        );

    border-color: #bfd2ae;
    border-bottom-color: #a9bf97;
}


.number-hunt-card.wrong {
    background:
        linear-gradient(
            180deg,
            #fff3f3,
            #fae9e9
        );

    border-color: #deb3b3;
    border-bottom-color: #ca9b9b;
}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 700px) {

    .number-review-grid {
        grid-template-columns:
            repeat(4, 1fr);
    }


    .teen-example-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 560px) {

    .number-big-digit {
        font-size: 88px;
    }


    .number-word {
        font-size: 38px;
    }


    .teen-explanation-card {
        grid-template-columns: 1fr;

        padding: 17px;
    }


    .teen-secret-icon {
        width: 58px;
        height: 58px;

        margin: 0 auto;

        font-size: 30px;
    }


    .teen-explanation-card > div:last-child {
        text-align: center;
    }


    .number-review-grid {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 9px;
    }


    .number-review-grid > span {
        min-height: 68px;

        font-size: 24px;
    }


    .number-hunt-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .count-object-cloud {
        min-height: 150px;

        padding: 16px;

        font-size: 35px;
    }

}

/* ==================================================
   LESSON 3 — VIDEO + EXTERNAL NUMBER GAMES
================================================== */


/* ==================================================
   DIVIDER
================================================== */

.resource-section-divider {
    width: min(720px, 100%);

    margin:
        38px
        auto
        30px;

    display: flex;
    align-items: center;
    gap: 16px;
}


.resource-section-divider::before,
.resource-section-divider::after {
    content: "";

    flex: 1;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #ddd5e6,
            transparent
        );
}


.resource-section-divider span {
    flex-shrink: 0;

    padding:
        8px
        14px;

    background:
        linear-gradient(
            180deg,
            #f4f0f8,
            #eee9f4
        );

    border: 2px solid #e1d9e8;
    border-radius: 14px;

    color: #7d7391;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.3px;
}


/* ==================================================
   EXTERNAL GAMES HEADING
================================================== */

.external-games-heading {
    max-width: 650px;

    margin:
        0
        auto
        28px;

    text-align: center;
}


.external-games-icon {
    width: 82px;
    height: 82px;

    margin:
        0
        auto
        14px;

    display: grid;
    place-items: center;

    background:
        linear-gradient(
            135deg,
            #f2eef8,
            #edf5ee
        );

    border: 2px solid #e2dbea;
    border-bottom: 6px solid #d1c7dc;
    border-radius: 25px;

    box-shadow:
        0 9px 20px
        rgba(99, 83, 126, 0.08);

    font-size: 42px;
}


.external-games-heading h3 {
    margin:
        0
        0
        9px;

    color: #575160;

    font-size:
        clamp(
            29px,
            4vw,
            38px
        );

    line-height: 1.1;
}


.external-games-heading p {
    margin: 0;

    color: #817b87;

    font-size: 15px;
    line-height: 1.5;
}


/* ==================================================
   EXTERNAL GAME GRID
================================================== */

.number-resource-grid {
    width: min(820px, 100%);

    margin:
        0
        auto;

    display: grid;
    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;
}


/* ==================================================
   GAME RESOURCE CARD
================================================== */

.number-resource-card {
    min-height: 330px;

    padding:
        22px
        18px
        18px;

    display: flex;
    flex-direction: column;

    background:
        linear-gradient(
            180deg,
            #fffefb,
            #faf7f2
        );

    border: 2px solid #e8e1d8;
    border-bottom: 6px solid #d7cdc0;
    border-radius: 24px;

    box-shadow:
        0 10px 25px
        rgba(98, 83, 65, 0.06);

    text-align: center;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}


.number-resource-card:hover {
    transform:
        translateY(-4px);

    box-shadow:
        0 16px 30px
        rgba(98, 83, 65, 0.10);
}


/* ==================================================
   RESOURCE ICON
================================================== */

.number-resource-icon {
    width: 70px;
    height: 70px;

    margin:
        0
        auto
        14px;

    display: grid;
    place-items: center;

    background:
        linear-gradient(
            135deg,
            #f1edf8,
            #eef4eb
        );

    border: 2px solid #e2dbea;
    border-bottom: 5px solid #d0c6dd;
    border-radius: 21px;

    font-size: 36px;
}


/* Different small accents */

.number-resource-card:nth-child(2)
.number-resource-icon {
    background:
        linear-gradient(
            135deg,
            #fff1ec,
            #fff8e8
        );

    border-color: #eadfd3;
    border-bottom-color: #d9c8ba;
}


.number-resource-card:nth-child(3)
.number-resource-icon {
    background:
        linear-gradient(
            135deg,
            #edf5f4,
            #f4f1fa
        );

    border-color: #dbe5e4;
    border-bottom-color: #c8d6d4;
}


/* ==================================================
   LABEL
================================================== */

.number-resource-label {
    display: inline-block;

    width: fit-content;

    margin:
        0
        auto
        8px;

    padding:
        6px
        9px;

    background: #f1edf6;

    border-radius: 10px;

    color: #877b9e;

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.2px;
}


/* ==================================================
   RESOURCE TEXT
================================================== */

.number-resource-card h3 {
    margin:
        0
        0
        9px;

    color: #5a5461;

    font-size: 21px;
    line-height: 1.15;
}


.number-resource-card p {
    margin:
        0
        0
        15px;

    color: #827c86;

    font-size: 13px;
    line-height: 1.5;
}


/* ==================================================
   SKILLS
================================================== */

.resource-skill-list {
    margin:
        auto
        0
        16px;

    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
}


.resource-skill-list span {
    padding:
        6px
        8px;

    background: #f6f2f8;

    border-radius: 9px;

    color: #80768d;

    font-size: 10px;
    font-weight: 600;
}


/* ==================================================
   GAME BUTTON
================================================== */

.number-game-button {
    width: 100%;

    padding:
        12px
        15px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            180deg,
            #aaa0cb,
            #9489b8
        );

    border: 2px solid #9185b4;
    border-bottom: 5px solid #796e9f;
    border-radius: 15px;

    color: #ffffff;

    font-family: "Fredoka", sans-serif;
    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    box-shadow:
        0 7px 14px
        rgba(105, 89, 145, 0.11);

    transition:
        transform 0.16s ease,
        filter 0.16s ease,
        border-bottom-width 0.16s ease;
}


.number-game-button:hover {
    transform:
        translateY(-2px);

    filter:
        brightness(1.04);
}


.number-game-button:active {
    transform:
        translateY(2px);

    border-bottom-width: 2px;
}


/* ==================================================
   OPTIONAL NOTE
================================================== */

.external-games-note {
    width: min(680px, 100%);

    margin:
        28px
        auto
        0;

    padding:
        16px
        18px;

    display: flex;
    align-items: center;
    gap: 14px;

    background:
        linear-gradient(
            135deg,
            #fff9e9,
            #f5f2ec
        );

    border: 2px solid #eadfbd;
    border-bottom: 5px solid #d7c99f;
    border-radius: 20px;

    text-align: left;
}


.external-games-note-icon {
    width: 50px;
    height: 50px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    background:
        rgba(255, 255, 255, 0.86);

    border-radius: 15px;

    font-size: 26px;
}


.external-games-note strong {
    display: block;

    margin-bottom: 3px;

    color: #74664b;

    font-size: 14px;
}


.external-games-note p {
    margin: 0;

    color: #857b68;

    font-size: 12px;
    line-height: 1.45;
}


/* ==================================================
   EXTRA SPACING BEFORE CONTINUE BUTTON
================================================== */

.external-games-note
+
.main-action-button {
    margin-top: 28px;
}


/* ==================================================
   VIDEO PAGE WITH MORE CONTENT
================================================== */

.video-page {
    padding-bottom: 55px;
}


/* ==================================================
   TABLET
================================================== */

@media (max-width: 820px) {

    .number-resource-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .number-resource-card:last-child {
        grid-column:
            1 / -1;

        width: min(390px, 100%);

        justify-self: center;
    }

}


/* ==================================================
   PHONE
================================================== */

@media (max-width: 560px) {

    .resource-section-divider {
        margin:
            30px
            auto
            24px;

        gap: 8px;
    }


    .resource-section-divider span {
        padding:
            7px
            9px;

        font-size: 8px;
        letter-spacing: 0.8px;
    }


    .external-games-icon {
        width: 70px;
        height: 70px;

        font-size: 36px;
    }


    .external-games-heading h3 {
        font-size: 29px;
    }


    .external-games-heading p {
        font-size: 13px;
    }


    .number-resource-grid {
        grid-template-columns: 1fr;

        gap: 14px;
    }


    .number-resource-card,
    .number-resource-card:last-child {
        width: 100%;

        min-height: 0;

        padding:
            18px
            15px;
    }


    .number-resource-icon {
        width: 62px;
        height: 62px;

        font-size: 32px;
    }


    .external-games-note {
        padding:
            13px
            14px;
    }


    .external-games-note-icon {
        width: 43px;
        height: 43px;

        font-size: 23px;
    }

}