@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

/* =========================================
   1. CORE VARIABLES & SETUP
   ========================================= */
:root {
    --bg-color: #0d0015;
    /* Deep Nyan Space Purple */
    --neon-cyan: #00F0FF;
    /* Cyberpunk Electric Blue */
    --neon-pink: #FF0099;
    /* Poptart Pink */
    --neon-green: #39ff14;
    /* Matrix Green */
    --neon-yellow: #FCEE0A;
    /* Cyber Yellow */
    --glass-panel: rgba(30, 10, 50, 0.75);
    --border-dim: rgba(0, 240, 255, 0.4);

    /* Fonts */
    font-family: 'VT323', monospace !important;
    font-size: 1.2rem !important; /* It's a small font, needs to be bigger */
    color: #ffffff;
    text-shadow: 2px 2px 0px #000; /* Classic hard shadow */
    letter-spacing: 1px;
    text-transform: none; /* Minecraft allows lowercase */
}

* {
    box-sizing: border-box;
    cursor: crosshair;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--bg-color);

    /* --- THE HYBRID BACKGROUND --- */
    background-image:
        /* Layer 1: Big Stars */
        radial-gradient(white, rgba(255, 255, 255, .2) 2px, transparent 4px),
        /* Layer 2: Small Stars */
        radial-gradient(white, rgba(255, 255, 255, .15) 1px, transparent 3px),
        /* Layer 3: Dark Purple Tint (0.8 = 80% Opacity) */
        linear-gradient(to bottom, rgba(5, 0, 17, 0.85) 0%, rgba(26, 0, 51, 0.85) 50%, rgba(5, 0, 17, 0.85) 100%),
        /* Layer 4: Your Wallpaper */
        url('../img/bg.jpg');

    /* Define size for each layer */
    background-size:
        550px 550px,
        /* Stars 1 */
        350px 350px,
        /* Stars 2 */
        100% 100%,
        /* Tint */
        cover;
    /* Wallpaper */

    /* Keep wallpaper fixed, let stars scroll via animation */
    background-attachment: fixed;
    background-position: center;

    /* Animate ONLY the stars */
    animation: starScroll 60s linear infinite;

    color: #e0e0e0;
    font-family: var(--font-code);
}

/* =========================================
   2. ANIMATIONS & FX
   ========================================= */
@keyframes starScroll {
    from {
        background-position: 0 0, 0 0, 0 0;
    }

    to {
        background-position: 0 550px, 0 350px, 0 0;
    }
}

@keyframes nyan-rainbow {
    0% {
        border-color: #ff0000;
        box-shadow: 0 0 15px #ff0000;
        color: #ff0000;
    }

    20% {
        border-color: #ffff00;
        box-shadow: 0 0 15px #ffff00;
        color: #ffff00;
    }

    40% {
        border-color: #00ff00;
        box-shadow: 0 0 15px #00ff00;
        color: #00ff00;
    }

    60% {
        border-color: #00ffff;
        box-shadow: 0 0 15px #00ffff;
        color: #00ffff;
    }

    80% {
        border-color: #ff00ff;
        box-shadow: 0 0 15px #ff00ff;
        color: #ff00ff;
    }

    100% {
        border-color: #ff0000;
        box-shadow: 0 0 15px #ff0000;
        color: #ff0000;
    }
}

@keyframes text-rainbow {
    0% {
        color: #ff0000;
        text-shadow: 0 0 10px #ff0000;
    }

    20% {
        color: #ffff00;
        text-shadow: 0 0 10px #ffff00;
    }

    40% {
        color: #00ff00;
        text-shadow: 0 0 10px #00ff00;
    }

    60% {
        color: #00ffff;
        text-shadow: 0 0 10px #00ffff;
    }

    80% {
        color: #ff00ff;
        text-shadow: 0 0 10px #ff00ff;
    }

    100% {
        color: #ff0000;
        text-shadow: 0 0 10px #ff0000;
    }
}

@keyframes flyAcross {
    from {
        left: -300px;
    }

    to {
        left: 100%;
    }
}

@keyframes moveGrid {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 0 100px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

@keyframes floatComplex {
    0% {
        transform: translateY(110vh) translateX(0px) rotate(0deg) scale(0.8);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    33% {
        transform: translateY(70vh) translateX(15px) rotate(3deg) scale(0.9);
    }

    66% {
        transform: translateY(30vh) translateX(-15px) rotate(-3deg) scale(1);
        opacity: 1;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-10vh) translateX(0px) rotate(0deg) scale(1.2);
        opacity: 0;
    }
}

/* --- OVERLAY LAYERS --- */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.1) 50%);
    background-size: 100% 3px;
    pointer-events: none;
    z-index: 999;
}

.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 40%, black 120%);
    pointer-events: none;
    z-index: 998;
}

