/* ---------- Het bord ---------- */
.bordwrap { width: 100%; aspect-ratio: 1; border: 4px solid var(--inkt); border-radius: 12px; overflow: hidden; background: var(--inkt); box-shadow: 0 8px 0 var(--inkt), 0 0 0 7px rgba(255, 225, 77, .25); }
.bordwrap.groot { overflow: auto; -webkit-overflow-scrolling: touch; }
.bordwrap.groot .bord { width: 230%; }
.bord {
  position: relative;
  width: 100%; aspect-ratio: 1;
  display: grid;
  grid-template-columns: 1.6fr repeat(9, 1fr) 1.6fr;
  grid-template-rows: 1.6fr repeat(9, 1fr) 1.6fr;
  gap: 1px;
  background: var(--inkt);
  container-type: inline-size;
}
.vak {
  position: relative; min-width: 0; min-height: 0; overflow: hidden;
  appearance: none; border: 0; border-radius: 0; padding: 0; margin: 0;
  display: grid; place-content: center; justify-items: center; gap: .3cqw;
  background: #F7F3FF; color: var(--inkt);
}
.vak:focus-visible { outline-offset: -3px; }
.vt { font-size: 3.4cqw; line-height: 1; }
.hoek .vt { font-size: 5.6cqw; }
.vn, .vp { display: none; font-size: 1.12cqw; line-height: 1.1; text-align: center; padding: 0 .3cqw; overflow-wrap: anywhere; }
.vn { font-weight: 900; hyphens: auto; -webkit-hyphens: auto; }
.vp { font-family: var(--cijfer); font-weight: 400; }
.groot .vn, .groot .vp, .tv .vn, .tv .vp { display: block; }
.groot .vt, .tv .vt { font-size: 2.4cqw; }
.groot .hoek .vt, .tv .hoek .vt { font-size: 4.4cqw; }

/* Kleurband aan de kant van het midden, met daarop de huizen */
.band { position: absolute; display: block; }
.onder .band { left: 0; right: 0; top: 0; height: 22%; }
.boven .band { left: 0; right: 0; bottom: 0; height: 22%; }
.links .band { top: 0; bottom: 0; right: 0; width: 22%; }
.rechts .band { top: 0; bottom: 0; left: 0; width: 22%; }
.vak.onder { padding-top: 22%; }
.vak.boven { padding-bottom: 22%; }
.vak.links { padding-right: 22%; }
.vak.rechts { padding-left: 22%; }
.hz { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: .35cqw; }
.links .hz, .rechts .hz { flex-direction: column; }
.hz b { width: 1.25cqw; height: 1.25cqw; background: var(--groen); border: .22cqw solid var(--wit); border-radius: .2cqw; }
.hz .hotel { width: 3.2cqw; background: var(--rood); }
.links .hz .hotel, .rechts .hz .hotel { width: 1.25cqw; height: 3.2cqw; }

/* Eigenaar: klein pionnetje aan de buitenrand */
.eig { position: absolute; display: block; line-height: 0; }
.onder .eig { bottom: 5%; left: 50%; transform: translateX(-50%); }
.boven .eig { top: 5%; left: 50%; transform: translateX(-50%); }
.links .eig { left: 5%; top: 50%; transform: translateY(-50%); }
.rechts .eig { right: 5%; top: 50%; transform: translateY(-50%); }
.av-xs { width: 2.9cqw; height: 2.9cqw; font-size: 0; border-width: .3cqw; }
.av-p { width: 5.8cqw; height: 5.8cqw; font-size: 2.1cqw; border-width: .4cqw; padding-top: .3cqw; }
.av-xs.aan::after, .av-p.aan::after { display: none; }

