/* =========================================================
   TEACHER KHEN'S LEARNING HUB
   MAIN STYLESHEET
   ========================================================= */

:root {

    --blue: #29abe2;
    --pink: #f06eaa;
    --green: #009245;
    --orange: #fbb03b;
    --purple: #b481f1;
    --dark-blue: #1a1a4b;

}


/* =========================================================
   BASIC PAGE
   ========================================================= */

html,
body {

    margin: 0;
    padding: 0;

    min-height: 100%;

    font-family:
        'Chalkboard SE',
        'Arial',
        sans-serif;

    overflow-x: hidden;

    background-attachment: fixed;

}


body.modal-open {

    overflow: hidden;

}


/* =========================================================
   BACKGROUND
   ========================================================= */

.bg-container {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background-image:
        url('background homepage.avif');

    background-size: cover;
    background-position: center;

    z-index: -1;

}


/* =========================================================
   WELCOME SCREEN
   ========================================================= */

#welcome-overlay {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background:
        rgba(255, 255, 255, 0.3);

    backdrop-filter: blur(8px);

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    z-index: 2000;

    transition:
        transform 0.8s
        cubic-bezier(
            0.77,
            0,
            0.175,
            1
        );

    text-align: center;

}


.welcome-card {

    padding: 40px;

    border-radius: 40px;

    background: white;

    box-shadow:
        0 15px 40px
        rgba(0,0,0,0.15);

    border:
        8px solid
        var(--orange);

    max-width: 80%;

}


.welcome-msg {

    font-family:
        'Luckiest Guy',
        cursive;

    font-size: 50px;

    color: var(--blue);

    margin-bottom: 10px;

}


.welcome-subtitle {

    font-weight: bold;

    color: var(--pink);

}


.enter-btn {

    background: var(--green);

    color: white;

    border: none;

    padding: 20px 60px;

    font-family:
        'Luckiest Guy',
        cursive;

    font-size: 28px;

    border-radius: 50px;

    cursor: pointer;

    box-shadow:
        0 6px 0px
        #005e2c;

    transition: all 0.2s;

}


.enter-btn:hover {

    transform:
        translateY(-3px);

}


.enter-btn:active {

    transform:
        translateY(3px);

    box-shadow:
        0 2px 0px
        #005e2c;

}


/* =========================================================
   REMINDER MODAL
   ========================================================= */

#reminder-overlay {

    position: fixed;

    inset: 0;

    background:
        rgba(26,26,75,0.85);

    backdrop-filter:
        blur(10px);

    display: flex;

    justify-content: center;

    align-items: center;

    z-index: 3000;

    opacity: 0;

    pointer-events: none;

    transition:
        opacity 0.4s ease;

    padding: 20px;

    box-sizing: border-box;

}


#reminder-overlay.active {

    opacity: 1;

    pointer-events: auto;

}


.reminder-card {

    background: white;

    border:
        8px solid
        var(--purple);

    border-radius: 35px;

    padding: 40px;

    max-width: 600px;

    width: 100%;

    box-shadow:
        0 20px 50px
        rgba(0,0,0,0.3);

    position: relative;

    text-align: left;

    animation:
        popUp 0.4s
        cubic-bezier(
            0.175,
            0.885,
            0.32,
            1.275
        );

    box-sizing: border-box;

    max-height: 90vh;

    overflow-y: auto;

}


@keyframes popUp {

    from {

        transform:
            scale(0.8);

        opacity: 0;

    }

    to {

        transform:
            scale(1);

        opacity: 1;

    }

}


.close-x {

    position: absolute;

    top: 20px;
    right: 25px;

    font-size: 2rem;

    color: var(--pink);

    cursor: pointer;

    transition:
        transform 0.2s;

}


.close-x:hover {

    transform:
        scale(1.2);

}


.reminder-card h2 {

    font-family:
        'Luckiest Guy',
        cursive;

    color: var(--blue);

    font-size: 2.2rem;

    margin-top: 0;

    margin-bottom: 20px;

    text-align: center;

    letter-spacing: 1px;

}


.reminder-section {

    margin-bottom: 25px;

}


.reminder-section h3 {

    font-family:
        'Luckiest Guy',
        cursive;

    color: var(--orange);

    font-size: 1.3rem;

    margin-bottom: 10px;

    letter-spacing: 0.5px;

}


.reminder-card ol,
.reminder-card p {

    font-size: 1.05rem;

    line-height: 1.5;

    color: var(--dark-blue);

    margin: 0;

}


.reminder-card ol {

    padding-left: 20px;

}


.reminder-card ol li {

    margin-bottom: 8px;

}


.reminder-card strong {

    color: var(--pink);

}


.reminder-email {

    color: var(--blue);

    font-weight: bold;

    text-decoration: underline;

}


.support-section {

    border-top:
        3px dashed
        var(--purple);

    padding-top: 15px;

    margin-bottom: 0;

}


/* =========================================================
   BUTTONS
   ========================================================= */

.back-btn {

    background: var(--pink);

    color: white;

    border: none;

    padding: 12px 35px;

    font-family:
        'Luckiest Guy',
        cursive;

    font-size: 1.2rem;

    border-radius: 50px;

    cursor: pointer;

    box-shadow:
        0 5px 0px
        #b83d73;

    transition: all 0.2s;

    display: block;

    margin:
        30px auto 0 auto;

}


.back-btn:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 7px 0px
        #b83d73;

}


.back-btn:active {

    transform:
        translateY(3px);

    box-shadow:
        0 2px 0px
        #b83d73;

}


/* =========================================================
   HEADER
   ========================================================= */

.main-content {

    display: flex;

    flex-direction: column;

    align-items: center;

    padding:
        50px 20px;

}


.header-container {

    width: 100%;

    box-sizing: border-box;

    background:
        rgba(255,255,255,0.95);

    padding:
        20px 40px;

    border-radius: 35px;

    border:
        5px solid
        var(--blue);

    box-shadow:
        0 10px 30px
        rgba(0,0,0,0.1);

    margin-bottom: 45px;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 15px;

}


.website-name {

    font-family:
        'Luckiest Guy',
        cursive;

    font-size:
        clamp(
            25px,
            5vw,
            60px
        );

    letter-spacing: 3px;

    text-transform: uppercase;

    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 10px;

    margin: 0;

}


.letter {

    position: relative;

    text-shadow:
        2px 2px 0px
        var(--dark-blue);

    display: inline-block;

    transform:
        rotate(-2deg);

}


/* =========================================================
   SEARCH + SOCIAL BUTTONS
   ========================================================= */

.search-contact-wrapper {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 15px;

    width: 100%;

    max-width: 750px;

}


.contact-btn {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 45px;
    height: 45px;

    border-radius: 50px;

    color: white;

    text-decoration: none;

    font-size: 1.3rem;

    box-shadow:
        0 4px 0px
        var(--dark-blue);

    transition:
        transform 0.2s,
        box-shadow 0.2s;

    cursor: pointer;

    border: none;

}


.contact-btn:hover {

    transform:
        translateY(-3px);

    box-shadow:
        0 6px 0px
        var(--dark-blue);

}


.contact-btn:active {

    transform:
        translateY(2px);

    box-shadow:
        0 2px 0px
        var(--dark-blue);

}


.contact-btn.fb {
    background: #1877f2;
}

.contact-btn.ig {
    background: #e1306c;
}

.contact-btn.yt {
    background: #ff0000;
}

.contact-btn.blogger {
    background: #f57d00;
}

.contact-btn.tiktok {
    background: #000000;
}

.contact-btn.help {
    background: var(--purple);
}


#gameSearch {

    flex-grow: 1;

    max-width: 350px;

    padding:
        12px 20px;

    border-radius: 25px;

    border:
        3px solid
        var(--pink);

    font-family:
        'Chalkboard SE',
        sans-serif;

    font-size: 1rem;

    outline: none;

    box-shadow:
        0 4px 0px
        var(--dark-blue);

}


/* =========================================================
   MAIN GAME CONTAINER
   ========================================================= */

.game-grid {

    width: 100%;

    max-width: 1300px;

    padding:
        20px;

    box-sizing:
        border-box;

}


/* =========================================================
   FREE / PREMIUM GAME SECTIONS
   ========================================================= */

.game-section {

    width: 100%;

    max-width: 1300px;

    margin-bottom:
        65px;

}


/* =========================================================
   SECTION HEADINGS
   ========================================================= */

.section-heading {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 15px;

    margin:
        10px auto 30px;

    padding:
        14px 25px;

    width:
        fit-content;

    border-radius:
        50px;

    background:
        white;

    box-shadow:
        0 7px 0
        rgba(26,26,75,0.2);

}


.section-heading h2 {

    margin:
        0;

    font-family:
        'Luckiest Guy',
        cursive;

    font-size:
        clamp(
            1.6rem,
            4vw,
            2.4rem
        );

    letter-spacing:
        1px;

}


.section-heading span {

    font-size:
        1.5rem;

}


.free-heading {

    border:
        5px solid
        var(--green);

}


.free-heading h2 {

    color:
        var(--green);

}


.premium-heading {

    border:
        5px solid
        var(--orange);

}


.premium-heading h2 {

    color:
        var(--orange);

}


/* =========================================================
   GAME GRID INSIDE EACH SECTION
   ========================================================= */

.game-section-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-content: center;
    gap: 24px;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Tablet: three game cards per row */
