body {
  font-family: 'Segoe UI', sans-serif;
  background: #0f172a;
  color: #f8fafc;
  margin: 0;
}

header {
  background: #1e293b;
  padding: 1rem;
  display: flex;
  align-items: center;
  border-bottom: 2px solid #334155;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #facc15;
  font-weight: bold;
  font-size: 1.2rem;
  transition: 0.3s;
}

.brand:hover {
  text-shadow: 0 0 10px #facc15;
}

.brand-logo {
  height: 40px;
  margin-right: 10px;
  transition: 0.3s ease;
}

.mode-tabs {
  display: flex;
  gap: 10px;
  margin-left: 20px;
}

.mode-tabs .tab {
  padding: 6px 14px;
  border: 1px solid #334155;
  border-radius: 8px;
  text-decoration: none;
  color: #f8fafc;
  font-weight: 500;
  transition: 0.3s;
}

.mode-tabs .tab:hover {
  border-color: #facc15;
  color: #facc15;
  box-shadow: 0 0 8px #facc15;
}

#searchBar {
  margin-left: auto;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #f8fafc;
  transition: 0.3s ease;
}

#searchBar:focus {
  outline: none;
  border-color: #facc15;
  box-shadow: 0 0 6px #facc15;
}

.container {
  padding: 20px;
}

.page-title {
  text-align: center;
  margin-bottom: 20px;
  color: #facc15;
  font-size: 2rem;
  letter-spacing: 1px;
}

.gamemode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  justify-items: center;
}

.gm-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px;
  background: #1e293b;
  border-radius: 10px;
  text-decoration: none;
  color: #f8fafc;
  border: 1px solid #334155;
  transition: 0.3s;
  box-shadow: 0 0 0 transparent;
}

.gm-card img {
  height: 50px;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.gm-card:hover {
  border-color: #facc15;
  box-shadow: 0 0 15px #facc15;
  color: #facc15;
}

.gm-card:hover img {
  transform: scale(1.1);
}

.leaderboard {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.player-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: #1e293b;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
  margin-bottom: 5px;
  cursor: pointer;
  transition: 0.3s ease;
}

.player-card:hover {
  box-shadow: 0 0 8px #facc15;
}

.player-card.top1 {
  border: 2px solid gold;
  box-shadow: 0 0 15px gold;
}

.player-card.top2 {
  border: 2px solid silver;
  box-shadow: 0 0 15px silver;
}

.player-card.top3 {
  border: 2px solid #cd7f32;
  box-shadow: 0 0 15px #cd7f32;
}

.tiers-wrap {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tier-col {
  flex: 1;
  background: #0f172a;
  padding: 10px;
  border: 1px solid #334155;
  border-radius: 6px;
  min-width: 200px;
}

.tier-head {
  font-weight: bold;
  margin-bottom: 8px;
  text-align: center;
  color: #facc15;
  border-bottom: 1px solid #334155;
  padding-bottom: 5px;
}

.t1 { color: #ffd700; }
.t2 { color: #c0c0c0; }
.t3 { color: #cd7f32; }
.t4, .t5 { color: #94a3b8; }

footer {
  text-align: center;
  padding: 20px;
  background: #1e293b;
  margin-top: 20px;
  color: #94a3b8;
  font-size: 0.9rem;
}

footer a {
  color: #facc15;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: 0.3s;
}

footer a:hover {
  border-color: #facc15;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background: rgba(0,0,0,0.85);
}

.modal-content {
  background: #1e293b;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #facc15;
  border-radius: 10px;
  width: 90%;
  max-width: 320px;
  color: #f8fafc;
  box-shadow: 0 0 15px #facc15;
}

.close {
  color: #facc15;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #fff;
}

.skin-img {
  max-width: 100%;
  margin-top: 10px;
  border-radius: 6px;
}
