*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #f5f5f7;
  --bg-card:    #ffffff;
  --bg-nav:     rgba(255,255,255,0.75);
  --border:     rgba(0,0,0,0.08);
  --border-md:  rgba(0,0,0,0.12);
  --text:       #1d1d1f;
  --text-sec:   #6e6e73;
  --text-ter:   #aeaeb2;
  --accent:     #0071e3;
  --r-sm:       10px;
  --r-md:       14px;
  --r-lg:       20px;
  --sh-sm:      0 2px 8px rgba(0,0,0,0.06);
  --sh-md:      0 4px 24px rgba(0,0,0,0.09);
  --sh-lg:      0 8px 48px rgba(0,0,0,0.11);
  --font:       'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:       'DM Mono', 'SF Mono', monospace;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: none; }
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
@keyframes backdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(.92) translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes rankPop {
  0%   { opacity: 0; transform: scale(0.5); }
  60%  { transform: scale(1.12); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes skeletonPulse {
  0%, 100% { opacity: .4; }
  50% { opacity: .75; }
}

.avatar-placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #e8e8ed 25%, #f0f0f3 50%, #e8e8ed 75%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.2s ease infinite;
  border-radius: inherit;
  z-index: 0;
}
.avatar-placeholder.sm { border-radius: 7px; }

.lazy-avatar {
  opacity: 0;
  transition: opacity .3s ease;
  width: 100%; height: 100%; object-fit: cover;
  position: relative; z-index: 1;
}
.lazy-avatar.loaded { opacity: 1; }

.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  animation: slideDown .4s ease both;
}
.nav-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 24px;
  height: 52px; display: flex; align-items: center; gap: 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; flex-shrink: 0;
  transition: opacity .2s, transform .2s;
}
.nav-logo:hover { opacity: .72; transform: scale(0.97); }
.nav-logo:active { transform: scale(0.94); }
.nav-kits {
  display: flex; align-items: center; gap: 2px;
  flex: 1; overflow-x: auto; scrollbar-width: none;
}
.nav-kits::-webkit-scrollbar { display: none; }
.nav-kit {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--text-sec);
  white-space: nowrap;
  transition: color .2s, background .2s, transform .15s;
}
.nav-kit-icon {
  width: 15px; height: 15px; opacity: 0.45; flex-shrink: 0;
  transition: opacity .25s, transform .2s;
}
.nav-kit:hover .nav-kit-icon,
.nav-kit.active .nav-kit-icon { opacity: 1; transform: scale(1.1); }
.nav-kit:hover { color: var(--text); background: rgba(0,0,0,0.05); transform: translateY(-1px); }
.nav-kit:active { transform: translateY(0) scale(0.97); }
.nav-kit.active { color: var(--text); background: rgba(0,0,0,0.06); }
.nav-right { flex-shrink: 0; }

.search-wrap { position: relative; display: flex; align-items: center; }
.search-icon-svg { position: absolute; left: 10px; pointer-events: none; z-index: 1; }
.nav-search {
  width: 196px; height: 32px; padding: 0 12px 0 30px;
  border: 1px solid var(--border-md); border-radius: 8px;
  background: rgba(255,255,255,.8); backdrop-filter: blur(10px);
  font-family: var(--font); font-size: 13px; color: var(--text);
  outline: none;
  transition: width .35s cubic-bezier(.4,0,.2,1), border-color .2s, box-shadow .3s, background .2s;
}
.nav-search:focus {
  width: 256px; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,113,227,.12); background: #fff;
}
.nav-search::placeholder { color: var(--text-ter); }
.search-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; width: 280px;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-md); box-shadow: var(--sh-lg);
  overflow: hidden; display: none; animation: dropIn .2s ease;
}
.search-dropdown.open { display: block; }
.sd-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  transition: background .15s, padding-left .2s; cursor: pointer;
}
.sd-item:hover { background: var(--bg); padding-left: 18px; }
.sd-item img { width: 28px; height: 28px; border-radius: 6px; transition: transform .2s; }
.sd-item:hover img { transform: scale(1.08); }
.sd-name { font-size: 14px; font-weight: 500; flex: 1; }
.sd-empty { padding: 16px; text-align: center; font-size: 13px; color: var(--text-sec); }

.page-header {
  background: linear-gradient(160deg, #fff 0%, #f0f0f3 100%);
  border-bottom: 1px solid var(--border);
  padding: 48px 24px 44px;
  animation: fadeIn .5s ease both;
}
.page-header-inner { max-width: 1400px; margin: 0 auto; }
.kit-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 20px; margin-bottom: 14px;
  background: rgba(0,113,227,.07); color: var(--accent);
  border: 1px solid rgba(0,113,227,.18);
  animation: scaleIn .4s ease both;
  animation-delay: .1s;
  transition: transform .2s, box-shadow .2s;
}
.kit-badge:hover { transform: scale(1.05); box-shadow: var(--sh-sm); }
.kit-badge-icon { width: 14px; height: 14px; opacity: .8; transition: transform .3s; }
.kit-badge:hover .kit-badge-icon { transform: rotate(12deg) scale(1.15); }
.page-title {
  font-size: clamp(30px, 4vw, 48px); font-weight: 700;
  letter-spacing: -.03em; line-height: 1.08;
  animation: fadeUp .5s ease both; animation-delay: .15s;
}
.page-sub {
  margin-top: 10px; font-size: 16px; color: var(--text-sec);
  animation: fadeUp .5s ease both; animation-delay: .25s;
}

.container { max-width: 1400px; margin: 0 auto; padding: 40px 24px 80px; flex: 1; }
.layout-body { display: flex; flex-direction: column; flex: 1; }

