/* ================================= main start ================================= */
.main {
  display: flex;
  align-items: center;
  justify-content: center;
}

/*==========  playfields start  ==========*/
.playfields {
  display: flex;
  justify-content: center;
  flex: 1;
  position: relative;
  height: -webkit-fill-available;
  align-items: center;
  max-width: 70rem;
  width: 100%;
  margin-bottom: 30px;
}

.mobile.wrapper .playfields {
  height: 100%;
  width: 100%;
  margin-bottom: 5%;
  /*top: -1%;*/
}

.playfield {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  aspect-ratio: 70 / 70;
  width: calc(100% / 2.6);
  display: flex;
}

/*==========  playfields end  ==========*/

/*==========  tiles start  ==========*/
.tiles {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  aspect-ratio: 70 / 70;
  width: calc(100% / 2.6);
  display: flex;
}

.tile {
  position: absolute;
  width: 39.5%;
  height: 39.5%;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: none;
  cursor: default;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  /* border-radius: 3px;
  overflow: hidden; */
  display: block;
}

.tile-outline {
  position: absolute;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  pointer-events: none;
  cursor: default;
  z-index: 5;
  display: block;
}

.for-tiles-group {
  display: none;
}

.for-tiles-group-1,
.for-tiles-group-2,
.for-tiles-group-3,
.for-tiles-group-4,
.for-tiles-group-5,
.for-tiles-group-6,
.for-tiles-group-7 {
  position: absolute;
  width: 39.5%;
  height: 39.5%;
  transform: translate(-50%, -50%) rotate(0deg);
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
  -webkit-tap-highlight-color: transparent;
  touch-action: pan-y;
}

.for-tiles-group-5 {
  transform: translate(-50%, -50%) rotate(90deg);
}

.for-tiles-group-1 {
  left: 12.7515%;
  top: 66.8558%;
}

.for-tiles-group-2 {
  left: 33.9%;
  top: 63.8%;
}

.for-tiles-group-3 {
  left: 59.0161%;
  top: 64.2192%;
}

.for-tiles-group-4 {
  left: 84.6402%;
  top: 67.1%;
}

.for-tiles-group-5 {
  left: 14.2281%;
  top: 87.6235%;
}

.for-tiles-group-6 {
  left: 47.1231%;
  top: 87.9908%;
}

.for-tiles-group-7 {
  left: 79.52%;
  top: 93.8858%;
}