.tron-grid {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50vh;
    background-image: linear-gradient(var(--neon-pink) 1px, transparent 1px), linear-gradient(90deg, var(--neon-cyan) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    opacity: 0.2;
    z-index: -2;
    pointer-events: none;
    animation: moveGrid 5s linear infinite;
}

/* --- CHAOS BACKGROUND --- */
.chaos-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.float-obj {
    position: absolute;
    top: 0;
    white-space: nowrap;
    font-weight: bold;
    font-family: var(--font-code);
    animation: floatComplex linear infinite;
    text-shadow: 0 0 5px currentColor;
}

/* =========================================
   3. COMPONENTS & LAYOUT
   ========================================= */
.container {
    flex: 1;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 10;
}

header {
    text-align: center;
    margin-bottom: 30px;
    background: rgba(0, 10, 20, 0.85);
    border: 1px solid var(--neon-cyan);
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.15);
    backdrop-filter: blur(5px);
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}

h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--neon-cyan);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
}

.subtitle {
    margin-top: 10px;
    color: var(--neon-pink);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- NAVIGATION --- */
.nav-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.nav-btn {
    width: 100%;
    background: rgba(10, 14, 18, 0.6);
    border: 1px solid var(--border-dim);
    color: #888;
    padding: 20px 0;
    font-family: var(--font-display);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
}

.nav-btn:hover {
    color: #fff;
    border-color: var(--neon-cyan);
    background: rgba(0, 243, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
    transform: translateY(-2px);
}

.nav-btn.active {
    background: rgba(0, 243, 255, 0.15);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    font-weight: bold;
    text-shadow: 0 0 10px var(--neon-cyan);
}

/* --- CARDS & GRID --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.card {
    background: var(--glass-panel);
    border: 1px solid var(--border-dim);
    backdrop-filter: blur(8px);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
}

.card:hover {
    transform: translateY(-5px) scale(1.02);
    animation: nyan-rainbow 2s linear infinite;
}

.img-wrapper {
    height: 200px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-dim);
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2) brightness(0.6) sepia(100%) hue-rotate(180deg) saturate(2);
    transition: filter 0.4s, transform 0.4s;
}

.card:hover .img-wrapper img {
    filter: grayscale(0%) contrast(1) brightness(1);
    transform: scale(1.1);
}

.content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card h3 {
    font-family: var(--font-display);
    margin: 0 0 10px 0;
    color: var(--neon-cyan);
    font-size: 1.2rem;
}

.card p {
    color: #a0a0a0;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* FORCE BUTTONS TO BOTTOM OF CARDS */
.card, .cyber-panel {
    display: flex;       /* Ensure the card is a flex container */
    flex-direction: column; /* Stack items vertically */
    height: 100%;        /* Make sure it fills the grid height */
}

/* This is the magic line */
.card .btn, .cyber-panel .btn {
    margin-top: auto;    /* Pushes the button to the very bottom */
}

.info-row {
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.info-row strong {
    color: var(--neon-pink);
    display: block;
    font-family: var(--font-display);
    margin-bottom: 5px;
}

/* --- BUTTONS --- */
.btn {
    background: rgba(0, 243, 255, 0.1);
    color: var(--neon-cyan);
    text-decoration: none;
    padding: 15px;
    text-align: center;
    border: 2px solid var(--neon-cyan);
    font-family: var(--font-display);
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 2px;
    transition: all 0.3s;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    cursor: pointer;
}

.btn:hover {
    color: #000;
    box-shadow: 0 0 30px var(--neon-cyan);
    animation: nyan-rainbow 0.5s linear infinite;
}

.btn.disabled {
    border-color: #555;
    color: #555;
    cursor: not-allowed;
    background: transparent;
    animation: none;
}

/* --- TABS --- */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

/* --- SECTIONS --- */
.section-label {
    font-family: var(--font-display);
    color: #fff;
    background: linear-gradient(90deg, var(--neon-cyan), transparent);
    display: inline-block;
    margin: 30px 0 20px 0;
    padding: 5px 20px;
    font-size: 1.2rem;
    clip-path: polygon(0 0, 95% 0, 100% 100%, 0 100%);
}

.warning-box {
    background: rgba(20, 0, 10, 0.85);
    border: 1px solid var(--neon-pink);
    padding: 30px;
    margin-bottom: 40px;
    text-align: center;
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.2);
}

.f2p-box {
    background: rgba(0, 20, 0, 0.9);
    border: 1px solid #39ff14;
    padding: 25px;
    margin-bottom: 30px;
    text-align: center;
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.15);
}

/* =========================================
   4. SPECIAL MODULES (Timer, Quiz, Intel)
   ========================================= */

/* TIMER */
.timer-box {
    width: 100%;
    margin: 0 0 40px 0;
    border: 1px solid var(--neon-pink);
    background: rgba(20, 0, 10, 0.6);
    padding: 25px;
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.1);
    text-align: center;
}

