:root {
  --bg: #10161d;
  --card: #121822;
  --panel: #161e29;
  --line: #18202a;
  --line-strong: #2a374d;
  --accent: #1e2939;
  --text: #f9fafb;
  --muted: #99a1af;
  --placement-1: #e5ba43;
  --placement-2: #808c9c;
  --placement-3: #b56326;
  --placement-other: #1e2634;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }

a,
button,
input,
select,
.player-row,
.tier-badge,
.mode-tab,
.nav-links a,
.primary-link {
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    color 140ms ease,
    box-shadow 140ms ease,
    opacity 140ms ease,
    transform 140ms ease;
}

body {
  font-family: "Chakra Petch", sans-serif;
  color: var(--text);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% -10%, rgba(84, 162, 255, 0.12), transparent 36%),
    radial-gradient(circle at 95% 0%, rgba(48, 128, 255, 0.08), transparent 34%),
    var(--bg);
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.58;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at center, #000 58%, transparent 100%);
}

.site-header,
.container { position: relative; z-index: 1; }

.site-header {
  max-width: 1352px;
  margin: 28px auto 0;
  padding: 0 16px;
}

.site-nav {
  height: 64px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
}

.brand {
  text-decoration: none;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #314158;
  background: #0e1520;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  gap: 6px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: #fff;
  border-color: var(--line-strong);
  background: #1e2939;
}

.container {
  max-width: 1352px;
  margin: 0 auto;
  padding: 70px 16px 28px;
}

.page-view {
  display: none;
  opacity: 0;
  transform: translateY(10px);
}

.page-view.page-is-active {
  display: block;
  animation: pageFade 180ms ease forwards;
}

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

.rankings-shell {
  position: relative;
  margin-top: 18px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  overflow: hidden;
  padding: 14px 16px 18px;
}

.tabs-strip {
  width: auto;
  display: flex;
  gap: 6px;
  margin: -14px -16px 14px;
  padding: 8px 8px 0;
  border-bottom: 2px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 23, 37, 0.84), rgba(14, 23, 37, 0.38));
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.mode-tab {
  position: relative;
  min-width: 112px;
  padding: 8px 10px 7px;
  border: 2px solid #15243b;
  border-bottom: none;
  border-radius: 22px 22px 0 0;
  background: #101b2b;
  color: #6f84a4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 1px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
}

.mode-tab img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.mode-tab span {
  font-size: 1.52rem;
  font-family: "Rajdhani", sans-serif;
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: none;
}

.mode-tab:hover,
.mode-tab:focus-visible {
  color: #d8e6fb;
  background: #132236;
  outline: none;
}

.mode-tab.is-active {
  background: #16273d;
  border-color: #203651;
  color: #fff;
}

.mode-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 3px;
  background: #fff;
}

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

.panel-head h2 {
  margin: 0;
  font-size: 2.25rem;
  line-height: 1;
  font-family: "Rajdhani", sans-serif;
  letter-spacing: 0.01em;
}

.panel-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-weight: 600;
}

.search-wrap {
  margin-left: auto;
}

.search-wrap input {
  width: 300px;
  max-width: 100%;
  background: rgba(155, 187, 245, 0.15);
  color: #fff;
  border: 1px solid #273347;
  border-radius: 10px;
  padding: 10px 12px;
  font-family: inherit;
  font-weight: 600;
}

.search-wrap input::placeholder {
  color: rgba(153, 161, 175, 0.76);
  color: color-mix(in srgb, var(--muted) 76%, transparent);
}

.search-wrap input:focus {
  outline: none;
  border-color: #36507a;
  box-shadow: 0 0 0 2px rgba(84, 162, 255, 0.2);
}

.table-head {
  display: grid;
  grid-template-columns: 196px 1fr 84px 340px;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0 10px 8px;
}

.table-head span:nth-child(3) { text-align: right; }
.table-head span:last-child { text-align: center; }

