* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, #0f172a, #020617);
  color: #e5e7eb;
  font-family: Inter, system-ui, sans-serif;
}

header {
  text-align: center;
  padding: 30px;
}

#tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.tab {
  padding: 8px 16px;
  border-radius: 999px;
  background: #020617;
  border: 1px solid #1e293b;
  cursor: pointer;
  transition: .2s;
}

.tab.active, .tab:hover {
  background: #facc15;
  color: black;
}

#ranking {
  max-width: 1100px;
  margin: auto;
}

.row {
  display: grid;
  grid-template-columns: 60px 60px 1fr 100px repeat(4, 70px);
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid #1e293b;
  animation: fade .4s ease both;
}

.row:hover {
  background: rgba(255,255,255,.03);
  transform: translateY(-2px);
}

@keyframes fade {
  from { opacity: 0; transform: translateY(10px); }
}

.rank {
  font-weight: bold;
  color: #facc15;
}

.avatar {
  width: 48px;
  border-radius: 12px;
  border: 2px solid #facc15;
}

.tier {
  padding: 6px 10px;
  border-radius: 999px;
  text-align: center;
  font-weight: bold;
  font-size: 12px;
}

.gold { background: #facc15; color: black; }
.silver { background: #9ca3af; color: black; }

/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  display: flex;
  justify-content: center;
  align-items: center;
}

.hidden { display: none; }

.modal-card {
  background: #020617;
  border-radius: 20px;
  padding: 30px;
  width: 360px;
  text-align: center;
  position: relative;
}

.avatar-large {
  width: 96px;
  border-radius: 16px;
  border: 3px solid #facc15;
}

.close {
  position: absolute;
  right: 16px;
  top: 12px;
  cursor: pointer;
}
