@font-face { font-family: 'Andika'; src: url(andika-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Andika'; src: url(andika-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }

:root { --roze: #ff7aa8; --roze-d: #c94a78; --mint: #7fd8c0; --goud: #f6c234; --goud-d: #b8860b; --bruin: #6b3f1d; --room: #fff8ec; --groen: #2fb35f; --rood: #e0533f; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #2a1a12; overflow: hidden; }
body { font-family: 'Andika', 'Trebuchet MS', Arial, sans-serif; color: #3a2410; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
#buiten { position: fixed; inset: 0; }
#stage { position: absolute; left: 0; top: 0; width: 1600px; height: 900px; transform-origin: 0 0; overflow: hidden; background: #f5d9c4; }
#draai { display: none; }
@media (orientation: portrait) and (max-width: 700px) {
  #draai { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; padding: 10px 14px; border-radius: 12px; background: #fff; color: #222; font-size: 15px; text-align: center; z-index: 99; }
}
button { font-family: inherit; cursor: pointer; color: inherit; border: 0; }
.verborgen { display: none !important; }

.decor { position: absolute; inset: 0; background: linear-gradient(#ffe3ec 0 60%, #c99a6a 60%); background-size: cover; background-position: center; }
.decor.wazig { filter: blur(5px) brightness(.85); transform: scale(1.04); }
.scherm { position: absolute; inset: 0; }

.balk { position: absolute; left: 0; right: 0; top: 0; height: 84px; display: flex; align-items: center; gap: 18px; padding: 0 26px; z-index: 30; }
.balk .titel { font-size: 30px; font-weight: 700; color: #fff; text-shadow: 0 2px 0 #6b3f1d, 0 0 10px rgba(60,30,10,.8); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.knopje { height: 56px; min-width: 56px; padding: 0 18px; border-radius: 16px; background: linear-gradient(#fff, #ffe1ec); border: 3px solid var(--roze-d); box-shadow: 0 4px 0 var(--roze-d); font-size: 22px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #7a2a4a; }
.knopje:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--roze-d); }
.muntteller { height: 56px; padding: 0 20px 0 10px; border-radius: 30px; background: rgba(60,30,10,.75); border: 3px solid var(--goud-d); display: flex; align-items: center; gap: 10px; font-size: 28px; font-weight: 700; color: var(--goud); }
.muntteller.pop { animation: pop .3s; }
@keyframes pop { 50% { transform: scale(1.18); } }
.munticoon { display: inline-block; vertical-align: middle; width: 38px; height: 38px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6c0, #f6c234 35%, #b8860b 75%); box-shadow: inset 0 0 0 3px #9a6f05, inset 0 0 0 6px #f7d65a; position: relative; }
.munticoon::after { content: '€'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #9a6f05; font-size: 20px; font-weight: 700; }

.paneel { position: absolute; background: var(--room); border: 5px solid var(--roze-d); border-radius: 28px; box-shadow: 0 0 0 5px #fff inset, 0 18px 40px rgba(60,30,10,.45); }
.grote-knop { height: 88px; padding: 0 40px; border-radius: 24px; font-size: 36px; font-weight: 700; background: linear-gradient(#ffb3cd, #ff7aa8 55%, #e0588a); color: #fff; text-shadow: 0 2px 0 rgba(120,20,60,.4); box-shadow: 0 7px 0 #a8355f, 0 0 24px rgba(255,122,168,.4); }
.grote-knop:active { transform: translateY(4px); box-shadow: 0 3px 0 #a8355f; }
.kleine-knoppen { display: flex; gap: 12px; margin-top: 18px; }
.klein { font-size: 20px; color: #8a6a4a; }

/* breuk */
.br { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; line-height: 1; font-weight: 700; margin: 0 4px; }
.br i { font-style: normal; padding: 0 4px; }
.br i:first-child { border-bottom: 3px solid currentColor; padding-bottom: 2px; }
.br i:last-child { padding-top: 2px; }

/* start */
.logo { position: absolute; left: 700px; top: 60px; width: 860px; text-align: center; z-index: 5; }
.logo h1 { margin: 0; font-size: 112px; line-height: .95; font-weight: 700; color: #fff; -webkit-text-stroke: 4px #c94a78; text-shadow: 0 8px 0 #c94a78, 0 14px 24px rgba(0,0,0,.35); transform: rotate(-2deg); }
.logo p { margin: 12px 0 0; font-size: 30px; font-weight: 700; color: #fff; text-shadow: 0 2px 0 #6b3f1d, 0 0 12px rgba(60,30,10,.9); }
.startpaneel { left: 760px; top: 400px; width: 740px; padding: 26px 34px; }
.schakel { display: flex; align-items: center; gap: 16px; padding: 12px 18px 12px 12px; border-radius: 18px; background: #ffeef4; font-size: 22px; text-align: left; width: 100%; color: #3a2410; }
.schakel .bol { width: 86px; height: 46px; border-radius: 30px; background: #d8c3b0; position: relative; flex: none; transition: background .2s; }
.schakel .bol::after { content: ''; position: absolute; left: 5px; top: 5px; width: 36px; height: 36px; border-radius: 50%; background: #fff; transition: left .2s; box-shadow: 0 2px 4px rgba(0,0,0,.3); }
.schakel.aan .bol { background: var(--rood); }
.schakel.aan.groen .bol { background: var(--groen); }
.schakel.aan .bol::after { left: 45px; }
.schakel b { font-size: 24px; }
.schakel small { display: block; color: #8a6a4a; font-size: 18px; }

.figuur { position: absolute; background-size: contain; background-repeat: no-repeat; background-position: bottom center; pointer-events: none; }
.figuur svg { width: 100%; height: 100%; }
.noor { z-index: 5; filter: drop-shadow(0 10px 10px rgba(60,30,10,.35)); }
.noor.nieuw { animation: in .35s ease-out; }
@keyframes in { from { transform: translateY(14px) scale(.97); opacity: .5; } }
.ballon { position: absolute; z-index: 25; max-width: 470px; padding: 16px 22px; border-radius: 22px; background: #fff; color: #3a2410; font-size: 25px; line-height: 1.25; font-weight: 700; box-shadow: 0 8px 20px rgba(60,30,10,.35); border: 3px solid var(--roze-d); }
.ballon::after { content: ''; position: absolute; left: 34px; bottom: -20px; border: 12px solid transparent; border-top: 16px solid var(--roze-d); }
.ballon.onder::after { display: none; }
.ballon.leeg { display: none; }

/* week */
.dagen { position: absolute; left: 60px; top: 110px; width: 1480px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; z-index: 5; }
.dagkaart { height: 300px; border-radius: 26px; background: var(--room); border: 5px solid var(--roze-d); box-shadow: 0 8px 0 #a8355f, 0 14px 30px rgba(60,30,10,.35); padding: 14px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; position: relative; color: #3a2410; }
.dagkaart:active { transform: translateY(4px); }
.dagkaart .nr { font-size: 22px; font-weight: 700; color: #fff; background: var(--roze); padding: 2px 16px; border-radius: 14px; }
.dagkaart .vb { font-size: 40px; font-weight: 700; color: var(--roze-d); min-height: 90px; display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.1; }
.dagkaart .vb small { font-size: 22px; }
.dagkaart .vb .groot { font-size: 46px; }
.dagkaart h3 { margin: 0; font-size: 26px; text-align: center; line-height: 1.1; }
.dagkaart .gr { font-size: 18px; color: #8a6a4a; }
.dagkaart .sterren { font-size: 36px; color: #e2d2c0; letter-spacing: 3px; line-height: 1; }
.dagkaart .sterren .s { color: var(--goud); text-shadow: 0 2px 0 #9a6f05; }
.dagkaart.dicht { filter: grayscale(.7); opacity: .65; }
.dagkaart.dicht::after { content: '🔒'; position: absolute; right: 14px; top: 10px; font-size: 32px; }
.dagkaart.klaar { border-color: var(--goud-d); box-shadow: 0 8px 0 #9a6f05, 0 0 24px rgba(246,194,52,.6); }

/* spel */
.toonbank { position: absolute; inset: 0; z-index: 6; background-size: cover; background-position: center; clip-path: inset(66% 0 0 0); pointer-events: none; }
.wachtrij { position: absolute; left: 50%; top: 16px; transform: translateX(-50%); display: flex; gap: 10px; z-index: 31; }
.wachtrij span { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.75); border: 3px solid var(--roze-d); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; color: var(--roze-d); }
.wachtrij .nu { background: var(--roze); color: #fff; box-shadow: 0 0 14px rgba(255,122,168,.9); }
.wachtrij .af { background: var(--groen); color: #fff; border-color: #1d7a3e; }
.wachtrij .boos { background: var(--rood); color: #fff; border-color: #8a2a1a; }

.klant { z-index: 8; filter: drop-shadow(0 12px 12px rgba(60,30,10,.4)); transform-origin: 50% 100%; }
.klant.komt { animation: komt .7s cubic-bezier(.2,.8,.3,1.1); }
@keyframes komt { from { transform: translateX(520px); } }
.klant.blij { animation: blij .5s 2; }
@keyframes blij { 50% { transform: translateY(-30px) scaleY(1.03); } }
.klant.ongeduldig { animation: tik .3s infinite; filter: drop-shadow(0 0 18px rgba(224,83,63,.7)); }
@keyframes tik { 50% { transform: rotate(1.5deg); } }
.klant.stoom::before { content: '💢'; position: absolute; left: 30%; top: 0; font-size: 70px; animation: pop .4s infinite; }
.klant.weg { animation: weg .8s ease-in forwards; }
@keyframes weg { 30% { transform: translateY(-20px); } 100% { transform: translateX(560px); } }
.klant.boosweg { animation: boosweg .8s ease-in forwards; filter: sepia(.5) hue-rotate(-30deg) saturate(2); }
@keyframes boosweg { 20% { transform: rotate(-4deg); } 100% { transform: translateX(560px) rotate(4deg); } }

.bestelling { position: absolute; left: 1090px; top: 100px; width: 470px; z-index: 12; padding: 16px 22px 18px; border-radius: 26px; background: #fff; border: 4px solid var(--bruin); box-shadow: 0 10px 22px rgba(60,30,10,.35); text-align: center; }
.bestelling::after { content: ''; position: absolute; right: 150px; bottom: -24px; border: 14px solid transparent; border-top: 20px solid var(--bruin); }
.bestelling.nieuw { animation: popin .35s cubic-bezier(.3,1.6,.5,1); }
@keyframes popin { from { transform: scale(.3); opacity: 0; } }
.bestelling .wie { font-size: 20px; font-weight: 700; color: #8a6a4a; }
.bestelling .wat { font-size: 34px; font-weight: 700; line-height: 1.25; }
.bestelling .wat .br { font-size: 44px; color: var(--roze-d); }
.bestelling .wat .groot { font-size: 50px; color: var(--roze-d); }
.bestelling .wat small { font-size: 26px; }
.bestelling .hoor { position: absolute; right: 10px; top: 8px; width: 44px; height: 44px; border-radius: 50%; background: #ffeef4; font-size: 22px; }
.geduld { position: absolute; left: 1150px; top: 64px; width: 350px; height: 26px; border-radius: 14px; background: rgba(60,30,10,.4); border: 3px solid #fff; z-index: 13; overflow: visible; }
.geduld i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 10px; transition: width .2s linear, background .3s; }
.geduld span { position: absolute; right: -46px; top: -12px; font-size: 38px; }

.bord { position: absolute; left: 470px; top: 210px; width: 660px; height: 480px; z-index: 10; display: flex; align-items: center; justify-content: center; gap: 20px; }
.bord::before { content: ''; position: absolute; left: 60px; right: 60px; bottom: 6px; height: 70px; border-radius: 50%; background: radial-gradient(ellipse, rgba(60,30,10,.35), rgba(60,30,10,0) 70%); }
.bord.nieuw { animation: popin .4s; }
.bord.schud { animation: schud .45s; }
@keyframes schud { 20% { transform: translateX(-12px); } 40% { transform: translateX(12px); } 60% { transform: translateX(-7px); } 80% { transform: translateX(5px); } }
.taartsvg { width: 440px; height: 440px; overflow: visible; filter: drop-shadow(0 10px 8px rgba(60,30,10,.35)); position: relative; }
.taartsvg.plaat { width: 600px; height: 407px; }
.bord.twee .taartsvg { width: 320px; height: 320px; }
.bord.twee .taartsvg.plaat { width: 320px; height: 217px; }
.stuk { cursor: pointer; transition: transform .2s; }
.stuk .rand { fill: none; stroke: #fff; stroke-width: 1.6; }
.stuk:hover > path:first-child, .stuk:hover > rect:first-child { filter: brightness(1.12); }
.stuk.gekozen .rand { stroke: #ff3d85; stroke-width: 3.5; filter: drop-shadow(0 0 4px #fff); }
.stuk.gekozen > path:first-child, .stuk.gekozen > rect:first-child { filter: brightness(1.15) saturate(1.2); }
.bord.snij .rand { animation: snij .5s ease-out; }
@keyframes snij { from { stroke-dasharray: 0 400; } to { stroke-dasharray: 400 0; } }
.stuk.weg { transition: transform .7s cubic-bezier(.5,0,.7,.4), opacity .7s; transform: translate(260px, -40px) scale(.4) !important; opacity: 0; }
.schalen { display: grid; gap: 14px; justify-content: center; align-content: center; position: relative; }
.schalen.n1 { grid-template-columns: 1fr; }
.schalen.n2 { grid-template-columns: repeat(2, auto); } .schalen.n3 { grid-template-columns: repeat(3, auto); } .schalen.n4 { grid-template-columns: repeat(4, auto); }
.schalen.n5 { grid-template-columns: repeat(5, auto); } .schalen.n6 { grid-template-columns: repeat(3, auto); } .schalen.n8 { grid-template-columns: repeat(4, auto); }
.schaal { padding: 10px; border-radius: 50px; background: radial-gradient(ellipse, #fff 60%, #f1e2cf); border: 4px solid #e8d2b8; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; max-width: 330px; cursor: pointer; transition: transform .2s, border-color .2s; }
.schalen.n1 .schaal { max-width: 620px; border-radius: 40px; }
.schaal i { width: 60px; height: 60px; background-size: contain; background-repeat: no-repeat; }
.schalen.n1 .schaal i { width: 76px; height: 76px; }
.schaal i.svgk { border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f3c27a, #c98a3a); }
.schaal:hover { border-color: #ffb3cd; }
.schaal.gekozen { border-color: #ff3d85; transform: translateY(-10px); box-shadow: 0 0 0 4px #fff, 0 0 20px rgba(255,61,133,.6); }
.schaal.weg { transition: transform .7s, opacity .7s; transform: translate(260px, -60px) scale(.3); opacity: 0; }

.gekozeninfo { position: absolute; left: 470px; width: 660px; top: 690px; text-align: center; font-size: 26px; font-weight: 700; color: #fff; text-shadow: 0 2px 0 #6b3f1d, 0 0 8px rgba(60,30,10,.9); z-index: 12; }
.gekozeninfo .br { font-size: 30px; color: #ffe27a; }
.messen { position: absolute; left: 250px; top: 772px; width: 820px; display: flex; gap: 8px; align-items: center; justify-content: center; z-index: 12; padding: 10px 14px; border-radius: 22px; background: rgba(255,248,236,.92); border: 4px solid var(--roze-d); }
.meslabel { font-size: 22px; font-weight: 700; margin-right: 6px; white-space: nowrap; }
.mes { min-width: 66px; height: 70px; padding: 0 10px; border-radius: 16px; font-size: 32px; font-weight: 700; background: linear-gradient(#fff, #f3e5d6); border: 3px solid #c9a98a; box-shadow: 0 5px 0 #a5876a; color: #6b3f1d; }
.mes.aan { background: linear-gradient(#ffd0e1, #ff7aa8); color: #fff; border-color: #c94a78; box-shadow: 0 5px 0 #a8355f; }
.mes:active { transform: translateY(3px); box-shadow: 0 2px 0 #a5876a; }
.kapot { font-size: 24px; font-weight: 700; color: #a8355f; padding: 12px; }
.knoppenrij { position: absolute; left: 1090px; top: 772px; display: flex; gap: 12px; z-index: 14; }
.knoppenrij .knopje { height: 88px; }
.hulppaneel { left: 20px; top: 300px; width: 450px; padding: 18px 20px; z-index: 26; animation: popin .3s; }
.hulppaneel .tip { font-size: 23px; line-height: 1.35; }
.hulppaneel .tip .br { font-size: 26px; color: var(--roze-d); }
.stroken { margin-top: 10px; }
.strookrij { margin-top: 8px; }
.strookrij .lab { font-size: 19px; font-weight: 700; display: block; }
.strookrij .lab .br { font-size: 18px; }
.strook { display: flex; height: 30px; border: 3px solid #6b3f1d; border-radius: 6px; overflow: hidden; background: #fff; }
.strook i { flex: 1; border-right: 1px solid #c9a98a; }
.strook i.eind { border-right: 3px solid #6b3f1d; }
.strook i:last-child { border-right: 0; }
.strook i.jij { background: #ffb36b; }
.strook i.wil { background: #6fd39a; }

.laag { position: absolute; inset: 0; z-index: 50; background: rgba(60,30,10,.45); display: flex; align-items: center; justify-content: center; }
.uitslag { position: relative; width: 820px; padding: 34px 40px; text-align: center; animation: popin .4s; }
.uitslag h2 { margin: 0; font-size: 56px; color: var(--roze-d); }
.uitslag p { font-size: 27px; margin: 12px 0; }
.uitslag .sterren { font-size: 96px; color: #eadccc; letter-spacing: 10px; line-height: 1.1; }
.uitslag .sterren .s { color: var(--goud); display: inline-block; animation: ster .6s backwards cubic-bezier(.3,1.8,.5,1); text-shadow: 0 4px 0 #9a6f05; }
@keyframes ster { from { transform: scale(0) rotate(-180deg); } }
.uitslag .knoppen { display: flex; gap: 14px; justify-content: center; align-items: center; margin-top: 18px; flex-wrap: wrap; }

.muntlaag { position: absolute; inset: 0; z-index: 60; pointer-events: none; perspective: 900px; transform-style: preserve-3d; }
.vliegmunt { position: absolute; left: 0; top: 0; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6c0, #f6c234 35%, #b8860b 75%); box-shadow: inset 0 0 0 4px #9a6f05, inset 0 0 0 8px #f7d65a, 0 0 14px rgba(246,194,52,.6); }

.film { position: absolute; inset: 0; z-index: 80; background: #000; }
.film video { width: 100%; height: 100%; object-fit: cover; }
.film .ondertitel { position: absolute; left: 160px; right: 160px; bottom: 50px; text-align: center; font-size: 34px; font-weight: 700; color: #fff; text-shadow: 0 2px 0 #000, 0 0 12px #000, 0 0 4px #000; }
.film .sla { position: absolute; right: 30px; top: 26px; }
