/* /// INITIATE: OBSIDIAN THEME /// */
:root {
    --obsidian: #050505;
    --titanium: #e0e0e0;
    --signal: #00f3ff;
    --font-hero: 'Outfit', sans-serif;
    --font-code: 'Space Mono', monospace;
}

html {
    background-color: var(--obsidian); /* Background goes on HTML, not Body */
}

body {
    margin: 0;
    background-color: transparent; /* Allows Canvas to show through */
    color: var(--titanium);
    font-family: var(--font-hero);
    overflow-x: hidden;
}

#gl-viewport {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* Sits behind content */
    background: radial-gradient(circle at center, #111 0%, #000 100%); /* Fallback if WebGL fails */
}

/* HUD NAVIGATION */
.hud-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    mix-blend-mode: exclusion;
}

.back-link {
    text-decoration: none;
    color: #fff;
    font-family: var(--font-code);
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.sys-status {
    font-family: var(--font-code);
    font-size: 0.7rem;
    color: var(--signal);
}

/* SCROLL NARRATIVE */
.scroll-container {
    position: relative;
    z-index: 1;
}

.chapter {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 20px;
    /* Removed opacity: 0 to prevent permanent invisibility */
}

.right-align { justify-content: flex-end; text-align: right; }
.center-align { justify-content: center; text-align: center; }

h1 {
    font-size: 15vw;
    line-height: 0.9;
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #fff;
    text-transform: uppercase;
}

.mono-sub {
    font-family: var(--font-code);
    color: #888;
    margin-top: 20px;
    font-size: 1rem;
    line-height: 1.5;
}

.spacer { height: 20vh; }

/* DOCK UI */
.purchase-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 20;
}

.meta-info { display: flex; flex-direction: column; }
.label { font-family: var(--font-code); font-size: 0.6rem; color: #666; }
.value { font-family: var(--font-code); font-size: 1.2rem; color: #fff; font-weight: 700; }

.titan-btn {
    background: #fff;
    color: #000;
    border: none;
    padding: 15px 25px;
    font-family: var(--font-code);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

/* MODAL PHYSICS */
.modal-backdrop {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95); z-index: 100;
    display: none; justify-content: center; align-items: center;
}

.modal-frame {
    width: 90%; max-width: 500px;
    background: #000; border: 1px solid var(--signal);
    padding: 30px; position: relative;
}

.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 30px; border-bottom: 1px solid #333; padding-bottom: 15px;
}

.modal-header h3 { margin: 0; font-family: var(--font-code); color: var(--signal); }
.close-icon { background: none; border: none; color: #fff; font-size: 2rem; }

.input-group { margin-bottom: 30px; }
.input-group label { display: block; font-family: var(--font-code); font-size: 0.7rem; color: #666; margin-bottom: 5px; }
.input-group input {
    width: 100%; background: transparent; border: none;
    border-bottom: 1px solid #333; color: #fff;
    font-family: var(--font-hero); font-size: 1.2rem; padding: 10px 0;
    outline: none;
}
.full { width: 100%; }
