#match-modal {
  position: fixed;
  inset: 0;
  background: rgba(29, 19, 15, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
  animation: modal-fade-in 0.25s ease;
}

#match-modal.hidden {
  display: none;
}

@keyframes modal-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.match-modal-card {
  background: var(--surface);
  border-radius: var(--radius);
  border-top: 4px solid var(--coral);
  padding: 2rem 1.5rem;
  max-width: 340px;
  width: 100%;
  text-align: center;
  animation: modal-bounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modal-bounce {
  from { transform: scale(0.7); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.match-modal-card h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--coral);
  margin-bottom: 0.25rem;
}

.match-modal-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.match-avatars {
  display: flex;
  justify-content: center;
  gap: -1rem;
  margin-bottom: 1.5rem;
}

.match-avatar-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--border);
  border: 3px solid var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  overflow: hidden;
}

.match-avatar-img:last-child {
  margin-left: -16px;
}

.match-avatar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.match-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.match-modal-actions button {
  width: 100%;
  padding: 0.75rem;
  font-size: 0.875rem;
}

/* Toast notifications */
#toast-container {
  position: fixed;
  bottom: calc(var(--nav-height) + 1rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  pointer-events: none;
}

.toast {
  background: #1d130f;
  color: #fefdfa;
  border-radius: 2px;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  animation: toast-in 0.25s ease;
  pointer-events: none;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
