:root{
  --bg:#f6f7fb; --panel:#ffffff; --panel2:#f1f3f9; --txt:#1a1d29; --muted:#6b7280;
  --brand:#d6a400; --brand2:#ffd84f; --accent:#ffe08a;
  --stroke:#e5e7ef; --stroke2:#d9dce7;
}

.profile-wrap{display:flex;flex-direction:column;gap:18px}
.top{display:flex;gap:18px;align-items:center;background:var(--panel);border:1px solid var(--stroke);border-radius:18px;padding:16px}
.avatar{width:96px;height:96px;border-radius:12px}
.meta{flex:1;min-width:0}
.name-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.name{margin:0;font-size:28px;line-height:1}
.badges{display:flex;gap:8px;flex-wrap:wrap}
.badge{border:1px solid;color:#111;padding:2px 8px;border-radius:999px;font-size:12px;font-weight:800;background:#fff}

.line{margin-top:6px;color:#374151}
.muted{color:var(--muted);font-size:13px;margin-top:4px}

.player-search{display:flex;gap:8px;align-items:center;position:relative}
.player-search input{background:#fff;border:1px solid var(--stroke);color:#111;padding:8px 10px;border-radius:10px;min-width:220px;outline:none}
.player-search button{background:var(--brand);border:0;color:#111;padding:8px 12px;border-radius:10px;cursor:pointer;font-weight:800}
.suggestions{position:absolute;top:44px;left:0;right:0;background:#fff;border:1px solid var(--stroke);border-radius:12px;display:none;max-height:240px;overflow:auto}

.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.card{background:var(--panel);border:1px solid var(--stroke);border-radius:16px;padding:14px;display:flex;justify-content:space-between;align-items:center}
.card .title{font-weight:800}
.card .sub{color:var(--muted);font-size:12px}
.card .stat{font-weight:800;font-size:22px;text-align:right}
.card .label{color:var(--muted);font-size:12px;text-align:right}

.section-title{margin:8px 0 6px;font-weight:800}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.table{display:grid;gap:8px}
.row{display:flex;justify-content:space-between;gap:10px}
.k{color:var(--muted)}
.v{font-weight:600}

@media (max-width:900px){
  .cards{grid-template-columns:repeat(2,1fr)}
  .grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:600px){
  .top{flex-direction:column;align-items:flex-start}
  .cards,.grid{grid-template-columns:1fr}
}
