:root {
  --bg: #08111c;
  --panel: rgba(7, 18, 34, 0.94);
  --line: rgba(129, 190, 255, 0.16);
  --text: #edf6ff;
  --muted: #8ea2bc;
  --blue: #5ab8ff;
  --purple: #9567ff;
  --gold: #ffd700;
  --silver: #c0c0c0;
  --bronze: #cd7f32;
  --red: #ff4964;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

button,
a,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.hidden {
  display: none !important;
}

/* BACKGROUND */

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -5;
  background: url("/assets/img/zeus-bg.png") center top / cover no-repeat;
  filter: saturate(1.08) blur(1px);
  transform: scale(1.02);
}

.site-fade {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 50% 0%, rgba(149, 103, 255, 0.18), transparent 30%),
    radial-gradient(circle at 70% 8%, rgba(255, 215, 0, 0.14), transparent 20%),
    linear-gradient(to bottom, rgba(8, 17, 28, 0.18), rgba(8, 17, 28, 0.74) 42%, rgba(8, 17, 28, 0.96) 78%);
}

.site-clouds {
  position: fixed;
  inset: 0;
  z-index: -4;
  overflow: hidden;
  pointer-events: none;
}

.site-clouds i {
  position: absolute;
  width: 360px;
  height: 100px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 18% 52%, rgba(255, 255, 255, 0.12), transparent 34%),
    radial-gradient(circle at 47% 35%, rgba(255, 255, 255, 0.09), transparent 38%),
    radial-gradient(circle at 72% 57%, rgba(255, 255, 255, 0.08), transparent 36%);
  filter: blur(12px);
  opacity: 0.36;
  animation: driftCloud 32s linear infinite;
}

.site-clouds i:nth-child(1) {
  top: 120px;
  left: -400px;
  animation-duration: 34s;
}

.site-clouds i:nth-child(2) {
  top: 250px;
  left: -480px;
  animation-delay: -12s;
  animation-duration: 42s;
}

.site-clouds i:nth-child(3) {
  top: 430px;
  left: -440px;
  animation-delay: -22s;
  animation-duration: 39s;
}

.site-clouds i:nth-child(4) {
  top: 50px;
  left: -330px;
  animation-delay: -6s;
  animation-duration: 30s;
  opacity: 0.24;
}

@keyframes driftCloud {
  to {
    transform: translateX(calc(100vw + 700px));
  }
}

/* LOADING SCREEN */

.intro {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(149, 103, 255, 0.19), transparent 34%),
    linear-gradient(135deg, #070913 0%, #0d1020 48%, #080b14 100%);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.intro.done {
  opacity: 0;
  visibility: hidden;
}

.intro-core {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 24px;
  animation: loaderLogoPop 1.4s ease-in-out infinite alternate;
}

.intro-logo {
  width: 185px;
  height: auto;
  filter:
    drop-shadow(0 0 30px rgba(149, 103, 255, 0.34))
    drop-shadow(0 0 22px rgba(255, 215, 0, 0.24));
}

.intro-dots {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
}

.intro-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.65);
  animation: loadingDot 0.9s ease-in-out infinite;
}

.intro-dots i:nth-child(2) {
  animation-delay: 0.08s;
}

.intro-dots i:nth-child(3) {
  animation-delay: 0.16s;
}

.intro-dots i:nth-child(4) {
  animation-delay: 0.24s;
}

.intro-dots i:nth-child(5) {
  animation-delay: 0.32s;
}

.intro-dots i:nth-child(6) {
  animation-delay: 0.4s;
}

.particle {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 22px rgba(255, 215, 0, 0.78);
  opacity: 0.95;
  animation: particleFloat 2.2s ease-in-out infinite alternate;
}

.p1 { left: 14%; top: 64%; }
.p2 { left: 34%; top: 33%; animation-delay: -0.3s; }
.p3 { right: 21%; top: 69%; animation-delay: -0.7s; }
.p4 { right: 10%; top: 13%; animation-delay: -1.1s; }
.p5 { left: 58%; bottom: 18%; animation-delay: -1.4s; }

