/* --- 0. CORE BODY LOCK --- */
:root {
    --onyx: #0B132B;
    --gold: #FFB800;
    --teal: #1C7293;
    --glow: rgba(255, 184, 0, 0.4);
}

body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    width: 100%;
    min-height: 100vh;
    background-color: var(--onyx);
    font-family: 'Courier New', monospace;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- 1. THREE.JS 3D BACKGROUND LAYER --- */
/* Forces your live spinning planet and starfield to stay permanently behind your text layers */
#bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1; /* Sets the base background layer */
}

/* Dark ambient tint layer to make sure the gold text stays incredibly easy to read */
body::before {
    content: "";
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background-color: rgba(11, 19, 43, 0.45); /* Softened blend mode so your planet glows vividly */
    z-index: 2; /* Sits cleanly between the 3D planet canvas and your text card */
    pointer-events: none; /* Allows mouse tracking to pass through seamlessly to the planet */
}

/* --- 2. BIO MIRROR SOVEREIGN LAYER --- */
/* Your magnificent dark gold HUD banner card container */
.mirror-chamber {
    position: relative;
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%); /* Core support for Safari and iPhones */
    border: 2px solid var(--gold) !important;
    padding: 40px;
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(11, 19, 43, 0.85) 0%, rgba(28, 114, 147, 0.25) 100%);
    box-shadow: 0 0 30px var(--glow);
    text-align: center;
    width: 85%;
    max-width: 500px;
    z-index: 10; /* High index forces the entire card to float boldly on top of the planet! */
    transition: all 0.3s ease;
}

.mirror-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
    border-radius: 13px;
}

/* --- 3. TYPOGRAPHY & ELEMENTS --- */
h1 {
    color: var(--gold);
    font-size: clamp(2rem, 10vw, 4rem);
    letter-spacing: 0.6rem;
    margin: 0;
    cursor: pointer;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
    user-select: none;
}

.manifesto {
    color: var(--teal);
    letter-spacing: 0.15rem;
    margin-top: 20px;
    font-size: 0.85rem;
    line-height: 1.6;
}

.pulse-core {
    height: 2px;
    width: 60px;
    background: var(--gold);
    margin: 25px auto;
    transition: width 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease;
}

/* --- 4. RECORD BUTTON COMPONENT FRONT-FACING OVERRIDE --- */
/* Guarantees the interactive button remains clickable and visible over the 3D textures */
#recordButton {
    position: relative;
    z-index: 20; /* Elevates it right to the top interactive framework layer */
    cursor: pointer;
}

/* --- 5. SYSTEM FOOTER --- */
.status-bar {
    position: absolute;
    bottom: -60px; /* Positions your footer nicely right under your main card banner */
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

@media (max-width: 600px) {
    .mirror-chamber {
        padding: 25px 15px; /* Keeps the spacing perfectly tight on small phone screens */
    }
    .status-bar {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
        bottom: -90px;
    }
}