:root {
    --primary-color: #b91c1c;
    --primary-dark: #7f1d1d;
    --secondary-color: #d97706;
    --text-main: #1f2937;
    --text-light: #4b5563;
    --bg-body: #f9fafb;
    --bg-white: #ffffff;
    --bg-light: #f3f4f6;
    --success-color: #15803d;
    --error-color: #991b1b;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    --rc-color-primary: #b91c1c;
    --rc-color-primary-soft: #fee2e2;
    --rc-color-bg: #ffffff;
    --rc-color-bg-soft: #f9fafb;
    --rc-color-text: #111827;
    --rc-color-text-muted: #6b7280;
    --rc-shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.12);
    --rc-radius-lg: 16px;
    --rc-radius-md: 10px;
    --rc-radius-pill: 999px;
    --rc-z-age: 9999;
    --rc-z-cookie: 9998;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-dark);
}

h1,
h2,
h3,
h4 {
    color: var(--text-main);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: var(--text-main);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

.hero {
    background: linear-gradient(rgba(31, 41, 55, 0.7), rgba(31, 41, 55, 0.7)), url('../img/hero.png');
    background-size: cover;
    background-position: center;
    color: var(--bg-white);
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    color: var(--bg-white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    color: #e5e7eb;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.hero-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--bg-white);
    color: var(--bg-white);
    margin-right: 10px;
}

.btn-outline:hover {
    background-color: var(--bg-white);
    color: var(--text-main);
}

.section {
    padding: 60px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.game-logo {
    height: 120px;
    margin: 0 auto;
    margin-bottom: 15px;
}



.steps-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.step-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.step-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.responsible-block {
    border-left: 4px solid var(--secondary-color);
    padding-left: 20px;
    background-color: #fff7ed;
    padding: 20px;
    border-radius: 0 8px 8px 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.footer {
    background-color: #111827;
    color: #d1d5db;
    padding: 60px 0 20px;
    margin-top: auto;
}

.footer h3 {
    color: var(--bg-white);
    margin-bottom: 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #9ca3af;
}

.footer-links a:hover {
    color: var(--bg-white);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.form-container {
    max-width: 500px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-control:focus {
    outline: 2px solid var(--secondary-color);
    border-color: transparent;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input {
    margin-top: 5px;
}

.msg-box {
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    font-size: 0.9rem;
    display: none;
}

.msg-success {
    background-color: #dcfce7;
    color: var(--success-color);
    display: block;
}

.msg-error {
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

.buy-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.game-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.game-tab {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.game-tab.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.number-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.num-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: white;
    cursor: pointer;
    font-weight: bold;
    color: var(--text-main);
    transition: all 0.2s;
}

.num-btn:hover {
    border-color: var(--primary-color);
}

.num-btn.selected {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.num-btn.grand-num {
    border-color: var(--primary-color);
}

.num-btn.grand-num.selected {
    background-color: var(--primary-color);
}

.game-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.cart-sidebar {
    background: var(--bg-white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    height: fit-content;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-remove {
    color: var(--error-color);
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1rem;
}

.stat-counter {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
        display: none;
    }

    .nav-menu.show {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .buy-container {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }
}

.footer-imgs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.footer-imgs img {
    padding: 12px;
    margin: 12px;
    height: 55px;
    background: white;
    border-radius: 10px;
}
    .age-gate-overlay {
        position: fixed;
        inset: 0;
        display: none;
        align-items: center;
        justify-content: center;
        background: rgba(15, 23, 42, 0.9);
        z-index: var(--rc-z-age);
        padding: 16px;
    }

    .age-gate-modal {
        max-width: 480px;
        width: 100%;
        background: var(--rc-color-bg);
        border-radius: var(--rc-radius-lg);
        box-shadow: var(--rc-shadow-soft);
        padding: 28px 24px 22px;
        border-top: 4px solid var(--rc-color-primary);
        text-align: left;
    }

    .age-gate-modal h2 {
        margin: 0 0 10px;
        font-size: 22px;
        line-height: 1.2;
        color: var(--rc-color-text);
    }

    .age-gate-modal p {
        margin: 0 0 14px;
        font-size: 14px;
        line-height: 1.5;
        color: var(--rc-color-text-muted);
    }

    .age-gate-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 10px;
        margin-bottom: 6px;
    }

    .age-gate-warning {
        font-size: 12px;
        color: var(--rc-color-primary);
    }

    @media (min-width: 480px) {
        .age-gate-modal {
            padding: 32px 28px 24px;
        }
        .age-gate-modal h2 {
            font-size: 24px;
        }
    }

    .btn-outline {
        background-color: var(--rc-color-bg);
        color: var(--rc-color-primary);
        border-color: var(--rc-color-primary);
    }

    .btn-outline:hover {
        background-color: var(--rc-color-primary-soft);
        transform: translateY(-1px);
    }
    

    .cookie-banner {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        display: none;
        z-index: var(--rc-z-cookie);
        padding: 12px 16px;
        background: transparent;
    }

    .cookie-banner-inner {
        max-width: 960px;
        margin: 0 auto;
        background: var(--rc-color-bg);
        border-radius: var(--rc-radius-lg);
        box-shadow: var(--rc-shadow-soft);
        border: 1px solid #f3f4f6;
        padding: 14px 16px;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .cookie-text h3 {
        margin: 0 0 4px;
        font-size: 16px;
        color: var(--rc-color-text);
    }

    .cookie-text p {
        margin: 0;
        font-size: 13px;
        line-height: 1.5;
        color: var(--rc-color-text-muted);
    }

    .cookie-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    @media (min-width: 640px) {
        .cookie-banner-inner {
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
            padding: 16px 20px;
        }
        .cookie-text {
            max-width: 70%;
        }
    }

    

    .cookie-settings-overlay {
        position: fixed;
        inset: 0;
        display: none;
        z-index: var(--rc-z-cookie);
    }

    .cookie-settings-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(15, 23, 42, 0.65);
    }

    .cookie-settings-panel {
        position: relative;
        margin: 40px auto;
        max-width: 540px;
        background: var(--rc-color-bg);
        border-radius: var(--rc-radius-lg);
        box-shadow: var(--rc-shadow-soft);
        padding: 22px 20px 18px;
        border-top: 4px solid var(--rc-color-primary);
        z-index: 1;
    }

    .cookie-settings-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 10px;
    }

    .cookie-settings-header h3 {
        margin: 0;
        font-size: 18px;
        color: var(--rc-color-text);
    }

    .cookie-settings-close {
        border: none;
        background: transparent;
        font-size: 22px;
        line-height: 1;
        cursor: pointer;
        color: var(--rc-color-text-muted);
        padding: 0 4px;
    }

    .cookie-settings-close:hover {
        color: var(--rc-color-primary);
    }

    .cookie-settings-intro {
        margin: 0 0 12px;
        font-size: 13px;
        line-height: 1.5;
        color: var(--rc-color-text-muted);
    }

    .cookie-option {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 12px 0;
        border-bottom: 1px solid #e5e7eb;
    }

    .cookie-option-text strong {
        display: block;
        font-size: 14px;
        margin-bottom: 2px;
        color: var(--rc-color-text);
    }

    .cookie-option-text p {
        margin: 0;
        font-size: 12px;
        color: var(--rc-color-text-muted);
    }

    .cookie-badge {
        font-size: 11px;
        padding: 4px 10px;
        border-radius: var(--rc-radius-pill);
        background: var(--rc-color-primary-soft);
        color: var(--rc-color-primary);
        white-space: nowrap;
    }

    .cookie-settings-actions {
        display: flex;
        justify-content: flex-end;
        gap: 8px;
        margin-top: 14px;
    }

    @media (max-width: 480px) {
        .cookie-settings-panel {
            margin: 20px 10px;
            padding: 18px 14px 14px;
        }
        .cookie-option {
            flex-direction: column;
            align-items: flex-start;
        }
        .cookie-settings-actions {
            flex-direction: column-reverse;
            align-items: stretch;
        }
        .cookie-settings-actions .btn-primary,
        .cookie-settings-actions .btn-outline {
            width: 100%;
            text-align: center;
        }
    }

    

    .cookie-switch {
        position: relative;
        display: inline-block;
        width: 44px;
        height: 22px;
        flex-shrink: 0;
    }

    .cookie-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

    .cookie-switch-slider {
        position: absolute;
        cursor: pointer;
        inset: 0;
        background-color: #e5e7eb;
        border-radius: 999px;
        transition: background-color 0.2s ease;
    }

    .cookie-switch-slider::before {
        content: "";
        position: absolute;
        height: 16px;
        width: 16px;
        left: 3px;
        top: 3px;
        background-color: #ffffff;
        border-radius: 50%;
        transition: transform 0.2s ease;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.3);
    }

    .cookie-switch input:checked + .cookie-switch-slider {
        background-color: var(--rc-color-primary);
    }

    .cookie-switch input:checked + .cookie-switch-slider::before {
        transform: translateX(22px);
    }

    

    .cookie-settings-floating {
        position: fixed;
        right: 16px;
        bottom: 80px;
        z-index: var(--rc-z-cookie);
        background: var(--rc-color-bg);
        color: var(--rc-color-primary);
        border-radius: var(--rc-radius-pill);
        border: 1px solid var(--rc-color-primary);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
        font-size: 12px;
        padding: 8px 14px;
        cursor: pointer;
        transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease, border-color 0.2s ease;
    }

    .cookie-settings-floating:hover {
        background: var(--rc-color-primary-soft);
        transform: translateY(-1px);
    }

    @media (max-width: 480px) {
        .cookie-settings-floating {
            right: 10px;
            bottom: 90px;
        }
    }
    #cookieSettingsFloating {
        display: none;
    }