﻿:root {
  --bg-0: #1e1e1e;
  --bg-1: #141418;
  --gui: #2B2B2B;
  --panel: rgba(43, 43, 43, 0.86);
  --panel-2: rgba(43, 43, 43, 0.92);
  --gold: #d4af37;
  --gold-2: #f4cd4d;
  --silver: #cfd4df;
  --bronze: #d88a37;
  --text: #f0f2f5;
  --muted: #b3ae97;
  --border: rgba(212, 175, 55, 0.28);
  --teal: #22d3a6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--bg-0);
}

body.modal-open {
  overflow: hidden;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: #1e1e1e;
}

.glass-panel {
  background: linear-gradient(120deg, rgba(43, 43, 43, 0.92), rgba(43, 43, 43, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}

.topbar {
  width: min(1320px, calc(100% - 32px));
  margin: 16px auto 0;
  border-radius: 18px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 300;
}

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

.logo {
  height: 58px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(212, 175, 55, 0.25));
}

.search-shell {
  position: relative;
  max-width: 560px;
  width: 100%;
  justify-self: center;
  z-index: 350;
}

.search-shell input {
  width: 100%;
  height: 52px;
  border-radius: 28px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  background: linear-gradient(180deg, rgba(43, 43, 43, 0.95), rgba(43, 43, 43, 0.86));
  color: var(--text);
  font-size: 24px;
  padding: 0 20px;
  outline: none;
  box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.45);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.search-shell input:focus {
  border-color: var(--gold-2);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.18), 0 0 20px rgba(212, 175, 55, 0.25);
}

.search-dropdown {
  position: absolute;
  top: 56px;
  left: 0;
  right: 0;
  max-height: 420px;
  overflow-y: auto;
  border-radius: 14px;
  background: #2B2B2B;
  border: 1px solid var(--border);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.5);
  z-index: 500;
}

.search-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  position: relative;
  background: transparent;
  overflow: hidden;
}

.search-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.search-item:hover,
.search-item.active {
  background: transparent;
}

.search-item:hover::before,
.search-item.active::before {
  opacity: 1;
}

.search-item img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: none;
  object-fit: contain;
  object-position: center bottom;
  position: relative;
  z-index: 1;
}

.search-item strong {
  font-size: 28px;
  position: relative;
  z-index: 1;
}

.search-item span {
  color: var(--muted);
  font-size: 22px;
  position: relative;
  z-index: 1;
}

.search-points {
  display: grid;
  justify-items: center;
  align-content: center;
  row-gap: 2px;
  min-width: 74px;
  position: relative;
  z-index: 1;
}

.search-points strong {
  font-size: 30px;
  line-height: 1;
  color: #fff;
}

.search-points span {
  font-size: 12px;
  letter-spacing: 0.8px;
  line-height: 1;
  color: #fff;
}

.actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.btn {
  height: 44px;
  border-radius: 12px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn img {
  width: 18px;
  height: 18px;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
}

.btn-discord {
  color: #f3f6ff;
  border: 1px solid rgba(144, 168, 255, 0.46);
  background: linear-gradient(135deg, rgba(67, 78, 210, 0.94), rgba(53, 64, 184, 0.94));
  box-shadow: none;
}

.btn-discord img {
  filter: drop-shadow(0 2px 6px rgba(25, 31, 103, 0.75));
}

.btn-discord:hover {
  box-shadow: 0 0 16px rgba(88, 101, 242, 0.55), 0 0 30px rgba(88, 101, 242, 0.3);
}

.btn-login {
  color: #fff;
  background: linear-gradient(135deg, #d4af37, #a78a23);
  border: 1px solid rgba(255, 235, 160, 0.34);
}

.tabs {
  width: min(1320px, calc(100% - 32px));
  margin: 14px auto 0;
  border-radius: 14px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 6px;
  overflow: hidden;
  position: relative;
  z-index: 120;
}

.tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(40, 40, 40, 0.94);
  color: #bfb79e;
  height: 62px;
  padding: 0;
  border-radius: 14px 14px 0 0;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  position: relative;
  top: 0;
  --mode-glow: rgba(212, 175, 55, 0.35);
  overflow: hidden;
}

.tab-btn::after {
  content: "";
  position: absolute;
  inset: -8px;
  background: radial-gradient(circle at center, var(--mode-glow), transparent 70%);
  opacity: 0;
  transform: scale(0.9);
  filter: blur(8px);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.tab-btn[data-mode="overall"] { --mode-glow: rgba(244, 205, 77, 0.5); }
.tab-btn[data-mode="vanilla"] { --mode-glow: rgba(214, 86, 176, 0.5); }
.tab-btn[data-mode="mace"] { --mode-glow: rgba(207, 212, 223, 0.45); }
.tab-btn[data-mode="axe"] { --mode-glow: rgba(34, 211, 166, 0.5); }
.tab-btn[data-mode="sword"] { --mode-glow: rgba(123, 216, 255, 0.5); }
.tab-btn[data-mode="smp"] { --mode-glow: rgba(110, 231, 216, 0.5); }
.tab-btn[data-mode="diamondsmp"] { --mode-glow: rgba(141, 123, 255, 0.45); }
.tab-btn[data-mode="uhc"] { --mode-glow: rgba(255, 124, 67, 0.5); }
.tab-btn[data-mode="pot"] { --mode-glow: rgba(244, 114, 182, 0.5); }
.tab-btn[data-mode="nethop"] { --mode-glow: rgba(161, 161, 170, 0.45); }
.tab-btn[data-mode="cart"] { --mode-glow: rgba(255, 58, 58, 0.62); }

.tab-btn:not(.active) .tab-icon {
  transform: scale(0.94);
}

.tab-icon {
  width: 42px;
  height: 42px;
  border-radius: 0;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
  transition: transform 0.25s ease, filter 0.25s ease;
  position: relative;
  z-index: 1;
}

.tab-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(48, 48, 48, 0.96);
}

.tab-btn.active {
  top: -6px;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(52, 52, 52, 0.98);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.tab-btn.active::after {
  opacity: 0.45;
  transform: scale(1.08);
}

.tab-btn.active .tab-icon {
  transform: scale(1.16);
  filter: drop-shadow(0 0 10px var(--mode-glow));
}

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

.content {
  width: min(1320px, calc(100% - 32px));
  margin: 18px auto 32px;
}

.list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.list-head.centered {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.list-head h1 {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 42px;
  letter-spacing: 0.5px;
}

.status-label {
  color: #eceef3;
  font-size: 20px;
}

.list-head.centered .status-label {
  text-align: center;
}

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

.tier-columns {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 12px;
}

.tier-column {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  background: rgba(34, 34, 34, 0.94);
  animation: fadeInUp 0.34s ease both;
}

.tier-column:nth-child(1) { animation-delay: 0.02s; }
.tier-column:nth-child(2) { animation-delay: 0.06s; }
.tier-column:nth-child(3) { animation-delay: 0.1s; }
.tier-column:nth-child(4) { animation-delay: 0.14s; }
.tier-column:nth-child(5) { animation-delay: 0.18s; }

.tier-column-head {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tier-column-title-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.tier-column-title {
  display: inline-block;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.3px;
  line-height: 1;
  color: #f4f6fb;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
}

.tier-head-icon {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
}

.tier-head-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(1.1);
}

.tier-head-icon.trophy-1 img {
  filter: brightness(1.08) sepia(0.95) saturate(3.2) hue-rotate(358deg);
}

.tier-head-icon.trophy-2 img {
  filter: grayscale(1) brightness(1.85) contrast(0.92);
}

.tier-head-icon.trophy-3 img {
  filter: sepia(1) saturate(2.8) hue-rotate(340deg) brightness(0.98);
}

.tier-column-body {
  padding: 12px;
  display: grid;
  gap: 10px;
  overflow: visible;
  height: auto;
}

.tier-empty {
  margin: 10px 0;
  color: var(--muted);
  font-size: 20px;
  text-align: center;
  line-height: 1.35;
}

.tier-player-row {
  width: 100%;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(26, 26, 26, 0.74);
  color: var(--text);
  padding: 9px 10px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  animation: fadeInUp 0.28s ease both;
}

.tier-player-row:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(38, 38, 38, 0.9);
  transform: translateY(-1px);
}

.tier-player-avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  object-fit: contain;
}

.tier-player-name {
  font-size: 21px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tier-player-arrow {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 16px;
  font-weight: 700;
  background: rgba(18, 18, 18, 0.62);
}

.tier-player-arrow.up {
  color: #f4cd4d;
}

.tier-player-arrow.down {
  color: #b7c1cf;
}

.tier-column-1 .tier-column-head {
  background: linear-gradient(180deg, rgba(170, 130, 24, 0.58), rgba(120, 92, 16, 0.42));
}

.tier-column-2 .tier-column-head {
  background: linear-gradient(180deg, rgba(164, 177, 205, 0.56), rgba(96, 107, 128, 0.4));
}

.tier-column-3 .tier-column-head {
  background: linear-gradient(180deg, rgba(182, 104, 36, 0.56), rgba(120, 68, 23, 0.4));
}

.tier-column-1 .tier-column-title {
  color: #ffe18a;
}

.tier-column-2 .tier-column-title {
  color: #f1f5ff;
}

.tier-column-3 .tier-column-title {
  color: #ffd1af;
}

.tier-column-4 .tier-column-head,
.tier-column-5 .tier-column-head {
  background: rgba(255, 255, 255, 0.04);
}

.rank-card {
  border-radius: 16px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 90px 1fr 132px;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(42, 42, 42, 0.92);
  background: rgba(38, 38, 38, 0.94);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  animation: fadeInUp 0.36s ease both;
  position: relative;
  overflow: hidden;
}

.rank-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 56, 56, 0.95);
}

