/* --- Estilos Gerais (Mantidos para consistência) --- */
body {
    padding-top: 80px;
    background: #0e1015;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    padding-bottom: 80px;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;

}


html, body {
    width: 100%;
    overflow-x: hidden;
}




* {
    box-sizing: border-box;
}

header {
    width: 100%;
    padding: 10px;
    text-align: center;
}

.saldo-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    margin: 10px 0;
    border-radius: 8px;
    background: #121419;
    width: 90%;
    max-width: 400px;
}

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 106%;
}

/* --- Estilos da Roleta Horizontal (Reel) --- */
/* --- Estilos da Roleta Horizontal (Reel) --- */
.reel-wrapper {
    position: relative;
    width: 95%;
    max-width: 600px;
    height: 200px;
    background: transparent;
    margin: 10px auto 0 auto;
    overflow: hidden;
}

.reel-pointer {
    position: absolute;
    bottom: 0; /* se quiser fixar embaixo */
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 14px solid #ffb400;
    z-index: 10;
}

.modal-prize-container:has(img:not([src])) {
  display: none;
}

.pointer-down {
    position: absolute;
    top: 0; /* se quiser fixar embaixo */
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 14px solid #ffb400; /* seta amarela para cima */
    z-index: 10;
}

.reel-strip {
    display: flex;
    align-items: center;
    height: 100%;
    /* AJUSTE ADICIONADO: Garante que o primeiro item possa ser centralizado */
    padding: 0 calc(47% - 80px); /* 50% do wrapper - metade da largura do card (160px / 2) */
}

/* --- CARD DO ITEM --- */
.reel-item {
    min-width: 160px;
    height: 180px;
    background: #1a1f2e;
    border-radius: 12px;
    margin: 0 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.6);;
    filter: blur(5px); /* Desfoque padrão */
    transition: filter 0.5s ease-in-out; 
}

.reel-strip.spinning .reel-item {
    filter: blur(0);
}

.reel-item:hover {
    transform: scale(1.08);
    z-index: 5;
}

/* --- Imagem da nota --- */
.reel-item img {
    max-width: 100%;
    max-height: 90px;
    object-fit: contain;
    border-radius: 8px;
}

/* --- Texto do prêmio principal (ex: "500 Reais") --- */
.reel-item .reel-item-text {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-top: 6px;
    text-align: center;
}

/* --- Texto do valor (ex: "R$ 500,00") --- */
.reel-item .valor {
    color: white;
    font-size:20px;
    font-weight: bold;
    text-align: center;
}

/* Item "Não Ganhou" */
.reel-item.item-nao-ganhou-bg {
    background: linear-gradient(180deg, #5c0000, #250000);
    color: #fff;
}
.reel-item.item-nao-ganhou-bg .item-nao-ganhou {
    font-size: 18px;
    font-weight: bold;
}


/* --- Botões e Mensagens (Mantidos) --- */
a.btn-jogar {
    text-decoration: none; /* Remove o sublinhado do link */
    color: inherit;        /* Faz o link herdar a cor do texto definida para o botão */
    display: inline-block; /* Garante que o link se comporte como um bloco para padding e margens */
    text-align: center;    /* Centraliza o texto dentro do link/botão */
}

.btn-jogar {
    width: 100%;
    background: linear-gradient(145deg, #00AFFF, #007FDB); /* Gradiente azul vibrante */
    color: #ffffff;
    padding: 18px 20px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0, 159, 255, 0.3), 0 1px 2px rgba(0,0,0,0.2); /* Sombra dupla para profundidade */
    text-transform: uppercase; /* Deixa o texto mais imponente */
    letter-spacing: 1px;
}

.btn-jogar:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 159, 255, 0.4), 0 2px 4px rgba(0,0,0,0.2);
}

.btn-jogar:disabled {
    background: #555;
    box-shadow: none;
    transform: none;
    cursor: not-allowed;
}

.btn-jogar:disabled {
    background: #555;
    cursor: not-allowed;
}

.baul-item .baul-image {
    /* Adiciona a animação à imagem da caixa */
    animation: pulse-animation 2s infinite ease-in-out;
}

@keyframes pulse-animation {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.6)); /* Sombra inicial */
    }
    50% {
        transform: scale(1.05); /* Aumenta um pouco de tamanho */
        filter: drop-shadow(0 0 25px rgba(139, 92, 246, 0.9)); /* Sombra mais intensa */
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.6)); /* Volta ao normal */
    }
}

/* Para a animação quando o mouse está sobre a caixa, para não ser irritante */
.baul-item:hover .baul-image {
    animation-play-state: paused;
}

/* CSS adicional para o botão de cadastro - adicione no seu roleta.css */

