:root {
    --accent: #00d084;
    --accent-strong: #12f59d;
    --bg: #0b0d10;
    --bg-soft: #12161b;
    --panel: #171d24;
    --panel-2: #1d2630;
    --text: #f5f7fa;
    --muted: #9ba7b4;
    --border: #2a3542;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 208, 132, 0.45) rgba(255, 255, 255, 0.04);
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(0, 208, 132, 0.12), transparent 32%),
        linear-gradient(180deg, #0b0d10 0%, #0e1217 100%);
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-soft {
    0%,
    100% {
        box-shadow: 0 12px 28px rgba(0, 208, 132, 0.12);
    }

    50% {
        box-shadow: 0 18px 34px rgba(0, 208, 132, 0.2);
    }
}

@keyframes float-soft {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

@keyframes lucky-dice-spin {
    0% {
        transform: rotate(-10deg) scale(1);
    }

    25% {
        transform: rotate(6deg) scale(1.04);
    }

    50% {
        transform: rotate(-4deg) scale(0.98);
    }

    75% {
        transform: rotate(9deg) scale(1.03);
    }

    100% {
        transform: rotate(-10deg) scale(1);
    }
}

@keyframes shimmer-x {
    0% {
        transform: translateX(-140%);
    }

    100% {
        transform: translateX(140%);
    }
}

@keyframes search-glow {
    0%,
    100% {
        box-shadow: 0 10px 26px rgba(0, 208, 132, 0.08);
        border-color: rgba(255, 255, 255, 0.08);
    }

    50% {
        box-shadow: 0 16px 34px rgba(0, 208, 132, 0.18);
        border-color: rgba(18, 245, 157, 0.22);
    }
}

@keyframes search-icon-breathe {
    0%,
    100% {
        transform: translateY(-50%) scale(1);
        color: var(--muted);
    }

    50% {
        transform: translateY(-50%) scale(1.08);
        color: rgba(18, 245, 157, 0.9);
    }
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select {
    font: inherit;
}

.container {
    width: min(1400px, calc(100% - 32px));
    margin: 0 auto;
}

.header {
    position: relative;
    z-index: 50;
    isolation: isolate;
}

.header::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(180deg, rgba(6, 8, 11, 0.82), rgba(10, 13, 17, 0.74)),
        radial-gradient(circle at top center, rgba(0, 208, 132, 0.06), transparent 58%);
    backdrop-filter: blur(18px) saturate(110%);
}

.header::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    z-index: -1;
}

.header-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0 0;
    color: var(--muted);
    font-size: 13px;
    position: relative;
    z-index: 1;
}

.header-topline-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.header-topline-text .ui-icon {
    color: var(--accent-strong);
}

.header-quicklinks {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.header-quicklink {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.header-quicklink:hover {
    border-color: rgba(18, 245, 157, 0.24);
    color: var(--text);
}

.header-inner {
    display: grid;
    grid-template-columns: auto auto minmax(320px, 520px);
    align-items: center;
    gap: 24px;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 50;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #04130d;
    font-weight: 800;
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.logo-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-subtitle {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ui-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.ui-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.main-nav {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.main-nav-link {
    padding: 10px 15px;
    border-radius: 999px;
    color: var(--muted);
    transition: 0.2s ease;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.03);
}

.main-nav-link:hover,
.main-nav-link.active {
    background: rgba(0, 208, 132, 0.12);
    border-color: rgba(18, 245, 157, 0.24);
    color: var(--text);
    transform: translateY(-1px);
}

.header-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 46px;
    padding: 0 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 208, 132, 0.18), rgba(18, 245, 157, 0.12));
    border: 1px solid rgba(18, 245, 157, 0.24);
    color: var(--text);
    font-weight: 700;
    white-space: nowrap;
    animation: pulse-soft 2.8s ease-in-out infinite;
}

.header-cta .ui-icon {
    color: var(--accent-strong);
}

.header-cta:hover {
    transform: translateY(-2px);
}

.search-form {
    position: relative;
    width: 100%;
    animation: search-glow 3.2s ease-in-out infinite;
    border-radius: 14px;
}

.search-input {
    width: 100%;
    height: 48px;
    padding: 0 118px 0 44px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.search-input:focus {
    outline: none;
    border-color: rgba(0, 208, 132, 0.65);
    background: rgba(255, 255, 255, 0.065);
    box-shadow: 0 0 0 3px rgba(0, 208, 132, 0.12), 0 14px 28px rgba(0, 208, 132, 0.12);
}

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

.search-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: var(--muted);
    animation: search-icon-breathe 2.8s ease-in-out infinite;
}

.search-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    height: 36px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #04130d;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    box-shadow: 0 10px 24px rgba(0, 208, 132, 0.18);
}

