* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overscroll-behavior: none;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(160deg, #ff5864 0%, #ff655b 40%, #fd8d5c 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #fff;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.site-header {
  text-align: center;
  padding: 18px 12px 10px;
  flex-shrink: 0;
}

.logo {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.logo-accent {
  font-weight: 400;
  opacity: 0.85;
  font-size: 18px;
}

.logo-accent-co {
  font-size: 15px;
}

.logo-accent-uk {
  font-size: 12px;
}

.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 16px 24px;
}

.card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  color: #222;
  touch-action: pan-y;
  cursor: grab;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.card.dragging {
  transition: none;
}

.card.fly-left {
  transform: translate(-140%, 10%) rotate(-25deg);
  opacity: 0;
}

.card.fly-right {
  transform: translate(140%, 10%) rotate(25deg);
  opacity: 0;
}

.photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #eee;
}

.photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, #3ecf8e, #2bb673);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #fff;
  box-shadow: 0 4px 14px rgba(46, 190, 130, 0.55), 0 0 0 2px rgba(255, 255, 255, 0.6);
  animation: badge-pulse 1.8s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

.info {
  padding: 16px 18px 20px;
}

.info h1 {
  margin: 0 0 2px;
  font-size: 22px;
  font-weight: 800;
}

.job {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 600;
  color: #555;
}

.location {
  margin: 0 0 12px;
  font-size: 13px;
  color: #888;
}

.tagline {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.4;
}

.interests {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.interests span {
  background: #ffe9e9;
  color: #ff5864;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
}

.closer {
  margin: 0;
  font-size: 13px;
  color: #666;
  font-style: italic;
}

.controls {
  display: flex;
  gap: 28px;
  margin-top: 22px;
}

.btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.btn.pass {
  background: #fff;
  color: #ff5864;
}

.btn.like {
  background: #fff;
  color: #3ecf8e;
}

.counter {
  margin-top: 14px;
  font-size: 13px;
  opacity: 0.85;
}

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

.empty-state h2 {
  margin-bottom: 8px;
}
