.sticker {
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  width: 16.75rem;
  height: 16.75rem;
  -webkit-tap-highlight-color: transparent;

  @media (max-width: 500px) {
    width: 12rem;
    height: 12rem;
  }
}

.sticker__cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  rotate: 14deg;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-family-highlight);
  color: var(--base-color-bright);
  clip-path: polygon(0 100%, 0 -100%, 200% 100%);
  transition:
    clip-path 0.9s ease-in-out,
    opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-top: 3rem;

  &::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: url(../assets/img/stickers/skills/sticker-closed.webp);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    transition: opacity 0.6s ease;
  }

  & .sticker__hint {
    margin-top: 2rem;
    font-family: var(--font-family-highlight);
    color: var(--base-color-bright);
    font-weight: 400;
    font-size: clamp(1.5rem, 3vw, 3rem);
    text-align: center;
    max-width: 10rem;
    line-height: 1.1;
  }

  .sticker:hover &::before {
    @media (hover: hover) {
      opacity: 0;
    }
  }
}

.sticker__arrow {
  transition: opacity 0.6s ease;

  .sticker:hover & {
    @media (hover: hover) {
      opacity: 0;
    }
  }
}

.sticker__back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  rotate: 14deg;
  background-image: url(../assets/img/stickers/skills/sticker-peeling.webp);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  z-index: 2;
  transition:
    clip-path 0.9s ease-in-out,
    opacity 0.3s ease;

  clip-path: polygon(0 100%, 0 -100%, 200% 100%);
}

.sticker--peeled .sticker__cover,
.sticker--peeled .sticker__back {
  clip-path: polygon(0 100%, 0 100%, 0 100%);
}

.sticker__content {
  position: absolute;
  display: flex;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(../assets/img/stickers/skills/sticker-open.webp);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center center;
  flex-direction: column;
  min-height: 15rem;
  rotate: 14deg;
  justify-content: center;
  padding: 1rem;
  align-content: center;
  align-self: flex-start;

  @media (max-width: 500px) {
    min-height: unset;
  }
}

.sticker__text {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--base-color-bright);
  font-size: 1.25rem;
  max-width: 13rem;
  text-align: center;

  @media (max-width: 500px) {
    font-size: 0.875rem;
    max-width: 8rem;
  }
}

.sticker__list {
  position: absolute;
  top: 65%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 2rem;
  justify-content: center;
  list-style: none;
  padding: 0;
}

.sticker__item {
  display: flex;
  color: var(--base-color-bright);
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  flex-direction: column;

  @media (max-width: 500px) {
    font-size: 0.875rem;
  }
}

.sticker__icon {
  width: 3rem;
  height: 3rem;
  object-fit: contain;

  @media (max-width: 500px) {
    width: 2rem;
    height: 2rem;
  }
}
