/* WMNL Kidz - central stylesheet */
:root {
    --wmnl-navy: #081426;
    --wmnl-navy-light: #122442;
    --wmnl-orange: #ff7818;
    --kidz-primary: #8F65E4;
    --kidz-primary-dark: #7650C7;
    --kidz-primary-light: #EDE6FC;
    --kidz-bg: #F3F5F9;
    --kidz-surface: #fff;
    --kidz-text: #172033;
    --kidz-muted: #687286;
    --kidz-border: rgba(23, 32, 51, .08);
    --kidz-radius: 20px;
    --kidz-shadow: 0 6px 20px rgba(8, 20, 38, .08);
    --kidz-shadow-hover: 0 12px 30px rgba(8, 20, 38, .14);
    --kidz-shadow-strong: 0 18px 45px rgba(8, 20, 38, .18)
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--kidz-bg);
    color: var(--kidz-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased
}

img {
    max-width: 100%
}

button,
input {
    font: inherit
}

a {
    color: var(--kidz-primary);
    text-decoration: none
}

a:hover {
    color: var(--kidz-primary-dark)
}

.kidz-header {
    position: relative;
    z-index: 100;
    background: var(--wmnl-navy);
    color: #fff;
    box-shadow: 0 3px 15px rgba(0, 0, 0, .12)
}

.kidz-header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    width: min(calc(100% - 40px), 1180px);
    min-height: 72px;
    margin: auto
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--kidz-primary);
    color: var(--kidz-primary-light);
    font-size: .9rem;
    font-weight: 700
}

.back-link:hover {
    color: #fff
}

.kidz-logo {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin: auto
}

.kidz-logo-wmnl {
    color: #fff;
    font-size: 1.65rem;
    font-weight: 900;
    letter-spacing: -.055em
}

.kidz-logo-kidz {
    color: var(--kidz-primary);
    font-size: 1.2rem;
    font-weight: 900
}

.kidz-header-spacer {
    width: 100px
}

.kidz-main {
    width: min(calc(100% - 40px), 1180px);
    margin: auto;
    padding: 55px 0 90px
}

.page-heading {
    margin-bottom: 30px
}

.page-heading h1 {
    margin: 0 0 8px;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.1;
    letter-spacing: -.045em
}

.page-heading p {
    margin: 0;
    max-width: 700px;
    color: var(--kidz-muted);
    font-size: 1.05rem
}

.kidz-footer {
    padding: 35px 20px;
    background: var(--wmnl-navy);
    color: rgba(255, 255, 255, .72);
    text-align: center
}

.kidz-footer p {
    margin: 0;
    font-size: .85rem
}

/* Homepage */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    min-height: 420px;
    margin-bottom: 32px;
    padding: 55px;
    border-radius: 36px;
    background: var(--wmnl-navy);
    color: #fff;
    box-shadow: var(--kidz-shadow-strong)
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 20%, rgba(143, 101, 228, .38), transparent 32%);
    pointer-events: none
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px
}

.hero-badge {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(143, 101, 228, .18);
    color: #fff;
    font-weight: 800;
    font-size: .82rem
}

.hero h1 {
    margin: 0 0 15px;
    font-size: clamp(2.7rem, 6vw, 4.6rem);
    line-height: .98;
    letter-spacing: -.06em
}

.hero h1 span {
    color: var(--kidz-primary)
}

.hero p {
    max-width: 560px;
    margin: 0;
    color: rgba(255, 255, 255, .8);
    font-size: 1.08rem
}

.hero-illustration {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(143, 101, 228, .18);
    font-size: 8rem;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, .2))
}

.kidz-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 32px
}

.kidz-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 27px;
    background: #fff;
    border: 1px solid var(--kidz-border);
    border-radius: var(--kidz-radius);
    box-shadow: var(--kidz-shadow);
    color: var(--kidz-text);
    transition: transform .28s ease, box-shadow .28s ease
}

.kidz-card:hover {
    transform: translateY(-6px) rotate(-.2deg);
    box-shadow: var(--kidz-shadow-hover);
    color: var(--kidz-text)
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: var(--kidz-primary-light);
    font-size: 2rem
}

