:root {
    --kids-purple: #5f2fd4;
    --kids-purple-dark: #4b24b8;
    --kids-cream: #fff8e9;
    --kids-text: #3a2670;
    --kids-green: #2ea765;
    --kids-shadow: 0 16px 34px rgba(88, 54, 169, 0.14);
    --kids-card-radius: 28px;
}

* {
    box-sizing: border-box;
}

body.kids-body {
    margin: 0;
    font-family: "Avenir Next", "Nunito", "Trebuchet MS", sans-serif;
    color: var(--kids-text);
    background: linear-gradient(180deg, #fffdf7 0%, #fff8e9 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(100% - 40px, 1240px);
    margin: 0 auto;
}

.kids-topbar {
    background: linear-gradient(180deg, #6c31e0 0%, #5125be 100%);
    color: #fff;
}

.kids-topbar-inner {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.kids-topbar-spacer {
    flex: 1 1 auto;
}

.kids-topbar-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.kids-viewing-form,
.kids-viewing-static {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
}

.kids-viewing-label {
    color: #fff;
}

.kids-viewing-select {
    min-width: 165px;
    min-height: 40px;
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    background: #fff;
    color: var(--kids-purple-dark);
    font: inherit;
    box-shadow: inset 0 0 0 2px rgba(95, 47, 212, 0.14);
}

.kids-topbar-btn {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, 0.32);
    color: #fff;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
}

.kids-topbar-btn.is-account {
    background: rgba(255, 208, 72, 0.16);
}

.kids-topbar-btn.is-logout {
    background: rgba(255, 255, 255, 0.04);
}

.kids-mainnav {
    background: #fff;
    border-bottom: 1px solid rgba(95, 47, 212, 0.08);
}

.kids-mainnav-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.kids-brand img {
    width: 290px;
    max-width: 100%;
}

.kids-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1 1 auto;
}

.kids-nav-link {
    position: relative;
    min-height: 56px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--kids-text);
}

.kids-nav-link.is-active::after {
    content: '';
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 0;
    height: 5px;
    border-radius: 999px 999px 0 0;
    background: var(--kids-purple);
}

