/* De bedrijvenhoek, gedeeld door de richtingen: het houten bordje, het hek van de bouwers met
   gras en een kip, en de tekening in de bordjesmaker. In de kleuren van de boerderijtekening zelf.
   Het bordje van jullie is geverfd in de kleur van de richting: zet --bordje-verf, --bordje-verf-licht
   en --bordje-verf-donker (standaard oranje). */
.bb-scene {
  container-type: size;
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--bb-scene-achter, #17358f);
  box-shadow: 0 0 0 2px var(--bb-scene-rand, #101a3c);
}
.bb-doek {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}
/* Het bordje staat in de grond: de plank boven jullie pixels (--y), de paal loopt door tot de
   onderkant van het beeld. */
.bb-scene .bordje {
  position: absolute;
  left: var(--x, 62%);
  bottom: 0;
  translate: -50% 0;
  transition: left 0.7s var(--uit);
}
.bb-scene .bordje .bordje-paal {
  height: calc(var(--paal, 34px) + (100 - var(--y-getal, 84)) * 1cqh);
  transition: height 0.7s var(--uit);
}
.bb-scene .bordje.plop {
  animation: plop-bordje 0.5s var(--veer);
}
@keyframes plop-bordje {
  from {
    transform: rotate(var(--scheef, 0deg)) translateY(-18px) scale(0.85);
  }
}
.bb-post-beeld {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 6px;
  image-rendering: pixelated;
}
/* Een houten bordje: twee planken met een naad, spijkertjes, een paal, en getrapte pixelhoeken.
   De omlijning komt van vier harde schaduwen om de vorm, zodat ook een pijl een nette rand heeft. */
.bordje {
  --hout: #b5854b;
  --hout-licht: #c99b62;
  --hout-donker: #8f6534;
  --hout-rand: #583b24;
  --letter: #3a2410;
  display: inline-grid;
  justify-items: center;
  transform: rotate(var(--scheef, 0deg));
  transform-origin: 50% 100%;
  transition: transform 0.4s var(--veer);
}
.bordje-plank {
  display: block;
  filter: drop-shadow(3px 0 0 var(--hout-rand)) drop-shadow(-3px 0 0 var(--hout-rand)) drop-shadow(0 3px 0 var(--hout-rand)) drop-shadow(0 -3px 0 var(--hout-rand));
}
.bordje-naam {
  position: relative;
  display: block;
  padding: 9px 20px 10px;
  background:
    linear-gradient(var(--hout-donker), var(--hout-donker)) 0 50% / 100% 2px no-repeat,
    linear-gradient(90deg, transparent 18%, rgba(88, 59, 36, 0.18) 18% 30%, transparent 30% 62%, rgba(88, 59, 36, 0.14) 62% 70%, transparent 70%) 0 25% / 100% 1px no-repeat,
    linear-gradient(90deg, transparent 40%, rgba(88, 59, 36, 0.16) 40% 54%, transparent 54%) 0 76% / 100% 1px no-repeat,
    linear-gradient(180deg, var(--hout-licht) 0 3px, var(--hout) 3px);
  color: var(--letter);
  font-weight: 800;
  font-stretch: 88%;
  font-size: 0.9375rem;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  clip-path: polygon(3px 0, calc(100% - 3px) 0, calc(100% - 3px) 3px, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) calc(100% - 3px), calc(100% - 3px) 100%, 3px 100%, 3px calc(100% - 3px), 0 calc(100% - 3px), 0 3px, 3px 3px);
}
.bordje-naam::before,
.bordje-naam::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  background: var(--hout-rand);
}
.bordje-naam::before {
  left: 7px;
}
.bordje-naam::after {
  right: 7px;
}
.bordje-paal {
  display: block;
  width: 10px;
  height: var(--paal, 30px);
  margin-top: 3px;
  background: linear-gradient(90deg, var(--hout-licht) 0 3px, #8f6534 3px 7px, #6b4a2f 7px);
  box-shadow:
    3px 0 0 var(--hout-rand),
    -3px 0 0 var(--hout-rand);
}
.bordje-groot .bordje-naam {
  padding: 12px 24px 13px;
  font-size: 1.125rem;
}
.bordje-groot .bordje-naam::before {
  left: 9px;
}
.bordje-groot .bordje-naam::after {
  right: 9px;
}
.bordje-groot .bordje-paal {
  width: 12px;
  height: var(--paal, 34px);
}
/* Het bordje van jullie: geverfd in de kleur van de richting */
.bordje-jullie {
  --hout: var(--bordje-verf, #ff6a1a);
  --hout-licht: var(--bordje-verf-licht, #ff9050);
  --hout-donker: var(--bordje-verf-donker, #d95510);
  --letter: var(--bordje-letter, #101a3c);
}
.bordje-jullie .bordje-paal {
  background: linear-gradient(90deg, #c99b62 0 3px, #8f6534 3px 7px, #6b4a2f 7px);
}
.bordje-titel .bordje-naam {
  padding: 12px 24px 13px;
  font-size: 1.0625rem;
}
.bordje-pijl .bordje-naam {
  padding-right: 34px;
  clip-path: polygon(3px 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 3px 100%, 3px calc(100% - 3px), 0 calc(100% - 3px), 0 3px, 3px 3px);
}
.bordje-pijl .bordje-naam::after {
  right: 22px;
}
.bordje-links .bordje-naam {
  padding-left: 34px;
  padding-right: 20px;
  clip-path: polygon(18px 0, calc(100% - 3px) 0, calc(100% - 3px) 3px, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) calc(100% - 3px), calc(100% - 3px) 100%, 18px 100%, 0 50%);
}
.bordje-links .bordje-naam::before {
  left: 22px;
}

/* Het hek van de bouwers: gras, het witte hek en een rij bordjes, over de hele breedte */
.bb-hek {
  position: relative;
  height: 250px;
  margin-top: clamp(24px, 4vw, 56px);
  overflow: hidden;
  background: url('pixel/hek.svg') repeat-x left 0 bottom 58px / auto 72px;
}
.bb-hek::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 68px;
  background: url('pixel/gras-vlak.svg') repeat 0 0 / 64px 64px;
}
.bb-hek::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 68px;
  height: 12px;
  background: url('pixel/graskant.svg') repeat-x 0 0 / 64px 12px;
}
.bb-hek-rij {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  width: min(100% - 2 * clamp(16px, 4.2vw, 48px), 1240px);
  height: 100%;
  margin-inline: auto;
  padding-bottom: 30px;
}
.bb-hek .bordje:hover {
  transform: rotate(calc(var(--scheef, 0deg) * -1.5));
}
/* Een kip die over het gras loopt */
.bb-kip {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 16px;
  width: 36px;
  height: 36px;
  background: url('pixel/kip.svg') 0 0 / 72px 36px no-repeat;
  image-rendering: pixelated;
  animation:
    kip-loop 32s linear infinite,
    kip-poten 0.5s steps(2) infinite;
}
@keyframes kip-poten {
  to {
    background-position: -72px 0;
  }
}
@keyframes kip-loop {
  from {
    transform: translateX(-60px);
  }
  to {
    transform: translateX(calc(100vw + 60px));
  }
}
@media (max-width: 767px) {
  .bb-hek {
    height: 220px;
  }
  .bb-hek-rij {
    justify-content: space-around;
    gap: 10px;
  }
  .bb-hek .bordje:nth-child(n + 5),
  .bb-hek .bordje:nth-child(3) {
    display: none;
  }
}
@media (max-width: 479px) {
  .bb-hek .bordje:nth-child(2) {
    display: none;
  }
  .bb-hek .bordje-titel .bordje-naam {
    width: 9.5em;
    white-space: normal;
    text-wrap: balance;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bb-kip {
    animation: none;
    transform: translateX(12vw);
  }
}
html.is-easy .bb-kip {
  transform: translateX(12vw);
}
