﻿:root {
  color-scheme: dark;
  --bg-deep: #000000;
  --bg-1: #050505;
  --bg-2: #0b0b0b;
  --bg-3: #0f1116;
  --ink: #e7ebff;
  --muted: #a2a9c7;
  --panel: #141a2e;
  --panel-2: #111625;
  --panel-3: #171d33;
  --accent: #7e9bff;
  --radius: 12px;
  --shadow-soft: 0 18px 44px rgba(6, 8, 18, 0.55);
  --shadow-deep: 0 24px 60px rgba(6, 8, 18, 0.7);
  --leaderboard-width: 1120px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "Sora", "Manrope", sans-serif;
  color: var(--ink);
  background: var(--bg-deep);
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: -25% -20% -20% -25%;
  background: none;
  z-index: -3;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: none;
  z-index: -2;
}

.starfield {
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 40px 60px, rgba(255, 255, 255, 0.3) 0, rgba(255, 255, 255, 0) 2px),
    radial-gradient(1px 1px at 220px 140px, rgba(190, 210, 255, 0.25) 0, rgba(255, 255, 255, 0) 2px),
    radial-gradient(1px 1px at 320px 40px, rgba(255, 255, 255, 0.2) 0, rgba(255, 255, 255, 0) 2px);
  background-size: 520px 520px;
  opacity: 0.22;
  filter: blur(0.2px);
  animation: starPulse 14s ease-in-out infinite, starDrift 120s linear infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes starPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.45; }
}

@keyframes starDrift {
  0% { background-position: 0 0; }
  100% { background-position: -600px 600px; }
}

a {
  color: inherit;
}

.is-hidden {
  display: none !important;
}

.page-shell {
  max-width: none;
  margin: 0;
  padding: 32px 32px 70px;
}

.top-nav {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 16px;
  padding: 26px 26px 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(12, 16, 28, 0.85), rgba(10, 12, 20, 0.55));
  border: 1px solid rgba(126, 155, 255, 0.14);
  box-shadow: 0 20px 46px rgba(5, 8, 18, 0.7);
  margin: 0 auto 26px;
  max-width: 1120px;
  width: 100%;
  position: sticky;
  top: 16px;
  z-index: 5;
  backdrop-filter: blur(6px);
  overflow: visible;
}

.top-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 120% at 50% 0%, rgba(126, 155, 255, 0.18), transparent 60%);
  pointer-events: none;
}

.header-gif {
  position: absolute;
  top: 64px;
  left: 22px;
  width: clamp(220px, 28vw, 360px);
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(126, 155, 255, 0.18);
  box-shadow: 0 12px 24px rgba(6, 10, 22, 0.45);
  background: rgba(10, 12, 18, 0.6);
  z-index: 1;
}

.header-gif.header-gif-right {
  left: auto;
  right: 22px;
}

.header-gif img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  justify-content: center;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.brand-logo {
  --logo-size: clamp(26px, 1.4vw + 18px, 34px);
  width: var(--logo-size);
  height: var(--logo-size);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  text-decoration: none;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  text-align: center;
}

