:root {
    --snor-orange: #F59321;
    --snor-orange-dark: #C86D05;
    --snor-pink: #D45466;
    --snor-pink-dark: #A33343;
    --snor-yellow: #FFD43B;
    --snor-yellow-dark: #D9A600;
    --snor-green: #37C948;
    --snor-green-dark: #1E962C;
    --snor-blue: #29ABE2;
    --snor-blue-dark: #1479A6;
    --snor-bg: #FFF9F2;
    --cartoon-outline: #2C1E18;
    --snor-white: #FFFFFF;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--snor-bg);
    color: var(--cartoon-outline);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* --- MELDING BIJ LIGGEND SCHERM OP TELEFOON (LANDSCAPE) --- */
#rotate-device-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle, #FFB347 0%, var(--snor-orange) 100%);
    z-index: 20000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    color: var(--cartoon-outline);
}

.rotate-phone-icon {
    font-size: 4rem;
    margin-bottom: 12px;
    animation: tiltPhone 1.5s infinite ease-in-out alternate;
}

#rotate-device-overlay h2 {
    font-family: 'Baloo 2', cursive;
    font-size: 2rem;
    color: #FFF;
    text-shadow: 2px 2px 0 var(--cartoon-outline);
    margin-bottom: 8px;
}

#rotate-device-overlay p {
    font-weight: 700;
    max-width: 380px;
    background: #FFFDF9;
    padding: 12px 18px;
    border-radius: 18px;
    border: 3px solid var(--cartoon-outline);
    box-shadow: 0 5px 0 var(--cartoon-outline);
}

@keyframes tiltPhone {
    0% { transform: rotate(-25deg); }
    100% { transform: rotate(0deg); }
}

@media screen and (max-width: 930px) and (max-height: 520px) and (orientation: landscape) {
    #rotate-device-overlay {
        display: flex;
    }
}

/* --- CONFETTI CANVAS OVERLAY --- */
#confetti-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9500;
}

/* --- 1. SPLASHSCREEN --- */
#splash-screen {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle, #FFB347 0%, var(--snor-orange) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.6s ease, visibility 0.6s ease, transform 0.6s ease;
}

#splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.08);
    pointer-events: none;
}

