.profile-page { max-width: 620px; margin: 0 auto; padding-bottom: var(--content-bottom); }

.profile-header { padding-bottom: 18px; background: radial-gradient(90% 55% at 50% 0%, rgba(90,28,45,0.22), transparent 70%); }
.identity { position: relative; width: 104px; margin: 26px auto 0; }
.profile-avatar { width: 104px; height: 104px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.status-dot { position: absolute; right: 8px; bottom: 12px; width: 12px; height: 12px; border: 2px solid var(--bg); border-radius: 50%; background: var(--online); }
.level-badge {
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-raised);
  color: var(--gold);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.profile-header h1 { margin: 18px var(--page-gutter) 0; font-family: var(--font-serif); font-size: 30px; font-weight: 600; text-align: center; }
.handle { margin-top: 2px; color: var(--text-muted); font-size: 12px; text-align: center; }
.title-progress { margin: 12px var(--page-gutter) 0; color: #d7cfc9; font-size: 12px; text-align: center; }
.title-progress span { color: var(--text-muted); }
.edit-nickname { display: block; margin: 10px auto 0; padding: 0; border: 0; background: none; color: var(--accent-text); font-size: 12px; }

.profile-content { padding: 0 var(--page-gutter); }
.stats-card { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); border-radius: var(--card-radius); background: var(--surface); overflow: hidden; }
.stats-card > div { display: grid; justify-items: center; gap: 3px; padding: 18px 4px; }
.stats-card > div + div { border-left: 1px solid var(--border); }
.stats-card strong { font-size: 24px; font-variant-numeric: tabular-nums; }
.stats-card span { color: var(--text-muted); font-size: 11px; }
.stats-note { margin-top: 9px; color: #777176; font-size: 11px; }

.rank-card { display: flex; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: var(--card-radius); background: var(--surface); }
.rank-emblem { width: 54px; height: 62px; display: grid; place-items: center; flex: none; border: 1px solid rgba(212,172,91,0.35); border-radius: 12px 12px 20px 20px; background: linear-gradient(160deg, #3a2a1b, #151316); color: var(--gold); }
.rank-emblem .icon { width: 27px; height: 27px; }
.rank-copy { flex: 1; min-width: 0; }
.rank-title-line { display: flex; justify-content: space-between; gap: 8px; }
.rank-title-line strong { font-size: 15px; }
.rank-title-line span { color: var(--gold); font-size: 12px; font-variant-numeric: tabular-nums; }
.rank-bar { height: 6px; margin-top: 10px; border-radius: 8px; background: #2a282b; overflow: hidden; }
.rank-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8b6a31, var(--gold)); }
.rank-copy small { display: block; margin-top: 6px; color: var(--text-muted); font-size: 11px; }

.award-card { display: flex; align-items: center; gap: 13px; padding: 16px; border: 1px dashed #4a4548; border-radius: var(--card-radius); background: rgba(24,24,27,0.55); }
.award-icon { width: 44px; height: 44px; display: grid; place-items: center; flex: none; border: 1px solid var(--border); border-radius: 12px; color: var(--gold); }
.award-card > div { display: grid; gap: 3px; min-width: 0; }
.award-card strong { font-size: 13px; }
.award-card small { color: var(--text-muted); font-size: 11px; }
.awards-section .text-link { margin-top: 12px; }
.version-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px 9px;
  margin: 22px 0 4px;
  color: #6f6a70;
  font-size: 11px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.version-text { line-height: 1.5; }
.version-download { display: inline-block; margin-top: 6px; color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
.version-update-button {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid rgba(232,128,153,0.7);
  border-bottom-color: rgba(255,200,215,0.9);
  border-radius: 8px;
  background: rgba(162,28,54,0.24);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.06), 0 2px 6px rgba(0,0,0,0.28);
  color: var(--accent-text);
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
}
.version-update-button .icon { width: 13px; height: 13px; }
.version-update-button:disabled { opacity: 0.55; cursor: default; }
.version-update { max-width: 250px; margin: 8px auto 0; }
.version-update-progress { height: 5px; border-radius: 8px; background: #2a282b; overflow: hidden; }
.version-update-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #a21c36, #e88099); transition: width 180ms ease; }
.version-update-progress.is-indeterminate i { width: 35%; animation: update-loading 1.1s ease-in-out infinite; }
@keyframes update-loading {
  from { transform: translateX(-100%); }
  to { transform: translateX(285%); }
}
.version-update-status { display: block; margin-top: 6px; color: var(--text-muted); font-size: 10px; text-align: center; }
