:root {
  color-scheme: dark;
  --bg: #080f16;
  --header: #0c141e;
  --panel: #0c141d;
  --row: #101722;
  --row-2: #111b27;
  --line: rgba(132, 151, 171, 0.12);
  --line-strong: rgba(132, 151, 171, 0.2);
  --text: #f2f6fb;
  --muted: #6f7d8d;
  --blue: #21314a;
  --gold: #f3b432;
  --green: #20c466;
  --red: #d53d55;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.35;
}

button,
input {
  font: inherit;
}

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

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 15, 22, 0.95);
}

.nav-shell {
  width: min(1278px, 100vw);
  height: 96px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr minmax(210px, 410px);
  align-items: center;
  gap: 24px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 0 0 12px 12px;
  background: #0c141e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.brand-mark {
  display: flex;
  align-items: center;
  min-width: 172px;
}

.brand-word {
  display: inline-block;
  color: #f7c34b;
  font-size: 29px;
  font-weight: 1000;
  letter-spacing: -1px;
  line-height: 1;
  text-shadow:
    2px 2px 0 #652f24,
    3px 3px 0 #172331,
    0 0 12px rgba(246, 168, 45, 0.22);
  transform: skew(-8deg);
}

.brand-word::first-letter {
  color: #42cc5d;
}

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

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #d6e0ec;
  cursor: pointer;
  font-weight: 850;
}

.nav-link::before {
  content: "";
  position: absolute;
  inset: 5px;
  z-index: -1;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  opacity: 0;
}

.nav-link:hover::before,
.nav-link.is-active::before {
  opacity: 1;
}

.nav-login {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(29, 39, 64, 0.75);
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 1000;
}

.search-box {
  justify-self: end;
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(122, 141, 164, 0.1);
  border-radius: 999px;
  background: #111827;
  color: #8190a2;
}

.search-box span {
  font-size: 22px;
  line-height: 1;
}

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

.search-box input::placeholder {
  color: #7f8a99;
}

.mobile-menu {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.mobile-menu span {
  display: block;
  width: 20px;
  height: 3px;
  margin: 4px auto;
  border-radius: 99px;
  background: #ffffff;
}

.discord-popover {
  position: fixed;
  top: 72px;
  left: max(200px, calc((100vw - 1278px) / 2 + 360px));
  display: grid;
  min-width: 160px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111a25;
  box-shadow: var(--shadow);
}

.discord-popover a {
  padding: 10px;
  border-radius: 6px;
  color: #dfe8f4;
  font-weight: 800;
}

.discord-popover a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.rankings-page {
  width: min(1278px, 100vw);
  margin: 78px auto 0;
  padding-bottom: 42px;
}

.mode-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(108px, 1fr);
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 1px;
  scrollbar-width: thin;
}

.mode-card {
  position: relative;
  height: 66px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  background: #0f1823;
  opacity: 0.7;
  cursor: pointer;
}

.mode-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 56%);
}

.mode-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  background: #8db5d2;
  box-shadow: 0 0 10px rgba(141, 181, 210, 0.7);
}

.mode-card.is-selected {
  opacity: 1;
}

.mode-card.is-selected::after {
  height: 4px;
}

.mode-icon {
  position: relative;
  width: 30px;
  height: 30px;
  margin-top: 7px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.2));
}

.mode-card strong {
  position: relative;
  max-width: 96px;
  overflow: hidden;
  color: #f2f6fb;
  font-size: 12px;
  font-weight: 1000;
  line-height: 1.05;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board {
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 0 10px 10px 10px;
  background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.board-toolbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  padding: 16px 28px 8px;
}

.info-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 13px;
  border: 0;
  border-radius: 6px;
  background: #1d2740;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #f5f7fb;
  cursor: pointer;
  font-weight: 900;
}

.info-button span {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
  font-size: 12px;
  font-weight: 1000;
}

.server-card {
  display: flex;
  align-items: center;
  gap: 8px;
}

.club-logo {
  width: 50px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: linear-gradient(180deg, #ffffff, #a9b0b9);
  color: #db3346;
  font-size: 12px;
  font-weight: 1000;
  line-height: 0.85;
  text-align: center;
  text-shadow: 1px 1px 0 #27313f;
  transform: skew(-8deg);
}

.server-card h2 {
  margin: 0;
  color: #c8d2df;
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
}

.server-ip {
  margin-top: 5px;
  padding: 5px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.055);
  color: #ffffff;
  font-size: 12px;
  font-weight: 1000;
  line-height: 1;
}