.rank-card.top-1 {
  border-color: rgba(255, 214, 110, 0.5);
  background: linear-gradient(90deg, rgba(86, 68, 20, 0.5), rgba(42, 38, 26, 0.94));
  box-shadow: 0 0 22px rgba(212, 175, 55, 0.34);
}

.rank-card.top-2 {
  border-color: rgba(220, 231, 255, 0.45);
  background: linear-gradient(90deg, rgba(88, 101, 126, 0.45), rgba(34, 36, 43, 0.94));
  box-shadow: 0 0 20px rgba(173, 188, 218, 0.28);
}

.rank-card.top-3 {
  border-color: rgba(255, 188, 130, 0.42);
  background: linear-gradient(90deg, rgba(106, 63, 34, 0.42), rgba(42, 34, 28, 0.94));
  box-shadow: 0 0 20px rgba(191, 118, 63, 0.3);
}

.rank-card.top-1::before,
.rank-card.top-2::before,
.rank-card.top-3::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -42%;
  width: 32%;
  background: linear-gradient(100deg, transparent 12%, rgba(255, 255, 255, 0.24) 50%, transparent 88%);
  transform: skewX(-18deg);
  animation: shineSweep 3.2s ease-in-out infinite;
  pointer-events: none;
}

.rank-card.top-2::before {
  background: linear-gradient(100deg, transparent 12%, rgba(236, 244, 255, 0.22) 50%, transparent 88%);
}

.rank-card.top-3::before {
  background: linear-gradient(100deg, transparent 12%, rgba(255, 209, 179, 0.2) 50%, transparent 88%);
}

.rank-number {
  font-family: "Inter", sans-serif;
  font-size: 44px;
  font-weight: 700;
  color: #fff;
  text-align: center;
}

.top-1 .rank-number {
  color: #ffd766;
  text-shadow: 0 0 12px rgba(255, 204, 72, 0.55), 0 0 28px rgba(212, 175, 55, 0.45);
}

.top-2 .rank-number {
  color: #ecf2ff;
  text-shadow: 0 0 12px rgba(207, 222, 255, 0.5), 0 0 26px rgba(170, 183, 210, 0.38);
}

.top-3 .rank-number {
  color: #ffc288;
  text-shadow: 0 0 12px rgba(255, 169, 96, 0.48), 0 0 24px rgba(185, 116, 58, 0.38);
}

.rank-main {
  display: flex;
  min-width: 0;
  gap: 14px;
  align-items: center;
}

.player-head {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.avatar {
  width: 88px;
  height: 88px;
  border-radius: 0;
  border: none;
  object-fit: contain;
  object-position: center bottom;
  align-self: end;
  display: block;
}

.player-head strong {
  display: block;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  align-self: center;
}

.rank-detail-band {
  display: grid;
  grid-template-columns: 96px auto;
  height: 86px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(12, 12, 12, 0.42);
  overflow: visible;
  width: max-content;
  max-width: 100%;
  margin-left: auto;
}

.region-spot {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  height: 100%;
  width: 100%;
  min-width: 0;
  background: rgba(212, 175, 55, 0.1);
  padding: 0;
  margin: 0;
  border-radius: 10px 0 0 10px;
}

.region-spot span {
  font-size: 40px;
  font-weight: 800;
  color: #f4cd4d;
  letter-spacing: 0.4px;
  line-height: 1;
}

.region-spot.region-na {
  background: #8f2b2b;
}

.region-spot.region-na span,
.profile-region.region-na {
  color: #ff5a5a;
}

.region-spot.region-eu {
  background: #2b7e39;
}

.region-spot.region-eu span,
.profile-region.region-eu {
  color: #55d86f;
}

.region-spot.region-as {
  background: #6f43a4;
}

.region-spot.region-as span,
.profile-region.region-as {
  color: #be85ff;
}

.region-spot.region-au {
  background: #b86c24;
}

.region-spot.region-au span,
.profile-region.region-au {
  color: #ffb35c;
}

.tier-slot-list {
  display: grid;
  grid-template-columns: repeat(10, 32px);
  gap: 3px;
  padding: 0 10px;
  align-items: center;
  justify-content: start;
  overflow: visible;
  background: transparent;
  height: 100%;
}

.tier-slot {
  display: grid;
  justify-items: center;
  gap: 4px;
  position: relative;
  z-index: 1;
}

.tier-slot:hover {
  z-index: 60;
}

.tier-bubble {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: rgba(19, 19, 19, 0.82);
  position: relative;
  cursor: pointer;
}

.tier-slot.filled .tier-bubble {
  box-shadow: none;
}

.tier-slot.empty .tier-bubble {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(20, 20, 20, 0.45);
}

.tier-bubble img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.tier-hover-pop {
  position: absolute;
  top: calc(100% + 7px);
  left: 50%;
  transform: translate(-50%, -4px) scale(0.94);
  min-width: 52px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(16, 20, 28, 0.96);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.48);
  border-radius: 8px;
  padding: 5px 6px;
  display: grid;
  justify-items: center;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  z-index: 2000;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tier-hover-pop::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  background: rgba(16, 20, 28, 0.96);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  transform: translateX(-50%) rotate(45deg);
}

