:root {
  --profile-dark: #070c10;
  --profile-panel: #0c141a;
  --profile-panel-2: #101b22;
  --profile-line: rgba(178, 207, 219, .16);
  --profile-paper: #e9eef0;
  --profile-paper-2: #f5f7f8;
  --profile-ink: #091117;
  --profile-copy: #596c75;
}

[hidden] {
  display: none !important;
}

.profile-page {
  color: var(--text);
  background: var(--profile-dark);
}

.profile-page #main {
  min-height: 100vh;
}

.profile-page :is(#overview, #tacticool-record, #community-record, #progress-record) {
  scroll-margin-top: 122px;
}

.profile-state {
  width: min(720px, calc(100% - 32px));
  min-height: 460px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 72px) 0 72px;
  text-align: center;
}

.profile-state .op-kicker {
  justify-content: center;
}

.profile-state h1 {
  margin: 18px 0 12px;
  font: 900 clamp(2.8rem, 6vw, 4.6rem)/.9 var(--display);
  letter-spacing: -.025em;
  text-transform: uppercase;
}

.profile-state > p:not(.op-kicker) {
  max-width: 560px;
  margin: 0 auto 26px;
  color: #9aabb2;
  line-height: 1.7;
}

.profile-state--loading {
  display: grid;
  place-content: center;
  gap: 18px;
}

.profile-loader {
  width: 42px;
  height: 42px;
  margin: auto;
  border: 2px solid rgba(255, 255, 255, .14);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: profile-spin .8s linear infinite;
}

.profile-state-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

/* Compact identity dashboard */
.profile-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--nav-h) + 34px) 0 34px;
  background: #060a0d;
}

.profile-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 8, 11, .98) 0%, rgba(4, 8, 11, .88) 42%, rgba(4, 8, 11, .55) 100%),
    linear-gradient(0deg, #060a0d 0%, transparent 50%);
}

.profile-hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .34;
  background: url("images/tacticool-command.jpg") 62% 48% / cover no-repeat;
  filter: saturate(.72) contrast(1.08);
}

.profile-hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .11;
  background-image:
    linear-gradient(rgba(159, 215, 238, .15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159, 215, 238, .15) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, #000, transparent 85%);
}

.profile-preview-ribbon {
  position: relative;
  z-index: 4;
  display: flex;
  width: var(--shell);
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto 16px;
  padding: 0 15px;
  border: 1px solid rgba(255, 188, 56, .4);
  color: #ffd376;
  background: rgba(255, 188, 56, .08);
  font-size: .66rem;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.profile-preview-ribbon button {
  border: 0;
  color: #fff;
  background: transparent;
  font-size: .64rem;
  font-weight: 850;
  cursor: pointer;
  text-transform: uppercase;
}

.profile-hero-shell {
  position: relative;
  z-index: 2;
  display: grid;
  width: var(--shell);
  grid-template-columns: minmax(0, 1.18fr) minmax(390px, .82fr);
  align-items: stretch;
  gap: clamp(24px, 3vw, 46px);
  margin-inline: auto;
}

.profile-identification {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: 12px 0;
}

.profile-identification > .op-kicker {
  margin-bottom: 18px;
}

.profile-identity-line {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.profile-avatar-frame {
  position: relative;
  width: 112px;
  height: 112px;
  flex: 0 0 112px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .04);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .28);
}

.profile-avatar-frame::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 42px;
  height: 3px;
  background: var(--red);
}

.profile-avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-verified {
  position: absolute;
  right: -8px;
  bottom: -8px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 4px solid #070c10;
  border-radius: 50%;
  color: #062217;
  background: var(--green);
}

.profile-verified svg {
  width: 17px;
  fill: currentColor;
}

.profile-nameplate {
  min-width: 0;
}

