/* =========================================================
   Scoped site bar — safe to drop into any page without
   colliding with the page's own <header> / .logo / .nav-links
   rules. Uses only .site-bar* and .site-floatback class names.
   ========================================================= */

.site-bar {
    position: sticky;
    top: 0;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.7rem 1.25rem;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 1rem 0;
}

.site-bar * { box-sizing: border-box; }

.site-bar a { text-decoration: none; }

.site-bar__logo {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #ffffff;
    text-transform: uppercase;
}

.site-bar__nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-bar__nav a {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 0.3rem 0;
}

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

.site-bar__nav a.site-bar__cta {
    background: #3b82f6;
    color: #ffffff;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.site-bar__nav a.site-bar__cta:hover {
    background: #60a5fa;
    color: #ffffff;
}

@media (max-width: 640px) {
    .site-bar { flex-direction: column; gap: 0.5rem; padding: 0.6rem 1rem; }
    .site-bar__nav { gap: 0.75rem; justify-content: center; }
    .site-bar__nav a { font-size: 0.82rem; }
}

/* Floating back button — for full-screen pages (canvas games, fixed-body) */
.site-floatback {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 99999;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    background: rgba(15, 23, 42, 0.88);
    color: #ffffff !important;
    font: 600 0.82rem/1 'Inter', 'Segoe UI', Tahoma, sans-serif;
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: background 0.2s ease, transform 0.2s ease;
}

.site-floatback:hover {
    background: rgba(15, 23, 42, 0.98);
    transform: translateY(-1px);
    color: #ffffff !important;
}
