/* Foxy in beeld, avontuur-spelpagina's: proefspel uit het spel zelf (laadt enkel daar, naast galerij.css). */
.probeer { padding: 80px 0; }
.probeer .section-header { margin-bottom: 2rem; }

/* ---------- Pip: noorderlichtlampjes ---------- */
.lampjes { --n: 0; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(18px, 3.5vw, 40px); align-items: center; max-width: 1040px; margin: 0 auto; }
.lampjes__podium { position: relative; aspect-ratio: 16 / 9.2; border-radius: 26px; overflow: hidden; isolation: isolate;
    background:
        radial-gradient(1.6px 1.6px at 8% 12%, #fff 60%, transparent 62%),
        radial-gradient(1.4px 1.4px at 23% 34%, #dfe8ff 60%, transparent 62%),
        radial-gradient(1.8px 1.8px at 41% 9%, #fff 60%, transparent 62%),
        radial-gradient(1.3px 1.3px at 57% 28%, #dfe8ff 60%, transparent 62%),
        radial-gradient(1.7px 1.7px at 72% 14%, #fff 60%, transparent 62%),
        radial-gradient(1.4px 1.4px at 88% 36%, #dfe8ff 60%, transparent 62%),
        radial-gradient(1.2px 1.2px at 94% 8%, #fff 60%, transparent 62%),
        radial-gradient(1.5px 1.5px at 33% 52%, #dfe8ff 60%, transparent 62%),
        radial-gradient(1.3px 1.3px at 79% 55%, #fff 60%, transparent 62%),
        linear-gradient(#0a1430, #172452 55%, #24336b);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.lampjes__lucht { position: absolute; inset: 0 0 32% 0; z-index: 0; opacity: calc(var(--n) / 6); transition: opacity 1.4s ease; pointer-events: none; }
.lampjes__lucht i { position: absolute; left: -12%; right: -12%; height: 42%; border-radius: 50%; filter: blur(16px);
    background: linear-gradient(90deg, transparent 4%, #5bf0a8 28%, #3fd6c6 52%, #8e7cf0 78%, transparent 96%); }
.lampjes__lucht i:nth-child(1) { top: 0; rotate: -7deg; opacity: 0.6; }
.lampjes__lucht i:nth-child(2) { top: 16%; rotate: 5deg; opacity: 0.4; scale: 1 0.6; }
.lampjes__lucht i:nth-child(3) { top: 34%; rotate: -3deg; opacity: 0.28; scale: 1 0.45; }
.lampjes__sneeuw { position: absolute; left: 0; right: 0; top: -180px; bottom: 0; z-index: 0; pointer-events: none; opacity: 0.7;
    background-image: radial-gradient(2.2px 2.2px at 14px 22px, #fff 60%, transparent 64%), radial-gradient(1.6px 1.6px at 72px 96px, #fff 60%, transparent 64%),
        radial-gradient(2px 2px at 128px 40px, #fff 60%, transparent 64%), radial-gradient(1.4px 1.4px at 44px 150px, #fff 60%, transparent 64%),
        radial-gradient(1.8px 1.8px at 160px 128px, #fff 60%, transparent 64%);
    background-size: 180px 180px; }
.lampjes__sneeuw + .lampjes__sneeuw { opacity: 0.45; background-size: 120px 120px; }
.lampjes__slinger { position: absolute; left: 0; top: 2%; z-index: 1; width: 100%; height: auto; overflow: visible; }
.lampjes__draad { fill: none; stroke: #2e7d4f; stroke-width: 5; stroke-linecap: round; }
.lampje__gloed { fill: var(--c); opacity: 0; transition: opacity 0.5s ease; }
.lampje.is-aan .lampje__gloed { opacity: 0.6; }
.lampje__voet { fill: #8d8d8d; stroke: #2b1d12; stroke-width: 2; }
.lampje__bol { fill: rgba(255, 255, 255, 0.88); transition: fill 0.35s ease; }
.lampje.is-aan .lampje__bol { fill: var(--c); }
.lampje__ring { fill: none; stroke: var(--c); stroke-width: 8; opacity: 0; }
.lampje.is-vraag .lampje__ring { opacity: 1; }
.lampje__rand { fill: none; stroke: #2b1d12; stroke-width: 3; }
.lampje__glans { fill: rgba(255, 255, 255, 0.55); }
.lampje__binnen { transform-box: fill-box; transform-origin: 50% 50%; }

.lampjes__tafel { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 26%; display: flex; align-items: flex-start; justify-content: space-between; padding: 0 7% 0 6%;
    background: linear-gradient(#9c5b2e 0 10px, #7a4520 10px); box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.25); }
.lampjes__potten { display: flex; gap: clamp(8px, 1.8vw, 18px); transform: translateY(-48%); }
.lampjes__pot, .lampjes__kom { appearance: none; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 16px; -webkit-tap-highlight-color: transparent; }
.lampjes__pot { width: clamp(56px, 8.5vw, 78px); aspect-ratio: 1; transition: translate 0.2s ease, filter 0.2s ease; }
.lampjes__pot svg, .lampjes__kom svg { display: block; width: 100%; height: 100%; filter: drop-shadow(3px 5px 0 rgba(0, 0, 0, 0.28)); }
.lampjes__pot.is-in { translate: 0 -9px; }
.lampjes__pot.is-in svg { filter: drop-shadow(3px 12px 0 rgba(0, 0, 0, 0.2)); }
.lampjes__kom { width: clamp(104px, 15vw, 150px); aspect-ratio: 140 / 84; transform: translateY(-36%); }
.lampjes__pot:focus-visible, .lampjes__kom:focus-visible { outline: 3px solid #ffd166; outline-offset: 3px; }
.lampjes__mix { visibility: hidden; transition: fill 0.3s ease; }
.lampjes__kolk { opacity: 0; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 30 70; }
.lampjes__drup { position: absolute; z-index: 3; width: 16px; height: 20px; margin: -10px 0 0 -8px; border: 2px solid #2b1d12; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; pointer-events: none; }

.spelklaar { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 16px; background: rgba(8, 14, 36, 0.62);
    opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0s linear 0.4s; }
.is-klaar .spelklaar { opacity: 1; visibility: visible; transition: opacity 0.4s ease; }
.spelklaar__kaart { max-width: 400px; padding: 18px 20px; border-radius: 18px; background: #fff8ea; color: #2b1d12; text-align: center; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4); }
.spelklaar__kaart h3 { margin: 0 0 6px; font-size: 1.2rem; color: #2b1d12; }
.spelklaar__kaart p { margin: 0 0 14px; line-height: 1.5; }
.spelklaar__kaart div { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.spelklaar__kaart .spelklaar__weetje { margin-top: -4px; font-size: 0.86rem; line-height: 1.45; color: #6b5a48; }
.spelklaar__weetje b { display: block; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary-dark); }
.spelklaar__kaart .btn--ghost { color: #2b1d12; border-color: rgba(43, 29, 18, 0.35); }

.spelhost { display: flex; align-items: center; gap: 12px; }
.spelhost img { width: clamp(96px, 10vw, 128px); height: auto; flex: 0 0 auto; }
.spelhost .fx-bubble { flex: 1 1 auto; }

/* ---------- Noor: botten leggen (zoals noor_game lib/minigames/skeleton.dart) ---------- */
.botten { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(18px, 3.5vw, 40px); align-items: center; max-width: 1040px; margin: 0 auto; }
.botten__veld { position: relative; padding: clamp(10px, 1.6vw, 16px); border-radius: 26px; background: linear-gradient(#2c2342, #1f1930);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.botten__bord { position: relative; border-radius: 20px; -webkit-tap-highlight-color: transparent; }
.botten.is-kiezen .botten__bord { cursor: pointer; }
.botten__bord > svg { display: block; width: 100%; height: auto; }
.bot-schim { opacity: 0.2; transition: opacity 0.3s ease; }
.botten.is-kiezen .bot-schim { opacity: 0.34; }
.bot-schim.is-weg, .botten.is-kiezen .bot-schim.is-weg { opacity: 0; }
.bot { opacity: 0; }
.bot.is-gelegd { opacity: 1; }
.bot__in { transform-box: fill-box; transform-origin: 50% 50%; }
.botten__neus { transition: opacity 0.4s ease; }
.botten.is-af .botten__neus { opacity: 0; }
.botten__bord::after { content: ''; position: absolute; inset: 0; border-radius: 20px; pointer-events: none; opacity: 0;
    box-shadow: 0 0 0 4px rgba(255, 243, 176, 0.75), 0 0 46px rgba(255, 243, 176, 0.45); transition: opacity 0.6s ease; }
.botten.is-af .botten__bord::after { opacity: 1; }
.botten__tekening { position: absolute; right: 3%; bottom: 5%; width: 25%; margin: 0; padding: 5px 5px 4px; border-radius: 8px; background: #fff8e7;
    rotate: 3deg; box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.28); pointer-events: none; }
.botten__tekening::before { content: ''; position: absolute; left: 50%; top: -5px; width: 11px; height: 11px; margin-left: -5px; border-radius: 50%;
    background: #e5484d; box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.25); }
.botten__tekening img { display: block; width: 100%; height: auto; scale: -1 1; }
.botten__plek { position: absolute; width: 9%; aspect-ratio: 1; translate: -50% -50%; padding: 0; border: 0; border-radius: 50%; background: transparent; opacity: 0; cursor: inherit; }
.botten__plek:focus-visible { opacity: 1; outline: 3px solid #ffd166; outline-offset: 0; }
.botten__bak { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; margin-top: 12px; padding: 8px; border-radius: 16px;
    background: linear-gradient(#7a4a26, #5e3818); box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.12), inset 0 -4px 0 rgba(0, 0, 0, 0.25); }
.botten__los { appearance: none; aspect-ratio: 360 / 280; padding: 4px; border: 0; border-radius: 12px; background: rgba(0, 0, 0, 0.2); cursor: grab;
    touch-action: none; -webkit-tap-highlight-color: transparent; transition: translate 0.15s ease, background 0.15s ease, opacity 0.2s ease; }
.botten__los svg { display: block; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.botten__los:hover { background: rgba(255, 255, 255, 0.1); }
.botten__los:focus-visible { outline: 3px solid #ffd166; outline-offset: 2px; }
.botten__los.is-gekozen { background: rgba(255, 209, 102, 0.3); outline: 3px solid #ffd166; outline-offset: 0; translate: 0 -4px; }
.botten__los.is-sleep { opacity: 0.3; }
.botten__los.is-weg { visibility: hidden; }
.botten__sleep { position: fixed; z-index: 60; margin: 0; pointer-events: none; filter: drop-shadow(4px 8px 0 rgba(0, 0, 0, 0.3)); }
.botten__sleep svg { display: block; width: 100%; height: 100%; overflow: visible; }

/* ---------- Foxy: Ware Grootte (zoals adventure_game lib/minigames/truesize.dart) ---------- */
.ware { position: relative; max-width: 960px; margin: 0 auto; }
.ware__kaart { padding: clamp(7px, 1.3vw, 14px); border-radius: 14px; background: #e9d7b2; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), inset 0 0 0 3px rgba(107, 74, 51, 0.55); }
.ware__doek { position: relative; aspect-ratio: 1000 / 598.1; overflow: hidden; border-radius: 3px; }
.ware__land, .ware__hint { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.ware__tag { position: absolute; left: 0.7%; translate: 0 -50%; padding: 0 4px; border-radius: 4px; background: rgba(244, 231, 200, 0.85); color: #6b4a33;
    font-size: clamp(8px, 1.15vw, 12px); font-weight: 800; line-height: 1.45; white-space: nowrap; pointer-events: none; }
.ware__tag--rechts { left: auto; right: 0.7%; color: #b23a2a; }
.ware__evenaar { translate: 0 -125%; padding: 0; background: none; color: #d84315; font-size: clamp(9px, 1.45vw, 15px); letter-spacing: 0.04em; }
.ware__belgie, .ware__afrika, .ware__groenland { position: absolute; padding: 0; border: 0; background: none; -webkit-tap-highlight-color: transparent; }
.ware__belgie { width: clamp(16px, 2.6vw, 28px); aspect-ratio: 28 / 36; translate: -21% -89%; cursor: pointer; }
.ware__belgie svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ware__belgie.is-gevonden { filter: drop-shadow(0 0 6px #fff59d) drop-shadow(0 0 12px #fff59d); }
.ware__afrika { cursor: pointer; }
.ware__afrika img, .ware__groenland img { display: block; width: 100%; height: auto; pointer-events: none; }
.ware__groenland { z-index: 3; cursor: grab; touch-action: none; }
.ware.is-sleep .ware__groenland { cursor: grabbing; filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.75)); }
.ware.is-af .ware__groenland { cursor: default; }
.ware__belgie:focus-visible, .ware__afrika:focus-visible, .ware__groenland:focus-visible { outline: 3px solid #ffd166; outline-offset: 2px; border-radius: 6px; }
.ware__mini { position: absolute; z-index: 2; height: auto; opacity: 0; pointer-events: none; }
.ware__mini.is-zicht { opacity: 0.87; }
.ware__teller { position: absolute; z-index: 4; translate: -50% -50%; color: #e8b830; font-size: clamp(18px, 4.4vw, 46px); font-weight: 900; line-height: 1; opacity: 0;
    text-shadow: 0 2px 0 #2b1d12, 2px 0 0 #2b1d12, -2px 0 0 #2b1d12, 0 -2px 0 #2b1d12; pointer-events: none; }
.ware__teller.is-zicht { opacity: 1; }
.ware__banier { position: absolute; z-index: 5; left: 50%; top: 5%; width: 90%; margin: 0; translate: -50% 0; text-align: center; color: #e8b830;
    font-size: clamp(15px, 3.4vw, 36px); font-weight: 900; line-height: 1.15; opacity: 0; pointer-events: none;
    text-shadow: 0 2px 0 #2b1d12, 2px 0 0 #2b1d12, -2px 0 0 #2b1d12, 0 -2px 0 #2b1d12, 0 6px 14px rgba(0, 0, 0, 0.35); }
.ware__banier.is-zicht { opacity: 1; }
.ware__ballon { position: absolute; z-index: 6; max-width: min(300px, 62%); margin: 0; padding: 6px 12px; translate: -50% calc(-100% - 14px);
    border: 2.5px solid #2b1d12; border-radius: 14px; background: #fff8ea; color: #2b1d12; font-size: clamp(11px, 1.55vw, 15px); font-weight: 800; line-height: 1.3;
    text-align: center; pointer-events: none; }
.ware__ballon::after { content: ''; position: absolute; left: calc(50% - 9px + var(--staart, 0px)); bottom: -11px; border-width: 11px 9px 0; border-style: solid; border-color: #2b1d12 transparent transparent; }
.ware__ballon--hint { width: max-content; max-width: min(240px, 34%); translate: 0 -100%; }
.ware__ballon--hint::after { left: 14px; }
.ware.is-bewogen .ware__ballon--hint, .ware.is-af .ware__ballon--hint, .ware.is-bewogen .ware__hint, .ware.is-af .ware__hint { visibility: hidden; }
.ware__ballon--los { width: max-content; visibility: hidden; }
.ware__ballon--los.is-zicht { visibility: visible; }
.ware__onder { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 16px; }
.ware__stand { margin: 0; min-height: 1.4em; color: #fff; font-size: clamp(1.05rem, 2.3vw, 1.45rem); font-weight: 800; transition: color 0.3s ease; }
.ware__stand.is-waar { color: #b9f6ca; }
.ware__zin { flex: 1 1 320px; max-width: 520px; margin: 0; padding: 10px 14px 11px; border-radius: 16px; background: #fff8ea; color: #2b1d12; font-weight: 600; line-height: 1.45; }
.ware__wie { display: block; margin-bottom: 1px; color: var(--primary-dark); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }

@media (max-width: 760px) {
    .ware__onder { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 12px; }
    .ware__ballon--hint { top: 48% !important; translate: 10px -50%; max-width: 36%; }
    .ware__ballon--hint::after { display: none; }
    .ware__stand { text-align: center; }
    .ware__zin { flex: 0 0 auto; max-width: none; }
    .botten__bak { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; padding: 6px; margin-top: 10px; }
    .botten__veld { border-radius: 20px; }
    .botten__tekening { width: 27%; padding: 3px; }
    .spelklaar { padding: 8px; }
    .spelklaar__kaart h3 { font-size: 1.05rem; margin-bottom: 4px; }
    .spelklaar__kaart .spelklaar__weetje { font-size: 0.8rem; }
    .spelklaar__kaart .btn { padding: 9px 16px; font-size: 0.9rem; }
    .lampjes, .botten { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .spelhost { order: -1; }
    .spelhost img { width: 72px; }
    .lampjes__podium { aspect-ratio: 1 / 0.74; border-radius: 20px; }
    .lampjes__slinger { top: 4%; }
    .lampjes__tafel { height: 33%; padding: 0 4%; }
    .lampjes__potten { gap: 6px; }
    .spelklaar__kaart { padding: 14px 14px; }
    .spelklaar__kaart p { font-size: 0.92rem; margin-bottom: 10px; }
}

@media (prefers-reduced-motion: no-preference) {
    html.js .ware__punt { animation: ware-pijl 1.6s ease-in-out infinite; }
    html.js .ware__vlag { animation: ware-vlag 1.2s ease-in-out infinite; }
    html.js .ware__vlag + .ware__vlag { animation-delay: -0.4s; }
    html.js .ware__vlag + .ware__vlag + .ware__vlag { animation-delay: -0.8s; }
    .ware__mini.is-zicht, .ware__teller.is-pop, .ware__zin.is-pop, .ware__ballon--los.is-zicht { animation: fx-pop 0.35s cubic-bezier(.2, .75, .2, 1.2); }
    .ware__banier.is-zicht { animation: ware-banier 0.6s cubic-bezier(.2, .75, .2, 1.3); }
    .ware__afrika.is-lach img { animation: ware-lach 0.8s ease-in-out; }
    .bot.is-gelegd .bot__in { animation: bot-klik 0.42s cubic-bezier(.2, .75, .2, 1.3); }
    .botten__los.is-schud { animation: bot-schud 0.4s ease; }
    .botten.is-af .botten__bord::after { animation: fx-glow 2s ease-in-out infinite 0.6s; }
    html.js .lampjes__lucht i { animation: lampjes-golf 9s ease-in-out infinite alternate; }
    html.js .lampjes__lucht i:nth-child(2) { animation-duration: 12s; animation-direction: alternate-reverse; }
    html.js .lampjes__lucht i:nth-child(3) { animation-duration: 15s; }
    html.js .lampjes__sneeuw { animation: lampjes-sneeuw 14s linear infinite; }
    html.js .lampjes__sneeuw + .lampjes__sneeuw { animation-duration: 9s; }
    html.js .lampje.is-vraag .lampje__ring { animation: lampje-vraag 0.9s ease-in-out infinite; }
    html.js .lampje.is-aan .lampje__gloed { animation: lampje-gloed 2.4s ease-in-out infinite; }
    html.js .lampje.is-aan .lampje__binnen { animation: lampje-aan 0.5s cubic-bezier(.2, .75, .2, 1.3); }
    html.js .lampjes__pot:not(.is-in) { animation: lampjes-dobber 2.8s ease-in-out infinite; }
    html.js .lampjes__pot:nth-child(2):not(.is-in) { animation-delay: -0.9s; }
    html.js .lampjes__pot:nth-child(3):not(.is-in) { animation-delay: -1.8s; }
    .lampjes__kom.is-kolk .lampjes__kolk { animation: lampjes-kolk 0.7s ease-out; }
    .lampjes__drup { animation: lampjes-drup 0.42s cubic-bezier(.35, 0, .6, 1) forwards; }
    .spelhost img.is-pop, .spelhost .fx-bubble.is-pop { animation: fx-pop 0.35s cubic-bezier(.2, .75, .2, 1.2); }
    .spelhost img.is-oei { animation: lampjes-oei 0.45s ease; }
}
@keyframes bot-klik { 0% { scale: 1.25; } 100% { scale: 1; } }
@keyframes bot-schud { 0%, 100% { translate: 0 0; } 20% { translate: -7px 0; } 45% { translate: 6px 0; } 70% { translate: -4px 0; } }
@keyframes ware-pijl { 0%, 100% { translate: 0 -6px; } 50% { translate: 0 6px; } }
@keyframes ware-vlag { 0%, 100% { translate: 0 -1px; } 50% { translate: 0 1.5px; } }
@keyframes ware-banier { 0% { opacity: 0; scale: 0.6; } 100% { opacity: 1; scale: 1; } }
@keyframes ware-lach { 0%, 100% { rotate: 0deg; } 25% { rotate: -4deg; } 50% { rotate: 3deg; } 75% { rotate: -2deg; } }
@keyframes lampjes-sneeuw { from { translate: 0 0; } to { translate: 0 180px; } }
@keyframes lampjes-golf { from { translate: -5% 0; } to { translate: 5% 2%; } }
@keyframes lampje-vraag { 0%, 100% { stroke-width: 6; } 50% { stroke-width: 11; } }
@keyframes lampje-gloed { 0%, 100% { opacity: 0.5; } 50% { opacity: 0.75; } }
@keyframes lampje-aan { 0% { scale: 1; } 45% { scale: 1.3; } 100% { scale: 1; } }
@keyframes lampjes-dobber { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3px; } }
@keyframes lampjes-kolk { 0% { opacity: 0.85; stroke-dashoffset: 0; } 100% { opacity: 0; stroke-dashoffset: -140; } }
@keyframes lampjes-drup {
    0% { transform: translate(0, 0) scale(0.6); }
    45% { transform: translate(calc(var(--dx) * 0.5), calc(var(--dy) * 0.5 - 46px)) scale(1); }
    100% { transform: translate(var(--dx), var(--dy)) scale(0.75); }
}
@keyframes lampjes-oei { 0%, 100% { rotate: 0deg; } 25% { rotate: -7deg; } 60% { rotate: 6deg; } }
