/* ======================== RUST STATS - LAYOUT & SHELL ========================= */

/* ------------------------------- 4. HEADER -------------------------------- */

.rust-header {
    position: sticky;
    top: 0;
    z-index: 120;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 22px;
    background: linear-gradient(180deg, rgba(12, 12, 17, 0.92), rgba(8, 8, 11, 0.78));
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border-bottom: 1px solid var(--line);
}

.rust-header::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.55), transparent 80%);
}

.rust-logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon-box {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.logo-icon-svg {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(var(--accent-rgb), 0.28));
    transition: transform 0.25s ease, filter 0.25s ease;
}
.rust-logo-group:hover .logo-icon-svg {
    transform: scale(1.04);
    filter: drop-shadow(0 10px 22px rgba(var(--accent-rgb), 0.45));
}

.logo-text-col { display: flex; align-items: center; gap: 10px; }
.logo-main {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 0.06em;
    color: #fff;
    line-height: 1;
}
.glitch-hover { position: relative; transition: color 0.25s ease; }
.glitch-hover:hover { color: var(--accent); }
.logo-badge {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.22em;
    color: var(--amber);
    background: rgba(245, 185, 66, 0.1);
    border: 1px solid rgba(245, 185, 66, 0.28);
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
}

/* segmented pill nav */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.nav-btn {
    position: relative;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    padding: 9px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, transform 0.12s ease;
    white-space: nowrap;
}
.nav-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.nav-btn:active { transform: scale(0.97); }
.nav-btn.active {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), #a8321a);
    box-shadow: 0 8px 24px -10px rgba(var(--accent-rgb), 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.nav-donate-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 15px;
    border-radius: 999px;
    background: rgba(245, 185, 66, 0.08);
    border: 1px solid rgba(245, 185, 66, 0.4);
    color: var(--amber);
    cursor: pointer;
    transition: all 0.24s ease;
}
.nav-donate-btn .font-bebas { font-size: 17px; letter-spacing: 0.08em; }
.nav-donate-btn:hover {
    background: var(--amber);
    color: #000;
    box-shadow: 0 10px 30px -12px rgba(245, 185, 66, 0.9);
}

.btn-ghost-new {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--line);
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    cursor: pointer;
    transition: all 0.24s ease;
}
.btn-ghost-new:hover {
    color: var(--accent);
    border-color: rgba(var(--accent-rgb), 0.5);
    background: rgba(var(--accent-rgb), 0.08);
}
.btn-ghost-new:hover i { transform: rotate(90deg); }
.btn-ghost-new i { transition: transform 0.3s ease; }

/* ------------------------ 5. HEADER NAV REFINEMENT ------------------------ */

/* nav pill can scroll internally so it never overflows the header */
.nav-menu { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; max-width: 100%; min-width: 0; }
.nav-menu::-webkit-scrollbar { display: none; }

.nav-btn { display: inline-flex; align-items: center; gap: 7px; }
.nav-ico {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    opacity: 0.85;
    transition: opacity 0.22s ease, transform 0.22s ease;
}
.nav-btn:hover .nav-ico { transform: translateY(-1px); }
.nav-btn.active .nav-ico { opacity: 1; }
.nav-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* sticky header gains a deeper shadow once the page is scrolled */
.rust-header.is-scrolled {
    box-shadow: 0 16px 40px -24px rgba(0, 0, 0, 0.95);
    border-bottom-color: var(--line-2);
}

/* search box is hidden by default and only shown when the sidebar is a drawer */
.header-search-ico { display: none; }

/* desktop: a compact search lives inline in the header (reuses .mobile-search markup) */
@media (min-width: 1025px) {
    .mobile-search { display: flex; flex: 0 1 250px; max-width: 320px; margin-left: auto; }
    .mobile-search .search-box { width: 100%; }
    .mobile-search .header-search-ico {
        display: block;
        position: absolute;
        left: 13px;
        width: 15px;
        height: 15px;
        color: var(--faint);
        pointer-events: none;
    }
    .mobile-search .search-input {
        padding: 10px 42px 10px 34px;
        font-size: 12px;
        border-radius: 999px;
    }
    .mobile-search .search-btn {
        width: 30px;
        height: 30px;
        right: 6px;
        border-radius: 50%;
    }
    .mobile-search .search-btn i { width: 15px; height: 15px; }
}

