   * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
            color: #00d4ff;
            font-family: 'Consolas', 'Monaco', monospace;
            overflow: hidden;
            height: 100vh;
        }

        .main-container {
            display: grid;
            grid-template-columns: 250px 1fr 300px;
            grid-template-rows: 60px 1fr 120px;
            height: 100vh;
            gap: 10px;
            padding: 10px;
        }

        /* Header */
        .header {
            grid-column: 1 / -1;
            background: rgba(0, 20, 40, 0.8);
            border: 1px solid #00d4ff;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 20px;
            backdrop-filter: blur(10px);
        }

        .logo {
            font-size: 24px;
            font-weight: bold;
            color: #ff00ff;
            text-shadow: 0 0 20px #ff00ff;
        }

        .status-bar {
            display: flex;
            gap: 20px;
        }

        .status-item {
            padding: 5px 15px;
            background: rgba(0, 212, 255, 0.2);
            border-radius: 20px;
            border: 1px solid #00d4ff;
        }

        /* Sidebar */
        .sidebar {
            background: rgba(0, 20, 40, 0.6);
            border: 1px solid #00d4ff;
            border-radius: 10px;
            padding: 20px;
            backdrop-filter: blur(10px);
        }

        .sidebar h3 {
            color: #ff00ff;
            margin-bottom: 15px;
            font-size: 16px;
        }

        .mission-list {
            list-style: none;
        }

        .mission-item {
            padding: 10px;
            margin: 5px 0;
            background: rgba(0, 212, 255, 0.1);
            border-radius: 5px;
            border-left: 3px solid #00d4ff;
            transition: all 0.3s ease;
        }

        .mission-item.completed {
            background: rgba(0, 255, 0, 0.2);
            border-left-color: #00ff00;
            text-decoration: line-through;
        }

        .mission-item.active {
            background: rgba(255, 0, 255, 0.2);
            border-left-color: #ff00ff;
            animation: pulse 2s infinite;
        }

        /* Main Terminal */
        .terminal-area {
            background: rgba(0, 10, 20, 0.8);
            border: 1px solid #00d4ff;
            border-radius: 10px;
            padding: 20px;
            display: flex;
            flex-direction: column;
            backdrop-filter: blur(10px);
        }

        .terminal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 1px solid #00d4ff;
        }

        .terminal-title {
            color: #ff00ff;
            font-size: 18px;
        }

        .connection-status {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .status-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: #00ff00;
            animation: blink 1s infinite;
        }

        .output-area {
            flex: 1;
            overflow-y: auto;
            padding: 10px;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 5px;
            margin-bottom: 15px;
            font-size: 14px;
            line-height: 1.4;
        }

        .input-area {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px;
            background: rgba(0, 20, 40, 0.5);
            border-radius: 5px;
            border: 1px solid #00d4ff;
        }

        .prompt {
            color: #ff00ff;
            font-weight: bold;
        }

        .command-input {
            flex: 1;
            background: transparent;
            border: none;
            color: #00d4ff;
            font-family: inherit;
            font-size: 14px;
            outline: none;
        }

        /* Enhanced Command History */
        .command-history {
            position: fixed;
            bottom: 140px;
            left: 270px;
            right: 320px;
            background: rgba(0, 20, 40, 0.95);
            border: 1px solid #00d4ff;
            border-radius: 5px;
            padding: 15px;
            max-height: 200px;
            overflow-y: auto;
            font-size: 12px;
            display: none;
            backdrop-filter: blur(10px);
            z-index: 1000;
            box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
        }

        .history-item {
            padding: 5px 0;
            color: #00d4ff;
            border-bottom: 1px solid rgba(0, 212, 255, 0.2);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .history-item:last-child {
            border-bottom: none;
        }

        .history-time {
            color: #ff00ff;
            font-size: 10px;
        }

        /* Enhanced Output Styles */
        .output-line {
            margin: 5px 0;
            padding: 2px 0;
            word-break: break-all;
        }

        .system-msg { color: #00d4ff; }
        .success-msg { color: #00ff00; text-shadow: 0 0 5px #00ff00; }
        .error-msg { color: #ff0040; text-shadow: 0 0 5px #ff0040; }
        .warning-msg { color: #ffaa00; text-shadow: 0 0 5px #ffaa00; }
        .mission-msg { color: #ff00ff; text-shadow: 0 0 5px #ff00ff; }
        .home-msg { color: #ffff00; text-shadow: 0 0 5px #ffff00; font-weight: bold; }
        .victory-msg { 
            color: #00ff00; 
            text-shadow: 0 0 10px #00ff00;
            font-weight: bold;
            font-size: 16px;
            animation: victoryPulse 1s infinite;
        }

        /* Victory Animation */
        @keyframes victoryPulse {
            0%, 100% { 
                opacity: 1; 
                text-shadow: 0 0 10px #00ff00;
            }
            50% { 
                opacity: 0.8; 
                text-shadow: 0 0 20px #00ff00, 0 0 30px #00ff00;
            }
        }

        /* Animations */
        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.7; }
        }

        @keyframes blink {
            0%, 50% { opacity: 1; }
            51%, 100% { opacity: 0; }
        }

        @keyframes glitch {
            0%, 100% { transform: translate(0); }
            20% { transform: translate(-2px, 2px); }
            40% { transform: translate(-2px, -2px); }
            60% { transform: translate(2px, 2px); }
            80% { transform: translate(2px, -2px); }
        }

        .glitch {
            animation: glitch 0.3s infinite;
        }

        /* Level 3 Hidden Code Display */
        .hidden-code-display {
            background: rgba(255, 0, 255, 0.2);
            border: 2px solid #ff00ff;
            border-radius: 10px;
            padding: 20px;
            margin: 10px 0;
            text-align: center;
            font-size: 24px;
            font-weight: bold;
            color: #ff00ff;
            text-shadow: 0 0 20px #ff00ff;
            animation: codeFlash 0.5s infinite alternate;
        }

        @keyframes codeFlash {
            0% { opacity: 1; }
            100% { opacity: 0.7; }
        }

        /* Right Panel */
        .right-panel {
            background: rgba(0, 20, 40, 0.6);
            border: 1px solid #00d4ff;
            border-radius: 10px;
            padding: 20px;
            backdrop-filter: blur(10px);
        }

        .code-display {
            background: rgba(0, 0, 0, 0.5);
            border-radius: 5px;
            padding: 15px;
            margin-bottom: 20px;
            font-size: 12px;
            max-height: 200px;
            overflow-y: auto;
        }

        .code-line {
            margin: 2px 0;
            font-family: 'Courier New', monospace;
        }

        .progress-section {
            margin-top: 20px;
        }

        .progress-bar {
            width: 100%;
            height: 8px;
            background: rgba(0, 212, 255, 0.2);
            border-radius: 4px;
            overflow: hidden;
            margin: 10px 0;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #00d4ff, #ff00ff);
            width: 10%;
            transition: width 0.5s ease;
        }

        /* Bottom Control Panel */
        .control-panel {
            grid-column: 1 / -1;
            background: rgba(0, 20, 40, 0.8);
            border: 1px solid #00d4ff;
            border-radius: 10px;
            padding: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            backdrop-filter: blur(10px);
        }

        .control-buttons {
            display: flex;
            gap: 15px;
        }

        .control-btn {
            padding: 10px 20px;
            background: rgba(0, 212, 255, 0.2);
            border: 1px solid #00d4ff;
            border-radius: 5px;
            color: #00d4ff;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .control-btn:hover {
            background: rgba(0, 212, 255, 0.4);
            box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
        }

        .level-indicator {
            font-size: 20px;
            font-weight: bold;
            color: #ff00ff;
            text-shadow: 0 0 10px #ff00ff;
        }

        /* Responsive */
        @media (max-width: 1200px) {
            .main-container {
                grid-template-columns: 200px 1fr 250px;
            }
        }

        @media (max-width: 768px) {
            .main-container {
                grid-template-columns: 1fr;
                grid-template-rows: 60px auto auto auto 100px;
            }
            
            .sidebar, .right-panel {
                max-height: 200px;
                overflow-y: auto;
            }
            
            .command-history {
                left: 20px;
                right: 20px;
                bottom: 120px;
            }
        }