/* --- Video Background Styles --- */
#video-background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* LAYER 1 (Bottom) */
    transition: filter 2s ease-in-out;
}
/* This class applies to BOTH video players */
.bg-video-player {
    position: absolute; /* Stack them on top of each other */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    /* This filter is the base state and will be controlled by JS for audio-reactivity */
    filter: grayscale(90%) contrast(150%) brightness(50%);
    opacity: 0; /* Hidden by default */
    /* NO TRANSITION = INSTANT HARD CUT */
}
/* This class is added by JS to show the active video */
.bg-video-player.is-visible {
    opacity: 1;
}

#video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2;
    /* Removed all transitions and glitch styles */
}

/* DELETED the .glitching class rule */

#video-overlay::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiGAAAAA1BMVEX///+nxBvIAAAANElEQVR42u3BAQ0AAADCoPdPbQ8HFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPBgJ4QAAUe9F2sAAAAASUVORK5CYII=');
    opacity: 0.05;
    animation: grain 1s steps(2, end) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-1%, -1%); }
  20% { transform: translate(1%, 1%); }
  30% { transform: translate(-2%, 2%); }
  40% { transform: translate(2%, -1%); }
  50% { transform: translate(-1%, 2%); }
  60% { transform: translate(2%, 1%); }
  70% { transform: translate(-2%, -2%); }
  80% { transform: translate(1%, -1%); }
  90% { transform: translate(2%, 2%); }
}
/* --- End Video Background Styles --- */

:root {
    --bg-color: #121212;
    --text-color: #E0E0E0;
    --link-color: #B0B0B0;
    --hover-color: #FFFFFF;
    --font-mono: 'Roboto Mono', monospace;
    --font-sans: 'Inter', sans-serif;
    --brand-color: #0F003D; /* Brand's accent color */
    
    /* --- NEW: Bright accent color for neon splash --- */
    --neon-accent: #9040ff; 
}

/* Correct "App-like" scrolling behavior */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: transparent; 
    color: var(--text-color);
    font-family: var(--font-sans);
    cursor: default;
    height: 100%;
    overflow: hidden; /* This locks the page */
    touch-action: none;
}

body.no-scroll {
    overflow: hidden; 
}

/* Disables text highlighting during drag */
body.user-select-disabled {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.container {
    background-color: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    width: 100vw;
    padding: 2rem 2rem 90px 2rem; /* Padding at bottom for player */
    box-sizing: border-box;
    text-align: center;
    transition: opacity 2s ease-in-out;
    position: relative;
    z-index: 4; /* LAYER 4 (Content) */
}

/* --- Visualizer Styles --- */
#visualizer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3; /* LAYER 3 (Visualizer) - BEHIND content */
    opacity: 0;
    pointer-events: none;
    transition: opacity 2s ease-in-out;
    background-color: transparent; 
}

/* This is the CSS-based "living static" field. Fast and performant. */
#visualizer-overlay::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='50' viewBox='0 0 100 50'%3E%3Ctext x='0' y='15' font-family='monospace' font-size='10' fill='rgba(255,255,255,0.05)'%3E01 10 01 11 01 10 01 00 10%3C/text%3E%3Ctext x='0' y='35' font-family='monospace' font-size='10' fill='rgba(255,255,255,0.05)'%3E10 00 11 01 10 01 10 11 01%3C/text%3E%3C/svg%3E");
    animation: shimmer 0.3s steps(2, end) infinite;
}

@keyframes shimmer {
    0% { transform: translate(0, 0); opacity: 0.8; }
    25% { transform: translate(1px, 2px); }
    50% { opacity: 1; }
    75% { transform: translate(-1px, 1px); }
    100% { transform: translate(0, 0); opacity: 0.8; }
}

#visualizer-canvas {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3; /* Canvas (lifelines/cells) sits on top of the shimmer texture */
}

/* --- REMOVED SMILEY GLITCH STYLES --- */


#brand-filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--brand-color); /* USES YOUR DARK PURPLE */
    mix-blend-mode: color; 
    opacity: 0; 
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
    z-index: 1000; /* Filter layer */
}


/* --- Main Site Styles --- */
header, footer {
    flex-shrink: 0;
    width: 100%;
    position: relative;
    z-index: 10;
}
#logo-container {
    width: 300px; 
    height: 150px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#logo-container.experience-active .logo-image {
    filter: drop-shadow(0 0 35px rgba(255, 255, 255, 0.15));
}

