* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: #0f111a;
  color: #e2e8f0;
  line-height: 1.5;
  padding: 20px;
}
.container { max-width: 720px; margin: 0 auto; }
header { text-align: center; margin-bottom: 30px; }
header h1 { font-size: 2.2rem; color: #ffe27a; letter-spacing: 1px; }
.subtitle { color: #94a3b8; font-size: 1rem; margin-top: 4px; }
.maj { font-size: 0.85rem; color: #64748b; margin-top: 8px; }

.search-box, .leaderboard-box {
  background: #1a1d2d;
  border: 1px solid #2d334d;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

form { display: flex; gap: 10px; }
input {
  flex: 1;
  background: #0f111a;
  border: 1px solid #334155;
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 1rem;
}
input:focus { outline: none; border-color: #ffe27a; }
button {
  background: #ffe27a;
  color: #1a1500;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}
button:hover { opacity: 0.9; }

.result { margin-top: 16px; }
.msg { color: #cbd5e1; margin-top: 8px; }
.note { color: #94a3b8; font-size: 0.9rem; margin-top: 6px; }
.link {
  background: none;
  color: #7fdcff;
  padding: 2px 6px;
  text-decoration: underline;
  font-weight: normal;
}

.card {
  background: #23273d;
  border: 1px solid #3b4266;
  border-radius: 10px;
  padding: 18px;
  margin-top: 12px;
}
.card.cap { border-color: #ffe27a; }
.head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.name { font-size: 1.4rem; color: #fff; }
.badge { background: #ffe27a; color: #1a1500; padding: 2px 8px; border-radius: 6px; font-weight: bold; font-size: 0.85rem; }
.rank { margin-left: auto; color: #94a3b8; font-size: 0.9rem; font-weight: 600; }

.bar { background: #0f111a; height: 10px; border-radius: 5px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #3fd6cc, #ffe27a); }
.barlbl { font-size: 0.85rem; color: #94a3b8; margin: 6px 0 16px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.stat { background: #161926; padding: 10px 12px; border-radius: 8px; border: 1px solid #262b42; }
.stat .k { display: block; font-size: 0.78rem; color: #94a3b8; text-transform: uppercase; }
.stat .v { display: block; font-size: 1.15rem; color: #f8fafc; margin-top: 2px; }
.stat .s { display: block; font-size: 0.75rem; color: #64748b; margin-top: 2px; }

.tabs { display: flex; gap: 8px; margin-bottom: 16px; border-bottom: 1px solid #2d334d; padding-bottom: 12px; flex-wrap: wrap; }
.tabs button { background: #23273d; color: #cbd5e1; padding: 8px 14px; font-weight: 600; }
.tabs button.on { background: #ffe27a; color: #1a1500; }

.board { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.board li button {
  width: 100%;
  display: flex;
  align-items: center;
  background: #161926;
  color: #f8fafc;
  padding: 12px 16px;
  border: 1px solid #262b42;
  text-align: left;
}
.board li button:hover { border-color: #ffe27a; }
.pos { width: 32px; font-weight: bold; color: #ffe27a; }
.nm { flex: 1; font-weight: 600; }
.val { color: #7fdcff; font-weight: 600; font-size: 0.9rem; }