/* Punkte, Profil, Rangliste, Matchstatistik */
.profile-page { width: min(1100px, 100%); margin: 0 auto; padding: 20px 16px 40px; }
.profile-card h1 { margin: 0; }
.profile-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.profile-head .badge { background: rgba(200, 134, 42, 0.18); color: var(--brass-light); border: 1px solid var(--brass); border-radius: 12px; padding: 2px 10px; font-weight: 700; }
.ghost-link, .button-link { color: var(--brass-light); font-weight: 600; text-decoration: none; }
.ghost-link:hover { text-decoration: underline; }
.button-link { display: inline-block; padding: 8px 14px; border-radius: 8px; background: linear-gradient(180deg, var(--brass-light), var(--brass)); color: #1b1408; }
.stat-grid.wide { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); margin: 10px 0; }
.stats-links { display: flex; gap: 16px; margin-top: 10px; }
.stats-card .stat-grid + .note { margin: 6px 0 10px; }
.profile-details { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 10px 0 16px; }
.profile-details dt { color: var(--muted); }
.profile-details dd { margin: 0; display: flex; align-items: center; gap: 6px; }
.table-wrap { overflow-x: auto; }
.match-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.match-table th { text-align: left; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--panel-edge); white-space: nowrap; }
.match-table td { padding: 6px 8px; border-bottom: 1px solid rgba(255,255,255,0.05); white-space: nowrap; }
.match-table td .flag { vertical-align: middle; }
.match-table tr.clickable { cursor: pointer; }
.match-table tr.clickable:hover { background: rgba(255,255,255,0.04); }
.match-table tr.me { background: rgba(200, 134, 42, 0.12); }
.result-win td:last-child, .result-win td:nth-last-child(2) { color: #7fc48e; }
.match-table .result-assist td:nth-child(6) { color: #9fd0e6; }
.chart { width: 100%; height: auto; background: #121417; border: 1px solid var(--panel-edge); border-radius: 8px; }
.chart .grid { stroke: rgba(255,255,255,0.08); }
.chart .axis { fill: var(--muted); font-size: 11px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 6px 0 4px; font-size: 0.85rem; }
.chart-legend span { display: inline-flex; align-items: center; gap: 4px; }
.swatch { width: 14px; height: 4px; border-radius: 2px; display: inline-block; }
.swatch.c0 { background: #e0a33a; } .swatch.c1 { background: #5b9bd5; } .swatch.c2 { background: #d9534f; } .swatch.c3 { background: #6fbf73; }
.swatch.c4 { background: #b07cd8; } .swatch.c5 { background: #4fc1c1; } .swatch.c6 { background: #e07ab0; } .swatch.c7 { background: #a8a39a; }
.stats-events { max-height: none; padding: 0; }
.score-window.modal { max-width: 520px; }
.score-cats { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 12px; }
.score-cat { display: grid; grid-template-columns: 96px 1fr 70px; align-items: center; gap: 8px; font-size: 0.88rem; }
.score-cat strong { text-align: right; }
.score-cat .bar { height: 8px; background: #121417; border: 1px solid var(--panel-edge); border-radius: 4px; overflow: hidden; }
.score-cat .fill { height: 100%; background: linear-gradient(90deg, var(--brass), var(--brass-light)); }
.fill.w0 { width: 0%; }
.fill.w5 { width: 5%; }
.fill.w10 { width: 10%; }
.fill.w15 { width: 15%; }
.fill.w20 { width: 20%; }
.fill.w25 { width: 25%; }
.fill.w30 { width: 30%; }
.fill.w35 { width: 35%; }
.fill.w40 { width: 40%; }
.fill.w45 { width: 45%; }
.fill.w50 { width: 50%; }
.fill.w55 { width: 55%; }
.fill.w60 { width: 60%; }
.fill.w65 { width: 65%; }
.fill.w70 { width: 70%; }
.fill.w75 { width: 75%; }
.fill.w80 { width: 80%; }
.fill.w85 { width: 85%; }
.fill.w90 { width: 90%; }
.fill.w95 { width: 95%; }
.fill.w100 { width: 100%; }
.score-table { max-height: 44vh; overflow-y: auto; margin-bottom: 10px; }
.result-window.modal { max-width: 460px; text-align: center; }
.result-window h2 { font-size: 1.8rem; margin: 6px 0; }
.result-window.result-win h2, .result-window.result-assist h2 { color: var(--brass-light); }
.result-window.result-loss h2 { color: #e07a6c; }
.result-window .actions { display: flex; justify-content: center; gap: 10px; align-items: center; }
@media (max-width: 640px) {
  .profile-details { grid-template-columns: 1fr; gap: 2px; }
  .profile-details dd { margin-bottom: 6px; }
}
.profile-page a:not(.button-link) { color: var(--brass-light); text-decoration: none; }
.profile-page a:not(.button-link):hover { text-decoration: underline; }
