@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@400;500;600&display=swap');
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #080810;
    --surface: #0f0f1a;
    --border: #1e1e2e;
    --accent: #7c3aed;
    --accent-h: #a78bfa;
    --accent-glow: rgba(124, 58, 237, 0.25);
    --text: #ededf0;
    --muted: #6b6b80;
    --sidebar-w: 240px;
    --topbar-h: 56px;
    --radius: 8px;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', 'Segoe UI', Tahoma, sans-serif;
    min-height: 100vh;
    scrollbar-color: #2e2e3e #0000;
    background-image: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(124, 58, 237, .12) 0%, transparent 70%);
    background-attachment: fixed;
}

a {
    color: var(--text);
    text-decoration: none;
}

a:hover {
    color: var(--accent-h);
}

img {
    display: block;
}

#topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-h);
    background: rgba(8, 8, 16, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 20px;
    z-index: 200;
}

#menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    padding: 6px;
    border-radius: 6px;
    transition: background .2s;
}

#menu-toggle:hover {
    background: var(--border);
}

#menu-toggle svg {
    width: 22px;
    height: 22px;
}

#topbar .site-title {
    font-family: 'Syne', sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #fff 30%, var(--accent-h));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .7);
    backdrop-filter: blur(4px);
    z-index: 150;
}

#sidebar {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    width: var(--sidebar-w);
    height: calc(100vh - var(--topbar-h));
    background: var(--surface);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    z-index: 160;
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
    padding: 20px 0 40px;
    scrollbar-width: none;
}

#sidebar::-webkit-scrollbar {
    display: none;
}

#sidebar h2 {
    font-family: 'Syne', sans-serif;
    font-size: 10px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 18px 20px 8px;
    opacity: .7;
}

#sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #8080a0;
    transition: background .15s, color .15s, padding-left .15s;
    border-left: 2px solid transparent;
    position: relative;
}

#sidebar a:hover,
#sidebar a.active {
    background: rgba(124, 58, 237, .1);
    color: var(--accent-h);
    border-left-color: var(--accent);
    padding-left: 24px;
}

#main {
    margin-left: var(--sidebar-w);
    padding-top: var(--topbar-h);
    min-height: 100vh;
}

#page-content {
    padding: 40px;
    max-width: 1400px;
}

#title {
    text-align: center;
    padding: 64px 0 40px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 48px;
    position: relative;
}

#title::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 120%, rgba(124, 58, 237, .15) 0%, transparent 70%);
    pointer-events: none;
}

#title h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(22px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #fff 20%, var(--accent-h) 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#game-counter {
    margin-top: 10px;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
}

#subtitle {
    margin-top: 10px;
    font-size: 13px;
    color: var(--muted);
    letter-spacing: .06em;
}

#site-description {
    margin-top: 20px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    font-size: 13px;
    line-height: 1.75;
    letter-spacing: .02em;
    color: var(--muted);
    opacity: .8;
    padding: 14px 22px;
    border: 1px solid rgba(124, 58, 237, .18);
    border-radius: 10px;
    background: rgba(124, 58, 237, .05);
    position: relative;
}

#site-description::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(124, 58, 237, .06) 0%, transparent 60%);
    pointer-events: none;
}

body.light #site-description {
    color: #666;
    opacity: 1;
    background: rgba(124, 58, 237, .04);
    border-color: rgba(124, 58, 237, .14);
}

.section-anchor {
    scroll-margin-top: calc(var(--topbar-h) + 20px);
}

.category-block {
    margin-bottom: 64px;
}

.category-block h3 {
    font-family: 'Syne', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-block h3::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 12px;
    background: var(--accent);
    border-radius: 2px;
    flex-shrink: 0;
}

.category-block h3 a {
    color: var(--muted);
    transition: color .2s;
}

.category-block h3 a:hover {
    color: var(--accent-h);
}