@keyframes loaderLogoPop {
  from {
    transform: translateY(0) scale(1);
  }

  to {
    transform: translateY(-8px) scale(1.035);
  }
}

@keyframes loadingDot {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.35;
  }

  50% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

@keyframes particleFloat {
  from {
    transform: translateY(0) scale(0.8);
    opacity: 0.45;
  }

  to {
    transform: translateY(-24px) scale(1.15);
    opacity: 1;
  }
}

/* HEADER */

.topbar,
.layout {
  width: min(1500px, calc(100vw - 42px));
  margin-inline: auto;
}

.topbar {
  margin-top: 18px;
  min-height: 124px;
  display: grid;
  grid-template-columns: 310px 1fr 480px;
  gap: 18px;
  align-items: center;
  padding: 18px 24px;
  background: rgba(8, 17, 31, 0.8);
  border: 1px solid var(--line);
  border-radius: 26px;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
}

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

.brand img {
  width: 210px;
  filter:
    drop-shadow(0 0 14px rgba(255, 215, 0, 0.13))
    drop-shadow(0 0 14px rgba(149, 103, 255, 0.12));
  transition: transform 0.24s ease, filter 0.24s ease;
}

.brand:hover img {
  transform: translateY(-3px) scale(1.035);
  filter:
    drop-shadow(0 0 20px rgba(255, 215, 0, 0.26))
    drop-shadow(0 0 16px rgba(149, 103, 255, 0.28));
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.nav-link {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(118, 176, 255, 0.14);
  background: rgba(15, 29, 49, 0.58);
  padding: 13px 18px;
  border-radius: 17px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  transform: translateY(-2px);
  background: rgba(19, 39, 65, 0.94);
  border-color: rgba(151, 202, 255, 0.25);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.24),
    0 0 18px rgba(149, 103, 255, 0.1);
}

.nav-link img {
  width: 22px;
  height: 22px;
}

.nav-icon {
  font-size: 18px;
}

.top-actions {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 12px;
  align-items: center;
}

.top-ip-box {
  height: 54px;
  display: grid;
  grid-template-columns: 1fr 42px;
  align-items: center;
  gap: 10px;
  padding: 8px 9px 8px 14px;
  border-radius: 18px;
  border: 1px solid rgba(118, 176, 255, 0.14);
  background: rgba(15, 29, 49, 0.76);
}

.top-ip-box small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.top-ip-box strong {
  display: block;
  margin-top: 5px;
  color: #f4f8ff;
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
}

.copy-ip {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  border: 0;
  background: #213b67;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.copy-ip:hover {
  transform: translateY(-2px);
  background: #2a4b80;
}

.search-wrap {
  position: relative;
  height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 18px;
  background: rgba(15, 29, 49, 0.76);
  border: 1px solid rgba(118, 176, 255, 0.14);
}

.search-wrap input {
  width: 100%;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-size: 15px;
}

.search-wrap kbd {
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: none;
  padding: 8px;
  border-radius: 18px;
  background: rgba(8, 17, 31, 0.98);
  border: 1px solid rgba(118, 176, 255, 0.16);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  z-index: 70;
}

.search-results.show {
  display: block;
}

/* MAIN */

.layout {
  padding: 16px 0 30px;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.tabs.animate-tabs .tab {
  opacity: 0;
  transform: translateY(24px);
  animation: tabRise 0.55s ease forwards;
}

.tabs.animate-tabs .tab:nth-child(1) { animation-delay: 0.02s; }
.tabs.animate-tabs .tab:nth-child(2) { animation-delay: 0.08s; }
.tabs.animate-tabs .tab:nth-child(3) { animation-delay: 0.14s; }
.tabs.animate-tabs .tab:nth-child(4) { animation-delay: 0.2s; }
.tabs.animate-tabs .tab:nth-child(5) { animation-delay: 0.26s; }
.tabs.animate-tabs .tab:nth-child(6) { animation-delay: 0.32s; }
.tabs.animate-tabs .tab:nth-child(7) { animation-delay: 0.38s; }

@keyframes tabRise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab {
  position: relative;
  min-width: 0;
  min-height: 108px;
  border-radius: 22px 22px 0 0;
  border: 1px solid rgba(120, 181, 255, 0.13);
  border-bottom-color: transparent;
  background: linear-gradient(180deg, rgba(22, 42, 67, 0.92), rgba(13, 24, 43, 0.94));
  color: var(--muted);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 9px;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.24s ease,
    background 0.24s ease,
    box-shadow 0.24s ease,
    color 0.24s ease;
}

.tab::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 4px;
  border-radius: 999px 999px 0 0;
  background: transparent;
}

