:root {
    --bg-color: #030303;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: sans-serif;
}

/* Fundo espacial estranho */
.background-void {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 200vw;
    height: 200vh;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at center, rgba(30, 0, 50, 0.4) 0%, rgba(3, 3, 3, 1) 40%);
    z-index: -1;
    pointer-events: none;
    animation: pulseVoid 5s infinite alternate ease-in-out;
}

@keyframes pulseVoid {
    0% { transform: translate(-50%, -50%) scale(1); filter: hue-rotate(0deg); }
    100% { transform: translate(-50%, -50%) scale(1.1); filter: hue-rotate(30deg); }
}

.app-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    z-index: 10;
}

.slots-area {
    display: flex;
    gap: 30px;
    perspective: 1000px;
}

/* O contêiner de cada roleta dita o tamanho visível */
.reel-container {
    width: 300px;
    height: 400px; /* A janela fixa que vemos */
    overflow: hidden;
    position: relative;
    border-radius: 15px;
    box-shadow: 0 0 50px rgba(255, 0, 100, 0.1), inset 0 0 20px rgba(0,0,0,0.8);
    background-color: #000;
    border: 1px solid rgba(255,255,255,0.05);
}

/* A roleta interna que rola */
.reel {
    width: 100%;
    display: flex;
    flex-direction: column;
    will-change: transform, filter;
    /* initial top position will be handled by gsap */
}

.reel img {
    width: 100%;
    height: 400px; /* IMPORTANTE: JS dependo desse valor (imgHeight) */
    object-fit: cover;
    flex-shrink: 0;
    filter: grayscale(40%) contrast(1.2);
}

/* Botão esquisito */
#spin-button {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: none;
    background: radial-gradient(circle at top left, #555, #111);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5), inset 0 2px 5px rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
}

#spin-button:active {
    transform: scale(0.9) translateY(5px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.5), inset 0 5px 10px rgba(0,0,0,0.8);
}

#spin-button:hover {
    filter: brightness(1.2) hue-rotate(90deg);
}

/* Overlay de vitória */
.win-overlay {
    display: none; /* Ativado via JS */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100;
    justify-content: center;
    align-items: center;
    pointer-events: none; /* Para não travar caso dê erro */
}

.win-img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 20px;
    box-shadow: 0 0 100px rgba(255, 255, 255, 0.5);
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.win-gif {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95vw;       /* Maior, quase topando na tela mas com 5% de margem total*/
    height: 95vh;      /* Maior, quase topando na tela */
    max-width: 1200px; /* Aumentado limite máximo para cobrir mais area */
    max-height: 1200px;
    object-fit: contain; /* Ajusta o gif por inteiro dentro do limite, sem cortar bordas */
    mix-blend-mode: screen; /* Remove fundo preto */
    z-index: 1;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