/* ---------------------------- 6. SYSTEM BANNER ---------------------------- */

#sys-broadcast {
    background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.16), rgba(var(--accent-rgb), 0.05));
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.32);
    color: #ffd9c7;
}
#sys-broadcast.hidden { display: none; }

/* ----------------------------- 7. MOBILE LOCK ----------------------------- */

#mobile-lock {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 32px;
    text-align: center;
    background: radial-gradient(80% 60% at 50% 30%, #141018, #070709 80%);
}
.lock-icon-box {
    width: 104px; height: 104px;
    display: grid; place-items: center;
    border-radius: 22px;
    background: rgba(var(--accent-rgb), 0.06);
    border: 1px solid rgba(var(--accent-rgb), 0.3);
    box-shadow: inset 0 0 40px -10px rgba(var(--accent-rgb), 0.5);
    animation: lockPulse 3s ease-in-out infinite;
}
@keyframes lockPulse { 0%, 100% { box-shadow: inset 0 0 40px -10px rgba(var(--accent-rgb), 0.4); } 50% { box-shadow: inset 0 0 60px -6px rgba(var(--accent-rgb), 0.75); } }
.lock-title {
    font-family: var(--font-display);
    font-size: 40px;
    letter-spacing: 0.14em;
    color: #fff;
    margin: 0;
}
.lock-msg {
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.9;
    letter-spacing: 0.1em;
    color: var(--muted);
    max-width: 340px;
}
.lock-footer {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.28em;
    color: var(--faint);
}

/* ----------------------------- 8. APP LAYOUT ------------------------------ */

.app-container {
    display: flex;
    align-items: stretch;
    min-height: calc(100vh - var(--header-h));
}

.sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 22px 18px calc(var(--footer-h) + 20px);
    background: linear-gradient(180deg, rgba(12, 12, 17, 0.7), rgba(8, 8, 11, 0.4));
    border-right: 1px solid var(--line);
    transition: margin-left 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.sidebar.collapsed { margin-left: calc(var(--sidebar-w) * -1); }

.main-content {
    flex: 1;
    min-width: 0;
    padding: 30px clamp(20px, 3vw, 46px) calc(var(--footer-h) + 40px);
    overflow-x: hidden;
}

.view { display: none; }
.view.active { display: block; animation: viewIn 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.view-wrap { max-width: 1160px; margin: 0 auto; }
.stats-content { max-width: none; margin: 0 auto; padding-bottom: 80px; }

/* ------------------------------- 9. SIDEBAR ------------------------------- */

.sidebar-section { display: flex; flex-direction: column; gap: 12px; }
.side-spacer { flex: 1; }

.sidebar-title {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--faint);
    display: flex;
    align-items: center;
    gap: 10px;
}
.sidebar-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--line), transparent);
}

/* search */
.search-box { display: flex; align-items: center; gap: 0; position: relative; }
.search-input {
    width: 100%;
    padding: 13px 52px 13px 15px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 12.5px;
    outline: none;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.search-input::placeholder { color: var(--faint); }
.search-input:focus {
    border-color: rgba(var(--accent-rgb), 0.6);
    background: var(--surface-2);
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.1);
}
.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: calc(100% - 10px);
    display: grid;
    place-items: center;
    border: 0;
    border-radius: var(--r-xs);
    background: linear-gradient(135deg, var(--accent), #b0331b);
    color: #fff;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.12s ease;
}
.search-btn:hover { filter: brightness(1.14); }
.search-btn:active { transform: translateY(-50%) scale(0.95); }