.tab img {
  width: 29px;
  height: 29px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.tab span {
  font-size: 18px;
  font-weight: 900;
}

.tab:hover {
  transform: translateY(-9px) scale(1.025);
  background: linear-gradient(180deg, rgba(31, 57, 90, 0.98), rgba(14, 30, 50, 0.98));
  color: var(--text);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.28),
    0 0 18px rgba(149, 103, 255, 0.12);
}

.tab:hover img {
  transform: translateY(-2px) scale(1.08);
}

.tab.active {
  color: var(--text);
  background: linear-gradient(180deg, rgba(31, 57, 90, 0.98), rgba(14, 30, 50, 0.98));
}

.tab.active::after {
  background: #f4f8ff;
}

.panel {
  margin-top: 0;
  background: linear-gradient(180deg, rgba(6, 18, 36, 0.95), rgba(5, 15, 30, 0.93));
  border: 1px solid var(--line);
  border-radius: 0 0 30px 30px;
  padding: 30px 32px 18px;
  min-height: 740px;
  position: relative;
  overflow: visible;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.28);
}

.panel.home-panel {
  border-radius: 30px;
  margin-top: 18px;
}

.panel-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 22px;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 18px;
}

.panel-title img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.panel-title h2 {
  margin: 0;
  font-size: clamp(38px, 4vw, 54px);
  line-height: 1;
}

.panel-title p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 800;
}

.server-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 16px;
  min-width: 410px;
  border-radius: 24px;
  border: 1px solid rgba(112, 177, 255, 0.18);
  background: rgba(12, 28, 50, 0.76);
}

.info-btn {
  height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  border: 0;
  background: #213b67;
  color: var(--text);
  font-weight: 850;
  cursor: pointer;
}

.server-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.server-main img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.server-main small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.server-main strong {
  display: block;
  font-size: 22px;
  line-height: 1.05;
}

.discord-pill {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 0;
  background: #213b67;
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
}

.discord-pill img {
  width: 22px;
  height: 22px;
}

