.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
    backdrop-filter: blur(5px);
    perspective: 1000px;
}

.start-popup {
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    border: 3px solid #8b0000;
    border-radius: 15px;
    padding: 40px;
    max-width: 800px;
    width: 90%;
    color: #fff;
    box-shadow: 0 0 30px rgba(139, 0, 0, 0.7), 0 0 60px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: cardFlip 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas: 
        "header"
        "buttons"
        "news";
    gap: 15px;
}

/* Anúncio interno exibido em popups */
.popup-ad {
    margin-top: 20px;
    text-align: center;
}

.popup-ad iframe {
    width: 160px;
    height: 600px;
}

.start-popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Removido o emoji de fundo */
    pointer-events: none;
    animation: pulseGlow 3s infinite alternate;
}

.start-popup::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: radial-gradient(circle, rgba(139, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    opacity: 0.6;
    pointer-events: none;
    animation: rotateGradient 15s linear infinite;
}

.start-popup h2 {
    grid-area: header;
    color: #ff6b6b;
    font-size: 2.8em;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 0, 0, 0.3);
    font-family: 'Creepster', cursive;
    position: relative;
    animation: textGlow 2s infinite alternate;
    letter-spacing: 2px;
    text-align: center;
}

.start-popup h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, rgba(139, 0, 0, 0) 0%, rgba(139, 0, 0, 0.8) 50%, rgba(139, 0, 0, 0) 100%);
}

.instructions {
    grid-area: content;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 15px;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

.instructions p {
    margin: 10px 0;
    font-size: 1.2em;
    line-height: 1.5;
    color: #dddddd;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    opacity: 0;
    animation: fadeInText 0.5s forwards;
    animation-delay: 0.5s;
    text-align: center;
    position: relative;
    padding-left: 30px;
}

.instructions p::before {
    content: '🧟';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
}

.left-buttons, .right-buttons {
    display: none;
}

.buttons-container {
    grid-area: buttons;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    max-width: 400px;
    width: 100%;
    padding: 20px;
}

.instructions {
    grid-area: content;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.news-section {
    grid-area: news;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 10px; /* Reduzido de 15px para 10px */
    margin-top: 5px; /* Reduzido de 10px para 5px */
    border-top: 1px solid rgba(139, 0, 0, 0.3);
}

.news-section h3 {
    color: #ff6b6b;
    font-size: 1.1em; /* Reduzido de 1.3em para 1.1em */
    margin-bottom: 5px; /* Reduzido de 10px para 5px */
    text-align: center;
}

.news-section p {
    color: #dddddd;
    font-size: 0.9em; /* Reduzido de 1em para 0.9em */
    line-height: 1.3; /* Reduzido de 1.4 para 1.3 */
    text-align: center;
}

.start-button {
    padding: 14px 16px;
    font-size: 1.1em;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform-style: preserve-3d;
    width: 100%;
    max-width: 160px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: 200% auto;
    background-position: left center;
}

.start-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 80%);
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: rotate(30deg);
    pointer-events: none;
}

.start-button:hover::before {
    opacity: 1;
}

.start-button i {
    margin-right: 8px;
    font-size: 1.2em;
}

.new-game {
    background-image: linear-gradient(to right, #4a9b4a 0%, #2a6b2a 51%, #4a9b4a 100%);
    border: 2px solid #3d8b3d;
}

.new-game:hover {
    background-position: right center;
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(74, 155, 74, 0.4);
}

.new-game:active {
    transform: scale(0.98) translateY(2px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hardcore {
    background-image: linear-gradient(to right, #9b4a4a 0%, #6b2a2a 51%, #9b4a4a 100%);
    border: 2px solid #8b3d3d;
}

.hardcore:hover {
    background-position: right center;
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(155, 74, 74, 0.4);
}

.hardcore:active {
    transform: scale(0.98) translateY(2px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.login {
    background-image: linear-gradient(to right, #4a6b9b 0%, #2a4b6b 51%, #4a6b9b 100%);
    border: 2px solid #3d5d8b;
}

.login:hover {
    background-position: right center;
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(74, 107, 155, 0.4);
}

.login:active {
    transform: scale(0.98) translateY(2px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.discord {
    background-image: linear-gradient(to right, #7289da 0%, #4e6ac8 51%, #7289da 100%);
    border: 2px solid #5d73bc;
}

.discord:hover {
    background-position: right center;
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(114, 137, 218, 0.4);
}

.discord:active {
    transform: scale(0.98) translateY(2px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes cardFlip {
    0% { transform: rotateY(90deg); opacity: 0; }
    100% { transform: rotateY(0); opacity: 1; }
}

@keyframes fadeInText {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInButtons {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
    from { opacity: 0.05; }
    to { opacity: 0.12; }
}

@keyframes rotateGradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes textGlow {
    from { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 0, 0, 0.3); }
    to { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 0, 0, 0.6); }
}

@keyframes buttonGlowPulse {
    from { opacity: 0.1; }
    to { opacity: 0.3; }
}

@keyframes floatParticle {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.5; }
    90% { opacity: 0.5; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

/* Responsividade */
@media (max-width: 768px) {
    .start-popup {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
        grid-template-areas: 
            "header"
            "content"
            "left-buttons"
            "right-buttons"
            "news";
        padding: 30px 20px;
    }
    
    .left-buttons, .right-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .start-button {
        max-width: 160px;
        font-size: 1em;
        padding: 12px 16px;
    }
    
    .instructions p {
        font-size: 1.1em;
    }}