.profile-handle {
  display: block;
  overflow: hidden;
  color: var(--ice);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.profile-nameplate h1 {
  max-width: 760px;
  margin: 7px 0 10px;
  overflow-wrap: anywhere;
  font: 900 clamp(3rem, 4.8vw, 4.9rem)/.84 var(--display);
  letter-spacing: -.02em;
  text-transform: uppercase;
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.profile-badge {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(159, 215, 238, .3);
  color: #bed9e3;
  background: rgba(159, 215, 238, .06);
  font-size: .56rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.profile-badge--red {
  border-color: rgba(255, 49, 86, .42);
  color: #ff7890;
  background: rgba(255, 49, 86, .08);
}

.profile-badge--gold {
  border-color: rgba(255, 188, 56, .4);
  color: var(--gold);
  background: rgba(255, 188, 56, .07);
}

.profile-bio {
  max-width: 690px;
  margin: 22px 0 0;
  color: #bdc8cd;
  font-size: .92rem;
  line-height: 1.65;
}

.profile-location-line,
.profile-social-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 13px;
  color: #84969e;
  font-size: .65rem;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.profile-location-line span::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 7px 1px 0;
  border-radius: 50%;
  background: var(--red);
}

.profile-social-line strong {
  margin-right: 4px;
  color: #fff;
  font: 850 .9rem/1 var(--display);
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.profile-actions .ctv-action {
  width: auto;
  min-width: 145px;
  min-height: 44px;
  padding-inline: 15px 10px;
}

.profile-live-record {
  align-self: center;
  min-width: 0;
  border: 1px solid var(--profile-line);
  background: rgba(7, 13, 17, .84);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
  backdrop-filter: blur(16px);
}

.profile-live-record > header,
.profile-field-sheet > header {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 16px;
  border-bottom: 1px solid var(--profile-line);
  color: #98aab1;
  font-size: .58rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.profile-live-record > header span,
.profile-field-sheet > header span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-live-record > header i,
.profile-field-sheet > header i,
.profile-owner-rail i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(104, 245, 170, .7);
}

.profile-live-record > header b {
  color: var(--green);
}

.profile-live-record dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.profile-live-record dl > div {
  min-width: 0;
  padding: 17px 16px;
  border-right: 1px solid var(--profile-line);
  border-bottom: 1px solid var(--profile-line);
}

.profile-live-record dl > div:nth-child(2n) {
  border-right: 0;
}

.profile-live-record :is(dt, small),
.profile-field-sheet dt {
  color: #758890;
  font-size: .55rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.profile-live-record dd {
  margin: 7px 0 4px;
  overflow: hidden;
  color: #fff;
  font: 900 clamp(1.6rem, 2.4vw, 2.35rem)/.9 var(--display);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-live-record small {
  display: block;
  overflow: hidden;
  color: #74878f;
  letter-spacing: 0;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.profile-record-link {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  color: #fff;
  font-size: .62rem;
  font-weight: 850;
  letter-spacing: .07em;
  text-decoration: none;
  text-transform: uppercase;
}

.profile-record-link span {
  color: var(--red);
}

/* Owner controls and section navigation */
.profile-owner-rail {
  border-block: 1px solid var(--profile-line);
  color: #bcc8cd;
  background: #0b1217;
}

.profile-owner-rail .section-shell {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.profile-owner-rail span,
.profile-owner-rail div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-owner-rail span {
  font-size: .68rem;
}

.profile-owner-rail strong {
  color: #fff;
}

.profile-owner-rail a {
  color: var(--ice);
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}

.profile-section-nav {
  position: sticky;
  top: 68px;
  z-index: 30;
  display: flex;
  min-height: 54px;
  justify-content: center;
  overflow-x: auto;
  border-bottom: 1px solid var(--profile-line);
  background: rgba(6, 11, 14, .96);
  scrollbar-width: none;
  backdrop-filter: blur(16px);
}

.profile-section-nav::-webkit-scrollbar {
  display: none;
}

.profile-section-nav a {
  position: relative;
  display: flex;
  min-width: max-content;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  color: #8ea0a8;
  font-size: .62rem;
  font-weight: 850;
  letter-spacing: .09em;
  text-decoration: none;
  text-transform: uppercase;
}

.profile-section-nav a::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: 0;
  left: 20px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform .2s ease;
}

.profile-section-nav a:hover,
.profile-section-nav a:focus-visible,
.profile-section-nav a.is-active {
  color: #fff;
}

.profile-section-nav a.is-active::after,
.profile-section-nav a:hover::after {
  transform: scaleX(1);
}

.profile-section-nav span {
  color: var(--red);
}

/* Shared compact section language */
.profile-overview,
.profile-community {
  position: relative;
  color: var(--profile-ink);
  background: var(--profile-paper);
}

.profile-tacticool,
.profile-progress {
  position: relative;
  background: var(--profile-dark);
}

.profile-overview,
.profile-tacticool,
.profile-community,
.profile-progress {
  padding: clamp(54px, 6vw, 82px) 0;
}

.profile-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  align-items: end;
  gap: 36px;
  margin-bottom: 30px;
}

.profile-section-head .op-kicker {
  margin-bottom: 12px;
}

.profile-section-head h2 {
  margin: 0;
  color: inherit;
  font: 900 clamp(2.5rem, 4vw, 4rem)/.88 var(--display);
  letter-spacing: -.02em;
  text-transform: uppercase;
}

.profile-section-head h2 em {
  color: var(--red);
  font-style: normal;
}

.profile-section-head > p {
  margin: 0 0 3px;
  color: #71838b;
  font-size: .88rem;
  line-height: 1.65;
}

.profile-section-head--light > p {
  color: var(--profile-copy);
}

.profile-highlight-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
  border: 1px solid rgba(8, 24, 32, .14);
  background: rgba(255, 255, 255, .34);
}

.profile-highlight {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  min-height: 70px;
  padding: 12px 16px;
  border-right: 1px solid rgba(8, 24, 32, .12);
}

.profile-highlight:last-child {
  border-right: 0;
}

.profile-highlight > span {
  color: #e12649;
  font: 900 1rem/1 var(--display);
}

.profile-highlight div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.profile-highlight small,
.profile-xp-summary small,
.profile-community-summary small {
  color: #71828a;
  font-size: .55rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.profile-highlight strong {
  overflow: hidden;
  font: 850 1rem/1 var(--display);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-season-layout {
  display: grid;
  grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr);
  gap: 16px;
}

.profile-chase,
.profile-xp-chart-panel,
.profile-xp-history-panel,
.profile-recent,
.profile-honors {
  border: 1px solid rgba(8, 24, 32, .15);
  background: var(--profile-paper-2);
}

.profile-chase {
  min-height: 292px;
  padding: 22px;
}

.profile-chase > header,
.profile-xp-chart-panel > header,
.profile-xp-history-panel > header,
.profile-honors > header,
.profile-stats-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.profile-chase > header > span,
.profile-xp-chart-panel header span,
.profile-xp-history-panel header span,
.profile-honors header span,
.profile-stats-head span {
  color: #71828a;
  font-size: .55rem;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.profile-chase h3,
.profile-xp-chart-panel h3,
.profile-xp-history-panel h3,
.profile-recent h3,
.profile-honors h3,
.profile-stats-head h3 {
  margin: 7px 0 0;
  font: 900 clamp(1.7rem, 2.5vw, 2.45rem)/.9 var(--display);
  letter-spacing: -.01em;
  text-transform: uppercase;
}

.profile-chase > p {
  min-height: 64px;
  margin: 48px 0 20px;
  color: var(--profile-copy);
  font-size: .82rem;
  line-height: 1.65;
}

.profile-chase-scale > span {
  display: block;
  height: 7px;
  overflow: hidden;
  background: rgba(8, 24, 32, .1);
}

.profile-chase-scale i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--gold));
}

.profile-chase-scale > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 9px;
  color: #71828a;
  font-size: .58rem;
  font-weight: 800;
}

.profile-xp-chart-panel {
  min-width: 0;
  min-height: 292px;
  padding: 20px 22px 14px;
}

.profile-xp-chart-panel > header small,
.profile-capture-state small {
  color: #71828a;
  font-size: .57rem;
}

.profile-xp-chart {
  min-height: 205px;
  margin-top: 9px;
}

.profile-xp-chart svg {
  display: block;
  width: 100%;
  height: 205px;
  overflow: visible;
}

.xp-grid-line {
  stroke: rgba(7, 24, 32, .1);
}

.xp-zero-line {
  stroke: rgba(7, 24, 32, .22);
  stroke-dasharray: 5 6;
}

.xp-area {
  fill: url(#xpAreaGradient);
}

.xp-line {
  fill: none;
  stroke: url(#xpLineGradient);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.xp-bar {
  stroke: rgba(255, 49, 86, .2);
  stroke-width: 10;
}

.xp-point {
  fill: #e12649;
  stroke: #fff;
  stroke-width: 3;
}

.xp-point.is-peak {
  fill: var(--gold);
}

.xp-point.is-loss,
.xp-bar.is-loss {
  fill: #82959e;
  stroke: #82959e;
}

.xp-day,
.xp-value {
  fill: #71828a;
  font: 750 10px var(--body);
  text-anchor: middle;
}

.xp-value {
  fill: #263943;
  font-weight: 850;
}

.profile-chart-empty,
.profile-empty-line {
  margin: 0;
  color: #71828a;
  font-size: .78rem;
  line-height: 1.6;
}

.profile-xp-summary,
.profile-community-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
  border: 1px solid rgba(8, 24, 32, .14);
  background: rgba(255, 255, 255, .34);
}

.profile-xp-summary > div,
.profile-community-summary > div {
  display: grid;
  gap: 7px;
  min-height: 78px;
  align-content: center;
  padding: 13px 17px;
  border-right: 1px solid rgba(8, 24, 32, .12);
}

.profile-xp-summary > div:last-child,
.profile-community-summary > div:last-child {
  border-right: 0;
}

.profile-xp-summary strong,
.profile-community-summary strong {
  overflow: hidden;
  font: 900 clamp(1.35rem, 2vw, 1.9rem)/.95 var(--display);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-xp-history-panel {
  margin-top: 16px;
  padding: 20px 22px 8px;
}

.profile-xp-history {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
  border-top: 1px solid rgba(8, 24, 32, .12);
}

.profile-xp-entry {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 66px;
  padding: 9px 11px 9px 0;
  border-right: 1px solid rgba(8, 24, 32, .1);
  border-bottom: 1px solid rgba(8, 24, 32, .1);
}

.profile-xp-entry:nth-child(2n) {
  padding-left: 12px;
  border-right: 0;
}

.profile-xp-entry > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(39, 147, 95, .35);
  color: #087340;
  font-size: .75rem;
}

.profile-xp-entry.is-loss > span {
  border-color: rgba(225, 38, 73, .35);
  color: #cf2142;
}

.profile-xp-entry div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.profile-xp-entry strong,
.profile-xp-entry small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-xp-entry strong {
  font-size: .72rem;
}

.profile-xp-entry small {
  color: #71828a;
  font-size: .55rem;
}

.profile-xp-entry > b {
  color: #087340;
  font: 850 .85rem/1 var(--display);
  white-space: nowrap;
}

.profile-xp-entry.is-loss > b {
  color: #cf2142;
}

.profile-recent {
  margin-top: 16px;
  padding: 20px 22px;
}

.profile-recent-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.profile-recent-item {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(8, 24, 32, .12);
  color: var(--profile-ink);
  text-decoration: none;
}

.profile-recent-item time {
  color: #71828a;
  font-size: .55rem;
}

.profile-recent-item span {
  overflow: hidden;
  font-size: .72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-owner-next,
.profile-stats-owner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 49, 86, .28);
  background: rgba(255, 49, 86, .05);
}

.profile-owner-next-index {
  color: var(--red);
  font: 900 1rem/1 var(--display);
}

.profile-owner-next div,
.profile-stats-owner > div:first-child {
  display: grid;
  gap: 4px;
}

.profile-owner-next small,
.profile-stats-owner small {
  color: #71828a;
  font-size: .55rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.profile-owner-next strong,
.profile-stats-owner strong {
  font: 850 1.05rem/1 var(--display);
  text-transform: uppercase;
}

.profile-owner-next p,
.profile-stats-owner p {
  margin: 0;
  color: #71828a;
  font-size: .68rem;
  line-height: 1.5;
}

.profile-owner-next .ctv-action,
.profile-stats-owner .ctv-action {
  min-height: 44px;
}

/* Verified Tacticool record */
.profile-tacticool .profile-section-head > p,
.profile-progress .profile-section-head > p {
  color: #8ea0a8;
}

.profile-field-sheet {
  border: 1px solid var(--profile-line);
  background: var(--profile-panel);
}

.profile-field-sheet > header b {
  color: var(--green);
}

.profile-field-sheet dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.profile-field-sheet dl > div {
  min-width: 0;
  padding: 16px 18px;
  border-right: 1px solid var(--profile-line);
  border-bottom: 1px solid var(--profile-line);
}

.profile-field-sheet dl > div:nth-child(3n) {
  border-right: 0;
}

.profile-field-sheet dl > div:nth-last-child(-n+3) {
  border-bottom: 0;
}

.profile-field-sheet dd {
  margin: 7px 0 0;
  overflow: hidden;
  color: #eef4f6;
  font: 850 1.05rem/1.1 var(--display);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-player-id-field dd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.profile-player-id-field button {
  flex: 0 0 auto;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid var(--profile-line);
  color: var(--ice);
  background: transparent;
  font-size: .52rem;
  font-weight: 850;
  cursor: pointer;
  text-transform: uppercase;
}

.profile-stats-head {
  align-items: end;
  margin: 28px 0 14px;
}

.profile-capture-state {
  display: grid;
  gap: 4px;
  text-align: right;
}

.profile-capture-state strong {
  color: var(--green);
  font: 850 .9rem/1 var(--display);
}

.profile-stats-empty {
  display: grid;
  min-height: 180px;
  place-content: center;
  justify-items: center;
  padding: 30px;
  border: 1px solid var(--profile-line);
  color: #8ea0a8;
  background: var(--profile-panel);
  text-align: center;
}

.profile-stats-empty > strong {
  color: #fff;
  font: 900 1.9rem/1 var(--display);
}

.profile-stats-empty p {
  margin: 8px 0 18px;
  font-size: .74rem;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--profile-line);
  background: var(--profile-panel);
}

.profile-stat {
  display: grid;
  gap: 9px;
  min-width: 0;
  min-height: 96px;
  align-content: center;
  padding: 15px 17px;
  border-right: 1px solid var(--profile-line);
  border-bottom: 1px solid var(--profile-line);
}

.profile-stat:nth-child(4n) {
  border-right: 0;
}

.profile-stat small,
.profile-weapon-stat small {
  display: flex;
  min-width: 0;
  justify-content: space-between;
  gap: 8px;
  color: #788b93;
  font-size: .54rem;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.profile-stat small > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-stat small b,
.profile-weapon-stat small b {
  color: var(--green);
  white-space: nowrap;
}

.profile-stat small b.is-down,
.profile-weapon-stat small b.is-down {
  color: #ff718b;
}

.profile-stat > strong,
.profile-weapon-stat > strong {
  overflow: hidden;
  color: #fff;
  font: 900 clamp(1.55rem, 2.4vw, 2.2rem)/.9 var(--display);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-weapons {
  margin-top: 12px;
  border: 1px solid var(--profile-line);
  background: var(--profile-panel);
}

.profile-weapons summary,
.profile-room-map summary {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 17px;
  cursor: pointer;
  list-style: none;
}

.profile-weapons summary::-webkit-details-marker,
.profile-room-map summary::-webkit-details-marker {
  display: none;
}

.profile-weapons summary span {
  font: 850 1rem/1 var(--display);
  text-transform: uppercase;
}

.profile-weapons summary small {
  color: var(--ice);
  font-size: .56rem;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-weapons-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--profile-line);
}

.profile-weapon-stat {
  display: grid;
  gap: 9px;
  min-width: 0;
  min-height: 82px;
  align-content: center;
  padding: 13px 15px;
  border-right: 1px solid var(--profile-line);
  border-bottom: 1px solid var(--profile-line);
}

.profile-weapon-stat:nth-child(5n) {
  border-right: 0;
}

.profile-weapon-stat > strong {
  font-size: 1.45rem;
}

.profile-stats-owner {
  border-color: var(--profile-line);
  background: var(--profile-panel-2);
}

.profile-stats-owner p,
.profile-stats-owner small {
  color: #81939b;
}

.profile-stats-history {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.profile-upload-state {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid var(--profile-line);
  color: #9cadb4;
  font-size: .52rem;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-upload-state.is-approved,
.profile-upload-state.is-confirmed {
  border-color: rgba(104, 245, 170, .3);
  color: var(--green);
}

.profile-upload-state.is-pending {
  color: var(--gold);
}

.profile-upload-state.is-rejected {
  color: #ff718b;
}

/* Community profile feed */
.profile-community-summary {
  margin-top: 0;
}

.profile-community-console {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  margin-top: 16px;
}

.profile-contributions,
.profile-room-map {
  min-width: 0;
  border: 1px solid rgba(8, 24, 32, .15);
  background: var(--profile-paper-2);
}

.profile-filter-bar {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding: 10px;
  border-bottom: 1px solid rgba(8, 24, 32, .12);
  scrollbar-width: none;
}

.profile-filter-bar::-webkit-scrollbar {
  display: none;
}

.profile-filter-bar .ctv-tab {
  min-width: max-content;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(8, 24, 32, .13);
  color: #60727b;
  background: transparent;
  font-size: .58rem;
  font-weight: 850;
  cursor: pointer;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.profile-filter-bar .ctv-tab:hover,
.profile-filter-bar .ctv-tab.is-active {
  border-color: #101d24;
  color: #fff;
  background: #101d24;
}

.profile-contribution-feed {
  padding: 0 14px;
}

.profile-contribution {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 84px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(8, 24, 32, .1);
  color: var(--profile-ink);
  text-decoration: none;
}

.profile-contribution.has-thumb,
.profile-contribution:has(.profile-contribution-thumb) {
  grid-template-columns: 28px 66px minmax(0, 1fr) auto;
}

.profile-contribution:last-child {
  border-bottom: 0;
}

.profile-contribution-index {
  color: #e12649;
  font: 900 .8rem/1 var(--display);
}

.profile-contribution-thumb {
  width: 66px;
  height: 52px;
  object-fit: cover;
}

.profile-contribution-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.profile-contribution-copy small {
  color: #71828a;
  font-size: .53rem;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-contribution-copy strong,
.profile-contribution-copy p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-contribution-copy strong {
  font: 850 1rem/1 var(--display);
  text-transform: uppercase;
}

.profile-contribution-copy p {
  margin: 0;
  color: var(--profile-copy);
  font-size: .66rem;
}

.profile-contribution-meta {
  display: grid;
  gap: 6px;
  justify-items: end;
  color: #71828a;
  font-size: .54rem;
  white-space: nowrap;
}

.profile-contribution-meta b {
  color: #263943;
}

.profile-contribution-gate {
  padding: 28px;
  text-align: center;
}

.profile-contribution-gate strong {
  font: 850 1.2rem/1 var(--display);
  text-transform: uppercase;
}

.profile-contribution-gate p {
  margin: 8px auto 18px;
  color: var(--profile-copy);
  font-size: .7rem;
}

.profile-load-more {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-top: 1px solid rgba(8, 24, 32, .12);
  color: #1a2c35;
  background: transparent;
  font-size: .58rem;
  font-weight: 850;
  cursor: pointer;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.profile-room-map {
  align-self: start;
}

.profile-room-map summary {
  min-height: 62px;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border-bottom: 1px solid rgba(8, 24, 32, .12);
}

.profile-room-map summary span {
  color: #71828a;
  font-size: .53rem;
  font-weight: 850;
  text-transform: uppercase;
}

.profile-room-map summary strong {
  font: 850 1.15rem/1 var(--display);
  text-transform: uppercase;
}

#profile-room-map {
  display: grid;
  gap: 13px;
  padding: 18px;
}

.profile-room-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 35px;
  gap: 7px 12px;
  align-items: center;
  color: #61747d;
  font-size: .58rem;
  font-weight: 800;
}

.profile-room-row i {
  position: relative;
  grid-column: 1 / -1;
  order: 3;
  height: 4px;
  overflow: hidden;
  background: rgba(8, 24, 32, .1);
}

.profile-room-row i::after {
  content: "";
  display: block;
  width: var(--room-fill, 0%);
  height: 100%;
  background: linear-gradient(90deg, #e12649, var(--gold));
}

.profile-room-row b {
  color: #1a2c35;
  text-align: right;
}

.profile-room-map > .ctv-text-link {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-top: 1px solid rgba(8, 24, 32, .12);
  color: #15262e;
  font-size: .58rem;
  font-weight: 850;
  text-decoration: none;
  text-transform: uppercase;
}

/* Completed seasons */
.profile-honors {
  border-color: var(--profile-line);
  background: var(--profile-panel);
}

.profile-honors > header {
  min-height: 68px;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid var(--profile-line);
}

.profile-honors header span {
  color: #788a92;
}

.profile-honors h3 {
  color: #fff;
}

.profile-honors-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profile-honor {
  display: grid;
  gap: 8px;
  min-height: 122px;
  align-content: center;
  padding: 18px 20px;
  border-right: 1px solid var(--profile-line);
}

.profile-honor:last-child {
  border-right: 0;
}

.profile-honor small {
  color: #788a92;
  font-size: .54rem;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-honor strong {
  font: 900 1.7rem/1 var(--display);
  text-transform: uppercase;
}

.profile-honor b {
  color: var(--gold);
  font-size: .65rem;
}

.profile-honor--empty {
  grid-column: 1 / -1;
  min-height: 104px;
  color: #82949b;
  line-height: 1.6;
}

.profile-final-call {
  padding: 62px 0;
  text-align: center;
  background: #0a1116;
}

.profile-final-call .op-kicker {
  justify-content: center;
}

.profile-final-call h2 {
  margin: 0;
  font: 900 clamp(2.4rem, 4vw, 4rem)/.9 var(--display);
  text-transform: uppercase;
}

.profile-final-call h2 em {
  color: var(--red);
  font-style: normal;
}

.profile-final-call .section-shell > div {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.profile-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 120;
  max-width: min(390px, calc(100% - 40px));
  padding: 13px 16px;
  border: 1px solid rgba(104, 245, 170, .35);
  color: #dfffee;
  background: rgba(7, 18, 14, .96);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .34);
  font-size: .72rem;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease;
}

.profile-toast.is-visible {
  opacity: 1;
  transform: none;
}

.profile-toast.is-error {
  border-color: rgba(255, 49, 86, .45);
  color: #ffdce3;
  background: rgba(28, 8, 13, .97);
}

.profile-page :is(.profile-record-link, .profile-owner-rail a, .profile-recent-item, .profile-contribution, .profile-room-map a, .profile-section-nav a) {
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}

.profile-page :is(.profile-record-link, .profile-owner-rail a, .profile-recent-item, .profile-contribution, .profile-room-map a):hover {
  color: var(--red);
}

@keyframes profile-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1120px) {
  .profile-hero-shell {
    grid-template-columns: minmax(0, 1fr) minmax(350px, .8fr);
    gap: 22px;
  }

  .profile-nameplate h1 {
    font-size: clamp(2.8rem, 5.3vw, 4.25rem);
  }

  .profile-community-console {
    grid-template-columns: minmax(0, 1fr) 260px;
  }

  .profile-weapons-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .profile-weapon-stat:nth-child(5n) {
    border-right: 1px solid var(--profile-line);
  }

  .profile-weapon-stat:nth-child(4n) {
    border-right: 0;
  }
}

@media (max-width: 920px) {
  .profile-hero {
    padding-top: calc(var(--nav-h) + 28px);
  }

  .profile-hero-shell {
    grid-template-columns: 1fr;
  }

  .profile-identification {
    padding-bottom: 0;
  }

  .profile-live-record {
    width: 100%;
  }

  .profile-owner-rail .section-shell {
    align-items: flex-start;
    flex-direction: column;
    padding: 13px 0;
  }

  .profile-section-head {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .profile-highlight-rail,
  .profile-xp-summary,
  .profile-community-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-highlight:nth-child(2n),
  .profile-xp-summary > div:nth-child(2n),
  .profile-community-summary > div:nth-child(2n) {
    border-right: 0;
  }

  .profile-highlight:nth-child(-n+2),
  .profile-xp-summary > div:nth-child(-n+2),
  .profile-community-summary > div:nth-child(-n+2) {
    border-bottom: 1px solid rgba(8, 24, 32, .12);
  }

  .profile-season-layout {
    grid-template-columns: 1fr;
  }

  .profile-chase {
    min-height: 220px;
  }

  .profile-chase > p {
    margin-top: 28px;
  }

  .profile-field-sheet dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-field-sheet dl > div:nth-child(3n) {
    border-right: 1px solid var(--profile-line);
  }

  .profile-field-sheet dl > div:nth-child(2n) {
    border-right: 0;
  }

  .profile-field-sheet dl > div:nth-last-child(-n+3) {
    border-bottom: 1px solid var(--profile-line);
  }

  .profile-field-sheet dl > div:nth-last-child(-n+2) {
    border-bottom: 0;
  }

  .profile-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-stat:nth-child(4n) {
    border-right: 1px solid var(--profile-line);
  }

  .profile-stat:nth-child(3n) {
    border-right: 0;
  }

  .profile-community-console {
    grid-template-columns: 1fr;
  }

  .profile-room-map {
    width: 100%;
  }

  .profile-honors-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-honor:nth-child(2n) {
    border-right: 0;
  }

  .profile-honor:nth-child(-n+2) {
    border-bottom: 1px solid var(--profile-line);
  }
}

@media (max-width: 680px) {
  .profile-state-actions,
  .profile-final-call .section-shell > div {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-hero {
    padding-bottom: 24px;
  }

  .profile-preview-ribbon {
    width: calc(100% - 28px);
  }

  .profile-identity-line {
    align-items: flex-start;
    gap: 15px;
  }

  .profile-avatar-frame {
    width: 88px;
    height: 88px;
    flex-basis: 88px;
  }

  .profile-nameplate h1 {
    margin-top: 5px;
    font-size: clamp(2.35rem, 11.5vw, 3.35rem);
  }

  .profile-badges {
    gap: 4px;
  }

  .profile-badge {
    min-height: 22px;
    padding-inline: 7px;
    font-size: .49rem;
  }

  .profile-bio {
    margin-top: 17px;
  }

  .profile-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-actions .ctv-action {
    width: 100%;
    min-width: 0;
  }

  .profile-owner-rail div {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-section-nav {
    justify-content: flex-start;
  }

  .profile-section-nav a {
    padding-inline: 18px;
  }

  .profile-overview,
  .profile-tacticool,
  .profile-community,
  .profile-progress {
    padding: 46px 0;
  }

  .profile-section-head {
    margin-bottom: 22px;
  }

  .profile-section-head h2 {
    font-size: clamp(2.15rem, 10vw, 3rem);
  }

  .profile-xp-history {
    grid-template-columns: 1fr;
  }

  .profile-xp-entry,
  .profile-xp-entry:nth-child(2n) {
    padding-left: 0;
    border-right: 0;
  }

  .profile-recent-list {
    grid-template-columns: 1fr;
  }

  .profile-owner-next,
  .profile-stats-owner {
    grid-template-columns: 1fr;
  }

  .profile-owner-next-index {
    display: none;
  }

  .profile-field-sheet dl {
    grid-template-columns: 1fr;
  }

  .profile-field-sheet dl > div,
  .profile-field-sheet dl > div:nth-child(2n),
  .profile-field-sheet dl > div:nth-child(3n),
  .profile-field-sheet dl > div:nth-last-child(-n+2),
  .profile-field-sheet dl > div:nth-last-child(-n+3) {
    border-right: 0;
    border-bottom: 1px solid var(--profile-line);
  }

  .profile-field-sheet dl > div:last-child {
    border-bottom: 0;
  }

  .profile-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-stat:nth-child(3n),
  .profile-stat:nth-child(4n) {
    border-right: 1px solid var(--profile-line);
  }

  .profile-stat:nth-child(2n) {
    border-right: 0;
  }

  .profile-weapons-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-weapon-stat:nth-child(4n),
  .profile-weapon-stat:nth-child(5n) {
    border-right: 1px solid var(--profile-line);
  }

  .profile-weapon-stat:nth-child(2n) {
    border-right: 0;
  }

  .profile-contribution,
  .profile-contribution.has-thumb,
  .profile-contribution:has(.profile-contribution-thumb) {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .profile-contribution-thumb,
  .profile-contribution-meta {
    display: none;
  }

  .profile-honors > header,
  .profile-stats-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-capture-state {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .profile-identity-line {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .profile-avatar-frame {
    width: 76px;
    height: 76px;
    flex-basis: 76px;
  }

  .profile-nameplate h1 {
    font-size: 2.3rem;
  }

  .profile-actions {
    grid-template-columns: 1fr;
  }

  .profile-highlight-rail,
  .profile-xp-summary,
  .profile-community-summary {
    grid-template-columns: 1fr;
  }

  .profile-highlight,
  .profile-highlight:nth-child(2n),
  .profile-xp-summary > div,
  .profile-xp-summary > div:nth-child(2n),
  .profile-community-summary > div,
  .profile-community-summary > div:nth-child(2n) {
    border-right: 0;
    border-bottom: 1px solid rgba(8, 24, 32, .12);
  }

  .profile-highlight:last-child,
  .profile-xp-summary > div:last-child,
  .profile-community-summary > div:last-child {
    border-bottom: 0;
  }

  .profile-stats-grid,
  .profile-weapons-grid,
  .profile-honors-list {
    grid-template-columns: 1fr;
  }

  .profile-stat,
  .profile-stat:nth-child(2n),
  .profile-stat:nth-child(3n),
  .profile-stat:nth-child(4n),
  .profile-weapon-stat,
  .profile-weapon-stat:nth-child(2n),
  .profile-weapon-stat:nth-child(4n),
  .profile-weapon-stat:nth-child(5n),
  .profile-honor,
  .profile-honor:nth-child(2n) {
    border-right: 0;
  }

  .profile-honor {
    border-bottom: 1px solid var(--profile-line);
  }

  .profile-honor:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-page *,
  .profile-page *::before,
  .profile-page *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
