*, *::before, *::after {
    box-sizing: border-box;
}

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

::selection {
    background: var(--accent);
    color: #000;
}

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;
    cursor: default;
    padding: 40px 0;
}

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;
}

.terminal-caret {
    display: inline-block;
    width: 9px;
    height: 15px;
    background: var(--accent);
    vertical-align: -2px;
    margin-left: 4px;
    animation: blink 1s step-start infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.nav {
    display: grid;
    gap: 15px;
    width: 100%;
    justify-items: center;
}

.link-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 280px;
    padding: 14px 20px;
    background: #0d0d10;
    color: var(--accent);
    border: 1px solid var(--accent);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.7);
    text-decoration: none;
    font-family: var(--font);
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
    user-select: none;
    text-align: center;
}

.link-card:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 6px 6px 0 rgba(255, 200, 37, 0.3);
    transform: translate(-2px, -2px);
}

.link-card:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--accent);
}

.link-label {
    letter-spacing: 0.5px;
}

.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;
}

.mod-btn {
    background: #0d0d10;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 8px 12px;
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
    text-decoration: none;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.7);
}

.mod-btn:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 4px 4px 0 rgba(255, 200, 37, 0.3);
    transform: translate(-1px, -1px);
}

.mod-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 var(--accent);
}

.shake {
    animation: shake 0.35s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

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

.stats {
    bottom: 15px;
}

.version-info {
    top: 15px;
}

@media (max-width: 700px) {
    .term {
        width: 85%;
        min-width: unset;
    }

    .mods-container {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .link-card {
        width: 100%;
    }
}
