/* --- ESTILO BASE E MODAIS DA ENGINE --- */
:root {
    --bg-dark: #18191c;
    --card-bg: #242529;
    --blue-prime: #2D9CDB;
    --yellow-prime: #FEC601;
    --purple-prime: #9B51E0;
    --green-accent: #27ae60;
    --red-error: #e74c3c;
}

body {
    margin: 0; padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    color: #ffffff;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    min-height: 100vh;
}

/* Modal de Vitória / Conversão */
.engine-modal {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px);
    display: flex; justify-content: center; align-items: center; z-index: 999;
}

.engine-modal-content {
    background: var(--card-bg);
    border: 3px solid var(--blue-prime);
    border-radius: 25px;
    padding: 35px; text-align: center;
    max-width: 450px; width: 90%;
    box-shadow: 0 15px 40px rgba(45, 156, 219, 0.3);
}

.engine-title { font-size: 2.2rem; color: var(--yellow-prime); margin: 0; }
.engine-subtitle { font-size: 1.1rem; color: #ccc; margin-bottom: 20px; }
.engine-score-badge { font-size: 1.3rem; font-weight: bold; margin-bottom: 20px; }

.engine-promo-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px; padding: 15px; margin-bottom: 25px;
}
.engine-promo-card p { margin-top: 0; font-size: 0.95rem; color: #ddd; }

.engine-btn-group { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.engine-btn {
    text-decoration: none; padding: 12px 20px; border-radius: 12px;
    font-weight: bold; font-size: 0.9rem; border: none; cursor: pointer; transition: 0.2s;
}
.engine-btn.green { background: var(--green-accent); color: white; }
.engine-btn.prime { background: var(--purple-prime); color: white; }
.engine-btn.restart { background: var(--yellow-prime); color: #000; width: 100%; font-size: 1.1rem; margin-top: 10px; }
.engine-btn:hover { transform: translateY(-2px); opacity: 0.9; }