.tile-count {
  font-family: "Arial", sans-serif !important;
  font-size: 1.2em;
  color: gray;
  font-weight: 400;
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.for-tiles-group-1 .tile-count {
  top: 39%;
  left: 72%;
}

.for-tiles-group-2 .tile-count {
  top: 54%;
  left: 69%;
}

.for-tiles-group-3 .tile-count {
  top: 45%;
  left: 77%;
}

.for-tiles-group-4 .tile-count {
  top: 45%;
  left: 77%;
}

.for-tiles-group-5 .tile-count {
  top: 28%;
  left: 66%;
  transform: translate(-50%, -50%) rotate(-90deg);
}

.for-tiles-group-6 .tile-count {
  top: 40%;
  left: 64%;
}

.for-tiles-group-7 .tile-count {
  top: 48%;
  left: 79%;
}

.mobile.wrapper .playfield {
  position: absolute;
  top: 8.5%;
  left: 50%;

  /*transform: translate(-50%, -50%);*/
}

.mobile .tiles,
.mobile .for-tiles-group {
  top: 38%;
  left: 50%;
  transform: translate(-50%, 0%);
  position: absolute;
  display: block;
}

.tile_1,
.drop-zone_1 {
  top: 6%;
  left: -67%;
}

.tile_2,
.drop-zone_2 {
  top: 6%;
  left: -36%;
}

.tile_3,
.drop-zone_4 {
  top: 2%;
  left: -14%;
}

.tile_4,
.drop-zone_4 {
  top: 37%;
  left: -78%;
}

.tile_5,
.drop-zone_5 {
  top: 39%;
  left: -29%;
}

.tile_6,
.drop-zone_6 {
  top: 59%;
  left: -62%;
}

.tile_7,
.drop-zone_7 {
  top: 56%;
  left: -36%;
}

.tile_8,
.drop-zone_8 {
  top: 50%;
  left: -14%;
}

.tile_9,
.drop-zone_9 {
  top: 92%;
  left: -52%;
}

.tile_10,
.drop-zone_10 {
  top: 88%;
  left: -29%;
}

.tile_11,
.drop-zone_11 {
  top: 106%;
  left: -22%;
}

.tile_12,
.drop-zone_12 {
  top: 33%;
  left: 159%;
}

.tile_13,
.drop-zone_13 {
  top: 124%;
  left: 13%;
}

.tile_14,
.drop-zone_14 {
  top: 111%;
  left: 50%;
}

.tile_15,
.drop-zone_15 {
  top: 124%;
  left: 87%;
}

.tile_16,
.drop-zone_16 {
  top: 80%;
  left: 160%;
}

.tile_17,
.drop-zone_17 {
  top: 2%;
  left: 114%;
}

.tile_18,
.drop-zone_18 {
  top: 6%;
  left: 136%;
}

.tile_19,
.drop-zone_19 {
  top: 39%;
  left: 129%;
}

.tile_20,
.drop-zone_20 {
  top: 6%;
  left: 167%;
}

.tile_21,
.drop-zone_21 {
  top: 50%;
  left: 114%;
}

.tile_22,
.drop-zone_22 {
  top: 56%;
  left: 136%;
}

.tile_23,
.drop-zone_23 {
  top: 37%;
  left: 178%;
}

.tile_24,
.drop-zone_24 {
  top: 59%;
  left: 162%;
}

.tile_25,
.drop-zone_25 {
  top: 88%;
  left: 129%;
}

.tile_26,
.drop-zone_26 {
  top: 107%;
  left: 122%;
}

.tile_27,
.drop-zone_27 {
  top: 98%;
  left: 146%;
}

.tile_28,
.drop-zone_28 {
  top: 33%;
  left: -59%;
}

.challenge-3 .tile_3 {
  left: 12%;
  top: 11.8%;
}

.challenge-3 .tile_4 {
  left: 24.5%;
  top: 88.4%;
}

.challenge-3 .tile_8 {
  left: 37.3%;
  top: 88.4%;
}

.challenge-3 .tile_16 {
  left: 62.9%;
  top: 88.4%;
}

.challenge-3 .tile_17 {
  left: 88.5%;
  top: 11.8%;
}

.challenge-3 .tile_21 {
  left: 50%;
  top: 88.4%;
}

.challenge-3 .tile_23 {
  left: 75.7%;
  top: 88.4%;
}

.challenge-3 .tile_3 path,
.challenge-3 .tile_4 path,
.challenge-3 .tile_8 path,
.challenge-3 .tile_16 path,
.challenge-3 .tile_17 path,
.challenge-3 .tile_21 path,
.challenge-3 .tile_23 path {
  pointer-events: none;
}

/*==========  tiles end  ==========*/

/*==========  tiles start  ==========*/
.drop-zones {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  aspect-ratio: 70 / 70;
  width: calc(100% / 3.3);
  display: flex;
  pointer-events: none;
}

.drop-zone {
  position: absolute;
  width: 27.14%;
  height: 27.14%;
  transform: translate(-50%, -50%) scale(1);
  cursor: pointer;
}

/*==========  tiles end  ==========*/

path,
polygon {
  pointer-events: all;
  cursor: pointer;
}

path[fill="transparent"][stroke="transparent"] {
  pointer-events: none;
}

path[fill="transparent"],
path[stroke="transparent"] {
  pointer-events: none;
}

.challenge-2
  .pagination-link-wrapper:has(.pagination-btn.active[data-challenge="2"])
  .pagination-text {
  width: 45vw;
}

.header .you-win {
  top: 52px;
}

/*=======================*/
#resize-preloader {
  position: fixed;
  top: 0;
  left: -101%;
  width: 100%;
  height: 100%;
  background: #1a1a1a;
  /* Dark background in QuintaPaths style */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
}

#resize-preloader.show {
  left: 0%;
  opacity: 1;
}

.puzzle-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.roundo-loader {
  position: relative;
  width: 250px;
  height: 250px;
}

.roundo-loader-piece {
  position: absolute;
  width: 60%;
  height: 60%;
  opacity: 0.25;
  transform-origin: 50% 50%;
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.35));
}

.roundo-loader-piece svg {
  width: 100%;
  height: 100%;
  display: block;
}

.roundo-loader .piece-a {
  left: 50%;
  top: 35%;
  z-index: 3;
  animation: roundo-piece-a 1s infinite ease-in-out;
  transform: translate(-50%, -50%);
}

.roundo-loader .piece-b {
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  animation: roundo-piece-b 1s infinite ease-in-out;
}

.roundo-loader .piece-c {
  left: 50%;
  top: 70%;
  transform: translate(-50%, -50%);
  z-index: 1;
  animation: roundo-piece-c 1s infinite ease-in-out;
}

