/* ========================== RUST STATS - FOUNDATIONS ========================== */

/* ------------------------------- 1. TOKENS -------------------------------- */

:root {
    --bg:        #08080a;
    --bg-2:      #0b0b10;
    --elev:      #0e0e13;
    --surface:   #121219;
    --surface-2: #17171f;
    --surface-3: #1d1d27;

    --line:      rgba(255, 255, 255, 0.08);
    --line-2:    rgba(255, 255, 255, 0.14);
    --line-warm: rgba(255, 118, 60, 0.22);

    --text:      #ececf1;
    --muted:     #8b8b98;
    --faint:     #56565f;

    --accent:    #ff5a1e;
    --accent-rgb: 255, 90, 30; /* same hue as --accent, for rgba() tints */
    --accent-2:  #ff9a3c;
    --amber:     #f5b942;
    --green:     #9bc53d;
    --red:       #ff4438;
    --blue:      #4ea8ff;
    --steam:     #66c0f4;

    --font-display: 'Chakra Petch', 'Bebas Neue', 'Inter', sans-serif;
    --font-ui:      'Inter', 'Roboto Condensed', system-ui, -apple-system, sans-serif;
    --font-mono:    'JetBrains Mono', 'Share Tech Mono', ui-monospace, monospace;

    --r:     14px;
    --r-sm:  9px;
    --r-xs:  6px;

    --shadow:    0 28px 70px -28px rgba(0, 0, 0, 0.85);
    --glow:      0 0 0 1px rgba(var(--accent-rgb), 0.35), 0 12px 40px -12px rgba(var(--accent-rgb), 0.45);
    --header-h:  66px;
    --footer-h:  56px;
    --sidebar-w: 320px;
}

/* ---------------------------- 2. BASE / RESET ----------------------------- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: #08080a; }

body {
    margin: 0;
    min-height: 100vh;
    background: transparent;
    color: var(--text);
    font-family: var(--font-ui);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body::before {
    /* warm ambient glows + edge falloff, above the background photo */
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(60% 45% at 78% -5%, rgba(var(--accent-rgb), 0.12), transparent 60%),
        radial-gradient(45% 40% at 8% 4%, rgba(78, 168, 255, 0.05), transparent 62%),
        radial-gradient(115% 90% at 50% 42%, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
    pointer-events: none;
}

::selection { background: rgba(var(--accent-rgb), 0.35); color: #fff; }

/* scrollbars */
* { scrollbar-width: thin; scrollbar-color: #2a2a35 transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: #23232d;
    border: 3px solid transparent;
    background-clip: content-box;
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: #34343f; background-clip: content-box; }

/* the missing display-font utility — used all over JS-generated markup */
.font-bebas { font-family: var(--font-display); letter-spacing: 0.01em; }

/* ----------------------------- 3. ATMOSPHERE ------------------------------ */

.bg-layer { position: fixed; inset: 0; pointer-events: none; }

.bg-photo {
    z-index: -4;
    background-image:
        radial-gradient(130% 95% at 50% 30%, rgba(8, 8, 10, 0.34) 0%, rgba(8, 8, 10, 0.72) 68%, rgba(8, 8, 10, 0.92) 100%),
        linear-gradient(180deg, rgba(8, 8, 10, 0.58), rgba(8, 8, 10, 0.8)),
        url('../assets/background.jpg');
    background-size: cover;
    background-position: center 28%;
    background-repeat: no-repeat;
    opacity: 0.85;
    filter: saturate(0.9) contrast(1.02);
}

.bg-grain {
    z-index: -3;
    opacity: 0.16;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

#embers {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
}

/* ============================= LAYOUT & SHELL ============================= */
