/* Approved smoked-glass night theme. All rules are scoped to dark mode. */
html[data-theme=dark]{background-color:#202121;color-scheme:dark}
html[data-theme=dark] body{background-color:transparent!important;color:#f3f3f2}
html[data-theme=dark] body.member-signed::before{inset:-90px;background:linear-gradient(#17191a28,#17191a28),url('court-night.webp') center/cover no-repeat!important;filter:blur(55px) saturate(.2) sepia(.12) brightness(.72)!important}
html[data-theme=dark] body.member-signed::after{background:transparent!important}
html[data-theme=dark] :is(.card,.score,.overview,.profile-explainer,.metric,.howto,.analysis-sheet),html[data-theme=dark] dialog:not(.analysis-overlay){background:linear-gradient(125deg,rgba(43,45,46,.79),rgba(22,24,25,.84))!important;border-color:rgba(225,229,228,.32)!important;color:#f3f3f2;backdrop-filter:blur(28px) saturate(.4);-webkit-backdrop-filter:blur(28px) saturate(.4);box-shadow:inset 0 1px 2px #ffffff38,inset 0 -1px 2px #ffffff10,0 8px 25px #00000020!important}
html[data-theme=dark] :is(.member-signed header,.site-footer){background:rgba(28,30,31,.78)!important;border-color:#e1e5e440!important;color:#f3f3f2;backdrop-filter:blur(28px) saturate(.4);-webkit-backdrop-filter:blur(28px) saturate(.4)}
html[data-theme=dark] :is(.timeline-score,.timeline-comment,.watch-score>div){background:rgba(19,22,23,.58)!important;border-color:#d7ddde35!important;box-shadow:inset 0 1px 1px #ffffff0d;color:#f3f3f2}
html[data-theme=dark] .timeline-post{background:transparent!important;border-color:#d7ddde30}
html[data-theme=dark] .profile-tabs{background:transparent!important;border-color:#d7ddde30!important}
html[data-theme=dark] :is(h1,h2,h3,strong,.hero-counts,.hero-counts b,.profile-facts,.report-duration,.profile-stats b){color:#f3f3f2}
html[data-theme=dark] :is(.muted,small,.field,.profile-title p,.profile-explainer,.person-identity small,.timeline-post time,.timeline-friends-note,.timeline-point-stats,.profile-stats .card>div>span,.month-axis,.profile-facts dt,.profile-facts dd,.analysis-row,.analysis-team-head){color:#d0d4d5!important}
html[data-theme=dark] :is(input,select,textarea){background:rgba(20,23,24,.76)!important;color:#f3f3f2;border-color:#c6cdce55;box-shadow:inset 0 1px 2px #ffffff10}
html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#b8bfc1}
html[data-theme=dark] select option{background:#252829;color:#f3f3f2}
html[data-theme=dark] :is(button,.site-footer a){color:#f0f2f2;background:rgba(74,79,81,.32);border-color:#d7ddde3d;box-shadow:inset 0 1px 1px #ffffff12}
html[data-theme=dark] :is(button:hover,button.selected,[aria-pressed=true],.player-options [aria-selected=true]){background:rgba(111,123,124,.42)!important;color:#fff}
html[data-theme=dark] .primary{background:#17747a!important;color:#fff;border-color:#a2d5d55c}
html[data-theme=dark] :is(a,.player-link-state,.mixed-label){color:#97ddd5}
html[data-theme=dark] .player-options{background:rgba(30,33,34,.97)!important;border-color:#d7ddde40!important}
html[data-theme=dark] .notification-item{background:#4a4f512e;border-color:#c6cdce40}
html[data-theme=dark] .notification-item.unread{background:#42615c60}
html[data-theme=dark] :is(.badge,.timeline-result){background:#626b6e38;color:#e1e5e6;border-color:#c6cdce35}
html[data-theme=dark] .timeline-result.win{background:#244f3c80;color:#ade1bb}
html[data-theme=dark] .timeline-result.loss{background:#61363880;color:#f3b6ba}
html[data-theme=dark] svg text{fill:#d0d4d5}
html[data-theme=dark] .current-month-chart polyline{stroke:#72d5ce}
html[data-theme=dark] .analysis-overlay::backdrop{background:#15181970;backdrop-filter:blur(35px);-webkit-backdrop-filter:blur(35px)}
html[data-theme=dark] .analysis-tabs [aria-selected=true]{background:#376c6a!important;color:#fff}
html[data-theme=dark] .member-signed header .account-bar button:not(#accountLogout):hover,html[data-theme=dark] .member-signed header .account-bar button:not(#accountLogout):focus-visible{background:#d7ddde20!important;border-color:#d7ddde35!important}


html[data-theme=dark] .site-footer{background:rgba(28,30,31,.48)!important}html[data-theme=dark] .member-signed header{border-top:0!important;box-shadow:inset 0 -1px 0 #ffffff25!important}

html[data-theme=dark] body.arena-app{background:#202121!important;background-image:none!important}
html[data-theme=dark] body.arena-app::before,html[data-theme=dark] body.arena-app::after{background:none!important;background-image:none!important;filter:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}

/* Consistent midnight palette and readable secondary copy. */
html[data-theme=dark]{background:#101316;--green:#b9e2ed;--line:#9bb9c840}
html[data-theme=dark] body.arena-app{background:#101316!important;color:#eef5fa}
html[data-theme=dark] :is(.card,.score,.overview,.profile-explainer,.metric,.howto,.analysis-sheet){background:linear-gradient(125deg,#1c2b36,#14212b)!important;color:#eef5fa!important}
html[data-theme=dark] body.member-signed>header,html[data-theme=dark] .site-footer{background:#12202b!important}
html[data-theme=dark] #app :is(p,summary,legend,dt,dd,th,td,.eyebrow,.score-head,.medal-progress,.medal-how,.ranking-heading,.empty-state,.history-empty){color:#c5dce9!important}
html[data-theme=dark] #app :is(h1,h2,h3,h4){color:#f1f7fb!important}
html[data-theme=dark] #app :is(.how-step,.team-fields,.metric){background:#203340!important;border-color:#69879866!important}
html[data-theme=dark] #app :is(button,a){color:#d2ecfb}
html[data-theme=dark] #app button :is(span,small){color:inherit!important}
html[data-theme=dark] #app .player-link-state{color:#b7dbe8!important}
html[data-theme=dark] #app :is(.score-line,.player-select) :is(strong,span){color:inherit}