.action_category,
.adv_category,
.fps_category,
.horror_category,
.metroidvania_category,
.pf_category,
.pz_category,
.rg_category,
.rpg_category,
.sn_category,
.sim_category,
.souls_category,
.srv_category,
.vn_category,
.emulator_category,
.new_category {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.action_category img,
.adv_category img,
.fps_category img,
.horror_category img,
.metroidvania_category img,
.pf_category img,
.pz_category img,
.rg_category img,
.rpg_category img,
.sn_category img,
.sim_category img,
.souls_category img,
.srv_category img,
.vn_category img,
.emulator_category img,
.new_category img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: transform .25s cubic-bezier(.4, 0, .2, 1), border-color .25s, box-shadow .25s;
}

.action_category img:hover,
.adv_category img:hover,
.fps_category img:hover,
.horror_category img:hover,
.metroidvania_category img:hover,
.pf_category img:hover,
.pz_category img:hover,
.rg_category img:hover,
.rpg_category img:hover,
.sn_category img:hover,
.sim_category img:hover,
.souls_category img:hover,
.srv_category img:hover,
.vn_category img:hover,
.new_category img:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 12px 32px rgba(124, 58, 237, .3);
}

.emulator_category img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: transform .25s cubic-bezier(.4, 0, .2, 1), border-color .25s, box-shadow .25s;
}

.emulator_category img:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 12px 32px rgba(124, 58, 237, .3);
}

.faq {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 40px 0;
    border-top: 1px solid var(--border);
    margin-top: 40px;
    transition: color .2s;
}

.faq::before {
    content: '?';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 11px;
    opacity: .6;
}

.faq:hover {
    color: var(--accent-h);
}

.faq_txt {
    max-width: 780px;
    margin: 0 auto;
    padding: 40px 20px;
}

.faq_txt h2 {
    font-family: 'Syne', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
    margin-bottom: 32px;
}

.faq_txt p {
    text-align: left;
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.75;
    color: #b0b0c0;
}

.faq_txt p b {
    display: block;
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 4px;
    margin-top: 28px;
}

.faqinfaq {
    text-align: center;
}

.text {
    margin: 30px 50px;
    text-align: justify;
    font-size: 18px;
    display: flex;
}

.text a {
    text-decoration: underline solid;
}

.form {
    text-decoration: underline;
}

.emulator_in_emulator {
    font-size: 20px;
    text-align: center;
}

@media (max-width: 900px) {
    #sidebar {
        transform: translateX(-100%);
    }
    #sidebar.open {
        transform: translateX(0);
    }
    #sidebar-overlay.open {
        display: block;
    }
    #menu-toggle {
        display: flex;
        align-items: center;
    }
    #main {
        margin-left: 0;
    }
    #page-content {
        padding: 24px
    }
    .action_category img,
    .adv_category img,
    .fps_category img,
    .horror_category img,
    .metroidvania_category img,
    .pf_category img,
    .pz_category img,
    .rg_category img,
    .rpg_category img,
    .sn_category img,
    .sim_category img,
    .souls_category img,
    .srv_category img,
    .vn_category img,
    .emulator_category img,
    .new_category img {
        width: 140px;
        height: 140px;
    }
}

#search-box {
    margin-bottom: 40px;
}

#search-input {
    width: 100%;
    max-width: 480px;
    background: #161616;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    padding: 10px 16px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

#search-input::placeholder {
    color: var(--muted);
}

#search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, .15);
}

@media (max-width: 480px) {
    .action_category img,
    .adv_category img,
    .fps_category img,
    .horror_category img,
    .metroidvania_category img,
    .pf_category img,
    .pz_category img,
    .rg_category img,
    .rpg_category img,
    .sn_category img,
    .sim_category img,
    .souls_category img,
    .srv_category img,
    .vn_category img,
    .emulator_category img,
    .new_category img {
        width: 40vw;
    }
    .action_category,
    .adv_category,
    .fps_category,
    .horror_category,
    .metroidvania_category,
    .pf_category,
    .pz_category,
    .rg_category,
    .rpg_category,
    .sn_category,
    .sim_category,
    .souls_category,
    .srv_category,
    .vn_category,
    .emulator_category,
    .new_category {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
        gap: 12px;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #080810;
    --surface: #0f0f1a;
    --border: #1e1e2e;
    --accent: #7c3aed;
    --accent-h: #a78bfa;
    --text: #ededf0;
    --muted: #6b6b80;
    --topbar-h: 56px;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', 'Segoe UI', Tahoma, sans-serif;
    min-height: 100vh;
    background-image: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(124, 58, 237, .1) 0%, transparent 70%);
    background-attachment: fixed;
}

