@import url('/original.css');
/* The document scrolls vertically; wide tables keep their own horizontal scroll. */
@media screen {
  html { overflow-x:hidden; overflow-x:clip; overscroll-behavior-x:none; }
  .app-shell,.main-shell { min-width:0; }
}
/* Native dialogs stay in the viewport, independent of the document scroll. */
.modal{position:fixed;overscroll-behavior:contain}
@font-face{font-family:Montserrat;src:url('/assets/fonts/Montserrat-Variable.ttf') format('truetype');font-style:normal;font-weight:100 900;font-display:swap}
:root{--ink:var(--text);--mute:var(--muted);--border:var(--line);--radius:12px;--red:#e7a09c;--role-civilian:#f28cdb;--role-sheriff:#e1f230;--role-mafia:#c9cbd0;--role-don:#bca2e3;--scroll-thumb:#54545a;--scroll-track:#151618;--scroll-hover:#8b7565;--scroll-active:#ffb179;--game-mafia-bg:var(--panel);--game-civilian-bg:#2b1b20}
html{scrollbar-gutter:stable;scrollbar-color:var(--scroll-thumb) var(--scroll-track);scrollbar-width:auto}*{scrollbar-color:var(--scroll-thumb) var(--scroll-track)}::-webkit-scrollbar{width:15px;height:12px}::-webkit-scrollbar-track{background:var(--scroll-track)}::-webkit-scrollbar-thumb{background:var(--scroll-thumb);border:4px solid var(--scroll-track);border-radius:8px}::-webkit-scrollbar-thumb:hover{background:var(--scroll-hover)}::-webkit-scrollbar-thumb:active{background:var(--scroll-active)}
.sidebar nav [data-icon]{display:flex}.sidebar-bottom [data-icon]{display:flex}.breadcrumb #breadcrumbPage{margin:0;color:var(--muted)}.top-actions [data-icon]{display:flex}.local-cabinet{color:var(--muted);font-size:11px;padding:0 8px;opacity:.8}.mobile-cabinet{display:none}.current-month-tag{appearance:none;text-align:center;max-width:180px}.local-export-tools{display:flex;justify-content:flex-end;gap:20px;margin:0 0 25px}.main-shell>.footer{margin:0 45px 0}.loading{min-height:160px;display:grid;place-items:center;color:var(--accent)}.hidden{display:none!important}.toast{position:fixed;right:25px;bottom:25px;max-width:min(400px,calc(100vw - 30px));padding:15px 20px;border:1px solid #79543b;border-radius:10px;background:#29221d;color:var(--text);z-index:2000;box-shadow:0 8px 30px #0006}.modal{margin:auto;color:var(--text);max-height:calc(100dvh - 40px);overflow:auto;border:1px solid var(--line)}.modal::backdrop{background:#000b;backdrop-filter:blur(5px)}.modal-head{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:22px}.modal-head h2{margin:0}.modal-head .close{display:flex;align-items:center;justify-content:center;width:43px;height:43px;border:1px solid var(--line);border-radius:9px}.rules-modal .page-heading{display:none}.rules-modal .panel{margin:0;padding:0;border:0;background:none}.rules-modal .formula{margin-top:0}.protocol-table{width:100%;font-size:14px}.protocol-table td{padding:12px}.panel-pad{padding:26px}.subtitle{color:var(--muted);font-size:14px;line-height:1.6;max-width:680px}.primary,.secondary,.ghost,.danger{border:1px solid var(--line);padding:12px 18px;border-radius:9px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;font-weight:600;font-size:13px}.primary{background:var(--accent);color:#21150d;border-color:var(--accent)}.secondary{background:#242528;color:var(--text)}.ghost{background:transparent}.danger{background:#352322;color:#efa399;border-color:#6f3c37}.primary:hover,.secondary:hover,.ghost:hover{filter:brightness(1.1)}.field{display:flex;flex-direction:column;gap:8px;flex:1;min-width:0}.field label{font-size:13px;color:var(--muted)}.field input,.field select,.field textarea{width:100%}.field textarea{resize:none;min-height:110px;field-sizing:content}.form-row{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-bottom:16px}.admin-banner{display:flex;justify-content:space-between;gap:20px;border:1px solid #614c3e;background:#241e19;border-radius:12px;padding:20px;margin:22px 0}.manage-nav{display:flex;gap:8px;flex-wrap:wrap;margin:22px 0}.manage-nav button{padding:12px 16px;color:var(--muted);border-radius:8px}.manage-nav button.active{background:#29221d;color:var(--accent)}.mini-results{display:grid;gap:10px}.mini-results>button,.game-card{border:1px solid var(--line);padding:18px;background:var(--panel);border-radius:10px;text-align:left}.split-head,.section-top{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:20px 0}.small{font-size:12px}.edit-grid{border-spacing:0 8px;border-collapse:separate}.edit-grid td{padding:0 5px}.edit-grid input,.edit-grid select{width:100%;min-width:70px}.edit-grid .short{width:90px}.table-wrap{overflow-x:auto}.alert{padding:16px 20px;line-height:1.6;border:1px solid #735438;background:#29221d;border-radius:10px;color:#f2c4a0;margin-bottom:20px}.mini-results .game-card{margin:0}.role-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.panel hr{border-top:1px solid var(--line);margin:26px 0}.field input[aria-invalid=true]{border-color:var(--red)}.empty{color:var(--muted)}.local-form-error{color:var(--red);font-size:13px;line-height:1.5;margin:12px 0}.password-field{display:flex;align-items:center;gap:8px}.password-field input{flex:1}.password-field button{flex:none}.protocol-note{color:var(--muted);font-size:13px;line-height:1.6}.print-sheet{display:none}
@media(max-width:760px){.main-shell>.footer{margin:0 19px}.mobile-cabinet{display:inline-flex;border:0;width:24px;height:28px}.top-actions{gap:16px}.topbar .share-top>span:last-child{display:none}.topbar .breadcrumb #breadcrumbPage{display:inline}.local-export-tools{justify-content:flex-start;gap:15px;flex-wrap:wrap}.toast{bottom:85px;right:15px}.panel-pad{padding:20px}.form-row{align-items:stretch}.field{min-width:180px}.protocol-table td,.protocol-table th{font-size:12px;padding:10px 7px}.modal{max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:22px}.edit-grid input,.edit-grid select{padding:9px 5px;font-size:13px}.edit-grid .short{width:64px}.profile-stats{margin-top:24px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(forced-colors:active){*{scrollbar-color:auto}*:focus-visible{outline:2px solid Highlight}}
@media print{@page{size:A4 portrait;margin:0}html{scrollbar-gutter:auto}body{margin:0!important;padding:0!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}.app-shell,dialog,.toast{display:none!important}.print-sheet{display:block!important;margin:0;padding:0}.rating-print-page{width:210mm;height:297mm;margin:0;break-after:page;break-inside:avoid;overflow:hidden}.rating-print-page:last-child{break-after:auto}.rating-print-page>svg{display:block;width:100%;height:100%}}

.current-month-tag{width:125px}@media(max-width:760px){.current-month-tag{width:103px}}

.setup-panel{max-width:640px}

.game-day--dark{--game-day-background:var(--panel)}
.game-day--light{--game-day-background:var(--panel2)}
.game-day+.game-day{border-top:2px solid var(--line)}
.game-day:last-child{border-radius:0 0 var(--radius) var(--radius);overflow:hidden}
.game-day-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 26px;min-height:60px;list-style:none;cursor:pointer;background:var(--game-day-background)}
.game-day-heading::-webkit-details-marker{display:none}
.game-day-heading:hover{filter:brightness(1.12)}
.game-day-heading:active{filter:brightness(1.2)}
.game-day-heading:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}
.game-day[open]>.game-day-heading{border-bottom:1px solid var(--line)}
.game-day-date{color:var(--accent);font-size:17px;line-height:1.4;font-weight:600;letter-spacing:-.2px}
.game-day-meta{display:flex;align-items:center;gap:18px;flex:none;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}
.game-day-chevron{display:flex;color:var(--accent);transition:transform .18s ease}
.game-day[open]>.game-day-heading .game-day-chevron{transform:rotate(180deg)}
.game-day .game-result-black{background:var(--game-mafia-bg)}
.game-day .game-result-red{background:var(--game-civilian-bg)}
@media(max-width:760px){.game-day-heading{padding:17px 20px;gap:10px}.game-day-date{font-size:15px}.game-day-meta{gap:12px;font-size:11px}}

