:root {
    --clr-primary: #e61919;
    --clr-dark: #0a0a0a;
    --clr-light: #f4f4f4;
    --clr-accent: #00ff00;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--clr-dark);
    color: var(--clr-light);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

header {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.8rem;
    letter-spacing: 2px;
    color: var(--clr-primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--clr-light);
    text-decoration: none;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--clr-primary);
    border-bottom: 2px solid var(--clr-primary);
}

main {
    padding: 4rem 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding: 4rem 0;
}

#home {
    padding-top: 6rem;
    justify-content: center;
    gap: 2rem;
}

#content {
    padding-top: 2rem;
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.content-container h2 {
    margin-bottom: 1.5rem;
    color: var(--clr-primary);
    font-family: 'Share Tech Mono', monospace;
}

.content-container p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--clr-primary);
}

.nav-toggle {
    display: none;
}

.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVE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TiUSm1E7BSflSt3bfa1tv8Di3R8n3Af7MNWzs49hmauE2wP+ttrq+AsWpFG2awvsuOqbipWHgtuvuaAE+A1Z/7gC9hesnr+7wqCwG8c5yAg3AL1fm8T9AZtp/bbJGwl1pNrE7RuOX7PeMRUERVaPpEs+yqeoSmuOlokqw49pgomjLeh7icHNlG19yjs6XXOMedYm5xH2YxpV2tc0Ro2jJfxC50ApuxGob7lMsxfTbeUv07TyYxpeLucEH1gNd4IKH2LAg5TdVhlCafZvpskfncCfx8pOhJzd76bJWeYFnFciwcYfubRc12Ip/ppIhA1/mSZ/RxjFDrJC5xifFjJpY2Xl5zXdguFqYyTR1zSp1Y9p+tktDYYSNflcxI0iyO4TPBdlRcpeqjK/piF5bklq77VSEaA+z8qmJTFzIWiitbnzR794USKBUaT0NTEsVjZqLaFVqJoPN9ODG70IPbfBHKK+/q/AWR0tJzYHRULOa4MP+W/HfGadZUbfw177G7j/OGbIs8TahLyynl4X4RinF793Oz+BU0saXtUHrVBFT/DnA3ctNPoGbs4hRIjTok8i+algT1lTHi4SxFvONKNrgQFAq2/gFnWMXgwffgYMJpiKYkmW3tTg3ZQ9Jq+f8XN+A5eeUKHWvJWJ2sgJ1Sop+wwhqFVijqWaJhwtD8MNlSBeWNNWTa5Z5kPZw5+LbVT99wqTdx29lMUH4OIG/D86ruKEauBjvH5xy6um/Sfj7ei6UUVk4AIl3MyD4MSSTOFgSwsH/QJWaQ5as7ZcmgBZkzjjU1UrQ74ci1gWBCSGHtuV1H2mhSnO3Wp/3fEV5a+4wz//6qy8JxjZsmxxy5+4w9CDNJY09T072iKG0EnOS0arEYgXqYnXcYHwjTtUNAcMelOd4xpkoqiTYICWFq0JSiPfPDQdnt+4/wuqcXY47QILbgAAAABJRU5ErkJggg==');
    opacity: 0.1;
    pointer-events: none;
    z-index: 1;
}

.scp-text {
    color: var(--clr-accent);
    text-shadow: 0 0 5px var(--clr-accent);
}

.glitch-container {
    position: relative;
}

.glitch {
    font-family: 'Share Tech Mono', monospace;
    position: relative;
    text-shadow: 0.05em 0 0 #00fffc, -0.03em -0.04em 0 #fc00ff,
                 0.025em 0.04em 0 #fffc00;
    animation: glitch 725ms infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9, 2px 2px #ff00c1;
    animation: glitch-anim2 1s infinite linear alternate-reverse;
}

.cta-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.cta-button {
    padding: 0.8rem 1.5rem;
    background: var(--clr-primary);
    color: var(--clr-light);
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid var(--clr-primary);
}

.cta-button:hover {
    background: transparent;
    color: var(--clr-primary);
}

.cta-button.secondary {
    background: transparent;
    border-color: var(--clr-light);
}

.cta-button.secondary:hover {
    background: var(--clr-light);
    color: var(--clr-dark);
}

.typewriter {
    overflow: hidden;
    border-right: .15em solid var(--clr-accent);
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: .15em;
    animation: typing 3.5s steps(60, end),
               blink-caret .75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--clr-accent); }
}