.kids-nav-icon {
    width: 28px;
    height: 28px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.kids-nav-icon-home { background-image: url('/Assets/site/kids/images/icon_star_favorites.png'); }
.kids-nav-icon-games { background-image: url('/Assets/site/kids/images/icon_game_controller.png'); }
.kids-nav-icon-learning { background-image: url('/Assets/site/kids/images/icon_book_learning.png'); }
.kids-nav-icon-activities { background-image: url('/Assets/site/kids/images/icon_paint_palette.png'); }
.kids-nav-icon-challenges { background-image: url('/Assets/site/kids/images/icon_trophy_challenges.png'); }

.kids-search-btn {
    width: 54px;
    height: 54px;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.kids-search-btn img {
    width: 54px;
    height: 54px;
}

.kids-home {
    padding-bottom: 0;
}

.kids-hero {
    position: relative;
}

.kids-hero-stage {
    position: relative;
    min-height: 420px;
    overflow: visible;
}

.kids-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kids-hero-fox,
.kids-hero-dino {
    position: absolute;
    z-index: 2;
}

.kids-hero-fox {
    left: -31px;
    bottom: 89px;
    width: 298px;
}

.kids-hero-dino {
    right: 62px;
    bottom: 89px;
    width: 285px;
}

.kids-hero-copy {
    position: relative;
    z-index: 3;
    text-align: center;
    padding-top: 64px;
}

.kids-hero-copy h1 {
    margin: 0;
    font-size: clamp(3.4rem, 7vw, 5.5rem);
    line-height: 0.95;
    color: #5d2ad0;
    text-shadow: -3px 0 #fff, 0 3px #fff, 3px 0 #fff, 0 -3px #fff;
}

.kids-hero-copy p {
    margin: 10px 0 0;
    font-size: clamp(1.5rem, 3vw, 2.3rem);
    line-height: 1.1;
    font-weight: 800;
    color: #5d2ad0;
    text-shadow: -2px 0 #fff, 0 2px #fff, 2px 0 #fff, 0 -2px #fff;
}

.kids-feature-row {
    position: relative;
    z-index: 4;
    margin-top: -120px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.kids-feature-card img {
    width: 100%;
    height: 240px;
    filter: drop-shadow(0 14px 18px rgba(92, 56, 178, 0.2));
}

.kids-section {
    padding: 28px 0;
}

.kids-daily-panel,
.kids-points-card,
.kids-badges-card,
.kids-parents-card {
    border-radius: var(--kids-card-radius);
    box-shadow: var(--kids-shadow);
}

.kids-daily-panel img,
.kids-points-card img,
.kids-badges-card img,
.kids-parents-card img {
    width: 100%;
}

.kids-fun-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.kids-fun-header h2 {
    margin: 0;
    font-size: 2.05rem;
    color: #4f27c6;
}

.kids-see-all {
    font-size: 1.3rem;
    font-weight: 800;
    color: #4f27c6;
}

.kids-fun-carousel {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: 12px;
}

.kids-fun-arrow {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #6c31e0;
    font-size: 2rem;
    box-shadow: 0 6px 18px rgba(95, 47, 212, 0.12);
    cursor: pointer;
}

.kids-fun-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(170px, 1fr);
    gap: 14px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 6px;
}

.kids-fun-track::-webkit-scrollbar {
    display: none;
}

.kids-fun-card img {
    width: 100%;
    height:240px;
    border-radius: 22px;
    box-shadow: var(--kids-shadow);
}

.kids-dashboard {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 16px;
    align-items: stretch;
}

.kids-bottom-row {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 18px;
    align-items: end;
}

.kids-cheer-column {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    min-height: 100%;
}

.kids-cheer-mascot {
    width: 180px;
    flex: 0 0 auto;
}

.kids-cheer-speech {
    width: 220px;
    margin-bottom: 46px;
}

.kids-cheer-mushroom {
    width: 110px;
    align-self: flex-end;
}

.kids-footer {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: #fff;
    margin-top: 18px;
    padding: 44px 0 12px;
}

.kids-footer-inner {
    display: grid;
    grid-template-columns: minmax(320px, 1.7fr) 0.95fr 0.95fr 1.1fr;
    gap: 40px;
    align-items: start;
}

.kids-footer-brand p,
.kids-footer-column p,
.kids-footer-column li,
.kids-footer-email {
    color: rgba(255, 255, 255, 0.96);
    font-size: 1rem;
    line-height: 1.55;
}

.kids-footer-brand p {
    max-width: 420px;
    margin: 0;
}

.kids-footer-brand {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    padding-bottom: 0;
}

.kids-footer-brand img {
    width: 420px;
    max-width: 100%;
    margin-top: auto;
    margin-left: -87px;
    margin-bottom: -74px;
}

.kids-footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.kids-footer-socials a {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.kids-footer-column h3 {
    margin: 10px 0 16px;
    font-size: 2rem;
    line-height: 1;
}

.kids-footer-column ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.kids-footer-column li + li {
    margin-top: 10px;
}

.kids-footer-copy {
    text-align: center;
    color: rgba(255, 255, 255, 0.88);
    margin-top: 12px;
    font-size: 1rem;
}

@media (max-width: 1180px) {
    .kids-feature-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .kids-dashboard,
    .kids-bottom-row,
    .kids-footer-inner {
        grid-template-columns: 1fr;
    }

    .kids-cheer-column {
        justify-content: center;
    }

    .kids-footer-brand {
        min-height: unset;
    }

    .kids-footer-brand img {
        margin-bottom: 0;
    }
}

@media (max-width: 900px) {
    .container {
        width: min(100% - 24px, 1240px);
    }

    .kids-mainnav-inner,
    .kids-topbar-inner,
    .kids-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .kids-brand,
    .kids-search-btn {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .kids-hero-stage {
        min-height: 520px;
    }

    .kids-hero-fox {
        width: 150px;
        bottom: 74px;
    }

    .kids-hero-dino {
        right: 18px;
        width: 120px;
        bottom: 105px;
    }

    .kids-feature-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: -8px;
    }

    .kids-fun-carousel {
        grid-template-columns: 1fr;
    }

    .kids-fun-arrow {
        display: none;
    }

    .kids-fun-track {
        grid-auto-columns: 68%;
    }
}

@media (max-width: 640px) {
    .kids-feature-row {
        grid-template-columns: 1fr;
    }

    .kids-fun-track {
        grid-auto-columns: 86%;
    }

    .kids-topbar-controls {
        justify-content: center;
    }

    .kids-hero-copy {
        padding-top: 44px;
    }

    .kids-hero-fox,
    .kids-hero-dino {
        display: none;
    }
}
