body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ede4d8;
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.screen {
    text-align: center;
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.hidden {
    display: none !important;
}

.titulo-topo {
    position: absolute; /* Tira o elemento do fluxo normal para não empurrar o centro */
    top: 0;             /* Cola no topo da página */
    left: 0;
    width: 100%;        /* Ocupa toda a largura */
    text-align: center; /* Centraliza o texto */
    margin-top: 50px;   /* A margem de 50px pedida */
    
    /* Estilização opcional para ficar bonito */
    font-size: 2rem;
    color: #333;
    font-weight: 700;
    z-index: 10;        /* Garante que fique acima de outros elementos se necessário */
}

/* --- Estilos do Botão Iniciar --- */
.btn-primary {
    background-color: #6BA38C;
    color: white;
    font-size: 1.6rem;
    padding: 40px 80px;
    border: none;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-primary:active {
    transform: scale(0.98);
}

/* --- Animação de Loading (Spinner) --- */
.spinner {
    border: 5px solid #f3f3f3; /* Cinza claro */
    border-top: 5px solid #6BA38C; /* Azul */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px auto; /* Centraliza e dá margem abaixo */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.animate-text {
    color: #555;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* --- Estilos da Área de Ação --- */

.button-group {
    display: flex;
    gap: 60px;
    margin-top: 50px;
}

.status-text {
    font-size: 1.6rem;
    color: #333;
    font-weight: 700;
}

.btn-success, .btn-danger {
    flex: 1;
    padding: 20px;
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.2rem;
}

.btn-success { background-color: #6BA38C; }
.btn-danger { background-color: #de4f5e; }