@font-face {
  font-family: Unbounded;
  src: url("/fonts/unbounded-cyrillic.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Unbounded;
  src: url("/fonts/unbounded-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --bg: #111214;
  --surface: rgba(29,30,34,.72);
  --surface-hover: rgba(43,44,48,.84);
  --line: #303135;
  --line-soft: #28292d;
  --text: #e9e9e6;
  --muted: #92938f;
  --dim: #696b69;
  --yellow: #d9ba63;
  --yellow-bright: #f0d27b;
  font-family: Unbounded, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 0; background: radial-gradient(ellipse 56% 30% at 12% 21%,rgba(217,186,99,.09),transparent 84%),radial-gradient(ellipse 68% 37% at 91% 48%,rgba(194,202,215,.065),transparent 86%),#101113; }
.container { position: relative; }
.container > :not(.snow) { position: relative; z-index: 1; }
.snow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.snow i { position: absolute; top: -15px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%; background: rgba(215,218,218,.35); animation: snowfall var(--d) linear var(--delay) infinite; }
@keyframes snowfall { to { transform: translate3d(36px, 120vh, 0); } }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
::selection { background: #6d5d37; color: #fff; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 76px;
  background: linear-gradient(180deg,rgba(37,38,42,.79),rgba(19,20,23,.72));
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  backdrop-filter: blur(22px) saturate(1.25);
  border-bottom: 1px solid rgba(255,255,255,.11);
  box-shadow: inset 0 1px rgba(255,255,255,.09),0 8px 28px rgba(0,0,0,.14);
}
.header-inner, .container, .footer-inner {
  width: min(100%, 1250px);
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 16px; font-weight: 700; letter-spacing: -.035em; }
.brand-mark { width: 34px; height: 34px; display: block; }
.brand-accent { color: var(--yellow); }
.header-nav { height: 100%; display: flex; align-items: center; gap: 30px; }
.header-link { position: relative; height: 100%; display: inline-flex; align-items: center; padding: 0 1px; border: 0; background: none; color: var(--muted); font-size: 13px; font-weight: 500; }
.header-link:hover, .header-link.active { color: var(--text); }
.header-link.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--yellow); }
.header-actions { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.header-discord { width: 43px; height: 43px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 11px; background: linear-gradient(145deg,rgba(255,255,255,.12),rgba(255,255,255,.035) 55%),rgba(29,30,33,.6); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 1px rgba(255,255,255,.16),0 6px 16px rgba(0,0,0,.16); transition: background .18s,border-color .18s,transform .18s; }
.header-discord img,.mobile-invites img { width: 21px; height: 21px; display: block; }
.header-discord:hover { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.38); transform: translateY(-2px); }
.header-discord img[src$="telegram.png"] { width: 22px; height: 22px; }
.mobile-invites { display: none; }
.header-cta { padding: 12px 17px; border: 1px solid var(--yellow); border-radius: 7px; background: var(--yellow); color: #191919; font-size: 12px; font-weight: 700; white-space: nowrap; transition: background .15s; }
.header-cta:hover { background: var(--yellow-bright); }

.container { min-height: calc(100vh - 154px); padding-top: 62px; padding-bottom: 92px; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: 33px; border-bottom: 1px solid var(--line); }
h1, h2, h3 { font-weight: 600; }
h1 { margin: 0; color: var(--text); font-size: clamp(32px, 4.5vw, 56px); line-height: 1.08; letter-spacing: -.055em; }
.page-stat { padding-bottom: 6px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.page-stat strong { color: var(--yellow); font-weight: 700; }
.page-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex-wrap: wrap; }
.discord-login, .discord-logout { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 12px; border: 1px solid var(--yellow); border-radius: 6px; background: transparent; color: var(--yellow); font-size: 12px; font-weight: 600; white-space: nowrap; }
.discord-login:hover { background: #29251a; }
.kit-links { display: flex; gap: 9px; flex-wrap: wrap; margin: 19px 0 0; }
.kit-links a { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.15); border-radius: 8px; background: linear-gradient(150deg,rgba(255,255,255,.08),rgba(255,255,255,.02) 55%),rgba(26,27,30,.58); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 1px rgba(255,255,255,.1); color: #c9cac7; font-size: 12px; transition: background .16s,border-color .16s,transform .16s; }
.kit-links a:hover { background: rgba(255,255,255,.075); border-color: rgba(217,186,99,.4); transform: translateY(-2px); }
.kit-links img,.kit-links .mode-icon-fallback { width: 21px; height: 21px; }
.kit-links a > span:last-child { color: var(--yellow); }
.mode-icon-fallback { display: inline-grid; place-items: center; width: 20px; height: 20px; flex: none; border: 1px solid rgba(217,186,99,.3); border-radius: 4px; background: rgba(217,186,99,.1); color: var(--yellow); font-size: 11px; font-weight: 700; }
.discord-logout { border-color: var(--line); color: var(--muted); }
.discord-logout:hover { color: var(--text); }
.discord-name { color: var(--muted); font-size: 12px; }
.content-grid { display: block; }
.main-panel { min-width: 0; }
.toolbar { display: flex; flex-direction: column; gap: 22px; padding: 25px 0 19px; }
.mode-scroll { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; }
.mode-tab { flex: 0 0 auto; min-height: 45px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: linear-gradient(145deg,rgba(255,255,255,.07),rgba(255,255,255,.015) 58%),rgba(23,24,27,.62); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: inset 0 1px rgba(255,255,255,.09); color: #b0b1ae; font-size: 13px; font-weight: 500; white-space: nowrap; transition: background .16s,border-color .16s,transform .16s; }
.mode-tab:hover { border-color: #73694d; background: rgba(53,50,42,.63); color: var(--text); transform: translateY(-1px); }
.mode-tab.active { border-color: rgba(242,213,139,.78); background: linear-gradient(155deg,rgba(255,238,189,.24),rgba(217,186,99,.08) 42%,rgba(217,186,99,.025)),rgba(30,29,26,.73); box-shadow: inset 0 1px rgba(255,239,194,.29),inset 0 -1px rgba(201,164,79,.18),0 7px 19px rgba(0,0,0,.16); color: var(--yellow-bright); }
.mode-icon { width: 20px; height: 20px; flex: none; object-fit: contain; image-rendering: pixelated; }
.search { width: min(100%, 340px); height: 43px; margin-left: auto; display: flex; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid rgba(255,255,255,.22); border-radius: 9px; background: linear-gradient(145deg,rgba(255,255,255,.12),rgba(255,255,255,.025) 52%),rgba(38,39,43,.52); -webkit-backdrop-filter: blur(24px) saturate(1.25); backdrop-filter: blur(24px) saturate(1.25); box-shadow: inset 0 1px rgba(255,255,255,.19),inset 0 -1px rgba(0,0,0,.21),0 10px 25px rgba(0,0,0,.11); }
.search:focus-within { border-color: var(--yellow); }
.search svg { width: 17px; height: 17px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.7; }
.search input { min-width: 0; width: 100%; border: 0; outline: 0; background: none; font-size: 13px; }
.search input::placeholder { color: var(--muted); }
.podium { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: end; gap: 12px; margin: 9px 0 26px; }
.podium-card { position: relative; overflow: hidden; min-height: 310px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 34px 12px 16px; border: 1px solid rgba(255,255,255,.22); border-radius: 13px; background: radial-gradient(ellipse 84% 65% at 83% -7%,rgba(255,255,255,.17),transparent 75%),linear-gradient(150deg,rgba(255,255,255,.11),rgba(255,255,255,.023) 45%,rgba(255,255,255,.006)),rgba(27,28,31,.57); -webkit-backdrop-filter: blur(28px) saturate(1.3); backdrop-filter: blur(28px) saturate(1.3); box-shadow: inset 0 1px rgba(255,255,255,.24),inset 0 -1px rgba(0,0,0,.23),0 17px 40px rgba(0,0,0,.19); text-align: center; transition: transform .2s,border-color .2s,box-shadow .2s; animation: podium-enter .42s both; }
.podium-card::after { content: ''; position: absolute; inset: -40% auto -40% -100%; width: 60%; pointer-events: none; background: linear-gradient(90deg,transparent,rgba(255,255,255,.075),transparent); transform: skewX(-22deg); transition: left .55s ease; }
.podium-card:hover::after { left: 145%; }
.podium-card:hover { transform: translateY(-4px); border-color: rgba(217,186,99,.5); box-shadow: inset 0 1px rgba(255,255,255,.18),0 20px 38px rgba(0,0,0,.23); }
.podium-1 { min-height: 330px; border-color: rgba(217,186,99,.66); background: radial-gradient(ellipse 90% 75% at 85% -12%,rgba(255,240,195,.22),transparent 70%),linear-gradient(150deg,rgba(217,186,99,.18),rgba(255,255,255,.027) 46%),rgba(31,30,27,.66); box-shadow: inset 0 1px rgba(255,235,176,.34),inset 0 -1px rgba(0,0,0,.23),0 18px 43px rgba(0,0,0,.22); animation-delay: .08s; }
.podium-2 { animation-delay: .16s; }
.podium-3 { animation-delay: .24s; }
@keyframes podium-enter { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
.podium-place { position: absolute; top: 15px; left: 17px; color: var(--yellow); font-size: 15px; font-weight: 700; }
.podium-avatar { width: min(100%, 118px); height: 160px; object-fit: cover; object-position: center top; image-rendering: pixelated; filter: drop-shadow(0 12px 12px rgba(0,0,0,.28)); }
.podium-avatar.is-custom-render { width: min(100%, 160px); object-fit: contain; image-rendering: auto; filter: brightness(1.08) saturate(1.05) contrast(1.03) drop-shadow(0 9px 12px rgba(0,0,0,.28)); }
.podium-card strong { max-width: 90%; overflow: hidden; font-size: 14px; text-overflow: ellipsis; }
.podium-score { color: var(--yellow); font-size: 12px; }
.podium-kits { display: flex; justify-content: center; flex-wrap: wrap; gap: 5px; width: 100%; margin-top: 4px; }
.podium-kits .tier-pill { font-size: 12px; }

.table-card { overflow: hidden; border: 1px solid rgba(255,255,255,.19); border-radius: 12px; background: radial-gradient(ellipse 60% 30% at 5% 0,rgba(255,255,255,.095),transparent),linear-gradient(150deg,rgba(255,255,255,.075),rgba(255,255,255,.012) 42%),rgba(27,28,31,.64); -webkit-backdrop-filter: blur(26px) saturate(1.2); backdrop-filter: blur(26px) saturate(1.2); box-shadow: inset 0 1px rgba(255,255,255,.18),0 16px 38px rgba(0,0,0,.17); }
.table-head, .player-row { display: grid; grid-template-columns: minmax(260px, 1.05fr) minmax(300px, 1fr) 82px; align-items: center; gap: 16px; }
.table-head { min-height: 48px; padding: 0 23px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 500; }
.table-head span:last-child { text-align: right; }
.player-row { width: 100%; min-height: 76px; padding: 11px 23px; border: 0; border-bottom: 1px solid var(--line-soft); background: transparent; text-align: left; transition: background .15s; }
.player-row:last-child { border-bottom: 0; }
.player-row:hover { background: var(--surface-hover); }
.player-main { display: flex; align-items: center; gap: 15px; min-width: 0; }
.rank { width: 31px; flex: none; color: var(--dim); font-size: 13px; font-weight: 600; text-align: left; }
.avatar { width: 42px; height: 42px; flex: none; border: 1px solid #42413a; border-radius: 5px; background: #333438; object-fit: cover; image-rendering: pixelated; }
.name-wrap { min-width: 0; }
.player-name { display: block; overflow: hidden; color: var(--text); font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.player-titles { display: none; }
.tier-list { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.tier-pill { min-height: 27px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border: 1px solid #3b3b3b; border-radius: 5px; background: #232427; color: #c3c3bd; font-size: 12px; font-weight: 600; white-space: nowrap; }
.tier-pill img { width: 16px; height: 16px; object-fit: contain; image-rendering: pixelated; }
.tier-pill.tier-1, .tier-pill.tier-2 { border-color: #6b5b36; color: var(--yellow); }
.points { color: var(--yellow); font-size: 14px; font-weight: 600; text-align: right; }
.empty { padding: 52px 20px; color: var(--muted); font-size: 12px; text-align: center; }

.site-footer { border-top: 1px solid var(--line-soft); background: #151618; }
.footer-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; font-weight: 500; }
.footer-inner div { display: flex; gap: 25px; }
.footer-inner a:hover { color: var(--yellow); }
.footer-credit { display: block; padding: 0 16px 17px; color: #777a80; font-size: 10px; font-weight: 500; letter-spacing: .02em; text-align: center; }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(7,8,10,.72); backdrop-filter: blur(7px); animation: profile-backdrop-in .22s ease-out both; }
.modal-card { position: relative; width: min(100%, 900px); max-height: calc(100vh - 40px); overflow-y: auto; padding: 30px; border: 1px solid rgba(255,255,255,.25); border-radius: 15px; background: radial-gradient(ellipse 75% 42% at 80% -15%,rgba(217,186,99,.11),transparent),linear-gradient(155deg,rgba(255,255,255,.13),rgba(255,255,255,.018) 45%),rgba(28,29,32,.83); -webkit-backdrop-filter: blur(34px) saturate(1.35); backdrop-filter: blur(34px) saturate(1.35); box-shadow: inset 0 1px rgba(255,255,255,.22),0 26px 75px rgba(0,0,0,.43); animation: profile-card-in .24s cubic-bezier(.2,.7,.2,1) both; }
@keyframes profile-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes profile-card-in { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes profile-backdrop-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes profile-card-out { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(7px) scale(.99); } }
.modal-backdrop.is-closing { animation: profile-backdrop-out .18s ease-in both; }
.modal-backdrop.is-closing .modal-card { animation: profile-card-out .18s ease-in both; }
.modal-close { position: absolute; top: 19px; right: 21px; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 6px; background: #242528; color: var(--muted); font-size: 22px; line-height: 1; }
.modal-close:hover { color: var(--text); }
.modal-top { display: flex; align-items: center; gap: 17px; padding-right: 35px; }
.modal-avatar { width: 72px; height: 72px; border-radius: 6px; background: #333438; image-rendering: pixelated; }
.modal-top h2 { margin: 0 0 7px; font-size: 20px; letter-spacing: -.04em; overflow-wrap: anywhere; }
.modal-sub { color: var(--muted); font-size: 12px; }
.modal-stats { display: flex; gap: 33px; margin-top: 24px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.modal-stat strong { display: block; color: var(--yellow); font-size: 18px; }
.modal-stat span { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; }
.modal-section-title { margin: 25px 0 13px; font-size: 12px; font-weight: 600; }
.modal-tiers { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; }
.modal-tier { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 41px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 5px; color: #c2c3bd; font-size: 12px; }
.modal-tier span { display: flex; align-items: center; gap: 8px; }
.modal-tier img { width: 22px; height: 22px; image-rendering: pixelated; }
.modal-tier b { color: var(--yellow); font-weight: 600; }
.modal-history { display: grid; gap: 9px; }
.modal-history-item { display: flex; justify-content: space-between; gap: 15px; padding-bottom: 9px; border-bottom: 1px solid var(--line-soft); color: var(--muted); font-size: 12px; }
.modal-history-item b { color: #c9c7bb; }
.modal-actions { display: flex; gap: 8px; margin-top: 24px; }
.profile-hero { display: grid; grid-template-columns: 190px 1fr; min-height: 230px; gap: 30px; padding: 19px; border: 1px solid rgba(255,255,255,.19); border-radius: 10px; background: linear-gradient(145deg,rgba(255,255,255,.085),rgba(255,255,255,.012) 58%),rgba(24,25,28,.52); box-shadow: inset 0 1px rgba(255,255,255,.15); }
.profile-skin { display: grid; place-items: center; overflow: hidden; border: 1px solid #3d392d; border-radius: 7px; background: #292a2c; }
.profile-skin img { display: block; max-width: 100%; height: 195px; object-fit: contain; object-position: center; image-rendering: pixelated; }
.profile-info { display: flex; flex-direction: column; align-items: start; justify-content: center; min-width: 0; padding-right: 30px; }
.profile-info h2 { margin: 0 0 12px; font-size: clamp(23px,3vw,35px); overflow-wrap: anywhere; }
.profile-roles { padding: 7px 10px; border: 1px solid #655a3c; border-radius: 5px; color: var(--yellow); font-size: 12px; }
.profile-info .modal-stats { width: 100%; margin: 16px 0; }
.modal-tiers { grid-template-columns: repeat(3,minmax(0,1fr)); }
.modal-tier { min-height: 54px; padding: 10px 12px; font-size: 12px; }
.modal-history-item { align-items: center; padding: 11px 0; font-size: 12px; }
.modal-history-item > span { display: flex; align-items: center; gap: 9px; }
.history-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.modal-history-item img { width: 23px; height: 23px; image-rendering: pixelated; }
.modal-history-item small { color: var(--dim); font-size: 12px; }
.modal-empty { padding: 14px 0; color: var(--muted); font-size: 12px; }

.light-button, .primary-button, .danger-button { min-height: 39px; padding: 9px 13px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.light-button { border: 1px solid rgba(255,255,255,.22); background: linear-gradient(145deg,rgba(255,255,255,.13),rgba(255,255,255,.025)),rgba(36,37,40,.6); -webkit-backdrop-filter: blur(15px); backdrop-filter: blur(15px); box-shadow: inset 0 1px rgba(255,255,255,.17); color: #e3e0d6; }
.light-button:hover { background: #2c2d30; }
.primary-button { border: 1px solid var(--yellow); background: var(--yellow); color: #1b1b18; }
.primary-button:hover { background: var(--yellow-bright); }
.danger-button { border: 1px solid #69524d; background: #2b2423; color: #d5aaa1; }
.danger-button:hover { background: #3a2927; }
.profile-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.admin { margin-top: 60px; padding-top: 34px; border-top: 1px solid var(--line); }
.admin-route .page-head,.admin-route .content-grid { display: none; }
.admin-route .container { padding-top: 55px; }
.admin-route .admin { margin-top: 0; padding-top: 0; border-top: 0; }
.admin-route .header-link.active::after { display: none; }
.admin-route .admin:has(.admin-grid[hidden]) .admin-heading { justify-content: center; }
.admin-route .admin:has(.admin-grid[hidden]) .admin-state { display: none; }
.admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.admin-heading h2 { margin: 0; font-size: 27px; letter-spacing: -.04em; }
.admin-login { width: min(100%,450px); margin-inline: auto; padding: 28px; border: 1px solid rgba(255,255,255,.15); border-radius: 11px; background: linear-gradient(150deg,rgba(255,255,255,.09),rgba(255,255,255,.01) 42%),rgba(28,29,32,.78); backdrop-filter: blur(20px); box-shadow: inset 0 1px rgba(255,255,255,.12),0 15px 35px rgba(0,0,0,.18); }
.admin-login label { display: block; margin: 0 0 8px; color: var(--muted); font-size: 12px; }
.admin-login label:not(:first-child) { margin-top: 18px; }
.admin-login input { width: 100%; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: #222326; font-size: 12px; }
.admin-login input:focus { border-color: var(--yellow); outline: 0; }
.admin-login button { width: 100%; min-height: 44px; margin-top: 20px; }
.admin-state { color: var(--muted); font-size: 12px; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.admin-card { min-width: 0; padding: 23px; border: 1px solid rgba(255,255,255,.15); border-radius: 11px; background: linear-gradient(150deg,rgba(255,255,255,.08),rgba(255,255,255,.015) 36%),rgba(28,29,32,.73); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); box-shadow: inset 0 1px rgba(255,255,255,.12),0 12px 28px rgba(0,0,0,.14); }
.admin-card h3 { margin: 0 0 19px; font-size: 15px; }
.field-label, .admin-section-label { display: block; margin: 18px 0 8px; color: var(--muted); font-size: 12px; }
.admin-card input:not([type=checkbox]), .admin-card select { width: 100%; height: 41px; padding: 0 10px; border: 1px solid #414245; border-radius: 5px; outline: 0; background: #222326; color: var(--text); font-size: 12px; }
.admin-card input:focus, .admin-card select:focus { border-color: var(--yellow); }
.admin-button-row, .inline-field, .admin-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.inline-field { margin-top: 0; }
.inline-field input { flex: 1; min-width: 130px; }
.title-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.title-option { padding: 7px 9px; border: 1px solid var(--line); border-radius: 5px; color: #a8a9a2; font-size: 12px; cursor: pointer; }
.title-option:has(input:checked) { border-color: #71603b; background: #2b281f; color: var(--yellow); }
.title-option input, .history-check input { accent-color: var(--yellow); }
.tier-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.tier-field { display: flex; align-items: center; gap: 7px; }
.tier-field label { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; color: #bcbdb7; font-size: 12px; }
.tier-field img { width: 20px; height: 20px; image-rendering: pixelated; }
.tier-field select { width: 82px !important; flex: none; }
.history-check { display: flex; align-items: center; gap: 6px; margin-top: 19px; color: var(--muted); font-size: 12px; }
.admin-actions { margin-top: 17px; }
.admin-message { min-height: 18px; color: var(--muted); font-size: 12px; }
.admin-message.error { color: #d5aaa1; }
.admin-catalog { grid-column: 1 / -1; }
.catalog-main-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.catalog-main-links .field-label { margin-top: 0; }
.catalog-main-links input { display: block; margin-top: 9px; }
.catalog-kits { display: grid; gap: 7px; margin: 0 0 20px; }
.catalog-kit { display: grid; grid-template-columns: minmax(140px,1fr) minmax(210px,2fr) auto; align-items: center; gap: 12px; padding: 9px 11px; border: 1px solid rgba(255,255,255,.09); border-radius: 7px; background: rgba(255,255,255,.025); }
.catalog-kit-name { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.catalog-kit-name img { width: 21px; height: 21px; image-rendering: pixelated; }
.catalog-kit label { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.catalog-add { display: grid; grid-template-columns: 160px minmax(180px,1fr) auto; gap: 9px; margin-bottom: 14px; }
.catalog-save-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
#discord-sync-state { color: var(--muted); font-size: 12px; }
.admin-catalog { background: rgba(35,36,39,.72); backdrop-filter: blur(16px) saturate(1.08); box-shadow: inset 0 1px rgba(255,255,255,.035), 0 12px 30px rgba(0,0,0,.1); }
.admin-queues { grid-column: 1 / -1; background: rgba(35,36,39,.72); backdrop-filter: blur(16px); }
.admin-queues-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.queue-overview { display: grid; gap: 1px; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.queue-row { display: grid; grid-template-columns: minmax(150px,1fr) 130px 130px auto; align-items: center; gap: 12px; min-height: 51px; padding: 8px 12px; background: rgba(255,255,255,.02); color: var(--muted); font-size: 12px; }
.queue-row + .queue-row { border-top: 1px solid var(--line-soft); }
.queue-row > span:first-child { display: flex; align-items: center; gap: 8px; color: var(--text); }
.queue-row img,.queue-row .mode-icon-fallback { width: 21px; height: 21px; image-rendering: pixelated; }
.queue-row button:disabled { opacity: .36; cursor: default; }
.admin-audit { grid-column: 1 / -1; }
.admin-audit-list { display: grid; }
.admin-audit-list > div { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-top: 1px solid var(--line-soft); color: var(--text); font-size: 12px; }
.admin-audit-list time { color: var(--muted); white-space: nowrap; }

.card-backdrop { z-index: 60; background: rgba(8,9,12,.76); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.card-dialog { width: min(100%,530px); max-height: calc(100vh - 32px); overflow-y: auto; padding: 17px; border: 1px solid rgba(255,255,255,.24); border-radius: 18px; background: radial-gradient(ellipse 95% 42% at 84% -7%,rgba(217,186,99,.14),transparent 75%),linear-gradient(145deg,rgba(255,255,255,.12),rgba(255,255,255,.017) 55%),rgba(25,26,30,.9); -webkit-backdrop-filter: blur(38px) saturate(1.35); backdrop-filter: blur(38px) saturate(1.35); box-shadow: inset 0 1px rgba(255,255,255,.24),0 30px 80px rgba(0,0,0,.55); animation: profile-card-in .24s cubic-bezier(.2,.7,.2,1) both; }
.card-dialog-head { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.card-dialog-head > div { min-width: 0; flex: 1; }
.card-dialog-head h2 { margin: 0 0 4px; font-size: 16px; letter-spacing: -.03em; }
.card-dialog-head span { display: block; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; }
.card-back,.card-close { width: 38px; height: 38px; flex: none; border: 1px solid rgba(255,255,255,.17); border-radius: 10px; background: linear-gradient(145deg,rgba(255,255,255,.11),rgba(255,255,255,.02)),rgba(36,37,42,.58); box-shadow: inset 0 1px rgba(255,255,255,.14); color: var(--text); font-size: 22px; line-height: 1; }
.card-back:hover,.card-close:hover { border-color: rgba(217,186,99,.58); color: var(--yellow); }
.card-preview { padding: 4px; border: 1px solid rgba(217,186,99,.31); border-radius: 15px; background: linear-gradient(160deg,rgba(255,255,255,.09),rgba(255,255,255,.006)),rgba(12,13,17,.53); box-shadow: inset 0 1px rgba(255,255,255,.14),0 10px 30px rgba(0,0,0,.19); }
.card-preview canvas { display: block; width: 100%; height: auto; border-radius: 11px; }
.card-controls { padding-top: 17px; }
.card-label { color: var(--text); font-size: 12px; font-weight: 700; }
.card-formats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; margin: 11px 0 20px; }
.card-formats button,.card-select-button { min-height: 40px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 9px; background: linear-gradient(145deg,rgba(255,255,255,.09),rgba(255,255,255,.012)),rgba(30,31,35,.68); box-shadow: inset 0 1px rgba(255,255,255,.12); font-size: 11px; font-weight: 600; transition: background .16s,border-color .16s,transform .16s; }
.card-formats button:hover,.card-select-button:hover { border-color: rgba(217,186,99,.48); transform: translateY(-1px); }
.card-formats button.active { border-color: rgba(236,205,127,.8); background: linear-gradient(145deg,rgba(255,238,188,.31),rgba(217,186,99,.08)),rgba(47,42,30,.72); box-shadow: inset 0 1px rgba(255,241,195,.28); color: var(--yellow-bright); }
.card-mode-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-count { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; }
.card-select-button { min-width: 92px; }
.card-mode-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; max-height: 160px; overflow-y: auto; margin-top: 12px; }
.card-mode { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 8px; border: 1px solid rgba(255,255,255,.13); border-radius: 8px; background: rgba(255,255,255,.04); font-size: 11px; cursor: pointer; }
.card-mode input { width: 16px; height: 16px; flex: none; accent-color: var(--yellow); }
.card-mode img,.card-mode .mode-icon-fallback { width: 19px; height: 19px; }
.card-mode span:not(.mode-icon-fallback) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-mode b { margin-left: auto; color: var(--yellow); }
.card-download { width: 100%; min-height: 47px; margin-top: 18px; border: 1px solid rgba(247,226,169,.95); border-radius: 10px; background: linear-gradient(160deg,#f2da98,#d5ae5a); box-shadow: inset 0 1px rgba(255,255,255,.55),0 9px 20px rgba(168,130,48,.17); color: #201c14; font-size: 13px; font-weight: 700; transition: filter .16s,transform .16s; }
.card-download:hover { filter: brightness(1.08); transform: translateY(-1px); }
.card-download:disabled { cursor: wait; opacity: .7; }

@media (max-width: 850px) {
  .table-head, .player-row { grid-template-columns: minmax(200px,1fr) minmax(190px,1fr) 65px; gap: 10px; }
  .admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .podium { gap: 6px; }
  .podium-card,.podium-1 { min-height: 278px; padding: 28px 5px 10px; gap: 6px; }
  .podium-avatar { width: min(100%, 78px); height: 106px; }
  .podium-avatar.is-custom-render { width: min(100%, 106px); }
  .podium-card strong { font-size: 12px; }
  .podium-score { font-size: 12px; }
  .podium-place { top: 8px; left: 8px; font-size: 12px; }
  .podium-kits { gap: 3px; }
  .podium-kits .tier-pill { min-height: 22px; padding: 2px 4px; font-size: 12px; }
  .podium-kits .tier-pill img { width: 13px; height: 13px; }
  .site-header { height: 64px; }
  .header-inner, .container, .footer-inner { padding-left: 16px; padding-right: 16px; }
  .header-inner { height: 64px; display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "brand nav"; gap: 12px; align-items: center; }
  .brand { grid-area: brand; min-width: 0; gap: 6px; font-size: 12px; }
  .brand-mark { width: 29px; height: 29px; }
  .header-nav { grid-area: nav; height: 64px; margin: 0; gap: 0; justify-self: end; }
  .header-link { height: 64px; font-size: 12px; white-space: nowrap; }
  .header-actions { display: none; }
  .container { padding-top: 40px; padding-bottom: 60px; }
  .page-head { align-items: start; flex-direction: column; gap: 14px; padding-bottom: 23px; }
  h1 { font-size: clamp(28px,8vw,38px); }
  .page-stat { padding: 0; }
  .page-actions { width: 100%; justify-content: flex-start; }
  .mobile-invites { display: flex; width: 100%; gap: 8px; }
  .mobile-invites a { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 9px 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 9px; background: linear-gradient(145deg,rgba(255,255,255,.12),rgba(255,255,255,.035)),rgba(29,30,33,.68); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 1px rgba(255,255,255,.14); font-size: 12px; font-weight: 600; }
  .mobile-invites a:not(:last-child) { width: 42px; flex: none; padding: 9px; }
  .mobile-invites a:last-child { border-color: var(--yellow); background: var(--yellow); color: #191919; }
  .toolbar { gap: 13px; padding-top: 18px; }
  .mode-scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; scrollbar-width: none; }
  .mode-scroll::-webkit-scrollbar { display: none; }
  .mode-tab { min-height: 40px; font-size: 12px; }
  .search { width: 100%; }
  .table-head { grid-template-columns: 1fr auto; min-height: 42px; padding: 0 13px; }
  .table-head span:nth-child(2) { display: none; }
  .player-row { grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "player points" "tiers tiers"; gap: 7px; padding: 12px 13px; }
  .player-main { grid-area: player; gap: 9px; }
  .points { grid-area: points; }
  .tier-list { grid-area: tiers; padding-left: 23px; }
  .rank { width: 18px; font-size: 12px; }
  .avatar { width: 34px; height: 34px; }
  .player-name { font-size: 12px; }
  .tier-pill { min-height: 23px; padding: 2px 5px; font-size: 12px; }
  .tier-pill img { width: 14px; height: 14px; }
  .modal-card { padding: 22px 18px; }
  .profile-hero { grid-template-columns: 100px 1fr; gap: 14px; min-height: 180px; padding: 10px; }
  .profile-skin img { height: 170px; }
  .profile-info { padding-right: 0; }
  .profile-info h2 { font-size: 15px; letter-spacing: -.035em; }
  .profile-roles { font-size: 12px; }
  .profile-info .modal-stats { gap: 9px; }
  .modal-stat strong { font-size: 12px; }
  .modal-stat span { font-size: 12px; }
  .modal-tiers { grid-template-columns: 1fr; }
  .modal-history-item { flex-direction: column; gap: 5px; }
  .footer-inner { min-height: 70px; }
  .tier-fields { grid-template-columns: 1fr; }
  .catalog-main-links,.catalog-kit,.catalog-add { grid-template-columns: 1fr; }
  .catalog-kit label { display: grid; }
  .queue-row { grid-template-columns: 1fr auto; }
  .queue-row > span:nth-child(3) { grid-column: 1; }
  .queue-row button { grid-column: 2; grid-row: 1 / 3; }
}
@media (prefers-reduced-motion: reduce) { .snow i { animation: none; display: none; } .podium-card,.podium-card::after { animation: none; transition: none; } .modal-backdrop,.modal-card,.modal-backdrop.is-closing,.modal-backdrop.is-closing .modal-card { animation: none; } }