.leaderboard {
  display: grid;
  gap: 8px;
  margin-top: 6px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 150ms ease, transform 150ms ease;
}

.leaderboard.is-refreshing {
  opacity: 0;
  transform: translateY(6px);
}

.player-row {
  display: grid;
  grid-template-columns: 196px 1fr 84px 340px;
  gap: 12px;
  align-items: center;
  min-height: 78px;
  padding: 8px 12px 8px 8px;
  border: 1px solid #223047;
  border-radius: 10px;
  background: #131b27;
  cursor: pointer;
}

.player-row:hover {
  border-color: #374b6c;
  background: #1a2535;
}

.player-row.rank-1 {
  border-color: #6e5830;
  border-color: color-mix(in srgb, var(--placement-1) 48%, #223047);
}

.player-row.rank-2 {
  border-color: #5a6473;
  border-color: color-mix(in srgb, var(--placement-2) 48%, #223047);
}

.player-row.rank-3 {
  border-color: #744e37;
  border-color: color-mix(in srgb, var(--placement-3) 48%, #223047);
}

.col-rank {
  height: 62px;
  border-radius: 9px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  background: linear-gradient(127deg, #2b3548 0%, #232c3d 68%, #1e2634 68%);
  border: 1px solid #314158;
  clip-path: polygon(0 0, 90% 0, 100% 50%, 90% 100%, 0 100%);
}

.col-rank::after {
  content: "";
  position: absolute;
  top: 0;
  right: 22px;
  width: 10px;
  height: 100%;
  background: rgba(255, 255, 255, 0.18);
}

.rank-number {
  font-weight: 700;
  color: #fff;
  font-size: 2.35rem;
  line-height: 1;
  font-family: "Rajdhani", sans-serif;
  font-style: italic;
  transform: skewX(-8deg);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.rank-avatar-frame {
  width: 40px;
  height: 40px;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid rgba(208, 228, 255, 0.56);
  background: #1f293b;
  box-shadow: inset 0 0 0 1px rgba(7, 12, 24, 0.68);
  margin-left: auto;
  margin-right: 14px;
}

.rank-1 .col-rank {
  background: linear-gradient(127deg, #f0c54d 0%, #dfa733 68%, #cd9528 68%);
  border-color: #c59735;
}

.rank-2 .col-rank {
  background: linear-gradient(127deg, #aebbc8 0%, #8a9baa 68%, #778896 68%);
  border-color: #8091a0;
}

.rank-3 .col-rank {
  background: linear-gradient(127deg, #c8803f 0%, #ac672f 68%, #9a5726 68%);
  border-color: #a46334;
}

.col-player {
  min-width: 0;
  padding-left: 2px;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #d9ecff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  background: linear-gradient(145deg, #344154 0%, #263246 58%, #1a2436 100%);
  background-size: cover;
  background-position: center;
  image-rendering: pixelated;
}

.avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.avatar.has-skin {
  background-image: var(--avatar-image);
  background-repeat: no-repeat;
  color: transparent;
  text-shadow: none;
}

.avatar.has-skin.skin-body {
  background-size: 170%;
  background-position: center 9%;
  background-color: #090f1a;
}

.avatar.has-skin.skin-player {
  background-size: 145%;
  background-position: center 8%;
  background-color: #090f1a;
}

.avatar.has-skin.skin-rank {
  background-size: cover;
  background-position: center top;
  background-color: #090f1a;
}

.avatar.has-skin.skin-avatar {
  background-size: 230%;
  background-position: center 7%;
  background-color: #090f1a;
}

.name-block { min-width: 0; }

.player-name {
  margin: 0;
  font-size: clamp(2rem, 2.5vw, 2.85rem);
  line-height: 0.92;
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-meta {
  margin: 2px 0 0;
  color: #90a4c3;
  font-size: 1rem;
  font-weight: 600;
}

.player-meta::before {
  content: "? ";
  color: #f0c54d;
}

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

.region-tag {
  display: inline-block;
  min-width: 38px;
  text-align: center;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #89f19c;
  background: #1c3e20;
  color: #89f19c;
  font-weight: 700;
  text-transform: uppercase;
}

.region-tag.region-na {
  border-color: #d95c6a;
  background: #442228;
  color: #d95c6a;
}

.region-tag.region-eu {
  border-color: #89f19c;
  background: #1c3e20;
  color: #89f19c;
}

.region-tag.region-as {
  border-color: #e5d386;
  background: #4d4525;
  color: #e5d386;
}

.region-tag.region-au {
  border-color: #d5ad80;
  background: #392e27;
  color: #d5ad80;
}

.region-tag.region-sa {
  border-color: #5dccdc;
  background: #193845;
  color: #5dccdc;
}

.col-tiers {
  display: grid;
  grid-template-columns: repeat(8, minmax(34px, max-content));
  justify-content: end;
  gap: 4px 6px;
}

.tier-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #afc5e5;
  min-width: 32px;
}

.tier-icon-wrap {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #3d526f;
  background: #263244;
  display: grid;
  place-items: center;
}

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

.tier-badge strong {
  color: #d8e6fb;
  font-size: 0.7rem;
  line-height: 1;
  padding: 2px 5px;
  border-radius: 999px;
  background: #304562;
}

.tier-badge.is-ht strong {
  background: #6d5d2c;
  color: #e8ba3a;
}

.tier-badge.is-lt strong {
  background: #4a505a;
  color: #a0a7b2;
}

.tier-badge.is-retired .tier-icon-wrap {
  border-style: dashed;
  opacity: 0.8;
}
.admin-panel {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.info-shell {
  border: 2px solid var(--line-strong);
  border-radius: 18px;
  background: linear-gradient(180deg, #131823 0%, #10151f 100%);
  padding: 20px;
}

.info-shell h2 {
  margin: 0 0 8px;
  font-family: "Rajdhani", sans-serif;
  font-size: 2rem;
}

.info-shell p {
  margin: 0 0 12px;
  color: var(--muted);
}

.primary-link {
  display: inline-block;
  text-decoration: none;
  border: 1px solid var(--accent);
  background: rgba(79, 195, 255, 0.16);
  color: #d8f2ff;
  border-radius: 8px;
  padding: 9px 12px;
}

.primary-link:hover,
.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-1px);
}

.rules-list {
  margin: 0;
  padding-left: 18px;
  color: #cfd7ea;
}

.rules-content {
  font-weight: 600;
  color: #deebff;
}

.rules-content h3 {
  margin: 14px 0 8px;
  font-weight: 700;
  color: #f0f7ff;
}

.rules-content p {
  margin: 0 0 10px;
}

.rules-content strong {
  font-weight: 700;
}

.rules-content .rules-list {
  margin: 0 0 10px;
  font-weight: 700;
}

.login-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.login-form label {
  display: grid;
  gap: 5px;
  color: #bfcbe1;
  font-size: 0.83rem;
}

.login-form input {
  width: 100%;
  background: #0b1018;
  color: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 9px 10px;
  font-family: inherit;
}

.admin-panel h3 { margin: 0 0 10px; color: #c7d2e8; }

.admin-panel-hidden { display: none; }
.admin-panel-visible { display: block; }

.account-box {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  margin: 10px 0 14px;
  background: #0f1420;
}

.account-box h4 {
  margin: 0 0 8px;
  color: #c7d2e8;
  font-size: 0.95rem;
}

.entry-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
}

.entry-form label {
  display: grid;
  gap: 5px;
  color: #bfcbe1;
  font-size: 0.83rem;
}

.entry-form input,
.entry-form select {
  width: 100%;
  background: #0b1018;
  color: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 9px 10px;
  font-family: inherit;
}

.entry-actions { display: flex; align-items: end; gap: 7px; }

.primary-btn,
.ghost-btn {
  border-radius: 8px;
  padding: 9px 10px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.primary-btn {
  border: 1px solid var(--accent);
  background: rgba(79, 195, 255, 0.16);
  color: #d8f2ff;
}

.ghost-btn {
  border: 1px solid var(--line-strong);
  background: #121827;
  color: #d0d9ec;
}

.entry-status {
  margin: 8px 0 0;
  min-height: 18px;
  color: #89d7ff;
  font-size: 0.9rem;
}

.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
  padding: 16px;
}

.player-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 280ms ease, visibility 280ms ease;
}

.player-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.player-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 16, 0.78);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 280ms ease;
}

.player-modal.is-open .player-modal-backdrop {
  opacity: 1;
}

.player-modal-card {
  position: relative;
  width: min(520px, calc(100% - 20px));
  max-height: calc(100vh - 20px);
  overflow: auto;
  margin: 10px auto;
  border: 1px solid #2b4369;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 18%, rgba(34, 62, 102, 0.28), transparent 42%),
    linear-gradient(180deg, #09142a 0%, #081225 100%);
  padding: 24px 20px 18px;
  box-shadow: 0 16px 38px rgba(3, 8, 18, 0.62), inset 0 1px 0 rgba(170, 208, 255, 0.08);
  transform: translateY(14px) scale(0.96);
  transition: transform 280ms ease, opacity 280ms ease;
  opacity: 0;
  will-change: transform, opacity;
}

.player-modal.is-open .player-modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.player-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid #2f466a;
  color: #b8cde9;
  background: #162845;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 2rem;
  line-height: 1;
}

.player-modal-close:hover {
  color: #fff;
  border-color: #4d688f;
  background: #21395f;
}

.modal-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-top: 14px;
}

.modal-avatar {
  width: 114px;
  height: 114px;
  border-radius: 50%;
  border: 2px solid #f3c746;
  box-shadow:
    inset 0 0 0 1px rgba(4, 8, 16, 0.8),
    0 0 0 1px rgba(243, 199, 70, 0.34),
    0 10px 20px rgba(0, 0, 0, 0.32);
}

.modal-avatar.has-skin.skin-body {
  background-size: 170%;
  background-position: center 8%;
}

.modal-avatar.has-skin.skin-avatar {
  background-size: 230%;
  background-position: center 8%;
}

.modal-player-name {
  margin: 0;
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(2.2rem, 6.6vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #c03dff 0%, #19beff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.modal-rank-chip {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid rgba(247, 212, 70, 0.46);
  background: rgba(188, 146, 35, 0.34);
  color: #ffd94f;
  font-weight: 700;
  font-size: 1.05rem;
}

.modal-rank-chip::before {
  content: "?";
  font-size: 1.15rem;
}

.modal-region-line {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: #1f3356;
}

.modal-namemc-link {
  text-decoration: none;
  color: #b5cae6;
  border: 1px solid #2e446a;
  border-radius: 12px;
  background: #0e1d36;
  padding: 7px 12px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
}

.modal-namemc-link:hover {
  color: #e4f0ff;
  border-color: #4b6895;
  background: #152a4a;
}

.modal-namemc-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #060b16;
  color: #fff;
  border: 1px solid #425f8c;
  font-size: 0.9rem;
  font-weight: 700;
}

.modal-block {
  margin-bottom: 14px;
}

.modal-block h4 {
  margin: 0 0 10px;
  font-family: "Rajdhani", sans-serif;
  font-size: 2rem;
  color: #b9ceec;
  letter-spacing: 0.02em;
}

.modal-position-row {
  display: grid;
  grid-template-columns: auto 1fr;
  border: 1px solid #2d446a;
  border-radius: 10px;
  overflow: hidden;
  background: #0d182d;
}

.modal-position-rank {
  min-width: 98px;
  padding: 7px 16px;
  position: relative;
  font-family: "Rajdhani", sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.35);
  background: linear-gradient(135deg, #f4c748 0%, #d9a532 72%);
}

.modal-position-rank::after {
  content: "";
  position: absolute;
  top: 0;
  right: -18px;
  width: 34px;
  height: 100%;
  transform: skewX(-24deg);
  background: rgba(255, 236, 175, 0.35);
}

.modal-position-main {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
}

.modal-position-cup {
  font-size: 1.35rem;
  color: #f4c44b;
}

.modal-position-mode {
  font-family: "Rajdhani", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #f4f8ff;
  letter-spacing: 0.02em;
}

.modal-position-points {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.9rem;
  font-weight: 600;
  color: #9db1d0;
}

.modal-tier-grid {
  border: 1px solid #2d446a;
  border-radius: 12px;
  background: #0d182d;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.modal-tier-item {
  width: 40px;
  text-align: center;
}

.modal-tier-circle {
  width: 34px;
  height: 34px;
  margin: 0 auto 5px;
  border-radius: 50%;
  border: 2px solid #38557e;
  display: grid;
  place-items: center;
  background: #081121;
  box-shadow: inset 0 0 0 1px rgba(140, 181, 238, 0.15);
}

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

.modal-tier-value {
  display: inline-block;
  min-width: 28px;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
  color: #d9e8ff;
  background: #30496f;
}

.modal-tier-item.is-ht .modal-tier-value {
  background: #756022;
  color: #ffd866;
}

.modal-tier-item.is-lt .modal-tier-value {
  background: #2f4a72;
  color: #95c0ff;
}

.modal-tier-item.is-retired .modal-tier-circle {
  border-style: dashed;
  opacity: 0.78;
}

.modal-tier-empty {
  margin: 0;
  color: #7f98bf;
  font-weight: 600;
  padding: 6px 8px;
}

.modal-rating-hidden {
  display: none;
}

@media (max-width: 1000px) {
  .site-nav {
    min-height: 64px;
    height: auto;
    padding: 8px 12px;
    gap: 8px;
    flex-wrap: wrap;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .container {
    padding-top: 54px;
  }

  .rankings-shell {
    margin-top: 12px;
    padding: 12px 10px 14px;
  }

  .tabs-strip {
    margin: -12px -10px 10px;
    padding: 6px 6px 0;
    gap: 4px;
  }

  .mode-tab {
    min-width: 82px;
    padding: 6px 7px 6px;
    border-radius: 16px 16px 0 0;
  }

  .mode-tab img {
    width: 22px;
    height: 22px;
  }

  .mode-tab span {
    font-size: 1.12rem;
  }

  .panel-head {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 8px;
  }

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

  .table-head {
    display: none;
  }

  .player-row {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 8px;
  }

  .col-rank {
    max-width: 220px;
  }

  .col-player {
    padding-left: 0;
  }

  .player-name {
    font-size: clamp(1.7rem, 8vw, 2.45rem);
  }

  .col-region { text-align: left; }

  .col-tiers {
    justify-content: start;
    grid-template-columns: repeat(auto-fit, minmax(32px, max-content));
  }

  .entry-form { grid-template-columns: 1fr; }
  .login-form { grid-template-columns: 1fr; }

  .player-modal-card {
    padding: 20px 14px 14px;
  }

  .modal-hero {
    margin-bottom: 14px;
  }

  .modal-avatar {
    width: 98px;
    height: 98px;
  }

  .modal-region-line {
    font-size: 1.65rem;
  }

  .modal-position-rank {
    min-width: 76px;
    font-size: 2.1rem;
    padding: 7px 12px;
  }

  .modal-position-main {
    gap: 8px;
    padding: 8px 10px;
  }

  .modal-position-mode {
    font-size: 1.5rem;
  }

  .modal-position-points {
    font-size: 1.45rem;
  }
}
