.map-tile {
  aspect-ratio: 16 / 11;
  display: grid;
  place-items: center;
  user-select: none;
  box-sizing: border-box;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
  z-index: 0;
  transition: transform .2s ease-in-out, filter .5s ease-in-out;

  &.legend {
    aspect-ratio: 55 / 47;
    background-size: contain;

    &:hover {
      border-radius: 1.8rem / 2rem;
    }
  }

  &.grayout {
    filter: grayscale(100%);
  }

  &.found {
    border: 3px solid transparent;
    border-image: linear-gradient(to bottom right, #b827fc 0%, #2c90fc 25%, #b8fd33 50%, #fec837 75%, #fd1892 100%);
    border-image-slice: 1;
  }

  &:hover {
    transform: scale(1.3);
    cursor: pointer;
    border: 2px solid white;
    z-index: 2;

    &:after {
      display: none;
    }
  }

  &--placement {
    padding: 4px 8px 4px 8px;
    background-color: rgba(100, 100, 100, 0.4);
  }

  &:after {
    content: ' ';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    --blockade-north: none;
    --blockade-east: none;
    --blockade-south: none;
    --blockade-west: none;
    background-image: var(--blockade-north), var(--blockade-east), var(--blockade-south), var(--blockade-west);
    background-size: cover;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    filter: none!important;
  }

  &.blockade {
    &-north:after {
      --blockade-north: url("../../../../assets/images/misc/Border-top.png");
    }

    &-east:after {
      --blockade-east: url("../../../../assets/images/misc/Border-right.png");
    }

    &-south:after {
      --blockade-south: url("../../../../assets/images/misc/Border-bottom.png");
    }

    &-west:after {
      --blockade-west: url("../../../../assets/images/misc/Border-left.png");
    }
  }
}

@media (max-width: 800px) {
  .map-tile {
    min-width: 5rem;

    &:hover {
      transform: none;
    }
  }
}
