#loadingSpinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, .6);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .3s ease;
}

#roulette-tooltip {
    position: absolute;
    padding: 10px 14px;
    background: linear-gradient(145deg, rgba(0, 0, 0, .95), rgba(30, 30, 30, .9));
    color: #fff;
    font-size: 15px;
    border-radius: 10px;
    pointer-events: none;
    transform: translate(-50%, -140%) scale(.95);
    white-space: nowrap;
    opacity: 0;
    transition: opacity .15s ease, transform .15s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .5);
    border: 1px solid rgba(255, 255, 255, .12);
    backdrop-filter: blur(6px);
    z-index: 999;
}

#roulette {
    width: 100%;
    height: auto;
    display: block;
    transform-origin: center;
    transition: transform 10s ease-out;
    will-change: transform;
}

.roulette-wallpaper {
    background-image: url(../images/ruleta-wallpaper.png);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
}

.roulette-text {
    font-size: 12px;
    fill: #fff;
    font-family: 'Luckiest Guy', cursive;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px #000;
    pointer-events: none;
}

.roulette-puntero {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 20px solid #e63946;
    z-index: 10;
    filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .4));
}

.roulette-container {
    margin-top: 120px;
    position: relative;
    width: 90vw;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

.roulette-container svg {
    width: 100%;
    height: auto;
}

.roulette-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 25%;
    aspect-ratio: 1/1;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: 0 0 10px rgba(0, 0, 0, .5);
}

.roulette-logo img {
    width: 50%;
}

.roulette-panel {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 5px;
}

.roulette-btn {
    margin-top: 25px;
    padding: 14px;
    font-weight: 700;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    color: #fff;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all .2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .6);
    background: linear-gradient(145deg, #2a2a2a, #111);
    border: 1px solid #444;
}

.roulette-btn.girar {
    background: linear-gradient(145deg, gold, orange);
    color: #000;
    font-size: 16px;
}

.roulette-btn.premios {
    grid-column: span 2;
}

.roulette-btn.salir {
    background: linear-gradient(145deg, #e63946, #b71c1c);
}

.roulette-btn.success {
    grid-column: span 2;
    background: linear-gradient(145deg, #00c853, #64dd17);
    color: #000;
    font-size: 16px;
}

.roulette-btn:hover {
    transform: translateY(-2px) scale(1.02);
    filter: brightness(1.2);
}

.roulette-btn:active {
    transform: scale(.97);
}

.roulette-intro {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.roulette-intro h2 {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: black;
    padding-bottom: 15px;
    text-shadow: 0 2px 2px rgba(0, 0, 0, 0.6), 0 0 10px rgba(255, 255, 255, 0.15);
}

.roulette-intro p {
    font-size: 1.1rem;
    font-weight: 400;
    color: black;
    text-shadow: 0 5px 10px rgba(0, 0, 0, 0.6);
}

.roulette-premios-container {
    display: flex;
    flex-wrap: wrap;
}

.roulette-premios-wrapper {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    display: flex;
    padding: .5rem;
    box-sizing: border-box;
}

.roulette-premios-flex {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    background: #212529;
    border-radius: .5rem;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
    position: relative;
}

.roulette-premios-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F6BE00;
    color: #000;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .25);
    z-index: 2;
    clip-path: polygon(50% 0%, 58% 8%, 70% 0%, 75% 12%, 90% 15%, 82% 28%, 100% 40%, 82% 55%, 90% 70%, 70% 72%, 65% 90%, 50% 80%, 35% 90%, 30% 72%, 10% 70%, 18% 55%, 0% 40%, 18% 28%, 10% 15%, 25% 12%, 42% 8%);
    animation: popBadge .6s ease-out;
}

.roulette-premios-icon {
    font-size: 2rem;
    margin-bottom: .5rem;
}

.roulette-premios-titulo {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.roulette-premios-descripcion {
    font-size: .875rem;
    color: #6c757d;
}

@keyframes popBadge {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    70% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 992px) {
    .roulette-premios-wrapper {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 576px) {
    .roulette-premios-wrapper {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .roulette-panel {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        overflow-x: hidden;
        padding-left: 10px;
        padding-right: 10px;
    }

    .roulette-btn {
        width: 100%;
        margin-top: 0;
    }
}