.brand-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-subtitle {
  color: rgba(226, 231, 255, 0.6);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-tagline {
  margin-top: 6px;
  font-size: 0.85rem;
  color: rgba(226, 231, 255, 0.75);
  letter-spacing: 0.02em;
  min-height: 1.2em;
}

.brand-cursor {
  display: inline-block;
  margin-left: 2px;
  animation: cursorBlink 0.9s step-start infinite;
  color: rgba(226, 231, 255, 0.85);
}

@keyframes cursorBlink {
  50% { opacity: 0; }
}

.brand-anim {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: clamp(1.15rem, 0.7vw + 1rem, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  transition: gap 0.8s ease-in-out;
}

.brand-anim .brand-group {
  display: inline-flex;
  align-items: center;
  --tail-width: 0;
}

.brand-anim .brand-group.left {
  --tail-width: 3.2ch;
}

.brand-anim .brand-group.right {
  --tail-width: 2.2ch;
}

.brand-anim .brand-w {
  display: inline-block;
  margin-right: 0;
  transition: margin-right 0.6s ease-in-out;
}

.brand-anim .brand-tail {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  max-width: 0;
  transition: max-width 0.7s ease-in-out;
}

.brand-anim .letter {
  display: inline-block;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.brand-anim .letter.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.brand-anim.is-split {
  gap: 26px;
}

.brand-anim.is-split .brand-w {
  margin-right: 6px;
}

.brand-anim.is-reveal .brand-tail {
  max-width: var(--tail-width);
}

.brand-anim.is-merge {
  gap: 0;
}

.brand-anim.is-merge .brand-w {
  margin-right: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 0;
  justify-content: center;
  width: 100%;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.discord-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(12, 16, 30, 0.72);
  border: 1px solid rgba(126, 155, 255, 0.2);
  box-shadow: 0 12px 24px rgba(6, 10, 22, 0.45);
  min-width: 210px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease-out, background 0.2s ease-out;
}

.discord-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}

.discord-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.discord-title {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.discord-status {
  font-size: 0.75rem;
  color: rgba(210, 220, 255, 0.7);
  letter-spacing: 0.03em;
}

.discord-status.is-offline {
  color: rgba(255, 150, 160, 0.85);
}

.discord-card:hover {
  border-color: rgba(126, 155, 255, 0.5);
  background: rgba(16, 20, 36, 0.85);
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(6, 10, 22, 0.55);
}

.practice-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(12, 16, 30, 0.72);
  border: 1px solid rgba(126, 155, 255, 0.2);
  box-shadow: 0 12px 24px rgba(6, 10, 22, 0.45);
  min-width: 210px;
}

.practice-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}

.practice-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.practice-title {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.practice-ip {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(126, 155, 255, 0.3);
  background: rgba(10, 12, 20, 0.7);
  color: var(--ink);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: border-color 0.2s ease-out, background 0.2s ease-out, transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.practice-ip:hover {
  border-color: rgba(126, 155, 255, 0.55);
  background: rgba(16, 20, 36, 0.85);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(6, 10, 22, 0.45);
}

.practice-status {
  font-size: 0.75rem;
  color: rgba(210, 220, 255, 0.7);
  letter-spacing: 0.03em;
}

.practice-status.is-offline {
  color: rgba(255, 150, 160, 0.85);
}

.tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(10, 12, 20, 0.55);
  border: 1px solid rgba(126, 155, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 10px 22px rgba(6, 8, 18, 0.5);
  overflow-x: auto;
  max-width: 100%;
  position: relative;
  z-index: 1;
}

.mode-tabs {
  justify-content: center;
  width: fit-content;
}

.tabs::-webkit-scrollbar {
  height: 0;
}

.tab {
  border: 0;
  background: transparent;
  color: rgba(226, 231, 255, 0.55);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: color 0.2s ease-out, background 0.2s ease-out, box-shadow 0.2s ease-out, transform 0.2s ease-out;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.tab-icon-img {
  width: 20px !important;
  height: 20px !important;
  display: block;
  filter: drop-shadow(0 0 6px rgba(125, 224, 255, 0.25));
  max-width: 20px !important;
  max-height: 20px !important;
  flex: 0 0 20px;
  object-fit: contain;
}

.tabs img {
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  object-fit: contain;
}

.tier-icon {
  width: 14px !important;
  height: 14px !important;
  display: block;
  object-fit: contain;
}

.tier-badge img {
  width: 14px !important;
  height: 14px !important;
  object-fit: contain;
}

.tier-icon-wrap {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tier-accent-soft, rgba(126, 155, 255, 0.18));
  border: 1px solid var(--tier-accent, rgba(126, 155, 255, 0.45));
  box-shadow: 0 5px 10px rgba(6, 10, 22, 0.3);
}

.tier-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 5px;
  min-height: 14px;
  border-radius: 999px;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(235, 240, 255, 0.95);
  background: rgba(12, 16, 30, 0.75);
  border: 1px solid var(--tier-accent, rgba(255, 255, 255, 0.18));
  line-height: 1;
}

.region-badge img {
  width: 20px !important;
  height: 20px !important;
  border-radius: 50%;
  display: block;
}

.tab-icon {
  width: 20px;
  height: 20px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(226, 231, 255, 0.7);
  text-transform: uppercase;
}

.tab-icon::before {
  content: "";
}

.tab.is-active {
  color: var(--ink);
  background: rgba(126, 155, 255, 0.16);
  box-shadow: 0 8px 18px rgba(20, 40, 120, 0.45);
  transform: translateY(-1px);
}

.tab.is-active .tab-icon-img {
  filter: drop-shadow(0 0 10px rgba(125, 224, 255, 0.55));
}

.tab.is-active .tab-icon {
  background: linear-gradient(135deg, rgba(125, 224, 255, 0.9), rgba(126, 155, 255, 0.9));
  color: #0b0f1a;
  box-shadow: 0 6px 16px rgba(60, 120, 255, 0.4);
}

.tab[data-category="Overall"] .tab-icon::before { content: "★"; }
.tab[data-category="LTMs"] .tab-icon::before { content: "L"; }
.tab[data-category="Vanilla"] .tab-icon::before { content: "V"; }
.tab[data-category="UHC"] .tab-icon::before { content: "U"; }
.tab[data-category="Pot"] .tab-icon::before { content: "P"; }
.tab[data-category="NethOP"] .tab-icon::before { content: "N"; }
.tab[data-category="SMP"] .tab-icon::before { content: "S"; }
.tab[data-category="Sword"] .tab-icon::before { content: "SW"; }
.tab[data-category="Axe"] .tab-icon::before { content: "AX"; }
.tab[data-category="Mace"] .tab-icon::before { content: "M"; }

.leaderboard {
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: opacity 0.22s ease-out, transform 0.22s ease-out;
  perspective: 1000px;
  width: min(var(--leaderboard-width), 100%);
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.leaderboard-head {
  display: grid;
  grid-template-columns: 64px 42px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: min(var(--leaderboard-width), 100%);
  margin: 12px auto 8px;
  padding: 0 8px;
  box-sizing: border-box;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(226, 231, 255, 0.45);
  text-align: left;
}

.leaderboard-head-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.leaderboard.is-switching {
  opacity: 0;
  transform: translateY(8px);
}

.overall-panel {
  background: transparent;
  border-radius: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.overall-header {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.overall-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
  align-items: center;
  width: 100%;
}

.overall-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.overall-total {
  text-align: center;
}

.overall-subtitle {
  color: rgba(226, 231, 255, 0.6);
  font-size: 0.9rem;
}

.search-wrap {
  position: relative;
  min-width: 240px;
  width: 240px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-input {
  width: 100%;
  background: #0f1526;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--ink);
  font-size: 0.95rem;
  outline: none;
  transition: border 0.2s ease-out, box-shadow 0.2s ease-out;
}

.search-input:focus {
  border-color: rgba(126, 155, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(126, 155, 255, 0.15);
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: rgba(15, 21, 38, 0.98);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
  padding: 6px;
  display: none;
  z-index: 3;
  max-height: 280px;
  overflow-y: auto;
}

.search-suggestions.is-open {
  display: block;
}

.search-suggestions .empty-state {
  padding: 8px 10px;
}

.suggestion-item {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease-out;
}

.suggestion-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.suggestion-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 14, 28, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.suggestion-avatar img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.suggestion-name {
  font-size: 0.95rem;
  font-weight: 600;
}

.leader-row[data-tier="HT1"] { --tier-accent: #ffd24a; --tier-accent-soft: rgba(255, 210, 74, 0.35); }
.leader-row[data-tier="HT2"] { --tier-accent: #ffd24a; --tier-accent-soft: rgba(255, 210, 74, 0.35); }
.leader-row[data-tier="HT3"] { --tier-accent: #ffd24a; --tier-accent-soft: rgba(255, 210, 74, 0.35); }
.leader-row[data-tier="HT4"] { --tier-accent: #ffd24a; --tier-accent-soft: rgba(255, 210, 74, 0.35); }
.leader-row[data-tier="HT5"] { --tier-accent: #ffd24a; --tier-accent-soft: rgba(255, 210, 74, 0.35); }
.leader-row[data-tier="LT1"] { --tier-accent: #6a7ec0; --tier-accent-soft: rgba(106, 126, 192, 0.22); }
.leader-row[data-tier="LT2"] { --tier-accent: #5f72b1; --tier-accent-soft: rgba(95, 114, 177, 0.22); }
.leader-row[data-tier="LT3"] { --tier-accent: #5566a3; --tier-accent-soft: rgba(85, 102, 163, 0.22); }
.leader-row[data-tier="LT4"] { --tier-accent: #4d5a95; --tier-accent-soft: rgba(77, 90, 149, 0.22); }
.leader-row[data-tier="LT5"] { --tier-accent: #454f87; --tier-accent-soft: rgba(69, 79, 135, 0.22); }

.leader-row {
  display: grid;
  grid-template-columns: 64px 42px minmax(0, 1fr);
  gap: 5px;
  align-items: center;
  min-height: 40px;
  padding: 0 5px;
  border-radius: 8px;
  background: rgba(14, 18, 28, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 8px 16px rgba(6, 10, 22, 0.32);
  transition: background 0.18s ease-out, border-color 0.18s ease-out, transform 0.2s ease-out, box-shadow 0.2s ease-out;
  cursor: pointer;
  position: relative;
  z-index: 0;
  overflow: hidden;
  min-width: 0;
  --rank-color: #2e3948;
  --rank-color-2: #1e2530;
  --rank-text: rgba(235, 238, 245, 0.85);
}

.leader-row:hover {
  background: rgba(18, 22, 34, 0.88);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(6, 10, 20, 0.4);
}

.leader-row[data-rank="1"] {
  --rank-color: #e0b24a;
  --rank-color-2: #bf8a1f;
  --rank-text: rgba(12, 14, 18, 0.92);
}

.leader-row[data-rank="2"] {
  --rank-color: #b7c1c9;
  --rank-color-2: #8d97a2;
  --rank-text: rgba(12, 14, 18, 0.92);
}

.leader-row[data-rank="3"] {
  --rank-color: #c07a3a;
  --rank-color-2: #8f4f1e;
  --rank-text: rgba(12, 14, 18, 0.92);
}

.leader-row[data-rank="1"] .rank-strip::before {
  box-shadow: 0 0 18px rgba(224, 178, 74, 0.45);
}

.leader-row[data-rank="2"] .rank-strip::before {
  box-shadow: 0 0 18px rgba(183, 193, 201, 0.35);
}

.leader-row[data-rank="3"] .rank-strip::before {
  box-shadow: 0 0 18px rgba(192, 122, 58, 0.4);
}

.rank-strip {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  padding-left: 6px;
  overflow: hidden;
  min-width: 0;
}

.rank-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--rank-color), var(--rank-color-2));
  clip-path: polygon(0 0, 88% 0, 100% 100%, 0 100%);
  border-radius: 7px 0 0 7px;
}

.leader-row[data-rank="1"] .rank-strip::before,
.leader-row[data-rank="2"] .rank-strip::before,
.leader-row[data-rank="3"] .rank-strip::before {
  opacity: 0;
}

.rank-num {
  position: relative;
  z-index: 2;
  color: var(--rank-text);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.18);
}

.row-avatar {
  width: 34px;
  height: 28px;
  border-radius: 8px;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
  z-index: 2;
  margin-left: 0;
  justify-self: center;
}

.rank-shimmer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  object-fit: cover;
  object-position: left center;
  pointer-events: none;
}

.row-avatar .skin-avatar {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  position: relative;
  z-index: 1;
}

.row-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.row-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.row-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-meta {
  display: inline-flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 4px;
  margin-left: auto;
  flex-wrap: nowrap;
  max-width: none;
  min-width: 0;
}

.region-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 18px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(12, 14, 20, 0.9);
  background: rgba(255, 255, 255, 0.18);
}

.region-na { background: linear-gradient(135deg, #4d9cff, #2f65ff); }
.region-eu { background: linear-gradient(135deg, #68e6c9, #2bbf8a); }
.region-tr { background: linear-gradient(135deg, #ff7878, #d64545); }

.tier-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.tier-badge.is-ht {
  --tier-accent: #ffd24a;
  --tier-accent-soft: rgba(255, 210, 74, 0.35);
}

.tier-badge.is-retired .tier-pill {
  background: rgba(120, 126, 140, 0.35);
  border-color: rgba(180, 190, 205, 0.5);
  color: rgba(230, 235, 245, 0.85);
}

.tier-badge.is-retired .tier-icon-wrap {
  background: rgba(90, 96, 110, 0.28);
  border-color: rgba(170, 180, 195, 0.45);
  box-shadow: none;
}

.tier-badge.is-retired .tier-icon {
  filter: grayscale(1) brightness(0.85);
}

.row-sub {
  font-size: 0.66rem;
  color: rgba(226, 231, 255, 0.6);
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.row-sub-label {
  color: rgba(226, 231, 255, 0.4);
  font-weight: 600;
}

.row-dot {
  color: rgba(226, 231, 255, 0.45);
}

.row-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-self: end;
  flex-wrap: wrap;
}

.row-badges img {
  width: 14px !important;
  height: 14px !important;
  max-width: 14px;
  max-height: 14px;
  object-fit: contain;
  display: block;
}

.badge.is-category {
  color: rgba(210, 220, 255, 0.9);
  border-color: rgba(126, 155, 255, 0.25);
}

.badge-icon {
  width: 14px;
  height: 14px;
  display: block;
  flex: 0 0 auto;
}

.badge-label {
  line-height: 1;
}

.badge.is-region {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tier-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.profile-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.profile-modal.is-open {
  display: flex;
}

.profile-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 18, 0.7);
  backdrop-filter: blur(2px);
}

.profile-card {
  position: relative;
  width: min(520px, 92vw);
  background: var(--panel);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-deep);
  z-index: 2;
}

.profile-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  text-align: center;
}

.profile-avatar {
  width: 76px;
  height: 76px;
  border-radius: 16px;
  background: rgba(11, 14, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.profile-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.name-center {
  position: relative;
  display: inline-block;
}

.profile-avatar img {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.name-text {
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
  white-space: nowrap;
  display: inline-block;
}

.name-flag {
  position: absolute;
  left: 100%;
  margin-left: 8px;
  top: 50%;
  transform: translateY(-50%);
}

.name-flag img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  object-fit: cover;
  display: none;
  cursor: help;
}

.has-tooltip {
  position: relative;
}

.has-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translate(-50%, 6px);
  background: rgba(12, 16, 28, 0.95);
  color: rgba(230, 235, 255, 0.95);
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: pre;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 5;
}

.has-tooltip::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 2px);
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid rgba(12, 16, 28, 0.95);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 5;
}

.has-tooltip:hover::after,
.has-tooltip:hover::before {
  opacity: 1;
  transform: translate(-50%, 0);
}

.profile-tier-badge {
  cursor: help;
}

.profile-sub {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(226, 231, 255, 0.6);
  font-size: 0.85rem;
  margin-top: 2px;
}

.profile-discord-icon {
  width: 14px;
  height: 14px;
  display: block;
  object-fit: contain;
  opacity: 0.85;
}


.profile-meta {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.profile-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(12, 16, 30, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.profile-item span {
  color: rgba(226, 231, 255, 0.55);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-item strong {
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 700;
}

.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.profile-section-title {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(226, 231, 255, 0.55);
  text-align: center;
}

.profile-tier-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.empty-state {
  color: rgba(226, 231, 255, 0.55);
  font-size: 0.85rem;
  padding: 4px 0 2px;
}

.suggestion-avatar {
  position: relative;
  overflow: hidden;
}

.blacklist-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.9;
  pointer-events: none;
}

.suggestion-name.is-blacklisted {
  position: relative;
  color: rgba(255, 170, 180, 0.95);
}

.suggestion-name.is-blacklisted::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: rgba(255, 80, 90, 0.85);
  transform: translateY(-50%);
  border-radius: 999px;
}

.suggestion-tag {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(120, 40, 50, 0.25);
  border: 1px solid rgba(220, 90, 100, 0.35);
  color: rgba(255, 190, 200, 0.9);
  flex: 0 0 auto;
}

.clans-panel {
  margin: 34px auto 0;
  max-width: 1120px;
}

.clans-header {
  text-align: center;
  margin-bottom: 26px;
}

.clans-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: rgba(45, 20, 80, 0.35);
  border: 1px solid rgba(126, 155, 255, 0.25);
  color: rgba(190, 200, 255, 0.9);
  margin-bottom: 12px;
}

.clans-header h2 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 1vw + 1.4rem, 2.4rem);
  letter-spacing: 0.02em;
}

.clans-header p {
  margin: 0;
  color: rgba(226, 231, 255, 0.65);
}

.clans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.clan-card {
  position: relative;
  min-height: 220px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(55, 35, 90, 0.35), rgba(14, 18, 28, 0.92));
  border: 1px solid rgba(120, 130, 180, 0.2);
  box-shadow: 0 20px 38px rgba(6, 10, 22, 0.55);
  overflow: hidden;
}

.clan-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(140, 120, 220, 0.35), rgba(18, 22, 34, 0.1));
  opacity: 0.55;
  pointer-events: none;
}

.clan-card-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  text-align: center;
}

.clan-card-icon {
  width: 58px !important;
  height: 58px !important;
  max-width: 58px;
  max-height: 58px;
  margin: 0 auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(8, 10, 22, 0.55));
  opacity: 0.9;
}

.clan-card-badge {
  align-self: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(15, 21, 38, 0.9);
  border: 1px solid rgba(126, 155, 255, 0.22);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
}

.clan-card-text {
  font-size: 0.95rem;
  color: rgba(226, 231, 255, 0.85);
}

.blacklist-panel {
  margin: 34px auto 0;
  max-width: 1120px;
}

.blacklist-header {
  text-align: center;
  margin-bottom: 22px;
}

.blacklist-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: rgba(120, 40, 50, 0.25);
  border: 1px solid rgba(220, 90, 100, 0.35);
  color: rgba(255, 190, 200, 0.9);
  margin-bottom: 12px;
}

.blacklist-header h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 0.9vw + 1.3rem, 2.1rem);
}

.blacklist-header p {
  margin: 0;
  color: rgba(226, 231, 255, 0.65);
}

.blacklist-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
}

.blacklist-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(36, 18, 26, 0.96), rgba(12, 14, 22, 0.96));
  border: 1px solid rgba(220, 90, 100, 0.28);
  box-shadow: 0 18px 34px rgba(6, 10, 22, 0.6);
  min-height: 86px;
}