.timer-label-text {
    font-family: var(--font-display);
    color: var(--neon-cyan);
    font-size: 1.2rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(0, 243, 255, 0.5);
}

.timer-display {
    /* 1. Use the Monospace Code font (prevents width changes) */
    font-family: var(--font-code);

    /* 2. Enforce "Tabular Numbers" (just in case) */
    font-variant-numeric: tabular-nums;

    font-size: 4rem;
    color: var(--neon-pink);
    letter-spacing: 2px;
    /* Reduced slightly for monospace */
    text-shadow: 0 0 20px var(--neon-pink);
    font-weight: 900;
    line-height: 1;
    margin-top: 5px;

    /* 3. Ensure it renders as a stable block */
    display: inline-block;
    min-width: 280px;
    /* Reserves space so it doesn't collapse */
}

.timer-active {
    color: var(--neon-yellow);
    text-shadow: 0 0 20px var(--neon-yellow);
    border-color: var(--neon-yellow);
}

/* --- INTEL TERMINAL (DATA MINE) --- */
.intel-terminal {
    background: rgba(5, 10, 15, 0.95);
    /* Very dark blue/black */
    border: 1px solid var(--neon-cyan);
    padding: 30px;
    /* Fixes the odd spacing */
    box-shadow: inset 0 0 30px rgba(0, 240, 255, 0.1);
    font-family: var(--font-code);
}

.intel-header {
    color: var(--neon-cyan);
    font-family: var(--font-display);
    border-bottom: 1px dashed #333;
    padding-bottom: 15px;
    margin-top: 0;
}

/* The Row Container (Label + Input together) */
.intel-row {
    display: flex;
    align-items: center;
    /* Aligns text vertically */
    margin-bottom: 15px;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 15px;
    border-left: 3px solid var(--neon-yellow);
    /* Matrix accent bar */
}

.intel-row label {
    color: var(--neon-yellow);
    font-weight: bold;
    width: 80px;
    /* Fixed width so inputs line up perfectly */
    flex-shrink: 0;
}

.intel-input {
    background: transparent;
    border: none;
    color: white;
    font-family: var(--font-code);
    font-size: 1.1rem;
    width: 100%;
    outline: none;
    /* Removes browser highlight */
}

.intel-input::placeholder {
    color: #444;
}

.intel-console {
    margin-top: 25px;
    background: #000;
    border: 1px solid #333;
    padding: 15px;
    color: #666;
    font-family: 'Courier New', monospace;
    min-height: 60px;
    font-size: 0.9rem;
}

/* QUIZ & CARDS */
.option-card {
    background: rgba(0, 20, 20, 0.8);
    border: 1px solid var(--neon-cyan);
    padding: 0;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 150px;
    position: relative;
    overflow: hidden;
}

.option-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--neon-cyan);
    border-color: #fff;
}

.option-card:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.opt-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-bottom: 1px solid var(--neon-cyan);
}

.opt-text {
    padding: 15px;
    text-align: center;
    font-family: var(--font-display);
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem; 
    line-height: 1.3;
}

/* CYBER PANEL (Leaderboard) */
.cyber-panel {
    margin-top: 40px;
    border: 1px solid var(--neon-yellow);
    background: rgba(0, 10, 0, 0.9);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.1);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%);
}

