

.games-page,
.games-page *,
.games-page *::before,
.games-page *::after {
    box-sizing: border-box;
}



.games-page {
    width: 100%;
    min-height: 100vh;

    margin: 0;
    padding: 0;

    background: #fff8ec;
    color: #315c49;

    font-family: "Nunito", sans-serif;

    overflow: hidden;
}




.games-header {
    position: relative;

    width: 100%;

    padding: 95px 40px 75px;

    text-align: center;

    background: #fff8ec;

    overflow: hidden;
}


/* Decorative circle left */

.games-header::before {
    content: "";

    position: absolute;

    width: 230px;
    height: 230px;

    left: -100px;
    top: 20px;

    border-radius: 50%;

    background: #d9f3df;
}


/* Decorative circle right */

.games-header::after {
    content: "";

    position: absolute;

    width: 190px;
    height: 190px;

    right: -80px;
    top: 40px;

    border-radius: 50%;

    background: #f7d5e0;
}


/* Keep content above decoration */

.games-header > * {
    position: relative;

    z-index: 2;
}




.games-header .section-badge,
.category-section .section-badge,
.games-bottom .section-badge {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 10px 20px;

    border-radius: 50px;

    background: #d9f3df;

    color: #315c49;

    font-family: "Nunito", sans-serif;

    font-size: 12px;

    font-weight: 900;

    letter-spacing: 1.4px;

    text-transform: uppercase;
}




.games-header h1 {
    margin: 25px auto 18px;

    max-width: 900px;

    font-family: "Fredoka", sans-serif;

    font-size: clamp(48px, 6vw, 78px);

    font-weight: 700;

    line-height: 1.05;

    letter-spacing: -1px;

    color: #315c49;
}


.games-header h1 span {
    display: block;

    color: #61c9a5;
}




.games-header p {
    max-width: 680px;

    margin: 0 auto;

    font-size: 18px;

    line-height: 1.7;

    color: #527766;
}




.category-section {
    position: relative;

    width: 100%;

    padding: 85px 6% 100px;

    background: #d9f3df;

    overflow: hidden;
}




.category-title {
    position: relative;

    z-index: 2;

    text-align: center;

    margin-bottom: 50px;
}


.category-title h2 {
    margin: 0 0 10px;

    font-family: "Fredoka", sans-serif;

    font-size: clamp(38px, 4vw, 52px);

    font-weight: 700;

    color: #315c49;
}


.category-title p {
    margin: 0;

    font-size: 17px;

    color: #527766;
}




.category-grid {
    position: relative;

    z-index: 3;

    width: 100%;

    max-width: 1200px;

    margin: 0 auto;

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 35px;
}




.category-card {
    position: relative;

    display: flex;

    min-height: 460px;

    padding: 50px;

    border-radius: 42px;

    overflow: hidden;

    text-decoration: none;

    isolation: isolate;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}


.category-card:hover {
    transform: translateY(-10px);

    box-shadow:
        0 25px 60px rgba(49, 92, 73, 0.16);
}




.find-object-card {
    background: #f7d5e0;
}


.word-puzzle-card {
    background: #c7eaf2;
}




.category-card::before {
    content: "";

    position: absolute;

    width: 210px;
    height: 210px;

    right: -75px;
    top: -75px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.34);

    z-index: -1;
}


.category-card::after {
    content: "";

    position: absolute;

    width: 120px;
    height: 120px;

    left: -45px;
    bottom: -45px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.25);

    z-index: -1;
}




.category-card-content {
    position: relative;

    z-index: 10;

    width: 65%;

    max-width: 450px;
}




.category-age {
    display: inline-flex;

    align-items: center;

    padding: 10px 18px;

    border-radius: 50px;

    background: rgba(255, 255, 255, 0.94);

    color: #315c49;

    font-size: 15px;

    font-weight: 900;

    letter-spacing: 1px;
}




.category-card h3 {
    margin: 25px 0 17px;

    font-family: "Fredoka", sans-serif;

    font-size: clamp(42px, 4vw, 58px);

    line-height: 1;

    color: #315c49;
}




.category-card p {
    max-width: 370px;

    margin: 0;

    font-size: 16px;

    line-height: 1.75;

    color: #527766;
}




.category-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    margin-top: 28px;

    padding: 15px 27px;

    border-radius: 50px;

    background: #315c49;

    color: #ffffff;

    font-size: 14px;

    font-weight: 900;

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}


.category-card:hover .category-button {
    background: #61c9a5;

    transform: translateY(-2px);
}




.category-character {
    position: absolute;

    z-index: 5;

    display: block;

    object-fit: contain;

    pointer-events: none;

    user-select: none;

    transition:
        transform 0.4s ease;
}


/* Rabbit */

.rabbit-character {
    width: 270px;

    right: -5px;

    bottom: -40px;
}


/* Bear */

.bear-character {
    width: 255px;

    right: 0;

    bottom: -35px;
}


/* Character hover */

.category-card:hover .rabbit-character {
    transform: translateY(-8px) rotate(-2deg);
}


.category-card:hover .bear-character {
    transform: translateY(-8px) rotate(2deg);
}




.category-card-content::after {
    content: "*";

    position: absolute;

    right: -40px;
    bottom: -55px;

    font-family: "Fredoka", sans-serif;

    font-size: 55px;

    color: rgba(255, 255, 255, 0.65);
}




.how-to-section {
    position: relative;

    width: calc(100% - 12%);

    max-width: 1200px;

    min-height: 500px;

    margin: 90px auto;

    padding: 65px 70px;

    border-radius: 45px;

    background: #315c49;

    display: grid;

    grid-template-columns: 1fr 0.7fr;

    align-items: center;

    gap: 40px;

    overflow: hidden;
}




