body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #4A90E2 0%, #5E3C9B 100%);
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    color: white;
}

.container {
    max-width: 800px;
    padding: 20px;
    text-align: center;
}

.title {
    font-size: clamp(1.5rem, 5vw, 3.5rem);
    color: white;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    animation: rainbow-blue 5s infinite;
}

@keyframes rainbow-blue {
    0% { color: #4A90E2; }
    25% { color: #5E3C9B; }
    50% { color: #3A5FCD; }
    75% { color: #4A90E2; }
    100% { color: #4A90E2; }
}

.message {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 15px;
    margin: 15px 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transform: scale(0.9);
    animation: aparecer 1s ease-out forwards;
}

.message-text {
    font-size: clamp(1rem, 2.2vw, 1.4rem);
    line-height: 1.6;
    color: white;
}

.buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

.btn {
    padding: 10px 20px;
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    cursor: pointer;
    border: none;
    color: white;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(45deg, #4A90E2, #3A5FCD);
}

.btn-secondary {
    background: linear-gradient(45deg, #5E3C9B, #7A3FCC);
}

.btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.card {
    width: 280px;
    height: 190px;
    margin: 20px auto;
    perspective: 1000px;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    color: white;
}

.card-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, #5E3C9B, #4A90E2);
}

.special-text {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.estrela {
    position: fixed;
    pointer-events: none;
    z-index: 90;
    animation: brilharEGirar 1.5s ease-out forwards;
}

.fogos {
    position: fixed;
    pointer-events: none;
    z-index: 90;
    animation: explodirFogos 1s ease-out forwards;
}

@keyframes brilharEGirar {
    0% { transform: scale(0) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 0.8; }
    100% { transform: scale(0) rotate(360deg); opacity: 0; }
}

@keyframes explodirFogos {
    0% { transform: scale(0.3); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

@keyframes aparecer {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Ajustes para telas menores */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .title {
        font-size: 2rem;
    }

    .message-text {
        font-size: 1rem;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .card {
        width: 240px;
        height: 160px;
    }

    #confetti {
        width: 100%;
        height: 100%;
        position: fixed;
        top: 0;
        left: 0;
        pointer-events: none;
    }
}