a {
    color: var(--text);
    text-decoration: none;
}

a:hover {
    color: var(--accent-h);
}

#topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-h);
    background: rgba(8, 8, 16, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 24px;
    z-index: 200;
}

#topbar a.back {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .05em;
    color: var(--muted);
    transition: color .2s;
}

#topbar a.back::before {
    content: "← ";
}

#topbar a.back:hover {
    color: var(--text);
}

#topbar .site-title {
    font-family: 'Syne', sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #fff 30%, var(--accent-h));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#game-page {
    max-width: 860px;
    margin: 0 auto;
    padding: calc(var(--topbar-h) + 48px) 24px 80px;
}

#game-cover {
    margin: auto;
    width: 60%;
    height: auto;
    display: block;
    border-radius: 12px;
    margin-bottom: 36px;
    border: 1px solid var(--border);
    box-shadow: 0 0 0 1px rgba(124, 58, 237, .2), 0 20px 80px rgba(0, 0, 0, .85);
    transition: box-shadow .3s, transform .3s;
}

#game-cover:hover {
    box-shadow: 0 0 0 1px rgba(124, 58, 237, .5), 0 24px 80px rgba(124, 58, 237, .2);
    transform: scale(1.01);
}

#game-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.1;
    margin-bottom: 0;
    color: var(--text);
}

#game-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.genre-tag {
    background: rgba(124, 58, 237, .1);
    border: 1px solid rgba(124, 58, 237, .3);
    color: var(--accent-h);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    transition: background .2s, border-color .2s;
}

.genre-tag:hover {
    background: rgba(124, 58, 237, .2);
    border-color: rgba(124, 58, 237, .5);
}

.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border), transparent);
    margin: 28px 0;
}

#game-description {
    font-size: 16px;
    line-height: 1.85;
    color: #9090aa;
    margin-bottom: 40px;
}

#download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: #fff;
    font-family: 'Syne', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 40px;
    border-radius: 6px;
    transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 24px rgba(124, 58, 237, .4);
}

#download-btn::before {
    content: "↓";
    font-size: 16px;
}

#download-btn:hover {
    background: var(--accent-h);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(124, 58, 237, .6);
}

#download-dlc-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: #2dd4bf;
    font-family: 'Syne', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 13px 40px;
    border-radius: 6px;
    border: 1px solid rgba(45, 212, 191, .45);
    margin-left: 12px;
    transition: background .2s, border-color .2s, color .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 20px rgba(45, 212, 191, .1);
}

#download-dlc-btn::before {
    content: "✦";
    font-size: 13px;
    opacity: .85;
}

#download-dlc-btn:hover {
    background: rgba(45, 212, 191, .1);
    border-color: rgba(45, 212, 191, .8);
    color: #5eead4;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(45, 212, 191, .22);
}

body.light #download-dlc-btn {
    color: #0d9488;
    border-color: rgba(13, 148, 136, .4);
    box-shadow: 0 4px 20px rgba(13, 148, 136, .08);
}

body.light #download-dlc-btn:hover {
    background: rgba(13, 148, 136, .08);
    border-color: rgba(13, 148, 136, .7);
    color: #0f766e;
}

#game-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

#game-title-row #game-title {
    margin-bottom: 0;
}

#wl-game-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .2s, background .2s, transform .2s;
    padding: 0;
}

#wl-game-btn svg {
    width: 18px;
    height: 18px;
    stroke: #666;
    transition: stroke .2s, fill .2s;
}

#wl-game-btn:hover {
    border-color: var(--accent);
    transform: scale(1.1);
}