@media screen and (min-width: 600px) and (max-width: 899px) {
    .game-section-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
        padding: 0 10px;
    }
}

/* Smartphone: two game cards per row */
@media screen and (max-width: 599px) {
    .game-section-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 0 4px;
    }

    .game-card {
        min-width: 0;
        box-sizing: border-box;
        border-width: 3px;
    }

    .game-img-container {
        min-height: 0;
    }

    .game-title {
        min-height: 40px;
        padding: 7px 4px;
        font-size: 0.72rem;
        letter-spacing: 0;
        overflow-wrap: anywhere;
        box-sizing: border-box;
    }

    .game-badge {
        top: 5px;
        right: 5px;
        padding: 4px 5px;
        font-size: 0.6rem;
    }
}


/* =========================================================
   GAME CARDS
   ========================================================= */

.game-card {

    background:
        white;

    border:
        6px solid
        var(--blue);

    border-radius:
        25px;

    overflow:
        hidden;

    transition:
        all 0.3s ease;

    box-shadow:
        0 8px 0px
        var(--dark-blue);

    text-decoration:
        none;

    aspect-ratio:
        1 / 1;

    display:
        flex;

    flex-direction:
        column;

    width:
        100%;

}


.game-card:hover {

    transform:
        translateY(-10px);

    border-color:
        var(--pink);

}


.game-img-container {

    flex-grow:
        1;

    overflow:
        hidden;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    background:
        #f9f9f9;

    position:
        relative;

}


.game-img-container img {

    width:
        100%;

    height:
        100%;

    object-fit:
        cover;

    display:
        block;

}


.game-title {

    background:
        var(--dark-blue);

    color:
        white;

    padding:
        15px 10px;

    text-align:
        center;

    font-family:
        'Luckiest Guy',
        cursive;

    font-size:
        1.1rem;

    letter-spacing:
        1px;

    line-height:
        1.3;

    min-height:
        60px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

}


.game-card.hidden {

    display:
        none !important;

}


/* =========================================================
   GAME ACCESS BADGES
   ========================================================= */

.game-badge {

    position:
        absolute;

    top:
        12px;

    right:
        12px;

    z-index:
        2;

    padding:
        7px 12px;

    border-radius:
        20px;

    color:
        white;

    font-family:
        'Luckiest Guy',
        cursive;

    font-size:
        0.8rem;

    letter-spacing:
        0.5px;

    box-shadow:
        0 3px 0
        rgba(0,0,0,0.3);

}


.free-badge {

    background:
        var(--green);

}


.premium-badge {

    background:
        var(--orange);

}


/* =========================================================
   PREMIUM SECTION SEPARATOR
   ========================================================= */

.premium-section {

    margin-top:
        25px;

    padding-top:
        25px;

    border-top:
        5px dashed
        rgba(180,129,241,0.6);

}


/* =========================================================
   NO RESULTS
   ========================================================= */

.no-results {

    display:
        none;

    margin:
        20px auto;

    padding:
        20px 30px;

    background:
        white;

    border:
        4px solid
        var(--pink);

    border-radius:
        25px;

    color:
        var(--dark-blue);

    font-family:
        'Luckiest Guy',
        cursive;

    font-size:
        1.3rem;

    text-align:
        center;

}


/* =========================================================
   QR CODES
   ========================================================= */

.qr-container {

    display:
        flex;

    justify-content:
        center;

    gap:
        20px;

    margin-top:
        15px;

    flex-wrap:
        wrap;

}


.qr-box {

    background:
        #f0f4f8;

    border:
        3px solid
        var(--blue);

    border-radius:
        20px;

    padding:
        15px;

    text-align:
        center;

    flex:
        1;

    min-width:
        140px;

    max-width:
        200px;

    box-shadow:
        0 5px 15px
        rgba(0,0,0,0.05);

}


.qr-box img {

    width:
        100%;

    max-width:
        160px;

    height:
        auto;

    border-radius:
        12px;

    border:
        2px solid white;

    box-shadow:
        0 3px 8px
        rgba(0,0,0,0.1);

}


.qr-label {

    font-family:
        'Luckiest Guy',
        cursive;

    font-size:
        1.2rem;

    margin-top:
        10px;

    color:
        var(--dark-blue);

    letter-spacing:
        0.5px;

}


/* =========================================================
   DONATE
   ========================================================= */

.bottom-donate-container {

    margin-top:
        40px;

    margin-bottom:
        20px;

    text-align:
        center;

}


.donate-btn {

    background:
        var(--pink);

    color:
        white;

    border:
        none;

    padding:
        16px 45px;

    font-family:
        'Luckiest Guy',
        cursive;

    font-size:
        1.5rem;

    border-radius:
        50px;

    cursor:
        pointer;

    box-shadow:
        0 6px 0px
        #b83d73;

    transition:
        all 0.2s;

    display:
        inline-flex;

    align-items:
        center;

    gap:
        10px;

}


.donate-btn:hover {

    transform:
        translateY(-3px);

    box-shadow:
        0 8px 0px
        #b83d73;

}


.donate-btn:active {

    transform:
        translateY(2px);

    box-shadow:
        0 2px 0px
        #b83d73;

}


/* =========================================================
   DONATE MODAL
   ========================================================= */

#donate-modal {

    position:
        fixed;

    inset:
        0;

    background:
        rgba(26,26,75,0.85);

    backdrop-filter:
        blur(10px);

    display:
        flex;

    justify-content:
        center;

    align-items:
        center;

    z-index:
        3000;

    opacity:
        0;

    pointer-events:
        none;

    transition:
        opacity 0.4s ease;

    padding:
        20px;

    box-sizing:
        border-box;

}


#donate-modal.active {

    opacity:
        1;

    pointer-events:
        auto;

}


.donate-card {

    background:
        white;

    border:
        8px solid
        var(--pink);

    border-radius:
        35px;

    padding:
        40px;

    max-width:
        600px;

    width:
        100%;

    box-shadow:
        0 20px 50px
        rgba(0,0,0,0.3);

    position:
        relative;

    text-align:
        center;

    animation:
        popUp 0.4s
        cubic-bezier(
            0.175,
            0.885,
            0.32,
            1.275
        );

    box-sizing:
        border-box;

    max-height:
        90vh;

    overflow-y:
        auto;

}


.donate-card h2 {

    font-family:
        'Luckiest Guy',
        cursive;

    color:
        var(--pink);

    font-size:
        2.2rem;

    margin-top:
        0;

    margin-bottom:
        15px;

}


.donate-card p {

    font-size:
        1.05rem;

    line-height:
        1.5;

    color:
        var(--dark-blue);

    margin-bottom:
        20px;

}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {

    width:
        100%;

    margin-top:
        65px;

    background:
        rgba(26,26,75,0.98);

    color:
        white;

    border-top:
        7px solid
        var(--blue);

    box-sizing:
        border-box;

}


.footer-content {

    max-width:
        1100px;

    margin:
        0 auto;

    padding:
        32px 20px 22px;

    text-align:
        center;

}


.footer-title {

    font-family:
        'Luckiest Guy',
        cursive;

    font-size:
        2.1rem;

    color:
        var(--orange);

    letter-spacing:
        1px;

    margin-bottom:
        18px;

    text-shadow:
        2px 2px 0
        rgba(0,0,0,0.2);

}


.footer-links {

    display:
        flex;

    justify-content:
        center;

    align-items:
        center;

    flex-wrap:
        wrap;

    gap:
        10px;

    margin:
        0 auto;

}


.footer-links button {

    border:
        none;

    color:
        white;

    background:
        rgba(255,255,255,0.11);

    padding:
        11px 16px;

    border-radius:
        25px;

    font-family:
        'Chalkboard SE',
        'Arial',
        sans-serif;

    font-size:
        0.95rem;

    font-weight:
        bold;

    cursor:
        pointer;

    transition:
        all 0.25s ease;

    box-shadow:
        0 3px 0
        rgba(0,0,0,0.2);

}


.footer-links button:hover {

    transform:
        translateY(-3px);

    background:
        var(--blue);

    box-shadow:
        0 6px 0
        rgba(0,0,0,0.25);

}


.footer-links button:nth-child(2):hover {
    background:
        var(--green);
}


.footer-links button:nth-child(3):hover {
    background:
        var(--orange);
}


.footer-links button:nth-child(4):hover {
    background:
        var(--pink);
}


.footer-links button:nth-child(5):hover {
    background:
        var(--purple);
}


.footer-social {

    display:
        flex;

    justify-content:
        center;

    gap:
        10px;

    margin:
        22px 0 10px;

}


.footer-social a {

    width:
        38px;

    height:
        38px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        50%;

    background:
        white;

    color:
        var(--dark-blue);

    text-decoration:
        none;

    font-size:
        1rem;

    transition:
        all 0.2s ease;

}


.footer-social a:hover {

    background:
        var(--pink);

    color:
        white;

    transform:
        translateY(-3px);

}


.footer-divider {

    height:
        2px;

    background:
        rgba(255,255,255,0.12);

    margin:
        20px 0 15px;

}


.footer-bottom {

    font-size:
        0.82rem;

    line-height:
        1.6;

    color:
        #d9d9e8;

}


.footer-bottom strong {

    color:
        white;

}


/* =========================================================
   FOOTER INFORMATION POPUPS
   ========================================================= */

