* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #ffffff;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* Faixa Vermelha */
.header-vermelho {
    background-color: #e30613;
    width: 100%;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
    height: 45px;
    width: auto;
}

/* Container Principal */
.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 500px;
    padding: 20px;
}

.roleta-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1 / 1;
}

/* Moldura fixa no centro */
.moldura-roleta {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    z-index: 10;
    pointer-events: none;
}

/* Disco ajustado conforme solicitado */
.disco-roleta { 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -43%) rotate(16deg); 
    width: 77%; 
    z-index: 5; 
    /* Esta curva de animação garante a suavidade final */
    transition: transform 4s cubic-bezier(0.2, 0, 0.2, 1); 
    border-radius: 50%; 
}

/* Botão de Ação */
#btn-girar {
    background-color: #e30613;
    color: white;
    border: none;
    padding: 18px 0;
    width: 90%;
    max-width: 320px;
    border-radius: 40px;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 40px;
    box-shadow: 0 6px 20px rgba(227, 6, 19, 0.3);
}

#btn-girar:disabled {
    background-color: #999;
}

/* Estilos do Popup (Modal) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none; 
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 40px 30px;
    border-radius: 30px;
    text-align: center;
    width: 90%;
    max-width: 450px;
}

.modal-title {
    color: #e30613;
    font-size: 30px;
    margin-bottom: 15px;
}

.modal-text {
    color: #333;
    font-size: 18px;
    margin-bottom: 30px;
}

.btn-modal {
    background-color: #e30613;
    color: white;
    border: none;
    padding: 15px 0;
    width: 100%;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

.modal-active {
    display: flex;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background-color: #ffffff; font-family: 'Segoe UI', Arial, sans-serif; display: flex; flex-direction: column; align-items: center; min-height: 100vh; }

.header-vermelho { background-color: #e30613; width: 100%; padding: 20px 0; display: flex; justify-content: center; }
.logo { height: 45px; }

.container { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; width: 100%; max-width: 500px; padding: 20px; }
.roleta-wrapper { position: relative; width: 100%; max-width: 400px; aspect-ratio: 1 / 1; }

.moldura-roleta { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; z-index: 10; pointer-events: none; }
.disco-roleta { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -43%) rotate(16deg); width: 77%; z-index: 5; transition: transform 4s cubic-bezier(0.15, 0, 0.15, 1); border-radius: 50%; }

#btn-girar { background-color: #e30613; color: white; border: none; padding: 18px 0; width: 90%; max-width: 320px; border-radius: 40px; font-size: 22px; font-weight: bold; cursor: pointer; margin-top: 40px; box-shadow: 0 6px 20px rgba(227, 6, 19, 0.3); }
#btn-girar:disabled { background-color: #999; }

/* Modais */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); display: none; justify-content: center; align-items: center; z-index: 1000; }
.modal-content { background: white; padding: 40px 30px; border-radius: 30px; text-align: center; width: 90%; max-width: 450px; }
.modal-title { font-size: 34px; margin-bottom: 15px; font-weight: bold; }
.modal-text { color: #333; font-size: 22px; margin-bottom: 30px; line-height: 1.2; }
.color-red { color: #e30613; }
.btn-modal { border: none; padding: 20px 0; width: 100%; border-radius: 50px; font-size: 20px; font-weight: bold; cursor: pointer; text-transform: uppercase; }
.btn-red { background-color: #e30613; color: white; }
.btn-green { background-color: #6fb060; color: white; } /* Cor do botão resgatar */
.modal-active { display: flex; }

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background-color: #ffffff; font-family: Arial, sans-serif; display: flex; flex-direction: column; align-items: center; min-height: 100vh; }

.header-vermelho { background-color: #e30613; width: 100%; padding: 20px 0; display: flex; justify-content: center; }
.logo { height: 45px; }

.container { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; width: 100%; max-width: 500px; padding: 20px; }
.roleta-wrapper { position: relative; width: 100%; max-width: 400px; aspect-ratio: 1 / 1; }

.moldura-roleta { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; z-index: 10; pointer-events: none; }
.disco-roleta { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -43%) rotate(16deg); width: 77%; z-index: 5; transition: transform 4s cubic-bezier(0.15, 0, 0.15, 1); border-radius: 50%; }

#btn-girar { background-color: #e30613; color: white; border: none; padding: 18px 0; width: 90%; max-width: 320px; border-radius: 40px; font-size: 22px; font-weight: bold; cursor: pointer; margin-top: 40px; box-shadow: 0 6px 20px rgba(227, 6, 19, 0.3); }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); display: none; justify-content: center; align-items: center; z-index: 1000; }
.modal-content { background: white; padding: 40px 30px; border-radius: 30px; text-align: center; width: 90%; max-width: 450px; }
.modal-title { font-size: 30px; margin-bottom: 15px; font-weight: bold; }
.modal-text { color: #333; font-size: 20px; margin-bottom: 30px; }
.color-red { color: #e30613; }
.btn-modal { border: none; padding: 18px 0; width: 100%; border-radius: 50px; font-size: 18px; font-weight: bold; cursor: pointer; text-transform: uppercase; }
.btn-red { background-color: #e30613; color: white; }
.btn-green { background-color: #6fb060; color: white; }
.modal-active { display: flex; }