#wl-game-btn:hover svg {
    stroke: var(--accent-h);
}

#wl-game-btn.wl-game-active {
    border-color: var(--accent);
    background: rgba(124, 58, 237, .12);
}

#wl-game-btn.wl-game-active svg {
    stroke: var(--accent-h);
    fill: var(--accent-h);
}

#not-found {
    text-align: center;
    padding: 120px 24px;
}

#not-found h2 {
    font-size: 32px;
    margin-bottom: 12px;
    color: var(--muted);
}

#not-found a {
    color: var(--muted);
    text-decoration: underline;
}

@media (max-width: 600px) {
    #game-page {
        padding-top: calc(var(--topbar-h) + 24px);
    }
    #game-cover {
        width: 90%;
        border-radius: 8px;
    }
    #download-btn {
        width: 100%;
        justify-content: center;
    }
    #download-dlc-btn {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        margin-top: 10px;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #080810;
    --surface: #0f0f1a;
    --border: #1e1e2e;
    --accent-h: #a78bfa;
    --text: #ededf0;
    --muted: #6b6b80;
    --topbar-h: 56px;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', 'Segoe UI', Tahoma, sans-serif;
    min-height: 100vh;
    background-image: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(124, 58, 237, .1) 0%, transparent 70%);
}

a {
    color: var(--text);
    text-decoration: none;
}

a:hover {
    color: var(--accent-h);
}

#topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-h);
    background: rgba(8, 8, 16, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 20px;
    z-index: 200;
}

#topbar a.back {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .05em;
    color: #8080a0;
    transition: color .2s;
}

#topbar a.back::before {
    content: "← ";
}

#topbar a.back:hover {
    color: #fff;
}

#topbar .site-title {
    font-family: 'Syne', sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #fff 30%, var(--accent-h));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq_txt {
    max-width: 720px;
    margin: 0 auto;
    padding: calc(var(--topbar-h) + 48px) 24px 80px;
}

.faq_txt h2 {
    font-family: 'Syne', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
    margin-bottom: 32px;
}

.faq_txt p {
    font-size: 15px;
    line-height: 1.75;
    color: #9090aa;
    margin-bottom: 8px;
    text-align: left;
}

.faq_txt p b {
    display: block;
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 4px;
    margin-top: 28px;
}

.form {
    color: var(--accent-h);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .2s;
}

.form:hover {
    color: #fff;
}

@media (max-width: 600px) {
    .faq_txt {
        padding: calc(var(--topbar-h) + 28px) 16px 60px;
    }
}

.new-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    color: #fff;
    font-family: 'Syne', 'Segoe UI', sans-serif;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
    padding: 2px 7px;
    border-radius: 4px;
    pointer-events: none;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(124, 58, 237, .5);
    animation: badge-pulse 2.4s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(124, 58, 237, .5); }
    50%       { box-shadow: 0 2px 16px rgba(124, 58, 237, .85), 0 0 0 3px rgba(124, 58, 237, .18); }
}

.card-wrap {
    position: relative;
    display: block;
}

.card-wrap a {
    display: block;
    position: relative;
}

.card-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: rgba(12, 12, 22, 0.95);
    border: 1px solid rgba(124, 58, 237, .3);
    color: #e8e8e8;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .18s, transform .18s;
    z-index: 50;
    max-width: 200px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(124, 58, 237, .1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.card-tooltip-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
    display: block;
}

.card-tooltip-stars {
    display: block;
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--accent-h);
    line-height: 1;
}

.card-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(124, 58, 237, .3);
}

.card-wrap:hover .card-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.wl-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    background: rgba(8, 8, 16, .8);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .15s, background .15s, border-color .15s, transform .15s;
    z-index: 10;
    padding: 0;
}

.wl-btn svg {
    width: 14px;
    height: 14px;
    stroke: #888;
    transition: stroke .15s, fill .15s;
}

.card-wrap:hover .wl-btn {
    opacity: 1;
}

.wl-btn:hover {
    background: rgba(20, 20, 40, .95);
    border-color: var(--accent);
    transform: scale(1.1);
}

