/* Shared night mode — see night-mode.js. Page-specific tweaks live in each page. */
.night-toggle-fab {
    position: fixed; top: 10px; left: 10px; z-index: 5000;   /* top-right is taken by the player page's round badge */
    width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.35); background: rgba(10,12,40,0.55);
    font-size: 1.1rem; line-height: 1; cursor: pointer; padding: 0;
}
.night-toggle-fab:hover { background: rgba(10,12,40,0.8); }

@media screen {
    html.night { color-scheme: dark; }
    html.night input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
    html.night select, html.night textarea {
        background-color: #10112a; color: #eef0ff; border-color: #4a4e80;
    }
    html.night input::placeholder, html.night textarea::placeholder { color: #7f84b3; }

    /* Colors set inline in markup or by scripts */
    html.night [style*="color:#1b2d92"], html.night [style*="color: #1b2d92"] { color: #9fb4ff !important; }
    html.night [style*="color:#222"], html.night [style*="color: #222"],
    html.night [style*="color:#333"], html.night [style*="color: #333"],
    html.night [style*="color:#444"], html.night [style*="color: #444"],
    html.night [style*="color:#555"], html.night [style*="color: #555"],
    html.night [style*="color:#666"], html.night [style*="color: #666"] { color: #c9cdf0 !important; }
    html.night [style*="background:white"], html.night [style*="background: white"],
    html.night [style*="background:#fff;"], html.night [style*="background: #fff;"],
    html.night [style*="background:#f9f9f9"], html.night [style*="background:#f5f5f5"],
    html.night [style*="background:#f3f3f3"] { background: #23264a !important; }
}
