*,
*::after,
*::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
  background-color: moccasin;
  height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.am-shuriken.girar {
  transform: rotate(180deg);
}

.am-shuriken {
  position: relative;
  width: 262px;
  height: 308px;
  background-color: moccasin;
  transition: .5s;
  overflow: hidden;

  * {
    transition: .5s;
    pointer-events: none;
  }

  .triangle {
    width: 260px;
    height: 230px;
    background-color: black;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    position: relative;
  }



  div.circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: moccasin;
    transform-origin: 118px;
    transform: rotate(calc(360deg / 6 * var(--v)));
    position: absolute;
    padding: 1rem;
    z-index: 100;
    top: 44%;
    left: 5%;
  }

  .circle:nth-child(3),
  .circle:nth-child(6) {
    background-color: moccasin;
    width: 55px;
    height: 60px;
    top: 38%;
  }

  .circle:nth-child(4),
  .circle:nth-child(5),
  .circle:nth-child(1),
  .circle:nth-child(2) {
    background-color: moccasin;
    top: 40%;
    width: 60px;
    height: 51px;
  }

  .circle-center {
    width: 50px;
    height: 50px;
    background-color: moccasin;
    top: 50%;
    left: 50%;
    position: absolute;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
  }

  .triangle-bottom {
    rotate: 180deg;
    top: -155px;
    position: relative;
  }
}

@media (width <=1100px) {
  .am-shuriken {
    transform: scale(.7);

    &:hover {
      transform: rotate(180deg) scale(.7);
    }
  }
}