:root {
            --bg-color: #383636;
            --header-bg: #062781;
            --card-bg: #1a1a1a;
            --primary-gold: #ffcc00;
            --text-light: #f4f4f4;
            --text-dim: #a0a0a0;
            --accent-red: #ff3e3e;
            --transition: all 0.3s ease;
        }

        body {
            font-family: 'Segoe UI', Roboto, sans-serif;
            background-color: var(--bg-color);
            color: var(--text-light);
            margin: 0;
            overflow-x: hidden;
        }

        /* --- Header & Navigation --- */
        header {
            background-color: var(--header-bg);
            border-bottom: 2px solid var(--primary-gold);
            height: 70px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 5%;
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .logo img {
            height: 45px; /* Adjust based on your logo aspect ratio */
            display: block;
        }

        .nav-menu {
            display: flex;
            gap: 30px;
            list-style: none;
        }

        .nav-menu a {
            color: var(--text-light);
            text-decoration: none;
            font-weight: 600;
            font-size: 14px;
            transition: var(--transition);
        }

        .nav-menu a:hover { color: var(--primary-gold); }

        /* Hamburger Icon */
        .hamburger {
            display: none;
            cursor: pointer;
            background: none;
            border: none;
            z-index: 1100;
        }

        .hamburger span {
            display: block;
            width: 25px;
            height: 3px;
            background: var(--primary-gold);
            margin: 5px 0;
            transition: var(--transition);
        }

        /* --- Main Content --- */
        .container {
            max-width: 1000px;
            margin: 30px auto;
            padding: 0 20px;
        }

        .slot-container {
            position: relative;
            width: 100%;
            aspect-ratio: 16 / 9;
            background: #000 url('/img/sweet-bonanza-slot.webp') center/cover;
            border-radius: 12px;
            overflow: hidden;
            margin-bottom: 20px;
        }
      

        .button-group {
            display: grid;
            gap: 15px;
            margin-bottom: 40px;
        }

        .btn {
            padding: 16px;
            border-radius: 8px;
            font-weight: bold;
            text-transform: uppercase;
            text-align: center;
            text-decoration: none;
            cursor: pointer;
            border: none;
        }

        .btn-demo { background: #333; color: #fff; }
        .btn-real { background: linear-gradient(180deg, #ffcc00 0%, #e6b800 100%); color: #000; }

        /* --- Custom Responsive Table --- */
        .content-section {
            background: var(--card-bg);
            padding: 30px;
            border-radius: 12px;
        }

        .content-section table {
            width: 100%;
            border-collapse: collapse;
            margin: 25px 0;
        }

        .content-section table thead {
            background-color: #222;
            color: var(--primary-gold);
        }

        .content-section table th, .content-section table td {
            padding: 15px;
            text-align: left;
            border-bottom: 1px solid #333;
        }

        /* --- Footer --- */
        footer {
            background: var(--header-bg);
            padding: 50px 5%;
            margin-top: 50px;
            border-top: 1px solid #333;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 40px;
        }

        /* --- Mobile Styles --- */
        @media (max-width: 768px) {
            .hamburger { display: block; }

            .nav-menu {
                position: fixed;
                right: -100%;
                top: 0;
                flex-direction: column;
                background: var(--header-bg);
                width: 70%;
                height: 100vh;
                padding-top: 100px;
                text-align: center;
                transition: 0.4s;
                box-shadow: -5px 0 15px rgba(0,0,0,0.5);
            }

            .nav-menu.active { right: 0; }

            .button-group { grid-template-columns: 1fr; }

            /* Table Mobile Adaptation */
            .content-section table thead { display: none; }
            .content-section table tr {
                display: block;
                margin-bottom: 15px;
                background: #252525;
                border-radius: 8px;
                padding: 10px;
            }
            .content-section table td {
                display: flex;
                justify-content: space-between;
                align-items: center;
                border-bottom: 1px solid #333;
                padding: 10px 5px;
            }
            .content-section table td::before {
                content: attr(data-label);
                font-weight: bold;
                color: var(--primary-gold);
                text-transform: uppercase;
                font-size: 12px;
            }
            .content-section table td:last-child { border-bottom: none; }
        }
        /* Parent Container */
.content-section {
    background: #16043b;
    padding: 30px;
    border-radius: 12px;
    color: #f4f4f4;
    line-height: 1.7;
}

/* --- 1. Unordered List (Custom Checkmarks) --- */
.content-section ul {
    list-style: none; /* Removes default bullets */
    padding: 0;
    margin: 20px 0;
}

.content-section ul li {
    position: relative;
    padding-left: 35px; /* Space for the custom icon */
    margin-bottom: 15px;
    color: #ffffff;
    transition: color 0.3s ease;
}

.content-section ul li::before {
    content: '✔'; /* Custom Checkmark */
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: rgba(255, 204, 0, 0.1); /* Subtle gold glow */
    color: #ffcc00; /* Gold color */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.content-section ul li:hover {
    color: #ffffff;
}

/* --- 2. Ordered List (Adaptive Step-by-Step) --- */
.content-section ol {
    counter-reset: slot-counter; /* Custom counter */
    padding: 0;
    margin: 25px 0;
}

.content-section ol li {
    counter-increment: slot-counter;
    position: relative;
    padding: 15px 15px 15px 50px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.03); /* Card effect */
    border-radius: 8px;
    list-style: none;
}

.content-section ol li::before {
    content: counter(slot-counter);
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 900;
    font-size: 20px;
    color: #ffcc00;
    opacity: 0.5;
}

.content-section ol li strong {
    display: block;
    color: #ffcc00;
    font-size: 16px;
    margin-bottom: 4px;
}

/* --- Mobile Adaptation for Lists --- */
@media (max-width: 480px) {
    .content-section {
        padding: 20px;
    }
    
    .content-section ol li {
        padding-left: 45px;
        font-size: 14px;
    }
    
    .content-section ul li {
        font-size: 14px;
    }
}

/* Базові стилі для десктопа */
.content-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.content-section td {
    padding: 12px;
    border: 1px solid #eee;
}

/* Мобільна версія */
@media (max-width: 768px) {
    /* Перетворюємо таблицю на блоки */
    .content-section table, 
    .content-section tbody, 
    .content-section tr, 
    .content-section td {
        display: block;
        width: 100%;
    }

    /* Ховаємо перший рядок (який ми використали для лейблів) */
    .content-section tr.table-header-row {
        display: none;
    }

    .content-section tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
    }

    .content-section td {
        display: flex; /* Використовуємо flex для зручного вирівнювання */
        justify-content: space-between;
        align-items: center;
        text-align: right;
        padding-left: 10px;
        border: none;
        border-bottom: 1px solid #f0f0f0;
        position: relative;
    }

    /* Стиль для автоматичного лейбла зліва */
    .content-section td::before {
        content: attr(data-label);
        font-weight: bold;
        text-align: left;
        padding-right: 15px;
        color: #333;
        flex-shrink: 0; /* Щоб лейбл не стискався */
    }

    .content-section td:last-child {
        border-bottom: none;
    }
}
@media (max-width: 768px) {
    .content-section table, 
    .content-section tbody, 
    .content-section tr, 
    .content-section td {
        display: block;
        width: 98%;
    }

    .content-section tr.table-header-row {
        display: none;
    }

    .content-section td {
        display: flex;
        justify-content: flex-start; /* Вирівнювання від початку */
        align-items: flex-start;     /* Щоб довгий текст не центрувався по вертикалі */
        text-align: right;
        padding: 10px 5px;
        border-bottom: 1px solid #eee;
        box-sizing: border-box;
        
        /* Дозволяємо перенос тексту всередині td */
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }

    .content-section td::before {
        content: attr(data-label);
        font-weight: bold;
        text-align: left;
        
        /* ФІКСУЄМО ЛЕЙБЛ */
        flex: 0 0 40%;    /* Лейбл завжди займає 40% і не стискається */
        min-width: 100px; /* Мінімальна ширина, щоб текст не злипався */
        padding-right: 15px;
    }

    /* Стиль для самого контенту всередині td */
    .content-section td {
        /* Текст справа займає решту 60% */
        word-break: break-word; 
    }
}

/* Дефолтне перенесення для десктопа (щоб довгі слова не розтягували таблицю) */
.content-section td {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}
/* Дефолтні стилі для всіх списків у контейнері article */
.content-section ul, 
.content-section ol {
    padding-left: 20px; /* Відступ для маркерів/номерів */
    margin: 15px 0;
    list-style-position: outside; /* Маркери за межами тексту для кращої читаємості */
}

/* Правила перенесення тексту для елементів списку */
.content-section li {
    /* Дозволяє тексту переходити на новий рядок */
    white-space: normal;
    
    /* Магія перенесення довгих слів (якщо слово довше за ширину блоку) */
    overflow-wrap: break-word; /* Сучасний стандарт */
    word-wrap: break-word;     /* Підтримка старих браузерів */
    word-break: break-word;    /* Для Webkit (Safari/Chrome) */
    
    /* Гарантує, що li не розтягнеться більше за батьківський блок */
    max-width: 100%; 
    margin-bottom: 8px; /* Невеликий відступ між пунктами */
}

/* Якщо всередині списку є посилання (найчастіша причина поломки верстки) */
.content-section li a {
    word-break: break-all; /* Примусово розриває довгі URL */
}

/* Стилізуємо перший абзац після заголовка h1 */
.content-section h1 + p {
    font-size: 1.15rem;       /* Трохи більший шрифт */
    line-height: 1.6;         /* Збільшений інтервал для читабельності */
    color: #ffffff;              /* Трохи м'якший колір ніж основний чорний */
    padding-left: 20px;       /* Місце для лінії */
    border-left: 3px solid #007bff; /* Кольорова лінія зліва (можна змінити на свій колір) */
    margin-bottom: 30px;      /* Більший відступ від решти контенту */
    font-style: italic;       /* Курсив додає відчуття "вступного слова" */
}
/* Універсальний захист контейнера */
.content-section {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;      /* Приховує горизонтальну прокрутку, якщо щось вилізе */
    word-wrap: break-word;   /* Старий стандарт */
    overflow-wrap: break-word; /* Сучасний стандарт перенесення слів */
    box-sizing: border-box;
}

/* Глобальне правило для всіх нащадків всередині секції */
.content-section * {
    max-width: 100%;         /* Жоден елемент не може бути ширшим за статтю */
    box-sizing: border-box;  /* Падінги не збільшують ширину */
}


/* Захист контенту в статті */
.content-section img, 
.content-section video, 
.content-section svg {
    display: block;
    height: auto; 
    max-width: 100% !important; 
}

/* Захист для текстових елементів та посилань */
.content-section p, 
.content-section span, 
.content-section a, 
.content-section li {
    word-break: break-word;  /* Розриває довгі технічні слова/посилання */
}

/* Захист для блоків з кодом або pre (часта причина поломки верстки) */
.content-section pre, 
.content-section code {
    white-space: pre-wrap;   /* Зберігає форматування, але переносить рядки */
    word-break: break-all;
}

/* Контроль таблиць (додатково до ваших стилів) */
.content-section table {
    table-layout: fixed;     /* Примусово вписує таблицю в ширину, не даючи їй роздуватися */
}
/* 1. Глобальний захист медіа-контенту (картинки, відео, svg) */
.content-section img, 
.content-section video, 
.content-section svg {
    display: block;
    height: auto;
    max-width: 100% !important;
}
/* Специфічний стиль ТІЛЬКИ для демо-слота */
.slot-container iframe {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    border: none !important;
    position: absolute;
    top: 0;
    left: 0;
}

/* Налаштовуємо сам контейнер, щоб він тримав пропорції */
.slot-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* Або 4 / 3, залежно від гри */
    background: #000;
    overflow: hidden;
    border-radius: 8px;
}


/* 2. Стиль для оверлея (кнопки запуску) */
.demo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

/* 3. Пряма ізоляція фрейма від глобальних стилів */
#demo-slot-frame {
    all: unset !important; /* Скидаємо абсолютно всі успадковані стилі */
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    pointer-events: auto !important; /* Гарантуємо клікабельність */
}

