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

:root {
    --bg: #0c1f1f;
    --bg-card: #122c2c;
    --bg-header: #0a1a1a;
    --bg-drawer: #0e2424;
    --bg-sub: #142e2e;
    --gold: #d4a843;
    --gold-hover: #e8be5a;
    --gold-dim: rgba(212, 168, 67, 0.12);
    --white: #f0ece4;
    --gray: #8a9a96;
    --gray-dim: #5a6e6a;
    --border: rgba(240, 236, 228, 0.08);
    --border-light: rgba(240, 236, 228, 0.14);
    --font: 'DM Sans', sans-serif;
    --header-h: 64px;
    --sub-h: 48px;
    --max-w: 1300px;
    --radius: 10px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
}

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

ul,
ol {
    list-style: none;
}

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


/* ========== BUTTONS ========== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    border: none;
}

.btn--primary {
    background: var(--gold);
    color: var(--bg);
}

.btn--primary:hover {
    background: var(--gold-hover);
    box-shadow: 0 0 24px rgba(212, 168, 67, 0.3);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border: 1.5px solid var(--border-light);
}

.btn--outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn--full {
    width: 100%;
    padding: 14px 24px;
    font-size: 14px;
}


/* ========== HEADER ========== */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header__bar {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border);
}

.header__inner {
    display: flex;
    align-items: center;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
    height: var(--header-h);
    position: relative;
}

.header__burger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: var(--white);
    transition: background 0.2s;
    flex-shrink: 0;
}

.header__burger:hover {
    background: rgba(240, 236, 228, 0.06);
}

.header__logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header__logo img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

.header__auth {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    margin-left: auto;
}


/* ========== SUB NAV ========== */

.header__sub {
    background: var(--bg-sub);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
}

.header__sub::-webkit-scrollbar {
    display: none;
}

.header__sub .header__inner {
    height: var(--sub-h);
}

.header__sub ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 100%;
    white-space: nowrap;
    width: 100%;
}

.header__sub a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--gray);
    border-radius: 50px;
    transition: color 0.2s, background 0.2s;
}

.header__sub a:hover {
    color: var(--white);
    background: rgba(240, 236, 228, 0.05);
}

.header__sub a.is-active {
    color: var(--gold);
    background: var(--gold-dim);
}


/* ========== DRAWER ========== */

.drawer {
    position: fixed;
    inset: 0;
    z-index: 2000;
    pointer-events: none;
    visibility: hidden;
}

.drawer.is-open {
    pointer-events: auto;
    visibility: visible;
}

.drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s;
}

.drawer.is-open .drawer__backdrop {
    opacity: 1;
}

.drawer__panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background: var(--bg-drawer);
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(240, 236, 228, 0.1) transparent;
}

.drawer.is-open .drawer__panel {
    transform: translateX(0);
}

.drawer__head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    flex-shrink: 0;
}

.drawer__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(240, 236, 228, 0.06);
    color: var(--white);
    transition: background 0.2s;
}

.drawer__close:hover {
    background: rgba(240, 236, 228, 0.12);
}

.drawer__logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 2px;
}

.drawer__auth {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 20px 20px;
    flex-shrink: 0;
}

.drawer__search {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 20px 16px;
    padding: 12px 16px;
    background: rgba(240, 236, 228, 0.04);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--gray-dim);
    font-size: 13px;
    font-weight: 500;
    transition: border-color 0.2s;
    flex-shrink: 0;
}

.drawer__search:hover {
    border-color: var(--border-light);
    color: var(--gray);
}

.drawer__nav {
    flex: 1;
    padding: 0 12px;
}

.drawer__nav ul {
    display: flex;
    flex-direction: column;
}

.drawer__nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--white);
    border-radius: var(--radius);
    transition: background 0.2s, color 0.2s;
}

.drawer__nav a:hover {
    background: rgba(240, 236, 228, 0.05);
}

.drawer__nav a.is-highlight {
    background: var(--gold-dim);
    color: var(--gold);
}

.drawer__nav a.is-highlight:hover {
    background: rgba(212, 168, 67, 0.18);
}

.drawer__nav hr {
    border: none;
    height: 1px;
    background: var(--border);
    margin: 8px 12px;
}

.drawer__lang {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    margin-top: auto;
    border-top: 1px solid var(--border);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    flex-shrink: 0;
}

.drawer__lang-flag {
    font-size: 20px;
}

.drawer__lang svg {
    margin-left: auto;
    color: var(--gray);
}


/* ========== PAGE CONTENT ========== */

.page-content {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}


/* ========== HERO SLIDER ========== */

.hero__container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    height: 400px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.hero-slide.is-active {
    opacity: 1;
}

.hero-slide__bg {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-slide__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 48px;
    max-width: 520px;
    background: linear-gradient(90deg, rgba(10, 26, 26, 0.85) 0%, rgba(10, 26, 26, 0.4) 55%, transparent 100%);
}

