:root {
  --bs-primary: #7c5cff;
  --bs-primary-rgb: 124, 92, 255;
}

body {
  min-height: 100vh;
  background: #f6f7fb;
  color: #202332;
}

.hero {
  border-left: 4px solid #7c5cff;
  padding-left: 1rem;
}

.sound-card {
  height: 100%;
  border: 1px solid #e7e8f0;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 0.35rem 1.25rem rgba(37, 35, 75, 0.05);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.sound-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.6rem 1.6rem rgba(37, 35, 75, 0.11);
}

.sound-color {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex: 0 0 auto;
  overflow: hidden;
  position: relative;
}

.sound-icon-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sound-button {
  border: 0;
  min-height: 3rem;
  color: white;
  font-weight: 600;
}

.sound-button:hover,
.sound-button:focus {
  filter: brightness(0.95);
  color: white;
}

.sound-button:disabled {
  opacity: 0.65;
}

.sound-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.5rem;
}

.sound-actions .btn {
  min-height: 2.75rem;
  font-weight: 600;
}

.btn-twitch {
  --bs-btn-color: #fff;
  --bs-btn-bg: #9146ff;
  --bs-btn-border-color: #9146ff;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #7f32ec;
  --bs-btn-hover-border-color: #7f32ec;
}

.auth-gate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #e7e8f0;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 0.35rem 1.25rem rgba(37, 35, 75, 0.05);
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2rem;
  max-width: 12rem;
  overflow: hidden;
  color: #fff;
  font-size: 0.875rem;
}

.user-avatar {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}

.user-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #495057;
}

.admin-card {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 0.35rem 1.25rem rgba(37, 35, 75, 0.06);
}

.table > :not(caption) > * > * {
  vertical-align: middle;
}

.sound-drag-heading,
.sound-drag-cell {
  width: 3rem;
  min-width: 3rem;
}

.sound-drag-handle {
  cursor: grab;
  touch-action: none;
}

.sound-drag-handle:active {
  cursor: grabbing;
}

.sound-row-dragging {
  opacity: 0.55;
}

.sound-row-drop-target > td {
  box-shadow: inset 0 2px 0 rgba(var(--bs-primary-rgb), 0.35);
}

.sound-order-saving {
  opacity: 0.75;
}

.overlay-page {
  background: transparent;
  overflow: hidden;
}

.overlay-page .overlay-status {
  position: fixed;
  inset: auto 1rem 1rem auto;
  padding: 0.6rem 0.8rem;
  border-radius: 0.65rem;
  background: rgba(20, 20, 30, 0.88);
  color: #fff;
  font: 14px/1.2 system-ui, sans-serif;
}

.overlay-page .overlay-status.hidden {
  display: none;
}

.font-monospace {
  word-break: break-all;
}