/* Style for when logo is clicked to disable VFX */
#logo-container.vfx-disabled .logo-image {
    opacity: 0.5;
    animation: none !important; /* Kill neon animation */
    filter: grayscale(100%) !important; /* Kill audio-reactive glow */
    transition: opacity 0.3s ease, filter 0.3s ease;
}


#rain-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* SHARED PROMPT STYLES (for Header AND Splash Screen) */
.prompt-container {
    width: 100%;
    max-width: 400px;
    margin: -0.5rem auto 1.5rem; /* Spacing adjustment */
    overflow: hidden;
    transition: opacity 0.5s ease-in-out;
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

.prompt-text {
    margin: 0;
    padding: 0;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--link-color);
    letter-spacing: 1px;
    text-shadow: 0 0 5px var(--link-color);
    white-space: nowrap;
    animation: marquee 20s linear infinite, glitch-flicker 11s infinite;
}
/* END SHARED PROMPT STYLES */


@keyframes marquee {
    from {
        transform: translateX(0%);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Mobile-safe glitch animation (no transform) */
@keyframes glitch-flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 1; }
    51% { opacity: 0.6; }
    52% { opacity: 1; }
    70% { opacity: 1; }
    71% { opacity: 0.7; }
    72% { opacity: 1; }
}

.logo-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    animation: dying-neon 8s infinite ease-in-out;
    transition: opacity 0.2s ease-in-out, filter 0.2s ease-in-out;
}
@keyframes dying-neon {
    0%, 70% { opacity: 1; filter: blur(0.5px) brightness(1); transform: scale(1); }
    75% { opacity: 0.7; filter: blur(1px) brightness(0.8); }
    80% { opacity: 0.3; transform: scale(1.02) translateX(-2px); }
    81% { opacity: 0.9; filter: blur(0.5px) brightness(1.2); }
    82% { opacity: 0.2; transform: scale(0.98) translateX(2px); }
    83% { opacity: 0.4; transform: translateX(-3px); }
    84% { opacity: 0.2; transform: translateX(3px); }
    90% { opacity: 0.8; filter: blur(0.5px) brightness(1); transform: scale(1); }
    100% { opacity: 1; filter: blur(0.5px) brightness(1); transform: scale(1); }
}
header h1, header p, .nav-link, #interaction-instructions, footer, .filter-link, .modal-body h2, .modal-body h3 {
    font-family: var(--font-mono);
    font-weight: 400;
    letter-spacing: 1px;
}
header h1 { margin-top: 2rem; font-size: 1.2rem; } /* Spacing adjustment */
header p { font-size: 0.9rem; color: var(--link-color); margin-top: 0.5rem; } /* Spacing adjustment */
#binary-signature { cursor: pointer; }

/* Main content area scrolls, but the window does not */
main {
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
    width: 100%; 
    max-width: 1200px; 
    margin: 0; /* Removed vertical margin */
    position: relative;
    min-height: 0; 
    overflow-y: auto; /* This makes the content area scroll */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    touch-action: pan-y; /* Allow vertical panning (scrolling) */
    scrollbar-width: none;
    -ms-overflow-style: none;

    /* Mask Fades bottom 50px of content, top is solid */
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black calc(100% - 50px), transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black calc(100% - 50px), transparent 100%);
}
main::-webkit-scrollbar {
    display: none;
}

#anchor-nav {
    flex-shrink: 0; display: flex; justify-content: center; align-items: center; gap: 3rem; padding-bottom: 1.5rem; margin-bottom: 1rem; border-bottom: 1px solid #333;
    position: relative; 
    z-index: 10;
}

/* Reverted to the 1px line */
#scroll-indicator {
    position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); 
    width: 1px; height: 20px; background-color: var(--link-color); 
    opacity: 0; /* JS will change this to 0.8 or 0 */
    transition: opacity 0.5s ease; 
    animation: pulse 2s infinite ease-in-out;
}
@keyframes pulse {
    /* Only animates transform, JS controls opacity */
    0%, 100% { transform: scaleY(1) translateX(-50%); }
    50% { transform: scaleY(1.5) translateX(-50%); }
}

/* This text is no longer needed since chaos grid is gone */
#interaction-instructions {
    display: none; 
}

