* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f7f7f7;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    overflow-x: hidden;
}

#app {
    width: 100%;
    max-width: 500px;
    padding: 20px;
}

.screen {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.screen.active {
    display: block;
}

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

.container {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

h1, h2, h3 {
    margin-bottom: 20px;
    color: #555;
}

.phase-number {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.phase-title {
    font-size: 28px;
    color: #444;
    margin-bottom: 25px;
    font-weight: 800;
}

.humor-msg {
    font-size: 22px;
    font-weight: bold;
    color: #9370db; /* Roxo para destaque */
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

p {
    margin-bottom: 20px;
    line-height: 1.6;
}

input {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    text-align: center;
}

button {
    background-color: #f0f0f0;
    color: #555;
    border: none;
    padding: 12px 25px;
    border-radius: 15px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
    box-shadow: 0 4px 0 #ccc;
}

button:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #ccc;
}

button:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #ccc;
}

/* Cores Elegantes para os botões de ação principal (Gradiente Azul para Rosa) */
#btn-login, #btn-confirm-yes, .btn-quiz, #btn-safe-try, #btn-safe-giveup, #btn-continue-3, #btn-continue-5, #btn-modal-close, #btn-reveal-name {
    background: linear-gradient(135deg, #add8e6 0%, #ffb6c1 100%);
    color: #444;
    box-shadow: 0 4px 0 #b0a4b5;
    margin-top: 20px; /* Margem padrão para todos os botões de ação principal */
}

#btn-login:hover, #btn-confirm-yes:hover, .btn-quiz:hover, #btn-safe-try:hover, #btn-safe-giveup:hover, #btn-continue-3:hover, #btn-continue-5:hover, #btn-modal-close:hover, #btn-reveal-name:hover {
    background: linear-gradient(135deg, #bde4f2 0%, #ffcdd5 100%);
    box-shadow: 0 6px 0 #b0a4b5;
}

/* Modal Personalizado */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 25px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    animation: modalIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.modal-content h3 {
    color: #444;
    margin-bottom: 15px;
    font-size: 24px;
}

.modal-content p {
    color: #666;
    margin-bottom: 25px;
    font-size: 18px;
}

/* Estilização dos Botões de Palpite (Lado a Lado) */
.bet-options {
    display: flex;
    gap: 20px;
    margin-top: 25px;
    justify-content: center;
}

.btn-bet {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    gap: 12px;
    border-radius: 20px;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: bold;
    min-height: 130px;
}

.btn-bet .emoji {
    font-size: 45px;
}

.btn-bet[data-bet="Menino"] {
    background: linear-gradient(135deg, #add8e6 0%, #87ceeb 100%);
    color: #2c5d6e;
    box-shadow: 0 6px 0 #8dbad0;
}

.btn-bet[data-bet="Menino"]:hover {
    background: linear-gradient(135deg, #bde4f2 0%, #a0e0f8 100%);
    transform: translateY(-5px);
    box-shadow: 0 10px 0 #8dbad0;
}

.btn-bet[data-bet="Menina"] {
    background: linear-gradient(135deg, #ffb6c1 0%, #ff9aa2 100%);
    color: #7a4a51;
    box-shadow: 0 6px 0 #e8a0ab;
}

.btn-bet[data-bet="Menina"]:hover {
    background: linear-gradient(135deg, #ffcdd5 0%, #ffb1b9 100%);
    transform: translateY(-5px);
    box-shadow: 0 10px 0 #e8a0ab;
}

/* Fase 1: Botão Fugitivo com Gradiente */
#btn-fugitive {
    background: linear-gradient(135deg, #add8e6 0%, #ffb6c1 100%);
    color: #444;
    box-shadow: 0 6px 0 #b0a4b5;
    width: auto;
    min-width: 120px;
}

#btn-fugitive:hover {
    background: linear-gradient(135deg, #bde4f2 0%, #ffcdd5 100%);
    box-shadow: 0 8px 0 #b0a4b5;
}

/* Estilo para botões ocultos que aparecem depois */
.btn-hidden {
    display: none;
    animation: fadeIn 0.8s ease-in-out forwards;
}

/* Fase 6: Barra de Progresso com Gradiente Elegante */
#progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #add8e6, #ffb6c1); 
    transition: width 0.3s;
}

/* Fase 1: Botão Fugitivo */
.game-area {
    position: relative;
    height: 300px;
    border: none; /* Borda removida conforme solicitado */
    margin-top: 20px;
}

#btn-fugitive {
    position: absolute;
    width: auto;
}

/* Fase 6: Barra de Progresso */
.progress-container {
    width: 100%;
    height: 30px;
    background: #eee;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
}

#progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #add8e6, #ffb6c1);
    transition: width 0.3s;
}

/* Tela Final */
#screen-reveal .container {
    transition: border 1s ease-in-out;
}

#screen-reveal.girl {
    background-color: #fff0f5 !important;
}

#screen-reveal.girl .container {
    border: 5px solid #ffb6c1 !important;
}

#btn-reveal-name {
    margin-top: 30px;
    display: none; /* Aparece via JS */
}

/* Contagem Regressiva Gigante */
#countdown {
    font-size: 120px;
    font-weight: 900;
    color: #9370db;
    text-shadow: 4px 4px 0px rgba(0,0,0,0.1);
}

.countdown-anim {
    animation: countZoom 1s ease-in-out infinite;
}

@keyframes countZoom {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 0; }
}

/* Tipografia de Bebê */
.baby-text {
    font-family: 'Comic Sans MS', 'Verdana', sans-serif;
    color: #ff69b4;
    text-shadow: 2px 2px 0px #fff;
}

#reveal-title {
    font-size: 45px;
    min-height: 60px;
    margin-bottom: 30px;
}

#baby-name {
    font-size: 60px;
    color: #ff1493;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#baby-name.show {
    opacity: 1;
    transform: translateY(0);
}

/* Pétalas e Confetes Duradouros */
.petal {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    user-select: none;
}

@keyframes fall {
    0% { transform: translateY(-10vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}
