:root {
  --bg: #07080c;
  --bg-2: #0b0d14;
  --bg-3: #11131c;
  --panel: rgba(18, 20, 30, 0.96);
  --panel-2: rgba(22, 24, 36, 0.98);
  --panel-3: rgba(28, 26, 44, 0.98);
  --panel-soft: rgba(255, 255, 255, 0.025);
  --line: rgba(155, 145, 200, 0.14);
  --line-strong: rgba(140, 120, 210, 0.32);
  --line-bright: rgba(170, 150, 240, 0.55);
  --text: #f5f3fc;
  --text-dim: #d4cfe2;
  --muted: #a59fbb;
  --soft: #6e687f;
  --magenta: #ff8a5c;
  --magenta-bright: #ffb36d;
  --purple: #26c6da;
  --red: #ff5c6c;
  --orange: #ffb347;
  --aqua: #5ee7ff;
  --lime: #9bff8a;
  --gold: #ffcf5c;
  --silver: #d6dde9;
  --bronze: #cd8a4a;
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.35);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.55);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(circle at 12% -10%, rgba(255, 179, 71, 0.15), transparent 38%),
    radial-gradient(circle at 88% -10%, rgba(94, 231, 255, 0.20), transparent 42%),
    radial-gradient(circle at 50% 110%, rgba(255, 92, 108, 0.12), transparent 38%),
    linear-gradient(180deg, var(--bg) 0%, #05060a 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

a { color: inherit; }

::selection { background: rgba(157, 139, 255, 0.35); color: white; }

/* ============== LAYOUT ============== */

.page-shell {
  width: min(1380px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 64px;
}

.layout { display: grid; gap: 24px; }

/* ============== TOPBAR ============== */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 30px;
  padding: 6px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
}

.brand h1, .display-title, .section-title, .hero h2, .stat-number, .page-title {
  font-family: 'Teko', sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

.brand h1 {
  margin: 0;
  font-size: 1.95rem;
  line-height: 0.95;
}

.eyebrow {
  margin: 0 0 4px;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.topnav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  background: rgba(13, 13, 22, 0.6);
  border: 1px solid var(--line);
  padding: 5px;
  border-radius: 10px;
  backdrop-filter: blur(8px);
}

.topnav a {
  text-decoration: none;
  color: var(--muted);
  padding: 9px 14px;
  border-radius: 7px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
  position: relative;
}

.topnav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.topnav a.active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(255, 179, 71, 0.22), rgba(94, 231, 255, 0.20), rgba(255, 92, 108, 0.18));
  box-shadow: inset 0 0 0 1px rgba(255, 213, 128, 0.32);
}

/* ============== CARDS ============== */

.card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}

.panel { padding: 24px; }

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}

.panel-head a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all 0.18s var(--ease);
}

.panel-head a:hover {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.panel-head a::after {
  content: "→";
  display: inline-block;
  transition: transform 0.18s var(--ease);
}

.panel-head a:hover::after { transform: translateX(2px); }

/* ============== HERO ============== */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 32px;
  min-height: 480px;
  padding: 38px 34px 30px;
  border: 1px solid rgba(255, 196, 97, 0.26);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(22, 14, 18, 0.96), rgba(6, 14, 20, 0.98));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 8, 12, 0.32) 0%, rgba(7, 9, 15, 0.72) 56%, rgba(9, 11, 18, 0.96) 100%),
    linear-gradient(95deg, rgba(8, 10, 16, 0.92) 0%, rgba(8, 10, 16, 0.78) 32%, rgba(8, 10, 16, 0.34) 62%, rgba(8, 10, 16, 0.16) 100%),
    linear-gradient(125deg, rgba(255, 179, 71, 0.12) 0%, rgba(94, 231, 255, 0.18) 48%, rgba(255, 92, 108, 0.12) 100%),
    url('hero-banner.jpg') center top / cover no-repeat;
  transform: scale(1.02);
  filter: saturate(1.1);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(13, 15, 23, 0.84) 0%, rgba(18, 20, 30, 0.58) 36%, rgba(18, 20, 30, 0.10) 64%, transparent 100%);
  clip-path: polygon(0 0, 70% 0, 50% 100%, 0 100%);
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(13, 8, 18, 0.65);
  border: 1px solid rgba(170, 150, 240, 0.28);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  backdrop-filter: blur(8px);
  margin-bottom: 14px;
}

.hero-meta .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #6fff9c;
  box-shadow: 0 0 0 4px rgba(111, 255, 156, 0.18);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(111, 255, 156, 0.18); }
  50% { box-shadow: 0 0 0 7px rgba(111, 255, 156, 0.05); }
}

.hero h2 {
  margin: 4px 0 14px;
  font-size: clamp(3.5rem, 8.4vw, 6.8rem);
  line-height: 0.82;
  background: linear-gradient(95deg, #ffb347 0%, #ffe08a 20%, #5ee7ff 52%, #ff5c6c 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.30);
  letter-spacing: 0.02em;
}

.hero p.muted {
  max-width: 56ch;
  line-height: 1.65;
  color: #ece2f4;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
  font-size: 0.98rem;
  margin: 0;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
  font-family: inherit;
  white-space: nowrap;
}

.btn.primary {
  color: white;
  background: linear-gradient(135deg, #ff9f1c 0%, #2ec4ff 55%, #ff4d4d 100%);
  box-shadow: 0 8px 24px rgba(46, 196, 255, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(124, 102, 238, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.btn.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(6px);
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line-bright);
}

.btn.ghost {
  color: var(--muted);
  background: transparent;
  border-color: var(--line);
}
.btn.ghost:hover { color: var(--text); border-color: var(--line-strong); }

.hero-side {
  display: grid;
  gap: 12px;
  align-content: center;
}

.side-box {
  background: linear-gradient(180deg, rgba(13, 8, 18, 0.55), rgba(13, 8, 18, 0.32));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  padding: 16px 18px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.side-box::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(170, 150, 240, 0.45), transparent);
}

.side-box span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 6px;
}

.side-box strong {
  font-family: 'Teko', sans-serif;
  letter-spacing: 0.04em;
  font-size: 1.95rem;
  font-weight: 600;
  display: block;
  line-height: 1;
  color: var(--text);
}

.side-box small {
  display: block;
  margin-top: 4px;
  font-size: 0.74rem;
  color: var(--soft);
  letter-spacing: 0.04em;
}

/* ============== KPI / SUMMARY GRID ============== */

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.mini {
  padding: 18px 18px 16px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease);
}

.mini::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--magenta), var(--purple), transparent 80%);
  opacity: 0.7;
}

.mini:nth-child(2)::before { background: linear-gradient(90deg, var(--aqua), var(--magenta), transparent 80%); }
.mini:nth-child(3)::before { background: linear-gradient(90deg, var(--gold), var(--orange), transparent 80%); }
.mini:nth-child(4)::before { background: linear-gradient(90deg, var(--red), var(--magenta), transparent 80%); }

.mini:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.label {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  margin-bottom: 12px;
  font-weight: 700;
}

.stat-number {
  font-size: 2.3rem;
  line-height: 0.9;
  margin: 0 0 8px;
  background: linear-gradient(180deg, #ffffff 0%, #c8c1de 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mini p, .muted, .subtext {
  color: var(--muted);
}

.mini p {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.4;
}

/* ============== CONTENT GRIDS ============== */

.content-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.section-title, .page-title {
  margin: 2px 0 0;
  font-size: 1.95rem;
  line-height: 0.9;
  color: var(--text);
}

.kicker {
  color: var(--magenta-bright);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 700;
  margin: 0;
}

/* ============== ROWS / LISTS ============== */

.player-list, .feed-list, .clan-list, .season-list { display: grid; gap: 10px; }

.row-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.022);
  border-radius: 8px;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease), transform 0.15s var(--ease);
}