.copy-button,
.discord-button {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 0;
  border-radius: 5px;
  background: #263246;
  color: #dbe7f5;
  cursor: pointer;
  font-size: 13px;
}

.discord-button {
  background: #2563eb;
  color: #dbeafe;
}

.table-head {
  height: 56px;
  display: grid;
  grid-template-columns: 110px minmax(300px, 1fr) 150px minmax(390px, 1.3fr);
  align-items: center;
  padding: 0 30px;
  border-bottom: 1px solid var(--line);
  color: rgba(148, 163, 184, 0.18);
  font-size: 15px;
  font-weight: 1000;
  text-transform: uppercase;
}

.rankings-list {
  display: grid;
  gap: 7px;
  padding: 9px 10px 18px;
}

.ranking-row {
  position: relative;
  display: grid;
  grid-template-columns: 100px minmax(300px, 1fr) 140px minmax(390px, 1.3fr);
  align-items: center;
  min-height: 76px;
  overflow: hidden;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 8px;
  background: var(--row);
  text-align: left;
  cursor: pointer;
}

.ranking-row:hover {
  background: #121c29;
  border-color: rgba(148, 163, 184, 0.2);
}

.rank-banner {
  display: block;
}

.banner-avatar {
  display: none;
}

.rank-num {
  color: #f2f6fb;
  font-size: 24px;
  font-weight: 1000;
  text-shadow: 1px 2px 0 rgba(0, 0, 0, 0.4);
}

.player-cell {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 6px;
  image-rendering: pixelated;
  object-fit: cover;
  background: #263241;
}

.player-name {
  margin: 0;
  overflow: hidden;
  color: #f7fbff;
  font-size: 18px;
  font-weight: 1000;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-title {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-top: 7px;
  overflow: hidden;
  color: #aab6c6;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.rank-medal {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff1a8, #d97706);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.28);
}

.rank-medal.ace {
  background: linear-gradient(135deg, #f2d07a, #a66912);
}

.points {
  overflow: hidden;
  color: #728092;
  text-overflow: ellipsis;
}

.region {
  color: #e6edf6;
  font-weight: 1000;
}

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

.tiers-label {
  display: none;
}

.tier {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 57px;
  height: 31px;
  padding: 0 7px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.045);
  color: #eef4fb;
  font-size: 12px;
  font-weight: 1000;
}

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

.empty-tier {
  color: #3d4855;
  font-weight: 900;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 230px;
  color: #687381;
  font-weight: 900;
}

.info-dialog {
  width: min(470px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}

.info-dialog::backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.dialog-panel {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #111b27;
  box-shadow: var(--shadow);
}

.dialog-panel h2 {
  margin: 0 0 10px;
  font-size: 19px;
}

.dialog-panel p {
  margin: 0;
  color: #a9b5c5;
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  font-size: 22px;
}

.tier-key {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.tier-key span {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  color: #bac6d6;
  font-size: 12px;
}

.tier-key strong {
  display: block;
  color: #ffffff;
  font-size: 14px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #111b27;
  box-shadow: var(--shadow);
  color: #ffffff;
  font-weight: 900;
}

.skin-real {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 8px 18px rgba(0, 0, 0, 0.28);
}

.reveal-row {
  animation: rowRise 420ms ease both;
}

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

.tier-board {
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 8px;
  padding: 58px 30px 24px;
  overflow-x: auto;
}

.tier-column {
  min-width: 190px;
  overflow: hidden;
  border-radius: 9px 9px 0 0;
  background: #111a25;
  border-left: 1px solid rgba(255, 255, 255, 0.04);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  animation: rowRise 380ms ease both;
}

.tier-column h2 {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  background: #202938;
  color: #bfc7d3;
  font-size: 24px;
  font-weight: 1000;
}

.tier-column--1 h2 {
  background: #483b16;
  color: #ffc230;
}

.tier-column--3 h2 {
  background: #3a261f;
  color: #d9823d;
}

.tier-column__list {
  display: grid;
  gap: 1px;
}

.tier-player {
  height: 34px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 8px;
  border: 0;
  background: #263448;
  color: #ffffff;
  cursor: pointer;
  text-align: left;
  font-weight: 800;
}

.tier-player:hover {
  background: #30425b;
}

.tier-player img {
  width: 24px;
  height: 24px;
  margin-left: 8px;
  border-radius: 3px;
  image-rendering: pixelated;
  object-fit: cover;
}

.tier-player span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tier-player strong {
  color: #f6c64b;
  font-size: 11px;
}

.chevrons {
  color: #557ba3;
  letter-spacing: -4px;
}

.tier-empty {
  min-height: 42px;
  display: grid;
  place-items: center;
  background: #182231;
  color: #607083;
  font-weight: 800;
}

.app-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  overflow: auto;
  padding: 34px;
  background: rgba(4, 9, 14, 0.78);
  backdrop-filter: blur(8px);
}

.pop-in {
  animation: popIn 180ms ease both;
}

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

.profile-page,
.auth-panel,
.dashboard-panel {
  position: relative;
  width: min(980px, calc(100vw - 28px));
  margin: 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #0d1621;
  box-shadow: var(--shadow);
}

.profile-page {
  padding: 18px;
}

.profile-hero {
  min-height: 190px;
  display: grid;
  grid-template-columns: 96px 112px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 26px;
  border-radius: 8px;
  background:
    linear-gradient(110deg, rgba(238, 181, 55, 0.22), transparent 36%),
    #101b28;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-rank {
  display: grid;
  place-items: center;
  height: 76px;
  background: #eeb537;
  clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
  color: #ffffff;
  font-size: 40px;
  font-weight: 1000;
  font-style: italic;
  text-shadow: 1px 2px 0 rgba(0, 0, 0, 0.4);
}

.profile-skin {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  image-rendering: pixelated;
  object-fit: cover;
  background: #263241;
}

.profile-hero h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1;
}

.profile-hero p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  color: #aeb9c8;
  font-size: 16px;
}

