/* ============================================
   Hero Force Welcome Pack Section
   Fluid Layout - Desktop и Mobile используют одну структуру
   ============================================ */

.hero-force-welcome {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: clamp(400px, 50vh, 600px);
    height: auto;
    padding: clamp(25px, 4vw, 50px) 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin-top: 0;
    margin-bottom: 0;
    /* Ширина определяется родительским .content-wrapper */
}

/* Улучшенный космический фон - 100% ширина */
.hero-force-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    z-index: 0;
    background: linear-gradient(180deg, #000000 0%, #0a0a1a 20%, #1a1a2e 40%, #16213e 60%, #0f1419 80%, #000000 100%);
}

.hero-stars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background-image: 
        radial-gradient(1px 1px at 2% 5%, #ffffff, transparent),
        radial-gradient(1px 1px at 5% 12%, #ffffff, transparent),
        radial-gradient(2px 2px at 8% 18%, #ffffff, transparent),
        radial-gradient(1px 1px at 12% 8%, #ffffff, transparent),
        radial-gradient(1px 1px at 15% 25%, #ffffff, transparent),
        radial-gradient(2px 2px at 18% 15%, #ffffff, transparent),
        radial-gradient(1px 1px at 22% 32%, #ffffff, transparent),
        radial-gradient(1px 1px at 25% 22%, #ffffff, transparent),
        radial-gradient(2px 2px at 28% 38%, #ffffff, transparent),
        radial-gradient(1px 1px at 32% 28%, #ffffff, transparent),
        radial-gradient(1px 1px at 35% 45%, #ffffff, transparent),
        radial-gradient(2px 2px at 38% 35%, #ffffff, transparent),
        radial-gradient(1px 1px at 42% 52%, #ffffff, transparent),
        radial-gradient(1px 1px at 45% 42%, #ffffff, transparent),
        radial-gradient(2px 2px at 48% 58%, #ffffff, transparent),
        radial-gradient(1px 1px at 52% 48%, #ffffff, transparent),
        radial-gradient(1px 1px at 55% 65%, #ffffff, transparent),
        radial-gradient(2px 2px at 58% 55%, #ffffff, transparent),
        radial-gradient(1px 1px at 62% 72%, #ffffff, transparent),
        radial-gradient(1px 1px at 65% 62%, #ffffff, transparent),
        radial-gradient(2px 2px at 68% 78%, #ffffff, transparent),
        radial-gradient(1px 1px at 72% 68%, #ffffff, transparent),
        radial-gradient(1px 1px at 75% 85%, #ffffff, transparent),
        radial-gradient(2px 2px at 78% 75%, #ffffff, transparent),
        radial-gradient(1px 1px at 82% 92%, #ffffff, transparent),
        radial-gradient(1px 1px at 85% 82%, #ffffff, transparent),
        radial-gradient(2px 2px at 88% 88%, #ffffff, transparent),
        radial-gradient(1px 1px at 92% 78%, #ffffff, transparent),
        radial-gradient(1px 1px at 95% 88%, #ffffff, transparent),
        radial-gradient(2px 2px at 98% 95%, #ffffff, transparent),
        radial-gradient(1px 1px at 3% 48%, #ffffff, transparent),
        radial-gradient(1px 1px at 7% 58%, #ffffff, transparent),
        radial-gradient(2px 2px at 13% 68%, #ffffff, transparent),
        radial-gradient(1px 1px at 17% 78%, #ffffff, transparent),
        radial-gradient(1px 1px at 23% 88%, #ffffff, transparent),
        radial-gradient(2px 2px at 27% 98%, #ffffff, transparent),
        radial-gradient(1px 1px at 33% 38%, #ffffff, transparent),
        radial-gradient(1px 1px at 37% 48%, #ffffff, transparent),
        radial-gradient(2px 2px at 43% 58%, #ffffff, transparent),
        radial-gradient(1px 1px at 47% 68%, #ffffff, transparent),
        radial-gradient(1px 1px at 53% 78%, #ffffff, transparent),
        radial-gradient(2px 2px at 57% 88%, #ffffff, transparent),
        radial-gradient(1px 1px at 63% 28%, #ffffff, transparent),
        radial-gradient(1px 1px at 67% 38%, #ffffff, transparent),
        radial-gradient(2px 2px at 73% 48%, #ffffff, transparent),
        radial-gradient(1px 1px at 77% 58%, #ffffff, transparent),
        radial-gradient(1px 1px at 83% 68%, #ffffff, transparent),
        radial-gradient(2px 2px at 87% 78%, #ffffff, transparent),
        radial-gradient(1px 1px at 93% 88%, #ffffff, transparent),
        radial-gradient(1px 1px at 97% 98%, #ffffff, transparent);
    background-repeat: repeat;
    background-size: 100% 100%;
    opacity: 0.85;
    animation: twinkle 4s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { 
        opacity: 0.75;
        transform: scale(1);
    }
    25% { 
        opacity: 1;
        transform: scale(1.03);
    }
    50% { 
        opacity: 0.9;
        transform: scale(1);
    }
    75% { 
        opacity: 1;
        transform: scale(1.02);
    }
}

/* Контейнер */
.hero-force-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: min(1600px, 95vw);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 3vw, 35px);
    box-sizing: border-box;
    padding: 0 clamp(15px, 2vw, 30px);
}

/* Текстовый блок - улучшенный */
.hero-force-text {
    text-align: center;
    margin-bottom: clamp(15px, 2vw, 25px);
    animation: fadeInDown 0.8s ease-out;
}

.hero-force-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(6px, 1vw, 10px);
    margin: 0 0 clamp(15px, 2vw, 20px) 0;
    line-height: 1;
}

/* Основной заголовок "THE FORCE" - Fluid Typography */
.hero-force-title-main {
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 400;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: clamp(0.08em, 0.2vw, 0.2em);
    line-height: 1;
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.3),
        0 4px 15px rgba(0, 0, 0, 0.7),
        0 8px 30px rgba(0, 0, 0, 0.5);
    font-family: 'Bebas Neue', 'Roboto Condensed', 'Arial Black', sans-serif;
    animation: zoomIn 1s ease-out;
    white-space: nowrap;
}

/* Подзаголовок "WELCOME PACK" - Fluid Typography */
.hero-force-title-sub {
    font-size: clamp(1.75rem, 5vw, 3.5rem);
    font-weight: 400;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: clamp(0.06em, 0.15vw, 0.15em);
    line-height: 1;
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 0.25),
        0 3px 12px rgba(0, 0, 0, 0.6),
        0 6px 25px rgba(0, 0, 0, 0.4);
    font-family: 'Bebas Neue', 'Roboto Condensed', 'Arial Black', sans-serif;
    animation: zoomIn 1.2s ease-out;
    animation-delay: 0.2s;
    animation-fill-mode: both;
    white-space: nowrap;
}

.hero-force-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.4rem);
    color: #ffffff;
    font-weight: 500;
    margin: 0;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.02em;
}

.hero-force-details {
    color: #ffd700;
    text-decoration: underline;
    font-weight: 600;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.hero-force-details:hover {
    color: #ffed4e;
    text-shadow: 0 0 15px rgba(255, 237, 78, 0.8);
}

/* Основной контент с бонусами и персонажами */
.hero-force-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 5vw, 60px);
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    position: relative;
}

/* Блоки бонусов - адаптивные размеры */
.hero-force-bonus {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 1.5vw, 12px);
    min-width: 0;
    max-width: min(250px, 30vw);
    width: 100%;
    animation: fadeInUp 1s ease-out;
    align-self: center;
    flex-shrink: 1;
    flex-grow: 0;
    box-sizing: border-box;
}

.hero-force-bonus-left {
    animation-delay: 0.1s;
    align-items: flex-start;
}

.hero-force-bonus-right {
    animation-delay: 0.3s;
    align-items: flex-end;
}

/* Текст бонусов */
.bonus-text {
    display: flex;
    flex-direction: column;
    gap: clamp(6px, 1vw, 8px);
}

.hero-force-bonus-left .bonus-text {
    align-items: flex-start;
    text-align: left;
}

.hero-force-bonus-right .bonus-text {
    align-items: flex-end;
    text-align: right;
}

.bonus-up-to {
    font-size: clamp(0.8rem, 1.5vw, 0.95rem);
    color: #ffffff;
    font-weight: 400;
    text-transform: lowercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.bonus-amount {
    display: flex;
    align-items: baseline;
    gap: clamp(3px, 0.5vw, 5px);
    line-height: 1;
}

.bonus-number {
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.4),
        0 4px 15px rgba(0, 0, 0, 0.6);
    letter-spacing: -0.02em;
}

.bonus-currency {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 0.3),
        0 2px 10px rgba(0, 0, 0, 0.5);
}

.bonus-type {
    font-size: clamp(0.8rem, 1.5vw, 1.1rem);
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin-top: clamp(3px, 0.5vw, 5px);
}

/* Блок с персонажами */
.hero-force-characters {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(15px, 4vw, 60px);
    flex: 1;
    min-width: 0;
    max-width: 100%;
    flex-shrink: 1;
    position: relative;
    box-sizing: border-box;
}

/* OR Separator между персонажами */
.hero-force-or-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0 clamp(8px, 1.5vw, 10px);
    animation: fadeInUp 1.2s ease-out;
    animation-delay: 0.3s;
    animation-fill-mode: both;
    min-width: 0;
}

.hero-force-or-text {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.5);
    font-family: var(--font-heading, 'Inter', sans-serif);
    opacity: 0.9;
    white-space: nowrap;
}

/* Персонаж - улучшенный с 3D эффектами */
.hero-force-character {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(15px, 3vw, 30px);
    flex: 1;
    max-width: 100%;
    min-width: 0;
    animation: fadeInUp 1s ease-out;
    perspective: 1000px;
    box-sizing: border-box;
}

.hero-force-character-light {
    animation-delay: 0.2s;
}

.hero-force-character-dark {
    animation-delay: 0.4s;
}

/* Изображение персонажа - адаптивное с 3D эффектами */
.hero-force-character-image {
    width: 100%;
    max-width: min(416px, 40vw);
    height: auto;
    display: block;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    filter: 
        drop-shadow(0 0 20px rgba(59, 130, 246, 0.7))
        drop-shadow(0 0 40px rgba(59, 130, 246, 0.5))
        drop-shadow(0 0 60px rgba(59, 130, 246, 0.3))
        drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
    object-fit: contain;
    aspect-ratio: 1 / 1;
}

.hero-force-character-image-dark {
    filter: 
        drop-shadow(0 0 20px rgba(255, 45, 45, 0.7))
        drop-shadow(0 0 40px rgba(255, 45, 45, 0.5))
        drop-shadow(0 0 60px rgba(255, 45, 45, 0.3))
        drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

.hero-force-character:hover .hero-force-character-image {
    transform: translateY(-8px) scale(1.05) rotateY(5deg);
    filter: 
        drop-shadow(0 0 30px rgba(59, 130, 246, 0.9))
        drop-shadow(0 0 50px rgba(59, 130, 246, 0.7))
        drop-shadow(0 0 70px rgba(59, 130, 246, 0.5))
        drop-shadow(0 15px 40px rgba(0, 0, 0, 0.6));
}

.hero-force-character:hover .hero-force-character-image-dark {
    filter: 
        drop-shadow(0 0 30px rgba(255, 45, 45, 0.9))
        drop-shadow(0 0 50px rgba(255, 45, 45, 0.7))
        drop-shadow(0 0 70px rgba(255, 45, 45, 0.5))
        drop-shadow(0 15px 40px rgba(0, 0, 0, 0.6));
}

/* Кнопки - адаптивные размеры */
.btn-hero-grab {
    padding: clamp(12px, 2vw, 18px) clamp(28px, 4vw, 45px);
    font-size: clamp(0.9rem, 1.5vw, 1.15rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: clamp(0.08em, 0.12vw, 0.12em);
    border: 2px solid #ffffff;
    border-radius: 12px;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 0 15px rgba(255, 255, 255, 0.1),
        inset 0 0 15px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

/* Отдельные кнопки для мобильных - скрыты на десктопе */
.hero-force-button-light,
.hero-force-button-dark {
    display: none;
}

.btn-hero-grab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-hero-grab:hover::before {
    left: 100%;
}

/* Кнопка светлой стороны - синий фон при hover */
.btn-hero-grab-light {
    border-color: #ffffff;
}

.btn-hero-grab-light:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 25px rgba(59, 130, 246, 0.6),
        0 0 30px rgba(59, 130, 246, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Кнопка темной стороны - красный фон при hover */
.btn-hero-grab-dark {
    border-color: #ffffff;
}

.btn-hero-grab-dark:hover {
    background: #ff2d2d;
    border-color: #ff2d2d;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 25px rgba(255, 45, 45, 0.6),
        0 0 30px rgba(255, 45, 45, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Анимации */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   Mobile Layout - Три строки через Flexbox + Order
   Используем flex-direction: column и order для перестройки
   ============================================ */

@media (max-width: 768px) {
    /* Перестраиваем контент в вертикальный поток */
    .hero-force-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: clamp(25px, 5vw, 35px);
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
    
    /* ============================================
       СТРОКА 1: Cash Bonus + Кнопка
       Порядок: bonus-left (order: 1), button-light (order: 2)
       ============================================ */
    
    /* Левый бонус - первая строка, первый элемент */
    .hero-force-bonus-left {
        order: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: clamp(12px, 2.5vw, 18px);
        width: 100%;
        max-width: 100%;
    }
    
    .hero-force-bonus-left .bonus-text {
        align-items: center;
        text-align: center;
        width: 100%;
    }
    
    /* Кнопка для Cash Bonus - первая строка, второй элемент */
    .hero-force-button-light {
        order: 2;
        display: block;
        width: 100%;
        max-width: min(320px, 90vw);
        margin: 0 auto;
    }
    
    /* ============================================
       СТРОКА 2: Персонажи + OR
       ============================================ */
    
    /* Контейнер персонажей - вторая строка */
    .hero-force-characters {
        order: 3;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: clamp(10px, 3vw, 20px);
        width: 100%;
        max-width: 100%;
        padding: clamp(15px, 3vw, 25px) 0;
    }
    
    /* Персонажи - одинаковый размер и визуальный вес */
    .hero-force-character {
        flex: 0 1 auto;
        max-width: min(140px, 35vw);
        width: 100%;
        gap: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-force-character-image {
        max-width: 100%;
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: contain;
    }
    
    /* OR разделитель - центрирован */
    .hero-force-or-separator {
        flex-shrink: 0;
        padding: 0 clamp(8px, 2vw, 12px);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-force-or-text {
        font-size: clamp(1rem, 2.5vw, 1.2rem);
        white-space: nowrap;
    }
    
    /* Скрываем кнопки внутри персонажей на мобильных */
    .hero-force-character .btn-hero-grab {
        display: none;
    }
    
    /* ============================================
       СТРОКА 3: Кнопка + Free Spins
       Порядок: button-dark (order: 4), bonus-right (order: 5)
       ============================================ */
    
    /* Кнопка для Free Spins - третья строка, первый элемент */
    .hero-force-button-dark {
        order: 4;
        display: block;
        width: 100%;
        max-width: min(320px, 90vw);
        margin: 0 auto;
    }
    
    /* Правый бонус - третья строка, второй элемент */
    .hero-force-bonus-right {
        order: 5;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: clamp(12px, 2.5vw, 18px);
        width: 100%;
        max-width: 100%;
    }
    
    .hero-force-bonus-right .bonus-text {
        align-items: center;
        text-align: center;
        width: 100%;
    }
    
    /* Убираем выравнивание flex-start/flex-end на мобильных */
    .hero-force-bonus-left,
    .hero-force-bonus-right {
        align-items: center !important;
    }
}

/* Для очень маленьких экранов - дополнительная оптимизация */
@media (max-width: 480px) {
    .hero-force-character-image {
        max-width: min(120px, 30vw);
    }
    
    .hero-force-button-light,
    .hero-force-button-dark {
        max-width: min(280px, 85vw);
        padding: clamp(12px, 2.5vw, 16px) clamp(24px, 5vw, 32px);
        font-size: clamp(0.85rem, 2vw, 0.95rem);
    }
    
    .hero-force-characters {
        gap: clamp(8px, 2vw, 15px);
    }
    
    .hero-force-bonus-left,
    .hero-force-bonus-right {
        gap: clamp(10px, 2vw, 15px);
    }
}
