:root {
  color-scheme: dark;
  --page: #0e141b;
  --surface: #121b26;
  --surface-strong: #182333;
  --border: #263445;
  --text: #f1f5fb;
  --muted: #a0b0c2;
  --quiet: #7f8ea1;
  --accent: #eaf0f8;
  --accent-soft: rgba(187, 211, 241, .09);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 50% -18%, rgba(100, 145, 190, .12), transparent 38rem),
    var(--page);
  color: var(--text);
}

button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }

.topbar {
  height: 68px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(12, 18, 26, .94);
}

.topbar-inner {
  display: flex;
  width: min(1280px, calc(100% - 56px));
  height: 100%;
  align-items: center;
  margin: 0 auto;
}

.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-mark {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #444444;
  border-radius: 8px;
  background: #000000;
}

.brand-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
.brand-name { font-size: 19px; font-weight: 750; letter-spacing: -.7px; }
.brand-name span { color: #a5a5a5; }
.main-nav { display: flex; height: 100%; align-items: center; margin-left: 46px; }
.nav-link { position: relative; display: grid; height: 100%; place-items: center; padding: 0 15px; color: #a7a7a7; font-size: 14px; }
.nav-link.active { color: var(--text); }
.nav-link.active::after { position: absolute; right: 12px; bottom: -1px; left: 12px; height: 2px; background: var(--accent); content: ""; }
.connection-state { display: flex; align-items: center; gap: 8px; margin-left: auto; color: #a0a0a0; font-size: 12px; }
.refresh-countdown { padding-left: 9px; border-left: 1px solid rgba(255, 255, 255, .16); color: #858585; font-variant-numeric: tabular-nums; white-space: nowrap; }
.connection-dot, .live-badge span { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(255, 255, 255, .28); }

.home-page { width: min(1200px, calc(100% - 56px)); margin: 32px auto 70px; }
.home-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; border: 1px solid #202c3a; border-radius: 12px; background: linear-gradient(115deg, #171a1d 0%, #111923 48%, #142033 100%); box-shadow: 0 20px 55px rgba(0, 0, 0, .24); }
.home-hero-copy { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: 42px 38px; }
.home-wordmark { color: #eef4fc; font-size: clamp(42px, 5vw, 64px); font-weight: 950; letter-spacing: -3.4px; line-height: 1; text-shadow: 0 3px 0 #172232; }
.home-wordmark span { color: #7fc7f1; }
.home-eyebrow { display: flex; align-items: center; gap: 8px; margin-top: 21px; color: #91a5bd; font-size: 10px; font-weight: 800; letter-spacing: 1.25px; }
.home-eyebrow-mark { width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid #70b8e4; }
.home-hero-copy h1 { margin-top: 12px; color: #f3f6fa; font-size: clamp(27px, 3vw, 36px); letter-spacing: -1px; }
.home-hero-copy p { max-width: 470px; margin: 10px 0 0; color: #9cacc0; font-size: 14px; line-height: 1.65; }
.home-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 23px; }
.home-action { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 9px; padding: 0 16px; border: 1px solid transparent; border-radius: 7px; font-size: 13px; font-weight: 750; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.home-action:hover { transform: translateY(-1px); }
.home-action--primary { background: #eaf0f8; color: #101923; }
.home-action--primary:hover { background: #ffffff; }
.home-action--secondary { border-color: #2e4055; background: #1b2939; color: #e1eaf5; }
.home-action--secondary:hover { border-color: #537291; background: #22354a; }
.home-top-players { min-width: 0; padding: 25px 24px 23px; border-left: 1px solid rgba(255, 255, 255, .055); }
.home-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.home-section-heading h2 { color: #b7c5d6; font-size: 12px; font-weight: 800; }
.home-section-heading h2 span { margin-right: 5px; }
.home-section-heading a { color: #9db0c7; font-size: 11px; }
.home-section-heading a:hover { color: #ffffff; }
.home-top-list { display: grid; gap: 8px; }
.home-top-player { display: grid; width: 100%; min-width: 0; gap: 8px; padding: 8px; border: 1px solid #1d2b3b; border-radius: 8px; background: rgba(18, 28, 42, .88); color: inherit; cursor: pointer; font: inherit; text-align: left; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.home-top-player:hover { transform: translateY(-1px); border-color: #40566f; background: #19283a; }
.home-player-summary { display: flex; min-width: 0; align-items: center; gap: 9px; }
.home-player-visual { display: flex; width: 106px; height: 38px; flex: 0 0 106px; align-items: center; gap: 5px; padding: 3px 6px; background: linear-gradient(110deg, #d6aa3b, #9b782b); clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%); }
.home-top-player--2 .home-player-visual { background: linear-gradient(110deg, #9aadb8, #596c7a); }
.home-top-player--3 .home-player-visual { background: linear-gradient(110deg, #bd713d, #774524); }
.home-player-rank { width: 26px; flex: 0 0 26px; color: #ffffff; font: italic 900 25px/1 "Arial Black", "Segoe UI", sans-serif; letter-spacing: -1.5px; text-shadow: 0 1px 3px rgba(0, 0, 0, .55); }
.home-player-avatar { width: 34px; height: 34px; flex: 0 0 34px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 4px; background: rgba(0, 0, 0, .15); }
.home-player-copy { display: grid; min-width: 0; flex: 1; gap: 3px; }
.home-player-name { overflow: hidden; color: #e6edf6; font-size: 14px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.home-player-points { overflow: hidden; color: #8297b0; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.home-region { flex: 0 0 auto; padding: 6px 7px; border-radius: 5px; background: rgba(233, 76, 91, .2); color: #ff8290; font-size: 10px; font-weight: 850; }
.home-player-tiers { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 3px; padding-left: 2px; }
.home-mini-tier { display: grid; min-width: 0; justify-items: center; gap: 2px; }
.home-mini-mode-icon { width: 17px; height: 17px; overflow: visible; border: 1px solid #29394c; border-radius: 50%; background: #101722; }
.home-mini-mode-icon .mode-icon-image { top: 50%; width: 19px; height: 19px; transform: translate(-50%, -50%); object-fit: contain; }
.home-mini-tier-label { min-width: 24px; padding: 2px 3px; border-radius: 4px; background: color-mix(in srgb, var(--tier-color, #8795a7), transparent 82%); color: var(--tier-color, #8795a7); font-size: 8px; font-weight: 800; line-height: 1; text-align: center; }
.home-mini-tier--unranked .home-mini-tier-label { background: #1b2634; color: #758398; }
.home-empty { display: grid; min-height: 96px; place-items: center; padding: 16px; border: 1px dashed #2c3b4e; border-radius: 8px; color: #91a1b5; font-size: 12px; text-align: center; }
.home-status-strip { display: grid; grid-column: 1 / -1; grid-template-columns: 1.4fr 1fr 1fr; align-items: center; gap: 14px; padding: 13px 22px; border-top: 1px solid rgba(255, 255, 255, .07); background: rgba(12, 19, 29, .55); }
.home-status-brand { display: flex; align-items: center; gap: 10px; }
.home-status-icon { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; overflow: hidden; border: 1px solid #2c4056; border-radius: 7px; background: #172436; }
.home-status-icon img { width: 100%; height: 100%; object-fit: cover; }
.home-status-brand > span:last-child, .home-stat { display: grid; gap: 3px; }
.home-stat-label { color: #7e91a8; font-size: 8px; font-weight: 800; letter-spacing: .8px; }
.home-status-brand strong, .home-stat strong { color: #e1e9f2; font-size: 12px; font-weight: 750; }
.home-status-brand strong::before { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #3bd18b; box-shadow: 0 0 9px rgba(59, 209, 139, .35); content: ""; }
.home-status-brand strong.is-offline::before { background: #f06472; box-shadow: 0 0 9px rgba(240, 100, 114, .3); }
.home-stat { padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .08); }
.home-gamemodes { margin-top: 38px; }
.home-gamemodes-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 13px; }
.home-gamemodes-heading h2 { color: #e6edf5; font-size: 20px; letter-spacing: -.3px; }
.home-gamemodes-heading p { margin: 5px 0 0; color: #8797aa; font-size: 12px; }
.home-mode-grid { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; }
.home-mode-card { display: flex; min-width: 0; min-height: 112px; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 10px 5px; border: 1px solid #1e2b3a; border-radius: 9px; background: linear-gradient(180deg, #121b26, #101720); color: #d3deeb; cursor: pointer; font: inherit; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.home-mode-card:hover { transform: translateY(-2px); border-color: #496381; background: #182638; }
.home-mode-icon-frame { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid #29394d; border-radius: 9px; background: #0e1621; }
.home-mode-icon { width: 38px; height: 38px; overflow: visible; }
.home-mode-icon .mode-icon-image { top: 50%; width: 39px; height: 39px; transform: translate(-50%, -50%); object-fit: contain; }
.home-mode-label { overflow: hidden; max-width: 100%; color: #ced9e7; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.home-info-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; margin-top: 40px; }
.home-info-card { min-width: 0; padding: 24px; border: 1px solid #202c3a; border-radius: 12px; background: #121923; }
.home-info-card h2 { color: #e8eef6; font-size: 21px; letter-spacing: -.3px; }
.home-info-card > p { margin: 8px 0 17px; color: #9cacc0; font-size: 13px; line-height: 1.55; }
.home-info-card > p strong { color: #e5edf7; }
.home-tier-list { display: grid; gap: 7px; }
.home-tier-row { display: flex; min-height: 43px; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 12px; border-radius: 8px; background: #17202d; color: #d3deeb; }
.home-tier-name { display: flex; min-width: 74px; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; }
.home-tier-name > span { font-size: 17px; }
.home-tier-points { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.home-tier-points > span { padding: 5px 8px; border-radius: 999px; background: rgba(4, 9, 15, .34); color: #9aa8b8; font-size: 10px; font-weight: 700; white-space: nowrap; }
.home-tier-points > span strong { color: inherit; }
.home-tier-row--1 { background: #3b3219; color: #f4bb4c; }
.home-tier-row--1 .home-tier-points { color: #f4bb4c; }
.home-tier-row--2 { background: #303642; color: #b6c1cf; }
.home-tier-row--2 .home-tier-points { color: #c1ccda; }
.home-tier-row--3 { background: #3b2a25; color: #d78a55; }
.home-tier-row--3 .home-tier-points { color: #e09860; }
.home-tier-row--4 { color: #c2d0e0; }
.home-tier-row--4 .home-tier-points { color: #a9bfd5; }
.home-tier-row--5 { color: #c084fc; }
.home-tier-row--5 .home-tier-points { color: #c084fc; }
.home-title-list { display: grid; gap: 10px; }
.home-title-row { --title-color: #b9c5d3; display: grid; grid-template-columns: 21px minmax(0, 1fr); align-items: center; gap: 11px; }
.home-title-emblem { position: relative; display: block; width: 17px; height: 17px; transform: rotate(45deg); border: 3px solid var(--title-color); border-radius: 3px; }
.home-title-emblem::after { position: absolute; top: 50%; left: 50%; width: 5px; height: 5px; transform: translate(-50%, -50%); border: 2px solid var(--title-color); content: ""; }
.home-title-detail { display: grid; min-width: 0; gap: 6px; }
.home-title-heading { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 8px; }
.home-title-heading strong { overflow: hidden; color: var(--title-color); font-size: 13px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.home-title-heading > span { flex: 0 0 auto; color: #8fa2b8; font-size: 10px; }
.home-title-progress { height: 5px; overflow: hidden; border-radius: 999px; background: #080d13; }
.home-title-progress > span { display: block; width: var(--progress); height: 100%; border-radius: inherit; background: var(--title-color); }
.home-title-row--grandmaster { --title-color: #ffda3e; }
.home-title-row--master { --title-color: #efbd38; }
.home-title-row--ace { --title-color: #ff7896; }
.home-title-row--specialist { --title-color: #cb8aff; }
.home-title-row--cadet { --title-color: #ad8cff; }
.home-title-row--novice { --title-color: #c29cff; }
.home-title-row--rookie { --title-color: #8d98a5; }
.home-footer { display: flex; justify-content: space-between; gap: 12px; padding: 23px 2px 0; color: #78889b; font-size: 10px; }
.home-footer-brand { color: #d5dfeb; font-weight: 850; letter-spacing: .8px; }

.page { width: min(1200px, calc(100% - 56px)); margin: 0 auto; }
.discord-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.discord-card { display: flex; min-width: 0; min-height: 84px; align-items: center; gap: 14px; padding: 15px 17px; border: 1px solid #263445; border-radius: 10px; background: linear-gradient(145deg, #151f2c, #111923); transition: transform .15s ease, border-color .15s ease, background .15s ease; }
.discord-card:hover { transform: translateY(-2px); border-color: #586f89; background: #192638; }
.discord-card-icon { display: grid; width: 46px; height: 46px; flex: 0 0 46px; place-items: center; border: 1px solid #34465b; border-radius: 10px; background: #0e1621; }
.discord-card-icon img { display: block; width: 32px; height: 32px; object-fit: contain; }
.discord-card-copy { display: grid; min-width: 0; flex: 1; gap: 5px; }
.discord-card-copy strong { color: #e6edf5; font-size: 15px; font-weight: 750; }
.discord-card-copy span { overflow: hidden; color: #91a1b5; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.discord-card-arrow { color: #94a8c0; font-size: 18px; }
.discord-card:focus-visible { outline: 2px solid #b8d5f3; outline-offset: 3px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 38px 2px 22px; }
.eyebrow, .section-label, .field-label, .footer-label { color: var(--quiet); font-size: 10px; font-weight: 750; letter-spacing: 1.35px; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: #d7d7d7; }
.eyebrow-mark { width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid var(--accent); }
h1, h2 { margin: 0; font-weight: 700; }
h1 { margin-top: 11px; font-size: clamp(34px, 4vw, 46px); letter-spacing: -1.6px; }
.heading-muted { color: #858585; font-weight: 500; }
.page-description { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.board-note { max-width: 340px; padding-bottom: 3px; color: #858585; font-size: 12px; text-align: right; }

.mode-panel {
  padding: 16px 18px 17px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: linear-gradient(180deg, #151515, #101010);
}

.mode-tabs { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; padding-top: 12px; }
.mode-tab {
  display: flex;
  min-width: 0;
  height: 66px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  overflow: hidden;
  padding: 4px 3px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #0b0b0b;
  color: #929292;
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.mode-tab:hover { border-color: #555555; color: var(--text); }
.mode-tab[aria-pressed="true"] { border-color: #f4f4f4; background: #f4f4f4; color: #090909; }
.mode-icon { position: relative; display: block; width: 28px; height: 26px; flex: 0 0 auto; overflow: hidden; }
.mode-icon-image { position: absolute; top: 0; left: 50%; width: 32px; max-width: none; height: 32px; transform: translateX(-50%); object-fit: cover; object-position: center; }
.mode-icon--overall { display: grid; overflow: visible; place-items: center; }
.mode-icon-trophy { display: block; font-family: "Segoe UI Emoji", sans-serif; font-size: 19px; line-height: 1; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35)); }
.toolbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 11px; padding: 18px 0; }
.search-control { display: grid; min-width: 0; gap: 6px; }
.field-label { font-size: 9px; }
.search-box {
  display: flex;
  width: 100%;
  height: 44px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #101010;
  color: #e7e7e7;
}

.search-box:focus-within { border-color: #aaaaaa; }
.search-box { gap: 9px; padding: 0 10px; }
.search-box svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: #738391; stroke-width: 1.8; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 13px; }
.search-box input::placeholder { color: #737373; }
kbd { display: grid; width: 18px; height: 19px; flex: 0 0 auto; place-items: center; border: 1px solid #484848; border-radius: 4px; color: #a2a2a2; font: 10px Inter, "Segoe UI", sans-serif; }

.leaderboard-card { overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: #111111; box-shadow: 0 16px 42px rgba(0, 0, 0, .25); }
.leaderboard-topline { display: flex; min-height: 72px; align-items: center; justify-content: space-between; padding: 14px 20px; }
.leaderboard-topline h2 { margin-top: 5px; font-size: 18px; letter-spacing: -.2px; }
.live-badge { display: flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid #3c3c3c; border-radius: 5px; background: #181818; color: #d0d0d0; font-size: 10px; font-weight: 750; letter-spacing: 1px; }
.live-badge span { width: 6px; height: 6px; }

.table-header, .player-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 132px 170px 24px; align-items: center; }
.table-header { min-height: 34px; padding: 0 20px; border-top: 1px solid #242424; border-bottom: 1px solid #242424; background: #0c0c0c; color: #777777; font-size: 9px; font-weight: 750; letter-spacing: 1px; }
.table-header[hidden] { display: none; }
.table-header--overall, .player-row--overall { grid-template-columns: 172px minmax(0, 1fr) minmax(400px, .9fr) 24px; }
.table-header--overall .date-heading, .table-header--overall > span:last-child { display: none; }
.table-header--overall .tier-heading { text-align: center; }
.player-row--overall { min-height: 82px; }
.overall-player-visual { display: flex; width: 100%; height: 56px; align-items: center; gap: 9px; padding: 4px 13px 4px 10px; }
.overall-player-visual .player-rank { width: 32px; flex: 0 0 32px; padding: 0; color: #858585; font: italic 900 20px/1 "Arial Black", "Segoe UI", sans-serif; letter-spacing: -1.5px; text-shadow: 0 1px 3px rgba(0, 0, 0, .45); }
.player-row--podium-1 .overall-player-visual { background: linear-gradient(115deg, #f8d34e, #dca827); clip-path: polygon(0 0, 100% 0, 87% 100%, 0 100%); }
.player-row--podium-2 .overall-player-visual { background: linear-gradient(115deg, #c0d0d4, #718992); clip-path: polygon(0 0, 100% 0, 87% 100%, 0 100%); }
.player-row--podium-3 .overall-player-visual { background: linear-gradient(115deg, #cf7b3b, #914b26); clip-path: polygon(0 0, 100% 0, 87% 100%, 0 100%); }
.player-row--podium-1 .overall-player-visual, .player-row--podium-2 .overall-player-visual, .player-row--podium-3 .overall-player-visual { position: relative; overflow: hidden; }
.player-row--podium-1 .overall-player-visual::after, .player-row--podium-2 .overall-player-visual::after, .player-row--podium-3 .overall-player-visual::after { position: absolute; top: 0; bottom: 0; left: 0; z-index: 1; width: 45%; background: linear-gradient(105deg, transparent 8%, rgba(255, 255, 255, .3) 50%, transparent 92%); content: ""; pointer-events: none; animation: podium-shine 5s ease-in-out infinite; }
.player-row--podium-1 .overall-player-visual .player-rank, .player-row--podium-2 .overall-player-visual .player-rank, .player-row--podium-3 .overall-player-visual .player-rank { color: #ffffff; }
.overall-player-visual .player-avatar { width: 40px; height: 50px; border-radius: 4px; background: rgba(0, 0, 0, .12); }
.player-row--podium-1 .overall-player-visual .player-avatar, .player-row--podium-2 .overall-player-visual .player-avatar, .player-row--podium-3 .overall-player-visual .player-avatar { width: 42px; height: 50px; border-color: rgba(255, 255, 255, .35); background: rgba(0, 0, 0, .16); }
.overall-player-copy { min-width: 0; padding-left: 2px; }
.rank-heading { padding-left: 3px; }
.tier-heading, .date-heading { text-align: center; }
.player-entry { border-bottom: 1px solid rgba(255, 255, 255, .07); }
.player-entry:last-child { border-bottom: 0; }
.player-row { width: 100%; min-height: 68px; padding: 0 20px; border: 0; background: transparent; color: inherit; cursor: pointer; font: inherit; text-align: left; transition: background .15s ease; }
.player-row:hover { background: rgba(255, 255, 255, .035); }
.player-entry--restricted { background: rgba(118, 18, 24, .38); }
.player-entry--restricted .player-row:hover { background: rgba(255, 66, 75, .12); }
.player-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.player-rank { padding-left: 3px; color: #858585; font: 700 16px Georgia, serif; }
.player-entry:first-child .player-rank { color: #f2f2f2; }
.player-list--tier-columns { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start; gap: 10px; padding: 14px 16px 16px; }
.player-list--tier-columns > .message-state { grid-column: 1 / -1; }
.tier-column { min-width: 0; overflow: hidden; border: 1px solid #273547; border-radius: 4px; background: #17202d; }
.tier-column-heading { display: flex; min-height: 52px; align-items: center; justify-content: center; gap: 7px; margin: 0; padding: 8px 4px; border-bottom: 1px solid rgba(255, 255, 255, .08); background: #202a38; color: #c8d2df; font-size: 17px; font-weight: 800; }
.tier-column--1 .tier-column-heading { background: #453819; color: #f3b53d; }
.tier-column--2 .tier-column-heading { background: #303642; color: #b6c1cf; }
.tier-column--3 .tier-column-heading { background: #3b2a25; color: #d78a55; }
.tier-column-trophy { font-size: 19px; line-height: 1; }
.tier-column--2 .tier-column-trophy { filter: grayscale(1) brightness(1.25); }
.tier-column--3 .tier-column-trophy { filter: sepia(1) saturate(3) hue-rotate(335deg); }
.tier-column-players { display: grid; gap: 1px; }
.tier-column-player { display: flex; width: 100%; min-width: 0; min-height: 44px; align-items: center; gap: 8px; padding: 4px 9px; border: 0; border-left: 2px solid var(--tier-color, #566); background: #1b2533; color: #f0f3f7; cursor: pointer; font: inherit; text-align: left; transition: background .15s ease; }
.tier-column-player--ht { background: #29384b; }
.tier-column-player:hover { background: #263345; }
.tier-column-player--ht:hover { background: #314258; }
.tier-column-player--restricted { background: rgba(118, 18, 24, .62); }
.tier-column-player--restricted:hover { background: rgba(155, 26, 32, .78); }
.tier-column-player:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.tier-column-player .player-avatar { width: 32px; height: 36px; border: 0; border-radius: 4px; background: transparent; }
.tier-column-player-name { overflow: hidden; flex: 1; color: #f0f3f7; font-size: 14px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.tier-column-restricted { flex: 0 0 auto; padding: 3px 4px; border: 1px solid rgba(255, 104, 104, .5); border-radius: 4px; background: rgba(53, 20, 20, .9); color: #ff8585; font-size: 8px; font-weight: 900; letter-spacing: .25px; line-height: 1.1; white-space: nowrap; }
.tier-column-peak { position: relative; width: 12px; height: 18px; flex: 0 0 12px; margin-left: auto; }
.tier-column-peak::before, .tier-column-peak::after { position: absolute; left: 3px; width: 6px; height: 6px; transform: rotate(45deg); border-top: 2px solid #526d8e; border-left: 2px solid #526d8e; content: ""; }
.tier-column-peak::before { top: 3px; }
.tier-column-peak::after { top: 9px; }
.tier-column-region { --region-border: #46515f; max-width: 0; flex: 0 0 auto; overflow: hidden; padding: 0; border: 1px solid transparent; border-radius: 4px; background: #20242a; color: #aab4c2; font-size: 9px; font-weight: 800; line-height: 1; opacity: 0; pointer-events: none; text-align: center; text-overflow: clip; transform: translateX(6px); transition: max-width .16s ease, padding .16s ease, border-color .16s ease, opacity .16s ease, transform .16s ease; white-space: nowrap; }
.tier-column-player:hover .tier-column-region, .tier-column-player:focus-visible .tier-column-region { max-width: 34px; padding: 4px 6px; border-color: var(--region-border); opacity: 1; transform: translateX(0); }
.tier-column-region--na { --region-border: rgba(245, 91, 105, .42); background: rgba(245, 91, 105, .13); color: #ff7b83; }
.tier-column-region--eu { --region-border: rgba(88, 194, 129, .42); background: rgba(88, 194, 129, .13); color: #73d99a; }
.tier-column-region--as, .tier-column-region--au { --region-border: rgba(229, 103, 163, .42); background: rgba(229, 103, 163, .13); color: #f17eb5; }
.tier-column-empty { padding: 14px 8px; color: #7f8a99; font-size: 10px; text-align: center; }
.player-info { display: flex; min-width: 0; align-items: center; gap: 11px; }
.player-avatar { position: relative; display: grid; width: 38px; height: 46px; flex: 0 0 auto; overflow: hidden; place-items: center; border: 1px solid #464646; border-radius: 6px; background: linear-gradient(145deg, #414141, #1d1d1d); color: #f1f1f1; font-size: 14px; font-weight: 750; text-transform: uppercase; }
.player-skin { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.player-copy { display: grid; min-width: 0; gap: 3px; }
.player-name { overflow: hidden; color: #e4e4e4; font-size: 14px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.player-subtitle { color: #858585; font-size: 11px; }
.tier-cell { display: flex; justify-content: center; }
.tier-badge { min-width: 48px; padding: 6px 8px; border: 1px solid color-mix(in srgb, var(--tier-color), transparent 68%); border-radius: 5px; background: color-mix(in srgb, var(--tier-color), transparent 91%); color: var(--tier-color); font-size: 11px; font-weight: 800; letter-spacing: .4px; text-align: center; }
.tier-badge.tier-points-badge { min-width: 62px; border-color: #46515f; background: #222a35; color: #e4e9ef; }
.overall-tier-strip { display: grid; min-width: 0; grid-template-columns: repeat(9, minmax(28px, 1fr)); align-items: center; gap: 4px; overflow-x: auto; padding: 3px 1px; scrollbar-color: #46515f transparent; scrollbar-width: thin; }
.overall-tier-item { --tier-color: #777777; --tier-icon-color: #46515f; --tier-fill: #20242a; display: grid; min-width: 0; justify-items: center; align-content: center; gap: 3px; }
.overall-tier-item .mode-icon { width: 25px; height: 25px; border: 1px solid var(--tier-icon-color); border-radius: 50%; background: #111820; }
.overall-tier-item .mode-icon-image { top: 50%; width: 25px; height: 25px; transform: translate(-50%, -50%); object-fit: contain; }
.overall-tier-label { min-width: 30px; padding: 3px 4px; border-radius: 6px; background: var(--tier-fill); color: var(--tier-color); font-size: 9px; font-weight: 750; line-height: 1.1; text-align: center; }
.overall-tier-item--retired .overall-tier-label { min-width: 30px; padding: 2px 3px; border: 1px solid #000; outline: 2px solid #000; outline-offset: 1px; background: #000; color: #f5d274; }
.overall-tier-item--lt5 { --tier-color: #c084fc; --tier-icon-color: #7e46b3; --tier-fill: #2b1740; }
.overall-tier-item--ht5 { --tier-color: #e879f9; --tier-icon-color: #a842b5; --tier-fill: #3b1644; }
.overall-tier-item--lt4 { --tier-color: #f87171; --tier-icon-color: #a9424a; --tier-fill: #4b1f26; }
.overall-tier-item--ht4 { --tier-color: #ef4444; --tier-icon-color: #d14c56; --tier-fill: #652127; }
.overall-tier-item--lt3 { --tier-color: #d99a63; --tier-icon-color: #9c6842; --tier-fill: #694629; }
.overall-tier-item--ht3 { --tier-color: #f0bf6b; --tier-icon-color: #c89a56; --tier-fill: #76552f; }
.overall-tier-item--lt2 { --tier-color: #c0c4ca; --tier-icon-color: #858b92; --tier-fill: #4a4e53; }
.overall-tier-item--ht2 { --tier-color: #292b2e; --tier-icon-color: #d7dbe0; --tier-fill: #c8cbd0; }
.overall-tier-item--lt1 { --tier-color: #e8bc50; --tier-icon-color: #b48b2d; --tier-fill: #70520f; }
.overall-tier-item--ht1 { --tier-color: #211904; --tier-icon-color: #f5d274; --tier-fill: #d6a526; }
.overall-tier-item--retired .mode-icon { border-color: #000; outline: 2px solid #000; outline-offset: 1px; }
.overall-tier-item--unranked .mode-icon { border-style: dashed; }
.overall-tier-item--unranked .overall-tier-label { color: #777777; }
.last-result { color: #909090; font-size: 12px; text-align: center; }
.expand-icon { width: 8px; height: 8px; transform: rotate(45deg); border-right: 1px solid #858585; border-bottom: 1px solid #858585; transition: transform .15s ease; }

.player-dialog {
  position: relative;
  width: min(520px, calc(100% - 28px));
  max-height: 92vh;
  overflow-y: auto;
  padding: 28px 40px;
  border: 1px solid #263241;
  border-radius: 27px;
  background: #111821;
  color: var(--text);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .52);
}

.player-dialog::backdrop { background: rgba(3, 3, 3, .8); backdrop-filter: blur(5px); }
.profile-close { position: absolute; top: 20px; right: 20px; display: grid; width: 44px; height: 44px; place-items: center; border: 0; border-radius: 50%; background: #1d2938; color: #c4cfdd; cursor: pointer; font-size: 30px; line-height: 1; }
.profile-close:hover { border-color: var(--accent); color: var(--accent); }
.profile-content { display: grid; gap: 18px; padding-top: 35px; }
.profile-content--restricted .profile-intro,
.profile-content--restricted .profile-position,
.profile-content--restricted .profile-tiers { filter: grayscale(1); }
.profile-restriction-notice { display: grid; justify-items: center; gap: 5px; padding: 12px 16px; border: 1px solid #9f2424; border-radius: 11px; background: #351414; color: #ff6868; text-align: center; }
.profile-restriction-notice strong { font-size: 15px; letter-spacing: 1px; }
.profile-restriction-notice span { font-size: 13px; font-weight: 650; }
.profile-intro { display: grid; justify-items: center; gap: 0; padding: 0; text-align: center; }
.profile-skin-frame { position: relative; display: grid; width: 112px; height: 112px; place-items: center; overflow: hidden; border: 2px solid #f4c13b; border-radius: 50%; background: #151e2a; }
.profile-skin-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .75); font-size: 32px; font-weight: 750; text-transform: uppercase; }
.profile-skin { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.profile-identity { display: grid; justify-items: center; gap: 13px; min-width: 0; margin-top: 3px; }
.profile-identity h2 { overflow-wrap: anywhere; color: #e9f0fa; font-size: 29px; letter-spacing: -.5px; }
.profile-rank-badge { display: inline-flex; min-height: 38px; align-items: center; gap: 8px; padding: 5px 13px; border-radius: 999px; background: #3a351e; color: #ffd238; font-size: 15px; font-weight: 700; }
.profile-rank-badge--grandmaster { background: #3d351c; color: #ffda3e; }
.profile-rank-badge--master { background: #362d1b; color: #efbd38; }
.profile-rank-badge--ace { background: #3b202b; color: #ff7896; }
.profile-rank-badge--specialist { background: #34233f; color: #cb8aff; }
.profile-rank-badge--cadet { background: #2c2442; color: #ad8cff; }
.profile-rank-badge--novice { background: #28233c; color: #c29cff; }
.profile-rank-badge--rookie { background: #242d37; color: #aab7c5; }
.profile-rank-icon { width: 22px; height: 22px; }
.profile-rank-icon .mode-icon-image { top: 50%; width: 25px; height: 25px; transform: translate(-50%, -50%); object-fit: contain; }
.profile-region { color: #728198; font-size: 17px; font-weight: 650; }
.profile-namemc { display: inline-flex; min-height: 35px; align-items: center; padding: 0 13px; border-radius: 12px; background: #1d2b3c; color: #aebdd0; font-size: 13px; }
.profile-namemc:hover { background: #26384d; color: #e5edf7; }
.profile-section-label { color: #91a1b6; font-size: 18px; font-weight: 500; letter-spacing: 0; }
.profile-position { display: grid; gap: 9px; }
.profile-position-card { display: grid; min-height: 49px; grid-template-columns: 96px minmax(0, 1fr); overflow: hidden; border: 1px solid #314054; border-radius: 11px; background: #141c28; }
.profile-position-rank { display: grid; place-items: center; background: #222a35; color: #ffffff; font: italic 900 29px/1 "Arial Black", "Segoe UI", sans-serif; letter-spacing: -1.5px; text-shadow: 0 1px 3px rgba(0, 0, 0, .45); }
.profile-position-card--1 .profile-position-rank { background: #efbd32; clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%); }
.profile-position-card--2 .profile-position-rank { background: #aebfc5; clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%); }
.profile-position-card--3 .profile-position-rank { background: #bd6b34; color: #ffffff; clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%); }
.profile-position-copy { display: flex; min-width: 0; align-items: center; gap: 9px; padding: 8px 12px; }
.profile-position-icon { width: 20px; height: 20px; }
.profile-position-icon .mode-icon-image { top: 50%; width: 22px; height: 22px; transform: translate(-50%, -50%); object-fit: contain; }
.profile-position-icon .mode-icon-trophy { font-size: 21px; }
.profile-rank-badge .mode-icon-trophy { font-size: 21px; }
.profile-position-name { color: #e8ebef; font-size: 17px; font-weight: 800; letter-spacing: .3px; }
.profile-position-points { color: #9aa8b8; font-size: 15px; }
.profile-tiers h3 { margin: 0 0 10px; color: #91a1b6; font-size: 18px; font-weight: 500; letter-spacing: .2px; }
.profile-mode-grid { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 4px; padding: 10px 7px 8px; overflow: visible; border: 1px solid #2d3a4b; border-radius: 11px; background: #141c28; }
.profile-mode { position: relative; z-index: 0; display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: start; gap: 5px; padding: 0; border: 0; background: transparent; }
.profile-mode:hover, .profile-mode:focus-within { z-index: 2; }
.profile-mode .mode-icon { width: 31px; height: 31px; border: 2px solid #303843; border-radius: 50%; background: #111820; }
.profile-mode .mode-icon-image { top: 50%; width: 30px; height: 30px; transform: translate(-50%, -50%); object-fit: contain; }
.profile-mode--lt5 .mode-icon { border-color: #7e46b3; }
.profile-mode--ht5 .mode-icon { border-color: #a842b5; }
.profile-mode--lt4 .mode-icon { border-color: #a9424a; }
.profile-mode--ht4 .mode-icon { border-color: #d14c56; }
.profile-mode--lt3 .mode-icon { border-color: #9c6842; }
.profile-mode--ht3 .mode-icon { border-color: #c89a56; }
.profile-mode--lt2 .mode-icon { border-color: #858b92; }
.profile-mode--ht2 .mode-icon { border-color: #d7dbe0; }
.profile-mode--lt1 .mode-icon { border-color: #b48b2d; }
.profile-mode--ht1 .mode-icon { border-color: #f5d274; }
.profile-tier-wrap { position: relative; display: grid; min-height: 17px; justify-items: center; }
.profile-tier { min-width: 32px; padding: 3px 5px; border: 1px solid color-mix(in srgb, var(--tier-color, #777777), transparent 68%); border-radius: 7px; background: color-mix(in srgb, var(--tier-color, #777777), transparent 89%); color: var(--tier-color, #c7c7c7); cursor: help; font-size: 9px; font-weight: 750; line-height: 1.15; text-align: center; }
.profile-tier:focus-visible { outline: 2px solid #f1f1f1; outline-offset: 2px; }
.profile-tier-tooltip { position: absolute; bottom: calc(100% + 10px); left: 50%; z-index: 5; display: grid; min-width: 112px; gap: 3px; padding: 9px 11px; transform: translate(-50%, 4px); border: 1px solid #2e3743; border-radius: 8px; background: linear-gradient(180deg, #151b24, #0b0f15); box-shadow: 0 12px 30px rgba(0, 0, 0, .48); color: #f4f6f8; opacity: 0; pointer-events: none; text-align: center; visibility: hidden; white-space: nowrap; transition: opacity .12s ease, transform .12s ease, visibility .12s ease; }
.profile-tier-tooltip::after { position: absolute; top: 100%; left: 50%; width: 8px; height: 8px; transform: translate(-50%, -4px) rotate(45deg); border-right: 1px solid #2e3743; border-bottom: 1px solid #2e3743; background: #0b0f15; content: ""; }
.profile-tier-tooltip-title { font-size: 13px; font-weight: 750; letter-spacing: -.15px; }
.profile-tier-tooltip-points { color: #a4afbd; font-size: 10px; font-weight: 500; }
.profile-mode:hover .profile-tier-tooltip, .profile-mode:focus-within .profile-tier-tooltip { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.profile-mode--lt5 .profile-tier { background: #2b1740; color: #c084fc; }
.profile-mode--ht5 .profile-tier { background: #3b1644; color: #e879f9; }
.profile-mode--lt4 .profile-tier { background: #4b1f26; color: #f87171; }
.profile-mode--ht4 .profile-tier { background: #652127; color: #ef4444; }
.profile-mode--lt5 .profile-tier { border-color: #7e46b3; }
.profile-mode--ht5 .profile-tier { border-color: #a842b5; }
.profile-mode--lt3 .profile-tier { background: #694629; color: #d99a63; }
.profile-mode--ht3 .profile-tier { background: #76552f; color: #f0bf6b; }
.profile-mode--lt2 .profile-tier { background: #4a4e53; color: #c0c4ca; }
.profile-mode--ht2 .profile-tier { background: #c8cbd0; color: #292b2e; }
.profile-mode--lt1 .profile-tier { background: #70520f; color: #e8bc50; }
.profile-mode--ht1 .profile-tier { background: #d6a526; color: #211904; }
.profile-tier.unranked { min-width: 27px; border-color: #343434; background: #202020; color: #777777; cursor: default; font-weight: 500; }
.profile-mode--retired .mode-icon { border-color: #000; outline: 2px solid #000; outline-offset: 1px; }
.profile-mode--retired .profile-tier { min-width: 32px; padding: 2px 4px; border: 1px solid #000; outline: 2px solid #000; outline-offset: 1px; background: #000; color: #f5d274; }
.profile-mode--retired .profile-tier:focus-visible { outline-color: #000; }

.loading-state, .message-state { display: flex; min-height: 150px; align-items: center; justify-content: center; gap: 10px; padding: 24px; color: var(--muted); font-size: 11px; text-align: center; }
.message-state { color: #a5a5a5; }
.loader { width: 15px; height: 15px; border: 2px solid #3b3b3b; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes podium-shine {
  0% { transform: translateX(-160%) skewX(-18deg); }
  18%, 100% { transform: translateX(350%) skewX(-18deg); }
}

@media (prefers-reduced-motion: reduce) {
  .player-row--podium-1 .overall-player-visual::after, .player-row--podium-2 .overall-player-visual::after, .player-row--podium-3 .overall-player-visual::after { animation: none; }
}

.footer { display: flex; min-height: 68px; align-items: center; justify-content: space-between; gap: 16px; color: #858585; }
.footer-brand { display: flex; align-items: center; gap: 8px; color: #d0d0d0; font-size: 11px; font-weight: 700; }
.footer-brand .brand-mark { width: 22px; height: 22px; border-radius: 6px; }
.footer p { margin: 0; font-size: 9px; text-align: center; }
.footer-label { color: #747474; font-size: 8px; }

@media (min-width: 900px) {
  .player-dialog { zoom: 1.15; }
}

@media (min-width: 1600px) {
  .topbar { height: clamp(68px, 3.8vw, 94px); }
  .topbar-inner { width: min(94vw, 2400px); }
  .page { width: min(92vw, 2200px); }
  .brand-mark { width: clamp(34px, 2vw, 48px); height: clamp(34px, 2vw, 48px); }
  .brand-name { font-size: clamp(19px, 1vw, 26px); }
  .main-nav { margin-left: clamp(46px, 3vw, 78px); }
  .nav-link { padding: 0 clamp(15px, 1vw, 25px); font-size: clamp(14px, .75vw, 20px); }
  .connection-state { gap: clamp(8px, .6vw, 14px); font-size: clamp(12px, .7vw, 18px); }
  .connection-dot { width: clamp(8px, .55vw, 14px); height: clamp(8px, .55vw, 14px); }
  .page-heading { gap: clamp(20px, 2vw, 48px); padding-top: clamp(38px, 3vw, 72px); padding-bottom: clamp(22px, 1.8vw, 42px); }
  .eyebrow, .section-label, .field-label, .footer-label { font-size: clamp(10px, .58vw, 16px); }
  h1 { font-size: clamp(46px, 2.6vw, 76px); }
  .page-description { font-size: clamp(14px, .9vw, 24px); }
  .board-note { max-width: clamp(340px, 24vw, 560px); font-size: clamp(12px, .8vw, 22px); }
  .mode-panel { padding: clamp(16px, 1.2vw, 30px); border-radius: clamp(10px, .7vw, 18px); }
  .mode-tabs { gap: clamp(8px, .55vw, 14px); padding-top: clamp(12px, .8vw, 20px); }
  .mode-tab { height: clamp(66px, 4vw, 110px); gap: clamp(4px, .35vw, 9px); font-size: clamp(11px, .82vw, 22px); }
  .mode-icon { width: clamp(28px, 1.9vw, 44px); height: clamp(26px, 1.8vw, 42px); }
  .mode-icon-image { width: clamp(32px, 2.2vw, 50px); height: clamp(32px, 2.2vw, 50px); }
  .mode-icon-trophy { font-size: clamp(19px, 1.3vw, 32px); }
  .toolbar { padding: clamp(18px, 1.2vw, 30px) 0; }
  .field-label { font-size: clamp(9px, .55vw, 15px); }
  .search-box { height: clamp(44px, 2.8vw, 72px); gap: clamp(9px, .7vw, 17px); padding: 0 clamp(10px, .8vw, 20px); }
  .search-box svg { width: clamp(17px, 1.1vw, 28px); height: clamp(17px, 1.1vw, 28px); }
  .search-box input { font-size: clamp(13px, .85vw, 23px); }
  kbd { width: clamp(20px, 1.3vw, 32px); height: clamp(21px, 1.4vw, 34px); font-size: clamp(11px, .7vw, 18px); }
  .leaderboard-card { border-radius: clamp(10px, .8vw, 20px); }
  .leaderboard-topline { min-height: clamp(72px, 5vw, 120px); padding: clamp(14px, 1vw, 26px) clamp(20px, 1.4vw, 36px); }
  .leaderboard-topline h2 { font-size: clamp(18px, 1.1vw, 30px); }
  .live-badge { gap: clamp(7px, .5vw, 12px); padding: clamp(7px, .5vw, 13px) clamp(10px, .7vw, 18px); font-size: clamp(10px, .62vw, 17px); }
  .table-header, .player-row { grid-template-columns: clamp(56px, 4.5vw, 96px) minmax(0, 1fr) clamp(132px, 10vw, 220px) clamp(170px, 12vw, 280px) 32px; }
  .table-header { min-height: clamp(34px, 2.4vw, 62px); padding: 0 clamp(20px, 1.4vw, 36px); font-size: clamp(9px, .62vw, 17px); }
  .table-header--overall, .player-row--overall { grid-template-columns: clamp(172px, 12vw, 300px) minmax(0, 1fr) minmax(clamp(400px, 30vw, 700px), .9fr) 32px; }
  .player-row { min-height: clamp(68px, 4.2vw, 110px); padding: 0 clamp(20px, 1.4vw, 36px); }
  .player-row--overall { min-height: clamp(82px, 5vw, 126px); }
  .overall-player-visual { height: clamp(56px, 4vw, 100px); gap: clamp(9px, .7vw, 18px); padding-right: clamp(13px, 1vw, 26px); padding-left: clamp(10px, .8vw, 21px); }
  .overall-player-visual .player-rank { width: clamp(32px, 2.3vw, 58px); flex-basis: clamp(32px, 2.3vw, 58px); font-size: clamp(20px, 1.4vw, 36px); }
  .overall-player-visual .player-avatar { width: clamp(40px, 2.8vw, 68px); height: clamp(50px, 3.4vw, 82px); }
  .player-row--podium-1 .overall-player-visual .player-avatar, .player-row--podium-2 .overall-player-visual .player-avatar, .player-row--podium-3 .overall-player-visual .player-avatar { width: clamp(42px, 3vw, 72px); height: clamp(50px, 3.4vw, 82px); }
  .player-rank { font-size: clamp(16px, 1.1vw, 28px); }
  .player-info { gap: clamp(11px, .8vw, 20px); }
  .player-avatar { width: clamp(38px, 2.5vw, 62px); height: clamp(46px, 3vw, 74px); font-size: clamp(14px, .9vw, 23px); }
  .player-name { font-size: clamp(14px, .9vw, 24px); }
  .player-subtitle { font-size: clamp(11px, .68vw, 18px); }
  .tier-badge { min-width: clamp(48px, 3.2vw, 78px); padding: clamp(6px, .45vw, 12px) clamp(8px, .55vw, 14px); font-size: clamp(11px, .72vw, 19px); }
  .tier-badge.tier-points-badge { min-width: clamp(62px, 4vw, 100px); }
  .overall-tier-strip { gap: clamp(4px, .3vw, 8px); }
  .overall-tier-item .mode-icon, .overall-tier-item .mode-icon-image { width: clamp(25px, 1.7vw, 42px); height: clamp(25px, 1.7vw, 42px); }
  .overall-tier-label { min-width: clamp(30px, 2vw, 48px); padding: clamp(3px, .2vw, 5px); font-size: clamp(9px, .58vw, 16px); }
  .last-result { font-size: clamp(12px, .72vw, 19px); }
  .player-list--tier-columns { gap: clamp(10px, .7vw, 18px); padding: clamp(14px, 1vw, 25px); }
  .tier-column-heading { min-height: clamp(52px, 3.2vw, 82px); font-size: clamp(17px, .95vw, 26px); }
  .tier-column-player { min-height: clamp(44px, 2.9vw, 74px); gap: clamp(8px, .55vw, 14px); padding: clamp(4px, .3vw, 8px) clamp(9px, .6vw, 16px); }
  .tier-column-player .player-avatar { width: clamp(32px, 2vw, 50px); height: clamp(36px, 2.3vw, 58px); }
  .tier-column-player-name { font-size: clamp(14px, .8vw, 22px); }
  .footer { min-height: clamp(68px, 4.5vw, 110px); }
  .footer-brand { font-size: clamp(11px, .7vw, 18px); }
  .footer p { font-size: clamp(9px, .58vw, 16px); }
}

@media (max-width: 680px) {
  .topbar-inner, .page { width: calc(100% - 28px); }
  .home-page { width: calc(100% - 28px); margin-top: 20px; }
  .main-nav { margin-left: 18px; }
  .page-heading { align-items: start; flex-direction: column; padding-top: 29px; }
  .discord-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .discord-card { min-height: 76px; gap: 9px; padding: 10px; }
  .discord-card-icon { width: 38px; height: 38px; flex-basis: 38px; }
  .discord-card-icon img { width: 28px; height: 28px; }
  .discord-card-copy strong { font-size: 13px; }
  .discord-card-copy span { font-size: 10px; }
  .home-hero { grid-template-columns: minmax(0, 1fr); }
  .home-hero-copy { padding: 29px 23px; }
  .home-wordmark { font-size: clamp(40px, 11vw, 58px); }
  .home-top-players { padding: 20px 18px; border-top: 1px solid rgba(255, 255, 255, .055); border-left: 0; }
  .home-status-strip { grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; padding: 12px 14px; }
  .home-stat { padding-left: 8px; }
  .home-mode-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .home-mode-card { min-height: 98px; }
  .home-info-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 29px; }
  .home-info-card { padding: 20px; }
  h1 { font-size: clamp(30px, 8vw, 40px); }
  .page-description { font-size: 12px; }
  .board-note { max-width: none; text-align: left; }
  .mode-panel { padding-right: 10px; padding-left: 10px; }
  .mode-tabs { display: flex; overflow-x: auto; margin-right: -10px; padding-right: 10px; scrollbar-color: #4a4a4a transparent; scrollbar-width: thin; }
  .mode-tab { min-width: 74px; }
  .toolbar { grid-template-columns: minmax(0, 1fr); }
  .table-header, .player-row { grid-template-columns: 37px minmax(0, 1fr) 72px 92px 16px; }
  .table-header, .player-row { padding-right: 10px; padding-left: 10px; }
  .table-header--overall, .player-row--overall { grid-template-columns: 120px minmax(120px, .7fr) minmax(0, 1.3fr) 16px; }
  .overall-player-visual { gap: 7px; padding-right: 10px; padding-left: 9px; }
  .overall-tier-strip { grid-template-columns: repeat(9, minmax(25px, 1fr)); gap: 3px; }
  .overall-tier-item .mode-icon { width: 23px; height: 23px; }
  .overall-tier-item .mode-icon-image { width: 23px; height: 23px; }
  .overall-tier-label { min-width: 25px; }
  .player-info { gap: 8px; }
  .player-avatar { width: 28px; height: 36px; }
  .player-name { font-size: 12px; }
  .tier-column-player-name { font-size: 12px; }
  .last-result { font-size: 9px; }
  .player-list--tier-columns { grid-template-columns: repeat(5, minmax(170px, 1fr)); overflow-x: auto; scrollbar-color: #46515f transparent; scrollbar-width: thin; }
  .footer { flex-wrap: wrap; justify-content: space-between; padding: 13px 0; }
  .footer p { order: 3; width: 100%; text-align: left; }
}

@media (max-width: 430px) {
  .topbar-inner, .page { width: calc(100% - 22px); }
  .home-page { width: calc(100% - 22px); }
  .main-nav { margin-left: 7px; }
  .nav-link { padding: 0 7px; font-size: 12px; }
  .connection-state { gap: 4px; font-size: 8px; }
  .refresh-countdown { padding-left: 5px; }
  .home-hero-copy { padding: 25px 17px; }
  .home-hero-copy h1 { font-size: 28px; }
  .home-hero-copy p { font-size: 12px; }
  .home-top-players { padding: 17px 12px; }
  .home-player-summary { gap: 6px; }
  .home-player-visual { width: 82px; flex-basis: 82px; }
  .home-player-rank { width: 22px; flex-basis: 22px; font-size: 22px; }
  .home-player-avatar { width: 30px; height: 32px; flex-basis: 30px; }
  .home-player-name { font-size: 12px; }
  .home-player-points { font-size: 9px; }
  .home-region { padding: 5px; font-size: 9px; }
  .home-player-tiers { gap: 1px; }
  .home-mini-tier-label { min-width: 20px; padding: 2px 1px; font-size: 7px; }
  .home-status-strip { grid-template-columns: 1.3fr 1fr 1fr; gap: 5px; padding: 10px 8px; }
  .home-status-icon { width: 26px; height: 26px; flex-basis: 26px; }
  .home-stat-label { font-size: 7px; letter-spacing: .3px; }
  .home-status-brand strong, .home-stat strong { font-size: 10px; }
  .home-gamemodes { margin-top: 27px; }
  .home-mode-card { min-height: 88px; }
  .home-mode-icon-frame { width: 42px; height: 42px; }
  .home-mode-icon { width: 34px; height: 34px; }
  .home-mode-icon .mode-icon-image { width: 35px; height: 35px; }
  .home-info-card { padding: 16px 13px; }
  .home-info-card h2 { font-size: 19px; }
  .home-info-card > p { font-size: 12px; }
  .home-tier-row { flex-wrap: wrap; padding: 8px; }
  .home-tier-name { min-width: 100%; }
  .home-tier-points { width: 100%; justify-content: flex-start; }
  .home-tier-points > span { padding: 5px 7px; font-size: 9px; }
  .home-title-row { gap: 8px; }
  .home-title-heading strong { font-size: 11px; }
  .home-title-heading > span { font-size: 9px; }
  .toolbar { grid-template-columns: 1fr; }
  .table-header, .player-row { grid-template-columns: 29px minmax(0, 1fr) 60px 16px; }
  .table-header--overall, .player-row--overall { grid-template-columns: 52px 50px minmax(170px, 1fr) 8px; }
  .table-header--overall, .player-row--overall { padding-right: 7px; padding-left: 7px; }
  .player-row--overall { min-height: 62px; }
  .overall-player-visual { height: 42px; gap: 3px; padding: 3px 4px; }
  .overall-player-visual .player-rank { width: 18px; flex-basis: 18px; font-size: 14px; }
  .overall-player-visual .player-avatar, .player-row--podium-1 .overall-player-visual .player-avatar, .player-row--podium-2 .overall-player-visual .player-avatar, .player-row--podium-3 .overall-player-visual .player-avatar { width: 24px; height: 32px; }
  .overall-player-copy { padding-left: 0; }
  .player-row--overall .player-subtitle { max-width: 50px; font-size: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .overall-tier-strip { grid-template-columns: repeat(9, minmax(18px, 1fr)); gap: 1px; overflow-x: auto; scrollbar-width: none; }
  .overall-tier-item { gap: 2px; }
  .overall-tier-item .mode-icon { width: 18px; height: 18px; }
  .overall-tier-item .mode-icon-image { width: 18px; height: 18px; }
  .overall-tier-label { min-width: 18px; padding: 1px; font-size: 7px; }
  .date-heading, .last-result { display: none; }
  .player-row { min-height: 55px; }
  .player-avatar { width: 26px; height: 34px; }
  .player-list--tier-columns { grid-template-columns: repeat(5, minmax(158px, 1fr)); padding: 8px; gap: 6px; }
  .tier-column-heading { min-height: 42px; font-size: 13px; }
  .tier-column-player { gap: 6px; padding-right: 6px; padding-left: 6px; }
  .tier-column-player .player-avatar { width: 25px; height: 30px; }
  .tier-column-player-name { font-size: 11px; }
  .player-dialog { padding: 20px 16px; }
  .profile-content { gap: 16px; padding-top: 37px; }
  .profile-intro { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0; }
  .profile-skin-frame { width: 96px; height: 96px; }
  .profile-identity h2 { font-size: 25px; }
  .profile-region { font-size: 15px; }
  .profile-position-card { grid-template-columns: 76px minmax(0, 1fr); }
  .profile-position-copy { gap: 6px; padding: 7px; }
  .profile-position-name { font-size: 13px; }
  .profile-position-points { font-size: 11px; }
  .profile-mode-grid { gap: 2px; padding-right: 3px; padding-left: 3px; }
  .profile-mode .mode-icon { width: 26px; height: 26px; }
  .profile-mode .mode-icon-image { width: 26px; height: 26px; }
  .profile-tier { min-width: 28px; padding-right: 3px; padding-left: 3px; font-size: 8px; }
}
