*{box-sizing:border-box}html,body{margin:0;min-width:280px;min-height:100%;font-family:'Trebuchet MS',Arial,sans-serif}body{background:#5ac0c8;color:#294c57}button,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{font:inherit;border:0;cursor:pointer}button:disabled{cursor:default}button:focus-visible,a:focus-visible{outline:3px solid #294c57;outline-offset:4px}[hidden]{display:none!important}
.stage{width:100%;max-width:1920px;height:var(--app-height,100dvh);min-height:540px;margin:auto;padding:clamp(8px,1vw,20px);display:flex;flex-direction:column;gap:clamp(10px,1vw,18px)}
.board{position:relative;flex:1;min-height:350px;overflow:hidden;border-radius:clamp(14px,1.3vw,24px);background:#fffdf9 url('assets/sinterklaas-decor.svg') center/100% 100% no-repeat;display:flex;flex-direction:column}
header{position:relative;z-index:1;flex-shrink:0;text-align:center;padding:clamp(20px,3vh,36px) clamp(105px,15vw,285px) 12px}h1{font-size:clamp(24px,3vw,56px);line-height:1.2;margin:0;color:#8c493f}
#round{position:relative;flex:1;min-height:0;display:flex;flex-direction:column;padding:8px clamp(12px,4vw,85px) clamp(24px,4vh,60px);opacity:1;transition:opacity .3s ease}#round.fading{opacity:0}
#items{flex:1;min-height:100px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr)) minmax(14px,.9fr) repeat(5,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));align-content:center;align-items:center;justify-items:center;column-gap:clamp(1px,.65vw,12px);row-gap:clamp(6px,2vh,28px);padding:clamp(8px,2vh,28px) 0}#items.single-row{grid-template-rows:minmax(0,1fr)}.item{display:block;width:100%;max-width:140px;height:100%;max-height:210px;min-height:0;object-fit:contain}
#answers{display:flex;flex-shrink:0;justify-content:center;gap:clamp(10px,2vw,38px);padding-top:clamp(12px,2vh,24px)}#answers button{width:clamp(54px,11vw,210px);height:clamp(62px,12vh,130px);border-radius:clamp(12px,1.3vw,25px);background:#99d2d2;color:#294c57;font-size:clamp(32px,4.1vw,78px);font-weight:bold;box-shadow:0 6px 0 #6badaf;transition:transform .15s,opacity .2s}#answers button.correct{background:#afd58d;box-shadow:0 6px 0 #84ad62}#answers button.wrong{background:#e77e73;box-shadow:0 6px 0 #bd5c54;pointer-events:none}#answers button.gone{opacity:0;pointer-events:none}
#next{align-self:center;flex-shrink:0;width:min(100%,460px);min-height:54px;height:clamp(58px,11vh,120px);border-radius:20px;background:#efac61;box-shadow:0 6px 0 #ce8646;font-size:clamp(28px,2.5vw,48px);font-weight:bold;color:#483b31;transition:transform .15s ease,box-shadow .15s ease,background-color .15s ease}#next span{margin-left:14px}
#feedback{position:absolute;bottom:6px;left:8px;right:8px;margin:0;text-align:center;font-size:clamp(14px,1.4vw,27px);color:#55734a}
footer{flex-shrink:0;display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:clamp(8px,1.25vw,24px);padding-bottom:6px}.credit{width:clamp(185px,22vw,336px);height:clamp(44px,5.25vw,80px);margin-right:auto;display:block;border-radius:14px;background:#fffdf9;box-shadow:0 5px 0 #3f9299;overflow:hidden}.credit img{display:block;width:100%;height:100%;object-fit:cover}footer button{min-width:44px;min-height:44px;height:clamp(44px,5.25vw,80px);border-radius:14px;padding:0 clamp(12px,1.45vw,28px);background:#fffdf9;color:#294c57;font-size:clamp(16px,1.6vw,30px);font-weight:bold;box-shadow:0 5px 0 #3f9299}#sound,#fullscreen{width:clamp(44px,5.25vw,80px);flex-shrink:0;padding:clamp(10px,1vw,17px)}footer svg{width:100%;height:100%;display:block}footer svg path:not([fill]),.sound-waves{fill:none;stroke:currentColor;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}.sound-muted,.contract{display:none}#sound[aria-pressed="false"] .sound-waves{display:none}#sound[aria-pressed="false"] .sound-muted{display:block}html:fullscreen .expand{display:none}html:fullscreen .contract{display:block}footer button,.credit{transition:transform .15s ease,box-shadow .15s ease,background-color .15s ease}
#menu{flex:1;min-height:0;display:flex;align-content:center;justify-content:center;align-items:center;flex-wrap:wrap;gap:clamp(20px,3.4vw,65px);padding:24px 18px}#menu button{width:clamp(115px,21vw,390px);height:clamp(100px,21vh,225px);border-radius:clamp(16px,1.6vw,30px);background:#99d2d2;box-shadow:0 7px 0 #6badaf;color:#294c57;font-size:clamp(32px,3.65vw,70px);font-weight:bold}.menu-art{width:100%;display:flex;justify-content:center;align-items:center;gap:clamp(12px,1.6vw,30px);pointer-events:none}.menu-art img{width:clamp(65px,9vw,160px);height:clamp(70px,16vh,175px)}.menu-art img:nth-child(2){transform:rotate(-6deg)}
.seasonal-decor{position:absolute;left:clamp(4px,2vw,38px);top:6px;width:clamp(90px,13vw,245px);height:clamp(70px,8vw,150px);pointer-events:none}.seasonal-mitre{position:absolute;width:60%;height:100%;left:0;transform:rotate(-9deg)}.seasonal-staff{position:absolute;width:47%;height:100%;right:0;transform:rotate(12deg)}
#confetti{position:absolute;inset:0;pointer-events:none;overflow:hidden;border-radius:24px;z-index:5}.confetti-piece{position:absolute;bottom:-20px;width:clamp(6px,.75vw,14px);height:clamp(11px,1.3vw,25px);border-radius:3px;will-change:transform,opacity}
@media(hover:hover) and (pointer:fine){#answers button:hover:not(:disabled){transform:translateY(-4px)}footer button:hover,.credit:hover{transform:translateY(-3px);box-shadow:0 8px 0 #3f9299}footer button:hover{background:#edf8f8}#next:hover:not(:disabled){transform:translateY(-3px);background:#f4ba79;box-shadow:0 9px 0 #ce8646}#menu button:hover{background:#b4dfdf}}
footer button:active,.credit:active{transform:translateY(3px);box-shadow:0 2px 0 #3f9299}#next:active:not(:disabled){transform:translateY(3px);box-shadow:0 3px 0 #ce8646}#menu button:active{transform:translateY(3px)}
@media(max-width:600px){header{padding:24px 18px 12px;padding-top:95px}.seasonal-decor{height:78px;width:120px;left:16px}.board{background-size:auto 100%}footer{display:grid;grid-template-columns:1fr 1fr 44px 44px;gap:9px}.credit{grid-column:1/-1;width:185px;height:44px;justify-self:start}footer button{font-size:15px;padding:0 8px;width:100%}#sound,#fullscreen{width:44px}.stage{min-height:650px}#round{padding-left:10px;padding-right:10px}#answers{gap:12px}#answers button{width:calc((100% - 36px)/4);max-width:95px}#menu{gap:24px}#menu button{width:calc(50% - 20px);max-width:190px}}
@media(max-height:500px) and (min-width:601px){.stage{min-height:360px}header{padding-top:14px;padding-bottom:4px}h1{font-size:25px}.seasonal-decor{height:65px}#round{padding-bottom:18px}#items{padding:2px 0;row-gap:2px}#answers{padding-top:6px}#answers button{height:48px;font-size:32px}.menu-art{display:none}#menu button{height:100px}footer button,.credit{height:44px}#next{height:48px;min-height:48px}}
@media(prefers-reduced-motion:reduce){#round,#answers button,#next,footer button,.credit{transition:none}}

@supports(padding:max(0px)){.stage{padding-top:max(8px,env(safe-area-inset-top));padding-bottom:max(8px,env(safe-area-inset-bottom));padding-left:max(8px,env(safe-area-inset-left));padding-right:max(8px,env(safe-area-inset-right))}}

/* Het oorspronkelijke opdrachtvlak schaalt altijd in dezelfde verhouding. */
body{min-height:100svh;display:flex;align-items:center;justify-content:center}
.stage{width:min(100%,calc((var(--app-height,100dvh) - 120px)*1.9 + 16px));height:auto;min-height:0;margin:auto;gap:14px}
.board{flex:none;width:100%;min-height:0;aspect-ratio:1881/941;container-type:inline-size;background-size:100% 100%;border-radius:1.28cqw}
header{position:absolute;left:0;right:0;top:0;padding:1.92cqw 15.15cqw .64cqw}h1{font-size:2.98cqw;line-height:1.2;margin:.64cqw 0 .48cqw}
#round{position:absolute;inset:0;display:block;padding:0;min-height:0}
#items{position:absolute;left:5.32%;right:5.32%;top:22.85%;height:50.48%;min-height:0;padding:0;grid-template-columns:repeat(5,minmax(0,1fr)) minmax(0,.9fr) repeat(5,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:1.49cqw .64cqw}
#items.single-row{grid-template-rows:minmax(0,1fr)}.item{width:100%;height:100%;max-width:7.44cqw;max-height:11.17cqw}
#answers{position:absolute;left:0;right:0;top:78.64%;padding:0;gap:2.02cqw}#answers button{width:11.16cqw;max-width:none;height:6.91cqw;font-size:4.15cqw;border-radius:1.33cqw;box-shadow:0 .48cqw 0 #6badaf}#answers button.correct{box-shadow:0 .48cqw 0 #84ad62}#answers button.wrong{box-shadow:0 .48cqw 0 #bd5c54}
#next{position:absolute;left:37.75%;top:79.17%;width:24.46%;height:6.38cqw;min-height:0;border-radius:1.28cqw;font-size:2.55cqw;box-shadow:0 .43cqw 0 #ce8646}#next span{margin-left:1.06cqw}
#menu{position:absolute;inset:auto 0 auto;top:35.07%;display:flex;flex-wrap:nowrap;padding:0;gap:3.46cqw}#menu button{width:20.73cqw;max-width:none;height:11.96cqw;font-size:3.72cqw;border-radius:1.59cqw;box-shadow:0 .53cqw 0 #6badaf}
.menu-art{position:absolute;top:15.15cqw;left:0;right:0;width:auto;display:flex;gap:1.59cqw}.menu-art img{width:8.51cqw;height:9.3cqw}.menu-art img:nth-child(2){width:10.1cqw;height:10.1cqw}
.seasonal-decor{left:2.02cqw;top:.32cqw;width:13.02cqw;height:7.97cqw}#feedback{font-size:1.44cqw;bottom:.32cqw}
#confetti{border-radius:1.28cqw}.confetti-piece{width:.74cqw;height:1.33cqw;bottom:-1.06cqw}
@media(max-width:600px){.stage{width:100%;min-height:0}.board{min-height:0}footer{grid-template-columns:1fr 1fr 44px 44px}.credit{grid-column:1/-1}}
@media(hover:hover) and (pointer:fine){#answers button:hover:not(:disabled){transform:translateY(-.21cqw)}#next:hover:not(:disabled){transform:translateY(-.16cqw);box-shadow:0 .58cqw 0 #ce8646}}
#next:active:not(:disabled){transform:translateY(.16cqw);box-shadow:0 .27cqw 0 #ce8646}
