/* Pure-CSS electric bass illustration — same "hand-built shapes, not an
   image" approach as guitar.css/drum.css. Deliberately NOT a reuse of the
   acoustic guitar's round hourglass body: basses are almost always solid-
   body electrics with an offset double-cutaway silhouette, so this gets
   its own organic blob shape via asymmetric border-radius instead. */

.cssbass-wrap {
  width: 210px;
  max-width: 100%;
  margin: 30px auto 0;
}

.cssbass {
  position: relative;
  width: 210px;
  height: 500px;
  transform-origin: 50% 0%;
  animation: cssbass-sway 5s ease-in-out infinite;
}

@keyframes cssbass-sway {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}

@media (max-width: 767px) {
  .cssbass-wrap {
    transform: scale(0.68);
    transform-origin: top center;
    margin-top: 10px;
  }
}

/* Headstock: elongated, all tuners in-line on one side (Fender-style) */
.cssbass__headstock {
  position: absolute;
  top: 0;
  left: 50%;
  width: 46px;
  height: 130px;
  margin-left: -16px;
  background: linear-gradient(200deg, #3a2416, #21140b);
  border-radius: 8px 30px 30px 8px;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
  z-index: 3;
}

.cssbass__tuner {
  position: absolute;
  right: -14px;
  width: 16px;
  height: 6px;
  background-color: #c9c9c9;
  border-radius: 3px;
  box-shadow: 0 0 0 3px #21140b inset;
}

.cssbass__tuner--1 { top: 12px; }
.cssbass__tuner--2 { top: 40px; }
.cssbass__tuner--3 { top: 68px; }
.cssbass__tuner--4 { top: 96px; }

/* Neck: long, since bass scale length is longer than guitar */
.cssbass__neck {
  position: absolute;
  top: 120px;
  left: 50%;
  width: 34px;
  height: 250px;
  margin-left: -17px;
  background: linear-gradient(90deg, #7a4a26 0%, #96602f 50%, #7a4a26 100%);
  z-index: 2;
}

.cssbass__fret {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2.5px;
  background-color: rgba(255, 255, 255, 0.5);
}

.cssbass__fret:nth-of-type(1) { top: 40px; }
.cssbass__fret:nth-of-type(2) { top: 84px; }
.cssbass__fret:nth-of-type(3) { top: 128px; }
.cssbass__fret:nth-of-type(4) { top: 172px; }
.cssbass__fret:nth-of-type(5) { top: 216px; }

/* Thick strings, a heavier/slower thump than the guitar's strum */
.cssbass__string {
  position: absolute;
  top: 8px;
  width: 2.5px;
  height: 430px;
  background-color: rgba(230, 230, 230, 0.85);
  z-index: 4;
  transform-origin: top center;
  animation: cssbass-thump 3.2s ease-in-out infinite;
}

.cssbass__string--1 { left: 38%; animation-delay: 0s; }
.cssbass__string--2 { left: 46%; animation-delay: 0.2s; }
.cssbass__string--3 { left: 54%; animation-delay: 0.4s; }
.cssbass__string--4 { left: 62%; animation-delay: 0.6s; }

@keyframes cssbass-thump {
  0%, 100% { transform: scaleX(1); opacity: 0.85; }
  50% { transform: scaleX(1.8); opacity: 0.45; }
}

/* Body: an offset double-cutaway blob via asymmetric border-radius */
.cssbass__body {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 200px;
  height: 260px;
  margin-left: -100px;
  background: linear-gradient(155deg, #7a2e1a 0%, #4a170c 65%, #21100a 100%);
  border-radius: 45% 55% 60% 40% / 55% 45% 55% 45%;
  box-shadow: 0 16px 26px rgba(0, 0, 0, 0.25);
}

.cssbass__pickguard {
  position: absolute;
  bottom: 60px;
  left: 22px;
  width: 120px;
  height: 150px;
  background-color: rgba(245, 240, 225, 0.9);
  border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%;
}

.cssbass__pickup {
  position: absolute;
  left: 40px;
  width: 70px;
  height: 22px;
  background-color: #16110d;
  border-radius: 4px;
}

.cssbass__pickup--neck { bottom: 130px; }
.cssbass__pickup--bridge { bottom: 90px; }

.cssbass__bridge {
  position: absolute;
  bottom: 30px;
  left: 50%;
  width: 70px;
  height: 16px;
  margin-left: -35px;
  background-color: #c9c9c9;
  border-radius: 3px;
}
