:root{--bg:#0e1110;--surface:#1b1e1c;--line:#3c423c;--muted:#a6ada8;--purple:#b579ff;--purple-light:#d3b4ff;--accent-balance:linear-gradient(90deg,var(--green) 0 70%,var(--purple) 70% 100%)}
.topbar{background:#111513ee;border-bottom-color:#353b35}
.modebar{background:#0c100e;border-bottom-color:#2d342d}
.panel{background:linear-gradient(135deg,#222724f5,#151916f5);border-color:#434a42}
.board{background:linear-gradient(140deg,#202521fb,#141815fb);border-color:#444d40}
.ranking-table th{background:#141a15}
.ranking-table td{border-top-color:#3a423355}
.player-card{background:linear-gradient(135deg,#252b24ed,#171c17f2);border-color:#495044}
.podium-card:not(.winner){background:linear-gradient(150deg,#30372dda,#1b211bf5);border-color:#66765a80}
.podium-card:not(.winner) .avatar{background:linear-gradient(135deg,#4d5647,#252e23)}
.podium-card:first-child:not(.winner){border-top:2px solid #9461d4}
.podium-card:first-child:not(.winner) .podium-rank{color:var(--purple-light)}
.podium-card:first-child:not(.winner) .avatar{color:#d0b5f6;border-color:#9274b266;background:linear-gradient(135deg,#504162,#211d2b)}
.gc-pill{color:var(--purple-light);background:#7750aa18;border-color:#9564d56b}
.draw-mode:has(input[value=balanced]) input{accent-color:var(--purple)}
.draw-mode:has(input[value=balanced]:checked){background:#8050bc24;border-color:var(--purple)}
.draw-mode:has(input[value=balanced]) strong{color:var(--purple-light)}
.rank-tabs button[data-rank=kd]{color:var(--purple-light)}
.rank-tabs button[data-rank=kd].active{color:var(--purple-light)}
.rank-tabs button[data-rank=kd].active:after{background:var(--purple)}
body[data-ranking=kd] #rank-title{color:var(--purple-light)}
body[data-ranking=kd] .td-kd{color:#d0b4ff}
body[data-ranking=kd] .podium-score strong{color:#c297ff}
.team:nth-child(2){background:linear-gradient(135deg,#4a315633,#18141fe8);border-color:#80629288}
.team:nth-child(2) h3{color:var(--purple-light)}
.team:nth-child(2) li .avatar{background:linear-gradient(135deg,#504064,#231c2e);border-color:#8e6dac80;color:#d2b4ff}
.history-card{background:linear-gradient(135deg,#232921ee,#161b15f5);border-color:#495241}
.history-card .team:nth-child(2){background:transparent;border-top-color:#78529b80}
.history-card .team:nth-child(2) li{background:#57336d47}
.history-tabs button[data-history=matches].active{background:#6b3c8d55;color:var(--purple-light)}
.outline-label{color:#c6a8e7;border-color:#9872bb69;background:#64377719}
.reveal-team-b{border-color:#86619b88;border-top-color:var(--purple);background:linear-gradient(220deg,#62448160,#201329c4)}
.reveal-team-b h3>span,.reveal-team-b .reveal-gc>b{color:#cba6ff}
.reveal-team-b .reveal-gc,.reveal-team-b .reveal-team-caption{color:#b69bcf}
.reveal-team-b li{border-bottom-color:#9075a72e}
.reveal-team-b li .avatar{color:#d7baff;background:linear-gradient(135deg,#674482,#2d1d3c);border-color:#ae83cf80}
.reveal-team-b .reveal-player-gc{color:#a68aba}
.reveal-team-b .reveal-player-gc>b{color:#d3b8eb}
.draw-modal:not(.is-revealed) .reels>div:nth-child(2) .team-label{color:var(--purple-light)}
.draw-modal:not(.is-revealed) .reels>div:nth-child(2) .reel span{color:#c496ff;border-color:#9566bd80;background:linear-gradient(#68418950,#24112f);box-shadow:inset 0 25px 35px #0008,inset 0 -25px 35px #0008,0 0 28px #a674ef13}
.draw-modal.is-revealed{background:linear-gradient(120deg,#172411f5,#0a1108e0 48%,#2d1735ee),url('assets/bunker.webp') center/cover}
.reveal-mode{background:linear-gradient(110deg,#354c1b55,#54347133)}
.reveal-actions .outline{border-color:#9a6dc5;color:#d6bcf1;background:#6d3c951c}
.local-notice{background:#27351c66;border-color:#546642}
.site-footer{border-top-color:#394030}
/* Green leads actions and scoring; violet marks secondary controls and GC. */
.board{position:relative;border-right-color:#8059b388}
.board:before{content:'';position:absolute;top:-1px;left:0;right:0;height:2px;background:var(--accent-balance);border-radius:4px 4px 0 0;pointer-events:none}
.heading-meta>span{color:var(--purple-light);border-color:#a46ed199;background:#6e3ca520}
.empty-podium{border-color:#9767c780;background:linear-gradient(110deg,#182013e6 0 65%,#39224bea);box-shadow:inset -4px 0 0 #ab76ff66}
.empty-podium .eyebrow{color:var(--purple-light)}
.next-mix{border-left-color:#9567bf66}
.versus>span{color:var(--purple-light);background:#57317966}
.player-detail,.roster-item small{color:#bea1df}
.outline{color:var(--purple-light);border-color:#a675d699;background:#7043a21f}
.outline:where(:not(.danger-button)):hover:not(:disabled){background:#7043a23d;border-color:var(--purple)}
.outline:where(:not(.danger-button)):focus-visible,.rank-tabs button[data-rank=kd]:focus-visible{outline-color:var(--purple)}
.profile-actions button:last-child,.site-footer button{color:var(--purple-light)}
.gc-pill{background:#8750bf2b;border-color:#b579ff99}
.player-card,.history-card,.panel{border-right-color:#8f64b488}
.history-tabs button[data-history=matches]{color:var(--purple-light)}
.history-tabs button[data-history=matches].active{border-color:#b579ff99;background:#7645a844}
.reveal-versus{color:var(--purple-light);text-shadow:0 0 36px #b579ff33}
.draw-progress span{background:var(--accent-balance)}
.impact-coverage{display:block;font:400 11px/1.4 var(--body);color:var(--purple-light);white-space:nowrap;margin-top:4px}
.gc-formula{color:var(--purple-light);font-size:13px;line-height:1.7;margin:15px 0;overflow-wrap:anywhere}
.draw-outcome{font:700 20px var(--display);letter-spacing:1px;margin:18px 0;overflow-wrap:anywhere}
.draw-outcome span{font-size:15px;color:var(--muted)}.winner-a{color:var(--green)}.winner-b{color:var(--purple-light)}.pending-outcome{font-size:15px;color:var(--muted)}
.draw-link-note{padding:12px 14px;border-left:3px solid var(--purple);background:#35244344;color:var(--purple-light);font-size:13px;line-height:1.7}
.admin-layout>.panel,.admin-layout>aside,.import-preview,.gc-match-details{min-width:0}
.gc-match-details>.table-scroll,.import-preview>.table-scroll{max-width:100%}
.gc-stats-table{width:100%;min-width:1160px;border-collapse:collapse;font-size:13px;white-space:nowrap;font-variant-numeric:tabular-nums}
.gc-stats-table th,.gc-stats-table td{padding:11px 9px;text-align:center;border-bottom:1px solid #8f64b433}
.gc-stats-table th{color:var(--purple-light);background:#271c34}
.gc-stats-table th:nth-child(2),.gc-stats-table td:nth-child(2){text-align:left;min-width:125px}
.gc-stats-table abbr{text-decoration:none;cursor:help}
.gc-stats-table .gc-impact{font-weight:700;color:var(--green);background:#b5f1480c}
.gc-match-details{margin-top:22px;border-top:1px solid #8f64b44d;padding-top:14px}
.gc-match-details summary{cursor:pointer;color:var(--purple-light);font:700 15px var(--display);letter-spacing:1px;margin-bottom:12px}
.gc-profile-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:20px 0}
.gc-profile-metrics>div{padding:12px;background:#35244344;border:1px solid #8f64b44d;border-radius:3px}
.gc-profile-metrics strong,.gc-profile-metrics small{display:block}.gc-profile-metrics strong{font:700 27px var(--display);color:var(--purple-light)}.gc-profile-metrics small{font-size:11px;color:var(--muted)}
@media(max-width:600px){.gc-profile-metrics{grid-template-columns:repeat(2,1fr)}.gc-formula{font-size:12px}.gc-stats-table{font-size:12px}}
@media(max-width:800px){.next-mix{border-left-color:#586e393f;border-right-color:#9567bf88}}
.streak-medal{width:48px;height:38px;filter:drop-shadow(0 0 6px #ffbd4380);animation:gold-ember 2.6s ease-in-out infinite}
@keyframes gold-ember{0%,100%{filter:drop-shadow(0 0 5px #ffc65270)}50%{filter:drop-shadow(0 0 9px #ffd67ba0);transform:translateY(-1px)}}
@media(prefers-reduced-motion:reduce){.streak-medal{animation:none}}
.audio-list{list-style:none;padding:0;margin:14px 0 0}.audio-list li{display:flex;gap:9px;align-items:center;padding:11px 0;border-top:1px solid #5b68433d}.audio-list li>span{flex:1;min-width:0}.audio-list strong{display:block;font-size:14px;overflow-wrap:anywhere;color:#d9e0cc}.audio-list small{font-size:12px;color:#98a888}.audio-list .outline{font-size:13px;min-height:36px;padding:8px 11px;border-color:#9964c980;color:#d2b5ec}.audio-remove{font-size:24px;color:#9fae8d;padding:3px 6px}.audio-replay{font-size:13px;color:#d1b7ef;text-decoration:underline;text-underline-offset:4px;max-width:100%;overflow-wrap:anywhere;text-align:center}

.gc-source-link{text-decoration:none}.history-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.result-recap{flex-wrap:wrap;gap:18px}.result-recap .fine-print{margin-top:8px;max-width:500px}.gc-level-review{padding:15px 18px;background:#63398726;border-left:3px solid var(--purple);margin:18px 0}.gc-level-review h4{color:var(--purple-light);font:700 18px var(--display);letter-spacing:1px}.gc-level-review ul{margin:10px 0 0;padding-left:20px}.gc-level-review li{padding:3px 0;font-size:14px}.gc-level-review strong{color:var(--green)}.history-card h2>span{color:var(--muted)}#history-view .heading-row{flex-wrap:wrap}#history-count{display:inline-block}