.splash-logo {
    width: min(260px, 65vw);
    height: auto;
    border-radius: 50%;
    border: 5px solid var(--cartoon-outline);
    box-shadow: 0 12px 0 rgba(44, 30, 24, 0.25);
    animation: popIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.loader-bar {
    width: 170px;
    height: 14px;
    background: rgba(255, 255, 255, 0.4);
    border: 3px solid var(--cartoon-outline);
    border-radius: 20px;
    margin-top: 26px;
    overflow: hidden;
}

.loader-progress {
    width: 0%;
    height: 100%;
    background: var(--snor-yellow);
    animation: loadProgress 2s ease-in-out forwards;
}

@keyframes popIn {
    0% { transform: scale(0.4) rotate(-8deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes loadProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* --- 2. HEADER --- */
header {
    background: var(--snor-white);
    padding: 12px 20px;
    border-bottom: 4px solid var(--cartoon-outline);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 3px solid var(--cartoon-outline);
}

.brand-title {
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    line-height: 1.05;
    color: var(--snor-orange);
}

.brand-title span {
    display: block;
    color: var(--snor-pink);
}

/* Cartoon Knoppen Algemeen */
.btn-cartoon {
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    border: 3.5px solid var(--cartoon-outline);
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    position: relative;
}

.btn-cartoon:hover { transform: translateY(-2px); }
.btn-cartoon:active {
    transform: translateY(4px) !important;
    box-shadow: 0 1px 0 var(--cartoon-outline) !important;
}

.btn-contact-nav {
    background-color: var(--snor-pink);
    color: var(--snor-white);
    padding: 9px 22px;
    font-size: 1rem;
    box-shadow: 0 4px 0 var(--cartoon-outline);
}

/* --- 3. HOOFDPAGINA LAUNCHER CARD --- */
main {
    flex: 1;
    width: 100%;
    max-width: 1100px;
    margin: 28px auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.game-launcher-card {
    background: linear-gradient(180deg, #FFF3D6 0%, #FFE2E6 100%);
    border-radius: 30px;
    border: 4px solid var(--cartoon-outline);
    box-shadow: 0 10px 0 var(--cartoon-outline);
    padding: clamp(24px, 5vw, 48px);
    text-align: center;
}

.cartoon-badge {
    display: inline-block;
    background: var(--snor-yellow);
    color: var(--cartoon-outline);
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 6px 18px;
    border-radius: 50px;
    border: 3px solid var(--cartoon-outline);
    box-shadow: 0 3px 0 var(--cartoon-outline);
    margin-bottom: 14px;
}

.launcher-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 18px;
}

.launcher-logos img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    padding: 4px;
    border: 4px solid var(--cartoon-outline);
    box-shadow: 0 6px 0 rgba(44, 30, 24, 0.2);
}

.game-launcher-card h1 {
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.1;
    color: var(--snor-orange);
    text-shadow: 2px 2px 0 var(--cartoon-outline), -1px -1px 0 var(--cartoon-outline), 1px -1px 0 var(--cartoon-outline), -1px 1px 0 var(--cartoon-outline);
    margin-bottom: 14px;
}

.game-launcher-card p {
    max-width: 640px;
    margin: 0 auto 26px;
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 600;
    color: #4A372F;
}

.btn-start-big {
    background: var(--snor-green);
    color: #fff;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    padding: 16px 38px;
    box-shadow: 0 7px 0 var(--cartoon-outline);
    text-shadow: 1px 2px 0 var(--cartoon-outline);
}

/* ==========================================
   CARTOON GAME OVERLAY & STRAKKE BOVENBALK
   ========================================== */
#game-modal {
    position: fixed;
    inset: 0;
    background: #59B5F7;
    z-index: 5000;
    display: none;
    flex-direction: column;
}

#game-modal.active { display: flex; }

.cartoon-topbar {
    background: var(--snor-orange);
    border-bottom: 4px solid var(--cartoon-outline);
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-shrink: 0;
    z-index: 50;
}

.topbar-left {
    display: flex;
    align-items: center;
}

.topbar-title {
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
    font-size: clamp(1.2rem, 3.5vw, 1.5rem);
    color: #fff;
    text-shadow: 2px 2px 0 var(--cartoon-outline);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    line-height: 1;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.btn-top-small {
    padding: 7px 12px;
    font-size: 0.86rem;
    color: #fff;
    box-shadow: 0 4px 0 var(--cartoon-outline);
    white-space: nowrap;
}

.btn-top-small.sound { background: var(--snor-yellow); color: var(--cartoon-outline); }
.btn-top-small.map { background: var(--snor-blue); }
.btn-top-small.close { background: var(--snor-pink); }

.cartoon-viewport {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(circle at center, #8CE063 0%, #5CB838 100%);
}

.game-screen {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.game-screen.active { display: flex; }

.cartoon-card {
    background: #FFFDF9;
    border: 4px solid var(--cartoon-outline);
    border-radius: 32px;
    box-shadow: 0 12px 0 var(--cartoon-outline), 0 20px 40px rgba(0,0,0,0.25);
    max-width: 650px;
    width: 100%;
    padding: clamp(16px, 3vw, 28px);
    text-align: center;
    position: relative;
    animation: cardPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cardPop {
    0% { transform: scale(0.85); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.cartoon-card h2 {
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
    font-size: clamp(1.4rem, 3.8vw, 2.1rem);
    color: var(--snor-orange);
    line-height: 1.15;
    margin-bottom: 10px;
}

.cartoon-card p {
    font-size: clamp(0.92rem, 2.1vw, 1.08rem);
    line-height: 1.5;
    color: #4A372F;
    font-weight: 600;
    margin-bottom: 12px;
}

.date-ribbon {
    background: var(--snor-yellow);
    border: 3px solid var(--cartoon-outline);
    border-radius: 18px;
    padding: 10px 14px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: clamp(0.88rem, 2vw, 1.05rem);
    color: var(--cartoon-outline);
    box-shadow: 0 4px 0 var(--cartoon-outline);
    margin: 12px 0 18px;
}

.card-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
}

.card-logos img {
    width: 68px;
    height: 68px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    border: 3.5px solid var(--cartoon-outline);
    padding: 3px;
}

/* Perfect gecentreerde knoppen-kolom voor Finale, Uitleg en Win-popups! */
.centered-btn-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.btn-action {
    font-size: clamp(0.92rem, 2.2vw, 1.08rem);
    padding: 12px 22px;
    color: #fff;
    box-shadow: 0 6px 0 var(--cartoon-outline);
    margin: 0 auto;
    width: 100%;
    max-width: 340px;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
    text-shadow: 1px 1px 0 var(--cartoon-outline);
}

.btn-action.green { background: var(--snor-green); }
.btn-action.orange { background: var(--snor-orange); }
.btn-action.pink { background: var(--snor-pink); }
.btn-action.blue { background: var(--snor-blue); }

/* --- GELUID & OPTIES MODAL + BRIEFING MODAL --- */
#level-briefing-modal,
#options-modal {
    position: absolute;
    inset: 0;
    background: rgba(44, 30, 24, 0.78);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 14px;
}

#level-briefing-modal.active,
#options-modal.active { display: flex; }

.briefing-card {
    max-width: 520px;
    max-height: 82vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-row {
    background: #FFF3D6;
    border: 3px solid var(--cartoon-outline);
    border-radius: 18px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 1rem;
}

.btn-toggle {
    background: var(--snor-green);
    color: #fff;
    padding: 6px 18px;
    font-size: 0.9rem;
    box-shadow: 0 3px 0 var(--cartoon-outline);
}

.btn-toggle.off {
    background: var(--snor-pink);
}

.briefing-icon-circle {
    width: 62px;
    height: 62px;
    background: var(--snor-orange);
    border: 4px solid var(--cartoon-outline);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 8px;
    box-shadow: 0 4px 0 var(--cartoon-outline);
}

.story-box, .howto-box {
    border: 3px solid var(--cartoon-outline);
    border-radius: 16px;
    padding: 10px 14px;
    text-align: left;
    margin-bottom: 10px;
}

.story-box { background: #FFF5E4; }
.howto-box { background: #E8F8EE; margin-bottom: 14px; }

.story-box strong {
    display: block;
    font-family: 'Fredoka', sans-serif;
    color: var(--snor-pink);
    font-size: 0.92rem;
    margin-bottom: 3px;
}

.howto-box strong {
    display: block;
    font-family: 'Fredoka', sans-serif;
    color: var(--snor-green-dark);
    font-size: 0.92rem;
    margin-bottom: 3px;
}

.story-box p, .howto-box p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.4;
}

/* --- DE CARTOON PLATTEGROND VAN CLINGE --- */
#screen-map {
    padding: 0;
    justify-content: space-between;
}

.map-frame {
    position: relative;
    width: min(96vw, 1020px);
    aspect-ratio: 16 / 10;
    max-height: calc(100vh - 155px);
    margin: auto;
    border: 5px solid var(--cartoon-outline);
    border-radius: 28px;
    box-shadow: 0 10px 0 var(--cartoon-outline), 0 20px 40px rgba(0,0,0,0.3);
    overflow: hidden;
    background: #77CC4E;
}

.clinge-svg-map {
    width: 100%;
    height: 100%;
    display: block;
}

.cartoon-pin {
    position: absolute;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: pinFloat 1.6s infinite ease-in-out alternate;
}

.cartoon-pin:hover .pin-bubble { transform: scale(1.1); }

.pin-bubble {
    width: clamp(44px, 5.8vw, 58px);
    height: clamp(44px, 5.8vw, 58px);
    background: var(--snor-pink);
    border: 3.5px solid var(--cartoon-outline);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.25rem, 2.4vw, 1.7rem);
    box-shadow: 0 5px 0 var(--cartoon-outline);
    position: relative;
}

.pin-badge-alert {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 23px;
    height: 23px;
    background: var(--snor-yellow);
    border: 2.5px solid var(--cartoon-outline);
    border-radius: 50%;
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--cartoon-outline);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pin-title {
    margin-top: 4px;
    background: var(--snor-white);
    border: 2.5px solid var(--cartoon-outline);
    border-radius: 12px;
    padding: 2px 8px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: clamp(0.7rem, 1.3vw, 0.85rem);
    color: var(--cartoon-outline);
    white-space: nowrap;
    box-shadow: 0 3px 0 var(--cartoon-outline);
}

.cartoon-pin.completed { animation: none; }
.cartoon-pin.completed .pin-bubble { background: var(--snor-green); }
.cartoon-pin.completed .pin-badge-alert { background: #FFF; }

/* EASTER EGG STRAATNAAMBORDJE 'TRAGEL' RECHTSONDER OP DE KAART */
.easter-egg-sign {
    position: absolute;
    transform: translate(-50%, -50%);
    background: #1E4D92;
    color: #FFFFFF;
    border: 2.5px solid #FFFFFF;
    outline: 2.5px solid var(--cartoon-outline);
    border-radius: 8px;
    padding: 4px 12px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: clamp(0.72rem, 1.4vw, 0.88rem);
    cursor: pointer;
    z-index: 22;
    white-space: nowrap;
    box-shadow: 0 4px 0 var(--cartoon-outline);
    transition: transform 0.15s ease, background 0.2s ease;
}

.easter-egg-sign:hover {
    transform: translate(-50%, -54%) scale(1.07);
    background: #2864bd;
}

.easter-egg-sign.completed {
    background: var(--snor-green);
}

@keyframes pinFloat {
    0% { transform: translate(-50%, -50%); }
    100% { transform: translate(-50%, -60%); }
}

/* --- ONDERBALK OP DE KAART MET ROUTE-VOORTGANG --- */
.map-bottom-bar {
    width: 100%;
    background: #FFF3D6;
    border-top: 4px solid var(--cartoon-outline);
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 30;
}

.map-progress-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 680px;
}

.route-progress-box {
    flex: 1;
    background: #FFFFFF;
    border: 2.5px solid var(--cartoon-outline);
    border-radius: 50px;
    padding: 5px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 3px 0 var(--cartoon-outline);
}

.route-progress-label {
    font-family: 'Fredoka', sans-serif;
    font-size: 0.82rem;
    color: var(--cartoon-outline);
    white-space: nowrap;
}

.route-progress-track {
    flex: 1;
    height: 12px;
    background: #EFE6D8;
    border: 2px solid var(--cartoon-outline);
    border-radius: 20px;
    overflow: hidden;
    min-width: 60px;
}

.route-progress-fill {
    height: 100%;
    background: var(--snor-green);
    transition: width 0.4s ease;
}

.map-pills-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

.quick-pill {
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 6px 11px;
    background: var(--snor-white);
    color: var(--cartoon-outline);
    border: 2.5px solid var(--cartoon-outline);
    border-radius: 50px;
    box-shadow: 0 3px 0 var(--cartoon-outline);
    cursor: pointer;
    white-space: nowrap;
}

.quick-pill.done {
    background: var(--snor-green);
    color: #fff;
}

.pulse-gold {
    animation: pulseGold 1.1s infinite alternate ease-in-out;
}

@keyframes pulseGold {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

/* --- GROTE FINALE OPTOCHT STOET SCHERM --- */
.finale-card {
    background: linear-gradient(180deg, #FFFDF9 0%, #FFF3D6 100%);
    border-color: var(--cartoon-outline);
}

.trophy-bounce {
    font-size: 3.6rem;
    line-height: 1;
    margin-bottom: 6px;
    animation: trophyJump 0.9s infinite alternate ease-in-out;
}

@keyframes trophyJump {
    0% { transform: translateY(0) scale(1) rotate(-5deg); }
    100% { transform: translateY(-8px) scale(1.1) rotate(5deg); }
}

.parade-stage {
    width: 100%;
    background: #78CD4F;
    border: 4px solid var(--cartoon-outline);
    border-radius: 22px;
    overflow: hidden;
    margin: 12px 0;
    box-shadow: inset 0 4px 0 rgba(0,0,0,0.12);
}

.parade-train {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 2.2rem;
    padding: 14px 0;
    white-space: nowrap;
    width: max-content;
    animation: paradeMove 8s linear infinite;
}

@keyframes paradeMove {
    0% { transform: translateX(10%); }
    100% { transform: translateX(-50%); }
}

.parade-road-label {
    background: #6E665E;
    color: var(--snor-yellow);
    border-top: 3px solid var(--cartoon-outline);
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 6px;
    letter-spacing: 0.5px;
}

/* ===================================================
   MINI-GAME ALGEMENE OPBOUW
   =================================================== */
.minigame-wrapper {
    background: #FFFDF9;
    border: 4px solid var(--cartoon-outline);
    border-radius: 26px;
    box-shadow: 0 10px 0 var(--cartoon-outline);
    padding: 12px 14px;
    max-width: 520px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}

.minigame-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.minigame-header h3 {
    font-family: 'Baloo 2', cursive;
    font-size: clamp(1.1rem, 3vw, 1.35rem);
    color: var(--snor-orange);
    line-height: 1.1;
}

.minigame-header-btns { display: flex; gap: 6px; }

.btn-mini {
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 5px 10px;
    border: 2.5px solid var(--cartoon-outline);
    border-radius: 20px;
    background: #FFF3D6;
    color: var(--cartoon-outline);
    box-shadow: 0 3px 0 var(--cartoon-outline);
    cursor: pointer;
}

.game-result-overlay {
    position: absolute;
    inset: 0;
    background: rgba(44, 30, 24, 0.88);
    border-radius: 22px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px;
    text-align: center;
    z-index: 40;
}

.game-result-overlay.active { display: flex; }

.overlay-card {
    background: linear-gradient(180deg, #FFFDF9 0%, #FFF5E4 100%);
    border: 4px solid var(--cartoon-outline);
    border-radius: 24px;
    padding: 20px;
    max-width: 390px;
    width: 100%;
    box-shadow: 0 10px 0 var(--cartoon-outline);
    animation: cardPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.overlay-card h3 {
    font-family: 'Baloo 2', cursive;
    font-size: 1.7rem;
    color: var(--snor-green-dark);
    margin-bottom: 6px;
}

.overlay-card p {
    font-size: 0.95rem;
    font-weight: 600;
    color: #4A372F;
    margin-bottom: 14px;
}

/* --- LEVEL 1: MOLENSTRAAT TETRIS --- */
.molenstraat-road {
    width: 100%;
    background: #7A7067;
    border: 3px solid var(--cartoon-outline);
    border-radius: 16px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.road-label {
    font-family: 'Fredoka', sans-serif;
    font-size: 0.78rem;
    color: #FFF;
    background: #1E4D92;
    padding: 3px 8px;
    border-radius: 6px;
    border: 2px solid #FFF;
}

.cars-slots { display: flex; gap: 6px; align-items: center; }

.car-slot {
    width: 34px;
    height: 30px;
    background: rgba(255,255,255,0.18);
    border: 2px dashed #FFF3D6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.car-slot.blocking {
    background: #FF6B6B;
    border: 2px solid var(--cartoon-outline);
    transform: rotate(-10deg);
}

.car-slot.blocking:nth-child(even) { transform: rotate(10deg); }

.car-slot.cleared {
    background: var(--snor-green);
    border: 2px solid var(--cartoon-outline);
    transform: rotate(0deg);
}

.tetris-play-area {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

#tetris-canvas {
    background: #2B2338;
    border: 4px solid var(--cartoon-outline);
    border-radius: 14px;
    box-shadow: 0 5px 0 var(--cartoon-outline);
    height: min(45vh, 340px);
    width: auto;
    aspect-ratio: 10 / 16;
    display: block;
}

.tetris-side-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.side-box {
    background: #FFF3D6;
    border: 3px solid var(--cartoon-outline);
    border-radius: 14px;
    padding: 6px 8px;
    text-align: center;
    width: 82px;
    box-shadow: 0 4px 0 var(--cartoon-outline);
}

.side-box-label {
    font-family: 'Fredoka', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 4px;
    display: block;
}

#next-canvas {
    background: #2B2338;
    border: 2.5px solid var(--cartoon-outline);
    border-radius: 8px;
    width: 60px;
    height: 60px;
    display: block;
    margin: 0 auto;
}

.cars-counter-num {
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--snor-green-dark);
}

.tetris-controls {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    width: 100%;
}

.btn-ctrl {
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 10px 4px;
    border: 3px solid var(--cartoon-outline);
    border-radius: 14px;
    background: var(--snor-yellow);
    color: var(--cartoon-outline);
    box-shadow: 0 4px 0 var(--cartoon-outline);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.btn-ctrl span { font-size: 0.68rem; margin-top: 3px; }
.btn-ctrl.rotate { background: var(--snor-blue); color: #fff; }
.btn-ctrl.drop { background: var(--snor-orange); color: #fff; }

/* --- LEVEL 2: BEATRIXSTRAAT MEMORY --- */
.school-status-bar {
    width: 100%;
    background: #2E5A36;
    border: 3.5px solid var(--cartoon-outline);
    border-radius: 16px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
}

.school-status-label {
    font-family: 'Fredoka', sans-serif;
    font-size: 0.82rem;
    color: var(--snor-yellow);
}

.kids-slots { display: flex; gap: 5px; }

.kid-slot {
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.15);
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.kid-slot.free { background: var(--snor-green); transform: scale(1.1); }

.memory-board {
    width: 100%;
    background: #23472B;
    border: 5px solid #8B5A2B;
    outline: 3px solid var(--cartoon-outline);
    border-radius: 18px;
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.memory-card {
    aspect-ratio: 3 / 3.4;
    border: 3px solid var(--cartoon-outline);
    border-radius: 14px;
    background: var(--snor-orange);
    box-shadow: 0 4px 0 var(--cartoon-outline);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.memory-card.flipped { background: #FFFDF9; cursor: default; }
.memory-card.matched {
    background: #DDF8E5;
    border-color: var(--snor-green-dark);
    cursor: default;
}

.card-back-content {
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: #FFF;
    text-shadow: 2px 2px 0 var(--cartoon-outline);
}

.card-front-content {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.memory-card.flipped .card-back-content,
.memory-card.matched .card-back-content { display: none; }

.memory-card.flipped .card-front-content,
.memory-card.matched .card-front-content { display: flex; }

.card-emoji { font-size: clamp(1.6rem, 4.5vw, 2.2rem); }
.card-name {
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: clamp(0.62rem, 1.8vw, 0.76rem);
    color: var(--cartoon-outline);
}

/* --- LEVEL 3: BAKKERIJ VAN MEIJEL SORTEERSPEL --- */
.bakery-status-bar {
    width: 100%;
    background: #FFF3D6;
    border: 3px solid var(--cartoon-outline);
    border-radius: 16px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
}

.bakery-lives {
    color: var(--snor-pink);
    font-size: 1rem;
}

#bakery-canvas {
    width: 100%;
    max-width: 470px;
    height: auto;
    aspect-ratio: 16 / 9;
    background: #FFF8EE;
    border: 4px solid var(--cartoon-outline);
    border-radius: 18px;
    box-shadow: 0 5px 0 var(--cartoon-outline);
    display: block;
}

.bakery-baskets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
    margin-top: 4px;
}

.btn-basket {
    font-family: 'Fredoka', sans-serif;
    border: 3.5px solid var(--cartoon-outline);
    border-radius: 18px;
    padding: 10px 6px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: 0 5px 0 var(--cartoon-outline);
    transition: transform 0.1s;
}

.btn-basket:active {
    transform: translateY(4px);
    box-shadow: 0 1px 0 var(--cartoon-outline);
}

.btn-basket.bread { background: #FFE0A3; }
.btn-basket.sweet { background: #FFD1DC; }
.btn-basket.cookie { background: #D4F0FF; }

.basket-title {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--cartoon-outline);
}

.basket-icons {
    font-size: 1.25rem;
    background: rgba(255,255,255,0.75);
    padding: 3px 8px;
    border-radius: 12px;
    border: 2px solid var(--cartoon-outline);
}

/* --- SOCIAL SHARE & CONTACT --- */
.share-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
}

.btn-share {
    font-size: 0.95rem;
    padding: 11px 20px;
    color: #fff;
    box-shadow: 0 4px 0 var(--cartoon-outline);
}

.btn-share.wa { background: #25D366; color: var(--cartoon-outline); }
.btn-share.fb { background: #1877F2; }
.btn-share.cp { background: var(--snor-orange); color: var(--cartoon-outline); }

.contact-section {
    background: var(--snor-white);
    border-radius: 30px;
    border: 4px solid var(--cartoon-outline);
    box-shadow: 0 8px 0 var(--cartoon-outline);
    padding: clamp(24px, 5vw, 40px);
    margin-bottom: 30px;
}

.contact-section h2 {
    font-family: 'Baloo 2', cursive;
    font-size: 2rem;
    color: var(--snor-pink);
    margin-bottom: 6px;
}

.contact-section p {
    color: #5C4940;
    font-weight: 500;
    margin-bottom: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-group.full-width { grid-column: 1 / -1; }
label { font-weight: 700; font-size: 0.95rem; }

input, textarea {
    font-family: inherit;
    font-size: 1rem;
    padding: 12px 16px;
    border: 3px solid var(--cartoon-outline);
    border-radius: 14px;
    background: #FFFDF9;
}

.hp-field { display: none; }

.btn-submit {
    background: var(--snor-pink);
    color: var(--snor-white);
    font-size: 1.1rem;
    padding: 12px 30px;
    box-shadow: 0 5px 0 var(--cartoon-outline);
}

#form-status {
    margin-top: 16px;
    font-weight: 700;
    display: none;
    padding: 12px 16px;
    border-radius: 14px;
    border: 2.5px solid var(--cartoon-outline);
}

.status-success { background: #dff8e5; color: #15622c; }
.status-error { background: #fdeaea; color: #9c2020; }

footer {
    text-align: center;
    padding: 20px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #6E5B53;
}

@media (max-width: 768px) {
    .form-grid { grid-template-columns: 1fr; gap: 0; }
    .map-frame { aspect-ratio: 4 / 3.3; width: 96vw; }
}