/* ── VARIABLES ─────────────────────────────────────── */
:root {
  --bg-base:       #07070d;
  --bg-surface:    #0f0f1a;
  --accent-purple: #a855f7;
  --accent-cyan:   #06e5d5;
  --text-primary:  #f0f0f0;
  --text-muted:    #666680;
  --glow-purple:   0 0 20px #a855f780;
  --glow-cyan:     0 0 20px #06e5d580;
}

/* ── RESET & BASE ─────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  color: var(--text-primary);
  background:
    radial-gradient(ellipse at 20% 50%, #1a0533 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, #001a2e 0%, transparent 55%),
    var(--bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* subtle geometric grid overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(168, 85, 247, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ── GOOGLE FONTS (loaded in HTML) ────────────────── */
/* Bebas Neue  — headings
   Chakra Petch — subheadings / UI labels
   DM Sans     — body / name overlays              */

/* ── LOGO / BRAND ─────────────────────────────────── */
.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 8vw, 4.5rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-shadow:
    0 0 30px #a855f7aa,
    0 0 60px #a855f744,
    2px 2px 40px #06e5d533;
  line-height: 1;
}

.tagline {
  font-family: 'Chakra Petch', sans-serif;
  font-size: clamp(0.7rem, 2.5vw, 0.9rem);
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* ── LANDING PAGE ─────────────────────────────────── */
.landing {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  height: 100dvh;
  padding: 2rem;
  text-align: center;
  gap: 0;
}

.landing .brand {
  animation: fadeSlideIn 0.6s ease both;
}

.landing .tagline {
  animation: fadeSlideIn 0.6s ease 0.15s both;
}

.landing .headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.5rem, 5vw, 2.4rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-top: 2.5rem;
  max-width: 480px;
  animation: fadeSlideIn 0.6s ease 0.3s both;
}

.landing .headline span {
  color: var(--accent-cyan);
}

.cta-btn {
  margin-top: 2.5rem;
  padding: 1rem 3rem;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  background: var(--bg-base);
  border: 2px solid transparent;
  border-image: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan)) 1;
  cursor: pointer;
  position: relative;
  transition: box-shadow 0.3s ease, transform 0.15s ease;
  animation: fadeSlideIn 0.6s ease 0.45s both;
  text-decoration: none;
  display: inline-block;
}

.cta-btn:hover {
  box-shadow:
    0 0 25px #a855f766,
    0 0 50px #06e5d522;
}

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

/* ── SWIPE PAGE LAYOUT ────────────────────────────── */
.swipe-page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
  height: 100dvh;
  padding: 1.2rem 1rem 1.5rem;
  overflow: hidden;
}

.swipe-page .brand-bar {
  text-align: center;
  flex-shrink: 0;
  margin-bottom: 0.8rem;
}

.swipe-page .logo {
  font-size: clamp(1.8rem, 6vw, 2.6rem);
}

.swipe-page .tagline {
  font-size: clamp(0.55rem, 2vw, 0.7rem);
  margin-top: 0.15rem;
}

/* ── CARD AREA ────────────────────────────────────── */
.card-area {
  position: relative;
  flex: 1;
  width: 100%;
  max-width: 380px;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── FAN CARD ─────────────────────────────────────── */
.fan-card {
  position: absolute;
  width: 100%;
  height: 100%;
  max-height: 520px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid #a855f744;
  box-shadow:
    var(--glow-purple),
    0 12px 40px rgba(0, 0, 0, 0.6);
  user-select: none;
  touch-action: none;
  cursor: grab;
  transition: opacity 0.35s ease;
  will-change: transform;
}

.fan-card:active {
  cursor: grabbing;
}

.fan-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  pointer-events: none;
}

/* name overlay scrim */
.fan-card .name-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.2rem 1.2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  pointer-events: none;
}

/* swipe indicator badges */
.fan-card .swipe-badge {
  position: absolute;
  top: 1.5rem;
  padding: 0.5rem 1.5rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.1em;
  border-radius: 8px;
  border: 3px solid;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s ease;
}

.fan-card .swipe-badge.yes {
  right: 1.5rem;
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  transform: rotate(12deg);
}

.fan-card .swipe-badge.no {
  left: 1.5rem;
  color: #ff4466;
  border-color: #ff4466;
  transform: rotate(-12deg);
}

/* card exit animations */
.fan-card.exit-right {
  animation: exitRight 0.35s ease forwards;
}

.fan-card.exit-left {
  animation: exitLeft 0.35s ease forwards;
}

.fan-card.enter {
  animation: enterCard 0.3s ease both;
}

/* ── BUTTONS ──────────────────────────────────────── */
.btn-row {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-shrink: 0;
  width: 100%;
  max-width: 380px;
}

.btn-no,
.btn-yes {
  flex: 1;
  min-height: 52px;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 6px;
  cursor: pointer;
  transition: box-shadow 0.25s ease, background 0.25s ease, transform 0.12s ease;
}

.btn-no {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid #333344;
}

.btn-no:hover {
  border-color: #555566;
  color: var(--text-primary);
}

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

.btn-yes {
  background: rgba(6, 229, 213, 0.08);
  color: var(--accent-cyan);
  border: 2px solid var(--accent-cyan);
  box-shadow: var(--glow-cyan);
}

.btn-yes:hover {
  background: rgba(6, 229, 213, 0.15);
  box-shadow:
    0 0 30px #06e5d566,
    0 0 60px #06e5d522;
}

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

/* ── RESET STATE ──────────────────────────────────── */
.done-msg {
  text-align: center;
}

.done-msg h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
}

.reset-btn {
  padding: 0.9rem 2.5rem;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-purple);
  background: transparent;
  border: 2px solid var(--accent-purple);
  border-radius: 6px;
  cursor: pointer;
  box-shadow: var(--glow-purple);
  transition: box-shadow 0.25s ease, background 0.25s ease, transform 0.12s ease;
}

.reset-btn:hover {
  background: rgba(168, 85, 247, 0.1);
  box-shadow:
    0 0 30px #a855f766,
    0 0 60px #a855f722;
}

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

/* ── KEYFRAMES ────────────────────────────────────── */
@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes exitRight {
  to {
    transform: translateX(140%) rotate(15deg);
    opacity: 0;
  }
}

@keyframes exitLeft {
  to {
    transform: translateX(-140%) rotate(-15deg);
    opacity: 0;
  }
}

@keyframes enterCard {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
