.soundGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  height: 100%;
  min-height: 0;
  align-content: start;
}

.soundBtn {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(45, 45, 58, 0.95);
  background: radial-gradient(900px 600px at 20% 0%, rgba(59, 130, 246, 0.22), transparent 55%),
    rgba(37, 37, 48, 0.95);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  min-height: 110px;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.soundBtn:hover {
  transform: translateY(-1px);
  border-color: rgba(59, 130, 246, 0.7);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25);
}

.soundBtn:active {
  transform: translateY(0);
}

.soundBtn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.soundBtn__emoji {
  font-size: 28px;
  line-height: 1;
}

.soundBtn__label {
  font-size: 13px;
  font-weight: 640;
  color: rgba(241, 245, 249, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.soundBtn__meta {
  font-size: 11px;
  color: rgba(148, 163, 184, 0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.soundBtn__tools {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.soundBtn__toolBtn {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  border: 1px solid rgba(45, 45, 58, 0.95);
  background: rgba(13, 13, 15, 0.35);
  color: rgba(241, 245, 249, 0.92);
  cursor: pointer;
}

.soundBtn__toolBtn:hover {
  border-color: rgba(59, 130, 246, 0.65);
  background: rgba(13, 13, 15, 0.55);
}

.soundBtn__toolBtn--danger:hover {
  border-color: rgba(239, 68, 68, 0.8);
}

.soundBtn.isEmpty {
  background: rgba(13, 13, 15, 0.3);
  border-style: dashed;
}

.soundBtn.isEmpty .soundBtn__emoji {
  opacity: 0.6;
}

.soundBtn.isFlash {
  animation: sfxFlash 180ms ease-out 1;
}

@keyframes sfxFlash {
  0% {
    box-shadow: 0 0 0 rgba(245, 158, 11, 0);
    border-color: rgba(245, 158, 11, 0.5);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.22);
    border-color: rgba(245, 158, 11, 0.95);
  }
  100% {
    box-shadow: 0 0 0 rgba(245, 158, 11, 0);
    border-color: rgba(59, 130, 246, 0.55);
  }
}

@media (max-width: 640px) {
  .soundGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