#filter-nav {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem 2rem; margin-bottom: 2rem;
}
.filter-link {
    color: var(--link-color); cursor: pointer; text-decoration: none; transition: color 0.3s ease;
}
.filter-link:hover, .filter-link.active { color: var(--hover-color); }

/* Chaos Grid layout styles */
#dynamic-field {
    flex-grow: 1; 
    position: relative; 
    min-height: 80vh; 
    transition: min-height 0.5s ease;
}
#dynamic-field.filtered-view {
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    align-content: flex-start; 
    gap: 1.5rem 3rem; 
    min-height: 10vh !important; 
    height: auto !important;
}
.nav-link {
    /* All links are now static (part of the flex-wrap flow) */
    position: static; 
    text-decoration: none; 
    font-size: 0.9rem; 
    cursor: pointer; 
    transition: color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    white-space: nowrap; 
    padding: 5px; 
    user-select: none;
    touch-action: manipulation; /* Ensures taps work on links */
}
/* Removed .filtered-view .nav-link and .nav-link.dragging rules */
.nav-link:hover { color: var(--hover-color); transform: scale(1.1); }

/* Style for favorited links */
.nav-link.is-favorite {
    color: var(--hover-color); /* Makes it white */
    text-shadow: 0 0 8px var(--hover-color); /* Adds a permanent glow */
}

#anchor-nav .nav-link { 
    position: static;
    font-weight: 700; 
    color: var(--text-color); 
    font-size: 1rem; 
}

/* === FOOTER RULE REVERTED === */
/* This is now back in the normal document flow */
footer {
    font-size: 0.8rem; 
    color: var(--link-color); 
    margin-top: 2rem;
    text-align: center;
    flex-shrink: 0; /* Re-adding this from the (header, footer) rule */
}

.modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.9); display: none; justify-content: center; align-items: center; z-index: 2000;
    padding: 1rem; box-sizing: border-box;
}
.modal-content {
    position: relative; background-color: var(--bg-color); padding: 2rem; border-radius: 8px; 
    width: 100%; 
    max-width: 750px; 
    max-height: 85vh; 
    overflow-y: auto; 
    touch-action: pan-y; /* Allow scrolling inside the modal */
    color: var(--text-color); border: 1px solid #333;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.modal-content::-webkit-scrollbar {
    display: none;
}
.modal-close {
    position: absolute; top: 1rem; right: 1.5rem; font-size: 2rem; font-weight: bold; color: var(--link-color); cursor: pointer; transition: color 0.3s ease;
}
.modal-close:hover { color: var(--hover-color); }
.modal-body h2 { margin-top: 0; }
.modal-body h3 { color: var(--link-color); font-weight: normal; }
.modal-body p, .modal-body li { 
    font-family: var(--font-mono);
    line-height: 1.7; 
    font-size: 1rem; 
    letter-spacing: 1px;
}
.modal-body a { color: var(--hover-color); text-decoration: underline; }

/* This is for 16:9 videos like YouTube */
.modal-body .embed-container {
    position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; background: #000; margin-top: 1rem;
}
.modal-body iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}
.modal-body .soundcloud-embed iframe { position: relative; height: 300px; }


/* This is for 1:1 square videos */
.modal-body .embed-container-square {
    position: relative;
    padding-bottom: 100%; /* Creates a 1:1 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin-top: 1rem;
}
/* This targets the <video> tag INSIDE the square container */
.embed-container-square video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* === KEYFRAME ANIMATIONS FOR SPLASH === */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* This pulses text-shadow */
@keyframes pulse-btn {
    0%, 100% {
        /* Pulse the text glow */
        text-shadow: 0 0 10px rgba(224, 224, 224, 0.4);
        opacity: 0.8;
    }
    50% {
        text-shadow: 0 0 25px rgba(255, 255, 255, 0.9);
        opacity: 1;
    }
}
/* === END KEYFRAMES === */


/* --- Premium Audio Player Styles --- */
#persistent-audio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(18, 18, 18, 0.2); /* Low opacity background */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid #333;
    z-index: 1001; /* <-- THIS IS THE FIX. Set to be > filter (1000) */
    display: none;
    padding: 15px 20px;
    box-sizing: border-box;
    transition: background-color 2s ease-in-out;
}
.player-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* This is the glitchy, background-less button style */
#play-pause-btn {
    background-color: transparent;           /* No background */
    border: none;
    color: var(--link-color);                /* Icon color to match links */
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 0;                        /* Removed circle */
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    
    /* Added glow and glitch animation */
    text-shadow: 0 0 5px var(--link-color);
    animation: glitch-flicker 11s infinite;
}
#play-pause-btn:hover {
    background-color: transparent;          /* Ensure no background on hover */
    color: var(--hover-color);              /* Icon brightens on hover */
    transform: scale(1.1);                  /* Scale effect */
    text-shadow: 0 0 10px var(--hover-color);/* Brighter glow on hover */
}

