:root {
  --bg: #0a0a0a;
  --surface: #161616;
  --text: #f5f5f5;
  --text-dim: #8a8a8a;
  --purple: #b026ff;
  --turquoise: #2dfdcb;
  --danger: #ff4d5e;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100%;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 20px 16px 32px;
}

.state-message {
  margin: auto;
  text-align: center;
  color: var(--text-dim);
  font-size: 16px;
  padding: 24px;
}

/* Header */

.gig-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.dj-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface);
  border: 2px solid var(--purple);
  flex-shrink: 0;
}

.dj-photo.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--purple);
  font-size: 20px;
}

.gig-info .gig-name {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.gig-info .gig-date {
  font-size: 14px;
  color: var(--text-dim);
  margin: 2px 0 0;
}

/* Card stack */

.stack {
  position: relative;
  flex: 1;
  min-height: 60vh;
  margin-bottom: 20px;
}

.card {
  position: absolute;
  inset: 0;
  background: var(--surface);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  touch-action: pan-y;
  user-select: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.card.behind-1 {
  transform: translateY(10px) scale(0.97);
  opacity: 0.7;
  z-index: 1;
}

.card.behind-2 {
  transform: translateY(20px) scale(0.94);
  opacity: 0.45;
  z-index: 0;
}

.card.top {
  z-index: 2;
}

.card.dragging {
  transition: none;
}

.card-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #000;
  flex-shrink: 0;
}

.card-photo.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  font-weight: 700;
  color: var(--purple);
}

.card-body {
  padding: 16px;
  overflow-y: auto;
}

.card-handle {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px;
}

.card-stats {
  font-size: 14px;
  color: var(--text-dim);
  margin: 0 0 10px;
}

.card-bio {
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
  white-space: pre-wrap;
}

.swipe-badge {
  position: absolute;
  top: 20px;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 1px;
  border: 3px solid;
  opacity: 0;
  pointer-events: none;
}

.swipe-badge.yes {
  right: 20px;
  color: var(--turquoise);
  border-color: var(--turquoise);
  transform: rotate(12deg);
}

.swipe-badge.no {
  left: 20px;
  color: var(--danger);
  border-color: var(--danger);
  transform: rotate(-12deg);
}

/* Action buttons */

.actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.action-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  font-size: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--text);
  transition: transform 0.1s ease;
}

.action-btn:active {
  transform: scale(0.92);
}

.action-btn.no {
  color: var(--danger);
  border: 2px solid var(--danger);
}

.action-btn.yes {
  color: var(--turquoise);
  border: 2px solid var(--turquoise);
}

/* Empty / restart state */

.empty-state {
  margin: auto;
  text-align: center;
  padding: 24px;
}

.empty-state p {
  color: var(--text-dim);
  font-size: 16px;
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  margin: 6px;
}

.btn-primary {
  background: var(--purple);
  color: #0a0a0a;
}

.btn-secondary {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--text-dim);
}
