/* Player stats page fixes loaded after the global design system. */
.metric-grid.account-summary-grid{
  width:100%!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
}
.runeprofile-panel{
  display:block!important;
  width:100%;
  margin:0 0 28px!important;
}
section.stats-stack-panel + section.stats-stack-panel{
  margin-top:32px!important;
}
.runeprofile-summary{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
}
.runeprofile-activity-grid{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
}

@media(max-width:1050px){
  .metric-grid.account-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .runeprofile-summary,.runeprofile-activity-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:720px){
  .metric-grid.account-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:430px){
  .metric-grid.account-summary-grid,
  .runeprofile-summary,
  .runeprofile-activity-grid{grid-template-columns:1fr!important}
}

.runeprofile-activity.has-icon{
  display:grid;
  grid-template-columns:48px minmax(0,1fr);
  align-items:center;
  gap:12px;
}
.runeprofile-activity-icon{
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:color-mix(in srgb,var(--accent) 7%,var(--surface-3));
  border:1px solid var(--line);
  overflow:hidden;
}
.runeprofile-activity-icon img{
  width:40px;
  height:40px;
  object-fit:contain;
  image-rendering:auto;
}
.runeprofile-activity-copy{min-width:0}
.runeprofile-activity.has-icon strong{margin-top:7px}

@media(max-width:430px){
  .runeprofile-activity.has-icon{grid-template-columns:42px minmax(0,1fr)}
  .runeprofile-activity-icon{width:42px;height:42px}
  .runeprofile-activity-icon img{width:34px;height:34px}
}

/* Locale wrappers inside metric values must inherit the large value typography.
   portal.css has a broad .metric-card span rule intended only for labels. */
.metric-card > span{
  display:block;
  color:var(--muted);
  font-size:11px;
  font-weight:650;
}
.metric-card > strong,
.metric-card > strong > [data-local-number],
.metric-card > strong > [data-local-compact]{
  display:block;
  color:var(--text);
  font-size:clamp(20px,2.3vw,30px);
  font-weight:700;
  line-height:1.15;
  letter-spacing:-.035em;
}
.metric-card > small,
.metric-card > small [data-local-number]{
  color:var(--muted);
  font-size:11px;
  font-weight:400;
}
.runeprofile-summary-card strong{
  font-size:21px!important;
  line-height:1.2;
}
.runeprofile-summary-card small{
  font-size:10px!important;
  line-height:1.45;
}
