.player-profile {
  --player-accent: rgb(var(--profile-accent-rgb, 224, 36, 36));
  padding-bottom: 24px;
  font-variant-numeric: tabular-nums;
}

.player-profile.profile-texture--minecraft { --player-texture: url("/assets/profile-textures/minecraft.webp"); }
.player-profile.profile-texture--cats { --player-texture: url("/assets/profile-textures/cats.webp"); }
.player-profile.profile-texture--binary { --player-texture: url("/assets/profile-textures/binary.webp"); }
.player-profile[class*="profile-texture--"] {
  background-image: linear-gradient(rgba(18,18,18,.84), rgba(18,18,18,.95) 500px), var(--player-texture);
  background-size: 100% 100%, 260px auto;
  background-repeat: no-repeat, repeat;
}

.analytics { padding: 12px 16px 0; }
.analytics-filters { display: flex; gap: 10px; margin-bottom: 14px; }
.analytics-filters label { display: flex; flex: 1; flex-direction: column; gap: 6px; min-width: 0; }
.analytics-filters label > span { color: var(--text-3); font-size: 10px; }
.analytics select { width: 100%; min-width: 0; min-height: 40px; padding: 8px; border: 1px solid var(--line-2); border-radius: 3px; background: var(--bg-2); color: var(--text-2); font: inherit; font-size: 11px; text-overflow: ellipsis; }
.analytics-period, .analytics-metrics { display: flex; gap: 4px; }
.analytics-period button, .analytics-metrics button { flex: 1; min-width: 0; min-height: 40px; padding: 8px 4px; border: 0; background: transparent; color: var(--text-3); font: inherit; font-size: 11px; cursor: pointer; border-radius: 3px; }
.analytics-period button.active, .analytics-metrics button.active { background: var(--bg-3); color: var(--text-1); }
.analytics-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 12px; margin: 16px 0 14px; color: var(--text-3); font-size: 10px; }
.analytics-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 14px 0; border-top: 1px solid var(--line-1); border-bottom: 1px solid var(--line-1); }
.analytics-summary > div { min-width: 0; }
.analytics-summary dt { color: var(--text-3); font-size: 10px; }
.analytics-summary dd { margin-top: 6px; color: var(--text-1); font-size: 20px; font-weight: 700; letter-spacing: -.04em; overflow-wrap: anywhere; }
.analytics-summary small { display: block; font-size: 10px; margin-top: 4px; }
.player-profile .analytics-note { margin: 10px 0 16px; color: var(--text-3); font-size: 10px; font-weight: 500; line-height: 1.6; }
.analytics-section { padding-top: 12px; }
.analytics-section h3 { margin: 0 0 12px; font-size: 13px; font-weight: 650; }
.analytics-plot { position: relative; width: 100%; min-width: 0; margin: 18px 0 8px; }
.analytics-plot canvas { max-width: 100%; }
.analytics-legend { display: flex; justify-content: center; gap: 16px; color: var(--text-3); font-size: 9px; }
.analytics-legend span { display: inline-flex; align-items: center; gap: 6px; }
.analytics-legend i { width: 12px; height: 2px; background: #b5b5bd; }
.analytics-legend i.trend { background: #c39c72; }
.analytics-legend i.win { background: #79bb92; }
.analytics-legend i.loss { background: #ee7776; }
.analytics-chart-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-top: 22px; }
.analytics-value { display: flex; flex-direction: column; min-width: 0; gap: 5px; }
.analytics-value > span, .analytics-value > small { color: var(--text-3); font-size: 10px; }
.analytics-value > small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.analytics-value strong { color: var(--text-1); font-size: 34px; font-weight: 650; letter-spacing: -.055em; line-height: 1.15; }
.analytics-value strong small { margin-left: 3px; color: var(--text-3); font-size: 18px; font-weight: 500; }
.analytics-view { display: flex; padding: 3px; border: 1px solid var(--line-1); border-radius: 5px; }
.analytics-view button { display: grid; place-items: center; width: 40px; height: 38px; border: 0; border-radius: 3px; background: transparent; color: var(--text-3); cursor: pointer; }
.analytics-view button[aria-pressed="true"] { background: var(--bg-3); color: var(--text-1); }
.analytics-selected { display: grid; grid-template-columns: 24px minmax(0,1fr) auto auto; gap: 10px; align-items: center; padding: 16px 0; margin-top: 12px; border-top: 1px solid var(--line-1); border-bottom: 1px solid var(--line-1); font-size: 12px; }
.analytics-result { font-weight: 700; }
.analytics-selected b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.analytics-selected small { display: block; margin-top: 4px; color: var(--text-3); font-size: 10px; font-weight: 500; }
.analytics-selected > strong { text-align: right; }
.analytics-values summary { min-height: 44px; padding: 14px 0; color: var(--text-3); font-size: 11px; cursor: pointer; }
.analytics-values > div { max-height: 280px; overflow-y: auto; }
.analytics-values button { display: flex; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; padding: 10px 6px; background: transparent; border: 0; border-bottom: 1px solid var(--line-1); color: var(--text-2); text-align: left; font: inherit; font-size: 10px; cursor: pointer; }
.analytics-values button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.analytics-values button.active { background: var(--bg-3); }
.analytics-minimum { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--text-3); font-size: 11px; cursor: pointer; }
.analytics-minimum input { accent-color: #c39c72; width: 16px; height: 16px; }
.analytics-map-detail { padding: 16px 0; border-top: 1px solid var(--line-2); }
.analytics-map-detail header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.analytics-map-detail header h3 { font-size: 20px; margin: 0; }
.analytics-map-detail header > span { text-align: right; color: var(--text-3); font-size: 11px; }
.analytics-map-detail header small { display: block; margin-top: 4px; color: #c39c72; font-size: 10px; }
.analytics-record { display: flex; gap: 3px; height: 4px; margin-top: 20px; }
.analytics-record i { min-width: 0; }
.player-profile .analytics-record-label { display: flex; gap: 14px; margin: 8px 0 16px; font-size: 10px; color: var(--text-3); }
.analytics-map-kills { display: flex; gap: 20px; padding-top: 12px; font-size: 11px; color: var(--text-3); }
.analytics-map-kills b { color: var(--text-2); padding-left: 5px; font-weight: 600; }
.analytics-link { display: block; min-height: 44px; padding: 14px 0 0; border: 0; background: transparent; color: var(--text-2); font: inherit; font-size: 11px; text-align: left; cursor: pointer; }
.analytics-map-list { border-top: 1px solid var(--line-1); }
.analytics-map-list button { display: flex; justify-content: space-between; align-items: center; gap: 14px; width: 100%; min-height: 58px; padding: 12px 8px; background: transparent; color: var(--text-2); border: 0; border-bottom: 1px solid var(--line-1); font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.analytics-map-list button.active { background: var(--bg-2); }
.analytics-map-list button b { font-weight: 600; }
.analytics-map-list small { display: block; margin-top: 5px; color: var(--text-3); font-size: 10px; }
.analytics-empty { padding: 32px 0 !important; color: var(--text-3); font-size: 12px; text-align: center; }
.analytics-empty button { margin-top: 12px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 3px; background: var(--bg-2); color: var(--text-1); font: inherit; font-size: 12px; cursor: pointer; }
@media (max-width: 359px) {
  .analytics-summary dd { font-size: 17px; }
  .analytics-metrics button { font-size: 10px; }
}

.player-profile h1,
.player-profile h2,
.player-profile p,
.player-profile dl,
.player-profile dd { margin: 0; }
.player-profile h2 { font-size: 13px; font-weight: 700; }
.player-profile button { -webkit-tap-highlight-color: transparent; }
.player-profile button:focus-visible { outline: 2px solid var(--text-2); outline-offset: 3px; }
.player-profile .is-win { color: #79bb92; }
.player-profile .is-loss { color: #ee7776; }

.player-head {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px 16px;
  padding: 16px 16px 4px;
}
.player-summary { display: flex; flex-direction: column; justify-content: center; gap: 7px; min-width: 0; }
.player-identity { min-width: 0; }
.player-tag { display: flex; gap: 6px; min-width: 0; margin-bottom: 3px; color: var(--text-3); font-size: 10px; }
.player-tag > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-name { display: flex; gap: 5px; align-items: center; min-width: 0; }
.player-name h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 20px; line-height: 1.3; font-weight: 800; letter-spacing: -.035em; }
.player-name svg { flex-shrink: 0; }
.player-username { display: flex; min-width: 0; }
.player-username button { max-width: 100%; font-size: 11px !important; }
.player-rating { line-height: 1.15; }
.player-rating-label { color: var(--text-3); font-size: 10px; letter-spacing: .07em; }
.player-rating-value { display: flex; gap: 5px; align-items: center; margin-top: 3px; }
.player-rating-value strong { font-size: 30px; font-weight: 800; letter-spacing: -.05em; }
.player-rating-value > div { filter: none !important; }
.player-rating > span { display: block; font-size: 11px; margin-top: 3px; }
.player-details { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; font-size: 11px; color: var(--text-3); }
.player-details button { max-width: 100%; font-size: 10px !important; }
.player-share,
.player-demo { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36px; min-height: 40px; padding: 0; border: 0; background: transparent; color: var(--text-3); cursor: pointer; }
.player-share { width: fit-content; max-width: 100%; justify-content: flex-start; gap: 6px; min-height: 32px; font-size: 11px; }
.player-share svg { flex-shrink: 0; }
.player-share span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.player-share:hover,
.player-demo:hover { color: var(--text-1); }
.player-notice { grid-column: 1 / -1; font-size: 11px; padding: 8px 0; }
.player-notice small { display: block; padding-top: 3px; color: var(--text-3); }
.player-notice p + p { margin-top: 8px; }
.player-actions:empty { display: none; }
.player-actions { grid-column: 1 / -1; }
.player-actions .btn { min-height: 44px; border-radius: 22px; }
.player-rank { padding: 12px 16px 0; }
.player-rank-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; color: var(--text-3); font-size: 10px; }
.player-rank-caption > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-progress { height: 3px; margin-top: 8px; background: var(--bg-4); overflow: hidden; }
.player-progress > span { display: block; height: 100%; background: var(--player-accent); }
.player-profile .player-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 18px 16px; }
.player-stats > div { min-width: 0; padding-left: 12px; border-left: 1px solid var(--line-1); }
.player-stats > div:first-child { padding-left: 0; border-left: 0; }
.player-stats dt,
.player-averages dt { color: var(--text-3); font-size: 10px; font-weight: 500; }
.player-stats dd { margin-top: 4px; font-size: 21px; font-weight: 700; line-height: 1.3; letter-spacing: -.035em; }
.player-tabs { display: flex; gap: 4px; margin: 0 16px; padding: 4px; border: 1px solid var(--line-1); border-radius: 26px; background: var(--bg-2); }
.player-tabs button { flex: 1; position: relative; min-width: 0; min-height: 44px; padding: 0 5px; border-radius: 22px; background: transparent; border: 0; color: var(--text-3); font-size: 12px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.player-tabs button.active { color: var(--text-1); background: var(--bg-4); box-shadow: 0 1px 4px #0003; }
.player-form { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 16px 0; }
.player-form > span { font-size: 11px; color: var(--text-3); }
.player-form ol { display: flex; gap: 4px; list-style: none; padding: 0; margin: 0; }
.player-form li { position: relative; display: grid; place-items: center; width: 25px; height: 24px; background: #1d2b23; border-radius: 2px; font-size: 11px; font-weight: 700; }
.player-form li.is-loss { background: #322224; }
.player-form li.is-latest::after { content: ""; position: absolute; bottom: -4px; width: 10px; height: 1px; background: currentColor; }
.player-matches { padding: 22px 16px 0; }
.player-matches h2 { padding-bottom: 12px; }
.player-results { border-top: 1px solid var(--line-1); }
.player-match { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto 28px; align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line-1); }
.player-map { width: 48px; height: 42px; position: relative; background-color: var(--bg-3); background-position: center; background-size: cover; border-radius: 2px; }
.player-map > span { position: absolute; left: -3px; bottom: -3px; display: grid; place-items: center; width: 19px; height: 18px; background: #1d2b23; border: 2px solid var(--bg-1); border-radius: 2px; font-size: 9px; font-weight: 800; }
.player-match.is-loss .player-map > span { background: #322224; }
.player-match.is-annulled { color: var(--text-3); }
.player-match.is-draw { color: var(--text-3); }
.player-match.is-annulled .player-map { opacity: .6; }
.player-match-info { min-width: 0; }
.player-match-info > div { display: flex; align-items: baseline; gap: 8px; color: var(--text-1); font-size: 13px; }
.player-match-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.player-match-info > div > span { color: var(--text-2); font-size: 11px; white-space: nowrap; }
.player-match-info > small { display: block; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-3); font-size: 10px; }
.player-match-stats { text-align: right; white-space: nowrap; }
.player-match-stats strong { display: block; font-size: 12px; font-weight: 600; }
.player-match-stats strong > small { font-size: 9px; }
.player-match-stats > span { display: block; margin-top: 5px; color: var(--text-3); font-size: 10px; }
.player-demo { width: 28px; }
.player-empty { padding: 20px 0; color: var(--text-3); font-size: 12px; }
.player-record { display: flex; justify-content: space-between; padding: 12px 16px 4px; color: var(--text-3); font-size: 10px; }
.player-record b { color: var(--text-2); font-weight: 600; }
.player-profile .profile-medals { margin-top: 18px; border: 0; border-top: 1px solid var(--line-1); border-radius: 0; background: transparent; }
.player-profile .profile-medals__head { padding: 14px 0 0; border: 0; background: transparent; font-size: 13px; color: var(--text-1); text-transform: none; letter-spacing: 0; }
.player-profile .profile-medals__content { padding: 10px 0; }
.player-profile .profile-medals__stats { padding: 0 0 8px; }
.player-reviews > div { padding-top: 18px !important; }
.player-reviews .card { border: 0; border-top: 1px solid var(--line-1); border-radius: 0; background: transparent; padding: 16px 0 0 !important; box-shadow: none; }
.player-reviews .review-bar { height: 3px; border-radius: 0; }
.player-reviews .review-bar .pos { background: #79bb92; }
.player-reviews .review-bar .neg { background: #503032; }
.player-reviews .review-action { min-height: 44px; border-radius: 22px; }
.player-about { margin: 20px 16px 0; padding-top: 16px; border-top: 1px solid var(--line-1); }
.player-about p { margin-top: 8px; color: var(--text-2); font-size: 12px; font-weight: 500; line-height: 1.6; overflow-wrap: anywhere; white-space: pre-line; }
.player-about > div { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; color: var(--text-3); font-size: 11px; }
.player-profile .player-averages { margin: 0 16px; padding: 12px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-1); border-bottom: 1px solid var(--line-1); }
.player-averages dd { font-size: 20px; margin-top: 5px; }
.player-profile #player-panel-stats .card,
.player-profile #player-panel-seasons .card { border-radius: 4px; box-shadow: none; }
.player-profile .profile-mini-tabs { display: flex; gap: 4px; margin: 8px 16px 4px; padding: 0; border-bottom: 1px solid var(--line-1); }
.player-profile .profile-mini-tabs button { flex: 1; min-width: 0; min-height: 44px; padding: 5px 4px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--text-3); font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; }
.player-profile .profile-mini-tabs button[aria-pressed="true"] { border-bottom-color: var(--player-accent); color: var(--text-1); }
.player-profile :is(.analytics-period, .analytics-metrics) { gap: 6px; padding: 0; border: 0; background: none; flex-wrap: wrap; }
.player-profile :is(.analytics-period, .analytics-metrics) button { border: 1px solid var(--line-1); padding: 8px; flex: 1 0 auto; }
.player-profile :is(.analytics-period, .analytics-metrics) button.active { border-color: var(--text-4); background: var(--bg-3); color: var(--text-1); }
.player-profile :is(.analytics-period button, .analytics-metrics button, .analytics-empty button, .weapons-empty button) { min-height: 44px; border-radius: 22px; }
.player-profile .analytics select { min-height: 44px; border-radius: 14px; }
.player-profile .analytics-view button { width: 44px; height: 44px; border-radius: 50%; }
.player-profile .analytics-view { gap: 2px; padding: 3px; border: 1px solid var(--line-1); border-radius: 25px; }
.player-profile .analytics-values { margin-top: 12px; border: 1px solid var(--line-1); border-radius: 14px; overflow: hidden; }
.player-profile .analytics-values summary { padding: 14px 12px; color: var(--text-2); }
.player-profile .analytics-values > div { max-height: 260px; overflow-y: auto; overscroll-behavior: contain; }
.player-profile .analytics-values button { padding: 12px; border-left: 2px solid transparent; }
.player-profile .analytics-values button.active { border-left-color: var(--player-accent); background: var(--bg-3); }
.player-profile .analytics-link { display: inline-flex; align-items: center; margin-top: 14px; padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 22px; background: var(--bg-2); }
.player-profile .weapons select { min-height: 44px; border-radius: 14px; }
.player-profile :is(.player-tabs button, .profile-mini-tabs button, .analytics-period button, .analytics-metrics button, .analytics-view button) { touch-action: manipulation; transition: background-color 140ms, color 140ms, transform 110ms; }
.player-profile :is(.player-tabs button, .profile-mini-tabs button, .analytics-period button, .analytics-metrics button, .analytics-view button):active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) { .player-profile :is(.player-tabs button, .profile-mini-tabs button, .analytics-period button, .analytics-metrics button, .analytics-view button) { transition: none !important; transform: none !important; } }

@font-face { font-family: Weapons; src: url("/fonts/weapons.woff2") format("woff2"); font-display: block; }
.weapon-icon { display: inline-block; font-family: Weapons, sans-serif; font-weight: normal; font-style: normal; font-size: 34px; line-height: 1; text-transform: none; }
.weapons { padding: 12px 16px 0; }
.player-profile .subtab-panel--compact { min-height: 680px; animation: none; }
.weapons { min-height: 680px; overflow-anchor: none; }
.weapons-skeleton { min-height: 620px; padding-top: 18px; }
.weapons-skeleton > div { height: 64px; margin-bottom: 10px; border-radius: 3px; background: var(--bg-2); }
.weapons-skeleton > div:first-child { height: 112px; }
.weapon-favorite { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 18px; padding: 20px 0; border-top: 2px solid #d4a252; border-bottom: 1px solid var(--line-2); }
.weapon-favorite > div { min-width: 0; }
.weapon-favorite > div > span { color: #d4a252; font-size: 10px; font-weight: 600; }
.weapon-favorite h3 { font-size: 24px; margin-top: 8px; }
.weapon-favorite p { color: var(--text-3); font-size: 11px; margin-top: 8px; }
.weapon-favorite > .weapon-icon { flex-shrink: 0; width: 100px; font-size: 56px; color: #d8d6d1; }
.weapon-history > .analytics-chart-head { font-size: inherit; }
.weapon-history > .analytics-plot { display: block; }
.weapons h3 { margin: 0; font-size: 13px; font-weight: 650; }
.weapons-toolbar,
.weapons-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.weapons select { min-width: 0; max-width: 65%; min-height: 38px; padding: 6px 22px 6px 8px; border: 1px solid var(--line-2); border-radius: 3px; background: var(--bg-2); color: var(--text-2); font: inherit; font-size: 11px; text-overflow: ellipsis; }
.player-profile .weapons-note { margin: 12px 0 16px; color: var(--text-3); font-size: 10px; font-weight: 500; line-height: 1.6; }
.weapons-empty { padding: 30px 8px; text-align: center; }
.weapons-empty > div { display: flex; justify-content: center; align-items: center; gap: 18px; margin-bottom: 20px; color: var(--text-3); }
.weapons-empty p { max-width: 280px; margin: 10px auto 0; color: var(--text-3); font-size: 12px; font-weight: 500; line-height: 1.6; }
.weapons-empty button { margin-top: 12px; padding: 8px 14px; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 3px; color: var(--text-1); font: inherit; font-size: 12px; cursor: pointer; }
.weapon-list-head { display: flex; justify-content: space-between; padding: 0 0 10px; border-bottom: 1px solid var(--line-1); color: var(--text-3); font-size: 10px; }
.weapon-list { max-height: 345px; overflow-y: auto; overscroll-behavior-y: contain; }
.weapon-history g[role="button"] { cursor: pointer; }
.weapon-history g[role="button"]:focus { outline: none; }
.weapon-history g[role="button"]:focus-visible > rect:first-child { stroke: var(--text-2); stroke-width: 1; }
.player-profile .weapon-point { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; color: var(--text-3); font-size: 10px; }
.weapon-point b { color: var(--text-1); font-weight: 600; }
.weapon-row { display: grid; grid-template-columns: 66px minmax(0, 1fr) 46px; gap: 12px; align-items: center; width: 100%; min-height: 64px; padding: 10px 6px; background: transparent; border: 0; border-bottom: 1px solid var(--line-1); text-align: left; color: var(--text-2); cursor: pointer; }
.weapon-row.active { background: var(--bg-2); color: var(--text-1); }
.weapon-row:hover { background: var(--bg-2); }
.weapon-row > .weapon-icon { text-align: center; font-size: 36px; }
.weapon-row-name { min-width: 0; }
.weapon-row-name b { display: block; font-size: 12px; font-weight: 600; }
.weapon-bar { display: block; height: 3px; background: var(--bg-3); }
.weapon-bar > i { display: block; height: 100%; background: #73737c; }
.weapon-row.active .weapon-bar > i { background: var(--player-accent); }
.weapon-row-name > .weapon-bar { margin-top: 10px; }
.weapon-row-score { text-align: right; }
.weapon-row-score b { font-size: 13px; font-weight: 650; }
.weapon-row-score small { display: block; margin-top: 4px; color: var(--text-3); font-size: 10px; }
.weapon-detail { margin-top: 24px; }
.weapon-detail > header { display: flex; align-items: center; gap: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line-2); }
.weapon-detail > header > .weapon-icon { font-size: 48px; color: var(--text-1); }
.weapon-detail > header h3 { font-size: 19px; }
.weapon-detail > header div > span { display: block; margin-top: 5px; font-size: 10px; color: var(--text-3); }
.weapon-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.weapon-metrics > div { min-width: 0; padding: 16px 6px 14px 0; border-bottom: 1px solid var(--line-1); }
.weapon-metrics dt { color: var(--text-3); font-size: 10px; font-weight: 500; }
.weapon-metrics dd { margin-top: 6px; font-size: 19px; font-weight: 650; overflow-wrap: anywhere; }
.weapons-heading { margin: 24px 0 14px; }
.weapons-heading select { max-width: 45%; }
.weapons-heading--chart { justify-content: flex-end; margin-bottom: 0; }
.weapon-pie-value { display: inline-flex; align-items: center; gap: 7px; }
.weapon-pie { display: inline-block; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: conic-gradient(#4b7cff var(--slice), #303139 0); }
.weapon-pie.is-empty { opacity: .5; }
.weapon-row-rates { grid-column: 2 / -1; display: flex; gap: 18px; padding-top: 3px; }
.weapon-row-rates > span { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 9px; }
.weapon-row-rates .weapon-pie { width: 20px; height: 20px; }
.weapon-row-rates .weapon-pie-value { color: var(--text-2); font-size: 10px; }
.weapon-distribution { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line-1); }
.weapon-wheel { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 8px; margin-top: 12px; }
.weapon-wheel svg { width: 100%; overflow: visible; }
.weapon-wheel g { cursor: pointer; opacity: .7; }
.weapon-wheel g:hover, .weapon-wheel g.active { opacity: 1; }
.weapon-wheel path, .weapon-wheel g > circle { stroke: var(--bg-1); stroke-width: 3px; }
.weapon-wheel-center { fill: var(--bg-1); stroke: var(--line-2); stroke-width: 1px; pointer-events: none; }
.weapon-wheel-icon { font-family: Weapons; font-size: 24px; fill: white; pointer-events: none; }
.weapon-wheel-number { fill: var(--text-1); font: 700 23px var(--font); pointer-events: none; }
.weapon-wheel-name { fill: var(--text-3); font: 10px var(--font); pointer-events: none; }
.weapon-wheel-key { max-height: 264px; overflow-y: auto; }
.weapon-wheel-key button { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 44px; padding: 4px 0; background: none; border: 0; color: var(--text-3); font: inherit; font-size: 10px; text-align: left; cursor: pointer; }
.weapon-wheel-key button[aria-pressed="true"] { color: var(--text-1); }
.weapon-wheel-key i { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.weapon-wheel-key span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.weapon-wheel-key b { margin-left: auto; font-weight: 600; }
.weapon-zones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 8px; padding: 8px 0 20px; }
.weapon-zones > div { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.weapon-zones > div > span:first-child { color: var(--text-3); font-size: 11px; }
.weapon-zones .weapon-pie { width: 30px; height: 30px; }
.weapon-zones .weapon-pie-value { font-size: 13px; font-weight: 600; }
.weapon-zones small { color: var(--text-3); font-size: 10px; }
.weapon-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 12px; width: 100%; max-width: 400px; margin: 0 auto 20px; }
.weapon-body-map { height: 260px; min-width: 0; }
.weapon-body-map > svg { display: block; width: 100%; height: 100%; }
.weapon-body-part { fill: #e5e5e8; stroke: var(--bg-1); stroke-width: 1.5; cursor: pointer; touch-action: manipulation; transition: fill .12s; outline: none; -webkit-tap-highlight-color: transparent; }
.weapon-body-part.active { fill: var(--player-accent, #e02424); }
.weapon-body-part:focus-visible { outline: none; stroke: #fff; stroke-width: 3; }
@media (hover: hover) { .weapon-body-part:hover { fill: #aabbd5; } }
.weapon-body-gear { pointer-events: none; }
.weapon-body-gear path { fill: none; stroke: var(--bg-1); stroke-width: 2; stroke-linejoin: round; }
.weapon-body-zone { position: absolute; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 5px; width: 24%; min-height: 44px; padding: 4px 0; border: 0; background: none; color: var(--text-3); font: inherit; cursor: pointer; text-align: left; }
.weapon-body-zone > span { font-size: 11px; }
.weapon-body-zone strong { font-size: clamp(17px, 5vw, 23px); font-weight: 650; line-height: 1; color: var(--text-1); }
.weapon-body-zone.active > span { color: var(--player-accent, #e02424); }
.weapon-body-zone:focus-visible { outline: 1px solid var(--text-1); outline-offset: 3px; }
.weapon-body-zone--head { right: 0; top: 5%; }
.weapon-body-zone--chest { right: 0; top: 25%; }
.weapon-body-zone--stomach { left: 0; top: 42%; }
.weapon-body-zone--arms { left: 0; top: 24%; }
.weapon-body-zone--legs { right: 0; top: 71%; }
.weapon-body-readout { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; padding: 0; font-size: 12px; }
.weapon-body-readout > span { color: var(--text-2); }
.weapon-body-readout > strong { display: flex; flex-direction: column; gap: 4px; font-size: 20px; font-weight: 600; }
.weapon-body-readout small { font-size: 10px; font-weight: 400; color: var(--text-3); }
.weapon-body-readout > b { order: -1; font-size: 32px; line-height: 1; font-weight: 650; color: var(--player-accent, var(--text-1)); }
@media (max-width: 359px) { .weapon-metrics .weapon-pie { width: 20px; height: 20px; } .weapon-metrics .weapon-pie-value { gap: 4px; font-size: 16px; } }
.weapon-history svg { display: block; width: 100%; overflow: visible; }
.weapon-history text { fill: var(--text-3); font: 9px var(--font); }
.weapon-history > div { display: flex; justify-content: space-between; gap: 8px; font-size: 9px; color: var(--text-3); }
.weapons .weapon-hit-title { margin: 28px 0 12px; }
.weapon-hitgroups > div { display: grid; grid-template-columns: 60px minmax(0, 1fr) 45px; align-items: center; gap: 14px; min-height: 33px; font-size: 11px; color: var(--text-3); }
.weapon-hitgroups b { text-align: right; color: var(--text-2); font-size: 11px; font-weight: 600; }

@media (max-width: 359px) {
  .player-head { column-gap: 12px; }
  .player-rating-value { gap: 2px; }
  .player-rating-value strong { font-size: 26px; }
  .player-stats dd { font-size: 18px; }
  .player-stats > div { padding-left: 8px; }
  .player-tabs { gap: 2px; }
  .player-tabs button { font-size: 11px; }
  .player-match { grid-template-columns: 38px minmax(0, 1fr) auto 24px; gap: 7px; }
  .player-map { width: 38px; height: 38px; }
  .player-demo { width: 24px; }
  .player-match-info > div { gap: 5px; font-size: 12px; }
}

@media (max-width: 299px) {
  .player-rating-value strong { font-size: 23px; }
  .player-stats dd { font-size: 16px; }
}

.player-achievements { margin: 0 16px 12px; padding: 0; }
.player-achievements-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; }
.player-achievements-heading h2 { margin: 0; color: var(--text-3); font-size: 11px; font-weight: 500; }
.player-achievements-heading button { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; max-width: 100%; padding: 4px 0; border: 0; background: none; color: var(--text-2); font: inherit; font-size: 12px; font-weight: 500; text-align: left; cursor: pointer; }
.player-achievements-heading button span { font-size: 20px; }
.player-achievements > p { margin: 6px 0 0; color: var(--text-3); font-size: 12px; font-weight: 400; }
.profile-achievements-dialog { position: fixed; inset: 0; width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: var(--bg-1); color: var(--text-1); overflow: hidden; }
.profile-achievements-dialog[open] { display: flex; flex-direction: column; }
.profile-achievements-dialog::backdrop { background: var(--bg-1); }
.profile-achievements-dialog > header { display: flex; align-items: center; gap: 8px; flex-shrink: 0; min-height: 60px; padding: calc(16px + env(safe-area-inset-top,0px)) max(20px,calc((100% - 680px) / 2)) 16px; border-bottom: 1px solid var(--line-1); }
.profile-achievements-dialog h2 { margin: 0; font-size: 18px; font-weight: 600; }
.profile-achievements-dialog header button { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border: 0; border-radius: 8px; background: none; color: var(--text-2); cursor: pointer; }
.profile-achievements-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 max(20px,calc((100% - 680px) / 2)) calc(24px + env(safe-area-inset-bottom,0px)); }
.achievement-cards { list-style: none; display: grid; gap: 12px; padding: 0; margin: 0; }
.achievement-cards > li { min-width: 0; }
.achievement-cards--preview { grid-template-columns: repeat(5,minmax(0,52px)); gap: 6px; margin-top: 2px; }
.achievement-cards--full { grid-template-columns: repeat(3,minmax(0,1fr)); padding: 24px 0 40px; }
.achievement-card { display: block; position: relative; width: 100%; aspect-ratio: 1; padding: 0; border: 1px solid var(--line-1); border-radius: var(--r-sm); background: var(--bg-2); color: var(--text-1); cursor: pointer; touch-action: manipulation; }
.achievement-card img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: inherit; opacity: .28; transition: opacity 140ms ease; }
.achievement-card.is-unlocked img { opacity: 1; }
.achievement-card-label { position: absolute; top: calc(100% + 6px); left: 0; z-index: 2; width: max-content; max-width: min(180px,70vw); padding: 7px 10px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg-3); color: var(--text-1); font: 500 12px/1.4 var(--font); text-align: left; opacity: 0; visibility: hidden; pointer-events: none; }
.achievement-card.is-revealed, .achievement-card:focus-visible { z-index: 3; }
.achievement-card.is-revealed .achievement-card-label, .achievement-card:focus-visible .achievement-card-label { opacity: 1; visibility: visible; }
.achievement-cards--preview > li:nth-child(n+4) .achievement-card-label { left: auto; right: 0; }
.achievement-cards--full > li:nth-child(3n) .achievement-card-label { left: auto; right: 0; }
@media (max-width: 479px) {
  .achievement-cards--full { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .achievement-cards--full > li:nth-child(3n) .achievement-card-label { left: 0; right: auto; }
  .achievement-cards--full > li:nth-child(2n) .achievement-card-label { left: auto; right: 0; }
}
@media (hover: hover) {
  .achievement-card:hover { border-color: var(--line-2); z-index: 3; }
  .achievement-card:hover .achievement-card-label { opacity: 1; visibility: visible; }
}
@media (prefers-reduced-motion: reduce) { .achievement-card img { transition: none; } }

.player-matches-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.player-matches-heading h2 { padding-bottom: 0; }
.profile-matches-link { appearance: none; flex-shrink: 0; min-height: 36px; padding: 4px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--text-2); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.profile-matches-link:focus-visible { outline: 2px solid var(--red-1); outline-offset: 4px; }