.search-hints {
    position: absolute !important;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    z-index: 60;
    background: rgba(14, 14, 19, 0.97);
    backdrop-filter: blur(16px);
    border: 1px solid var(--line-2);
    border-radius: var(--r-sm);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.search-hints.hidden { display: none; }
.hint-head {
    padding: 10px 14px;
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: 0.2em;
    color: var(--faint);
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--line);
}
.hint-row {
    padding: 11px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--line);
    transition: background 0.18s ease, padding-left 0.18s ease;
}
.hint-row:last-child { border-bottom: 0; }
.hint-row:hover { background: rgba(var(--accent-rgb), 0.06); padding-left: 18px; }
.hint-label {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 11px;
    color: var(--accent);
    margin-bottom: 3px;
    transition: color 0.18s ease;
}
.hint-row:hover .hint-label { color: #fff; }
.hint-value { font-family: var(--font-mono); font-size: 10px; color: var(--faint); }

/* category nav */
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar-btn, .side-main-btn {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
    padding: 12px 15px;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.22s ease;
}
.sidebar-btn span, .side-main-btn span { transition: transform 0.22s ease; }
.sidebar-btn::before, .side-main-btn::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    width: 3px; height: 0;
    transform: translateY(-50%);
    border-radius: 3px;
    background: var(--accent);
    transition: height 0.22s ease;
}
.sidebar-btn:hover, .side-main-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.035);
    border-color: var(--line);
}
.sidebar-btn:hover span, .side-main-btn:hover span { transform: translateX(3px); }
.sidebar-btn.active, .side-main-btn.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.16), rgba(var(--accent-rgb), 0.02));
    border-color: rgba(var(--accent-rgb), 0.25);
}
.sidebar-btn.active::before, .side-main-btn.active::before { height: 60%; }
.sidebar-btn.active span, .side-main-btn.active span { transform: translateX(6px); }

.side-product {
    position: relative;
    display: block;
    padding: 16px;
    border-radius: var(--r);
    border: 1px solid rgba(var(--accent-rgb), 0.3);
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.1), rgba(255, 154, 60, 0.02) 60%), var(--surface);
    text-decoration: none;
    overflow: hidden;
    transition: all 0.26s ease;
}
.side-product:hover { border-color: var(--accent); box-shadow: var(--glow); transform: translateY(-2px); }
.side-product-tag {
    position: absolute;
    top: 0; right: 0;
    background: var(--accent);
    color: #000;
    font-family: var(--font-mono);
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    padding: 3px 8px;
    border-bottom-left-radius: 8px;
}
.side-product-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--accent);
    transition: color 0.22s ease;
}
.side-product:hover .side-product-title { color: #fff; }
.side-product-desc { font-size: 12px; color: var(--muted); margin-top: 4px; }
.side-product-arrow { position: absolute; right: 14px; bottom: 14px; color: var(--faint); transition: color 0.22s ease, transform 0.22s ease; }
.side-product:hover .side-product-arrow { color: var(--accent); transform: translate(2px, -2px); }

/* ---------------------------- 10. VIEW HEADERS ---------------------------- */

.view-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 26px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}
.title-idx {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--accent);
}
.title-idx.green { color: var(--green); }
.title-idx.amber { color: var(--amber); }
.title-idx.blue  { color: var(--blue); }

.view-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 36px;
    line-height: 1.04;
    letter-spacing: 0.015em;
    color: #fff;
    margin: 4px 0 0;
}
.view-title.xl { font-size: 46px; }
.view-title.green { color: #d7ecb0; }
.view-title.amber { color: #ffdca0; }
.view-title.blue  { color: #c4e2ff; }

.view-sub {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
    margin: 8px 0 0;
}

.view-badge {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--line-2);
    padding: 8px 14px;
    border-radius: 999px;
    white-space: nowrap;
}
.view-badge.accent { color: var(--accent); border-color: rgba(var(--accent-rgb), 0.35); background: rgba(var(--accent-rgb), 0.07); }
.view-head-count { display: flex; align-items: center; gap: 12px; }
.count-caption {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--faint);
    text-transform: uppercase;
}

/* ---------------------------- 11. EMPTY STATE ----------------------------- */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 62vh;
    gap: 8px;
}
.empty-radar { position: relative; width: 190px; height: 190px; display: grid; place-items: center; color: rgba(255, 255, 255, 0.5); margin-bottom: 20px; }
.empty-ring {
    position: absolute;
    border: 1px solid rgba(var(--accent-rgb), 0.3);
    border-radius: 50%;
    inset: 0;
}
.empty-ring.r2 { inset: 20%; border-color: rgba(var(--accent-rgb), 0.18); }
.empty-ring.r3 { inset: 40%; border-color: rgba(var(--accent-rgb), 0.1); }
.empty-ring.r1 { animation: ringPulse 3.4s ease-out infinite; }
@keyframes ringPulse { 0% { transform: scale(0.7); opacity: 0.85; } 100% { transform: scale(1.35); opacity: 0; } }
.empty-sub { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }

/* ----------------------- 12. MOBILE NAV COMPONENTS ------------------------ */

.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: 10px;
    border: 1px solid var(--line-2);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.mobile-menu-btn:hover { background: rgba(var(--accent-rgb), 0.12); border-color: rgba(var(--accent-rgb), 0.4); color: var(--accent); }
.mobile-menu-btn svg { width: 20px; height: 20px; }

.sidebar-close {
    display: none;
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    border: 1px solid var(--line-2);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    cursor: pointer;
    z-index: 6;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.sidebar-close:hover { color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.sidebar-close svg { width: 18px; height: 18px; }

.mobile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 125;
    background: rgba(4, 4, 6, 0.66);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-backdrop.active { opacity: 1; visibility: visible; }
html.nav-open { overflow: hidden; }

.side-links-mobile, .side-main-nav { display: none; }

/* tap feedback + text scaling across the whole site */
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
button, a, select, label { touch-action: manipulation; }

/* search bar pinned into the header whenever the sidebar becomes a drawer */
.mobile-search { display: none; }
.mobile-search .search-box { width: 100%; }

/* ------------------------------- 13. FOOTER ------------------------------- */

.footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: var(--footer-h);
    padding: 12px 24px;
    background: linear-gradient(180deg, rgba(10, 10, 14, 0.82), rgba(6, 6, 9, 0.96));
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
}
.footer-center {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
}
.footer-credit {
    font-family: var(--font-display);
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--faint);
    cursor: default;
    transition: color 0.3s ease;
}
.footer-credit:hover { color: var(--accent); }
.footer-right { display: flex; align-items: center; gap: 16px; }
.footer-link {
    background: none;
    border: 0;
    padding: 0;
    text-decoration: none;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: color 0.2s ease;
}
.footer-link:hover { color: #fff; }
.footer-link.gold { color: var(--amber); }
.footer-link.gold:hover { color: #ffd76b; }
.footer-divider { width: 1px; height: 16px; background: var(--line-2); }

.lang-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 4px 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.lang-selector:hover { border-color: var(--line-2); background: rgba(255, 255, 255, 0.045); }
.lang-selector:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.14); }
.lang-selector-ico { width: 14px; height: 14px; color: var(--faint); flex: none; transition: color 0.2s ease; }
.lang-selector:hover .lang-selector-ico { color: var(--text); }
.lang-select {
    appearance: none; -webkit-appearance: none;
    border: 0; background: transparent; color: var(--text);
    font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
    padding: 8px 30px 8px 2px; cursor: pointer; border-radius: 999px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
    background-repeat: no-repeat; background-position: right 11px center;
    transition: color 0.2s ease;
}
.lang-select:hover { color: #fff; }
.lang-select:focus { outline: none; }
.lang-select:focus-visible { outline: none; }
.lang-select option { background: #111; color: #fff; padding: 8px; }

/* logged-in viewer badge in the header (staff / supporter only) */
.viewer-chip {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 4px 3px 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
}
.viewer-chip.hidden { display: none; }
.viewer-chip-main { display: flex; align-items: center; gap: 7px; text-decoration: none; }
.viewer-chip-ava {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--amber);
    background: rgba(245, 185, 66, 0.15);
    flex: 0 0 auto;
}
.viewer-chip-txt { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.viewer-chip-txt b {
    font-size: 11px;
    font-weight: 600;
    color: var(--text);
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.viewer-chip-tag {
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--faint);
}
.viewer-chip-tag.is-staff { color: var(--amber); }
.viewer-chip-gear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: var(--faint);
    transition: color 0.2s ease, background 0.2s ease;
}
.viewer-chip-gear:hover { color: var(--amber); background: rgba(245, 185, 66, 0.1); }
.viewer-chip-gear svg { width: 13px; height: 13px; }

@media (max-width: 700px) {
    .viewer-chip { display: none; }
}

/* =============================== COMPONENTS =============================== */
