/* Jolixo — Dark theme: token overrides and dark variants of base components. */

[data-theme=dark] {
    --canvas:#0f1320;
    --surface:#171c2a;
    --soft:#1e2435;
    --ink:#eef1f8;
    --muted:#8e98b0;
    --border:#252c3e;
    --shadow:0 18px 50px rgba(0,0,0,.35);
    color-scheme:dark;
}

[data-theme=dark] .site-body {
    background:radial-gradient(circle at 30% -10%,rgba(255,119,87,.12) 0,transparent 32%),radial-gradient(circle at 100% 10%,rgba(82,207,208,.08) 0,transparent 30%),var(--canvas);
}

[data-theme=dark] .rail {
    background:rgba(20,25,38,.82);
}

[data-theme=dark] .rail-link,[data-theme=dark] .rail-bottom {
    color:#7f8aa3;
}

[data-theme=dark] .rail-link:hover,[data-theme=dark] .rail-bottom:hover {
    background:#222a3d;
    color:var(--ink);
}

[data-theme=dark] .rail-link.active {
    background:rgba(255,119,87,.14);
    color:var(--coral);
}

[data-theme=dark] .rail-bottom {
    background:rgba(82,207,208,.12);
    color:var(--mint);
}

[data-theme=dark] .topbar {
    background:rgba(15,19,32,.9);
    border-bottom-color:var(--border);
}

[data-theme=dark] .toplinks,[data-theme=dark] .text-link,[data-theme=dark] .more-link {
    color:#9aa4bb;
}

[data-theme=dark] .top-search,[data-theme=dark] .search-suggestions,[data-theme=dark] .welcome-pill,[data-theme=dark] .btn-outline,[data-theme=dark] .genre-chip,[data-theme=dark] .filter-bar,[data-theme=dark] .filter-bar select,[data-theme=dark] .pager a,[data-theme=dark] .empty-state,[data-theme=dark] .icon-btn,[data-theme=dark] .player-toolbar button,[data-theme=dark] .description-card,[data-theme=dark] .related-card,[data-theme=dark] .auth-wrap,[data-theme=dark] .account-card,[data-theme=dark] .article,[data-theme=dark] .card-play,[data-theme=dark] .skip {
    background:var(--surface);
    border-color:var(--border);
    color:var(--ink);
}

[data-theme=dark] .search-suggestions a:hover,[data-theme=dark] .btn-outline:hover {
    background:var(--soft);
}

[data-theme=dark] .top-search button,[data-theme=dark] .filter-search,[data-theme=dark] .btn-light {
    background:var(--soft);
    color:var(--mint);
}

[data-theme=dark] .stacked-form input:not([type=checkbox]):not([type=file]),[data-theme=dark] .stacked-form textarea,[data-theme=dark] .stacked-form select {
    background:var(--soft);
    border-color:var(--border);
    color:var(--ink);
}

[data-theme=dark] .game-art {
    background:var(--soft);
    box-shadow:0 10px 24px rgba(0,0,0,.3);
}

[data-theme=dark] .game-data span {
    color:var(--muted);
}

[data-theme=dark] .btn-dark {
    background:var(--ink);
    color:var(--canvas);
}

[data-theme=dark] .auth-art {
    background:var(--soft);
}

[data-theme=dark] .blog-card {
    background:linear-gradient(150deg,#1a2132,#1b1d2a);
}

[data-theme=dark] .genre-area {
    background:linear-gradient(110deg,#162a2c,#1b1d2c);
}

[data-theme=dark] .category-tile {
    background:linear-gradient(150deg,color-mix(in srgb,var(--tile-bg) 30%,var(--surface)),var(--surface) 75%);
    border-color:color-mix(in srgb,var(--tile-bg) 25%,var(--border));
}

[data-theme=dark] .category-tile small {
    color:var(--muted);
}

[data-theme=dark] .rating-form select,[data-theme=dark] .filter-tabs a {
    background:var(--surface);
    border-color:var(--border);
    color:var(--ink);
}

[data-theme=dark] .player-toolbar span,[data-theme=dark] .filter-field,[data-theme=dark] .blog-card small {
    color:var(--muted);
}

[data-theme=dark] .ad-space {
    border-color:var(--border);
    color:var(--muted);
}

[data-theme=dark] .flash.error {
    background:#3a1820;
    color:#ffb3c0;
    border-color:#5a2230;
}

[data-theme=dark] .flash.success {
    background:#10302a;
    color:#8ff0c8;
    border-color:#1b4a3c;
}

[data-theme=dark] .mobile-nav {
    background:rgba(20,25,38,.96);
    border-top-color:var(--border);
}

[data-theme=dark] h1,[data-theme=dark] h2,[data-theme=dark] h3 {
    color:var(--ink);
}
