
body {
  font-family: 'Segoe UI', sans-serif;
  background: #f4f6f8;
  margin: 0;
  padding: 1rem;
  text-align: center;
}

.container {
  max-width: 700px;
  margin: auto;
}

.logo {
  width: 100px;
  margin-bottom: 1rem;
}

h1, h2 {
  margin: 1rem 0 0.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  margin: 1rem 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

th, td {
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

th {
  background: #ffc107;
  font-weight: bold;
}

.rank-cell {
  white-space: nowrap;
  display: inline-flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
}

tr:nth-child(even) {
  background: #f9f9f9;
}

.rank-system {
  margin-top: 2rem;
}

.codename {
  font-weight: 500;
}

/* Home Button */
.home-button {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 50%;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.home-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.home-button:active {
  transform: translateY(-1px) scale(1.02);
}

.home-button::before {
  content: "🏠";
  font-size: 24px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Responsive for mobile */
@media (max-width: 768px) {
  .home-button {
    top: 15px;
    left: 15px;
    width: 50px;
    height: 50px;
  }
  
  .home-button::before {
    font-size: 20px;
  }
}

/* Tournament Tools */
.tournament-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tournament-section h3 {
    color: white;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.3em;
}

.tournament-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.tournament-btn.primary {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
}

.tournament-btn.primary:hover {
    background: linear-gradient(45deg, #ee5a24, #ff6b6b);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(238, 90, 36, 0.4);
}

.tournament-btn.secondary {
    background: linear-gradient(45deg, #4834d4, #686de0);
    color: white;
}

.tournament-btn.secondary:hover {
    background: linear-gradient(45deg, #686de0, #4834d4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(72, 52, 212, 0.4);
}

.tournament-btn.success {
    background: linear-gradient(45deg, #00b894, #00cec9);
    color: white;
}

.tournament-btn.success:hover {
    background: linear-gradient(45deg, #00cec9, #00b894);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.4);
}
