:root {
    --wheelWidth: 500px;
}

/* Container principal */
.spinwin-container {
    max-width: var(--wheelWidth);
    margin-inline: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

.wheel {
    position: relative;
}

.wheel-inner {
    width: var(--wheelWidth);
    height: var(--wheelWidth);
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    background-color: #eee;
    outline: solid 10px #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: filter 0.5s ease;
}

.wheel-inner.blocked {
    filter: saturate(0.2);
}

.wheel-item {
    height: 50%;
    width: 50%;
    position: absolute;
    top: 0;
    left: 25%;
    transform-origin: bottom center;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20px;
    box-sizing: border-box;
}

.wheel-item .text {
    color: #fff;
    font-weight: bold;
    text-align: center;
    font-size: 16px;
    max-width: 80%;
}

.spin {
    width: 120px;
    height: 120px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 8px solid #fff;
    font-size: 1.5em;
    font-weight: bold;
    background-color: #333;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    color: #fff;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    z-index: 10;
}

.spin:hover {
    transform: translate(-50%, -50%) scale(1.05);
}

.spin:disabled {
    cursor: not-allowed;
    background-color: #888;
}

.marker {
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-top: 40px solid #e03131;
    position: absolute;
    left: 50%;
    top: -15px;
    transform: translateX(-50%);
    z-index: 200;
}

/* Estilo do botão de resultado */
#spinwin-result {
    margin-top: 20px;
    text-align: center;
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
}

.spinwin-result-hidden {
    display: none;
}

.spinwin-cta-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
    background-color: #4AB969;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.spinwin-cta-button:hover {
    background-color: #3a9b57;
    color: #fff;
}

/* Responsividade */
@media (max-width: 600px) {
    :root {
        --wheelWidth: 320px;
    }
    .spin {
        width: 80px;
        height: 80px;
        font-size: 1.2em;
        border-width: 5px;
    }
    .wheel-item .text {
        font-size: 12px;
    }
    #spinwin-result {
        bottom: -60px;
    }
    .spinwin-cta-button {
        padding: 10px 20px;
        font-size: 1em;
    }
}