.btn-cadastrar {
    /* Remove estilos padrão de link */
    text-decoration: none !important;
    
    /* Força as mesmas propriedades do botão */
    display: inline-block !important;
    box-sizing: border-box !important;
    
    /* Garante o alinhamento e dimensões corretas */
    text-align: center !important;
    vertical-align: middle !important;
    
    /* Força a mesma largura e altura do botão original */
    width: 100% !important;
    min-height: 54px !important; /* Altura padrão dos botões */
    
    /* Garante o mesmo line-height para centralizar o texto verticalmente */
    line-height: 1.2 !important;
    
    /* Remove bordas que podem aparecer em alguns navegadores */
    border: none !important;
    outline: none !important;
    
    /* Mantém o cursor pointer */
    cursor: pointer !important;
    
    /* Força o mesmo comportamento de padding e margin */
    margin: 0 !important;
    
    /* Garante que o texto seja renderizado da mesma forma */
    font-family: inherit !important;
    
    /* Remove qualquer transformação de texto que possa interferir */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Garante que o hover funcione igual ao botão */
.btn-cadastrar:hover {
    text-decoration: none !important;
}

/* Para garantir que funcione em todos os navegadores */
.btn-cadastrar:visited,
.btn-cadastrar:active,
.btn-cadastrar:focus {
    text-decoration: none !important;
    color: inherit !important;
}

/* Correção específica para mobile */
@media (max-width: 768px) {
    .btn-cadastrar {
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
    }
}

/* --- Botão de Simulação --- */
.btn-simular {
    background: transparent;
    color: #a0b3d5;
    padding: 14px 20px;
    border: 2px solid #3a4a6e;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    order: 2; /* Força o botão simular a ficar à direita */
    width: 150px;
}

.btn-simular:hover {
    background-color: #3a4a6e;
    color: #ffffff;
}

.btn-simular:disabled {
    background: #555;
    cursor: not-allowed;
}

/* ============================================= */
/* CONTROLES DE JOGO (BOTÕES + SOM)              */
/* ============================================= */

.game-controls {
    width: 100%;
    max-width: 400px;
    margin: 20px auto 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.game-controls form {
    margin: 0;
}

.secondary-controls {
    display: flex;
    width: 100%;
    justify-content: center; /* Centraliza os itens horizontalmente */
    align-items: center;
    gap: 15px; /* Espaço entre os botões */
}

.secondary-controls form {
    margin: 0; /* Remove o margin-top do formulário do botão simular */
}

/* --- Botão de Controle de Som --- */
.sound-toggle {
    position: static;
    transform: none;
    width: 54px;
    height: 54px;
    border: 2px solid #3a4a6e;
    border-radius: 12px;
    background: transparent;
    color: #a0b3d5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    order: 1; /* Força o botão de som a ficar à esquerda */
}

.sound-toggle:hover {
    background-color: #3a4a6e;
    color: #ffffff;
}

/* Ajuste para o estado desabilitado */
.sound-toggle.disabled {
    background: transparent; /* Mantém o fundo transparente */
    border-color: #6c3545; /* Borda avermelhada para indicar 'off' */
    color: #dc3545;
}

.sound-toggle.disabled:hover {
    background-color: #6c3545;
    color: #ffffff;
}

/* Remove pseudo-elementos que não são mais necessários */
.sound-toggle::before, .sound-toggle:hover::after {
    display: none;
}

/* Ícone do som */
.sound-icon {
    font-size: 18px;
    transition: all 0.3s ease;
}

/* Animação de ondas sonoras quando ativo */
.sound-toggle:not(.disabled) .sound-icon {
    animation: soundWaves 2s ease-in-out infinite;
}

@keyframes soundWaves {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Tooltip melhorado */
.sound-toggle[title] {
    position: relative;
}

.sound-toggle[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    animation: tooltipFadeIn 0.3s ease forwards;
}

@keyframes tooltipFadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-5px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Indicador de estado mais claro */
.sound-toggle::before {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #28a745;
    border: 2px solid white;
    transition: all 0.3s ease;
}

.sound-toggle.disabled::before {
    background: #dc3545;
}

/* Notificação de estado do som */
.sound-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(145deg, #007fdb, #0056b3);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(0, 127, 219, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    z-index: 10000;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sound-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.sound-notification i {
    font-size: 16px;
}

/* Responsividade para notificação */
@media (max-width: 768px) {
    .sound-notification {
        top: 15px;
        right: 15px;
        padding: 10px 16px;
        font-size: 13px;
    }
}


/* Responsividade para mobile */
@media (max-width: 768px) {
    .sound-toggle {
        width: 40px;
        height: 46px;
        right: 8px;
    }
    
    .sound-icon {
        font-size: 16px;
    }
    
    .sound-toggle::before {
        width: 10px;
        height: 10px;
    }
}

.mensagem {
    margin-top: 20px;
    min-height: 30px;
    font-size: 1.2em;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    text-align: center;
}

.mensagem.erro {
    background-color: #d32f2f;
    color: white;
}

/* ============================================= */
/* CSS para Baús de Prêmios                      */
/* ============================================= */

.baul-container {
    max-width: 400px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 15px 25px;
    backdrop-filter: blur(10px);
}

.baul-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.baul-item {
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
    overflow: visible;
    background: transparent;
}

.baul-item:hover {
    transform: translateY(-8px) scale(1.02);
}

.baul-image {
    max-width: 120px;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    pointer-events: none;
    user-select: none;
    transition: transform 0.3s ease;
}

/* Sombras coloridas aplicadas diretamente na imagem */
.baul-purple .baul-image {
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.8)) drop-shadow(0 0 40px rgba(139, 92, 246, 0.6)) drop-shadow(0 0 60px rgba(139, 92, 246, 0.4));
}

.baul-orange .baul-image {
    filter: drop-shadow(0 0 20px rgba(249, 115, 22, 0.8)) drop-shadow(0 0 40px rgba(249, 115, 22, 0.6)) drop-shadow(0 0 60px rgba(249, 115, 22, 0.4));
}

.baul-blue .baul-image {
    filter: drop-shadow(0 0 20px rgba(30, 64, 175, 0.8)) drop-shadow(0 0 40px rgba(30, 64, 175, 0.6)) drop-shadow(0 0 60px rgba(30, 64, 175, 0.4));
}

.baul-purple2 .baul-image {
    filter: drop-shadow(0 0 20px rgba(124, 58, 237, 0.8)) drop-shadow(0 0 40px rgba(124, 58, 237, 0.6)) drop-shadow(0 0 60px rgba(124, 58, 237, 0.4));
}

.baul-green .baul-image {
    filter: drop-shadow(0 0 20px rgba(5, 150, 105, 0.8)) drop-shadow(0 0 40px rgba(5, 150, 105, 0.6)) drop-shadow(0 0 60px rgba(5, 150, 105, 0.4));
}

.baul-item:hover .baul-image {
    transform: scale(1.05);
}

/* Mensagem do baú */
.baul-message {
    text-align: center;
    margin-top: 15px;
}

.baul-message p {
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Efeito de brilho sutil */
.baul-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.baul-item:hover::before {
    animation: shine 0.8s ease-in-out;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
        opacity: 0;
    }
}

/* Responsividade para baús */
@media (max-width: 768px) {
    .baul-container {
        max-width: 350px;
    }
    
    .baul-image {
        max-width: 150px;
        max-height: 400px;
    }
    
    .baul-message p {
        font-size: 14px;
    }
}

/* ============================================= */
/* CSS para a Lista de Prêmios Disponíveis       */
/* ============================================= */

.premios-disponiveis-container {
    max-width: 500px;
    margin: 40px auto 20px auto;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.premios-disponiveis-container h3 {
    color: #007fdb;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    font-size: 1.2em;
    margin-top: 0;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.premios-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Cria duas colunas de tamanho igual */
    gap: 15px; /* Espaçamento entre os itens */
}

.premio-item {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.premio-item img {
    max-height: 50px; /* Ajuste o tamanho da imagem se necessário */
    width: auto;
    margin-bottom: 10px;
}

.premio-item-text {
    color: #007fdb;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.1em;
}

/* ========== ESTILOS DO MODAL DE RESULTADO ========== */

/* O fundo escurecido que cobre a tela */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Classe para mostrar o modal */
.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* O conteúdo principal do modal */
.modal-content {
    background: transparent;
    color: #ffffff;
    padding: 0;
    border-radius: 20px;
    text-align: center;
    width: 95%;
    max-width: 500px;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    position: relative;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

/* Container do fundo do modal com a imagem modal.jpg */
.modal-background {
    position: relative;
    width: 150%;
    height: auto;
    border-radius: 20px;
    overflow: hidden;
}

.modal-background img {
  position: relative;
  left: -95px; /* Ajuste o valor conforme necessário */
}

/* Imagem de fundo do modal */
.modal-bg-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

/* Overlay para posicionar a imagem do prêmio */
.modal-prize-overlay {
    position: absolute;
    top: 55%;
    left: 51%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

/* Imagem do prêmio posicionada sobre o fundo */
.modal-prize-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(0, 175, 255, 0.8));
    border-radius: 10px;
}

/* Texto do valor do prêmio */
.modal-prize-value {
    position: absolute;
    top: 71%;
    left: 32%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 15;
    display: none;
}

.modal-prize-value {
    position: absolute;
    top: 72%;
    left: 32%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 15;
    display: none;
}

/* Título do modal (Ex: "Parabéns!") */
.modal-content h2 {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 175, 255, 0.8);
    z-index: 15;
}

/* Estilo especial para simulação */
.modal-content.simulacao h2 {
    color: #ffc107;
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.8);
}

/* Texto do modal */
.modal-content p {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.4rem;
    margin: 0;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 15;
    text-align: center;
    width: 80%;
}

/* Adicione um preenchimento na parte inferior do corpo da página
   para que o conteúdo não fique escondido atrás do rodapé fixo.
   Ajuste o valor (80px) se a altura do seu rodapé for diferente. */
body {
    margin: 0;
    padding-bottom: 80px; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}



.pacote-inicial {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}



.pacote-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.pacote-imagem {
    width: 100%;
    height: 482px;
    object-fit: cover;
    border-radius: 0;
}


/* ============================================= */
/* HEADER DE USUÁRIO (LOGO + SALDO)              */
/* ============================================= */

.user-header {
    position: fixed; /* Mantém fixo na tela */
    top: 0; /* Cola no topo */
    left: 50%; /* Posiciona no centro horizontal */
    transform: translateX(-50%); /* Centraliza perfeitamente */
    z-index: 9999; /* Fica acima de tudo (maior que qualquer outro elemento) */
    
    display: flex; /* Habilita o layout flexível */
    justify-content: space-between; /* Alinha a logo à esquerda e o saldo à direita */
    align-items: center; /* Centraliza os itens verticalmente */
    
    width: 105%;
    max-width: 500px; /* Mantém a consistência com o resto do layout */
    
    background-color: #000a15; /* Preto/Cinza escuro para o fundo */
    padding: 10px 20px;
    
    border-radius: 15px; /* Bordas arredondadas */
    border: 2px solid #007fdb; /* Borda amarela para destaque */
    box-shadow: 0 4px 15px rgba(253, 216, 53, 0.1); /* Sombra amarela sutil */
    box-sizing: border-box;
}

/* --- Lado da Logo --- */
.user-header-logo img {
    height: 40px; /* Altura da logo, como no seu código original */
    width: auto;
    display: block; /* Remove espaços extras indesejados */
}

/* --- Lado do Saldo --- */
.user-header-saldo {
    display: flex;
    flex-direction: column; /* Organiza o texto em coluna */
    align-items: flex-end; /* Alinha o texto à direita */
}

/* Estilo para o texto "Seu Saldo" */
.saldo-label {
    font-size: 12px;
    font-weight: 500;
    color: #ffffff; /* Um cinza claro para não competir com o valor */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Estilo para o valor do saldo (R$ XX,XX) */
.saldo-valor {
    font-size: 20px;
    font-weight: 700; /* Negrito */
    color: #007fdb; /* Amarelo, cor de destaque principal */
    line-height: 1.2;
}

/* ============================================= */
/* ESTILOS DO MODAL DE RESULTADO                 */
/* ============================================= */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.modal-content h2 {
    font-size: 2.2em;
    color: #00AFFF;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 175, 255, 0.6);
}

.modal-content.simulacao h2 {
    color: #ffc107; /* Amarelo para simulação */
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.6);
}

.modal-prize-container {
    background: #0e1015;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 150px;
    width: 100%;
    max-width: 250px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.3);
}

