/* meltdown.quest */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: #0a0a0a;
    color: #e0e0e0;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

@keyframes glitch {
    0%, 100% {
        text-shadow: 2px 0 #00fff5, -2px 0 #ff0040;
    }
    50% {
        text-shadow: -2px 0 #00fff5, 2px 0 #ff0040;
    }
}

@keyframes static-shift {
    0%, 100% {
        background: repeating-linear-gradient(90deg, #333 0px, #111 2px, #222 4px, #0a0a0a 6px);
    }
    50% {
        background: repeating-linear-gradient(90deg, #222 0px, #0a0a0a 2px, #333 4px, #111 6px);
    }
}

@keyframes corruption {
    0%, 100% {
        opacity: 0.7;
        transform: translateX(0);
    }
    25% {
        opacity: 0.5;
        transform: translateX(-1px);
    }
    50% {
        opacity: 0.8;
        transform: translateX(1px);
    }
    75% {
        opacity: 0.6;
        transform: translateX(-0.5px);
    }
}

.hero {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.static-band {
    width: 100%;
    height: 4px;
    background: repeating-linear-gradient(90deg, #333 0px, #111 2px, #222 4px, #0a0a0a 6px);
    margin: 1rem 0;
    animation: static-shift 0.8s infinite;
}

.warning {
    font-family: 'Fira Code', monospace;
    font-size: 0.6rem;
    color: #fbbf24;
    opacity: 0.4;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.glitch-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 6vw, 4rem);
    text-transform: uppercase;
    color: #e0e0e0;
    text-shadow: 2px 0 #00fff5, -2px 0 #ff0040;
    animation: glitch 0.3s infinite;
    letter-spacing: 3px;
}

.incidents {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.incident-panel {
    background: #141414;
    border: 1px solid #333;
    padding: 1.5rem;
    position: relative;
    box-shadow: 3px 3px 0 rgba(0,255,245,0.15), -3px -3px 0 rgba(255,0,64,0.15);
    transition: box-shadow 0.3s ease;
}

.incident-panel:hover {
    box-shadow: 3px 3px 0 rgba(0,255,245,0.25), -3px -3px 0 rgba(255,0,64,0.25);
}

.incident-panel.shifted {
    box-shadow: 5px 3px 0 rgba(0,255,245,0.2), -5px -3px 0 rgba(255,0,64,0.2);
}

.hazard {
    font-size: 1rem;
    color: #fbbf24;
    margin-right: 0.5rem;
    display: inline-block;
}

.incident-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    margin: 0.3rem 0;
    text-shadow: 1px 0 #00fff5, -1px 0 #ff0040;
    color: #e0e0e0;
}

.incident-text {
    font-size: 0.8rem;
    color: #a0a0a0;
    margin-bottom: 0.5rem;
}

.incident-data {
    font-family: 'Fira Code', monospace;
    font-size: 0.6rem;
    color: #ff0040;
    letter-spacing: 1px;
}

.corruption {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    background: #1a0a0a;
    border: 1px solid #330a0a;
}

.corrupt-data {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.corrupt-line {
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    color: #ff0040;
    display: block;
    margin-bottom: 0.3rem;
    opacity: 0.7;
    animation: corruption 1.2s ease-in-out infinite;
    letter-spacing: 1px;
}

.signal-lost {
    text-align: center;
    padding: 3rem 2rem;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.end-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #e0e0e0;
    text-shadow: 1px 0 #00fff5, -1px 0 #ff0040;
    letter-spacing: 2px;
}

.fade-in {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