.footer-info-overlay {

    position:
        fixed;

    inset:
        0;

    z-index:
        5000;

    background:
        rgba(26,26,75,0.82);

    backdrop-filter:
        blur(8px);

    display:
        flex;

    justify-content:
        center;

    align-items:
        center;

    padding:
        20px;

    box-sizing:
        border-box;

    opacity:
        0;

    visibility:
        hidden;

    pointer-events:
        none;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;

}


.footer-info-overlay.active {

    opacity:
        1;

    visibility:
        visible;

    pointer-events:
        auto;

}


.footer-info-card {

    position:
        relative;

    width:
        min(720px, 95%);

    max-height:
        85vh;

    overflow-y:
        auto;

    box-sizing:
        border-box;

    background:
        white;

    color:
        var(--dark-blue);

    border:
        7px solid
        var(--blue);

    border-radius:
        32px;

    padding:
        40px 35px 35px;

    box-shadow:
        0 25px 70px
        rgba(0,0,0,0.4);

    animation:
        footerInfoPop 0.35s
        cubic-bezier(
            0.175,
            0.885,
            0.32,
            1.275
        );

}


@keyframes footerInfoPop {

    from {

        transform:
            translateY(25px)
            scale(0.94);

        opacity:
            0;

    }

    to {

        transform:
            translateY(0)
            scale(1);

        opacity:
            1;

    }

}


.footer-info-card h2 {

    font-family:
        'Luckiest Guy',
        cursive;

    color:
        var(--blue);

    text-align:
        center;

    font-size:
        2.2rem;

    margin:
        0 40px 20px;

    letter-spacing:
        1px;

}


.footer-info-card h3 {

    font-family:
        'Luckiest Guy',
        cursive;

    color:
        var(--pink);

    font-size:
        1.25rem;

    margin-top:
        25px;

    margin-bottom:
        10px;

}


.footer-info-card p {

    font-size:
        1rem;

    line-height:
        1.7;

    margin:
        0 0 15px;

    color:
        var(--dark-blue);

}


.footer-info-card strong {

    color:
        var(--pink);

}


.footer-info-close {

    position:
        absolute;

    top:
        12px;

    right:
        15px;

    width:
        42px;

    height:
        42px;

    border:
        none;

    border-radius:
        50%;

    background:
        var(--pink);

    color:
        white;

    font-size:
        1.4rem;

    font-weight:
        bold;

    cursor:
        pointer;

    transition:
        all 0.2s ease;

    box-shadow:
        0 4px 0
        #b83d73;

}


.footer-info-close:hover {

    transform:
        rotate(90deg)
        scale(1.08);

    background:
        var(--orange);

}


.footer-info-close:active {

    transform:
        translateY(2px);

}


/* =========================================================
   ABOUT
   ========================================================= */

.about-highlight {

    text-align:
        center;

    font-family:
        'Luckiest Guy',
        cursive;

    font-size:
        1.4rem;

    color:
        var(--blue);

    margin-bottom:
        20px;

}


.teacher-badges {

    display:
        flex;

    justify-content:
        center;

    flex-wrap:
        wrap;

    gap:
        12px;

    margin-top:
        25px;

}


.teacher-badge {

    background:
        #f8f3ff;

    border:
        3px solid
        var(--purple);

    color:
        var(--dark-blue);

    border-radius:
        25px;

    padding:
        10px 16px;

    font-weight:
        bold;

    box-shadow:
        0 4px 0
        rgba(26,26,75,0.12);

}


/* =========================================================
   HOW TO USE
   ========================================================= */

.steps-container {

    display:
        grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap:
        15px;

    margin-top:
        25px;

}


.step-card {

    text-align:
        center;

    background:
        #f8fbff;

    border-radius:
        22px;

    border:
        3px solid
        var(--blue);

    padding:
        20px 15px;

    box-shadow:
        0 5px 0
        rgba(26,26,75,0.12);

}


.step-number {

    width:
        45px;

    height:
        45px;

    margin:
        0 auto 10px;

    border-radius:
        50%;

    background:
        var(--orange);

    color:
        white;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    font-family:
        'Luckiest Guy',
        cursive;

    font-size:
        1.3rem;

    box-shadow:
        0 4px 0
        #c98200;

}


.step-card h3 {

    font-family:
        'Luckiest Guy',
        cursive;

    color:
        var(--blue);

    margin:
        8px 0;

    font-size:
        1.2rem;

}


.step-card p {

    font-size:
        0.9rem;

    line-height:
        1.5;

    margin-bottom:
        0;

}


/* =========================================================
   RESOURCES
   ========================================================= */

.value-grid {

    display:
        grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap:
        15px;

    margin-top:
        25px;

}


.value-card {

    text-align:
        center;

    padding:
        22px 15px;

    border-radius:
        22px;

    background:
        white;

    border:
        3px solid
        var(--green);

    box-shadow:
        0 5px 0
        rgba(0,0,0,0.08);

}


.value-card i {

    font-size:
        2rem;

    color:
        var(--green);

    margin-bottom:
        10px;

}


.value-card h3 {

    font-family:
        'Luckiest Guy',
        cursive;

    color:
        var(--dark-blue);

    margin:
        8px 0;

    font-size:
        1.15rem;

}


.value-card p {

    font-size:
        0.9rem;

    line-height:
        1.5;

    margin-bottom:
        0;

}


/* =========================================================
   CONTACT
   ========================================================= */

.contact-box {

    max-width:
        600px;

    margin:
        25px auto 0;

    padding:
        25px;

    border-radius:
        25px;

    background:
        linear-gradient(
            135deg,
            #f8fbff,
            #fff5fa
        );

    border:
        4px dashed
        var(--pink);

    text-align:
        center;

}


.contact-intro {

    margin-bottom:
        5px !important;

}


.contact-email {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        10px;

    margin-top:
        10px;

    padding:
        13px 22px;

    background:
        var(--blue);

    color:
        white;

    border-radius:
        30px;

    text-decoration:
        none;

    font-weight:
        bold;

    box-shadow:
        0 5px 0
        var(--dark-blue);

    transition:
        all 0.2s;

}


.contact-email:hover {

    transform:
        translateY(-3px);

}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 850px) {

    .value-grid {

        grid-template-columns:
            1fr;

    }

    .footer-info-card {

        width:
            95%;

    }

}


/* =========================================================
   SUPABASE ACCOUNT / AUTHENTICATION
   ========================================================= */

.account-area {

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        10px;

    width:
        auto;

    flex-shrink:
        0;

}


.account-btn {

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        7px;

    min-height:
        42px;

    box-sizing:
        border-box;

    border:
        none;

    border-radius:
        25px;

    padding:
        9px 17px;

    background:
        var(--purple);

    color:
        white;

    font-family:
        'Chalkboard SE',
        'Arial',
        sans-serif;

    font-size:
        0.9rem;

    font-weight:
        bold;

    cursor:
        pointer;

    white-space:
        nowrap;

    box-shadow:
        0 4px 0
        var(--dark-blue);

    transition:
        all 0.2s ease;

}


.account-btn:hover {

    transform:
        translateY(-3px);

    box-shadow:
        0 7px 0
        var(--dark-blue);

}


.account-btn:active {

    transform:
        translateY(2px);

    box-shadow:
        0 2px 0
        var(--dark-blue);

}


/* =========================================================
   USER ACCOUNT PANEL
   ========================================================= */

.user-account {

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        10px;

    padding:
        6px;

    background:
        rgba(255,255,255,0.97);

    border:
        3px solid
        var(--purple);

    border-radius:
        20px;

    box-shadow:
        0 5px 0
        rgba(26,26,75,0.18);

    box-sizing:
        border-box;

}


.user-account-info {

    display:
        flex;

    align-items:
        center;

    gap:
        9px;

    min-width:
        0;

    padding:
        2px 6px 2px 2px;

}


.user-account-icon {

    width:
        38px;

    height:
        38px;

    flex:
        0 0 38px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        50%;

    background:
        var(--purple);

    color:
        white;

    font-size:
        1rem;

    box-shadow:
        0 3px 0
        rgba(26,26,75,0.25);

}


.user-account-details {

    display:
        flex;

    flex-direction:
        column;

    justify-content:
        center;

    align-items:
        flex-start;

    min-width:
        0;

    max-width:
        210px;

    line-height:
        1.15;

}


.user-email {

    display:
        block;

    width:
        100%;

    max-width:
        210px;

    overflow:
        hidden;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;

    color:
        var(--dark-blue);

    font-family:
        'Chalkboard SE',
        'Arial',
        sans-serif;

    font-size:
        0.82rem;

    font-weight:
        bold;

}


.user-plan {

    display:
        block;

    margin-top:
        4px;

    color:
        #64748b;

    font-family:
        'Chalkboard SE',
        'Arial',
        sans-serif;

    font-size:
        0.7rem;

    font-weight:
        bold;

    letter-spacing:
        0.3px;

    white-space:
        nowrap;

}


.user-plan.premium-member {

    color:
        #d97706;

}


.user-account-actions {

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        7px;

    flex-shrink:
        0;

}


.account-upgrade-btn {

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        5px;

    min-height:
        36px;

    border:
        none;

    border-radius:
        18px;

    padding:
        7px 12px;

    background:
        var(--orange);

    color:
        white;

    font-family:
        'Chalkboard SE',
        'Arial',
        sans-serif;

    font-size:
        0.72rem;

    font-weight:
        bold;

    cursor:
        pointer;

    white-space:
        nowrap;

    box-shadow:
        0 3px 0
        #c98200;

    transition:
        all 0.2s ease;

}