.profile-region {
  min-width: 48px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(213, 61, 85, 0.24);
  color: #ff5d73;
  text-align: center;
  font-size: 22px;
}

.profile-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 12px;
  margin-top: 12px;
}

.profile-panel--wide {
  grid-column: 1 / -1;
}

.profile-panel,
.admin-card {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: #111b27;
}

.profile-panel h2,
.admin-card h2,
.auth-form h2 {
  margin: 0 0 12px;
}

.profile-panel p {
  margin: 8px 0;
  color: #aab6c6;
}

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

.profile-log {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
}

.log-row {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 6px;
  background: #182435;
}

.log-row span {
  color: #c3cedb;
}

.log-row small {
  color: #738297;
  font-weight: 800;
}

.auth-panel {
  width: min(430px, calc(100vw - 28px));
  padding: 18px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.auth-tabs button,
.auth-form button,
.admin-card button,
.dashboard-head button {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: #1d2740;
  color: #ffffff;
  cursor: pointer;
  font-weight: 900;
}

.admin-card .danger-button {
  background: rgba(213, 61, 85, 0.2);
  border-color: rgba(213, 61, 85, 0.35);
}

.auth-tabs button.is-active {
  background: #26385d;
}

.auth-form,
.admin-card {
  display: grid;
  gap: 10px;
}

.auth-form input,
.admin-card input,
.admin-card select {
  min-height: 40px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: #0e1722;
  color: #ffffff;
  padding: 0 11px;
  outline: none;
}

.file-field {
  display: grid;
  gap: 7px;
  color: #aab6c6;
  font-weight: 800;
}

.account-note {
  margin: 0;
  color: #aab6c6;
  font-weight: 800;
}

.dashboard-panel {
  padding: 18px;
}

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

.dashboard-head h1 {
  margin: 0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.db-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.database-box {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: #0e1722;
  color: #dbe7f5;
  padding: 10px;
  font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  outline: none;
}

.account-list {
  display: grid;
  gap: 7px;
}

.account-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 6px;
  background: #182435;
}

.account-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toast-pop {
  animation: toastPop 220ms ease both;
}

@keyframes toastPop {
  from {
    transform: translateY(8px);
  }
  to {
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .nav-shell {
    height: 64px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    padding: 0 16px;
    border-radius: 0 0 12px 12px;
  }

  .brand-mark {
    min-width: 146px;
  }

  .brand-word {
    font-size: 27px;
  }

  .nav-links {
    position: fixed;
    inset: 68px 12px auto;
    display: none;
    grid-template-columns: 1fr;
    justify-content: stretch;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #111a25;
    box-shadow: var(--shadow);
  }

  body.menu-open .nav-links {
    display: grid;
  }

  .search-box {
    min-height: 44px;
    padding: 0 12px;
  }

  .search-box input {
    font-size: 16px;
  }

  .mobile-menu {
    display: block;
  }

  .rankings-page {
    margin-top: 78px;
  }
}

@media (max-width: 900px) {
  body {
    overflow-x: hidden;
  }

  .nav-shell {
    width: calc(100vw - 2px);
    height: 64px;
    padding: 0 16px;
  }

  .brand-mark {
    min-width: 158px;
  }

  .brand-word {
    font-size: 29px;
  }

  .search-box {
    width: min(260px, calc(100vw - 244px));
    min-width: 116px;
  }

  .search-box span {
    font-size: 20px;
  }

  .rankings-page {
    width: 100vw;
    margin-top: 78px;
  }

  .mode-strip {
    grid-auto-columns: 112px;
    gap: 8px;
  }

  .mode-card {
    height: 66px;
  }

  .board {
    border-radius: 0;
  }

  .board-toolbar {
    min-height: 92px;
    justify-content: center;
    gap: 20px;
    padding: 16px 12px 6px;
  }

  .info-button {
    min-height: 38px;
    padding: 0 12px;
    font-size: 14px;
  }

  .server-card {
    gap: 7px;
  }

  .club-logo {
    width: 45px;
    height: 32px;
    font-size: 11px;
  }

  .table-head {
    height: 54px;
    grid-template-columns: 152px minmax(0, 1fr) 86px;
    padding: 0 48px;
    border-bottom: 0;
  }

  .table-head span:nth-child(1) {
    color: rgba(148, 163, 184, 0.16);
  }

  .table-head span:nth-child(4) {
    display: none;
  }

  .rankings-list {
    gap: 11px;
    padding: 0 32px 18px;
  }

  .ranking-row {
    grid-template-columns: minmax(0, 1fr) 58px;
    grid-template-rows: 78px 44px;
    min-height: 126px;
    padding: 0;
    border-radius: 9px;
    background: #101722;
  }

  .rank-banner {
    grid-column: 1;
    grid-row: 1;
    display: grid;
    grid-template-columns: 92px 64px;
    align-items: center;
    width: 164px;
    height: 58px;
    margin: 12px 0 0 4px;
    padding-left: 15px;
    background: #eeb537;
    clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
  }

  .ranking-row:nth-child(2n) .rank-banner {
    background: #9fb4b7;
  }

  .ranking-row:nth-child(3n) .rank-banner {
    background: #c26a2d;
  }

  .ranking-row:nth-child(4n) .rank-banner {
    background: #1c2634;
  }

  .rank-num {
    font-size: 32px;
    font-style: italic;
  }

  .avatar {
    width: 46px;
    height: 46px;
    border-radius: 4px;
  }

  .banner-avatar {
    display: block;
  }

  .player-cell {
    grid-column: 1 / -1;
    grid-row: 1;
    grid-template-columns: minmax(0, 1fr);
    align-self: start;
    margin: 16px 70px 0 172px;
  }

  .player-cell .avatar {
    display: none;
  }

  .player-name {
    font-size: 24px;
  }

  .rank-title {
    max-width: 190px;
    font-size: 16px;
    font-weight: 600;
  }

  .rank-medal {
    width: 18px;
    height: 18px;
    border: 2px solid #f6d36d;
    background: transparent;
    transform: rotate(45deg);
  }

  .points {
    max-width: 72px;
  }

  .region {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    justify-self: center;
    margin-top: 21px;
    min-width: 43px;
    padding: 9px 8px;
    border-radius: 7px;
    background: rgba(213, 61, 85, 0.24);
    color: #ff5d73;
    font-size: 21px;
    text-align: center;
  }

  .region[data-region="EU"] {
    background: rgba(32, 196, 102, 0.2);
    color: #49e184;
  }

  .region[data-region="AS"] {
    background: rgba(65, 139, 255, 0.2);
    color: #74a6ff;
  }

  .tiers {
    grid-column: 1 / -1;
    grid-row: 2;
    align-self: center;
    padding: 0 14px;
  }

  .tiers-label {
    display: block;
    color: #9aa6b5;
    font-size: 18px;
    font-weight: 1000;
    text-transform: uppercase;
  }

  .tier,
  .empty-tier {
    display: none;
  }
}

@media (max-width: 430px) {
  .nav-shell {
    padding: 0 12px;
  }

  .brand-mark {
    min-width: 146px;
  }

  .brand-word {
    font-size: 25px;
  }

  .search-box {
    width: min(150px, calc(100vw - 216px));
  }

  .search-box input {
    font-size: 14px;
  }

  .rankings-list {
    padding-inline: 32px;
  }

  .table-head {
    padding-inline: 48px;
    grid-template-columns: 142px minmax(0, 1fr) 72px;
  }

  .rank-banner {
    width: 162px;
    grid-template-columns: 82px 62px;
  }

  .player-cell {
    margin-left: 166px;
    margin-right: 62px;
  }

  .player-name {
    font-size: 22px;
  }

  .rank-title {
    max-width: 136px;
  }
}
