
/* Popup Overlay */
.bks-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.bks-popup.bks-hidden {
    display: none;
}

.bks-popup-content {
    background: white;
    border-radius: 10px;
    padding: 20px;
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.bks-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.bks-close:hover {
    color: #333;
}

/* Wheel Container */
.bks-wheel-container {
    position: relative;
    margin: 20px auto;
    width: 300px;
    height: 300px;
}

.bks-wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        #ff6b6b 0deg 45deg,
        #4ecdc4 45deg 90deg,
        #45b7d1 90deg 135deg,
        #96ceb4 135deg 180deg,
        #feca57 180deg 225deg,
        #ff9ff3 225deg 270deg,
        #54a0ff 270deg 315deg,
        #5f27cd 315deg 360deg
    );
    position: relative;
    transition: transform 3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.bks-pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 30px solid #333;
    z-index: 2;
}

/* Spin Button */
.bks-spin-btn {
    background: #4ecdc4;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s;
}

.bks-spin-btn:hover {
    background: #45b7d1;
}

.bks-spin-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Outcome Modal */
.bks-outcome {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.bks-outcome.bks-hidden {
    display: none;
}

.bks-outcome-content {
    background: white;
    border-radius: 10px;
    padding: 20px;
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.bks-close-outcome {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.bks-close-outcome:hover {
    color: #333;
}

.bks-code-container {
    margin: 15px 0;
}

#codeInput {
    width: 200px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.bks-copy-btn, .bks-close-btn {
    background: #4ecdc4;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    margin: 5px;
    transition: background 0.3s;
}

.bks-copy-btn:hover, .bks-close-btn:hover {
    background: #45b7d1;
}

/* Responsive */
@media (max-width: 600px) {
    .bks-wheel-container {
        width: 250px;
        height: 250px;
    }
    
    .bks-popup-content, .bks-outcome-content {
        padding: 15px;
        max-width: 95vw;
    }
    
    h1, h2 {
        font-size: 1.2em;
    }
}