.account-upgrade-btn:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 5px 0
        #c98200;

}


.account-upgrade-btn:active {

    transform:
        translateY(2px);

    box-shadow:
        0 1px 0
        #c98200;

}


.logout-btn {

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        5px;

    min-height:
        36px;

    border:
        none;

    border-radius:
        18px;

    padding:
        7px 12px;

    background:
        var(--pink);

    color:
        white;

    font-family:
        'Chalkboard SE',
        'Arial',
        sans-serif;

    font-size:
        0.72rem;

    font-weight:
        bold;

    cursor:
        pointer;

    white-space:
        nowrap;

    box-shadow:
        0 3px 0
        #b83d73;

    transition:
        all 0.2s ease;

}


.logout-btn:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 5px 0
        #b83d73;

}


.logout-btn:active {

    transform:
        translateY(2px);

    box-shadow:
        0 1px 0
        #b83d73;

}


/* =========================================================
   AUTH MODAL
   ========================================================= */

.auth-modal {

    position:
        fixed;

    inset:
        0;

    background:
        rgba(26,26,75,0.85);

    backdrop-filter:
        blur(10px);

    display:
        flex;

    justify-content:
        center;

    align-items:
        center;

    z-index:
        6000;

    opacity:
        0;

    visibility:
        hidden;

    pointer-events:
        none;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;

    padding:
        20px;

    box-sizing:
        border-box;

}


.auth-modal.active {

    opacity:
        1;

    visibility:
        visible;

    pointer-events:
        auto;

}


.auth-card {

    position:
        relative;

    width:
        min(440px, 95%);

    background:
        white;

    border:
        7px solid
        var(--purple);

    border-radius:
        32px;

    padding:
        40px 30px 30px;

    box-sizing:
        border-box;

    box-shadow:
        0 25px 70px
        rgba(0,0,0,0.4);

    text-align:
        center;

    animation:
        authPop 0.35s
        cubic-bezier(
            0.175,
            0.885,
            0.32,
            1.275
        );

}


@keyframes authPop {

    from {

        transform:
            scale(0.85)
            translateY(20px);

        opacity:
            0;

    }

    to {

        transform:
            scale(1)
            translateY(0);

        opacity:
            1;

    }

}


.auth-close {

    position:
        absolute;

    top:
        12px;

    right:
        15px;

    width:
        40px;

    height:
        40px;

    border:
        none;

    border-radius:
        50%;

    background:
        var(--pink);

    color:
        white;

    font-size:
        1.5rem;

    font-weight:
        bold;

    cursor:
        pointer;

}


.auth-icon {

    font-size:
        3.5rem;

    color:
        var(--purple);

    margin-bottom:
        10px;

}


.auth-card h2 {

    font-family:
        'Luckiest Guy',
        cursive;

    color:
        var(--blue);

    font-size:
        2rem;

    margin:
        5px 0 8px;

}


.auth-subtitle {

    color:
        var(--dark-blue);

    font-size:
        0.95rem;

    line-height:
        1.5;

    margin:
        0 0 20px;

}


.auth-input {

    width:
        100%;

    box-sizing:
        border-box;

    padding:
        13px 15px;

    margin-bottom:
        12px;

    border:
        3px solid
        var(--blue);

    border-radius:
        15px;

    outline:
        none;

    font-family:
        'Chalkboard SE',
        'Arial',
        sans-serif;

    font-size:
        1rem;

}


.auth-input:focus {

    border-color:
        var(--pink);

    box-shadow:
        0 0 0 3px
        rgba(240,110,170,0.15);

}


.auth-submit-btn {

    width:
        100%;

    border:
        none;

    padding:
        14px;

    margin-top:
        5px;

    background:
        var(--green);

    color:
        white;

    border-radius:
        25px;

    font-family:
        'Luckiest Guy',
        cursive;

    font-size:
        1.15rem;

    cursor:
        pointer;

    box-shadow:
        0 5px 0
        #005e2c;

    transition:
        all 0.2s;

}


.auth-submit-btn:hover {

    transform:
        translateY(-2px);

}


.auth-submit-btn:active {

    transform:
        translateY(2px);

    box-shadow:
        0 2px 0
        #005e2c;

}


.auth-switch-btn {

    border:
        none;

    background:
        transparent;

    color:
        var(--dark-blue);

    margin-top:
        18px;

    cursor:
        pointer;

    font-family:
        'Chalkboard SE',
        'Arial',
        sans-serif;

}


.auth-switch-btn strong {

    color:
        var(--pink);

}


.auth-message {

    min-height:
        20px;

    margin-top:
        15px;

    font-size:
        0.9rem;

    font-weight:
        bold;

    line-height:
        1.4;

}


.auth-message.error {

    color:
        #d93025;

}


.auth-message.success {

    color:
        var(--green);

}


.auth-message.info {

    color:
        var(--blue);

}


/* =========================================================
   AUTH + ACCOUNT MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .account-area {

        width:
            100%;

        justify-content:
            center;

    }


    .user-account {

        width:
            auto;

        max-width:
            100%;

        flex-wrap:
            wrap;

        justify-content:
            center;

        padding:
            7px;

    }


    .user-account-info {

        justify-content:
            center;

    }


    .user-account-details {

        max-width:
            170px;

    }


    .user-email {

        max-width:
            170px;

    }


    .user-account-actions {

        width:
            100%;

        justify-content:
            center;

    }


    .account-upgrade-btn,
    .logout-btn {

        flex:
            1;

        max-width:
            180px;

    }


    .auth-card {

        padding:
            35px 20px 25px;

        border-width:
            5px;

        border-radius:
            25px;

    }

}


/* =========================================================
   PREMIUM UPGRADE MODAL
   ========================================================= */

.premium-modal {

    position:
        fixed;

    inset:
        0;

    display:
        none;

    align-items:
        center;

    justify-content:
        center;

    padding:
        20px;

    box-sizing:
        border-box;

    background:
        rgba(15,23,42,0.78);

    backdrop-filter:
        blur(6px);

    -webkit-backdrop-filter:
        blur(6px);

    z-index:
        99999;

    overflow-y:
        auto;

}


.premium-modal.active {

    display:
        flex;

}


/* =========================================================
   PREMIUM CARD
   ========================================================= */

.premium-card {

    position:
        relative;

    width:
        min(650px,94vw);

    max-height:
        90vh;

    overflow-y:
        auto;

    box-sizing:
        border-box;

    background:
        white;

    border:
        4px solid
        #ffd54f;

    border-radius:
        28px;

    padding:
        34px 32px 30px;

    text-align:
        center;

    box-shadow:
        0 25px 70px
        rgba(0,0,0,0.30);

    animation:
        premiumPopIn
        0.35s
        ease-out;

}


@keyframes premiumPopIn {

    0% {

        opacity:
            0;

        transform:
            scale(0.75)
            translateY(30px);

    }

    70% {

        transform:
            scale(1.03)
            translateY(-3px);

    }

    100% {

        opacity:
            1;

        transform:
            scale(1)
            translateY(0);

    }

}


/* =========================================================
   PREMIUM CLOSE BUTTON
   ========================================================= */

.premium-close {

    position:
        absolute;

    top:
        12px;

    right:
        14px;

    width:
        38px;

    height:
        38px;

    border:
        none;

    border-radius:
        50%;

    background:
        #f1f5f9;

    color:
        #475569;

    font-size:
        27px;

    line-height:
        1;

    cursor:
        pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;

}


.premium-close:hover {

    background:
        #fee2e2;

    color:
        #dc2626;

    transform:
        rotate(90deg)
        scale(1.08);

}


/* =========================================================
   PREMIUM ICON
   ========================================================= */

.premium-icon {

    width:
        82px;

    height:
        82px;

    margin:
        4px auto 16px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        50%;

    background:
        linear-gradient(
            135deg,
            #ffe082,
            #ffca28
        );

    border:
        5px solid
        #fff8dc;

    box-shadow:
        0 8px 20px
        rgba(245,158,11,0.28);

    font-size:
        42px;

    animation:
        premiumStar
        1.8s
        ease-in-out
        infinite;

}


@keyframes premiumStar {

    0%,
    100% {

        transform:
            rotate(-4deg)
            scale(1);

    }

    50% {

        transform:
            rotate(4deg)
            scale(1.08);

    }

}


/* =========================================================
   PREMIUM TITLE
   ========================================================= */

.premium-card h2 {

    margin:
        0 0 12px;

    font-family:
        'Luckiest Guy',
        cursive;

    font-size:
        clamp(
            28px,
            6vw,
            40px
        );

    letter-spacing:
        0.5px;

    color:
        #f59e0b;

    text-shadow:
        2px 2px 0
        #fff3cd;

}


/* =========================================================
   PREMIUM SUBTITLE
   ========================================================= */

.premium-subtitle {

    margin:
        0 auto 24px;

    max-width:
        500px;

    color:
        #475569;

    font-family:
        'Chalkboard SE',
        'Arial',
        sans-serif;

    font-size:
        16px;

    line-height:
        1.55;

}


/* =========================================================
   PREMIUM BENEFITS
   ========================================================= */

.premium-benefits {

    display:
        flex;

    flex-direction:
        column;

    gap:
        10px;

    margin:
        18px 0 24px;

    text-align:
        left;

}