.modal-prize-container img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(0, 175, 255, 0.8));
}

.modal-content p {
    font-size: 1.4em;
    color: #fff;
    margin-bottom: 25px;
    line-height: 1.4;
}

.modal-content p small {
    font-size: 0.8em;
    display: block;
    margin-top: 5px;
}

/* Estilos para o modal de "Não Ganhou" */
.modal-content.nao-ganhou h2 {
    color: #FF4500; /* Laranja avermelhado para "Que pena!" */
    text-shadow: 0 0 10px rgba(255, 69, 0, 0.6);
}

.modal-content.nao-ganhou .modal-prize-container {
    background: #250000; /* Fundo mais escuro para não ganhou */
    box-shadow: inset 0 0 15px rgba(255, 0, 0, 0.3);
}

.modal-content.nao-ganhou .modal-prize-container img {
    filter: grayscale(100%) brightness(50%); /* Escurece e dessatura a imagem */
}

/* Responsividade para o modal */
@media (max-width: 768px) {
    .modal-content {
        width: 98%;
        max-width: 350px;
    }

    .modal-content h2 {
        font-size: 1.8em;
        top: 15px;
    }

    .modal-content p {
        font-size: 1.2em;
        bottom: 60px;
    }

    .modal-prize-overlay {
        width: 120px;
        height: 120px;
    }
}