.cyber-header {
    background: rgba(57, 255, 20, 0.1);
    color: var(--neon-yellow);
    padding: 10px 20px;
    font-family: var(--font-display);
    font-size: 1rem;
    border-bottom: 1px solid var(--neon-yellow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cyber-body {
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
    font-family: var(--font-code);
}

.cyber-body::-webkit-scrollbar {
    width: 8px;
}

.cyber-body::-webkit-scrollbar-track {
    background: #000;
}

.cyber-body::-webkit-scrollbar-thumb {
    background: var(--neon-yellow);
}

/* =========================================
   5. REIMAGINED LOGIN SCREEN
   ========================================= */

#login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    /* Darker background */
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.login-box {
    width: 95%;
    max-width: 700px;
    /* MUCH BIGGER */
    background: rgba(10, 15, 20, 0.95);
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 60px rgba(0, 240, 255, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Keeps content inside borders */

    /* Tech Corners */
    clip-path: polygon(20px 0, 100% 0,
            100% calc(100% - 20px), calc(100% - 20px) 100%,
            0 100%, 0 20px);
}

.login-header {
    background: rgba(0, 240, 255, 0.1);
    padding: 20px;
    border-bottom: 1px solid var(--neon-cyan);
    text-align: center;
}

.login-header h2 {
    color: var(--neon-cyan);
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.8rem;
    letter-spacing: 4px;
    text-shadow: 0 0 10px var(--neon-cyan);
}

.login-body {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* IMAGE FRAME */
.visual-feed {
    width: 100%;
    height: 250px;
    border: 1px solid #333;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.visual-feed::before {
    content: "VIDEO FEED_01";
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.7rem;
    color: var(--neon-cyan);
    opacity: 0.7;
}

.visual-feed img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* CONTROLS GRID */
.control-panel {
    display: grid;
    grid-template-columns: 1fr 200px;
    /* Input takes space, Button is fixed width */
    gap: 20px;
    align-items: center;
}

/* BIG INPUT */
.cyber-input-lg {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #555;
    color: var(--neon-yellow);
    font-family: var(--font-code);
    font-size: 1.5rem;
    padding: 20px;
    text-align: left;
    /* Standard typing feel */
    text-transform: uppercase;
    transition: all 0.3s;
}

.cyber-input-lg:focus {
    outline: none;
    border-color: var(--neon-yellow);
    box-shadow: inset 0 0 20px rgba(57, 255, 20, 0.1);
}

/* BIG BUTTON */
.btn-unlock {
    height: 100%;
    background: var(--neon-cyan);
    color: #000;
    border: none;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.2rem;
    cursor: pointer;
    clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
    transition: all 0.2s;
}

.btn-unlock:hover {
    background: #fff;
    box-shadow: 0 0 20px #fff;
}

/* SYSTEM TOGGLE (High Contrast) */
.system-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #333;
    padding-top: 20px;
}

.cyber-switch {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 15px;
    user-select: none;
    /* Prevents text highlighting */
}

.cyber-switch input {
    display: none;
}

/* The Text Label */
.switch-label {
    font-size: 0.9rem;
    color: #666;
    /* Default Dim Color */
    font-family: var(--font-code);
    transition: all 0.3s;
    letter-spacing: 1px;
}

/* The Switch Container */
.switch-box {
    width: 46px;
    height: 24px;
    background: #000;
    border: 2px solid #555;
    border-radius: 2px;
    position: relative;
    transition: all 0.3s;
}

/* The Switch Knob (White Square) */
.switch-box::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: #888;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* --- CHECKED STATE (ON) --- */
.cyber-switch input:checked~.switch-label {
    color: #fff;
    /* Text goes bright white */
    text-shadow: 0 0 10px var(--neon-green);
}

.cyber-switch input:checked+.switch-box {
    border-color: var(--neon-green);
    background: rgba(57, 255, 20, 0.2);
    /* Faint green fill */
}

.cyber-switch input:checked+.switch-box::after {
    left: 24px;
    /* Move knob right */
    background: var(--neon-green);
    /* Knob turns neon green */
    box-shadow: 0 0 10px var(--neon-green);
}

/* MOBILE FIX */
@media (max-width: 700px) {
    .control-panel {
        grid-template-columns: 1fr;
    }

    /* Stack input and button */
    .btn-unlock {
        padding: 20px;
    }
}

/* --- EXTRAS --- */
.nyan-flyer {
    position: fixed;
    width: 150px;
    z-index: 20;
    pointer-events: none;
    animation: flyAcross 15s linear infinite;
    opacity: 0.8;
}

.mute-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px var(--neon-cyan);
}

/* --- FOOTER (REIMAGINED) --- */
footer {
    width: 100%;
    position: relative;
    z-index: 20;
    padding: 30px 0 50px 0;
    /* More spacing */
    margin-top: auto;
    /* Pushes to bottom if content is short */

    /* Dark background to ensure readability over the wallpaper */
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);

    text-align: center;
    font-size: 0.8rem;
    color: #888;
    font-family: var(--font-code);
}

/* The "Soft Fading" Neon Line */
.footer-line {
    width: 100%;
    height: 1px;
    margin-bottom: 20px;

    /* Gradient: Transparent -> Cyan -> Transparent */
    background: linear-gradient(90deg,
            transparent 0%,
            var(--neon-cyan) 50%,
            transparent 100%);

    /* Optional: Add a glow to the line */
    box-shadow: 0 0 10px var(--neon-cyan);
    opacity: 0.5;
}

footer p {
    margin: 5px 0;
    text-shadow: 0 0 2px #000;
    letter-spacing: 1px;
}

.rainbow-text {
    font-weight: 900;
    background: transparent;
    animation: text-rainbow 2s linear infinite;
}

.stat-value {
    color: var(--neon-cyan);
}

/* --- MOBILE --- */
@media (max-width: 600px) {
    h1 {
        font-size: 1.5rem;
    }

    .nav-bar {
        grid-template-columns: 1fr;
    }

    .timer-display {
        font-size: 2.2rem;
    }

    .chaos-bg .float-obj:nth-child(even) {
        display: none;
    }

    .chaos-bg .float-obj {
        opacity: 0.5 !important;
    }
}