.premium-benefit {

    display:
        flex;

    align-items:
        center;

    gap:
        14px;

    padding:
        12px 16px;

    background:
        #fffaf0;

    border:
        2px solid
        #fde68a;

    border-radius:
        16px;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;

}


.premium-benefit:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 6px 15px
        rgba(0,0,0,0.08);

}


.premium-benefit-icon {

    flex:
        0 0 48px;

    width:
        48px;

    height:
        48px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        14px;

    background:
        white;

    box-shadow:
        0 3px 8px
        rgba(0,0,0,0.08);

    font-size:
        25px;

}


.premium-benefit strong {

    display:
        block;

    margin-bottom:
        3px;

    color:
        #1e293b;

    font-family:
        'Chalkboard SE',
        'Arial',
        sans-serif;

    font-size:
        16px;

}


.premium-benefit p {

    margin:
        0;

    color:
        #64748b;

    font-family:
        'Chalkboard SE',
        'Arial',
        sans-serif;

    font-size:
        13px;

    line-height:
        1.4;

}


/* =========================================================
   PREMIUM PLAN SELECTOR
   ========================================================= */

.premium-plan-section {

    margin:
        28px 0 24px;

    padding:
        24px 0 0;

    border-top:
        3px dashed
        #fde68a;

}


.premium-plan-heading {

    margin:
        0;

    color:
        #1e293b;

    font-family:
        'Luckiest Guy',
        cursive;

    font-size:
        24px;

    letter-spacing:
        0.5px;

}


.premium-plan-section > .premium-plan-description {

    margin:
        7px 0 20px;

    color:
        #64748b;

    font-family:
        'Chalkboard SE',
        'Arial',
        sans-serif;

    font-size:
        14px;

}


.premium-plan-options {

    display:
        grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap:
        18px;

    width:
        100%;

}


/* =========================================================
   INDIVIDUAL PLAN CARD
   ========================================================= */

.premium-plan-option {

    position:
        relative;

    min-height:
        245px;

    box-sizing:
        border-box;

    display:
        flex;

    flex-direction:
        column;

    align-items:
        center;

    justify-content:
        center;

    padding:
        25px 18px 20px;

    background:
        white;

    border:
        3px solid
        #e2e8f0;

    border-radius:
        22px;

    color:
        #1e293b;

    font-family:
        'Chalkboard SE',
        'Arial',
        sans-serif;

    cursor:
        pointer;

    box-shadow:
        0 6px 0
        #cbd5e1;

    transition:
        all 0.2s ease;

}


.premium-plan-option:hover {

    transform:
        translateY(-4px);

    border-color:
        #fbbf24;

    box-shadow:
        0 10px 0
        #d9a20b;

}


.premium-plan-option.selected {

    border:
        4px solid
        #f59e0b;

    background:
        linear-gradient(
            180deg,
            #fffdf5,
            #fff7d6
        );

    box-shadow:
        0 7px 0
        #d97706,

        0 12px 25px
        rgba(245,158,11,0.18);

    transform:
        translateY(-2px);

}


.premium-plan-option.selected:hover {

    transform:
        translateY(-5px);

}


/* =========================================================
   PLAN ICON
   ========================================================= */

.premium-plan-icon {

    width:
        58px;

    height:
        58px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    margin-bottom:
        10px;

    border-radius:
        50%;

    background:
        #fff8dc;

    border:
        3px solid
        #fde68a;

    font-size:
        28px;

    box-shadow:
        0 4px 10px
        rgba(0,0,0,0.08);

}


/* =========================================================
   PLAN NAME
   ========================================================= */

.premium-plan-name {

    margin-bottom:
        5px;

    font-family:
        'Luckiest Guy',
        cursive;

    font-size:
        18px;

    letter-spacing:
        1px;

    color:
        #475569;

}


.premium-plan-option.selected
.premium-plan-name {

    color:
        #d97706;

}


/* =========================================================
   PLAN PRICE
   ========================================================= */

.premium-plan-price {

    font-family:
        'Luckiest Guy',
        cursive;

    font-size:
        38px;

    line-height:
        1;

    color:
        #1e293b;

    margin:
        5px 0 2px;

}


.premium-plan-option.selected
.premium-plan-price {

    color:
        #f59e0b;

}


/* =========================================================
   PLAN PERIOD
   ========================================================= */

.premium-plan-period {

    color:
        #64748b;

    font-size:
        13px;

    font-weight:
        bold;

}


/* =========================================================
   PLAN DESCRIPTION
   ========================================================= */

.premium-plan-option .premium-plan-description {

    color:
        #64748b;

    font-size:
        12px;

    line-height:
        1.4;

    margin:
        8px 0 14px;

}


/* =========================================================
   PLAN SELECT LABEL
   ========================================================= */

.premium-plan-select {

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    min-width:
        120px;

    padding:
        8px 14px;

    border-radius:
        20px;

    background:
        #f1f5f9;

    color:
        #475569;

    font-family:
        'Luckiest Guy',
        cursive;

    font-size:
        12px;

    letter-spacing:
        0.5px;

}


.premium-plan-option.selected
.premium-plan-select {

    background:
        #f59e0b;

    color:
        white;

    box-shadow:
        0 3px 0
        #d97706;

}


/* =========================================================
   BEST VALUE BADGE
   ========================================================= */

.premium-plan-value-badge {

    position:
        absolute;

    top:
        -12px;

    right:
        14px;

    padding:
        5px 11px;

    border-radius:
        20px;

    background:
        #009245;

    color:
        white;

    font-family:
        'Luckiest Guy',
        cursive;

    font-size:
        10px;

    letter-spacing:
        0.5px;

    box-shadow:
        0 3px 0
        #006b32;

}


/* =========================================================
   SELECTED PLAN SUMMARY
   ========================================================= */

.premium-selected-plan {

    margin:
        18px 0 18px;

    padding:
        13px 16px;

    border:
        2px solid
        #fde68a;

    border-radius:
        14px;

    background:
        #fffdf5;

    color:
        #64748b;

    font-family:
        'Chalkboard SE',
        'Arial',
        sans-serif;

    font-size:
        14px;

}


.premium-selected-plan strong {

    color:
        #f59e0b;

    font-family:
        'Luckiest Guy',
        cursive;

    font-size:
        16px;

}


/* =========================================================
   PREMIUM UPGRADE BUTTON
   ========================================================= */

.premium-upgrade-btn {

    width:
        100%;

    min-height:
        58px;

    border:
        none;

    border-radius:
        16px;

    padding:
        14px 20px;

    background:
        linear-gradient(
            135deg,
            #fbbf24,
            #f59e0b
        );

    color:
        white;

    font-family:
        'Luckiest Guy',
        cursive;

    font-size:
        20px;

    letter-spacing:
        0.5px;

    cursor:
        pointer;

    box-shadow:
        0 7px 0
        #d97706,

        0 12px 20px
        rgba(245,158,11,0.25);

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;

}


.premium-upgrade-btn:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 9px 0
        #d97706,

        0 15px 25px
        rgba(245,158,11,0.30);

}


.premium-upgrade-btn:active {

    transform:
        translateY(4px);

    box-shadow:
        0 3px 0
        #d97706;

}


/* =========================================================
   PREMIUM PAYMENT MESSAGE
   ========================================================= */

.premium-coming-soon {

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        7px;

    margin:
        16px 0 12px;

    color:
        #64748b;

    font-family:
        'Chalkboard SE',
        'Arial',
        sans-serif;

    font-size:
        13px;

}


.premium-coming-soon i {

    color:
        #f59e0b;

}


/* =========================================================
   PREMIUM CONTINUE BUTTON
   ========================================================= */

.premium-continue-btn {

    border:
        none;

    background:
        transparent;

    color:
        #64748b;

    padding:
        9px 14px;

    font-family:
        'Chalkboard SE',
        'Arial',
        sans-serif;

    font-size:
        14px;

    cursor:
        pointer;

    border-radius:
        10px;

    transition:
        background 0.2s ease,
        color 0.2s ease;

}


.premium-continue-btn:hover {

    background:
        #f1f5f9;

    color:
        #334155;

}


/* =========================================================
   PREMIUM ACCESS BADGES
   ========================================================= */

.game-access-badge {

    display:
        inline-block;

    width:
        auto;

    max-width:
        fit-content;

    margin-top:
        5px;

    padding:
        4px 9px;

    border-radius:
        20px;

    font-family:
        'Chalkboard SE',
        'Arial',
        sans-serif;

    font-size:
        11px;

    font-weight:
        bold;

    line-height:
        1.2;

}


.game-access-badge.free-badge {

    background:
        #dcfce7;

    color:
        #166534;

}


.game-access-badge.premium-locked-badge {

    background:
        #fef3c7;

    color:
        #92400e;

}


.game-access-badge.premium-unlocked {

    background:
        #fef3c7;

    color:
        #92400e;

}


