

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

body {
  font-family: 'Century Gothic', CenturyGothic, AppleGothic, sans-serif;
  background: url('background.png') center center/cover no-repeat fixed #0b1630;
  color: #fff;
  overflow-x: hidden;
}

.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: transparent;
  overflow: hidden;
}

.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.02) 0%, rgba(0,0,0,0.3) 100%);
  z-index: 1;
}

.content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  animation: fadeIn 2s ease forwards;
}

/* Language Switcher */
.language-switcher {
  position: absolute;
  top: 2rem;
  right: 2rem;
  z-index: 10;
}

.lang-toggle {
  position: relative;
  display: flex;
  width: 120px;
  height: 40px;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid #f5c35d;
  border-radius: 25px;
  cursor: pointer;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.lang-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(245, 195, 93, 0.3);
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50%;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(245, 195, 93, 0.6);
  transition: all 0.3s ease;
  z-index: 2;
  position: relative;
}

.lang-option.active {
  color: #0b1630;
}

.lang-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, #f5c35d, #e6a84a);
  border-radius: 20px;
  transition: transform 0.3s ease;
  z-index: 1;
}

.content h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #f5c35d;
}

.content h2 {
  font-size: 1.5rem;
  color: #fff;
  margin-top: 0.5rem;
  letter-spacing: 1px;
}

.logo {
  max-width: 120px;
  height: auto;
  margin-bottom: 1rem;
  opacity: 0.95;
}

.tagline {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: #e0e0e0;
  line-height: 1.6;
}

.coming-soon {
  margin-top: 2rem;
  padding: 1rem 2rem;
  border: 2px solid #f5c35d;
  display: inline-block;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #f5c35d;
  transition: background 0.3s ease;
}

.coming-soon:hover {
  background: #f5c35d;
  color: #0b1630;
}

.event-ended {
  margin-top: 2rem;
  padding: 1rem 2rem;
  border: 2px solid #e74c3c;
  display: inline-block;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.1);
}

/* Scroll Hint */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
  z-index: 10;
  width: auto;
  max-width: 300px;
  pointer-events: none;
  animation: scrollHintEntrance 0.8s ease 2.5s forwards;
}

.scroll-text {
  font-size: 1.1rem;
  color: rgba(245, 195, 93, 0.8);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.scroll-arrow {
  font-size: 2rem;
  color: #f5c35d;
  animation: bounce 2s infinite;
}

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

@keyframes scrollHintEntrance {
  0% {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(20px);
  }
  100% {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
}

/* Ranking Section Styles */
.ranking-section {
  background: rgba(29, 43, 83, 0.7);
  padding: 4rem 2rem;
  min-height: 100vh;
}

.ranking-container {
  max-width: 1200px;
  margin: 0 auto;
}

.ranking-title {
  text-align: center;
  color: #f5c35d;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.category-selector {
  text-align: center;
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.category-selector select {
  padding: 12px 24px;
  font-size: 16px;
  border: 2px solid #f5c35d;
  border-radius: 50px;
  background: rgba(245, 195, 93, 0.1);
  color: #f5c35d;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-selector select#unitFilter {
  border-color: #3498db;
  color: #3498db;
  background: rgba(52, 152, 219, 0.1);
}

.category-selector select#unitFilter:hover {
  background: #3498db;
  color: white;
}

.category-selector select:hover {
  background: #f5c35d;
  color: #0b1630;
}

.category-selector select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(245, 195, 93, 0.3);
}

.ranking-table-container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0,0,0,0.3);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
}

