/* ------------------------------------------------ lagen */

#lagen { position: relative; z-index: 50; }
.laag {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(8, 1, 6, 0.55);
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    opacity: 0;
    transition: opacity 0.35s ease, backdrop-filter 0.35s ease;
    overflow-y: auto;
}
.laag.zicht { opacity: 1; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.laag.gaat { opacity: 0; pointer-events: none; }
.laag-inhoud { width: 100%; display: grid; place-items: center; }

.vraag-paneel, .stop-paneel, .regels-paneel, .finale-paneel {
    width: min(620px, 100%);
    padding: 34px;
    border-radius: 28px;
    text-align: center;
    animation: omhoog 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}
.vraag-paneel h2, .stop-paneel h2 { font-family: var(--font-kop); margin: 0.2em 0 0.3em; }
.vp-ic, .sp-ic { font-size: 2.6em; }
.sp-knoppen { display: grid; gap: 10px; margin-top: 1.2em; }
.route { display: flex; flex-direction: column; align-items: center; gap: 0.4em; padding: 1.4em 1em; border-radius: 20px; border: 1.5px solid; transition: transform 0.2s, box-shadow 0.2s; }
.route .ic { font-size: 2.2em; }
.route strong { font-size: 1.2em; }
.route span { font-size: 0.88em; color: var(--zacht); }
.route.snel { border-color: #ff7a3d; background: linear-gradient(160deg, rgba(255, 122, 61, 0.22), rgba(255, 45, 85, 0.12)); }
.route.snel .ic { color: #ffb347; }
.route.lang { border-color: rgba(90, 209, 201, 0.6); background: linear-gradient(160deg, rgba(90, 209, 201, 0.14), rgba(255, 255, 255, 0.02)); }
.route.lang .ic { color: #5ad1c9; }
.route:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -14px currentColor; }

.mini-rij { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 1em; }
.mini-kaart { text-align: left; padding: 18px; border-radius: 18px; display: flex; flex-direction: column; gap: 10px; min-height: 160px; transition: transform 0.2s; }
.mini-kaart:hover { transform: translateY(-4px) rotate(-1deg); }
.mk-type { font-weight: 700; font-size: 0.85em; text-transform: uppercase; letter-spacing: 0.08em; display: flex; gap: 0.4em; align-items: center; }

/* ------------------------------------------------ kaart */

.kaart-stage { perspective: 1600px; }
.kaart {
    position: relative;
    width: 100%;
}
.kaart.weg { transition: transform 0.38s ease-in, opacity 0.38s ease-in; transform: translateY(-40px) scale(0.9) rotate(-3deg); opacity: 0; }
@keyframes kaartIn { from { opacity: 0; } to { opacity: 1; } }
.kaart-voor, .kaart-achter {
    inset: 0;
    overflow: hidden;
}
.kaart.info .kaart-voor { position: relative; }
.ka-patroon { position: absolute; inset: 0; opacity: 0.18; background-image: radial-gradient(circle, var(--goud2) 1.2px, transparent 1.6px); background-size: 18px 18px; }
.ka-midden { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; font-family: var(--font-sier); font-size: 1.6em; color: var(--goud2); }
.ka-midden .ic { font-size: 3.4em; color: var(--tk); filter: drop-shadow(0 0 20px var(--tk)); }
.kaart-voor {
    position: relative;
    display: flex;
    flex-direction: column;
}
.kaart.info .kaart-voor { align-items: center; text-align: center; }
.k-water { position: absolute; right: -50px; bottom: -20px; font-size: 240px; color: var(--tk); opacity: 0.045; pointer-events: none; transform: rotate(-12deg); }
.k-water .ic { width: 1em; height: 1em; }
.k-uitleg { text-align: center; margin: 4px 0 0; }
.k-kop { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.k-type { display: inline-flex; gap: 0.45em; align-items: center; text-transform: uppercase; border-radius: 999px; }
.k-wie { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.kw-p { border-radius: 999px; }
.kw-en { font-family: var(--font-sier); }
.kw-iedereen { display: inline-flex; gap: 0.5em; align-items: center; font-weight: 700; }
.k-midden { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 10px 0; }
.k-tekst { text-align: center; margin: 0.4em 0; }
.kaart.info h2 { font-family: var(--font-sier); font-weight: 400; color: var(--tk); font-size: 2em; margin: 0.1em 0; }
.k-vraag { text-align: center; font-size: 1.25em; margin: 0 0 0.6em; }
.k-hint { text-align: center; font-size: 0.92em; margin: 0.8em 0 0; }
.ab { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; }
.ab-optie { padding: 18px 14px; border-radius: 18px; font-size: 1.15em; text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; }
.ab-optie i { font-style: normal; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; }
.ab-of { align-self: center; font-family: var(--font-sier); }
.aftel { margin: 10px auto 0; min-height: 90px; display: grid; place-items: center; color: var(--zacht); }
.tel { font-family: var(--font-kop); font-size: 4em; color: var(--tk); animation: knal 0.5s cubic-bezier(0.2, 1.6, 0.4, 1); text-shadow: 0 0 30px var(--tk); }
.tel.wijs { font-size: 3em; color: #fff; }
.k-labels { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 6px 0 10px; }

.rollen { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rol small { display: block; text-align: center; color: var(--flauw); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72em; margin-bottom: 6px; }

.timer { display: grid; grid-template-columns: 74px 1fr auto; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 18px; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.08); margin-bottom: 12px; }
.timer > svg { width: 74px; height: 74px; transform: rotate(-90deg); }
.tm-voor { fill: none; stroke-width: 9; stroke-linecap: round; }
.tm-tijd { font-size: 2em; font-variant-numeric: tabular-nums; }
.tm-knop { padding: 0.6em 1.1em; border-radius: 999px; display: inline-flex; gap: 0.4em; align-items: center; font-weight: 600; }
.timer.af { animation: pulsje 0.8s ease 3; border-color: var(--tk); }
@keyframes pulsje { 50% { box-shadow: 0 0 30px var(--tk); } }

.k-voet { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; }
.k-knoppen { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.k-knoppen.midden { justify-content: center; margin-top: 1.2em; }
