:root {
    --bg: #000;
    --accent: #fff;
    --font: 'Courier New', Courier, monospace;
}

body {
    background: var(--bg);
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--accent);
    font-family: var(--font);
    overflow-x: hidden;
    user-select: none;
    cursor: none;
    padding: 40px 0;
    box-sizing: border-box;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: var(--accent);
    opacity: 0.1;
    pointer-events: none;
}

.term {
    padding: 30px;
    z-index: 10;
    background: #000;
    border: 2px solid var(--accent);
    box-shadow: 10px 10px 0 rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    align-items: center; 
    width: fit-content; 
    min-width: 300px;
    max-width: 90vw;
    margin: auto;
}

#console-out {
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    text-align: left;
    width: 100%;
    margin-bottom: 30px;
}

.nav {
    display: grid; 
    gap: 15px;
    width: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    justify-items: center;
}

.nav.active {
    opacity: 1;
}

.mods-container {
    display: grid;
    grid-template-columns: repeat(2, 300px);
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.mod {
    border: 1px solid var(--accent);
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.mod-title {
    font-size: 1.2rem;
    font-weight: 700;
}

.mod-description {
    font-size: 1rem;
    color: #ccc;
    flex-grow: 1;
}

.mod-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.action-btn {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: var(--font);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 15px;
    text-transform: uppercase;
    cursor: none;
    transition: 0.1s;
    text-align: center;
    text-decoration: none;
    width: 250px;
}

.mod-btn {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: var(--font);
    font-size: 0.9rem;
    padding: 10px;
    text-transform: uppercase;
    cursor: none;
    transition: 0.1s;
    text-decoration: none;
}

.action-btn:hover, .mod-btn:hover {
    background: var(--accent);
    color: #000;
}

#custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    opacity: 0;
    transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.2s;
}

#custom-cursor.hovered {
    width: 15px;
    height: 15px;
    background: var(--accent);
    transform: translate(-50%, -50%) rotate(45deg);
}

.glitch {
    animation: err 0.15s infinite;
    text-shadow: 2px 0 #f05, -2px 0 #0ff, 0 2px #ff0;
}

@keyframes err {
    0% { transform: translate(0); }
    20% { transform: translate(-4px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(4px, 2px); }
    80% { transform: translate(2px, -4px); }
    100% { transform: translate(0); }
}

.stats {
    position: fixed;
    bottom: 15px;
    right: 20px;
    font-size: 12px;
    opacity: 0.7;
    pointer-events: none;
}

.version-info {
    position: fixed;
    top: 15px;
    right: 20px;
    font-size: 12px;
    opacity: 0.7;
    pointer-events: none;
}

@media (max-width: 700px) {
    .term { 
        width: 85%; 
        min-width: unset;
    }
    
    .mods-container {
        grid-template-columns: 1fr;
        width: 100%;
    }
    
    #custom-cursor { display: none; }
    body, .action-btn, .mod-btn { cursor: default; }
    
    .action-btn {
        width: 100%;
        box-sizing: border-box;
    }
}