/* 4. Забороняємо глобальним правилам content-section впливати на фрейм */
.content-section #gameWrapper iframe,
.content-section * #demo-slot-frame {
    max-width: none !important;
    max-height: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
/* Вимикаємо 'розумний' скрол Chrome, який викликає дрижання */
html {
    overflow-anchor: none !important;
}

#casino-widget-iframe {
    /* Додаємо властивість, яка підказує Chrome, що цей елемент незалежний */
    contain: layout;
    /* Гарантуємо, що браузер не намагається згладжувати зміну висоти */
    will-change: height;
}
.chrome-fix-wrapper {
    display: block !important;
    width: 100% !important;
    /* ГАРАНТІЯ: ніщо не обріжеться */
    overflow: visible !important; 
    min-height: 100px;
    position: relative !important;
}

#casino-widget-iframe {
    width: 100% !important;
    border: none !important;
    /* Прибираємо внутрішні обмеження фрейма */
    overflow: hidden; 
    display: block !important;
    /* Активуємо апаратне прискорення без створення шару, що зміщує координати */
    will-change: transform;
}
/* Батьківський шар ізоляції */
.slot-isolation-layer {
    width: 100%;
    margin-bottom: 30px;
    /* Створює новий шар для відеокарти, щоб кліки не збивалися */
    transform: translateZ(0); 
    position: relative;
    z-index: 10;
}

/* Ізоляція самого фрейма гри */
#demo-slot-frame {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    /* Вимикаємо будь-які CSS-фільтри, які можуть зміщувати hitbox */
    filter: none !important;
}
.slot-container {
            position: relative;
            width: 100%;
            aspect-ratio: 16 / 9;
            background: #000 url('/img/sweet-bonanza-slot.webp') center/cover;
            border-radius: 12px;
            overflow: hidden;
            margin-bottom: 20px;
        }