/* CSS Styles for Sweet Bonanza Theme */
:root {
    --primary-pink: #ff69b4;
    --dark-pink: #ff1493;
    --chocolate: #4a2c2a; /* Цвет корпуса слота */
    --creamy-white: #fffafa; /* Цвет сахарной плашки */
    --neon-glow: 0 0 20px rgba(255, 20, 147, 0.4);
}

body {
    font-family: 'Nunito', sans-serif;
    /* Темный, насыщенный фиолетово-синий фон, как ночное небо в игре */
    background: linear-gradient(180deg, #30197d 0%, #1a0b4d 100%);
    background-attachment: fixed;
    color: #2d3436;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    /* Градиент "Сахарное небо" как в оригинальном слоте */
    background: linear-gradient(180deg, #98ddff 0%, #d68dfc 100%);
    background-attachment: fixed; /* Чтобы фон плавно тянулся при скролле */
    
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 50px;
    transition: var(--transition);
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    margin: 0 15px;
    transition: var(--transition);
}

.nav a:hover {
    color: var(--dark-pink);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-header {
    background-color: var(--primary-pink);
    color: white;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(45deg, var(--dark-pink), var(--primary-pink));
    color: white;
    box-shadow: 0 4px 15px rgba(255, 20, 147, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 20, 147, 0.6);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-pink);
    border: 2px solid var(--primary-pink);
}

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

/* Hero Section */
.hero {
    height: 80vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}

.hero-inner {
    width: 100%;
}

.hero h1 {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    font-weight: 600;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Stats Bar */
/* --- НЕЖНАЯ ПАНЕЛЬ ХАРАКТЕРИСТИК (PASTEL CANDY) --- */
.stats-bar {
    /* Очень мягкий, зефирный розовый градиент */
    background: linear-gradient(180deg, #fff0f3 0%, #ffdde1 100%); 
    
    /* Тонкая аккуратная рамка */
    border: 4px solid #ffffff;
    border-radius: 40px;
    padding: 25px;
    
    /* Легкая, почти незаметная тень для объема */
    box-shadow: 
        0 10px 30px rgba(255, 182, 193, 0.4),
        inset 0 2px 10px rgba(255, 255, 255, 0.8);
        
    display: flex;
    justify-content: space-around;
    gap: 15px;
    margin-top: -45px;
    position: relative;
    z-index: 10;
}

.stat-box {
    /* Белые полупрозрачные ячейки с эффектом стекла */
    background: rgba(255, 255, 255, 0.5);
    border-radius: 25px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    flex: 1;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-box:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.02);
}

.stat-box span {
    /* Нежный розово-фиолетовый для подписей */
    color: #d187a2;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-box strong {
    /* Основной акцент — мягкий розовый, как на логотипе */
    color: #ff69b4; 
    font-size: 1.4rem;
    font-family: 'Fredoka One', cursive;
    text-shadow: 1px 1px 0px #ffffff;
}

/* Content Sections */
.main-content {
    padding: 60px 0;
}

/* --- АДАПТАЦИЯ БЛОКОВ ПОД СТИЛЬ БОНАНЗЫ (БОЛЕЕ ПРОЗРАЧНОЕ СТЕКЛО) --- */
.article-card 
.article-card {
    /* Светло-кремовый фон для текста */
    background: #fffafb; 
    border-radius: 45px;
    padding: 50px;
    margin-bottom: 60px;
    
    /* Толстая розовая рамка как корпус слота */
    border: 12px solid #ffb6c1; 
    
    /* Сложная тень: внешняя дает объем, внутренняя - мягкость */
    box-shadow: 
        0 15px 0 #e6a1ad, /* Нижняя часть рамки (3D эффект) */
        0 30px 50px rgba(0,0,0,0.2), /* Глубокая тень на фон */
        inset 0 0 20px rgba(255,105,180,0.2); /* Внутренний блик */
        
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-8px); /* Легкое приподнимание при наведении */
}

.article-card h2 {
    font-family: 'Fredoka One', cursive;
    color: #ff1493;
    text-shadow: 2px 2px 0px #fff, 4px 4px 10px rgba(255, 20, 147, 0.3);
}
.article-card {
    background: var(--creamy-white); /* Светлая середина для текста */
    position: relative;
    padding: 50px;
    margin-bottom: 60px;
    border-radius: 45px;
    
    /* Розовая объемная рамка (как на картинке) */
    border: 12px solid #ffb6c1; 
    
    /* Наложение нескольких теней для 3D эффекта и свечения */
    box-shadow: 
        0 15px 0 #e6a1ad, /* Внешний объем рамки */
        0 25px 50px rgba(0,0,0,0.3), /* Глубокая тень на фон */
        inset 0 0 20px rgba(255,105,180,0.3); /* Внутреннее свечение */
}

/* Добавляем "пухлости" заголовкам */
.article-card h2 {
    font-family: 'Fredoka One', cursive;
    color: var(--dark-pink);
    font-size: 2.5rem;
    margin-bottom: 25px;
    text-shadow: 2px 2px 0px #fff, 4px 4px 0px rgba(255, 20, 147, 0.2);
}{
    /* Делаем фон ЕЩЕ ПРОЗРАЧНЕЕ (было 0.65, стало 0.45) */
    background: rgba(255, 255, 255, 0.45);
    
    /* Оставляем сильное размытие фона, чтобы текст не сливался с картинками */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    
    /* Тонкие глянцевые края */
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-top: 2px solid rgba(255, 255, 255, 0.9);
    border-left: 2px solid rgba(255, 255, 255, 0.9);
    
    /* Милые круглые углы */
    border-radius: 40px; 
    padding: 40px;
    margin-bottom: 40px;
    
    /* Мягкая тень и легкое внутреннее свечение */
    box-shadow: 
        0 15px 35px rgba(200, 100, 200, 0.1), 
        inset 0 0 15px rgba(255, 255, 255, 0.3);
        
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 20px 40px rgba(200, 100, 200, 0.2), 
        inset 0 0 20px rgba(255, 255, 255, 0.5);
}

/* Текст остается темным для хорошего контраста */
.article-card p {
    color: #4a2c2a; 
    font-weight: 600; 
    line-height: 1.7;
}

.article-card h2 {
    text-shadow: 0 2px 5px rgba(255, 255, 255, 0.9); /* Свечение за заголовком */
}

h2 {
    font-family: 'Fredoka One', cursive;
    color: var(--dark-pink);
    font-size: 2.2rem;
    margin-bottom: 25px;
    text-align: center;
}

h3 {
    font-family: 'Fredoka One', cursive;
    color: var(--purple);
    margin: 30px 0 15px;
}

p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #444;
}

.content-flex {
    display: flex;
    gap: 40px;
    align-items: center;
}

.content-flex.reverse {
    flex-direction: row-reverse;
}

.text-side {
    flex: 1;
}

.image-side {
    flex: 1;
}

.content-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

ul, ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

li {
    margin-bottom: 10px;
    font-weight: 600;
}

/* Demo Section */
.demo-section {
    text-align: center;
    margin: 60px 0;
}

.demo-placeholder {
    position: relative;
    max-width: 900px;
    margin: 30px auto;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.demo-img {
    width: 100%;
    display: block;
    filter: brightness(0.8);
}

.demo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(147, 112, 219, 0.2);
    transition: var(--transition);
}

.demo-placeholder:hover .demo-overlay {
    background: rgba(147, 112, 219, 0.4);
}

/* Strategy Grid */
.strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.strat-item {
    background: var(--light-purple);
    padding: 30px;
    border-radius: 20px;
    border-bottom: 5px solid var(--purple);
}

.strat-item h4 {
    font-family: 'Fredoka One', cursive;
    color: var(--purple);
    margin-bottom: 15px;
}

/* FAQ */
.faq {
    margin: 80px 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

details {
    background: white;
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    cursor: pointer;
}

summary {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--purple);
    list-style: none;
    position: relative;
    padding-right: 30px;
}

summary::after {
    content: '+';
    position: absolute;
    right: 0;
    color: var(--primary-pink);
}

details[open] summary::after {
    content: '-';
}

details p {
    margin-top: 15px;
    margin-bottom: 0;
    font-size: 1rem;
}

/* Footer */
/* Исправленный футер с высокой контрастностью */
.footer {
    background-color: #1a1a1a; /* Чуть темнее для солидности */
    color: #ffffff; /* Основной текст теперь белый */
    padding: 80px 0 40px;
}

.footer p {
    color: #e0e0e0; /* Светло-серый для описаний, чтобы не резало глаза */
    font-size: 0.95rem;
}

.footer h4 {
    color: #ffffff; /* Заголовки разделов чисто белые */
    margin-bottom: 25px;
    font-family: 'Fredoka One', cursive;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer ul a {
    color: #ffb6c1; /* Сделаем ссылки нежно-розовыми, так их лучше видно */
    text-decoration: none;
    transition: var(--transition);
}

.footer ul a:hover {
    color: var(--primary-pink);
    padding-left: 5px; /* Эффект сдвига при наведении */
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 40px;
    margin-top: 40px;
    color: #888; /* Копирайт в самом низу можно оставить приглушенным */
}

/* Responsive */
@media (max-width: 992px) {
    .content-flex, .content-flex.reverse {
        flex-direction: column;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    .hero-actions {
        flex-direction: column;
    }
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}
/* Плавное покачивание для картинок */
.logo-img, .content-img {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.article-card {
    transition: var(--transition);
    border: 1px solid transparent;
}

.article-card:hover {
    border-color: rgba(255, 105, 180, 0.3);
    box-shadow: 0 15px 40px rgba(255, 20, 147, 0.1);
}
.progress-container {
    position: fixed;
    top: 0;
    z-index: 2000;
    width: 100%;
    height: 4px;
    background: transparent;
}

.progress-bar {
    height: 4px;
    background: var(--dark-pink);
    width: 0%;
}
@keyframes pulse-pink {
    0% { box-shadow: 0 0 0 0 rgba(255, 105, 180, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 105, 180, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 105, 180, 0); }
}

.btn-header {
    animation: pulse-pink 2s infinite;
}
.article-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 20, 147, 0.1);
}
/* --- АНИМИРОВАННЫЕ ЛЕДЕНЦЫ-КРЕНДЕЛЬКИ НА ПАЛОЧКЕ --- */

/* Контейнер на весь экран */
.lollipops-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Чтобы леденцы не мешали кликать по сайту */
    z-index: -1; /* Находятся ПОЗАДИ контента, но поверх белого фона */
    overflow: hidden;
}

/* Общие стили для одного леденца */
.lollipop {
    position: absolute;
    width: 60px; /* Ширина леденца */
    height: 120px; /* Высота с палочкой */
    background-image: url('lollipop.png'); /* Ссылка на твою картинку */
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.8; /* Делаем их чуть прозрачными, чтобы не слишком рябило */
    filter: drop-shadow(0 5px 15px rgba(255, 20, 147, 0.4)); /* Яркое розовое свечение */
    animation: fall linear infinite;
    top: -150px; /* Начальная позиция выше экрана */
}

/* --- Анимация падения и вращения --- */
@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8; /* Плавно появляемся */
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(110vh) rotate(360deg); /* Падаем вниз и крутимся */
        opacity: 0; /* Плавно исчезаем */
    }
}