.ranking-table thead {
  background: linear-gradient(135deg, #f5c35d 0%, #e6a84a 100%);
  color: #0b1630;
}

.ranking-table th {
  padding: 20px;
  text-align: left;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.ranking-table td {
  padding: 15px 20px;
  border-bottom: 1px solid rgba(245, 195, 93, 0.2);
  color: #0b1630;
  font-weight: 500;
}

.ranking-table tbody tr:hover {
  background-color: rgba(245, 195, 93, 0.1);
  transition: background-color 0.3s ease;
}

.ranking-table tbody tr:last-child td {
  border-bottom: none;
}

.rank {
  font-weight: 800;
  font-size: 1.2em;
}

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

.rank-2 { 
  color: #C0C0C0;
  text-shadow: 1px 1px 2px rgba(192, 192, 192, 0.5);
}

.rank-3 { 
  color: #CD7F32;
  text-shadow: 1px 1px 2px rgba(205, 127, 50, 0.5);
}

.sorted-column {
  font-weight: 800;
  color: #0b1630;
  background: rgba(245, 195, 93, 0.2);
}

.mobile-unit {
  display: none;
}

.hide-mobile {
  display: table-cell;
}

.player-name {
  max-width: none;
  white-space: normal;
}

.loading {
  text-align: center;
  padding: 3rem;
  color: #f5c35d;
  font-size: 1.2rem;
  font-weight: 600;
}

.error {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
  padding: 2rem;
  text-align: center;
  font-weight: 600;
  border-radius: 10px;
  border: 2px solid #e74c3c;
}

footer {
  background: #0b1630;
  padding: 2rem 1rem;
  text-align: center;
}

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

.logos img {
  max-height: 40px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.logos img:hover {
  opacity: 1;
}

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

@media (max-width: 768px) {
  .content h1 {
    font-size: 2rem;
  }

  .content h2 {
    font-size: 1.2rem;
  }

  .tagline {
    font-size: 0.9rem;
  }

  .logos img {
    max-height: 30px;
  }

  .ranking-section {
    padding: 2rem 1rem;
  }

  .ranking-title {
    font-size: 1.8rem;
  }

  .category-selector {
    flex-direction: column;
    gap: 1rem;
  }

  .category-selector select {
    padding: 10px 20px;
    font-size: 14px;
    width: 200px;
  }

  .ranking-table th,
  .ranking-table td {
    padding: 10px 8px;
    font-size: 0.8rem;
  }

  .ranking-table th {
    font-size: 0.7rem;
  }

  .rank {
    font-size: 1rem;
  }

  .ranking-table-container {
    border-radius: 10px;
    overflow-x: auto;
  }

  .ranking-table {
    min-width: 100%;
    font-size: 0.85rem;
  }
  
  .hide-mobile {
    display: none !important;
  }
  
  .player-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .mobile-unit {
    display: block;
    font-size: 0.7rem;
    color: #666;
    font-weight: 400;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .ranking-table th,
  .ranking-table td {
    padding: 8px 6px;
  }
  
  .rank {
    font-size: 0.9rem;
  }

  .language-switcher {
    position: relative;
    top: 0;
    right: 0;
    text-align: center;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
  }

  .lang-toggle {
    width: 100px;
    height: 35px;
  }

  .lang-option {
    font-size: 0.75rem;
  }

  .scroll-hint {
    bottom: 4rem;
  }

  .scroll-text {
    font-size: 1rem;
  }

  .scroll-arrow {
    font-size: 1.7rem;
  }
}

@media (max-width: 480px) {
  .ranking-table-container {
    overflow-x: visible;
  }
  
  .ranking-table {
    display: block;
    background: transparent;
  }
  
  .ranking-table thead {
    display: none;
  }
  
  .ranking-table tbody {
    display: block;
  }
  
  .ranking-table tr {
    display: block;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    margin-bottom: 1.25rem;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    border: 1px solid rgba(245, 195, 93, 0.3);
    transition: all 0.3s ease;
  }
  
  .ranking-table tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
  }
  
  .ranking-table td {
    display: block;
    border: none;
    padding: 0;
    text-align: left;
  }
  
  .ranking-table .rank {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f5c35d, #e6a84a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
  }
  
  .ranking-table .rank-1 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  .ranking-table .rank-2 {
    background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  .ranking-table .rank-3 {
    background: linear-gradient(135deg, #CD7F32, #B87333);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  .ranking-table .player-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    max-width: 75%;
    color: #0b1630;
    line-height: 1.3;
  }
  
  .ranking-table .mobile-unit {
    display: block;
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
    margin-top: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: rgba(245, 195, 93, 0.1);
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 0.75rem;
  }
  
  .ranking-table td:not(.rank):not(.player-name):not(.hide-mobile) {
    background: rgba(11, 22, 48, 0.05);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-top: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: #0b1630;
    text-align: center;
    border: 2px solid transparent;
  }
  
  .ranking-table .sorted-column {
    background: linear-gradient(135deg, rgba(245, 195, 93, 0.2), rgba(245, 195, 93, 0.1)) !important;
    border-color: rgba(245, 195, 93, 0.4) !important;
    color: #0b1630 !important;
  }
}