.hero-slide__title {
    display: block;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 12px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero-slide__text {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray);
    line-height: 1.5;
    margin-bottom: 20px;
}

.hero-slide__cta {
    align-self: flex-start;
}

.hero-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.hero-dot {
    display: block;
    width: 32px;
    height: 4px;
    border-radius: 2px;
    background: rgba(240, 236, 228, 0.25);
    transition: background 0.3s, width 0.3s;
}

.hero-dot.is-active {
    background: var(--gold);
    width: 48px;
}


/* ========== FILTER BLOCK ========== */

.filter-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
}

.filter-block__search {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    background: rgba(240, 236, 228, 0.03);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--gray-dim);
    font-size: 14px;
    font-weight: 500;
    transition: border-color 0.2s, color 0.2s;
}

.filter-block__search:hover {
    border-color: var(--gold);
    color: var(--gray);
}

.filter-block__chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.filter-block__chips::-webkit-scrollbar {
    display: none;
}

.category-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    min-width: 0;
    flex: 1 0 0%;
    background: rgba(240, 236, 228, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.2s, background 0.2s;
}

.category-chip:hover {
    border-color: var(--border-light);
    background: rgba(240, 236, 228, 0.06);
}

.category-chip.is-active {
    border-color: var(--gold);
    background: var(--gold-dim);
}

.category-chip__icon {
    font-size: 22px;
    line-height: 1;
}

.category-chip__label {
    font-size: 11px;
    font-weight: 700;
    color: var(--gray);
    white-space: nowrap;
    letter-spacing: 0.2px;
    text-align: center;
}

.category-chip.is-active .category-chip__label {
    color: var(--gold);
}


/* ========== WINNERS ========== */

.winners {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.winners__title {
    font-size: 22px;
    font-weight: 800;
}

.winners__track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.winners__track::-webkit-scrollbar {
    display: none;
}

.winner-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-width: 240px;
    flex-shrink: 0;
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
    transition: opacity 0.4s, transform 0.4s;
}

.winner-card.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.winner-card.is-leaving {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
    transition: opacity 0.35s, transform 0.35s;
}

.winner-card__img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: linear-gradient(135deg, #1a3030, #0c2020);
}

.winner-card__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.winner-card__game {
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.winner-card__user {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-dim);
}

.winner-card__amount {
    font-size: 16px;
    font-weight: 800;
    color: var(--gold);
    white-space: nowrap;
    flex-shrink: 0;
}


/* ========== TOP GAMES ========== */

.top-games {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.top-games__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-games__title {
    font-size: 22px;
    font-weight: 800;
}

.top-games__more {
    font-size: 13px;
    font-weight: 700;
    color: var(--gray);
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.top-games__more:hover {
    color: var(--gold);
}

.top-games__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.game-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card);
    transition: transform 0.2s, box-shadow 0.2s;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.game-card__link {
    position: relative;
    display: block;
}

.game-card__img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg, #1a3030, #0c2020);
}

.game-card__hover {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.25s;
}

.game-card:hover .game-card__hover {
    opacity: 1;
}

.game-card__play {
    padding: 10px 22px;
    background: var(--gold);
    color: var(--bg);
    font-size: 13px;
    font-weight: 800;
    border-radius: 8px;
}

.game-card__demo {
    padding: 6px 16px;
    background: rgba(240, 236, 228, 0.12);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
}

.game-card__name {
    display: block;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}


/* ========== CONTENT ========== */

.content {
    width: 100%;
    color: var(--gray);
    line-height: 1.7;
    font-size: 15px;
}

.content h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 18px;
}

.content h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    margin-top: 28px;
    margin-bottom: 12px;
}

.content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    margin-top: 22px;
    margin-bottom: 10px;
}

.content p {
    margin-bottom: 14px;
}

.content img {
    max-width: 100%;
    display: block;
    margin: 0 auto;
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.content blockquote {
    border-left: 3px solid var(--gold);
    padding: 12px 20px;
    margin: 18px 0;
    background: rgba(212, 168, 67, 0.05);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
}

.content table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
}

.content th,
.content td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    white-space: nowrap;
}

.content th {
    font-weight: 700;
    color: var(--white);
    background: rgba(240, 236, 228, 0.04);
}

.content tbody tr:hover {
    background: rgba(240, 236, 228, 0.02);
}

.content ul {
    margin: 14px 0;
    padding-left: 22px;
    list-style: disc;
}

.content ul li {
    margin-bottom: 6px;
}

.content ol {
    margin: 14px 0;
    padding-left: 22px;
    list-style: decimal;
}

.content ol li {
    margin-bottom: 6px;
}

.content a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.content a:hover {
    color: var(--gold-hover);
}


/* ========== FOOTER ========== */

