.topnav { display: flex; gap: 18px; font-size: 14px; font-weight: 600; color: var(--muted); }
.topnav a { text-decoration: none; }
.topnav a:hover { color: var(--text); }
@media (max-width: 560px) { .topnav { display: none; } }
.board-tabs { display: inline-flex; gap: 6px; margin: 4px 0 14px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.06); }
.board-tab { border: 0; background: transparent; color: inherit; padding: 8px 18px; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; }
.board-tab.active { background: var(--lime); color: #0a0c12; }
.rank-list { list-style: none; display: grid; gap: 8px; max-width: 760px; }
.rank-list[hidden] { display: none; }
.rank-row { display: grid; grid-template-columns: 34px 40px 1fr auto auto; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.rank-row:nth-child(-n+3) { border-color: rgba(183,255,88,.35); }
.rank-pos { font-weight: 800; color: var(--lime); text-align: center; }
.rank-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--surface); }
.rank-initial { display: grid; place-items: center; font-weight: 700; color: var(--lime); }
.rank-name { font-weight: 700; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-name:hover { color: var(--lime); }
.rank-ach { color: var(--muted); font-size: 13px; }
.rank-xp { font-weight: 800; }
.rank-empty { padding: 16px; color: var(--muted); }
@media (max-width: 560px) { .rank-row { grid-template-columns: 28px 36px 1fr auto; } .rank-ach { display: none; } }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 22px 0; }
.stat { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.03); }
.stat b { display: block; font-size: 26px; line-height: 1.2; }
.stat span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.profile-head { display: flex; gap: 22px; align-items: center; padding: 44px 0 6px; }
.profile-avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(183,255,88,.4); background: var(--surface); flex: none; }
.profile-head h1 { margin: 0 0 6px; }
.code-box { display: inline-flex; gap: 10px; align-items: center; padding: 8px 14px; border: 1px dashed rgba(183,255,88,.5); border-radius: 12px; margin-top: 8px; }
.code-box code { font-weight: 800; letter-spacing: .12em; color: var(--lime); }
.feed { list-style: none; display: grid; gap: 10px; max-width: 760px; }
.feed li { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.feed img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex: none; }
.feed .what { flex: 1; min-width: 0; }
.feed .what a { text-decoration: none; font-weight: 700; }
.feed .what span { display: block; color: var(--muted); font-size: 13px; }
.feed time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.cards a { text-decoration: none; font-size: 14px; font-weight: 600; }
.cards img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 6px; background: var(--surface); }
.cards small { display: block; color: var(--muted); font-weight: 400; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 14px 16px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p, .faq ol { color: var(--muted); margin-top: 10px; }
.faq ol { padding-left: 20px; display: grid; gap: 4px; }
.console-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }

.player-search { display: flex; gap: 10px; max-width: 760px; margin: 0 0 24px; }
.player-search input { flex: 1; min-width: 0; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; }
.player-search input:focus { outline: 2px solid var(--lime); }