.player-center {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.track-info {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-align: left;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.progress-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}
.time-display {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--link-color);
    min-width: 40px;
}
#volume-controls {
    display: none; /* Hidden on mobile */
}
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    width: 100%;
}
input[type="range"]:focus { outline: none; }
input[type="range"]::-webkit-slider-runnable-track { 
    height: 4px; 
    background: #555; 
    border-radius: 4px; 
}
input[type="range"]::-moz-range-track { 
    height: 4px; 
    background: #555; 
    border-radius: 4px; 
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    margin-top: -5px; 
    background-color: var(--text-color);
    height: 14px; width: 14px; border-radius: 50%;
    transition: all 0.2s ease;
}
input[type="range"]::-moz-range-thumb {
    border: none;
    background-color: var(--text-color);
    height: 14px; width: 14px; border-radius: 50%;
    transition: all 0.2s ease;
}
input[type="range"]:hover::-webkit-slider-thumb { 
    background-color: var(--hover-color);
    box-shadow: 0 0 5px var(--hover-color);
}
input[type="range"]:hover::-moz-range-thumb { 
    background-color: var(--hover-color);
    box-shadow: 0 0 5px var(--hover-color);
}
/* Responsive Desktop Styles */
@media (min-width: 640px) {
    #persistent-audio-player {
        padding: 15px 30px;
    }
    .player-wrapper {
        gap: 30px;
    }
    #volume-controls { 
        display: flex;
        align-items: center;
        gap: 10px;
        width: 150px;
    }
    #volume-icon {
        color: var(--link-color);
    }
}

/* STYLE FOR THE SPLASH SCREEN VIDEO */
#splash-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0; /* Sit behind the z-index: 1 overlay */
}

/* NEW OVERLAY STYLE FOR VISIBILITY */
#splash-video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2;
    /* Removed all transitions and glitch styles */
}

/* DELETED the .glitching class rule */

#video-overlay::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiGAAAAA1BMVEX///+nxBvIAAAANElEQVR42u3BAQ0AAADCoPdPbQ8HFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPBgJ4QAAUe9F2sAAAAASUVORK5CYII=');
    opacity: 0.05;
    animation: grain 1s steps(2, end) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-1%, -1%); }
  20% { transform: translate(1%, 1%); }
  30% { transform: translate(-2%, 2%); }
  40% { transform: translate(2%, -1%); }
  50% { transform: translate(-1%, 2%); }
  60% { transform: translate(2%, 1%); }
  70% { transform: translate(-2%, -2%); }
  80% { transform: translate(1%, -1%); }
  90% { transform: translate(2%, 2%); }
}
/* --- End Video Background Styles --- */

:root {
    --bg-color: #121212;
    --text-color: #E0E0E0;
    --link-color: #B0B0B0;
    --hover-color: #FFFFFF;
    --font-mono: 'Roboto Mono', monospace;
    --font-sans: 'Inter', sans-serif;
    --brand-color: #0F003D; /* Brand's accent color */
    
    /* --- NEW: Bright accent color for neon splash --- */
    --neon-accent: #9040ff; 
}

/* Correct "App-like" scrolling behavior */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: transparent; 
    color: var(--text-color);
    font-family: var(--font-sans);
    cursor: default;
    height: 100%;
    overflow: hidden; /* This locks the page */
    touch-action: none;
}

body.no-scroll {
    overflow: hidden; 
}

/* Disables text highlighting during drag */
body.user-select-disabled {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* This is the main splash screen container that centers all content */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000; 
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1; 
    transition: opacity 1s ease-out, visibility 1s ease-out;
    visibility: visible;
    cursor: default;
    overflow: hidden; 
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* This container holds the logo, title, and prompt as a group */
.splash-graphic-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 5;
    animation: fadeIn 2s ease-out 0.5s;
    animation-fill-mode: forwards;
    opacity: 0;
    cursor: default;
    width: 100%;
    max-width: 600px;
    position: relative;
    /* Use flexbox for perfect centering */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* === UPDATED: Logo Container === */
#splash-graphic-inner {
    position: relative;
    width: 100%;
    /* This container is now a "spacer" that keeps the OLD logo size */
    height: clamp(200px, 50vw, 300px); 
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

/* === UPDATED: Logo === */
#splash-logo {
    /* Logo is now "floating" inside its container */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    /* This is the NEW, bigger size */
    width: clamp(250px, 65vw, 400px);
    height: auto; 
    object-fit: contain; 
    opacity: 1; 
}