@keyframes glitch {
    0% { text-shadow: 0.05em 0 0 #00fffc, -0.03em -0.04em 0 #fc00ff,
                     0.025em 0.04em 0 #fffc00; }
    15% { text-shadow: 0.05em 0 0 #00fffc, -0.03em -0.04em 0 #fc00ff,
                     0.025em 0.04em 0 #fffc00; }
    16% { text-shadow: -0.05em -0.025em 0 #00fffc, 0.025em 0.035em 0 #fc00ff,
                     -0.05em -0.05em 0 #fffc00; }
    49% { text-shadow: -0.05em -0.025em 0 #00fffc, 0.025em 0.035em 0 #fc00ff,
                     -0.05em -0.05em 0 #fffc00; }
    50% { text-shadow: 0.05em 0.035em 0 #00fffc, 0.03em 0 0 #fc00ff,
                     0 -0.04em 0 #fffc00; }
    99% { text-shadow: 0.05em 0.035em 0 #00fffc, 0.03em 0 0 #fc00ff,
                     0 -0.04em 0 #fffc00; }
    100% { text-shadow: -0.05em 0 0 #00fffc, -0.025em -0.04em 0 #fc00ff,
                     -0.04em -0.025em 0 #fffc00; }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        background: transparent;
        border: none;
        cursor: pointer;
    }

    .hamburger {
        display: block;
        position: relative;
        width: 2rem;
        height: 3px;
        background: var(--clr-light);
    }

    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 3px;
        background: var(--clr-light);
        transition: transform 0.3s ease;
    }

    .hamburger::before { top: -8px; }
    .hamburger::after { bottom: -8px; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(0, 0, 0, 0.9);
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .nav-links.show {
        display: flex;
    }

    section {
        min-height: auto;
        padding: 3rem 1rem;
    }

    #home {
        padding-top: 5rem;
    }

    .content-container {
        padding: 1rem;
    }
}

a {
    color: var(--clr-accent);
    text-decoration: none;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 2px solid transparent;
}

a:hover {
    color: var(--clr-primary);
    border-bottom: 2px solid var(--clr-primary);
}

.link {
    color: var(--clr-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.content-block {
    margin-bottom: 4rem;
    text-align: left;
}

.content-block h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.content-block h3 {
    font-size: 2rem;
    color: var(--clr-primary);
    margin-bottom: 1.5rem;
    font-family: 'Share Tech Mono', monospace;
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--clr-primary);
    transition: transform 0.3s ease;
    position: relative;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 1rem;
    text-align: center;
}

.feature-item h4 {
    color: var(--clr-accent);
    margin-bottom: 1rem;
    font-family: 'Share Tech Mono', monospace;
    text-align: center;
}

.notice-box {
    background: rgba(230, 25, 25, 0.1);
    border: 1px solid var(--clr-primary);
    padding: 2rem;
    border-radius: 8px;
}

.notice-box ul {
    list-style: none;
    margin-top: 1rem;
}

.notice-box ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.notice-box ul li::before {
    content: '→';
    color: var(--clr-accent);
    position: absolute;
    left: 0;
}

.feature-item.upcoming {
    opacity: 0.7;
    border-style: dashed;
}

.feature-item.upcoming::after {
    content: 'UPCOMING';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.8rem;
    color: var(--clr-accent);
    font-family: 'Share Tech Mono', monospace;
}

.feature-item.active::after {
    content: 'AVAILABLE';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.8rem;
    color: var(--clr-primary);
    font-family: 'Share Tech Mono', monospace;
}

.game-modes .feature-grid {
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .content-block {
        margin-bottom: 2rem;
    }

    .content-block h2 {
        font-size: 2rem;
    }

    .content-block h3 {
        font-size: 1.5rem;
    }
}

footer {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 3rem 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--clr-primary);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    color: var(--clr-primary);
    font-family: 'Share Tech Mono', monospace;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--clr-light);
    text-decoration: none;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 2px solid transparent;
}

.footer-section a:hover {
    color: var(--clr-primary);
    border-bottom: 2px solid var(--clr-primary);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #888;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: var(--clr-light);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--clr-accent);
}

@media (max-width: 768px) {
    footer {
        padding: 2rem 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-content {
    background: var(--clr-dark);
    border: 2px solid var(--clr-primary);
    padding: 2rem;
    border-radius: 8px;
    max-width: 400px;
    text-align: center;
    position: relative;
    transform: translateY(-50px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.popup-overlay.active {
    display: flex;
    opacity: 1;
}

.popup-overlay.active .popup-content {
    transform: translateY(0);
    opacity: 1;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--clr-light);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.popup-close:hover {
    color: var(--clr-primary);
}

.popup-title {
    color: var(--clr-primary);
    font-family: 'Share Tech Mono', monospace;
    margin-bottom: 1rem;
}

.popup-message {
    margin-bottom: 1.5rem;
}

.glitch-text {
    animation: glitch 725ms infinite;
    position: relative;
    display: inline-block;
}

.dev-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.dev-popup-content {
    background: var(--clr-dark);
    border: 2px solid #ff6b00;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: popupAppear 0.3s ease-out;
}

.dev-popup-title {
    color: #ff6b00;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.dev-warning-icon {
    font-size: 3rem;
    color: #ff6b00;
    margin-bottom: 1rem;
}

.dev-popup-message {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.dev-popup-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.dev-popup-button {
    padding: 0.75rem 1.5rem;
    border: 1px solid #ff6b00;
    background: transparent;
    color: #ff6b00;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Share Tech Mono', monospace;
}

.dev-popup-button:hover {
    background: #ff6b00;
    color: var(--clr-dark);
}

.dev-popup-button.continue {
    border-color: var(--clr-accent);
    color: var(--clr-accent);
}

.dev-popup-button.continue:hover {
    background: var(--clr-accent);
    color: var(--clr-dark);
}

@keyframes popupAppear {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}