* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: #0e0e0e;
    color: #eaeaea;
}

/* Header */
header {
    background: #0b2e1f;
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: 700;
}

.logo img{
    width: 80px;
}

.logo span {
    color: #1bb36b;
}

nav a {
    margin-left: 25px;
    color: #cfcfcf;
    text-decoration: none;
    font-size: 14px;
}

nav a.btn {
    background: #1bb36b;
    padding: 8px 16px;
    border-radius: 6px;
    color: #fff;
}

/* Banner */
.banner {
    max-width: 1200px;
    margin: 30px auto;
    border-radius: 12px;
    overflow: hidden;
}

.banner img {
    width: 100%;
}

/* Sections */
.section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

h2 {
    font-size: 20px;
    margin-bottom: 20px;
}

/* Cards */
.cards {
    display: block;
}

.card {
    float: left;
    background: #161616;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
    width: 45%;
    margin: 2.5%;
    height: 200px;
}

.card img {
    width: 100%;
    border-radius: 10px;
}

.card h3 {
    margin: 12px 0 6px;
}

.price {
    color: #f5b400;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.card button {
    width: 100%;
    padding: 10px;
    background: #1bb36b;
    border: none;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
}

/* Winners */
.winners {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.winner {
    background: #161616;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    gap: 12px;
}

.winner img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

/* Payment */
.payment {
    background: #103d28;
    padding: 20px;
    border-radius: 12px;
    font-weight: 600;
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.step {
    position: relative;
    background: #161616;
    padding: 20px;
    border-radius: 12px;
     overflow: hidden;
}

.step::before {
    content: attr(data-step);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    font-size: 120px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.07);

    z-index: 1;
    pointer-events: none;
}

.step strong, .step p {
    position: relative;
    z-index: 2;
}

/* Footer */
footer {
    background: #000;
    padding: 30px;
    text-align: center;
    color: #777;
    clear: both;
    bottom: 0;
    position: fixed;
    width: 100%;
}

.imgrifa{
    width: 49%;
    float: left;
}

.imgrifa img {
    width: 85%;
 
}

.detalhe{
    width: 49%;
    float: right;
}

.detalhe p {
    font-size: 0.8em;
}

                                                                              /* MODAL */

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #161616;
    padding: 25px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    position: relative;
    animation: modalFade 0.3s ease;
}

@keyframes modalFade {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content h2 {
    margin-bottom: 20px;
    text-align: center;
}

.modal-content label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.modal-content input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: none;
    background: #0e0e0e;
    color: #fff;
}

.modal-content button {
    width: 100%;
    padding: 12px;
    background: #1bb36b;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    cursor: pointer;
}

                                                             /* MODAL COMPRA */
.modal-text {
    text-align: center;
    font-size: 14px;
    margin-bottom: 20px;
    color: #cfcfcf;
}

.auto-compra {
    background: #0b2e1f;
    border: 1px solid #1bb36b;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.auto-compra strong {
    color: #1bb36b;
    display: block;
    margin-bottom: 5px;
}

.auto-compra p {
    font-size: 13px;
    color: #ddd;
}

#modalCompra input {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 6px;
    border: none;
    background: #0e0e0e;
    color: #fff;
}

.modal-compra {
    max-width: 500px;
}

.grade-numeros {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin: 15px 0;
}

.numero {
    background: #0e0e0e;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.numero:hover {
    border-color: #1bb36b;
}

.numero.selecionado {
    background: #1bb36b;
    color: #000;
}

.info-qtd {
    text-align: center;
    margin-bottom: 15px;
    font-size: 14px;
}

.status {
    display: inline-block;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    
}

.status.Ativa {
    background:  #ebc334;
    color: #000;
}

.status.Encerrada {
    background: #444;
    color: #ccc;
}

.status.Aguardando{
    background : #1bb36b;
    color: #000;
}

.comprovante {
    max-width: 600px;
    margin: 0 auto;
}

.comprovante .linha {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.comprovante hr {
    border: none;
    border-top: 1px solid #333;
    margin: 15px 0;
}

.comprovante .acoes {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.comprovante .acoes button {
    flex: 1;
}

.raspadinha-card {
    max-width: 420px;
    margin: auto;
}

.scratch-wrapper {
    position: relative;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
}

.resultado {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    height: 100%;
}

.resultado img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
    padding: 10px;
}

.center-page {
    min-height: calc(100vh - 120px); /* ajusta header/footer */
    display: flex;
    justify-content: center;
    align-items: center;
}

.raspadinha-box {
  /*  text-align: center;*/
     padding: 0 16px;
     width: 50%;
    /* max-width: 700px;*/
     margin-left: 35%;
}

.btn-retry {
    margin-top: 16px;
    width: 100%;
    padding: 12px;
    background: #ffc107;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

.btn-retry:hover {
    opacity: 0.9;
}

#scratchCanvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

.raspadinha-box {
    width: 100%;
  /*  max-width: 420px;  largura ideal para mobile e desktop */
   
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.animar-entrada {
    animation: fadeUp 0.6s ease-out forwards;
}

#btnCopiarPix{
    display: none;
}

.btn-pagar {
    margin-top: 20px;
    padding: 14px 20px;
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

.coin-badge {
    position: fixed;
    top: 65px;
    right: 16px;
    background: linear-gradient(135deg, #ffcc00, #ff9900);
    color: #000;
    padding: 10px 14px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.coin-badge.hidden {
    display: none;
}

.coin-fly {
    position: fixed;
    font-size: 20px;
    pointer-events: none;
    z-index: 99999;
    animation: flyToBadge 1.2s ease-out forwards;
}

@keyframes flyToBadge {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: translate(var(--dx), var(--dy)) scale(0.3);
        opacity: 0;
    }
}

.coin-badge.bump {
    animation: bump 0.4s ease;
}

@keyframes bump {
    0% { transform: scale(1); }
    40% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.btncarteira{
    width: 40%;
    float: left;
    margin-left: 10%;
}

.btncarteira button{
    width: 100%;
}


                                                                /* Mobile */
@media (max-width: 768px) {
     .raspadinha-box {
       width: 90%;
       margin-left: 5%;
    }

    .center-page {
        display: box;
        width: 100%;
    }

    .raspadinha-card {
        /*max-width: 420px;
        margin: auto;*/
        width: 100%;
    }

    header {
        flex-direction: column;
        gap: 10px;
    }

    .imgrifa{
        width: 49%;
        float: left;
    }

    .imgrifa img {
        width: 85%;
 
    }

     nav{
       float: left;
        margin-left: 2%;
    }


}

@media (max-width: 900px){

    .raspadinha-box {
       width: 90%;
       margin-left: 5%;
    }

    .raspadinha-card {
        /*max-width: 420px;
        margin: auto;*/
        width: 100%;
    }

    .center-page {
        display: box;
        width: 100%;
    }

}


@media (max-width: 450px){
    .raspadinha-box {
       width: 90%;
       margin-left: 5%; 
    }

    .center-page {
        display: box;
        width: 100%;     
    }

    .raspadinha-card {
        /*max-width: 420px;
        margin: auto;*/
        width: 100%;
    }

    .coin-badge {   
        top: 93px; 
    }

}