.wl-btn:hover svg {
    stroke: var(--accent-h);
}

.wl-btn.wl-active {
    opacity: 1;
    background: rgba(124, 58, 237, .2);
    border-color: var(--accent);
}

.wl-btn.wl-active svg {
    stroke: var(--accent-h);
    fill: var(--accent-h);
}

.sidebar-badge {
    margin-left: auto;
    background: rgba(124, 58, 237, .15);
    border: 1px solid rgba(124, 58, 237, .25);
    color: #666;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 1px 7px;
    border-radius: 20px;
    min-width: 22px;
    text-align: center;
}

#sidebar a:hover .sidebar-badge,
#sidebar a.active .sidebar-badge {
    background: rgba(124, 58, 237, .25);
    border-color: rgba(124, 58, 237, .5);
    color: var(--accent-h);
}

#back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 42px;
    height: 42px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 300;
    opacity: 0;
    transform: translateY(12px) scale(0.9);
    transition: opacity .25s, transform .25s cubic-bezier(.4, 0, .2, 1), background .2s;
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(124, 58, 237, .5);
}

#back-to-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

#back-to-top:hover {
    background: var(--accent-h);
    transform: translateY(-2px) scale(1.05);
}

@media (max-width: 900px) {
    #back-to-top {
        bottom: 20px;
        right: 20px;
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}

#recent-searches-block h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#clear-ratings {
    background: none;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 4px 10px;
    cursor: pointer;
    transition: border-color .2s, color .2s;
    font-family: inherit;
}

#clear-ratings:hover {
    border-color: #555;
    color: var(--text);
}

#clear-recent {
    background: none;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 4px 10px;
    cursor: pointer;
    transition: border-color .2s, color .2s;
    font-family: inherit;
}

#clear-recent:hover {
    border-color: #555;
    color: var(--text);
}

.recent_category {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.recent_category img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border);
    transition: transform .2s, border-color .2s;
}

.recent_category img:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

@media (max-width: 900px) {
    .recent_category img {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 480px) {
    .recent_category img {
        width: 40vw;
        height: auto;
    }
}

.rated_category {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.rated_category img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border);
    transition: transform .2s, border-color .2s;
}

.rated_category img:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

@media (max-width: 900px) {
    .rated_category img {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 480px) {
    .rated_category img {
        width: 40vw;
        height: auto;
    }
}

#search-box {
    position: relative;
    max-width: 560px;
    margin: 0 auto 40px;
}

#search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

#search-icon {
    position: absolute;
    left: 16px;
    width: 18px;
    height: 18px;
    color: #555;
    pointer-events: none;
}

#search-input {
    width: 100%;
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    color: #e8e8e8;
    font-size: 15px;
    padding: 13px 42px 13px 46px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    font-family: inherit;
}

#search-input::placeholder {
    color: #444;
}

#search-input:focus {
    border-color: #444;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .04);
}

#search-clear {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 4px;
    display: none;
    transition: color .15s;
}

#search-clear:hover {
    color: #ccc;
}

#search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .75);
    z-index: 1000;
    display: none;
    max-height: 430px;
    overflow-y: auto;
}

#search-dropdown.visible {
    display: block;
}

#search-dropdown::-webkit-scrollbar {
    width: 4px;
}

#search-dropdown::-webkit-scrollbar-thumb {
    background: #2a2a2a;
    border-radius: 4px;
}

.dd-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #444;
    padding: 10px 16px 6px;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 16px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: background .1s;
}

.suggestion-item:hover,
.suggestion-item.focused {
    background: #1e1e1e;
}

.s-thumb {
    width: 44px;
    height: 31px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    background: #1a1a1a;
}

.s-info {
    flex: 1;
    min-width: 0;
}

.s-title {
    font-size: 14px;
    font-weight: 600;
    color: #e8e8e8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.s-title mark {
    background: none;
    color: #fff;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: #444;
}

.s-genres {
    font-size: 11px;
    color: #555;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.s-arrow {
    color: #2e2e2e;
    font-size: 16px;
    flex-shrink: 0;
}

