/* ===== FOXY IN BEELD (okt 2026) =====
   Foxy op de spelpagina's: figuur in de hero, "Foxy's galerij" met levende schilderijen
   (de promo-reels in een vergulde lijst), een proefquiz waarin Foxy reageert, en Foxy bij
   de FAQ en de slotknop. Eerste proef: enkel /quiz (NL). Alles zelf gehost.
   Beweging enkel met opacity/transform/scale/rotate (geen verspringende lay-out) en niets bij
   'minder beweging'. */

/* ---------- Tekstballon ---------- */
.fx-bubble {
    position: relative;
    margin: 0;
    background: #fff8ea;
    color: #2b1d12;
    border-radius: 18px;
    padding: 11px 16px 12px;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.45;
    text-align: left;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.fx-bubble__who {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1px;
}
.fx-bubble::after { content: ''; position: absolute; width: 0; height: 0; border-style: solid; }
/* staartje naar links: de figuur staat links van de ballon */
.fx-bubble--left::after { left: -11px; top: 50%; margin-top: -9px; border-width: 9px 12px 9px 0; border-color: transparent #fff8ea transparent transparent; }
/* staartje naar rechts */
.fx-bubble--right::after { right: -11px; top: 50%; margin-top: -9px; border-width: 9px 0 9px 12px; border-color: transparent transparent transparent #fff8ea; }
/* staartje naar beneden: de figuur staat eronder */
.fx-bubble--down::after { bottom: -11px; right: 46px; border-width: 12px 10px 0; border-color: #fff8ea transparent transparent; }

@keyframes fx-pop { 0% { opacity: 0; scale: 0.82; } 70% { opacity: 1; scale: 1.04; } 100% { opacity: 1; scale: 1; } }
@keyframes fx-sway { 0%, 100% { rotate: -1.2deg; } 50% { rotate: 1.2deg; } }
@keyframes fx-glow { 0%, 100% { opacity: 0.85; } 50% { opacity: 1; } }

/* ---------- Foxy in de hero ---------- */
.quiz-hero__inner, .fx-hero-host { position: relative; } /* fx-hero-host: hero-container van andere spelpagina's */
.hero-foxy {
    display: flex;
    flex-direction: row-reverse; /* in de HTML staat de ballon eerst; op een smal scherm staat Foxy links */
    align-items: flex-end;
    justify-content: center;
    gap: 14px;
    max-width: 440px;
    margin: -10px auto 26px;
}
.hero-foxy__fig { position: relative; flex: 0 0 auto; width: 96px; }
.hero-foxy__fig::after { /* lichtvlek op de vloer */
    content: '';
    position: absolute;
    left: 6%; right: 6%; bottom: -8px;
    height: 18px;
    background: radial-gradient(ellipse at center, rgba(255, 190, 110, 0.38), transparent 70%);
    z-index: -1;
}
.hero-foxy__img {
    display: block;
    width: 100%;
    height: auto;
    transform-origin: 50% 100%;
    filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.45));
}
.hero-foxy .fx-bubble { flex: 1 1 auto; margin-bottom: 30px; font-size: 0.92rem; }

@media (min-width: 1000px) {
    .hero-foxy {
        position: absolute;
        right: 24px; /* = binnenrand van .container (absoluut telt vanaf de padding-rand) */
        bottom: 0;
        width: 250px;
        max-width: none;
        margin: 0;
        flex-direction: column;
        align-items: flex-end;
        gap: 6px;
    }
    .hero-foxy .fx-bubble { margin: 0 0 6px; max-width: 240px; font-size: 0.95rem; }
    .hero-foxy .fx-bubble::after { /* staartje naar beneden, naar Foxy's kop */
        left: auto; top: auto; margin-top: 0;
        bottom: -11px; right: 92px;
        border-width: 12px 10px 0;
        border-color: #fff8ea transparent transparent;
    }
    .hero-foxy__fig { width: 196px; margin-right: 18px; }
    .hero-foxy__img { transform: scaleX(-1); } /* gespiegeld: zijn arm wijst naar de titel */
    .hero-foxy__fig::before { /* spotlicht van boven */
        content: '';
        position: absolute;
        left: 50%; bottom: -6px;
        width: 340px; height: 640px;
        translate: -50% 0;
        background: linear-gradient(to bottom, rgba(255, 220, 160, 0) 0%, rgba(255, 214, 150, 0.07) 55%, rgba(255, 210, 140, 0.15) 100%);
        clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
        pointer-events: none;
        z-index: -1;
    }
}
@media (min-width: 1000px) and (max-width: 1159px) {
    .hero-foxy { width: 190px; }
    .hero-foxy .fx-bubble { max-width: 186px; font-size: 0.88rem; }
    .hero-foxy__fig { width: 150px; margin-right: 8px; }
    .hero-foxy .fx-bubble::after { right: 70px; }
}
@media (min-width: 1000px) and (max-width: 1099px) { /* intro iets smaller: anders valt de ballon over het einde van de regels (Act, Hunt EN/FR, Quiz FR/ES) */
    .hero p:has(~ .hero-foxy), section:has(.hero-foxy) .quiz-hero__text { max-width: 560px !important; }
}
@media (min-width: 1440px) { /* breed scherm: Foxy mag in de marge naast de container staan */
    .hero-foxy { right: -40px; width: 300px; }
    .hero-foxy .fx-bubble { max-width: 252px; }
    .hero-foxy .fx-bubble::after { right: 108px; }
    .hero-foxy__fig { width: 236px; margin-right: 22px; }
    .hero-foxy__fig::before { width: 400px; }
}
@media (min-width: 1440px) { /* Quiz: Foxy niet groter dan op 1280, anders schuift de ballon tot over de lange ondertitel (FR, UA) */
    .quiz-hero .hero-foxy__fig { width: 196px; }
}
@media (prefers-reduced-motion: no-preference) {
    .hero-foxy .fx-bubble { animation: fx-pop 0.5s cubic-bezier(.2, .75, .2, 1.2) 0.5s both; }
    .hero-foxy__img { animation: fx-sway 4.5s ease-in-out 1.2s infinite; }
}

/* ---------- 19 rondes: op een gsm een veegrij in plaats van een lange lijst ----------
   Alle kaartjes blijven in de HTML (Google ziet ze allemaal); enkel de schikking verandert:
   twee rijen naast elkaar, horizontaal vegen, het volgende kaartje piept rechts binnen. */
.rounds__veeg { display: none; }
@media (max-width: 760px) {
    .rounds__grid {
        grid-template-columns: none;
        grid-template-rows: repeat(2, auto);
        grid-auto-flow: column;
        grid-auto-columns: 44%;
        gap: 46px 12px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 24px;
        margin: 0 -24px;
        padding: 28px 24px 10px;
        scrollbar-width: none;
    }
    .rounds__grid::-webkit-scrollbar { display: none; }
    .rounds__grid .round-card { scroll-snap-align: start; }
    .rounds__grid .round-card.rv { opacity: 1; transform: none; } /* niet laten inschuiven: kaartjes buiten beeld blijven anders onzichtbaar */
    .rounds__veeg {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin: 14px 0 0;
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--text-secondary);
    }
    .rounds__veeg svg { width: 18px; height: 18px; color: var(--primary); }
}
@media (max-width: 480px) {
    .rounds__grid { margin: 0 -16px; padding-inline: 16px; scroll-padding-inline: 16px; grid-auto-columns: 46%; }
}
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
    .rounds__veeg svg { animation: fx-nudge 1.6s ease-in-out infinite; }
}
@keyframes fx-nudge { 0%, 100% { translate: 0 0; } 50% { translate: 5px 0; } }

