/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0a0a0a;
    --bg-medium: #1a1a1a;
    --bg-light: #2a2a2a;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --accent-primary: #00ff41;
    --accent-danger: #ff4444;
    --accent-warning: #ffaa00;
    --accent-safe: #00ff41;
    --border-color: #333;
    --glow-color: rgba(0, 255, 65, 0.3);
}

body {
    font-family: 'Courier New', Courier, monospace;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Navigation */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.nav-link:hover {
    text-shadow: 0 0 10px var(--glow-color);
}

/* Game Container */
.game-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 5rem 1.5rem 3rem;
    min-height: 100vh;
}

/* Screens */
.screen {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Title Screen */
.title-content {
    text-align: center;
    padding: 2rem 0;
}

.glitch {
    font-size: 3rem;
    font-weight: bold;
    color: var(--accent-primary);
    text-shadow: 
        0 0 10px var(--glow-color),
        0 0 20px var(--glow-color),
        0 0 30px var(--glow-color);
    margin-bottom: 1rem;
    position: relative;
    animation: glitchAnim 5s infinite;
}

@keyframes glitchAnim {
    0%, 90%, 100% { transform: translate(0); }
    91% { transform: translate(-2px, 2px); }
    92% { transform: translate(2px, -2px); }
    93% { transform: translate(-2px, -2px); }
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.intro-text {
    background: var(--bg-medium);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-primary);
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: left;
}

.intro-text p {
    margin-bottom: 0.8rem;
}

.intro-text .warning {
    color: var(--accent-warning);
    font-weight: bold;
    margin-top: 1rem;
}

/* Progress Bar */
.progress-bar {
    background: var(--bg-medium);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-primary));
    height: 4px;
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--glow-color);
}

.progress-text {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Story Container */
.story-container {
    background: var(--bg-medium);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-primary);
    padding: 2rem;
    margin-bottom: 2rem;
    min-height: 200px;
}

.station-title {
    color: var(--accent-primary);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.story-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.story-text p {
    margin-bottom: 1rem;
}

/* Choices Container */
.choices-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.choice-btn {
    background: var(--bg-medium);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 1.5rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.choice-btn::before {
    content: '▶ ';
    color: var(--accent-primary);
    margin-right: 0.5rem;
}

.choice-btn:hover {
    border-color: var(--accent-primary);
    background: var(--bg-light);
    transform: translateX(5px);
    box-shadow: 0 0 20px var(--glow-color);
}

.choice-btn:active {
    transform: translateX(3px);
}

/* Buttons */
.btn {
    background: transparent;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
    padding: 1rem 2rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0.5rem;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background: var(--accent-primary);
    color: var(--bg-dark);
    box-shadow: 0 0 30px var(--glow-color);
}

.btn-secondary {
    border-color: var(--text-secondary);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background: var(--text-secondary);
    color: var(--bg-dark);
    box-shadow: 0 0 30px rgba(160, 160, 160, 0.3);
}

/* Results Screen */
.results-content {
    text-align: center;
}

.results-title {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 2rem;
    text-shadow: 0 0 20px var(--glow-color);
}

.results-summary {
    background: var(--bg-medium);
    border: 2px solid var(--border-color);
    padding: 2rem;
    margin: 2rem 0;
    font-size: 1.2rem;
}

.results-summary.perfect {
    border-color: var(--accent-safe);
}

.results-summary.warning {
    border-color: var(--accent-warning);
}

.results-summary.danger {
    border-color: var(--accent-danger);
}

.results-details {
    text-align: left;
    margin: 2rem 0;
}

.results-details h3 {
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.decision-item {
    background: var(--bg-medium);
    border-left: 3px solid var(--border-color);
    padding: 1rem;
    margin-bottom: 1rem;
}

.decision-item.safe {
    border-left-color: var(--accent-safe);
}

.decision-item.dangerous {
    border-left-color: var(--accent-danger);
}

.decision-header {
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.decision-icon {
    font-size: 1.2rem;
}

.decision-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

.consequences {
    background: var(--bg-medium);
    border: 2px solid var(--accent-warning);
    padding: 2rem;
    margin: 2rem 0;
    text-align: left;
}

.consequences h3 {
    color: var(--accent-warning);
    margin-bottom: 1rem;
}

.consequences p {
    margin-bottom: 0.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-container {
        padding: 4rem 1rem 2rem;
    }

    .glitch {
        font-size: 2rem;
    }

    .station-title {
        font-size: 1.4rem;
    }

    .story-text {
        font-size: 1rem;
    }

    .choice-btn {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .results-title {
        font-size: 2rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        margin: 0.3rem 0;
    }
}

@media (max-width: 480px) {
    .glitch {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .story-container {
        padding: 1.5rem;
    }

    .intro-text {
        padding: 1rem;
    }
}

/* Scanline Effect (optional retro touch) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(0, 0, 0, 0.1) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.3;
}
