body {
    font-family: 'Arial', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    background: linear-gradient(to right, #ff9a9e, #fad0c4);
    text-align: center;
    color: #333;
}

h1 {
    margin-bottom: 20px;
    font-size: 2rem;
}

.ruleta-container {
    position: relative;
    width: 300px;
    height: 300px;
}

.flecha {
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 30px solid red;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.ruleta {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    position: relative;
    border: 5px solid #333;
    background: conic-gradient(
        #f1c40f 0deg 72deg,
        #e74c3c 72deg 144deg,
        #8e44ad 144deg 216deg,
        #3498db 216deg 288deg,
        #2ecc71 288deg 360deg
    );
    transform: rotate(0deg);
    transition: transform 5s ease-out;
}

.premio {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: center center;
    transform: rotate(var(--rotacion)) translate(-50%, -130px) rotate(calc(-1 * var(--rotacion)));
    text-align: center;
}

.premio img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 5px;
    border: 2px solid #fff;
}

.premio span {
    font-size: 0.9rem;
    color: #fff;
}

button {
    margin-top: 40px;
    padding: 10px 20px;
    font-size: 1rem;
    background: #6c5ce7;
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease;
}

button:hover {
    background: #341f97;
}