/* --- Разбрасываем леденцы по экрану с разной скоростью (Настройка) --- */

.lollipop:nth-child(1) { left: 5%;  animation-duration: 15s; animation-delay: 0s; }
.lollipop:nth-child(2) { left: 15%; animation-duration: 20s; animation-delay: 2s; transform: scale(0.7); }
.lollipop:nth-child(3) { left: 25%; animation-duration: 18s; animation-delay: 5s; }
.lollipop:nth-child(4) { left: 35%; animation-duration: 25s; animation-delay: 1s; transform: scale(0.8); }
.lollipop:nth-child(5) { left: 45%; animation-duration: 12s; animation-delay: 8s; }
.lollipop:nth-child(6) { left: 55%; animation-duration: 22s; animation-delay: 3s; transform: scale(1.1); }
.lollipop:nth-child(7) { left: 65%; animation-duration: 19s; animation-delay: 10s; }
.lollipop:nth-child(8) { left: 75%; animation-duration: 28s; animation-delay: 0s; transform: scale(0.9); }
.lollipop:nth-child(9) { left: 85%; animation-duration: 16s; animation-delay: 6s; }
.lollipop:nth-child(10) { left: 95%; animation-duration: 21s; animation-delay: 4s; }
/* Бегущая строка выигрышей */
.live-wins {
    background: #4a2c2a;
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-around;
    border-radius: 50px;
    margin-bottom: 30px;
    border: 2px solid var(--primary-pink);
    font-size: 0.9rem;
    overflow: hidden;
}