.card-content {
    padding-right: 25px
}

.card-content h2 {
    margin: 0 0 6px;
    font-size: 1.3rem
}

.card-content p {
    margin: 0;
    color: var(--kidz-muted)
}

.card-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--kidz-primary);
    font-size: 1.5rem;
    font-weight: 900
}

.fact-of-the-day,
.kidz-footer-message {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 32px 0;
    padding: 28px;
    border-radius: 28px;
    background: linear-gradient(135deg, #fff, var(--kidz-primary-light));
    box-shadow: var(--kidz-shadow)
}

.fact-icon,
.footer-truck {
    font-size: 3rem
}

.fact-label {
    display: block;
    color: var(--kidz-primary);
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .78rem
}

.fact-content h2,
.kidz-footer-message h2 {
    margin: 2px 0 5px
}

.fact-content p,
.kidz-footer-message p {
    margin: 0;
    color: var(--kidz-muted)
}

.kidz-card.games-card {
    border-top: 4px solid var(--kidz-primary)
}

.kidz-card.quiz-card {
    border-top: 4px solid var(--wmnl-orange)
}

.kidz-card.facts-card {
    border-top: 4px solid #4E9DDC
}

.kidz-card.coloring-card {
    border-top: 4px solid #28A66F
}


/* weetjes.php */


/* =====================================================
           Weetjes
           ===================================================== */

.page-heading {
    margin-bottom: 30px;
}

.page-heading h1 {
    margin: 0 0 8px;

    font-size: clamp(2.2rem, 5vw, 3.4rem);

    line-height: 1.1;

    letter-spacing: -0.045em;
}

.page-heading p {
    margin: 0;

    max-width: 700px;

    color: var(--kidz-muted);

    font-size: 1.05rem;
}


/* Controls */

.facts-controls {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 26px;
}

.filter-button {
    border: 0;

    padding: 10px 16px;

    border-radius: 999px;

    background: var(--kidz-surface);

    color: var(--kidz-text);

    box-shadow: var(--kidz-shadow);

    font: inherit;

    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        background 0.15s ease;
}

.filter-button:hover {
    transform: translateY(-2px);
}

.filter-button.active {
    background: var(--kidz-primary);

    color: white;
}


/* Search */

.search-wrapper {
    position: relative;

    margin-bottom: 28px;
}

.search-input {
    width: 100%;

    padding: 15px 18px 15px 48px;

    border: 2px solid transparent;

    border-radius: 17px;

    background: var(--kidz-surface);

    color: var(--kidz-text);

    box-shadow: var(--kidz-shadow);

    font: inherit;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.search-input:focus {
    border-color: var(--kidz-primary);

    box-shadow: var(--kidz-shadow-hover);
}

.search-icon {
    position: absolute;

    left: 17px;
    top: 50%;

    transform: translateY(-50%);

    font-size: 1.25rem;

    pointer-events: none;
}


/* Random fact */

.random-fact {
    display: none;

    margin-bottom: 28px;

    padding: 28px;

    border-radius: 24px;

    background:
        linear-gradient(135deg,
            #ffffff,
            #F5F1FD);

    box-shadow: var(--kidz-shadow);

    animation: factIn 0.25s ease;
}

.random-fact.visible {
    display: block;
}

@keyframes factIn {

    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

@page {
    size: A4 portrait;
    margin: 0;
}

.paper {
    width: 210mm;
    height: 297mm;
    padding: 15mm;
}

.random-fact-label {
    display: block;

    margin-bottom: 5px;

    color: var(--kidz-primary);

    font-size: 0.8rem;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.08em;
}

.random-fact-text {
    margin: 0;

    font-size: 1.25rem;

    font-weight: 700;
}


/* Fact grid */

.facts-grid {
    display: grid;

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

    gap: 20px;
}


/* Fact card */

.fact-card {
    position: relative;

    padding: 25px;

    background: var(--kidz-surface);

    border-radius: var(--kidz-radius);

    box-shadow: var(--kidz-shadow);

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

.fact-card:hover {
    transform: translateY(-4px);

    box-shadow: var(--kidz-shadow-hover);
}

.fact-card-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 54px;
    height: 54px;

    margin-bottom: 16px;

    border-radius: 16px;

    background: var(--kidz-bg);

    font-size: 1.7rem;
}

.fact-card-category {
    display: block;

    margin-bottom: 6px;

    color: var(--kidz-primary);

    font-size: 0.75rem;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.07em;
}

.fact-card h2 {
    margin: 0;

    font-size: 1.15rem;

    line-height: 1.45;
}


/* Empty state */

.empty-state {
    display: none;

    padding: 45px 20px;

    text-align: center;

    color: var(--kidz-muted);
}

.empty-state.visible {
    display: block;
}

.empty-state-icon {
    font-size: 3.5rem;
}

.empty-state h2 {
    margin: 8px 0 4px;

    color: var(--kidz-text);
}

.empty-state p {
    margin: 0;
}


/* Random button */

.random-button {
    border: 0;

    padding: 11px 18px;

    border-radius: 999px;

    background: var(--kidz-primary);

    color: white;

    font: inherit;

    font-weight: 800;

    cursor: pointer;

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

.random-button:hover {
    background: var(--kidz-primary-dark);

    transform: translateY(-2px);
}


@media (max-width: 950px) {

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

}


@media (max-width: 620px) {

    .facts-grid {
        grid-template-columns: 1fr;
    }

}



/* kleurplaten.php */


/* =====================================================
           Kleurplaten
           ===================================================== */

.page-heading {
    margin-bottom: 30px;
}


.page-heading h1 {
    margin: 0 0 8px;

    font-size: clamp(2.2rem,
            5vw,
            3.4rem);

    line-height: 1.1;

    letter-spacing: -0.045em;
}


.page-heading p {
    margin: 0;

    max-width: 700px;

    color: var(--kidz-muted);

    font-size: 1.05rem;
}


/* =====================================================
           Intro
           ===================================================== */

.coloring-intro {
    display: flex;

    align-items: center;

    gap: 20px;

    margin-bottom: 30px;

    padding: 24px 28px;

    background:
        linear-gradient(135deg,
            #ffffff,
            #F5F1FD);

    border-radius: 24px;

    box-shadow: var(--kidz-shadow);
}


.coloring-intro-icon {
    display: flex;

    align-items: center;

    justify-content: center;

    flex: 0 0 auto;

    width: 64px;
    height: 64px;

    border-radius: 18px;

    background: var(--kidz-bg);

    font-size: 2rem;
}


.coloring-intro h2 {
    margin: 0 0 3px;

    font-size: 1.3rem;
}


.coloring-intro p {
    margin: 0;

    color: var(--kidz-muted);
}


/* =====================================================
           Gallery
           ===================================================== */

.coloring-grid {
    display: grid;

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

    gap: 22px;
}


.coloring-card {
    display: flex;

    flex-direction: column;

    overflow: hidden;

    background:
        var(--kidz-surface);

    border-radius:
        var(--kidz-radius);

    box-shadow:
        var(--kidz-shadow);

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


.coloring-card:hover {
    transform: translateY(-5px);

    box-shadow:
        var(--kidz-shadow-hover);
}


/* =====================================================
           Preview
           ===================================================== */

.coloring-preview {
    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    min-height: 250px;

    padding: 25px;

    background:
        #ffffff;

    border-bottom:
        1px solid rgba(15, 23, 42, 0.06);
}


.coloring-preview img {
    display: block;

    width: 100%;

    max-width: 260px;

    height: 210px;

    object-fit: contain;
}


.preview-placeholder {
    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    width: 100%;

    height: 210px;

    color: var(--kidz-muted);

    text-align: center;
}


.preview-placeholder-icon {
    font-size: 3.5rem;

    margin-bottom: 8px;
}


/* =====================================================
           Card content
           ===================================================== */

.coloring-content {
    padding: 20px;
}


.coloring-content h2 {
    margin: 0 0 5px;

    font-size: 1.2rem;
}


.coloring-content p {
    margin: 0 0 17px;

    color: var(--kidz-muted);

    font-size: 0.92rem;
}


.print-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    width: 100%;

    padding: 12px 16px;

    border: 0;

    border-radius: 13px;

    background:
        var(--kidz-primary);

    color: white;

    font: inherit;

    font-weight: 800;

    text-decoration: none;

    cursor: pointer;

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


.print-button:hover {
    background:
        var(--kidz-primary-dark);

    transform:
        translateY(-2px);
}


/* =====================================================
           Empty state
           ===================================================== */

.empty-state {
    padding: 55px 20px;

    text-align: center;

    color: var(--kidz-muted);
}


.empty-state-icon {
    font-size: 4rem;
}


.empty-state h2 {
    margin: 10px 0 5px;

    color: var(--kidz-text);
}


.empty-state p {
    margin: 0;
}


/* =====================================================
           Responsive
           ===================================================== */

@media (max-width: 950px) {

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

}


@media (max-width: 620px) {

    .coloring-grid {
        grid-template-columns: 1fr;
    }


    .coloring-intro {
        align-items: flex-start;

        padding: 22px;
    }

}



/* quiz.php */


/* =====================================================
           Quiz
           ===================================================== */

.page-heading {
    margin-bottom: 30px;
}

.page-heading h1 {
    margin: 0 0 8px;

    font-size: clamp(2.2rem, 5vw, 3.4rem);

    line-height: 1.1;

    letter-spacing: -0.045em;
}

.page-heading p {
    margin: 0;

    max-width: 700px;

    color: var(--kidz-muted);

    font-size: 1.05rem;
}


/* Quiz card */

.quiz-card {
    max-width: 850px;

    margin: 0 auto;

    padding: 32px;

    background: var(--kidz-surface);

    border-radius: 26px;

    box-shadow: var(--kidz-shadow);
}


/* Progress */

.quiz-top {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    margin-bottom: 14px;
}

.question-number {
    font-weight: 800;
}

.quiz-score {
    color: var(--kidz-muted);

    font-weight: 700;
}

.progress {
    width: 100%;

    height: 10px;

    margin-bottom: 30px;

    background: var(--kidz-bg);

    border-radius: 999px;

    overflow: hidden;
}

.progress-bar {
    width: 0;

    height: 100%;

    background: var(--kidz-primary);

    border-radius: inherit;

    transition: width 0.3s ease;
}


/* Question */

.question-category {
    display: inline-block;

    margin-bottom: 8px;

    color: var(--kidz-primary);

    font-size: 0.78rem;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.08em;
}

.question {
    margin: 0 0 24px;

    font-size: clamp(1.5rem, 4vw, 2.1rem);

    line-height: 1.2;

    letter-spacing: -0.025em;
}


/* Answers */

.answers {
    display: grid;

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

    gap: 14px;
}

.answer {
    min-height: 70px;

    padding: 17px 20px;

    border: 2px solid transparent;

    border-radius: 17px;

    background: var(--kidz-bg);

    color: var(--kidz-text);

    font: inherit;

    font-weight: 700;

    text-align: left;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.answer:hover:not(:disabled) {
    transform: translateY(-2px);

    border-color: var(--kidz-primary);

    box-shadow: var(--kidz-shadow);
}

.answer.correct {
    border-color: #16a34a;

    background: #ecfdf3;
}

.answer.wrong {
    border-color: #dc2626;

    background: #fef2f2;
}

.answer:disabled {
    cursor: default;
}


/* Feedback */

.quiz-feedback {
    display: none;

    margin-top: 22px;

    padding: 18px;

    border-radius: 16px;

    background: var(--kidz-bg);
}

.quiz-feedback.visible {
    display: block;
}

.quiz-feedback strong {
    display: block;

    margin-bottom: 4px;
}

.quiz-feedback p {
    margin: 0;

    color: var(--kidz-muted);
}


/* Next */

.quiz-actions {
    display: flex;

    justify-content: flex-end;

    margin-top: 20px;
}

.next-button {
    display: none;

    border: 0;

    padding: 13px 23px;

    border-radius: 999px;

    background: var(--kidz-primary);

    color: white;

    font: inherit;

    font-weight: 800;

    cursor: pointer;

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

.next-button.visible {
    display: inline-block;
}

.next-button:hover {
    background: var(--kidz-primary-dark);

    transform: translateY(-2px);
}


/* Result */

.quiz-result {
    display: none;

    text-align: center;

    padding: 20px 10px 5px;
}

.quiz-result.visible {
    display: block;
}

.result-icon {
    font-size: 5rem;

    line-height: 1;
}

.result-title {
    margin: 14px 0 6px;

    font-size: 2.2rem;
}

.result-score {
    margin: 0 0 12px;

    font-size: 1.25rem;

    font-weight: 800;
}

.result-message {
    max-width: 600px;

    margin: 0 auto 24px;

    color: var(--kidz-muted);
}

.restart-button {
    border: 0;

    padding: 13px 23px;

    border-radius: 999px;

    background: var(--kidz-primary);

    color: white;

    font: inherit;

    font-weight: 800;

    cursor: pointer;

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

.restart-button:hover {
    background: var(--kidz-primary-dark);

    transform: translateY(-2px);
}


@media (max-width: 650px) {

    .quiz-card {
        padding: 22px;
    }

    .answers {
        grid-template-columns: 1fr;
    }

    .quiz-top {
        align-items: flex-start;

        flex-direction: column;

        gap: 4px;
    }

}



/* games.php */

/* =====================================================
           Games
           ===================================================== */

.page-heading {
    margin-bottom: 30px;
}

.page-heading h1 {
    margin: 0 0 8px;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.1;
    letter-spacing: -0.045em;
}

.page-heading p {
    margin: 0;
    max-width: 700px;
    color: var(--kidz-muted);
    font-size: 1.05rem;
}


/* Game selector */

.game-selector {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}

.game-choice {
    padding: 22px;
    border: 0;
    border-radius: var(--kidz-radius);
    background: var(--kidz-surface);
    color: var(--kidz-text);
    box-shadow: var(--kidz-shadow);
    font: inherit;
    text-align: left;
    cursor: pointer;

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

.game-choice:hover {
    transform: translateY(-3px);
    box-shadow: var(--kidz-shadow-hover);
}

.game-choice.active {
    outline: 3px solid var(--kidz-primary);
}

.game-choice-icon {
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.game-choice h2 {
    margin: 0 0 4px;
    font-size: 1.25rem;
}

.game-choice p {
    margin: 0;
    color: var(--kidz-muted);
    font-size: 0.95rem;
}


/* Game panel */

.game-panel {
    background: var(--kidz-surface);
    border-radius: 26px;
    padding: 32px;
    box-shadow: var(--kidz-shadow);
}

.game-panel h2 {
    margin: 0 0 6px;
    font-size: 1.8rem;
}

.game-description {
    margin: 0 0 24px;
    color: var(--kidz-muted);
}


/* Score */

.game-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;

    margin-bottom: 22px;
    padding: 14px 18px;

    background: var(--kidz-bg);
    border-radius: 16px;
}

.score {
    font-weight: 800;
}

.round {
    color: var(--kidz-muted);
    font-weight: 600;
}


/* Waste item */

.waste-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 270px;
    padding: 30px;

    border-radius: 22px;

    background:
        linear-gradient(135deg,
            #F8F6FC,
            #F5F1FD);

    text-align: center;
}

.waste-emoji {
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 15px;

    animation: wasteAppear 0.25s ease;
}

@keyframes wasteAppear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.waste-name {
    margin: 0;
    font-size: 1.6rem;
}


/* Bins */

.bins {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;

    margin-top: 22px;
}

.bin {
    border: 0;

    padding: 20px 12px;

    border-radius: 18px;

    background: var(--kidz-bg);

    color: var(--kidz-text);

    font: inherit;
    font-weight: 800;

    cursor: pointer;

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

.bin:hover {
    transform: translateY(-3px);
    box-shadow: var(--kidz-shadow);
}

.bin-icon {
    display: block;
    font-size: 2.2rem;
    margin-bottom: 5px;
}


/* Feedback */

.feedback {
    min-height: 28px;

    margin-top: 18px;

    text-align: center;

    font-weight: 800;
}

.feedback.correct {
    color: #15803d;
}

.feedback.wrong {
    color: #b91c1c;
}


/* Finished */

.game-finished {
    display: none;

    text-align: center;

    padding: 30px 10px 10px;
}

.game-finished.visible {
    display: block;
}

.game-finished-icon {
    font-size: 4rem;
}

.game-finished h3 {
    margin: 8px 0;
    font-size: 2rem;
}

.game-finished p {
    color: var(--kidz-muted);
}

.restart-button {
    border: 0;

    padding: 13px 22px;

    border-radius: 999px;

    background: var(--kidz-primary);
    color: white;

    font: inherit;
    font-weight: 800;

    cursor: pointer;

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

.restart-button:hover {
    background: var(--kidz-primary-dark);
    transform: translateY(-2px);
}


/* Coming soon */

.coming-soon {
    display: none;
    padding: 35px;
    text-align: center;
}

.coming-soon.visible {
    display: block;
}

.coming-soon-icon {
    font-size: 4rem;
}

.coming-soon h2 {
    margin: 10px 0 5px;
}

.coming-soon p {
    margin: 0;
    color: var(--kidz-muted);
}


@media (max-width: 700px) {

    .game-selector {
        grid-template-columns: 1fr;
    }

    .game-panel {
        padding: 22px;
    }

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

}


/* print.php */


@page {
    size: A4 portrait;

    margin: 12mm;
}


* {
    box-sizing: border-box;
}


body {
    margin: 0;

    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: #eeeeee;

    color: #111111;
}


.toolbar {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    padding: 15px 20px;

    background: #ffffff;

    border-bottom:
        1px solid #dddddd;
}


.toolbar-title {
    font-weight: 800;
}


.toolbar-actions {
    display: flex;

    gap: 10px;
}


button,
a {
    padding: 9px 15px;

    border: 0;

    border-radius: 9px;

    background: #eeeeee;

    color: #111111;

    font: inherit;

    font-weight: 700;

    text-decoration: none;

    cursor: pointer;
}


.print-button {
    background: #111111;

    color: #ffffff;
}


.page {
    display: flex;

    align-items: center;

    justify-content: center;

    min-height:
        calc(100vh - 70px);

    padding: 30px;
}


.paper {
    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: space-between;

    width: 210mm;

    min-height: 297mm;

    padding: 18mm;

    background: #ffffff;

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.15);
}


.paper h1 {
    width: 100%;

    margin: 0 0 15mm;

    text-align: center;

    font-size: 24pt;
}


.coloring-image {
    display: flex;

    align-items: center;

    justify-content: center;

    flex: 1;

    width: 100%;
}


.coloring-image img {
    display: block;

    width: 100%;

    max-width: 170mm;

    max-height: 220mm;

    object-fit: contain;
}


.paper-footer {
    width: 100%;

    margin-top: 10mm;

    text-align: center;

    font-size: 9pt;

    color: #777777;
}


@media print {

    body {
        background: #ffffff;
    }


    .toolbar {
        display: none;
    }


    .page {
        min-height: auto;

        padding: 0;
    }


    .paper {
        width: 100%;

        min-height: 100vh;

        padding: 0;

        box-shadow: none;
    }


    .paper h1 {
        margin-top: 0;
    }

}


@media (max-width: 800px) {

    .page {
        padding: 10px;
    }


    .paper {
        width: 100%;

        min-height: auto;

        padding: 25px;
    }


    .toolbar {
        flex-direction: column;

        align-items: stretch;
    }


    .toolbar-actions {
        justify-content: stretch;
    }


    .toolbar-actions>* {
        flex: 1;

        text-align: center;
    }

}

.kidz-logo {
    display: block;
    width: 190px;
    line-height: 0;
    background-color: var(--wmnl-navy);
}

.kidz-logo img {
    display: block;
    width: 100%;
    height: auto;
}



/* Shared refinements */
.coloring-intro,
.random-fact {
    border: 1px solid rgba(143, 101, 228, .12)
}

.coloring-preview {
    background: #fff
}

.print-button,
.restart-button {
    background: var(--kidz-primary) !important
}

.print-button:hover,
.restart-button:hover {
    background: var(--kidz-primary-dark) !important
}

.answer:hover:not(:disabled),
.bin:hover,
.game-choice:hover {
    border-color: var(--kidz-primary)
}

[data-theme="dark"] {
    --kidz-bg: #0B1424;
    --kidz-surface: #14223A;
    --kidz-text: #F4F6FB;
    --kidz-muted: #A1ABBD;
    --kidz-border: rgba(255, 255, 255, .08)
}

[data-theme="dark"] .coloring-preview,
[data-theme="dark"] .paper {
    background: #fff
}

[data-theme="dark"] .hero-illustration {
    background: rgba(143, 101, 228, .24)
}

@media(max-width:950px) {

    .facts-grid,
    .coloring-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .kidz-grid,
    .game-selector {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .bins {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .hero-illustration {
        width: 220px;
        height: 220px;
        font-size: 6rem
    }
}

@media(max-width:700px) {
    .kidz-main {
        width: calc(100% - 28px);
        padding: 35px 0 60px
    }

    .kidz-header-inner {
        width: calc(100% - 28px);
        min-height: 62px
    }

    .kidz-header-spacer {
        display: none
    }

    .kidz-logo {
        margin: auto
    }

    .kidz-logo-wmnl {
        font-size: 1.4rem
    }

    .kidz-logo-kidz {
        font-size: 1rem
    }

    .hero {
        flex-direction: column;
        align-items: flex-start;
        min-height: 470px;
        padding: 35px 27px
    }

    .hero-illustration {
        align-self: center;
        width: 180px;
        height: 180px;
        font-size: 5rem;
        margin-top: 25px
    }

    .kidz-grid,
    .game-selector,
    .answers,
    .facts-grid,
    .coloring-grid {
        grid-template-columns: 1fr
    }

    .game-panel,
    .quiz-card {
        padding: 22px
    }

    .coloring-intro {
        align-items: flex-start;
        padding: 22px
    }

    .fact-of-the-day,
    .kidz-footer-message {
        align-items: flex-start
    }

    .back-link {
        font-size: .78rem
    }
}

@media(max-width:420px) {
    .back-link {
        font-size: 0;
        width: 32px;
        overflow: hidden
    }

    .back-link::before {
        content: "←";
        font-size: 1.2rem
    }

    .kidz-tile-grid {
        grid-template-columns: 1fr
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important
    }
}

/* =========================================================
   COOKIE BANNER
   ========================================================= */

.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;

    z-index: 10000;

    background: var(--card-bg);
    color: var(--text-color);

    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;

    box-shadow: var(--shadow-large);

    padding: 20px 25px;

    backdrop-filter: blur(12px);
}

.cookie-banner-content {
    max-width: 1400px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.cookie-banner-text {
    flex: 1;
}

.cookie-banner-text strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.cookie-banner-text p {
    margin: 0;
    opacity: .75;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn-secondary {
    background: transparent;
    color: var(--text-color);

    border: 1px solid rgba(255, 255, 255, .15);
}

.cookie-btn-secondary:hover {
    background: rgba(255, 255, 255, .06);
    color: var(--text-color);
}


/* Light mode */

body.light-mode .cookie-banner {
    border-color: rgba(0, 0, 0, .08);
}

body.light-mode .cookie-btn-secondary {
    border-color: rgba(0, 0, 0, .15);
}


/* Mobiel */

@media (max-width: 768px) {

    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;

        padding: 18px;
    }

    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;

        gap: 15px;
    }

    .cookie-banner-actions {
        flex-direction: column;
    }

    .cookie-banner-actions .btn {
        width: 100%;
    }

}