.tier-pill {
  font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px;
  transition: transform .2s, box-shadow .2s;
}
.tier-pill:hover { transform: scale(1.06); box-shadow: var(--sh-sm); }
.tier-ht1, .tier-lt1 { background: rgba(255,214,10,.14); color: #9a7200; border: 1px solid rgba(255,214,10,.35); }
.tier-ht2, .tier-lt2 { background: rgba(255,107,53,.12); color: #b84000; border: 1px solid rgba(255,107,53,.30); }
.tier-ht3, .tier-lt3 { background: rgba(191,90,242,.10); color: #8920cc; border: 1px solid rgba(191,90,242,.28); }
.tier-ht4, .tier-lt4 { background: rgba(52,199,89,.11); color: #1a7f37; border: 1px solid rgba(52,199,89,.28); }
.tier-ht5, .tier-lt5 { background: rgba(142,142,147,.10); color: #6e6e73; border: 1px solid rgba(142,142,147,.25); }
.tier-count { font-size: 13px; color: var(--text-ter); font-family: var(--mono); }

.player-avatar {
  flex-shrink: 0; width: 32px; height: 32px;
  border-radius: 7px; overflow: hidden; background: var(--bg);
  transition: transform .25s;
  position: relative;
}
.player-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.player-name {
  font-size: 13px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.player-region {
  font-size: 10px; color: var(--text-ter); font-family: var(--mono);
  text-transform: uppercase; letter-spacing: .04em;
}
.retired-tag {
  font-size: 9px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-ter); background: rgba(142,142,147,.1);
  border: 1px solid var(--border); padding: 2px 5px; border-radius: 20px; flex-shrink: 0;
}

.player-card {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 14px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--r-sm);
  cursor: pointer; user-select: none; position: relative; overflow: hidden;
  opacity: 0;
  animation: fadeUp .35s ease both;
  transition: box-shadow .25s cubic-bezier(.4,0,.2,1),
              transform .25s cubic-bezier(.4,0,.2,1),
              border-color .2s;
}
.player-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(130deg, rgba(255,255,255,.55) 0%, transparent 60%);
  opacity: 0; transition: opacity .25s; pointer-events: none;
}
.player-card:hover {
  box-shadow: var(--sh-md); transform: translateY(-3px) scale(1.01);
  border-color: rgba(0,0,0,.15);
}
.player-card:hover::after { opacity: 1; }
.player-card:hover .player-avatar { transform: scale(1.08); }
.player-card:active { transform: translateY(0) scale(0.98); box-shadow: var(--sh-sm); }
.player-card.retired { opacity: .52; }

.tier-col-group .player-card:nth-child(1) { animation-delay: .05s; }
.tier-col-group .player-card:nth-child(2) { animation-delay: .1s; }
.tier-col-group .player-card:nth-child(3) { animation-delay: .15s; }
.tier-col-group .player-card:nth-child(4) { animation-delay: .2s; }
.tier-col-group .player-card:nth-child(5) { animation-delay: .25s; }
.tier-col-group .player-card:nth-child(6) { animation-delay: .3s; }
.tier-col-group .player-card:nth-child(7) { animation-delay: .35s; }
.tier-col-group .player-card:nth-child(8) { animation-delay: .4s; }
.tier-col-group .player-card:nth-child(n+9) { animation-delay: .45s; }

.tier-columns {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  align-items: start;
}
.tier-col {
  display: flex; flex-direction: column;
  padding: 0 20px;
  border-right: 1px solid var(--border);
  animation: fadeUp .4s ease both;
  min-width: 0;
}
.tier-col:last-child { border-right: none; }
.tier-col:first-child { padding-left: 0; }
.tier-col:last-child { padding-right: 0; }
.tier-col:nth-child(1) { animation-delay: 0s; }
.tier-col:nth-child(2) { animation-delay: .06s; }
.tier-col:nth-child(3) { animation-delay: .12s; }
.tier-col:nth-child(4) { animation-delay: .18s; }
.tier-col:nth-child(5) { animation-delay: .24s; }

.tier-col-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.tier-col-group { display: flex; flex-direction: column; gap: 6px; }
.tier-col-group--gap { margin-top: 12px; }
.tier-col-sublabel {
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-ter); margin-bottom: 5px; font-family: var(--mono);
}
.tier-col-empty-label { font-size: 13px; color: var(--text-ter); text-align: center; padding: 20px 0; }

.leaderboard { display: flex; flex-direction: column; gap: 6px; }

.lb-row {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 24px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  cursor: pointer; user-select: none; position: relative; overflow: hidden;
  opacity: 0;
  animation: fadeUp .4s ease both;
  transition: box-shadow .3s cubic-bezier(.4,0,.2,1),
              transform .3s cubic-bezier(.4,0,.2,1),
              border-color .2s;
}
.lb-row::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(130deg, rgba(255,255,255,.55) 0%, transparent 60%);
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.lb-row:hover {
  box-shadow: var(--sh-md); transform: translateY(-3px) scale(1.005);
  border-color: rgba(0,0,0,.15);
}
.lb-row:hover::after { opacity: 1; }
.lb-row:hover .player-avatar { transform: scale(1.1); }
.lb-row:active { transform: translateY(0) scale(0.995); box-shadow: var(--sh-sm); }
.lb-row.retired { opacity: .52; }

.leaderboard .lb-row:nth-child(1)  { animation-delay: .03s; }
.leaderboard .lb-row:nth-child(2)  { animation-delay: .06s; }
.leaderboard .lb-row:nth-child(3)  { animation-delay: .09s; }
.leaderboard .lb-row:nth-child(4)  { animation-delay: .12s; }
.leaderboard .lb-row:nth-child(5)  { animation-delay: .15s; }
.leaderboard .lb-row:nth-child(6)  { animation-delay: .18s; }
.leaderboard .lb-row:nth-child(7)  { animation-delay: .21s; }
.leaderboard .lb-row:nth-child(8)  { animation-delay: .24s; }
.leaderboard .lb-row:nth-child(9)  { animation-delay: .27s; }
.leaderboard .lb-row:nth-child(10) { animation-delay: .30s; }
.leaderboard .lb-row:nth-child(n+11) { animation-delay: .33s; }

.lb-rank {
  font-size: 16px; font-weight: 700; font-family: var(--mono);
  color: var(--text-ter); width: 40px; flex-shrink: 0; text-align: right;
  transition: color .2s, transform .2s;
}
.lb-row:hover .lb-rank { color: var(--accent); transform: scale(1.1); }

.lb-row .player-avatar { width: 48px; height: 48px; border-radius: 10px; }
.lb-row .player-name { font-size: 16px; font-weight: 600; }
.lb-row .player-region { font-size: 11px; }
.lb-row .retired-tag { font-size: 10px; padding: 3px 6px; }

.lb-kit-icons {
  display: flex; align-items: center; gap: 12px;
  margin-left: auto; flex-shrink: 0;
}
.lb-kit-cell {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  transition: transform .2s;
}
.lb-kit-cell:hover { transform: translateY(-2px) scale(1.1); }
.lb-kit-icon { width: 18px; height: 18px; opacity: .6; transition: opacity .2s; }
.lb-kit-cell:hover .lb-kit-icon { opacity: 1; }
.lb-kit-tier {
  font-size: 10px; font-weight: 700; font-family: var(--mono);
  letter-spacing: .02em; line-height: 1;
}
.lb-tier-ht1, .lb-tier-lt1 { color: #9a7200; }
.lb-tier-ht2, .lb-tier-lt2 { color: #b84000; }
.lb-tier-ht3, .lb-tier-lt3 { color: #8920cc; }
.lb-tier-ht4, .lb-tier-lt4 { color: #1a7f37; }
.lb-tier-ht5, .lb-tier-lt5 { color: #6e6e73; }

.lb-overall-tier { flex-shrink: 0; font-size: 13px; padding: 6px 16px; }

.empty-state {
  text-align: center; padding: 80px 24px; color: var(--text-sec);
  animation: fadeIn .6s ease both;
}
.empty-icon { font-size: 48px; margin-bottom: 16px; opacity: .4; }
.empty-state p { font-size: 16px; }

.footer {
  padding: 24px; text-align: center; font-size: 13px;
  color: var(--text-ter); border-top: 1px solid var(--border);
  display: flex; justify-content: center; gap: 24px;
  animation: fadeIn .6s ease both; animation-delay: .3s;
}
.footer a { color: var(--text-ter); transition: color .2s, transform .2s; display: inline-block; }
.footer a:hover { color: var(--text); transform: translateY(-1px); }

.modal-backdrop {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.30);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  animation: backdropIn .25s ease;
}
.modal-box {
  width: 540px; max-width: calc(100vw - 32px); max-height: 90vh;
  overflow-y: auto; background: #fff;
  border: 1px solid var(--border-md); border-radius: var(--r-lg);
  box-shadow: var(--sh-lg); padding: 32px; position: relative;
  animation: modalIn .35s cubic-bezier(.34,1.15,.64,1);
}
.modal-box::-webkit-scrollbar { width: 4px; }
.modal-box::-webkit-scrollbar-thumb { background: var(--border-md); border-radius: 2px; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(0,0,0,.06); border: none;
  color: var(--text-sec); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s, transform .2s;
}
.modal-close:hover { background: rgba(0,0,0,.12); color: var(--text); transform: rotate(90deg) scale(1.1); }
.modal-close:active { transform: rotate(90deg) scale(0.9); }
.modal-loading { display: flex; align-items: center; justify-content: center; padding: 60px 0; }
.spinner {
  width: 26px; height: 26px;
  border: 2px solid rgba(0,0,0,.08); border-top-color: var(--accent);
  border-radius: 50%; animation: spin .7s linear infinite;
}

.modal-profile-header {
  display: flex; align-items: center; gap: 18px; margin-bottom: 28px;
  animation: fadeUp .35s ease both;
}
.modal-avatar {
  width: 68px; height: 68px; border-radius: 16px;
  overflow: hidden; background: var(--bg); flex-shrink: 0;
  box-shadow: var(--sh-sm);
  animation: scaleIn .4s cubic-bezier(.34,1.2,.64,1) both;
  transition: transform .3s, box-shadow .3s;
}
.modal-avatar:hover { transform: scale(1.06) rotate(2deg); box-shadow: var(--sh-md); }
.modal-avatar img { width: 100%; height: 100%; object-fit: cover; }
.modal-player-name {
  font-size: 24px; font-weight: 700; letter-spacing: -.03em;
  animation: fadeUp .35s ease both; animation-delay: .08s;
}
.modal-tags {
  display: flex; gap: 7px; margin-top: 7px; flex-wrap: wrap;
  animation: fadeUp .35s ease both; animation-delay: .14s;
}
.modal-tag {
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px;
  background: rgba(0,0,0,.05); color: var(--text-sec);
  border: 1px solid var(--border-md); font-family: var(--mono);
  transition: transform .2s, background .2s;
}
.modal-tag:hover { transform: scale(1.06); background: rgba(0,0,0,.08); }

.modal-rank-block {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin-bottom: 28px;
  padding: 18px 22px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  animation: fadeUp .4s ease both; animation-delay: .12s;
  transition: box-shadow .3s, transform .3s;
}
.modal-rank-block:hover { box-shadow: var(--sh-sm); transform: translateY(-1px); }
.modal-rank-number {
  font-size: 34px; font-weight: 700; font-family: var(--mono);
  letter-spacing: -.04em; color: var(--text); line-height: 1;
  animation: rankPop .5s cubic-bezier(.34,1.4,.64,1) both; animation-delay: .25s;
}
.modal-rank-of-wrap { margin-top: 2px; }
.modal-rank-of {
  font-size: 12px; font-weight: 500; font-family: var(--mono);
  color: var(--text-ter); letter-spacing: -.01em;
}
.modal-rank-meta { display: flex; flex-direction: column; gap: 3px; }
.modal-rank-label {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-sec);
}
.modal-rank-tier-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px; width: fit-content;
  transition: transform .2s;
}
.modal-rank-tier-pill:hover { transform: scale(1.08); }
.modal-rank-separator { width: 1px; height: 40px; background: var(--border-md); }
.modal-rank-stats { display: flex; gap: 20px; }
.modal-rank-stat {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  transition: transform .2s;
}
.modal-rank-stat:hover { transform: translateY(-2px); }
.modal-rank-stat-value {
  font-size: 17px; font-weight: 700; font-family: var(--mono); letter-spacing: -.02em;
}
.modal-rank-stat-label {
  font-size: 9px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em; color: var(--text-ter);
}

.modal-kits-label {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .07em; color: var(--text-sec); margin-bottom: 10px;
  animation: fadeUp .35s ease both; animation-delay: .2s;
}
.modal-kits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  gap: 5px;
  animation: fadeUp .4s ease both; animation-delay: .25s;
}
.modal-kit-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 3px 5px; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--r-sm);
  position: relative; overflow: hidden;
  opacity: 0; animation: scaleIn .3s ease both;
  transition: box-shadow .25s cubic-bezier(.4,0,.2,1),
              transform .25s cubic-bezier(.4,0,.2,1),
              border-color .2s;
}
.modal-kit-item:nth-child(1)  { animation-delay: .28s; }
.modal-kit-item:nth-child(2)  { animation-delay: .31s; }
.modal-kit-item:nth-child(3)  { animation-delay: .34s; }
.modal-kit-item:nth-child(4)  { animation-delay: .37s; }
.modal-kit-item:nth-child(5)  { animation-delay: .40s; }
.modal-kit-item:nth-child(6)  { animation-delay: .43s; }
.modal-kit-item:nth-child(7)  { animation-delay: .46s; }
.modal-kit-item:nth-child(8)  { animation-delay: .49s; }
.modal-kit-item:nth-child(9)  { animation-delay: .52s; }
.modal-kit-item:nth-child(10) { animation-delay: .55s; }
.modal-kit-item:nth-child(n+11) { animation-delay: .58s; }
.modal-kit-item::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--kit-color, transparent);
  transition: height .2s;
}
.modal-kit-item:hover::before { height: 3px; }
.modal-kit-item:hover {
  box-shadow: var(--sh-sm); transform: translateY(-3px) scale(1.04);
  border-color: rgba(0,0,0,.15);
}
.modal-kit-item:active { transform: translateY(0) scale(0.97); }
.modal-kit-item.is-retired { opacity: .42; }
.modal-kit-item.is-unranked { opacity: .38; }
.modal-kit-item.is-unranked::before { background: transparent; }
.modal-kit-icon { width: 16px; height: 16px; opacity: .8; transition: transform .25s, opacity .2s; }
.modal-kit-item:hover .modal-kit-icon { transform: scale(1.15); opacity: 1; }
.modal-kit-empty-icon {
  width: 16px; height: 16px;
  border: 1.5px dashed var(--border-md);
  border-radius: 50%; opacity: 0.5;
  transition: opacity .2s, transform .3s;
}
.modal-kit-item:hover .modal-kit-empty-icon { opacity: .7; transform: rotate(90deg); }
.modal-kit-name {
  font-size: 8px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; color: var(--text-sec); text-align: center;
  margin-top: 1px; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.modal-kit-tier { font-size: 10px; font-weight: 700; font-family: var(--mono); line-height: 1; transition: transform .2s; }
.modal-kit-item:hover .modal-kit-tier { transform: scale(1.15); }
.modal-kit-empty-tier { font-size: 10px; font-weight: 700; font-family: var(--mono); color: var(--text-ter); line-height: 1; }
.modal-error { text-align: center; padding: 40px 0; color: var(--text-sec); font-size: 14px; animation: fadeIn .3s ease both; }

.modal-sk { padding: 4px 0; }
.modal-sk-hdr { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.modal-sk-av {
  width: 68px; height: 68px; border-radius: 16px;
  background: var(--border); flex-shrink: 0;
  animation: skeletonPulse 1.2s ease infinite;
}
.modal-sk-info { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.modal-sk-nm { width: 160px; height: 24px; background: var(--border); border-radius: 6px; animation: skeletonPulse 1.2s ease infinite; animation-delay: .1s; }
.modal-sk-tags { width: 120px; height: 16px; background: var(--border); border-radius: 20px; animation: skeletonPulse 1.2s ease infinite; animation-delay: .2s; }
.modal-sk-rank { height: 76px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-md); margin-bottom: 28px; animation: skeletonPulse 1.2s ease infinite; animation-delay: .15s; }
.modal-sk-lbl { width: 50px; height: 12px; background: var(--border); border-radius: 4px; margin-bottom: 10px; animation: skeletonPulse 1.2s ease infinite; animation-delay: .25s; }
.modal-sk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 5px; }
.modal-sk-kit { height: 52px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-sm); animation: skeletonPulse 1.2s ease infinite; }
.modal-sk-kit:nth-child(2) { animation-delay: .08s; }
.modal-sk-kit:nth-child(3) { animation-delay: .16s; }
.modal-sk-kit:nth-child(4) { animation-delay: .24s; }
.modal-sk-kit:nth-child(5) { animation-delay: .32s; }
.modal-sk-kit:nth-child(6) { animation-delay: .40s; }

@media (max-width: 1100px) {
  .tier-columns { grid-template-columns: repeat(3, 1fr); }
  .tier-col:nth-child(3) { border-right: none; }
  .tier-col:nth-child(4) { border-right: 1px solid var(--border); padding-left: 0; }
}
@media (max-width: 768px) {
  .nav-inner { gap: 10px; }
  .nav-kit { padding: 5px 9px; font-size: 12px; }
  .nav-kit-icon { width: 13px; height: 13px; }
  .nav-search { width: 130px; }
  .nav-search:focus { width: 170px; }
  .page-header { padding: 32px 20px 28px; }
  .container { padding: 28px 16px 60px; }
  .tier-columns { grid-template-columns: repeat(2, 1fr); }
  .tier-col {
    border-right: none !important;
    padding: 0 !important;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px !important;
    margin-bottom: 8px;
  }
  .tier-col:last-child { border-bottom: none; }
  .lb-kit-icons { display: none; }
  .modal-rank-block { flex-wrap: wrap; gap: 12px; }
  .modal-rank-separator { width: 100%; height: 1px; }
  .modal-rank-stats { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .nav-kits { display: none; }
  .tier-columns { grid-template-columns: 1fr; }
}