/* Foxy in beeld, Hunt: laadt enkel op play/hunt (naast galerij.css). */
/* ---------- Hunt: Foxy's dossiers (okt 2026) ---------- */
/* hero: Foxy de speurneus in een spot die zacht flakkert */
.hero--speur .hero-foxy__fig { isolation: isolate; }
.hero--speur .hero-foxy__fig::before {
    content: '';
    position: absolute;
    z-index: -1;
    left: 50%;
    bottom: -8%;
    width: 280%;
    height: 200%;
    translate: -50% 0;
    background: radial-gradient(ellipse 42% 48% at 50% 58%, rgba(255, 214, 140, 0.26), rgba(255, 214, 140, 0.08) 58%, transparent 74%);
    pointer-events: none;
}

/* de vier modes: dossiermappen */
.dossiers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr; /* alle dossiers even hoog */
    gap: 40px 28px;
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 10px;
}
.dossier { position: relative; isolation: isolate; display: flex; flex-direction: column; margin: 0; padding-top: 28px; }
.dossier__tab {
    position: absolute;
    top: 0;
    left: 18px;
    padding: 7px 16px 12px;
    border-radius: 10px 10px 0 0;
    background: #d4b77a;
    color: #3b2c16;
    font: 800 0.76rem/1 ui-monospace, Consolas, monospace;
    letter-spacing: 0.14em;
}
.dossier__map {
    position: relative;
    flex: 1 1 auto;
    min-height: 218px;
    padding: 22px 132px 26px 22px;
    border-radius: 4px 14px 14px 14px;
    background: linear-gradient(170deg, #ecd9ab, #dcc28c);
    color: #2b2116;
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(80, 55, 20, 0.2);
}
.dossier__map::before { /* een vel papier dat uit de map steekt */
    content: '';
    position: absolute;
    z-index: -1;
    top: -9px;
    left: 30%;
    right: 18px;
    height: 34px;
    border-radius: 3px;
    background: #f6f1e6;
    rotate: -1.4deg;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.dossier h3 { margin: 0 0 8px; color: #2b2116; font-size: 1.06rem; font-weight: 800; }
.dossier p { margin: 0; color: #4a3b28; font-size: 0.93rem; line-height: 1.55; }
.dossier__foto {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 98px;
    padding: 7px 7px 20px;
    background: #fbf8f1;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
    rotate: 5deg;
}
.dossier:nth-child(2n) .dossier__foto { rotate: -4deg; }
.dossier__foto img { display: block; width: 100%; height: auto; aspect-ratio: 1; padding: 14px; background: radial-gradient(circle at 50% 40%, #2c2c46, #15151f); }
.dossier__foto::before { /* paperclip */
    content: '';
    position: absolute;
    top: -13px;
    left: 18px;
    width: 11px;
    height: 34px;
    border: 2.5px solid #a7afbd;
    border-radius: 8px;
}
.dossier__stempel {
    position: absolute;
    right: 20px;
    bottom: 18px;
    padding: 3px 10px;
    border: 3px solid #b3261e;
    border-radius: 6px;
    color: #b3261e;
    font: 900 0.86rem/1.15 ui-monospace, Consolas, monospace;
    letter-spacing: 0.16em;
    rotate: -12deg;
    opacity: 0.8;
    pointer-events: none;
}
@media (max-width: 760px) {
    .dossiers { grid-template-columns: minmax(0, 1fr); gap: 34px; }
    .dossier__map { min-height: 0; padding: 20px 104px 58px 18px; }
    .dossier__foto { width: 80px; right: 14px; }
}

/* proefspel "Wie stal de taart?": zoeken in het donker */
.zaakproef { padding: 90px 0; background: radial-gradient(ellipse 70% 60% at 50% 28%, #1c1c36, #0b0b16 78%); }
.zaak {
    max-width: 940px;
    margin: 0 auto;
    padding: 22px clamp(14px, 3vw, 28px) 24px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(22, 22, 40, 0.88);
}
.zaak__kamer {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 14px;
    background:
        linear-gradient(rgba(0, 0, 0, 0) 63%, #4a3020 63%, #4a3020 64.2%, rgba(0, 0, 0, 0) 64.2%),
        repeating-linear-gradient(90deg, #4a3a5c 0 26px, #43345a 26px 52px) 0 0 / 100% 63% no-repeat,
        repeating-linear-gradient(90deg, #6b4a2e 0 9%, #5f4128 9% 18%) 0 100% / 100% 37% no-repeat;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}
.zaak__deco, .zaak__plek { position: absolute; left: var(--x); top: var(--y); width: var(--w); }
.zaak__deco { pointer-events: none; }
.zaak__deco img, .zaak__plek img { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.zaak__plank { position: absolute; left: 39%; top: 37%; width: 25%; height: 2.2%; border-radius: 3px; background: #7a5532; box-shadow: 0 6px 10px rgba(0, 0, 0, 0.35); }
.zaak__toonbank {
    position: absolute;
    left: 35%;
    top: 61%;
    width: 33%;
    height: 30%;
    border-radius: 8px 8px 4px 4px;
    background: linear-gradient(#a0703f 0 14%, #7d5530 14% 100%);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.4), inset 0 -10px 0 rgba(0, 0, 0, 0.12);
}
.zaak__kapstok { position: absolute; left: 6.5%; top: 31%; width: 7%; height: 1.6%; border-radius: 3px; background: #7a5532; }
.zaak__plek {
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.zaak__plek img { filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.45)); transition: filter 0.3s ease; }
.zaak__plek:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.zaak__plek.is-open img { filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.45)) brightness(0.7) saturate(0.7); }
.zaak__plek.is-open::after { /* bekeken */
    content: '';
    position: absolute;
    right: 4%;
    top: 4%;
    width: 22%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #22c55e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.zaak__kaarslicht { /* de kaars op de toonbank brandt ook in het donker */
    position: absolute;
    z-index: 4;
    left: 38.8%;
    top: 54%;
    width: 16%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 196, 110, 0.42), rgba(255, 170, 80, 0.14) 45%, transparent 70%);
    mix-blend-mode: screen;
    translate: -50% -50%;
    pointer-events: none;
    transition: opacity 0.9s ease;
}
.zaak[data-staat="beschuldig"] .zaak__kaarslicht, .zaak[data-staat="einde"] .zaak__kaarslicht { opacity: 0; }
.zaak__donker { /* de duisternis met het gat van de zaklamp */
    --lx: 50%;
    --ly: 45%;
    --r: 110px;
    position: absolute;
    inset: 0;
    z-index: 3;
    background: radial-gradient(circle var(--r) at var(--lx) var(--ly), rgba(5, 5, 14, 0) 0%, rgba(5, 5, 14, 0.06) 52%, rgba(5, 5, 14, 0.9) 100%);
    pointer-events: none;
    transition: opacity 0.9s ease;
}
.zaak[data-staat="start"] .zaak__donker { background: rgba(5, 5, 14, 0.9); }
.zaak[data-staat="beschuldig"] .zaak__donker, .zaak[data-staat="einde"] .zaak__donker { opacity: 0; }
.zaak__start {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 0 10%;
    text-align: center;
}
.zaak__start p { margin: 0; max-width: 460px; color: #e8e6f2; font-weight: 600; }
.zaak:not([data-staat="start"]) .zaak__start { visibility: hidden; pointer-events: none; }
.zaak__vondst {
    position: absolute;
    left: 50%;
    bottom: 4%;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(92%, 560px);
    padding: 10px 14px;
    border-radius: 12px;
    background: #fffaf0;
    color: #2b2116;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.4;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.5);
    translate: -50% 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0s linear 0.25s;
    pointer-events: none;
}
.zaak__vondst.is-zichtbaar { opacity: 1; visibility: visible; transition: opacity 0.25s ease; }
.zaak__vondst img { flex: 0 0 auto; width: 44px; height: 44px; }
.zaak__vondst img[hidden] { display: none; }
.zaak__vondst p { margin: 0; }
.zaak.is-zwak .zaak__donker { animation: zaak-flikker 1.1s steps(1) infinite; }

/* onder de kamer: notitieboekje en de verdachten (die zie je de hele tijd; beschuldigen kan pas als het licht aan is) */
.zaak__boekje { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.zaak__boekkop { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.zaak__boekkop h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1rem; font-weight: 800; }
.zaak__boekkop h3 img { width: 28px; height: 28px; }
.zaak:not(.heeft-spoor) [data-zaak-klaar], .zaak:not([data-staat="zoek"]) [data-zaak-klaar] { visibility: hidden; }
.zaak__sporen { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.zaak__spoor {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 62px;
    padding: 8px 10px;
    border: 2px dashed rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
}
.zaak__spoor img { flex: 0 0 auto; width: 34px; height: 34px; }
.zaak__spoor.is-vol { border-style: solid; border-color: rgba(255, 214, 140, 0.4); background: rgba(255, 214, 140, 0.07); color: var(--text-primary); }
.zaak__spoor.is-lokaas { border-color: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.04); color: var(--text-secondary); }
.zaak__oordeel { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.zaak__vraag { margin: 0; font-weight: 800; font-size: 1rem; }
.zaak__verdachten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.verdachte {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 10px;
    border: 2px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    color: var(--text-primary);
    font: inherit;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.15s ease, opacity 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) { .verdachte:not([aria-disabled="true"]):hover { border-color: var(--primary); } }
.verdachte:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.verdachte[aria-disabled="true"] { cursor: default; }
.verdachte__embleem { width: 54px; height: 54px; padding: 8px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #2c2c46, #15151f); }
.verdachte b { font-size: 0.95rem; }
.verdachte__kenmerken { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.kenmerk { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); color: var(--text-secondary); font-size: 0.74rem; font-weight: 600; }
.kenmerk img { width: 18px; height: 18px; }
.verdachte.is-onschuldig { opacity: 0.45; }
.verdachte.is-dader { border-color: #e5484d; background: rgba(229, 72, 77, 0.1); }
.verdachte[data-stempel]::after {
    content: attr(data-stempel);
    position: absolute;
    left: 50%;
    top: 18px;
    padding: 2px 8px;
    border: 3px solid currentColor;
    border-radius: 6px;
    color: #9aa3b2;
    font: 900 0.8rem/1.2 ui-monospace, Consolas, monospace;
    letter-spacing: 0.12em;
    translate: -50% 0;
    rotate: -14deg;
    background: rgba(13, 13, 26, 0.75);
}
.verdachte.is-dader::after { color: #ff5a5f; }
.zaak:not([data-staat="beschuldig"]) .verdachte { cursor: default; }
.zaak[data-staat="beschuldig"] .verdachte:not([aria-disabled="true"]) { border-color: rgba(255, 107, 53, 0.6); }
.zaak__einde { /* uitslag over de verlichte kamer */
    position: absolute;
    left: 50%;
    bottom: 4%;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: min(94%, 600px);
    padding: 12px 16px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(13, 13, 26, 0.92);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
    translate: -50% 0;
}
.zaak__einde p { margin: 0; color: var(--text-secondary); font-size: 0.9rem; }
.zaak:not([data-staat="einde"]) .zaak__einde { visibility: hidden; }
.zaak__host { display: flex; align-items: flex-end; gap: 10px; margin-top: 18px; }
.zaak__host img { width: 76px; height: 76px; flex: 0 0 auto; }
.zaak__host .fx-bubble { flex: 1 1 auto; margin-bottom: 8px; }
@media (max-width: 700px) {
    .zaak__kamer { aspect-ratio: 4 / 3; }
    .zaak__plek::before { content: ''; position: absolute; inset: -35%; } /* grotere tikzone dan de tekening */
    .zaak__sporen { grid-template-columns: 1fr 1fr; }
    .zaak__verdachten { gap: 8px; }
    .verdachte { padding: 10px 4px; }
    .verdachte__embleem { width: 44px; height: 44px; padding: 6px; }
    .verdachte b { font-size: 0.82rem; text-align: center; }
    .verdachte__kenmerken { flex-direction: column; align-items: stretch; }
    .kenmerk { font-size: 0.7rem; }
    .zaak__vondst { font-size: 0.8rem; padding: 8px 10px; }
    .zaak__einde { bottom: 3%; padding: 8px 8px 10px; gap: 6px; }
    .zaak__einde p { font-size: 0.76rem; line-height: 1.35; }
    .zaak__einde .flash__knoppen { flex-wrap: nowrap; gap: 6px; }
    .zaak__einde .btn { padding: 7px 11px; font-size: 0.78rem; white-space: nowrap; }
    .zaak__vondst img { width: 34px; height: 34px; }
}
@media (max-width: 480px) { .zaak__host img { width: 60px; height: 60px; } }
html:not(.js) .zaak { display: none; }

/* de 19 scenario's: polaroids op een prikbord, verbonden met een rode draad */
.scenarios { padding: 70px 0 90px; }
.prikbord {
    position: relative;
    max-width: 1060px;
    margin: 0 auto;
    padding: 26px 22px 30px;
    border-radius: 14px;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.07) 0 1px, transparent 1.6px) 0 0 / 9px 9px,
        radial-gradient(circle at 70% 60%, rgba(0, 0, 0, 0.14) 0 1px, transparent 1.7px) 0 0 / 7px 7px,
        linear-gradient(135deg, #b98a57, #9f7042);
    box-shadow: inset 0 0 0 10px #5a3a1e, inset 0 0 0 12px #3e2713, inset 0 0 40px rgba(0, 0, 0, 0.35), 0 24px 40px rgba(0, 0, 0, 0.5);
}
.prikbord__lijst {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-rows: 1fr; /* alle polaroids even hoog */
    gap: 28px 18px;
    margin: 0;
    padding: 14px 10px 6px;
    list-style: none;
}
.polaroid {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 8px 8px 10px;
    background: #f8f5ee;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
    rotate: var(--r, 0deg);
    text-align: center;
}
.polaroid__foto { display: grid; place-items: center; aspect-ratio: 1; background: radial-gradient(circle at 50% 40%, #2c2c46, #15151f); }
.polaroid__foto img { width: 64%; height: 64%; }
.polaroid b { display: block; margin-top: 8px; color: #2b2116; font-size: 0.8rem; line-height: 1.3; }
.polaroid__modes { display: block; margin-top: auto; padding-top: 4px; color: #8a7a68; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.06em; }
.polaroid__speld {
    position: absolute;
    z-index: 1;
    top: -7px;
    left: 50%;
    width: 14px;
    height: 14px;
    margin-left: -7px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ff8a80, #c62828 60%, #7f1010);
    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.4);
}
.polaroid__notitie { /* geeltje op de bakkerij */
    position: absolute;
    z-index: 2;
    right: -8px;
    top: 10px;
    padding: 4px 8px;
    background: #fde68a;
    color: #5b4a12;
    font-size: 0.7rem;
    font-weight: 800;
    rotate: 8deg;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}
.prikbord__draad { position: absolute; left: 0; top: 0; z-index: 3; overflow: visible; pointer-events: none; }
.prikbord__draad polyline { fill: none; stroke: #d32f2f; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.prikbord__draad circle { fill: #c62828; stroke: #7f1010; stroke-width: 1.5; }
.prikbord__veeg { display: none; }
.scenarios__tekst { max-width: 760px; margin: 26px auto 0; color: var(--text-secondary); line-height: 1.7; text-align: center; }
@media (max-width: 900px) { .prikbord__lijst { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) { /* gsm: het prikbord schuift opzij, twee rijen */
    .prikbord { padding: 12px 0 16px; margin: 0 -16px; border-radius: 0; }
    .prikbord__lijst {
        grid-template-columns: none;
        grid-template-rows: repeat(2, 1fr);
        grid-auto-rows: auto;
        grid-auto-flow: column;
        grid-auto-columns: 42%;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        gap: 24px 14px;
        padding: 16px 18px 10px;
    }
    .prikbord__lijst::-webkit-scrollbar { display: none; }
    .polaroid { scroll-snap-align: start; }
    .prikbord__veeg { display: block; margin: 10px 0 0; text-align: center; color: var(--text-muted); font-size: 0.85rem; }
}

@media (prefers-reduced-motion: no-preference) {
    .hero--speur .hero-foxy__fig::before { animation: speur-flakker 6s ease-in-out infinite; }
    html.js .dossiers .dossier__stempel { opacity: 0; }
    html.js .dossiers.is-zichtbaar .dossier__stempel { animation: stempel 0.45s cubic-bezier(.3, 1.5, .5, 1) both; }
    html.js .dossiers.is-zichtbaar .dossier:nth-child(2) .dossier__stempel { animation-delay: 0.3s; }
    html.js .dossiers.is-zichtbaar .dossier:nth-child(3) .dossier__stempel { animation-delay: 0.6s; }
    html.js .dossiers.is-zichtbaar .dossier:nth-child(4) .dossier__stempel { animation-delay: 0.9s; }
    .zaak__plek.is-schud { animation: flash-schud 0.45s ease; }
    .zaak__kaarslicht { animation: kaars-flakker 2.6s ease-in-out infinite; }
    .zaak__host img.is-pop, .zaak__host .fx-bubble.is-pop { animation: fx-pop 0.35s cubic-bezier(.2, .75, .2, 1.2); }
    .verdachte[data-stempel]::after { animation: stempel-klein 0.4s cubic-bezier(.3, 1.5, .5, 1) both; }
    .zaak[data-staat="beschuldig"] .verdachte:not([aria-disabled="true"]) { animation: verdacht-puls 1.8s ease-in-out infinite; }
    html.js .prikbord__draad polyline { transition: stroke-dashoffset 2.4s ease; }
}
@keyframes speur-flakker { 0%, 100% { opacity: 1; } 44% { opacity: 0.8; } 47% { opacity: 0.96; } 51% { opacity: 0.76; } 58% { opacity: 1; } }
@keyframes kaars-flakker { 0%, 100% { scale: 1; opacity: 1; } 30% { scale: 0.94; opacity: 0.85; } 55% { scale: 1.05; opacity: 1; } 75% { scale: 0.97; opacity: 0.9; } }
@keyframes stempel { 0% { opacity: 0; scale: 2.2; } 60% { opacity: 0.9; scale: 0.94; } 100% { opacity: 0.8; scale: 1; } }
@keyframes verdacht-puls { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0); } 50% { box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.25); } }
@keyframes stempel-klein { 0% { opacity: 0; scale: 2; } 100% { opacity: 1; scale: 1; } }
@keyframes zaak-flikker { 0%, 100% { opacity: 1; } 8% { opacity: 1.0; } 10% { opacity: 1; } 47% { opacity: 1; } 50% { opacity: 0.86; } 53% { opacity: 1; } }
/* ---------- einde Hunt ---------- */
