* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Remove mobile tap flash highlight */
button,
.vote-btn {
  -webkit-tap-highlight-color: transparent;
}

/* ---- Page + Background ---- */

:root {
  --bg: #02030a;
  --bg-alt: #050816;
  --accent: #5b8cff;
  --text-main: #ffffff;
  --text-muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.25);
}

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at top, #111827 0, transparent 55%),
    radial-gradient(circle at bottom, #000000 0, #02030a 60%);
  color: var(--text-main);
  min-height: 100vh;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- Hero / Coming Soon Panel ---- */

.hero {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
}

.shell {
  width: 100%;
  max-width: 540px;
  border-radius: 24px;
  padding: 2.5rem 2.25rem 2rem;
  background: radial-gradient(circle at top left, #111827 0, #020617 55%);
  border: 1px solid var(--border-subtle);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.85),
    0 0 0 0.5px rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out forwards;
  transform: translateY(8px);
  opacity: 0;
}

.shell::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 0% 0%, rgba(91, 140, 255, 0.15), transparent 45%),
    radial-gradient(circle at 100% 100%, rgba(16, 185, 129, 0.1), transparent 40%);
  opacity: 0.8;
  pointer-events: none;
}

.inner {
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(91, 140, 255, 0.9);
}

.hero-title {
  margin: 0 0 0.4rem;
  font-size: clamp(2.1rem, 5vw, 2.7rem);
  letter-spacing: 0.04em;
}

.hero-tagline {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 27rem;
  line-height: 1.5;
}

.divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(148, 163, 184, 0.5),
    transparent
  );
  margin: 1.5rem 0 1.25rem;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.coming {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--accent);
}

.footnote {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.8;
}

.cta-btn {
  margin-top: 1.5rem;
  background: transparent;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 0.6rem 1.6rem;
  color: var(--text-main);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.25s ease-out;
}

.cta-btn:hover {
  border-color: var(--accent);
  box-shadow: 0 0 18px rgba(91, 140, 255, 0.4);
  transform: translateY(-1px);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Demo Section Wrapper ---- */

.demo-section {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

/* ---- Demo Styles ---- */

#app {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 24px;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.35);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.7);
}

header {
  margin-bottom: 64px;
}

header h1 {
  font-size: 64px;
  font-weight: 300;
  letter-spacing: 12px;
  margin-bottom: 8px;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.subtitle {
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 3px;
  opacity: 0.6;
  text-transform: uppercase;
}

.matchup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  margin-bottom: 80px;
  padding: 48px 0;
}

.athlete-card {
  flex: 1;
  max-width: 320px;
  border: 1px solid #fff;
  padding: 48px 32px;
  position: relative;
  transition: all 0.3s ease;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.04), transparent);
}

/* Desktop hover works — mobile hover removed below */
.athlete-card:hover {
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.athlete-name {
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 32px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vote-btn {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
  padding: 16px 48px;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: Inter, sans-serif;
  text-transform: uppercase;
}

.vote-btn:hover {
  background: #fff;
  color: #000;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.vote-btn:active {
  transform: scale(0.95);
}

.vs {
  font-size: 32px;
  font-weight: 100;
  letter-spacing: 8px;
  opacity: 0.4;
}

.leaderboard {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 48px;
}

.leaderboard h3 {
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 6px;
  margin-bottom: 32px;
  opacity: 0.8;
}

#rankings {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.rank-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.rank-item:hover {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.rank-position {
  font-size: 18px;
  font-weight: 300;
  opacity: 0.5;
  min-width: 40px;
  text-align: left;
}

.rank-name {
  flex: 1;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 2px;
  text-align: left;
  margin-left: 24px;
}

.rank-score {
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 2px;
}

/* ---- Disable hover effects on touchscreens (fixes glow sticking) ---- */

@media (hover: none) {
  .athlete-card:hover {
    box-shadow: none !important;
    transform: none !important;
  }

  .vote-btn:hover {
    background: transparent !important;
    color: #fff !important;
    box-shadow: none !important;
  }
}

/* ---- Mobile ---- */

@media (max-width: 768px) {
  .hero {
    padding: 1.5rem 1rem;
  }

  .shell {
    padding: 1.9rem 1.6rem 1.6rem;
    border-radius: 20px;
  }

  .row {
    flex-direction: column;
    align-items: flex-start;
  }

  header h1 {
    font-size: 40px;
    letter-spacing: 8px;
  }

  .matchup {
    flex-direction: column;
    gap: 32px;
  }

  /* FIX: Keep VS upright on mobile */
  .vs {
    transform: none !important;
  }

  .athlete-card {
    max-width: 100%;
  }
}