/* Homepage statistics use the retained club palette and shared controls. */
.home-overview-label,.home-section-heading{display:flex;justify-content:space-between;align-items:center;gap:14px}
.home-overview-label{margin:0 0 18px;color:var(--muted);font-size:12px}
.home-overview-label .text-button{color:var(--accent);font-size:12px}
.home-section-heading{margin-bottom:18px}
.home-section-heading h2,.home-coverage h2,.rating-section-head h2{font-size:18px;letter-spacing:-.3px;margin:0}
.home-section-heading>span{color:var(--muted);font-size:12px}
.home-records{margin:30px 0}
.home-record-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.home-record{display:flex;flex-direction:column;padding:22px;min-width:0;border:1px solid var(--line);border-radius:var(--radius);background:var(--panel)}
.home-record--mvp{border-color:color-mix(in srgb,var(--accent) 45%,var(--line));background:linear-gradient(135deg,color-mix(in srgb,var(--accent) 12%,var(--panel)),var(--panel))}
.record-label{display:flex;align-items:center;gap:10px;color:var(--text);min-height:42px}
.record-label svg{flex:none;color:var(--accent)}
.record-label h3{font-size:14px;font-weight:600;line-height:1.5;margin:0}
.record-value{font-variant-numeric:tabular-nums;display:block;font-size:38px;letter-spacing:-1px;font-weight:600;color:var(--accent);margin:16px 0 8px}
.record-note{font-size:11px;color:var(--muted);line-height:1.6;min-height:36px;margin:0 0 18px}
.record-people{display:flex;flex-direction:column;align-items:flex-start;gap:8px;color:var(--muted);font-size:16px;line-height:1.5;overflow-wrap:anywhere}
.home-record>.record-people{margin-top:auto;padding-top:16px;border-top:1px solid var(--line)}
.record-people a{color:var(--text);display:inline-flex;align-items:center;gap:8px;font-weight:600;min-height:32px;max-width:100%;overflow-wrap:anywhere}
.record-people a span:not(.avatar){min-width:0}.record-people .avatar{width:27px;height:27px;min-width:27px;font-size:10px;flex:none}.record-people a svg{flex:none}
.record-people a:hover,.record-modal-list a:hover{color:var(--accent)}
.record-modal-list{display:grid;gap:8px}.record-modal-list a{display:flex;align-items:center;gap:12px;padding:12px;border-bottom:1px solid var(--line)}
.home-role-leaders{margin:0 0 28px}
.role-leader-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.role-leader{display:flex;flex-direction:column;min-width:0;padding:20px;border:1px solid var(--line);border-top:2px solid var(--role-color);border-radius:var(--radius);background:var(--panel)}

