.starability-result {
  position: relative;
  width: 75px;
  height: 15px;
  background-image: url("../../img/system/stars_small_sw.png");
  font-size: 0.1em;
  color: transparent;
}

.starability-result:after {
  content: ' ';
  position: absolute;
  left: 0;
  height: 15px;
  background-image: url("../../img/system/stars_small_sw.png");
  background-position: 0 -15px;
}

.starability-result[data-rating="5"]::after {
  width: 75px;
}

.starability-result[data-rating="4"]::after {
  width: 60px;
}

.starability-result[data-rating="3"]::after {
  width: 45px;
}

.starability-result[data-rating="2"]::after {
  width: 30px;
}

.starability-result[data-rating="1"]::after {
  width: 15px;
}

.starability-basic {
  display: block;
  position: relative;
  width: 150px;
  min-height: 60px;
  padding: 0;
  border: none;
}

.starability-basic > .input-empty:checked ~ label {
  background-position: 0 0;
}

.starability-basic > input {
  position: absolute;
  margin-right: -100%;
  opacity: 0;
}

.starability-basic > input:checked ~ label,
.starability-basic > input:focus ~ label {
  background-position: 0 0;
}

.starability-basic > input:checked + label,
.starability-basic > input:focus + label {
  background-position: 0 -30px;
}

.starability-basic > input:hover ~ label {
  background-position: 0 0;
}

.starability-basic > input:hover + label {
  background-position: 0 -30px;
}

.starability-basic > input:hover + label::before {
  opacity: 1;
}

.starability-basic > label {
  position: relative;
  display: inline-block;
  float: left;
  width: 30px;
  height: 30px;
  font-size: 0.1em;
  color: transparent;
  cursor: pointer;
  background-image: url("../../img/system/stars_sw.png");
  background-repeat: no-repeat;
  background-position: 0 -30px;
}

.starability-basic > label::before {
  content: '';
  position: absolute;
  display: block;
  height: 30px;
  background-image: url("../../img/system/stars_sw.png");
  background-position: 0 30px;
  pointer-events: none;
  opacity: 0;
}

.starability-basic > label:nth-of-type(5)::before {
  width: 120px;
  left: -120px;
}

.starability-basic > label:nth-of-type(4)::before {
  width: 90px;
  left: -90px;
}

.starability-basic > label:nth-of-type(3)::before {
  width: 60px;
  left: -60px;
}

.starability-basic > label:nth-of-type(2)::before {
  width: 30px;
  left: -30px;
}

.starability-basic > label:nth-of-type(1)::before {
  width: 0px;
  left: 0px;
}

@media screen and (-webkit-min-device-pixel-ratio: 2), screen and (min-resolution: 192dpi) {
  .starability-basic > label {
    background-image: url("../../img/system/stars_sw.png");
    background-size: 30px auto;
  }
}
