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

:root {
  --primary-gold: #FFD700;
  --primary-purple: #6B21A8;
  --primary-pink: #EC4899;
  --mog-gradient: linear-gradient(135deg, #FFD700, #6B21A8);
  --bg-dark: #0F0F23;
  --bg-card: #1A1A3E;
  --text-white: #FFFFFF;
  --text-gray: #A0A0B0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.6;
  min-height: 100vh;
}

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

.hero-section {
  text-align: center;
  padding: 3rem 0;
  animation: fadeInDown 0.8s ease;
}

.mog-character {
  font-size: 4rem;
  animation: bounce 2s infinite;
}

.app-title {
  font-size: 3rem;
  background: var(--mog-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 1rem 0;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.subtitle {
  font-size: 1.2rem;
  color: var(--text-gray);
  font-style: italic;
}

.comparison-section {
  padding: 2rem 0;
}

.comparison-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-gold);
  font-size: 2rem;
}

.scoreboard {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.player-card {
  background: var(--bg-card);
  border-radius: 1rem;
  padding: 1.5rem;
  min-width: 200px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid transparent;
}

.player-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.mog-card {
  border-color: var(--primary-gold);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.player-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: linear-gradient(135deg, #2A2A5E, #1A1A3E);
}

.mog-avatar {
  background: var(--mog-gradient);
  animation: pulse 2s infinite;
}

.player-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--text-white);
}

.score {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 1rem 0;
  color: var(--text-gray);
}

.mog-score {
  color: var(--primary-gold);
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.tagline {
  font-size: 0.9rem;
  color: var(--text-gray);
  font-style: italic;
}

.vs-divider {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-pink);
  text-shadow: 0 0 20px rgba(236, 72, 153, 0.5);
}

.categories-section {
  padding: 2rem 0;
}

.categories-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-gold);
  font-size: 2rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.category-item {
  background: var(--bg-card);
  border-radius: 0.75rem;
  padding: 1rem;
  border-left: 4px solid var(--primary-purple);
  transition: transform 0.2s ease;
}

.category-item:hover {
  transform: translateX(5px);
}

.category-item h4 {
  color: var(--text-white);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.category-item p {
  color: var(--text-gray);
  font-size: 0.9rem;
}

.action-section {
  padding: 2rem 0;
}

.action-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-gold);
  font-size: 2rem;
}

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

.category-btn {
  background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.category-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(107, 33, 168, 0.4);
}

.category-btn:active {
  transform: translateY(-1px);
}

.reset-btn {
  display: block;
  margin: 0 auto;
  background: transparent;
  border: 2px solid var(--text-gray);
  color: var(--text-gray);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.reset-btn:hover {
  border-color: var(--primary-pink);
  color: var(--primary-pink);
}

.results-section {
  padding: 2rem 0;
}

.results-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-gold);
  font-size: 2rem;
}

.results-log {
  background: var(--bg-card);
  border-radius: 1rem;
  padding: 1.5rem;
  min-height: 200px;
  max-height: 400px;
  overflow-y: auto;
}

.empty-message {
  text-align: center;
  color: var(--text-gray);
  font-style: italic;
  padding: 2rem 0;
}

.result-item {
  padding: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: slideIn 0.3s ease;
}

.result-item:last-child {
  border-bottom: none;
}

.result-category {
  font-weight: 600;
  color: var(--primary-purple);
}

.result-winner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.result-winner.mog-winner {
  color: var(--primary-gold);
  font-weight: 700;
}

.result-winner.opponent-winner {
  color: var(--text-gray);
}

.result-timestamp {
  font-size: 0.8rem;
  color: var(--text-gray);
}

.app-footer {
  text-align: center;
  padding: 3rem 0;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.app-footer p {
  color: var(--text-gray);
  margin-bottom: 0.5rem;
}

.mog-trademark {
  font-style: italic;
  color: var(--primary-pink);
  font-weight: 600;
}

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

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

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  .app-title {
    font-size: 2rem;
  }
  
  .scoreboard {
    flex-direction: column;
    gap: 1rem;
  }
  
  .vs-divider {
    transform: rotate(90deg);
  }
  
  .category-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .category-btn {
    width: 100%;
    max-width: 300px;
  }
}