.dd-empty {
    padding: 28px 16px;
    text-align: center;
    color: #3a3a3a;
    font-size: 14px;
}

.dd-empty strong {
    color: #555;
}

.dd-footer {
    border-top: 1px solid #1d1d1d;
    padding: 9px 16px;
    font-size: 11px;
    color: #333;
    display: flex;
    justify-content: space-between;
}

.dd-footer kbd {
    background: #1e1e1e;
    border: 1px solid #2a2a2a;
    border-radius: 3px;
    padding: 1px 5px;
    font-size: 10px;
    color: #4a4a4a;
    font-family: inherit;
}

#wishlist-page {
    max-width: 900px;
    margin: 0 auto;
    padding: calc(var(--topbar-h) + 48px) 24px 80px;
}

#wishlist-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
    margin-bottom: 36px;
}

#wishlist-header h1 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--muted);
}

#wl-clear-all {
    background: none;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 4px 10px;
    cursor: pointer;
    transition: border-color .2s, color .2s;
    font-family: inherit;
}

#wl-clear-all:hover {
    border-color: #555;
    color: var(--text);
}

#wl-empty {
    text-align: center;
    padding: 80px 0;
    color: var(--muted);
}

#wl-empty p {
    font-size: 15px;
    margin-bottom: 16px;
}

#wl-empty a {
    color: var(--accent-h);
    text-decoration: underline;
    font-size: 13px;
}

#wl-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wl-card {
    display: flex;
    gap: 20px;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 14px;
    transition: border-color .2s;
}

.wl-card:hover {
    border-color: #333;
}

.wl-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.wl-card-info {
    flex: 1;
    min-width: 0;
}

.wl-card-title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .2s;
}

.wl-card-title:hover {
    color: var(--accent-h);
}

.wl-card-genres {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.wl-card-actions {
    display: flex;
    gap: 8px;
}

.wl-dl-btn {
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 4px;
    text-decoration: none;
    transition: background .2s;
}

.wl-dl-btn:hover {
    background: var(--accent-h);
    color: #fff;
}

.wl-remove-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    transition: border-color .2s, color .2s;
}

.wl-remove-btn:hover {
    border-color: #555;
    color: var(--text);
}

@media (max-width: 480px) {
    .wl-card {
        gap: 12px;
        padding: 10px;
    }
    .wl-card img {
        width: 60px;
        height: 60px;
    }
    .wl-card-title {
        font-size: 13px;
    }
}

#rating-section {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
}

#rating-stars {
    display: flex;
    gap: 4px;
}

.star-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .1s;
}

.star-btn svg {
    width: 26px;
    height: 26px;
    stroke: #444;
    fill: none;
    transition: stroke .15s, fill .15s;
}

.star-btn:hover,
.star-btn.star-active {
    transform: scale(1.15);
}

.star-btn.star-active svg {
    stroke: #9323f5;
    fill: #9323f5;
}

.star-btn.star-voted svg {
    stroke: var(--accent-h);
    fill: none;
    opacity: .4;
}

.star-btn.star-voted.star-active svg {
    stroke: var(--accent-h);
    fill: var(--accent-h);
    opacity: 1;
}

#rating-summary {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--muted);
    white-space: nowrap;
}

.card-rating-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 6px 8px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .82));
    opacity: 0;
    transition: opacity .18s;
    border-radius: 0 0 4px 4px;
    pointer-events: none;
}

.card-rating-value {
    font-size: 15px;
    color: #9323f5;
    letter-spacing: 2px;
    line-height: 1;
}

#theme-toggle {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    padding: 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}

#theme-toggle:hover {
    background: var(--border);
}

#theme-toggle svg {
    width: 20px;
    height: 20px;
}

body.light {
    --bg: #f4f4f8;
    --surface: #ebebf0;
    --border: #d4d4de;
    --text: #111118;
    --muted: #5a5a6e;
    background-image: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(124, 58, 237, .07) 0%, transparent 70%);
}

