:root {
    --bg-color: #030005;
    --zt-purple: #9d00ff;
    --zt-dark-purple: #3a005e;
    --text-light: #e0e0e0;
    --error-red: #ff003c;
    --terminal-green: #00ff41;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Roboto Mono', monospace; cursor: crosshair; }

body {
    background-color: var(--bg-color); color: var(--text-light); overflow-x: hidden;
    background-image: linear-gradient(rgba(157, 0, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(157, 0, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

body::after {
    content: " "; display: block; position: fixed; top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 2; background-size: 100% 2px, 3px 100%; pointer-events: none;
}

nav {
    position: fixed; top: 0; width: 100%; background: rgba(3, 0, 5, 0.95);
    border-bottom: 2px solid var(--zt-purple); padding: 15px 40px;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 1000; box-shadow: 0 0 25px rgba(157, 0, 255, 0.4);
}

.logo {
    font-family: 'Orbitron', sans-serif; font-size: 26px; font-weight: 900;
    color: var(--text-light); text-shadow: 3px 3px 0px var(--zt-dark-purple), -2px -2px 0px var(--error-red); letter-spacing: 2px;
}

.nav-links button {
    background: transparent; border: 1px solid var(--zt-dark-purple); color: var(--text-light);
    padding: 10px 20px; font-family: 'Orbitron', sans-serif; cursor: pointer;
    transition: 0.2s; margin-left: 10px; text-transform: lowercase;
}

.nav-links button:hover, .nav-links button.active {
    background: var(--zt-purple); border-color: var(--zt-purple); box-shadow: 0 0 15px var(--zt-purple); color: #fff;
}

section { display: none; min-height: 100vh; padding: 100px 20px 50px 20px; max-width: 1000px; margin: 0 auto; }
section.active { display: block; animation: glitchFade 0.5s; }
@keyframes glitchFade {
    0% { opacity: 0; transform: skewX(20deg); filter: hue-rotate(90deg); }
    50% { opacity: 0.5; transform: skewX(-20deg); filter: hue-rotate(-90deg); }
    100% { opacity: 1; transform: skewX(0); filter: hue-rotate(0); }
}

.glitch {
    font-family: 'Orbitron', sans-serif; font-size: clamp(2rem, 5vw, 4rem); font-weight: 900;
    color: var(--text-light); text-shadow: 2px 0 var(--zt-purple), -2px 0 var(--error-red);
    margin-bottom: 20px; border-bottom: 3px solid var(--zt-purple); display: inline-block;
    padding-bottom: 10px; text-transform: lowercase;
}

.zigi-box {
    background: rgba(157, 0, 255, 0.1); border: 2px solid var(--zt-purple);
    padding: 30px; margin-bottom: 30px; position: relative; box-shadow: inset 0 0 20px rgba(157, 0, 255, 0.2);
}

.zigi-box::before {
    content: "zigi mowic:"; position: absolute; top: -15px; left: 20px;
    background: var(--zt-purple); color: #fff; padding: 2px 10px;
    font-family: 'Orbitron', sans-serif; font-weight: bold;
}

.zigi-box p { margin-bottom: 15px; line-height: 1.6; font-size: 1.1rem; }

.game-card { border: 1px solid var(--zt-purple); background: #0a0a0a; padding: 20px; text-align: center; transition: 0.3s; }
.game-card:hover { transform: scale(1.02); box-shadow: 0 0 30px rgba(157, 0, 255, 0.5); border-color: #fff; }
.game-title { font-family: 'Orbitron'; color: var(--zt-purple); margin-bottom: 10px; font-size: 2rem; text-transform: lowercase; }
.game-status { color: var(--text-light); margin-bottom: 20px; text-transform: lowercase; }
.warning-text { font-size: 0.8rem; color: var(--error-red); margin-top: 15px; text-transform: lowercase; }

.download-btn {
    display: inline-block; background: var(--zt-purple); color: #fff; text-decoration: none;
    padding: 15px 30px; font-family: 'Orbitron', sans-serif; font-weight: 900; margin-top: 20px;
    border: 2px solid var(--zt-purple); transition: 0.3s; text-transform: lowercase;
}
.download-btn:hover { background: var(--bg-color); color: var(--zt-purple); box-shadow: 0 0 20px var(--zt-purple); }

.ip-grabber-box {
    width: 100%; height: 300px; border: 1px solid var(--zt-purple); background: #000; color: var(--terminal-green);
    font-family: 'Roboto Mono', monospace; padding: 20px; display: flex; flex-direction: column;
    justify-content: center; align-items: center; box-shadow: inset 0 0 30px rgba(0, 255, 65, 0.1);
    position: relative; overflow: hidden; text-transform: lowercase;
}
.ip-grabber-box::after {
    content: ""; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 255, 65, 0.1) 3px, transparent 3px);
    pointer-events: none; animation: scanline 10s linear infinite;
}
@keyframes scanline { 0% { transform: translateY(0); } 100% { transform: translateY(50%); } }
.ip-grabber-box p { margin-bottom: 10px; text-align: center; z-index: 1; }
.ip-grabber-box .user-ip {
    color: var(--error-red); font-size: 2.5rem; font-weight: 900; text-shadow: 0 0 15px var(--error-red);
    font-family: 'Orbitron', sans-serif; margin: 15px 0; z-index: 1;
}
.blink { animation: blinker 1s linear infinite; }
@keyframes blinker { 50% { opacity: 0; } }

#terminal-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.95);
    z-index: 9999; display: none; justify-content: center; align-items: center;
}
.terminal-box {
    width: 80%; max-width: 800px; height: 60vh; border: 2px solid var(--terminal-green);
    background: #000; padding: 20px; color: var(--terminal-green); overflow-y: auto;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.3); text-transform: lowercase;
}

.secret-btn {
    position: fixed; bottom: 5px; left: 5px; width: 15px; height: 15px;
    background: var(--zt-purple); opacity: 0.05; cursor: pointer; z-index: 9999;
}
.super-secret-trap-btn {
    position: fixed; bottom: 5px; right: 5px; width: 15px; height: 15px;
    background: var(--error-red); opacity: 0.05; cursor: pointer; z-index: 9999;
}

#trap-modal {
    display: none; position: fixed; top: 0; left: 0;
    width: 100vw; height: 100vh; background: black; z-index: 99999999;
    grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr);
}
.trap-video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }