:root {
    --neon-green: #00FF41;
    --dim-green: #008F11;
    --dark-green: #003B00;
    --bg-black: #0d0208;
    --terminal-bg: rgba(10, 10, 10, 0.85);
    --terminal-header: rgba(40, 40, 40, 0.9);
    --font: 'Share Tech Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-black);
    color: var(--neon-green);
    font-family: var(--font);
    overflow-x: hidden;
    min-height: 100vh;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Background Canvas */
canvas#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

/* Wrapper */
.content-wrapper {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 900px;
    display: flex;
    justify-content: center;
}

/* Terminal Window */
.terminal-window {
    width: 100%;
    background: var(--terminal-bg);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Header Bar */
.terminal-header {
    background: var(--terminal-header);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.buttons {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #FF5F56;
}

.dot.yellow {
    background: #FFBD2E;
}

.dot.green {
    background: #27C93F;
}

.title {
    flex-grow: 1;
    text-align: center;
    font-size: 14px;
    color: #ccc;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin-right: 50px;
    /* offset dots */
}

/* Body */
.terminal-body {
    padding: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
    height: 100%;
    min-height: 400px;
    overflow-y: auto;
}

/* Links */
a {
    color: var(--neon-green);
    text-decoration: underline;
}

a:hover {
    background-color: var(--neon-green);
    color: #000;
    text-decoration: none;
}

/* Content Elements */
.prompt {
    color: #27C93F;
    margin-right: 10px;
}

.hidden {
    display: none;
    /* JS will remove this class */
}

.log-entry {
    color: #ccc;
    margin-bottom: 5px;
}

.highlight {
    color: #fff;
    font-weight: bold;
}

/* ASCII Art */
.ascii-art-title {
    font-family: monospace;
    white-space: pre;
    /* Ensure whitespace is respected */
    color: var(--neon-green);
    font-size: 10px;
    /* Base for desktop */
    line-height: 10px;
    margin: 10px 0;
    opacity: 0.9;
    overflow-x: hidden;
    /* Hide overflow if strictly needed, or auto if scroll preferred */
    display: inline-block;
    /* Helps with centering */
    text-align: left;
    /* ASCII art needs left align internally to look right */
}

@media (min-width: 600px) {
    .ascii-art-title {
        font-size: 14px;
        line-height: 14px;
    }
}

.tagline {
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: #fff;
    border-bottom: 1px solid var(--dim-green);
    display: inline-block;
    margin-bottom: 20px;
}

/* Network Grid */
.network-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.grid-item {
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid var(--dim-green);
    padding: 10px;
    display: flex;
    justify-content: space-between;
}

.grid-item .label {
    font-weight: bold;
    color: var(--neon-green);
}

.grid-item .val {
    color: #aaa;
}

/* Cursor */
.cursor {
    display: inline-block;
    width: 10px;
    height: 1.2rem;
    background: var(--neon-green);
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    body {
        align-items: flex-start;
        padding-top: 2rem;
    }

    .ascii-art-title {
        font-size: 8px;
        /* Tiny on mobile to fit */
        line-height: 8px;
    }

    .terminal-body {
        font-size: 0.95rem;
        padding: 15px;
    }

    .grid-item {
        flex-direction: column;
        gap: 5px;
    }
}