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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: #0f0f0f;
  background-image: 
    linear-gradient(rgba(255, 107, 53, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 107, 53, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  color: #e8e8e8;
  padding: 20px;
  overflow-x: hidden;
  min-height: 100vh;
}

.terminal {
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(145deg, #1a1a1a 0%, #0f0f0f 100%);
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 107, 53, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.terminal-header {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: #0f0f0f;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-bottom: 2px solid #ff8c5a;
}

.terminal-close {
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.terminal-close:hover {
  opacity: 1;
}

.terminal-body {
  padding: 40px;
  min-height: 80vh;
  background-color: #0f0f0f;
}

.ascii-art {
  font-size: 11px;
  font-family: 'Courier New', Courier, monospace;
  line-height: 1.3;
  margin-bottom: 30px;
  text-align: center;
  color: #ff6b35;
  opacity: 0.9;
  font-weight: 600;
}

.command-line {
  margin: 24px 0;
  font-size: 14px;
  font-family: 'Courier New', Courier, monospace;
  padding: 12px 16px;
  background: rgba(255, 107, 53, 0.05);
  border-left: 3px solid #ff6b35;
  border-radius: 4px;
}

.prompt {
  color: #ff6b35;
  font-weight: bold;
}

.command {
  color: #f7931e;
  margin-left: 8px;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 40px 0 30px;
  font-size: 14px;
  font-family: 'Courier New', Courier, monospace;
}

.section-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: #ff6b35;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.leaderboard-content {
  margin: 30px 0;
}

.leaderboard-entry {
  margin: 16px 0;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.08) 0%, rgba(247, 147, 30, 0.04) 100%);
  border: 1px solid rgba(255, 107, 53, 0.2);
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.leaderboard-entry::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #ff6b35 0%, #f7931e 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.leaderboard-entry:hover {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.12) 0%, rgba(247, 147, 30, 0.08) 100%);
  border-color: rgba(255, 107, 53, 0.4);
  transform: translateX(4px);
}

.leaderboard-entry:hover::before {
  opacity: 1;
}

.entry-rank {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #e8e8e8;
  display: flex;
  align-items: center;
  gap: 12px;
}

.rank-1 { 
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.rank-2 { 
  color: #c0c0c0;
  text-shadow: 0 0 10px rgba(192, 192, 192, 0.5);
}

.rank-3 { 
  color: #cd7f32;
  text-shadow: 0 0 10px rgba(205, 127, 50, 0.5);
}

.entry-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #e8e8e8;
}

.entry-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #e8e8e8;
}

.entry-details {
  font-size: 14px;
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  opacity: 0.9;
}

.entry-level {
  color: #f7931e;
  margin-right: 0;
  font-weight: 500;
}

.entry-points {
  color: #ff6b35;
  margin-right: 0;
  font-weight: 600;
}

.entry-badges {
  margin-top: 8px;
  font-size: 16px;
  display: flex;
  gap: 8px;
}

.streak {
  color: #ff6b35;
  font-weight: 500;
}

.loading {
  text-align: center;
  font-size: 16px;
  padding: 60px;
  color: #999;
}

.footer {
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 107, 53, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #999;
  font-family: 'Courier New', Courier, monospace;
}

.blinking-cursor {
  animation: blink 1s step-end infinite;
  color: #ff6b35;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Responsive */
@media (max-width: 768px) {
  .terminal-body {
    padding: 24px;
  }
  
  .ascii-art {
    font-size: 8px;
  }
  
  .leaderboard-entry {
    padding: 16px;
  }
  
  .entry-rank {
    font-size: 16px;
  }
  
  .entry-name {
    font-size: 15px;
  }
  
  .entry-details {
    font-size: 13px;
    flex-direction: column;
    gap: 8px;
  }
  
  .footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