.footer {
    border-top: 1px solid var(--border);
    padding-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer__top {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 24px;
}

.footer__lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    transition: border-color 0.2s;
    flex-shrink: 0;
}

.footer__lang-btn:hover {
    border-color: var(--gold);
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
}

.footer__links a {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray);
    transition: color 0.2s, border-color 0.2s;
}

.footer__links a:hover {
    color: var(--white);
    border-color: var(--border-light);
}

.footer__payments {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid var(--border);
    padding: 24px 0;
}

.footer__payments-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray);
}

.footer__payments-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pay-badge {
    padding: 8px 16px;
    background: rgba(240, 236, 228, 0.04);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--gray);
    letter-spacing: 0.3px;
}

.footer__legal {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid var(--border);
    padding: 24px 0 12px;
}

.footer__legal p {
    font-size: 12px;
    color: var(--gray-dim);
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
}

.footer__copy {
    font-size: 12px;
    color: var(--gray-dim);
}

.footer__badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 12px 0 8px;
    flex-wrap: wrap;
}

.footer__age-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 800;
    color: var(--gold);
    flex-shrink: 0;
}

.footer__badge-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-dim);
}

.footer__badge-logo {
    height: 28px;
    width: auto;
    opacity: 0.5;
}


/* ========== RESPONSIVE ========== */

@media (max-width: 1024px) {
    .hero-slide__title {
        font-size: 26px;
    }

    .hero-slide__content {
        padding: 32px 36px;
        max-width: 440px;
    }

    .top-games__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .header__inner {
        padding: 0 12px;
        height: 56px;
    }

    .header__logo img {
        max-height: 50px;
    }

    .header__auth .btn {
        padding: 8px 14px;
        font-size: 11px;
    }

    .header__sub .header__inner {
        height: 44px;
    }

    .header__sub ul {
        justify-content: flex-start;
    }

    .page-content {
        padding: 16px;
        gap: 20px;
    }

    .hero-slider {
        height: 280px;
    }

    .hero-slide__content {
        padding: 24px;
        max-width: 100%;
    }

    .hero-slide__title {
        font-size: 22px;
    }

    .hero-slide__text {
        font-size: 13px;
    }

    .filter-block {
        padding: 14px;
        gap: 12px;
        border-radius: 12px;
    }

    .filter-block__chips {
        gap: 6px;
    }

    .category-chip {
        flex: 0 0 auto;
        min-width: 80px;
        padding: 10px 10px;
    }

    .winners__title {
        font-size: 18px;
    }

    .top-games__title {
        font-size: 18px;
    }

    .top-games__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .content h1 {
        font-size: 24px;
    }

    .content h2 {
        font-size: 20px;
    }

    .footer__top {
        flex-direction: column;
        align-items: center;
    }

    .footer__links {
        justify-content: center;
    }

    .footer__payments {
        align-items: center;
        text-align: center;
    }

    .footer__payments-grid {
        justify-content: center;
    }

    .pay-badge {
        padding: 6px 12px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .header__logo img {
        max-height: 50px;
    }

    .hero-slider {
        height: 220px;
    }

    .hero-slide__content {
        padding: 16px;
    }

    .hero-slide__title {
        font-size: 16px;
    }

    .hero-slide__text {
        font-size: 11px;
        margin-bottom: 12px;
    }

    .hero-slide__cta {
        padding: 7px 16px;
        font-size: 11px;
    }

    .hero-dots {
        bottom: 8px;
    }

    .hero-dot {
        width: 20px;
        height: 3px;
    }

    .hero-dot.is-active {
        width: 32px;
    }

    .top-games__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .winner-card {
        min-width: 200px;
        padding: 10px 12px;
    }

    .winner-card__img {
        width: 40px;
        height: 40px;
    }

    .winner-card__amount {
        font-size: 14px;
    }

    .category-chip {
        min-width: 75px;
        padding: 8px 6px;
    }

    .category-chip__icon {
        font-size: 18px;
    }

    .category-chip__label {
        font-size: 10px;
    }
}

@media (max-width: 420px) {
    .header__inner {
        padding: 0 8px;
    }

    .header__auth .btn {
        padding: 7px 10px;
        font-size: 10px;
    }

    .header__auth {
        gap: 6px;
    }
}

@media (max-width: 340px) {
    .header__auth .btn--outline {
        display: none;
    }
}

@media (max-width: 768px) {
    .header__logo {
        position: static;
        transform: none;
        flex: 1;
        display: flex;
        justify-content: center;
    }
}

.header__sub ul > li:nth-child(4),
.header__sub ul > li:nth-child(5),
.header__sub ul > li:nth-child(6),
.drawer__nav > ul:first-of-type > li:nth-child(4),
.drawer__nav > ul:first-of-type > li:nth-child(5),
.drawer__nav > ul:first-of-type > li:nth-child(6) {
    display: none !important;
}