.blacklist-avatar {
  position: relative;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(10, 12, 18, 0.7);
  border: 1px solid rgba(220, 90, 100, 0.25);
}

.blacklist-skin {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  display: block;
}

.blacklist-icon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.9;
  filter: drop-shadow(0 6px 12px rgba(40, 0, 0, 0.5));
}

.blacklist-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.blacklist-nick {
  font-size: 0.95rem;
  font-weight: 700;
}

.blacklist-discord {
  font-size: 0.8rem;
  color: rgba(226, 231, 255, 0.65);
}

.blacklist-reason {
  margin-top: 4px;
  padding: 5px 7px;
  border-radius: 10px;
  background: rgba(20, 8, 12, 0.6);
  border: 1px solid rgba(220, 90, 100, 0.25);
  font-size: 0.78rem;
  color: rgba(255, 210, 220, 0.9);
}

.profile-blacklist {
  display: none;
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(22, 10, 14, 0.7);
  border: 1px solid rgba(220, 90, 100, 0.3);
}

.profile-blacklist-label {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: rgba(120, 40, 50, 0.25);
  border: 1px solid rgba(220, 90, 100, 0.35);
  color: rgba(255, 190, 200, 0.9);
  margin-bottom: 10px;
}

.profile-blacklist-reason {
  font-size: 0.95rem;
  color: rgba(255, 210, 220, 0.95);
  line-height: 1.4;
}

