.slot-machine-container {
    background: linear-gradient(135deg, 
        rgba(15, 15, 35, 0.98) 0%, 
        rgba(26, 26, 46, 0.98) 50%, 
        rgba(22, 33, 62, 0.98) 100%);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(74, 144, 226, 0.3);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 
        0 0 30px rgba(74, 144, 226, 0.2),
        0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    margin: 0 auto 80px auto; /* Отступ только снизу */
    min-height: 500px;
    position: relative;
}

.slot-window {
    display: flex;
    justify-content: space-between;
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0.7) 0%, 
        rgba(0,0,0,0.3) 30%, 
        rgba(0,0,0,0.3) 70%, 
        rgba(0,0,0,0.7) 100%
    );
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(4px);
    border: 2px solid gold;
    position: relative;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}



.reel {
    width: 150px;
    height: 300px;
    background-color: #2c2c2c;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    position: relative;
}

.reel::before,
.reel::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 100px;
    z-index: 3;
    pointer-events: none;
}

.reel::before {
    top: 0;
    background: linear-gradient(to bottom, 
        rgba(34, 34, 34, 1) 0%,
        rgba(34, 34, 34, 0.8) 50%,
        rgba(34, 34, 34, 0) 100%
    );
}

.reel::after {
    bottom: 0;
    background: linear-gradient(to top, 
        rgba(34, 34, 34, 1) 0%,
        rgba(34, 34, 34, 0.8) 50%,
        rgba(34, 34, 34, 0) 100%
    );
}

.reel-item {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #fff;
    background: linear-gradient(145deg, #2c2c2c, #1a1a1a);
    border-bottom: 1px solid #555;
    padding: 8px;
    text-align: center;
    word-wrap: break-word;
    transition: all 0.2s ease-out;
    border-radius: 5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.reel-item:nth-child(even) {
    background: linear-gradient(145deg, #333, #222);
}

.reel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.reel-item:hover::before {
    left: 100%;
}

.reel-item.selected {
    background: linear-gradient(145deg, #ffd700, #ffec8b);
    color: #000;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 0 10px rgba(255, 215, 0, 0.7),
        0 0 20px rgba(255, 215, 0, 0.5),
        inset 0 0 5px rgba(255, 255, 255, 0.5);
    border: 2px solid #ffd700;
    border-radius: 10px;
    transform: scale(1.05);
    transition: all 0.3s ease-out;
    animation: subtle-glow 2s ease-in-out infinite alternate;
    z-index: 5;
    position: relative;
}

.spinning .reel-item {
    filter: blur(2px);
}

.form-group {
    background-color: #2c2c2c;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-label {
    color: #ffd700;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.form-select, .form-range {
    background-color: #1a1a1a;
    border: 2px solid #ffd700;
    color: #ffffff;
    border-radius: 5px;
    padding: 10px;
    width: 100%;
    transition: all 0.3s ease;
}

.form-select:focus, .form-range:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 0.25rem rgba(74, 144, 226, 0.25);
}

.form-range::-webkit-slider-thumb {
    background-color: #ffd700;
}

.form-range::-moz-range-thumb {
    background-color: #ffd700;
}

#spinButton {
    background-color: #ffd700;
    color: #000;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    padding: 15px 30px;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

#spinButton:active {
    transform: translateY(1px);
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.4);
}

#spinButton:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
    box-shadow: none;
}

#loadingIndicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

#emptyMessageContainer {
    margin: 0 auto 20px;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1rem;
    background-color: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.5);
    color: #ffc107;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 700px;
}

#spinTimeValue {
    font-weight: bold;
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

#spinButton:active {
    transform: translateY(1px);
}

#selectedTask {
    background-color: #2a2a2a;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

@keyframes win-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes subtle-glow {
    from {
        box-shadow: 
            0 0 10px rgba(255, 215, 0, 0.7),
            0 0 20px rgba(255, 215, 0, 0.5),
            inset 0 0 5px rgba(255, 255, 255, 0.5);
    }
    to {
        box-shadow: 
            0 0 15px rgba(255, 215, 0, 0.8),
            0 0 25px rgba(255, 215, 0, 0.6),
            inset 0 0 8px rgba(255, 255, 255, 0.6);
    }
}



.win-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 6px;
    background: linear-gradient(90deg, 
        rgba(255, 0, 0, 0) 0%, 
        rgba(255, 0, 0, 0.5) 20%, 
        rgba(255, 0, 0, 0.8) 50%,
        rgba(255, 0, 0, 0.5) 80%,
        rgba(255, 0, 0, 0) 100%
    );
    pointer-events: none;
    z-index: 100;
    transform: translateY(-50%);
    box-shadow: 
        0 0 10px rgba(255, 0, 0, 0.5),
        0 0 20px rgba(255, 0, 0, 0.3);
    animation: glow-line 1.5s ease-in-out infinite alternate;
}

