.community-site {
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh;
  background: radial-gradient(ellipse 66% 24rem at 68% 0%, #ffffff10, transparent 77%), #101113;
  --panel: #161719;
  --panel-edge: #ffffff1d;
  --muted: #b5b8be;
  --glass-tint: rgb(19 21 24 / .67);
  --glass-radius: 17px;
  --glass-blur: 19px;
}
.community-site .top,
.community-site footer { border-color: var(--panel-edge); }
.community-site .navrow { height: 68px; }
.community-site footer { margin-top: auto; border-top: 1px solid var(--panel-edge); }
.community { padding-block: clamp(25px, 4vw, 56px) clamp(36px, 5vw, 72px); }
.community h1, .community h2 { margin: 0; animation: none; text-shadow: none; }
.community h1 { font: 650 clamp(42px, 6vw, 86px)/.99 Instrument, sans-serif; letter-spacing: -.055em; }
.community h2 { font-size: clamp(20px, 2vw, 27px); font-weight: 620; line-height: 1.15; letter-spacing: -.04em; }
.community :is(strong,b) { font-weight: 650; }
.community :is(.avatar, .product-badge, .rank-badge) { flex: none; }
.board-toolbar, .profile-toolbar, .board-controls, .board-pages { display: flex; align-items: center; gap: 12px; }
.board-toolbar, .profile-toolbar { justify-content: space-between; }
.board-toolbar { margin-bottom: clamp(16px, 2.4vw, 30px); }
.board-controls { gap: 8px; }
.frosted {
  border: 1px solid #ffffff25;
  border-top-color: #ffffff45;
  border-radius: var(--glass-radius);
  background: #202226;
  box-shadow: inset 0 1px 0 #ffffff12, 0 8px 24px #0004;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .frosted {
    background: linear-gradient(150deg, #ffffff14 0%, transparent 46%, #ffffff09 100%), var(--glass-tint);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(120%);
    backdrop-filter: blur(var(--glass-blur)) saturate(120%);
  }
}
@media (prefers-reduced-transparency: reduce) {
  .frosted {
    background: #202226;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
.mode-picker {
  --switch-inset: 4px;
  --switch-inner: calc(100% - 2 * var(--switch-inset));
  --glass-radius: 100px;
  --glass-tint: rgb(19 21 24 / .61);
  display: grid; grid-template-columns: repeat(3, 1fr); position: relative; isolation: isolate;
  padding: var(--switch-inset);
}
.mode-picker::before {
  content: ""; position: absolute; z-index: -1;
  inset: var(--switch-inset) auto var(--switch-inset) var(--switch-inset);
  width: calc(var(--switch-inner) / 3);
  border-radius: 100px;
  background: linear-gradient(180deg, #fafaf7, #d9dad6);
  box-shadow: inset 0 1px 0 #fff, 0 2px 10px #0006;
  transition: transform 260ms var(--ease);
}
.mode-picker[data-active=competitive]::before { transform: translateX(100%); }
.mode-picker[data-active=wingman]::before { transform: translateX(200%); }
.mode-picker button {
  min-width: 0; min-height: 36px; padding: 5px 12px; border-radius: 100px;
  color: #c6c8cd; font-size: 13px; font-weight: 550;
  transition: color var(--feedback), background-color var(--feedback);
}
.mode-picker button[aria-pressed=false]:is(:hover,:focus-visible) { color: white; background-color: #ffffff10; }
.mode-picker button[aria-pressed=true] { color: #151619; }
.round-control {
  --glass-radius: 50%;
  flex: none; display: inline-grid; place-items: center; width: 46px; height: 46px;
  transition: border-color var(--feedback), box-shadow var(--feedback);
}
.round-control svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.round-control:not(:disabled):is(:hover,:focus-visible) { border-color: #ffffff65; box-shadow: inset 0 1px 0 #ffffff22, 0 8px 24px #0006; }
.round-control:not(:disabled):active { border-color: #ffffff80; }
#refresh-board:disabled { opacity: .8; }
.panel, .winner, .stat-card, .rating-card {
  border: 1px solid var(--panel-edge); border-radius: 16px; background-color: var(--panel);
}
.winner {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; align-items: end;
  min-height: clamp(240px, 24vw, 350px);
  margin-bottom: 16px;
  padding: clamp(12px, 2.2vw, 27px);
  border-color: #ffffff31; box-shadow: 0 12px 32px #0003;
}
.profile-banner {
  position: relative; overflow: hidden; background-color: #23252a;
  background-image: repeating-linear-gradient(135deg, transparent 0 10px, #ffffff10 10px 11px);
}
.profile-banner[data-preset=grid] { background-image: linear-gradient(#ffffff13 1px,transparent 1px),linear-gradient(90deg,#ffffff13 1px,transparent 1px); background-size: 18px 18px; }
.profile-banner[data-preset=dots] { background-image: radial-gradient(#ffffff47 1px,transparent 1px); background-size: 12px 12px; }
.profile-banner[data-preset=chrome] { background-image: linear-gradient(115deg,#141518,#54575e,#17191e 76%); }
.profile-banner[data-preset=mono] { background-image: linear-gradient(125deg,#36383c,#17181b); }
.profile-banner[data-preset=plain] { background: #202226; }
.profile-banner img, .maps-art { height: 100%; width: 100%; display: block; object-fit: cover; }
.winner .profile-banner, .winner::after { position: absolute; inset: 0; z-index: -1; }
.winner::after { content: ""; background: linear-gradient(0deg,#0d0e1190,transparent 75%); }
.winner-content {
  --glass-tint: rgb(16 18 21 / .65);
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "place foot" "person foot";
  align-items: center;
  padding: clamp(12px, 1.55vw, 22px); gap: 8px clamp(14px, 2.2vw, 28px);
}
.place-tag, .product-badge, .visit, .rank-badge, .winner-rating, .back-link, .player-handle { display: inline-flex; align-items: center; }
.place-tag { grid-area: place; width: fit-content; min-width: 0; color: #dddfe2; font-size: 12px; font-weight: 550; gap: 8px; }
.place-tag b { color: #fff; font-variant-numeric: tabular-nums; }
.person, .winner-foot, .identity-title, .table-person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.winner .person { grid-area: person; }
.winner-id, #winner-product, #player-product { display: flex; align-items: center; }
.winner-id { min-width: 0; gap: 10px; }
.winner-id > strong { display: block; min-width: 0; font-size: clamp(24px, 2.65vw, 38px); line-height: 1.12; letter-spacing: -.04em; overflow-wrap: anywhere; }
#winner-product, #player-product { flex: none; justify-content: center; }
.product-badge { display: grid; place-items: center; width: fit-content; }
.product-badge img { display: block; width: 23px; height: 23px; object-fit: contain; }
.product-badge[data-product="predator"] img { filter: contrast(.58) brightness(1.5); }
.winner-foot { grid-area: foot; justify-content: space-between; }
.visit { background: #eaeae7; border-radius: 8px; color: #141516; padding: 9px 14px; font-size: 13px; font-weight: 620; transition: background-color var(--feedback), box-shadow var(--feedback); }
.winner:is(:hover,:focus-visible) .visit { background-color: white; box-shadow: 0 3px 14px #0008; }
.winner-rating { gap: 10px; font-variant-numeric: tabular-nums; font-size: 13px; }
.winner-rating b { border-left: 1px solid #ffffff48; padding-left: 10px; }
.rank-badge { gap: 4px; font-size: 12px; font-weight: 500; }
.ranks-art { object-fit: contain; width: 20px; height: 20px; }
.avatar {
  --avatar-border: #ffffff3a;
  display: block; position: relative; overflow: hidden; border-radius: 50%;
  width: 64px; height: 64px; border: 1px solid transparent;
  background: #181818
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='48.5' fill='%23181818' stroke='%23a7aab1' stroke-width='3'/%3E%3Ccircle cx='50' cy='39.4' r='17.8' fill='%23a7aab1'/%3E%3Cpath fill='%23a7aab1' d='M20.4 81.3C25.5 67.9 36.8 60 50 60s24.5 7.9 29.6 21.3C70.8 89.2 61 93.1 50 93.1S29.2 89.2 20.4 81.3Z'/%3E%3C/svg%3E")
    center / contain no-repeat border-box;
}
.avatar.has-image { border-color: var(--avatar-border); background-image: none; }
.avatar img { width: 100%; height: 100%; display: block; object-fit: cover; opacity: 0; }
.avatar.has-image img { opacity: 1; }
.board-message {
  display: flex; align-items: center; gap: 14px; min-height: 84px; padding: 20px 22px; margin: 0;
  color: #dbdce0; font-size: 14px; line-height: 1.45;
}
.board-message::before {
  content: ""; flex: none; width: 34px; height: 34px; border-radius: 8px; border: 1px solid #484b52;
  background: linear-gradient(#b6b9bf 0 0) 8px 16px / 4px 8px no-repeat,
    linear-gradient(#dcdee0 0 0) 15px 9px / 4px 15px no-repeat,
    linear-gradient(#92969c 0 0) 22px 13px / 4px 11px no-repeat, #27292e;
}
.board-message:not([hidden]) + .standings:not([hidden]) { margin-top: 12px; }
.jump-mode { margin-inline-start: auto; padding: 8px 12px; background: #303238; border: 1px solid #494d53; border-radius: 7px; color: #f0f1ee; font-size: 13px; }
.jump-mode { transition: background-color var(--feedback), border-color var(--feedback); }
.jump-mode:is(:hover,:focus-visible) { background-color: #393d42; border-color: #747780; }
.standings { padding: 20px clamp(14px,2vw,26px) 9px; }
.standings h2 { margin-bottom: 15px; }
.score-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.score-table :is(th,td) { text-align: right; padding: 12px 8px; }
.score-table thead { background: #ffffff07; }
.score-table thead th { padding-block: 8px; color: var(--muted); font-size: 11px; font-weight: 550; }
.score-table :is(th,td):first-child { width: 42px; text-align: left; color: var(--muted); }
.score-table th:nth-child(2), .score-table th[scope=row] { text-align: left; }
.score-table tbody tr + tr { border-top: 1px solid var(--panel-edge); }
.score-table tbody tr { transition: background-color var(--feedback); }
.score-table tbody tr:is(:focus-within,:hover) { background-color: #ffffff09; }
.table-person .avatar { width: 39px; height: 39px; }
.table-id { min-width: 0; }
.table-id .rank-badge { color: var(--muted); }
.table-id .rank-badge img { width: 16px; height: 16px; }
.player-handle { display: flex; align-items: center; gap: 6px; overflow-wrap: anywhere; line-height: 1.25; }
.player-handle strong { min-width: 0; }
.player-handle .product-badge img { width: 18px; height: 18px; }
.board-pages { justify-content: flex-end; border-top: 1px solid var(--panel-edge); padding-block: 10px; color: var(--muted); font-size: 13px; }
.board-pages button:disabled { opacity: .4; cursor: default; }
.back-link { gap: 8px; font-size: 13px; color: #cbced3; margin-bottom: 15px; min-height: 28px; border-radius: 6px; box-shadow: 0 0 0 4px transparent; transition: color var(--feedback), background-color var(--feedback), box-shadow var(--feedback); }
.back-link:is(:hover,:focus-visible) { color: white; background-color: #ffffff10; box-shadow: 0 0 0 4px #ffffff10; }
.profile-head { --identity-padding: clamp(16px,2.5vw,32px); overflow: hidden; }
.profile-head .profile-banner { height: clamp(156px, 22vw, 292px); }
.profile-head .profile-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,#15161a80,transparent 42%); }
.identity {
  --glass-tint: rgb(15 17 19 / .7);
  display: grid; position: relative;
  grid-template-columns: auto minmax(0,1fr) auto;
  gap: 0 16px; align-items: center;
  margin: -66px var(--identity-padding) var(--identity-padding);
  padding: clamp(12px, 1.5vw, 21px);
}
.identity .avatar { --avatar-border: #ffffff40; width: clamp(66px, 7vw, 91px); height: clamp(66px, 7vw, 91px); border-width: 2px; }
.identity-details { min-width: 0; }
.identity-title { gap: 10px; }
.identity-title h1 { font: 650 clamp(26px,3.25vw,48px)/1.08 Instrument,sans-serif; letter-spacing: -.045em; min-width: 0; overflow-wrap: anywhere; }
#player-product img { width: clamp(23px, 2.3vw, 30px); height: clamp(23px, 2.3vw, 30px); }
#player-bio { margin-top: 6px; color: #d3d5d9; line-height: 1.5; overflow-wrap: anywhere; font-size: 14px; }
#player-meta, #player-badges { display: flex; gap: 5px 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); line-height: 1.5; }
#player-meta { justify-content: end; max-width: 33ch; }
#player-meta span { overflow-wrap: anywhere; }
#player-badges { padding: 0 var(--identity-padding) 16px; }
#player-badges span { background: #2d3034; padding: 3px 8px; border-radius: 5px; }
.profile-toolbar { margin: clamp(23px,3vw,35px) 0 13px; }
.profile-stats { display: grid; grid-template-columns: minmax(230px,1.9fr) repeat(4,minmax(0,1fr)); gap: 8px; }
.stat-card,.rating-card { padding: clamp(13px,1.65vw,22px); border-radius: 12px; }
.stat-card { display: flex; flex-direction: column; gap: 6px; }
.stat-card > span,.rating-body > span { color: #d4d5d9; font-size: 13px; }
.stat-card strong,.rating-line strong { font: 660 clamp(27px,3.05vw,42px)/1 Instrument,sans-serif; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.stat-card small,.rating-body small,.match-title small,.empty-records { color: var(--muted); font-size: 12px; line-height: 1.35; }
.rating-card { display: flex; align-items: center; gap: 12px; background: linear-gradient(125deg,#2a2d31, #1a1c1e 70%); border-color: #ffffff33; }
.crest { display: grid; place-items: center; width: 54px; flex: none; }
.crest img { width: 100%; height: auto; filter: drop-shadow(0 3px 6px #0007); }
.rating-body { min-width: 0; flex: 1; }
.rating-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; margin-top: 4px; }
.rating-line b { font-size: 12px; }
.rating-body progress { appearance: none; display: block; width: 100%; height: 4px; overflow: hidden; margin: 8px 0 4px; border: 0; border-radius: 2px; background: #44474c; color: #dadce1; }
.rating-body progress::-webkit-progress-bar { background: #44474c; }
.rating-body progress::-webkit-progress-value { background: #dadce1; }
.rating-body progress::-moz-progress-bar { background: #dadce1; }
.profile-columns { display: grid; align-items: start; grid-template-columns: 1.16fr 1fr; grid-template-areas: "matches maps" "matches weapons"; grid-template-rows: auto 1fr; gap: 12px; margin-top: 12px; }
.match-panel { grid-area: matches; }.maps-panel { grid-area: maps; }.weapons-panel { grid-area: weapons; }
.records-panel { min-width: 0; padding: clamp(14px,1.8vw,23px); }
.records-panel h2 { margin-bottom: 16px; font-size: clamp(19px,1.7vw,24px); }
.match-row { display: grid; align-items: center; grid-template-columns: auto minmax(0,1fr) auto 4ch; gap: 12px; padding: 8px 0; }
.match-row + .match-row, .weapon-row + .weapon-row { border-top: 1px solid #ffffff12; }
.match-row:first-child, .weapon-row:first-child { padding-top: 0; }
.match-row:last-child, .weapon-row:last-child { padding-bottom: 0; }
.match-map, .map-card { position: relative; overflow: hidden; background: repeating-linear-gradient(125deg,#363940 0 2px,#27292e 2px 14px); }
.match-map { width: 68px; aspect-ratio: 16 / 10; border-radius: 5px; }
.match-title strong,.match-title small { display: block; overflow-wrap: anywhere; }
.match-title strong,.weapon-row strong { font-size: 14px; }
.match-result { padding: 3px 7px; border: 1px solid #6d717b60; border-radius: 5px; font-size: 11px; background: #31343a; }
.match-result[data-result=win] { color: #c6e7d5; background: #27372f; border-color: #4d705a70; }
.match-result[data-result=loss] { color: #efc6c4; background: #3d2a2a; border-color: #84524d70; }
.match-row > b { text-align: right; font-variant-numeric: tabular-nums; font-size: 14px; }
#map-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.map-card { display: flex; align-items: end; isolation: isolate; width: 100%; min-width: 0; min-height: 96px; aspect-ratio: 2.25; border-radius: 7px; }
.map-card .maps-art,.map-card::after { position: absolute; z-index: -1; inset: 0; }
.map-card::after { content: ""; background: linear-gradient(0deg,#090b0eef 0%,#0b0c0f7a 52%,#0b0c0f05 100%); }
.map-card > div { padding: 9px 12px; }
.map-card strong,.map-card small { display: block; }
.map-card strong { font-size: 17px; letter-spacing: -.02em; }
.map-card small { font-size: 11px; color: #e1e3e6; margin-top: 2px; }
.weapon-row { display: grid; grid-template-columns: minmax(56px, .65fr) minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 8px 0; }
.weapon-artbox { display: grid; place-items: center; height: 39px; padding: 6px 8px; background: #24262b; border-radius: 5px; }
.weapons-art { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.weapon-row > span:last-child { font-size: 12px; color: var(--muted); }
.empty-records { padding-block: 5px; grid-column: 1 / -1; }
@media (max-width: 940px) {
  .profile-stats { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .rating-card { grid-column: 1/-1; }
  .rating-card .rating-body { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 4px 25px; }
  .rating-body > span,.rating-line { grid-column: 1; }.rating-body progress { grid-area: 1 / 2; }.rating-body small { grid-area: 2 / 2; align-self: start; }
  .profile-columns { grid-template-columns: 1fr 1fr; }
  .board-toolbar { flex-wrap: wrap; }
}
@media (max-width: 700px) {
  .board-message { display: grid; grid-template-columns: auto 1fr; gap: 9px 12px; }
  .board-message::before { grid-column: 1; grid-row: 1; }
  .jump-mode { grid-column: 2; justify-self: start; margin: 0; }
  .community h1 { font-size: clamp(41px,10vw,61px); }
  .identity-title h1 { font-size: clamp(23px,6.3vw,39px); }
  .board-toolbar,.profile-toolbar { align-items: stretch; flex-direction: column; gap: 12px; }
  .board-controls { display: grid; grid-template-columns: minmax(0,1fr) 46px; }
  .community .mode-picker button { padding: 4px; min-height: 36px; font-size: 13px; }
  .winner { min-height: 210px; }
  .winner-content { grid-template-columns: minmax(0,1fr); grid-template-areas: "place" "person" "foot"; gap: 10px; }
  .winner-foot { flex-wrap: wrap; gap: 8px; }
  .person .avatar { width: 50px; height: 50px; }
  .standings { padding: 15px 10px 5px; }
  .standings h2 { margin-left: 3px; }
  .score-table :is(td,th) { padding: 9px 4px; font-size: 13px; }
  .score-table thead th { font-size: 11px; }
  .score-table :is(th,td):first-child { width: 23px; }
  .table-person { gap: 6px; }
  .table-person .avatar { width: 30px; height: 30px; }
  .identity { grid-template-columns: auto minmax(0,1fr); gap: 0 11px; margin-top: -55px; }
  .identity .avatar { width: 58px; height: 58px; }
  #player-meta { grid-column: 1/-1; max-width: none; justify-content: start; margin-top: 10px; padding-top: 10px; border-top: 1px solid #ffffff1b; }
  .profile-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .rating-card .rating-body { display: block; }
  .rating-card .crest { width: 56px; }
  .stat-card { min-height: 90px; gap: 4px; }
  .profile-columns { grid-template-columns: 1fr; grid-template-rows: auto; grid-template-areas: "maps" "weapons" "matches"; }
  .match-map { width: 58px; }
  .map-card { min-height: 90px; }
}
@media (max-width: 760px) {
  .community-site { min-height: 0; }
  .community-site .navrow.shell { height: auto; min-height: 61px; }
  .community-site footer { margin-top: 0; }
  .community { padding-bottom: 16px; }
}
@media (max-width: 410px) {
  .community:lang(ru) .mode-picker { grid-template-columns: 1fr 1.68fr 1fr; }
  .community:lang(ru) .mode-picker::before { width: calc(var(--switch-inner) / 3.68); transition: left 260ms var(--ease), width 260ms var(--ease); }
  .community:lang(ru) .mode-picker[data-active=competitive]::before { left: calc(var(--switch-inset) + var(--switch-inner) / 3.68); width: calc(var(--switch-inner) * 1.68 / 3.68); transform: none; }
  .community:lang(ru) .mode-picker[data-active=wingman]::before { left: calc(var(--switch-inset) + var(--switch-inner) * 2.68 / 3.68); transform: none; }
  .community .mode-picker button { font-size: 11px; }
  .table-person .avatar { width: 25px; height: 25px; }
  .table-id .rank-badge { font-size: 10px; }
  .player-handle { gap: 3px; }
  .board-message { padding: 15px; min-height: 73px; }
  .match-row { gap: 8px; }
}
