.tabellone {
  left: 0;
  top: 0;
  width: 1288px;
  height: 955px;
}

.tabellone .cornice {
  position: absolute;
  left: 128px;
  top: -1.53px;
  width: 1032px;
  max-width: none;
}

.tabellone .caselle {
  position: absolute;
  left: 0;
  top: 7.78px;
  width: 100%;
}

.tabellone .caselle,
.tabellone .rami,
.tabellone .scintille {
  transition: opacity .4s ease;
}

.tabellone.spento .caselle,
.tabellone.spento .rami,
.tabellone.spento .scintille {
  opacity: 0;
}

.tabellone .fila {
  display: flex;
  justify-content: center;
  gap: 3.2px;
}

.tabellone .fila + .fila {
  margin-top: -55.24px;
}

.tabellone .casella {
  position: relative;
  width: 201px;
  height: 232.08px;
}

.tabellone .casella.murata {
  z-index: 1;
}

.tabellone .casella::before,
.tabellone .muro {
  content: '';
  position: absolute;
  inset: 0;
  background: center / cover no-repeat;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.tabellone .t1::before { background-image: url('/web-assets/sito/tabellone/casella-1.webp'); }
.tabellone .t2::before { background-image: url('/web-assets/sito/tabellone/casella-2.webp'); }
.tabellone .t3::before { background-image: url('/web-assets/sito/tabellone/casella-3.webp'); }
.tabellone .t4::before { background-image: url('/web-assets/sito/tabellone/casella-4.webp'); }
.tabellone .t5::before { background-image: url('/web-assets/sito/tabellone/casella-5.webp'); }
.tabellone .t6::before { background-image: url('/web-assets/sito/tabellone/casella-6.webp'); }
.tabellone .t7::before { background-image: url('/web-assets/sito/tabellone/casella-7.webp'); }

.tabellone .m1 { background-image: url('/web-assets/sito/tabellone/muro-1.webp'); }
.tabellone .m2 { background-image: url('/web-assets/sito/tabellone/muro-2.webp'); }
.tabellone .m3 { background-image: url('/web-assets/sito/tabellone/muro-3.webp'); }
.tabellone .m4 { background-image: url('/web-assets/sito/tabellone/muro-4.webp'); }

.tabellone .rami,
.tabellone .scintille {
  position: absolute;
  left: 11.6px;
  top: -66.55px;
  width: 1264.8px;
  height: 1097.4px;
  max-width: none;
  pointer-events: none;
}

.tabellone .rami {
  object-fit: contain;
  -webkit-mask: linear-gradient(to bottom, transparent, #000 18.03%) 0 -241.43px / 100% 1338.83px no-repeat;
  mask: linear-gradient(to bottom, transparent, #000 18.03%) 0 -241.43px / 100% 1338.83px no-repeat;
}

.tabellone .rami.luce {
  filter: url(#rami-crema);
  mix-blend-mode: hard-light;
  -webkit-mask: linear-gradient(to bottom, transparent, #000 50%, transparent) 0 -230.46px / 100% 219.48px no-repeat;
  mask: linear-gradient(to bottom, transparent, #000 50%, transparent) 0 -230.46px / 100% 219.48px no-repeat;
}

.tabellone.gira .casella {
  animation: casellaEntra .3s ease-in-out both;
}

.tabellone.gira .muro {
  transform-origin: 50% 100%;
  animation: atterra .52s linear both;
}

.tabellone.gira .rami {
  animation: ramiCrescono 1.9s cubic-bezier(.45, 0, .55, 1) both;
}

.tabellone.gira .rami.luce {
  animation-name: ramiLuce;
}

@keyframes casellaEntra {
  0% {
    opacity: 0;
    transform: perspective(520px) rotateY(0deg);
    filter: brightness(1);
  }

  20% {
    opacity: 1;
  }

  49% {
    opacity: 1;
    transform: perspective(520px) rotateY(89deg);
    filter: brightness(.3);
  }

  50% {
    opacity: 1;
    transform: perspective(520px) rotateY(90deg);
    filter: brightness(.3);
  }

  51% {
    opacity: 1;
    transform: perspective(520px) rotateY(91deg);
    filter: brightness(.3);
  }

  100% {
    opacity: 1;
    transform: perspective(520px) rotateY(0deg);
    filter: brightness(1);
  }
}

@keyframes ramiCrescono {
  from {
    -webkit-mask-position: 0 1097.4px;
    mask-position: 0 1097.4px;
  }

  to {
    -webkit-mask-position: 0 -241.43px;
    mask-position: 0 -241.43px;
  }
}

@keyframes ramiLuce {
  from {
    -webkit-mask-position: 0 1108.37px;
    mask-position: 0 1108.37px;
  }

  to {
    -webkit-mask-position: 0 -230.46px;
    mask-position: 0 -230.46px;
  }
}