.win-item span {
    color: #ffeb3b;
    font-weight: 900;
}

/* Окно удачи */
.lucky-box {
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 30px;
    border: 3px dashed var(--primary-pink);
    margin: 20px 0;
}

#multiplier-display {
    font-family: 'Fredoka One', cursive;
    font-size: 3rem;
    color: var(--dark-pink);
    margin: 10px 0;
    transition: transform 0.2s;
}

/* Сетка выплат */
.paytable-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.pay-item {
    background: #fff0f3;
    padding: 15px;
    border-radius: 20px;
    text-align: center;
    font-weight: 900;
}

.pay-item img { width: 40px; display: block; margin: 0 auto 5px; }
/* Бегущая строка */
.live-ticker {
    background: #4a2c2a;
    color: #fff;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
}
.ticker-wrapper {
    display: inline-block;
    animation: ticker 20s linear infinite;
}
.ticker-item {
    margin-right: 50px;
    font-size: 0.9rem;
}
@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Предсказатель */
.prediction-box { text-align: center; border: 3px dashed var(--primary-pink); }
.prediction-result { 
    font-size: 2.5rem; 
    font-family: 'Fredoka One', cursive; 
    color: var(--dark-pink); 
    margin: 20px 0;
}
.pop-animation { transform: scale(1.3); transition: 0.2s; }

