/* GuN Stats Bridge v0.0.0.31 — MOH ARENA player profile.
   Uses the shared gold/charcoal color system from the leaderboard page. */

.moh-arena-player-page > .wrap,
.moh-arena-player-page > .page-shell{
  max-width:1280px;
  margin:0 auto;
  padding-left:clamp(14px,2vw,28px);
  padding-right:clamp(14px,2vw,28px);
}

.gun-player-profile-frame{
  padding:16px 0 58px;
  background:transparent;
  border:0;
  box-shadow:none;
}

.gun-player-profile-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:16px 0 12px;
}

.gun-player-back-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:38px;
  padding:0 14px;
  border:1px solid var(--border-2);
  border-radius:999px;
  background:var(--panel);
  color:var(--muted);
  text-decoration:none;
  font:700 12px/1 'Inter',system-ui,sans-serif;
  letter-spacing:.8px;
  text-transform:uppercase;
  transition:color .2s,border-color .2s,box-shadow .2s,background .2s;
}
.gun-player-back-link:hover,
.gun-player-back-link:focus-visible{
  color:var(--accent);
  border-color:var(--accent);
  box-shadow:0 0 0 1px var(--accent-soft);
  background:var(--panel);
  outline:none;
}
.gun-player-back-link .ti{font-size:15px;color:var(--accent)}

.gun-player-hero-card{
  display:block;
  padding:18px 20px;
  border:1px solid var(--border);
  border-radius:14px;
  background:linear-gradient(135deg,var(--panel),var(--panel-2));
  box-shadow:0 18px 45px rgba(0,0,0,.18);
}

.gun-player-title-row{
  display:block;
  min-width:0;
}
.gun-player-title-block{min-width:0}
.gun-player-title-block .gun-kicker{
  display:block;
  margin-bottom:5px;
  color:var(--accent);
  font:700 11px/1 'Inter',system-ui,sans-serif;
  letter-spacing:2px;
  text-transform:uppercase;
}
.gun-player-title-block h1{
  margin:0;
  color:var(--text);
  font-family:'Saira Condensed',sans-serif;
  font-weight:800;
  font-size:clamp(32px,3.1vw,52px);
  line-height:.9;
  letter-spacing:.5px;
  text-transform:uppercase;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.gun-player-subline{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin:12px 0 0;
  color:var(--muted);
  font:700 12px/1.35 'Inter',system-ui,sans-serif;
}
.gun-player-subline span{
  display:inline-flex;
  align-items:center;
  min-width:0;
  gap:5px;
}
.gun-player-subline .ti{font-size:14px;color:var(--accent)}

.moh-arena-player-page .gun-player-filter-panel{
  margin-top:12px;
}
.moh-arena-player-page .gun-player-filter-panel .moh-filter-update{
  justify-self:center!important;
  align-items:center!important;
  text-align:center!important;
}
.moh-arena-player-page .gun-player-filter-panel .moh-filter-group:last-child{
  justify-self:end!important;
  align-items:flex-start!important;
  text-align:left!important;
}

.gun-player-stat-grid{
  display:grid;
  grid-template-columns:repeat(8,minmax(0,1fr));
  gap:8px;
  margin-top:12px;
}
.gun-player-stat-card{
  min-width:0;
  padding:11px;
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--panel);
  transition:border-color .2s,transform .2s,background .2s;
}
.gun-player-stat-card:hover{
  border-color:var(--border-2);
  background:var(--panel-2);
  transform:translateY(-1px);
}
.gun-player-stat-card span,
.gun-player-stat-card small{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.gun-player-stat-card span{
  color:var(--dim);
  font:800 10px/1 'Inter',system-ui,sans-serif;
  letter-spacing:1px;
  text-transform:uppercase;
}
.gun-player-stat-card strong{
  display:block;
  margin-top:7px;
  color:var(--accent);
  font:800 clamp(16px,1.25vw,22px)/1 'JetBrains Mono',monospace;
  white-space:nowrap;
}
.gun-player-stat-card small{
  margin-top:7px;
  color:var(--muted);
  font:600 11px/1.2 'Inter',system-ui,sans-serif;
}

.gun-player-analysis-grid,
.gun-player-detail-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-top:12px;
}
.gun-player-detail-grid{grid-template-columns:1fr}
.gun-player-panel{
  min-width:0;
  padding:14px;
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--panel);
}
.gun-player-panel header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:11px;
}
.gun-player-panel h2,
.gun-player-rank-list h3{
  margin:0;
  color:var(--text);
  font-family:'Saira Condensed',sans-serif;
  font-weight:800;
  font-size:21px;
  line-height:1;
  letter-spacing:1.2px;
  text-transform:uppercase;
}
.gun-player-rank-list h3{
  margin-bottom:8px;
  color:var(--accent);
  font-size:17px;
}

