:root {
  --bg-dark: #0a0a0f;
  --bg-card: rgba(20, 20, 30, 0.8);
  --cyan: #00f0ff;
  --magenta: #ff00ff;
  --purple: #8b5cf6;
  --pink: #ff4757;
  --gold: #ffd93d;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg-dark);
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(0, 240, 255, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(255, 0, 255, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

/* Header */
.header {
  text-align: center;
  padding: 2rem 1rem;
  margin-bottom: 2rem;
}

.main-title {
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--magenta), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: glow-pulse 3s ease-in-out infinite;
  text-shadow: 0 0 40px rgba(0, 240, 255, 0.3);
}

@keyframes glow-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
}

.tagline {
  margin-top: 0.75rem;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

/* Arena */
.arena-section {
  margin-bottom: 2rem;
}

.arena-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem;
}

/* Startup Cards */
.startup-card {
  position: relative;
  width: 100%;
  max-width: 320px;
  min-height: 320px;
  background: var(--bg-card);
  border-radius: 20px;
  padding: 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  transition: all 0.3s ease;
  overflow: hidden;
}

.startup-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--accent-color);
}

.startup-card.winner {
  border-color: var(--gold);
  box-shadow: 0 0 30px rgba(255, 217, 61, 0.4);
}

.startup-card.special {
  border-color: var(--pink);
}

.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
  opacity: 0.1;
  pointer-events: none;
}

.card-content {
  position: relative;
  z-index: 1;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.startup-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent-color), transparent);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  border: 2px solid var(--accent-color);
}

.verified-badge {
  background: linear-gradient(135deg, #10b981, #059669);
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

.startup-name {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #fff;
}

.startup-tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.badges-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.badge {
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}

.badge-default {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
}

.badge-verified {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10b981;
  color: #10b981;
}

.vote-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.vote-button {
  width: 100%;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, var(--accent-color), var(--purple));
  border: none;
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Space Grotesk', sans-serif;
}

.vote-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px var(--accent-color);
}

.vote-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* VS Badge */
.vs-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.vs-badge {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  box-shadow: 0 0 30px rgba(255, 0, 255, 0.5);
  animation: vs-pulse 2s ease-in-out infinite;
}

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

.vs-lightning {
  width: 30px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}

.vs-lightning.right {
  background: linear-gradient(90deg, var(--magenta), transparent);
}

/* Random Button */
.random-button {
  display: block;
  margin: 1.5rem auto;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--purple), var(--magenta));
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Space Grotesk', sans-serif;
}

.random-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
}

/* Roster */
.roster-section {
  margin-bottom: 2rem;
  padding: 1rem;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Space Grotesk', sans-serif;
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border-color: var(--cyan);
  color: #fff;
}

.roster-scroll {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 1rem 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--purple) transparent;
}

.roster-scroll::-webkit-scrollbar {
  height: 6px;
}

.roster-scroll::-webkit-scrollbar-thumb {
  background: var(--purple);
  border-radius: 3px;
}

.mini-card {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--bg-card);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.mini-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

.mini-card.selected {
  border-color: var(--cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.mini-card.special {
  border-color: var(--pink);
}

.mini-icon {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--accent-color), transparent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
}

.mini-name {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.mini-verified {
  color: #10b981;
  font-size: 0.75rem;
}

.roster-hint {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.5rem;
}

/* Hot Takes */
.hot-take-section {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
}

.hot-take-title {
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--gold);
}

.hot-take-content {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.hot-take-content.animating {
  opacity: 0.3;
}

.hot-take-text {
  font-size: 1rem;
  font-style: italic;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}

.hot-take-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.generate-button, .share-button {
  padding: 0.7rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Space Grotesk', sans-serif;
  border: none;
}

.generate-button {
  background: linear-gradient(135deg, var(--gold), #f59e0b);
  color: #000;
}

.share-button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

.generate-button:hover, .share-button:hover {
  transform: scale(1.05);
}

/* Leaderboard */
.leaderboard {
  background: var(--bg-card);
  border-radius: 20px;
  margin-bottom: 2rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
}

.leaderboard-toggle {
  width: 100%;
  padding: 1rem 1.5rem;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Space Grotesk', sans-serif;
}

.toggle-arrow {
  transition: transform 0.3s ease;
}

.leaderboard-content {
  padding: 0 1rem 1rem;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.leaderboard-table th {
  text-align: left;
  padding: 0.75rem 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.leaderboard-table td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.verified-row {
  background: rgba(16, 185, 129, 0.1);
}

.special-row {
  background: rgba(255, 71, 87, 0.1);
}

.rank-cell {
  font-size: 1.1rem;
}

.name-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.row-icon {
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.votes-cell {
  font-family: 'JetBrains Mono', monospace;
  color: var(--cyan);
}

.status-cell {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-link {
  color: var(--pink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.footer-link:hover {
  text-shadow: 0 0 20px var(--pink);
}

.footer-credit {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-tagline {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--cyan);
  font-style: italic;
}

/* Confetti */
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.confetti-particle {
  position: absolute;
  border-radius: 50%;
  animation: confetti-fall 2s ease-out forwards;
}

@keyframes confetti-fall {
  0% {
    transform: translateY(-10px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .arena-container {
    flex-direction: column;
  }
  
  .vs-container {
    transform: rotate(90deg);
    padding: 0.5rem;
  }
  
  .startup-card {
    max-width: 100%;
  }
  
  .leaderboard-table {
    font-size: 0.8rem;
  }
  
  .leaderboard-table th,
  .leaderboard-table td {
    padding: 0.5rem 0.25rem;
  }
}