.spin-wheel-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #ff3366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 9999;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.spin-wheel-popup {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spin-wheel-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
}

.spin-wheel-content {
    position: relative;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    width: 90%;
    max-width: 400px;
}

.spin-wheel-close {
    position: absolute;
    top: 10px; right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.spin-wheel-container {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 20px auto;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #333;
}

.spin-wheel {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.spin-wheel-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: conic-gradient(
        var(--spin-color-1, #4CAF50) 0 60deg, 
        var(--spin-color-2, #FFEB3B) 60deg 120deg, 
        var(--spin-color-1, #4CAF50) 120deg 180deg, 
        var(--spin-color-2, #FFEB3B) 180deg 240deg, 
        var(--spin-color-1, #4CAF50) 240deg 300deg, 
        var(--spin-color-2, #FFEB3B) 300deg 360deg
    );
}

.spin-wheel-label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(calc(var(--i) * 60deg));
}

.spin-wheel-label span {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Position slightly offset from center to allow vertical reading */
    transform: translate(-50%, -100px) rotate(120deg); 
    /* 120deg rotation makes the text run vertically downwards towards the center within the 60deg slice */
    transform-origin: center center;
    font-size: 14px;
    font-weight: bold;
    color: #004d00 !important; /* Force dark green text always */
    white-space: nowrap;
    text-align: center;
}


.spin-wheel-pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 30px;
    color: #333;
    z-index: 2;
}

.spin-wheel-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.spin-wheel-form button, .spin-wheel-result button {
    width: 100%;
    padding: 10px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.spin-wheel-result {
    margin-top: 20px;
}