.player-overview {
  margin-bottom: 26px; border: 1px solid rgba(113,115,255,.4); border-radius: 28px; overflow: hidden;
  background: radial-gradient(ellipse at 92% 0%,rgba(97,43,244,.25),transparent 55%),linear-gradient(125deg,#122047,#0c1128 65%);
  box-shadow: 0 18px 65px rgba(23,34,128,.2),inset 0 1px rgba(255,255,255,.08);
}
.player-overview [hidden] { display: none !important; }
.player-overview-identity { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 24px; padding: 32px; }
.player-overview .profile-avatar, .player-overview .profile-avatar-fallback { width: 104px; height: 104px; border-radius: 28px; box-shadow: 0 0 0 5px rgba(118,139,255,.08); }
.player-overview h1 { overflow-wrap: anywhere; }
.player-overview .player-last-game { font-size: 12px; margin-top: 8px; color: var(--text-muted); }
.passport-player-meta { line-height: 1.7; }
.player-key-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 0 32px 24px; border: 1px solid rgba(146,158,223,.2); border-radius: 18px; overflow: hidden; background: rgba(4,8,24,.25); }
.player-stat { min-width: 0; padding: 22px; display: flex; flex-direction: column; gap: 9px; border-inline-start: 1px solid rgba(146,158,223,.16); }
.player-stat:first-child { border: 0; }
.player-stat-rating { background: linear-gradient(135deg,rgba(43,99,255,.65),rgba(92,42,241,.55)); }
.player-stat > span { color: #c1c9e7; font-size: 11px; font-weight: 700; }
.player-stat > strong { font-size: clamp(25px,3vw,38px); letter-spacing: -.04em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.player-stat > small { color: #aeb9da; font-size: 11px; line-height: 1.5; }
.player-stat-rating > small { color: #d5ddff; }
.player-passport-details { padding: 0 32px 26px; }
.passport-chart-panel { border: 1px solid rgba(154,164,227,.1); border-radius: 22px; padding: 24px 24px 18px; background: radial-gradient(ellipse at 70% 20%,rgba(103,95,226,.08),transparent 70%),rgba(3,8,24,.24); }
.passport-chart-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.passport-chart-heading h2, .passport-bottom-grid h2 { margin: 5px 0; font-size: 21px; letter-spacing: -.025em; }
.passport-chart-value { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; font-size: 34px; line-height: 1.1; font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: -.04em; }
.passport-chart-value small { font-size: 10px; letter-spacing: 0; font-weight: 600; padding: 5px 8px; border-radius: 6px; background: rgba(94,212,178,.08); }
.player-overview .is-positive { color: #88dcc5; }
.player-overview .is-negative { color: #e2a2b7; }
.passport-chart-controls { display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; margin: 22px 0 10px; }
.passport-button-group { display: flex; gap: 2px; flex-wrap: wrap; padding: 3px; border-radius: 11px; background: rgba(6,10,30,.32); border: 1px solid rgba(148,161,219,.09); }
.passport-button-group button { border: 1px solid transparent; padding: 6px 12px; border-radius: 8px; background: transparent; color: #8f9abb; font: inherit; font-size: 11px; cursor: pointer; min-height: 30px; transition: color .15s,background .15s; }
.passport-button-group button[aria-pressed="true"] { background: rgba(153,145,238,.14); color: #eceaff; border-color: rgba(183,175,255,.1); box-shadow: 0 2px 5px #0002; }
.passport-button-group button:disabled { opacity: .35; cursor: default; }
.passport-button-group button:hover { color: white; }
.passport-button-group button:focus-visible, .passport-calendar button:focus-visible { outline: 2px solid #b7bbff; outline-offset: 3px; }
.passport-window-caption, .passport-section-caption { color: var(--text-muted); font-size: 12px; }
.passport-chart-canvas { min-width: 0; width: 100%; }
.passport-chart-svg { display: block; width: 100%; height: auto; touch-action: pan-y; overflow: visible; }
.passport-chart-svg text { fill: #7784a7; font: 10px system-ui,sans-serif; font-variant-numeric: tabular-nums; }
.passport-chart-grid { stroke: rgba(143,164,219,.075); stroke-width: 1; stroke-dasharray: 3 5; }
.passport-chart-line { fill: none; stroke: url(#passport-line); stroke-width: 2.6; stroke-linecap: round; }
.passport-chart-glow { fill: none; stroke: #9c9bff; stroke-width: 9; opacity: .055; stroke-linecap: round; }
.passport-chart-marker { fill: #d9fff3; stroke: #10192d; stroke-width: 2; }
.passport-chart-marker-halo { fill: #99d9da; opacity: .09; }
.passport-chart-guide { stroke: #a4a8e7; opacity: .32; stroke-width: 1; stroke-dasharray: 3 5; }
.passport-chart-value-badge rect { fill: #292b4d; stroke: #aaa6ed; stroke-opacity: .22; }
.passport-chart-value-badge text { fill: #f3f1ff; font-weight: 700; font-size: 12px; }
.passport-score-bar { opacity: .7; }
.passport-score-bar.is-selected { opacity: 1; stroke: #dcfff0; stroke-opacity: .7; stroke-width: 1; }
.passport-game-picker { display: flex; align-items: center; gap: 16px; font-size: 10px; color: #7c88a8; margin: 5px 0 17px; }
.passport-game-picker input { flex: 1; min-width: 0; appearance: none; background: transparent; height: 22px; cursor: pointer; }
.passport-game-picker input::-webkit-slider-runnable-track { height: 2px; border-radius: 2px; background: #7e87b22b; }
.passport-game-picker input::-moz-range-track { height: 2px; border-radius: 2px; background: #7e87b22b; }
.passport-game-picker input::-webkit-slider-thumb { appearance: none; width: 9px; height: 9px; margin-top: -3.5px; border: 0; border-radius: 50%; background: #a8a2e4; }
.passport-game-picker input::-moz-range-thumb { width: 9px; height: 9px; border: 0; border-radius: 50%; background: #a8a2e4; }
.passport-game-picker input:focus-visible { outline: 2px solid #b7bbff; outline-offset: 3px; border-radius: 4px; }
.passport-chart-selection { min-height: 78px; box-sizing: border-box; display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; gap: 18px; align-items: center; padding: 16px; border: 1px solid rgba(155,169,227,.1); border-radius: 14px; background: rgba(137,154,215,.035); }
.passport-chart-selection:has(>.passport-selected-copy:first-child) { grid-template-columns: minmax(0,1fr) auto; }
.passport-selected-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 11px; font-size: 21px; }
.passport-selected-icon.is-won { color: #85d6be; background: #68d6b610; }
.passport-selected-icon.is-lost { color: #d99ab1; background: #d99ab110; }
.passport-selected-copy strong { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; font-weight: 600; }
.passport-selected-copy small, .passport-selected-metric > small { display: block; color: #8d99ba; font-size: 10px; line-height: 1.5; }
.passport-selected-copy small { margin-top: 5px; }
.passport-result { padding: 3px 6px; border-radius: 5px; font-size: 9px; font-weight: 500; }
.passport-result.is-won { color: #93d8c4; background: #76cdbb0c; }
.passport-result.is-lost { color: #dfa1b8; background: #d392ae0c; }
.passport-chart-selection a { color: #aaa8e1; white-space: nowrap; text-decoration: none; }
.passport-selected-metric { text-align: right; }
.passport-selected-metric > strong { display: flex; align-items: baseline; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 3px; font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; color: #e8ebf9; }
.passport-selected-delta { font-size: 10px; }
.passport-chart-note { margin: 12px 0 0; font-size: 10px; color: #737f9f; }
.passport-bottom-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 32px; margin-top: 28px; }
.passport-role { --role-color: #969bff; margin-top: 15px; }
.passport-role[data-role="mafia"] { --role-color: #cb8da8; } .passport-role[data-role="don"] { --role-color: #ac90e5; } .passport-role[data-role="sheriff"] { --role-color: #74bfb4; }
.passport-role-name { display: inline-flex; align-items: center; gap: 8px; } .passport-role-name i { width: 5px; height: 5px; border-radius: 50%; background: var(--role-color); }
.passport-role > div:first-child { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; }
.passport-role strong { font-weight: 700; font-variant-numeric: tabular-nums; }
.passport-role small { margin-inline-start: 9px; color: var(--text-muted); font-weight: 500; font-size: 11px; }
.passport-role-track { height: 6px; border-radius: 4px; background: rgba(160,174,226,.07); margin-top: 10px; overflow: hidden; }
.passport-role-track span { display: block; height: 100%; background: linear-gradient(90deg,color-mix(in srgb,var(--role-color),transparent 60%),var(--role-color)); border-radius: 4px; }
.passport-calendar { display: grid; grid-template-columns: repeat(10,minmax(0,1fr)); gap: 5px; margin-top: 18px; }
.passport-calendar button { border: 1px solid rgba(151,172,225,.055); background: rgba(151,172,225,.055); border-radius: 7px; color: var(--text-secondary); font: inherit; font-size: 10px; min-height: 27px; padding: 4px 0; cursor: pointer; }
.passport-calendar button[data-level="1"] { background: #1b4446; color: #e4fff8; }
.passport-calendar button[data-level="2"] { background: #25625c; color: #e4fff8; }
.passport-calendar button[data-level="3"], .passport-calendar button[data-level="4"] { background: #3b9583; color: #061f22; }
.passport-calendar button[data-level="5"] { background: #75cbb2; color: #061f22; }
.passport-calendar button[aria-pressed="true"] { outline: 2px solid #b7bbff; outline-offset: 2px; }
.passport-calendar-range { display: flex; justify-content: space-between; margin-top: 7px; font-size: 11px; color: var(--text-muted); }
.passport-day-detail { font-size: 12px; color: var(--text-secondary); margin: 12px 0 0; min-height: 36px; }
.passport-form-summary { font-size: 13px; margin: 13px 0 0; font-weight: 700; }
.player-form ol { display: flex; list-style: none; margin: 10px 0 5px; padding: 0; gap: 4px; }
.player-form li { width: 12px; height: 24px; border-radius: 4px; }
.player-form .won { background: #67d5b9; }
.player-form .lost { background: #b86a81; height: 13px; align-self: end; }
.player-form small { font-size: 11px; color: var(--text-muted); }
.passport-empty { color: var(--text-secondary); font-size: 13px; margin: 20px 0 12px; }
.player-overview-note { padding: 0 32px 22px; margin: 0; font-size: 11px; color: var(--text-muted); line-height: 1.7; }
.player-overview .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media(max-width:850px) { .passport-chart-heading { flex-wrap: wrap; } .player-key-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } .player-stat:nth-child(odd) { border-inline-start: 0; } .player-stat:nth-child(n+3) { border-top: 1px solid rgba(146,158,223,.16); } }
@media(max-width:580px) {
  .player-overview { border-radius: 22px; }
  .player-overview-identity { grid-template-columns: auto minmax(0,1fr); padding: 22px 18px; gap: 16px; }
  .player-overview .profile-avatar, .player-overview .profile-avatar-fallback { width: 72px; height: 72px; border-radius: 20px; }
  .player-overview h1 { font-size: 29px; }
  .player-overview .profile-copy p { font-size: 11px; }
  .player-overview .profile-rank { grid-column: 1/-1; text-align: left; display: flex; align-items: baseline; gap: 12px; min-width: 0; }
  .player-overview .profile-rank strong { font-size: 24px; }
  .player-key-metrics { margin-inline: 18px; }
  .player-stat { padding: 16px 8px; }
  .player-stat > strong { font-size: clamp(18px,5.3vw,25px); }
  .player-stat > span, .player-stat > small { font-size: 11px; }
  .player-passport-details { padding: 0 18px 22px; }
  .passport-chart-panel { padding: 18px 12px 14px; margin-inline: -8px; border-radius: 17px; }
  .passport-chart-heading h2, .passport-bottom-grid h2 { font-size: 18px; }
  .passport-chart-value { font-size: 28px; align-items: flex-start; }
  .passport-chart-controls { gap: 8px; }
  .passport-button-group button { font-size: 11px; padding: 8px 10px; }
  .passport-bottom-grid { grid-template-columns: minmax(0,1fr); gap: 26px; }
  .passport-chart-selection { grid-template-columns: auto minmax(0,1fr); gap: 12px; padding: 14px; }
  .passport-selected-metric { text-align: left; padding-top: 10px; border-top: 1px solid #a2b1dd12; }
  .passport-selected-metric > strong { justify-content: flex-start; }
  .passport-chart-selection:not(:has(>.passport-selected-icon)) .passport-selected-metric { border-top: 0; padding-top: 0; text-align: right; }
  .passport-chart-selection:not(:has(>.passport-selected-icon)) .passport-selected-metric > strong { justify-content: flex-end; }
  .passport-selected-icon { width: 30px; height: 30px; }
  .passport-selected-copy strong { font-size: 12px; gap: 6px; }
  .passport-game-picker { gap: 10px; }
  .player-overview-note { padding: 0 18px 20px; }
}
@media(pointer:coarse) { .passport-button-group button { min-height: 44px; } .passport-calendar { grid-template-columns: repeat(auto-fit,minmax(44px,1fr)); } .passport-calendar button { min-height: 44px; } }
@media(forced-colors:active) { .passport-chart-line, .passport-chart-glow { stroke: Highlight; } .passport-chart-point, .passport-chart-marker { fill: Highlight; } .passport-role-track span { background: Highlight; } .passport-chart-svg text { fill: CanvasText; } .passport-score-bar { fill: Highlight; } .passport-chart-value-badge rect { fill: Canvas; stroke: CanvasText; } .passport-game-picker input { appearance: auto; } .passport-calendar button { border: 1px solid ButtonText; } }
@media(prefers-reduced-motion:reduce) { .passport-button-group button { transition: none; } }

.passport-elo-method { margin-top: 12px; font-size: 11px; color: #929dbc; } .passport-elo-method summary { cursor: pointer; width: fit-content; } .passport-elo-method p { font-size: 11px; line-height: 1.7; max-width: 700px; margin: 10px 0 0; }
