.menu-section {
    margin-bottom: 1.25rem;
    text-align: left;
}

.menu-section label {
    display: block;
    font-size: 0.85em;
    color: var(--muted);
    margin-bottom: 0.4rem;
    font-weight: bold;
    text-transform: uppercase;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    background: var(--surface-2);
    padding: 0.75rem;
    border: 1px solid var(--border);
    margin-bottom: 1rem;
    font-size: 0.9em;
    color: var(--muted);
}

.stats-container span {
    color: var(--fg);
    font-weight: bold;
}

.timer-bar-container {
    width: 100%;
    height: 0.375rem;
    background-color: var(--surface-2);
    border: 1px solid var(--border);
    margin-bottom: 1rem;
}

.timer-bar {
    height: 100%;
    width: 100%;
    background-color: var(--accent);
    transition: width 0.1s linear;
}

/* No tema claro o laranja sobre o bege tem pouco contraste (~2,4:1) para ser o
   único indicador do tempo restante; usa a cor do texto. */
:root[data-theme="light"] .timer-bar {
    background-color: var(--fg);
}

.flag-container {
    width: 100%;
    height: 11.875rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    overflow: hidden;
}

.flag-container img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border: 1px solid var(--border);
}

.hint-box {
    background-color: var(--surface-2);
    border: 1px dashed var(--border);
    padding: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.85em;
    color: var(--muted);
    display: none;
}

.hint-box.active {
    display: block;
}

.input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.message {
    margin-top: 0.75rem;
    font-weight: bold;
    min-height: 1.5rem;
}

.success {
    color: var(--fg);
    background-color: rgba(46, 125, 50, 0.2);
    border: 1px solid var(--success);
    padding: 0.4rem;
}

.error {
    color: var(--fg);
    background-color: rgba(198, 40, 40, 0.2);
    border: 1px solid var(--error);
    padding: 0.4rem;
}

#next-btn {
    display: none;
    width: 100%;
    margin-top: 0.75rem;
}

.back-menu-btn {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 0.85em;
    margin-top: 1rem;
    text-decoration: underline;
}

.back-menu-btn:hover {
    color: var(--fg);
}

.loader {
    color: var(--muted);
    font-style: italic;
}

.hidden {
    display: none !important;
}

@keyframes shake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-6px); }
    80% { transform: translateX(6px); }
    100% { transform: translateX(0); }
}

.shake {
    animation: shake 0.3s ease-in-out;
    border-color: var(--error) !important;
}

/* ---------- Modos de jogo ---------- */

.mode-tabs {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.9rem;
}

.mode-tab {
    flex: 1;
    min-width: 0;
    padding: 0.6rem 0.25rem;
    font: inherit;
    font-weight: bold;
    font-size: 0.9em;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--surface-2);
    border: 1px solid var(--border);
    cursor: pointer;
}

.mode-tab:hover { color: var(--fg); border-color: var(--fg); }

.mode-tab[aria-pressed="true"] {
    color: var(--on-accent, #000);
    background: var(--accent);
    border-color: var(--accent);
}

.mode-desc {
    margin: 0 0 0.9rem;
    font-size: 0.85em;
    color: var(--muted);
    text-align: left;
}

.daily-status {
    margin: 0 0 1rem;
    font-weight: bold;
    font-size: 0.9em;
    text-align: left;
}

.daily-status:empty { display: none; }

/* ---------- Fim do Desafio diário / Rush ---------- */

.end-panel {
    text-align: center;
    margin-top: 0.75rem;
    padding: 1rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
}

.end-title {
    margin: 0 0 0.5rem;
    font-size: 1.2em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.end-text { margin: 0 0 0.5rem; font-weight: bold; }
.end-extra { margin: 0 0 0.75rem; font-size: 0.85em; color: var(--muted); }
.end-extra:empty { display: none; }
.share-status { margin: 0.5rem 0 0; font-size: 0.85em; color: var(--muted); min-height: 1.2em; }

/* Textos longos de botão (dica) quebram em duas linhas em vez de alargar a tela */
#hint-btn { white-space: normal; }
