:root {
    --gm-bg: #f3f6fb;
    --gm-surface: #ffffff;
    --gm-surface-soft: #f8fafc;
    --gm-border: #d9e2ec;
    --gm-border-strong: #c8d3e1;
    --gm-text: #0f172a;
    --gm-text-muted: #475569;
    --gm-brand-a: #2458d8;
    --gm-brand-b: #1bbfd5;
    --gm-brand-soft: #e6f3fb;
    --gm-shadow-sm: 0 3px 12px rgba(15, 23, 42, 0.06);
    --gm-shadow-md: 0 10px 28px rgba(15, 23, 42, 0.12);
}

html[data-theme="retro"] {
    --gm-bg: #ece4d4;
    --gm-surface: #f7f1e4;
    --gm-surface-soft: #efe4cf;
    --gm-border: #c7b79c;
    --gm-border-strong: #b6a07e;
    --gm-text: #2f2417;
    --gm-text-muted: #5f4c35;
    --gm-brand-a: #8a5a2b;
    --gm-brand-b: #b8894d;
    --gm-brand-soft: #f1e2c9;
    --gm-shadow-sm: 0 2px 8px rgba(68, 45, 23, 0.12);
    --gm-shadow-md: 0 8px 20px rgba(68, 45, 23, 0.18);
}

.site-header {
    margin-bottom: 1rem;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: transparent;
    border: none;
    border-radius: 16px;
    padding: 2px 0;
    box-shadow: none;
}

.top-nav-left,
.top-nav-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.brand-link-top {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 0 6px 0 4px;
}

.brand-mango {
    width: 15px;
    height: 15px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gm-brand-a), var(--gm-brand-b));
    box-shadow: 0 0 0 4px #dff2ff;
}

.brand-top-text {
    font-weight: 800;
    color: var(--gm-text);
    letter-spacing: 0.1px;
    font-size: 2rem;
    line-height: 1;
}

.brand-top-accent {
    color: #0ea5e9;
}

.secondary-btn {
    border: 1px solid var(--gm-border-strong);
    border-radius: 12px;
    background: var(--gm-surface);
    color: var(--gm-text);
    padding: 9px 14px;
    font-size: 0.96rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.secondary-btn:hover {
    background: var(--gm-surface-soft);
    border-color: #b6c4d6;
}

.secondary-btn.is-active {
    border-color: #8cc6ef;
    color: #075985;
    background: var(--gm-brand-soft);
}

.auth-status {
    font-size: 0.78rem;
    color: var(--gm-text-muted);
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--gm-border);
    background: var(--gm-surface);
}

@media (max-width: 720px) {
    .brand-top-text {
        font-size: 1.5rem;
    }

    .secondary-btn {
        padding: 8px 11px;
        font-size: 0.88rem;
    }
}

.top-nav .secondary-btn {
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #1e293b;
    font-weight: 700;
    padding: 8px 11px;
}

.top-nav .secondary-btn:hover {
    background: #f1f5f9;
    border-color: transparent;
}

.top-nav .secondary-btn.is-active {
    background: #e8f4fc;
    color: #075985;
}

.site-footer {
    margin-top: auto;
    padding: 14px 0 6px;
}

.site-footer-inner {
    background: #07131c;
    border: 1px solid #132839;
    border-radius: 18px;
    padding: 12px 16px;
    color: #d5e3ef;
}

html[data-theme="retro"] .site-footer-inner {
    background: #2e2318;
    border-color: #4d3a27;
}

html[data-theme="retro"] .site-footer-copy {
    color: #d1b892;
}

html[data-theme="retro"] .site-footer-links a {
    color: #eed7b2;
}

.site-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.site-footer-copy {
    font-size: 0.8rem;
    color: #86a1b6;
}

.site-footer-links {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.site-footer-links a {
    color: #c3d7e6;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.82rem;
}

.site-footer-links a:hover {
    color: #ffffff;
}