/* Het midden: dobbelstenen, beurt en pot */
.midden {
  grid-area: 2 / 2 / 11 / 11;
  display: grid; place-content: center; justify-items: center; gap: 3cqw; text-align: center;
  color: var(--wit); padding: 3cqw;
  background:
    repeating-conic-gradient(from 0deg at 50% -20%, rgba(255, 255, 255, .06) 0 5deg, transparent 5deg 12deg),
    radial-gradient(120% 90% at 50% 0%, var(--zaal-licht) 0%, var(--zaal) 70%);
}
.stenen { display: flex; gap: 3cqw; }
.steen {
  width: 14cqw; height: 14cqw; padding: 1.9cqw;
  display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); gap: .7cqw;
  background: var(--wit); border: .6cqw solid var(--inkt); border-radius: 2.6cqw;
  box-shadow: 0 1.1cqw 0 var(--inkt);
  animation: rol .7s var(--veer);
}
.steen:nth-child(1) { rotate: -6deg; }
.steen:nth-child(2) { animation-duration: .85s; rotate: 5deg; }
.steen i { border-radius: 50%; }
.steen .oog { background: var(--inkt); }
@keyframes rol { 0% { transform: translateY(-30cqw) rotate(-300deg) scale(.6); opacity: .4; } 70% { transform: translateY(1cqw) scale(1.08, .92); } }
.wiebeurt { font-family: var(--show); font-size: 4.2cqw; line-height: 1.1; color: var(--geel); text-shadow: 0 .4cqw 0 var(--roze), 0 .8cqw 0 var(--inkt); rotate: -2deg; }
.pot { font-size: 3.1cqw; font-weight: 900; }

/* Pionnen */
.pionnen { position: absolute; inset: 0; pointer-events: none; }
.pionnetje { position: absolute; line-height: 0; transform: translate(-50%, -50%); transition: left .16s linear, top .16s linear; }
.pionnetje .av { border-color: var(--inkt); box-shadow: 0 .5cqw 0 var(--inkt); }
.pionnetje.beurt { z-index: 2; }
.pionnetje.beurt .av { box-shadow: 0 0 0 .55cqw var(--geel), 0 0 0 .9cqw var(--inkt); animation: hup 1s ease-in-out infinite; }
@keyframes hup { 50% { transform: translateY(-.8cqw); } }
.pionnetje.vast .av { filter: grayscale(1); }

