*{box-sizing:border-box;font-family:Inter,system-ui}
body{
  margin:0;
  background:radial-gradient(circle at top,#0b1220,#05070d);
  color:#e5e7eb
}

/* NAV */
.nav{
  display:flex;
  align-items:center;
  gap:16px;
  padding:18px 32px
}
.logo{font-size:22px;font-weight:900}
.modes{display:flex;gap:8px}
.tab{
  padding:6px 14px;
  border-radius:999px;
  background:#0c1428;
  border:1px solid #1f2937;
  color:#9ca3af;
  cursor:pointer
}
.tab.active{
  color:#facc15;
  border-color:#facc15;
  box-shadow:0 0 14px #facc15
}
#search{
  margin-left:auto;
  padding:8px 14px;
  border-radius:999px;
  background:#0c1428;
  border:1px solid #1f2937;
  color:white
}

/* TABLE */
.table{padding:0 32px}
.thead,.row{
  display:grid;
  grid-template-columns:60px 1.5fr 120px 2.2fr;
  align-items:center
}
.thead{
  opacity:.6;
  padding:10px 0;
  font-size:13px
}
.row{
  background:linear-gradient(145deg,#0c1428,#060a15);
  padding:14px;
  border-radius:14px;
  margin-bottom:10px;
  cursor:pointer;
  transition:.2s
}
.row:hover{background:#111827}

/* RANK */
.rank{
  font-weight:900;
  font-size:18px
}
.gold{color:#facc15}
.silver{color:#e5e7eb}
.bronze{color:#f59e0b}

/* PLAYER */
.player{
  display:flex;
  align-items:center;
  gap:12px
}
.player img{
  width:42px;height:42px;
  border-radius:50%;
  box-shadow:0 0 10px #facc15
}

/* TIERS */
.tiers{display:flex;gap:6px;flex-wrap:wrap}
.tier{
  padding:6px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
  display:flex;
  align-items:center;
  gap:6px
}
.ht{background:#16a34a}
.lt{background:#2563eb}

/* MODAL */
.modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.75);
  backdrop-filter:blur(4px);
  display:flex;
  justify-content:center;
  align-items:center
}
.modal-box{
  background:#0c1428;
  border-radius:22px;
  padding:28px;
  width:360px;
  text-align:center;
  position:relative;
  animation:zoom .25s ease
}
@keyframes zoom{
  from{transform:scale(.85);opacity:0}
  to{transform:scale(1);opacity:1}
}
#close{
  position:absolute;
  top:14px;
  right:16px;
  cursor:pointer
}
#m-avatar{
  width:96px;
  height:96px;
  border-radius:50%;
  box-shadow:0 0 18px #facc15
}
#m-rank{
  margin-top:8px;
  font-weight:900;
  color:#facc15
}
#m-points{
  font-size:13px;
  opacity:.7
}
#m-tiers{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:center;
  margin-top:14px
}

.hidden{display:none}