.gun-player-weapon-panel,
.gun-player-body-location-panel{
  grid-column:1 / -1;
}
.gun-player-weapon-group-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.gun-player-weapon-card{
  min-width:0;
  padding:11px;
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--panel-2);
}
.gun-player-weapon-card h3{
  margin:0 0 9px;
  color:var(--accent);
  font-family:'Saira Condensed',sans-serif;
  font-weight:800;
  font-size:18px;
  line-height:1;
  letter-spacing:1.2px;
  text-transform:uppercase;
}
.gun-player-weapon-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) 42px 42px 50px 50px;
  gap:6px;
  align-items:center;
  margin-bottom:6px;
  padding:0 4px;
  color:var(--dim);
  font:800 9px/1 'Inter',system-ui,sans-serif;
  letter-spacing:.8px;
  text-transform:uppercase;
}
.gun-player-weapon-head span:nth-child(n+2){text-align:right}
.gun-player-weapon-list{
  display:grid;
  gap:6px;
}
.gun-player-weapon-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 42px 42px 50px 50px;
  gap:6px;
  align-items:center;
  min-height:34px;
  padding:7px 8px;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--panel);
}
.gun-player-weapon-name{
  overflow:hidden;
  color:var(--text);
  font:800 11px/1.2 'Inter',system-ui,sans-serif;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.gun-weapon-count{
  display:grid;
  justify-items:end;
  align-content:center;
  min-width:0;
}
.gun-weapon-count strong{
  font:800 12px/1 'JetBrains Mono',monospace;
  white-space:nowrap;
}
.gun-weapon-shot strong,
.gun-weapon-bash strong{color:var(--accent)}
.gun-weapon-killed strong,
.gun-weapon-bashed strong{color:var(--loss)}

/* v0.0.0.21 — body-location and combat breakdown cards */
.gun-player-body-group-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.gun-player-body-group-card{
  min-width:0;
  padding:11px;
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--panel-2);
}
.gun-player-body-group-card h3{
  margin:0 0 9px;
  color:var(--accent);
  font-family:'Saira Condensed',sans-serif;
  font-weight:800;
  font-size:18px;
  line-height:1;
  letter-spacing:1.2px;
  text-transform:uppercase;
}
.gun-player-body-location-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) 50px 68px;
  gap:7px;
  align-items:center;
  margin-bottom:6px;
  padding:0 4px;
  color:var(--dim);
  font:800 9px/1 'Inter',system-ui,sans-serif;
  letter-spacing:.8px;
  text-transform:uppercase;
}
.gun-player-body-location-head span:nth-child(2),
.gun-player-body-location-head span:nth-child(3){text-align:right}
.gun-player-body-location-list{
  display:grid;
  gap:6px;
}
.gun-player-body-location-row{
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--panel);
}
.gun-player-body-location-compare-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 50px 68px;
  gap:7px;
  align-items:center;
  min-height:34px;
  padding:7px 8px;
}
.gun-player-body-location-name{
  overflow:hidden;
  color:var(--text);
  font:800 11px/1.2 'Inter',system-ui,sans-serif;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.gun-body-count{
  display:grid;
  justify-items:end;
  align-content:center;
  min-width:0;
}
.gun-body-count strong{
  font:800 12px/1 'JetBrains Mono',monospace;
  white-space:nowrap;
}
.gun-body-count-kills strong{color:var(--accent)}
.gun-body-count-killed-by strong{color:var(--loss)}

@media(max-width:1220px){
  .gun-player-weapon-group-grid{grid-template-columns:1fr}
  .gun-player-body-group-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:680px){
  .gun-player-weapon-head,.gun-player-weapon-row{grid-template-columns:minmax(0,1fr) 36px 36px 44px 44px;gap:5px}
  .gun-player-body-group-grid{grid-template-columns:1fr}
}

.gun-player-mini-tables{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.gun-player-rank-list{
  min-width:0;
  padding:12px;
  border:1px solid var(--border);
  border-radius:13px;
  background:var(--panel-2);
}
.gun-player-rank-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-height:30px;
  padding:7px 0;
  border-bottom:1px solid var(--border);
  color:var(--muted);
  font:600 12px/1.25 'Inter',system-ui,sans-serif;
}
.gun-player-rank-row:last-child{border-bottom:0}
.gun-player-rank-name{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.gun-player-rank-name b{
  display:inline-grid;
  flex:0 0 22px;
  width:22px;
  height:22px;
  place-items:center;
  border:1px solid var(--border);
  border-radius:999px;
  color:var(--accent);
  background:rgba(255,255,255,.03);
  font:900 10px/1 'JetBrains Mono',monospace;
}
.gun-player-rank-row strong{
  color:var(--text);
  font:800 11px/1 'JetBrains Mono',monospace;
  white-space:nowrap;
}
.gun-empty-note{
  margin:0;
  color:var(--muted);
  font:600 13px/1.5 'Inter',system-ui,sans-serif;
}

@media(max-width:1180px){
  .gun-player-stat-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .gun-player-detail-grid,.gun-player-analysis-grid{grid-template-columns:1fr}
  .gun-player-mini-tables{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:900px){
  .moh-arena-player-page .gun-player-filter-panel{grid-template-columns:1fr}
  .moh-arena-player-page .gun-player-filter-panel .moh-filter-update,
  .moh-arena-player-page .gun-player-filter-panel .moh-filter-group:last-child{
    justify-self:stretch!important;
    align-items:stretch!important;
    text-align:left!important;
  }
}
@media(max-width:680px){
  .gun-player-profile-frame{padding-top:10px}
  .gun-player-title-block h1{white-space:normal;font-size:36px}
  .gun-player-hero-card{padding:14px}
  .gun-player-stat-grid,.gun-player-mini-tables{grid-template-columns:1fr 1fr}
  .gun-player-rank-list{padding:10px}
}
@media(max-width:440px){
  .gun-player-stat-grid,.gun-player-mini-tables{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){.moh-arena-player-page *{animation:none!important;transition:none!important}}
