/* Halaman akun — gaya sendiri, semuanya memakai token dari theme.css. */

.acct-page { padding-top: 34px; }

.acct { margin-top: 6px; padding: 20px 22px; }

/* Tiga keadaan memakai satu baris status: memeriksa, gagal, atau salah satu
   panel di bawahnya. `[hidden]` dipaksa theme.css, jadi tidak ada display:flex
   yang bisa menimpanya. */
.acct-state {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}

.acct-h {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
}

.acct-p {
  margin: 0 0 14px;
  max-width: 62ch;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-soft);
}

.acct-actions { margin: 0; }

/* ---------- identitas ---------- */

.acct-id {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.acct-avatar {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  object-fit: cover;
  background: rgba(255, 255, 255, .05);
}

.acct-id-text { min-width: 0; flex: 1 1 200px; }

.acct-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.2;
  /* Nama Steam bisa panjang tanpa spasi; jangan sampai mendorong tombol keluar. */
  overflow-wrap: anywhere;
}

.acct-ids {
  margin: 3px 0 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---------- angka ---------- */

.acct-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 10px;
  margin: 18px 0 0;
}

.acct-stat {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .03);
}

.acct-stat span {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
}

.acct-stat b {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
}

.acct-rank { display: flex; align-items: center; gap: 8px; }
.acct-rank img { width: 26px; height: 26px; }
.acct-rank b { margin-top: 0; font-family: var(--font-mono); font-size: 14px; }

/* ---------- catatan (data privat / gagal) ---------- */

.acct-note {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--copper);
  border-radius: 10px;
  background: rgba(194, 106, 46, .07);
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-soft);
}

.acct-note strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13.5px;
  color: var(--text);
}

.acct-note p { margin: 0 0 6px; }
.acct-note p:last-child { margin-bottom: 0; }
.acct-note a { color: var(--amber); }

.acct-fine { font-size: 11.5px; color: var(--dim); }

/* ---------- pertandingan terakhir ---------- */

.acct-matches {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.acct-match {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .02);
  font-size: 12.5px;
}

/* Kiri: siapa menang. Warna bukan satu-satunya penanda — teks verdict selalu ada. */
.acct-match.is-win { border-left: 2px solid #6ee7a8; }
.acct-match.is-loss { border-left: 2px solid #ff7a6b; }

.acct-match img {
  width: 44px;
  height: 26px;
  object-fit: cover;
  border-radius: 4px;
  background: rgba(255, 255, 255, .05);
}

.acct-hero { min-width: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.acct-hero-n { color: var(--text); }
.acct-verdict { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; }
.acct-verdict--win { color: #6ee7a8; }
.acct-verdict--loss { color: #ff7a6b; }

.acct-kda { font-family: var(--font-mono); font-size: 12px; color: var(--text-soft); }

.acct-when {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--dim);
  white-space: nowrap;
}

@media (max-width: 620px) {
  .acct { padding: 16px; }
  .acct-match { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .acct-when { display: none; }
}
