/* Paleta Freerolls Brasil: amarelo/azul-marinho no claro e verde escuro legível no escuro. */
html, body { max-width:100%; overflow-x:hidden; }
:root { color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; }
html:not([data-theme="light"]) body:not(.admin-page):not(.login-page):not(.app-theme) { background:#071A12 !important; color:#F1FFF5 !important; }
html:not([data-theme="light"]) body:not(.admin-page):not(.login-page):not(.app-theme) .bg-spotify-black { background-color:#071A12 !important; }
html:not([data-theme="light"]) body:not(.admin-page):not(.login-page):not(.app-theme) .bg-spotify-dark { background-color:#0D291B !important; }
html:not([data-theme="light"]) body:not(.admin-page):not(.login-page):not(.app-theme) .bg-spotify-card { background-color:#123622 !important; }
html:not([data-theme="light"]) body:not(.admin-page):not(.login-page):not(.app-theme) .text-spotify-green { color:#53E08A !important; }
html:not([data-theme="light"]) body:not(.admin-page):not(.login-page):not(.app-theme) .bg-spotify-green { background-color:#32D47A !important; color:#062014 !important; }
html[data-theme="light"] body:not(.app-theme) {
  background: #FFFDF4 !important;
  color: #102A43 !important;
}
html[data-theme="light"] body:not(.app-theme) .bg-spotify-black,
html[data-theme="light"] body:not(.app-theme) .bg-black {
  background-color: #FFFDF4 !important;
}
html[data-theme="light"] body:not(.app-theme) .bg-spotify-dark { background-color: #FFFFFF !important; }
html[data-theme="light"] body:not(.app-theme) .bg-spotify-card { background-color: #F4E3A2 !important; }
html[data-theme="light"] body:not(.app-theme) .text-white { color: #102A43 !important; }
html[data-theme="light"] body:not(.app-theme) .text-spotify-gray { color: #3F5870 !important; }
html[data-theme="light"] body:not(.app-theme) .text-spotify-muted { color: #667C8E !important; }
html[data-theme="light"] body:not(.app-theme) .text-spotify-green { color: #0B3D62 !important; }
html[data-theme="light"] body:not(.app-theme) .bg-spotify-green { background-color: #C28A00 !important; }
html[data-theme="light"] body:not(.app-theme) .bg-spotify-green.text-black,
html[data-theme="light"] body:not(.app-theme) .bg-spotify-green .text-black { color: #102A43 !important; }
html[data-theme="light"] body:not(.app-theme) [class~="border-white/5"],
html[data-theme="light"] body:not(.app-theme) [class~="border-white/10"] { border-color: rgba(20,48,30,.12) !important; }
html[data-theme="light"] body:not(.app-theme) [class*="bg-gradient-to"] {
  background-color: #FFF8DB !important;
  background-image: linear-gradient(135deg, #F4E3A2, #FFFFFF 78%) !important;
}
html[data-theme="light"] body:not(.app-theme) header,
html[data-theme="light"] body:not(.app-theme) footer {
  background-color: rgba(255,255,255,.96) !important;
  border-color: rgba(20,48,30,.12) !important;
}
html[data-theme="light"] body:not(.app-theme) input,
html[data-theme="light"] body:not(.app-theme) select,
html[data-theme="light"] body:not(.app-theme) textarea {
  color: #17251C !important;
}
html[data-theme="light"] body:not(.app-theme) input::placeholder,
html[data-theme="light"] body:not(.app-theme) textarea::placeholder { color: #78877D !important; }
html[data-theme="light"] body:not(.app-theme) .btn.primary { color: #07140C !important; }
html[data-theme="light"] body:not(.app-theme) .tc-card { background:#fff !important; color:#17251C !important; border-color:rgba(20,48,30,.12) !important; }
html[data-theme="light"] body:not(.app-theme) nav.breadcrumb { color:#526258 !important; }
html[data-theme="light"] body:not(.app-theme) .navlinks a,
html[data-theme="light"] body:not(.app-theme) nav a { color: #526258; }
html[data-theme="light"] body:not(.app-theme) .navlinks a:hover,
html[data-theme="light"] body:not(.app-theme) nav a:hover { color: #102A43; background: #F4E3A2; }
html[data-theme="light"] body:not(.app-theme) h1,
html[data-theme="light"] body:not(.app-theme) h2,
html[data-theme="light"] body:not(.app-theme) h3 { text-shadow: 0 1px 8px rgba(20,48,30,.10); }
html:not([data-theme="light"]) body:not(.app-theme) h1,
html:not([data-theme="light"]) body:not(.app-theme) h2,
html:not([data-theme="light"]) body:not(.app-theme) h3 { text-shadow: 0 1px 10px rgba(24,232,121,.08); }

html[data-theme="light"] body.admin-page {
  background: #F4F7F4 !important;
  color: #17251C !important;
}
html[data-theme="light"] body.admin-page header {
  color: #17251C !important;
  background: rgba(255,255,255,.96) !important;
  border-color: rgba(20,48,30,.12) !important;
  box-shadow: 0 4px 18px rgba(23,45,30,.06);
}
html[data-theme="light"] body.admin-page .card {
  background: #FFFFFF !important;
  border: 1px solid rgba(20,48,30,.12);
  box-shadow: 0 10px 32px rgba(23,45,30,.06);
}
html[data-theme="light"] body.admin-page label,
html[data-theme="light"] body.admin-page p,
html[data-theme="light"] body.admin-page small { color: #536359 !important; }
html[data-theme="light"] body.admin-page h1,
html[data-theme="light"] body.admin-page h2,
html[data-theme="light"] body.admin-page h3,
html[data-theme="light"] body.admin-page strong { color: #17251C; }
html[data-theme="light"] body.admin-page h1,
html[data-theme="light"] body.admin-page h2,
html[data-theme="light"] body.admin-page h3 { text-shadow: 0 1px 8px rgba(20,48,30,.08); }
html[data-theme="light"] body.admin-page input:not([type="checkbox"]),
html[data-theme="light"] body.admin-page select,
html[data-theme="light"] body.admin-page textarea {
  background: #F8FBF8 !important;
  color: #17251C !important;
  border-color: rgba(20,48,30,.18) !important;
}
html[data-theme="light"] body.admin-page .btn-dark { background: #E8F1EB !important; color: #31443A !important; }
html[data-theme="light"] body.admin-page #sponsorMsg,
html[data-theme="light"] body.admin-page #sponsorOcrMsg,
html[data-theme="light"] body.admin-page #tournamentMsg,
html[data-theme="light"] body.admin-page #newsUpdateMsg { color:#087C43 !important; }
html[data-theme="light"] body.admin-page #sponsorList > div,
html[data-theme="light"] body.admin-page #tournamentList > div,
html[data-theme="light"] body.admin-page #detectedList > label { background: #F1F6F2 !important; }
html[data-theme="light"] body.admin-page #ocrText,
html[data-theme="light"] body.admin-page #dropZone { border-color: rgba(20,48,30,.2) !important; }
html:not([data-theme="light"]) body.admin-page h1,
html:not([data-theme="light"]) body.admin-page h2,
html:not([data-theme="light"]) body.admin-page h3 { text-shadow: 0 1px 10px rgba(24,232,121,.08); }
html[data-theme="light"] body.login-page { background: #F4F7F4 !important; color: #17251C !important; }
html[data-theme="light"] body.login-page .card { background: #fff !important; border-color: rgba(20,48,30,.14) !important; }
html[data-theme="light"] body.login-page h1 { color: #17251C !important; }
html[data-theme="light"] body.login-page input { background: #F8FBF8 !important; color: #17251C !important; border-color: rgba(20,48,30,.18) !important; }

.theme-toggle {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(130,150,135,.24);
  border-radius: 999px;
  color: inherit;
  background: rgba(130,150,135,.10);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: transform .15s, background-color .15s, border-color .15s;
}
.theme-toggle:hover { transform: translateY(-1px); border-color: #18E879; background: rgba(24,232,121,.12); }
.theme-toggle:focus-visible { outline: 3px solid #18E879; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .theme-toggle { transition: none; } }

/* Contraste reforçado no tema claro: substitui verdes neon usados em estilos inline/legados. */
html[data-theme="light"] body:not(.app-theme) .text-spotify-green,
html[data-theme="light"] body:not(.app-theme) a.text-spotify-green,
html[data-theme="light"] body:not(.app-theme) [style*="color:#18E879"],
html[data-theme="light"] body:not(.app-theme) [style*="color: #18E879"],
html[data-theme="light"] body:not(.app-theme) [style*="color:#18e879"],
 html[data-theme="light"] body:not(.app-theme) [style*="color: #18e879"] { color: #0B3D62 !important; }
html[data-theme="light"] body:not(.app-theme) .bg-spotify-green { background-color: #C28A00 !important; }
html[data-theme="light"] body:not(.app-theme) [style*="background:#18E879"],
html[data-theme="light"] body:not(.app-theme) [style*="background: #18E879"],
html[data-theme="light"] body:not(.app-theme) [style*="background-color:#18E879"],
html[data-theme="light"] body:not(.app-theme) [style*="background-color: #18E879"] { background-color: #C28A00 !important; }
html[data-theme="light"] body.admin-page .btn-green,
html[data-theme="light"] body.admin-page button[style*="background:#18E879"],
html[data-theme="light"] body.admin-page button[style*="background: #18E879"] { background: #C28A00 !important; color: #102A43 !important; }
html[data-theme="light"] body.admin-page [style*="color:#18E879"],
html[data-theme="light"] body.admin-page [style*="color: #18E879"],
html[data-theme="light"] body.admin-page [style*="color:#18e879"],
html[data-theme="light"] body.admin-page [style*="color: #18e879"] { color: #0B3D62 !important; }
html[data-theme="light"] body.admin-page .admin-muted,
html[data-theme="light"] body.admin-page p[style*="color:#b3b3b3"],
html[data-theme="light"] body.admin-page p[style*="color: #b3b3b3"] { color: #536359 !important; }
html[data-theme="light"] body.admin-page .article-card-author,
html[data-theme="light"] body.admin-page .article-author-credit { color: #0B3D62 !important; }
html[data-theme="light"] .article-byline,
html[data-theme="light"] .article-card-author { color: #0B3D62 !important; }
