/* ═══════════════════════════════════════════
       HEADER
    ═══════════════════════════════════════════ */

/* ── Top bar: rank, score, reputation ── */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    z-index: 10;
}

.header-title {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.header-subtitle {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.header-rank {
    font-size: 0.72rem;
    color: var(--gold);
    font-weight: 700;
    font-family: var(--font-mono);
    text-align: right;
}

.header-score {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--gold);
    font-weight: 700;
    display: inline-block;
}

.header-metrics-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.header-metric {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.val-reputation, .val-doubt {
    display: inline-block;
}

.val-reputation.bump {
    animation: rep-bump 0.6s var(--ease-out);
}

@keyframes rep-bump {
    0% { transform: scale(1); text-shadow: none; }
    30% { transform: scale(1.25); text-shadow: 0 0 15px var(--green); color: var(--green); }
    100% { transform: scale(1); text-shadow: none; }
}

.header-score.bump {
    animation: score-bump 0.6s var(--ease-out);
}

@keyframes score-bump {
    0% { transform: scale(1); text-shadow: none; }
    30% { transform: scale(1.15); text-shadow: 0 0 12px var(--gold); }
    100% { transform: scale(1); text-shadow: none; }
}



.a11y-btn {
    background: var(--surface3);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    padding: 4px 10px;
    font-size: 0.75rem;
}

.a11y-btn:hover {
    background: var(--surface2);
}

.navbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

/* ── Fixed bottom navbar ── */
#fixed-navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    z-index: 100;
}

#fixed-navbar .a11y-btn {
    flex: 1;
    padding: 10px 8px;
    font-size: 0.85rem;
    min-width: 0;
}

#fixed-navbar .a11y-btn.active {
    color: var(--gold);
}