/* Player profiles retain the site's DOS palette and keyboard-first controls. */
.profile-game { margin-top: 26px; }
.profile-game-heading, .profile-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.profile-game-heading h2 { margin: 5px 0 0; font-size: 18px; }
.profile-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12px; }
.profile-actions a { padding: 9px 12px; border: 1px solid var(--line); text-decoration: none; }
.profile-actions .profile-action-primary { color: var(--bg, #080710); background: var(--accent); border-color: var(--accent); font-weight: 700; }
.profile-fighter-summary { display: grid; grid-template-columns: 1.2fr .8fr 1fr 1fr 1fr; border: 1px solid var(--line); background: var(--panel-2); }
.profile-fighter-summary > div { display: flex; flex-direction: column; justify-content: center; gap: 8px; min-width: 0; padding: 18px 14px; border-right: 1px solid var(--line); }
.profile-fighter-summary > div:last-child { border: 0; }
.profile-fighter-summary span, .profile-fighter-summary small, .profile-fine-print { color: var(--muted); font-size: 12px; line-height: 1.5; }
.profile-fighter-summary strong { font-size: clamp(21px, 2.2vw, 28px); line-height: 1.1; font-variant-numeric: tabular-nums; }
.profile-fighter-summary .profile-best-streak { background: radial-gradient(ellipse at center, #ff9c4815, transparent 80%); }
.profile-best-streak strong { color: #ffb26a; text-shadow: 0 0 16px #ff9c4844; }
.profile-panel { padding: 22px; border: 1px solid var(--line); background: var(--panel); min-width: 0; }
.profile-panel h3, .profile-showcase h3 { font-size: 16px; margin: 0 0 16px; }
.profile-panel-heading h3 { margin: 0; }
.profile-panel-heading > span, .profile-panel-heading > a { font-size: 12px; }
.profile-showcase { margin: 26px 0; }
.profile-trophy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.profile-trophy { border: 1px solid var(--line); background: var(--panel-2); min-width: 0; }
.profile-trophy summary { display: flex; align-items: center; flex-direction: column; gap: 8px; padding: 18px 12px; text-align: center; cursor: pointer; list-style: none; }
.profile-trophy summary::-webkit-details-marker { display: none; }
.profile-trophy summary::after { content: "View award +"; color: var(--accent); font-size: 11px; margin-top: 4px; }
.profile-trophy[open] summary::after { content: "Close award −"; }
.profile-trophy summary > img { width: 128px; height: 128px; object-fit: contain; margin-bottom: 4px; }
.profile-trophy summary strong { font-size: 14px; overflow-wrap: anywhere; }
.profile-trophy-fallback { height: 128px; display: grid; place-items: center; font-size: 70px; color: var(--accent); }
.profile-trophy > div { padding: 0 16px 16px; font-size: 13px; line-height: 1.5; }
.profile-trophy blockquote { margin: 12px 0 0; border-left: 2px solid var(--accent); padding-left: 10px; color: var(--muted); }
.profile-trophy:hover { border-color: var(--accent); }
.profile-combat-details { display: grid; gap: 18px; }
.profile-detail-grid, .profile-compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.profile-signature { display: flex; flex-direction: column; gap: 6px; padding: 12px 0 16px; }
.profile-signature strong { font-size: 17px; overflow-wrap: anywhere; }
.profile-signature > span:last-child { font-size: 12px; color: var(--muted); }
.profile-weapon-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.profile-weapon-bars li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; min-width: 0; }
.profile-weapon-bars img { width: 40px; height: 40px; object-fit: contain; image-rendering: pixelated; }
.profile-weapon-bars li > div { min-width: 0; }
.profile-weapon-label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12px; margin-bottom: 6px; }
.profile-weapon-label strong { overflow-wrap: anywhere; }
.profile-weapon-label > span { color: var(--muted); white-space: nowrap; }
.profile-weapon-track { height: 7px; background: var(--panel-2); }
.profile-weapon-track > span { display: block; width: var(--blade-width); height: 100%; background: var(--blade-color); }
.profile-weapon-fallback { display: grid; place-items: center; height: 40px; color: var(--muted); font-size: 25px; }
.profile-career-totals { margin: 0 0 18px; font-size: 13px; }
.profile-career-totals > div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.profile-career-totals dt { color: var(--muted); }
.profile-career-totals dd { margin: 0; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.profile-opponents { font-size: 12px; }
.profile-opponents th, .profile-opponents td { border-color: var(--line); padding: 8px 3px; }
.profile-opponents td { text-align: right; }
.profile-progress-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; }
.profile-progress-heading > span { color: var(--accent); }
.profile-progress progress { display: block; width: 100%; height: 10px; border: 0; background: var(--panel-2); color: var(--accent); accent-color: var(--accent); margin: 12px 0; }
.profile-progress progress::-webkit-progress-bar { background: var(--panel-2); }
.profile-progress progress::-webkit-progress-value { background: var(--accent); }
.profile-progress progress::-moz-progress-bar { background: var(--accent); }
.profile-board-progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.profile-board-progress > div { border: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.profile-board-progress span, .profile-board-progress small { color: var(--muted); font-size: 12px; }
.profile-board-progress strong { font-size: 21px; font-variant-numeric: tabular-nums; }
.profile-life-chart { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; padding: 0; margin: 0 0 18px; list-style: none; }
.profile-life-chart li { min-width: 0; }
.profile-life-chart a { display: flex; flex-direction: column; gap: 6px; align-items: stretch; text-align: center; text-decoration: none; font-size: 12px; }
.profile-life-chart strong { color: var(--text); }
.profile-life-chart small { font-size: 10px; color: var(--muted); }
.profile-life-chart-track { height: 82px; background: var(--panel-2); display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--line); }
.profile-life-chart-track > span { display: block; width: 65%; background: var(--accent); }
.profile-life-list details { border-top: 1px solid var(--line); scroll-margin-top: 18px; }
.profile-life-list summary { cursor: pointer; display: grid; grid-template-columns: 65px 1fr 1.4fr 75px 12px; gap: 12px; padding: 13px 0; list-style: none; font-size: 12px; align-items: baseline; }
.profile-life-list summary::-webkit-details-marker { display: none; }
.profile-life-list summary::after { content: "+"; color: var(--accent); }
.profile-life-list details[open] summary::after { content: "−"; }
.profile-life-list summary > span:last-child { text-align: right; color: var(--muted); }
.profile-life-list time { color: var(--muted); text-align: right; }
.profile-life-detail { padding: 0 12px 12px; border-left: 2px solid var(--accent); font-size: 13px; }
.profile-life-detail p { margin: 6px 0; }
.profile-rival-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.profile-rival-cards article { padding: 16px; border: 1px solid var(--line); background: var(--panel-2); min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.profile-rival-cards h4 { font-size: 16px; margin: 8px 0 0; overflow-wrap: anywhere; }
.profile-rival-cards p > strong { display: block; font-size: 25px; font-variant-numeric: tabular-nums; }
.profile-rival-cards p > span, .profile-rival-cards small { font-size: 11px; color: var(--muted); }
.profile-rival-cards article > a:last-child { margin-top: auto; padding-top: 16px; font-size: 12px; }
.profile-collection { margin-top: 24px; }
.profile-collection-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 18px 0; }
.profile-collection-controls label { display: flex; flex-direction: column; gap: 7px; font-size: 12px; flex: 1 1 130px; }
.profile-collection-controls select { width: 100%; min-width: 0; }
.profile-collection .member-profile-achievements { padding: 0; }
.profile-collection .member-profile-achievement { border-bottom: 1px solid var(--line); }
.profile-collection .member-profile-badge { width: 56px; height: 56px; }
.profile-collection [hidden], .profile-collection-controls[hidden] { display: none; }
.profile-showcase-field { margin: 20px 0; }
.profile-showcase-field label { display: block; margin-bottom: 8px; }
.profile-showcase-field select { width: 100%; }
.profile-compare-form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 24px 0; }
.profile-compare-form label { min-width: 0; overflow-wrap: anywhere; }
.profile-compare-form input { flex: 1; min-width: 160px; }
.profile-comparison-duel { text-align: center; padding: 24px; border: 1px solid var(--line); margin-bottom: 20px; background: var(--panel-2); overflow-wrap: anywhere; }
.profile-comparison-duel strong { display: flex; justify-content: center; gap: 20px; align-items: center; flex-wrap: wrap; font-size: 18px; }
.profile-comparison-duel strong span { color: var(--accent); font-size: 28px; white-space: nowrap; }
.profile-comparison-duel p { color: var(--muted); font-size: 12px; margin-bottom: 0; }
.profile-compare-grid h2 { margin: 0 0 18px; font-size: 21px; overflow-wrap: anywhere; }
.profile-new-player { font-size: 14px; line-height: 1.6; }
.profile-new-player strong { display: block; color: var(--accent); margin-bottom: 4px; }
.profile-trophy summary:focus-visible, .profile-life-list summary:focus-visible, .profile-life-chart a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 760px) {
    .profile-fighter-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .profile-fighter-summary > div { border-bottom: 1px solid var(--line); }
    .profile-fighter-summary > div:nth-child(3) { border-right: 0; }
    .profile-detail-grid, .profile-compare-grid { grid-template-columns: 1fr; }
    .profile-rival-cards { grid-template-columns: 1fr; }
    .profile-life-list summary { grid-template-columns: 60px 1fr 80px 12px; }
    .profile-life-list time { grid-column: 1 / -1; grid-row: 2; text-align: left; }
}
@media (max-width: 520px) {
    .profile-fighter-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .profile-fighter-summary > div:nth-child(3) { border-right: 1px solid var(--line); }
    .profile-fighter-summary > div:nth-child(even) { border-right: 0; }
    .profile-trophy-grid { grid-template-columns: 1fr; }
    .profile-board-progress { grid-template-columns: 1fr; }
    .profile-panel { padding: 16px; }
    .profile-life-chart { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .profile-opponents { font-size: 11px; }
}