/* Сетка символов */
.symbol-items { display: flex; justify-content: space-around; gap: 10px; flex-wrap: wrap; }
.sym-item { background: #fff0f3; padding: 15px; border-radius: 20px; text-align: center; flex: 1; }
.sym-item img, .sym-item span { font-size: 2rem; display: block; margin-bottom: 5px; }
.article-card {
    background: var(--creamy-white); /* Светлая середина для текста */
    position: relative;
    padding: 50px;
    margin-bottom: 60px;
    border-radius: 45px;
    
    /* Розовая объемная рамка (как на картинке) */
    border: 12px solid #ffb6c1; 
    
    /* Наложение нескольких теней для 3D эффекта и свечения */
    box-shadow: 
        0 15px 0 #e6a1ad, /* Внешний объем рамки */
        0 25px 50px rgba(0,0,0,0.3), /* Глубокая тень на фон */
        inset 0 0 20px rgba(255,105,180,0.3); /* Внутреннее свечение */
}

/* Добавляем "пухлости" заголовкам */
.article-card h2 {
    font-family: 'Fredoka One', cursive;
    color: var(--dark-pink);
    font-size: 2.5rem;
    margin-bottom: 25px;
    text-shadow: 2px 2px 0px #fff, 4px 4px 0px rgba(255, 20, 147, 0.2);
}