/* ---------- Onder het bord ---------- */
.bordactie { display: grid; gap: 8px; }
.bordactie:empty { display: none; }
.knop.groot { font-size: 1.35rem; padding: 16px 22px 13px; box-shadow: 0 6px 0 var(--inkt); }
.knop:disabled { opacity: .45; cursor: default; transform: none; }
.wacht { text-align: center; font-weight: 900; background: rgba(255, 255, 255, .08); border: 3px dashed rgba(255, 255, 255, .55); border-radius: 999px; padding: 12px 18px 10px; }
.celkaart { border-style: dashed; background: repeating-linear-gradient(90deg, var(--wit) 0 34px, #F2EEF9 34px 40px); }
.mijnvak {
  appearance: none; width: 100%; text-align: left;
  display: grid; gap: 2px;
  background: var(--wit); border: 3px solid var(--inkt); border-left: 18px solid var(--band, var(--inkt)); border-radius: 12px;
  box-shadow: 0 5px 0 var(--inkt);
  padding: 12px 14px 10px;
}
.mijnvak small, .mijnvak span { color: var(--grijs); font-size: .88rem; }
.mijnvak b { font-family: var(--show); font-weight: 400; font-size: 1.3rem; line-height: 1.15; }
.stip { width: 14px; height: 34px; flex: none; border-radius: 5px; border: 2.5px solid var(--inkt); }
.kaal { appearance: none; background: none; border: 0; padding: 0; text-align: left; }
.klein-knop { padding: 8px 14px 6px; font-size: .88rem; flex: none; white-space: nowrap; }
.veld select {
  width: 100%; appearance: none;
  border: 3px solid var(--inkt); border-radius: 14px; background: var(--wit);
  padding: 13px 14px 11px; font: inherit; font-weight: 700; color: var(--inkt);
}

/* ---------- Eigendomsbewijs ---------- */
.akte { border: 3px solid var(--inkt); border-radius: 12px; overflow: hidden; }
.aktekop { padding: 16px 14px 12px; text-align: center; font-family: var(--show); font-size: 1.4rem; line-height: 1.1; border-bottom: 3px solid var(--inkt); }
.akte dl { padding: 4px 14px; }
.akte dl div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0 5px; border-top: 2px solid var(--lijn); }
.akte dl div:first-child { border-top: 0; }
.akte dd { font-weight: 900; text-align: right; }
.akte > p { padding: 10px 14px; }
.akte > .klein { text-align: left; padding-top: 0; }
.akte .eigenaar { border-top: 3px solid var(--inkt); padding: 10px 14px; background: var(--bord); }
.akte .eigenaar small { color: var(--grijs); }
.akte .eigenaar span { font-weight: 900; }
.huurregel { font-size: 1.05rem; }
.blad { max-height: calc(100dvh - 40px); overflow-y: auto; }

/* ---------- Straf: bewust hard en luid ---------- */
.blad.luid {
  text-align: center; color: var(--inkt);
  background: repeating-linear-gradient(-45deg, var(--geel) 0 26px, #FFD21F 26px 52px);
  border-width: 5px; border-color: var(--inkt); box-shadow: 0 9px 0 var(--rood);
  animation: omhoog .28s var(--vloeiend), schud .5s .28s 3;
}
.strafkop {
  font-family: var(--show); font-weight: 400; font-size: clamp(3.4rem, 19vw, 5.6rem); line-height: .95; letter-spacing: 0;
  color: var(--rood); -webkit-text-stroke: 3px var(--inkt); paint-order: stroke fill; text-shadow: 0 6px 0 var(--inkt); rotate: -3deg;
  padding: 10px 0 6px; animation: knipper .45s steps(2) 8;
}
.blad.luid p { font-size: 1.08rem; }
@keyframes schud { 25% { transform: translateX(-9px) rotate(-1.5deg); } 75% { transform: translateX(9px) rotate(1.5deg); } }
@keyframes knipper { 50% { color: var(--wit); } }

/* ---------- Meekijkscherm voor tv of laptop (?tv) ---------- */
body.tv #app { max-width: none; padding: 26px 30px; }
.tvscherm { display: grid; grid-template-columns: min(calc(100dvh - 56px), 64vw) 1fr; gap: 28px; align-items: start; }
.tvzij { display: grid; gap: 18px; }
.tvzij h1 { font-size: clamp(1.9rem, 3.4vw, 3.4rem); line-height: 1; color: var(--geel); text-shadow: 0 .08em 0 var(--roze), 0 .16em 0 var(--inkt); rotate: -2deg; transform-origin: left center; padding-bottom: .2em; }
.tvzij .lijst, .tvzij .log { background: var(--wit); border: 4px solid var(--inkt); border-radius: 20px; padding: 4px 16px; box-shadow: 0 7px 0 var(--inkt); font-size: 1.05rem; }
.tvzij .rij.nu { background: var(--geel); margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
@media (max-width: 760px) { .tvscherm { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .steen, .blad.luid, .strafkop, .pionnetje.beurt .av { animation: none; }
  .pionnetje { transition: none; }
}

/* Groot bord (meer dan 40 vakjes): alles een maatje kleiner */
.bgroot .vt { font-size: 2.8cqw; }
.bgroot .hoek .vt { font-size: 4.8cqw; }
.bgroot .vn, .bgroot .vp { font-size: .95cqw; }
.groot .bgroot .vt, .tv .bgroot .vt { font-size: 2cqw; }
.bgroot .av-p { width: 4.6cqw; height: 4.6cqw; font-size: 1.7cqw; }
.bgroot .av-xs { width: 2.4cqw; height: 2.4cqw; }
.bgroot .hz b { width: 1cqw; height: 1cqw; }
.bgroot .hz .hotel { width: 2.6cqw; }
.bgroot .links .hz .hotel, .bgroot .rechts .hz .hotel { width: 1cqw; height: 2.6cqw; }
.bordwrap.groot .bgroot { width: 290%; }
/* Nog meer vakjes (groot bord met drankvakjes): nog een maatje kleiner */
.bvol .vt { font-size: 2.3cqw; }
.bvol .hoek .vt { font-size: 4.2cqw; }
.bvol .vn, .bvol .vp { font-size: .82cqw; }
.groot .bvol .vt, .tv .bvol .vt { font-size: 1.7cqw; }
.bvol .av-p { width: 4cqw; height: 4cqw; font-size: 1.5cqw; }
.bordwrap.groot .bvol { width: 330%; }

/* Drankvakjes: roze met een glas, zodat je ze van ver ziet */
.vak.drank { background: repeating-linear-gradient(-45deg, #FFD3EA 0 6px, #FFC2E2 6px 12px); }
.vak.drank .vn { color: #8A0F52; }