.row-card:hover {
  border-color: rgba(170, 150, 240, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

.row-card.highlight {
  background: linear-gradient(135deg, rgba(111, 231, 255, 0.08), rgba(110, 91, 207, 0.14));
  border-color: rgba(140, 120, 210, 0.3);
}

.row-card.is-link { cursor: pointer; }
.row-card.is-link:hover { transform: translateY(-1px); }

/* podium */
.place-1 {
  background: linear-gradient(135deg, rgba(255, 207, 92, 0.28), rgba(255, 175, 70, 0.20), rgba(255, 240, 175, 0.10));
  border-color: rgba(255, 207, 92, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255, 207, 92, 0.10), 0 4px 16px rgba(255, 175, 70, 0.08);
}

.place-2 {
  background: linear-gradient(135deg, rgba(232, 236, 245, 0.22), rgba(181, 189, 207, 0.16), rgba(255, 255, 255, 0.08));
  border-color: rgba(214, 220, 233, 0.32);
}

.place-3 {
  background: linear-gradient(135deg, rgba(205, 138, 74, 0.28), rgba(156, 92, 42, 0.18), rgba(255, 201, 146, 0.10));
  border-color: rgba(201, 130, 60, 0.34);
}

tbody tr.place-1 td,
tbody tr.place-2 td,
tbody tr.place-3 td {
  background: transparent;
}

tbody tr.place-1 {
  background: linear-gradient(90deg, rgba(255, 207, 92, 0.16), rgba(255, 175, 70, 0.10), rgba(255, 240, 175, 0.06));
}

tbody tr.place-2 {
  background: linear-gradient(90deg, rgba(232, 236, 245, 0.12), rgba(181, 189, 207, 0.08), rgba(255, 255, 255, 0.04));
}

tbody tr.place-3 {
  background: linear-gradient(90deg, rgba(205, 138, 74, 0.14), rgba(156, 92, 42, 0.08), rgba(255, 201, 146, 0.04));
}

.identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.identity > div:last-child {
  min-width: 0;
}

.identity strong {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 28ch;
}

.row-card strong {
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--text);
  letter-spacing: 0.005em;
}

.subtext {
  font-size: 0.8rem;
  margin-top: 2px;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: 'Teko', sans-serif;
  font-size: 1.4rem;
  background: linear-gradient(135deg, #6e5bcf, #b766ff);
  color: white;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 2px 8px rgba(110, 91, 207, 0.32);
  flex: 0 0 auto;
  letter-spacing: 0;
}

.avatar-head {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: linear-gradient(135deg, #4a3f7c, #6e5bcf);
}

.avatar-head::before {
  content: attr(data-letter);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: 'Teko', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0;
  color: white;
  z-index: 0;
}

.avatar-head img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  z-index: 1;
  display: block;
}

.avatar-lg {
  width: 96px;
  height: 96px;
  border-radius: 12px;
}
.avatar-lg::before { font-size: 3rem; }

.place-1 .avatar:not(.avatar-head) { background: linear-gradient(135deg, #f4c057, #ffa54d); }
.place-2 .avatar:not(.avatar-head) { background: linear-gradient(135deg, #d6dde9, #9da6bb); color: #1a1c26; }
.place-3 .avatar:not(.avatar-head) { background: linear-gradient(135deg, #cd8a4a, #a05f2c); }

.place-1 .avatar-head { box-shadow: 0 0 0 2px rgba(255, 207, 92, 0.6), 0 4px 16px rgba(255, 175, 70, 0.18); }
.place-2 .avatar-head { box-shadow: 0 0 0 2px rgba(214, 220, 233, 0.55); }
.place-3 .avatar-head { box-shadow: 0 0 0 2px rgba(205, 138, 74, 0.55); }

.player-link {
  text-decoration: none;
  color: inherit;
  display: contents;
}

.identity-link {
  text-decoration: none;
  color: inherit;
}

.identity-link:hover strong {
  color: var(--magenta-bright);
}

.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--soft);
  margin-right: 4px;
  vertical-align: middle;
}

.status-dot.online {
  background: #6fff9c;
  box-shadow: 0 0 6px rgba(111, 255, 156, 0.6);
}

.status-dot.offline { background: #6e687f; }

.rank-badge {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-family: 'Teko', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text);
  flex: 0 0 auto;
  letter-spacing: 0.04em;
}

.rank-badge.r1 { background: linear-gradient(135deg, #f4c057, #ffa54d); color: #1d1606; border-color: rgba(255, 207, 92, 0.6); }
.rank-badge.r2 { background: linear-gradient(135deg, #d6dde9, #9da6bb); color: #1a1c26; border-color: rgba(214, 220, 233, 0.5); }
.rank-badge.r3 { background: linear-gradient(135deg, #cd8a4a, #a05f2c); color: #1d0a02; border-color: rgba(201, 130, 60, 0.6); }

.score-block {
  text-align: right;
  flex: 0 0 auto;
}

.score-block strong {
  display: block;
  font-family: 'Teko', sans-serif;
  font-size: 1.85rem;
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--text);
}

.score-block span {
  display: block;
  margin-top: 3px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

/* ============== STATUS PILLS ============== */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  white-space: nowrap;
}

.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--muted);
}

.pill.published { color: #a8eebd; border-color: rgba(122, 220, 144, 0.32); background: rgba(122, 220, 144, 0.08); }
.pill.published::before { background: #6fff9c; box-shadow: 0 0 6px rgba(111, 255, 156, 0.6); }

.pill.review { color: #ffd680; border-color: rgba(255, 200, 110, 0.32); background: rgba(255, 200, 110, 0.08); }
.pill.review::before { background: #ffc870; }

.pill.pending { color: #c0bfff; border-color: rgba(160, 145, 240, 0.32); background: rgba(160, 145, 240, 0.08); }
.pill.pending::before { background: var(--magenta); }
.pill.live { color: #b9ffca; border-color: rgba(111, 255, 156, 0.32); background: rgba(111, 255, 156, 0.08); }
.pill.live::before { background: #6fff9c; box-shadow: 0 0 6px rgba(111, 255, 156, 0.55); }

.pill.solid {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

/* ============== CHART ============== */

.fake-chart {
  height: 240px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
  align-items: end;
  padding: 12px 4px 0;
  position: relative;
}

.fake-chart::before {
  content: "";
  position: absolute;
  inset: 0 0 0 0;
  background-image:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 100% 25%;
  pointer-events: none;
}

.fake-chart .bar {
  position: relative;
  background: linear-gradient(180deg, var(--magenta) 0%, var(--purple) 100%);
  border-radius: 6px 6px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 0;
  box-shadow: 0 0 24px rgba(157, 139, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: filter 0.18s var(--ease);
  min-height: 14px;
}

.fake-chart .bar:hover { filter: brightness(1.18); }

.fake-chart .bar .bar-value {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Teko', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

.chart-labels {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  color: var(--muted);
  text-align: center;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  gap: 12px;
}

.chart-labels span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============== FEED ============== */

.feed-list { list-style: none; margin: 0; padding: 0; gap: 0; }
.feed-list li {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}
.feed-list li:last-child { border-bottom: 0; }
.feed-list li > div { flex: 1; min-width: 0; }
.feed-list strong {
  display: block;
  font-size: 0.93rem;
  color: var(--text);
  margin-bottom: 2px;
}
.feed-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  margin-top: 7px;
  flex: 0 0 auto;
  box-shadow: 0 0 8px currentColor;
}
.dot.magenta { background: var(--magenta); color: var(--magenta); }
.dot.purple { background: var(--purple); color: var(--purple); }
.dot.red { background: var(--red); color: var(--red); }
.dot.orange { background: var(--orange); color: var(--orange); }
.dot.aqua { background: var(--aqua); color: var(--aqua); }

/* ============== PAGE HERO ============== */

.page-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  padding: 28px 28px 26px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 100% 100%, rgba(157, 139, 255, 0.12), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(111, 231, 255, 0.06), transparent 50%);
  pointer-events: none;
}

.page-hero > * { position: relative; }

.page-hero p { margin: 8px 0 0; max-width: 60ch; }

/* ============== FILTERS ============== */

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  padding: 9px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.83rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: all 0.18s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.chip:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
}

.chip.active {
  color: white;
  border-color: rgba(170, 150, 240, 0.55);
  background: linear-gradient(135deg, rgba(157, 139, 255, 0.20), rgba(110, 91, 207, 0.30));
  box-shadow: 0 4px 14px rgba(124, 102, 238, 0.20);
}

.chip .count {
  font-family: 'Teko', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.04em;
  padding: 0 4px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  min-width: 26px;
  text-align: center;
}

.chip.active .count { background: rgba(255, 255, 255, 0.14); }

/* ============== TABLE ============== */

.table-wrap { overflow: auto; border-radius: 10px; }
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
th {
  color: var(--soft);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.015);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
}

td { font-size: 0.92rem; }

td.rank {
  font-family: 'Teko', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  width: 60px;
}

tbody tr.place-1 td.rank { color: var(--gold); }
tbody tr.place-2 td.rank { color: var(--silver); }
tbody tr.place-3 td.rank { color: var(--bronze); }

td.player-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

td.score {
  font-family: 'Teko', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
}

tbody tr { transition: background 0.15s var(--ease); }
tbody tr:hover { background: rgba(255, 255, 255, 0.03); }

.up { color: #b9ffd0; font-weight: 700; }
.down { color: var(--red); font-weight: 700; }
.same { color: var(--soft); font-weight: 700; }

/* ============== NOTICES ============== */

.notice {
  padding: 16px 18px;
  border-left: 3px solid var(--magenta);
  background: linear-gradient(90deg, rgba(157, 139, 255, 0.08), transparent 60%);
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.55;
  border-radius: 0 8px 8px 0;
}

.notice strong { color: var(--text); display: block; margin-bottom: 4px; font-size: 0.92rem; }

.footer-note {
  margin-top: 18px;
  color: var(--soft);
  font-size: 0.84rem;
  line-height: 1.5;
}

/* ============== SEARCH INPUT ============== */

.search-bar {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.search-input {
  flex: 1;
  min-width: 260px;
  padding: 13px 16px 13px 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23a59fbb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>") 14px center/18px no-repeat,
    rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.search-input::placeholder { color: var(--soft); }
.search-input:focus {
  outline: none;
  border-color: var(--line-bright);
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23a59fbb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>") 14px center/18px no-repeat,
    rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 4px rgba(157, 139, 255, 0.12);
}

/* ============== EMPTY STATE ============== */

.empty-state {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 36px 24px;
  border: 1px dashed rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.015);
  border-radius: 10px;
  gap: 6px;
}

.empty-state .icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(157, 139, 255, 0.16), rgba(110, 91, 207, 0.10));
  border: 1px solid rgba(170, 150, 240, 0.22);
  margin-bottom: 8px;
}

.empty-state .icon svg { width: 22px; height: 22px; stroke: var(--magenta-bright); }

.empty-state strong {
  display: block;
  font-size: 1.05rem;
  color: var(--text);
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 42ch;
  line-height: 1.5;
}

/* ============== SKELETON ============== */

.skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  color: transparent !important;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.06) 50%, transparent 100%);
  animation: shimmer 1.5s linear infinite;
}

@keyframes shimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

.skel-line { height: 12px; border-radius: 4px; margin: 6px 0; }
.skel-line.lg { height: 18px; }
.skel-line.xl { height: 26px; }
.skel-line.short { width: 30%; }
.skel-line.mid { width: 60%; }
.skel-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
}

.skel-circle {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
}
.skel-circle::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.06) 50%, transparent 100%);
  animation: shimmer 1.5s linear infinite;
}

.skel-row > .skel-body { flex: 1; }
.skel-row > .skel-tail { width: 70px; text-align: right; }

/* ============== PROFILE / CATEGORY GRID ============== */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}

.cat-card:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.cat-card .label { margin-bottom: 6px; }
.cat-card .num {
  font-family: 'Teko', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
}

/* ============== FOOTER ============== */

.site-footer {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--soft);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.site-footer .auth {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-footer .auth::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #6fff9c;
  box-shadow: 0 0 6px rgba(111, 255, 156, 0.6);
}

/* ============== PLAYER PROFILE ============== */

.profile-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius-lg);
}

.profile-hero .name-block { min-width: 0; }
.profile-hero h2 {
  margin: 4px 0 6px;
  font-family: 'Teko', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 0.9;
  color: var(--text);
}
.profile-hero .meta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 8px;
  align-items: center;
}
.profile-hero .meta-row strong { color: var(--text); }

.profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.profile-stat {
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-stat .label { margin-bottom: 8px; }
.profile-stat .num {
  font-family: 'Teko', sans-serif;
  font-size: 1.9rem;
  letter-spacing: 0.04em;
  line-height: 0.9;
  color: var(--text);
}
.profile-stat .sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

@media (max-width: 760px) {
  .profile-hero { grid-template-columns: auto 1fr; }
  .profile-hero .score-block { grid-column: 1 / -1; text-align: left; }
}

/* ============== ADMIN/DEBUG DETAILS ============== */

.admin-details {
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
  font-size: 0.82rem;
  color: var(--muted);
}

.admin-details summary {
  cursor: pointer;
  color: var(--soft);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  font-weight: 700;
  list-style: none;
}

.admin-details summary::-webkit-details-marker { display: none; }
.admin-details summary::before {
  content: "▸ ";
  margin-right: 6px;
  transition: transform 0.18s var(--ease);
  display: inline-block;
}
.admin-details[open] summary::before { transform: rotate(90deg); }

.admin-details dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 16px;
  margin: 12px 0 0;
}
.admin-details dt { color: var(--soft); }
.admin-details dd { margin: 0; color: var(--text-dim); word-break: break-all; }

/* ============== UTIL ============== */

.divider { height: 1px; background: rgba(255, 255, 255, 0.06); margin: 18px 0; }

.flex-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.text-right { text-align: right; }

/* ============== RESPONSIVE ============== */

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .content-grid, .two-col { grid-template-columns: 1fr; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h2 { font-size: clamp(2.8rem, 10vw, 5rem); }
}

@media (max-width: 760px) {
  .page-shell { width: min(100% - 18px, 1380px); padding-top: 16px; }
  .topbar { flex-direction: column; align-items: flex-start; gap: 14px; }
  .topnav { width: 100%; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .topnav a { white-space: nowrap; }
  .page-hero { flex-direction: column; align-items: flex-start; padding: 22px; }
  .panel-head { flex-direction: column; align-items: flex-start; }
  .row-card { flex-direction: row; align-items: center; gap: 12px; }
  .row-card .identity strong { max-width: 18ch; }
  .score-block strong { font-size: 1.55rem; }
  .hero { padding: 26px 22px; }
  .hero::after { clip-path: none; background: linear-gradient(180deg, rgba(14, 7, 18, 0.78) 0%, rgba(14, 7, 18, 0.42) 52%, transparent 100%); }
  .summary-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .panel { padding: 20px; }
  .stat-number { font-size: 1.9rem; }
  th, td { padding: 12px 10px; font-size: 0.84rem; }
  td.rank, td.score { font-size: 1.2rem; }
  .fake-chart { height: 180px; gap: 6px; }
  .chart-labels { gap: 6px; font-size: 0.66rem; }
}

@media (max-width: 460px) {
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .hero h2 { font-size: 2.6rem; }
  .brand h1 { font-size: 1.5rem; }
  .brand-mark { width: 42px; height: 42px; }
  .row-card { padding: 12px; }
  .avatar { width: 38px; height: 38px; font-size: 1.2rem; }
}
