/* Sound Effects Board */

.se-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem auto 1rem;
  max-width: 900px;
  padding: 0 1rem;
}

.se-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 1 1 auto;
}

.se-tab {
  font-family: "Rubik", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 2px solid var(--tab-color, var(--neon-cyan, #0ff));
  background: transparent;
  color: var(--tab-color, var(--neon-cyan, #0ff));
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.se-tab:hover {
  transform: translateY(-1px);
}

.se-tab.active {
  background: var(--tab-color, var(--neon-cyan, #0ff));
  color: #0a0a12;
}

.se-surprise-btn {
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--neon-magenta, #f0f), var(--neon-cyan, #0ff));
  color: #0a0a12;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease;
}

.se-surprise-btn:hover {
  transform: scale(1.05);
}

.se-surprise-btn:active {
  transform: scale(0.97);
}

.se-counter {
  width: 100%;
  margin: 0;
  font-family: "Rubik", sans-serif;
  font-size: 0.85rem;
  opacity: 0.75;
}

.se-board {
  max-width: 900px;
  margin: 0 auto 1.5rem;
  padding: 0 1rem;
}

.se-section {
  margin-bottom: 2rem;
  scroll-margin-top: 1rem;
}

.se-section-title {
  font-family: "Rubik", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--tile-color, var(--neon-cyan, #0ff));
  border-bottom: 2px solid var(--tile-color, var(--neon-cyan, #0ff));
  padding-bottom: 0.4rem;
  margin: 0 0 0.9rem;
}

.se-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.9rem;
}

.se-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  border: 2px solid var(--tile-color, var(--neon-cyan, #0ff));
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  padding: 0.5rem;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.se-tile:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 14px var(--tile-color, var(--neon-cyan, #0ff));
}

.se-tile:active {
  transform: scale(0.94);
}

.se-emoji {
  font-size: 2rem;
  line-height: 1;
}

.se-label {
  font-family: "Rubik", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  color: #fff;
  opacity: 0.9;
}

@keyframes se-tile-pop {
  0% { transform: scale(1); }
  35% { transform: scale(1.12); box-shadow: 0 0 22px var(--tile-color, var(--neon-cyan, #0ff)); }
  100% { transform: scale(1); }
}

.se-tile.se-pop {
  animation: se-tile-pop 0.28s ease;
}

.se-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translate(-50%, 12px);
  margin: 0;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  background: #0a0a12;
  border: 2px solid var(--neon-cyan, #0ff);
  color: #fff;
  font-family: "Rubik", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 50;
}

.se-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.se-credits {
  max-width: 900px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
  font-family: "Rubik", sans-serif;
}

.se-credits summary {
  cursor: pointer;
  font-size: 0.85rem;
  opacity: 0.7;
}

.se-credits ul {
  font-size: 0.75rem;
  opacity: 0.65;
  line-height: 1.6;
  padding-left: 1.2rem;
}

@media (max-width: 480px) {
  .se-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 0.6rem;
  }
  .se-emoji {
    font-size: 1.6rem;
  }
  .se-label {
    font-size: 0.65rem;
  }
}