.tier-hover-pop strong {
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0.2px;
  color: #ffffff;
}

.tier-hover-pop span {
  font-size: 11px;
  line-height: 1;
  color: #9fdff6;
  white-space: nowrap;
}

.tier-bubble:hover .tier-hover-pop,
.tier-bubble:focus-within .tier-hover-pop,
.profile-tier-icon-wrap:hover .tier-hover-pop,
.profile-tier-icon-wrap:focus-within .tier-hover-pop {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.tier-label {
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: #87d2f3;
}

.tier-label.ht1 {
  color: #ff3b30;
}

.tier-label.lt1,
.tier-label.ht2 {
  color: #ffd166;
}

.tier-label.muted {
  color: rgba(255, 255, 255, 0.28);
}

.points-col {
  text-align: center;
  width: 100%;
  justify-self: center;
}

.points-col strong {
  display: block;
  font-size: 42px;
  color: #fff;
  font-family: "Inter", sans-serif;
}

.points-col span {
  color: var(--muted);
  font-size: 18px;
  letter-spacing: 1px;
}

.loading-state,
.error-state {
  border-radius: 14px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  font-size: 24px;
}

.error-state {
  color: #ffb4b4;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(212, 175, 55, 0.3);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.pagination {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.page-btn {
  border: 1px solid var(--border);
  color: var(--text);
  background: #2B2B2B;
  border-radius: 10px;
  height: 40px;
  padding: 0 14px;
  font-size: 22px;
  cursor: pointer;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

#pageInfo {
  color: var(--muted);
  font-size: 22px;
}

.hidden {
  display: none !important;
}

.profile-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(4px);
}

.profile-page {
  overflow: hidden;
}

.profile-main {
  min-height: calc(100vh - 110px);
  display: grid;
  place-items: center;
  padding: 18px;
}

.profile-modal {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(120deg, rgba(30, 30, 30, 0.96), rgba(30, 30, 30, 0.9));
  padding: 22px 22px 24px;
  animation: popIn 0.35s ease;
}

.close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(67, 86, 122, 0.34);
  color: #d6deef;
  font-size: 42px;
  line-height: 0.8;
  cursor: pointer;
}

.profile-header {
  text-align: center;
  padding-top: 8px;
}

.profile-avatar-circle {
  width: 148px;
  height: 148px;
  margin: 0 auto;
  border-radius: 999px;
  border: none;
  background: rgba(18, 18, 18, 0.96);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.profile-header img {
  width: 128px;
  height: 128px;
  object-fit: contain;
  object-position: center bottom;
  align-self: end;
  display: block;
}

.profile-header h1 {
  margin: 12px 0 0;
  font-size: 34px;
}

.profile-region {
  margin: 8px 0 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--muted);
}

