/* Preferência individual de tema. A marca e as imagens preservam suas cores. */
:root{color-scheme:light;--theme-button-bg:#f4effc;--theme-button-text:#6032a0;--theme-button-line:#dfd2ef}
html[data-theme="dark"]{color-scheme:dark;--bg:#100d17;--card:#1c1628;--text:#f3edf9;--muted:#b9accb;--purple:#ad80ff;--line:#372c47;--theme-button-bg:#2a1e3c;--theme-button-text:#e2ceff;--theme-button-line:#584070}
.build-theme-toggle{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;gap:9px;min-width:42px;min-height:42px;padding:10px 14px;border:1px solid var(--theme-button-line);border-radius:12px;background:var(--theme-button-bg);color:var(--theme-button-text);font:600 12px/1.3 Inter,"Segoe UI",sans-serif;cursor:pointer;box-shadow:none;white-space:nowrap;transition:background .2s,border-color .2s}
.build-theme-toggle:hover{background:var(--theme-button-bg);border-color:#a78bfa;box-shadow:0 3px 14px #7c3aed20;transform:none}
.build-theme-toggle:focus-visible{outline:3px solid #b99af6;outline-offset:4px}.build-theme-toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.build-theme-toggle.theme-corner{position:fixed;top:18px;right:18px;z-index:50}.nav .wrap>.build-theme-toggle{margin-left:0}.conteudo .topo>.build-theme-toggle{align-self:center}
@media(max-width:1250px){.nav .wrap>.build-theme-toggle{padding:10px;width:42px}.nav .wrap>.build-theme-toggle span{display:none}}
@media(max-width:650px){.nav .wrap{column-gap:10px}.nav .wrap>.build-theme-toggle{margin-left:0}.nav .wrap>.account-status{gap:6px}.nav .wrap>.account-status .account-connected{padding:9px 8px}.build-theme-toggle.theme-corner{top:12px;right:12px}.theme-corner span{display:none}.tela-centro{padding-top:74px}}
/* Páginas dos jogadores. */
html[data-interface="portal"][data-theme="dark"] body{background:var(--bg);color:var(--text)}
html[data-interface="portal"][data-theme="dark"] .nav{background:#15101fed;border-color:var(--line)}
html[data-theme="dark"] .hero{background:#171020}html[data-theme="dark"] .hero-glow{background:radial-gradient(ellipse at 85% 50%,#6734aa55,transparent 55%),radial-gradient(ellipse at 30% 100%,#32204488,transparent 55%)}
html[data-theme="dark"] .hero-copy>p{color:#c4b5d5}html[data-theme="dark"] .floating-label{background:#241a32;color:#ede2ff;border-color:#543d71;box-shadow:0 15px 40px #0004}
html[data-theme="dark"] .communities{background:#100d17}html[data-theme="dark"] .play-section{background:#17121f}html[data-theme="dark"] .step-card{border-color:var(--line)}
html[data-theme="dark"] :is(.server-card,.card,.chat,.server-picker a,.tournament,.stat,.table-scroll,.detail-row table,.match-card,.player-detail,.analytics,.lobby-results,.form-server,.success-screen){background:var(--card);border-color:var(--line);box-shadow:none}
html[data-interface="portal"][data-theme="dark"] :is(button,.btn,input,select,textarea){background:#241b32;color:var(--text);border-color:#4b3a60}
html[data-interface="portal"][data-theme="dark"] :is(.primary,.discord-entry,.selected-match .btn){background:#8145dd;color:#fff;border-color:#9760e9}
html[data-interface="portal"][data-theme="dark"] :is(.primary,.discord-entry):hover{background:#9456ef}
html[data-interface="portal"][data-theme="dark"] :is(.dark,.join){background:#30203f;border-color:#674387;color:#fff}
html[data-interface="portal"][data-theme="dark"] .featured .join{background:#8145dd;border-color:#9760e9}
html[data-interface="portal"][data-theme="dark"] .socials .white{background:#fff;color:#251238;border-color:#fff}
html[data-interface="portal"][data-theme="dark"] .socials .outline-white{background:transparent;color:#fff;border-color:#ffffff70}
html[data-theme="dark"] .server-actions a{background:#2a1d3b;border-color:#4f376b;color:#d9bfff}html[data-theme="dark"] .server-actions a:hover{background:#38234f;border-color:#a78bfa}
html[data-theme="dark"] .server-actions .locked-action{background:#211c2b;color:#aa9bbd;border-color:#3b3149}html[data-theme="dark"] .server-content .access-note{color:#b5a3c9}
html[data-theme="dark"] :is(.account-connected,.forms-steps b){background:#30203f;border-color:#664285;color:#d4b1ff}html[data-theme="dark"] :is(.account-exit,.form-invite){color:#c6b3dc}
html[data-theme="dark"] :is(.message,.forms-notice,.team-insight){background:#261b35;color:#c9b7dc;border-color:#5d427a}html[data-theme="dark"] .forms-notice strong{color:#e1c8ff}
html[data-theme="dark"] .forms-page{background:radial-gradient(ellipse at 85% 12%,#44226355,transparent 45%),#100d17}
html[data-theme="dark"] :is(.forms-intro h1 span,.score-legend span:first-child,.match-mini-stats strong,.player-metrics strong){color:#bc95ff}
html[data-theme="dark"] .form-unavailable{background:#231c2d;color:#b5a5c5;border-color:var(--line)}html[data-theme="dark"] .success-check{background:#133d30;color:#6be3ad}
html[data-theme="dark"] .bubble{background:#2c203e;color:#eadff6}html[data-theme="dark"] .bubble.user{background:#8145dd;color:#fff}html[data-theme="dark"] .availability-day{background:#20172d}
html[data-theme="dark"] .state{background:#133d2b;color:#78e3a7}html[data-theme="dark"] .state.concluido{background:#48202c;color:#ff9eac}html[data-theme="dark"] .state.agendado{background:#342049;color:#d2aaff}
html[data-theme="dark"] .server-picker a.active{background:#352249;border-color:#b080fc}html[data-theme="dark"] th{background:#251b32}html[data-theme="dark"] tbody tr:hover{background:#281d36}
html[data-theme="dark"] .detail-row>td{background:#21182d}html[data-theme="dark"] :is(.player-stats span,.player-metrics>div,.combat-timeline time){background:#2b1f3b;color:#d4b7ff}
html[data-theme="dark"] .analysis-toolbar{background:#291b3b;border-color:#594072}html[data-theme="dark"] .analysis-context{background:linear-gradient(130deg,#21172e,#281b38);border-color:#5b3c78}
html[data-theme="dark"] .score-legend{color:#c4b0d7}html[data-theme="dark"] .score-legend span:nth-child(2){color:#eaa7ff}html[data-theme="dark"] .score-bar{background:#865497}
html[data-theme="dark"] .selected-match{background:#302042;border-color:#b280ff}html[data-theme="dark"] .combat-timeline li{border-color:var(--line)}html[data-theme="dark"] .analytics svg text{fill:var(--muted)}
html[data-theme="dark"] :is(.error,#availability-error){color:#ff9eb6}
/* Painel e telas de autenticação. */
html[data-interface="painel"][data-theme="dark"]{--sombra:0 20px 55px -24px #000c}
html[data-theme="dark"] .conteudo{--preto:#15101e;--carvao:#191321;--superficie:#21182e;--superficie-2:#2a1e3a;--superficie-3:#362649;--branco:#f3eafa;--texto:#ecdef7;--texto-suave:#c2adD4;--texto-fraco:#b9a1ce;--texto-apagado:#ad97c3;--borda:#3d2b50;--borda-media:#57406c;--borda-forte:#9671b6;--fundo:#21182e;--painel:#21182e;--sombra:0 15px 45px -20px #0009;background:radial-gradient(ellipse at 95% 0%,#39205177,transparent 40%),#15101e;color:var(--texto)}
html[data-theme="dark"] .conteudo :is(.rotulo-secao,.estatistica .valor,.discord-id code){color:#c299ff}
html[data-theme="dark"] .conteudo .botao:hover{background:#382449;color:#e4cbff}html[data-theme="dark"] .conteudo tbody tr:hover{background:#2a1c38}
html[data-theme="dark"] .conteudo :is(.form-config select,.form-config textarea){background:#21182e;border-color:#57406c}
html[data-theme="dark"] .conteudo :is(.faixa,.selo.solido,.chip-cargo.marcado){background:#30203f;border-color:#674387;color:#d9baff}
html[data-theme="dark"] .conteudo :is(.selo.perigo,.botao.reject){background:#48202c;border-color:#804359;color:#ffb0c2}
html[data-theme="dark"] .review-state.pendente{background:#49391c;color:#ffda82}html[data-theme="dark"] .review-state.aprovado{background:#163e2f;color:#81e4b4}html[data-theme="dark"] .review-state.reprovado{background:#48202c;color:#ffb0c2}
html[data-theme="dark"] .publication-save{background:#21182e}html[data-theme="dark"] .publication-save span{color:#c2add4}
html[data-theme="dark"] .login-page{background:#140e1e;color:#eadff6}html[data-theme="dark"] .login-page .fundo{background:radial-gradient(ellipse at 85% 15%,#58317d55,transparent 55%),radial-gradient(ellipse at 10% 90%,#2d1d4288,transparent 55%),#140e1e}
html[data-theme="dark"] .login-page .cartao-login{background:#20172eef;border-color:#553c6d;box-shadow:0 28px 80px -30px #0008}html[data-theme="dark"] .login-page .cartao-login h1{color:#f4eafa}
html[data-theme="dark"] .login-page .subtitulo{color:#bc95ff}html[data-theme="dark"] .login-page :is(.aviso-acesso,.login-voltar){color:#c3aed5;border-color:#4a355f}html[data-theme="dark"] .login-page .aviso-erro{color:#ffafc3;background:#43202e;border-color:#754057}
/* A borda neutra dos cartões não pode apagar a faixa de status dos modos. */
html[data-theme="dark"] .tournament.ativo{border-top-color:#22c55e}
html[data-theme="dark"] .tournament.concluido{border-top-color:#ef4444}
html[data-theme="dark"] .tournament.agendado{border-top-color:#a78bfa}
