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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background: #020B1F;
    color: white;
}

/* =========================
   CABEÇALHO — IGUAL À PRINCIPAL
========================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    background: rgba(2, 11, 31, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    height: 85px;
    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    width: 145px;
    display: block;
}

nav {
    display: flex;
    gap: 35px;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

nav a:hover {
    color: #FF8A00;
}

/* =========================
   ÁREA DO SORTEIO
========================= */

.sorteio-container {
    width: 100%;
    min-height: 100vh;
    padding: 120px 20px 90px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        radial-gradient(
            circle at center,
            #08316E 0%,
            #020B1F 55%
        );
}

/* =========================
   CARD
========================= */

.sorteio-card {
    width: 100%;
    max-width: 520px;
    padding: 42px 35px;

    text-align: center;

    background:
        linear-gradient(
            145deg,
            #091B3A,
            #061329
        );

    border: 1px solid #14325E;
    border-radius: 15px;

    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);

    animation: aparecer 0.8s ease;
}

.sorteio-tag {
    display: block;
    margin-bottom: 14px;

    color: #FF8A00;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 4px;
}

.sorteio-card h1 {
    font-size: clamp(34px, 6vw, 48px);
    line-height: 1.1;
    margin-bottom: 14px;
}

.sorteio-card h1 span {
    color: #FF8A00;
}

.descricao {
    color: #AAB6CA;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* =========================
   CAMPO
========================= */

.campo {
    text-align: left;
    margin-bottom: 25px;
}

.campo label {
    display: block;
    margin-bottom: 8px;

    color: #AAB6CA;
    font-size: 13px;
    font-weight: bold;
}

.campo input {
    width: 100%;
    height: 55px;
    padding: 0 18px;

    border-radius: 6px;
    border: 1px solid #31527F;

    background: #020B1F;
    color: white;

    font-size: 20px;
    outline: none;
    transition: 0.3s;
}

.campo input:focus {
    border-color: #FF8A00;
    box-shadow: 0 0 0 3px rgba(255,138,0,0.12);
}

/* =========================
   NÚMERO
========================= */

.numero-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 25px 0;
}

.numero {
    width: 210px;
    height: 170px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;

    background:
        linear-gradient(
            145deg,
            #08316E,
            #020B1F
        );

    border: 1px solid #31527F;

    box-shadow: 0 15px 40px rgba(0,0,0,0.35);

    font-size: 75px;
    font-weight: 800;
    letter-spacing: 2px;
    color: white;

    transition: transform 0.1s;
}

.numero.animando {
    animation: pulsar 0.12s infinite alternate;
}

/* =========================
   MENSAGEM
========================= */

.mensagem {
    min-height: 60px;
    margin: 10px 0 15px;

    color: #FF8A00;
    font-size: 22px;
    font-weight: 800;

    opacity: 0;
    transform: scale(0.7);
    transition: 0.5s;
}

.mensagem.mostrar {
    opacity: 1;
    transform: scale(1);
    animation: comemorar 0.7s ease;
}

/* =========================
   BOTÕES
========================= */

.btn-sortear,
.btn-novo {
    width: 100%;
    height: 55px;

    border-radius: 6px;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: bold;

    cursor: pointer;
    transition: 0.3s;
}

.btn-sortear {
    border: none;
    background: #FF8A00;
    color: white;

    box-shadow: 0 10px 30px rgba(255,138,0,0.20);
}

.btn-sortear:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255,138,0,0.30);
}

.btn-sortear:active {
    transform: translateY(0);
}

.btn-novo {
    display: none;
    margin-top: 10px;

    background: transparent;
    border: 1px solid #31527F;
    color: white;
}

.btn-novo:hover {
    border-color: #FF8A00;
    color: #FF8A00;
}

/* =========================
   CONTADOR
========================= */

.contador {
    height: 25px;
    margin-top: 12px;

    color: #66758C;
    font-size: 12px;
}

/* =========================
   RODAPÉ DO CARD
========================= */

.sorteio-footer {
    margin-top: 28px;
    color: #66758C;
    font-size: 11px;
    line-height: 1.6;
}

/* =========================
   RODAPÉ DA PÁGINA PRINCIPAL
========================= */

footer {
    position: relative;
    text-align: center;
    padding: 45px 20px 80px;

    background: #020B1F;
    border-top: 1px solid #122B51;
}

footer img {
    width: 145px;
    margin-bottom: 20px;
}

footer p {
    color: #8795AA;
    font-size: 13px;
    line-height: 1.8;
}

.footer-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 22px;
}

.footer-icon,
.back-top {
    width: 42px;
    height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #31527F;
    border-radius: 6px;

    color: white;
    background: #091B3A;
    text-decoration: none;

    font-size: 20px;
    transition: 0.3s;
}

.footer-icon:hover,
.back-top:hover {
    color: #FF8A00;
    border-color: #FF8A00;
    transform: translateY(-3px);
}

/* BOTÃO FLUTUANTE */
.back-top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 999;

    background: rgba(9,27,58,0.95);
    backdrop-filter: blur(8px);
}

/* =========================
   ANIMAÇÕES
========================= */

@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulsar {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.04);
    }
}

@keyframes comemorar {
    0% {
        transform: scale(0.5) rotate(-5deg);
    }

    50% {
        transform: scale(1.15) rotate(3deg);
    }

    100% {
        transform: scale(1) rotate(0);
    }
}

/* =========================
   DESABILITADO
========================= */

button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    transform: none !important;
}

/* =========================
   CELULAR
========================= */

@media (max-width: 700px) {
    nav {
        display: none;
    }

    .nav-container {
        height: 75px;
    }

    .logo img {
        width: 130px;
    }

    .sorteio-container {
        padding: 100px 16px 55px;
    }

    .sorteio-card {
        padding: 35px 22px;
        border-radius: 15px;
    }

    .sorteio-card h1 {
        font-size: 34px;
    }

    .descricao {
        font-size: 15px;
    }

    .numero {
        width: 180px;
        height: 145px;
        font-size: 60px;
    }

    footer {
        padding-bottom: 95px;
    }

    .back-top {
        right: 16px;
        bottom: 16px;
    }
}