/* ---------- Foxy's galerij ---------- */
.galerij {
    position: relative;
    padding: 96px 0 0;
    overflow: hidden;
    background-color: #22122a;
    background-image:
        linear-gradient(var(--bg), rgba(13, 13, 26, 0) 70px),
        radial-gradient(ellipse 70% 45% at 50% 0%, rgba(255, 190, 120, 0.07), transparent 70%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='132' viewBox='0 0 88 132'%3E%3Cdefs%3E%3Cpath id='m' d='M0-30C6-20 16-14 16 0S6 20 0 30C-6 20-16 14-16 0S-6-20 0-30ZM0-14C3-9 7-5 7 0S3 9 0 14C-3 9-7 5-7 0S-3-9 0-14Z' fill-rule='evenodd'/%3E%3C/defs%3E%3Cg fill='%23ffffff' fill-opacity='.022'%3E%3Cuse href='%23m' x='44' y='36'/%3E%3Cuse href='%23m' x='0' y='102'/%3E%3Cuse href='%23m' x='88' y='102'/%3E%3Cuse href='%23m' x='0' y='-30'/%3E%3Cuse href='%23m' x='88' y='-30'/%3E%3Ccircle cx='44' cy='102' r='3'/%3E%3Ccircle cx='0' cy='36' r='3'/%3E%3Ccircle cx='88' cy='36' r='3'/%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(#2c1733, #22122a 70%);
}
.galerij::after { /* lambrisering met stoelrail */
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 112px;
    background: linear-gradient(#170b1c, #110814);
    border-top: 7px solid #3d2344;
    box-shadow: 0 -1px 0 rgba(255, 220, 170, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    pointer-events: none;
}
.galerij .section-header { position: relative; z-index: 1; margin-bottom: 2.2rem; }
.galerij .section-header p { color: #c9bcd6; }
.galerij .section-tag { background: rgba(232, 191, 94, 0.14); color: #f2cf72; border-color: rgba(242, 207, 114, 0.3); }

.galerij__muur {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(48px, 9vw, 130px);
}

.schilderij {
    position: relative;
    margin: 0;
    padding-top: 44px;
    width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.schilderij:nth-child(2) { margin-top: 34px; } /* niet strak naast elkaar: hangt als in een echte zaal */

/* schilderijlampje boven de lijst */
.schilderij__lamp {
    position: absolute;
    top: 0;
    left: 50%;
    width: 42%;
    height: 12px;
    translate: -50% 0;
    border-radius: 6px 6px 10px 10px;
    background: linear-gradient(#f7dc8f, #b8862b 55%, #6b4a14);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
    z-index: 4;
}
.schilderij__lamp::before { /* armpje naar de lijst */
    content: '';
    position: absolute;
    left: 50%; top: 10px;
    width: 6px; height: 36px;
    translate: -50% 0;
    background: linear-gradient(90deg, #6b4a14, #d9b25a, #6b4a14);
}
.schilderij__lamp::after { /* licht op het doek */
    content: '';
    position: absolute;
    left: 50%; top: 9px;
    width: 280%; height: 360px;
    translate: -50% 0;
    background: radial-gradient(ellipse 50% 62% at 50% 0%, rgba(255, 214, 150, 0.30), rgba(255, 214, 150, 0.08) 55%, transparent 76%);
    mix-blend-mode: screen;
    pointer-events: none;
    transition: opacity 0.4s;
    opacity: 0.85;
}
.schilderij:hover .schilderij__lamp::after, .schilderij.is-film .schilderij__lamp::after { opacity: 1; }

/* de vergulde lijst (9-slice) */
.schilderij__lijst {
    position: relative;
    z-index: 1;
    width: 100%;
    border: 26px solid #b98629;
    border-image: url('/img/galerij/lijst-goud.svg') 36 round;
    background: #0d0d1a;
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.6), 0 6px 12px rgba(0, 0, 0, 0.4);
    transition: translate 0.3s ease, box-shadow 0.3s ease;
}
.schilderij:hover .schilderij__lijst { translate: 0 -3px; box-shadow: 0 30px 54px rgba(0, 0, 0, 0.62), 0 8px 14px rgba(0, 0, 0, 0.4); }

.schilderij__doek {
    position: relative;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    background: #0d0d1a;
}
.schilderij__doek > img,
.schilderij__doek > video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.schilderij__levend { opacity: 0; transition: opacity 0.5s; z-index: 1; }
.schilderij.is-levend .schilderij__levend { opacity: 1; }
.schilderij__film { opacity: 0; z-index: 4; background: #0d0d1a; }
.schilderij.is-film .schilderij__film { opacity: 1; }
.schilderij.is-film .schilderij__levend { opacity: 0; }

/* doekstructuur + vernis + schaduw van de lijst op het doek */
.schilderij__doek::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .45 0 0 0 0 .4 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
    opacity: 0.5;
    transition: opacity 0.4s;
}
.schilderij__doek::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, 0.04) 100%);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.7), inset 0 12px 18px -6px rgba(0, 0, 0, 0.7), inset 0 -6px 12px -6px rgba(0, 0, 0, 0.5);
    transition: opacity 0.4s;
}
.schilderij.is-film .schilderij__doek::before,
.schilderij.is-film .schilderij__doek::after { opacity: 0; }

/* afspeelknop */
.schilderij__speel {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 0 13%;
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    cursor: pointer;
}
.schilderij__knop {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 35% 30%, #fff1c4, #e2b04a 45%, #8a5f19);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55), inset 0 0 0 3px rgba(255, 255, 255, 0.35), 0 0 0 6px rgba(13, 13, 26, 0.35);
    transition: scale 0.2s ease;
}
.schilderij__knop svg { width: 26px; height: 26px; margin-left: 4px; fill: #2b1d12; }
.schilderij__label {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(13, 13, 26, 0.8);
    letter-spacing: 0.02em;
}
.schilderij__speel:hover .schilderij__knop,
.schilderij__speel:focus-visible .schilderij__knop { scale: 1.09; }
.schilderij__speel:focus-visible { outline: 3px solid var(--primary); outline-offset: -3px; }
.schilderij.is-film .schilderij__speel { display: none; }
@media (prefers-reduced-motion: no-preference) {
    .schilderij__knop { animation: fx-glow 2.4s ease-in-out infinite; }
}

/* na afloop */
.schilderij__einde {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: rgba(13, 13, 26, 0.8);
}
.schilderij__einde[hidden] { display: none; }
.schilderij__einde .btn { padding: 11px 20px; font-size: 0.9rem; width: 100%; max-width: 190px; justify-content: center; }
.schilderij__einde .btn--ghost { color: #fff; background: rgba(13, 13, 26, 0.7); border-color: rgba(255, 255, 255, 0.55); }

/* museumbordje */
.bordje {
    position: relative;
    margin-top: 26px;
    width: min(100%, 272px);
    padding: 14px 18px 15px;
    border-radius: 3px;
    background:
        radial-gradient(circle at 9px 9px, #8f8676 0 1.6px, transparent 2.2px),
        radial-gradient(circle at calc(100% - 9px) 9px, #8f8676 0 1.6px, transparent 2.2px),
        linear-gradient(#f7f2e7, #ece4d3);
    color: #2a241c;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    line-height: 1.5;
    text-align: left;
}
.bordje__titel {
    display: block;
    margin-bottom: 2px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.08rem;
    font-style: italic;
    font-weight: 700;
    color: #1d1712;
    line-height: 1.25;
}
.bordje__meta, .bordje__techniek { display: block; color: #574d40; font-weight: 600; }
.bordje__techniek { font-weight: 400; font-style: italic; margin-bottom: 7px; }
.bordje__tekst { display: block; color: #2a241c; }

/* fluwelen koord */
.koord {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    max-width: 880px;
    height: 132px;
    margin: 34px auto 0;
    padding: 0 8px;
}
.koord__paal {
    position: relative;
    flex: 0 0 14px;
    height: 118px;
    margin-top: 6px;
    border-radius: 4px;
    background: linear-gradient(90deg, #6b4a14, #f2cf72 40%, #b8862b 70%, #6b4a14);
}
.koord__paal::before { /* bol */
    content: '';
    position: absolute;
    left: 50%; top: -12px;
    width: 24px; height: 24px;
    translate: -50% 0;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff1c4, #d9a94a 45%, #6b4a14);
}
.koord__paal::after { /* voet */
    content: '';
    position: absolute;
    left: 50%; bottom: -6px;
    width: 64px; height: 14px;
    translate: -50% 0;
    border-radius: 50%;
    background: radial-gradient(ellipse at 50% 30%, #e8bf5e, #8a5f19 70%);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.5);
}
.koord__touw { flex: 1 1 auto; height: 54px; margin: 2px -4px 0; overflow: visible; }
.koord__bordje {
    position: absolute;
    left: 50%;
    top: 40px;
    translate: -50% 0;
    margin: 0;
    padding: 6px 14px 7px;
    border-radius: 4px;
    background: linear-gradient(#f2cf72, #c3912f);
    color: #2b1d12;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}
.koord__bordje::before, .koord__bordje::after { /* haakjes aan het koord */
    content: '';
    position: absolute;
    top: -9px;
    width: 2px; height: 10px;
    background: #8a5f19;
}
.koord__bordje::before { left: 22%; }
.koord__bordje::after { right: 22%; }

@media (max-width: 760px) {
    .galerij { padding-top: 72px; }
    .galerij__muur { flex-direction: column; align-items: stretch; gap: 40px; }
    .schilderij { width: auto; flex-direction: row; align-items: flex-start; gap: 16px; padding-top: 36px; }
    .schilderij:nth-child(2) { margin-top: 0; flex-direction: row-reverse; }
    .schilderij__lijst { flex: 0 0 52%; width: 52%; border-width: 15px; }
    .schilderij__lamp { left: 26%; width: 24%; }
    .schilderij:nth-child(2) .schilderij__lamp { left: 74%; }
    .schilderij__lamp::before { height: 28px; }
    .schilderij__lamp::after { width: 330%; }
    .bordje { flex: 1 1 auto; width: auto; margin-top: 18px; padding: 12px 13px 13px; font-size: 0.78rem; }
    .bordje__titel { font-size: 1rem; }
    .schilderij__label { display: none; }
    .schilderij__knop { width: 54px; height: 54px; }
    .schilderij__knop svg { width: 22px; height: 22px; }
    .koord { height: 118px; margin-top: 26px; }
    .koord__paal { height: 104px; }
    .koord__bordje { top: 36px; font-size: 0.72rem; }
    .galerij::after { height: 98px; }
}
/* heel smal (320-370): bordje onder het schilderij, anders wordt het een smal torentje tekst */
@media (max-width: 370px) {
    .schilderij,
    .schilderij:nth-child(2) { flex-direction: column; align-items: center; gap: 0; }
    .schilderij__lijst { flex: 0 0 auto; width: 64%; }
    .schilderij__lamp,
    .schilderij:nth-child(2) .schilderij__lamp { left: 50%; width: 26%; }
    .bordje { width: min(100%, 300px); margin-top: 16px; }
}

/* ---------- Proefquiz ---------- */
.proefquiz {
    padding: 100px 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255, 107, 53, 0.07), transparent 70%),
        radial-gradient(ellipse 50% 50% at 15% 100%, rgba(139, 92, 246, 0.06), transparent 70%),
        var(--bg);
}
.pq {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 30px;
    align-items: end;
    max-width: 900px;
    margin: 0 auto;
}
.pq__foxy { display: flex; flex-direction: column; align-items: center; gap: 8px; align-self: stretch; justify-content: flex-end; }
.pq__foxy .fx-bubble { width: 100%; font-size: 0.92rem; min-height: 126px; } /* = langste zin; galerij.js meet het exact */
.pq__foxy .fx-bubble::after { bottom: -11px; right: auto; left: 50%; margin-left: -10px; border-width: 12px 10px 0; border-color: #fff8ea transparent transparent; }
.pq__img { width: 170px; height: auto; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.45)); transform-origin: 50% 100%; }
.pq__img.is-pop, .pq__foxy .fx-bubble.is-pop { animation: fx-pop 0.35s cubic-bezier(.2, .75, .2, 1.2); }

.pq__kaart {
    background: #1a1a2e;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 26px 28px 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.pq__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 0.85rem; color: var(--text-secondary); font-weight: 600; }
.pq__stippen { display: flex; gap: 6px; }
.pq__stip { width: 10px; height: 10px; border-radius: 50%; background: #2a2a45; }
.pq__stip.is-goed { background: #4caf50; }
.pq__stip.is-fout { background: #e53935; }
.pq__stip.is-nu { box-shadow: 0 0 0 2px var(--primary); }
.pq__score b, .pq__teller b { color: var(--text); }

.pq__vragen { list-style: none; margin: 0; padding: 0; }
.pq__vraag + .pq__vraag { margin-top: 26px; }
.js .pq .pq__vraag + .pq__vraag { margin-top: 0; }
.pq__vraag[hidden] { display: none; }
.pq__q { font-size: clamp(1.1rem, 2.4vw, 1.35rem); font-weight: 800; line-height: 1.35; margin: 0 0 16px; }
.pq__opties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pq__optie {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 2px solid transparent;
    background: #222b45;
    color: var(--text);
    font: inherit;
    font-weight: 600;
    font-size: 0.98rem;
    text-align: left;
    cursor: pointer;
    transition: translate 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.pq__optie:hover:not(:disabled) { translate: 0 -2px; border-color: rgba(255, 255, 255, 0.18); }
.pq__optie:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.pq__optie:disabled { cursor: default; }
.pq__letter {
    flex: 0 0 32px;
    height: 32px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 0.9rem;
    color: #fff;
}
.pq__optie:nth-child(1) .pq__letter { background: #2196f3; }
.pq__optie:nth-child(2) .pq__letter { background: #ff9800; }
.pq__optie:nth-child(3) .pq__letter { background: #4caf50; }
.pq__optie:nth-child(4) .pq__letter { background: #e91e63; }
.pq__optie.is-goed { border-color: #4caf50; background: rgba(76, 175, 80, 0.18); }
.pq__optie.is-fout { border-color: #e53935; background: rgba(229, 57, 53, 0.18); }
.pq__optie.is-weg { opacity: 0.45; }

.pq__verder { display: flex; justify-content: flex-end; margin-top: 18px; }
.pq__verder[hidden] { display: none; }
.pq__einde { text-align: center; padding: 6px 0 2px; }
.pq__einde[hidden] { display: none; }
/* Vaste hoogte (met JavaScript): alle vragen en het slotscherm liggen op dezelfde plek op elkaar,
   dus de hoogste bepaalt de kaart; verborgen = onzichtbaar maar telt mee. De knop houdt altijd zijn plaats. */
.js .pq .pq__stapel { display: grid; }
.js .pq .pq__vragen { display: grid; grid-area: 1 / 1; }
.js .pq .pq__vraag,
.js .pq .pq__einde { grid-area: 1 / 1; }
.js .pq .pq__einde { align-self: center; }
.js .pq .pq__vraag[hidden],
.js .pq .pq__einde[hidden] { display: block; visibility: hidden; }
.js .pq .pq__verder[hidden] { display: flex; visibility: hidden; }
.pq__eindscore { font-size: 3.2rem; font-weight: 900; line-height: 1; color: var(--primary); margin: 4px 0 6px; }
.pq__eindtekst { color: var(--text-secondary); margin: 0 0 20px; }
.pq__knoppen { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.pq__meer { margin: 18px 0 0; font-size: 0.9rem; color: var(--text-secondary); }
.pq__meer a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
/* zonder JavaScript staan de vragen onder elkaar en is er geen score */
html:not(.js) .pq__top, html:not(.js) .pq__verder { display: none; }
html:not(.js) .pq__vraag[hidden] { display: block; }

@media (max-width: 760px) {
    .pq { grid-template-columns: 1fr; gap: 14px; }
    .pq__foxy { flex-direction: row; align-items: flex-end; gap: 12px; }
    .pq__img { width: 92px; order: -1; }
    .pq__foxy .fx-bubble { margin-bottom: 26px; }
    .pq__foxy .fx-bubble::after { left: -11px; top: 50%; bottom: auto; margin: -9px 0 0; border-width: 9px 12px 9px 0; border-color: transparent #fff8ea transparent transparent; }
    .pq__kaart { padding: 20px 16px 22px; }
    .pq__opties { grid-template-columns: 1fr; }
    .pq__optie { min-height: 50px; }
}

/* ---------- Foxy bij de FAQ en bij de slotknop ---------- */
.fx-row { display: flex; align-items: flex-end; justify-content: center; gap: 12px; max-width: 520px; margin: -1.6rem auto 2.4rem; }
.fx-row img { flex: 0 0 auto; width: 96px; height: auto; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45)); }
.fx-row .fx-bubble { margin-bottom: 28px; }

.cta-foxy { display: flex; align-items: flex-end; justify-content: center; gap: 10px; margin: -12px auto 14px; }
.cta-foxy img { width: 104px; height: auto; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45)); }
.cta__box .cta-foxy .fx-bubble { margin: 0 0 44px; font-size: 1rem; color: #2b1d12; }
@media (prefers-reduced-motion: no-preference) {
    .cta-foxy img { transform-origin: 50% 100%; animation: fx-sway 4s ease-in-out infinite; }
}

/* ---------- Proefspelen: gedeelde onderdelen (kop, tijdbalk, knoppen, schermlezer, schudden) ---------- */
.flash__kop {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 18px;
    margin-bottom: 14px;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.92rem;
    font-variant-numeric: tabular-nums;
}
.flash__kop b { color: var(--text-primary); }
.flash__balk { height: 6px; margin: -4px 0 16px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.flash__balk i { display: block; height: 100%; background: linear-gradient(90deg, #ff6b35, #fbbf24); transform-origin: 0 50%; transform: scaleX(1); }
.flash__knoppen { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.flash__live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@keyframes flash-schud { 0%, 100% { translate: 0 0; } 20% { translate: -8px 0; } 40% { translate: 7px 0; } 60% { translate: -5px 0; } 80% { translate: 3px 0; } }
