/* ==================== LUCKY NUMBER PREDICTION STYLES ==================== */

.prediction-wrapper {
    text-align: left;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.prediction {
    margin-bottom: 20px;
}

/* Slotter Animation */
.slotter {
    height: var(--prediction-number-height, 100px);
    display: block;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    margin-top: 7px;
    font-weight: 700;
    line-height: var(--prediction-number-height, 100px);
    color: var(--prediction-number-color, #000000);
    font-family: var(--prediction-font-family, 'Cousine', sans-serif);
    font-size: var(--prediction-number-font-size, 120px);
}

.slotter .digits {
    float: left;
    position: relative;
    line-height: var(--prediction-number-height, 100px);
    width: calc(var(--prediction-number-height, 100px) * 0.67);
    transition: all 0.3s ease;
}

.slotter a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.slotter a:hover {
    color: var(--prediction-number-hover-color, #c1272d);
}

/* Anchor Link */
#anchor {
    padding-top: 10px;
}

#anchor a {
    font-size: var(--prediction-link-font-size, 16px);
    color: var(--prediction-link-color, #333333);
    text-decoration: none;
    transition: color 0.3s ease;
}

#anchor a:hover {
    color: var(--prediction-link-hover-color, #c1272d);
}

/* Spin Button */
.btn-spin {
    background-color: var(--prediction-button-background-color, #c1272d);
    color: var(--prediction-button-text-color, #ffffff);
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: var(--prediction-button-font-size, 16px);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-spin:hover {
    background-color: var(--prediction-button-hover-background-color, #a01e24);
    color: var(--prediction-button-text-hover-color, #ffffff);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-spin:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .slotter {
        font-size: 80px;
        height: calc(var(--prediction-number-height, 100px) * 0.8);
    }
    
    .slotter .digits {
        line-height: calc(var(--prediction-number-height, 100px) * 0.8);
        width: calc(var(--prediction-number-height, 100px) * 0.5);
    }
    
    .prediction-wrapper {
        padding: 15px;
    }
    
    .btn-spin {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .slotter {
        font-size: 60px;
        height: calc(var(--prediction-number-height, 100px) * 0.6);
    }
    
    .slotter .digits {
        line-height: calc(var(--prediction-number-height, 100px) * 0.6);
        width: calc(var(--prediction-number-height, 100px) * 0.4);
    }
    
    #anchor a {
        font-size: 14px;
    }
}

/* Animation Keyframes */
@keyframes slotterSpin {
    0% { transform: translateY(100px); }
    100% { transform: translateY(0); }
}

.slotter .digits {
    animation: slotterSpin 0.3s ease-out;
}

/* Loading State */
.prediction-wrapper.loading .slotter {
    opacity: 0.7;
}

.prediction-wrapper.loading .btn-spin {
    opacity: 0.6;
    cursor: not-allowed;
}
