.account-page { max-width:1024px; padding-top:var(--section-gap); }
.account-panel { min-width:0; padding:clamp(var(--space-4),3.4vw,var(--space-6)); border:1px solid var(--line); border-radius:18px; background:var(--panel); }
.profile-card h2 { font-size:var(--heading-section); }
.profile-card-head { display:flex; align-items:center; justify-content:space-between; gap:var(--space-3); flex-wrap:wrap; }
.account-submit { color:#071a2c; background:var(--blue); border-color:var(--blue); }
.account-submit:hover { color:#071a2c; background:#ade7ff; }
.profile-gameplay {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 25%);
  gap: var(--space-4); margin-top: var(--space-4);
}
.activity-card { position: relative; }
.activity-year { color: var(--muted); font-size: var(--text-small); font-variant-numeric: tabular-nums; }
.activity-scroll { overflow-x: auto; overscroll-behavior-x: contain; margin: var(--space-4) -3px 0; }
.activity-calendar { min-width: 548px; padding: 3px; }
.activity-months, .activity-days { display: grid; grid-template-columns: repeat(var(--weeks), minmax(0, 1fr)); gap: 3px; }
.activity-months { margin-bottom: var(--space-2); color: var(--muted); font-size: .68rem; line-height: 1.25; white-space: nowrap; }
.activity-days { grid-template-rows: repeat(7, auto); }
.activity-cell { display: block; min-width: 0; padding: 0; border: 1px solid #668ac23d; border-radius: 2px; background: transparent; }
button.activity-cell { width: 100%; aspect-ratio: 1; cursor: crosshair; }
button.activity-cell:focus-visible { position: relative; z-index: 1; outline-offset: 1px; }
button.activity-cell:hover { border-color: var(--focus); }
.activity-cell[data-level="1"] { background: #9bddfb; border-color: #9bddfb; }
.activity-cell[data-level="2"] { background: #60abdb; border-color: #60abdb; }
.activity-cell[data-level="3"] { background: #4479bd; border-color: #4479bd; }
.activity-cell[data-level="4"] { background: #514689; border-color: #8577c0; }
.activity-tooltip {
  position: absolute; z-index: 2; transform: translate(-50%, -100%); pointer-events: none;
  width: max-content; max-width: calc(100% - var(--space-4)); padding: var(--space-1) var(--space-2);
  border: 1px solid var(--line); border-radius: 6px; background: var(--callout);
  color: var(--text); font-size: var(--text-caption); text-align: center; box-shadow: 0 4px 16px #02040ca6;
}
.activity-legend { display: flex; align-items: center; justify-content: end; gap: 5px; margin-top: var(--space-3); color: var(--muted); font-size: var(--text-caption); }
.activity-legend .activity-cell { width: 10px; height: 10px; }
.profile-stat-list { margin: var(--space-3) 0; }
.profile-stat-list div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-2); padding: 6px 0; }
.profile-stat-list div + div { border-top: 1px solid var(--hairline); }
.profile-stat-list dt { color: var(--muted); font-size: var(--text-small); }
.profile-stat-list dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.profile-rating-back, .profile-rating-link { display: inline-flex; align-items: center; gap: var(--space-2); }
.profile-rating-link { font-size: var(--text-small); text-decoration: none; }
.profile-rating-chevron {
  width: 16px; height: 16px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  transform: rotate(-90deg);
}
.profile-rating-back .profile-rating-chevron { transform: rotate(90deg); }
.profile-rating-link:hover { text-decoration: underline; }

@media(max-width:880px){.profile-gameplay{grid-template-columns:minmax(0,1fr);}}