/* The title text */
#splash-title-text {
    font-family: 'Homemade Apple', cursive;
    font-weight: 400;
    font-size: clamp(2.2rem, 10vw, 5rem); /* <-- FIXED: Lowered minimum size */
    line-height: 1;
    color: transparent; /* Makes the original text invisible */
    margin: 0 auto 2rem auto;
    padding: 0;
    text-transform: none;
    text-shadow: none;
    white-space: nowrap; /* Forces text onto a single line */
    position: relative;
}

/* Pseudo-element to display the animated content */
#splash-title-text::after {
    content: "My Louisiana Sky";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Homemade Apple', cursive;
    font-weight: 400;
    font-size: clamp(2.2rem, 10vw, 5rem); /* <-- FIXED: Lowered minimum size */
    color: rgba(0, 0, 0, 0.4);
    text-shadow: none;
    animation: binary-glitch-and-fade 10s infinite ease-in-out;
    white-space: nowrap;
}

/* The animation for the title and binary glitch */
@keyframes binary-glitch-and-fade {
    0%, 100% { content: "My Louisiana Sky"; opacity: 0.4; font-family: 'Homemade Apple', cursive; }
    15% { opacity: 0.6; }
    20% { opacity: 0.2; }
    21% { content: "11101 010010101 1001100"; opacity: 0.8; font-family: var(--font-mono); }
    22% { content: "My Louisiana Sky"; opacity: 0.2; }
    25% { content: "10111 110010101 0110011"; opacity: 0.9; font-family: var(--font-mono); }
    26% { content: "My Louisiana Sky"; opacity: 0.2; }
    30% { opacity: 0.8; }
    60% { opacity: 0.2; }
    61% { opacity: 0.1; }
    62% { opacity: 0.4; }
    70% { opacity: 0.2; }
    80% { opacity: 0.5; }
}

/* Fingerprint scanner and prompt */
#splash-fingerprint-scanner {
    position: relative;
    z-index: 5;
    margin-top: 2rem;
    cursor: pointer;
    text-align: center;
    pointer-events: auto;
    opacity: 1;
}

#fingerprint-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

#fingerprint-progress-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-sizing: border-box;
    border: 2px solid transparent;
    border-top-color: var(--link-color);
    border-right-color: var(--link-color);
    border-bottom-color: var(--link-color);
    transform: rotate(-135deg);
    opacity: 0.5;
    transition: transform 0.3s ease-out; /* <-- UPDATED: Matches JS cancelHold */
}

/* === DELETED OLD #fingerprint-icon RULE === */

/* === REPLACED WITH CROWN IMAGE STYLE === */
#scanner-central-icon {
    width: 30px !important;  /* FORCED: Set to a small 30px size */
    height: 30px !important; /* FORCED: Set to a small 30px size */
    object-fit: contain;
    opacity: 0.4 !important; /* FORCED: Matches title transparency */
    filter: invert(1) !important; /* FORCED: Makes your black PNG show up as white */
    
    /* --- NEW FIX: Prevents "Save Image" popup --- */
    pointer-events: none;
    -webkit-touch-callout: none;
    user-select: none;
}


/* === DELETED CONFLICTING CSS RULE === */
/* This rule was fighting with the JavaScript timer:
#splash-fingerprint-scanner:active #fingerprint-progress-circle {
    transform: rotate(225deg);
}
*/

#splash-prompt-text {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--link-color);
    letter-spacing: 2px;
    margin-top: 1rem;
    animation: pulse-glow-text 2s infinite ease-in-out;
}

@keyframes pulse-scanner {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes pulse-glow-text {
    0%, 100% { text-shadow: 0 0 5px var(--link-color); opacity: 1; }
    50% { text-shadow: 0 0 15px var(--link-color), 0 0 25px var(--link-color); opacity: 0.8; }
}

/* Rule for .splash-sub-text has been deleted */