body.light #topbar {
    background: rgba(244, 244, 248, 0.85);
    box-shadow: 0 1px 0 var(--border);
}

body.light #topbar .site-title {
    background: linear-gradient(135deg, #111 30%, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light #sidebar a {
    color: #555568;
}

body.light .category-block h3 {
    color: #888;
}

body.light .s-title {
    color: #111;
}

body.light .s-genres {
    color: #777;
}

body.light #search-input {
    background: #e6e6ee;
    color: #111;
    border-color: #c0c0d0;
}

body.light #search-input::placeholder {
    color: #999;
}

body.light #search-dropdown {
    background: #eeeef4;
    border-color: #ccc;
}

body.light .suggestion-item:hover,
body.light .suggestion-item.focused {
    background: #e2e2ea;
}

body.light .card-tooltip {
    background: rgba(240, 240, 248, 0.97);
    border-color: #bbbbd0;
    color: #111;
}

body.light .card-tooltip::after {
    border-top-color: #bbbbd0;
}

body.light .wl-btn {
    background: rgba(240, 240, 248, .85);
    border-color: #bbbbd0;
}

body.light .wl-card {
    background: #ebebf0;
    border-color: #d0d0de;
}

body.light #game-description {
    color: #444;
}

body.light .faq_txt p {
    color: #444;
}

body.light .dd-label {
    color: #999;
}

body.light .dd-footer {
    color: #aaa;
    border-top-color: #ccc;
}

body.light #title h1 {
    background: linear-gradient(135deg, #111 20%, var(--accent) 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-h3-with-action {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    text-align: left;
}

.section-h3-label {
    text-align: left;
    flex: 1;
}

.section-h3-with-action::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 12px;
    background: var(--accent);
    border-radius: 2px;
    flex-shrink: 0;
    margin-right: 10px;
}

#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-h));
    z-index: 9999;
    transition: width .08s linear;
    pointer-events: none;
    box-shadow: 0 0 8px rgba(124, 58, 237, .6);
}

#kb-hint {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 15, 26, 0.9);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    padding: 6px 14px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    pointer-events: none;
    opacity: 0;
    animation: kb-hint-appear 0.4s ease 2s forwards;
    transition: opacity .3s;
    z-index: 200;
    white-space: nowrap;
}

#kb-hint kbd {
    background: rgba(124, 58, 237, .15);
    border: 1px solid rgba(124, 58, 237, .3);
    color: var(--accent-h);
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 4px;
    font-family: inherit;
    margin-right: 4px;
}

@keyframes kb-hint-appear {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(6px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

#kb-hint.kb-hint-hidden {
    opacity: 0 !important;
    pointer-events: none;
}

@media (max-width: 900px) {
    #kb-hint {
        display: none;
    }
}

#toast-container {
    position: fixed;
    bottom: 28px;
    right: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 5000;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .03em;
    padding: 12px 18px;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .5);
    opacity: 0;
    transform: translateY(10px) scale(0.97);
    transition: opacity .22s cubic-bezier(.4, 0, .2, 1), transform .22s cubic-bezier(.4, 0, .2, 1);
    backdrop-filter: blur(12px);
    max-width: 280px;
}

.toast.toast-show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast-add {
    border-color: rgba(124, 58, 237, .45);
    background: rgba(15, 15, 26, .95);
}

.toast-add::before {
    content: '♥';
    color: var(--accent-h);
    font-size: 14px;
    flex-shrink: 0;
}

.toast-remove {
    border-color: rgba(90, 90, 110, .5);
}

.toast-remove::before {
    content: '♡';
    color: var(--muted);
    font-size: 14px;
    flex-shrink: 0;
}

body.light .toast {
    background: rgba(235, 235, 240, .97);
}

@media (max-width: 600px) {
    #toast-container {
        bottom: 16px;
        right: 16px;
        left: 16px;
    }
    .toast {
        max-width: 100%;
    }
}

.section-hidden {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .45s ease, transform .45s ease;
}

.section-visible {
    opacity: 1;
    transform: translateY(0);
}