/* =========================================================
   PREMIUM MODAL MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .premium-modal {

        padding:
            12px;

    }


    .premium-card {

        width:
            100%;

        padding:
            30px 18px 24px;

        border-radius:
            22px;

    }


    .premium-icon {

        width:
            68px;

        height:
            68px;

        font-size:
            34px;

        margin-bottom:
            12px;

    }


    .premium-card h2 {

        font-size:
            29px;

    }


    .premium-subtitle {

        font-size:
            14px;

    }


    .premium-benefit {

        padding:
            11px;

        gap:
            10px;

    }


    .premium-benefit-icon {

        flex:
            0 0 42px;

        width:
            42px;

        height:
            42px;

        font-size:
            21px;

    }


    .premium-benefit strong {

        font-size:
            14px;

    }


    .premium-benefit p {

        font-size:
            12px;

    }


    /* =====================================================
       PREMIUM PLAN MOBILE
       ===================================================== */

    .premium-plan-section {

        margin-top:
            22px;

        padding-top:
            20px;

    }


    .premium-plan-heading {

        font-size:
            21px;

    }


    .premium-plan-section > .premium-plan-description {

        font-size:
            13px;

        margin-bottom:
            18px;

    }


    .premium-plan-options {

        grid-template-columns:
            1fr;

        gap:
            16px;

    }


    .premium-plan-option {

        min-height:
            220px;

        padding:
            22px 16px 18px;

    }


    .premium-plan-price {

        font-size:
            34px;

    }


    .premium-plan-icon {

        width:
            52px;

        height:
            52px;

        font-size:
            25px;

    }


    .premium-plan-value-badge {

        top:
            -10px;

        right:
            12px;

    }


    .premium-upgrade-btn {

        font-size:
            17px;

        min-height:
            54px;

    }

}

/* =========================================================
   MAGIC GAME OPTIONS + GUIDE POPUP (ADDITIVE STYLES ONLY)
   ========================================================= */