@keyframes roundo-piece-a {
  0%,
  12% {
    transform: translate(-50%, -50%) translateY(-75%) rotate(-90deg);
    opacity: 0.2;
  }

  42%,
  72% {
    transform: translate(-50%, -50%) translateY(0%) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) translateY(-75%) rotate(-90deg);
    opacity: 0.2;
  }
}

@keyframes roundo-piece-b {
  0%,
  18% {
    transform: translate(-50%, -50%) translateX(-25%) rotate(0deg);
    opacity: 0.2;
  }

  50%,
  72% {
    transform: translate(-50%, -50%) translateX(0%) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) translateX(-25%) rotate(0deg);
    opacity: 0.2;
  }
}

@keyframes roundo-piece-c {
  0%,
  24% {
    transform: translate(-50%, -50%) translateY(75%) rotate(-90deg);
    opacity: 0.15;
  }

  58%,
  72% {
    transform: translate(-50%, -50%) translateY(0%) rotate(0deg);
    opacity: 0.9;
  }

  100% {
    transform: translate(-50%, -50%) translateY(75%) rotate(-90deg);
    opacity: 0.15;
  }
}

/*======================*/
.mobile .tile_1 {
  transform: translate(-50%, -50%) rotate(180deg);
  left: 14.2281%;
  top: 87.6235%;
}

.mobile .tile_2 {
  left: 47.1231%;
  top: 87.9908%;
}

.mobile .tile_3 {
  left: 12.7515%;
  top: 66.8558%;
}

.mobile .tile_4 {
  left: 12.7515%;
  top: 66.8558%;
}

.mobile .tile_5 {
  left: 79.52%;
  top: 93.8858%;
}

.mobile .tile_6 {
  transform: translate(-50%, -50%) rotate(180deg);
  left: 59.0161%;
  top: 64.2192%;
}

.mobile .tile_7 {
  left: 47.1231%;
  top: 87.9908%;
}

.mobile .tile_8 {
  left: 12.7515%;
  top: 66.8558%;
}

.mobile .tile_9 {
  left: 47.1231%;
  top: 87.9908%;
}

.mobile .tile_10 {
  left: 79.52%;
  top: 93.8858%;
}

.mobile .tile_11 {
  transform: translate(-50%, -50%) rotate(90deg);
  left: 47.1231%;
  top: 87.9908%;
}

.mobile .tile_12 {
  left: 84.6402%;
  top: 67.1%;
}

.mobile .tile_13 {
  left: 79.52%;
  top: 93.8858%;
}

.mobile .tile_14 {
  transform: translate(-50%, -50%) rotate(180deg);
  left: 79.52%;
  top: 93.8858%;
}

.mobile .tile_15 {
  left: 79.52%;
  top: 93.8858%;
}

.mobile .tile_16 {
  left: 12.7515%;
  top: 66.8558%;
}

.mobile .tile_17 {
  left: 12.7515%;
  top: 66.8558%;
}

.mobile .tile_18 {
  transform: translate(-50%, -50%) rotate(90deg);
  left: 47.1231%;
  top: 87.9908%;
}

.mobile .tile_19 {
  left: 79.52%;
  top: 93.8858%;
}

.mobile .tile_20 {
  transform: translate(-50%, -50%) rotate(90deg);
  left: 14.2281%;
  top: 87.6235%;
}

.mobile .tile_21 {
  left: 12.7515%;
  top: 66.8558%;
}

.mobile .tile_22 {
  transform: translate(-50%, -50%) rotate(90deg);
  left: 47.1231%;
  top: 87.9908%;
}

.mobile .tile_23 {
  left: 12.7515%;
  top: 66.8558%;
}

.mobile .tile_24 {
  transform: translate(-50%, -50%) rotate(180deg);
  left: 59.0161%;
  top: 64.2192%;
}

.mobile .tile_25 {
  transform: translate(-50%, -50%) rotate(0deg);
  left: 79.52%;
  top: 93.8858%;
}

.mobile .tile_26 {
  left: 47.1231%;
  top: 87.9908%;
}

.mobile .tile_27 {
  left: 33.9%;
  top: 63.8%;
}

.mobile .tile_28 {
  transform: translate(-50%, -50%) rotate(90deg);
  left: 84.6402%;
  top: 67.1%;
}

@media (max-width: 767px) {
  .mobile.wrapper.challenge-1,
  .mobile.wrapper.challenge-2,
  .mobile.wrapper.challenge-3 {
    height: 80dvh;
    padding: 0;
  }

  .mobile.wrapper .main {
    height: 88dvh;
  }
}