.search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0, 208, 132, 0.24);
    filter: brightness(1.02);
}

.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.page-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
    padding: 28px 0 48px;
}

.main-content {
    min-width: 0;
}

.sidebar {
    position: static;
    min-width: 0;
}

.sidebar-mobile-head {
    display: none;
}

.mobile-sidebar-backdrop {
    display: none;
}

.sidebar-section,
.hero,
.detail-hero,
.detail-section,
.empty-state {
    background: linear-gradient(180deg, rgba(29, 38, 48, 0.92), rgba(23, 29, 36, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 22px;
    box-shadow: var(--shadow);
    animation: fade-up 0.5s ease both;
}

.sidebar-section {
    padding: 16px;
}

.sidebar-section + .sidebar-section {
    margin-top: 14px;
}

.sidebar-title {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: visible;
}

.category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 11px;
    border: 1px solid transparent;
    border-radius: 14px;
    color: var(--muted);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.category-copy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(18, 245, 157, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.category-icon .ui-icon {
    width: 15px;
    height: 15px;
}

.category-link:hover,
.category-link.active {
    border-color: rgba(0, 208, 132, 0.32);
    background: rgba(0, 208, 132, 0.1);
    color: var(--text);
    transform: translateX(3px);
}

.category-link:hover .category-icon,
.category-link.active .category-icon {
    background: rgba(0, 208, 132, 0.14);
    border-color: rgba(18, 245, 157, 0.2);
    color: var(--accent-strong);
    transform: scale(1.06);
    box-shadow: 0 10px 20px rgba(0, 208, 132, 0.16);
}

.category-link--race .category-icon { color: #ffb84d; background: rgba(255, 184, 77, 0.12); }
.category-link--sport-games .category-icon { color: #73f0a8; background: rgba(115, 240, 168, 0.12); }
.category-link--fighting .category-icon { color: #ff6b6b; background: rgba(255, 107, 107, 0.12); }
.category-link--zombie-games .category-icon { color: #9be15d; background: rgba(155, 225, 93, 0.12); }
.category-link--stels .category-icon { color: #8ea6ff; background: rgba(142, 166, 255, 0.12); }
.category-link--quest .category-icon { color: #ffd166; background: rgba(255, 209, 102, 0.12); }
.category-link--horror-games .category-icon { color: #b088ff; background: rgba(176, 136, 255, 0.14); }
.category-link--arcade .category-icon { color: #4dd8ff; background: rgba(77, 216, 255, 0.12); }
.category-link--action .category-icon { color: #ff7a59; background: rgba(255, 122, 89, 0.12); }
.category-link--rpg .category-icon { color: #ff9ad5; background: rgba(255, 154, 213, 0.12); }
.category-link--strategy .category-icon { color: #7ce2ff; background: rgba(124, 226, 255, 0.12); }
.category-link--sandbox-pc .category-icon { color: #e7c46a; background: rgba(231, 196, 106, 0.12); }
.category-link--survival-game .category-icon { color: #ff8c6b; background: rgba(255, 140, 107, 0.12); }
.category-link--simulation .category-icon { color: #7de0d0; background: rgba(125, 224, 208, 0.12); }
.category-link--erotic .category-icon { color: #ff6fae; background: rgba(255, 111, 174, 0.12); }
.category-link--adventure .category-icon { color: #ffd36e; background: rgba(255, 211, 110, 0.12); }
.category-link--platformer-games .category-icon { color: #8cd3ff; background: rgba(140, 211, 255, 0.12); }
.category-link--vizualnie-novelli .category-icon { color: #c79cff; background: rgba(199, 156, 255, 0.12); }
.category-link--zhdem-vyhoda .category-icon { color: #73f0a8; background: rgba(115, 240, 168, 0.12); }
.category-link--vr-games .category-icon { color: #66e0ff; background: rgba(102, 224, 255, 0.12); }
.category-link--igry-na-dvoikh .category-icon { color: #ffb3c7; background: rgba(255, 179, 199, 0.12); }
.category-link--gog .category-icon { color: #cab3ff; background: rgba(202, 179, 255, 0.12); }
.category-link--bez-ustanovki .category-icon { color: #8ef7c2; background: rgba(142, 247, 194, 0.12); }
.category-link--game-open-world .category-icon { color: #78d8ff; background: rgba(120, 216, 255, 0.12); }
.category-link--online-games .category-icon { color: #7af0df; background: rgba(122, 240, 223, 0.12); }
.category-link--russkaya_ozvuchka .category-icon { color: #ffd36e; background: rgba(255, 211, 110, 0.12); }
.category-link--repack-igruha .category-icon,
.category-link--repack-by-xatab .category-icon { color: #ff9d66; background: rgba(255, 157, 102, 0.12); }
.category-link--good-graphics-games .category-icon { color: #8ad1ff; background: rgba(138, 209, 255, 0.12); }
.category-link--s-khoroshim-siuzhetom .category-icon { color: #ffa8f0; background: rgba(255, 168, 240, 0.12); }

.category-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-count {
    flex-shrink: 0;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 12px;
}

.years-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.year-link {
    justify-content: center;
    text-align: center;
}

.year-link .category-name {
    white-space: normal;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    padding: 12px 16px;
    border-radius: 16px;
    color: #c9d2dc;
    font-size: 14px;
    background: linear-gradient(180deg, rgba(29, 38, 48, 0.92), rgba(23, 29, 36, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow);
}

.breadcrumbs a:hover {
    color: var(--accent-strong);
}

.breadcrumbs .current {
    color: var(--text);
}

.breadcrumbs .separator {
    opacity: 0.5;
}

.hero,
.detail-hero,
.detail-section,
.empty-state {
    padding: 28px;
}

.hero {
    margin-bottom: 22px;
}

.hero-with-pagination {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.hero-pagination {
    margin-left: auto;
    flex-shrink: 0;
    align-self: flex-end;
}

.hero-pagination .pagination {
    justify-content: flex-end;
    margin: 0;
}

.hero-pagination .page-link {
    width: 52px;
    flex: 0 0 52px;
    height: 40px;
    border-radius: 12px;
}

.results-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 10px;
}

.hero-content h1,
.detail-title {
    margin: 0;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-content p {
    margin: 14px 0 0;
    max-width: 760px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.75;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-home-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    gap: 22px;
    align-items: center;
}

.hero-lucky-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-self: stretch;
    justify-content: center;
    min-height: 100%;
    padding: 22px 22px 20px;
    border-radius: 24px;
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(18, 245, 157, 0.18), transparent 42%),
        linear-gradient(135deg, rgba(0, 208, 132, 0.18), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(18, 245, 157, 0.24);
    box-shadow: 0 18px 40px rgba(0, 208, 132, 0.14);
    overflow: hidden;
    animation: pulse-soft 2.2s ease-in-out infinite, float-soft 3.4s ease-in-out infinite;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.hero-lucky-card::before {
    content: '';
    position: absolute;
    inset: auto -20% -30% auto;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(18, 245, 157, 0.22), transparent 68%);
    pointer-events: none;
}

.hero-lucky-dice {
    position: relative;
    z-index: 1;
    width: 74px;
    height: 74px;
    margin-bottom: 4px;
    filter: drop-shadow(0 16px 26px rgba(0, 208, 132, 0.2));
    animation: lucky-dice-spin 4.8s ease-in-out infinite;
}

.hero-lucky-dice svg {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-lucky-dice rect {
    fill: url(#heroLuckyDiceFill);
    stroke: rgba(255, 255, 255, 0.28);
    stroke-width: 2;
}

.hero-lucky-dice circle {
    fill: #072517;
}
}

.hero-lucky-card:hover {
    transform: translateY(-3px) scale(1.01);
    border-color: rgba(18, 245, 157, 0.38);
    box-shadow: 0 24px 50px rgba(0, 208, 132, 0.22);
}

.hero-lucky-eyebrow {
    position: relative;
    z-index: 1;
    color: rgba(245, 247, 250, 0.74);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-lucky-title {
    position: relative;
    z-index: 1;
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
}

.hero-lucky-text {
    position: relative;
    z-index: 1;
    color: rgba(245, 247, 250, 0.78);
    font-size: 15px;
    line-height: 1.6;
}

.hero-lucky-action {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    color: #04130d;
    width: fit-content;
    padding: 12px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(0, 208, 132, 0.24);
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.stat-badge::after {
    content: '';
    position: absolute;
    inset: 0 auto 0 -32%;
    width: 28%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    transform: skewX(-22deg);
    opacity: 0;
}

.hero:hover .stat-badge::after,
.detail-hero:hover .stat-badge::after {
    opacity: 1;
    animation: shimmer-x 0.9s ease;
}

.stat-badge strong,
.stat-badge a {
    color: var(--text);
    font-weight: 700;
}

.section {
    margin-top: 26px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.section-title {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.ad-slot {
    position: relative;
    overflow: hidden;
    padding: 22px 24px;
    margin: 22px 0;
    border-radius: 24px;
    border: 1px dashed rgba(18, 245, 157, 0.35);
    background:
        linear-gradient(135deg, rgba(0, 208, 132, 0.12), rgba(19, 25, 31, 0.92)),
        radial-gradient(circle at top right, rgba(18, 245, 157, 0.16), transparent 38%);
    box-shadow: var(--shadow);
}

.ad-slot > * {
    position: relative;
    z-index: 1;
}

.ad-slot-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.ad-slot-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(12, 17, 24, 0.95) 0%, rgba(12, 17, 24, 0.82) 44%, rgba(12, 17, 24, 0.5) 100%),
        radial-gradient(circle at top right, rgba(255,255,255,0.08), transparent 34%);
}

.ad-slot-media img {
    position: absolute;
    right: -4%;
    top: 50%;
    width: min(44%, 360px);
    max-width: none;
    height: auto;
    transform: translateY(-50%);
    object-fit: cover;
    opacity: 0.52;
    filter: saturate(1.1) contrast(1.04) brightness(0.88);
}

.ad-slot--home-top {
    background:
        linear-gradient(135deg, rgba(255, 157, 0, 0.2), rgba(19, 25, 31, 0.94)),
        radial-gradient(circle at top right, rgba(255, 196, 90, 0.16), transparent 38%);
}

.ad-slot--home-mid {
    background:
        linear-gradient(135deg, rgba(0, 208, 132, 0.14), rgba(11, 18, 34, 0.95)),
        radial-gradient(circle at top right, rgba(66, 170, 255, 0.16), transparent 38%);
}

.ad-slot--listing-inline,
.ad-slot--game-download {
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(19, 25, 31, 0.94)),
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.16), transparent 38%);
}

.ad-slot--game-hero {
    background:
        linear-gradient(135deg, rgba(225, 29, 72, 0.18), rgba(19, 25, 31, 0.94)),
        radial-gradient(circle at top right, rgba(251, 113, 133, 0.16), transparent 38%);
}

.ad-slot--home-top .ad-slot-media img {
    width: min(38%, 300px);
    opacity: 0.48;
    filter: sepia(0.16) saturate(1.12) contrast(1.08) brightness(0.94);
}

.ad-slot--home-mid .ad-slot-media img {
    width: min(40%, 320px);
    opacity: 0.54;
    filter: hue-rotate(-6deg) saturate(1.18) contrast(1.04) brightness(0.92);
}

.ad-slot--listing-inline .ad-slot-media img,
.ad-slot--game-download .ad-slot-media img {
    width: min(44%, 340px);
    opacity: 0.5;
    filter: saturate(1.22) contrast(1.06) brightness(0.88);
}

.ad-slot--game-hero .ad-slot-media img {
    width: min(42%, 320px);
    opacity: 0.46;
    filter: grayscale(0.08) saturate(1.2) contrast(1.08) brightness(0.86);
}

.ad-slot::after {
    content: '';
    position: absolute;
    right: -44px;
    bottom: -84px;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: rgba(18, 245, 157, 0.08);
    filter: blur(8px);
}

.ad-slot-eyebrow {
    position: relative;
    z-index: 1;
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.ad-slot-title {
    position: relative;
    z-index: 1;
    margin-top: 12px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.ad-slot-text {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.6;
}

.ad-slot-meta {
    position: relative;
    z-index: 1;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
}

.ad-slot-actions {
    position: relative;
    z-index: 1;
    margin-top: 16px;
}

.ad-slot-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    color: #06110b;
    font-weight: 800;
    letter-spacing: -0.01em;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ad-slot-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.view-all-link {
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--muted);
}

.view-all-link:hover {
    border-color: rgba(0, 208, 132, 0.28);
    color: var(--text);
}

.refresh-hint {
    color: var(--muted);
    font-size: 13px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.games-grid--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.game-card {
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(29, 38, 48, 0.98), rgba(18, 24, 31, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    animation: fade-up 0.45s ease both;
}

.game-card:hover {
    transform: translateY(-7px);
    border-color: rgba(18, 245, 157, 0.38);
    box-shadow: 0 24px 38px rgba(0, 0, 0, 0.34);
}

.games-grid .game-card:nth-child(odd) {
    animation-duration: 0.52s;
}

.games-grid .game-card:nth-child(even) {
    animation-duration: 0.62s;
}

.featured-slider-section .section-title,
.hero-home .hero-content h1 {
    animation: float-soft 4.8s ease-in-out infinite;
}

.game-card-link {
    display: block;
}

.game-card-image-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.game-card-image,
.game-card-image--placeholder {
    width: 100%;
    height: 100%;
}

.game-card-image {
    object-fit: cover;
    transition: transform 0.35s ease;
}

.game-card-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #202a35, #141a20);
    color: var(--muted);
    font-weight: 700;
    letter-spacing: 0.12em;
}

.game-card:hover .game-card-image {
    transform: scale(1.06);
}

.game-card-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 10, 13, 0.02) 0%, rgba(7, 10, 13, 0.78) 100%);
    pointer-events: none;
}

.game-card-overlay {
    position: absolute;
    right: 12px;
    bottom: 12px;
    left: 12px;
    display: flex;
    justify-content: flex-start;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.22s ease;
}

.game-card:hover .game-card-overlay {
    opacity: 1;
    transform: translateY(0);
}

.game-card-overlay-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(12, 17, 21, 0.88);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.game-card-info {
    padding: 16px 16px 18px;
}

.game-card-title {
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
    min-height: 44px;
}

.game-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
}

.game-card-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.detail-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.game-card-category,
.detail-category-link {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-size: 12px;
}

.detail-category-link:hover,
.game-card-category:hover {
    background: rgba(0, 208, 132, 0.12);
    color: var(--text);
}

.empty-state {
    text-align: center;
}

.empty-state-icon {
    font-size: 54px;
}

.empty-state h3 {
    margin: 14px 0 10px;
    font-size: 24px;
}

.empty-state p {
    margin: 0;
    color: var(--muted);
}

.mobile-categories {
    display: none;
    margin-bottom: 20px;
}

.mobile-categories select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 22px;
    margin-top: 28px;
}

.results-stack-top,
.results-stack-bottom {
    margin: 0;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    flex: 0 0 52px;
    height: 44px;
    padding: 0;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.page-link.active,
.page-link:hover {
    border-color: rgba(0, 208, 132, 0.3);
    background: rgba(0, 208, 132, 0.12);
    color: var(--text);
}

.page-link.dots {
    pointer-events: none;
}

.footer {
    padding: 28px 0 42px;
    text-align: center;
}

.footer p {
    color: var(--muted);
}

.footer-brand {
    color: var(--accent-strong);
    font-weight: 800;
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.92);
    z-index: 100;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    border-radius: 18px;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 34px;
    cursor: pointer;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 208, 132, 0.38);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(18, 245, 157, 0.55);
}

@media (max-width: 1100px) {
    .hero-home-layout {
        grid-template-columns: 1fr;
    }

    .hero-lucky-card {
        min-height: 0;
    }

    .header-topline {
        display: none;
    }

    .header-inner {
        grid-template-columns: auto 1fr auto;
    }

    .main-nav {
        grid-column: 1 / -1;
        order: 3;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }

    .page-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 120;
        width: min(380px, 92vw);
        padding: 18px 14px 20px;
        overflow-y: auto;
        background: linear-gradient(180deg, rgba(16, 21, 27, 0.98), rgba(12, 17, 22, 0.98));
        box-shadow: -24px 0 48px rgba(0, 0, 0, 0.35);
        transform: translateX(108%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.22s ease, opacity 0.22s ease, visibility 0.22s ease;
        display: block;
    }

    .sidebar.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .sidebar-mobile-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 4px 8px 16px;
    }

    .sidebar-mobile-head strong {
        font-size: 16px;
        font-weight: 800;
        letter-spacing: -0.02em;
    }

    .sidebar-mobile-close {
        width: 42px;
        height: 42px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.05);
        color: var(--text);
        cursor: pointer;
        font-size: 24px;
        line-height: 1;
    }

    .mobile-sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 110;
        display: block;
        background: rgba(4, 8, 12, 0.6);
        backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.22s ease, visibility 0.22s ease;
    }

    .mobile-sidebar-backdrop.active {
        opacity: 1;
        visibility: visible;
    }

    .mobile-categories {
        display: block;
    }

    .years-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .games-grid,
    .games-grid--compact {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .hero-home-layout {
        gap: 16px;
    }

    .hero-lucky-card {
        padding: 18px;
        border-radius: 20px;
    }

    .hero-lucky-title {
        font-size: 28px;
    }

    .container {
        width: min(100% - 24px, 1400px);
    }

    .header-inner {
        grid-template-columns: 1fr auto;
        gap: 14px;
    }

    .logo-subtitle,
    .header-cta {
        display: none;
    }

    .header-actions {
        grid-column: 1 / -1;
    }

    body.mobile-sidebar-open {
        overflow: hidden;
    }

    .hero-with-pagination {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-pagination {
        width: 100%;
    }

    .hero-pagination .pagination {
        justify-content: flex-start;
    }

    .hero,
    .detail-hero,
    .detail-section,
    .empty-state {
        padding: 22px;
    }

    .ad-slot {
        padding: 18px;
        border-radius: 20px;
    }

    .ad-slot-media img {
        right: -18%;
        width: min(56%, 260px);
        opacity: 0.34;
    }

    .ad-slot-title {
        font-size: 18px;
    }

    .games-grid,
    .games-grid--compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .years-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