.tk-modal{position:fixed;inset:0;z-index:10000;display:none;align-items:center;justify-content:center;padding:16px;box-sizing:border-box}
.tk-modal.tk-visible{display:flex}
.tk-modal-backdrop{position:absolute;inset:0;background:rgba(14,10,40,.76);backdrop-filter:blur(7px)}
.tk-modal-panel{position:relative;width:min(640px,100%);max-height:min(88vh,850px);overflow-y:auto;box-sizing:border-box;padding:30px 24px 24px;background:linear-gradient(150deg,#fff 0%,#f6efff 100%);border:4px solid #b481f1;border-radius:28px;box-shadow:0 22px 80px rgba(25,12,69,.5),0 0 35px rgba(255,210,91,.3);animation:tkMagicOpen .48s cubic-bezier(.2,1.5,.3,1) both;color:#1a1a4b}
@keyframes tkMagicOpen{from{opacity:0;transform:scale(.7) translateY(32px) rotate(-3deg);filter:brightness(1.5)}to{opacity:1;transform:scale(1) translateY(0) rotate(0);filter:brightness(1)}}
.tk-modal-panel:before{content:'✦ ✨ ✦';position:absolute;top:8px;left:16px;color:#fbb03b;letter-spacing:10px;pointer-events:none;animation:tkTwinkle 1.5s ease-in-out infinite alternate}
@keyframes tkTwinkle{to{opacity:.35;transform:translateY(-3px)}}
.tk-modal-close{position:sticky;top:0;float:right;z-index:2;width:36px;height:36px;border:0;border-radius:50%;background:#f06eaa;color:white;font-size:26px;cursor:pointer}
.tk-modal-title{font-family:'Luckiest Guy',cursive;font-size:clamp(23px,4vw,34px);line-height:1.2;text-align:center;margin:16px 30px 8px;color:#7140b4}
.tk-modal-subtitle{text-align:center;line-height:1.5;margin:12px 0 22px;color:#38406a}
.tk-choice-actions,.tk-guide-footer{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin:20px 0}
.tk-choice-button{flex:1 1 180px;border:0;border-radius:18px;padding:15px 18px;background:linear-gradient(130deg,#29abe2,#6756c7);box-shadow:0 5px 0 #27215d;color:white;font-family:'Luckiest Guy',cursive;font-size:18px;cursor:pointer;transition:transform .2s}
.tk-choice-button:hover{transform:translateY(-3px)}.tk-choice-button.tk-secondary{background:linear-gradient(130deg,#f06eaa,#b481f1);box-shadow:0 5px 0 #75418d}
.tk-modal-note{text-align:center;color:#5b5c78;font-size:13px;line-height:1.5}
.tk-guide-section{margin:18px 0;padding:15px 18px;background:#fff;border:2px solid #e8d9ff;border-radius:17px;line-height:1.6}
.tk-guide-section h3{margin:0 0 10px;color:#7140b4;font-size:19px}.tk-guide-steps{margin:0;padding-left:25px}.tk-guide-steps li{margin:0 0 9px}.tk-button-explanation{margin:7px 0}
.tk-guide-video{display:block;width:100%;aspect-ratio:9/16;max-height:450px;border:0;border-radius:14px;background:#151515}
.tk-video-link{display:inline-block;margin-top:10px;color:#2452a6;font-weight:bold}
@media(max-width:500px){.tk-modal-panel{padding:22px 14px 18px;border-radius:20px}.tk-choice-button{flex-basis:130px;font-size:15px;padding:12px 10px}.tk-guide-section{padding:12px}.tk-guide-video{max-height:380px}}
@media(prefers-reduced-motion:reduce){.tk-modal-panel,.tk-modal-panel:before{animation:none}}

/* Learning Hub 2026: categorized discovery interface */
.tk-nav{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;width:100%;padding-top:8px;border-top:2px dashed #e7d8fb}
.tk-nav a,.tk-nav button{font:700 14px 'Chalkboard SE',Arial,sans-serif;border:2px solid #c9c4ee;background:#f5f2ff;color:#222052;border-radius:25px;padding:10px 15px;text-decoration:none;cursor:pointer}
.tk-nav a:hover,.tk-nav button:hover{background:#e4daff}
.tk-explorer{width:100%;max-width:1300px;box-sizing:border-box;padding:8px 20px 0;scroll-margin-top:16px}
.tk-intro{text-align:center;color:#1a1a4b}.tk-intro h2{font-family:'Luckiest Guy',Arial,sans-serif;color:#1a1a4b;font-size:clamp(28px,4vw,43px);margin:4px 0 8px}.tk-intro p{font-size:17px;font-weight:700;margin:0 0 23px}
.tk-category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:25px}
.tk-category{border:4px solid #29abe2;border-radius:25px;background:#fff;box-shadow:0 6px 0 #1a1a4b;min-height:155px;padding:15px 10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;cursor:pointer;color:#1a1a4b;transition:transform .15s}
.tk-category:nth-child(1){background:#e8f2ff}.tk-category:nth-child(2){background:#e8f9e9}.tk-category:nth-child(3){background:#fff1da}.tk-category:nth-child(4){background:#f4e8ff}
.tk-category:hover{transform:translateY(-3px)}.tk-category.active{outline:4px solid #f06eaa;outline-offset:2px}
.tk-cat-icon{font-size:35px}.tk-category strong{font-size:17px}.tk-category small{font-size:12px}.tk-category em{font-style:normal;font-size:12px;font-weight:800;color:#245a89}
.tk-filter-panel{background:#fff;border:4px solid #29abe2;border-radius:25px;padding:18px;box-shadow:0 6px 0 rgba(26,26,75,.18)}
.tk-access-tabs{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.tk-access-tabs button{background:#f1f2fc;border:3px solid #d7d7f2;color:#1a1a4b;border-radius:25px;padding:12px 23px;font:700 16px 'Chalkboard SE',Arial,sans-serif;cursor:pointer}.tk-access-tabs button.active{background:#1a1a4b;color:white;border-color:#1a1a4b}
.tk-filter-row{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:14px;margin-top:15px}.tk-filter-row label{font-weight:800;color:#1a1a4b}.tk-filter-row select{padding:9px 12px;border:2px solid #b481f1;border-radius:12px;background:white;font:inherit}.tk-filter-row button{border:0;border-radius:20px;background:#f06eaa;color:white;padding:11px 18px;font-weight:800;cursor:pointer}.tk-count{text-align:center;color:#1a1a4b;font-weight:800;margin:12px 0 0}
#gameGrid{padding-top:15px}.tk-results-grid{padding:0!important;gap:20px!important}.tk-results-grid .game-card{min-width:0}.tk-results-grid .game-title{font-size:clamp(14px,1.3vw,19px);padding:12px 8px;min-height:62px;display:flex;align-items:center;justify-content:center}
@media(max-width:950px){.tk-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tk-results-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:650px){.tk-explorer{padding:8px 5px}.tk-category-grid{gap:10px}.tk-category{min-height:135px;padding:10px 5px}.tk-category strong{font-size:14px}.tk-category small{font-size:11px}.tk-results-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}.tk-filter-panel{padding:12px}.tk-access-tabs button{padding:10px 12px;font-size:13px}.tk-nav a,.tk-nav button{font-size:12px;padding:8px}.tk-intro p{font-size:14px}}
@media(max-width:370px){.tk-results-grid{grid-template-columns:1fr!important}}


/* =========================================================
   NOV 2026 VISUAL POLISH — PRESENTATION ONLY
   Does not modify membership, authentication, payments or games.
   ========================================================= */
/* Compact readable game tiles with original image assets intact */
.tk-results-grid .game-card {
  aspect-ratio: auto; min-height: 0; border-width: 4px; border-radius: 20px;
  box-shadow: 0 5px 0 var(--dark-blue);
}
.tk-results-grid .game-img-container {
  flex: none; width: 100%; aspect-ratio: 4 / 3; min-height: 0;
}
.tk-results-grid .game-img-container img { object-fit: contain; }
.tk-results-grid .game-title {
  font-family: 'Fredoka', 'Chalkboard SE', Arial, sans-serif;
  font-weight: 600; text-transform: none; letter-spacing: 0;
  font-size: clamp(14px, 1.3vw, 17px); line-height: 1.25;
  min-height: 54px; padding: 9px 9px; overflow-wrap: anywhere;
  box-sizing: border-box;
}
.tk-results-grid .game-card:hover { transform: translateY(-4px); }
/* Keep header search and social buttons aligned on larger screens */
.search-contact-wrapper { flex-wrap: wrap; }
.search-contact-wrapper .contact-btn {
  flex: 0 0 44px; width: 44px; height: 44px; box-sizing: border-box;
  border-radius: 50%; padding: 0; font-size: 19px; line-height: 1;
}
.search-contact-wrapper #gameSearch { min-width: 190px; box-sizing: border-box; }
@media (max-width: 700px) {
  .header-container { padding: 18px 12px; gap: 12px; }
  .search-contact-wrapper {
    display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 9px 6px; width: 100%; max-width: 440px; justify-items: center;
    align-items: center;
  }
  .search-contact-wrapper #gameSearch {
    grid-column: 1 / -1; grid-row: 1; width: 100%; min-width: 0;
    max-width: none; height: 46px; margin: 0; font-size: 14px;
  }
  .search-contact-wrapper .contact-btn {
    width: min(42px, 100%); height: auto; aspect-ratio: 1; flex: none;
    font-size: 17px; margin: 0; min-width: 0;
  }
  .tk-results-grid { gap: 12px !important; }
  .tk-results-grid .game-card { border-width: 3px; border-radius: 15px; }
  .tk-results-grid .game-title {
    font-size: clamp(12px, 3.25vw, 15px); line-height: 1.22;
    padding: 8px 5px; min-height: 50px;
  }
  .tk-results-grid .game-badge { font-size: 10px; }
}
@media (max-width: 370px) {
  .search-contact-wrapper { gap: 7px 4px; }
  .search-contact-wrapper .contact-btn { width: min(39px, 100%); font-size: 16px; }
  .tk-results-grid .game-title { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .tk-results-grid .game-card { transition: none; }
}


/* Teacher Khen Community add-on (kept separate from existing game styling) */
[hidden] { display:none !important; }
.tk-community-nav { flex-wrap:wrap; }
.tk-community-nav button { cursor:pointer; }
.tk-community-nav button.tk-active { background:#7b4dd9; color:white; }
.tk-community-shell { width:min(1300px,calc(100% - 32px)); margin:16px auto 54px; color:#23244c; font-family:'Fredoka',sans-serif; }
.tk-community-header { padding:22px 26px; border-radius:20px; background:linear-gradient(110deg,#e8dcff,#dcefff); margin-bottom:20px; }
.tk-community-header h2 { margin:0 0 6px; font-size:clamp(1.5rem,4vw,2.3rem); }
.tk-community-header p { margin:0; }
.tk-community-filters { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-bottom:20px; }
.tk-community-filters button, .tk-community-primary { background:white; border:2px solid #d4c5ff; border-radius:14px; padding:10px 16px; font:inherit; cursor:pointer; }
.tk-community-filters button.active, .tk-community-primary { background:#7548d5; color:white; border-color:#7548d5; }
.tk-community-filters input { margin-left:auto; min-width:min(100%,250px); padding:12px; border-radius:14px; border:2px solid #ddd; font:inherit; }
.tk-lessons-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.tk-lesson-card { min-width:0; padding:12px; background:#fff; border-radius:20px; box-shadow:0 6px 19px #30286922; }
.tk-lesson-preview { border-radius:14px; aspect-ratio:16/9; background:linear-gradient(135deg,#cef5ff,#e3d8ff); padding:12px; overflow:hidden; position:relative; }
.tk-lesson-preview h3 { margin:0 40px 8px 0; font-size:1.25rem; }
.tk-preview-chips { display:flex; flex-wrap:wrap; justify-content:center; gap:7px; align-content:center; min-height:55%; }
.tk-preview-chips span { background:#fff; color:#263a76; border:2px solid #95b3ff; border-radius:9px; padding:6px 10px; font-weight:700; }
.tk-lesson-card h4 { margin:12px 0 3px; font-size:1.12rem; }
.tk-lesson-meta { font-size:.86rem; margin:0 0 10px; color:#637095; }
.tk-lesson-badge { display:inline-block; padding:5px 9px; border-radius:12px; background:#d4fae5; font-size:.77rem; font-weight:800; }
.tk-lesson-badge.premium { background:#fff0b7; }
.tk-heart { position:absolute; right:9px; top:9px; background:white; border:0; border-radius:50%; width:40px; height:40px; font-size:24px; cursor:pointer; color:#ca2865; }
.tk-lesson-actions { display:flex; gap:8px; }
.tk-lesson-actions button { flex:1; min-height:41px; border-radius:12px; border:1px solid #d9d9ef; font:inherit; cursor:pointer; background:#f3f0ff; }
.tk-lesson-actions button:last-child { background:#7749d6; color:white; }
.tk-community-empty { text-align:center; background:white; border-radius:16px; padding:30px; grid-column:1/-1; }
.tk-community-upload { background:#fff; border-radius:20px; padding:20px; max-width:700px; display:grid; gap:12px; }
.tk-community-upload label { display:grid; gap:5px; font-weight:650; }
.tk-community-upload input:not([type=checkbox]),.tk-community-upload select,.tk-community-upload textarea { width:100%; box-sizing:border-box; padding:11px; border:2px solid #d5d4e8; border-radius:10px; font:inherit; }
.tk-community-upload .tk-admin-checkbox { display:flex; align-items:center; }
.tk-admin-records { margin-top:20px; display:grid; gap:10px; }
.tk-admin-record { padding:12px; background:white; border-radius:12px; display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.tk-admin-record button { padding:8px; cursor:pointer; }
.tk-preview-overlay { position:fixed; inset:0; background:#1b1e3caa; z-index:9000; display:grid; place-items:center; padding:18px; }
.tk-preview-dialog { background:white; color:#2b315d; border-radius:20px; padding:25px; position:relative; width:min(600px,100%); max-height:85vh; overflow:auto; }
#tk-preview-close { position:absolute; right:12px; top:8px; border:0; background:transparent; font-size:30px; cursor:pointer; }
.tk-preview-dialog .tk-preview-chips { margin:20px 0; min-height:unset; }
@media(max-width:900px){.tk-lessons-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:580px){.tk-lessons-grid{grid-template-columns:1fr}.tk-community-filters input{width:100%;margin-left:0}.tk-community-shell{width:calc(100% - 24px)}}


/* =============================================================
   TEACHER KHEN COMMUNITY V2 — WORDWALL-STYLE LESSON CARDS
   Scoped to Community; original homepage and game cards unchanged.
   This is a game-style JSON preview, not a live screenshot.
   ============================================================= */
.tk-lessons-grid { align-items:start; gap:18px; }
.tk-wall-card { padding:0 0 14px; overflow:hidden; border:1px solid #e2e6f3; border-radius:13px; box-shadow:0 2px 9px rgba(19,35,73,.12); }
.tk-wall-card .tk-wall-image { padding:0; border-radius:0; aspect-ratio:16/9; background:#90ceeb; overflow:hidden; }
.tk-wall-game-screen { position:absolute; inset:0; display:flex; flex-direction:column; background:linear-gradient(160deg,#84d5f8 0%,#d8eafa 60%,#9bcaff 100%); padding:9px 13px; box-sizing:border-box; }
.tk-wall-game-heading { align-self:center; display:flex; align-items:center; gap:7px; color:#ff5795; background:rgba(255,255,255,.93); padding:4px 13px; border:2px solid #fff; border-radius:10px; font-size:clamp(12px,1.5vw,19px); font-weight:900; text-shadow:1px 1px #fff; box-shadow:0 3px 5px #254e8f33; }
.tk-wall-game-icon { color:#ffb800; font-size:18px; }
.tk-wall-player-frame { flex:1; min-height:0; display:flex; align-items:center; justify-content:center; margin:8px 20px 2px; padding:7px; border:3px solid #31b96a; border-radius:12px; background:rgba(255,255,255,.83); box-shadow:0 4px 10px #1e498d27; }
.tk-wall-choices { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); grid-auto-rows:minmax(0,1fr); gap:7px; width:100%; height:100%; max-height:110px; }
.tk-wall-tile { display:flex; align-items:center; justify-content:center; min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; padding:3px; background:linear-gradient(#fff,#f2f7ff); border:2px solid #5d82fb; border-radius:9px; color:#273b62; font-size:clamp(12px,1.8vw,24px); font-weight:900; box-shadow:0 3px 0 #3561bc; }
.tk-wall-tile-1,.tk-wall-tile-4{border-color:#f87a9d;box-shadow:0 3px 0 #d7587c;}
.tk-wall-tile-2,.tk-wall-tile-5{border-color:#e7bd46;box-shadow:0 3px 0 #c29c28;}
.tk-wall-card .tk-lesson-badge { position:absolute; left:9px; top:9px; z-index:2; padding:5px 9px; border:1px solid #7dd8ab; box-shadow:0 2px 6px #2a3a5a36; }
.tk-wall-card .tk-heart { z-index:3; width:39px; height:39px; box-shadow:0 2px 8px #172c5533; }
.tk-wall-card h4 { font-family:'Fredoka','Chalkboard SE',sans-serif; font-size:1.1rem; line-height:1.25; margin:12px 14px 4px; }
.tk-wall-card .tk-lesson-meta { margin:0 14px 9px; }
.tk-wall-description { margin:0 14px 12px; font-size:.85rem; color:#61708e; line-height:1.4; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.tk-wall-card .tk-lesson-actions { margin:0 14px; }
.tk-wall-card .tk-play-button { font-weight:800; background:#7548d5; color:white; border:0; }
.tk-wall-card:hover { box-shadow:0 7px 18px rgba(24,37,80,.18); transform:translateY(-2px); transition:transform .15s,box-shadow .15s; }
@media(max-width:580px){.tk-wall-choices{max-height:145px}.tk-wall-game-heading{font-size:16px}.tk-wall-tile{font-size:clamp(13px,4vw,21px)}}

/* =============================================================
   TEACHER KHEN COMMUNITY
   EQUAL-HEIGHT WORDWALL-STYLE LESSON CARDS

   Fixes:
   - Equal card heights
   - Consistent 16:9 thumbnails
   - Two-line titles and descriptions
   - Play buttons aligned at the bottom
   - Responsive card layout

   Does not affect other website sections.
   ============================================================= */

.tk-lessons-grid {
    align-items: stretch;
}

.tk-lessons-grid > .tk-wall-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    box-sizing: border-box;
}

/* Same thumbnail size for every game */

.tk-wall-card .tk-wall-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    flex: 0 0 auto;
}

/* Titles: maximum two lines */

.tk-wall-card h4 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
    line-height: 1.25;
    min-height: 2.5em;
    max-height: 2.5em;
}

/* Game name and grade level */

.tk-wall-card .tk-lesson-meta {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
    line-height: 1.35;
    min-height: 2.7em;
    max-height: 2.7em;
}

/* Descriptions: maximum two lines */

.tk-wall-card .tk-wall-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
    line-height: 1.4;
    min-height: 2.8em;
    max-height: 2.8em;
}

/* Keep Play Lesson buttons at the bottom */

.tk-wall-card .tk-lesson-actions {
    margin-top: auto;
    padding-top: 0;
}

.tk-wall-card .tk-lesson-actions .tk-play-button {
    width: 100%;
}

/* =========================================================
   TEACHER KHEN COMMUNITY
   FINAL LESSON CARD LAYOUT
   ========================================================= */

/* Equal-height lesson cards */
.tk-lessons-grid {
    align-items: stretch;
    gap: 18px;
}

.tk-lessons-grid > .tk-wall-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    box-sizing: border-box;
}

/* Consistent thumbnail dimensions */
.tk-wall-card .tk-wall-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    flex: 0 0 auto;
    box-sizing: border-box;
}

/* Automatically generated image thumbnails */
.tk-wall-card .tk-spotit-auto-preview {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Titles: maximum two lines */
.tk-wall-card h4 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
    line-height: 1.3;
    min-height: 2.6em;
    max-height: 2.6em;
}

/* Consistent game and grade labels */
.tk-wall-card .tk-lesson-meta {
    line-height: 1.35;
    min-height: 2.7em;
    max-height: 2.7em;
    overflow: hidden;
}

/* Consistent descriptions */
.tk-wall-card .tk-wall-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 1.4;
    min-height: 2.8em;
    max-height: 2.8em;
}

/* Keep Play Lesson buttons aligned */
.tk-wall-card .tk-lesson-actions {
    margin-top: auto;
    padding-top: 8px;
}

.tk-wall-card .tk-play-button {
    width: 100%;
    min-height: 44px;
}

/* Preserve responsive Community layout */
@media (max-width: 900px) {
    .tk-lessons-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 580px) {
    .tk-lessons-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}


/* =====================================================
   TEACHER KHEN COMMUNITY
   LARGE THUMBNAILS + ULTRA-COMPACT TEXT
   5–6 CARDS PER ROW
   ===================================================== */

/* GAME GRID */
#tk-lessons-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 12px !important;
  align-items: start !important;
  grid-auto-rows: auto !important;
}

/* CARD CONTAINER */
#tk-lessons-grid .tk-lesson-card.tk-wall-card {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  gap: 0 !important;

  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 0 9px !important;
  overflow: hidden !important;
}

/* LARGER THUMBNAIL — MAIN FEATURE */
#tk-lessons-grid .tk-lesson-preview.tk-wall-image {
  height: 190px !important;
  min-height: 190px !important;
  max-height: 190px !important;
  flex: 0 0 190px !important;
  margin: 0 !important;
  padding: 7px !important;
  position: relative;
  overflow: hidden !important;
}

/* THUMBNAIL SCREEN */
#tk-lessons-grid .tk-wall-game-screen {
  height: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

/* THUMBNAIL TITLE */
#tk-lessons-grid .tk-wall-game-heading {
  flex: 0 0 auto !important;
  margin: 0 0 4px !important;
  font-size: 11px !important;
  line-height: 1.15 !important;
}

/* THUMBNAIL IMAGE CONTAINER */
#tk-lessons-grid .tk-wall-player-frame {
  flex: 1 1 auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin-top: 0 !important;
  overflow: hidden !important;
}

/* GENERATED THUMBNAIL IMAGES */
#tk-lessons-grid .tk-wall-player-frame img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block;
}

/* REMOVE ORIGINAL CARD TEXT GAPS */
#tk-lessons-grid .tk-lesson-card > h4,
#tk-lessons-grid .tk-lesson-card > p {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  flex: 0 0 auto !important;
  padding: 0 !important;
  align-self: stretch !important;
}

/* LESSON TITLE */
#tk-lessons-grid .tk-lesson-card > h4 {
  margin: 7px 9px 0 !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  overflow-wrap: anywhere;
}

/* GAME NAME + GRADE — DIRECTLY BELOW TITLE */
#tk-lessons-grid .tk-lesson-card > .tk-lesson-meta {
  margin: 1px 9px 0 !important;
  padding: 0 !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  overflow-wrap: anywhere;
}

/* DESCRIPTION — DIRECTLY BELOW GRADE */
#tk-lessons-grid .tk-lesson-card > .tk-wall-description {
  margin: 1px 9px 0 !important;
  padding: 0 !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  overflow-wrap: anywhere;
}

/* PLAY BUTTON — ONLY A SMALL GAP ABOVE */
#tk-lessons-grid .tk-lesson-card > .tk-lesson-actions {
  display: flex !important;
  flex: 0 0 auto !important;
  align-self: stretch !important;

  height: auto !important;
  min-height: 0 !important;
  margin: 8px 9px 0 !important;
  padding: 0 !important;
}

/* PLAY LESSON BUTTON */
#tk-lessons-grid .tk-play-button {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 36px !important;

  margin: 0 !important;
  padding: 8px 9px !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  border-radius: 10px !important;
}

/* EXTRA-WIDE DESKTOP — 6 CARDS */
@media (min-width: 1800px) {
  #tk-lessons-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }

  #tk-lessons-grid .tk-lesson-preview.tk-wall-image {
    height: 205px !important;
    min-height: 205px !important;
    max-height: 205px !important;
    flex-basis: 205px !important;
  }
}

/* LAPTOP — 4 CARDS */
@media (min-width: 1100px) and (max-width: 1399px) {
  #tk-lessons-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  #tk-lessons-grid .tk-lesson-preview.tk-wall-image {
    height: 180px !important;
    min-height: 180px !important;
    max-height: 180px !important;
    flex-basis: 180px !important;
  }
}

/* TABLET — 3 CARDS */
@media (min-width: 700px) and (max-width: 1099px) {
  #tk-lessons-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  #tk-lessons-grid .tk-lesson-preview.tk-wall-image {
    height: 175px !important;
    min-height: 175px !important;
    max-height: 175px !important;
    flex-basis: 175px !important;
  }
}

/* MOBILE — 2 CARDS */
@media (max-width: 699px) {
  #tk-lessons-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  #tk-lessons-grid .tk-lesson-preview.tk-wall-image {
    height: 145px !important;
    min-height: 145px !important;
    max-height: 145px !important;
    flex-basis: 145px !important;
    padding: 4px !important;
  }

  #tk-lessons-grid .tk-lesson-card > h4 {
    font-size: 12px !important;
    margin: 6px 7px 0 !important;
  }

  #tk-lessons-grid .tk-lesson-card > .tk-lesson-meta,
  #tk-lessons-grid .tk-lesson-card > .tk-wall-description {
    font-size: 10px !important;
    margin: 1px 7px 0 !important;
  }

  #tk-lessons-grid .tk-lesson-card > .tk-lesson-actions {
    margin: 7px 7px 0 !important;
  }

  #tk-lessons-grid .tk-play-button {
    min-height: 34px !important;
    padding: 7px 5px !important;
    font-size: 11px !important;
  }
}

/* NARROW PHONES — 1 CARD */
@media (max-width: 360px) {
  #tk-lessons-grid {
    grid-template-columns: 1fr !important;
  }

  #tk-lessons-grid .tk-lesson-preview.tk-wall-image {
    height: 190px !important;
    min-height: 190px !important;
    max-height: 190px !important;
    flex-basis: 190px !important;
  }
}

