.icon-btns {
  display: flex; /* one line */
  gap: 1em;       /* space between buttons */
  justify-content: center;
  align-items: center;
  padding: 1em 0;
  flex-wrap: wrap; /* optional if you want them to wrap on small screens */
}

.icon-btn {
  background-color: transparent;
  outline: none;
  position: relative;
  width: 3em;     /* smaller size */
  height: 3em;
  perspective: 15em;
  transform-style: preserve-3d;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

.icon-btn__back,
.icon-btn__front,
.icon-btn__label {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.icon-btn__back,
.icon-btn__front {
  border-radius: 0.75em;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.icon-btn__back {
  background: rgba(255, 255, 255, 0.06); /* subtle white glassy */
  box-shadow: 0.2em 0.2em 0.5em rgba(0, 0, 0, 0.1);
  transform: rotate(15deg);
  transform-origin: 100% 100%;
}

.icon-btn__front {
  background: rgba(255, 255, 255, 0.08); /* front semi-glass */
  box-shadow: 0 0 0 0.05em rgba(255, 255, 255, 0.2) inset;
  backdrop-filter: blur(0.5em);
  -webkit-backdrop-filter: blur(0.5em);
  display: flex;
  transform-origin: 80% 50%;
}

.icon-btn__icon {
  margin: auto;
  width: 1em;
  height: 1em;
  font-size: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.icon-btn__label {
  font-size: 0.75em;
  white-space: nowrap;
  text-align: center;
  line-height: 1.5;
  opacity: 0;
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  transform: translateY(0);
  color: white;
}

.icon-btn:hover .icon-btn__back {
  transform: rotate(20deg) translate3d(-0.3em, -0.3em, 0.3em);
}

.icon-btn:hover .icon-btn__front {
  transform: translateZ(1em);
}

.icon-btn:hover .icon-btn__label {
  opacity: 1;
  transform: translateY(10%);
}
