/* ------------------------------------------------ spel */

.spel {
    position: relative;
    z-index: 1;
    height: 100vh;
    height: 100dvh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(290px, 26vw, 360px);
}
.bord-vak { position: relative; overflow-y: auto; overflow-x: hidden; padding: 14px 6px 14px 14px; min-width: 0; min-height: 0; scrollbar-width: thin; scrollbar-color: rgba(233, 194, 122, 0.4) transparent; }
.bord-houder { width: 100%; max-width: 1100px; margin: 0 auto; }
#bord { display: block; width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6)); }

.bord-bg { fill: #12030e; }
.ster { fill: #fff; opacity: 0.2; animation: twinkel 4s ease-in-out infinite; }
@keyframes twinkel { 0%, 100% { opacity: 0.1; } 50% { opacity: 0.7; } }
.zone-gloed { transition: opacity 1.5s; }

.weg, .tegel { transition: opacity 1.2s ease, filter 1.2s ease; }
.weg.dicht { opacity: 0.5; filter: saturate(0.35) brightness(0.8); }
.zone-gloed.dicht { opacity: 0.06; }
.tegel.dicht { opacity: 0.6; filter: saturate(0.4) brightness(0.8); }
.tegel.dicht.t-poort { opacity: 1; filter: none; }
.w-lijn { animation: stroom 3s linear infinite; }
@keyframes stroom { to { stroke-dashoffset: -50; } }
@keyframes flakker { from { opacity: 0.18; } to { opacity: 0.4; } }

.t-schaduw { fill: rgba(0, 0, 0, 0.5); transform: translateY(4px); }
.t-bg { stroke-width: 2.2; }
.t-ring { fill: none; stroke: rgba(255, 255, 255, 0.14); stroke-width: 1; }
.t-ic { pointer-events: none; }
.t-tekst { text-anchor: middle; font-size: 15px; font-weight: 700; letter-spacing: 0.3em; fill: var(--goud2); paint-order: stroke; stroke: #12030e; stroke-width: 5px; }
.t-tekst.groot { font-size: 18px; letter-spacing: 0.4em; fill: #ffd36e; }
.t-poort .t-bg { stroke-width: 3; }
.t-poort:not(.open):not(.dicht) .t-bg { animation: poortgloed 2s ease-in-out infinite; }
.t-poort.open .t-bg { filter: drop-shadow(0 0 10px #ffd36e); }
@keyframes poortgloed { 0%, 100% { filter: drop-shadow(0 0 2px #ffd36e); } 50% { filter: drop-shadow(0 0 14px #ffd36e); } }
@keyframes straal { 0%, 100% { transform: scale(0.9); opacity: 0.25; } 50% { transform: scale(1.12); opacity: 0.5; } }
.tegel.flits .t-bg { animation: flits 1.1s ease-out; }
@keyframes flits { 0% { filter: brightness(2.4) drop-shadow(0 0 18px #fff); } 100% { filter: none; } }

.pion { cursor: default; }
.p-binnen { transform-box: fill-box; transform-origin: center; }
.pion.actief .p-binnen { animation: wip 1.3s ease-in-out infinite; }
@keyframes wip { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.pion.actief .p-gloed { opacity: 0.8; }
.p-schaduw { fill: rgba(0, 0, 0, 0.45); }
.p-letter { text-anchor: middle; font-weight: 800; font-size: 15px; fill: #1a0410; }

/* zijbalk */

.zij {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px 18px 16px 10px;
    min-height: 0;
    overflow-y: auto;
}
.zij > * { flex: none; }
.zij-kop { font-size: 15px; padding: 2px 4px 0; }
.zij-kop .logo-groot { font-size: 1.75em; }

.zone-balk, .beurt, .tabel, .hitte {
    border-radius: var(--r);
    background: var(--glas);
    border: 1px solid var(--lijn);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.zone-balk { display: flex; gap: 12px; align-items: center; padding: 8px 14px 8px 8px; }
.zb-label { display: flex; flex-direction: column; line-height: 1.15; }
.zb-label small { color: var(--flauw); font-size: 0.75em; letter-spacing: 0.08em; text-transform: uppercase; }
.zb-label strong { font-family: var(--font-sier); font-weight: 400; font-size: 1.45em; color: var(--zk2); }

.beurt { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.beurt.nieuw { animation: nieuweBeurt 0.6s ease; }
@keyframes nieuweBeurt { 0% { transform: scale(0.96); box-shadow: 0 0 0 0 var(--zk); } 50% { transform: scale(1.02); box-shadow: 0 0 30px 0 var(--zk); } 100% { transform: none; } }
.beurt-pion { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.2em; color: #1a0410; background: radial-gradient(circle at 35% 30%, #fff, var(--kleur) 50%, #2a0618); box-shadow: 0 0 22px var(--kleur); }
.beurt-tekst { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.beurt-tekst small { color: var(--flauw); font-size: 0.75em; text-transform: uppercase; letter-spacing: 0.08em; }
.beurt-tekst strong { font-size: 1.3em; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.beurt-extra { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }

.wiel-vak { position: relative; width: min(100%, 230px, 30vh); aspect-ratio: 1; margin: 2px auto; flex: none; }
.wiel-svg { width: 100%; height: 100%; filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 26px color-mix(in srgb, var(--zk) 45%, transparent)); }
.wiel { transform-origin: 100px 100px; transform-box: view-box; }
.w-rand { fill: #1a0514; stroke: var(--goud); stroke-width: 2.5; }
.w-nr { text-anchor: middle; dominant-baseline: central; font-family: var(--font-kop); font-weight: 700; font-size: 22px; fill: #fff; paint-order: stroke; stroke: rgba(0, 0, 0, 0.45); stroke-width: 3px; }
.w-pin { fill: var(--goud2); }
.wiel-wijzer {
    position: absolute;
    left: 50%;
    top: -6px;
    width: 26px;
    height: 32px;
    transform: translateX(-50%);
    transform-origin: 50% 20%;
    background: linear-gradient(180deg, #fff1cf, var(--goud) 60%, var(--goud3));
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.6));
}
.wiel-wijzer.tik { animation: wijzertik 0.12s ease-out; }
@keyframes wijzertik { 50% { transform: translateX(-50%) rotate(-14deg); } }
.draai-knop {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 36%;
    height: 36%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff8e2, var(--goud) 45%, #7a4f14 100%);
    color: #2a0612;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: clamp(13px, 1.1vw, 16px);
    box-shadow: 0 0 0 5px rgba(26, 5, 20, 0.85), 0 0 0 7px rgba(233, 194, 122, 0.5), 0 10px 30px rgba(0, 0, 0, 0.6);
    transition: transform 0.15s ease;
}
.draai-knop:not(:disabled):hover { transform: translate(-50%, -50%) scale(1.06); }
.draai-knop:not(:disabled) { animation: roep 2.4s ease-in-out infinite; }
.draai-knop:disabled { opacity: 1; cursor: default; }
.draai-knop.draait { animation: none; }
@keyframes roep { 0%, 100% { box-shadow: 0 0 0 5px rgba(26, 5, 20, 0.85), 0 0 0 7px rgba(233, 194, 122, 0.5), 0 0 0 0 rgba(233, 194, 122, 0.5); } 50% { box-shadow: 0 0 0 5px rgba(26, 5, 20, 0.85), 0 0 0 7px rgba(233, 194, 122, 0.5), 0 0 0 18px rgba(233, 194, 122, 0); } }
.uitkomst { font-size: 2.2em; line-height: 1; animation: knal 0.5s cubic-bezier(0.2, 1.6, 0.4, 1); display: inline-block; }
@keyframes knal { from { transform: scale(0.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.tabel { padding: 6px 8px; font-size: 0.92em; }
.tr { display: grid; grid-template-columns: 10px minmax(0, 1fr) 40px 36px 48px; gap: 6px; align-items: center; padding: 7px 6px; border-radius: 12px; transition: background 0.3s; }
.tr.kop { font-size: 0.68em; color: var(--flauw); text-transform: uppercase; letter-spacing: 0.08em; padding-bottom: 2px; }
.tr.kop span:nth-child(n + 3) { text-align: center; }
.tr.nu { background: linear-gradient(90deg, color-mix(in srgb, var(--kleur) 22%, transparent), transparent); }
.tr.klaar { opacity: 0.7; }
.tr-stip { width: 10px; height: 10px; border-radius: 50%; background: var(--kleur); box-shadow: 0 0 8px var(--kleur); }

.hitte { padding: 10px 14px; }
.h-label { display: flex; justify-content: space-between; font-size: 0.85em; color: var(--zacht); margin-bottom: 6px; }
.h-label .ic { color: var(--zk); }
.h-label b { color: var(--tekst); }
.h-balk { height: 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.h-balk i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff8fb1, #ff6f61, #d65bff, #ff2d55, #ffb347); background-size: 200% 100%; box-shadow: 0 0 12px var(--zk); transition: width 1.4s cubic-bezier(0.2, 0.9, 0.3, 1); animation: vloeien 3s linear infinite; }
@keyframes vloeien { to { background-position: -200% 0; } }
.stop-knop { flex: 1; display: inline-flex; gap: 0.5em; align-items: center; justify-content: center; padding: 0.7em 1em; border-radius: 999px; background: rgba(216, 38, 79, 0.16); border: 1px solid rgba(255, 45, 85, 0.45); color: #ffd0da; font-weight: 600; transition: background 0.2s; }
.stop-knop .ic { color: #ff2d55; }
.stop-knop:hover { background: rgba(216, 38, 79, 0.3); }
.rond { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--lijn); transition: background 0.2s; flex: none; }
.rond:hover { background: rgba(255, 255, 255, 0.12); }

.lab { display: inline-flex; align-items: center; gap: 0.35em; font-size: 0.75em; padding: 0.3em 0.75em; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); color: var(--zacht); }
.lab.goud { background: rgba(233, 194, 122, 0.2); border-color: var(--goud); color: var(--goud2); }
.lab.vuur { background: linear-gradient(90deg, rgba(255, 179, 71, 0.25), rgba(255, 45, 85, 0.25)); border-color: #ff7a3d; color: #ffd9b0; }
.lab.groen { background: rgba(47, 179, 122, 0.18); border-color: #2fb37a; color: #c9f5df; }