.how-to-section::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    right: -180px;
    top: -170px;

    border-radius: 50%;

    background: #61c9a5;
}


.how-to-section::after {
    content: "";

    position: absolute;

    width: 330px;
    height: 330px;

    right: -20px;
    top: -85px;

    border-radius: 50%;

    background: rgba(255,255,255,0.22);
}




.how-to-content {
    position: relative;

    z-index: 5;
}


.how-to-content .section-badge {
    display: inline-flex;

    padding: 10px 20px;

    border-radius: 50px;

    background: #61c9a5;

    color: white;

    font-size: 12px;

    font-weight: 900;

    letter-spacing: 1.3px;
}


.how-to-content h2 {
    margin: 22px 0 17px;

    font-family: "Fredoka", sans-serif;

    font-size: clamp(45px, 5vw, 68px);

    line-height: 1;

    color: #ffffff;
}


.how-to-content h2 span {
    color: #61c9a5;
}


.how-to-content > p {
    max-width: 570px;

    margin: 0 0 35px;

    color: #d9f3df;

    font-size: 16px;

    line-height: 1.75;
}




.how-steps {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 22px 35px;
}


.how-step {
    display: flex;

    align-items: center;

    gap: 15px;
}


.how-number {
    flex-shrink: 0;

    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #d9f3df;

    color: #315c49;

    font-size: 12px;

    font-weight: 900;
}


.how-step:nth-child(2) .how-number {
    background: #f7d5e0;
}


.how-step:nth-child(3) .how-number {
    background: #f7e4a7;
}


.how-step:nth-child(4) .how-number {
    background: #c7eaf2;
}


.how-step h3 {
    margin: 0 0 3px;

    font-family: "Fredoka", sans-serif;

    font-size: 20px;

    color: #ffffff;
}


.how-step p {
    margin: 0;

    font-size: 13px;

    color: #c8dfd2;
}




.how-to-character {
    position: relative;

    height: 390px;

    z-index: 5;
}


.how-to-character .character-circle {
    position: absolute;

    width: 360px;
    height: 360px;

    right: -40px;
    top: 10px;

    border-radius: 50%;

    background: #61c9a5;
}


.how-to-character img {
    position: absolute;

    z-index: 10;

    width: 335px;

    right: 0;

    bottom: -20px;

    object-fit: contain;
}




.games-bottom {
    position: relative;

    padding: 95px 6% 110px;

    text-align: center;

    background: #fff8ec;

    overflow: hidden;
}


.games-bottom::before {
    content: "";

    position: absolute;

    width: 170px;
    height: 170px;

    left: -65px;
    top: 40px;

    border-radius: 50%;

    background: #d9f3df;
}


.games-bottom::after {
    content: "";

    position: absolute;

    width: 160px;
    height: 160px;

    right: -60px;
    bottom: 20px;

    border-radius: 50%;

    background: #f7d5e0;
}


.games-bottom > * {
    position: relative;

    z-index: 2;
}


.games-bottom h2 {
    margin: 23px 0 15px;

    font-family: "Fredoka", sans-serif;

    font-size: clamp(45px, 5vw, 70px);

    line-height: 1;

    color: #315c49;
}


.games-bottom h2 span {
    color: #61c9a5;
}


.games-bottom p {
    margin: 0;

    font-size: 17px;

    color: #527766;
}




@media (min-width: 1200px) {

    .category-card {
        min-height: 470px;
    }

    .rabbit-character {
        width: 300px;

        right: -10px;

        bottom: -45px;
    }

    .bear-character {
        width: 280px;

        right: -5px;

        bottom: -40px;
    }

}




@media (max-width: 1000px) {

    .category-grid {
        grid-template-columns: 1fr;

        max-width: 650px;
    }


    .category-card {
        min-height: 430px;
    }


    .how-to-section {
        grid-template-columns: 1fr;

        width: calc(100% - 10%);

        padding: 55px;
    }


    .how-to-character {
        display: none;
    }

}




@media (max-width: 700px) {

    .games-header {
        padding: 65px 25px 60px;
    }


    .games-header h1 {
        font-size: 46px;
    }


    .games-header p {
        font-size: 16px;
    }


    .category-section {
        padding: 65px 20px 75px;
    }


    .category-title {
        margin-bottom: 35px;
    }


    .category-title h2 {
        font-size: 38px;
    }


    .category-title p {
        font-size: 15px;
    }


    .category-grid {
        width: 100%;
    }


    .category-card {
        min-height: 520px;

        padding: 35px 30px;

        border-radius: 32px;
    }


    .category-card-content {
        width: 100%;
    }


    .category-card h3 {
        font-size: 42px;
    }


    .category-card p {
        max-width: 300px;
    }


    .rabbit-character {
        width: 210px;

        right: -5px;

        bottom: -25px;
    }


    .bear-character {
        width: 200px;

        right: 0;

        bottom: -20px;
    }


    .how-to-section {
        width: calc(100% - 30px);

        margin: 60px auto;

        padding: 45px 30px;

        border-radius: 32px;
    }


    .how-to-content h2 {
        font-size: 48px;
    }


    .how-steps {
        grid-template-columns: 1fr;
    }


    .games-bottom {
        padding: 70px 25px 80px;
    }


    .games-bottom h2 {
        font-size: 48px;
    }

}




@media (max-width: 430px) {

    .games-header h1 {
        font-size: 39px;
    }


    .category-card {
        min-height: 500px;

        padding: 30px 25px;
    }


    .category-card h3 {
        font-size: 36px;
    }


    .category-card p {
        font-size: 15px;
    }


    .rabbit-character {
        width: 180px;
    }


    .bear-character {
        width: 175px;
    }


    .how-to-content h2 {
        font-size: 42px;
    }

}