.profile-blacklist-date {
  margin-top: 10px;
  font-size: 0.82rem;
  color: rgba(255, 180, 190, 0.85);
}

.profile-modal.is-blacklist .profile-meta {
  display: none;
}

.profile-modal.is-blacklist .profile-blacklist {
  display: block;
}

.profile-barrier {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  pointer-events: none;
  display: none;
}

.profile-modal.is-blacklist .profile-barrier {
  display: block;
}

.panel-tabs {
  display: flex;
  align-items: center;
  justify-content: stretch;
  gap: 8px;
  margin-bottom: 14px;
}

.panel-tab {
  flex: 1 1 0;
  text-align: center;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 21, 38, 0.7);
  color: rgba(226, 231, 255, 0.7);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s ease-out, background 0.2s ease-out, color 0.2s ease-out, transform 0.2s ease-out;
}

.panel-tab.is-active {
  border-color: rgba(126, 155, 255, 0.4);
  background: rgba(126, 155, 255, 0.14);
  color: var(--ink);
  transform: translateY(-1px);
}

.panel-form.is-hidden {
  display: none;
}

textarea {
  resize: vertical;
  min-height: 90px;
}

.panel-toggle,
.panel-link {
  border: 0;
  border-radius: 10px;
  background: #1f2746;
  color: var(--ink);
  padding: 10px 16px;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(7, 10, 22, 0.55);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.panel-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.panel-toggle:hover,
.panel-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(7, 10, 22, 0.7);
}