.data-loader {
  position: absolute;
  top: 190px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.data-loader.show {
  opacity: 1;
}

.loader-orb {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid rgba(255, 215, 0, 0.2);
  border-top-color: var(--gold);
  border-right-color: var(--purple);
  animation: loaderSpin 0.75s linear infinite;
}

.loader-orb.small {
  width: 34px;
  height: 34px;
}

@keyframes loaderSpin {
  to {
    transform: rotate(360deg);
  }
}

.content {
  min-height: 520px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.content.loading {
  opacity: 0;
  transform: translateY(10px);
}

.footer {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid rgba(140, 196, 255, 0.08);
  color: var(--muted);
  font-weight: 750;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 260px;
  color: var(--muted);
  font-size: 20px;
  font-weight: 850;
  text-align: center;
}

/* HOME */

.home-hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 36px 18px 18px;
}

.home-eyebrow {
  color: var(--gold);
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 14px;
}

.home-title {
  margin: 0;
  font-size: clamp(52px, 6vw, 96px);
  line-height: 0.98;
  font-weight: 1000;
  letter-spacing: -0.06em;
}

.home-title .blue {
  color: #54baff;
}

.home-title .white {
  color: #f4f8ff;
}

.home-desc {
  margin: 22px 0 0;
  max-width: 760px;
  color: rgba(238, 246, 255, 0.92);
  font-size: 22px;
  line-height: 1.45;
  font-weight: 750;
}

.home-sub {
  margin: 14px 0 0;
  max-width: 700px;
  color: rgba(207, 222, 241, 0.72);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 650;
}

.home-buttons {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.home-btn {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 18px;
  padding: 0 22px;
  text-decoration: none;
  border: 1px solid rgba(129, 190, 255, 0.17);
  color: var(--text);
  font-weight: 950;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.home-btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.home-btn.primary {
  background: linear-gradient(135deg, #245f9c, #5434a5);
}

.home-btn.secondary {
  background: linear-gradient(135deg, #9d7424, #4d3c19);
}

.home-btn:hover {
  transform: translateY(-4px) scale(1.02);
}

.home-logo-card {
  justify-self: center;
  width: min(420px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 42px;
  border: 1px solid rgba(129, 190, 255, 0.14);
  background:
    radial-gradient(circle at 50% 45%, rgba(149, 103, 255, 0.2), transparent 45%),
    rgba(11, 27, 49, 0.5);
  animation: homeFloat 2.6s ease-in-out infinite alternate;
}

.home-logo-card img {
  width: 78%;
}

@keyframes homeFloat {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

.home-section-title {
  margin: 48px 0 22px;
  font-size: 34px;
  font-weight: 1000;
}

.podium {
  min-height: 430px;
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 38px;
  align-items: end;
  padding: 28px 24px 8px;
}

.podium-card {
  position: relative;
  min-height: 285px;
  padding: 0 22px 22px;
  border-radius: 18px 18px 0 0;
  background: rgba(20, 31, 48, 0.92);
  cursor: pointer;
  text-align: center;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.podium-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
}

.podium-card.first {
  min-height: 350px;
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.26), rgba(90, 68, 0, 0.5));
}

.podium-card.second {
  background: linear-gradient(180deg, rgba(192, 192, 192, 0.22), rgba(40, 46, 56, 0.65));
}

.podium-card.third {
  background: linear-gradient(180deg, rgba(205, 127, 50, 0.24), rgba(62, 26, 10, 0.65));
}

.podium-skin-wrap {
  width: 150px;
  height: 150px;
  margin: -82px auto 12px;
  border-radius: 18px;
  border: 4px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.18);
  display: grid;
  place-items: center;
  position: relative;
}

.podium-card.first .podium-skin-wrap {
  width: 168px;
  height: 168px;
  margin-top: -100px;
  border-color: rgba(255, 215, 0, 0.55);
}

.podium-skin {
  width: 130px;
  height: 130px;
  object-fit: contain;
}

.podium-card.first .podium-skin {
  width: 145px;
  height: 145px;
}

.podium-badge {
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 1000;
  color: #111827;
}

.podium-card.first .podium-badge { background: var(--gold); }
.podium-card.second .podium-badge { background: var(--silver); }
.podium-card.third .podium-badge { background: var(--bronze); }

.podium-name {
  margin-top: 16px;
  font-size: 26px;
  font-weight: 1000;
}

.podium-rank {
  margin-top: 6px;
  color: var(--gold);
  font-size: 26px;
  font-weight: 1000;
}

.podium-icon {
  margin: 34px auto 0;
  width: 74px;
  height: 74px;
  opacity: 0.42;
}

.home-top-grid {
  display: grid;
  gap: 12px;
}

.home-mini-row {
  display: grid;
  grid-template-columns: 70px 54px 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 76px;
  padding: 10px 16px;
  border-radius: 20px;
  border: 1px solid rgba(129, 190, 255, 0.11);
  background: rgba(12, 29, 50, 0.72);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.home-mini-row:hover {
  transform: translateX(-8px) scale(1.005);
  background: rgba(18, 39, 66, 0.8);
}

.home-mini-row img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.home-mini-place {
  font-size: 28px;
  font-weight: 1000;
  font-style: italic;
  color: var(--gold);
}

.home-mini-name {
  font-size: 22px;
  font-weight: 950;
}

.home-mini-points {
  color: var(--muted);
  font-weight: 850;
}

.home-view-full {
  margin: 28px auto 4px;
  width: fit-content;
}

/* OVERALL */

.overall-head {
  display: grid;
  grid-template-columns: 170px minmax(300px, 1.45fr) 110px 1fr;
  gap: 18px;
  padding: 0 18px 12px;
  color: #6f86a5;
  font-size: 17px;
  font-weight: 950;
  letter-spacing: 0.03em;
}

.ranking-list {
  display: grid;
  gap: 12px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 170px minmax(300px, 1.45fr) 110px 1fr;
  gap: 18px;
  align-items: center;
  padding: 0 18px 0 0;
  min-height: 98px;
  border-radius: 0 22px 22px 0;
  border: 1px solid rgba(118, 176, 255, 0.09);
  background: linear-gradient(90deg, rgba(20, 35, 55, 0.98), rgba(10, 23, 40, 0.9));
  cursor: pointer;
  overflow: visible;
  transition:
    transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.ranking-row:hover {
  transform: translateX(-10px) scale(1.006);
  border-color: rgba(125, 196, 255, 0.2);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.25),
    0 0 24px rgba(149, 103, 255, 0.14);
}

.rank-plate {
  position: relative;
  height: 76px;
  display: flex;
  align-items: center;
  padding-left: 24px;
  font-size: 34px;
  font-weight: 1000;
  font-style: italic;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.rank-plate::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
  background: linear-gradient(135deg, #1d3555, #10223b);
}

.ranking-row.first .rank-plate::before,
.rank-plate.first::before {
  background: linear-gradient(135deg, #ffd700, #d3a600);
}

.ranking-row.second .rank-plate::before,
.rank-plate.second::before {
  background: linear-gradient(135deg, #c0c0c0, #8c9aa7);
}

.ranking-row.third .rank-plate::before,
.rank-plate.third::before {
  background: linear-gradient(135deg, #cd7f32, #88420e);
}

.rank-plate .rank-skin {
  position: absolute;
  right: 4px;
  bottom: -4px;
  width: 82px;
  height: 82px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 5px 7px rgba(0, 0, 0, 0.42));
  z-index: 3;
  pointer-events: none;
}

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

.player-info {
  display: grid;
  gap: 6px;
}

.player-name {
  font-size: 32px;
  font-weight: 950;
  line-height: 1;
}

.player-rank {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: #f7d353;
  font-weight: 850;
}

.player-rank img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.player-rank span {
  color: var(--muted);
}

.region-badge {
  min-width: 56px;
  display: inline-flex;
  justify-content: center;
  padding: 12px 12px;
  border-radius: 14px;
  font-weight: 950;
  font-size: 18px;
}

.region-badge.as,
.region-badge.na {
  background: rgba(151, 40, 60, 0.82);
}

.region-badge.eu {
  background: rgba(45, 122, 63, 0.82);
}

.region-badge.oce {
  background: rgba(42, 94, 171, 0.82);
}

.region-badge.sa {
  background: rgba(155, 102, 41, 0.82);
}

.region-badge.af,
.region-badge.me {
  background: rgba(95, 70, 139, 0.82);
}

.tiers-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tier-pill {
  width: 58px;
  min-height: 58px;
  padding: 6px 4px 7px;
  border-radius: 18px;
  background: rgba(11, 21, 38, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tier-pill:hover {
  transform: translateY(-3px);
}

.tier-pill img {
  width: 23px;
  height: 23px;
  object-fit: contain;
}

.tier-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 3px 6px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 950;
}

.tier-pill.ht span {
  background: rgba(190, 126, 47, 0.3);
  color: #ffc954;
}

.tier-pill.lt span {
  background: rgba(108, 123, 153, 0.32);
  color: #d7e0f0;
}

.tier-pill.nt span {
  background: rgba(97, 106, 121, 0.36);
  color: #b8c1ce;
}

/* GAMEMODE */

.mode-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.tier-column {
  min-width: 0;
  border-radius: 24px 24px 10px 10px;
  overflow: hidden;
  background: rgba(11, 25, 44, 0.87);
  border: 1px solid rgba(118, 176, 255, 0.1);
}

.tier-column h3 {
  margin: 0;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 28px;
  font-weight: 950;
}

.tier-column h3 img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.tier-column.t1 h3 {
  color: var(--gold);
  background: linear-gradient(180deg, rgba(123, 93, 28, 0.65), rgba(97, 73, 23, 0.4));
}

.tier-column.t2 h3 {
  color: #cad3de;
  background: linear-gradient(180deg, rgba(81, 89, 103, 0.65), rgba(47, 57, 73, 0.4));
}

.tier-column.t3 h3 {
  color: var(--bronze);
  background: linear-gradient(180deg, rgba(94, 55, 28, 0.65), rgba(61, 40, 27, 0.4));
}

.tier-column.t4 h3,
.tier-column.t5 h3 {
  color: #ddecff;
  background: linear-gradient(180deg, rgba(19, 36, 61, 0.74), rgba(15, 28, 48, 0.42));
}

.mode-list {
  display: grid;
}

.mode-player {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr 28px;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 8px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
  border-left: 2px solid transparent;
  background: rgba(33, 52, 78, 0.78);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.mode-player:hover {
  transform: translateX(7px);
  background: rgba(42, 64, 94, 0.9);
}

.mode-player.ht {
  border-left-color: #d79f2e;
}

.mode-player.lt {
  border-left-color: #9daec2;
}

.mode-player img {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 7px;
}

.mode-player strong {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 16px;
}

.tier-mark {
  justify-self: end;
  width: 24px;
  height: 26px;
  position: relative;
}

.tier-mark::before,
.tier-mark::after {
  content: "";
  position: absolute;
  right: 1px;
  width: 12px;
  height: 12px;
  border-right: 4px solid rgba(97, 139, 187, 0.78);
  border-top: 4px solid rgba(97, 139, 187, 0.78);
  transform: rotate(-45deg);
  border-radius: 2px;
}

.tier-mark::before {
  top: 3px;
}

.tier-mark::after {
  top: 13px;
}

.mode-player.lt .tier-mark::after {
  display: none;
}

/* PROFILE / MODALS */

.profile-overlay {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 22px;
  background: rgba(4, 9, 18, 0.72);
  backdrop-filter: blur(8px);
  z-index: 120;
}

.profile-overlay.show {
  display: grid;
}

.profile-card {
  position: relative;
  width: min(560px, calc(100vw - 38px));
  border-radius: 0;
  background: #101925;
  border: 1px solid rgba(127, 194, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.48);
  padding: 44px 36px 34px;
  text-align: center;
}

.profile-close {
  position: absolute;
  right: 28px;
  top: 26px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 0;
  background: rgba(39, 64, 102, 0.95);
  color: #e8f4ff;
  font-size: 38px;
  cursor: pointer;
  z-index: 2;
}

.profile-loader {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(16, 25, 37, 0.72);
  z-index: 3;
}

.profile-loader.show {
  display: flex;
}

.profile-content.loading {
  opacity: 0;
  transform: translateY(8px);
}

.profile-hero {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.profile-avatar {
  width: 138px;
  height: 138px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--gold);
}

.profile-info-block h2 {
  margin: 6px 0 12px;
  font-size: 40px;
  line-height: 1;
  font-weight: 950;
}

.profile-rank {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(95, 87, 40, 0.78);
  color: #ffe24e;
  font-size: 22px;
  font-weight: 950;
}

.profile-rank img {
  width: 30px;
  height: 30px;
}

.profile-region {
  margin-top: 14px;
  color: #344153;
  font-size: 24px;
  font-weight: 950;
}

.namemc {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 17px;
  border-radius: 16px;
  text-decoration: none;
  color: #bccce0;
  background: rgba(32, 50, 76, 0.86);
  font-weight: 800;
}

.namemc img {
  width: 22px;
  height: 22px;
}

.profile-grid {
  margin-top: 24px;
  display: grid;
  gap: 22px;
  text-align: left;
}

.profile-section-title {
  margin-bottom: 10px;
  color: #b9c9dc;
  font-size: 24px;
  font-weight: 900;
}

.position-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(118, 176, 255, 0.18);
  background: rgba(12, 25, 43, 0.82);
  overflow: hidden;
  font-size: 24px;
  font-weight: 950;
}

.position-card .rank-plate {
  width: 128px;
  flex: 0 0 auto;
  height: 66px;
  font-size: 32px;
  padding-left: 18px;
}

.position-card .pos-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.position-card .pos-text img {
  width: 25px;
  height: 25px;
}

.profile-tiers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  min-height: 78px;
  border-radius: 12px;
  border: 1px solid rgba(118, 176, 255, 0.18);
  background: rgba(12, 25, 43, 0.82);
}

.profile-tiers .tier-pill {
  width: 52px;
  min-height: 52px;
  border-radius: 16px;
}

.context-menu,
.docs-modal {
  display: none;
}

.context-menu.show,
.docs-modal.show {
  display: block;
}

.context-menu {
  position: fixed;
  min-width: 190px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(8, 17, 31, 0.97);
  border: 1px solid rgba(118, 176, 255, 0.15);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
  z-index: 110;
}

.context-menu button {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  border-radius: 12px;
  cursor: pointer;
}

.context-menu button:hover {
  background: rgba(255, 255, 255, 0.05);
}

.docs-modal {
  position: fixed;
  inset: 0;
  place-items: center;
  padding: 24px;
  background: rgba(5, 10, 19, 0.7);
  backdrop-filter: blur(5px);
  z-index: 130;
}

.docs-modal.show {
  display: grid;
}

.docs-card {
  position: relative;
  width: min(640px, 100%);
  padding: 24px;
  border-radius: 24px;
  background: rgba(8, 18, 31, 0.96);
  border: 1px solid rgba(118, 176, 255, 0.14);
}

.docs-card button {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

/* ANIMATION */

.reveal-block {
  opacity: 0;
  transform: translateY(16px);
  animation: reveal 0.64s ease forwards;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */

@media (max-width: 1320px) {
  .topbar {
    grid-template-columns: 260px 1fr;
  }

  .top-actions {
    grid-column: 1 / -1;
  }

  .home-hero {
    grid-template-columns: 1fr;
  }

  .podium {
    grid-template-columns: 1fr;
  }

  .overall-head,
  .ranking-row {
    grid-template-columns: 150px 1fr 90px;
  }

  .overall-head > :nth-child(4),
  .ranking-row > :nth-child(4) {
    display: none;
  }

  .mode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .topbar,
  .layout {
    width: calc(100vw - 20px);
  }

  .topbar {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .brand img {
    width: 170px;
  }

  .top-actions {
    grid-template-columns: 1fr;
  }

  .tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .panel {
    padding: 18px 14px 12px;
  }

  .panel-top {
    flex-direction: column;
  }

  .server-card {
    width: 100%;
    min-width: 0;
    grid-template-columns: 1fr auto;
  }

  .overall-head,
  .ranking-row {
    grid-template-columns: 130px 1fr;
  }

  .overall-head > :nth-child(3),
  .ranking-row > :nth-child(3) {
    display: none;
  }

  .rank-plate .rank-skin {
    width: 72px;
    height: 72px;
  }

  .mode-grid {
    grid-template-columns: 1fr;
  }
}

/* FINAL LAUNCH SCALE — makes website UI 13% smaller, background stays same */
.topbar,
.layout {
  zoom: 0.87;
}

/* keep the scaled UI centered properly */
.topbar {
  margin-top: 20px;
}

.layout {
  padding-top: 18px;
}

/* make nav icons consistent after replacing trophy with overall icon */
.nav-link img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* keep home buttons clean after scale */
.home-btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* keep tier/ranking player skins inside the rank plate */
.rank-plate .rank-skin {
  right: 4px;
  bottom: -4px;
  width: 82px;
  height: 82px;
  object-fit: contain;
  object-position: center bottom;
}
/* SEARCH DROPDOWN FIX */
.topbar {
  position: relative;
  z-index: 50;
}

.search-wrap {
  position: relative;
  z-index: 100;
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  display: none;
  padding: 8px;
  max-height: 320px;
  overflow-y: auto;
  border-radius: 18px;
  background: rgba(8, 17, 31, 0.98);
  border: 1px solid rgba(118, 176, 255, 0.18);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.48);
  z-index: 9999;
}

.search-results.show {
  display: block;
}

.search-result {
  width: 100%;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.search-result:hover {
  background: rgba(255, 255, 255, 0.06);
}

.search-result img {
  width: 42px !important;
  height: 42px !important;
  max-width: 42px !important;
  max-height: 42px !important;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.search-result span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.search-result b {
  font-size: 15px;
  line-height: 1.1;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.1;
}