.profile-top-points {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.profile-section-title {
  margin: 16px 0 8px;
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.position-panel {
  margin: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(24, 24, 24, 0.96);
  padding: 10px 14px;
}

.position-panel.compact {
  display: flex;
  justify-content: center;
  align-items: center;
}

.position-rank {
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
}

.position-rank.position-top-1 {
  color: #ffd766;
  text-shadow: 0 0 12px rgba(255, 204, 72, 0.55), 0 0 28px rgba(212, 175, 55, 0.45);
}

.position-rank.position-top-2 {
  color: #ecf2ff;
  text-shadow: 0 0 12px rgba(207, 222, 255, 0.5), 0 0 26px rgba(170, 183, 210, 0.38);
}

.position-rank.position-top-3 {
  color: #ffc288;
  text-shadow: 0 0 12px rgba(255, 169, 96, 0.48), 0 0 24px rgba(185, 116, 58, 0.38);
}

.profile-tiers-panel {
  margin: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(24, 24, 24, 0.96);
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 10px;
}

.profile-tier-circles {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  width: 100%;
}

.profile-tier-bubble {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 0;
}

.profile-tier-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  background: rgba(16, 16, 16, 0.82);
  display: grid;
  place-items: center;
  position: relative;
  cursor: pointer;
}

.profile-tier-icon-wrap img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.profile-tier-tag {
  font-size: 11px;
  font-weight: 800;
  color: #9fdff6;
  line-height: 1;
}

.profile-tier-tag.ht1 {
  color: #ff3b30;
}

.profile-tier-tag.lt1,
.profile-tier-tag.ht2 {
  color: #ffd166;
}

/* Tier border + label palette (rank cards + profile) */
.tier-bubble.ht1,
.profile-tier-icon-wrap.ht1 {
  border-color: #d4af37;
}

.tier-label.ht1,
.profile-tier-tag.ht1 {
  color: #d4af37;
}

.tier-bubble.lt1,
.profile-tier-icon-wrap.lt1 {
  border-color: #f2d97a;
}

.tier-label.lt1,
.profile-tier-tag.lt1 {
  color: #f2d97a;
}

.tier-bubble.ht2,
.profile-tier-icon-wrap.ht2 {
  border-color: #cfd4df;
}

.tier-label.ht2,
.profile-tier-tag.ht2 {
  color: #cfd4df;
}

.tier-bubble.lt2,
.profile-tier-icon-wrap.lt2 {
  border-color: #c8ccd4;
}

.tier-label.lt2,
.profile-tier-tag.lt2 {
  color: #c8ccd4;
}

.tier-bubble.ht3,
.profile-tier-icon-wrap.ht3 {
  border-color: #d88a37;
}

.tier-label.ht3,
.profile-tier-tag.ht3 {
  color: #d88a37;
}

.tier-bubble.lt3,
.profile-tier-icon-wrap.lt3 {
  border-color: #e3ad79;
}

.tier-label.lt3,
.profile-tier-tag.lt3 {
  color: #e3ad79;
}

.tier-bubble.ht4,
.profile-tier-icon-wrap.ht4,
.tier-bubble.lt4,
.profile-tier-icon-wrap.lt4 {
  border-color: #f7f8fb;
}

.tier-label.ht4,
.profile-tier-tag.ht4,
.tier-label.lt4,
.profile-tier-tag.lt4 {
  color: #f7f8fb;
}

.tier-bubble.ht5,
.profile-tier-icon-wrap.ht5,
.tier-bubble.lt5,
.profile-tier-icon-wrap.lt5 {
  border-color: #bcc2cd;
}

.tier-label.ht5,
.profile-tier-tag.ht5,
.tier-label.lt5,
.profile-tier-tag.lt5 {
  color: #bcc2cd;
}

.profile-tier-bubble.empty .profile-tier-icon-wrap {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(20, 20, 20, 0.45);
}

.profile-tier-tag.muted {
  color: rgba(255, 255, 255, 0.28);
}

.profile-tier-empty {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes shineSweep {
  0% {
    left: -44%;
    opacity: 0;
  }
  12% {
    opacity: 0.9;
  }
  48% {
    opacity: 0.45;
  }
  100% {
    left: 132%;
    opacity: 0;
  }
}

@media (max-width: 1000px) {
  .topbar {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .search-shell {
    max-width: none;
  }

  .actions {
    justify-content: flex-end;
  }

  .rank-card {
    grid-template-columns: 64px 1fr;
  }

  .rank-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .rank-detail-band {
    grid-template-columns: 72px auto;
    margin-left: 0;
  }

  .tier-slot-list {
    grid-template-columns: repeat(10, 32px);
  }

  .points-col {
    grid-column: 2;
    text-align: left;
  }

  .tier-columns {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 640px) {
  .logo {
    height: 42px;
  }

  .btn {
    font-size: 18px;
  }

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

  .tab-btn {
    height: 52px;
  }

  .tab-icon {
    width: 34px;
    height: 34px;
  }

  .rank-number {
    font-size: 28px;
  }

  .player-head strong {
    font-size: 24px;
  }

  .points-col strong {
    font-size: 30px;
  }

  .list-head h1 {
    font-size: 28px;
  }

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




