/* Reset e base */
* {
    box-sizing: border-box;
    user-select: none;
}

body {
    background: linear-gradient(145deg, #87CEEB 0%, #6bb5d4 100%);
    margin: 0;
    padding: 24px 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: #1e2a3a;
}

/* Título principal */
h1 {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: none;
    font-family: 'Poppins', 'Arial Black', sans-serif;
    font-size: clamp(2.2rem, 8vw, 3.5rem);
    letter-spacing: -0.5px;
    margin: 0 0 16px 0;
    padding: 0;
    text-align: center;
    font-weight: 800;
}

/* Container dos números */
.numbers-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    max-width: 500px;
    width: 100%;
    padding: 24px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    border-radius: 48px;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255,255,255,0.5);
    margin-bottom: 28px;
    transition: all 0.2s ease;
}

.lottery-number {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    border: none;
    border-radius: 60px;
    font-size: clamp(1.1rem, 5vw, 1.6rem);
    font-weight: 700;
    color: #1e4663;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    box-shadow: 0 6px 12px -6px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255,255,255,0.8);
}

.lottery-number:hover {
    transform: scale(1.05);
    background: linear-gradient(145deg, #ffffff, #f1f3f5);
    box-shadow: 0 10px 18px -8px rgba(0, 0, 0, 0.3);
}

.lottery-number.selected {
    background: radial-gradient(circle at 30% 20%, #FFD700, #E6B800);
    color: #1e2a3a;
    box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(255, 215, 0, 0.6), 0 8px 15px rgba(0,0,0,0.2);
    transform: scale(1.02);
    font-weight: 800;
}

/* Botão ajuda */
#helpBtn {
    background: linear-gradient(105deg, #008CBA, #005f7a);
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: 60px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.3);
    width: 260px;
    max-width: 80vw;
    letter-spacing: 0.3px;
    backdrop-filter: blur(4px);
}

#helpBtn:hover {
    transform: translateY(-2px);
    background: linear-gradient(105deg, #005f7a, #003d4f);
    box-shadow: 0 12px 22px -10px rgba(0, 0, 0, 0.4);
}

#helpBtn:active {
    transform: translateY(1px);
}

/* Área de resultado */
#resultMessage {
    margin-top: 28px;
    font-size: 1.15rem;
    font-weight: 500;
    text-align: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    padding: 20px 18px;
    border-radius: 32px;
    max-width: 500px;
    width: 100%;
    line-height: 1.55;
    color: #1e2a3a;
    box-shadow: 0 12px 25px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255,255,255,0.6);
}

/* Anúncio */
.ad-container {
    width: 100%;
    max-width: 500px;
    margin: 8px auto 20px;
    display: flex;
    justify-content: center;
    min-height: 60px;
    background: rgba(0,0,0,0.05);
    border-radius: 28px;
    padding: 6px 0;
    transition: all 0.2s;
}

/* Responsivo fino */
@media (max-width: 480px) {
    body {
        padding: 16px 12px;
    }
    .numbers-container {
        gap: 10px;
        padding: 18px;
        border-radius: 36px;
    }
    .lottery-number {
        font-size: 1rem;
    }
    #resultMessage {
        font-size: 0.95rem;
        padding: 16px;
        border-radius: 28px;
    }
    #helpBtn {
        width: 90%;
        font-size: 1rem;
    }
}

/* Animações suaves ao carregar */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.numbers-container, #helpBtn, #resultMessage, .ad-container {
    animation: fadeInUp 0.4s ease-out forwards;
}

/* Diferimento da animação para cada elemento */
.numbers-container { animation-delay: 0s; }
#helpBtn { animation-delay: 0.1s; }
.ad-container { animation-delay: 0.15s; }
#resultMessage { animation-delay: 0.2s; }