body {
    font-family: '-apple-system', BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8fafc;
    color: #0f172a;
    margin: 0;
    padding: 20px 0; /* Dá uma folga no topo e no fundo do ecrã */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    touch-action: manipulation; 
    box-sizing: border-box;
}

/* Language Switcher - Agora mesmo no topo e centralizado */
.lang-switcher {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px; /* Empurra o cartão para baixo */
    width: 100%;
}

.btn-lang {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 8px 16px; /* Um pouco maior para tocar mais facilmente */
    font-size: 14px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    width: auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.btn-lang.active {
    background-color: #1a2b4c;
    color: white;
    border-color: #1a2b4c;
}

/* Main Container */
.container {
    background-color: #ffffff;
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    text-align: center;
    width: 88%;
    max-width: 360px;
}

h1 {
    font-size: 22px;
    color: #1a2b4c;
    margin: 0 0 8px 0;
}

p {
    color: #475569;
    font-size: 14px;
    line-height: 1.4;
    margin: 0 0 24px 0;
}

.painel-tempo {
    background-color: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.painel-tempo h2 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #64748b;
    margin: 0 0 12px 0;
}

.tempo {
    font-size: 56px;
    font-weight: 800;
    color: #0284c7;
    margin-bottom: 8px;
}

/* Big Mobile Button */
button {
    color: white;
    border: none;
    padding: 18px 24px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.1s ease, background-color 0.2s ease;
}

button:active {
    transform: scale(0.98);
}

.btn-start {
    background-color: #16a34a;
}

.btn-finish {
    background-color: #dc2626;
}

.ads-container {
    margin-top: 20px;
    width: 100%;
    max-width: 400px;
    min-height: 90px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
}