@keyframes glow-line {
    from {
        opacity: 0.5;
        box-shadow: 
            0 0 10px rgba(255, 0, 0, 0.5),
            0 0 20px rgba(255, 0, 0, 0.3);
    }
    to {
        opacity: 0.8;
        box-shadow: 
            0 0 15px rgba(255, 0, 0, 0.7),
            0 0 30px rgba(255, 0, 0, 0.5);
    }
}

@media (max-width: 767px) {
    #taskInfo .col-md-4 {
        margin-bottom: 20px;
    }
    #taskInfo .col-md-4:nth-child(2) {
        order: -1;
    }
}

@media (max-width: 768px) {
    .reel-item {
        font-size: 0.8rem;
        padding: 5px;
    }
}

@media (max-width: 576px) {
    .reel-item {
        font-size: 0.7rem;
        padding: 3px;
    }
}

/* Адаптивность для карточек действий */
@media (max-width: 1199px) and (min-width: 768px) {
    /* Планшеты и небольшие ноутбуки - скрываем иконки для экономии места */
    .action-card {
        min-height: 160px;
        padding: 15px;
    }
    
    .action-card-icon {
        display: none; /* Полностью скрываем иконки на планшетах */
    }
    
    .action-card-title {
        font-size: 1.1rem;
        margin-bottom: 10px;
        line-height: 1.2;
        margin-top: 0;
    }
    
    .action-card-description {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .action-card-arrow {
        font-size: 1.3rem;
    }
    
    .action-card-content {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
    }
}

@media (max-width: 767px) {
    /* Мобильные устройства - очень маленькие иконки */
    .action-card {
        min-height: 140px;
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .action-card-icon {
        font-size: 1.2rem;
        margin-bottom: 6px;
    }
    
    .action-card-title {
        font-size: 0.95rem;
        margin-bottom: 6px;
        line-height: 1.2;
    }
    
    .action-card-description {
        font-size: 0.8rem;
        line-height: 1.3;
        margin-bottom: 8px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .action-card-arrow {
        font-size: 1.1rem;
    }
}

@media (max-width: 575px) {
    /* Очень маленькие экраны - скрываем иконки */
    .action-card {
        min-height: 120px;
        padding: 10px;
    }
    
    .action-card-icon {
        display: none; /* Скрываем иконки на маленьких экранах */
    }
    
    .action-card-title {
        font-size: 0.9rem;
        margin-bottom: 5px;
        margin-top: 0;
    }
    
    .action-card-description {
        font-size: 0.75rem;
        line-height: 1.2;
        margin-bottom: 6px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .action-card-arrow {
        font-size: 1rem;
    }
    
    .action-card-content {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
    }
}

/* Дополнительные стили для кнопок выбора типа задач */
@media (max-width: 1199px) and (min-width: 768px) {
    /* Планшеты и небольшие ноутбуки */
    .task-type-btn {
        font-size: 0.85rem;
        padding: 10px 15px;
        min-width: 75px !important;
    }
    
    .task-type-btn i {
        font-size: 1rem;
    }
    
    .task-type-btn small {
        font-size: 0.75rem;
    }
    
    .flex-wrap {
        justify-content: center;
        gap: 8px !important;
    }
}

@media (max-width: 767px) {
    .task-type-btn {
        font-size: 0.8rem;
        padding: 8px 12px;
        min-width: 70px !important;
    }
    
    .task-type-btn i {
        font-size: 0.9rem;
    }
    
    .task-type-btn small {
        font-size: 0.7rem;
    }
}

@media (max-width: 575px) {
    .task-type-btn {
        font-size: 0.75rem;
        padding: 6px 10px;
        min-width: 60px !important;
    }
    
    .task-type-btn i {
        font-size: 0.8rem;
    }
    
    .task-type-btn small {
        font-size: 0.65rem;
    }
}

/* Улучшение отображения главного баннера на планшетах */
@media (max-width: 1199px) and (min-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .h3 {
        font-size: 1.3rem;
    }
    
    .icon-adaptive {
        font-size: 3rem !important;
    }
}

@media (max-width: 767px) {
    .display-4 {
        font-size: 1.8rem;
    }
    
    .h3 {
        font-size: 1.2rem;
    }
    
    .col-lg-4.d-none.d-lg-block {
        display: none !important;
    }
}