.tester-panel {
  position: fixed;
  right: 24px;
  top: 90px;
  width: min(340px, 90vw);
  background: var(--panel);
  border-radius: 14px;
  padding: 16px 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-deep);
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.25s ease-out, opacity 0.25s ease-out;
  z-index: 3;
}

body.panel-open .tester-panel {
  transform: translateX(0);
  opacity: 1;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.panel-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.panel-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.panel-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.panel-subtitle {
  font-size: 0.78rem;
  color: rgba(226, 231, 255, 0.6);
  letter-spacing: 0.02em;
}

.panel-logout {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 24, 40, 0.8);
  color: var(--ink);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: border-color 0.2s ease-out, background 0.2s ease-out, transform 0.2s ease-out;
}

.panel-logout:hover {
  border-color: rgba(126, 155, 255, 0.35);
  background: rgba(28, 36, 58, 0.9);
  transform: translateY(-1px);
}

.panel-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.85rem;
  color: var(--muted);
}

input,
select {
  background: #0f1526;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--ink);
  font-size: 0.95rem;
  outline: none;
  transition: border 0.2s ease-out, box-shadow 0.2s ease-out;
}

input:focus,
select:focus {
  border-color: rgba(126, 155, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(126, 155, 255, 0.15);
}

.form-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.primary-btn,
.secondary-btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.primary-btn {
  background: #2a3560;
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(9, 12, 26, 0.55);
}

.secondary-btn {
  background: transparent;
  color: var(--muted);
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(9, 12, 26, 0.7);
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(20, 26, 46, 0.95);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
  z-index: 4;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.is-error {
  border-color: rgba(220, 90, 100, 0.45);
  background: rgba(120, 40, 50, 0.35);
  color: #ffb7bf;
}

footer {
  margin-top: 50px;
  padding-bottom: 10px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease-out;
}

footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 60px;
}

.auth-card {
  width: min(460px, 100%);
  background: var(--panel);
  border-radius: 14px;
  padding: 32px;
  box-shadow: var(--shadow-deep);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-card h1 {
  font-size: 1.6rem;
  margin: 0 0 6px;
}

.auth-card p {
  margin: 0 0 20px;
  color: var(--muted);
}

.auth-error {
  background: rgba(120, 40, 50, 0.2);
  border: 1px solid rgba(220, 90, 100, 0.35);
  color: #ffb7bf;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.page-admin .page-shell {
  max-width: none;
  margin: 0;
  padding: 32px 32px 60px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto 22px;
  padding: 18px 20px;
  max-width: 1200px;
  border-radius: 16px;
  background: linear-gradient(140deg, rgba(18, 24, 44, 0.9), rgba(10, 12, 22, 0.8));
  border: 1px solid rgba(126, 155, 255, 0.18);
  box-shadow: var(--shadow-soft);
}

.admin-title .brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-title .brand-subtitle {
  color: rgba(226, 231, 255, 0.6);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 4px;
}

.admin-shell {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.admin-card {
  background: var(--panel);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
}

.admin-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.admin-card-header h2 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.admin-card-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.admin-form {
  margin-bottom: 8px;
}

.admin-result {
  min-height: 1.2em;
  color: rgba(210, 220, 255, 0.75);
  font-size: 0.85rem;
}

.admin-table-wrap {
  margin-top: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow-x: auto;
  background: rgba(10, 14, 24, 0.35);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.admin-table th,
.admin-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
}

.admin-table th {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(226, 231, 255, 0.6);
  font-size: 0.65rem;
}

.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.admin-code {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  background: rgba(12, 16, 30, 0.7);
  border: 1px solid rgba(126, 155, 255, 0.28);
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-badge.is-active {
  background: rgba(40, 120, 90, 0.3);
  border: 1px solid rgba(80, 200, 150, 0.45);
  color: #a7f0d2;
}

.admin-badge.is-inactive {
  background: rgba(120, 40, 50, 0.25);
  border: 1px solid rgba(220, 90, 100, 0.45);
  color: #ffb7bf;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.admin-search {
  max-width: 280px;
}

.admin-count {
  color: var(--muted);
  font-size: 0.8rem;
}

.admin-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-stat {
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(15, 21, 38, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 120px;
}

.admin-stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(226, 231, 255, 0.55);
}

.admin-stat-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

@media (max-width: 700px) {
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-search {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .top-nav {
    align-items: center;
    position: static;
  }

  .brand {
    justify-content: center;
  }

  .nav-actions {
    width: 100%;
    justify-content: center;
  }

  .mode-tabs {
    width: 100%;
    justify-content: center;
  }

  .tester-panel {
    right: 16px;
    top: 80px;
  }
}

@media (max-width: 700px) {
  .page-shell {
    padding: 28px 18px 60px;
  }

  .overall-panel {
    padding: 0;
  }

  .overall-header {
    flex-direction: column;
    align-items: stretch;
  }

  .search-wrap {
    width: 100%;
    min-width: 100%;
  }

  .leader-row {
    grid-template-columns: 56px 38px minmax(0, 1fr);
    min-height: 44px;
    padding: 0 5px;
  }

  .leaderboard-head {
    grid-template-columns: 56px 38px minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    padding: 0 6px;
    letter-spacing: 0.1em;
  }

  .row-avatar {
    width: 30px;
    height: 26px;
  }

  .row-avatar .skin-avatar {
    width: 22px;
    height: 22px;
  }

  .tester-panel {
    position: fixed;
    right: 0;
    left: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    border-radius: 18px 18px 0 0;
    transform: translateY(120%);
  }

  body.panel-open .tester-panel {
    transform: translateY(0);
  }
}