.role-leader-title{display:flex;align-items:center;gap:8px;color:var(--role-color);margin-bottom:16px;min-height:36px}
.role-leader-title h3{font-size:13px;font-weight:600;line-height:1.5;margin:0}.role-leader-title svg{flex:none}
.role-leader-score{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin:18px 0 10px;color:var(--muted);font-size:10px}
.role-leader-score strong{font-size:25px;font-weight:500;color:var(--role-color);font-variant-numeric:tabular-nums}
.role-ranking-link{margin-top:auto;align-self:flex-start;min-height:36px;font-size:11px;color:var(--role-color)}
.home-roles{padding:24px;margin-bottom:24px}
.home-role-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.home-role{text-align:left;min-width:0;padding:16px;border:1px solid var(--line);border-radius:9px;background:var(--panel2)}



.home-role-title{display:flex;gap:7px;align-items:center;font-size:12px;color:var(--role-color)}
.home-role-title>svg:last-child{margin-left:auto;flex:none}
.home-role strong{display:block;font-size:27px;font-weight:500;font-variant-numeric:tabular-nums;margin:16px 0 12px}
.home-role-track{height:4px;background:var(--line);border-radius:3px;overflow:hidden;margin-bottom:10px}
.home-role-track span{display:block;height:100%;background:var(--role-color);border-radius:3px}
.home-role small{color:var(--muted);font-size:11px;line-height:1.5}
.role-unavailable p{font-size:13px;color:var(--muted);line-height:1.7;margin:12px 0}
.home-coverage{padding:20px 0 24px;margin-bottom:22px;border-bottom:1px solid var(--line)}
.coverage-heading{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.coverage-heading>svg{color:var(--muted)}
.coverage-heading h2{font-size:15px}
.coverage-heading>strong{color:var(--accent);font-size:15px;font-variant-numeric:tabular-nums}
.coverage-heading>.text-button{margin-left:auto;font-size:12px}
.home-coverage p{font-size:12px;color:var(--muted);line-height:1.8;margin:10px 0 0;max-width:850px}
.coverage-check{display:flex;align-items:flex-start;gap:9px;font-size:12px;line-height:1.7;margin-top:12px;color:var(--muted)}
.coverage-check svg{flex:none;margin-top:3px;color:var(--accent)}
.coverage-check b{font-weight:500;color:var(--accent)}
.coverage-check.confirmed b,.coverage-check.confirmed svg{color:var(--green)}
.rating-section-head{padding:24px 22px 0;display:flex;align-items:center;justify-content:space-between;gap:16px}
.rating-section-head p{font-size:12px;color:var(--muted);margin:7px 0 0;line-height:1.5}
.rating-display-switch{display:flex;gap:3px;border:1px solid var(--line);border-radius:9px;padding:3px;flex:none}
.rating-display-switch button{border-radius:6px;padding:9px 12px;min-height:36px;font-size:12px;color:var(--muted)}
.rating-display-switch button:hover{color:var(--text);background:var(--panel2)}
.rating-display-switch button[aria-pressed=true]{background:var(--panel2);color:var(--accent)}
#ratingTableHeading{scroll-margin-top:100px}
.detail-table-scroll{overflow:auto;width:100%;max-height:640px;scrollbar-gutter:stable}
.detail-table{min-width:1400px;width:100%;border-collapse:separate;border-spacing:0;font-variant-numeric:tabular-nums;font-size:13px}
.detail-table caption{text-align:left;color:var(--muted);padding:12px 20px;font-size:11px;background:var(--panel)}
.detail-table th,.detail-table td{white-space:nowrap;border-bottom:1px solid var(--line);padding:17px 14px;text-align:right;font-size:13px;font-weight:400}
.detail-table thead th{color:var(--muted);font-size:11px;background:var(--panel2);position:sticky;top:0;z-index:3}
.detail-table thead button{font:inherit;color:inherit;padding:5px 0;min-height:30px}
.detail-table thead th[aria-sort=ascending],.detail-table thead th[aria-sort=descending]{color:var(--accent)}
.detail-table tr>:first-child{width:42px;min-width:42px;padding:17px 8px 17px 14px;text-align:left;position:sticky;left:0;z-index:2;background:var(--panel)}
.detail-table tr>:nth-child(2){text-align:left;min-width:182px;width:182px;max-width:182px;position:sticky;left:42px;z-index:2;background:var(--panel);border-right:1px solid var(--line)}
.detail-table thead tr>:first-child,.detail-table thead tr>:nth-child(2){z-index:4;background:var(--panel2)}
.detail-table tbody tr:hover>*{background:var(--panel2)}
.detail-player{display:flex;align-items:center;gap:10px;white-space:normal;overflow-wrap:anywhere;font-weight:600;min-height:32px}
.detail-player .avatar{flex:none;width:30px;height:30px;min-width:30px;font-size:10px}
.detail-player:hover{color:var(--accent)}
.detail-table .detail-score{color:var(--accent);font-weight:600;font-size:15px}
.detail-table .detail-bonus{color:var(--green)}
.detail-table .detail-negative{color:var(--red)}
.overview-stats .stat small{text-transform:none}
.rating-definitions{padding:16px 22px;display:flex;gap:6px 20px;flex-wrap:wrap;border-top:1px solid var(--line);font-size:11px;color:var(--muted);line-height:1.7}
.rating-definitions b{font-weight:400;color:var(--text)}
.detail-scroll-hint{width:100%}
.table-overflow-help{padding:11px 22px;font-size:11px;color:var(--muted);line-height:1.6;border-bottom:1px solid var(--line)}
@media(max-width:1200px){.home-record-grid,.role-leader-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1100px){.home-role-grid{gap:8px}.home-role{padding:14px 11px}.home-role-title{font-size:11px}.home-role-title>svg:last-child{display:none}.home-record{padding:20px 17px}.rating-section-head{align-items:flex-start}}
@media(max-width:760px){
 .home-overview-label{font-size:11px;gap:8px;align-items:flex-start}.home-overview-label .text-button{font-size:11px;flex:none}
 .home-section-heading{align-items:flex-start;flex-direction:column;gap:6px}.home-section-heading h2{font-size:17px}.home-section-heading>span{font-size:11px}
 .home-records{margin:26px 0}.home-record{padding:16px 13px}.record-label{gap:6px;align-items:flex-start;min-height:42px}.record-label h3{font-size:12px}.record-label svg{width:16px;height:16px;margin-top:2px}.record-value{font-size:32px;margin-top:12px}.record-note{font-size:10px;min-height:48px;margin-bottom:12px}.record-people{font-size:14px;gap:6px}.record-people a{gap:6px}.record-people a svg{display:none}.record-people .avatar{width:23px;height:23px;min-width:23px;font-size:9px}
 .role-leader{padding:15px 13px}.role-leader-title{align-items:flex-start;gap:6px;min-height:38px}.role-leader-title h3{font-size:12px}.role-leader-title svg{width:14px;height:14px;margin-top:2px}.role-leader .record-people .avatar{display:none}.role-leader-score{margin-top:14px}.role-leader-score strong{font-size:24px}.role-ranking-link{font-size:10px}
 .home-roles{padding:18px}.home-role-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.home-role{padding:16px 13px}.home-role-title{font-size:12px}.home-role-title>svg:last-child{display:block}.home-role strong{font-size:26px;margin:14px 0 10px}.home-role small{font-size:10px}
 .home-coverage{padding:0 0 24px}.coverage-heading h2{font-size:14px}.coverage-heading{gap:7px}.coverage-heading>.text-button{font-size:11px}.home-coverage p,.coverage-check{font-size:11px}
 .rating-section-head{padding:20px 17px 0;flex-direction:column;gap:14px}.rating-section-head h2{font-size:18px}.rating-section-head p{font-size:11px}.rating-display-switch{width:100%}.rating-display-switch button{flex:1;min-height:38px}
 .detail-table-scroll{max-height:560px}.detail-table{min-width:1320px}.detail-table tr>:nth-child(2){min-width:152px;width:152px;max-width:152px}.detail-table th,.detail-table td{padding:15px 12px;font-size:12px}.detail-table thead th{font-size:11px}.detail-player .avatar{display:none}.detail-player{font-size:13px}.rating-definitions{padding:14px 17px;font-size:11px;gap:7px}
}
.role-matrix-table{min-width:1120px}
.role-matrix-table tr>:nth-child(3){width:90px;min-width:90px}
.role-matrix-table tr>:nth-child(n+4){min-width:192px;text-align:center}


.role-matrix-table thead th button{display:inline-flex;align-items:center;gap:7px}
.matrix-cell>strong{display:block;font-size:20px;font-weight:500;margin-bottom:8px;color:var(--text)}
.matrix-cell>span{display:block;font-size:11px;color:var(--muted);line-height:1.7}
.matrix-cell .matrix-extras{display:flex;justify-content:center;gap:9px;margin-top:7px;font-variant-numeric:tabular-nums}
.matrix-extras b{color:var(--green);font-weight:400}.matrix-extras i{color:var(--red);font-style:normal}
@media(max-width:760px){.role-matrix-table{min-width:804px}.role-matrix-table tr>:nth-child(2){min-width:122px;width:122px;max-width:122px}.role-matrix-table tr>:nth-child(3){display:none}.role-matrix-table tr>:nth-child(n+4){min-width:160px;width:160px}.matrix-cell>strong{font-size:19px}.table-overflow-help{padding:11px 17px}}
.modal.role-ranking-modal{width:960px;max-width:calc(100vw - 40px)}
.role-ranking-modal .modal-head{align-items:flex-start}.role-ranking-modal .modal-head .close{flex:none}
.role-ranking-intro{margin:0 0 12px}.role-ranking-hint{color:var(--muted);font-size:11px;line-height:1.6;margin:0 0 14px}
.role-ranking-scroll{max-height:min(55dvh,560px);border:1px solid var(--line);border-radius:9px}
.role-ranking-table{min-width:720px}
.role-ranking-footer{display:flex;justify-content:flex-end;padding-top:20px}
.role-ranking-table tr>:nth-child(2){min-width:150px;width:150px;max-width:150px}
@media(max-width:760px){.modal.role-ranking-modal{max-width:calc(100vw - 24px);padding:20px}.role-ranking-modal .modal-head h2{font-size:20px;line-height:1.4}.role-ranking-table{min-width:620px}.role-ranking-table tr>:nth-child(2){min-width:112px;width:112px;max-width:112px}.role-ranking-footer .secondary{width:100%}}

/* Shared stripes apply to sticky cells as well as the rest of a rating row. */
.rating-table tbody tr,.detail-table tbody tr{--rating-row-bg:var(--panel)}
.rating-table tbody tr:nth-child(even),.detail-table tbody tr:nth-child(even){--rating-row-bg:var(--panel2)}
.rating-table tbody tr>*,.detail-table tbody tr>*{background:var(--rating-row-bg)}
.detail-table tbody tr>:first-child,.detail-table tbody tr>:nth-child(2){background:var(--rating-row-bg)}
.rating-table tbody tr:hover>*,.detail-table tbody tr:hover>*{background:color-mix(in srgb,var(--accent) 6%,var(--rating-row-bg))}
.detail-table tbody tr:hover>:first-child,.detail-table tbody tr:hover>:nth-child(2){background:color-mix(in srgb,var(--accent) 6%,var(--rating-row-bg))}
.rating-table--summary .rating-row-games strong,.rating-table--summary .rating-row-bonus strong{display:block;font-size:15px;font-weight:500;font-variant-numeric:tabular-nums}
.rating-table--summary .rating-row-games small,.rating-table--summary .rating-row-bonus small{display:block;font-size:10px;color:var(--muted);line-height:1.6;margin-top:5px;white-space:nowrap}
.rating-row-extra{min-width:65px}.rating-row-extra>span{display:flex;justify-content:space-between;gap:8px;font-size:10px;color:var(--muted);line-height:1.8}.rating-row-extra b{font-weight:400;color:var(--text);font-variant-numeric:tabular-nums}
.rating-table--summary th:nth-child(6){min-width:100px}.rating-table--summary td:nth-child(4){min-width:110px}
.rating-table--summary .player-mini-stats>span{display:block;line-height:1.7}
.modal.rating-report-modal{width:1020px;max-width:calc(100vw - 40px)}
.rating-report-modal .modal-head{align-items:flex-start}.rating-report-modal .close{flex:none}
.report-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.report-actions button{gap:7px;min-width:140px}
.report-actions button:disabled,.local-export-tools button:disabled{opacity:.55;cursor:wait}
.report-export-strip{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 22px;margin:-8px 0 30px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
.report-export-strip p{margin:0;min-width:0}.report-export-strip b{display:block;font-size:14px;font-weight:500}.report-export-strip p span{display:block;margin-top:6px;font-size:12px;color:var(--muted)}
.report-export-strip>.report-export-tools{min-width:0}.report-export-strip .local-export-tools{margin:0;gap:18px;flex-wrap:wrap}.report-export-strip button{gap:7px;white-space:nowrap;min-height:44px}.report-export-strip button:disabled{opacity:.55;cursor:wait}
.report-files{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0 24px}.report-files[hidden],.report-status[hidden]{display:none}.report-files a{gap:7px;white-space:normal;text-align:center;overflow-wrap:anywhere}.report-files a:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.report-export-strip .report-files{margin-bottom:0}
.report-status{min-height:42px;color:var(--muted);line-height:1.6;font-size:12px;margin:14px 0}
.report-preview{display:grid;gap:24px}.report-preview figure{margin:0}.report-preview figcaption{font-size:12px;color:var(--accent);margin-bottom:10px}.report-preview svg{display:block;width:100%;height:auto;border:1px solid var(--line);border-radius:8px}
@media(max-width:760px){
 .report-export-strip{align-items:stretch;flex-direction:column;padding:18px;margin-top:0}.report-export-strip .local-export-tools{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px}.report-export-strip button{padding:10px 8px;font-size:12px}.report-files{flex-direction:column}.report-files a{width:100%}
 .rating-table--summary th:nth-child(n+4):not(:last-child),.rating-table--summary td:nth-child(n+4):not(:last-child){display:none}
 .rating-table--summary .player-mini-stats{font-size:10px;white-space:normal;line-height:1.7}
 .rating-table--summary .player-name{min-width:0;overflow-wrap:anywhere}
 .modal.rating-report-modal{max-width:calc(100vw - 24px);padding:20px}.rating-report-modal .modal-head h2{font-size:20px;line-height:1.4}
 .report-actions{display:grid;grid-template-columns:1fr}.report-actions button{width:100%}.report-preview{gap:18px}
}

/* Profile key metrics stay prominent in every player's role breakdown. */
.profile-stats{grid-template-columns:repeat(4,minmax(0,1fr));row-gap:26px}
.pu-bonus-panel{padding:24px;margin:24px 0}
.pu-bonus-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:20px 0}
.pu-bonus-summary .stat>strong{font-size:32px;font-variant-numeric:tabular-nums;color:var(--accent)}
.pu-coverage-note{color:var(--muted);font-size:13px;line-height:1.6;max-width:900px}
.pu-bonus-details{margin-top:18px;border-top:1px solid var(--line);padding-top:16px}
.pu-bonus-details>summary{cursor:pointer;font-size:14px;line-height:1.6;color:var(--accent)}
.pu-bonus-details .protocol-table{margin-top:16px}
.pu-bonus-details tbody tr:nth-child(even){background:var(--panel2)}
.pu-tag small{display:block;margin-top:5px;font-size:12px;color:var(--accent)}
.profile-stats .stat>strong{font-size:34px;font-weight:500;line-height:1.15;font-variant-numeric:tabular-nums}
.profile-stats .stat>span{font-size:13px;line-height:1.5}
.role-card .role-result{margin:20px 0}
.role-card .role-result>strong{font-size:36px;font-weight:600;line-height:1.15;font-variant-numeric:tabular-nums}
.role-card .role-card-footer{display:grid;grid-template-columns:minmax(0,1fr);justify-content:normal;gap:14px;font-size:14px;line-height:1.5}
.role-card .role-bonus{display:flex;align-items:baseline;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding-top:12px}
.role-bonus>span{font-size:13px}
.role-bonus>strong{font-size:26px;font-weight:600;line-height:1.2;color:var(--text);font-variant-numeric:tabular-nums}
@media(max-width:760px){
 .profile-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .pu-bonus-panel{padding:18px}.pu-bonus-summary{gap:16px}.pu-bonus-summary .stat>strong{font-size:28px}
 .profile-stats .stat>strong{font-size:29px}
 .profile-stats .stat>span{font-size:12px}
 .role-card .role-result>strong{font-size:30px}
 .role-card .role-card-footer{font-size:13px;gap:12px}
 .role-bonus>strong{font-size:24px}
}

/* Four independent role accents; positive/negative scoring colors stay semantic. */
:is(.civilian,.matrix-role-civilian,[data-role="civilian"]){--role-color:var(--role-civilian)}
:is(.sheriff,.matrix-role-sheriff,[data-role="sheriff"]){--role-color:var(--role-sheriff)}
:is(.mafia,.matrix-role-mafia,[data-role="mafia"]){--role-color:var(--role-mafia)}
:is(.don,.matrix-role-don,[data-role="don"]){--role-color:var(--role-don)}
.rolemark:is(.civilian,.sheriff,.mafia,.don),.role-select[data-role],.role-leader .role-ranking-link{color:var(--role-color)}
.home-role>strong,.role-matrix-table :is(.matrix-role-civilian,.matrix-role-sheriff,.matrix-role-mafia,.matrix-role-don),.matrix-cell>strong{color:var(--role-color)}
.role-card{border-top:2px solid var(--role-color)}
.role-card .role-result>strong,.role-card .role-bonus>strong{color:var(--role-color)}
.role-ranking-modal[data-role] #modalTitle,.role-ranking-modal[data-role] .detail-score{color:var(--role-color)}
.game-symbol.red,.game-result-red .game-info>small{color:var(--role-civilian)}
.game-symbol.black,.game-result-black .game-info>small{color:var(--role-mafia)}

/* White player names on a quiet graphite backing; role colors identify the category. */
:root{--font-display:"Montserrat",Arial,Helvetica,sans-serif;--nickname:#ffffff;--nickname-bg:#262321;--nickname-line:#66503f;--leader-sheen-duration:2.6s}
:root{--winrate-high:#70ff4a;--winrate-mid:#e1f230;--winrate-low:#f28cdb}
[data-winrate-tone="high"]{--winrate-color:var(--winrate-high)}
[data-winrate-tone="mid"]{--winrate-color:var(--winrate-mid)}
[data-winrate-tone="low"]{--winrate-color:var(--winrate-low)}
.winrate-display{display:inline-block;vertical-align:baseline}
.winrate-display>.winrate-value{color:var(--winrate-color,var(--text))}
.winrate-display>.winrate-track{display:block}
.winrate-display>.winrate-track>span{background:var(--winrate-color,var(--muted))}
html{--font-sans:var(--font-display)}
body{font-family:var(--font-display);font-weight:450;font-synthesis:none}
button,input,select,optgroup,textarea{font-family:inherit}
.current-month-tag{width:160px}
table{font-variant-numeric:tabular-nums}
.page-heading h1,.profile-hero h1,.home-section-heading h2,.rating-section-head h2,.coverage-heading h2,.modal-head h2{font-family:var(--font-display);font-weight:650;font-synthesis:none;letter-spacing:.01em}
.page-heading h1{font-size:clamp(36px,3.6vw,56px);line-height:1.2}
.profile-hero h1{font-size:clamp(28px,3vw,46px);line-height:1.25}
.home-section-heading h2,.rating-section-head h2{font-size:22px;line-height:1.4}
.home-section-heading{align-items:baseline;gap:16px}
.home-section-heading h2::before{content:none}
.home-section-heading>span{font-size:12px;line-height:1.6}
.coverage-heading h2{font-size:15px;line-height:1.4}.modal-head h2{font-size:22px;line-height:1.5}
.home-record-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.home-record{aspect-ratio:1;min-height:264px;padding:20px;background:var(--panel);border:1px solid color-mix(in srgb,var(--accent) 40%,var(--line));border-radius:12px;box-shadow:inset 0 2px 0 #ffb17926}
.record-label,.role-leader-title{display:flex;align-items:center;gap:9px;min-height:0;margin:0 0 20px}
.record-label>svg,.role-leader-title>svg{width:18px;height:18px;padding:0;flex:none;background:none;border:0;border-radius:0;color:var(--muted)}
.home-record .record-label>svg,.home-record .record-label h3{color:var(--accent)}
.record-label h3,.role-leader-title h3{font-family:var(--font-display);font-size:13px;font-weight:550;line-height:1.55;letter-spacing:.015em;text-transform:none;margin:0;padding:0;overflow-wrap:anywhere;color:var(--muted)}
.home-record .record-label{min-height:38px;margin-bottom:14px;align-items:flex-start}
.home-record .record-label>svg{margin-top:2px}
.record-summary{display:flex;flex-direction:column;gap:14px;align-items:flex-start;justify-content:space-between;flex:1}
.record-people{gap:5px;min-width:0}
.record-people a{display:inline-flex;gap:8px;align-items:center;max-width:100%;min-height:36px;padding:0;color:var(--nickname);border-radius:5px;line-height:1.4;text-decoration:none}
.leader-nickname{display:inline-block;min-width:0;padding:3px 9px;background:var(--nickname-bg);border:1px solid var(--nickname-line);border-radius:7px;box-shadow:0 0 20px #ffb17924,inset 0 1px 0 #ffffff08;font-family:var(--font-display);font-size:27px;font-weight:650;letter-spacing:.015em;line-height:1.4;overflow-wrap:anywhere;text-decoration:none}
.record-people a>svg{width:14px;height:14px;opacity:.65;color:var(--nickname)}
.record-people a:hover{color:var(--nickname)}
.record-people .avatar{display:none}
.record-result{display:flex;flex-direction:row;align-items:baseline;gap:9px;min-width:0}
.record-value{font-family:var(--font-display);font-variant-numeric:tabular-nums;display:block;font-size:36px;font-weight:550;line-height:1.1;letter-spacing:.01em;color:var(--text);margin:0}
.home-record .record-value{color:var(--accent)}
.record-result>span{font-size:11px;line-height:1.4;color:var(--muted)}
.home-record .leader-nickname{font-size:23px;line-height:1.35}
.record-note{font-size:11px;line-height:1.6;color:var(--muted);min-height:48px;margin:14px 0 0;padding-top:12px;border-top:1px solid var(--line)}
.role-leader{padding:22px;min-height:190px;border:1px solid var(--line);border-top:2px solid var(--role-color);border-radius:12px;background:var(--panel);box-shadow:none}
.role-leader-title{margin-bottom:18px;align-items:center}
.role-leader-title h3,.role-leader-title>svg{color:var(--role-color)}
.role-leader .record-people{min-height:0;justify-content:flex-start;flex:1}
.role-leader .leader-nickname{font-size:23px}
.role-leader-score{margin-top:24px;margin-bottom:0;line-height:1.2}
.role-leader-score strong{font-family:var(--font-display);font-size:31px;font-weight:550;line-height:1.2;letter-spacing:.01em;color:var(--role-color)}
.role-ranking-link{align-self:flex-start;min-height:32px;margin:10px 0 0;color:var(--muted);font-size:11px;gap:6px}
.role-ranking-link:hover{color:var(--role-color)}
.record-modal-list a,.award-hero-score strong{color:var(--nickname)}
.home-roles.panel{padding:0;border:0;background:transparent}
.home-role{border-radius:12px}.home-role-title{font-family:var(--font-display);letter-spacing:.02em}
.report-export-strip{background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:0 0 18px;margin-bottom:28px}
/* Champion: one compact award badge, a prominent player name and a clear result. */
.month-leader{isolation:isolate;position:relative;display:grid;grid-template-columns:86px minmax(0,1fr) auto;align-items:center;gap:26px;width:100%;padding:32px;border:1px solid #514237;border-left:3px solid var(--accent);border-radius:14px;background:var(--panel);box-shadow:0 14px 35px #0002;margin-bottom:28px;text-align:left;overflow:hidden;color:var(--text)}
.month-leader::before,.month-leader::after{content:none;display:none;animation:none}
.month-leader:hover{background:color-mix(in srgb,var(--accent) 3%,var(--panel));border-color:color-mix(in srgb,var(--accent) 75%,var(--line));box-shadow:0 14px 35px #0002}
.month-leader:active{transform:none}.month-leader:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.champion-rank{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;width:86px;height:110px;border:1px solid #795337;border-radius:12px;background:#211c18;color:var(--accent);animation:champion-halo var(--leader-sheen-duration) ease-out 1 both}
.champion-rank>strong{font-family:var(--font-display);font-size:40px;line-height:1;font-weight:650;letter-spacing:.02em}
.champion-identity{min-width:0}.champion-caption{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:11px;line-height:1.7}
.champion-caption>span:first-child{font-family:var(--font-display);font-weight:600;color:var(--accent);letter-spacing:.06em;text-transform:uppercase}
.champion-caption>span:last-child{color:var(--muted)}
.champion-identity h2{width:fit-content;max-width:100%;padding:4px 12px;background:var(--nickname-bg);border:1px solid var(--nickname-line);border-radius:9px;box-shadow:0 0 30px #ffb17924,inset 0 1px 0 #ffffff08;font-family:var(--font-display);font-size:clamp(36px,4vw,60px);line-height:1.2;letter-spacing:.015em;font-weight:650;overflow-wrap:anywhere;margin:9px 0 12px;color:var(--nickname)}
.champion-profile{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:11px;line-height:1.6}.month-leader:hover .champion-profile{color:var(--nickname)}
.champion-results{display:flex;gap:34px;align-items:center;margin:0;padding-left:30px;border-left:1px solid var(--line)}
.champion-results>div{display:flex;flex-direction:column-reverse;gap:10px;align-items:flex-start}
.champion-results dt{font-size:11px;font-weight:400;color:var(--muted);line-height:1.6}
.champion-results dd{font-family:var(--font-display);font-size:28px;font-weight:500;letter-spacing:.01em;line-height:1.2;margin:0;white-space:nowrap}
.champion-results .champion-main-score dd{font-size:47px;color:var(--accent);font-weight:550}
@keyframes champion-halo{0%,100%{box-shadow:0 0 0 0 #ffb17900}40%{box-shadow:0 0 22px 1px #ffb17920}}
.rating-table tbody tr.rating-first>*,.detail-table tbody tr.rating-first>*{background:color-mix(in srgb,var(--accent) 5%,var(--panel));border-bottom-color:color-mix(in srgb,var(--accent) 18%,var(--line))}
.rating-table tbody tr.rating-first>:first-child,.detail-table tbody tr.rating-first>:first-child{box-shadow:inset 3px 0 0 var(--accent)}
.rating-first .rank{display:inline-flex;align-items:center;justify-content:center;min-width:31px;min-height:31px;border-radius:7px;color:#24190f;background:var(--accent);font-family:var(--font-display);font-size:12px;font-weight:700;letter-spacing:.01em}
.rating-first .player-name,.rating-first .detail-player{color:var(--nickname);font-weight:700}.rating-first .rating-score{font-size:23px}
.rating-table .player-name,.detail-player{font-size:15px;font-weight:600;line-height:1.45}
.rating-table .rating-score{font-size:21px;font-weight:600;font-variant-numeric:tabular-nums}
.rating-row-games>strong,.rating-table .winrate-value,.rating-row-bonus>strong{font-size:14px;font-weight:600}
.rating-row-games>small,.rating-row-bonus>small{font-size:11px;line-height:1.55}
.rating-row-extra{font-size:10px;line-height:1.6}.rating-row-extra b{font-size:11px;font-weight:600}
.player-directory button>.directory-identity{min-width:0;max-width:100%;overflow-wrap:anywhere}
@media(max-width:1200px){.month-leader{grid-template-columns:72px minmax(0,1fr);gap:22px;padding:26px}.champion-rank{width:72px;height:94px}.champion-results{grid-column:1/-1;justify-content:space-between;border-left:0;border-top:1px solid var(--line);padding:22px 0 0;gap:24px}.champion-results>div{flex:1}.champion-results .champion-main-score dd{font-size:35px}.champion-identity h2{font-size:46px}}
@media(max-width:1200px){.home-record-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-record{aspect-ratio:auto;min-height:260px}}
@media(max-width:760px){
 .page-heading--filtered{display:flex;flex-direction:column;align-items:stretch;gap:18px}.page-heading--filtered>.period-filter{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:9px;width:100%;max-width:none;flex:auto}.page-heading--filtered .period-kind,.page-heading--filtered .period-select,.page-heading--filtered #periodSel{width:100%;min-width:0;max-width:none;margin:0;font-size:12px}
 .page-heading h1{font-size:34px}.profile-hero h1{font-size:27px}.home-section-heading h2,.rating-section-head h2{font-size:18px;line-height:1.5}.home-section-heading{flex-wrap:wrap;gap:5px}.home-section-heading>span{font-size:11px}.modal-head h2{font-size:17px}.coverage-heading h2{font-size:12px}
 .current-month-tag{width:126px;font-size:11px;padding-inline:10px}
 .home-record-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.home-record{padding:15px;min-height:252px}.home-record .record-label{min-height:48px;margin-bottom:12px;gap:7px}.record-label h3{font-size:11px;line-height:1.5}.record-label>svg{width:16px;height:16px;margin:0}.record-summary{gap:12px}.leader-nickname{font-size:24px}.home-record .leader-nickname{font-size:18px;padding:3px 6px}.home-record .record-people a>svg{display:none}.record-result{min-width:0;flex-wrap:wrap;gap:4px 7px}.record-value{font-size:30px}.record-result>span{font-size:10px}.record-note{font-size:10.5px;line-height:1.6;min-height:62px;margin-top:12px;padding-top:10px}
 .role-leader{padding:16px;min-height:184px}.role-leader-title{align-items:flex-start;gap:7px;margin-bottom:16px;min-height:35px}.role-leader-title h3{font-size:11px;line-height:1.55}.role-leader-title>svg{width:15px;height:15px;margin:0}.role-leader .leader-nickname{font-size:18px;line-height:1.5}.role-leader .record-people{min-height:0;gap:5px}.role-leader .record-people a>svg{display:none}.role-leader-score{margin-top:18px}.role-leader-score strong{font-size:27px}.role-ranking-link{font-size:10px;margin-top:6px}
 .month-leader{grid-template-columns:56px minmax(0,1fr);padding:22px 20px;gap:18px;margin-bottom:24px;border-radius:12px}.champion-rank{width:56px;height:84px;gap:8px;border-radius:9px}.champion-rank>svg{width:18px;height:18px}.champion-rank>strong{font-size:29px}.champion-caption{gap:2px;flex-direction:column;align-items:flex-start;font-size:10px}.champion-caption>span:first-child{font-size:10px;letter-spacing:.045em}.champion-identity h2{font-size:35px;margin:8px 0}.champion-profile{font-size:10px}.champion-results{padding-top:20px;gap:14px}.champion-results dd{font-size:23px}.champion-results .champion-main-score dd{font-size:29px}.champion-results dt{font-size:10px}.champion-results>div{gap:7px}.report-export-strip{padding-bottom:16px;margin-bottom:22px}
}
@media(prefers-reduced-motion:reduce){.champion-rank{animation:none!important}}
@media print{.champion-rank{animation:none!important}}
